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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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

Math.uuid.js (v1.4)
http://www.broofa.com
mailto:robert@broofa.com
Copyright (c) 2010 Robert Kieffer
Dual licensed under the MIT and GPL licenses.
*/
/*

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

 Copyright 2018 Contributors (https://github.com/rrweb-io/rrweb/graphs/contributors) and SmartX Inc.
 SPDX-License-Identifier: MIT
*/
/*

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var t$t,ELO,UKY,xKl,AD0,Yi_,Ei,mKj,HOE,xL,MK,fl_,BEt,dE,uY,w80,Rj$,V$_,JD,Zl,j0Y,rD8,Oi,uOL,ZOl,hjO,eji,llE,GtK,s0E,DK_,nLD,TEL,$KL,KJY,yDO,A3,mr,Hp,tWi,Bp,wZ,EmY,uG,Or,Uf8,xfJ,GX,ns,bsO,BZO,wpl,Pp,QsJ,CGt,js8,Ks,r38,kX8,u4t,dfL,J3D,cp,RoJ,td,ITO,OsD,Frj,ke,zo$,lT_,rt,hot,wt,aTL,eol,TZ_,WrO,$fD,Z9,y3E,vmD,SrJ,c3O,tgO,pKE,ULL,YCi,Mgj,ilD,Hl0,BtK,C8t,rdE,jtK,D9,k58,ZlD,sC,Olj,hb_,zbE,ebE,l9K,FoY,PK,EeD,ot,WK,$e,G5O,vK,DLt,neJ,Ntj,tG,stY,LoJ,TtD,WoO,oeO,$L0,Ko$,veK,Sg,SC$,t8O,pw0,x2i,Hw,YSt,btJ,Bw,Ht$,
wwJ,m2K,RcD,Q$L,CF8,IkL,kCY,Zt8,Xw$,hct,ec_,F6O,nI$,N6i,L6j,T6l,$2D,vIt,yG0,cGj,EkO,UEi,Ms0,foD,GC,wTY,Vs0,QRj,Pw,Ww,Kt,pB,xk,A9,Iot,fB,ZB_,hXi,eX8,FE8,zXO,js,lo_,kk,d3,u0,IR,nkE,N30,DEY,sR$,LEE,T3O,okL,WEK,$EO,vki,XQ,O2,y9O,S2t,c9j,Es8,t2O,pxK,UX8,xX0,s2,LB,PT,Tc,WT,Y8L,$k,mXt,f_Y,vT,BgE,wx8,RtO,Ss,V2Y,Qhi,CgO,tC,kJK,pq,JCO,I_i,U8,ZqJ,gsJ,OqY,XxO,htD,a__,Ys,etL,Fi_,MX,ztY,l_8,bg,ig,qX,Hx,GJK,Ngi,nst,fq,sh8,Li$,PgY,wg,VX,QX,Cq,j2,rg,TgD,osD,$Xl,Ki_,yCO,cCJ,S8K,td_,EW8,pQ_,Uyt,xy0,ug,Ag0,YhK,myj,bgK,
igO,qhJ,Hg8,fPj,BiE,Z_,O8,wQE,ah,e2,R7$,CNY,jvj,rg$,dyK,usJ,Jgi,OgL,XQY,h7L,aPD,e7t,F9$,z7$,NiJ,GJ,DyD,svL,L9Y,PN$,TiL,oWL,$yJ,YJt,MK_,mQJ,qJL,HN8,TJ,f80,R2i,CQ0,jcD,rWJ,k$t,dQ8,u8t,JWK,I8_,ZN$,ON$,VKE,Xy$,h2J,a8L,e2Y,F7K,z2j,l8O,G$_,nOj,L7D,DQj,oOY,PQE,TVO,K7K,vOL,yWj,W7$,cW_,$QY,Ewt,My,pvK,m9,iN,U$$,Atj,Yj8,bw0,CK$,qjO,iwJ,fpD,wvO,Hwt,Jt_,kqj,Ip0,gw$,Zwt,OwE,Xvj,apY,hgJ,egl,FW8,zgL,lpL,nwE,D$E,smY,LWL,ThD,PKL,UOD,BQ,xOD,YBK,MiK,mOO,bRi,iR8,HRE,f3i,BsO,di,uN,wCD,Iv,r6i,Oh,hg,J6E,gaL,G30,zg,DOK,saD,
oaO,PaY,TsO,DP,WYO,$O8,vaL,y68,SBL,c68,tul,E6D,pkO,xRJ,WQ,Sd,bME,xO,wkO,B7t,QDJ,MQ,m7,jDL,rFO,kMj,ZM_,g6$,OM_,iQ,Xkt,he0,aRJ,Fn8,lR0,zeY,GMO,kO,PJj,JW,SyE,KnO,cF8,Z8,U08,OJ,X8,x00,Aw$,m0j,bTi,hW,qG$,iTY,Crt,jfi,rw0,d0t,g7Y,OTt,XEt,hMK,atO,eME,F8,zML,nN,Ga$,n7J,NxY,sfL,ltt,FMi,D0E,lQ,PrD,$0t,o7O,ywJ,SGl,cw8,EXO,pXE,xWK,AHJ,IDO,gX$,ZWJ,OWO,Wy,XXO,aD$,hL8,eLO,zL8,vy,GQt,N1t,cy,Ej,tt,T18,PVi,nX0,vX_,p6j,AAJ,xeE,me$,At,ioj,qRE,Bki,w6O,q$,VfD,fw,Bv,jEO,deY,JAi,IML,Oo0,X6j,hf0,aM$,wh,FQt,zfD,lM$,GxO,NkJ,
Det,sE8,LQL,QG,rh,onE,WQl,$e$,yAl,SRO,cA$,Ym0,MQi,UG0,b_0,i_t,qm_,Xr,ht,am,eC,wV8,RJ0,lK,VQ8,QiL,CHO,ji$,kZ_,dGO,ux0,Jol,roE,IsE,N$,Z_0,eJO,Dp,as8,FV$,gxO,zJt,Lw,GZY,nxK,NJD,DGJ,LVO,siE,PH_,WVE,TJt,KV_,ET_,U_Y,AZ8,m_D,MRO,YT$,bF_,iF$,HF8,Bu_,fUt,wDK,cv,VR_,QKY,CO_,jKl,rZO,d_j,kFi,uJE,JZE,XDK,ZFO,OF0,aUj,eBO,FtO,lUE,zBO,GF0,nTi,D_i,Lti,oT_,$_j,WtE,gs,KtY,sKD,pAO,xct,Ajj,YF$,F3,M1t,bb8,HbJ,wAK,Bm_,CUL,jpD,rj_,kVO,u1E,Obl,JjL,gh8,ZbO,XAj,hqO,eql,aBJ,zqi,Fuj,WC,lBE,nh$,NmO,PUD,Ey,Uy,TmE,oht,x6,Ku_,bJ,
iJ,qR,cjY,Hk,pL_,w7,UJK,xJt,AfJ,Y58,Qk,MLt,mJt,bfY,q5l,fKK,RFj,Q4E,ZR,CCj,j48,rfY,k2i,dJ$,u$E,Jft,IKL,aD,OfO,XLJ,hF_,aK$,eF$,FDt,zFD,lKE,G2l,nzt,NNi,DJi,s4O,DR,tUO,ERJ,sy,LM,Pk,p3j,Ul0,xlj,A2E,YU_,MUK,mlK,fNL,BzD,w3K,R9O,VUJ,$6,vk,yk,Su,pT,UG,x7,CcO,Y7,r2Y,M0,kIO,dl8,mM,uM8,J2i,INJ,z9O,GI0,Le$,Wel,oRO,lNY,$l_,y2t,i4$,Ud0,wuY,AXY,fw_,Rv8,BE,Qoj,Rf,joD,rX0,ddJ,uRE,JXJ,g8$,CT,O40,Xu_,hvE,awJ,evO,Fd8,zvL,Z4Y,n8L,NnD,DdJ,rx,WdD,$dL,o8Y,v88,yXj,cX0,te8,Slj,Me$,qnD,f4L,XL,jCO,QCK,Cz8,JJl,g2_,ZyJ,Oy8,XsK,
hUK,a4_,Dt,sCO,PzJ,N4O,n2i,LhO,FhK,o2_,UnO,KhL,v20,yJJ,fqi,w9_,HdY,jnE,qYJ,eU$,CAt,$AO,p9Y,BGj,T4L,l4_,zUO,GOt,DAl,idO,AH,F8$,lqO,GEL,n18,NGi,K8i,tYD,Ej8,VB,U60,YXj,i$J,b$0,H$O,fVj,wY8,RuO,VYY,QFi,jFj,C7j,g1,gjl,IVi,Jel,hui,Z$D,aVj,XYO,euL,FHi,njl,lVi,Gd8,D6Y,LHE,P7i,WHJ,$6O,KHJ,vji,SXi,cet,EuO,Fv,pSJ,AN0,UMi,YQ_,ir$,qQ_,BI_,RQ$,DD,s_,j7_,rNY,LW,PX,ksK,TQ,oz,dMO,WX,uYY,$X,JNY,I28,vX,gu0,ZrJ,OrY,XSO,hQY,eQ_,a2L,zQJ,nul,Gs$,NI_,DME,FFK,s7E,TIO,Pm$,l2_,ouL,WFJ,po,$Mt,vuj,KFE,yN$,SQj,thj,cNt,EZ_,xn,UmY,
xmL,pnY,Ya$,Mh0,mm$,HGO,wnL,jeY,uIO,AA,gZE,ZG8,mQ,OGY,fo,B6,z5L,qe,VO,l1L,Gm_,NWO,Dm0,Lbi,TWL,oZO,Wbj,$ml,yyY,pqO,tMO,vZj,UqD,xqD,rk,ECY,Ah_,un,YtE,MME,mqL,b1t,fy$,i1D,H10,VMY,Qxj,dqO,kHE,Iyi,ay8,erl,zrO,GHO,nCi,Dq0,sxE,LA8,T9i,oCL,WAt,vCJ,tIO,EMj,yhD,Uh_,AIj,xht,pf0,YkJ,mhi,bu_,iut,qkE,Hut,fSl,ln,Gx,BFO,wfL,RaJ,VI_,W6,rIl,v6,dh8,JIt,ISL,ZuO,hai,Sf,c6,aSj,to,zaD,lSD,GGY,p_,LSl,WS0,KSl,vMJ,yIE,cI_,tvD,Ei8,xx_,xx,AUL,mx_,Ao,bJ_,fvD,Yx,Rm_,MG,iH,qG,VvO,Cd_,QQD,rUY,klt,dxK,uBD,jQt,OJL,X7J,av8,FmJ,niO,
GlO,N0J,sQj,Lmj,Pd8,T0$,oiY,WmJ,$xO,yUt,Kml,Ri,cUt,VL,tr0,C_,jQ,EE8,plK,UCO,xCY,AYY,rJ,Y40,MrK,mCK,b3j,q4E,H30,fJ$,BM8,wlj,VrJ,R_j,kx,CBJ,rYE,k4L,dC0,uc0,gEi,O3j,Ii,h_Y,e_i,FCK,z_O,lJL,G4J,nEi,NM$,DCO,Z3D,Xli,srL,LCi,WCl,$CD,KCl,vEO,qW$,BTO,wiL,RS0,fGJ,k9D,JBO,di$,IGi,OmL,hSl,eS_,G9i,lGi,sJO,GZ,L$L,PPl,n_,TTE,NG,obY,W$_,$iY,vbD,K$_,yB_,SWO,cBK,tEY,MEi,bQK,qc$,iQL,xU_,p$$,fxO,w$t,juJ,rlL,uHj,X$L,ax_,PV,eWi,zWl,lx_,nFJ,L5J,oF8,K5$,vFj,ylD,ScO,Uwt,cl_,MlO,mwE,bCK,qv0,$x,HCL,BaK,wUj,Rzi,Vl$,QLD,CZO,jL_,
kN_,dwO,SQ,uqO,Jv8,gY8,tZ,IaL,OCj,ezi,UT,F0j,zzD,laJ,Nat,Dw$,GNO,L0D,W0l,$w_,K0E,iO,vY_,t30,E3O,BD,xj_,pHE,Uji,M3Y,mjO,bzO,fmY,R80,wH0,Bcl,V3_,Chl,jyt,J18,r1E,ImK,ZzK,g3$,Fqj,Gw$,Ncj,syE,v3D,vD,SuY,p5i,xFY,$T,xh,iiY,BYK,fZt,RTO,VVO,Ct_,QSY,jS8,rLi,Aj,PcE,qAO,w5J,Hii,pb,un$,JLi,IZt,Rp,X5O,VR,hTJ,aZY,eTO,FP8,zT_,Cb,lZD,G0_,nAY,NYL,DFY,dm,sSi,TYD,WP0,$FL,E9t,U7J,x7O,ASY,M4J,m70,ap,iSD,q0t,HS0,f5Y,B8K,wgj,V4K,Cui,rSO,knE,ZSt,I5L,OSi,a5E,ekO,Nc,FIl,zk$,l5$,N88,sOj,D7K,Pu0,o9_,op,$7K,KIl,WIj,v9L,ySO,cSL,
Et_,tZj,pdi,S0i,UYO,xYt,A4Y,Y7K,MZl,mYi,bHD,iHD,q7t,Bw0,fFK,wdl,VZD,ROl,WA,QU8,r4L,J4E,CI8,ZHt,OHi,XdL,hOO,F3t,sUJ,L3Y,TwK,otO,Yz,vt0,tpt,UTi,MJ,Mp0,xTE,AT8,Y9J,mT0,fHt,qJ,slL,Lgi,Tyi,op$,WgL,$Tt,vp_,yTL,Y$0,pJt,x4_,m48,MAj,bZi,iZY,HZO,Bll,RIj,Q2D,CLK,rsi,hIY,FpO,lfL,GkK,nc_,NlO,D4D,Lp_,PLE,WpY,$4K,KpD,vcJ,ysY,S$O,csE,tmj,UkE,YMY,dN,uC,Jf,Mm0,mkO,ZK,ik8,CS_,Jct,dkO,sIj,Lw8,PSL,Hk0,QIJ,wMJ,oli,Wwl,$kt,Kwi,rcL,vlE,SMJ,tFY,UvL,xv$,nf,fOL,wO8,VFJ,Q6J,j6Y,Cs0,dvK,J00,aOl,XOt,gf8,hAK,ZLE,eA8,GeL,t2,EU,
WB_,Psj,KBj,vfO,SgL,c0t,UU,tSL,U9J,x9_,AuJ,YL_,fz0,HPt,B3,CoD,C0,ruK,kvj,d9O,uzY,JuY,Izt,ggl,ZP_,OPL,XBi,hR_,rz,az0,eR8,Fk_,zRL,lzt,Gv$,ngO,NPL,dz,D9i,sdD,Lk0,PoO,TP$,ogL,WkO,$9_,KkD,vgi,yuD,SL_,cuY,IG,ENY,USO,Ax$,mSK,qV8,H7_,fCi,wZ0,VoJ,QA$,Cll,FM,ukO,kbO,Jxt,ICO,gNE,XZY,hpJ,aC_,FvY,W3,lC$,TI,nNL,No0,$R,DSK,sAl,Lvj,Plt,v3,$S0,vNO,E4t,tkl,UV0,xVD,x8,AbJ,Yq_,mVJ,iUO,qq8,fet,BSl,bU$,w_j,j8L,uyK,JbY,AX,Iei,g4_,aeO,ZUE,X_J,hdl,n4O,Ff0,NSj,s8E,Pb$,TSi,o4J,WfJ,$Vj,Kfj,ybi,Sqj,cb8,tBE,EqO,U3O,A7Y,m3i,Hvl,
wrJ,VB_,jN_,Hu,r7O,k6i,d3_,ujY,J7K,gq8,ZvO,Ov_,Xr0,hCY,ac0,eC$,FRK,zCi,lcE,G6L,N$i,nqj,LRL,T$t,wn,oql,KR0,$3Y,SZi,c7E,t_O,Up8,Y1$,AQD,p2_,bVK,mp_,B5J,iVL,uR,HVY,rQ$,V_L,Q_l,CWD,j_$,kS_,uPE,dp_,JX,Io,hwi,IYD,X2E,OVY,gDY,ZVD,FzE,lYO,nD_,GSi,N50,PWl,LzK,oDt,Kz0,yQl,$pY,S1j,tti,cQO,p4D,AOj,ao,Ydi,Mtl,iaE,w4E,rOO,FR,dBO,JOi,Dw,ZaE,IjD,gdO,Nd,ajj,OaO,X48,eiO,zi0,FTO,ndj,NDJ,sTt,LTt,PwY,TDl,od8,$BD,KTK,cu,yO8,EVt,pIL,Un,UbJ,Ap_,BvO,mh,bK8,fr0,iK$,qeK,QgK,Vy$,kY_,Cpj,dbJ,uwj,iz,Jp$,Irt,gVO,fy,ZK8,qA,hY8,
arY,eYK,FU_,zYD,GYl,sgi,LUE,oVL,WU8,KU0,Sel,vVL,ypt,cpO,ErD,pNO,U1K,x1$,AMY,MH8,bcJ,icE,HcO,qxO,fg8,BCl,Rx_,VHY,Igl,u6J,Oct,XND,lgt,GzO,nr0,NCO,D1O,sV8,TCE,orE,WxO,Kx$,vrJ,yMJ,SxK,cMl,tO8,pFD,U88,x8_,ee,m8O,MOK,Y6L,AVt,ixE,fn_,q6Y,wF8,RlD,QZO,CXO,jZ_,rVi,k8K,gHO,d8D,ui_,JVi,Zx_,Oxt,XFO,In0,GO,el_,zlE,Faj,NA,lnO,nHY,N_O,D8L,G8O,sZY,LaY,PXi,T_0,oH8,$8Y,KaL,vHt,yVO,tj$,cVE,AzJ,S6$,sn,YN8,E_$,xoJ,mo0,bXO,iXJ,qN8,HXL,BfL,wW_,RED,QXJ,Cit,rzi,dot,ZXO,IdL,g_O,Jz0,ugj,OXL,Se,XW_,cs,hEJ,adl,GUl,NfD,DoL,sXi,
LO$,Pil,Tf0,A8,Y1,v_l,WOj,o_O,$oO,mIt,A_E,KO8,xI8,BrO,wzE,R4K,VXL,QwK,r__,dIY,J_L,gGE,Z8l,O8j,e4i,aLJ,F1i,lLO,In,NrO,DIl,swK,L1t,PTY,Tri,oGi,Zq,OY,K1$,vG$,S3l,ES_,M6$,HnE,qp0,fIO,wbJ,R6Y,V6E,QBE,CMY,jBD,zE,rRD,ZnK,OnO,JRl,ue0,gSi,IIt,FNY,z6i,lIt,G7$,nSE,Nq0,LN0,sBY,D5$,Sp_,vSO,cRt,tP$,E0O,xD8,YfD,ptL,UDL,BOE,RVJ,Qkt,jkO,kKY,uZt,ZpO,OpK,Xt$,eV$,aEi,hV0,FZl,zVK,lEt,GKO,n0Y,NOL,DD8,ski,LZt,PqO,o0D,WZj,$Dl,KZi,v0l,yP_,cPt,tDj,EQj,phO,UNO,xNO,mNE,b9L,qs$,fAO,H90,BRK,Kd,wh$,R0K,VDj,Q3l,kjj,rmj,dNO,umO,
JmY,IAO,gQi,Z9J,O9_,XhJ,h08,aAi,e00,FyO,z0K,lAO,Gjl,NRl,nQi,DNl,s3O,LyD,Py0,TRO,oQL,Wy_,$N_,xj,vQ0,ymK,Ss8,cmt,tnE,poK,Uri,xrO,A$K,Yo0,MnO,bA0,iAi,HAO,mH,woE,jHD,QHO,VnK,R3t,C_l,drj,uTD,J$$,I$i,ZAO,OA_,Xot,a$K,h3_,e3E,Fct,z3O,nKK,NU$,Dr8,sHO,LcO,P_D,WcE,$rj,Qj,c$O,t0J,pP_,Aql,xtj,YD8,M0l,C$,rX,b2D,i2O,u7,Je,BA$,qDJ,H2E,V0$,Q9t,C$i,j90,uDY,Iu0,gUE,Z2i,O2O,XPD,au$,ePK,F_$,zP$,lul,GLO,nUi,ZV,NAL,Dt0,Xt,s90,L_K,P$0,TAl,oU_,W_0,aF,eY,$tj,K_L,Ft,vUl,yql,SDJ,cqY,EyL,pj8,xaD,bYE,ma$,MzD,iY8,qEY,Qbi,BL8,wjj,
RNt,fQO,VzJ,CDE,jbL,kii,daO,l7,IQl,gyl,ZY0,OY_,XjY,aQJ,FK0,Gij,sbE,NLO,Gd,nyi,oyO,$aE,n$,KKO,vyj,yEL,SEi,cEE,EP0,p1K,xPL,AaL,M7O,mPL,HIJ,qKi,BdO,w1J,RyD,V7J,CvY,j1D,ra$,kuY,dPY,ud8,JaD,IWl,gPY,OI_,X1K,zyl,lWO,Gu8,nP$,NdJ,DPl,vY,Pvj,oP_,WsJ,$PE,Kst,vP_,SK0,caO,tqO,Ev0,UZ0,xZ_,AiE,cY,YPj,Mqj,ij0,qPK,tN,EQ,BbO,HjD,wGl,QPJ,RKi,CEj,rit,AN,kBO,dZl,uXt,gvi,OjD,Yu,hKE,ahL,eKj,FlY,zKt,lhE,GBt,nvL,Nbt,PEO,TbK,KlD,ovO,$Zj,vvD,yiO,SPj,EB0,p0t,UsJ,A5Y,YwK,H6O,qwO,VbO,j5K,Vc,r5Y,k1D,A6_,Qc,ds_,uVE,IbO,O6Y,X0O,
G1J,nB0,NeL,Ds_,s5$,LXE,Tet,oBE,$s0,vBL,WXO,KX8,SwO,y5O,t9O,UuO,EJj,xuK,Akj,YOY,M9t,mu0,b5O,qOK,i5O,wmE,QYj,RG$,CjL,jYl,rk_,gI,kTt,duY,OQ,Jk0,uFL,IXl,Z50,gJl,aX0,eGY,zG8,a7,GTJ,nJD,NKY,DuO,Pj$,oJ$,K2$,$uO,vJ0,ykE,SOL,pcE,Hhi,YbL,BHO,wc0,VGO,Qj8,kfi,dH_,uKD,Jri,I68,g$J,Xcj,hsi,a6i,es_,l60,n$j,NH0,Gf$,sjJ,DHO,Wj8,$HO,KjK,v$O,yrO,Sbl,crO,EoK,xg8,AKE,YzK,beE,mgO,He$,BBO,waJ,R$0,VaY,QM$,jMO,C18,kr8,goO,h$J,XaJ,aij,e$Y,FGY,li8,Sc,noE,pG,Dg0,LGl,P1Y,KGO,yK0,E5$,UzY,xzE,YIl,MNK,mzt,iDJ,HDO,f0j,wRj,QWj,VN8,
R18,Mm,jWJ,C6$,rni,kDK,dzD,upL,JnJ,I0$,g5O,ODY,XRJ,h1Y,a0i,e10,F4t,z1O,l0O,GDt,n5_,Dzl,sWt,L48,P6J,TQj,W4$,$zL,K4D,SI8,wW,ADs,cnL,M$p,bOs,iOT,qiG,HOZ,fl0,VT,rDp,uQ,QT,jh,ktW,dKX,Il0,ZOT,gLp,kZ,OOs,X8m,hjs,alG;t$t=function(){var t,E;return typeof CSS!=="undefined"&&((E=(t=CSS).supports)==null?void 0:E.call(t,"selector(:has(*))"))};
ELO=function(t){return t.visibility!=="hidden"&&t.display!=="none"};
UKY=function(t){if(t$t()||t.tagName!=="DETAILS"?!t.matches(p8i):t.querySelector("summary")!==null)return-1;t=t.getAttribute("tabindex")||"0";return Number(t)};
xKl=function(t){return t.some(function(E){return UKY(E)>0})};
AD0=function(t){if(t.textContent||t.ariaLabel)return!0;if(t instanceof HTMLInputElement){if(!t.labels)return!1;t=_.M(t.labels);for(var E=t.next();!E.done;E=t.next())if(E.value.textContent)return!0}return!1};
Yi_=function(t){return t.sort(function(E,p){return UKY(p)-UKY(E)})};
_.M$8=function(t){t=Array.from(t.querySelectorAll(p8i)).filter(function(E){return(ELO(E.style)?ELO(window.getComputedStyle(E)):!1)&&AD0(E)});
return xKl(t)?Yi_(t):t};
_.tD=function(t,E){if(Error.captureStackTrace)Error.captureStackTrace(this,_.tD);else{var p=Error().stack;p&&(this.stack=p)}t&&(this.message=String(t));E!==void 0&&(this.cause=E)};
Ei=function(){throw Error("E");};
mKj=function(t,E){E=String.fromCharCode.apply(null,E);return t==null?E:t+E};
HOE=function(t){var E=!1;E=E===void 0?!1:E;if(bO0){if(E&&(iOl?!t.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(t)))throw Error("F");t=(qiY||(qiY=new TextEncoder)).encode(t)}else{for(var p=0,U=new Uint8Array(3*t.length),x=0;x<t.length;x++){var A=t.charCodeAt(x);if(A<128)U[p++]=A;else{if(A<2048)U[p++]=A>>6|192;else{if(A>=55296&&A<=57343){if(A<=56319&&x<t.length){var m=t.charCodeAt(++x);if(m>=56320&&m<=57343){A=(A-55296)*1024+m-56320+65536;U[p++]=A>>18|
240;U[p++]=A>>12&63|128;U[p++]=A>>6&63|128;U[p++]=A&63|128;continue}else x--}if(E)throw Error("F");A=65533}U[p++]=A>>12|224;U[p++]=A>>6&63|128}U[p++]=A&63|128}}t=p===U.length?U:U.subarray(0,p)}return t};
xL=function(t){_.Ui.setTimeout(function(){throw t;},0)};
_.AD=function(t,E){return t.lastIndexOf(E,0)==0};
MK=function(t,E){var p=t.length-E.length;return p>=0&&t.indexOf(E,p)==p};
_.mJ=function(t){return/^[\s\xa0]*$/.test(t)};
_.iY=function(t,E){return t.indexOf(E)!=-1};
_.H8=function(t,E){return _.iY(t.toLowerCase(),E.toLowerCase())};
_.B8=function(t,E){var p=0;t=fO(String(t)).split(".");E=fO(String(E)).split(".");for(var U=Math.max(t.length,E.length),x=0;p==0&&x<U;x++){var A=t[x]||"",m=E[x]||"";do{A=/(\d*)(\D*)(.*)/.exec(A)||["","","",""];m=/(\d*)(\D*)(.*)/.exec(m)||["","","",""];if(A[0].length==0&&m[0].length==0)break;p=fl_(A[1].length==0?0:parseInt(A[1],10),m[1].length==0?0:parseInt(m[1],10))||fl_(A[2].length==0,m[2].length==0)||fl_(A[2],m[2]);A=A[3];m=m[3]}while(p==0)}return p};
fl_=function(t,E){return t<E?-1:t>E?1:0};
_.V_=function(){var t=_.Ui.navigator;return t&&(t=t.userAgent)?t:""};
BEt=function(t){if(!CO||!rE)return!1;for(var E=0;E<rE.brands.length;E++){var p=rE.brands[E].brand;if(p&&_.iY(p,t))return!0}return!1};
dE=function(t){return _.iY(_.V_(),t)};
uY=function(){return CO?!!rE&&rE.brands.length>0:!1};
w80=function(){return uY()?!1:dE("Opera")};
Rj$=function(){return uY()?!1:dE("Trident")||dE("MSIE")};
V$_=function(){return uY()?BEt("Microsoft Edge"):dE("Edg/")};
JD=function(){return dE("Firefox")||dE("FxiOS")};
_.Q0J=function(){return dE("Safari")&&!(Zl()||(uY()?0:dE("Coast"))||w80()||(uY()?0:dE("Edge"))||V$_()||(uY()?BEt("Opera"):dE("OPR"))||JD()||dE("Silk")||dE("Android"))};
Zl=function(){return uY()?BEt("Chromium"):(dE("Chrome")||dE("CriOS"))&&!(uY()?0:dE("Edge"))||dE("Silk")};
_.CYD=function(){return dE("Android")&&!(Zl()||JD()||w80()||dE("Silk"))};
j0Y=function(t){var E={};t.forEach(function(p){E[p[0]]=p[1]});
return function(p){return E[p.find(function(U){return U in E})]||""}};
rD8=function(t){var E=_.V_();if(t==="Internet Explorer"){if(Rj$())if((t=/rv: *([\d\.]*)/.exec(E))&&t[1])E=t[1];else{t="";var p=/MSIE +([\d\.]+)/.exec(E);if(p&&p[1])if(E=/Trident\/(\d.\d)/.exec(E),p[1]=="7.0")if(E&&E[1])switch(E[1]){case "4.0":t="8.0";break;case "5.0":t="9.0";break;case "6.0":t="10.0";break;case "7.0":t="11.0"}else t="7.0";else t=p[1];E=t}else E="";return E}var U=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");p=[];for(var x;x=U.exec(E);)p.push([x[1],x[2],x[3]||void 0]);
E=j0Y(p);switch(t){case "Opera":if(w80())return E(["Version","Opera"]);if(uY()?BEt("Opera"):dE("OPR"))return E(["OPR"]);break;case "Microsoft Edge":if(uY()?0:dE("Edge"))return E(["Edge"]);if(V$_())return E(["Edg"]);break;case "Chromium":if(Zl())return E(["Chrome","CriOS","HeadlessChrome"])}return t==="Firefox"&&JD()||t==="Safari"&&_.Q0J()||t==="Android Browser"&&_.CYD()||t==="Silk"&&dE("Silk")?(E=p[2])&&E[1]||"":""};
_.kt$=function(t){if(uY()&&t!=="Silk"){var E=rE.brands.find(function(p){return p.brand===t});
if(!E||!E.version)return NaN;E=E.version.split(".")}else{E=rD8(t);if(E==="")return NaN;E=E.split(".")}return E.length===0?NaN:Number(E[0])};
Oi=function(){return CO?!!rE&&!!rE.platform:!1};
_.dKt=function(){return Oi()?rE.platform==="Android":dE("Android")};
uOL=function(){return dE("iPhone")&&!dE("iPod")&&!dE("iPad")};
_.XO=function(){return uOL()||dE("iPad")||dE("iPod")};
_.JD$=function(){return Oi()?rE.platform==="macOS":dE("Macintosh")};
_.Il_=function(){return Oi()?rE.platform==="Windows":dE("Windows")};
_.gL8=function(){return Oi()?rE.platform==="Chrome OS":dE("CrOS")};
_.hD=function(t){return t[t.length-1]};
ZOl=function(t){for(var E=_.a0,p=typeof t==="string"?t.split(""):t,U=t.length-1;U>=0;U--)if(U in p&&E.call(void 0,p[U],U,t))return U;return-1};
_.zt=function(t,E){return _.FO(t,E)>=0};
_.OOO=function(t,E){_.zt(t,E)||t.push(E)};
_.NK=function(t,E){E=_.FO(t,E);var p;(p=E>=0)&&_.X8L(t,E);return p};
_.X8L=function(t,E){Array.prototype.splice.call(t,E,1)};
_.Dl=function(t){var E=t.length;if(E>0){for(var p=Array(E),U=0;U<E;U++)p[U]=t[U];return p}return[]};
_.P8=function(t,E){for(var p=1;p<arguments.length;p++){var U=arguments[p];if(_.LO(U)){var x=t.length||0,A=U.length||0;t.length=x+A;for(var m=0;m<A;m++)t[x+m]=U[m]}else t.push(U)}};
_.alY=function(t,E,p,U){Array.prototype.splice.apply(t,hjO(arguments,1))};
hjO=function(t,E,p){return arguments.length<=2?Array.prototype.slice.call(t,E):Array.prototype.slice.call(t,E,p)};
eji=function(t,E){E=E||t;for(var p=0,U=0,x={};U<t.length;){var A=t[U++],m=_.o0(A)?"o"+_.W8(A):(typeof A).charAt(0)+A;Object.prototype.hasOwnProperty.call(x,m)||(x[m]=!0,E[p++]=A)}E.length=p};
_.zjl=function(t,E,p){p=p||_.FJi;for(var U=0,x=t.length,A;U<x;){var m=U+(x-U>>>1);var b=p(E,t[m]);b>0?U=m+1:(x=m,A=!b)}return A?U:-U-1};
_.y_=function(t,E,p){if(!_.LO(t)||!_.LO(E)||t.length!=E.length)return!1;var U=t.length;p=p||llE;for(var x=0;x<U;x++)if(!p(t[x],E[x]))return!1;return!0};
_.FJi=function(t,E){return t>E?1:t<E?-1:0};
llE=function(t,E){return t===E};
GtK=function(t,E,p){E=Array.prototype.splice.call(t,E,1);Array.prototype.splice.call(t,p,0,E[0])};
_.S$=function(t,E){E===void 0&&(E=0);nLD();E=NEE[E];for(var p=Array(Math.floor(t.length/3)),U=E[64]||"",x=0,A=0;x<t.length-2;x+=3){var m=t[x],b=t[x+1],f=t[x+2],B=E[m>>2];m=E[(m&3)<<4|b>>4];b=E[(b&15)<<2|f>>6];f=E[f&63];p[A++]=B+m+b+f}B=0;f=U;switch(t.length-x){case 2:B=t[x+1],f=E[(B&15)<<2]||U;case 1:t=t[x],p[A]=E[t>>2]+E[(t&3)<<4|B>>4]+f+U}return p.join("")};
s0E=function(t){var E="";DK_(t,function(p){E+=String.fromCharCode(p)});
return E};
_.LJj=function(t){var E=[];DK_(t,function(p){E.push(p)});
return E};
_.c8=function(t){var E=t.length,p=E*3/4;p%3?p=Math.floor(p):_.iY("=.",t[E-1])&&(p=_.iY("=.",t[E-2])?p-2:p-1);var U=new Uint8Array(p),x=0;DK_(t,function(A){U[x++]=A});
return x!==p?U.subarray(0,x):U};
DK_=function(t,E){function p(f){for(;U<t.length;){var B=t.charAt(U++),R=t3[B];if(R!=null)return R;if(!_.mJ(B))throw Error("H`"+B);}return f}
nLD();for(var U=0;;){var x=p(-1),A=p(0),m=p(64),b=p(64);if(b===64&&x===-1)break;E(x<<2|A>>4);m!=64&&(E(A<<4&240|m>>2),b!=64&&E(m<<6&192|b))}};
nLD=function(){if(!t3){t3={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),E=["+/=","+/","-_=","-_.","-_"],p=0;p<5;p++){var U=t.concat(E[p].split(""));NEE[p]=U;for(var x=0;x<U.length;x++){var A=U[x];t3[A]===void 0&&(t3[A]=x)}}}};
TEL=function(t){return PY$[t]||""};
$KL=function(t){if(!oL0)return _.c8(t);t=WJJ.test(t)?t.replace(WJJ,TEL):t;t=atob(t);for(var E=new Uint8Array(t.length),p=0;p<t.length;p++)E[p]=t.charCodeAt(p);return E};
KJY=function(t,E){t.__closure__error__context__984382||(t.__closure__error__context__984382={});t.__closure__error__context__984382.severity=E};
_.Ur=function(t){t=Error(t);KJY(t,"warning");return t};
yDO=function(t,E){if(t!=null){var p;var U=(p=vLJ)!=null?p:vLJ={};p=U[t]||0;p>=E||(U[t]=p+1,t=Error(),KJY(t,"incident"),xL(t))}};
A3=function(t,E,p){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(p===void 0?0:p)&&Symbol.for&&t?Symbol.for(t):t!=null?Symbol(t):Symbol():E};
mr=function(t,E){Ym||_.Mf in t||SiO(t,cDi);t[_.Mf]|=E};
Hp=function(t,E){Ym||_.Mf in t||SiO(t,cDi);t[_.Mf]=E};
tWi=function(t){if(4&t)return 512&t?512:1024&t?1024:0};
Bp=function(t){mr(t,34);return t};
wZ=function(t){mr(t,8192);return t};
EmY=function(t){mr(t,32);return t};
uG=function(){return typeof BigInt==="function"};
Or=function(t,E){return E===void 0?t.copyOnWrite!==Is&&!!(2&(t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Mf]|0)):!!(2&E)&&t.copyOnWrite!==Is};
_.F4=function(t,E){if(t!=null)if(typeof t==="string")t=t?new X4(t,as):_.eW();else if(t.constructor!==X4)if(ppJ&&t!=null&&t instanceof Uint8Array)t=t.length?new X4(new Uint8Array(t),as):_.eW();else{if(!E)throw Error();t=void 0}return t};
Uf8=function(t,E){if(typeof E!=="number"||E<0||E>=t.length)throw Error();};
xfJ=function(t,E,p){var U=E&128?0:-1,x=t.length,A;if(A=!!x)A=t[x-1],A=A!=null&&typeof A==="object"&&A.constructor===Object;var m=x+(A?-1:0);for(E=E&128?1:0;E<m;E++)p(E-U,t[E]);if(A){t=t[x-1];for(var b in t)!isNaN(b)&&p(+b,t[b])}};
GX=function(t){return t&128?lG:void 0};
_.MWi=function(t){var E=A3_;if(!YrE(t)){var p,U;E=(U=(p=typeof E==="function"?E():E)==null?void 0:p.concat("\n"))!=null?U:"";throw Error("K`"+E+"`"+String(t));}};
ns=function(t){t.isGuard_doNotManuallySetPrettyPlease=!0;return t};
bsO=function(){var t=mfJ;return ns(function(E){for(var p in t)if(E===t[p]&&!/^[0-9]+$/.test(p))return!0;return!1})};
_.Nf=function(t){var E=t;if(is8(E)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(E))throw Error(String(E));}else if(qri(E)&&!Number.isSafeInteger(E))throw Error(String(E));return HsO?BigInt(t):t=fTO(t)?t?"1":"0":is8(t)?t.trim()||"0":String(t)};
BZO=function(t,E){if(t.length>E.length)return!1;if(t.length<E.length||t===E)return!0;for(var p=0;p<t.length;p++){var U=t[p],x=E[p];if(U>x)return!1;if(U<x)return!0}};
wpl=function(t){var E=t>>>0;sr=E;Ls=(t-E)/4294967296>>>0};
Pp=function(t){if(t<0){wpl(-t);var E=_.M(RoJ(sr,Ls));t=E.next().value;E=E.next().value;sr=t>>>0;Ls=E>>>0}else wpl(t)};
QsJ=function(t){var E=VWY||(VWY=new DataView(new ArrayBuffer(8)));E.setFloat32(0,+t,!0);Ls=0;sr=E.getUint32(0,!0)};
CGt=function(t,E){var p=E*4294967296+(t>>>0);return Number.isSafeInteger(p)?p:_.TX(t,E)};
js8=function(t,E){return _.Nf(uG()?BigInt.asUintN(64,(BigInt(E>>>0)<<BigInt(32))+BigInt(t>>>0)):_.TX(t,E))};
Ks=function(t,E){var p=E&2147483648;p&&(t=~t+1>>>0,E=~E>>>0,t==0&&(E=E+1>>>0));t=CGt(t,E);return typeof t==="number"?p?-t:t:p?"-"+t:t};
r38=function(t,E){return uG()?_.Nf(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(E))<<BigInt(32))+BigInt.asUintN(32,BigInt(t)))):_.Nf(_.y0(t,E))};
kX8=function(t){var E=sr,p=Ls,U=p>>31;p=(p<<1|E>>>31)^U;t(E<<1^U,p)};
u4t=function(t,E){return dfL(t,E,Ks)};
dfL=function(t,E,p){var U=-(t&1);t=(t>>>1|E<<31)^U;E=E>>>1^U;return p(t,E)};
_.TX=function(t,E){E>>>=0;t>>>=0;if(E<=2097151)var p=""+(4294967296*E+t);else uG()?p=""+(BigInt(E)<<BigInt(32)|BigInt(t)):(p=(t>>>24|E<<8)&16777215,E=E>>16&65535,t=(t&16777215)+p*6777216+E*6710656,p+=E*8147497,E*=2,t>=1E7&&(p+=t/1E7>>>0,t%=1E7),p>=1E7&&(E+=p/1E7>>>0,p%=1E7),p=E+J3D(p)+J3D(t));return p};
J3D=function(t){t=String(t);return"0000000".slice(t.length)+t};
_.y0=function(t,E){E&2147483648?uG()?t=""+(BigInt(E|0)<<BigInt(32)|BigInt(t>>>0)):(E=_.M(RoJ(t,E)),t=E.next().value,E=E.next().value,t="-"+_.TX(t,E)):t=_.TX(t,E);return t};
cp=function(t){if(t.length<16)Pp(Number(t));else if(uG())t=BigInt(t),sr=Number(t&BigInt(4294967295))>>>0,Ls=Number(t>>BigInt(32)&BigInt(4294967295));else{var E=+(t[0]==="-");Ls=sr=0;for(var p=t.length,U=E,x=(p-E)%6+E;x<=p;U=x,x+=6)U=Number(t.slice(U,x)),Ls*=1E6,sr=sr*1E6+U,sr>=4294967296&&(Ls+=Math.trunc(sr/4294967296),Ls>>>=0,sr>>>=0);E&&(E=_.M(RoJ(sr,Ls)),t=E.next().value,E=E.next().value,sr=t,Ls=E)}};
RoJ=function(t,E){E=~E;t?t=~t+1:E+=1;return[t,E]};
td=function(t){return Array.prototype.slice.call(t)};
_.UC=function(t,E){throw Error(E===void 0?"unexpected value "+t+"!":E);};
_.xe=function(t){if(t!=null&&typeof t!=="number")throw Error("L`"+typeof t+"`"+t);return t};
_.Ad=function(t){if(t==null||typeof t==="number")return t;if(t==="NaN"||t==="Infinity"||t==="-Infinity")return Number(t)};
ITO=function(t){if(t!=null&&typeof t!=="boolean")throw Error("M`"+_.Ye(t)+"`"+t);return t};
_.gmL=function(t){if(t==null||typeof t==="boolean")return t;if(typeof t==="number")return!!t};
_.mo=function(t){switch(typeof t){case "bigint":return!0;case "number":return ML(t);case "string":return ZsE.test(t);default:return!1}};
_.b8=function(t){if(!ML(t))throw _.Ur("enum");return t|0};
_.HK=function(t){return t==null?t:ML(t)?t|0:void 0};
OsD=function(t){if(typeof t!=="number")throw _.Ur("int32");if(!ML(t))throw _.Ur("int32");return t|0};
_.fl=function(t){return t==null?t:OsD(t)};
_.BK=function(t){if(t==null)return t;if(typeof t==="string"&&t)t=+t;else if(typeof t!=="number")return;return ML(t)?t|0:void 0};
_.XpO=function(t){if(t==null)return t;if(typeof t==="string"&&t)t=+t;else if(typeof t!=="number")return;return ML(t)?t>>>0:void 0};
Frj=function(t){var E=0;E=E===void 0?0:E;if(!_.mo(t))throw _.Ur("int64");var p=typeof t;switch(E){case 512:switch(p){case "string":return wt(t);case "bigint":return String(Cl(64,t));default:return hot(t)}case 1024:switch(p){case "string":return aTL(t);case "bigint":return _.Nf(Cl(64,t));default:return eol(t)}case 0:switch(p){case "string":return wt(t);case "bigint":return _.Nf(Cl(64,t));default:return rt(t)}default:return _.UC(E,"Unknown format requested type for int64")}};
ke=function(t){return t==null?t:Frj(t)};
zo$=function(t){var E=t.length;if(t[0]==="-"?E<20||E===20&&t<="-9223372036854775808":E<19||E===19&&t<="9223372036854775807")return t;cp(t);return _.y0(sr,Ls)};
lT_=function(t){if(t[0]==="-")var E=!1;else E=t.length,E=E<20?!0:E===20&&t<="18446744073709551615";if(E)return t;cp(t);return _.TX(sr,Ls)};
rt=function(t){t=dt(t);u8(t)||(Pp(t),t=Ks(sr,Ls));return t};
_.GX$=function(t){t=dt(t);t>=0&&u8(t)||(Pp(t),t=CGt(sr,Ls));return t};
hot=function(t){t=dt(t);u8(t)?t=String(t):(Pp(t),t=_.y0(sr,Ls));return t};
_.nmO=function(t){t=dt(t);t>=0&&u8(t)?t=String(t):(Pp(t),t=_.TX(sr,Ls));return t};
wt=function(t){var E=dt(Number(t));if(u8(E))return String(E);E=t.indexOf(".");E!==-1&&(t=t.substring(0,E));return zo$(t)};
aTL=function(t){var E=dt(Number(t));if(u8(E))return _.Nf(E);E=t.indexOf(".");E!==-1&&(t=t.substring(0,E));return uG()?_.Nf(Cl(64,BigInt(t))):_.Nf(zo$(t))};
eol=function(t){return u8(t)?_.Nf(rt(t)):_.Nf(hot(t))};
_.NZD=function(t){return u8(t)?_.Nf(_.GX$(t)):_.Nf(_.nmO(t))};
_.DfJ=function(t){var E=dt(Number(t));if(u8(E)&&E>=0)return String(E);E=t.indexOf(".");E!==-1&&(t=t.substring(0,E));return lT_(t)};
_.ss0=function(t){var E=dt(Number(t));if(u8(E)&&E>=0)return _.Nf(E);E=t.indexOf(".");E!==-1&&(t=t.substring(0,E));return uG()?_.Nf((0,_.It)(64,BigInt(t))):_.Nf(lT_(t))};
_.PGY=function(t){if(t==null)return t;if(typeof t==="bigint")return Lrl(t)?t=Number(t):(t=Cl(64,t),t=Lrl(t)?Number(t):String(t)),t;if(_.mo(t))return typeof t==="number"?rt(t):wt(t)};
TZ_=function(t,E){E=E===void 0?!1:E;var p=typeof t;if(t==null)return t;if(p==="bigint")return String(Cl(64,t));if(_.mo(t))return p==="string"?wt(t):E?hot(t):rt(t)};
_.omj=function(t){var E=typeof t;if(t==null)return t;if(E==="bigint")return _.Nf(Cl(64,t));if(_.mo(t))return E==="string"?aTL(t):eol(t)};
WrO=function(t){if(t==null)return t;var E=typeof t;if(E==="bigint")return String(Cl(64,t));if(_.mo(t)){if(E==="string")return wt(t);if(E==="number")return rt(t)}};
$fD=function(t){if(t==null)return t;var E=typeof t;if(E==="bigint")return String((0,_.It)(64,t));if(_.mo(t)){if(E==="string")return _.DfJ(t);if(E==="number")return _.GX$(t)}};
_.gt=function(t){if(typeof t!=="string")throw Error();return t};
Z9=function(t){if(t!=null&&typeof t!=="string")throw Error();return t};
_.hd=function(t){return t==null||typeof t==="string"?t:void 0};
y3E=function(t,E,p,U){if(t!=null&&t[at]===eg)return t;if(!Array.isArray(t))return p?U&2?E[Krt]||(E[Krt]=vmD(E)):new E:void 0;p=t[_.Mf]|0;U=p|U&32|U&2;U!==p&&Hp(t,U);return new E(t)};
vmD=function(t){t=new t;Bp(t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return t};
SrJ=function(t,E,p){t=E?OsD(t):_.BK(t);return t==null?p?0:void 0:t|0};
c3O=function(t){return t};
tgO=function(t){return t};
pKE=function(t,E,p,U,x,A){t=y3E(t,U,p,A);x&&(t=EeD(t));return t};
ULL=function(t){return[t,this.get(t)]};
YCi=function(){return xLO||(xLO=new F7(Bp([]),void 0,void 0,void 0,Ad$))};
Mgj=function(t){var E=z5(G5);return E?t[E]:void 0};
ilD=function(t,E){var p=p===void 0?!1:p;if(z5(mLL)&&z5(G5)&&void 0===mLL){var U=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=U[G5];if(!x)return;if(x=x.reviveUnknownFields)try{x(U,E,bl8);return}catch(A){xL(A)}}p&&(t=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(p=z5(G5))&&p in t&&(t=t[p])&&delete t[E])};
Hl0=function(t,E){var p=z5(G5),U;Ym&&p&&((U=t[p])==null?void 0:U[E])!=null&&yDO(qCE,3)};
BtK=function(t,E){E<100||yDO(f9D,1)};
C8t=function(t,E,p,U){var x=U!==void 0;U=!!U;var A=z5(G5),m;!x&&Ym&&A&&(m=t[A])&&wK_(m,BtK);A=[];var b=t.length;m=4294967295;var f=!1,B=!!(E&64),R=B?E&128?0:-1:void 0;if(!(E&1)){var V=b&&t[b-1];V!=null&&typeof V==="object"&&V.constructor===Object?(b--,m=b):V=void 0;if(B&&!(E&128)&&!x){f=!0;var Q;m=((Q=RbY)!=null?Q:c3O)(m-R,R,t,V,void 0)+R}}E=void 0;for(Q=0;Q<b;Q++){var C=t[Q];if(C!=null&&(C=p(C,U))!=null)if(B&&Q>=m){var d=Q-R,I=void 0;((I=E)!=null?I:E={})[d]=C}else A[Q]=C}if(V)for(var O in V)b=V[O],
b!=null&&(b=p(b,U))!=null&&(Q=+O,C=void 0,B&&!Number.isNaN(Q)&&(C=Q+R)<m?A[C]=b:(Q=void 0,((Q=E)!=null?Q:E={})[O]=b));E&&(f?A.push(E):A[m]=E);x&&z5(G5)&&(t=Mgj(t))&&t instanceof VgK&&(A[G5]=Qtt(t));return A};
rdE=function(t){t[0]=jtK(t[0]);t[1]=jtK(t[1]);return t};
jtK=function(t){switch(typeof t){case "number":return Number.isFinite(t)?t:""+t;case "bigint":return Lrl(t)?Number(t):""+t;case "boolean":return t?1:0;case "object":if(Array.isArray(t)){var E=t[_.Mf]|0;return t.length===0&&E&1?void 0:C8t(t,E,jtK)}if(t!=null&&t[at]===eg)return k58(t);if(t instanceof X4){E=t.JSC$9096_value_;if(E==null)t="";else if(typeof E==="string")t=E;else{if(oL0){for(var p="",U=0,x=E.length-10240;U<x;)p+=String.fromCharCode.apply(null,E.subarray(U,U+=10240));p+=String.fromCharCode.apply(null,
U?E.subarray(U):E);E=btoa(p)}else E=_.S$(E);t=t.JSC$9096_value_=E}return t}if(t instanceof F7)return t=t.size!==0?dLD(t,rdE):void 0,t;return}return t};
D9=function(t,E){if(E){RbY=E==null||E===c3O||E[u7O]!==Jdt?c3O:E;try{return k58(t)}finally{RbY=void 0}}return k58(t)};
k58=function(t){t=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return C8t(t,t[_.Mf]|0,jtK)};
ZlD=function(t){switch(typeof t){case "boolean":return I9L||(I9L=[0,void 0,!0]);case "number":return t>0?void 0:t===0?geO||(geO=[0,void 0]):[-t,void 0];case "string":return[0,t];case "object":return t}};
sC=function(t,E){return Olj(t,E[0],E[1])};
_.Ll=function(t,E,p){return Olj(t,E,p,2048)};
Olj=function(t,E,p,U){U=U===void 0?0:U;if(t==null){var x=32;p?(t=[p],x|=128):t=[];E&&(x=x&-16760833|(E&1023)<<14)}else{if(!Array.isArray(t))throw Error("O");x=t[_.Mf]|0;if(XKL&&1&x)throw Error("P");2048&x&&!(2&x)&&hb_();if(x&256)throw Error("Q");if(x&64)return(x|U)!==x&&Hp(t,x|U),t;if(p&&(x|=128,p!==t[0]))throw Error("R");a:{p=t;x|=64;var A=p.length;if(A){var m=A-1,b=p[m];if(b!=null&&typeof b==="object"&&b.constructor===Object){E=x&128?0:-1;m-=E;if(m>=1024)throw Error("T");for(var f in b)A=+f,A<m&&
(p[A+E]=b[f],delete b[f]);x=x&-16760833|(m&1023)<<14;break a}}if(E){f=Math.max(E,A-(x&128?0:-1));if(f>1024)throw Error("U");x=x&-16760833|(f&1023)<<14}}}Hp(t,x|64|U);return t};
hb_=function(){if(XKL)throw Error("S");yDO(a9E,5)};
zbE=function(t,E){if(typeof t!=="object")return t;if(Array.isArray(t)){var p=t[_.Mf]|0;return t.length===0&&p&1?void 0:ebE(t,p,E)}if(t!=null&&t[at]===eg)return FoY(t);if(t instanceof F7){E=t.arrayState;if(E&2)return t;if(!t.size)return;p=Bp(dLD(t));if(t.valueCtor)for(t=0;t<p.length;t++){var U=p[t],x=U[1];x==null||typeof x!=="object"?x=void 0:x!=null&&x[at]===eg?x=FoY(x):Array.isArray(x)?x=ebE(x,x[_.Mf]|0,!!(E&32)):x=void 0;U[1]=x}return p}if(t instanceof X4)return t};
ebE=function(t,E,p){if(E&2)return t;!p||4096&E||16&E?t=PK(t,E,!1,p&&!(E&16)):(mr(t,34),E&4&&Object.freeze(t));return t};
l9K=function(t,E,p){t=new t.constructor(E);p&&(t.copyOnWrite=Is);t.noLegacyNull=Is;return t};
FoY=function(t){var E=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,p=E[_.Mf]|0;return Or(t,p)?t:G5O(t,E,p)?l9K(t,E):PK(E,p)};
PK=function(t,E,p,U){U!=null||(U=!!(34&E));t=C8t(t,E,zbE,U);U=32;p&&(U|=2);E=E&16769217|U;Hp(t,E);return t};
EeD=function(t){var E=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,p=E[_.Mf]|0;return Or(t,p)?G5O(t,E,p)?l9K(t,E,!0):new t.constructor(PK(E,p,!1)):t};
ot=function(t){if(t.copyOnWrite!==Is)return!1;var E=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;E=PK(E,E[_.Mf]|0);mr(E,2048);t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=E;t.copyOnWrite=void 0;t.noLegacyNull=void 0;return!0};
WK=function(t){if(!ot(t)&&Or(t,t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Mf]|0))throw Error();};
$e=function(t,E){E===void 0&&(E=t[_.Mf]|0);E&32&&!(E&4096)&&Hp(t,E|4096)};
G5O=function(t,E,p){return p&2?!0:p&32&&!(p&4096)?(Hp(E,p|2),t.copyOnWrite=Is,!0):!1};
vK=function(t,E,p,U,x){var A=p+(x?0:-1),m=t.length-1;if(m>=1+(x?0:-1)&&A>=m){var b=t[m];if(b!=null&&typeof b==="object"&&b.constructor===Object)return b[p]=U,E}if(A<=m)return t[A]=U,E;if(U!==void 0){var f;m=((f=E)!=null?f:E=t[_.Mf]|0)>>14&1023||536870912;p>=m?U!=null&&(A={},t[m+(x?0:-1)]=(A[p]=U,A)):t[A]=U}return E};
_.cK=function(t,E,p,U,x){var A=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m=A[_.Mf]|0;U=Or(t,m)?1:U;x=!!x||U===3;U===2&&ot(t)&&(A=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m=A[_.Mf]|0);t=neJ(A,E);var b=t===yJ?7:t[_.Mf]|0,f=Ntj(b,m);var B=4&f?!1:!0;if(B){4&f&&(t=td(t),b=0,f=Sg(f,m),m=vK(A,m,E,t));for(var R=0,V=0;R<t.length;R++){var Q=p(t[R]);Q!=null&&(t[V++]=Q)}V<R&&(t.length=V);p=(f|4)&-513;f=p&=-1025;f&=-4097}f!==b&&(Hp(t,f),2&f&&Object.freeze(t));return t=DLt(t,f,A,
m,E,U,B,x)};
DLt=function(t,E,p,U,x,A,m,b){var f=E;A===1||(A!==4?0:2&E||!(16&E)&&32&U)?tG(E)||(E|=!t.length||m&&!(4096&E)||32&U&&!(4096&E||16&E)?2:256,E!==f&&Hp(t,E),Object.freeze(t)):(A===2&&tG(E)&&(t=td(t),f=0,E=Sg(E,U),U=vK(p,U,x,t)),tG(E)||(b||(E|=16),E!==f&&Hp(t,E)));2&E||!(4096&E||16&E)||$e(p,U);return t};
neJ=function(t,E,p){t=US(t,E,p);return Array.isArray(t)?t:yJ};
Ntj=function(t,E){2&E&&(t|=2);return t|1};
tG=function(t){return!!(2&t)&&!!(4&t)||!!(256&t)};
stY=function(t){return _.F4(t,!0)};
LoJ=function(t){t=td(t);for(var E=0;E<t.length;E++){var p=t[E]=td(t[E]);Array.isArray(p[1])&&(p[1]=Bp(p[1]))}return wZ(t)};
_.P8i=function(t,E,p,U,x){var A=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m=A[_.Mf]|0;var b=Or(t,m);a:{!b&&ot(t)&&(A=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m=A[_.Mf]|0);var f=US(A,E);t=!1;if(f==null){if(b){E=YCi();break a}f=[]}else if(f.constructor===F7)if(f.arrayState&2&&!b)f=dLD(f);else{E=f;break a}else Array.isArray(f)?t=!!((f[_.Mf]|0)&2):f=[];if(b){if(!f.length){E=YCi();break a}t||(t=!0,Bp(f))}else t&&(t=!1,wZ(f),f=LoJ(f));!t&&m&32&&EmY(f);U=new F7(f,p,U,x);m=
vK(A,m,E,U);t||$e(A,m);E=U}!b&&p&&(E.callToMutableOnAccess=!0);return E};
_.xI=function(t,E,p,U){WK(t);var x=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=x[_.Mf]|0;if(p==null)return vK(x,A,E),t;var m=p===yJ?7:p[_.Mf]|0,b=m,f=tG(m),B=f||Object.isFrozen(p);f||(m=0);B||(p=td(p),b=0,m=Sg(m,A),B=!1);m|=5;var R;f=(R=tWi(m))!=null?R:0;for(R=0;R<p.length;R++){var V=p[R],Q=U(V,f);Object.is(V,Q)||(B&&(p=td(p),b=0,m=Sg(m,A),B=!1),p[R]=Q)}m!==b&&(B&&(p=td(p),m=Sg(m,A)),Hp(p,m));vK(x,A,E,p);return t};
_.AG=function(t,E,p,U,x){WK(t);var A=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;vK(A,A[_.Mf]|0,E,(U==="0"?Number(p)===0:p===U)?void 0:p,x);return t};
_.YI=function(t,E,p){if(E&2)throw Error();var U=GX(E),x=neJ(t,p,U),A=x===yJ?7:x[_.Mf]|0,m=Ntj(A,E);if(2&m||tG(m)||16&m)m===A||tG(m)||Hp(x,m),x=td(x),A=0,m=Sg(m,E),vK(t,E,p,x,U);m&=-13;m!==A&&Hp(x,m);return x};
TtD=function(t){if(Ym){var E;return(E=t[bF])!=null?E:t[bF]=new Map}if(bF in t)return t[bF];E=new Map;Object.defineProperty(t,bF,{value:E});return E};
WoO=function(t,E,p,U,x){var A=TtD(t),m=oeO(A,t,E,p,x);m!==U&&(m&&(E=vK(t,E,m,void 0,x)),A.set(p,U));return E};
oeO=function(t,E,p,U,x){var A=t.get(U);if(A!=null)return A;for(var m=A=0;m<U.length;m++){var b=U[m];US(E,b,x)!=null&&(A!==0&&(p=vK(E,p,A,void 0,x)),A=b)}t.set(U,A);return A};
$L0=function(t,E,p,U,x){var A=!1;U=US(t,U,x,function(m){var b=y3E(m,p,!1,E);A=b!==m&&b!=null;return b});
if(U!=null)return A&&!Or(U)&&$e(t,E),U};
Ko$=function(t,E,p,U,x,A,m,b){var f=Or(t,p);A=f?1:A;m=!!m||A===3;f=b&&!f;(A===2||f)&&ot(t)&&(E=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,p=E[_.Mf]|0);t=neJ(E,x);var B=t===yJ?7:t[_.Mf]|0,R=Ntj(B,p);if(b=!(4&R)){var V=t,Q=p,C=!!(2&R);C&&(Q|=2);for(var d=!C,I=!0,O=0,a=0;O<V.length;O++){var F=y3E(V[O],U,!1,Q);if(F instanceof U){if(!C){var L=Or(F);d&&(d=!L);I&&(I=L)}V[a++]=F}}a<O&&(V.length=a);R|=4;R=I?R&-4097:R|4096;R=d?R|8:R&-9}R!==B&&(Hp(t,R),2&R&&Object.freeze(t));if(f&&!(8&R||!t.length&&
(A===1||(A!==4?0:2&R||!(16&R)&&32&p)))){tG(R)&&(t=td(t),R=Sg(R,p),p=vK(E,p,x,t));U=t;f=R;for(B=0;B<U.length;B++)V=U[B],R=EeD(V),V!==R&&(U[B]=R);f|=8;R=f=U.length?f|4096:f&-4097;Hp(t,R)}return t=DLt(t,R,E,p,x,A,b,m)};
veK=function(t){t==null&&(t=void 0);return t};
Sg=function(t,E){return t=(2&E?t|2:t&-3)&-273};
_.ydt=function(t,E,p,U,x){WK(t);E=_.cK(t,E,x,2,!0);var A;x=(A=tWi(E===yJ?7:E[_.Mf]|0))!=null?A:0;E.push(p(U,x));return t};
SC$=function(t,E,p,U,x,A,m){WK(t);var b=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;t=Ko$(t,b,b[_.Mf]|0,p,E,2,!0);if(A&&m)x!=null||(x=t.length-1),Uf8(t,x),t.splice(x,A),t.length||(t[_.Mf]&=-4097);else{if(A){if(typeof x!=="number"||x<0||x>t.length)throw Error();}else U=U!=null?U:new p;x!=void 0?t.splice(x,A,U):t.push(U);x=p=t===yJ?7:t[_.Mf]|0;(U=Or(U))?(p&=-9,t.length===1&&(p&=-4097)):p|=4096;p!==x&&Hp(t,p);U||$e(b)}};
t8O=function(t,E){if(typeof t==="string")return new q2($KL(t),E);if(Array.isArray(t))return new q2(new Uint8Array(t),E);if(t.constructor===Uint8Array)return new q2(t,!1);if(t.constructor===ArrayBuffer)return t=new Uint8Array(t),new q2(t,!1);if(t.constructor===X4)return E=cdY(t)||new Uint8Array(0),new q2(E,!0,t);if(t instanceof Uint8Array)return t=t.constructor===Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new q2(t,!1);throw Error();};
pw0=function(t){switch(typeof t){case "string":EIi(t)}};
x2i=function(t){switch(typeof t){case "string":U2K(t)}};
Hw=function(){var t=function(){throw Error();};
Object.setPrototypeOf(t,t.prototype);return t};
YSt=function(t,E){var p=p===void 0?AGO:p;return new ft(t,E,p)};
btJ=function(t,E,p,U,x){M8i(t,p,m2K(E,U),x)};
Bw=function(t,E,p,U){var x=U[t];if(x)return x;x={};x.binaryFields=U;x.messageMetadata=ZlD(U[0]);var A=U[1],m=1;A&&A.constructor===Object&&(x.extensions=A,A=U[++m],typeof A==="function"&&(x.isMessageSet=!0,itY!=null||(itY=A),qSi!=null||(qSi=U[m+1]),A=U[m+=2]));for(var b={};A&&Ht$(A);){for(var f=0;f<A.length;f++)b[A[f]]=A;A=U[++m]}for(f=1;A!==void 0;){typeof A==="number"&&(f+=A,A=U[++m]);var B=void 0;if(A instanceof ft)var R=A;else R=fki,m--;A=void 0;if((A=R)==null?0:A.$$isMsg){A=U[++m];B=U;var V=m;
typeof A==="function"&&(A=A(),B[V]=A);B=A}A=U[++m];V=f+1;typeof A==="number"&&A<0&&(V-=A,A=U[++m]);for(;f<V;f++){var Q=b[f];B?p(x,f,R,B,Q):E(x,f,R,Q)}}return U[t]=x};
Ht$=function(t){return Array.isArray(t)&&!!t.length&&typeof t[0]==="number"&&t[0]>0};
wwJ=function(t){return Array.isArray(t)?t[0]instanceof ft?t:[B6O,t]:[t,void 0]};
m2K=function(t,E){if(t instanceof _.w6)return t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(t))return sC(t,E)};
RcD=function(t,E,p,U){var x=p.$$binaryReaderFn;t[E]=U?function(A,m,b){return x(A,m,b,U)}:x};
Q$L=function(t,E,p,U,x){var A=p.$$binaryReaderFn,m,b;t[E]=function(f,B,R){return A(f,B,R,b||(b=Bw(V8J,RcD,Q$L,U).messageMetadata),m||(m=CF8(U)),x)}};
CF8=function(t){var E=t[j$Y];if(E!=null)return E;var p=Bw(V8J,RcD,Q$L,t);E=p.isMessageSet?function(U,x){return itY(U,x,p)}:function(U,x){for(;rGL(x)&&x.nextWireType_!=4;){var A=x.nextField_,m=p[A];
if(m==null){var b=p.extensions;b&&(b=b[A])&&(b=kCY(b),b!=null&&(m=p[A]=b))}if(m==null||!m(x,U,A)){b=x;m=b.fieldCursor_;d2O(b);if(b.discardUnknownFields)var f=void 0;else{var B=b.decoder_.cursor_-m;b.decoder_.cursor_=m;f=uUK(b.decoder_,B)}B=b=m=void 0;var R=U;f&&((m=(b=(B=R[G5])!=null?B:R[G5]=new VgK)[A])!=null?m:b[A]=[]).push(f)}}if(U=Mgj(U))U.reviveUnknownFields=p.binaryFields[JGY];return!0};
t[j$Y]=E;t[JGY]=IkL.bind(t);return E};
IkL=function(t,E,p,U){var x=this[V8J],A=this[j$Y],m=sC(void 0,x.messageMetadata),b=Mgj(t);if(b){var f=!1,B=x.extensions;if(B){x=function(d,I,O){if(O.length!==0)if(B[I])for(d=_.M(O),I=d.next();!I.done;I=d.next()){I=gIL(I.value);try{f=!0,A(m,I)}finally{I.free()}}else U==null||U(t,I,O)};
if(E==null)wK_(b,x);else if(b!=null){var R=b[E];R&&x(b,E,R)}if(f){var V=t[_.Mf]|0;if(V&2&&V&2048&&(p==null||!p.reviveIntoImmutable))throw Error();var Q=GX(V),C=function(d,I){if(US(t,d,Q)!=null)switch(p==null?void 0:p.resolutionBehavior){case 1:return;default:throw Error();}I!=null&&(V=vK(t,V,d,I,Q));delete b[d]};
E==null?xfJ(m,m[_.Mf]|0,function(d,I){C(d,I)}):C(E,US(m,E,Q))}}}};
kCY=function(t){t=wwJ(t);var E=t[0].$$binaryReaderFn;if(t=t[1]){var p=CF8(t),U=Bw(V8J,RcD,Q$L,t).messageMetadata;return function(x,A,m){return E(x,A,m,U,p)}}return E};
Zt8=function(t,E,p){t[E]=p.$$binaryWriterFn};
Xw$=function(t,E,p,U){var x,A,m=p.$$binaryWriterFn;t[E]=function(b,f,B){return m(b,f,B,A||(A=Bw(OtK,Zt8,Xw$,U).messageMetadata),x||(x=hct(U)))}};
hct=function(t){var E=t[akE];if(!E){var p=Bw(OtK,Zt8,Xw$,t);E=function(U,x){return ec_(U,x,p)};
t[akE]=E}return E};
ec_=function(t,E,p){xfJ(t,t[_.Mf]|0,function(U,x){if(x!=null){var A=F6O(p,U);A?A(E,x,U):U<500||yDO(zcj,3)}});
(t=Mgj(t))&&wK_(t,function(U,x,A){R$(E,E.encoder_.end());for(U=0;U<A.length;U++)R$(E,cdY(A[U])||new Uint8Array(0))})};
F6O=function(t,E){var p=t[E];if(p)return p;if(p=t.extensions)if(p=p[E]){p=wwJ(p);var U=p[0].$$binaryWriterFn;if(p=p[1]){var x=hct(p),A=Bw(OtK,Zt8,Xw$,p).messageMetadata;p=t.isMessageSet?qSi(A,x):function(m,b,f){return U(m,b,f,A,x)}}else p=U;
return t[E]=p}};
_.lkL=function(t,E,p){if(Array.isArray(E)){var U=E[_.Mf]|0;if(U&4)return E;for(var x=0,A=0;x<E.length;x++){var m=t(E[x]);m!=null&&(E[A++]=m)}A<x&&(E.length=A);t=U|1;p&&(t=(t|4)&-1537);t!==U&&Hp(E,t);p&&t&2&&Object.freeze(E);return E}};
_.Q$=function(t,E,p){return new ft(t,E,p)};
_.GCL=function(t,E,p){return new ft(t,E,p)};
_.Ct=function(t,E,p){vK(t,t[_.Mf]|0,E,p,GX(t[_.Mf]|0))};
nI$=function(t,E,p){E=_.Ad(E);E!=null&&(_.j8(t,p,1),t=t.encoder_,p=VWY||(VWY=new DataView(new ArrayBuffer(8))),p.setFloat64(0,+E,!0),sr=p.getUint32(0,!0),Ls=p.getUint32(4,!0),_.r6(t,sr),_.r6(t,Ls))};
N6i=function(t,E,p){E=_.Ad(E);E!=null&&(_.j8(t,p,5),t=t.encoder_,QsJ(E),_.r6(t,sr))};
_.d6=function(t,E,p){E=WrO(E);if(E!=null&&(pw0(E),E!=null))switch(_.j8(t,p,0),typeof E){case "number":t=t.encoder_;Pp(E);kI(t,sr,Ls);break;case "bigint":p=BigInt.asUintN(64,E);p=new D28(Number(p&BigInt(4294967295)),Number(p>>BigInt(32)));kI(t.encoder_,p.JSC$9139_lo,p.JSC$9139_hi);break;default:p=EIi(E),kI(t.encoder_,p.JSC$9139_lo,p.JSC$9139_hi)}};
L6j=function(t,E,p){E=$fD(E);if(E!=null&&(x2i(E),E!=null))switch(_.j8(t,p,0),typeof E){case "number":t=t.encoder_;Pp(E);kI(t,sr,Ls);break;case "bigint":p=s$L(E);kI(t.encoder_,p.JSC$9137_lo,p.JSC$9137_hi);break;default:p=U2K(E),kI(t.encoder_,p.JSC$9137_lo,p.JSC$9137_hi)}};
T6l=function(t,E,p){E=_.BK(E);E!=null&&E!=null&&(_.j8(t,p,0),_.PFO(t.encoder_,E))};
_.W6O=function(t,E,p){oIY(t,p,$fD(E))};
$2D=function(t,E,p){E=_.gmL(E);E!=null&&(_.j8(t,p,0),t.encoder_.JSC$9141_buffer_.push(E?1:0))};
vIt=function(t,E,p){E=_.hd(E);E!=null&&K6O(t,p,HOE(E))};
yG0=function(t,E,p,U,x){M8i(t,p,m2K(E,U),x)};
_.SSO=function(t,E,p){E=E==null||typeof E=="string"||E instanceof X4?E:void 0;E!=null&&K6O(t,p,t8O(E,!0).buffer)};
cGj=function(t,E,p){E=_.XpO(E);E!=null&&E!=null&&(_.j8(t,p,0),uF(t.encoder_,E))};
_.tsj=function(t,E,p){E=_.BK(E);E!=null&&(E=parseInt(E,10),_.j8(t,p,0),_.PFO(t.encoder_,E))};
EkO=function(t,E,p){if(t.nextWireType_!==0)return!1;_.Ct(E,p,_.JG(t.decoder_,r38));return!0};
_.pTO=function(t,E,p,U){if(t.nextWireType_!==0)return!1;_.I$(E,p,U,_.JG(t.decoder_,r38));return!0};
UEi=function(t,E,p){if(t.nextWireType_!==0)return!1;_.Ct(E,p,_.JG(t.decoder_,js8));return!0};
_.A9J=function(t,E,p){if(t.nextWireType_!==1)return!1;_.Ct(E,p,xEi(t.decoder_));return!0};
_.g6=function(t,E){return function(p,U){var x={treatNewDataAsImmutable:!0};U&&Object.assign(x,U);p=gIL(p,void 0,void 0,x);try{var A=new t,m=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;CF8(E)(m,p);var b=A}finally{p.free()}return b}};
_.OS=function(t){return function(E){return Y2J(E,t)}};
Ms0=function(t){return function(){return Y2J(this,t)}};
_.mEi=function(t){return ns(function(E){return E instanceof t&&!Or(E)})};
_.hG=function(t){return function(E){return bBY(t,E)}};
foD=function(t,E){return iBJ({child:t,origin:E||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:q20,getPayloadCase:function(p){return p.getPayloadCase()},
createInitMessage:function(p){var U=new e8,x=new HBi;p=_.FU(x,1,p);return _.zC(U,5,lF,p)}})};
GC=function(t){return{valueOf:t}.valueOf()};
wTY=function(){var t=null;if(!B3Y)return t;try{var E=function(p){return p};
t=B3Y.createPolicy("goog#html",{createHTML:E,createScript:E,createScriptURL:E})}catch(p){}return t};
Vs0=function(){RXE===void 0&&(RXE=wTY());return RXE};
_.N2=function(t){var E=Vs0();t=E?E.createScriptURL(t):t;return new nt(t)};
_.Dk=function(t){if(t instanceof nt)return t.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.sS=function(t){return Object.isFrozen(t)&&Object.isFrozen(t.raw)};
QRj=function(t){return t.toString().indexOf("`")===-1};
Pw=function(t){return new _.Lt(C0Y,t)};
Ww=function(t){return t instanceof _.Lt};
_.$I=function(t){if(Ww(t))return t.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
Kt=function(t){return new jR8(function(E){return E.substr(0,t.length+1).toLowerCase()===t+":"})};
_.vw=function(t,E){E=E===void 0?r9J:E;if(Ww(t))return t;for(var p=0;p<E.length;++p){var U=E[p];if(U instanceof jR8&&U.isValid(t))return Pw(t)}};
_.S8=function(t,E){E=E===void 0?r9J:E;return _.vw(t,E)||y$};
_.cw=function(t){var E=window;if(typeof MediaSource!=="undefined"&&t instanceof MediaSource||typeof E.ManagedMediaSource!=="undefined"&&t instanceof E.ManagedMediaSource)return Pw(URL.createObjectURL(t));E=t.type;E.toLowerCase()==="application/octet-stream"?E=!0:(E=E.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),E=(E==null?void 0:E.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(E[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(E[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(E[1])||/^font\/[\w-]+$/i.test(E[1])));if(!E)throw Error("Z");return Pw(URL.createObjectURL(t))};
_.kcO=function(t){for(var E=_.t9.apply(1,arguments),p=[t[0]],U=0;U<E.length;U++)p.push(String(E[U])),p.push(t[U+1]);return Pw(p.join(""))};
_.uQO=function(t){if(!dEL){a:{var E=document.createElement("a");try{E.href=t}catch(p){t=void 0;break a}t=E.protocol;t=t===":"||t===""?"https:":t}return t}try{E=new URL(t)}catch(p){return"https:"}return E.protocol};
_.E2=function(t){t instanceof _.Lt?t=_.$I(t):t=J9t.test(t)?t:void 0;return t};
pB=function(t,E){E=_.E2(E);E!==void 0&&(t.href=E)};
xk=function(t){var E=Vs0();t=E?E.createHTML(t):t;return new U2(t)};
A9=function(t){if(t instanceof U2)return t.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.Yk=function(t,E){t.src=_.Dk(E).toString()};
Iot=function(t,E){t.setAttribute("sandbox","");for(var p=0;p<E.length;p++)t.sandbox.supports&&!t.sandbox.supports(E[p])||t.sandbox.add(E[p])};
_.mE=function(t,E,p){t.removeAttribute("srcdoc");switch(E){case 0:if(p instanceof nt)throw new gkj("TrustedResourceUrl",0);Iot(t,[]);E=_.E2(p);E!==void 0&&(t.src=E);break;case 1:if(!(p instanceof nt))throw new gkj(typeof p,1);Iot(t,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.Yk(t,p);break;case 2:if(p instanceof nt)throw new gkj("TrustedResourceUrl",2);Iot(t,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
E=_.E2(p);E!==void 0&&(t.src=E);break;default:_.UC(E)}};
_.b0=function(t,E,p,U){E=_.E2(E);return E!==void 0?t.open(E,p,U):null};
_.i0=function(t){t=t===void 0?document:t;var E,p;t=(p=(E=t).querySelector)==null?void 0:p.call(E,"script[nonce]");return t==null?"":t.nonce||t.getAttribute("nonce")||""};
_.HT=function(t){var E=Vs0();t=E?E.createScript(t):t;return new _.qE(t)};
fB=function(t){if(t instanceof _.qE)return t.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
ZB_=function(t){var E=_.i0(t.ownerDocument);E&&t.setAttribute("nonce",E)};
_.BT=function(t,E){t.textContent=fB(E);ZB_(t)};
_.w3=function(t,E){t.src=_.Dk(E);ZB_(t)};
_.RR=function(t,E){if(t.nodeType===1&&/^(script|style)$/i.test(t.tagName))throw Error("Z");t.innerHTML=A9(E)};
_.VU=function(t,E,p,U){if(t.length===0)throw Error("Z");t=t.map(function(A){if(A instanceof OBj)A=A.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return A});
var x=p.toLowerCase();if(t.every(function(A){return x.indexOf(A)!==0}))throw Error("aa`"+p);
E.setAttribute(p,U)};
_.QU=function(t,E,p){if(E instanceof nt)t.href=_.Dk(E).toString(),t.rel=p;else{if(XTL.indexOf(p)===-1)throw Error("ba`"+p);E=_.E2(E);E!==void 0&&(t.href=E,t.rel=p)}};
hXi=function(t){if(t instanceof CB)return t.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.ao$=function(t,E){E=_.E2(E);E!==void 0&&(t.href=E)};
eX8=function(t){return new Worker(_.Dk(t),void 0)};
FE8=function(t){return _.N2(t)};
zXO=function(t,E){t&&(E=t.indexOf(E),0<=E&&t.splice(E,1))};
js=function(t){return typeof t==="function"};
lo_=function(t){return t instanceof r3||t&&"closed"in t&&js(t.remove)&&js(t.add)&&js(t.unsubscribe)};
kk=function(){};
d3=function(t){Gc0(function(){throw t;})};
u0=function(t){return t};
IR=function(){return nkE(_.t9.apply(0,arguments))};
nkE=function(t){return t.length===0?u0:t.length===1?t[0]:function(E){return t.reduce(function(p,U){return U(p)},E)}};
N30=function(t){var E;return(E=t!=null?t:void 0)!=null?E:Promise};
DEY=function(t,E){return new g3(function(p){var U=0;return E.schedule(function(){U===t.length?p.complete():(p.next(t[U++]),p.closed||this.schedule())})})};
sR$=function(t,E){if(!t)throw Error("ca");return new g3(function(p){var U=new r3;U.add(E.schedule(function(){var x=t[Symbol.asyncIterator]();U.add(E.schedule(function(){var A=this;x.next().then(function(m){m.done?p.complete():(p.next(m.value),A.schedule())})}))}));
return U})};
LEE=function(t,E,p){E=E.schedule(function(){try{p.call(this)}catch(U){t.error(U)}},0);
t.add(E)};
T3O=function(t,E){return new g3(function(p){var U;p.add(E.schedule(function(){U=t[P0O]();LEE(p,E,function(){var x=U.next(),A=x.value;x.done?p.complete():(p.next(A),this.schedule())})}));
return function(){var x;return js((x=U)==null?void 0:x.return)&&U.return()}})};
okL=function(t,E){return new g3(function(p){var U=new r3;U.add(E.schedule(function(){var x=t[Zo]();U.add(x.subscribe({next:function(A){U.add(E.schedule(function(){return p.next(A)}))},
error:function(A){U.add(E.schedule(function(){return p.error(A)}))},
complete:function(){U.add(E.schedule(function(){return p.complete()}))}}))}));
return U})};
WEK=function(t,E){return new g3(function(p){return E.schedule(function(){return t.then(function(U){p.add(E.schedule(function(){p.next(U);p.add(E.schedule(function(){return p.complete()}))}))},function(U){p.add(E.schedule(function(){return p.error(U)}))})})})};
$EO=function(t){return new TypeError("da`"+(t!==null&&typeof t==="object"?"an invalid object":"'"+t+"'"))};
vki=function(t,E){if(t!=null){if(js(t[Zo]))return okL(t,E);if(KEO(t))return DEY(t,E);if(js(t==null?void 0:t.then))return WEK(t,E);if(Symbol.asyncIterator&&js(t==null?void 0:t[Symbol.asyncIterator]))return sR$(t,E);if(js(t==null?void 0:t[P0O]))return T3O(t,E)}throw $EO(t);};
XQ=function(t,E){return E?vki(t,E):O2(t)};
O2=function(t){if(t instanceof g3)return t;if(t!=null){if(js(t[Zo]))return y9O(t);if(KEO(t))return S2t(t);if(js(t==null?void 0:t.then))return c9j(t);if(Symbol.asyncIterator&&js(t==null?void 0:t[Symbol.asyncIterator]))return t2O(t);if(js(t==null?void 0:t[P0O]))return Es8(t)}throw $EO(t);};
y9O=function(t){return new g3(function(E){var p=t[Zo]();if(js(p.subscribe))return p.subscribe(E);throw new TypeError("ea");})};
S2t=function(t){return new g3(function(E){for(var p=0;p<t.length&&!E.closed;p++)E.next(t[p]);E.complete()})};
c9j=function(t){return new g3(function(E){t.then(function(p){E.closed||(E.next(p),E.complete())},function(p){return E.error(p)}).then(null,d3)})};
Es8=function(t){return new g3(function(E){for(var p=t[P0O]();!E.closed;){var U=p.next(),x=U.value;U.done?E.complete():E.next(x)}return function(){return js(p==null?void 0:p.return)&&p.return()}})};
t2O=function(t){return new g3(function(E){pxK(t,E).catch(function(p){return E.error(p)})})};
pxK=function(t,E){var p,U,x,A,m,b;return _.q(function(f){switch(f.nextAddress){case 1:_.aR(f,2,3),A=_.es(t);case 5:return f.yield(A.next(),8);case 8:U=f.yieldResult;if(U.done){f.jumpTo(3);break}m=U.value;E.next(m);f.jumpTo(5);break;case 3:_.FQ(f);_.l0(f,9);if(!U||U.done||!(x=A.return)){f.jumpTo(9);break}return f.yield(x.call(A),9);case 9:_.FQ(f,0,0,1);if(p)throw p.error;_.Gc(f,10,1);break;case 10:_.Gc(f,4);break;case 2:b=_.nB(f);p={error:b};f.jumpTo(3);break;case 4:E.complete(),_.Do(f)}})};
UX8=function(t,E){return E?DEY(t,E):S2t(t)};
xX0=function(t){return js(t[t.length-1])?t.pop():void 0};
s2=function(t){var E=t[t.length-1];return E&&js(E.schedule)?t.pop():void 0};
LB=function(){var t=_.t9.apply(0,arguments),E=s2(t);return E?DEY(t,E):UX8(t)};
PT=function(t){var E=js(t)?t:function(){return t};
return new g3(function(p){return p.error(E())})};
Tc=function(t){return function(E){if(js(E==null?void 0:E.lift))return E.lift(function(p){try{return t(p,this)}catch(U){this.error(U)}});
throw new TypeError("fa");}};
WT=function(){return Tc(function(t,E){var p=null;t._refCount++;var U=new oR(E,void 0,void 0,void 0,function(){if(!t||t._refCount<=0||0<--t._refCount)p=null;else{var x=t._connection,A=p;p=null;!x||A&&x!==A||x.unsubscribe();E.unsubscribe()}});
t.subscribe(U);U.closed||(p=t.connect())})};
Y8L=function(){var t=AC$;var E=E===void 0?0:E;return Tc(function(p,U){U.add(t.schedule(function(){return p.subscribe(U)},E))})};
$k=function(t){return Tc(function(E,p){var U=0;E.subscribe(new oR(p,function(x){p.next(t.call(void 0,x,U++))}))})};
mXt=function(t){return $k(function(E){return M2J(E)?t.apply(null,_.KB(E)):t(E)})};
f_Y=function(t){if(t.length===1){var E=t[0];if(bq$(E))return{args:E,keys:null};if(E&&typeof E==="object"&&iqO(E)===q80)return t=HqO(E),{args:t.map(function(p){return E[p]}),
keys:t}}return{args:t,keys:null}};
vT=function(){var t=_.t9.apply(0,arguments),E=s2(t),p=xX0(t);t=f_Y(t);var U=t.args,x=t.keys;if(U.length===0)return XQ([],E);E=new g3(BgE(U,E,x?function(A){for(var m={},b=0;b<A.length;b++)m[x[b]]=A[b];return m}:u0));
return p?E.pipe(mXt(p)):E};
BgE=function(t,E,p){p=p===void 0?u0:p;return function(U){wx8(E,function(){for(var x=t.length,A=Array(x),m=x,b=t.map(function(){return!1}),f=!0,B={i$jscomp$218:0};B.i$jscomp$218<x;B={i$jscomp$218:B.i$jscomp$218},B.i$jscomp$218++)wx8(E,function(R){return function(){XQ(t[R.i$jscomp$218],E).subscribe(new yU(U,function(V){A[R.i$jscomp$218]=V;
f&&(b[R.i$jscomp$218]=!0,f=!b.every(u0));f||U.next(p(A.slice()))},function(){return--m===0}))}}(B),U)},U)}};
wx8=function(t,E,p){t?p.add(t.schedule(E)):E()};
RtO=function(t,E,p,U){var x=[],A=0,m=0,b=!1,f=function(B){A++;O2(p(B,m++)).subscribe(new oR(E,function(R){E.next(R)},void 0,function(){A--;
for(var R={};x.length&&A<U;R={bufferedValue:void 0})R.bufferedValue=x.shift(),f(R.bufferedValue);!b||x.length||A||E.complete()}))};
t.subscribe(new oR(E,function(B){return A<U?f(B):x.push(B)},void 0,function(){b=!0;
!b||x.length||A||E.complete()}));
return function(){x=null}};
Ss=function(t,E){var p=p===void 0?Infinity:p;if(js(E))return Ss(function(U,x){return $k(function(A,m){return E(U,A,x,m)})(O2(t(U,x)))},p);
typeof E==="number"&&(p=E);return Tc(function(U,x){return RtO(U,x,t,p)})};
V2Y=function(t){t=t===void 0?Infinity:t;return Ss(u0,t)};
Qhi=function(){var t=_.t9.apply(0,arguments);return V2Y(1)(UX8(t,s2(t)))};
CgO=function(t){return new g3(function(E){O2(t()).subscribe(E)})};
tC=function(t,E,p){if(js(p)){var U=p;p=void 0}if(U)return tC(t,E,p).pipe(mXt(U));U=_.M(js(t.addEventListener)&&js(t.removeEventListener)?jhj.map(function(m){return function(b){return t[m](E,b,p)}}):js(t.addListener)&&js(t.removeListener)?rCJ.map(kJK(t,E)):js(t.on)&&js(t.off)?dXj.map(kJK(t,E)):[]);
var x=U.next().value,A=U.next().value;return!x&&KEO(t)?Ss(function(m){return tC(m,E,p)})(UX8(t)):new g3(function(m){if(!x)throw new TypeError("ga");
var b=function(){var f=_.t9.apply(0,arguments);return m.next(1<f.length?f:f[0])};
x(b);return function(){return A(b)}})};
kJK=function(t,E){return function(p){return function(U){return t[p](E,U)}}};
pq=function(){var t=_.t9.apply(0,arguments),E=s2(t);var p=typeof t[t.length-1]==="number"?t.pop():Infinity;return t.length?t.length===1?O2(t[0]):V2Y(p)(UX8(t,E)):E8};
JCO=function(t){return t.length===1&&uWE(t[0])?t[0]:t};
I_i=function(){var t=JCO(_.t9.apply(0,arguments));return Tc(function(E,p){var U=[E].concat(_.KB(t)),x=function(){if(!p.closed)if(U.length>0){try{var A=O2(U.shift())}catch(b){x();return}var m=new oR(p,void 0,kk,kk);p.add(A.subscribe(m));m.add(x)}else p.complete()};
x()})};
U8=function(t){return Tc(function(E,p){var U=0;E.subscribe(new oR(p,function(x){return t.call(void 0,x,U++)&&p.next(x)}))})};
ZqJ=function(){var t=_.t9.apply(0,arguments);t=JCO(t);return t.length===1?O2(t[0]):new g3(gsJ(t))};
gsJ=function(t){return function(E){for(var p=[],U={i$jscomp$221:0};p&&!E.closed&&U.i$jscomp$221<t.length;U={i$jscomp$221:U.i$jscomp$221},U.i$jscomp$221++)p.push(O2(t[U.i$jscomp$221]).subscribe(new oR(E,function(x){return function(A){if(p){for(var m=0;m<p.length;m++)m!==x.i$jscomp$221&&p[m].unsubscribe();p=null}E.next(A)}}(U))))}};
OqY=function(){var t=_.t9.apply(0,arguments),E=xX0(t),p=JCO(t);return p.length?new g3(function(U){var x=p.map(function(){return[]}),A=p.map(function(){return!1});
U.add(function(){x=A=null});
for(var m={sourceIndex$jscomp$1:0};!U.closed&&m.sourceIndex$jscomp$1<p.length;m={sourceIndex$jscomp$1:m.sourceIndex$jscomp$1},m.sourceIndex$jscomp$1++)O2(p[m.sourceIndex$jscomp$1]).subscribe(new oR(U,function(b){return function(f){x[b.sourceIndex$jscomp$1].push(f);x.every(function(B){return B.length})&&(f=x.map(function(B){return B.shift()}),U.next(E?E.apply(null,_.KB(f)):f),x.some(function(B,R){return!B.length&&A[R]})&&U.complete())}}(m),void 0,function(b){return function(){A[b.sourceIndex$jscomp$1]=
!0;
!x[b.sourceIndex$jscomp$1].length&&U.complete()}}(m)));
return function(){x=A=null}}):E8};
XxO=function(t){var E,p,U;return!!t&&typeof t.active==="boolean"&&typeof((E=t.clock)==null?void 0:E.now)==="function"&&((p=t.clock)==null?void 0:p.timeline)!==void 0&&!((U=t.lastMeasurement)==null||!U.timestamp)&&typeof t.equivalentTo==="function"&&typeof t.extrapolateToNow==="function"&&typeof t.extrapolateToTime==="function"&&typeof t.map==="function"&&typeof t.joinWith==="function"};
htD=function(t){function E(p){return typeof p==="boolean"||typeof p==="string"||typeof p==="number"||p===void 0||p===null}
return E(t)?!0:Array.isArray(t)?t.every(E):typeof t==="object"?Object.keys(t).every(function(p){return typeof p==="string"})&&Object.values(t).every(function(p){return Array.isArray(p)?p.every(E):E(p)}):!1};
a__=function(t){if(htD(t))return t;if(XxO(t))return{lastMeasurement:{value:a__(t.lastMeasurement.value),timestamp:xs(t.lastMeasurement.timestamp,new AC(0,t.lastMeasurement.timestamp.timeline))},active:t.active};try{return JSON.parse(JSON.stringify(t))}catch(E){}return String(t)};
Ys=function(t,E){return function(p){return new g3(function(U){return p.subscribe(function(x){t.timeExecution(E,function(){U.next(x)})()},function(x){t.timeExecution(E,function(){U.error(x)})()},function(){t.timeExecution(E,function(){U.complete()})()})})}};
etL=function(t,E){var p=!1;return new g3(function(U){var x=t.setTimeout(function(){p=!0;U.next(!0);U.complete()},E);
return function(){p||t.clearTimeout(x)}})};
Fi_=function(t){t=t.global;if(t.fetchLater)return t.fetchLater.bind(t)};
MX=function(t){return Tc(function(E,p){var U=null,x=!1,A;U=E.subscribe(new oR(p,void 0,function(m){A=O2(t(m,MX(t)(E)));U?(U.unsubscribe(),U=null,A.subscribe(p)):x=!0}));
x&&(U.unsubscribe(),U=null,A.subscribe(p))})};
ztY=function(t,E,p){return function(U,x){var A=p,m=E,b=0;U.subscribe(new oR(x,function(f){var B=b++;m=A?t(m,f,B):(A=!0,f);x.next(m)},void 0,void 0))}};
l_8=function(t){t=t===void 0?null:t;return Tc(function(E,p){var U=!1;E.subscribe(new oR(p,function(x){U=!0;p.next(x)},void 0,function(){U||p.next(t);
p.complete()}))})};
bg=function(){return Tc(function(t,E){t.subscribe(new oR(E,kk))})};
ig=function(t){return Tc(function(E,p){E.subscribe(new oR(p,function(){return p.next(t)}))})};
qX=function(t){return t<=0?function(){return E8}:Tc(function(E,p){var U=0;
E.subscribe(new oR(p,function(x){++U<=t&&(p.next(x),t<=U&&p.complete())}))})};
Hx=function(t){var E=E===void 0?u0:E;var p;t=(p=t)!=null?p:GJK;return Tc(function(U,x){var A,m=!0;U.subscribe(new oR(x,function(b){var f=E(b);if(m||!t(A,f))m=!1,A=f,x.next(b)}))})};
GJK=function(t,E){return t===E};
Ngi=function(t){t=t===void 0?nst:t;return Tc(function(E,p){var U=!1;E.subscribe(new oR(p,function(x){U=!0;p.next(x)},void 0,function(){return U?p.complete():p.error(t())}))})};
nst=function(){return new DXL};
fq=function(){var t=_.t9.apply(0,arguments);return function(E){return Qhi(E,LB.apply(null,_.KB(t)))}};
sh8=function(t){return Tc(function(E,p){var U=0;E.subscribe(new oR(p,function(x){t.call(void 0,x,U++,E)||(p.next(!1),p.complete())},void 0,function(){p.next(!0);
p.complete()}))})};
Li$=function(){return Tc(function(t,E){var p=[];t.subscribe(new oR(E,function(U){p.push(U);1<p.length&&p.shift()},void 0,function(){for(var U=_.M(p),x=U.next();!x.done;x=U.next())E.next(x.value);
E.complete()},function(){p=null}))})};
PgY=function(t,E){var p=arguments.length>=2;return function(U){return U.pipe(t?U8(function(x,A){return t(x,A,U)}):u0,Li$(),p?l_8(E):Ngi(function(){return new DXL}))}};
wg=function(t){var E=js(t)?t:function(){return t};
return js()?Tc(function(p,U){var x=E();(void 0)(x).subscribe(U).add(p.subscribe(x))}):function(p){var U=new Bx(p,E);
js(p==null?void 0:p.lift)&&(U.lift=p.lift);U.source=p;U.subjectFactory=E;return U}};
VX=function(t){var E=new Rh(t,void 0,void 0);return function(p){return wg(function(){return E})(p)}};
QX=function(t,E){return Tc(ztY(t,E,arguments.length>=2))};
Cq=function(){var t=_.t9.apply(0,arguments),E=s2(t);return Tc(function(p,U){(E?Qhi(t,p,E):Qhi(t,p)).subscribe(U)})};
j2=function(t){return Tc(function(E,p){var U=null,x=0,A=!1;E.subscribe(new oR(p,function(m){var b;(b=U)==null||b.unsubscribe();b=x++;O2(t(m,b)).subscribe(U=new oR(p,function(f){return p.next(f)},void 0,function(){U=null;
A&&!U&&p.complete()}))},void 0,function(){(A=!0,!U)&&p.complete()}))})};
rg=function(t,E){E=E===void 0?!1:E;return Tc(function(p,U){var x=0;p.subscribe(new oR(U,function(A){var m=t(A,x++);(m||E)&&U.next(A);!m&&U.complete()}))})};
TgD=function(t,E,p){var U=js(t)||E||p?{next:t,error:E,complete:p}:t;return U?Tc(function(x,A){x.subscribe(new oR(A,function(m){var b;(b=U.next)==null||b.call(U,m);A.next(m)},function(m){var b;
(b=U.error)==null||b.call(U,m);A.error(m)},function(){var m;
(m=U.complete)==null||m.call(U);A.complete()}))}):u0};
osD=function(){var t=_.t9.apply(0,arguments),E=xX0(t);return Tc(function(p,U){for(var x=t.length,A=Array(x),m=t.map(function(){return!1}),b=!1,f={i$jscomp$231:0};f.i$jscomp$231<x;f={i$jscomp$231:f.i$jscomp$231},f.i$jscomp$231++)O2(t[f.i$jscomp$231]).subscribe(new oR(U,function(B){return function(R){A[B.i$jscomp$231]=R;
b||m[B.i$jscomp$231]||(m[B.i$jscomp$231]=!0,(b=m.every(u0))&&(m=null))}}(f),void 0,kk));
p.subscribe(new oR(U,function(B){b&&(B=[B].concat(_.KB(A)),U.next(E?E.apply(null,_.KB(B)):B))}))})};
$Xl=function(t){var E=Wi8;if(E)for(var p in E)Object.prototype.hasOwnProperty.call(E,p)&&t(E[p],p,E)};
Ki_=function(){var t=[];$Xl(function(E){t.push(E)});
return t};
yCO=function(t){try{return!!t&&t.location.href!=null&&vs_(t,"foo")}catch(E){return!1}};
cCJ=function(){return CO&&rE?rE.mobile:!S8K()&&(dE("iPod")||dE("iPhone")||dE("Android")||dE("IEMobile"))};
S8K=function(){return CO&&rE?!rE.mobile&&(dE("iPad")||dE("Android")||dE("Silk")):dE("iPad")||dE("Android")&&!dE("Mobile")||dE("Silk")};
_.ks=function(t){return new OBj(t[0].toLowerCase())};
td_=function(t){for(var E=_.t9.apply(1,arguments),p=t[0],U=0;U<t.length-1;U++)p+=String(E[U]),p+=t[U+1];E=document.implementation.createHTMLDocument("");U=E.createElement("style");E.head.appendChild(U);E=U.sheet;E.insertRule(p,0);if(E.cssRules.length===1&&(p=E.cssRules[0],p instanceof CSSStyleRule))return new CB(p.cssText.replace(/</g,"\\3C "))};
EW8=function(t){try{return new URL(t,window.document.baseURI)}catch(E){return new URL("about:invalid")}};
pQ_=function(t,E){var p=E.createRange();p.selectNode(E.body);t=xk(t);return p.createContextualFragment(A9(t))};
Uyt=function(t){t=t.nodeName;return typeof t==="string"?t:"FORM"};
xy0=function(t){t=t.nodeType;return t===1||typeof t!=="number"};
ug=function(t,E,p){t.setAttribute(E,p)};
Ag0=function(t){return t.parts.map(function(E){var p=E.descriptor;return""+E.url+(p?" "+p:"")}).join(" , ")};
_.JC=function(t){var E=_.t9.apply(1,arguments);if(E.length===0)return _.N2(t[0]);for(var p=t[0],U=0;U<E.length;U++)p+=encodeURIComponent(E[U])+t[U+1];return _.N2(p)};
_.Ih=function(t,E){t=_.Dk(t).toString();var p=t.split(/[?#]/),U=/[?]/.test(t)?"?"+p[1]:"";return YhK(p[0],U,/[#]/.test(t)?"#"+(U?p[2]:p[1]):"",E)};
YhK=function(t,E,p,U){function x(m,b){m!=null&&(Array.isArray(m)?m.forEach(function(f){return x(f,b)}):(E+=A+encodeURIComponent(b)+"="+encodeURIComponent(m),A="&"))}
var A=E.length?"&":"?";U.constructor===Object&&(U=Object.entries(U));Array.isArray(U)?U.forEach(function(m){return x(m[1],m[0])}):U.forEach(x);
return _.N2(t+E+p)};
myj=function(){var t=fB(Md_).toString();return _.N2(URL.createObjectURL(new Blob([t],{type:"text/javascript"})))};
_.gg=function(t,E){this.x=t!==void 0?t:0;this.y=E!==void 0?E:0};
bgK=function(t){var E=[],p=0,U;for(U in t)E[p++]=U;return E};
igO=function(t,E){for(var p in t)if(t[p]==E)return!0;return!1};
qhJ=function(t,E,p){for(var U in t)if(E.call(p,t[U],U,t))return U};
Hg8=function(t){if(!t||typeof t!=="object")return t;if(typeof t.clone==="function")return t.clone();if(typeof Map!=="undefined"&&t instanceof Map)return new Map(t);if(typeof Set!=="undefined"&&t instanceof Set)return new Set(t);if(t instanceof Date)return new Date(t.getTime());var E=Array.isArray(t)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(t)||t instanceof DataView?{}:new t.constructor(t.length),p;for(p in t)E[p]=Hg8(t[p]);return E};
fPj=function(t){var E=arguments.length;if(E==1&&Array.isArray(arguments[0]))return fPj.apply(null,arguments[0]);if(E%2)throw Error("ma");for(var p={},U=0;U<E;U+=2)p[arguments[U]]=arguments[U+1];return p};
BiE=function(t){var E=arguments.length;if(E==1&&Array.isArray(arguments[0]))return BiE.apply(null,arguments[0]);for(var p={},U=0;U<E;U++)p[arguments[U]]=!0;return p};
Z_=function(t,E,p,U){this.top=t;this.right=E;this.bottom=p;this.left=U};
O8=function(t,E,p,U){this.left=t;this.top=E;this.width=p;this.height=U};
wQE=function(t){t=t.global;if(t.PendingGetBeacon)return t.PendingGetBeacon};
ah=function(t){return function(E){return E.pipe(R7$(t,wg(new hC)))}};
e2=function(t){return function(E){return E.pipe(R7$(t,VX(1)))}};
R7$=function(t,E){function p(U){return new g3(function(x){return U.subscribe(function(A){FW(t,function(){return void x.next(A)},3)},function(A){FW(t,function(){return void x.error(A)},3)},function(){FW(t,function(){return void x.complete()},3)})})}
return IR(p,Y8L(),E,WT(),p)};
CNY=function(t){var E=VdO(t);return E===null?new lg(null):E.pipe($k(function(p){p=p.serialize();if(QvD)p=_.Ui.btoa(p);else{for(var U=[],x=0,A=0;A<p.length;A++){var m=p.charCodeAt(A);m>255&&(U[x++]=m&255,m>>=8);U[x++]=m}p=_.S$(U)}return p}),qX(1),e2(t.queue))};
jvj=function(t){var E=E===void 0?{}:E;if(typeof Event==="function")return new Event(t,E);if(typeof document!=="undefined"){var p=document.createEvent("CustomEvent");p.initCustomEvent(t,E.bubbles||!1,E.cancelable||!1,E.detail);return p}throw Error();};
rg$=function(t){return typeof t==="string"?document.getElementById(t):t};
dyK=function(t){var E=!1;E=E===void 0?!1:E;if(t.tagName==="IMG"){if(t.complete&&(!t.naturalWidth||!t.naturalHeight))return!0;var p;if(E&&((p=t.style)==null?void 0:p.display)==="none")return!0}var U,x;return kgt.test((U=t.getAttribute("width"))!=null?U:"")&&kgt.test((x=t.getAttribute("height"))!=null?x:"")};
usJ=function(t,E){if(t.tagName==="IMG")return t.naturalWidth&&t.naturalHeight?!0:!1;try{if(t.readyState)var p=t.readyState;else{var U,x;p=(U=t.contentWindow)==null?void 0:(x=U.document)==null?void 0:x.readyState}return p==="complete"}catch(A){return E===void 0?!1:E}};
Jgi=function(t){t||(t=function(E,p,U){E.addEventListener(p,U)});
return t};
OgL=function(t,E){var p=IPL();p=p===void 0?new gWO:p;if(t=rg$(t)){var U=Jgi(U);for(var x=!1,A=function(O){x||(x=!0,E(O))},m,b=2,f=0;f<Zgj.length;++f)if(Zgj[f]===t.tagName){b=3;
m=[t];break}m||(m=t.querySelectorAll(Zgj.join(",")));var B=0,R=0,V=!0,Q=t=!1;f={};for(var C=0;C<m.length;f={isImg:void 0},C++){var d=m[C];if(!dyK(d))if(f.isImg=d.tagName==="IMG",usJ(d,p.crossDomainLoadedDefault))t=!0,f.isImg&&(V=!0);else{B++;var I=function(O){return function(a){B--;!B&&V&&A(b);O.isImg&&(a=a&&a.type==="error",R--,a||(V=!0),!R&&Q&&V&&A(b))}}(f);
U(d,"load",I);f.isImg&&(R++,U(d,"error",I))}}R===0&&(V=!0);m=null;m=_.Ui.document.readyState==="complete";if(B===0&&!t&&m)b=5;else if(B||!t){U(_.Ui,"load",function(){!p.pendingImagesBlockLoad||!R&&V?A(4):Q=!0});
return}A(b)}};
XQY=function(t,E,p){if(t)for(var U=0;t!=null&&U<500&&!p(t);++U)t=E(t)};
h7L=function(t,E){XQY(t,function(p){try{return p===p.parent?null:p.parent}catch(U){}return null},E)};
aPD=function(t,E){if(t.tagName=="IFRAME")E(t);else{t=t.querySelectorAll("IFRAME");for(var p=0;p<t.length&&!E(t[p]);++p);}};
e7t=function(t){return(t=t.ownerDocument)&&(t.parentWindow||t.defaultView)||null};
F9$=function(t,E,p){try{var U=JSON.parse(p.data)}catch(m){}if(typeof U==="object"&&U&&U.type==="creativeLoad"){var x=e7t(t);if(p.source&&x){var A;h7L(p.source,function(m){try{if(m.parent===x)return A=m,!0}catch(b){}});
A&&aPD(t,function(m){if(m.contentWindow===A)return E(U),!0})}}};
z7$=function(t){return typeof t==="string"?document.getElementById(t):t};
NiJ=function(){var t={};return t[0]=_.JC(lP0,"current"),t[1]=_.JC(Ggj),t[2]=_.JC(nWL),t};
GJ=function(t,E){return t.left===E.left&&t.top===E.top&&t.width===E.width&&t.height===E.height};
DyD=function(t,E){return{left:Math.max(t.left,E.left),top:Math.max(t.top,E.top),width:Math.max(0,Math.min(t.left+t.width,E.left+E.width)-Math.max(t.left,E.left)),height:Math.max(0,Math.min(t.top+t.height,E.top+E.height)-Math.max(t.top,E.top))}};
svL=function(t,E){return{left:Math.round(t.left+E.x),top:Math.round(t.top+E.y),width:t.width,height:t.height}};
L9Y=function(t,E,p){if(t&&E!==null&&E!=E.top){if(!E.top)return new _.nq(-12245933,-12245933);E=E.top}try{return(p===void 0?0:p)?(new _.nq(E.innerWidth,E.innerHeight)).round():_.NX(E).round()}catch(U){return new _.nq(-12245933,-12245933)}};
PN$=function(t,E,p){try{if(t){if(!E.top)return new Z_(-12245933,-12245933,-12245933,-12245933);E=E.top}var U=L9Y(t,E,p),x=U.height,A=U.width;if(A===-12245933)return new Z_(A,A,A,A);var m=D_(s8(E.document)),b=m.x,f=m.y;return new Z_(f,b+A,f+x,b)}catch(B){return new Z_(-12245933,-12245933,-12245933,-12245933)}};
TiL=function(t){var E;return(E=t.google_tag_data)!=null?E:t.google_tag_data={}};
oWL=function(t){var E,p;return typeof((E=t.navigator)==null?void 0:(p=E.userAgentData)==null?void 0:p.getHighEntropyValues)==="function"};
$yJ=function(t){if(!oWL(t))return null;var E=TiL(t);if(E.uach_promise)return E.uach_promise;t=t.navigator.userAgentData.getHighEntropyValues(W98).then(function(p){E.uach!=null||(E.uach=p);return p});
return E.uach_promise=t};
YJt=function(t){var E;return K9E(vWl(ygi(Sh$(cgO(tKj(EOO(pyO(UQK(new xQi,t.architecture||""),t.bitness||""),t.mobile||!1),t.model||""),t.platform||""),t.platformVersion||""),t.uaFullVersion||""),((E=t.fullVersionList)==null?void 0:E.map(function(p){var U=new AWO;U=_.Lq(U,1,p.brand);return _.Lq(U,2,p.version)}))||[]),t.wow64||!1)};
MK_=function(t){var E,p;return(p=(E=$yJ(t))==null?void 0:E.then(function(U){return YJt(U)}))!=null?p:null};
mQJ=function(t,E){return new g3(function(p){var U=!1,x=Array(E.length);x.fill(void 0);var A=new Set,m=new Set,b=function(V,Q){t.running?(x[Q]=V,A.add(Q),U||(U=!0,FW(t,function(){U=!1;p.next(_.Dl(x))},1))):p.error(new Px(Q))},f=function(V,Q){m.add(Q);
A.add(Q);FW(t,function(){p.error(V)},1)},B=function(V){m.add(V);
FW(t,function(){m.size===E.length&&p.complete()},1)},R=E.map(function(V,Q){return V.subscribe(function(C){return void b(C,Q)},function(C){return void f(C,Q)},function(){return void B(Q)})});
return function(){R.forEach(function(V){return void V.unsubscribe()})}})};
qJL=function(t,E,p){function U(){if(E.debugChannel){var O=E.debugChannel,a=O.next;var F={creativeId:E.debugNames.getName(p),requiredSignals:x,signals:Object.assign({},A),hasPrematurelyCompleted:m,errorMessage:b,erroredSignalKey:f};F={specMajor:2,specMinor:0,specPatch:0,timestamp:xs(E.timeProvider.now(),new AC(0,E.timeProvider.timeline)),instanceId:E.debugNames.getName(E.symbol),creativeState:F};a.call(O,F)}}
for(var x=Object.keys(t),A={},m=!1,b=null,f=null,B={},R=new Set,V=[],Q=[],C=_.M(x),d=C.next(),I={};!d.done;I={key$jscomp$394:void 0},d=C.next())I.key$jscomp$394=d.value,d=t[I.key$jscomp$394],d instanceof lg?(B[I.key$jscomp$394]=d.value,R.add(I.key$jscomp$394),E.debugChannel&&(A[String(I.key$jscomp$394)]=a__(d.value))):(d=d.pipe(Hx(function(O,a){return XxO(O)||XxO(a)?!1:O===a}),$k(function(O){return function(a){E.debugChannel&&(A[String(O.key$jscomp$394)]=a__(a),U());
var F={};return F[O.key$jscomp$394]=a,F}}(I)),MX(function(O){return function(a){if(a instanceof Px)throw new bN$(String(O.key$jscomp$394));
throw a;}}(I)),TgD(function(O){return function(){R.add(O.key$jscomp$394)}}(I),function(O){return function(a){f=String(O.key$jscomp$394);
b=String(a);U()}}(I),function(O){return function(){R.has(O.key$jscomp$394)||(m=!0,U())}}(I))),Q.push(I.key$jscomp$394),V.push(d));
(t=Object.keys(A).length>0)&&U();C=mQJ(E.queue,V).pipe(MX(function(O){if(O instanceof Px)throw new iNY(String(Q[O.inputObservableIndex]));throw O;}),$k(function(O){return Object.freeze(Object.assign.apply(Object,[{},
B].concat(_.KB(O))))}));
return(V=V.length>0)&&t?pq(LB(Object.freeze(B)),C):V?C:LB(Object.freeze(B))};
HN8=function(t,E,p,U,x){return t.performanceMonitor.timeExecution.bind(t.performanceMonitor)(733,function(){var A={};try{return E.pipe(MX(function(m){U(Object.assign({},A,{error:m}));return E8}),Ss(function(m){try{var b=p(t,m)}catch(B){return U(Object.assign({},A,{error:B instanceof Error?B:String(B)})),E8}var f={};
return qJL(b,t,m.symbol).pipe(TgD(function(B){f=B}),VX(1),WT()).pipe(x,MX(function(B){U(Object.assign({},f,{error:B}));
return E8}),fq(void 0),$k(function(){return!0}))})).pipe(QX(function(m){return m+1},0),MX(function(m){U(Object.assign({},A,{error:m}));
return E8}))}catch(m){return U(Object.assign({},A,{error:m})),E8}})()};
TJ=function(t){var E=new Map;if(typeof t!=="object"||t===null)return E;Object.values(t).forEach(function(p){p&&typeof p.extrapolateToNow==="function"&&(E.has(p.clock.timeline)||E.set(p.clock.timeline,p.clock.now()))});
return E};
f80=function(t,E){return typeof t==="string"?encodeURIComponent(t):typeof t==="number"?String(t):Array.isArray(t)?t.map(function(p){return f80(p,E)}).join(","):t instanceof AC?t.toString():t&&typeof t.extrapolateToNow==="function"?f80(t.extrapolateUsingTimestampMap(E).value,E):t===!0?"1":t===!1?"0":t===void 0||t===null?null:t instanceof BV$?wyO(t):[t.top,
t.left,t.top+t.height,t.left+t.width].join()};
R2i=function(t,E){t=Object.entries(t).map(function(p){var U=_.M(p);p=U.next().value;U=U.next().value;U=f80(U,E);return U===null?"":p+"="+U}).filter(function(p){return p!==""});
return t.length?t.join("&"):""};
CQ0=function(t,E){var p=VKE,U=Qct;E=E===void 0?.01:E;return function(x){E>0&&Math.random()<=E&&(t.global.HTMLFencedFrameElement&&t.global.fence&&typeof t.global.fence.reportEvent==="function"&&t.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),x=Object.assign({},x,{errorMessage:x.error instanceof Error&&x.error.message?x.error.message:String(x.error),errorStack:x.error instanceof Error&&x.error.stack?String(x.error.stack):null,errorName:x.error instanceof
Error&&x.error.name?String(x.error.name):null,errorContext:String(t.performanceMonitor.timedFunctionContext),errorEscapedQueryId:x.escapedQueryId}),p(Object.assign({},x,{payloadMapper:function(){return function(A){try{return U(Object.assign({},A))}catch(m){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),TJ(x)).forEach(function(A){t.beaconFactory.makeBeacon(A).sendNow()}))}};
jcD=function(){var t=_.t9.apply(0,arguments);return function(E){var p=E.pipe(VX(1),WT());E=t.map(function(U){return p.pipe(U,fq(!0))});
return vT(E).pipe(qX(1),bg())}};
rWJ=function(){var t=_.t9.apply(0,arguments);return function(E){var p=E.pipe(VX(1),WT());E=t.map(function(U){return p.pipe(U,fq(!0))});
return pq.apply(null,_.KB(E)).pipe(qX(1),bg())}};
k$t=function(t,E){return function(p){var U=p.pipe(VX(1),WT());p=U.pipe(t,fq(!0));U=U.pipe(IR(E,VX(),WT()),fq(!0));p=vT([p,U]);return ZqJ(p,U).pipe(qX(1),bg())}};
dQ8=function(t,E,p){p(!0)};
u8t=function(t,E){return IR(j2(function(p){var U=t(p),x=E(p),A={};return U&&x&&A?new g3(function(m){x(U,A,function(b){m.next(Object.assign({},p,{canEmit:b}));m.complete()});
return function(){}}):oh}),U8(function(p){return p.canEmit}))};
JWK=function(t){var E={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(p){return p.pipe(j2(function(U){return new g3(function(x){function A(){b.disconnect();f.unsubscribe()}
var m=t.MutationObserver;if(m&&U.ref!==void 0){var b=new m(function(B){x.next(B)});
b.observe(U.ref,E);var f=U.JSC$9636_released.subscribe(A);return A}})}))}};
I8_=function(t){if(t.measurementDeferralState===3)return null;if(t.timeOnScreenReason!==void 0){var E=t.creativeFound===!1?"n":null;if(E!==null)return E}return t.geometricMeasurementErrors instanceof Wx?"msf":t.contextValidationErrors instanceof $s?"c":t.contextVisibilityKnown===!1?"pv":t.geometricMeasurementErrors||t.contextValidationErrors?"x":null};
ZN$=function(t,E){return t.replace(gO0,function(p,U){try{var x=_.Kq.get(E,U);if(x==null||x.toString()==null)return p;x=x.toString();if(x==""||!_.mJ(x==null?"":String(x)))return encodeURIComponent(x).replace(/%2C/g,",")}catch(A){}return p})};
ON$=function(t,E){var p=Object.assign({},t),U=t.userAgentClientHints;p=(delete p.userAgentClientHints,p);p=t.payloadMapper(p);var x=R2i(p,E);return _.vx(t.urlPrefixes,function(A){var m="";typeof U==="string"&&(m="&"+R2i({uach:U},E));var b={};return ZN$(A,(b.VIEWABILITY=x,b))+m})};
VKE=function(t,E){var p=t.payloadMapper(t),U=R2i(p,E);return U?_.vx(t.urlPrefixes,function(x){x=x.indexOf("?")>=0?x:x+"?";x="?&".indexOf(x.slice(-1))>=0?x:x+"&";return x+U}):t.urlPrefixes};
Xy$=function(){return IR(U8(function(t){return t!==void 0}),$k(function(t){return t}))};
h2J=function(t){return IR($k(function(){return!0}),Cq(!1),e2(t))};
a8L=function(t){return t.length<=0?E8:vT(t.map(function(E){var p=0;return E.pipe($k(function(U){return{index:p++,value:U}}))})).pipe(U8(function(E){return E.every(function(p){return p.index===E[0].index})}),$k(function(E){return E.map(function(p){return p.value})}))};
e2Y=function(t,E){t.currentState&&(t.previousState=t.currentState);t.currentState=E;t.previousState&&t.previousState.value?(E=Math.max(0,xs(E.timestamp,t.previousState.timestamp)),t.totalTime+=E,t.consecutiveTime+=E):t.consecutiveTime=0;return t};
F7K=function(){return IR(QX(e2Y,{totalTime:0,consecutiveTime:0}),$k(function(t){return t.totalTime}))};
z2j=function(){return IR(QX(e2Y,{totalTime:0,consecutiveTime:0}),$k(function(t){return t.consecutiveTime}))};
l8O=function(t,E){return function(p){return a8L(E.map(function(U){return p.pipe(t(U))}))}};
G$_=function(){var t;return IR(TgD(function(E){return void(t=E.timestamp)}),z2j(),$k(function(E){return{timestamp:t,
value:Math.round(E)}}))};
nOj=function(t,E){return GJ(t.topWindowViewportExternalGeometry,E.topWindowViewportExternalGeometry)&&GJ(t.elementGeometry,E.elementGeometry)&&GJ(t.exposedViewportLocalGeometry,E.exposedViewportLocalGeometry)&&GJ(t.intersectionGeometry,E.intersectionGeometry)&&t.elementGeometrySourceName===E.elementGeometrySourceName&&t.measurementRequests===E.measurementRequests&&t.viewportGeometrySourceName===E.viewportGeometrySourceName&&t.viewportLocalAppOffset.x===E.viewportLocalAppOffset.x&&t.viewportLocalAppOffset.y===
E.viewportLocalAppOffset.y};
L7D=function(t,E){return function(p){return function(U){var x=U.pipe(wg(new hC),WT());U=p.element.pipe(Hx());x=x.pipe($k(function(A){return A.value}));
return vT([U,x,E]).pipe($k(function(A){var m=_.M(A);A=m.next().value;var b=m.next().value;m=m.next().value;if(A.ref===void 0)var f={top:0,left:0,width:0,height:0};else{f=A.ref.getBoundingClientRect();var B=A.ref,R=t.global,V=new _.gg(0,0),Q=yX(_.S2(B));if(vs_(Q,"parent")){do{if(Q==R)var C=_.cx(B);else C=NVl(B),C=new _.gg(C.left,C.top);V.x+=C.x;V.y+=C.y}while(Q&&Q!=R&&Q!=Q.parent&&(B=Q.frameElement)&&(Q=Q.parent))}f={top:V.y,left:V.x,width:f.width,height:f.height}}f=svL(f,b.viewportLocalAppOffset);
R=DyD(f,b.exposedViewportLocalGeometry);V=t.timeProvider.now();Q=Object;B=Q.assign;if(m!==2||t.inCrossDomainIframe||R.width<=0||R.height<=0)var d=!1;else try{var I=t.document.elementFromPoint(R.left+R.width/2,R.top+R.height/2);d=I?!DQj(I,A):!1}catch(O){d=!1}return{timestamp:V,value:B.call(Q,{},b,{elementGeometrySourceName:"geo",intersectionGeometry:d?sc_.intersectionGeometry:R,elementGeometry:f})}}),ah(t.queue))}}};
DQj=function(t,E,p){p=p===void 0?0:p;return t.ref===void 0||E.ref===void 0?!1:t.ref===E.ref||_.tg(E.ref,function(U){return U===t.ref})?!0:E.ref.ownerDocument&&E.ref.ownerDocument.defaultView&&E.ref.ownerDocument.defaultView===E.ref.ownerDocument.defaultView.top?!1:p<10&&E.ref.ownerDocument&&E.ref.ownerDocument.defaultView&&E.ref.ownerDocument.defaultView.frameElement?DQj(t,new Eh(E.ref.ownerDocument.defaultView.frameElement),p+1):!0};
oOY=function(t){return function(E){return E.pipe(t.ResizeObserver?PQE(t):TVO(t),VX(1),WT())}};
PQE=function(t){return function(E){return E.pipe(j2(function(p){var U=t.ResizeObserver;if(!U||p.ref===void 0)return LB(sc_.elementGeometry);var x=(new g3(function(A){function m(){p.ref!==void 0&&b.unobserve(p.ref);b.disconnect();f.unsubscribe()}
if(p.ref===void 0)return A.complete(),function(){};
var b=new U(function(B){B.forEach(function(R){A.next(R)})});
b.observe(p.ref);var f=p.JSC$9636_released.subscribe(m);return m})).pipe(Ys(t.performanceMonitor,736),$k(function(A){return A.contentRect}));
return pq(LB(p.ref.getBoundingClientRect()),x)}),Hx(GJ))}};
TVO=function(t){return function(E){var p=E.pipe(JWK(t)),U=t.onResize;p=pq(E.pipe($k(function(){return jvj("resize")})),p,U);
return vT(E,p).pipe(Ys(t.performanceMonitor,737),$k(function(x){x=_.M(x).next().value;return x.ref===void 0?void 0:x.ref.getBoundingClientRect()}),Xy$(),Hx(GJ))}};
K7K=function(t,E){var p=W7$(t,E).pipe(VX(1),WT());return function(U){return function(x){x=x.pipe(j2(function(A){return A.element}),Hx());
return vT([p,x]).pipe(j2(function(A){var m=_.M(A);A=m.next().value;m=m.next().value;return $QY(t,A.intersectionObserver,oOY(t),A.observations,U,A.flushRecords,m)}),ah(t.queue))}}};
vOL=function(t){return $k(function(E){return E.value.viewportGeometrySourceName!=="nio"?E:Object.assign({},E,{value:Object.assign({},E.value,{exposedViewportLocalGeometry:Uh(t,!0),topWindowViewportExternalGeometry:Uh(t,!0)})})})};
yWj=function(t,E){return LB(E).pipe(t,$k(function(){return E}))};
W7$=function(t,E){return t.timeProvider.timeline!==SJ8?PT(new Wx(2)):t.MutationObserver?typeof IntersectionObserver==="undefined"?PT(new Wx(0)):(new g3(function(p){var U=new hC,x=new xW(U.next.bind(U),{threshold:[].concat(_.KB(E))});p.next({observations:U.pipe(Ys(t.performanceMonitor,735)),intersectionObserver:x,flushRecords:function(A){A=x.takeRecords(A);A.length>0&&U.next(A)}})})).pipe(qX(1),VX(1),WT()):PT(new Wx(1))};
cW_=function(t){return vki(t.sort(function(E,p){return E.time-p.time}),AC$)};
$QY=function(t,E,p,U,x,A,m){return new g3(function(b){function f(){d||(d=!0,m.ref!==void 0&&E.unobserve(x,m.ref),R.unsubscribe(),C.unsubscribe(),Q.unsubscribe(),I.unsubscribe())}
if(m.ref!==void 0){tCO(E,x);E.observe(x,m.ref);var B=new Ag({timestamp:t.timeProvider.now(),value:Object.assign({},sc_,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),R=U.pipe(Ss(function(O){return cW_(O)}),U8(function(O){return O.target===m.ref}),$k(function(O){return{timestamp:new AC(O.time,SJ8),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:O.rootBounds||YW,topWindowViewportExternalGeometry:O.rootBounds||Uh(t,!0),measurementRequests:V,elementGeometrySourceName:"nio",intersectionGeometry:O.intersectionRect,elementGeometry:O.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:O.isIntersecting,isV2Visible:O.isVisible}}}),wg(B),WT()).subscribe(b),V=new hC,Q=V.subscribe(function(){A(x);
b.next({timestamp:t.timeProvider.now(),value:B.value.value});m.ref!==void 0&&(E.unobserve(x,m.ref),E.observe(x,m.ref))}),C=yWj(p,m).subscribe(function(){V.next()}),d=!1,I=m.JSC$9636_released.subscribe(function(){return f()});
return f}})};
Ewt=function(t,E){var p=t.getOnBackgrounded().pipe($k(function(){return"b"}));
return ZqJ(E,p).pipe(qX(1),e2(t.queue))};
My=function(t){return function(E){var p;return E.pipe(TgD(function(U){return void(p=U.timestamp)}),$k(function(U){return U.value}),t,$k(function(U){return{timestamp:p,
value:U}}))}};
pvK=function(t){return t.intersectionGeometry.width*t.intersectionGeometry.height/(t.elementGeometry.width*t.elementGeometry.height)};
m9=function(t,E,p){p=p===void 0?function(U,x){return U===x}:p;
return t.timestamp.equals(E.timestamp)&&p(t.value,E.value)};
iN=function(t,E){return E.pipe($k(function(p){return new bN(t.timeProvider,{timestamp:t.timeProvider.now(),value:p})}))};
U$$=function(t){return function(E){return E.pipe(osD(t),$k(function(p){var U=_.M(p);p=U.next().value;U=U.next().value;var x=p.value;return{timestamp:p.timestamp,value:x>=1?!0:x<=0?!1:x>=U}}))}};
Atj=function(){return IR(U8(function(t,E){return E>0}),x$8,Cq(-1),Hx())};
Yj8=function(t,E,p){return t?vT([E,p]).pipe(U8(function(U){var x=_.M(U);U=x.next().value;x=x.next().value;return U.timestamp.equals(x.timestamp)}),$k(function(U){var x=_.M(U);
U=x.next().value;x=x.next().value;return U.value>x.value?U:x})):E};
bw0=function(t){return function(E){var p=E.pipe(MCt),U=E.pipe(m$J);return t instanceof g3?t.pipe(j2(function(x){return Yj8(x,p,U)})):Yj8(t.value,p,U)}};
CK$=function(t,E,p,U){var x=U.geometryIsOccluded,A=U.exposureThreshold,m=U.wasLargeAdAtRender,b=U.allowLargeAdThreshold,f=U.largeAdExposureThreshold,B=U.mayUseViewportShareExposure,R=U.hasMeasurementStarted;U=U.useIntersectionObserverV2;E=iwJ(t,p,E);p=qjO(t,p);U=Hwt(E,U);var V=fpD(t,x,B,E),Q=V.pipe($k(function(W){return W.value}),Hx(),e2(t),QX(function(W,K){return Math.max(W,K)},0)),C=V.pipe($k(function(W){return W.value}),Atj(),e2(t)),d=E.pipe(BhO,$k(function(W){return W.value}),qX(2),Hx(),e2(t));
m=wvO(t,E,m,b);var I=m.pipe(Cq(!1),Hx(),$k(function(W){return W?f:A}));
b=V.pipe(U$$(I),Hx(),e2(t));var O=vT([b,E]).pipe(U8(function(W){var K=_.M(W);W=K.next().value;K=K.next().value;return W.timestamp.equals(K.timestamp)}),$k(function(W){var K=_.M(W);
W=K.next().value;K=K.next().value;return{visible:W.value,geometry:K.value.elementGeometry}}),QX(function(W,K){return!K.visible&&W.visible?W:K},{visible:!1,
geometry:YW}),$k(function(W){return W.geometry}),Cq(YW),e2(t),Hx(GJ));
B=B instanceof g3?B.pipe(Hx(),ig()):oh;I=vT([B,I]).pipe(ig());var a=E.pipe(U8(function(W){return W.value.viewportGeometrySourceName!=="ns"&&W.value.elementGeometrySourceName!=="ns"}),QX(function(W){return W+1},0),Cq(0),e2(t)),F=p.pipe(ig(!0),Cq(!1),e2(t));
F=vT([R,F]).pipe($k(function(W){var K=_.M(W);W=K.next().value;K=K.next().value;return W&&!K}),e2(t));
var L=E.pipe(Rg$,Hx()),D=L.pipe($k(function(W){return W.value}),QX(function(W,K){return Math.max(W,K)},0),Hx(),e2(t));
t=L.pipe($k(function(W){return W.value}),Atj(),e2(t));
return{shouldResetExposureSignals:B,shouldResetViewabilitySignals:I,geometrySignals:{readyGeometryWithDefault:E,measurementStrategy:E.pipe(VCL),creativePosition:O.pipe(Hx(GJ)),visible:b.pipe(Hx(m9)),timestampedExposure:V.pipe(Hx(m9)),maximumExposure:Q,minimumExposure:C,browserSize:E.pipe(Qmj,Hx(_.y_)),timestampedScreenShare:L,maxScreenShare:D,minScreenShare:t,geometricMeasurementErrors:p,measurementRequests:E.pipe($k(function(W){return W.value.measurementRequests})),
isLargeAd:m,geometryIsOccluded:x,hasMeasurementStarted:R,geometryMeasurable:F,validMeasurementCount:a,loadTimeExposure:d,v2VisibilityBitVector:U}}};
qjO=function(t,E){return E.pipe(U8(function(){return!1}),$k(function(p){return p}),MX(function(p){return qy(new lg(p),t)}))};
iwJ=function(t,E,p){return E.pipe(I_i(oh),e2(t)).pipe(Hx(function(U,x){return m9(U,x,nOj)}),Cq({timestamp:p.now(),
value:sc_}),e2(t))};
fpD=function(t,E,p,U){p=U.pipe(bw0(p),My($k(function(x){return Math.round(x*100)/100})),e2(t));
return E instanceof lg?p:vT([p,E]).pipe($k(function(x){var A=_.M(x);x=A.next().value;A=A.next().value;return{timestamp:A.timestamp.maximum(x.timestamp),value:A.value?0:x.value}}),Hx(m9),e2(t))};
wvO=function(t,E,p,U){E=[E.pipe($k(function(x){return x.value.elementGeometry.width*x.value.elementGeometry.height>=242500}))];
p instanceof g3&&E.push(p.pipe($k(function(x){return!!x})));
p=vT(E);return U?p.pipe($k(function(x){return x.some(function(A){return A})}),Cq(!1),Hx(),e2(t)):qy(new lg(!1),t)};
Hwt=function(t,E){t=vT([t,E]).pipe($k(function(x){var A=_.M(x);x=A.next().value;if(A.next().value&&x.value.isIntersecting)return x.value.isV2Visible}),Hx());
var p=t.pipe($k(function(x){return x===void 0?!0:x}),QX(function(x,A){return x||!A},!1)),U=t.pipe(QX(function(x,A){return A===void 0?x:A?!1:x!=null?x:!0},void 0),$k(function(x){return!!x}));
return vT([E,OqY(t,p,U)]).pipe($k(function(x){var A=_.M(x);x=A.next().value;var m=_.M(A.next().value);A=m.next().value;var b=m.next().value;m=m.next().value;var f=0;if(!x)return 0;if(A===void 0)return 16;A&&(f|=1);A||(f|=2);b&&(f|=4);m&&(f|=8);return f}))};
Jt_=function(t,E,p,U,x){var A=jmO.timeThresholdMs;var m=m===void 0?new rt$(E,U):m;return(new g3(function(b){var f=p.pipe(Cq(void 0),j2(function(){return kqj(x)})).pipe($k(function(B){var R=B.value;
B=B.timestamp;var V=R.visible;R=R.consecutiveViewTime;var Q=R>=A;Q||!V?d$J(m):(B=Math.max(0,xs(E.now(),B)),ur_(m,Math.max(0,A-R-B)));return Q}),QX(function(B,R){return R||B},!1),Hx()).subscribe(b);
return function(){m.dispose();f.unsubscribe()}})).pipe(rg(function(b){return!b},!0),e2(t))};
kqj=function(t){return a8L([t,t.pipe(G$_())]).pipe($k(function(E){var p=_.M(E);E=p.next().value;p=p.next().value;return{timestamp:E.timestamp,value:{visible:E.value,consecutiveViewTime:p.value}}}),Hx(function(E,p){return m9(E,p,function(U,x){return U.consecutiveViewTime===x.consecutiveViewTime&&U.visible===x.visible})}))};
Ip0=function(){return IR(z2j(),QX(function(t,E){return Math.max(t,E)},0),$k(function(t){return Math.round(t)}))};
gw$=function(t){return IR(U$$(LB(t)),Ip0())};
Zwt=function(t,E){return E instanceof g3?E.pipe(j2(function(p){return(p=p?15:null)?PT(new Wx(p)):t})):(E=E.value?15:null)?PT(new Wx(E)):t};
OwE=function(t){var E=new Wx(13);if(t.length<1)return{chain:E8,capturedErrors:E8};var p=new hC,U=t[0];return{chain:t.slice(1).reduce(function(x,A){return x.pipe(MX(function(m){p.next(m);return A}))},U).pipe(MX(function(x){p.next(x);
return PT(E)}),wg(new hC),WT()),
capturedErrors:p}};
Xvj=function(t,E){var p=t.pipe(wg(new hC),WT());return j2(function(U){return p.pipe(E(U))})};
apY=function(t,E){if(t.inCrossDomainIframe)return PT(new Wx(6));var p=new hC;return pq(LB({}),E,p).pipe($k(function(){return{timestamp:t.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:hgJ(t),topWindowViewportExternalGeometry:Uh(t,!0),measurementRequests:p,viewportLocalAppOffset:{x:0,y:0}}}}),ah(t.queue))};
hgJ=function(t){var E=Uh(t,!1);if(!t.inIframe||!yCO(t.global.parent)||t.global.parent===t.global)return E;var p=new HQ(t.global.parent,t.debugChannel);p.beaconFactory=t.beaconFactory;p=hgJ(p);t=t.global.frameElement.getBoundingClientRect();return DyD(svL(DyD(p,t),{x:E.left-t.left,y:E.top-t.top}),E)};
egl=function(t){if(t.prerendering)return 3;var E;return(E={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[t.visibilityState||t.webkitVisibilityState||t.mozVisibilityState||""])!=null?E:0};
FW8=function(t){return t.document.JSC$9647_onVisibilityChange.pipe($k(function(E){return E==="visible"}),Hx(),e2(t.queue))};
zgL=function(t,E,p){var U;return E.pipe(Hx(),j2(function(x){return p.pipe($k(function(){if(!U){U=!0;try{x.next()}finally{U=!1}}return!0}))}),Cq(!1),e2(t.queue))};
lpL=function(t){return IR(My($k(function(E){return E>=1?!0:E<=0?!1:E>=t})),F7K(),$k(function(E){return Math.round(E)}))};
nwE=function(t,E,p,U,x){var A=Gqj;if(A.length>1)for(var m=0;m<A.length-1;m++)if(A[m]<A[m+1])throw Error();m=x.pipe(Cq(void 0),j2(function(){return p.pipe(G$_())}),Hx(),e2(t));
x=x.pipe(Cq(void 0),j2(function(){return p.pipe(Ip0())}),Hx(),e2(t));
return{totalMeasurementTime:U.pipe(Cq(void 0),j2(function(){return E.pipe($k(function(b){return{timestamp:b.timestamp,value:!0}}),F7K())}),Hx(),e2(t)),
totalUnviewedTime:U.pipe(Cq(void 0),j2(function(){return E.pipe($k(function(b){return{timestamp:b.timestamp,value:b.value===0}}),F7K())}),Hx(),e2(t)),
maxTimeOnScreen:U.pipe(Cq(void 0),j2(function(){return E.pipe(l8O(gw$,A))}),Hx(_.y_),e2(t)),
timeOnScreen:U.pipe(Cq(void 0),j2(function(){return E.pipe(l8O(lpL,A),$k(function(b){return b.map(function(f,B){return B>0?f-b[B-1]:f})}))}),Hx(_.y_),e2(t)),
maxConsecutiveViewTime:x,consecutiveViewTime:m.pipe(Hx(m9),e2(t))}};
D$E=function(t){var E=!0;E=E===void 0?!1:E;return IR(j2(function(p){return Nhl(t.document,p,E)}),e2(t.queue))};
smY=function(t,E,p){var U=p.pipe($k(function(x){return{value:x,timestamp:t.timeProvider.now()}}),Hx(m9));
return E instanceof g3?E.pipe(Hx(),j2(function(x){return x?qy(new lg({value:!1,timestamp:t.timeProvider.now()}),t.queue):U})):E.value===!1?U:new lg(!1)};
LWL=function(t,E,p,U,x,A,m){var b=jmO;E=E instanceof g3?E.pipe(Cq(!1),Hx()):E;var f=!t.isMobile();p=smY(t,p,U);t=m.measurableCreative.pipe(h2J(t.queue));return Object.assign({},b,{geometryIsOccluded:p,wasLargeAdAtRender:x,allowLargeAdThreshold:f,mayUseViewportShareExposure:E,hasMeasurementStarted:t,useIntersectionObserverV2:A})};
ThD=function(t,E,p,U,x,A){var m=1;A=A===void 0?!0:A;m=m===void 0?.01:m;var b=b===void 0?t.timeProvider.intervalObservable(100).pipe(e2(t.queue)):b;return t.performanceMonitor.timeExecution(916,function(){return PKL(t,E.pipe(ah(t.queue)),p.pipe(ah(t.queue)),U,x,A,m,b)})()};
PKL=function(t,E,p,U,x,A,m,b){var f=FW8(t).pipe($k(function(R){return!R})),B=new ow_(t,[new WWE(t,Gqj),
new $$L(t,b)]);b=jcD(KW$,vwj);return HN8(t,E,function(R,V){var Q=qy(new lg(V.element),R.queue).pipe(D$E(R),e2(R.queue)),C={loadedElement:Q,shouldMeasure:Q.pipe(ig(!0)),measurableCreative:Q.pipe($k(function(W){var K=K===void 0?Symbol():K;return Object.freeze({symbol:K,element:qy(new lg(W),R.queue)})})),
creativeSearchResult:qy(new lg("mue"),R.queue)},d=new lg(!1),I=new lg(!1),O=new lg(17),a=new lg(!1),F=new lg(!1),L=qy(fg,R.queue);d=B.buildGeometrySource(C,{inApp:d,useV2:!1,requestSource:qy(O,R.queue)}).geometrySource;C=LWL(R,a,I,f,F,L,C);I=CK$(R.queue,R.timeProvider,d,C);C=I.geometrySignals;a=I.shouldResetViewabilitySignals;I=nwE(R.queue,C.timestampedExposure,C.visible,I.shouldResetExposureSignals,a);a=Jt_(R.queue,R.timeProvider,a,C.measurementRequests,C.visible);F=p.pipe(U8(function(W){return W===
V.element.ref}),$k(function(){return"ur"}));
L=etL(R.timeProvider,x).pipe(ig("t"));F=Ewt(R,pq(F,L));L=zgL(R,C.measurementRequests,F.pipe(U8(function(W){return W!==null})));
d=F.pipe(U8(function(W){return W!==null}),$k(function(){return egl(R.global.document)===1}));
var D=ytO(R.document);return Object.assign({},{beaconFactory:new lg(R.beaconFactory),context:new lg(R),inferredPingId:new lg("lidar2"),timeOnScreenPingId:new lg("lidartos"),binaryContext:new lg(17),binaryVersion:new lg(U),requestSource:O,contextValidationErrors:new lg(R.validate()?null:new $s),contextVisibilityKnown:new lg(D),payloadMapper:new lg(Qct),endOfSessionReason:F,timeOnScreenReason:F,requestMeasurementOnEndOfSession:L,hasImpressionFired:Sj$,crossDomainIframeState:new lg(R.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:fg,inFetchLaterBeaconExperiment:fg,isTurtlex:fg,turtlexReportEventData:new lg(""),reportFencedFrameEvent:oh,isViewableAttributionEnabled:fg,inViewableAttributionExperiment:new lg(0),fetchBeaconFactory:oh,supportsPendingBeacon:fg,supportsFetchLater:fg,emit:new lg(dQ8),beginToRenderEvent:new lg(Symbol()),activeViewUnmeasurableEvent:new lg(Symbol()),activeViewViewableEvent:new lg(Symbol()),creativeFound:Sj$,immediateUrlPrefixes:new lg(V.immediateUrls),timeOnScreenUrlPrefixes:new lg(V.timeOnScreenUrls),
cpmavUrls:oh,viewableRelayUrls:oh,measurementDeferralState:new lg(2),urlSerializer:new lg(ON$),viewUrlSerializer:new lg(ct8),isCreativeLoaded:Q.pipe(h2J(R.queue)),pageVisible:f.pipe($k(function(W){return!W})),
eosPageVisible:d,timestampedExposureHistory:C.timestampedExposure.pipe(QX(function(W,K){W.push(K);return W},[]))},C,{viewable:iN(R,a),
maxTimeOnScreen:iN(R,I.maxTimeOnScreen),timeOnScreen:iN(R,I.timeOnScreen),maxConsecutiveViewTime:iN(R,I.maxConsecutiveViewTime),consecutiveViewTime:I.consecutiveViewTime.pipe($k(function(W){return new bN(R.timeProvider,W)})),
totalMeasurementTime:iN(R,I.totalMeasurementTime),totalUnviewedTime:iN(R,I.totalUnviewedTime),userAgentClientHints:CNY(R),clientOrderPingCounter:new lg(new BV$)})},CQ0(t,m),rWJ(A?k$t(b,tiJ):k$t(b,EaO),pCt))};
UOD=function(t){var E=_.t9.apply(1,arguments).filter(Boolean).join("&");if(!E)return t;var p=t.match(/[?&]adurl=/);return p?t.slice(0,p.index+1)+E+"&"+t.slice(p.index+1):t+(t.indexOf("?")<0?"?":"&")+E};
BQ=function(t,E){return E?"&"+t+"="+encodeURIComponent(E):""};
xOD=function(){try{var t,E;return!!((t=window)==null?0:(E=t.top)==null?0:E.location.href)&&!1}catch(p){return!0}};
_.wi=function(t){t&&typeof t.dispose=="function"&&t.dispose()};
_.Qy=function(t){for(var E=0,p=arguments.length;E<p;++E){var U=arguments[E];_.LO(U)?_.Qy.apply(null,U):_.wi(U)}};
YBK=function(){var t=A6_();t=t===void 0?"bevasrsg":t;return new Promise(function(E){var p=window===window.top?window:xOD()?window:window.top,U=p[t],x;((x=U)==null?0:x.bevasrs)?E(new Cg(U.bevasrs)):(U||(U={},U=(U.nqfbel=[],U),p[t]=U),U.nqfbel.push(function(A){E(new Cg(A))}))})};
MiK=function(t){var E={c:t.cw,e:t.a52,mc:t.zTz,me:t.igE};t.kP&&(E.co={c:t.kP.lPn,a:t.kP.foi,s:t.kP.oZb});return E};
mOO=function(t){var E,p,U={cw:t.c,a52:t.e,zTz:(E=t.mc)!=null?E:!1,igE:(p=t.me)!=null?p:!1};t.co&&(U.kP={lPn:t.co.c,foi:t.co.a,oZb:t.co.s});return U};
bRi=function(t){return function(){var E;return _.q(function(p){if(p.nextAddress==1)return p.yield(t(),2);E=p.yieldResult;return p.return({f:function(){return E.cb2()},
c:function(U){return E.bLq(U)},
m:function(U){return E.i1(mOO(U))},
mws:function(U){return E.nJG(mOO(U))}})})}};
iR8=function(t,E){var p=A6_();p=p===void 0?"bevasrsg":p;E={s:function(A){var m;return t.snapshot(Object.assign({},A.c&&{cw:A.c},A.s&&{wUG:A.s},{uzx:(m=A.p)!=null?m:!0}))},
e:function(A){var m;return void((m=t.gRT)==null?void 0:m.call(t,A))},
c:function(A,m){return t.dVf(A,m)},
p:t.gCG,l:function(){return t.ko2()},
wpc:E?bRi(E):void 0};var U=window===window.top?window:xOD()?window:window.top,x=U[p];if(x){x.bevasrs=E;if(x.nqfbel!==void 0)for(p=_.M(x.nqfbel),U=p.next();!U.done;U=p.next())U=U.value,U(E);x.nqfbel=void 0}else x={},x=(x.bevasrs=E,x.nqfbel=void 0,x),U[p]=x};
HRE=function(t){var E=E===void 0?52:E;var p=[];_.jd(t,qBD,6,_.ri()).forEach(function(U){_.kW(U,2)<=E&&p.push(_.kW(U,1))});
return p};
f3i=function(t){var E=E===void 0?52:E;var p=[];_.jd(t,qBD,6,_.ri()).forEach(function(U){_.kW(U,2)>E&&p.push(_.kW(U,1))});
return p};
BsO=function(t){t.then(function(){},function(){})};
di=function(t){return{fieldType:1,fieldName:t}};
uN=function(t){return{fieldType:2,fieldName:t}};
_.Jg=function(t){return{fieldType:3,fieldName:t}};
wCD=function(){function t(){x[0]=1732584193;x[1]=4023233417;x[2]=2562383102;x[3]=271733878;x[4]=3285377520;R=B=0}
function E(V){for(var Q=m,C=0;C<64;C+=4)Q[C/4]=V[C]<<24|V[C+1]<<16|V[C+2]<<8|V[C+3];for(C=16;C<80;C++)V=Q[C-3]^Q[C-8]^Q[C-14]^Q[C-16],Q[C]=(V<<1|V>>>31)&4294967295;V=x[0];var d=x[1],I=x[2],O=x[3],a=x[4];for(C=0;C<80;C++){if(C<40)if(C<20){var F=O^d&(I^O);var L=1518500249}else F=d^I^O,L=1859775393;else C<60?(F=d&I|O&(d|I),L=2400959708):(F=d^I^O,L=3395469782);F=((V<<5|V>>>27)&4294967295)+F+a+L+Q[C]&4294967295;a=O;O=I;I=(d<<30|d>>>2)&4294967295;d=V;V=F}x[0]=x[0]+V&4294967295;x[1]=x[1]+d&4294967295;x[2]=
x[2]+I&4294967295;x[3]=x[3]+O&4294967295;x[4]=x[4]+a&4294967295}
function p(V,Q){if(typeof V==="string"){V=unescape(encodeURIComponent(V));for(var C=[],d=0,I=V.length;d<I;++d)C.push(V.charCodeAt(d));V=C}Q||(Q=V.length);C=0;if(B==0)for(;C+64<Q;)E(V.slice(C,C+64)),C+=64,R+=64;for(;C<Q;)if(A[B++]=V[C++],R++,B==64)for(B=0,E(A);C+64<Q;)E(V.slice(C,C+64)),C+=64,R+=64}
function U(){var V=[],Q=R*8;B<56?p(b,56-B):p(b,64-(B-56));for(var C=63;C>=56;C--)A[C]=Q&255,Q>>>=8;E(A);for(C=Q=0;C<5;C++)for(var d=24;d>=0;d-=8)V[Q++]=x[C]>>d&255;return V}
for(var x=[],A=[],m=[],b=[128],f=1;f<64;++f)b[f]=0;var B,R;t();return{reset:t,update:p,digest:U,digestString:function(){for(var V=U(),Q="",C=0;C<V.length;C++)Q+="0123456789ABCDEF".charAt(Math.floor(V[C]/16))+"0123456789ABCDEF".charAt(V[C]%16);return Q}}};
Iv=function(t){this.JSC$9894_document_=t||{cookie:""}};
r6i=function(t,E){E=E===void 0?RZO:E;if(!Vit){var p;t=(p=t.navigator)==null?void 0:p.userAgentData;if(!t||typeof t.getHighEntropyValues!=="function"||t.brands&&typeof t.brands.map!=="function")return Promise.reject(Error("ua"));QaY((t.brands||[]).map(function(x){var A=new Ca$;A=_.Lq(A,1,x.brand);return _.Lq(A,2,x.version)}));
typeof t.mobile==="boolean"&&_.gi(jal,2,t.mobile);Vit=t.getHighEntropyValues(E)}var U=new Set(E);return Vit.then(function(x){var A=jal.clone();U.has("platform")&&_.Lq(A,3,x.platform);U.has("platformVersion")&&_.Lq(A,4,x.platformVersion);U.has("architecture")&&_.Lq(A,5,x.architecture);U.has("model")&&_.Lq(A,6,x.model);U.has("uaFullVersion")&&_.Lq(A,7,x.uaFullVersion);return A.serialize()}).catch(function(){return jal.serialize()})};
Oh=function(t,E,p,U){this.initialValue_=t;this.maxValue_=E;this.currBaseValue_=this.currValue_=t;this.randomFactor_=p||0;this.backoffFactor_=U||2};
hg=function(t){this.src=t;this.listeners={};this.typeCount_=0};
J6E=function(){for(var t;t=k3E.remove();){try{t.fn.call(t.scope)}catch(E){xL(E)}dO_.put(t)}u3Y=!1};
_.I3E=function(t){switch(t){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}};
gaL=function(t){switch(t){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""}};
_.ZRY=function(){};
G30=function(t,E,p,U){t=OR$(XCJ(hZE(new _.av(1828,"0"),t),new a3i)).disableWithCredentials();E.length&&eZO(t,FY0(new zZ_,E));U!==void 0&&(t.destinationUrl=U);var x=new l3L(1828,"","",!1,"",t.build());_.ed(x,t);var A=new Fs({flush:function(m){try{x.flush(m)}catch(b){p(b)}}});
A.addOnDisposeCallback(function(){setTimeout(function(){try{A.snapshotAndFlush()}finally{x.dispose()}})});
A.invocationLimit=1E5;A.flushInterval=3E4;A.JSC$10063_flushTimer.setInterval(3E4);return A};
zg=function(){var t,E,p;return(p=(t=globalThis.performance)==null?void 0:(E=t.now)==null?void 0:E.call(t))!=null?p:Date.now()};
DOK=function(t,E){if(t.disable)return new na_;E=E?HRE(E):[];t={kj:t.kj,cMC:t.cpB,jFI:t.bBY,destinationUrl:t.destinationUrl,dG5:t.dG5,kOy:t.kOy};E=E===void 0?[]:E;return new Nst(t,E)};
saD=function(t){if(!t)return null;t=_.lN(t,2);return t===null||t===void 0?null:xk(t)};
_.LYL=function(t){if(!t)return null;t=_.lN(t,4);return t===null||t===void 0?null:_.N2(t)};
oaO=function(t,E){return E?PaY(E):t?TsO(t):Promise.resolve()};
PaY=function(t){return new Promise(function(E,p){var U=_.Gg("SCRIPT"),x=_.LYL(t);_.w3(U,x);U.onload=function(){_.ng(U);E()};
U.onerror=function(){_.ng(U);p(Error("Fa"))};
(Ny("HEAD")[0]||document.documentElement).appendChild(U)})};
TsO=function(t){return new Promise(function(E){var p=_.Gg("SCRIPT");if(t){var U=_.lN(t,6);U=U===null||U===void 0?null:_.HT(U)}else U=null;_.BT(p,U);(Ny("HEAD")[0]||document.documentElement).appendChild(p);_.ng(p);E()})};
DP=function(t,E,p){var U,x=new Promise(function(A){U=setTimeout(A,E)});
return Promise.race([t.finally(function(){return void clearTimeout(U)}),
x.then(p)])};
WYO=function(t,E){try{return globalThis.sessionStorage.setItem(t,E),!0}catch(p){return!1}};
$O8=function(t,E,p,U){E=E===void 0?0:E;p=p===void 0?t.length:p;var x=0;for(U&&(x=$O8(U));E<p;E++)U=typeof t==="string"?t.charCodeAt(E):t[E],x=KYY(31,x)+U|0;return x};
vaL=function(t,E){return[$O8(t,0,t.length>>1,E),$O8(t,t.length>>1)]};
y68=function(t){var E=_.M(vaL(t,sh));t=E.next().value;E=E.next().value;return t.toString(16)+E.toString(16)};
SBL=function(t,E){var p=vaL(E);t=new Uint32Array(t.buffer);E=t[0];var U=_.M(p);p=U.next().value;U=U.next().value;for(var x=1;x<t.length;x+=2){for(var A=E,m=x,b=p,f=U,B=0;B<22;B++)m=m>>>8|m<<24,m+=A|0,m^=b+38293,A=A<<3|A>>>29,A^=m,f=f>>>8|f<<24,f+=b|0,f^=B+38293,b=b<<3|b>>>29,b^=f;A=[A,m];t[x]^=A[0];x+1<t.length&&(t[x+1]^=A[1])}};
c68=function(t,E,p,U,x){var A=(4-(sh.length+p.length)%4)%4,m=new Uint8Array(4+A+sh.length+4+p.length),b=new DataView(m.buffer),f=0;b.setUint32(f,Math.random()*4294967295);f=f+4+A;m.set(sh,f);f+=sh.length;b.setUint32(f,x);m.set(p,f+4);SBL(m,U);return t.insert(E,function(B){return void globalThis.sessionStorage.removeItem(B)})?WYO(E,_.S$(m))?"s":"t":"i"};
tul=function(t,E){var p=globalThis.sessionStorage.getItem(t);if(!p)return["m"];try{var U=_.c8(p);SBL(U,E)}catch(x){return globalThis.sessionStorage.removeItem(t),["c"]}for(E=4;E<7&&U[E]===0;)E++;for(p=0;p<sh.length;p++)if(U[E++]!==sh[p])return globalThis.sessionStorage.removeItem(t),["d"];p=(new DataView(U.buffer)).getUint32(E);return Math.floor(Date.now()/1E3)>=p?(globalThis.sessionStorage.removeItem(t),["e"]):["a",new Uint8Array(U.buffer,E+4)]};
E6D=function(t){return globalThis.TextEncoder?(new TextEncoder).encode(t):_.Lg(t)};
pkO=function(t){var E=t,p;return function(){if(E){var U=E;E=void 0;p=U.apply(this,arguments)}return p}};
xRJ=function(t){return ns(function(E){if(E instanceof t)return!0;var p,U,x=E==null?void 0:(p=E.ownerDocument)==null?void 0:(U=p.defaultView)==null?void 0:U[t.name];return UR8(x)&&E instanceof x})};
_.ov=function(t,E,p){_.PQ.call(this);this.JSC$10277_listener_=t;this.JSC$10277_interval_=E||0;this.handler_=p;this.callback_=(0,_.Tg)(this.JSC$10279_doAction_,this)};
WQ=function(){_.PQ.call(this);this.services_={}};
Sd=function(t,E,p,U,x){$W.call(this,p);this.JSC$10303_channel_=t;this.protocolVersion_=x||2;this.peerHostname_=E||"*";this.JSC$10303_eventHandler_=new _.Kg(this);this.maybeAttemptToConnectTimer_=new _.vQ(100,this.getWindow());this.oneSidedHandshake_=!!U;this.setupAckReceived_=new yy;this.setupAckSent_=new yy;this.JSC$10303_connected_=new yy;this.endpointId_=AF8();this.peerEndpointId_=null;this.oneSidedHandshake_?YyK(this.JSC$10303_channel_)==1?Mu0(this.JSC$10303_connected_,this.setupAckReceived_):
Mu0(this.JSC$10303_connected_,this.setupAckSent_):(Mu0(this.JSC$10303_connected_,this.setupAckReceived_),this.protocolVersion_==2&&Mu0(this.JSC$10303_connected_,this.setupAckSent_));mRE(this.JSC$10303_connected_,this.notifyConnected_,this);this.JSC$10303_connected_.callback(!0);this.JSC$10303_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.cQ=function(t){t=bME(t);return _.N2(t)};
bME=function(t){return t===null?"null":t===void 0?"undefined":t};
xO=function(t,E){WQ.call(this);for(var p=0,U;U=iMY[p];p++)if(U in t&&!/^https?:\/\//.test(t[U]))throw Error("Ra`"+t[U]+"`"+U);this.cfg_=t;this.name=this.cfg_.cn||AF8();this.JSC$10304_domHelper_=E||s8();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.Kg(this);t.lpu=t.lpu||qy_(this.JSC$10304_domHelper_.getWindow().location.href)+"/robots.txt";t.ppu=t.ppu||qy_(t.pu||"")+"/robots.txt";tW[this.name]=this;HMO(window,"unload",fRL)||pN(window,"unload",fRL)};
wkO=function(t){if(t&&t.focus)if(t!==document.activeElement)t.focus();else return B7t(function(){return _.q(function(E){document.activeElement&&document.activeElement.blur();return E.return(B7t(function(){t.focus()}))})})};
_.ReO=function(t){var E=E===void 0?5:E;setTimeout(function(){var p;return _.q(function(U){U.nextAddress==1&&(p=document.activeElement);if(U.nextAddress!=5)return(document.activeElement===p||document.activeElement===document.body)&&E>=0&&t?U.yield(wkO(t),5):U.jumpTo(0);if(document.activeElement===t)return U.return();t=t.parentElement;--E;return U.jumpTo(2)})},15)};
B7t=function(t){return new Promise(function(E){requestAnimationFrame(function(){E(t())})})};
QDJ=function(t){if(_.AW)t(_.AW);else{var E;((E=Vut)!=null?E:Vut=[]).push(t)}};
MQ=function(){!_.AW&&_.YO&&_.CJD(_.YO());return _.AW};
_.CJD=function(t){_.AW=t;var E;(E=Vut)==null||E.forEach(QDJ);Vut=void 0};
m7=function(t){return Lrl(t)?Number(t):String(t)};
jDL=function(t){this.action=t;this.wfv=!1};
rFO=function(t,E){jDL.call(this,"set-drive-options");this.appId=t;this.appOrigin=E};
kMj=function(t){jDL.call(this,"visibility");this.visible=t};
ZM_=function(t,E){var p=dR_++,U={measureTask:{id:p,fn:t.measure,context:E},mutateTask:{id:p,fn:t.mutate,context:E},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(U.args||(U.args=[]),U.args.length=0,U.args.push.apply(U.args,arguments),U.args.push(U.state)):U.args&&U.args.length!=0?(U.args[0]=U.state,U.args.length=1):U.args=[U.state];U.isScheduled||(U.isScheduled=!0,ua$[JF8].push(U));IRl||(IRl=!0,window.requestAnimationFrame(g6$))}};
g6$=function(){IRl=!1;var t=ua$[JF8],E=t.length;JF8=(JF8+1)%2;for(var p,U=0;U<E;++U){p=t[U];var x=p.measureTask;p.isScheduled=!1;x.fn&&x.fn.apply(x.context,p.args)}for(U=0;U<E;++U)p=t[U],x=p.mutateTask,p.isScheduled=!1,x.fn&&x.fn.apply(x.context,p.args),p.state={};t.length=0};
OM_=function(t,E){this.JSC$10439_element_=t;this.JSC$10439_dom_=E};
iQ=function(t,E){bQ.call(this,E);this.useIframeMask_=!!t;this.lastFocus_=null;this.resizeBackgroundTask_=ZM_({mutate:this.resizeBackground_},this);ZM_({mutate:this.updateModalAndBackground_},this)};
Xkt=function(t,E,p){qQ.call(this,t,E,p)};
he0=function(t){Hy.call(this,t)};
aRJ=function(t){t=t&&t.getWindow()||window;return t.gadgets&&t.gadgets.rpc};
Fn8=function(t,E){var p=E&&E.getWindow()||window;if(aRJ(E))t();else if(ee0)ee0.push(t);else var U=ee0=[t],x=p.setInterval(function(){if(aRJ(E)){p.clearInterval(x);for(var A=0;A<U.length;A++)U[A]();ee0=null}},100)};
lR0=function(t,E){var p=new fN(t);_.ed(E,p);var U={passive:!1};E.listen(p,"mousewheel",function(x){return void zeY(t,x)},U).listen(t,"scroll",function(x){return void zeY(t,x)},U)};
zeY=function(t,E){var p;a:{for(p=E.target;p;){if(p.nodeType==1){var U=_.By(p,"overflowY");if(U=="auto"||U=="scroll")break a}p=p.parentNode}p=null}if(!p||!_.wV(t,p)||p.scrollHeight==p.clientHeight||E.deltaY>0&&Math.abs(p.scrollTop-(p.scrollHeight-p.clientHeight))<=1||E.deltaY<0&&p.scrollTop==0)E.preventDefault(),E.stopPropagation()};
GMO=function(){var t;if(t=t===void 0?window:t)return t!==t.parent&&t.hasOwnProperty("pangolinIframeGlobals");var E=Error("fb");setTimeout(function(){throw E;},1);
return!1};
kO=function(t,E,p,U,x,A,m,b,f){b=b===void 0?!1:b;f=f===void 0?!1:f;qQ.call(this,void 0,void 0,void 0);qQ.call(this,A?A+" picker modal-dialog":"picker modal-dialog",!0,p);_.Rc(t,"protocol");this.iframeManager_=new n6O;this.targetId_=VC();this.rpcToken_=VC();t=_.QC(t);_.CN(t,"hostId");this.useGapi_=!f&&!GMO();b&&_.jK(t,"fv2","true");this.setUrl(t.toString());this.preferredDialogWidth_=U;this.preferredDialogHeight_=x;U!==void 0||x!==void 0?U=!0:(U=_.CN(_.QC(t.toString()),"hostId"),N7J||(N7J=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),
U=!N7J.has(U));this.autoSizeDialog_=U;this.JSC$10467_gadgetsDomHelper_=m||this.JSC$10418_dom_;E&&(m=this.JSC$10467_gadgetsDomHelper_,E=_.CN(_.QC(this.JSC$10469_url_),"grugl")=="true"?DR8:sDD,aRJ(m)||(m=m||s8(document),U=m.createElement("SCRIPT"),_.w3(U,E),U.type="text/javascript",m.JSC$9602_document_.body.appendChild(U)));t=t.toString();E=null;m=t.indexOf("/picker?");m>-1?E=t.substring(0,m+8-1):MK(t,"/picker")&&(E=t);E&&this.setRelayUrl(E+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=
null;this.buttonEl_&&(this.buttons_?(t=this.buttons_,t.JSC$10452_element_=this.buttonEl_,t.render()):_.RR(this.buttonEl_,LnK),_.rV(this.buttonEl_,!!this.buttons_))};
PJj=function(t,E){_.dV.call(this,t.type,E);this.event_=t};
_.$RD=function(t){var E=E===void 0?T7t:E;var p=_.W8(t),U=function(A){A=_.M(A);A.next();A=uQ(A);return E(p,A)},x=function(A){var m=_.M(A);
A=m.next().value;m=uQ(m);return t.apply(A,m)};
return function(){var A=_.t9.apply(0,arguments),m=this||_.Ui,b=o6i.get(m);b||(b={},o6i.set(m,b));return Wni(b,[this].concat(_.KB(A)),x,U)}};
JW=function(t){var E={};t=t.replace(/\r/g,"").split("\n");for(var p=0;p<t.length;p++){var U=t[p],x=U.indexOf(":");x<0||(E[U.substring(0,x)]=U.substring(x+2,U.length))}return E};
SyE=function(t,E){E.id||(E.id="ow"+_.W8(E));t.setAttribute("jsowner",E.id);t.__owner=E;var p=_.tg(E,KnO);p&&(v6J.has(p)||v6J.set(p,[]),v6J.get(p).push(t));(p=yF8.get(E))||yF8.set(E,p=[]);p.includes(t)||p.push(t);E.setAttribute("__IS_OWNER",!0)};
KnO=function(t){return _.Ic(t)?t.getAttribute("jsname")==="coFSxe":!1};
cF8=function(t,E,p){p=p===void 0?function(){}:p;
return t?E():p()};
_.E70=function(t){var E;return((E=tTi.documentOverride)!=null?E:t).__wizdispatcher};
Z8=function(t){var E=gV;gV=t;return E};
U08=function(t){return t===pE0||(t==null?void 0:t.name)==="\u0275NotFound"};
OJ=function(t,E){var p;if((p=t)==null?0:p.isDisposed)throw Error("kb`"+String(t.debugName));for(;t!==void 0;){p=t;if(p.retrieve)return p.retrieve(E,{optional:!0});t=t.parent}return pE0};
X8=function(t){return{"\u0275prov":{providedIn:"root",token:Symbol(t),factory:void 0,value:void 0}}};
x00=function(t){var E=gV;if(!E){switch(t===void 0?3:t){case 0:t=Error("jb");break;case 1:t=Error("lb");break;case 2:t=Error("mb");break;default:t=Error("nb")}throw t;}return E};
Aw$=function(t){var E=Z8(t);t={};return t[Symbol.dispose]=function(){Z8(E)},t};
m0j=function(){var t=x00(1);t=OJ(t,YGL);if(!(U08(t)||t[MTY]&&!t.__hasBeenSet))return t.value};
bTi=function(t,E){t.disposables||(t.disposables=[]);t.disposables.push(E)};
hW=function(t){var E=gV;E&&!E.isDisposed&&(bTi(E,t),t.parent=E)};
qG$=function(t){if(t.disposables){for(var E=_.M(t.disposables),p=E.next();!p.done;p=E.next())p=p.value,typeof p==="function"?p():iTY(p);t.disposables.length=0}};
iTY=function(t){if(!t.isDisposed){t.isDisposed=!0;var E;(E=t[Symbol.dispose])==null||E.call(t);delete t.parent;qG$(t)}};
Crt=function(t){var E={retrieve:function(p){switch(p.\u0275prov.token){case HT8.\u0275prov.token:var U=t.asyncDeps;break;case YGL.\u0275prov.token:U=t.rootElement;break;case ft8.\u0275prov.token:U=t.modelRootElement;break;case Bx$.\u0275prov.token:U=t.appContext;break;case wEj.\u0275prov.token:U=t.rendererData;break;case RMt.\u0275prov.token:U=t.injectingConstructor;break;case VT0.\u0275prov.token:U=t.dispatcher}if(U)p=U;else a:{for(U=E.parent;U;){var x=U;if(x.retrieve){p=x.retrieve(p);break a}U=
U.parent}U=p.\u0275prov.token;x=Qfl[U];x!==void 0?p=x:(x=p.\u0275prov.providedIn,p.\u0275prov.factory?(p=p.\u0275prov.factory(),U&&x==="root"&&(Qfl[U]=p)):p=pE0)}return p}};
hW(E);return E};
jfi=function(){var t=x00(1),E=OJ(t,Bx$);if(!U08(E))return E;t=OJ(t,VT0);if(!U08(t))return t.getOptionalAppContext()};
rw0=function(t){if(typeof document!=="undefined"&&document&&document.getElementById&&(t=document.getElementById(t))){var E=t.tagName.toUpperCase();if(E=="SCRIPT"||E=="LINK")return t}return null};
d0t=function(t,E){if((t=t===void 0?"":t)&&E)throw Error("tb");var p="";var U=_.Ui._F_jsUrl;(t=E||rw0(t))&&(p=t.src?t.src:t.getAttribute("href"));if(U&&p){if(U!=p)throw Error("ub`"+U+"`"+p);p=U}else p=U||p;if(!kaD(p))throw Error("vb");return p};
g7Y=function(){if(!uLL){uLL=!0;try{var t=d0t(_.Ui._F_jsUrl?"":"base-js")}catch(U){return}var E=JwK(ItK(t)),p=Object.keys(E);p.length!==0&&QDJ(function(U){for(var x=_.M(p),A=x.next();!A.done;A=x.next()){A=A.value;for(var m=_.M(Object.keys(E[A])),b=m.next();!b.done;b=m.next())U.addExtraEdge(A,b.value)}})}};
OTt=function(){var t=Object.assign({},ZT$);Object.getOwnPropertyNames(ZT$).forEach(function(E){ac[E]!==void 0&&(t[E]=ac[E])});
return t};
XEt=function(t,E){if(ac.enablePerformanceTiming){var p,U;(U=(p=performance).mark)==null||U.call(p,t+"Start__"+E)}};
hMK=function(t,E){if(ac.enablePerformanceTiming){var p,U;(U=(p=performance).measure)==null||U.call(p,t+"__"+E,t+"Start__"+E)}};
atO=function(t,E,p){var U;return t&&E?t+"__"+E:(U=t!=null?t:E)!=null?U:p};
eME=function(t,E){return Object.is(t,E)};
F8=function(t){var E=eK;eK=t;return E};
zML=function(t){if(z$)throw Error("Z");if(eK!==null){var E=eK.producersTail;if(E===void 0||E.producer!==t){var p=void 0,U=eK.recomputing;if(U&&(p=E!==void 0?E.nextProducer:eK.producers,p!==void 0&&p.producer===t)){eK.producersTail=p;p.lastReadVersion=t.version;return}var x=t.consumersTail,A;if(!(A=x===void 0||x.consumer!==eK)){if(U){a:{A=eK;U=A.producersTail;if(U!==void 0){A=A.producers;do{if(A===x){U=!0;break a}if(A===U)break;A=A.nextProducer}while(A!==void 0)}U=!1}U=!U}A=U}A&&(U=lQ(eK),p={producer:t,
consumer:eK,nextProducer:p,prevConsumer:x,lastReadVersion:t.version,nextConsumer:void 0},eK.producersTail=p,E!==void 0?E.nextProducer=p:eK.producers=p,U&&FMi(t,p))}}};
nN=function(t){if(!lQ(t)||t.dirty)if(t.dirty||t.lastCleanEpoch!==G$)(t.producerMustRecompute(t)||ltt(t))&&t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=G$};
Ga$=function(t){if(t.consumers!==void 0){var E=z$;z$=!0;try{for(var p=t.consumers;p!==void 0;p=p.nextConsumer){var U=p.consumer;U.dirty||(t=void 0,U.dirty=!0,Ga$(U),(t=U.consumerMarkedDirty)==null||t.call(U,U))}}finally{z$=E}}};
n7J=function(){var t;return((t=eK)==null?void 0:t.consumerAllowSignalWrites)!==!1};
NxY=function(t){t&&(t.producersTail=void 0,t.recomputing=!0);return F8(t)};
sfL=function(t){t.recomputing=!1;var E=t.producersTail,p=E!==void 0?E.nextProducer:t.producers;if(p!==void 0){if(lQ(t)){do p=D0E(p);while(p!==void 0)}E!==void 0?E.nextProducer=void 0:t.producers=void 0}};
ltt=function(t){for(t=t.producers;t!==void 0;t=t.nextProducer){var E=t.producer,p=t.lastReadVersion;if(p!==E.version)return!0;nN(E);if(p!==E.version)return!0}return!1};
FMi=function(t,E){var p=t.consumersTail,U=lQ(t);p!==void 0?(E.nextConsumer=p.nextConsumer,p.nextConsumer=E):(E.nextConsumer=void 0,t.consumers=E);E.prevConsumer=p;t.consumersTail=E;if(!U)for(t=t.producers;t!==void 0;t=t.nextProducer)FMi(t.producer,t)};
D0E=function(t){var E=t.producer,p=t.nextProducer,U=t.nextConsumer,x=t.prevConsumer;t.nextConsumer=void 0;t.prevConsumer=void 0;U!==void 0?U.prevConsumer=x:E.consumersTail=x;if(x!==void 0)x.nextConsumer=U;else if(E.consumers=U,!lQ(E))for(t=E.producers;t!==void 0;)t=D0E(t);return p};
lQ=function(t){return t.consumerIsAlwaysLive||t.consumers!==void 0};
PrD=function(t){var E=Object.create(LMi);E.computation=t;t=function(){nN(E);zML(E);if(E.value===NQ)throw E.error;return E.value};
t[D8]=E;return t};
$0t=function(t,E){var p=Object.create(TxO);p.value=t;E!==void 0&&(p.equal=E);t=function(){zML(p);return p.value};
t[D8]=p;return[t,function(U){return o7O(p,U)},
function(U){n7J()||WM8(p);o7O(p,U(p.value))}]};
o7O=function(t,E){n7J()||WM8(t);if(!t.equal(t.value,E)){t.value=E;t.version++;G$++;Ga$(t);var p;(p=KMi)==null||p(t)}};
ywJ=function(t,E,p){var U=Object.create(v7$);U.source=t;U.computation=E;p!=void 0&&(U.equal=p);t=function(){nN(U);zML(U);if(U.value===NQ)throw U.error;return U.value};
t[D8]=U;return t};
_.sJ=function(t){var E=F8(null);try{return t()}finally{F8(E)}};
SGl=function(t,E){XEt("signalSet",E.debugName);try{t()}finally{hMK("signalSet",E.debugName)}};
cw8=function(t,E,p){t=$0t(t,E.equals);var U=t[0],x=U[D8];x.debugName=atO(E.debugName,p,"[signal]");if(!ac.enablePerformanceTiming)return t;var A=t[1],m=t[2];return[U,function(b){SGl(function(){return void A(b)},x)},
function(b){SGl(function(){return void m(b)},x)}]};
EXO=function(t){var E=Object.create(tJJ);E.debugName=t;!gV||hW(E);return E};
pXE=function(t,E){var p=EXO(E);E=Z8(p);try{t(p)}finally{Z8(E)}return function(){return void iTY(p)}};
xWK=function(t){return LN(t)&&UWO in t};
AHJ=function(t){for(t=t===void 0?gV:t;t;){if(xWK(t))return t;var E=void 0;t=(E=t.parent)!=null?E:null}return null};
_.Py=function(t,E,p){return cw8(t,E!=null?E:{},p===void 0?"":p)};
IDO=function(t,E){var p=_.M(_.Py(t,void 0,"cPpJzc"));t=p.next().value;p=p.next().value;t[JHE]=p;t[T$]=E;return t};
gX$=function(t){return!!t&&typeof t==="object"&&Object.getPrototypeOf(t)===Object.prototype};
ZWJ=function(t){return typeof t==="function"&&JHE in t&&typeof t[JHE]==="function"};
OWO=function(t,E){Object.defineProperty(t,T$,{get:function(){return E}})};
Wy=function(t,E){if(oc(t)){var p=t.map(function(A){return Wy(A,E)});
OWO(p,E);return p}if(gX$(t)){p={};t=_.M(Object.entries(t));for(var U=t.next();!U.done;U=t.next()){var x=_.M(U.value);U=x.next().value;x=x.next().value;p[U]=Wy(x,E)}OWO(p,E);return p}return IDO(t,E)};
XXO=function(t){if(oc(t))return t.map(function(x){return XXO(x)});
if(gX$(t)){var E={};t=_.M(Object.entries(t));for(var p=t.next();!p.done;p=t.next()){var U=_.M(p.value);p=U.next().value;U=U.next().value;E[p]=XXO(U)}return E}return ZWJ(t)?t():t};
aD$=function(){var t={height:0,width:0};if(!gX$(t))throw Error("Kb");var E=Symbol("Lb");return[Wy(t,E),function(p,U){if(p[T$]===E)if(typeof U==="function"){var x=[].concat(_.KB(XXO(p)));U=U(x)||x;hL8(p,[].concat(_.KB(U)))}else hL8(p,U);else throw Error("Mb");}]};
hL8=function(t,E){if(ZWJ(t))t[JHE](E);else if(oc(t)&&oc(E))E=Wy(E,t[T$]),t.length=0,t.push.apply(t,_.KB(E));else if((gX$(t)||oc(t))&&(oc(E)||typeof E==="object"&&E!==null)){E=_.M(Object.entries(E));for(var p=E.next();!p.done;p=E.next()){var U=_.M(p.value);p=U.next().value;U=U.next().value;var x=t,A=x[p];Object.hasOwn(t,p)?hL8(A,U):x[p]=Wy(U,t[T$])}}else throw Error("Nb");};
eLO=function(t){return Object.create(Object.assign({},$O,t))};
zL8=function(){var t;return(t=FL$)!=null?t:FL$=eLO({consumerAllowSignalWrites:!0})};
_.KN=function(t,E,p){p=p===void 0?"":p;t=PrD(t);var U=t[D8];U.debugName=atO(E==null?void 0:E.debugName,p,"[computed]");(E==null?void 0:E.equals)!=null&&(U.equal=E.equals);return t};
vy=function(t){var E=F8(lDY);try{t()}finally{F8(E)}};
GQt=function(t){return LN(t)&&t.name!==void 0&&t.isReactive!==void 0&&t.parent!==void 0};
N1t=function(t,E,p){var U=nX0(t);yC={name:p?U+" ("+p+")":U,isReactive:t.componentType!==SK,parent:yC};t=E();yC=yC.parent;return t};
cy=function(){var t=yC;return t?t.isReactive:!1};
Ej=function(t,E,p){var U=yC;E&&(yC=E);try{return p==null?t():t.call(p)}catch(A){t=A;tt(t,yC);if(t!==DWt){szJ=yC;E=[];for(p=gV;p;){var x=void 0;E.push((x=p.debugName)!=null?x:"[context]");x=void 0;p=(x=p.parent)!=null?x:null}LLL=E.reverse()}DWt=t;throw t;}finally{yC=U}};
tt=function(t,E){try{var p=PVi(E);if(p&&!t.componentStack&&(t.componentStack=p,ac.enableComponentStacksInErrorMessages)){var U=t.message+"\n\nComponent stack: "+p;t.stack&&(t.stack=t.stack.replace(t.message,U));t.message=U}}catch(x){}};
T18=function(t){for(var E=0,p="";E<20&&t;)p+="$$XID:"+t.name+"$$ > ",t=t.parent,E++;return p.slice(0,-3)};
PVi=function(t){return GQt(t)||t===null?T18(t):ac.enableContextBasedComponentStacks?AHJ(t).getComponentStack().slice(0,20).map(function(E){return"$$XID:"+E+"$$"}).join(" > "):""};
nX0=function(t){return t.debugName||t.name||"[component]"};
vX_=function(t){switch(t.onInitType){case oXO:WLE.schedule(t);break;case $Wl:ac.enableQueueEffectAndOnInitInitialRuns?KL8.enqueue(t):KL8.schedule(t);break;default:_.UC(t.onInitType)}};
p6j=function(t){if(!t.isDisposed)switch(t.effectType){case pw:yHE.schedule(t);break;case S_8:cH_.schedule(t);break;case tfK:ac.enableQueueEffectAndOnInitInitialRuns||t.version!==0?EnL.enqueue(t):EnL.schedule(t);break;default:_.UC(t.effectType)}};
AAJ=function(){if(Uj>0)ac.flushRenderEffectsDuringRender&&yHE.flush();else{for(var t=_.M(Ue_),E=t.next();!E.done;E=t.next())E.value.flush();xeE()}};
xeE=function(){_.q(function(t){if(t.nextAddress==1)return t.yield(Promise.resolve(),2);for(var E=_.M(YRi),p=E.next();!p.done;p=E.next())p.value.flush();_.Do(t)})};
me$=function(t){xw=!0;try{for(var E=_.M(t),p=E.next();!p.done;p=E.next()){for(var U=p.value,x=[U],A=U;A.parent!==void 0;)A=A.parent,MfK(A)&&t.has(A)&&x.push(A);for(;x.length>0;){var m=x.pop();t.delete(m);m.run()}}}finally{xw=!1}};
At=function(t){Uj--;if(t){t=_.M(boO);for(var E=t.next();!E.done;E=t.next())E.value.clear()}else Uj>0||xw&&!ac.flushRenderEffectsDuringRender||AAJ()};
ioj=function(t,E,p){t=Object.create(t);E&&(t.fn=E);p&&(t.debugName=p);hW(t);t.componentStack=yC;return t};
qRE=function(t){if(!t.isDisposed){if(z$)throw Error("Rb");var E=Z8(t);XEt("effectRun",t.debugName);try{Ej(function(){t.dirty=!1;if(!(t.version>0)||ltt(t)){t.version++;var p=NxY(t);try{t.cleanup(),t.fn()}finally{F8(p),t&&sfL(t)}}},t.componentStack,t)}catch(p){throw ac.enableContextBasedComponentStacks&&tt(p),p;
}finally{hMK("effectRun",t.debugName),Z8(E)}}};
_.Yw=function(t,E){t=ioj(HoJ,t,E);p6j(t)};
_.M$=function(t,E){t=ioj(fMl,t,E);p6j(t)};
Bki=function(t){return t};
w6O=function(t,E,p){function U(){return x()}
p=p===void 0?"":p;var x=typeof t==="function"?ywJ(t,Bki,E==null?void 0:E.equals):ywJ(t.source,t.computation,E==null?void 0:E.equals);var A=x[D8];A.debugName=atO(E==null?void 0:E.debugName,p,"[linkedSignal]");U[D8]=A;return[U,function(m){SGl(function(){nN(A);o7O(A,m);A.dirty=!1;A.lastCleanEpoch=G$},A)},
function(m){SGl(function(){nN(A);n7J()||WM8(A);o7O(A,m(A.value));A.dirty=!1;A.lastCleanEpoch=G$},A)}]};
_.iK=function(t){var E=gV;if(E){var p=yC;bTi(E,function(){var U=F8(zL8());try{Ej(function(){return void t()},p)}catch(x){throw ac.enableContextBasedComponentStacks&&tt(x),x;
}finally{F8(U)}})}};
q$=function(t,E){var p={};(E===void 0||E)&&hW(p);E=Z8(p);try{t(p)}finally{Z8(E)}return function(){return void iTY(p)}};
_.Hv=function(t){return typeof t==="function"?t():(t==null?0:t[Rf0])?t.get():t};
VfD=function(t){if(gV)throw Error("ob");q$(t,!1)};
fw=function(t,E){t=Z8(t);try{return _.sJ(E)}finally{Z8(t)}};
Bv=function(t,E){var p=PVi(szJ),U,x;var A=(x=(U=LLL)==null?void 0:U.slice())!=null?x:[];E={componentStack:p,contextTrace:A,errorSeverity:3,featureFlags:OTt(),tagName:E};return[t,E]};
jEO=function(t,E,p){if(Object.hasOwnProperty.call(QEi,t)&&(t=QEi[t],Object.hasOwnProperty.call(t,E)&&(t=t[E],t instanceof Array))){for(var U=null,x=!1,A=0,m=t.length;A<m;++A){var b=t[A],f=b.contingentAttribute;if(!f)return b.contract;U===null&&(U={});f=Object.hasOwnProperty.call(U,f)?U[f]:U[f]=p(f);if(f===b.requiredValue)return b.contract;f==null&&(x=!0)}if(x)return null}E=CnK[E];return typeof E==="number"?E:null};
deY=function(t,E,p){var U=null;(t=rAt[t])&&(U=t[E]);return typeof U!=="number"&&((t=rAt["*"])&&(U=t[E]),typeof U!=="number")?!1:!0===kxO[U][String(p).toLowerCase()]};
JAi=function(t,E){E=jEO(t.toLowerCase(),E,function(){var U;(U=ac.handleError)==null||U.call.apply(U,[ac].concat(_.KB(Bv(Error("Ub"),t.toLowerCase()))))});
if(E===null)return null;var p;return(p=uEi[E])!=null?p:null};
IML=function(t,E,p){if(p===null||p===void 0)return p;E=E.toLowerCase();t=JAi(t,E);return t===null?p:t(E,p)};
Oo0=function(t){var E=gn8,p=t,U="",x="",A=1;t<0&&(t=-t);if(t===Infinity)t=(Infinity*Math.sign(p)).toString();else{for(var m=0;m<ZoO.length;m++){var b=ZoO[m];A=E[b];if(t>=A||A<=1&&t>.1*A){U=b;break}}U?(U+="B",x=" "):A=1;t=Math.round(p/A*10)/10+x+U}return t};
X6j=function(){};
hf0=function(t,E){for(;t.length>E;)t.pop()};
aM$=function(t){t=Array(t);hf0(t,0);return t};
wh=function(t,E,p){if(p==null)t.removeAttribute(E);else{var U;(U=E.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":E.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?t.setAttributeNS(U,E,p):t.setAttribute(E,p)}};
FQt=function(t,E,p){t=t.style;if(typeof p==="string")t.cssText=p;else{t.cssText="";for(var U in p)if(efD.call(p,U)){E=t;var x=U,A=p[U];x.indexOf("-")>=0?E.setProperty(x,A):E[x]=A}}};
zfD=function(t,E,p){var U=typeof p;U==="object"||U==="function"?t[E]=p:wh(t,E,p)};
lM$=function(){var t=new X6j;t[Rm.default]=zfD;t.style=FQt;return t};
GxO=function(t,E,p,U){(U[E]||U[Rm.default])(t,E,p)};
NkJ=function(t,E,p){E=new nnl(E,p);return t.__incrementalDOMData=E};
Det=function(t,E){if(t.__incrementalDOMData)return t.__incrementalDOMData;var p=t.nodeType===1?t.localName:t.nodeName,U=t.nodeType===1?t.getAttribute("key"):null;E=NkJ(t,p,t.nodeType===1?U||E:null);if(t.nodeType===1&&(t=t.attributes,p=t.length)){U=E._attrsArr||(E._attrsArr=aM$(p*2));for(var x=0,A=0;x<p;x+=1,A+=2){var m=t[x],b=m.value;U[A]=m.name;U[A+1]=b}}return E};
sE8=function(t,E,p,U,x){return E==p&&U==x};
LQL=function(t){for(var E=VG,p=QG();p!==t;){var U=p.nextSibling;E.removeChild(p);Cw.deleted.push(p);p=U}};
QG=function(){return jC?jC.nextSibling:VG.firstChild};
rh=function(){jC=QG()};
onE=function(t,E){rh();var p;a:{if(p=jC){do{var U=p,x=t,A=E,m=Det(U,A);if(Pnl(U,x,m.nameOrCtor,A,m.key))break a}while(E&&(p=p.nextSibling))}p=null}p||(t==="#text"?(t=kw.createTextNode(""),NkJ(t,"#text",null)):(p=kw,U=VG,typeof t==="function"?p=new t:p=(U=t==="svg"?"http://www.w3.org/2000/svg":t==="math"?"http://www.w3.org/1998/Math/MathML":U==null||Det(U).nameOrCtor==="foreignObject"?null:U.namespaceURI)?p.createElementNS(U,t):p.createElement(t),NkJ(p,t,E),t=p),Cw.created.push(t),p=t);t=p;if(t!==
jC){if(Tki.indexOf(t)>=0)for(E=VG,p=t.nextSibling,U=jC;U!==null&&U!==t;)x=U.nextSibling,E.insertBefore(U,p),U=x;else VG.insertBefore(t,jC);jC=t}};
WQl=function(t,E){onE(t,E);VG=jC;jC=null;return VG};
$e$=function(){LQL(null);jC=VG;VG=VG.parentNode};
yAl=function(t,E){E=E===void 0?{}:E;var p=E.matches===void 0?sE8:E.matches;return function(U,x,A){var m=Cw,b=kw,f=Tki,B=dh,R=jC,V=VG,Q=Pnl;kw=U.ownerDocument;Cw=new KQL(U);Pnl=p;dh=[];jC=null;var C=VG=U.parentNode,d,I=vnj.call(U);if((d=I.nodeType===11||I.nodeType===9?I.activeElement:null)&&U.contains(d)){for(I=[];d!==C;)I.push(d),d=d.parentNode||(C?d.host:null);C=I}else C=[];Tki=C;try{return t(U,x,A)}finally{U=Cw,uK&&U.deleted.length>0&&uK(U.deleted),kw=b,Cw=m,Pnl=Q,dh=B,jC=R,VG=V,Tki=f}}};
SRO=function(t,E,p,U){Jt.push(GxO);Jt.push(t);Jt.push(E);Jt.push(p);Jt.push(U)};
cA$=function(t){onE("#text",null);var E=jC;var p=Det(E);if(p.text!==t){p=p.text=t;for(var U=1;U<arguments.length;U+=1)p=(0,arguments[U])(p);E.data!==p&&(E.data=p)}};
Ym0=function(t,E,p){if(p===!1&&tQD.has(E))wh(t,E,null);else if(E!=="idomKey"&&E!=="skip"&&E!=="skipchildren"&&E!=="children"&&E!=="el")if(E.startsWith("on")){if(E[2]!==":")throw Error("Tb`"+E);if(p===void 0||p===null){var U;(U=ac.handleError)==null||U.call.apply(U,[ac].concat(_.KB(Bv(Error("Yb`"+E),t.tagName))));t[E]=void 0}else{var x=E.slice(3);U=cy();if(x==="jsaction"){p=Array.isArray(p)?p:[p];p=_.M(p);for(var A=p.next();!A.done;A=p.next()){A=A.value;if(typeof A!=="object"||A===null||typeof A.selfReg!==
"function")throw Error("ac`"+E);A.selfReg(0,t,U?_.iK:function(){})}}else{if(typeof p!=="object"||p===null)throw Error("Zb`"+E+"`"+typeof p);
if(typeof p.getFn!=="function")throw Error("$b`"+E+"`"+Object.keys(p));if(p.selfReg)p.selfReg(0,t,x,U?_.iK:function(){});
else if(U&&t["on"+x]===void 0){var m=p.getFn(0);t.addEventListener(x,m);_.iK(function(){return void t.removeEventListener(x,m)})}else if(U||!ExD.includes(x))t["on"+x]=p.getFn(0)}}}else{if(E.startsWith("data-")&&typeof p==="string")try{p=pVj(p)}catch(b){p="zSoyz"}typeof p!=="function"||t._disposeEffects!=null?((U=E.startsWith("prop:"))&&(E=E.slice(5)),ac.enableAttributeSanitization&&(U&&UG0(t.tagName)||(p=IML(t.tagName,E,p))),E==="style"?("function"==typeof _.Im&&p instanceof _.Im&&(p=p.toString()),
xG_(t,E,p)):U?t[E]=p:AoO(t,E,p)):(t._signalProps||(t._signalProps=[]),t._signalValues||(t._signalValues=[]),t._signalProps.push(E))}};
MQi=function(t,E,p){p=(p===void 0?{}:p).isReactive;if(E==null?0:E.el){var U=E.el,x;(x=U.onRender)==null||x.call(U,t);t._disposeRef||(t._disposeRef=function(){var A;(A=U.onUnmount)==null||A.call(U);delete t._disposeRef},p&&_.iK(function(){var A;
(A=t._disposeRef)==null||A.call(t)}))}};
UG0=function(t){return t.length>0&&t.includes("-")&&!mG8.includes(t.toLowerCase())};
b_0=function(t){return LN(t)&&gh in t};
i_t=function(t){return b_0(t)?t[gh].flattened:t};
qm_=function(t,E){var p=_.t9.apply(2,arguments),U;E=(U=E)!=null?U:{};U={};return U.type=t,U.props=E,U.children=p,U[Zp]=!0,U};
_.Oj=function(t){return t.children};
Xr=function(t){var E=H_$!==qm_;H_$=t?fsi:qm_;return E};
ht=function(t){return _.o0(t)?"nodeType"in t:!1};
am=function(){return document.createTextNode("")};
eC=function(t){t=document.createTextNode(String(t));t._isSignalTextNode=!0;return t};
wV8=function(t){return t!=null&&t.contentKind===zq||t instanceof U2||BJO(t)};
RJ0=function(t){var E=document.createElement("div");if(BJO(t)&&saD(t))_.RR(E,saD(t));else if(t instanceof U2)_.RR(E,t);else if(t!=null&&t.contentKind===zq){if(t.contentKind!==zq)throw Error("Xb");t=xk(t.toString());_.RR(E,t)}t=_.M(E.childNodes);for(var p=t.next();!p.done;p=t.next())p.value._isSafeOrSanitizedHtmlNode=!0;return E};
lK=function(t){t=typeof t;return t==="string"||t==="number"||t==="boolean"};
VQ8=function(t){return t instanceof nt||Ww(t)||t instanceof CB||"function"==typeof _.Im&&t instanceof _.Im};
QiL=function(t,E){var p=t.parentElement;if(!p)return E;p.replaceChild(E,t);return E};
CHO=function(t,E){var p=t[0].parentElement;if(p)if(t[0].previousSibling||t[t.length-1].nextSibling){p.insertBefore(E,t[0]);for(var U=t.length-1;U>=0;U--)p.removeChild(t[U])}else p.textContent="",p.appendChild(E);return E};
ji$=function(t,E){if(t[0].parentElement)for(var p=t[0].parentElement,U=E.length,x=t.length,A=U,m=0,b=0,f=t[x-1].nextSibling,B=null;m<x||b<A;)if(t[m]===E[b])m++,b++;else{for(;t[x-1]===E[A-1];)x--,A--;if(x===m)for(var R=A<U?b?E[b-1].nextSibling:E[A-b]:f;b<A;){var V=E[b++];p.insertBefore(V,R)}else if(A===b)for(;m<x;)R=t[m],B&&B.has(R)||p.removeChild(R),m++;else if(t[m]===E[A-1]&&E[b]===t[x-1])R=t[--x].nextSibling,p.insertBefore(E[b++],t[m++].nextSibling),p.insertBefore(E[--A],R),t[x]=E[A];else{if(!B)for(B=
new Map,R=b;R<A;)B.set(E[R],R++);R=B.get(t[m]);if(R==null)p.removeChild(t[m]),m++;else if(b<R&&R<A){V=m;for(var Q=1,C=void 0;++V<x&&V<A&&(C=B.get(t[V]))!=null&&C===R+Q;)Q++;if(Q>R-b)for(V=t[m];b<R;)p.insertBefore(E[b++],V);else p.replaceChild(E[b++],t[m++])}else m++}}return E};
kZ_=function(t){if(Array.isArray(t)){if(t.length>1)throw Error("kc`"+t.length+"`"+t.map(roE).join(", "));t=t[0]}if(t==null)return null;if(!(t instanceof _.qE)){var E,p;if((E=window)==null?0:(p=E.trustedTypes)==null?0:p.isScript(t))throw Error("jc");if(String(t).trim().length===0)return null;throw Error("lc`"+roE(t));}return t};
dGO=function(t,E){E=kZ_(E);E!==null&&_.BT(t,E)};
ux0=function(t){if(Array.isArray(t)){if(t.length>1)throw Error("mc`"+t.length+"`"+t.map(roE).join(", "));t=t[0]}if(t==null)return null;if(!(t instanceof CB)){if(String(t).trim().length===0)return null;throw Error("nc`"+roE(t));}return t};
Jol=function(t,E){E=ux0(E);E!==null&&(t.textContent=hXi(E))};
roE=function(t){return"("+typeof t+") "+(t!=null&&typeof t==="object"?t.constructor.name:typeof t)+" "+t};
IsE=function(){};
N$=function(t,E){E=E===void 0?{}:E;var p=gxO(),U=!0,x,A=!!ac.legacyTriggerSoyRendererEvents;A&&(x=jfi());_.Yw(function(){var m=!U&&E.isControlFlowComponent&&A,b=m?p[gh].flattened[0].parentElement:void 0;U=!1;Gq.setUp();E.isControlFlowComponent&&Uj++;var f=p[0],B=p[gh].flattened,R=Xr(!0);try{var V=t(),Q=Z_0(f,V,p);Array.isArray(Q)||(p[gh].flattened=[Q]);var C=p[gh].flattened;if(B&&(!Array.isArray(B)||B.length!==0)){var d=Array.isArray(B)?B[0]:B,I=d[nw],O=d._disposeEffects;d._disposeEffects=void 0;
d=Array.isArray(C)?C[0]:C;d[nw]=I;d[nw]&&(d[nw].numNodes=d===C?1:C.length);d._disposeEffects=O}p[0]=Q;E.isControlFlowComponent&&At(!1)}catch(a){throw E.isControlFlowComponent&&At(!0),a;}finally{Xr(R),Gq.tearDown()}m&&(m=x,m!=null||(m=_.E70(document).getAppContext()),m.get(O_E).JSC$29989_getEventTarget().dispatchEvent(new XVl(hJO,b,zq)))},E.debugName);
return p};
Z_0=function(t,E,p){for(;typeof E==="function";)E=E();if(E!=null&&E[Zp]){var U,x,A;(A=ac.handleError)==null||A.call.apply(A,[ac].concat(_.KB(Bv(Error("oc`"+((U=E.type)==null?void 0:U.TAG_NAME)),(x=E.type)==null?void 0:x.TAG_NAME))))}if(t==null)return E==null?am():lK(E)?eC(E):VQ8(E)?eC(E.toString()):ht(E)?E:E.length===0?am():as8(E,p);if(ht(t)){if(E==null)return QiL(t,am());if(lK(E))return eJO(t,E);if(VQ8(E))return eJO(t,E.toString());if(ht(E))return QiL(t,E);if(E.length===0)return QiL(t,am());E=as8(E,
p);ji$([t],p[gh].flattened);return E}t=Dp(t);if(E==null)return CHO(t,am());if(lK(E))return CHO(t,eC(E));if(VQ8(E))return CHO(t,eC(E.toString()));if(ht(E))return ji$(t,[E])[0];if(E.length===0)return CHO(t,am());E=as8(E,p);ji$(t,p[gh].flattened);return E};
eJO=function(t,E){t.nodeType===Node.TEXT_NODE?t.textContent!==String(E)&&(t.textContent=String(E)):t=QiL(t,eC(E));return t};
Dp=function(t,E,p){return FV$(t,E!=null?E:[],p===void 0?!1:p)};
as8=function(t,E){var p=Dp(t,void 0,!0);if(p.length===0)return am();E[gh].flattened=p;return t};
FV$=function(t,E,p,U,x){E=E===void 0?[]:E;p=p===void 0?!1:p;x=x===void 0?-1:x;if(t==null)return E;if(t instanceof sj){var A=t.render();return FV$(A,E,p,U,x)}if(ht(E)&&E.nodeType===Node.ELEMENT_NODE)switch(E.tagName){case "SCRIPT":dGO(E,t);return;case "STYLE":Jol(E,t);return}lK(t)&&(t=eC(t),U&&p&&(U[x]=t));if(wV8(t)){p=RJ0(t);p=Array.from(p.childNodes);p=_.M(p);for(A=p.next();!A.done;A=p.next())zJt(E,A.value);return E}VQ8(t)&&(t=eC(t.toString()),U&&p&&(U[x]=t));if(ht(t))return zJt(E,t);if(Array.isArray(t)){for(A=
0;A<t.length;A++)FV$(t[A],E,p,t,A);return E}if(typeof t==="function"){A=N$(function(){var b=t();return b!=null&&!lK(b)&&wV8(b)?(b=RJ0(b),Array.from(b.childNodes)):b},{debugName:"qmF2ne",
debugFn:t})[0];if(Array.isArray(A)){p=_.M(A);for(A=p.next();!A.done;A=p.next())zJt(E,A.value);return E}U&&p&&(U[x]=A);return zJt(E,A)}if(t!=null&&t[Zp]){U=t;x=Xr(!0);var m=H_$;try{A=m.apply(null,[U.type,U.props].concat(_.KB(U.children)))}finally{Xr(x)}return FV$(A,E,p)}(m=ac.handleError)==null||m.call.apply(m,[ac].concat(_.KB(Bv(Error("pc")))));return E};
gxO=function(t){var E={};E=Object.assign([],(E[gh]={flattened:[]},E));if(!t)return E;E[0]=as8(t,E);return E};
zJt=function(t,E){Array.isArray(t)?t.push(E):t.appendChild(E);return t};
Lw=function(t){if(!ac.enableLazyTsx)return t;if(Array.isArray(t)){for(var E=0;E<t.length;E++)t[E]=Lw(t[E]);return t}return t instanceof sj?(t=t.render(),Lw(t)):t};
GZY=function(t,E){var p,U,x=nX0(t),A=function(C){U=C;C=Xr(!0);var d=F8(Pv);XEt("render",x);try{p=Lw(t(E))}finally{hMK("render",x),F8(d),Xr(C)}};
A=ac.enableContextPerComponent?pXE(A,x):q$(A,ac.alwaysTrackContexts||!!gV);xWK(U);if(!E.renderedFromIdom){var m=Z8(U);try{return lsO(t,E,p),p}finally{Z8(m)}}!b_0(p)&&Array.isArray(p)&&(p=gxO(p));var b=i_t(p);m=Array.isArray(b)?b[0]:b;var f=!1;if(m){var B,R=(B=E==null?void 0:E.idomKey)!=null?B:t;B=b!==m;m._disposeEffects=A;var V=m[nw]||{},Q=b_0(p)?p:V.sourceDynamicRange;Object.assign(V,{key:R,numNodes:B?b.length:1,context:U,higherOrder:!!m[nw],sourceDynamicRange:Q});m[nw]=V}else f=!0;(function(){var C=
Z8(U);try{lsO(t,E,b)}finally{Z8(C)}})();
f&&A();return p};
nxK=function(t){var E={},p;for(p in t)E={prev$jscomp$24:void 0,next$jscomp$33:void 0},E.prev$jscomp$24=Tq[p],E.next$jscomp$33=t[p],Tq[p]=function(U){return function(){var x=_.t9.apply(0,arguments);U.prev$jscomp$24.apply(null,_.KB(x));U.next$jscomp$33.apply(null,_.KB(x))}}(E)};
NJD=function(){if(cy())throw Error("qc");return om};
DGJ=function(t,E){if(!t.__unmounted&&E){t.__unmounted=!0;try{t.didUnmount()}catch(x){var p,U;(U=ac.handleError)==null||U.call.apply(U,[ac].concat(_.KB(Bv(x,(p=t.__type)==null?void 0:p.TAG_NAME))))}Tq.didUnmount(t);t.el=null;E.__instance&&delete E.__instance}};
LVO=function(t,E,p){t._signalProps!=null&&t._disposeEffects==null&&((p===void 0?0:p)?t._disposeEffects=q$(function(){return void siE(t,E)},ac.alwaysTrackContexts||!!gV):siE(t,E))};
siE=function(t,E){_.Yw(function(){for(var p=t._signalProps,U=t._signalValues,x=0;x<p.length;x++){var A=p[x],m=E[A]();U[x]!==m&&(U[x]=m,Ym0(t,A,m))}},"e3YVbb")};
PH_=function(t,E,p){var U,x=[];t._disposeEffects=q$(function(){_.Yw(function(){var A=p();if(A===null||A===void 0)A="";if(lK(A)||A===null)U!=null||(U=document.createTextNode("")),U.parentNode!==t&&(U._isSignalTextNode=!0,t.insertBefore(U,E)),U.textContent=String(A);else if(wV8(A)){for(var m=x.length>0?x[x.length-1].nextSibling:E,b=_.M(x),f=b.next();!f.done;f=b.next())t.removeChild(f.value);A=RJ0(A);x=Array.from(A.childNodes);A=_.M(x);for(b=A.next();!b.done;b=A.next())t.insertBefore(b.value,m)}else throw f=
(b=(m=yC)==null?void 0:m.name)!=null?b:"unknown",Error("fc`"+f+"`"+typeof A);},"VvDgC")},ac.alwaysTrackContexts||!!gV)};
WVE=function(t,E){var p=_.t9.apply(2,arguments);E!=null||(E={});return!ac.enableLazyTsx||yC!=null&&!cy()?TJt(t,E,p):new oxO(t,E,p)};
TJt=function(t,E,p){if(t===_.Oj)return p;if(typeof t==="function")return yC&&!cy()&&(E.renderedFromIdom=!0),N1t(t,function(){var A=$Gl(t,E,p);if(A)return A;p.length>0&&(E.children=p.length===1?p[0]:p);if(t.componentType===SK){var m;pXE(function(){var b=E;if(t.componentType!==SK)m=!1;else{b||(b={});var f=new Wv(b,t),B=F8(Pv);try{var R=f.render(b)}finally{F8(B)}R instanceof HTMLElement?(R.__instance=f,f.el=R,f.__type=t,t.TAG_NAME=R.tagName.toLowerCase(),Tq.didPatch(f),m=R):m=R}},t.name);
if(m)return m}return GZY(t,E)},E.debugInstance);
var U=KV_(t,E),x;for(x in E)Ym0(U,x,E[x]);LVO(U,E);Dp(p,U);MQi(U,E,{isReactive:!0});vxY(U,E);return U};
KV_=function(t,E){t=(yoO.has(t.toLowerCase())?0:Smj.has(t.startsWith("svg:")?t.replace("svg:",""):t))?document.createElementNS("http://www.w3.org/2000/svg",t.startsWith("svg:")?t.replace("svg:",""):t):co8(t,E)||document.createElement(t);t[tRt]=!0;return t};
ET_=function(t){if(t){var E;(E=t._disposeRef)==null||E.call(t);var p;(p=t._disposeEffects)==null||p.call(t);t.__instance&&t.__instance instanceof $w&&(E=t.__instance,DGJ(E,t),E instanceof Wv&&E.disposeEffects());for(E=0;E<t.childNodes.length;E++)ET_(t.childNodes[E])}};
U_Y=function(t){pD_.push(t)===1&&requestAnimationFrame(function(){setTimeout(function(){var E=[].concat(_.KB(pD_));pD_=[];E=_.M(E);for(var p=E.next();!p.done;p=E.next()){p=p.value;try{for(var U=0;U<p.length;U++)ET_(p[U])}catch(x){U=p=void 0,(U=(p=ac).handleError)==null||U.call.apply(U,[p].concat(_.KB(Bv(x))))}}})})};
_.H=function(t,E){return H_$.apply(null,[t,E].concat(_.KB(_.t9.apply(2,arguments))))};
_.Kw=function(t){return t};
_.vv=function(t){return{isDefault:!0,children:t.children}};
_.w=function(t){var E=t.cond;if(E===void 0)return t.else&&t.else();var p=_.KN(function(){return!!E()},void 0,"JHVi8"),U=function(){var x=E();
if(!x){var A;(A=ac.handleError)==null||A.call.apply(A,[ac].concat(_.KB(Bv(x_0.nonNullableCondIsNull()))))}return x};
return N$(function(){var x=p(),A;q$(function(){var m=F8(Pv);try{A=Lw(x?t.then(U):t.else&&t.else())}finally{F8(m)}},!0);
return A},{debugName:t.debugInstance,
debugFn:t.then,isControlFlowComponent:!0})};
AZ8=function(t){return _.w(t)};
_.yG=function(t){return t.keyBy==="INDEX"?YT$(t):MRO(t)};
m_D=function(t){t=_.M(t);for(var E=t.next();!E.done;E=t.next()){var p=void 0;(p=E.value)==null||p()}};
MRO=function(t){var E=t.keyBy===void 0||t.keyBy==="REFERENCE",p=E?function(R){return R}:t.keyBy,U=[],x=[],A=[],m=[],b=[],f=[],B=!0;
_.iK(function(){m_D(m)});
return N$(function(){var R=bF_(t),V=R.length;if(V===0){if(U.length===0&&!B)return A;m_D(m);U=R;x=[];for(R=0;R<U.length;R++)x.push(p(U[R]));A=[];m=[];b=[];f=[];t.fallback&&(m[0]=iF$(function(){A[0]=Lw(t.fallback())}));
B=!1;return A}for(var Q=new qTJ,C=U.length-1;C>=0;C--)Q.push(x[C],C);C=Array(V);for(var d=Array(V),I=Array(V),O=Array(V),a=Array(E?0:V),F={i$jscomp$451:0};F.i$jscomp$451<V;F={i$jscomp$451:F.i$jscomp$451,item$jscomp$104:void 0,key$jscomp$563:void 0},F.i$jscomp$451++){F.item$jscomp$104=R[F.i$jscomp$451];F.key$jscomp$563=p(F.item$jscomp$104);var L=Q.pop(F.key$jscomp$563);L!=null?(I[F.i$jscomp$451]=A[L],d[F.i$jscomp$451]=x[L],C[F.i$jscomp$451]=m[L],O[F.i$jscomp$451]=b[L],E||(a[F.i$jscomp$451]=f[L]),vy(function(D){return function(){O[D.i$jscomp$451](D.i$jscomp$451);
if(!E)a[D.i$jscomp$451](D.item$jscomp$104)}}(F)),delete m[L]):C[F.i$jscomp$451]=iF$(function(D){return function(){var W=_.M(_.Py(D.i$jscomp$451,void 0,"Fqk1zd")),K=W.next().value;
W=W.next().value;O[D.i$jscomp$451]=W;d[D.i$jscomp$451]=D.key$jscomp$563;if(E)I[D.i$jscomp$451]=Lw(t.children(D.item$jscomp$104,K));else{var v=_.M(_.Py(D.item$jscomp$104,void 0,"GBj5de"));W=v.next().value;v=v.next().value;a[D.i$jscomp$451]=v;I[D.i$jscomp$451]=Lw(t.children(W,K))}}}(F))}m_D(m);
U=R;x=d;A=I;m=C;b=O;f=a;B=!1;return I},{debugName:t.debugInstance,
debugFn:t.each,isControlFlowComponent:!0})};
YT$=function(t){var E=[],p=[],U=[],x=[],A=!1;_.iK(function(){m_D(x)});
return N$(function(){var m=bF_(t);A&&m.length>0&&(x.pop()(),E.pop(),A=!1);for(var b=Array(m.length),f={i$jscomp$452:0};f.i$jscomp$452<m.length;f={i$jscomp$452:f.i$jscomp$452},f.i$jscomp$452++)if(f.i$jscomp$452<E.length)E[f.i$jscomp$452]!==m[f.i$jscomp$452]&&(vy(function(R){return function(){return void p[R.i$jscomp$452](m[R.i$jscomp$452])}}(f)),E[f.i$jscomp$452]=m[f.i$jscomp$452]),b[f.i$jscomp$452]=U[f.i$jscomp$452];
else{var B=iF$(function(R){return function(){E[R.i$jscomp$452]=m[R.i$jscomp$452];var V=_.M(_.Py(m[R.i$jscomp$452],void 0,"JMMLmd")),Q=V.next().value;V=V.next().value;p[R.i$jscomp$452]=V;b[R.i$jscomp$452]=Lw(t.children(Q,R.i$jscomp$452))}}(f));
x[f.i$jscomp$452]=B}for(;E.length>m.length;)E.pop(),x.pop()(),p.pop();m.length===0&&!A&&t.fallback&&(f=iF$(function(){b[0]=Lw(t.fallback())}),x[0]=f,A=!0);
return U=b},{debugName:t.debugInstance,
isControlFlowComponent:!0})};
bF_=function(t){t=t.each();return Array.isArray(t)?t:Array.from(t)};
iF$=function(t){var E=gV;return q$(function(p){var U=F8(Pv);try{p.parent=E,t(p)}finally{F8(U)}},!1)};
_.SC=function(t){var E=HF8(t),p=_.KN(function(){return fUt(E)},void 0,"F1PF4");
return N$(function(){var U=p(),x;q$(function(){var A=F8(Pv);try{x=Lw(U())}finally{F8(A)}});
return x},{debugName:t.debugInstance,
isControlFlowComponent:!0})};
HF8=function(t){t=t.children;return Array.isArray(t)?t:[t]};
Bu_=function(t){var E=t.props;t=t.getChildren()[0];return E.when?{when:E.when,children:t}:{isDefault:!0,children:t}};
fUt=function(t){var E=function(){return null};
t=_.M(t);for(var p=t.next();!p.done;p=t.next())if(p=p.value,p!=null&&p[Zp]&&(p=p.type===_.vv?{isDefault:!0,children:p.children[0]}:{when:p.props.when,children:p.children[0]}),p instanceof sj&&(p=Bu_(p)),p.isDefault)E=p.children;else if(p.when())return p.children;return E};
wDK=function(t){var E=null,p,U={get value(){var A,m;(m=(A=x).validateGetValue)==null||m.call(A);return x.__value},set value(A){var m,b;(b=(m=x).validateSetValue)==null||b.call(m,A);x.__value=A;x.__hasBeenSet=!0}},x=(U.__value=null,U.__hasBeenSet=!1,U.__hasErrored=!1,U.onRender=function(A){if(p&&A!==p){p._disposeRef=void 0;var m;(m=E)==null||m()}p=A;E=t(A)||null},U.onUnmount=function(){var A;
(A=E)==null||A();E=x.value=null},U[MTY]=!0,U);
return x};
cv=function(t){return typeof t==="symbol"};
VR_=function(t){var E=NJD();if(E==null)throw RBt.PRIMITIVE_INVALID_HOOK_CALL();var p=E.hookCounter++;E.hooks||(E.hooks=[]);var U=E.hooks;U[p]||(U[p]={key:t,host:E});if(t!==U[p].key){if(E.__type){var x;t=(x=E.__type)==null?void 0:x.name}else t=E instanceof Wv?nX0(E.functionComponent):"<"+E.el.tagName.toLowerCase()+">";throw RBt.OUT_OF_ORDER_HOOK_CALL(t);}return U[p]};
QKY=function(t,E){return!t||t.length!==(E==null?void 0:E.length)||t.some(function(p,U){return p!==E[U]})};
CO_=function(t,E){if(cy())return t();var p=VR_("useMemoInternal");QKY(p.deps,E)&&(p.deps=E,p.value=t());return p.value};
jKl=function(t,E){return CO_(t,E)};
_.EB=function(t,E){return rZO(t,!1,E)};
_.pR=function(t,E){return rZO(t,!0,E)};
rZO=function(t,E,p){return cy()?kFi(t,E,p):d_j(t,E,p)};
d_j=function(t,E,p){return CO_(function(){return kFi(t,E,p)},[])};
kFi=function(t,E,p){var U=wDK(function(x){U.value=x;var A=function(){var m=F8(null);try{return p==null?void 0:p(x)}finally{F8(m)}}();
return function(){A==null||A()}});
U.__expectedTagName=t;U.__optional=E;U.isIdom=!cy();return U};
uJE=function(t,E){var p;E=q$(function(){var U=Xr(!0);Uj++;try{p=Dp(t()),At(!1)}catch(x){throw At(!0),x;}finally{Xr(U)}},E===void 0?!1:E);
return[p,E]};
_.UB=function(t,E,p){p!=null||(p={});p=p.appContext;var U=!!ac.legacyTriggerSoyRendererEvents;Gq.setUp();try{var x=JZE(t,E,p);U&&(E=p,E!=null||(E=_.E70(document).getAppContext()),E.get(O_E).JSC$29989_getEventTarget().dispatchEvent(new XVl(IUi,t,zq)));Gq.log(t);return x}finally{Gq.tearDown()}};
JZE=function(t,E,p){var U=Ej(function(){var x=F8(Pv);try{return q$(function(){var A=_.E70(_.S2(t)),m;var b=Crt({rootElement:{value:t},appContext:p||(A==null?void 0:(m=A.getOptionalAppContext)==null?void 0:m.call(A)),dispatcher:A});A=Z8(b);b=Xr(!0);Uj++;try{Dp(E(),t),At(!1)}catch(f){throw At(!0),f;}finally{Xr(b),Z8(A)}},!1)}catch(A){throw ac.enableContextBasedComponentStacks&&tt(A),A;
}finally{F8(x)}});
t[gT0]=!0;return function(){t.textContent="";U();t[gT0]=!1}};
_.xa=function(t){if(MfK(eK)){var E;(E=ac.handleError)==null||E.call.apply(E,[ac].concat(_.KB(Bv(Error("ec")))))}var p=gV,U=yC;vX_({onInitType:$Wl,run:function(){if(p&&!p.isDisposed){var x=Z8(p);try{Ej(function(){return void t()},U)}catch(A){throw ac.enableContextBasedComponentStacks&&tt(A),A;
}finally{Z8(x)}}}})};
XDK=function(t){var E=x00(2),p=new Set;_.iK(function(){return void p.forEach(function(U){return void U()})});
return function(U){var x=Z8(E);try{var A=ZFO(OF0(t),U);p.add(A);return function(){A();p.delete(A)}}finally{Z8(x)}}};
_.hBJ=function(t){var E=t.children;var p=t.root;_.xa(function(){var U=XDK(p)(E);_.iK(U)});
return document.createTextNode("")};
ZFO=function(t,E){var p=aUj(t);(t=m0j())&&SyE(p,t);Gq.setUp();E=_.M(uJE(E,!0));t=E.next().value;var U=E.next().value;E=_.M(t);for(t=E.next();!t.done;t=E.next())p.appendChild(t.value);Gq.log(p);Gq.tearDown();return function(){U();p.remove()}};
OF0=function(t){if(typeof t==="string")return t=document.querySelector(t),_.MWi(t),t;if(ht(t)&&t.nodeType===Node.ELEMENT_NODE)return t;if(!t.__value&&!t.__optional){var E=RBt.USE_ELEMENT_NOT_ASSIGNED(t.__expectedTagName);t.__hasErrored=!0;throw E;}return t.value};
aUj=function(t){var E=document.createElementNS(t.namespaceURI,t.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");return t.appendChild(E)};
eBO=function(t,E){var p=VR_("onChange"),U=NJD();QKY(p.deps,E)&&(p.deps=E,p.pendingEffect=t,U.__syncEffects||(U.__syncEffects=[]),U.__syncEffects.push(p))};
FtO=function(t,E){eBO(function(){return _.sJ(t)},E)};
_.A6=function(t){cy()?_.xa(function(){_.sJ(t)}):eBO(function(){return _.sJ(t)},[])};
lUE=function(t){var E=[].concat(_.KB(t));t.length=0;t=_.M(E);for(E=t.next();!E.done;E=t.next()){E=E.value;zBO(E);var p=E.pendingEffect;E.pendingEffect=null;if(p=p==null?void 0:p())E.pendingCleanup=p}};
zBO=function(t){var E=t.pendingCleanup;t.pendingCleanup=null;E==null||E()};
GF0=function(t){return CO_(function(){return{value:t}},[])};
_.mY=function(t,E){if(!t)return null;t=Object.keys(t);t=_.M(t);for(var p=t.next();!p.done;p=t.next()){p=p.value;var U=p.toLowerCase();if(U.indexOf(E,U.length-E.length)>-1)return p}return null};
_.ia=function(){var t=arguments,E=_.ba;t.length>1?E[t[0]]=t[1]:t.length===1&&Object.assign(E,t[0])};
_.qO=function(t,E){return t in _.ba?_.ba[t]:E};
_.HC=function(t,E){return!!_.qO(t,E)};
nTi=function(t){var E=_.ba.EXPERIMENT_FLAGS;return E?E[t]:void 0};
D_i=function(t){Nu0.forEach(function(E){return E(t)})};
_.BC=function(t){return t&&window.yterr?function(){try{return t.apply(this,arguments)}catch(E){_.fR(E)}}:t};
_.fR=function(t){var E=_.ws("yt.logging.errors.log");E?E(t,"ERROR",void 0,void 0,void 0,void 0,void 0):(E=_.qO("ERRORS",[]),E.push([t,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.ia("ERRORS",E));D_i(t)};
_.Ra=function(t,E,p,U,x){var A=_.ws("yt.logging.errors.log");A?A(t,"WARNING",E,p,U,void 0,x):(A=_.qO("ERRORS",[]),A.push([t,"WARNING",E,p,U,void 0,x]),_.ia("ERRORS",A))};
Lti=function(t,E){E=t.split(E);for(var p={},U=0,x=E.length;U<x;U++){var A=E[U].split("=");if(A.length===1&&A[0]||A.length===2)try{var m=sKD(A[0]||""),b=sKD(A[1]||"");if(m in p){var f=p[m];Array.isArray(f)?_.P8(f,b):p[m]=[f,b]}else p[m]=b}catch(Q){var B=Q,R=A[0],V=String(Lti);B.args=[{key:R,value:A[1],query:t,method:POO===V?"unchanged":V}];Tul.hasOwnProperty(R)||_.Ra(B)}}return p};
oT_=function(t){var E=[];_.Kq.forEach(t,function(p,U){var x=_.VE(U);p=Array.isArray(p)?p:[p];_.QE(p,function(A){A==""?E.push(x):E.push(x+"="+_.VE(A))})});
return E.join("&")};
_.CR=function(t){t.charAt(0)==="?"&&(t=t.substring(1));return Lti(t,"&")};
_.ji=function(t){return t.indexOf("?")!==-1?(t=(t||"").split("#")[0],t=t.split("?",2),_.CR(t.length>1?t[1]:t[0])):{}};
_.rs=function(t,E){return WtE(t,E||{},!0)};
$_j=function(t,E){return WtE(t,E||{},!1)};
WtE=function(t,E,p){var U=t.split("#",2);t=U[0];U=U.length>1?"#"+U[1]:"";var x=t.split("?",2);t=x[0];x=_.CR(x[1]||"");for(var A in E)if(p||!_.Kq.containsKey(x,A))x[A]=E[A];return _.ka(t,x)+U};
gs=function(t){if(!E)var E=window.location.href;var p=_.ds(t)[1]||null,U=_.ua(t);return p&&U?J6(t,E):U?_.ua(E)===U&&(Number(_.ds(E)[4]||null)||null)===(Number(_.ds(t)[4]||null)||null):!0};
_.vT8=function(t){t=KtY(t);return t===null?!1:t[0]==="com"&&t[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
KtY=function(t){t=_.ua(t);return t!==null?t.split(".").reverse():null};
sKD=function(t){return t&&t.match(yZO)?t:Z3(t)};
_.OB=function(t){return new STE(t)};
_.X3=function(){cZJ||(cZJ=new t1$);return cZJ};
pAO=function(){var t=Ehj;return function(){var E=_.X3();if(!E.resolve(_.OB(t))){var p={};E.addProvider((p.provide=t,p.useClass=t,p[aa]=void 0,p))}return E.resolve(t)}};
xct=function(t){var E=_.ei,p,U;_.q(function(x){p=_.X3();return(U=p.resolve(_.OB(E)))?(t(U),x.return(Promise.resolve(U))):x.return(p.resolve(new UcD(E)).then(function(A){t(A);return A}))})};
_.r=function(t){t=F3(t);return typeof t==="string"&&t==="false"?!1:!!t};
_.z3=function(t,E){t=F3(t);return t===void 0&&E!==void 0?E:Number(t||0)};
Ajj=function(t){t=F3(t);return Array.isArray(t)?_.vx(t,function(E){return Number(E||0)}):[Number(t||0)]};
_.la=function(t){t=F3(t);return t!==void 0?String(t):""};
_.G3=function(t){t=F3(t);return Array.isArray(t)?_.vx(t,function(E){return String(E||"")}):[String(t||"")]};
YF$=function(){return _.qO("EXPERIMENTS_TOKEN","")};
F3=function(t){return _.qO("EXPERIMENT_FLAGS",{})[t]};
M1t=function(){for(var t=[],E=_.qO("EXPERIMENTS_FORCED_FLAGS",{}),p=_.M(Object.keys(E)),U=p.next();!U.done;U=p.next())U=U.value,t.push({key:U,value:String(E[U])});p=_.qO("EXPERIMENT_FLAGS",{});U=_.M(Object.keys(p));for(var x=U.next();!x.done;x=U.next())x=x.value,x.startsWith("force_")&&E[x]===void 0&&t.push({key:x,value:String(p[x])});return t};
bb8=function(){if(!mcE)return null;var t=mcE();return"open"in t?t:null};
_.ib$=function(t){switch(_.nR(t)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.nR=function(t){return t&&"status"in t?t.status:-1};
_.NO=function(t,E){typeof t==="function"&&(t=_.BC(t));return window.setTimeout(t,E)};
_.D3=function(t,E){typeof t==="function"&&(t=_.BC(t));return window.setInterval(t,E)};
_.sB=function(t){window.clearTimeout(t)};
HbJ=function(t){t=_.ji(t);for(var E=_.M(qFK),p=E.next();!p.done;p=E.next())if(t[p.value]!==void 0)return!0;return!1};
wAK=function(t,E,p,U,x,A,m,b,f){p=p===void 0?"GET":p;U=U===void 0?"":U;b=b===void 0?!1:b;var B=bb8();if(!B)return null;var R=function(){(B&&"readyState"in B?B.readyState:0)===4&&E&&_.BC(E)(B)};
"onloadend"in B?B.addEventListener("loadend",R,!1):B.onreadystatechange=R;_.r("debug_forward_web_query_parameters")&&(t=fB$(t,window.location.search));B.open(p,t,!0);A&&(B.responseType=A);m&&(B.withCredentials=!0);p=p==="POST"&&(window.FormData===void 0||!(U instanceof FormData));if(x=Bm_(t,x))for(var V in x)B.setRequestHeader(V,x[V]),"content-type"===V.toLowerCase()&&(p=!1);p&&B.setRequestHeader("Content-Type","application/x-www-form-urlencoded");f&&"onprogress"in B&&(B.onprogress=function(){f(B.responseText)});
if(b&&"setAttributionReporting"in XMLHttpRequest.prototype){t={eventSourceEligible:!0,triggerEligible:!1};try{B.setAttributionReporting(t)}catch(Q){_.Ra(Q)}}B.send(U);return B};
Bm_=function(t,E){E=E===void 0?{}:E;var p=gs(t),U=_.qO("INNERTUBE_CLIENT_NAME"),x=_.r("web_ajax_ignore_global_headers_if_set"),A;for(A in RqL){var m=_.qO(RqL[A]),b=A==="X-Goog-AuthUser"||A==="X-Goog-PageId";A!=="X-Goog-Visitor-Id"||m||(m=_.qO("VISITOR_DATA"));var f;if(!(f=!m)){if(!(f=p||(_.ua(t)?!1:!0))){f=t;var B;if(B=_.r("add_auth_headers_to_remarketing_google_dot_com_ping")&&A==="Authorization"&&(U==="TVHTML5"||U==="TVHTML5_UNPLUGGED"||U==="TVHTML5_SIMPLY"))B=KtY(f),B=B===null?!1:B[1]==="google"?
!0:B[2]==="google"?B[0]==="au"&&B[1]==="com"?!0:B[0]==="uk"&&B[1]==="co"?!0:!1:!1;B&&(f=_.LR(f)||"",f=f.split("/"),f="/"+(f.length>1?f[1]:""),B=f==="/pagead");f=B?!0:!1}f=!f}f||x&&E[A]!==void 0||U==="TVHTML5_UNPLUGGED"&&b||(E[A]=m)}"X-Goog-EOM-Visitor-Id"in E&&"X-Goog-Visitor-Id"in E&&delete E["X-Goog-Visitor-Id"];if(p||!_.ua(t))E["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(p||!_.ua(t)){try{var R=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(V){}R&&(E["X-YouTube-Time-Zone"]=
R)}document.location.hostname.endsWith("youtubeeducation.com")||!p&&_.ua(t)||(E["X-YouTube-Ad-Signals"]=oT_(V1$()));return E};
_.Qp$=function(t,E){var p=_.ua(t);_.r("debug_handle_relative_url_for_query_forward_killswitch")||!p&&gs(t)&&(p=document.location.hostname);var U=_.LR(t);U=(p=p&&(p.endsWith("youtube.com")||p.endsWith("youtube-nocookie.com")))&&U&&U.startsWith("/api/");if(!p||U)return t;var x=_.CR(E),A={};_.QE(qFK,function(m){x[m]&&(A[m]=x[m])});
return $_j(t,A)};
CUL=function(t,E){E.method="POST";E.postParams||(E.postParams={});return _.PC(t,E)};
jpD=function(t,E){var p=_.qO("XSRF_FIELD_NAME"),U;E.headers&&(U=E.headers["Content-Type"]);return!E.excludeXsrf&&(!_.ua(t)||E.withCredentials||_.ua(t)===document.location.hostname)&&E.method==="POST"&&(!U||U==="application/x-www-form-urlencoded")&&!(E.postParams&&E.postParams[p])};
_.PC=function(t,E){var p=E.format||"JSON";t=rj_(t,E);var U=kVO(t,E),x=!1,A=dcO(t,function(f){if(!x){x=!0;b&&_.sB(b);var B=_.ib$(f),R=null,V=400<=f.status&&f.status<500,Q=500<=f.status&&f.status<600;if(B||V||Q)R=u1E(t,p,f,E.convertToSafeHtml);B&&(B=JjL(p,f,R));R=R||{};V=E.context||_.Ui;B?E.onSuccess&&E.onSuccess.call(V,f,R):E.onError&&E.onError.call(V,f,R);E.onFinish&&E.onFinish.call(V,f,R)}},E.method,U,E.headers,E.responseType,E.withCredentials,!1,E.onProgress);
U=E.timeout||0;if(E.onTimeout&&U>0){var m=E.onTimeout;var b=_.NO(function(){x||(x=!0,A.abort(),_.sB(b),m.call(E.context||_.Ui,A))},U)}return A};
rj_=function(t,E){E.includeDomain&&(t=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+t);var p=_.qO("XSRF_FIELD_NAME");if(E=E.urlParams)E[p]&&delete E[p],t=_.rs(t,E);return t};
kVO=function(t,E){var p=_.qO("XSRF_FIELD_NAME"),U=_.qO("XSRF_TOKEN"),x=E.postBody||"",A=E.postParams;jpD(t,E)&&(A||(A={}),A[p]=U);(_.r("ajax_parse_query_data_only_when_filled")&&A&&Object.keys(A).length>0||A)&&typeof x==="string"&&(x=_.CR(x),_.Kq.extend(x,A),x=E.postBodyFormat&&E.postBodyFormat==="JSON"?JSON.stringify(x):_.T3(x));A=x||A&&!_.Kq.isEmpty(A);!IBK&&A&&E.method!=="POST"&&(IBK=!0,_.fR(Error("Lc")));return x};
u1E=function(t,E,p,U){var x=null;switch(E){case "JSON":try{var A=p.responseText}catch(m){throw U=Error("Mc"),U.params=t,_.Ra(U),m;}t=p.getResponseHeader("Content-Type")||"";A&&t.indexOf("json")>=0&&(A.substring(0,5)===")]}'\n"&&(A=A.substring(5)),x=JSON.parse(A));break;case "XML":if(t=(t=p.responseXML)?gh8(t):null)x={},_.QE(t.getElementsByTagName("*"),function(m){x[m.tagName]=ZbO(m)})}U&&Obl(x);
return x};
Obl=function(t){if(_.o0(t))for(var E in t)E==="html_content"||MK(E,"_html")?t[E]=xk(t[E]):Obl(t[E])};
JjL=function(t,E,p){if(E&&E.status===204)return!0;switch(t){case "JSON":return!!p;case "XML":return Number(p&&p.return_code)===0;case "RAW":return!0;default:return!!p}};
gh8=function(t){return t?(t=("responseXML"in t?t.responseXML:t).getElementsByTagName("root"))&&t.length>0?t[0]:null:null};
ZbO=function(t){var E="";_.QE(t.childNodes,function(p){E+=p.nodeValue});
return E};
XAj=function(t){if(t.name==="JavaException")return!0;t=t.stack;return t.includes("chrome://")||t.includes("-extension://")||t.includes("webkit-masked-url://")};
hqO=function(t){if(!t.stack)return!0;var E=!t.stack.includes("\n");return E&&t.stack.includes("ErrorType: ")||E&&t.stack.includes("Anonymous function (Unknown script")||t.stack.toLowerCase()==="not available"||t.fileName==="user-script"||t.fileName.startsWith("user-script:")?!0:!1};
_.oa=function(t){_.PQ.call(this);this.JSC$10796_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!t};
eql=function(t,E){var p=t.length,U=0,x=function(){return t.charCodeAt(U++)};
do{var A=aBJ(x);if(A===Infinity)break;var m=A>>3;switch(A&7){case 0:A=aBJ(x);if(m===E)return A;break;case 1:if(m===E)return;U+=8;break;case 2:A=aBJ(x);if(m===E)return t.substr(U,A);U+=A;break;case 5:if(m===E)return;U+=4;break;default:return}}while(U<p)};
aBJ=function(t){var E=t(),p=E&127;if(E<128)return p;E=t();p|=(E&127)<<7;if(E<128)return p;E=t();p|=(E&127)<<14;if(E<128)return p;E=t();return E<128?p|(E&127)<<21:Infinity};
zqi=function(t,E,p,U){if(t)if(Array.isArray(t)){var x=U;for(U=0;U<t.length&&!(t[U]&&(x+=Fuj(U,t[U],E,p),x>500));U++);U=x}else if(typeof t==="object")for(x in t){if(t[x]){var A=x;var m=t[x],b=E,f=p;A=typeof m!=="string"||A!=="clickTrackingParams"&&A!=="trackingParams"?0:(m=eql(atob(m.replace(/-/g,"+").replace(/_/g,"/")),2))?Fuj(A+".ve",m,b,f):0;U+=A;U+=Fuj(x,t[x],E,p);if(U>500)break}}else p[E]=WC(t),U+=p[E].length;else p[E]=WC(t),U+=p[E].length;return U};
Fuj=function(t,E,p,U){p+="."+t;t=WC(E);U[p]=t;return p.length+t.length};
WC=function(t){try{return(typeof t==="string"?t:String(JSON.stringify(t))).substr(0,500)}catch(E){return"unable to serialize "+typeof t+" ("+E.message+")"}};
lBE=function(t){switch(t){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}};
_.KR=function(t,E,p,U,x){_.$a.set(t,E,{maxAge:p,path:"/",domain:U===void 0?"youtube.com":U,secure:x===void 0?!1:x})};
_.GVK=function(t,E,p){_.$a.remove(t,E===void 0?"/":E,p===void 0?"youtube.com":p)};
_.vC=function(){if(_.r("embeds_web_enable_cookie_detection_fix")){if(!_.Ui.navigator.cookieEnabled)return!1}else if(!_.$a.isEnabled())return!1;if(!_.$a.isEmpty())return!0;_.r("embeds_web_enable_cookie_detection_fix")?_.$a.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.$a.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.$a.get("TESTCOOKIESENABLED")!=="1")return!1;_.$a.remove("TESTCOOKIESENABLED");return!0};
nh$=function(){var t=_.Ui.navigator;return t?t.connection:void 0};
NmO=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(t){}};
_.sp$=function(){var t=nh$();if(t){var E=Dcl[t.type||"unknown"]||"CONN_UNKNOWN";t=Dcl[t.effectiveType||"unknown"]||"CONN_UNKNOWN";E==="CONN_CELLULAR_UNKNOWN"&&t!=="CONN_UNKNOWN"&&(E=t);if(E!=="CONN_UNKNOWN")return E;if(t!=="CONN_UNKNOWN")return t}};
PUD=function(){var t=nh$();if(t!=null&&t.effectiveType)return Lul.hasOwnProperty(t.effectiveType)?Lul[t.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.Si=function(){try{return _.yE(),!0}catch(t){return!1}};
_.yE=function(t){if(_.qO("DATASYNC_ID")!==void 0)return _.qO("DATASYNC_ID");throw new _.cC("Datasync ID not set",t===void 0?"unknown":t);};
_.tF=function(t){this.mechanism=t};
Ey=function(t){this.mechanism=t};
Uy=function(t){this.storage_=t;this.cachedIsStorageAvailable_=null};
TmE=function(){var t=null;try{t=_.Ui.localStorage||null}catch(E){}Uy.call(this,t)};
oht=function(){var t=null;try{t=_.Ui.sessionStorage||null}catch(E){}Uy.call(this,t)};
x6=function(t,E){this.mechanism_=t;this.JSC$10899_prefix_=E+"::"};
_.AF=function(t){var E=new TmE;return E.isAvailable()?t?new x6(E,t):E:null};
_.Wu8=function(t){var E=new oht;return E.isAvailable()?t?new x6(E,t):E:null};
Ku_=function(){var t;return(t=$cY())==null?void 0:t.get("LAST_RESULT_ENTRY_KEY",!0)};
_.mn=function(t){vht||(_.Y6?_.Y6.logError(t):(_.MR.push({type:"ERROR",payload:t}),_.MR.length>10&&_.MR.shift()))};
bJ=function(t,E){vht||(_.Y6?_.Y6.logEvent(t,E):(_.MR.push({type:"EVENT",eventType:t,payload:E}),_.MR.length>10&&_.MR.shift()))};
iJ=function(t){if(t.indexOf(":")>=0)throw Error("Tc");};
qR=function(t){return t.substr(0,t.indexOf(":"))||t};
cjY=function(){return(yj_||SFl)&&Hk("applewebkit")&&!Hk("version")&&(!Hk("safari")||Hk("gsa/"))};
Hk=function(t){var E=_.V_();return E?E.toLowerCase().indexOf(t)>=0:!1};
pL_=function(t,E,p,U){E=qR(E);var x=t instanceof Error?t:Error("Uc`"+t);if(x instanceof fM)return x;t={objectStoreNames:p,dbName:E,dbVersion:U};if(x.name==="QuotaExceededError")return new fM("QUOTA_EXCEEDED",t);if(_.Bk&&x.name==="UnknownError")return new fM("QUOTA_MAYBE_EXCEEDED",t);if(x instanceof tLY)return new fM("MISSING_INDEX",Object.assign({},t,{objectStore:x.objectStore,index:x.index}));if(x.name==="InvalidStateError"&&EzD.some(function(A){return x.message.includes(A)}))return new fM("EXECUTE_TRANSACTION_ON_CLOSED_DB",
t);
if(x.name==="AbortError")return new fM("UNKNOWN_ABORT",t,x.message);x.args=[Object.assign({},t,{name:"IdbError",originalName:x.name})];x.level="WARNING";return x};
w7=function(t,E,p){var U=Ku_();return new fM("IDB_NOT_SUPPORTED",{context:{caller:t,publicName:E,version:p,hasSucceededOnce:U==null?void 0:U.hasSucceededOnce}})};
UJK=function(t){if(!t)throw Error();throw t;};
xJt=function(t){return t};
AfJ=function(t,E,p){var U=function(){try{t.removeEventListener("success",x),t.removeEventListener("error",A)}catch(m){}},x=function(){E(t.result);
U()},A=function(){p(t.error);
U()};
t.addEventListener("success",x);t.addEventListener("error",A)};
Y58=function(t){return new Promise(function(E,p){AfJ(t,E,p)})};
Qk=function(t){return new RD(new Vk(function(E,p){AfJ(t,E,p)}))};
MLt=function(t,E){return new RD(new Vk(function(p,U){var x=function(){var A=t?E(t):null;A?A.then(function(m){t=m;x()},U):p()};
x()}))};
mJt=function(t,E,p){return new Promise(function(U,x){var A=E!==void 0?self.indexedDB.open(t,E):self.indexedDB.open(t);var m=p.blocked,b=p.blocking,f=p.terminated,B=p.upgrade,R=p.closed,V,Q=function(){V||(V=new CM(A.result,{closed:R}));return V};
A.addEventListener("upgradeneeded",function(C){try{if(C.newVersion===null)throw Error("Zc");if(A.transaction===null)throw Error("$c");C.dataLoss&&C.dataLoss!=="none"&&bJ("IDB_DATA_CORRUPTED",{reason:C.dataLossMessage||"unknown reason",dbName:qR(t)});var d=Q(),I=new ju(A.transaction);B&&B(d,function(O){return C.oldVersion<O&&C.newVersion>=O},I);
I.done.catch(function(O){x(O)})}catch(O){x(O)}});
A.addEventListener("success",function(){var C=A.result;b&&C.addEventListener("versionchange",function(){b(Q())});
C.addEventListener("close",function(){bJ("IDB_UNEXPECTEDLY_CLOSED",{dbName:qR(t),dbVersion:C.version});f&&f()});
U(Q())});
A.addEventListener("error",function(){x(A.error)});
m&&A.addEventListener("blocked",function(){m()})})};
bfY=function(t,E,p){p=p===void 0?{}:p;return mJt(t,E,p)};
_.k6=function(t,E){E=E===void 0?{}:E;var p,U,x,A;return _.q(function(m){if(m.nextAddress==1)return _.aR(m,2),p=self.indexedDB.deleteDatabase(t),U=E,(x=U.blocked)&&p.addEventListener("blocked",function(){x()}),m.yield(Y58(p),4);
if(m.nextAddress!=2)return _.r7(m,0);A=_.nB(m);throw pL_(A,t,"",-1);})};
q5l=function(t,E){var p;return _.q(function(U){if(U.nextAddress==1)return U.yield(_.d7(if0,E),2);p=U.yieldResult;return U.return(_.uJ(p,["databases"],{enableRetries:!0,mode:"readwrite"},function(x){var A=x.objectStore("databases");return A.get(t.actualName).then(function(m){if(m?t.actualName!==m.actualName||t.publicName!==m.publicName||t.userIdentifier!==m.userIdentifier:1)return A.put(t).then(function(){})})}))})};
_.JF=function(t,E){var p;return _.q(function(U){if(U.nextAddress==1)return t?U.yield(_.d7(if0,E),2):U.return();p=U.yieldResult;return U.return(p.delete("databases",t))})};
_.HfY=function(t,E){var p,U;return _.q(function(x){return x.nextAddress==1?(p=[],x.yield(_.d7(if0,E),2)):x.nextAddress!=3?(U=x.yieldResult,x.yield(_.uJ(U,["databases"],{enableRetries:!0,mode:"readonly"},function(A){p.length=0;return ID(A.objectStore("databases"),{},function(m){t(m.getValue())&&p.push(m.getValue());return m.continue()})}),3)):x.return(p)})};
fKK=function(t,E){return _.HfY(function(p){return p.publicName===t&&p.userIdentifier!==void 0},E)};
RFj=function(){var t,E,p,U;return _.q(function(x){switch(x.nextAddress){case 1:t=Ku_();if((E=t)==null?0:E.hasSucceededOnce)return x.return(!0);var A;if(A=BNt)A=/WebKit\/([0-9]+)/.exec(_.V_()),A=!!(A&&parseInt(A[1],10)>=600);A&&(A=/WebKit\/([0-9]+)/.exec(_.V_()),A=!(A&&parseInt(A[1],10)>=602));if(A||g7)return x.return(!1);try{if(p=self,!(p.indexedDB&&p.IDBIndex&&p.IDBKeyRange&&p.IDBObjectStore))return x.return(!1)}catch(m){return x.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return x.return(!1);
_.aR(x,2);U={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return x.yield(q5l(U,wL$),4);case 4:return x.yield(_.JF("yt-idb-test-do-not-use",wL$),5);case 5:return x.return(!0);case 2:return _.nB(x),x.return(!1)}})};
Q4E=function(){if(VLj!==void 0)return VLj;vht=!0;return VLj=RFj().then(function(t){vht=!1;var E;if((E=$cY())!=null&&E.hasLocalStorage()){var p;E={hasSucceededOnce:((p=Ku_())==null?void 0:p.hasSucceededOnce)||t};var U;(U=$cY())==null||U.set("LAST_RESULT_ENTRY_KEY",E,2592E3,!0)}return t})};
ZR=function(){return _.ws("ytglobal.idbToken_")||void 0};
_.hF=function(){var t=ZR();return t?Promise.resolve(t):Q4E().then(function(E){(E=E?wL$:void 0)&&_.Oy("ytglobal.idbToken_",E);return E})};
CCj=function(t){if(!_.Si())throw t=new fM("AUTH_INVALID",{dbName:t}),_.mn(t),t;var E=_.yE();return{actualName:t+":"+E,publicName:t,userIdentifier:E}};
j48=function(t,E,p,U){var x,A,m,b,f,B;return _.q(function(R){switch(R.nextAddress){case 1:return A=(x=Error().stack)!=null?x:"",R.yield(_.hF(),2);case 2:m=R.yieldResult;if(!m)throw b=w7("openDbImpl",t,E),_.r("ytidb_async_stack_killswitch")||(b.stack=b.stack+"\n"+A.substring(A.indexOf("\n")+1)),_.mn(b),b;iJ(t);f=p?{actualName:t,publicName:t,userIdentifier:void 0}:CCj(t);_.aR(R,3);return R.yield(q5l(f,m),5);case 5:return R.yield(bfY(f.actualName,E,U),6);case 6:return R.return(R.yieldResult);case 3:return B=
_.nB(R),_.aR(R,7),R.yield(_.JF(f.actualName,m),9);case 9:_.r7(R,8);break;case 7:_.nB(R);case 8:throw B;}})};
rfY=function(t,E,p){p=p===void 0?{}:p;return j48(t,E,!1,p)};
k2i=function(t,E,p){p=p===void 0?{}:p;return j48(t,E,!0,p)};
dJ$=function(t,E){E=E===void 0?{}:E;var p,U;return _.q(function(x){if(x.nextAddress==1)return x.yield(_.hF(),2);if(x.nextAddress!=3){p=x.yieldResult;if(!p)return x.return();iJ(t);U=CCj(t);return x.yield(_.k6(U.actualName,E),3)}return x.yield(_.JF(U.actualName,p),0)})};
u$E=function(t,E,p){t=t.map(function(U){return _.q(function(x){return x.nextAddress==1?x.yield(_.k6(U.actualName,E),2):x.yield(_.JF(U.actualName,p),0)})});
return Promise.all(t).then(function(){})};
Jft=function(t){var E=E===void 0?{}:E;var p,U;return _.q(function(x){if(x.nextAddress==1)return x.yield(_.hF(),2);if(x.nextAddress!=3){p=x.yieldResult;if(!p)return x.return();iJ(t);return x.yield(fKK(t,p),3)}U=x.yieldResult;return x.yield(u$E(U,E,p),0)})};
IKL=function(t,E){E=E===void 0?{}:E;var p;return _.q(function(U){if(U.nextAddress==1)return U.yield(_.hF(),2);if(U.nextAddress!=3){p=U.yieldResult;if(!p)return U.return();iJ(t);return U.yield(_.k6(t,E),3)}return U.yield(_.JF(t,p),0)})};
aD=function(t,E){return gzj(t,E)};
OfO=function(t){return _.d7(Zfi(),t)};
XLJ=function(t,E,p,U){var x,A,m;return _.q(function(b){switch(b.nextAddress){case 1:return x={config:t,hashData:E,timestamp:U!==void 0?U:(0,_.eu)()},b.yield(OfO(p),2);case 2:return A=b.yieldResult,b.yield(A.clear("hotConfigStore"),3);case 3:return b.yield(A.put("hotConfigStore",x),4);case 4:return m=b.yieldResult,b.return(m)}})};
hF_=function(t,E,p,U,x){var A,m,b;return _.q(function(f){switch(f.nextAddress){case 1:return A={config:t,hashData:E,configData:p,timestamp:x!==void 0?x:(0,_.eu)()},f.yield(OfO(U),2);case 2:return m=f.yieldResult,f.yield(m.clear("coldConfigStore"),3);case 3:return f.yield(m.put("coldConfigStore",A),4);case 4:return b=f.yieldResult,f.return(b)}})};
aK$=function(t){var E,p;return _.q(function(U){return U.nextAddress==1?U.yield(OfO(t),2):U.nextAddress!=3?(E=U.yieldResult,p=void 0,U.yield(_.uJ(E,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(x){return _.Fa(x.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(A){p=A.getValue()})}),3)):U.return(p)})};
eF$=function(t){var E,p;return _.q(function(U){return U.nextAddress==1?U.yield(OfO(t),2):U.nextAddress!=3?(E=U.yieldResult,p=void 0,U.yield(_.uJ(E,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(x){return _.Fa(x.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(A){p=A.getValue()})}),3)):U.return(p)})};
FDt=function(){return _.q(function(t){return t.yield(Jft("ytGcfConfig"),0)})};
zFD=function(){return"INNERTUBE_API_KEY"in _.ba&&"INNERTUBE_API_VERSION"in _.ba};
_.zM=function(){return{innertubeApiKey:_.qO("INNERTUBE_API_KEY"),innertubeApiVersion:_.qO("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.qO("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.qO("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.qO("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.qO("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.qO("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.qO("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.qO("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.HC("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.HC("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.qO("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.LD8=function(t){var E={client:{hl:t.innertubeContextHostLanguage,gl:t.innertubeContextGeoLocation,clientName:t.innertubeContextClientName,clientVersion:t.innertubeContextClientVersion,configInfo:t.innertubeContextClientConfigInfo}};navigator.userAgent&&(E.client.userAgent=String(navigator.userAgent));var p=_.Ui.devicePixelRatio;p&&p!=1&&(E.client.screenDensityFloat=String(p));p=YF$();p!==""&&(E.client.experimentsToken=p);p=M1t();p.length>0&&(E.request={internalExperimentFlags:p});lKE(t,void 0,E);
G2l(void 0,E);nzt(void 0,E);NNi(t,void 0,E);DJi(void 0,E);_.r("start_client_gcf")&&s4O(void 0,E);_.qO("DELEGATED_SESSION_ID")&&!_.r("pageid_as_header_web")&&(E.user={onBehalfOfUser:_.qO("DELEGATED_SESSION_ID")});!_.r("fill_delegate_context_in_gel_killswitch")&&(t=_.qO("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(E.user=Object.assign({},E.user,{serializedDelegationContext:t}));t=_.qO("INNERTUBE_CONTEXT");var U;if(_.r("enable_persistent_device_token")&&(t==null?0:(U=t.client)==null?0:U.rolloutToken)){var x;
E.client.rolloutToken=t==null?void 0:(x=t.client)==null?void 0:x.rolloutToken}U=Object;x=U.assign;t=E.client;p={};for(var A=_.M(Object.entries(_.CR(_.qO("DEVICE","")))),m=A.next();!m.done;m=A.next()){var b=_.M(m.value);m=b.next().value;b=b.next().value;m==="cbrand"?p.deviceMake=b:m==="cmodel"?p.deviceModel=b:m==="cbr"?p.browserName=b:m==="cbrver"?p.browserVersion=b:m==="cos"?p.osName=b:m==="cosver"?p.osVersion=b:m==="cplatform"&&(p.platform=b)}E.client=x.call(U,t,p);return E};
lKE=function(t,E,p){t=t.innertubeContextClientName;if(t==="WEB"||t==="MWEB"||t===1||t===2)if(E){p=_.lJ(E,PCL,96)||new PCL;var U=TN0();U=Object.keys(ozj).indexOf(U);U=U===-1?null:U;U!==null&&_.GM(p,3,U);_.FU(E,96,p)}else p&&(p.client.mainAppWebInfo=(U=p.client.mainAppWebInfo)!=null?U:{},p.client.mainAppWebInfo.webDisplayMode=TN0())};
G2l=function(t,E){var p=_.ws("yt.embedded_player.embed_url");p&&(t?(E=_.lJ(t,WD0,7)||new WD0,_.Lq(E,4,p),_.FU(t,7,E)):E&&(E.thirdParty={embedUrl:p}))};
nzt=function(t,E){var p;if(_.r("web_log_memory_total_kbytes")&&((p=_.Ui.navigator)==null?0:p.deviceMemory)){var U;p=(U=_.Ui.navigator)==null?void 0:U.deviceMemory;t?_.nM(t,95,ke(p*1E6)):E&&(E.client.memoryTotalKbytes=""+p*1E6)}};
NNi=function(t,E,p){if(t.appInstallData)if(E){var U;p=(U=_.lJ(E,NR,62))!=null?U:new NR;_.Lq(p,6,t.appInstallData);_.FU(E,62,p)}else p&&(p.client.configInfo=p.client.configInfo||{},p.client.configInfo.appInstallData=t.appInstallData)};
DJi=function(t,E){var p=_.sp$();p&&(t?_.GM(t,61,$JD[p]):E&&(E.client.connectionType=p));_.r("web_log_effective_connection_type")&&(p=PUD())&&(t?_.GM(t,94,KDl[p]):E&&(E.client.effectiveConnectionType=p))};
_.S5L=function(t,E,p){p=p===void 0?{}:p;var U={};_.qO("EOM_VISITOR_DATA")?U={"X-Goog-EOM-Visitor-Id":_.qO("EOM_VISITOR_DATA")}:U={"X-Goog-Visitor-Id":p.visitorData||_.qO("VISITOR_DATA","")};if(E&&E.includes("www.youtube-nocookie.com"))return U;E=p.authorization||_.qO("AUTHORIZATION");E||(t?E="Bearer "+_.ws("gapi.auth.getToken")().access_token:(vzY.instance||(vzY.instance=new vzY),t=yfO(),_.r("pageid_as_header_web")||delete t["X-Goog-PageId"],U=Object.assign({},U,t)));E&&(U.Authorization=E);return U};
s4O=function(t,E){var p=cf0();if(p){var U=p.coldConfigData,x=p.coldHashData;p=p.hotHashData;if(t){var A;E=(A=_.lJ(t,NR,62))!=null?A:new NR;U=_.Lq(E,1,U);_.Lq(U,3,x).setHotHashData(p);_.FU(t,62,E)}else E&&(E.client.configInfo=E.client.configInfo||{},U&&(E.client.configInfo.coldConfigData=U),x&&(E.client.configInfo.coldHashData=x),p&&(E.client.configInfo.hotHashData=p))}};
DR=function(t){for(var E=t.length;--E>=0;)t[E]=0};
tUO=function(t,E,p,U,x){this.static_tree=t;this.extra_bits=E;this.extra_base=p;this.elems=U;this.max_length=x;this.has_stree=t&&t.length};
ERJ=function(t,E){this.dyn_tree=t;this.max_code=0;this.stat_desc=E};
sy=function(t,E){t.pending_buf[t.pending++]=E&255;t.pending_buf[t.pending++]=E>>>8&255};
LM=function(t,E,p){t.bi_valid>16-p?(t.bi_buf|=E<<t.bi_valid&65535,sy(t,t.bi_buf),t.bi_buf=E>>16-t.bi_valid,t.bi_valid+=p-16):(t.bi_buf|=E<<t.bi_valid&65535,t.bi_valid+=p)};
Pk=function(t,E,p){LM(t,p[E*2],p[E*2+1])};
p3j=function(t,E){var p=0;do p|=t&1,t>>>=1,p<<=1;while(--E>0);return p>>>1};
Ul0=function(t,E,p){var U=Array(16),x=0,A;for(A=1;A<=15;A++)U[A]=x=x+p[A-1]<<1;for(p=0;p<=E;p++)x=t[p*2+1],x!==0&&(t[p*2]=p3j(U[x]++,x))};
xlj=function(t){var E;for(E=0;E<286;E++)t.dyn_ltree[E*2]=0;for(E=0;E<30;E++)t.dyn_dtree[E*2]=0;for(E=0;E<19;E++)t.bl_tree[E*2]=0;t.dyn_ltree[512]=1;t.opt_len=t.static_len=0;t.last_lit=t.matches=0};
A2E=function(t){t.bi_valid>8?sy(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf);t.bi_buf=0;t.bi_valid=0};
YU_=function(t,E,p){A2E(t);sy(t,p);sy(t,~p);TM.arraySet(t.pending_buf,t.window,E,p,t.pending);t.pending+=p};
MUK=function(t,E,p,U){var x=E*2,A=p*2;return t[x]<t[A]||t[x]===t[A]&&U[E]<=U[p]};
mlK=function(t,E,p){for(var U=t.heap[p],x=p<<1;x<=t.heap_len;){x<t.heap_len&&MUK(E,t.heap[x+1],t.heap[x],t.depth)&&x++;if(MUK(E,U,t.heap[x],t.depth))break;t.heap[p]=t.heap[x];p=x;x<<=1}t.heap[p]=U};
fNL=function(t,E,p){var U=0;if(t.last_lit!==0){do{var x=t.pending_buf[t.d_buf+U*2]<<8|t.pending_buf[t.d_buf+U*2+1];var A=t.pending_buf[t.l_buf+U];U++;if(x===0)Pk(t,A,E);else{var m=oD[A];Pk(t,m+256+1,E);var b=b0Y[m];b!==0&&(A-=i0t[m],LM(t,A,b));x--;m=x<256?Wk[x]:Wk[256+(x>>>7)];Pk(t,m,p);b=qUY[m];b!==0&&(x-=H0D[m],LM(t,x,b))}}while(U<t.last_lit)}Pk(t,256,E)};
BzD=function(t,E){var p=E.dyn_tree,U=E.stat_desc.static_tree,x=E.stat_desc.has_stree,A=E.stat_desc.elems,m,b=-1;t.heap_len=0;t.heap_max=573;for(m=0;m<A;m++)p[m*2]!==0?(t.heap[++t.heap_len]=b=m,t.depth[m]=0):p[m*2+1]=0;for(;t.heap_len<2;){var f=t.heap[++t.heap_len]=b<2?++b:0;p[f*2]=1;t.depth[f]=0;t.opt_len--;x&&(t.static_len-=U[f*2+1])}E.max_code=b;for(m=t.heap_len>>1;m>=1;m--)mlK(t,p,m);f=A;do m=t.heap[1],t.heap[1]=t.heap[t.heap_len--],mlK(t,p,1),U=t.heap[1],t.heap[--t.heap_max]=m,t.heap[--t.heap_max]=
U,p[f*2]=p[m*2]+p[U*2],t.depth[f]=(t.depth[m]>=t.depth[U]?t.depth[m]:t.depth[U])+1,p[m*2+1]=p[U*2+1]=f,t.heap[1]=f++,mlK(t,p,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1];m=E.dyn_tree;f=E.max_code;U=E.stat_desc.static_tree;x=E.stat_desc.has_stree;A=E.stat_desc.extra_bits;var B=E.stat_desc.extra_base,R=E.stat_desc.max_length,V,Q=0;for(V=0;V<=15;V++)t.bl_count[V]=0;m[t.heap[t.heap_max]*2+1]=0;for(E=t.heap_max+1;E<573;E++){var C=t.heap[E];V=m[m[C*2+1]*2+1]+1;V>R&&(V=R,Q++);m[C*2+1]=V;if(!(C>
f)){t.bl_count[V]++;var d=0;C>=B&&(d=A[C-B]);var I=m[C*2];t.opt_len+=I*(V+d);x&&(t.static_len+=I*(U[C*2+1]+d))}}if(Q!==0){do{for(V=R-1;t.bl_count[V]===0;)V--;t.bl_count[V]--;t.bl_count[V+1]+=2;t.bl_count[R]--;Q-=2}while(Q>0);for(V=R;V!==0;V--)for(C=t.bl_count[V];C!==0;)U=t.heap[--E],U>f||(m[U*2+1]!==V&&(t.opt_len+=(V-m[U*2+1])*m[U*2],m[U*2+1]=V),C--)}Ul0(p,b,t.bl_count)};
w3K=function(t,E,p){var U,x=-1,A=E[1],m=0,b=7,f=4;A===0&&(b=138,f=3);E[(p+1)*2+1]=65535;for(U=0;U<=p;U++){var B=A;A=E[(U+1)*2+1];++m<b&&B===A||(m<f?t.bl_tree[B*2]+=m:B!==0?(B!==x&&t.bl_tree[B*2]++,t.bl_tree[32]++):m<=10?t.bl_tree[34]++:t.bl_tree[36]++,m=0,x=B,A===0?(b=138,f=3):B===A?(b=6,f=3):(b=7,f=4))}};
R9O=function(t,E,p){var U,x=-1,A=E[1],m=0,b=7,f=4;A===0&&(b=138,f=3);for(U=0;U<=p;U++){var B=A;A=E[(U+1)*2+1];if(!(++m<b&&B===A)){if(m<f){do Pk(t,B,t.bl_tree);while(--m!==0)}else B!==0?(B!==x&&(Pk(t,B,t.bl_tree),m--),Pk(t,16,t.bl_tree),LM(t,m-3,2)):m<=10?(Pk(t,17,t.bl_tree),LM(t,m-3,3)):(Pk(t,18,t.bl_tree),LM(t,m-11,7));m=0;x=B;A===0?(b=138,f=3):B===A?(b=6,f=3):(b=7,f=4)}}};
VUJ=function(t){var E=4093624447,p;for(p=0;p<=31;p++,E>>>=1)if(E&1&&t.dyn_ltree[p*2]!==0)return 0;if(t.dyn_ltree[18]!==0||t.dyn_ltree[20]!==0||t.dyn_ltree[26]!==0)return 1;for(p=32;p<256;p++)if(t.dyn_ltree[p*2]!==0)return 1;return 0};
$6=function(t,E,p){t.pending_buf[t.d_buf+t.last_lit*2]=E>>>8&255;t.pending_buf[t.d_buf+t.last_lit*2+1]=E&255;t.pending_buf[t.l_buf+t.last_lit]=p&255;t.last_lit++;E===0?t.dyn_ltree[p*2]++:(t.matches++,E--,t.dyn_ltree[(oD[p]+256+1)*2]++,t.dyn_dtree[(E<256?Wk[E]:Wk[256+(E>>>7)])*2]++);return t.last_lit===t.lit_bufsize-1};
vk=function(t,E){t.msg=KM[E];return E};
yk=function(t){for(var E=t.length;--E>=0;)t[E]=0};
Su=function(t){var E=t.state,p=E.pending;p>t.avail_out&&(p=t.avail_out);p!==0&&(TM.arraySet(t.output,E.pending_buf,E.pending_out,p,t.next_out),t.next_out+=p,E.pending_out+=p,t.total_out+=p,t.avail_out-=p,E.pending-=p,E.pending===0&&(E.pending_out=0))};
pT=function(t,E){var p=t.block_start>=0?t.block_start:-1,U=t.strstart-t.block_start,x=0;if(t.level>0){t.strm.data_type===2&&(t.strm.data_type=VUJ(t));BzD(t,t.l_desc);BzD(t,t.d_desc);w3K(t,t.dyn_ltree,t.l_desc.max_code);w3K(t,t.dyn_dtree,t.d_desc.max_code);BzD(t,t.bl_desc);for(x=18;x>=3&&t.bl_tree[QG8[x]*2+1]===0;x--);t.opt_len+=3*(x+1)+5+5+4;var A=t.opt_len+3+7>>>3;var m=t.static_len+3+7>>>3;m<=A&&(A=m)}else A=m=U+5;if(U+4<=A&&p!==-1)LM(t,E?1:0,3),YU_(t,p,U);else if(t.strategy===4||m===A)LM(t,2+(E?
1:0),3),fNL(t,tw,EG);else{LM(t,4+(E?1:0),3);p=t.l_desc.max_code+1;U=t.d_desc.max_code+1;x+=1;LM(t,p-257,5);LM(t,U-1,5);LM(t,x-4,4);for(A=0;A<x;A++)LM(t,t.bl_tree[QG8[A]*2+1],3);R9O(t,t.dyn_ltree,p-1);R9O(t,t.dyn_dtree,U-1);fNL(t,t.dyn_ltree,t.dyn_dtree)}xlj(t);E&&A2E(t);t.block_start=t.strstart;Su(t.strm)};
UG=function(t,E){t.pending_buf[t.pending++]=E};
x7=function(t,E){t.pending_buf[t.pending++]=E>>>8&255;t.pending_buf[t.pending++]=E&255};
CcO=function(t,E){var p=t.max_chain_length,U=t.strstart,x=t.prev_length,A=t.nice_match,m=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,b=t.window,f=t.w_mask,B=t.prev,R=t.strstart+258,V=b[U+x-1],Q=b[U+x];t.prev_length>=t.good_match&&(p>>=2);A>t.lookahead&&(A=t.lookahead);do{var C=E;if(b[C+x]===Q&&b[C+x-1]===V&&b[C]===b[U]&&b[++C]===b[U+1]){U+=2;for(C++;b[++U]===b[++C]&&b[++U]===b[++C]&&b[++U]===b[++C]&&b[++U]===b[++C]&&b[++U]===b[++C]&&b[++U]===b[++C]&&b[++U]===b[++C]&&b[++U]===b[++C]&&U<R;);
C=258-(R-U);U=R-258;if(C>x){t.match_start=E;x=C;if(C>=A)break;V=b[U+x-1];Q=b[U+x]}}}while((E=B[E&f])>m&&--p!==0);return x<=t.lookahead?x:t.lookahead};
Y7=function(t){var E=t.w_size,p;do{var U=t.window_size-t.lookahead-t.strstart;if(t.strstart>=E+(E-262)){TM.arraySet(t.window,t.window,E,E,0);t.match_start-=E;t.strstart-=E;t.block_start-=E;var x=p=t.hash_size;do{var A=t.head[--x];t.head[x]=A>=E?A-E:0}while(--p);x=p=E;do A=t.prev[--x],t.prev[x]=A>=E?A-E:0;while(--p);U+=E}if(t.strm.avail_in===0)break;x=t.strm;p=t.window;A=t.strstart+t.lookahead;var m=x.avail_in;m>U&&(m=U);m===0?p=0:(x.avail_in-=m,TM.arraySet(p,x.input,x.next_in,m,A),x.state.wrap===
1?x.adler=jG8(x.adler,p,m,A):x.state.wrap===2&&(x.adler=Aw(x.adler,p,m,A)),x.next_in+=m,x.total_in+=m,p=m);t.lookahead+=p;if(t.lookahead+t.insert>=3)for(U=t.strstart-t.insert,t.ins_h=t.window[U],t.ins_h=(t.ins_h<<t.hash_shift^t.window[U+1])&t.hash_mask;t.insert&&!(t.ins_h=(t.ins_h<<t.hash_shift^t.window[U+3-1])&t.hash_mask,t.prev[U&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=U,U++,t.insert--,t.lookahead+t.insert<3););}while(t.lookahead<262&&t.strm.avail_in!==0)};
r2Y=function(t,E){for(var p;;){if(t.lookahead<262){Y7(t);if(t.lookahead<262&&E===0)return 1;if(t.lookahead===0)break}p=0;t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,p=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);p!==0&&t.strstart-p<=t.w_size-262&&(t.match_length=CcO(t,p));if(t.match_length>=3)if(p=$6(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;
do t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else p=$6(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(p&&(pT(t,!1),t.strm.avail_out===0))return 1}t.insert=t.strstart<2?t.strstart:2;return E===4?(pT(t,
!0),t.strm.avail_out===0?3:4):t.last_lit&&(pT(t,!1),t.strm.avail_out===0)?1:2};
M0=function(t,E){for(var p,U;;){if(t.lookahead<262){Y7(t);if(t.lookahead<262&&E===0)return 1;if(t.lookahead===0)break}p=0;t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,p=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);t.prev_length=t.match_length;t.prev_match=t.match_start;t.match_length=2;p!==0&&t.prev_length<t.max_lazy_match&&t.strstart-p<=t.w_size-262&&(t.match_length=CcO(t,p),t.match_length<=5&&(t.strategy===1||t.match_length===3&&
t.strstart-t.match_start>4096)&&(t.match_length=2));if(t.prev_length>=3&&t.match_length<=t.prev_length){U=t.strstart+t.lookahead-3;p=$6(t,t.strstart-1-t.prev_match,t.prev_length-3);t.lookahead-=t.prev_length-1;t.prev_length-=2;do++t.strstart<=U&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(--t.prev_length!==0);t.match_available=0;t.match_length=2;t.strstart++;if(p&&(pT(t,!1),t.strm.avail_out===0))return 1}else if(t.match_available){if((p=
$6(t,0,t.window[t.strstart-1]))&&pT(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return 1}else t.match_available=1,t.strstart++,t.lookahead--}t.match_available&&($6(t,0,t.window[t.strstart-1]),t.match_available=0);t.insert=t.strstart<2?t.strstart:2;return E===4?(pT(t,!0),t.strm.avail_out===0?3:4):t.last_lit&&(pT(t,!1),t.strm.avail_out===0)?1:2};
kIO=function(t,E){for(var p,U,x,A=t.window;;){if(t.lookahead<=258){Y7(t);if(t.lookahead<=258&&E===0)return 1;if(t.lookahead===0)break}t.match_length=0;if(t.lookahead>=3&&t.strstart>0&&(U=t.strstart-1,p=A[U],p===A[++U]&&p===A[++U]&&p===A[++U])){for(x=t.strstart+258;p===A[++U]&&p===A[++U]&&p===A[++U]&&p===A[++U]&&p===A[++U]&&p===A[++U]&&p===A[++U]&&p===A[++U]&&U<x;);t.match_length=258-(x-U);t.match_length>t.lookahead&&(t.match_length=t.lookahead)}t.match_length>=3?(p=$6(t,1,t.match_length-3),t.lookahead-=
t.match_length,t.strstart+=t.match_length,t.match_length=0):(p=$6(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++);if(p&&(pT(t,!1),t.strm.avail_out===0))return 1}t.insert=0;return E===4?(pT(t,!0),t.strm.avail_out===0?3:4):t.last_lit&&(pT(t,!1),t.strm.avail_out===0)?1:2};
dl8=function(t,E){for(var p;;){if(t.lookahead===0&&(Y7(t),t.lookahead===0)){if(E===0)return 1;break}t.match_length=0;p=$6(t,0,t.window[t.strstart]);t.lookahead--;t.strstart++;if(p&&(pT(t,!1),t.strm.avail_out===0))return 1}t.insert=0;return E===4?(pT(t,!0),t.strm.avail_out===0?3:4):t.last_lit&&(pT(t,!1),t.strm.avail_out===0)?1:2};
mM=function(t,E,p,U,x){this.good_length=t;this.max_lazy=E;this.nice_length=p;this.max_chain=U;this.func=x};
uM8=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 TM.Buf16(1146);this.dyn_dtree=new TM.Buf16(122);this.bl_tree=new TM.Buf16(78);yk(this.dyn_ltree);yk(this.dyn_dtree);yk(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new TM.Buf16(16);this.heap=new TM.Buf16(573);yk(this.heap);this.heap_max=this.heap_len=0;this.depth=new TM.Buf16(573);yk(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};
J2i=function(t,E){if(!t||!t.state||E>5||E<0)return t?vk(t,-2):-2;var p=t.state;if(!t.output||!t.input&&t.avail_in!==0||p.status===666&&E!==4)return vk(t,t.avail_out===0?-5:-2);p.strm=t;var U=p.last_flush;p.last_flush=E;if(p.status===42)if(p.wrap===2)t.adler=0,UG(p,31),UG(p,139),UG(p,8),p.gzhead?(UG(p,(p.gzhead.text?1:0)+(p.gzhead.hcrc?2:0)+(p.gzhead.extra?4:0)+(p.gzhead.name?8:0)+(p.gzhead.comment?16:0)),UG(p,p.gzhead.time&255),UG(p,p.gzhead.time>>8&255),UG(p,p.gzhead.time>>16&255),UG(p,p.gzhead.time>>
24&255),UG(p,p.level===9?2:p.strategy>=2||p.level<2?4:0),UG(p,p.gzhead.os&255),p.gzhead.extra&&p.gzhead.extra.length&&(UG(p,p.gzhead.extra.length&255),UG(p,p.gzhead.extra.length>>8&255)),p.gzhead.hcrc&&(t.adler=Aw(t.adler,p.pending_buf,p.pending,0)),p.gzindex=0,p.status=69):(UG(p,0),UG(p,0),UG(p,0),UG(p,0),UG(p,0),UG(p,p.level===9?2:p.strategy>=2||p.level<2?4:0),UG(p,3),p.status=113);else{var x=8+(p.w_bits-8<<4)<<8;x|=(p.strategy>=2||p.level<2?0:p.level<6?1:p.level===6?2:3)<<6;p.strstart!==0&&(x|=
32);p.status=113;x7(p,x+(31-x%31));p.strstart!==0&&(x7(p,t.adler>>>16),x7(p,t.adler&65535));t.adler=1}if(p.status===69)if(p.gzhead.extra){for(x=p.pending;p.gzindex<(p.gzhead.extra.length&65535)&&(p.pending!==p.pending_buf_size||(p.gzhead.hcrc&&p.pending>x&&(t.adler=Aw(t.adler,p.pending_buf,p.pending-x,x)),Su(t),x=p.pending,p.pending!==p.pending_buf_size));)UG(p,p.gzhead.extra[p.gzindex]&255),p.gzindex++;p.gzhead.hcrc&&p.pending>x&&(t.adler=Aw(t.adler,p.pending_buf,p.pending-x,x));p.gzindex===p.gzhead.extra.length&&
(p.gzindex=0,p.status=73)}else p.status=73;if(p.status===73)if(p.gzhead.name){x=p.pending;do{if(p.pending===p.pending_buf_size&&(p.gzhead.hcrc&&p.pending>x&&(t.adler=Aw(t.adler,p.pending_buf,p.pending-x,x)),Su(t),x=p.pending,p.pending===p.pending_buf_size)){var A=1;break}A=p.gzindex<p.gzhead.name.length?p.gzhead.name.charCodeAt(p.gzindex++)&255:0;UG(p,A)}while(A!==0);p.gzhead.hcrc&&p.pending>x&&(t.adler=Aw(t.adler,p.pending_buf,p.pending-x,x));A===0&&(p.gzindex=0,p.status=91)}else p.status=91;if(p.status===
91)if(p.gzhead.comment){x=p.pending;do{if(p.pending===p.pending_buf_size&&(p.gzhead.hcrc&&p.pending>x&&(t.adler=Aw(t.adler,p.pending_buf,p.pending-x,x)),Su(t),x=p.pending,p.pending===p.pending_buf_size)){A=1;break}A=p.gzindex<p.gzhead.comment.length?p.gzhead.comment.charCodeAt(p.gzindex++)&255:0;UG(p,A)}while(A!==0);p.gzhead.hcrc&&p.pending>x&&(t.adler=Aw(t.adler,p.pending_buf,p.pending-x,x));A===0&&(p.status=103)}else p.status=103;p.status===103&&(p.gzhead.hcrc?(p.pending+2>p.pending_buf_size&&Su(t),
p.pending+2<=p.pending_buf_size&&(UG(p,t.adler&255),UG(p,t.adler>>8&255),t.adler=0,p.status=113)):p.status=113);if(p.pending!==0){if(Su(t),t.avail_out===0)return p.last_flush=-1,0}else if(t.avail_in===0&&(E<<1)-(E>4?9:0)<=(U<<1)-(U>4?9:0)&&E!==4)return vk(t,-5);if(p.status===666&&t.avail_in!==0)return vk(t,-5);if(t.avail_in!==0||p.lookahead!==0||E!==0&&p.status!==666){U=p.strategy===2?dl8(p,E):p.strategy===3?kIO(p,E):br[p.level].func(p,E);if(U===3||U===4)p.status=666;if(U===1||U===3)return t.avail_out===
0&&(p.last_flush=-1),0;if(U===2&&(E===1?(LM(p,2,3),Pk(p,256,tw),p.bi_valid===16?(sy(p,p.bi_buf),p.bi_buf=0,p.bi_valid=0):p.bi_valid>=8&&(p.pending_buf[p.pending++]=p.bi_buf&255,p.bi_buf>>=8,p.bi_valid-=8)):E!==5&&(LM(p,0,3),YU_(p,0,0),E===3&&(yk(p.head),p.lookahead===0&&(p.strstart=0,p.block_start=0,p.insert=0))),Su(t),t.avail_out===0))return p.last_flush=-1,0}if(E!==4)return 0;if(p.wrap<=0)return 1;p.wrap===2?(UG(p,t.adler&255),UG(p,t.adler>>8&255),UG(p,t.adler>>16&255),UG(p,t.adler>>24&255),UG(p,
t.total_in&255),UG(p,t.total_in>>8&255),UG(p,t.total_in>>16&255),UG(p,t.total_in>>24&255)):(x7(p,t.adler>>>16),x7(p,t.adler&65535));Su(t);p.wrap>0&&(p.wrap=-p.wrap);return p.pending!==0?0:1};
INJ=function(t){if(!(this instanceof INJ))return new INJ(t);t=this.options=TM.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new gRt;this.strm.avail_out=0;var E=this.strm;var p=t.level,U=t.method,x=t.windowBits,A=t.memLevel,m=t.strategy;if(E){var b=1;p===-1&&(p=6);x<0?(b=0,x=-x):x>15&&
(b=2,x-=16);if(A<1||A>9||U!==8||x<8||x>15||p<0||p>9||m<0||m>4)E=vk(E,-2);else{x===8&&(x=9);var f=new uM8;E.state=f;f.strm=E;f.wrap=b;f.gzhead=null;f.w_bits=x;f.w_size=1<<f.w_bits;f.w_mask=f.w_size-1;f.hash_bits=A+7;f.hash_size=1<<f.hash_bits;f.hash_mask=f.hash_size-1;f.hash_shift=~~((f.hash_bits+3-1)/3);f.window=new TM.Buf8(f.w_size*2);f.head=new TM.Buf16(f.hash_size);f.prev=new TM.Buf16(f.w_size);f.lit_bufsize=1<<A+6;f.pending_buf_size=f.lit_bufsize*4;f.pending_buf=new TM.Buf8(f.pending_buf_size);
f.d_buf=f.lit_bufsize;f.l_buf=3*f.lit_bufsize;f.level=p;f.strategy=m;f.method=U;if(E&&E.state){E.total_in=E.total_out=0;E.data_type=2;p=E.state;p.pending=0;p.pending_out=0;p.wrap<0&&(p.wrap=-p.wrap);p.status=p.wrap?42:113;E.adler=p.wrap===2?0:1;p.last_flush=0;if(!Z0i){U=Array(16);for(A=m=0;A<28;A++)for(i0t[A]=m,x=0;x<1<<b0Y[A];x++)oD[m++]=A;oD[m-1]=A;for(A=m=0;A<16;A++)for(H0D[A]=m,x=0;x<1<<qUY[A];x++)Wk[m++]=A;for(m>>=7;A<30;A++)for(H0D[A]=m<<7,x=0;x<1<<qUY[A]-7;x++)Wk[256+m++]=A;for(x=0;x<=15;x++)U[x]=
0;for(x=0;x<=143;)tw[x*2+1]=8,x++,U[8]++;for(;x<=255;)tw[x*2+1]=9,x++,U[9]++;for(;x<=279;)tw[x*2+1]=7,x++,U[7]++;for(;x<=287;)tw[x*2+1]=8,x++,U[8]++;Ul0(tw,287,U);for(x=0;x<30;x++)EG[x*2+1]=5,EG[x*2]=p3j(x,5);O0D=new tUO(tw,b0Y,257,286,15);X3J=new tUO(EG,qUY,0,30,15);h9L=new tUO([],aN8,0,19,7);Z0i=!0}p.l_desc=new ERJ(p.dyn_ltree,O0D);p.d_desc=new ERJ(p.dyn_dtree,X3J);p.bl_desc=new ERJ(p.bl_tree,h9L);p.bi_buf=0;p.bi_valid=0;xlj(p);p=0}else p=vk(E,-2);p===0&&(E=E.state,E.window_size=2*E.w_size,yk(E.head),
E.max_lazy_match=br[E.level].max_lazy,E.good_match=br[E.level].good_length,E.nice_match=br[E.level].nice_length,E.max_chain_length=br[E.level].max_chain,E.strstart=0,E.block_start=0,E.lookahead=0,E.insert=0,E.match_length=E.prev_length=2,E.match_available=0,E.ins_h=0);E=p}}else E=-2;if(E!==0)throw Error(KM[E]);t.header&&(E=this.strm)&&E.state&&E.state.wrap===2&&(E.state.gzhead=t.header);if(t.dictionary){var B;typeof t.dictionary==="string"?B=e9O(t.dictionary):FeY.call(t.dictionary)==="[object ArrayBuffer]"?
B=new Uint8Array(t.dictionary):B=t.dictionary;t=this.strm;A=B;m=A.length;if(t&&t.state)if(B=t.state,E=B.wrap,E===2||E===1&&B.status!==42||B.lookahead)E=-2;else{E===1&&(t.adler=jG8(t.adler,A,m,0));B.wrap=0;m>=B.w_size&&(E===0&&(yk(B.head),B.strstart=0,B.block_start=0,B.insert=0),p=new TM.Buf8(B.w_size),TM.arraySet(p,A,m-B.w_size,B.w_size,0),A=p,m=B.w_size);p=t.avail_in;U=t.next_in;x=t.input;t.avail_in=m;t.next_in=0;t.input=A;for(Y7(B);B.lookahead>=3;){A=B.strstart;m=B.lookahead-2;do B.ins_h=(B.ins_h<<
B.hash_shift^B.window[A+3-1])&B.hash_mask,B.prev[A&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=A,A++;while(--m);B.strstart=A;B.lookahead=2;Y7(B)}B.strstart+=B.lookahead;B.block_start=B.strstart;B.insert=B.lookahead;B.lookahead=0;B.match_length=B.prev_length=2;B.match_available=0;t.next_in=U;t.input=x;t.avail_in=p;B.wrap=E;E=0}else E=-2;if(E!==0)throw Error(KM[E]);this._dict_set=!0}};
z9O=function(t,E){E=E||{};E.gzip=!0;E=new INJ(E);E.push(t,!0);if(E.err)throw E.msg||KM[E.err];return E.result};
GI0=function(t,E){var p=lNY();p&&p.publish.call(p,t.toString(),t,E)};
Le$=function(t,E,p){var U=lNY();if(!U)return 0;var x=U.subscribe(t.toString(),function(A,m){var b=_.ws("ytPubsub2Pubsub2SkipSubKey");b&&b==x||(b=function(){if(nRO[x])try{if(m&&t instanceof NzE&&t!=A)try{var f=t.dataClass,B=m;if(!B.args||!B.version)throw Error("bd");try{if(!f.version_){var R=new f;f.version_=R.version}var V=f.version_}catch(Q){}if(!V||B.version!=V)throw Error("cd");try{m=Reflect.construct(f,_.Dl(B.args))}catch(Q){throw Q.message="yt.pubsub2.Data.deserialize(): "+Q.message,Q;}}catch(Q){throw Q.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+t.toString()+": "+Q.message,Q;}E.call(p||window,m)}catch(Q){_.fR(Q)}},Dl$[t.toString()]?_.ws("yt.scheduler.instance")?_.ir.addLowPriorityJob(b):_.NO(b,0):b())});
nRO[x]=!0;sGD[t.toString()]||(sGD[t.toString()]=[]);sGD[t.toString()].push(x);return x};
Wel=function(){var t=PcE,E=Le$(TzE,function(p){t.apply(void 0,arguments);oRO(E)});
return E};
oRO=function(t){var E=lNY();E&&(typeof t==="number"&&(t=[t]),_.QE(t,function(p){E.unsubscribeByKey(p);delete nRO[p]}))};
lNY=function(){return _.ws("ytPubsub2Pubsub2Instance")};
$l_=function(t,E,p){p=p===void 0?{sampleRate:.1}:p;Math.random()<Math.min(.02,p.sampleRate/100)&&GI0("meta_logging_csi_event",{timerName:t,timelineData:E})};
_.Ke0=function(t){return t?(t=t.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.HT(t):null:null};
_.q0=function(t){return t?(t=t.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.N2(t):null:null};
y2t=function(){vRi||(vRi=_.q0(_.qO("WORKER_SERIALIZATION_URL")));return vRi||void 0};
_.c2$=function(){var t=y2t();SU0||t===void 0||(SU0=eX8(t));return SU0};
_.t5K=function(){return typeof Worker==="function"&&y2t()?!0:!1};
_.xdO=function(){if(_.t5K()&&!E8t){var t=function(p){p=p.data;if(p.op==="gzippedGelBatch"){var U=pu_.get(p.key);U&&(Ud0(p.gzippedBatch,U.latencyPayload,U.url,U.options,U.sendFn),pu_.delete(p.key))}},E=_.c2$();
E&&(E.addEventListener("message",t),E.onerror=function(){pu_.clear()},E8t=!0)}};
i4$=function(t,E,p,U,x){x=x===void 0?!1:x;var A={startTime:(0,_.eu)(),ticks:{},infos:{}};if(HE)try{var m=AXY(E);if(m!=null&&(m>Yli||m<M5K))U(t,p);else{if(_.r("gzip_gel_with_worker")){E8t||_.xdO();var b=_.c2$();if(b&&!x){pu_.set(mdi,{latencyPayload:A,url:t,options:p,sendFn:U});b.postMessage({op:"gelBatchToGzip",serializedBatch:E,key:mdi});mdi++;return}}var f=z9O(b4O(E));Ud0(f,A,t,p,U)}}catch(B){_.Ra(B),U(t,p)}else U(t,p)};
Ud0=function(t,E,p,U,x){var A=(0,_.eu)();E.ticks.gelc=A;fT++;_.r("disable_compression_due_to_performance_degredation")&&A-E.startTime>=qlO&&(H4O++,HE=!1);fw_(E);U.headers||(U.headers={});U.headers["Content-Encoding"]="gzip";U.postBody=t;U.postParams=void 0;x(p,U)};
wuY=function(t){var E=E===void 0?!1:E;var p=p===void 0?!1:p;var U=(0,_.eu)(),x={startTime:U,ticks:{},infos:{}},A=E?_.ws("yt.logging.gzipForFetch",!1):!0;if(HE&&A){if(!t.body)return t;try{var m=p?t.body:typeof t.body==="string"?t.body:JSON.stringify(t.body);A=m;if(!p&&typeof m==="string"){var b=AXY(m);if(b!=null&&(b>Yli||b<M5K))return t;p=E?{level:1}:void 0;A=z9O(b4O(m),p);var f=(0,_.eu)();x.ticks.gelc=f;if(E){fT++;if((_.r("disable_compression_due_to_performance_degredation")||_.r("disable_compression_due_to_performance_degradation_lr"))&&
f-U>=qlO)if(H4O++,_.r("abandon_compression_after_N_slow_zips_lr")){E=H4O/fT;var B=BnL/_.z3("compression_disable_point");fT>0&&fT%_.z3("compression_disable_point")===0&&E>=B&&(HE=!1)}else HE=!1;fw_(x)}}t.headers=Object.assign({},{"Content-Encoding":"gzip"},t.headers||{});t.body=A;return t}catch(R){return _.Ra(R),t}}else return t};
AXY=function(t){try{return(new Blob(t.split(""))).size}catch(E){return _.Ra(E),null}};
fw_=function(t){_.r("gel_compression_csi_killswitch")||!_.r("log_gel_compression_latency")&&!_.r("log_gel_compression_latency_lr")||$l_("gel_compression",t,{sampleRate:.1})};
Rv8=function(){this.blockSize=-1};
BE=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var t=1;t<this.blockSize;++t)this.pad_[t]=0;this.total_=this.inbuf_=0;this.reset()};
Qoj=function(t){t=Object.assign({},t);delete t.Authorization;var E=_.V5O();if(E){var p=new BE;p.update(_.qO("INNERTUBE_API_KEY"));p.update(E);t.hash=_.S$(p.digest(),3)}return t};
Rf=function(){CRD||(CRD=new _.wx("yt.innertube"));return CRD};
joD=function(t,E,p,U){if(U)return null;U=Rf().get("nextId",!0)||1;var x=Rf().get("requests",!0)||{};x[U]={method:t,request:E,authState:Qoj(p),requestTime:Math.round((0,_.eu)())};Rf().set("nextId",U+1,86400,!0);Rf().set("requests",x,86400,!0);return U};
rX0=function(t){var E=Rf().get("requests",!0)||{};delete E[t];Rf().set("requests",E,86400,!0)};
ddJ=function(t){var E=Rf().get("requests",!0);if(E){for(var p in E){var U=E[p];if(!(Math.round((0,_.eu)())-U.requestTime<6E4)){var x=U.authState,A=Qoj(_.S5L(!1));_.Kq.equals(x,A)&&(x=U.request,"requestTimeMs"in x&&(x.requestTimeMs=Math.round((0,_.eu)())),khJ(t,U.method,x,{}));delete E[p]}}Rf().set("requests",E,86400,!0)}};
uRE=function(t){var E;return(t=t==null?void 0:(E=t.error)==null?void 0:E.code)&&t>=400&&t<=599?!1:!0};
JXJ=function(t){var E;t=t==null?void 0:(E=t.error)==null?void 0:E.code;return!(t!==400&&t!==415)};
g8$=function(){if(IwY)return IwY();var t={};IwY=aD("LogsDatabaseV2",{objectStores:(t.LogsRequestsStore={addedAtVersion:2},t),shared:!1,upgrade:function(E,p,U){p(2)&&VK(E,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});p(3);p(5)&&(U=U.objectStore("LogsRequestsStore"),U.JSC$10958_wrapped.indexNames.contains("newRequest")&&U.JSC$10958_wrapped.deleteIndex("newRequest"),QK(U,"newRequestV2",["status","interface","timestamp"]));p(7)&&E.JSC$10943_wrapped.objectStoreNames.contains("sapisid")&&E.JSC$10943_wrapped.deleteObjectStore("sapisid");
p(9)&&E.JSC$10943_wrapped.objectStoreNames.contains("SWHealthLog")&&E.JSC$10943_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return IwY()};
CT=function(t){return _.d7(g8$(),t)};
O40=function(t,E){var p,U,x,A;return _.q(function(m){if(m.nextAddress==1)return p={startTime:(0,_.eu)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},m.yield(CT(E),2);if(m.nextAddress!=3)return U=m.yieldResult,x=Object.assign({},t,{options:JSON.parse(JSON.stringify(t.options)),interface:_.qO("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),m.yield(U.put("LogsRequestsStore",x),3);A=m.yieldResult;p.ticks.tc=(0,_.eu)();Z4Y(p);return m.return(A)})};
Xu_=function(t,E){var p,U,x,A,m,b,f,B,R;return _.q(function(V){if(V.nextAddress==1)return p={startTime:(0,_.eu)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},V.yield(CT(E),2);if(V.nextAddress!=3)return U=V.yieldResult,x=_.qO("INNERTUBE_CONTEXT_CLIENT_NAME",0),A=[t,x,0],m=[t,x,(0,_.eu)()],b=IDBKeyRange.bound(A,m),f="prev",_.r("use_fifo_for_networkless")&&(f="next"),B=void 0,R=t==="NEW"?"readwrite":"readonly",_.r("use_readonly_for_get_most_recent_by_status_killswitch")&&(R="readwrite"),
V.yield(_.uJ(U,["LogsRequestsStore"],{mode:R,enableRetries:!0},function(Q){return _.Fa(Q.objectStore("LogsRequestsStore").index("newRequestV2"),{query:b,direction:f},function(C){C.getValue()&&(B=C.getValue(),t==="NEW"&&(B.status="QUEUED",C.update(B)))})}),3);
p.ticks.tc=(0,_.eu)();Z4Y(p);return V.return(B)})};
hvE=function(t,E){var p;return _.q(function(U){if(U.nextAddress==1)return U.yield(CT(E),2);p=U.yieldResult;return U.return(_.uJ(p,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(x){var A=x.objectStore("LogsRequestsStore");return A.get(t).then(function(m){if(m)return m.status="QUEUED",A.put(m).then(function(){return m})})}))})};
awJ=function(t,E,p,U){p=p===void 0?!0:p;var x;return _.q(function(A){if(A.nextAddress==1)return A.yield(CT(E),2);x=A.yieldResult;return A.return(_.uJ(x,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(m){var b=m.objectStore("LogsRequestsStore");return b.get(t).then(function(f){return f?(f.status="NEW",p&&(f.sendCount+=1),U!==void 0&&(f.options.compress=U),b.put(f).then(function(){return f})):RD.resolve(void 0)})}))})};
evO=function(t,E){var p;return _.q(function(U){if(U.nextAddress==1)return U.yield(CT(E),2);p=U.yieldResult;return U.return(p.delete("LogsRequestsStore",t))})};
Fd8=function(t){var E,p;return _.q(function(U){if(U.nextAddress==1)return U.yield(CT(t),2);E=U.yieldResult;p=(0,_.eu)()-2592E6;return U.yield(_.uJ(E,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(x){return ID(x.objectStore("LogsRequestsStore"),{},function(A){if(A.getValue().timestamp<=p)return A.delete().then(function(){return A.continue()})})}),0)})};
zvL=function(){_.q(function(t){return t.yield(Jft("LogsDatabaseV2"),0)})};
Z4Y=function(t){_.r("nwl_csi_killswitch")||$l_("networkless_performance",t,{sampleRate:1})};
_.GhK=function(t){return _.d7(lw8(),t)};
n8L=function(t){var E,p;_.q(function(U){if(U.nextAddress==1)return U.yield(_.GhK(t),2);E=U.yieldResult;p=(0,_.eu)()-2592E6;return U.yield(_.uJ(E,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(x){return ID(x.objectStore("SWHealthLog"),{},function(A){if(A.getValue().timestamp<=p)return A.delete().then(function(){return A.continue()})})}),0)})};
NnD=function(t){var E;return _.q(function(p){if(p.nextAddress==1)return p.yield(_.GhK(t),2);E=p.yieldResult;return p.yield(E.clear("SWHealthLog"),0)})};
_.jT=function(t,E,p,U,x,A,m){x=x===void 0?"":x;A=A===void 0?!1:A;m=m===void 0?!1:m;if(t)if(p&&!Hk("cobalt"))_.Ra(new _.cC("Legacy referrer-scrubbed ping detected")),t&&DdJ(t,void 0,{scrubReferrer:!0});else if(x)wAK(t,E,"POST",x,U);else if(_.qO("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||U||m)wAK(t,E,"GET","",U,void 0,A,m);else{b:{try{c:{var b=new sot({url:t});if(b.urlParamValues_.dsh==="1")var f=null;else{var B=b.urlParamValues_.ae;if(B==="1"){var R=b.urlParamValues_.adurl;if(R)try{f={version:3,directUrl:decodeURIComponent(R),
asyncUrl:UOD(b.JSC$9752_url_,"act=1","ri=1",LdY(b))};break c}catch(d){}}f=B==="2"?{version:4,directUrl:UOD(b.JSC$9752_url_,"dct=1","suid="+b.suid_,"ri=1"),asyncUrl:UOD(b.JSC$9752_url_,"act=1","ri=1","suid="+b.suid_)}:null}}if(f){var V=_.LR(t);var Q=!(!V||!V.endsWith("/aclk")||_.Rc(t,"ri")!=="1");break b}}catch(d){}Q=!1}if(Q){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(t,"")){var C=!0;break b}}catch(d){}C=!1}C?(E&&E(),p=!0):p=!1}else p=!1;p||DdJ(t,E)}};
DdJ=function(t,E,p){p=p===void 0?{}:p;var U=new Image,x=""+PRt++;TnK[x]=U;U.onload=U.onerror=function(){E&&TnK[x]&&E();delete TnK[x]};
p.scrubReferrer&&(U.referrerPolicy="no-referrer");U.src=t};
rx=function(t,E){o8Y(t,E==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
WdD=function(t){var E;return((E=document.featurePolicy)==null?0:E.allowedFeatures().includes("attribution-reporting"))?t+"&nis=6":t+"&nis=5"};
$dL=function(t){if(!t)return!1;try{var E;if(((E=_.CR(t))==null?void 0:E.asm)==="4")return!0}catch(p){_.fR(p)}return!1};
o8Y=function(t,E){E?(t=WdD(t),_.jT(t,void 0,void 0,void 0,"",!0,!0)):_.jT(t)};
v88=function(){KdL||(KdL=new _.wx("yt.offline"));return KdL};
yXj=function(t){if(_.r("offline_error_handling")){var E=v88().get("errors",!0)||{};E[t.message]={name:t.name,stack:t.stack};t.level&&(E[t.message].level=t.level);v88().set("errors",E,2592E3,!0)}};
cX0=function(t,E,p,U){U=U===void 0?!1:U;E=_.r("web_fp_via_jspb")?Object.assign({},E):E;_.r("use_cfr_monitor")&&Slj(t,E);if(_.r("use_request_time_ms_header"))E.headers&&gs(t)&&(E.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.eu)())));else{var x;if((x=E.postParams)==null?0:x.requestTimeMs)E.postParams.requestTimeMs=Math.round((0,_.eu)())}p&&Object.keys(E).length===0?_.jT(t):E.compress?E.postBody?(typeof E.postBody!=="string"&&(E.postBody=JSON.stringify(E.postBody)),i4$(t,E.postBody,
E,_.PC,U)):i4$(t,JSON.stringify(E.postParams),E,CUL,U):_.PC(t,E)};
te8=function(t,E){_.r("use_event_time_ms_header")&&gs(t)&&(E.headers||(E.headers={}),E.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.eu)())));return E};
_.psE=function(){E2$||(E2$=new _.k7({logOfflineErrors:!0,enablePolling:!0}));return E2$};
Slj=function(t,E){var p=E.onError?E.onError:function(){};
E.onError=function(x,A){dx().requestComplete(t,!1);p(x,A)};
var U=E.onSuccess?E.onSuccess:function(){};
E.onSuccess=function(x,A){dx().requestComplete(t,!0);U(x,A)}};
_.UAO=function(){return _.ua(document.location.toString())!=="www.youtube-nocookie.com"};
_.Ynj=function(){return _.ws("ytNetworklessLoggingInitializationOptions")?_.xAD.isNwlInitialized:_.AJD};
Me$=function(t,E){if(_.r("polymer_on_demand_shady_dom")){var p;var U=(p=t.__shady_native_firstElementChild)!=null?p:t.firstElementChild}else U=t.firstElementChild;for(;U;){if(t=E(U)?U:Me$(U,E))return t;U=U.nextElementSibling}return null};
_.by8=function(){var t=document;if("visibilityState"in t)return t.visibilityState;var E=mAJ+"VisibilityState";if(E in t)return t[E]};
_.iyK=function(t,E){var p;ur(t,function(U){p=E[U];return!!p});
return p};
_.If=function(t){var E=qnD(t);E?E.focus(void 0):_.Jw(t)};
qnD=function(t){return(t=Me$(t,function(E){return _.Ic(E)?Hy$(E)&&!!E.offsetParent:!1}))?t:null};
_.Jw=function(t,E){t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1");t.focus(E)};
f4L=function(t,E,p,U){U=U===void 0?{}:U;t.addEventListener&&(E!="mouseenter"||"onmouseenter"in document?E!="mouseleave"||"onmouseenter"in document?E=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(E="MozMousePixelScroll"):E="mouseout":E="mouseover");return _.Kq.findKey(gx,function(x){var A=typeof x[4]==="boolean"&&x[4]==!!U,m=_.o0(x[4])&&_.o0(U)&&_.Kq.equals(x[4],U);return!!x.length&&x[0]==t&&x[1]==E&&x[2]==p&&(A||m)})};
_.OG=function(t,E,p,U){U=U===void 0?{}:U;if(!t||!t.addEventListener&&!t.attachEvent)return"";var x=f4L(t,E,p,U);if(x)return x;x=++B4$.count+"";var A=!(E!="mouseenter"&&E!="mouseleave"||!t.addEventListener||"onmouseenter"in document);var m=A?function(b){b=new Zt(b);if(!_.tg(b.relatedTarget,function(f){return f==t},!0))return b.currentTarget=t,b.type=E,p.call(t,b)}:function(b){b=new Zt(b);
b.currentTarget=t;return p.call(t,b)};
m=_.BC(m);t.addEventListener?(E=="mouseenter"&&A?E="mouseover":E=="mouseleave"&&A?E="mouseout":E=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(E="MozMousePixelScroll"),wsD()||typeof U==="boolean"?t.addEventListener(E,m,U):t.addEventListener(E,m,!!U.capture)):t.attachEvent("on"+E,m);gx[x]=[t,E,p,m,U];return x};
_.Vei=function(t,E,p){var U=U===void 0?{}:U;var x=_.OG(t,E,function(){_.RUD(x);p.apply(t,arguments)},U)};
_.RUD=function(t){t&&(typeof t=="string"&&(t=[t]),_.QE(t,function(E){if(E in gx){var p=gx[E],U=p[0],x=p[1],A=p[3];p=p[4];U.removeEventListener?wsD()||typeof p==="boolean"?U.removeEventListener(x,A,p):U.removeEventListener(x,A,!!p.capture):U.detachEvent&&U.detachEvent("on"+x,A);delete gx[E]}}))};
XL=function(t){this.callback_=t;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(t=0;t<4;t++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.OG(window,"mousemove",(0,_.Tg)(this.onMouseMove_,this));this.timerId_=_.D3((0,_.Tg)(this.checkPosition_,this),25)};
jCO=function(){var t={};var E=t.preferMobileEvents===void 0?!1:t.preferMobileEvents;t=t.enableScrollEventListener===void 0?!0:t.enableScrollEventListener;if(_.ws("_lact",window)==null){var p=parseInt(_.qO("LACT"),10);p=isFinite(p)?Date.now()-Math.max(p,0):-1;_.Oy("_lact",p,window);_.Oy("_fact",p,window);p==-1&&_.hw();QCK(window,E,t);new XL(function(){Cz8("mouse",100)})}};
QCK=function(t,E,p){E=E===void 0?!1:E;p=p===void 0?!0:p;_.OG(t.document,"keydown",_.hw);_.OG(t.document,"keyup",_.hw);_.OG(t.document,"mousedown",_.hw);_.OG(t.document,"mouseup",_.hw);E?_.OG(t,"touchmove",function(){Cz8("touchmove",200)},{passive:!0}):(_.OG(t,"resize",function(){Cz8("resize",200)}),p&&_.OG(t,"scroll",function(){Cz8("scroll",200)}));
_.OG(t.document,"touchstart",_.hw,{passive:!0});_.OG(t.document,"touchend",_.hw,{passive:!0})};
Cz8=function(t,E){rJt[t]||(rJt[t]=!0,_.ir.addLowPriorityJob(function(){_.hw();rJt[t]=!1},E))};
_.hw=function(){_.ws("_lact",window)==null&&jCO();var t=Date.now();_.Oy("_lact",t,window);_.ws("_fact",window)==-1&&_.Oy("_fact",t,window);(t=_.ws("ytglobal.ytUtilActivityCallback_"))&&t()};
_.af=function(){var t=_.ws("_lact",window);return t==null?-1:Math.max(Date.now()-t,0)};
_.Ga=function(t,E,p){var U=_.eT();if(U&&E){var x=U.subscribe(t,function(){var A=arguments,m=function(){FL[x]&&E.apply&&typeof E.apply=="function"&&E.apply(p||window,A)};
try{_.kOK[t]?m():_.NO(m,0)}catch(b){_.fR(b)}},p);
FL[x]=!0;lr[t]||(lr[t]=[]);lr[t].push(x);return x}return 0};
_.dAO=function(t){var E=_.eT();E&&(typeof t==="number"?t=[t]:typeof t==="string"&&(t=[parseInt(t,10)]),_.QE(t,function(p){E.unsubscribeByKey(p);delete FL[p]}))};
_.u5O=function(t,E){var p=_.eT();p&&p.publish.apply(p,arguments)};
_.I4J=function(t){var E=_.eT();if(E)if(E.clear(t),t)JJl(t);else for(var p in lr)JJl(p)};
_.eT=function(){return _.Ui.ytPubsubPubsubInstance};
JJl=function(t){lr[t]&&(t=lr[t],_.QE(t,function(E){FL[E]&&delete FL[E]}),t.length=0)};
g2_=function(){var t,E;return"h5vcc"in nT&&((t=nT.h5vcc.traceEvent)==null?0:t.traceBegin)&&((E=nT.h5vcc.traceEvent)==null?0:E.traceEnd)?1:"performance"in nT&&nT.performance.mark&&nT.performance.measure?2:0};
ZyJ=function(t){var E=g2_();switch(E){case 1:nT.h5vcc.traceEvent.traceBegin("YTLR",t);break;case 2:nT.performance.mark(t+"-start");break;case 0:break;default:_.UC(E,"unknown trace type")}};
Oy8=function(t){var E=g2_();switch(E){case 1:nT.h5vcc.traceEvent.traceEnd("YTLR",t);break;case 2:E=t+"-start";var p=t+"-end";nT.performance.mark(p);nT.performance.measure(t,E,p);break;case 0:break;default:_.UC(E,"unknown trace type")}};
XsK=function(t){var E,p;(p=(E=window).onerror)==null||p.call(E,t.message,"",0,0,t)};
hUK=function(t){if(_.r("web_lifecycle_error_handling_killswitch"))return t();try{return t()}catch(E){XsK(E)}};
a4_=function(t){return[t.auth===void 0?"undefined":t.auth,t.isJspb===void 0?"undefined":t.isJspb,t.cttAuthInfo===void 0?"undefined":t.cttAuthInfo,t.tier===void 0?"undefined":t.tier].join("/")};
_.k=function(t,E){if(t)return t[E.name]};
Dt=function(){var t=_.ws("yt.logging.ims");t||(t=new N0,_.Oy("yt.logging.ims",t));return t};
sCO=function(t,E){if(t.endpoint==="log_event"){eU$(t);var p=FhK(t),U=zUO(t.payload)||"",x=l4_(U),A=200;if(x){if(x.enabled===!1&&!_.r("web_payload_policy_disabled_killswitch"))return;A=GOt(x.tier);if(A===400){n2i(t,E);return}}sG[p]=!0;p={cttAuthInfo:p,isJspb:!1,tier:A};Dt().storePayload(p,t.payload);N4O(E,!1,p,DAl(U))}};
PzJ=function(t,E,p){if(E.endpoint==="log_event"){eU$(void 0,E);var U=FhK(E,!0),x=l4_(t),A=200;if(x){if(x.enabled===!1&&!_.r("web_payload_policy_disabled_killswitch"))return;A=GOt(x.tier);if(A===400){LhO(t,E,p);return}}sG[U]=!0;U={cttAuthInfo:U,isJspb:!0,tier:A};Dt().storePayload(U,D9(E.payload));N4O(p,!0,U,DAl(t))}};
N4O=function(t,E,p,U){E=E===void 0?!1:E;U=U===void 0?!1:U;t&&(LT=new t);t=_.z3("tvhtml5_logging_max_batch_ads_fork")||_.z3("tvhtml5_logging_max_batch")||_.z3("web_logging_max_batch")||100;var x=(0,_.eu)(),A=T4L(E,p.tier),m=A.lastDebounceQueueFromLogTimeMs;U&&(A.useVideoStatsEndPoint=!0);U=0;p&&(U=Dt().getSequenceCount(p));var b=function(){o2_({writeThenSend:!0},E,p.tier)};
U>=1E3?b():U>=t?Wh8||(Wh8=$AO(function(){b();Wh8=void 0},0)):x-m>=10&&(KhL(E,p.tier),A.lastDebounceQueueFromLogTimeMs=x)};
n2i=function(t,E){if(t.endpoint==="log_event"){_.r("more_accurate_gel_parser")&&Dt().storePayload({isJspb:!1},t.payload);eU$(t);var p=FhK(t),U=new Map;U.set(p,[t.payload]);var x=zUO(t.payload)||"";E&&(LT=new E);return new _.PE(function(A,m){LT&&LT.isReady()?v20(U,LT,A,m,{bypassNetworkless:!0},!0,DAl(x)):A()})}};
LhO=function(t,E,p){if(E.endpoint==="log_event"){eU$(void 0,E);var U=FhK(E,!0),x=new Map;x.set(U,[D9(E.payload)]);p&&(LT=new p);return new _.PE(function(A){LT&&LT.isReady()?yJJ(x,LT,A,{bypassNetworkless:!0},!0,DAl(t)):A()})}};
FhK=function(t,E){var p="";if(t.dangerousLogToVisitorSession)p="visitorOnlyApprovedKey";else if(t.cttAuthInfo){if(E===void 0?0:E){E=t.cttAuthInfo.token;p=t.cttAuthInfo;var U=new Sn_;p.videoId?U.setVideoId(p.videoId):p.playlistId&&Ta(U,2,cJ8,Z9(p.playlistId));twj[E]=U}else E=t.cttAuthInfo,p={},E.videoId?p.videoId=E.videoId:E.playlistId&&(p.playlistId=E.playlistId),E1_[t.cttAuthInfo.token]=p;p=t.cttAuthInfo.token}return p};
o2_=function(t,E,p){t=t===void 0?{}:t;E=E===void 0?!1:E;new _.PE(function(U,x){var A=T4L(E,p),m=A.useVideoStatsEndPoint;A.useVideoStatsEndPoint=!1;p9Y(A.queueTimer);p9Y(A.queueMaxTimer);A.queueMaxTimer=0;LT&&LT.isReady()?p===void 0&&_.r("enable_web_tiered_gel")?UnO(U,x,t,E,300,m):UnO(U,x,t,E,p,m):(KhL(E,p),U())})};
UnO=function(t,E,p,U,x,A){var m=LT;p=p===void 0?{}:p;U=U===void 0?!1:U;x=x===void 0?200:x;A=A===void 0?!1:A;var b=new Map,f=new Map,B={isJspb:U,cttAuthInfo:void 0,tier:x},R={isJspb:U,cttAuthInfo:void 0};if(U){E=_.M(Object.keys(sG));for(x=E.next();!x.done;x=E.next())x=x.value,f=_.r("enable_web_tiered_gel")?Dt().smartExtractMatchingEntries({keys:[B,R],sizeLimit:1E3}):Dt().extractMatchingEntries({isJspb:!0,cttAuthInfo:x}),f.length>0&&b.set(x,f),(_.r("web_fp_via_jspb_and_json")&&p.writeThenSend||!_.r("web_fp_via_jspb_and_json"))&&
delete sG[x];yJJ(b,m,t,p,!1,A)}else{b=_.M(Object.keys(sG));for(B=b.next();!B.done;B=b.next())B=B.value,R=_.r("enable_web_tiered_gel")?Dt().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:B,tier:x},{isJspb:!1,cttAuthInfo:B}],sizeLimit:1E3}):Dt().extractMatchingEntries({isJspb:!1,cttAuthInfo:B}),R.length>0&&f.set(B,R),(_.r("web_fp_via_jspb_and_json")&&p.writeThenSend||!_.r("web_fp_via_jspb_and_json"))&&delete sG[B];v20(f,m,t,E,p,!1,A)}};
KhL=function(t,E){t=t===void 0?!1:t;E=E===void 0?200:E;var p=function(){o2_({writeThenSend:!0},t,E)},U=T4L(t,E),x=U===xn_||U===A8$?5E3:YYE;
_.r("web_gel_timeout_cap")&&!U.queueMaxTimer&&(x=$AO(function(){p()},x),U.queueMaxTimer=x);
p9Y(U.queueTimer);x=_.qO("LOGGING_BATCH_TIMEOUT",_.z3("web_gel_debounce_ms",1E4));_.r("shorten_initial_gel_batch_timeout")&&MwO&&(x=mnO);x=$AO(function(){_.z3("gel_min_batch_size")>0?Dt().getSequenceCount({cttAuthInfo:void 0,isJspb:t,tier:E})>=bd_&&p():p()},x);
U.queueTimer=x};
v20=function(t,E,p,U,x,A,m){x=x===void 0?{}:x;var b=Math.round((0,_.eu)()),f=t.size,B=idO(m);t=_.M(t);var R=t.next();for(m={};!R.done;m={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},R=t.next()){var V=_.M(R.value);R=V.next().value;V=V.next().value;m.batchRequest=_.Kq.unsafeClone({context:_.LD8(E.config_||_.zM())});if(!_.LO(V)&&!_.r("throw_err_when_logevent_malformed_killswitch")){U();break}m.batchRequest.events=V;
(V=E1_[R])&&qYJ(m.batchRequest,R,V);delete E1_[R];m.dangerousLogToVisitorSession=R==="visitorOnlyApprovedKey";HdY(m.batchRequest,b,m.dangerousLogToVisitorSession);fqi(x);m.onSuccess$jscomp$3=function(Q){_.r("start_client_gcf")&&_.ir.addLowPriorityJob(function(){return _.q(function(C){return C.yield(BGj(Q),0)})});
f--;f||p()};
m.networkFailures=0;m.onError$jscomp$5=function(Q){return function(){Q.networkFailures++;if(x.bypassNetworkless&&Q.networkFailures===1)try{khJ(E,B,Q.batchRequest,w9_({writeThenSend:!0},Q.dangerousLogToVisitorSession,Q.onSuccess$jscomp$3,Q.onError$jscomp$5,A)),MwO=!1}catch(C){_.fR(C),U()}f--;f||p()}}(m);
try{khJ(E,B,m.batchRequest,w9_(x,m.dangerousLogToVisitorSession,m.onSuccess$jscomp$3,m.onError$jscomp$5,A)),MwO=!1}catch(Q){_.fR(Q),U()}}};
yJJ=function(t,E,p,U,x,A){U=U===void 0?{}:U;var m=Math.round((0,_.eu)()),b={value:t.size},f=new Map([].concat(_.KB(t)));f=_.M(f);for(var B=f.next();!B.done;B=f.next()){var R=_.M(B.value).next().value,V=t.get(R);B=new of;var Q=E.config_||_.zM(),C=new WE,d=new RD_;_.Lq(d,1,Q.innertubeContextHostLanguage);_.Lq(d,2,Q.innertubeContextGeoLocation);_.GM(d,16,Q.innertubeContextClientNameFieldNumber);_.Lq(d,17,Q.innertubeContextClientVersion);if(Q.innertubeContextClientConfigInfo){var I=Q.innertubeContextClientConfigInfo,
O=new NR;I.coldConfigData&&_.Lq(O,1,I.coldConfigData);I.appInstallData&&_.Lq(O,6,I.appInstallData);I.coldHashData&&_.Lq(O,3,I.coldHashData);I.hotHashData&&O.setHotHashData(I.hotHashData);_.FU(d,62,O)}(I=_.Ui.devicePixelRatio)&&I!=1&&_.nM(d,65,_.xe(I));I=YF$();I!==""&&_.Lq(d,54,I);I=M1t();if(I.length>0){O=new Vwj;for(var a=0;a<I.length;a++){var F=new $7;F.setKey(I[a].key);Ta(F,2,QnO,Z9(I[a].value));KT(O,15,$7,F)}_.FU(C,5,O)}lKE(Q,d);G2l(C);nzt(d);NNi(Q,d);DJi(d);_.r("start_client_gcf")&&s4O(d);_.qO("DELEGATED_SESSION_ID")&&
!_.r("pageid_as_header_web")&&(Q=new vE,_.Lq(Q,3,_.qO("DELEGATED_SESSION_ID")));!_.r("fill_delegate_context_in_gel_killswitch")&&(I=_.qO("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(O=_.lJ(C,vE,3)||new vE,Q=C,I=_.Lq(O,18,I),_.FU(Q,3,I));Q=d;I=_.M(Object.entries(_.CR(_.qO("DEVICE",""))));for(O=I.next();!O.done;O=I.next())a=_.M(O.value),O=a.next().value,a=a.next().value,O==="cbrand"?_.Lq(Q,12,a):O==="cmodel"?_.Lq(Q,13,a):O==="cbr"?_.Lq(Q,87,a):O==="cbrver"?_.Lq(Q,88,a):O==="cos"?_.Lq(Q,18,
a):O==="cosver"?_.Lq(Q,19,a):O==="cplatform"&&_.GM(Q,42,lBE(a));C.setClient(d);_.FU(B,1,C);if(d=twj[R])a:{if(_.lN(d,yK(d,cJ8,1)))C=1;else if(d.getPlaylistId())C=2;else break a;_.FU(B,4,d);d=B.getContext()||new WE;Q=_.lJ(d,vE,3)||new vE;I=new ST;I.setToken(R);_.GM(I,1,C);KT(Q,12,ST,I);_.FU(d,3,Q)}delete twj[R];R=R==="visitorOnlyApprovedKey";CAt()||_.cE(B,2,m);!R&&(C=_.qO("EVENT_ID"))&&(d=jnE(),Q=new r8O,_.Lq(Q,1,C),_.cE(Q,2,d),_.FU(B,5,Q));fqi(U);if(_.r("jspb_serialize_with_worker")&&(C=_.c2$())&&
U.writeThenSend){_.kED.set(dnJ,{client:E,resolve:p,networklessOptions:U,isIsolated:x,useVSSEndpoint:A,dangerousLogToVisitorSession:R,requestsOutstanding:b});C.postMessage({op:"gelBatchToSerialize",batchRequest:D9(B),clientEvents:V,key:dnJ});dnJ++;break}if(V){C=[];for(d=0;d<V.length;d++)try{C.push(new tH(V[d]))}catch(L){_.fR(new _.cC("Transport failed to deserialize "+String(V[d])))}V=C}else V=[];V=_.M(V);for(C=V.next();!C.done;C=V.next())KT(B,3,tH,C.value);V={startTime:(0,_.eu)(),ticks:{},infos:{}};
B=B.serialize();V.ticks.geljspc=(0,_.eu)();_.r("log_jspb_serialize_latency")&&$l_("gel_jspb_serialize",V,{sampleRate:.1});_.u0O(B,E,p,U,x,A,R,b)}};
_.u0O=function(t,E,p,U,x,A,m,b){U=U===void 0?{}:U;b=b===void 0?{value:0}:b;A=idO(A);U=w9_(U,m,function(f){_.r("start_client_gcf")&&_.ir.addLowPriorityJob(function(){return _.q(function(B){return B.yield(BGj(f),0)})});
b.value--;b.value||p()},function(){b.value--;
b.value||p()},x);
U.headers["Content-Type"]="application/json+protobuf";U.postBodyFormat="JSPB";U.postBody=t;khJ(E,A,"",U);MwO=!1};
fqi=function(t){_.r("always_send_and_write")&&(t.writeThenSend=!1)};
w9_=function(t,E,p,U,x){t={retry:!0,onSuccess:p,onError:U,networklessOptions:t,dangerousLogToVisitorSession:E,bypassMonitoring:!!x,headers:{},postBodyFormat:"",postBody:"",compress:_.r("compress_gel")||_.r("compress_gel_lr")};CAt()&&(t.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.eu)())));return t};
HdY=function(t,E,p){CAt()||(t.requestTimeMs=String(E));_.r("unsplit_gel_payloads_in_logs")&&(t.unsplitGelPayloadsInLogs=!0);!p&&(E=_.qO("EVENT_ID"))&&(p=jnE(),t.serializedClientEventId={serializedEventId:E,clientCounter:String(p)})};
jnE=function(){var t=_.qO("BATCH_CLIENT_COUNTER")||0;t||(t=Math.floor(Math.random()*65535/2));t++;t>65535&&(t=1);_.ia("BATCH_CLIENT_COUNTER",t);return t};
qYJ=function(t,E,p){if(p.videoId)var U="VIDEO";else if(p.playlistId)U="PLAYLIST";else return;t.credentialTransferTokenTargetId=p;t.context=t.context||{};t.context.user=t.context.user||{};t.context.user.credentialTransferTokens=[{token:E,scope:U}]};
eU$=function(t,E){var p=_.la("il_payload_scraping")==="enable_il_payload_scraping";if(!_.ws("yt.logging.transport.enableScrapingForTest"))if(p)J8_=[],_.Oy("yt.logging.transport.enableScrapingForTest",!0),_.Oy("yt.logging.transport.scrapedPayloadsForTesting",J8_),_.Oy("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.Oy("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.Oy("yt.logging.transport.scrapeClientEvent",!0);else return;p=_.ws("yt.logging.transport.scrapedPayloadsForTesting");var U=_.ws("yt.logging.transport.payloadToScrape");E&&(E=_.ws("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(E.payload)())&&p.push(E);E=_.ws("yt.logging.transport.scrapeClientEvent");if(U&&U.length>=1)for(var x=0;x<U.length;x++)if(t&&t.payload[U[x]])if(E)p.push(t.payload);else{var A=void 0;p.push(((A=t)==null?void 0:A.payload)[U[x]])}_.Oy("yt.logging.transport.scrapedPayloadsForTesting",
p)};
CAt=function(){return _.r("use_request_time_ms_header")||_.r("lr_use_request_time_ms_header")};
$AO=function(t,E){return _.r("transport_use_scheduler")===!1?_.NO(t,E):_.r("logging_avoid_blocking_during_navigation")||_.r("lr_logging_avoid_blocking_during_navigation")?_.E_(_.ir,function(){if(_.Iq_().currentState==="none")t();else{var p={};_.Iq_().install((p.none={callback:t},p))}},E):_.E_(_.ir,t,E)};
p9Y=function(t){_.r("transport_use_scheduler")?_.ir.cancelJob(t):_.sB(t)};
BGj=function(t){var E,p,U,x,A,m,b,f,B,R;return _.q(function(V){return V.nextAddress==1?(U=(E=t)==null?void 0:(p=E.responseContext)==null?void 0:p.globalConfigGroup,x=_.k(U,g1l),m=(A=U)==null?void 0:A.hotHashData,b=_.k(U,ZdE),B=(f=U)==null?void 0:f.coldHashData,(R=_.X3().resolve(_.OB(pW)))?m?x?V.yield(Odl(R,m,x),2):V.yield(Odl(R,m),2):V.jumpTo(2):V.return()):B?b?V.yield(X9$(R,B,b),0):V.yield(X9$(R,B),0):V.jumpTo(0)})};
T4L=function(t,E){E=E===void 0?200:E;return t?E===300?xn_:hDl:E===300?A8$:aqL};
l4_=function(t){if(_.r("enable_web_tiered_gel")){t=eDt[t||""];var E,p,U,x=_.X3().resolve(_.OB(pW))==null?void 0:(E=U_())==null?void 0:(p=E.loggingHotConfig)==null?void 0:(U=p.eventLoggingConfig)==null?void 0:U.payloadPolicies;if(x)for(E=0;E<x.length;E++)if(x[E].payloadNumber===t)return x[E]}};
zUO=function(t){t=Object.keys(t);t=_.M(t);for(var E=t.next();!E.done;E=t.next())if(E=E.value,eDt[E])return E};
GOt=function(t){switch(t){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}};
DAl=function(t){return t==="gelDebuggingEvent"};
idO=function(t){return(t===void 0?0:t)&&_.r("vss_through_gel_video_stats")?"video_stats":"log_event"};
AH=function(t,E,p,U){U=U===void 0?{}:U;var x={},A=Math.round(U.timestamp||(0,_.eu)());x.eventTimeMs=A<Number.MAX_SAFE_INTEGER?A:0;x[t]=E;t=_.af();x.context={lastActivityMs:String(U.timestamp||!isFinite(t)?-1:t)};U.sequenceGroup&&!_.r("web_gel_sequence_info_killswitch")&&(t=x.context,E=U.sequenceGroup,E={index:F8$(E),groupKey:E},t.sequence=E,U.endOfSequence&&delete xX[U.sequenceGroup]);_.r("web_tag_automated_log_events")&&(x.context.automatedLogEventSource=U.automatedLogEventSource);(U.sendIsolatedPayload?
n2i:sCO)({endpoint:"log_event",payload:x,cttAuthInfo:U.cttAuthInfo,dangerousLogToVisitorSession:U.dangerousLogToVisitorSession},p)};
F8$=function(t){xX[t]=t in xX?xX[t]+1:0;return xX[t]};
_.MW=function(t,E,p){p=p===void 0?{}:p;var U=YX;_.HC("ytLoggingEventsDefaultDisabled",!1)&&YX===YX&&(U=null);AH(t,E,U,p)};
_.mL=function(){if(_.r("web_fp_via_jspb")){var t=!0;t=t===void 0?!1:t;var E=zD8;zD8=[];if(E){E=_.M(E);for(var p=E.next();!p.done;p=E.next())p=p.value,t?AH(p.payloadName,p.payload,YX,p.options):_.MW(p.payloadName,p.payload,p.options)}o2_(void 0,!0);if(!_.r("web_fp_via_jspb_and_json"))return}o2_(void 0,!1)};
lqO=function(t,E){var p;if((p=E)==null?0:p.componentStack)return E;if(t=t.componentStack)E||(E={}),E.componentStack=t;return E};
GEL=function(){_.QE(_.qO("ERRORS")||[],function(t){_.bV.apply(null,t)});
_.ia("ERRORS",[])};
_.iV=function(t){_.bV(t)};
_.qW=function(t){_.bV(t,"WARNING")};
n18=function(t){t instanceof Error?_.bV(t):(t=_.o0(t)?JSON.stringify(t):String(t),t=new _.cC(t),t.name="RejectedPromiseError",_.qW(t))};
NGi=function(t,E,p,U,x,A){E=E===void 0?"Unknown file":E;p=p===void 0?0:p;var m=!1,b=nTi("log_window_onerror_fraction");if(b&&Math.random()<b)m=!0;else{b=document.getElementsByTagName("script");for(var f=0,B=b.length;f<B;f++)if(b[f].src.indexOf("/debug-")>0){m=!0;break}}m&&(m=!1,x?m=!0:(typeof t==="string"?b=t:ErrorEvent&&t instanceof ErrorEvent?(m=!0,b=t.message,E=t.filename,p=t.lineno,U=t.colno):(b="Unknown error",E="Unknown file",p=0),x=new _.cC(b),x.name="UnhandledWindowError",x.message=b,x.fileName=
E,x.lineNumber=p,isNaN(U)?delete x.columnNumber:x.columnNumber=U),_.r("wiz_enable_component_stack_propagation_killswitch")||(A=lqO(x,A)),A&&_.HX(x,A),m?_.bV(x):_.qW(x))};
_.bV=function(t,E,p,U,x,A,m,b){A=A===void 0?{}:A;A.name=p||_.qO("INNERTUBE_CONTEXT_CLIENT_NAME",1);A.version=U||_.qO("INNERTUBE_CONTEXT_CLIENT_VERSION");p=A;E=E===void 0?"ERROR":E;m=m===void 0?!1:m;E=E===void 0?"ERROR":E;m=m===void 0?!1:m;if(t&&(t.hasOwnProperty("level")&&t.level&&(E=t.level),_.r("console_log_js_exceptions")&&(U=[],U.push("Name: "+t.name),U.push("Message: "+t.message),t.hasOwnProperty("params")&&U.push("Error Params: "+JSON.stringify(t.params)),t.hasOwnProperty("args")&&U.push("Error args: "+
JSON.stringify(t.args)),U.push("File name: "+t.fileName),U.push("Stacktrace: "+t.stack),U=U.join("\n"),window.console.log(U,t)),!(Dnj>=5))){U=[];x=_.M(sn0);for(A=x.next();!A.done;A=x.next()){A=A.value;try{A()&&U.push(A())}catch(O){}}U=[].concat(_.KB(L8L),_.KB(U));var f=PAj(t);x=f.message||"Unknown Error";A=f.name||"UnknownError";var B=f.stack||t.stacktrace||"Not available";if(B.startsWith(A+": "+x)){var R=B.split("\n");R.shift();B=R.join("\n")}R=f.lineNumber||"Not available";f=f.fileName||"Not available";
var V=0;if(t.hasOwnProperty("args")&&t.args&&t.args.length)for(var Q=0;Q<t.args.length&&!(V=zqi(t.args[Q],"params."+Q,p,V),V>=500);Q++);else if(t.hasOwnProperty("params")&&t.params){var C=t.params;if(typeof t.params==="object")for(Q in C){if(C[Q]){var d="params."+Q,I=WC(C[Q]);p[d]=I;V+=d.length+I.length;if(V>500)break}}else p.params=WC(C)}if(U.length)for(Q=0;Q<U.length&&!(V=zqi(U[Q],"params.context."+Q,p,V),V>=500);Q++);navigator.vendor&&!p.hasOwnProperty("vendor")&&(p["device.vendor"]=navigator.vendor);
Q={message:x,name:A,lineNumber:R,fileName:f,stack:B,params:p,sampleWeight:1};p=Number(t.columnNumber);isNaN(p)||(Q.lineNumber=Q.lineNumber+":"+p);if(t.level==="IGNORED")t=0;else a:{t=TGO();p=_.M(t.messageWeights);for(U=p.next();!U.done;U=p.next())if(U=U.value,Q.message&&Q.message.match(U.messageRegExp)){t=U.weight;break a}t=_.M(t.callbackWeights);for(p=t.next();!p.done;p=t.next())if(p=p.value,p.callback(Q)){t=p.weight;break a}t=1}Q.sampleWeight=t;t=_.M(o1_);for(p=t.next();!p.done;p=t.next())if(p=
p.value,p.patternsForType[Q.name])for(x=_.M(p.patternsForType[Q.name]),U=x.next();!U.done;U=x.next())if(A=U.value,U=Q.message.match(A.regexp)){Q.params["params.error.original"]=U[0];x=A.groups;A={};for(R=0;R<x.length;R++)A[x[R]]=U[R+1],Q.params["params.error."+x[R]]=U[R+1];Q.message=p.messageFn(A);break}Q.params||(Q.params={});t=TGO();Q.params["params.errorServiceSignature"]="msg="+t.messageWeights.length+"&cb="+t.callbackWeights.length;Q.params["params.serviceWorker"]="false";_.Ui.document&&_.Ui.document.querySelectorAll&&
(Q.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new fW(W8E,"sample")).constructor!==fW&&(Q.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(Q);if(Q.sampleWeight!==0&&!$nt.has(Q.message)){if(m)K8i(E===void 0?"ERROR":E,Q);else{E=E===void 0?"ERROR":E;E==="ERROR"?(BX.publish("handleError",Q),_.r("record_app_crashed_web")&&v1J===0&&Q.sampleWeight===1&&(v1J++,m={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},_.r("report_client_error_with_app_crash_ks")||
(m.systemHealth={crashData:{clientError:{logMessage:{message:Q.message}}}}),_.MW("appCrashed",m)),y8i++):E==="WARNING"&&BX.publish("handleWarning",Q);if(_.r("kevlar_gel_error_routing")){m=E;b=b===void 0?{}:b;b:{t=_.M(SYi);for(p=t.next();!p.done;p=t.next())if(Hk(p.value.toLowerCase())){t=!0;break b}t=!1}if(t)b=void 0;else{p={stackTrace:Q.stack};Q.fileName&&(p.filename=Q.fileName);t=Q.lineNumber&&Q.lineNumber.split?Q.lineNumber.split(":"):[];t.length!==0&&(t.length!==1||isNaN(Number(t[0]))?t.length!==
2||isNaN(Number(t[0]))||isNaN(Number(t[1]))||(p.lineNumber=Number(t[0]),p.columnNumber=Number(t[1])):p.lineNumber=Number(t[0]));t={level:"ERROR_LEVEL_UNKNOWN",message:Q.message,errorClassName:Q.name,sampleWeight:Q.sampleWeight};m==="ERROR"?t.level="ERROR_LEVEL_ERROR":m==="WARNING"&&(t.level="ERROR_LEVEL_WARNNING");p={isObfuscated:!0,browserStackInfo:p};b.pageUrl=window.location.href;b.kvPairs=[];_.qO("FEXP_EXPERIMENTS")&&(b.experimentIds=_.qO("FEXP_EXPERIMENTS"));U=_.qO("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");
if(!nTi("web_disable_gel_stp_ecatcher_killswitch")&&U)for(x=_.M(Object.keys(U)),A=x.next();!A.done;A=x.next())A=A.value,b.kvPairs.push({key:A,value:String(U[A])});if(U=Q.params)for(x=_.M(Object.keys(U)),A=x.next();!A.done;A=x.next())A=A.value,b.kvPairs.push({key:"client."+A,value:String(U[A])});U=_.qO("SERVER_NAME");x=_.qO("SERVER_VERSION");U&&x&&(b.kvPairs.push({key:"server.name",value:U}),b.kvPairs.push({key:"server.version",value:x}));b={errorMetadata:b,stackTrace:p,logMessage:t}}b&&(_.MW("clientError",
b),(m==="ERROR"||_.r("errors_flush_gel_always_killswitch"))&&_.mL())}_.r("suppress_error_204_logging")||K8i(E,Q)}try{$nt.add(Q.message)}catch(O){}Dnj++}}};
K8i=function(t,E){var p=E.params||{};t={urlParams:{a:"logerror",t:"jserror",type:E.name,msg:E.message.substr(0,250),line:E.lineNumber,level:t,"client.name":p.name},postParams:{url:_.qO("PAGE_NAME",window.location.href),file:E.fileName},method:"POST"};p.version&&(t["client.version"]=p.version);if(t.postParams){E.stack&&(t.postParams.stack=E.stack);E=_.M(Object.keys(p));for(var U=E.next();!U.done;U=E.next())U=U.value,t.postParams["client."+U]=p[U];if(p=_.qO("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(E=
_.M(Object.keys(p)),U=E.next();!U.done;U=E.next())U=U.value,t.postParams[U]=p[U];(p=_.qO("LAVA_VERSION"))&&(t.postParams["lava.version"]=p);p=_.qO("SERVER_NAME");E=_.qO("SERVER_VERSION");p&&E&&(t.postParams["server.name"]=p,t.postParams["server.version"]=E)}_.PC(_.qO("ECATCHER_REPORT_HOST","")+"/error_204",t)};
_.c8J=function(t,E){E=E===void 0?"ERROR":E;var p=p===void 0?{}:p;var U=_.ws("ytbin.polymer.shared.lib.tampering.info");U&&(U=U())&&(p["params.tamperingInfo"]=U.sort().join(","));_.bV(t,E,void 0,void 0,!0,p)};
_.HX=function(t){var E=_.t9.apply(1,arguments);t.args||(t.args=[]);Array.isArray(t.args)&&t.args.push.apply(t.args,_.KB(E))};
tYD=function(t){t.level="IGNORED"};
Ej8=function(t,E){L8L.push(t);E();L8L.pop()};
VB=function(t,E){for(var p in E)E.hasOwnProperty(p)&&(t=_.Rz(t,p,E[p]));return t};
_.pY8=function(t,E,p){p=p===void 0?!1:p;if(!t)return null;if(t.adInfoDialogEndpoint||t.backstageImageUploadEndpoint||t.confirmDialogEndpoint||t.clientActionEndpoint||t.createBackstagePostDialogEndpoint||t.createCommentReplyDialogEndpoint||t.flowEndpoint||t.guideBuilderEndpoint||t.liveChatDialogEndpoint||t.modalEndpoint||t.openPopupAction||t.shareEndpoint||t.shareEntityEndpoint||t.showLiveChatItemEndpoint||t.subscriptionManagerEndpoint||t.unlimitedCreateFamilyEndpoint||t.unlimitedFamilyFlowEndpoint||
t.updateCommentDialogEndpoint||t.updateCommentReplyDialogEndpoint||t.userFeedbackEndpoint||t.videoEditorEndpoint||t.ypcCancelSurveyEndpoint)return E=_.z3("polymer_report_client_url_requested_rate"),!p&&Math.random()<E&&_.qW(new _.cC("urlForEndpoint used on client endpoint",t)),null;var U=_.z3("polymer_report_missing_web_navigation_endpoint_rate");if(t.liveChatEndpoint||t.liveChatReplayEndpoint)U=0;if(!t.commandMetadata&&!t.clickTrackingParams&&Math.random()<U){var x={},A;for(A in t)x[A]="1";_.qW(new _.cC("Missing navigation data",
x))}x="";if(t.commandMetadata&&t.commandMetadata.webCommandMetadata&&t.commandMetadata.webCommandMetadata.url)x=t.commandMetadata.webCommandMetadata.url;else if(t.searchEndpoint)Math.random()<U&&_.qW(new _.cC("Should not manually handle search",t)),x="/results?search_query="+encodeURIComponent(t.searchEndpoint.query).replace(/%20/g,"+"),t.searchEndpoint.params&&(x+="&sp="+t.searchEndpoint.params);else if(t.watchEndpoint)Math.random()<U&&_.qW(new _.cC("Should not manually handle watch",t)),x="/watch?v="+
t.watchEndpoint.videoId,t.watchEndpoint.playlistId&&(x+="&list="+t.watchEndpoint.playlistId),t.watchEndpoint.index&&(x+="&index="+t.watchEndpoint.index),t.watchEndpoint.startTimeSeconds&&(x+="&t="+t.watchEndpoint.startTimeSeconds);else if(t.browseEndpoint)U=t.browseEndpoint.browseId,(A=t.browseEndpoint.canonicalBaseUrl)?x=A:U&&(x=U.substr(0,2),x=x==="FE"?U==="FEwhat_to_watch"?"/":U==="FEmy_videos"?"/my_videos":"/feed/"+U.substr(2):x==="VL"?"/playlist?list="+U.substr(2):"/channel/"+U),x&&t.browseEndpoint.query&&
(x=VB(x+"/search",{query:t.browseEndpoint.query})),x&&t.browseEndpoint.params&&(x=VB(x,{params:t.browseEndpoint.params}));else{if(t.urlEndpoint)return t.urlEndpoint.url;t.signInEndpoint?(x="https://accounts.google.com/ServiceLogin",U={},_.Kq.extend(U,E||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),E=U):t.uploadEndpoint?x="//www.youtube.com/upload":t.liveChatEndpoint?(x=t.liveChatEndpoint,U=_.Kq.clone(x),_.o0(x.continuation)&&(A=Object.keys(x.continuation)[0],
U.continuation=x.continuation[A].continuation),x=VB("/youtubei/v1/live_chat/get_live_chat",U)):t.liveChatReplayEndpoint?(x=_.Kq.clone(t.liveChatReplayEndpoint),x.currentPlayerState&&(_.Kq.extend(x,x.currentPlayerState),delete x.currentPlayerState),x=VB("/youtubei/v1/live_chat/get_live_chat_replay",x)):t.liveChatItemContextMenuEndpoint?x=VB("/youtubei/v1/live_chat/get_item_context_menu",t.liveChatItemContextMenuEndpoint):t.liveChatPurchaseMessageEndpoint?x=VB("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
t.liveChatPurchaseMessageEndpoint):t.openSuperStickerBuyFlowCommand?x=VB("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",t.openSuperStickerBuyFlowCommand):t.videoEditEndpoint?x=VB("/edit",{video_id:t.videoEditEndpoint.videoId}):t.liveDashboardEndpoint?x=t.liveDashboardEndpoint.videoId?VB("/live_dashboard",{v:t.liveDashboardEndpoint.videoId}):"/live_dashboard":t.signalNavigationEndpoint&&t.signalNavigationEndpoint.signal&&t.signalNavigationEndpoint.signal==="WEBCAM"?x="/webcam":t.getPdgBuyFlowCommand&&
(x=VB(t.getPdgBuyFlowCommand.buyflowApiPath,{params:t.getPdgBuyFlowCommand.params}))}return x||p?VB(x,E||{}):(_.qW(new _.cC("Error: Can't construct url for endpoint","keys:"+Object.keys(t).sort().join(","),t)),null)};
U60=function(t){if(t){if(t.browseEndpoint)return!!t.browseEndpoint.nofollow;if(t.watchEndpoint)return!!t.watchEndpoint.nofollow;if(t.urlEndpoint)return!!t.urlEndpoint.nofollow}return!1};
_.AeO=function(t,E){var p=E+t,U=x6i.get(p);if(U)return U;t=E+"-"+t.replace(/([A-Z])/g,"-$1").toLowerCase();x6i.set(p,t);return t};
YXj=function(t){var E=_.mY(t,"action")||_.mY(t,"command")||_.mY(t,"endpoint");if(!E)return null;E=_.AeO(E,"yt");_.k(t,_.QB)&&(E+="-"+_.k(t,_.QB).signal.toLowerCase().replace(/_/g,"-"));return E};
i$J=function(t){try{var E=Object.keys(t)}catch(x){return[]}for(var p=0;p<E.length;p++){var U=E[p];if(MYj.test(U)||m6i.test(U))return b$0(t[U])}return[]};
b$0=function(t){return t.command?[t.command]:t.onExecutionAction?[t.onExecutionAction]:t.onResponseReceivedCommand?[t.onResponseReceivedCommand]:t.updateFlowCommand?[t.updateFlowCommand]:t.clientActions?t.clientActions:t.action?[t.action]:t.actions||t.commands||t.onResponseReceivedActions||t.onResponseReceivedCommands||t.onResponseReceivedEndpoints||[]};
H$O=function(t,E){E=E===void 0?!1:E;var p=_.X3().resolve(_.OB(r1));p||(p=new qXJ,_.X3().addProvider({provide:r1,useValue:p}));return p&&t&&!_.Kq.isEmpty(t)?p.getUrl(t,E):""};
fVj=function(t,E,p){p=p===void 0?"":p;if(E){t.data=E;var U=H$O(E);U?(pB(t,U),U60(E)||!gs(U)?t.rel="nofollow":t.removeAttribute("rel"),_.k(E,_.kX)&&_.k(E,_.kX).target==="TARGET_NEW_WINDOW"?t.target="_blank":p?t.target=p:t.removeAttribute("target")):(t.removeAttribute("href"),t.removeAttribute("rel"),t.removeAttribute("target"))}};
_.Iz=function(t,E){var p=gV;if(cy())BXO(t,function(){var A=_.t9.apply(0,arguments);fw(p,function(){E.apply(null,_.KB(A))})});
else{var U=_.d1.getInstance(),x=GF0(E);eBO(function(){x.value=E});
_.A6(function(){var A={},m=_.uV(U,(A[t]=function(){var b=_.t9.apply(0,arguments);fw(p,function(){x.value.apply(x,_.KB(b))})},A));
return function(){var b={};_.JH(U,(b[t]="",b),m)}})}};
wY8=function(t){var E=gV,p=yC;return{getFn:function(){return function(U){if(!E.isDisposed){var x=function(){return t(U)};
Ej(function(){return _.sJ(x)},p)!==!0&&U.stopPropagation()}}}}};
RuO=function(t){if(typeof t.children==="function")return t.children(),null;t=_.M(t.children);for(var E=t.next();!E.done;E=t.next())E=E.value,E();return null};
VYY=function(t){var E;return((E=t.prototype)==null?void 0:E.render)===void 0};
QFi=function(t){var E=Array.isArray(t.items)?t.items:Array.from(t.items);t=t.children;return(Array.isArray(E)?E:Array.from(E)).map(t)};
jFj=function(t,E,p){p=p===void 0?!1:p;Ej(function(){return C7j(t,E,p)})};
C7j=function(t,E,p){var U=null;Uj++;p=(p===void 0?0:p)?reJ:kd$;try{U=p(t,function(){g1(E)}),At(!1)}catch(x){throw At(!0),x;
}return U===null?t:U};
g1=function(t){if(t!==void 0&&t!==null)if(t instanceof sj)for(var E=VG;QG()!=null&&tRt in QG()&&E.contains(QG());)rh();else if(Array.isArray(t))for(E=_.M(t),t=E.next();!t.done;t=E.next())g1(t.value);else if(t instanceof nt||t instanceof CB||"function"==typeof _.Im&&t instanceof _.Im)cA$(t.toString());else if(ht(t)){if(QG()!==t){var p,U;E=(U=(p=yC)==null?void 0:p.name)!=null?U:"unknown";throw Error("ic`"+t.tagName+"`"+E);}rh()}else if(t!=null&&t.contentKind===zq||t instanceof U2||BJO(t))for(E=RJ0(t),
E=Array.from(E.childNodes),E=_.M(E),t=E.next();!t.done;t=E.next())VG.appendChild(t.value),rh();else if(Ww(t)&&(t=t.toString()),p=typeof t,p==="boolean"||p==="number"||p==="string")cA$(t);else if(typeof t==="function"){E=VG;var x=QG();x&&(x._isSignalTextNode||x._isSafeOrSanitizedHtmlNode)||PH_(E,x,t);rh()}else if(t.type===QFi)g1(t.type(Object.assign({},t.props,{children:t.children[0]})));else{if(typeof t.type==="string"){a:{t.__open||WQl(t.type,t.props.idomKey);x=VG;for(var A in t.props)if(t.props[A]!==
d6E){var m=t.props[A];p=dh;p.push(A);p.push(m)}A=ac.attributes;A=A===void 0?ZD:A;m=VG;U=Det(m);p=A;A=dh;U=U._attrsArr||(U._attrsArr=aM$(A.length));for(var b=!U.length||!1,f=0;f<A.length;f+=2){var B=A[f];if(b)U[f]=B;else if(U[f]!==B)break;var R=A[f+1];if(b||U[f+1]!==R)U[f+1]=R,SRO(m,B,R,p)}if(f<A.length||f<U.length){for(f=b=f;f<U.length;f+=2)O_[U[f]]=U[f+1];for(f=b;f<A.length;f+=2)b=A[f],B=A[f+1],O_[b]!==B&&SRO(m,b,B,p),U[f]=b,U[f+1]=B,delete O_[b];hf0(U,A.length);for(E in O_)SRO(m,E,void 0,p),delete O_[E]}E=
utL;utL=m=Jt.length;for(p=E;p<m;p+=5)(0,Jt[p])(Jt[p+1],Jt[p+2],Jt[p+3],Jt[p+4]);utL=E;hf0(Jt,E);hf0(A,0);LVO(x,t.props,!0);if((t.props.skip||t.props.skipchildren)&&VG.hasChildNodes())jC=VG.lastChild;else{if(t.type==="style"&&ux0(t.children)===null){jC=VG.lastChild;E=void 0;break a}g1(t.children)}$e$();t.__open&&(t.__open=!1);MQi(x,t.props);E=x}return E}if(t.type===_.Oj)g1(t.children);else if(!Jel(t)){E=t;try{IVi(E)}catch(V){t=V,(m=ac.handleError)==null||m.call.apply(m,[ac].concat(_.KB(Bv(t,(x=E.type)==
null?void 0:x.TAG_NAME))))}E.__open&&($e$(),E.__open=!1)}}};
gjl=function(t,E){var p;VYY(t)?p=new Wv(E,t):p=new t(E);p.__type=t;p.__updateContext={nextState:p.state,isForced:!1};return p};
IVi=function(t){var E=t.type,p=E.TAG_NAME;if(E===RuO)t.props.children=t.children,E(t.props);else{t.children.length>0&&(t.props.children=t.children);var U;(U=t.props).idomKey||(U.idomKey=E);if(p){var x=WQl(p,t.props.idomKey);t.__open=!0;var A=x.__instance}A||(A=gjl(E,t.props),A.props=null,x&&(x.__instance=A,A.el=x));var m;p=((m=A.__updateContext)!=null?m:{nextState:A.state,isForced:!1}).nextState;A.__updateContext=void 0;E.getDerivedStateFromProps&&(p=E.getDerivedStateFromProps(t.props,p));A.props=
t.props;A.state=p;m=function(){var b=A;Tq.beforeRender(b);var f=b.render(b.props);f?(b.props.idomKey&&(f.props.idomKey=b.props.idomKey),b=f):b=void 0;if(f=b)if(f.__open=t.__open,b=g1(f),t.__open=f.__open,!E.TAG_NAME)if(b)E.TAG_NAME=b.tagName.toLowerCase(),b.__instance=A,A.el=b;else{var B;if((B=A.hooks)==null?0:B.length){var R;(R=ac.handleError)==null||R.call.apply(R,[ac].concat(_.KB(Bv(Error("pd")))))}}A.didPatch();Tq.didPatch(A)};
(p=A.functionComponent)?N1t(p,m,A.props.debugInstance):m()}};
Jel=function(t){var E=t.type;if(!VYY(E)||E===RuO||E.componentType===SK)return!1;t.props.children=t.children.length>1?t.children:t.children[0];var p,U=(p=t.props.idomKey)!=null?p:t.type,x;if(QG()&&((x=QG()[nw])==null?void 0:x.key)===U){var A=QG(),m=A[nw];if(!m)throw Error("hc`"+A.tagName);var b;(b=m.updateSignalsFromIdomProps)==null||b.call(m,t.props);Z$D(m);return!0}if(O$K.has(E.name))throw b=E.name,E=(m=(A=yC)==null?void 0:A.name)!=null?m:"unknown",Error("gc`"+b+"`"+E);$Gl(t.type,t.props,t.children);
t.props.renderedFromIdom=!0;(b=N1t(t.type,function(){return GZY(t.type,t.props)},t.props.debugInstance))&&XYO(b);
return!0};
hui=function(t){for(var E=0;E<Dp(t).length;E++)rh()};
Z$D=function(t){var E=aVj();if(E)hui(E);else for(var p=0;p<t.numNodes;p++)(E=aVj())?hui(E):rh()};
aVj=function(){var t;return(t=QG()[nw])==null?void 0:t.sourceDynamicRange};
XYO=function(t){t=i_t(t);t=Array.isArray(t)?t:[t];t=_.M(t);for(var E=t.next();!E.done;E=t.next())VG.insertBefore(E.value,QG()),rh()};
euL=function(){var t=NJD(),E=CO_(function(){return{value:0}},[]);
return[E.value,function(p){if(om!==null){var U;(U=ac.handleError)==null||U.call.apply(U,[ac].concat(_.KB(Bv(Error("qd")))))}E.value=typeof p==="function"?p(E.value):p;t.__updateContext={nextState:t.state,isForced:!0};p=Z8(t.effectContext);U=Xr(!1);try{if(t.el){var x,A={},m=(A.props=t.props,A.type=t.__type,A.children=(x=t.props.children)!=null?x:[],A[Zp]=!0,A);try{jFj(t.el,m,!0)}catch(B){var b,f;(f=ac.handleError)==null||f.call.apply(f,[ac].concat(_.KB(Bv(B,(b=t.__type)==null?void 0:b.TAG_NAME))))}}}finally{Xr(U),
Z8(p)}}]};
_.Xv=function(t,E){var p=gV,U=function(x){fw(p,function(){E(x)})};
window.addEventListener(t,U,void 0);_.iK(function(){window.removeEventListener(t,U,void 0)})};
_.az=function(t){var E=gV;return function(p){var U,x=(U=t.observer)!=null?U:_.X3().resolve(hH);U=FHi(p);var A=[];t.showOption&&A.push(x.observe(p,function(){fw(E,function(){t.visibilityCallback(!0,p)})},t.showOption));
t.hideOption&&A.push(x.observe(p,function(){fw(E,function(){t.visibilityCallback(!1,p)})},t.hideOption));
t.prescanOption&&t.prescanCallback&&A.push(x.observe(p,function(){fw(E,function(){t.prescanCallback()})},t.prescanOption));
var m;U.visibilityMonitorKeys=((m=U.visibilityMonitorKeys)!=null?m:[]).concat(A)}};
FHi=function(t){var E;return(E=t.polymerController)!=null?E:t};
njl=function(t,E){var p=zuY;return _.H(_.Oj,null,cF8(ac.enableLazyTsx,function(){return _.H(lVi,{id:p,value:t,children:E})},function(){var U=Gd8(p,t);
hW(U);U=Z8(U);try{return E()}finally{Z8(U)}}))};
lVi=function(t){var E=t.children;t=Gd8(t.id,t.value);hW(t);t=Z8(t);try{return _.H(_.Oj,null,Lw(E()))}finally{Z8(t)}};
Gd8=function(t,E){return Object.assign(Object.create(NXO),{id:t,contextValue:E})};
D6Y=function(t){var E,p=gV;_.Yw(function(){var U=Z8(p),x=Xr(!E);try{if(E)jFj(E,t.children(),!0);else if(E=Lw(t.children()),!(E instanceof Element))throw Error("rd");}finally{Xr(x),Z8(U)}},"i");
return E};
LHE=function(t){var E=new sFj;E.abort(t);return E.signal};
P7i=function(){if(this.aborted){var t;throw(t=this.reason)!=null?t:new DOMException("signal is aborted without reason","AbortError");}};
WHJ=function(t){var E=new sFj;t=_.M(t);for(var p=t.next();!p.done;p=t.next())if(p=p.value,p.aborted){E.abort(p.reason);break}else TXj.set(E.signal,E),oji.add(p,E.signal);return E.signal};
$6O=function(){for(var t=_.M(oji.get(this)),E=t.next();!E.done;E=t.next())TXj.get(E.value).abort(this.reason)};
KHJ=function(t){var E=new sFj;setTimeout(function(){E.abort(new DOMException("signal timed out","TimeoutError"))},t);
return E.signal};
vji=function(){var t,E;return{promise:new Promise(function(p,U){t=p;E=U}),
resolve:t,reject:E}};
SXi=function(t){var E=vji(),p=E.promise;yeD.set(t,{promise:p,resolve:E.resolve,reject:E.reject});eJ||(eJ=[],queueMicrotask(function(){var U=[].concat(_.KB(eJ));eJ=null;var x=MQ().loadMultiple(U);U=_.M(U);for(var A=U.next();!A.done;A=U.next())A=A.value,x[A].then(yeD.get(A).resolve,yeD.get(A).reject)}));
eJ.push(t);return p};
cet=function(t,E){this.fn_=t;this.handler_=E};
EuO=function(t){t=t.buf.charCodeAt(t.pos++);return tcD[t]};
Fv=function(t){var E=0,p=0;do{var U=EuO(t);E|=(U&31)<<p;p+=5}while(U&32);return E<0?E+4294967296:E};
pSJ=function(t,E,p,U){var x=!0;x=x===void 0?!1:x;E=E===void 0?!1:E;U=U===void 0?{}:U;var A=U.cssRowKey||"",m=U.combinedSignature||"";!A&&window&&window._F_cssRowKey&&(A=window._F_cssRowKey,!m&&window._F_combinedSignature&&(m=window._F_combinedSignature));if(A&&typeof window._F_installCss!=="function")throw Error("Bd");var b=U.loaderClass||_.zQ;t=rw0(t===void 0?"base-js":t);E=new b(FE8(d0t("",t)),A,m,x,E);x=U.useCors||t&&t.hasAttribute("crossorigin");t=U.corsMode||t&&t.getAttribute("crossorigin");
x&&(E.useCors_=x);t&&(E.corsMode_=t);U.urlMaxLength&&(E.urlMaxLength=U.urlMaxLength);p&&(E.insertPos=p);U.fetchPriority&&(E.fetchPriority=U.fetchPriority);var f=MQ();f.JSC$10330_loader_=E;f.setBatchModeEnabled(!0);_.lV=U.batchingStrategy==="BATCH"?SXi:function(B){return Promise.resolve(f.load(B))}};
AN0=function(t,E,p){UMi(t,E);t[E][xM$].unshift(p)};
UMi=function(t,E){if(!t[E]||!t[E][xM$]){var p=t[E],U=p?[p]:[];t[E]=function(){for(var x=_.M(U),A=x.next();!A.done;A=x.next())A.value.apply(this,arguments)};
t[E][xM$]=U}};
YQ_=function(t){if(!t)return[];var E=[];t=_.M(t);for(var p=t.next();!p.done;p=t.next())p=p.value,Array.isArray(p)?E.push.apply(E,_.KB(YQ_(p))):E.push(p);return E};
_.nW=function(t,E){if(t&&Mc0.test(t)||t==="//")return t;if(mMD===void 0){mMD=!1;try{var p=new URL("b","http://a");p.pathname="c%20d";mMD=p.href==="http://a/c%20d"}catch(U){}}E||(E=document.baseURI||window.location.href);if(mMD)try{return(new URL(t,E)).href}catch(U){return t}GQ||(GQ=document.implementation.createHTMLDocument("temp"),GQ.base=GQ.createElement("base"),GQ.head.appendChild(GQ.base),GQ.anchor=GQ.createElement("a"),GQ.body.appendChild(GQ.anchor));GQ.base.href=E;GQ.anchor.href=t;return GQ.anchor.href||
t};
ir$=function(t,E){return t.replace(brj,function(p,U,x,A){return U+"'"+_.nW(x.replace(/["']/g,""),E)+"'"+A})};
qQ_=function(t){return t.substring(0,t.lastIndexOf("/")+1)};
BI_=function(){Hr_=!1;for(var t=NW.length,E=0;E<t;E++){var p=NW[E];if(p)try{p()}catch(U){setTimeout(function(){throw U;})}}NW.splice(0,t);
f2_+=t};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(t){console.log("["+t.is+"]: registered")};
RQ$=function(t){wS$.push(t)};
DD=function(t){return Vcl[t]||(Vcl[t]=t.indexOf("-")<0?t:t.replace(Q7L,function(E){return E[1].toUpperCase()}))};
s_=function(t){return Vcl[t]||(Vcl[t]=t.replace(CmK,"-$1").toLowerCase())};
j7_=function(t,E){var p=E.parentInfo&&j7_(t,E.parentInfo);if(p)for(t=p.firstChild,p=0;t;t=t.nextSibling){if(E.parentIndex===p++)return t}else return t};
rNY=function(t,E){t=t._methodHost||t;return function(p){if(t[E])t[E](p,p.detail);else console.warn("listener method `"+E+"` not defined")}};
LW=function(t){return t.indexOf(".")>=0};
PX=function(t){var E=t.indexOf(".");return E===-1?t:t.slice(0,E)};
ksK=function(t,E){return t.indexOf(E+".")===0};
TQ=function(t,E){return E.indexOf(t+".")===0};
oz=function(t,E,p){return E+p.slice(t.length)};
dMO=function(t,E){return t===E||ksK(t,E)||TQ(t,E)};
WX=function(t){if(Array.isArray(t)){for(var E=[],p=0;p<t.length;p++)for(var U=t[p].toString().split("."),x=0;x<U.length;x++)E.push(U[x]);return E.join(".")}return t};
uYY=function(t){return Array.isArray(t)?WX(t).split("."):t.toString().split(".")};
$X=function(t,E,p){E=uYY(E);for(var U=0;U<E.length;U++){if(!t)return;t=t[E[U]]}p&&(p.path=E.join("."));return t};
JNY=function(t,E,p){var U=uYY(E),x=U[U.length-1];if(U.length>1){for(E=0;E<U.length-1;E++)if(t=t[U[E]],!t)return;t[x]=p}else t[E]=p;return U.join(".")};
I28=function(t,E,p){var U=t[E];if(!U)U=t[E]={};else if(!t.hasOwnProperty(E)&&(U=t[E]=Object.create(t[E]),p))for(var x in U)for(t=U[x],E=U[x]=Array(t.length),p=0;p<t.length;p++)E[p]=t[p];return U};
vX=function(t,E,p,U,x,A){if(E){var m=!1,b=KW++,f;for(f in p){var B=x?PX(f):f;if(B=E[B])for(var R=0,V=B.length,Q=void 0;R<V&&(Q=B[R]);R++)Q.info&&Q.info.lastRun===b||x&&!gu0(f,Q.trigger)||(Q.info&&(Q.info.lastRun=b),Q.fn(t,f,p,U,Q.info,x,A),m=!0)}return m}return!1};
gu0=function(t,E){if(E){var p=E.name;return p==t||!(!E.structured||!ksK(p,t))||!(!E.wildcard||!TQ(p,t))}return!0};
ZrJ=function(t,E,p,U,x){E=typeof x.method==="string"?t[x.method]:x.method;p=x.property;E?E.call(t,t.__data[p],U[p]):x.dynamicFn||console.warn("observer method `"+x.method+"` not defined")};
OrY=function(t,E,p,U){p={value:p,queueProperty:!0};U&&(p.path=U);(0,_.yB)(t).dispatchEvent(new CustomEvent(E,{detail:p}))};
XSO=function(t,E,p,U,x,A){A=(U=(A?PX(E):E)!=E?E:null)?$X(t,U):t.__data[E];U&&A===void 0&&(A=p[E]);OrY(t,x.eventName,A,U)};
hQY=function(t,E,p,U,x){p=t.__data[E];SJ&&(p=SJ(p,x.attrName,"attribute",t));t._propertyToAttribute(E,x.attrName,p)};
eQ_=function(t){var E=t.constructor.__orderedComputedDeps;if(!E){E=new Map;for(var p=t.__computeEffects,U=a2L(t),x=U.counts,A=U.ready,m=U.total;U=A.shift();)E.set(U,E.size),(U=p[U])&&U.forEach(function(b){b=b.info.methodInfo;--m;--x[b]===0&&A.push(b)});
m!==0&&console.warn("Computed graph for "+t.localName+" incomplete; circular?");t.constructor.__orderedComputedDeps=E}return E};
a2L=function(t){var E=t.__computeInfo,p={};t=t.__computeEffects;var U=[],x=0,A;for(A in E){var m=E[A];x+=p[A]=m.args.filter(function(f){return!f.literal}).length+(m.dynamicFn?1:0)}for(var b in t)E[b]||U.push(b);
return{counts:p,ready:U,total:x}};
zQJ=function(t,E,p,U,x){E=FFK(t,E,p,U,x);if(E===tA)return!1;x=x.methodInfo;if(t.__dataHasAccessor&&t.__dataHasAccessor[x])return t._setPendingProperty(x,E,!0);t[x]=E;return!1};
nul=function(t,E,p,U,x,A,m){p.bindings=p.bindings||[];U={kind:U,target:x,parts:A,literal:m,isCompound:A.length!==1};p.bindings.push(U);U.target&&U.kind!="attribute"&&U.kind!="text"&&!U.isCompound&&U.parts[0].mode==="{"&&(p=U.parts[0],A=p.negate,U.listenerEvent=p.event||s_(x)+"-changed",U.listenerNegate=A);x=E.nodeInfoList.length;for(p=0;p<U.parts.length;p++){var b=U.parts[p];b.compoundIndex=p;A=t;m=E;var f=U,B=b,R=x;if(!B.literal)if(f.kind==="attribute"&&f.target[0]==="-")console.warn("Cannot set attribute "+
f.target+' because "-" is not a valid attribute starting character');else for(b=B.dependencies,f={index:R,binding:f,part:B,evaluator:A},B=0;B<b.length;B++)R=b[B],typeof R=="string"&&(R=l2_(R),R.wildcard=!0),A._addTemplatePropertyEffect(m,R.rootProperty,{fn:Gs$,info:f,trigger:R})}};
Gs$=function(t,E,p,U,x,A,m){m=m[x.index];var b=x.binding,f=x.part;A&&f.source&&E.length>f.source.length&&b.kind=="property"&&!b.isCompound&&m.__isPropertyEffectsClient&&m.__dataHasAccessor&&m.__dataHasAccessor[b.target]?(p=p[E],E=oz(f.source,b.target,E),m._setPendingPropertyOrPath(E,p,!1,!0)&&t._enqueueClient(m)):(E=x.evaluator._evaluateBinding(t,f,E,p,U,A),E!==tA&&(b.isCompound&&(p=m.__dataCompoundStorage[b.target],p[f.compoundIndex]=E,E=p.join("")),b.kind==="attribute"||b.target!=="textContent"&&
(b.target!=="value"||m.localName!=="input"&&m.localName!=="textarea")||(E=E==void 0?"":E),f=E,SJ&&(f=SJ(f,b.target,b.kind,m)),b.kind=="attribute"?t._valueToNodeAttribute(m,f,b.target):(b=b.target,m.__isPropertyEffectsClient&&m.__dataHasAccessor&&m.__dataHasAccessor[b]?m.__readOnly&&m.__readOnly[b]||m._setPendingProperty(b,f)&&t._enqueueClient(m):t._setUnmanagedPropertyToNode(m,b,f))))};
NI_=function(t,E,p){if(p.listenerEvent){var U=p.parts[0];t.addEventListener(p.listenerEvent,function(x){var A=p.target,m=U.source,b=U.negate,f=x.detail,B=f&&f.path;B?(m=oz(A,m,B),x=f&&f.value):x=x.currentTarget[A];E.__readOnly&&E.__readOnly[m]||!E._setPendingPropertyOrPath(m,b?!x:x,!0,!!B)||f&&f.queueProperty||E._invalidateProperties()})}};
DME=function(t,E,p,U,x,A){A=E.static||A&&(typeof A!=="object"||A[E.methodName]);x={methodName:E.methodName,args:E.args,methodInfo:x,dynamicFn:A};for(var m=0,b=void 0;m<E.args.length&&(b=E.args[m]);m++)b.literal||t._addPropertyEffect(b.rootProperty,p,{fn:U,info:x,trigger:b});A&&t._addPropertyEffect(E.methodName,p,{fn:U,info:x});return x};
FFK=function(t,E,p,U,x){U=t._methodHost||t;var A=U[x.methodName];if(A)return t=t._marshalArgs(x.args,E,p),t===tA?tA:A.apply(U,t);x.dynamicFn||console.warn("method `"+x.methodName+"` not defined")};
s7E=function(t){for(var E="",p=0;p<t.length;p++)E+=t[p].literal||"";return E};
TIO=function(t){if(t=t.match(/([^\s]+?)\(([\s\S]*)\)/)){var E={methodName:t[1],static:!0,args:LFK};return t[2].trim()?Pm$(t[2].replace(/\\,/g,"&comma;").split(","),E):E}return null};
Pm$=function(t,E){E.args=t.map(function(p){p=l2_(p);p.literal||(E.static=!1);return p},this);
return E};
l2_=function(t){t=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var E={name:t,value:"",literal:!1},p=t[0];p==="-"&&(p=t[1]);p>="0"&&p<="9"&&(p="#");switch(p){case "'":case '"':E.value=t.slice(1,-1);E.literal=!0;break;case "#":E.value=Number(t),E.literal=!0}E.literal||(E.rootProperty=PX(t),E.structured=LW(t),E.structured&&(E.wildcard=t.slice(-2)==".*",E.wildcard&&(E.name=t.slice(0,-2))));return E};
ouL=function(t,E,p){t=$X(t,p);t===void 0&&(t=E[p]);return t};
WFJ=function(t,E,p,U){U={indexSplices:U};ER&&!t._overrideLegacyUndefined&&(E.splices=U);t.notifyPath(p+".splices",U);t.notifyPath(p+".length",E.length);ER&&!t._overrideLegacyUndefined&&(U.indexSplices=[])};
po=function(t,E,p,U,x,A){WFJ(t,E,p,[{index:U,addedCount:x,removed:A,object:E,type:"splice"}])};
$Mt=function(t){t=ir$((t.body?t.body:t).textContent,t.baseURI);var E=document.createElement("style");E.textContent=t;return E};
vuj=function(t){t=t.trim().split(/\s+/);for(var E=[],p=0;p<t.length;p++)E.push.apply(E,_.KB(KFE(t[p])));return E};
KFE=function(t){var E=UR.import(t);if(!E)return console.warn("Could not find style data in module named",t),[];if(E._styles===void 0){t=[];t.push.apply(t,_.KB(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(E)));var p=E.querySelector("template");p&&t.push.apply(t,_.KB(yN$(p,E.assetpath)));E._styles=t}return E._styles};
yN$=function(t,E){if(!t._styles){for(var p=[],U=t.content.querySelectorAll("style"),x=0;x<U.length;x++){var A=U[x],m=A.getAttribute("include");m&&p.push.apply(p,_.KB(vuj(m).filter(function(b,f,B){return B.indexOf(b)===f})));
E&&(A.textContent=ir$(A.textContent,E));p.push(A)}t._styles=p}return t._styles};
SQj=function(t){return(t=UR.import(t))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(t):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(t){var E=[];t=t.querySelectorAll("link[rel=import][type~=css]");for(var p=0;p<t.length;p++){var U=t[p];if(U.import){var x=U.import;if((U=U.hasAttribute("shady-unscoped"))&&!x._unscopedStyle){var A=$Mt(x);A.setAttribute("shady-unscoped","");x._unscopedStyle=A}else x._style||(x._style=$Mt(x));E.push(U?x._unscopedStyle:x._style)}}return E};
thj=function(t){t=t.trim().split(/\s+/);for(var E="",p=0;p<t.length;p++)E+=cNt(t[p]);return E};
cNt=function(t){var E=UR.import(t);if(E&&E._cssText===void 0){var p=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(E),U=E.querySelector("template");U&&(p+=EZ_(U,E.assetpath));E._cssText=p||null}E||console.warn("Could not find style data in module named",t);return E&&E._cssText||""};
EZ_=function(t,E){var p="";t=yN$(t,E);for(E=0;E<t.length;E++){var U=t[E];U.parentNode&&U.parentNode.removeChild(U);p+=U.textContent}return p};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(t){var E="";t=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(t);for(var p=0;p<t.length;p++)E+=t[p].textContent;return E};
xn=function(t,E){return{index:t,removed:[],addedCount:E}};
UmY=function(t,E,p,U){var x=0,A=0,m=0,b=0,f=Math.min(E-x,U-A);if(x==0&&A==0)a:{for(m=0;m<f;m++)if(t[m]!==p[m])break a;m=f}if(E==t.length&&U==p.length){b=t.length;for(var B=p.length,R=0;R<f-m&&pnY(t[--b],p[--B]);)R++;b=R}x+=m;A+=m;E-=b;U-=b;if(E-x==0&&U-A==0)return[];if(x==E){for(E=xn(x,0);A<U;)E.removed.push(p[A++]);return[E]}if(A==U)return[xn(x,E-x)];f=x;m=A;U=U-m+1;b=E-f+1;E=Array(U);for(B=0;B<U;B++)E[B]=Array(b),E[B][0]=B;for(B=0;B<b;B++)E[0][B]=B;for(B=1;B<U;B++)for(R=1;R<b;R++)if(t[f+R-1]===
p[m+B-1])E[B][R]=E[B-1][R-1];else{var V=E[B-1][R]+1,Q=E[B][R-1]+1;E[B][R]=V<Q?V:Q}f=E.length-1;m=E[0].length-1;U=E[f][m];for(t=[];f>0||m>0;)f==0?(t.push(2),m--):m==0?(t.push(3),f--):(b=E[f-1][m-1],B=E[f-1][m],R=E[f][m-1],V=B<R?B<b?B:b:R<b?R:b,V==b?(b==U?t.push(0):(t.push(1),U=b),f--,m--):V==B?(t.push(3),f--,U=B):(t.push(2),m--,U=R));t.reverse();E=void 0;f=[];for(m=0;m<t.length;m++)switch(t[m]){case 0:E&&(f.push(E),E=void 0);x++;A++;break;case 1:E||(E=xn(x,0));E.addedCount++;x++;E.removed.push(p[A]);
A++;break;case 2:E||(E=xn(x,0));E.addedCount++;x++;break;case 3:E||(E=xn(x,0)),E.removed.push(p[A]),A++}E&&f.push(E);return f};
xmL=function(t,E){return UmY(t,t.length,E,E.length)};
pnY=function(t,E){return t===E};
Ya$=function(t){if(t instanceof Ay8)return t.value;throw Error("Jd`"+t);};
Mh0=function(t,E){for(var p in E)p===null?t.style.removeProperty(p):t.style.setProperty(p,E[p])};
mm$=function(t,E){return(t=window.getComputedStyle(t).getPropertyValue(E))?t.trim():""};
HGO=function(t){requestAnimationFrame(function(){bG0?bG0(t):(iG_||(iG_=new Promise(function(E){qa$=E}),document.readyState==="complete"?qa$():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&qa$()})),iG_.then(function(){t&&t()}))})};
wnL=function(t){f1J=t&&t.shimcssproperties?!1:BW_||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
jeY=function(t){if(!(R5_.indexOf(t)>-1)&&t!=="touchend"&&Vh$&&QeK&&Cfl)return{passive:!0}};
uIO=function(t){for(var E=ry0?["click"]:R5_,p=0,U;p<E.length;p++)U=E[p],t?(km_.length=0,document.addEventListener(U,dmO,!0)):document.removeEventListener(U,dmO,!0)};
AA=function(t){var E=t.type;return R5_.indexOf(E)>-1?E==="mousemove"?(E=t.buttons===void 0?1:t.buttons,t instanceof window.MouseEvent&&!JyK&&(E=I1D[t.which]||0),!!(E&1)):(t.button===void 0?0:t.button)===0:!1};
gZE=function(t){if(t.type==="click"){if(t.detail===0)return!0;var E=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t);if(!E.nodeType||E.nodeType!==Node.ELEMENT_NODE)return!0;E=E.getBoundingClientRect();var p=t.pageX;t=t.pageY;return!(p>=E.left&&p<=E.right&&t>=E.top&&t<=E.bottom)}return!1};
ZG8=function(t,E,p){t.movefn=E;t.upfn=p;document.addEventListener("mousemove",E);document.addEventListener("mouseup",p)};
mQ=function(t){document.removeEventListener("mousemove",t.movefn);document.removeEventListener("mouseup",t.upfn);t.movefn=null;t.upfn=null};
OGY=function(t,E){for(var p=document.elementFromPoint(t,E),U=p;U&&U.shadowRoot&&!window.ShadyDOM;){var x=U;U=U.shadowRoot.elementFromPoint(t,E);if(x===U)break;U&&(p=U)}return p};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(t){var E=Xn0(t);return E.length>0?E[0]:t.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(t){var E=t.type,p=t.currentTarget.__polymerGestures;if(p&&(p=p[E])){if(!t.__polymerGesturesHandled&&(t.__polymerGesturesHandled={},E.slice(0,5)==="touch")){var U=t.changedTouches[0];E==="touchstart"&&t.touches.length===1&&(h5_=U.identifier);if(h5_!==U.identifier)return;Vh$||(E==="touchstart"||E==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t)}U=
t.__polymerGesturesHandled;if(!U.skip){for(var x=0,A;x<bn.length;x++)A=bn[x],p[A.name]&&!U[A.name]&&A.flow&&A.flow.start.indexOf(t.type)>-1&&A.reset&&A.reset();for(x=0;x<bn.length;x++)A=bn[x],p[A.name]&&!U[A.name]&&(U[A.name]=!0,A[E](t))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(t){var E=t.changedTouches[0],p=t.type;if(p==="touchstart")a1$=E.clientX,e50=E.clientY,Fbt=!1;else if(p==="touchmove"&&!Fbt){Fbt=!0;p="auto";for(var U=Xn0(t),x=0,A;x<U.length;x++)if(A=U[x],A.__polymerGesturesTouchAction){p=A.__polymerGesturesTouchAction;break}U=!1;x=Math.abs(a1$-E.clientX);E=Math.abs(e50-E.clientY);t.cancelable&&(p==="none"?U=!0:p==="pan-x"?U=E>x:p==="pan-y"&&(U=x>E));U?t.preventDefault():
qe("track")}};
fo=function(t,E,p){return H6[E]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t,E,p),!0):!1};
B6=function(t,E,p){return H6[E]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t,E,p),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(t,E,p){var U=H6[E],x=U.deps,A=U.name,m=t.__polymerGestures;m||(t.__polymerGestures=m={});for(var b=0,f,B;b<x.length;b++)f=x[b],ry0&&R5_.indexOf(f)>-1&&f!=="click"||((B=m[f])||(m[f]=B={_count:0}),B._count===0&&t.addEventListener(f,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,jeY(f)),B[A]=(B[A]||0)+1,B._count=(B._count||0)+1);t.addEventListener(E,p);U.touchAction&&_.wk(t,U.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(t,E,p){var U=H6[E],x=U.deps;U=U.name;var A=t.__polymerGestures;if(A)for(var m=0,b,f;m<x.length;m++)b=x[m],(f=A[b])&&f[U]&&(f[U]=(f[U]||1)-1,f._count=(f._count||1)-1,f._count===0&&t.removeEventListener(b,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,jeY(b)));t.removeEventListener(E,p)};
z5L=function(t){bn.push(t);for(var E=0;E<t.emits.length;E++)H6[t.emits[E]]=t};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(t){for(var E=0,p;E<bn.length;E++){p=bn[E];for(var U=0,x;U<p.emits.length;U++)if(x=p.emits[U],x===t)return p}return null};
_.wk=function(t,E){Vh$&&t instanceof HTMLElement&&RE.run(function(){t.style.touchAction=E});
t.__polymerGesturesTouchAction=E};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(t,E,p){E=new Event(E,{bubbles:!0,cancelable:!0,composed:!0});E.detail=p;(0,_.yB)(t).dispatchEvent(E);E.defaultPrevented&&(t=p.preventer||p.sourceEvent)&&t.preventDefault&&t.preventDefault()};
qe=function(t){t=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t);t.info&&(t.info.prevent=!0)};
VO=function(t,E,p,U){E&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E,t,{x:p.clientX,y:p.clientY,sourceEvent:p,preventer:U,prevent:function(x){return qe(x)}})};
l1L=function(t,E,p){if(t.prevent)return!1;if(t.started)return!0;p=Math.abs(t.y-p);return Math.abs(t.x-E)>=5||p>=5};
Gm_=function(t,E,p){if(E){var U=t.moves[t.moves.length-2],x=t.moves[t.moves.length-1],A=x.x-t.x,m=x.y-t.y,b=0;if(U){var f=x.x-U.x;b=x.y-U.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E,"track",{state:t.state,x:p.clientX,y:p.clientY,dx:A,dy:m,ddx:f,ddy:b,sourceEvent:p,hover:function(){return OGY(p.clientX,p.clientY)}})}};
NWO=function(t,E,p){var U=Math.abs(E.clientX-t.x),x=Math.abs(E.clientY-t.y),A=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p||E);!A||nZO[A.localName]&&A.hasAttribute("disabled")||!(isNaN(U)||isNaN(x)||U<=25&&x<=25||gZE(E))||t.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A,"tap",{x:E.clientX,y:E.clientY,sourceEvent:E,preventer:p})};
Dm0=function(t,E,p,U,x){var A;x&&(A=typeof p==="object"&&p!==null)&&(U=t.__dataTemp[E]);U=U!==p&&(U===U||p===p);A&&U&&(t.__dataTemp[E]=p);return U};
Lbi=function(){if(QO&&!Co){if(!sel){sel=!0;var t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(t)}return!0}return!1};
TWL=function(){return PfL};
oZO=function(t,E){PfL=t;Object.setPrototypeOf(t,E.prototype);new E;PfL=null};
Wbj=function(t,E){for(var p=0;p<E.length;p++){var U=E[p];if(!!t!=!!U.__hideTemplateChildren__)if(U.nodeType===Node.TEXT_NODE)t?(U.__polymerTextContent__=U.textContent,U.textContent=""):U.textContent=U.__polymerTextContent__;else if(U.localName==="slot")if(t)U.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.yB)((0,_.yB)(U).parentNode).replaceChild(U.__polymerReplaced__,U);else{var x=U.__polymerReplaced__;x&&(0,_.yB)((0,_.yB)(x).parentNode).replaceChild(U,x)}else U.style&&(t?(U.__polymerDisplay__=
U.style.display,U.style.display="none"):U.style.display=U.__polymerDisplay__);U.__hideTemplateChildren__=t;U._showHideChildren&&U._showHideChildren(t)}};
$ml=function(t){return(t=t.__dataHost)&&t._methodHost||t};
yyY=function(t,E,p){var U=p.mutableData?Kbi:jf;rk.mixin&&(U=rk.mixin(U));var x=function(){return U.apply(this,arguments)||this};
_.u(x,U);x.prototype.__templatizeOptions=p;x.prototype._bindTemplate(t);vZj(x,t,E,p);return x};
pqO=function(t,E,p,U){var x=p.forwardHostProp;if(x&&E.hasHostProps){var A=t.localName=="template",m=E.templatizeTemplateClass;if(!m){if(A){var b=p.mutableData?Saj:cy8;m=function(){return b.apply(this,arguments)||this};
_.u(m,b);m=E.templatizeTemplateClass=m}else{var f=t.constructor;m=function(){return f.apply(this,arguments)||this};
_.u(m,f);m=E.templatizeTemplateClass=m}var B=E.hostProps,R;for(R in B)m.prototype._addPropertyEffect("_host_"+R,m.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:tMO(x)}),m.prototype._createNotifyingProperty("_host_"+R);kn&&U&&ECY(E,p,U)}t.__dataProto&&Object.assign(t.__data,t.__dataProto);if(A)oZO(t,m),t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,m.prototype);E=E.hostProps;for(var V in E)V="_host_"+V,V in t&&(E=t[V],delete t[V],t.__data[V]=
E)}}};
tMO=function(t){return function(E,p,U){t.call(E.__templatizeOwner,p.substring(6),U[p])}};
vZj=function(t,E,p,U){var x=p.hostProps||{},A;for(A in U.instanceProps){delete x[A];var m=U.notifyInstanceProp;m&&t.prototype._addPropertyEffect(A,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:UqD(m)})}if(U.forwardHostProp&&E.__dataHost)for(var b in x)p.hasHostProps||(p.hasHostProps=!0),t.prototype._addPropertyEffect(b,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:xqD()})};
UqD=function(t){return function(E,p,U){t.call(E.__templatizeOwner,E,p,U[p])}};
xqD=function(){return function(t,E,p){t.__dataHost._setPendingPropertyOrPath("_host_"+E,p[E],!0,!0)}};
rk=function(t,E,p){if(dk&&!$ml(t))throw Error("Pd");p=p||{};if(t.__templatizeOwner)throw Error("Qd");t.__templatizeOwner=E;var U=(E?E.constructor:jf)._parseTemplate(t),x=U.templatizeInstanceClass;x||(x=yyY(t,U,p),U.templatizeInstanceClass=x);var A=$ml(t);pqO(t,U,p,A);p=function(){return x.apply(this,arguments)||this};
_.u(p,x);p.prototype._methodHost=A;p.prototype.__dataHost=t;p.prototype.__templatizeOwner=E;p.prototype.__hostProps=U.hostProps;return p};
ECY=function(t,E,p){p=p.constructor._properties;t=t.propertyEffects;E=E.instanceProps;for(var U in t)if(!(p[U]||E&&E[U]))for(var x=t[U],A=0;A<x.length;A++){var m=x[A].info.part;if(!m.signature||!m.signature.static){console.warn("Property '"+U+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
Ah_=function(t,E){for(var p;E;)if(p=E.__dataHost?E:E.__templatizeInstance)if(p.__dataHost!=t)E=p.__dataHost;else return p;else E=(0,_.yB)(E).parentNode;return null};
un=function(t){return t.localName==="slot"};
YtE=function(){for(var t=JA.prototype,E="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),p={},U=0;U<E.length;p={method$jscomp$33:void 0},U++)p.method$jscomp$33=E[U],t[p.method$jscomp$33]=function(x){return function(){return this.node[x.method$jscomp$33].apply(this.node,arguments)}}(p)};
MME=function(t,E){for(var p={},U=0;U<E.length;p={name$jscomp$448:void 0},U++)p.name$jscomp$448=E[U],Object.defineProperty(t,p.name$jscomp$448,{get:function(x){return function(){return this.node[x.name$jscomp$448]}}(p),
configurable:!0})};
mqL=function(){for(var t=JA.prototype,E=["textContent","innerHTML","className"],p={},U=0;U<E.length;p={name$jscomp$449:void 0},U++)p.name$jscomp$449=E[U],Object.defineProperty(t,p.name$jscomp$449,{get:function(x){return function(){return this.node[x.name$jscomp$449]}}(p),
set:function(x){return function(A){this.node[x.name$jscomp$449]=A}}(p),
configurable:!0})};
b1t=function(){IE=document.documentElement.getAttribute("dir");IE=document.documentElement.getAttribute("dir");for(var t=0;t<gk.length;t++){var E=gk[t];E.__autoDirOptOut||E.setAttribute("dir",IE)}};
fy$=function(){ZM=!0;requestAnimationFrame(function(){ZM=!1;i1D(qtt);setTimeout(function(){for(var t=0,E=OR.length;t<E;t++)H10(OR.shift())})})};
i1D=function(t){for(;t.length;)H10(t.shift())};
H10=function(t){var E=t[0],p=t[1];t=t[2];try{p.apply(E,t)}catch(U){setTimeout(function(){throw U;})}};
_.B9t=function(t,E,p){ZM||fy$();qtt.push([t,E,p])};
_.XE=function(t,E,p){ZM||fy$();OR.push([t,E,p])};
VMY=function(t,E){E=E===void 0?!1:E;if(!wqY||!RrD||!wqY.handlesDynamicScoping)return null;var p=RrD.ScopingShim;if(!p)return null;var U=p.scopeForNode(t),x=(0,_.yB)(t).getRootNode(),A=function(m){if((0,_.yB)(m).getRootNode()===x){var b=Array.from(wqY.nativeMethods.querySelectorAll.call(m,"*"));b.push(m);for(m=0;m<b.length;m++){var f=b[m];if((0,_.yB)(f).getRootNode()===x){var B=p.currentScopeForNode(f);B!==U&&(B!==""&&p.unscopeNode(f,B),p.scopeNode(f,U))}}}};
A(t);return E?(E=new MutationObserver(function(m){for(var b=0;b<m.length;b++)for(var f=m[b],B=0;B<f.addedNodes.length;B++){var R=f.addedNodes[B];R.nodeType===Node.ELEMENT_NODE&&A(R)}}),E.observe(t,{childList:!0,
subtree:!0}),E):null};
Qxj=function(){document.body.removeAttribute("unresolved")};
dqO=function(t){var E=t=t.replace(C3E,"").replace(jxJ,""),p=new rhj;p.start=0;p.end=E.length;for(var U=p,x=0,A=E.length;x<A;x++)if(E[x]==="{"){U.rules||(U.rules=[]);var m=U,b=m.rules[m.rules.length-1]||null;U=new rhj;U.start=x+1;U.parent=m;U.previous=b;m.rules.push(U)}else E[x]==="}"&&(U.end=x+1,U=U.parent||p);return kHE(p,t)};
kHE=function(t,E){var p=E.substring(t.start,t.end-1);t.parsedCssText=t.cssText=p.trim();t.parent&&(p=E.substring(t.previous?t.previous.end:t.parent.start,t.start-1),p=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(p),p=p.replace(u28," "),p=p.substring(p.lastIndexOf(";")+1),p=t.parsedSelector=t.selector=p.trim(),t.atRule=p.indexOf("@")===0,t.atRule?p.indexOf("@media")===0?t.type=4:p.match(JhE)&&(t.type=7,t.keyframesName=t.selector.split(u28).pop()):p.indexOf("--")===
0?t.type=1E3:t.type=1);if(p=t.rules)for(var U=0,x=p.length,A=void 0;U<x&&(A=p[U]);U++)kHE(A,E);return t};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(t){return t.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var E=arguments[1],p=6-E.length;p--;)E="0"+E;return"\\"+E})};
Iyi=function(t,E,p){p=p===void 0?"":p;var U="";if(t.cssText||t.rules){var x=t.rules;if(x&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(x))for(var A=0,m=x.length,b=void 0;A<m&&(b=x[A]);A++)U=Iyi(b,E,U);else E?E=t.cssText:(E=t.cssText,E=E.replace(gCD,"").replace(Z1_,""),E=E.replace(O1D,"").replace(XqL,"")),(U=E.trim())&&(U="  "+U+"\n")}U&&(t.selector&&(p+=t.selector+" {\n"),p+=U,t.selector&&(p+="}\n\n"));return p};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(t){t=t[0];return!!t&&!!t.selector&&t.selector.indexOf("--")===0};
ay8=function(t){if(t=hrL[t])t._applyShimCurrentVersion=t._applyShimCurrentVersion||0,t._applyShimValidatingVersion=t._applyShimValidatingVersion||0,t._applyShimNextVersion=(t._applyShimNextVersion||0)+1};
erl=function(t){return t._applyShimCurrentVersion===t._applyShimNextVersion};
zrO=function(t){t._applyShimValidatingVersion=t._applyShimNextVersion;t._validating||(t._validating=!0,FAi.then(function(){t._applyShimCurrentVersion=t._applyShimNextVersion;t._validating=!1}))};
GHO=function(t){if(!t)return"";typeof t==="string"&&(t=dqO(t));return Iyi(t,lyL)};
nCi=function(t){!t.__cssRules&&t.textContent&&(t.__cssRules=dqO(t.textContent));return t.__cssRules||null};
Dq0=function(t,E,p,U){if(t){var x=!1,A=t.type;if(U&&A===4){var m=t.selector.match(N90);m&&(window.matchMedia(m[1]).matches||(x=!0))}A===1?E(t):p&&A===7?p(t):A===1E3&&(x=!0);if((t=t.rules)&&!x)for(x=0,A=t.length,m=void 0;x<A&&(m=t[x]);x++)Dq0(m,E,p,U)}};
sxE=function(t,E){var p=t.indexOf("var(");if(p===-1)return E(t,"","","");a:{var U=0;var x=p+3;for(var A=t.length;x<A;x++)if(t[x]==="(")U++;else if(t[x]===")"&&--U===0)break a;x=-1}U=t.substring(p+4,x);p=t.substring(0,p);t=sxE(t.substring(x+1),E);A=U.indexOf(",");if(A===-1)return E(p,U.trim(),"",t);x=U.substring(0,A).trim();U=U.substring(A+1).trim();return E(p,x,U,t)};
LA8=function(t){if(hA!==void 0)return hA;if(t.__cssBuild===void 0){var E=t.getAttribute("css-build");if(E)t.__cssBuild=E;else{a:{E=t.localName==="template"?t.content.firstChild:t.firstChild;if(E instanceof Comment&&(E=E.textContent.trim().split(":"),E[0]==="css-build")){E=E[1];break a}E=""}if(E!==""){var p=t.localName==="template"?t.content.firstChild:t.firstChild;p.parentNode.removeChild(p)}t.__cssBuild=E}}return t.__cssBuild||""};
T9i=function(t,E,p,U){for(var x=E._noAccessors,A=Object.getOwnPropertyNames(E),m=0;m<A.length;m++){var b=A[m];if(!(b in U))if(x)t[b]=E[b];else{var f=Object.getOwnPropertyDescriptor(E,b);f&&(f.configurable=!0,Object.defineProperty(t,b,f))}}for(var B in P3l)E[B]&&(p[B]=p[B]||[],p[B].push(E[B]))};
oCL=function(t,E,p){E=E||[];for(var U=t.length-1;U>=0;U--){var x=t[U];x?Array.isArray(x)?oCL(x,E):E.indexOf(x)<0&&(!p||p.indexOf(x)<0)&&E.unshift(x):console.warn("behavior is null, check for missing or 404 import")}return E};
WAt=function(t,E){for(var p in E){var U=t[p],x=E[p];t[p]=!("value"in x)&&U&&"value"in U?Object.assign({value:U.value},x):x}};
vCJ=function(t,E,p){var U={},x=function(){return E.apply(this,arguments)||this};
_.u(x,E);x._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(m)for(var f=0,B;f<m.length;f++)B=m[f],B.properties&&this.createProperties(B.properties),B.observers&&this.createObservers(B.observers,B.properties);t.properties&&this.createProperties(t.properties);t.observers&&this.createObservers(t.observers,t.properties);this._prepareTemplate()}else E._finalizeClass.call(this)};
x.prototype.created=function(){E.prototype.created.call(this);var f=U.created;if(f)for(var B=0;B<f.length;B++)f[B].call(this)};
x.prototype._registered=function(){var f=x.prototype;if(!f.hasOwnProperty("__hasRegisterFinished")){f.__hasRegisterFinished=!0;E.prototype._registered.call(this);QO&&b(f);f=Object.getPrototypeOf(this);var B=U.beforeRegister;if(B)for(var R=0;R<B.length;R++)B[R].call(f);if(B=U.registered)for(R=0;R<B.length;R++)B[R].call(f)}};
x.prototype._applyListeners=function(){E.prototype._applyListeners.call(this);var f=U.listeners;if(f)for(var B=0;B<f.length;B++){var R=f[B];if(R)for(var V in R)this._addMethodEventListenerToNode(this,V,R[V])}};
x.prototype._ensureAttributes=function(){var f=U.hostAttributes;if(f)for(var B=f.length-1;B>=0;B--){var R=f[B],V;for(V in R)this._ensureAttribute(V,R[V])}E.prototype._ensureAttributes.call(this)};
x.prototype.ready=function(){E.prototype.ready.call(this);var f=U.ready;if(f)for(var B=0;B<f.length;B++)f[B].call(this)};
x.prototype.attached=function(){E.prototype.attached.call(this);var f=U.attached;if(f)for(var B=0;B<f.length;B++)f[B].call(this)};
x.prototype.detached=function(){E.prototype.detached.call(this);var f=U.detached;if(f)for(var B=0;B<f.length;B++)f[B].call(this)};
x.prototype.attributeChanged=function(f,B,R){E.prototype.attributeChanged.call(this);var V=U.attributeChanged;if(V)for(var Q=0;Q<V.length;Q++)V[Q].call(this,f,B,R)};
_.aE.Object.defineProperties(x,{properties:{configurable:!0,enumerable:!0,get:function(){var f={};if(m)for(var B=0;B<m.length;B++)WAt(f,m[B].properties);WAt(f,t.properties);return f}},
observers:{configurable:!0,enumerable:!0,get:function(){var f=[];if(m)for(var B=0,R;B<m.length;B++)R=m[B],R.observers&&(f=f.concat(R.observers));t.observers&&(f=f.concat(t.observers));return f}}});
if(p){Array.isArray(p)||(p=[p]);var A=E.prototype.behaviors;var m=oCL(p,null,A);x.prototype.behaviors=A?A.concat(p):m}var b=function(f){if(m)for(var B=m,R=0;R<B.length;R++)T9i(f,B[R],U,$q$);T9i(f,t,U,KAK)};
QO||b(x.prototype);x.generatedFrom=t;return x};
tIO=function(t){var E=typeof t!=="string"?t:{is:t,notifyObserversOnUndefined:!0};E.fastInit===void 0&&(E.fastInit=!0);return function(p){if(!E.disableInheritanceCheck&&Object.getPrototypeOf(p.prototype).constructor!==_.ef)throw Error("Ud");var U=p.prototype;U.is=E.is;AN0(U,"created",function(){this.hostElement=this;this.polymerController=this});
yhD(U,p,E.fastInit);E.notifyObserversOnUndefined&&(U._overrideLegacyUndefined=!0);if(Stj)for(var x=_.M(Object.getOwnPropertyNames(U)),A=x.next();!A.done;A=x.next()){A=A.value;var m=Object.getOwnPropertyDescriptor(U,A);m.enumerable===!1&&(m.enumerable=!0,Object.defineProperty(U,A,m))}if("template"in p)var b=function(){return p.template};
else E.template!==void 0&&(b=E.template);if(b!==void 0){var f;Object.defineProperty(U,"_template",{get:function(){f===void 0&&(f=b());return f},
set:function(B){f=B},
configurable:!0,enumerable:!0})}Polymer(U);p[chD]=U}};
EMj=function(t){t=t===void 0?{}:t;t.fastInit===void 0&&(t.fastInit=!0);return function(E){if(!t.disableInheritanceCheck&&Object.getPrototypeOf(E.prototype).constructor!==FE)throw Error("Vd");yhD(E.prototype,E,t.fastInit)}};
yhD=function(t,E,p){p=p===void 0?!1:p;pf0(E);p?AN0(t,"created",function(){this.disableEnforceFastDefaultValuesCheck||Uh_(E,this)}):AN0(t,"ready",function(){for(var U={},x=_.M(YQ_(this.behaviors)),A=x.next();!A.done;A=x.next())A=A.value,A.properties&&Object.assign(U,xht(this,A.properties));
Object.assign(U,xht(this,this.properties));Uh_(E,this);x=_.M(Object.keys(U));for(A=x.next();!A.done;A=x.next())A=A.value,this[A]=U[A]})};
Uh_=function(t,E){if(Stj){t=new t;for(var p=_.M(Object.getOwnPropertyNames(t)),U=p.next();!U.done;U=p.next())U=U.value,E[U]=t[U];for(p=E;p&&p!==Object.prototype;p=Object.getPrototypeOf(p)){U=_.M(Object.getOwnPropertyNames(p));for(var x=U.next();!x.done;x=U.next())x=x.value,t.hasOwnProperty(x)||Object.defineProperty(t,x,AIj(E,x))}}else t.apply(E)};
AIj=function(t,E){return{get:function(){var p=t[E];return p instanceof Function?p.bind(t):p},
set:function(p){t[E]=p}}};
xht=function(t,E){if(!E)return{};for(var p={},U=_.M(Object.keys(E)),x=U.next();!x.done;x=U.next())if(x=x.value,!E[x].readOnly){var A=t[x];A!==void 0&&(p[x]=A)}return p};
pf0=function(t){var E=new t;t=t.prototype.properties||{};for(var p=_.M(Object.keys(t)),U=p.next();!U.done;U=p.next())if(U=U.value,E.hasOwnProperty(U)){var x=t[U];typeof x==="function"&&(t[U]=x={type:x});E[U]!=null&&x.type===Object&&(x.type=YkJ(E[U].constructor))}};
YkJ=function(t){for(var E=_.M(MIY),p=E.next();!p.done;p=E.next())if(p=p.value,t===p)return p;return Object};
mhi=function(t){return function(E,p){E.behaviors=E.behaviors||[];E.behaviors.push(t||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",E,p).prototype:void 0));Object.defineProperty(E,p,{get:function(){return this},
enumerable:!0,configurable:!0})}};
bu_=function(t){t=t===void 0?{}:t;return function(E,p){E.properties=E.properties||{};t.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?t.type=YkJ(Reflect.getMetadata("design:type",E,p)):t.type=String);var U=t,x=E.properties[p];E.properties[p]=x?Object.assign({},x,U):U}};
iut=function(t){return function(E,p){E.listeners=E.listeners||{};E.listeners[t]=p}};
qkE=function(){var t=_.t9.apply(0,arguments);if(t.length===0)throw Error("Wd");return function(E,p){E.observers=E.observers||[];E.observers.push(p+"("+t.join(",")+")")}};
Hut=function(){var t=_.t9.apply(0,arguments);return function(E,p,U){var x=Object.getOwnPropertyDescriptor(E,p).get,A="__compute__"+p;Object.defineProperty(E,A,{value:x,enumerable:!0});E.properties=E.properties||{};x=E.properties[p];x||(x={},E.properties[p]=x);x.computed=A+"("+t.join(",")+")";U.get=void 0}};
_.zx=function(t,E,p){_.PQ.call(this);this.JSC$11588_id_=null;this.usingListeners_=!1;this.JSC$11588_listener_=t;this.handler_=p;this.JSC$11588_win_=E||window;this.callback_=(0,_.Tg)(this.JSC$11590_doAction_,this)};
fSl=function(){};
ln=function(t){this.range_=t};
Gx=function(t){this.range_=t};
BFO=function(t){return _.no?new Gx(t):_.Ne?new ln(t):new DM(t)};
wfL=function(){var t=s8().JSC$9602_document_;return!!(t.webkitIsFullScreen||t.mozFullScreen||t.msFullscreenElement||t.fullscreenElement)};
_.sR=function(){var t=window.getSelection();return t&&RaJ(t)};
RaJ=function(t){var E=!1;if(t.createRange)try{var p=t.createRange()}catch(x){return null}else if(t.rangeCount){if(t.rangeCount>1){p=new Lo;E=t.rangeCount;for(var U=0;U<E;U++)p.browserRanges_.push(t.getRangeAt(U));return p}p=t.getRangeAt(0);E=VI_(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset)}else return null;return Qqj(BFO(p),E)};
_.Tx=function(t,E){return _.P6(t,E,t,E)};
_.oE=function(t,E,p,U){return _.P6(t,E,p,U)};
VI_=function(t,E,p,U){if(t==p)return U<E;var x;if(t.nodeType==1&&E)if(x=t.childNodes[E])t=x,E=0;else if(_.wV(t,p))return!0;if(p.nodeType==1&&U)if(x=p.childNodes[U])p=x,U=0;else if(_.wV(p,t))return!1;return(CkY(t,p)||E-U)>0};
W6=function(t,E,p){_.PQ.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=t;this.scrollTimer_=new _.vQ(50);this.JSC$11667_eventHandler_=new _.Kg(this);this.scrollDelta_=new _.gg;this.containerIsActuallyContent_=t.tagName==="BODY"||t.tagName==="HTML";this.containerBounds_=jq8(t);this.containerIsActuallyContent_&&(t=_.NX(),this.containerBounds_.height=t.height,this.containerBounds_.width=t.width);this.margin_=E||0;if(E){if(E=this.containerBounds_.clone(),t=this.margin_){var U=
Math.min(t,E.height*.25);E.top+=U;E.height-=2*U;t=Math.min(t,E.width*.25);E.left+=t;E.width-=2*t}}else E=this.containerBounds_;this.scrollBounds_=E;p||this.JSC$11667_eventHandler_.listen(_.S2(this.containerNode_),"mousemove",this.JSC$11669_onMouseMove);this.JSC$11667_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11669_onTick_)};
rIl=function(t,E,p,U,x,A,m,b){this.x0=t;this.y0=E;this.x1=p;this.y1=U;this.x2=x;this.y2=A;this.x3=m;this.y3=b};
_.$n=function(t){this.errorMessage_=null;this.result_=[];this.JSC$11757_buffer_="";this.stack_=[];this.JSC$11757_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!t||!t.deliverMessageAsRawString)};
_.Ko=function(t){this.mechanism=t};
v6=function(t,E){this.JSC$11764_key_=t;this.JSC$11764_value_=E};
_.yO=function(t,E){this.JSC$11770_map_={};this.JSC$11770_keys_=[];this.version_=this.size=0;var p=arguments.length;if(p>1){if(p%2)throw Error("ma");for(var U=0;U<p;U+=2)this.set(arguments[U],arguments[U+1])}else t&&this.addAll(t)};
dh8=function(){this.JSC$11773_map_=new _.yO;this.JSC$11773_head_=new kGO("");this.JSC$11773_head_.next=this.JSC$11773_head_.prev=this.JSC$11773_head_};
JIt=function(t){if(t>=55296&&t<=57343||t>1114111)return"\ufffd";t in u9$&&(t=u9$[t]);var E="";t>65535&&(t-=65536,E+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023);return E+=String.fromCharCode(t)};
ISL=function(t,E){return t<E?1:-1};
ZuO=function(){return function(t){return t.charAt(1)==="#"?t.charAt(2)==="X"||t.charAt(2)==="x"?JIt(parseInt(t.substr(3),16)):JIt(parseInt(t.substr(2),10)):gMY[t.slice(1,-1)]}};
hai=function(t){return t.slice(1,t.length-1).trim().replace(OuE,function(E){return XfJ[E]||" "})};
Sf=function(t){return t===32||t===9};
c6=function(t,E){return E<t.length?t.charCodeAt(E):-1};
aSj=function(t){for(;t;){if(t._lastLineBlank)return!0;var E=t.type;if(E==="list"||E==="item")t=t._lastChild;else break}return!1};
to=function(t){if(ea$.test(t)){var E=1,p=0,U=0;for(t[p]=="|"&&p++;p<t.length;){switch(t[p]){case "|":U=1;break;case " ":break;case "\t":break;default:U&&(U=0,E++)}p++}return FSL.test(t)?-E:E}return 0};
zaD=function(t){return t=="table"||t=="row"||t=="cell"};
lSD=function(){return new Em("document",[[1,1],[0,0]])};
GGY=function(){};
p_=function(){var t={safe:!1};t=t||{};t.softbreak=t.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=t};
LSl=function(t,E){var p="";if(t)if(t=t.toLowerCase(),t===" "||nMi.test(t))p="space";else if(NF$.test(t))p="esc";else if(t.length==1){if(!E||DhY.test(t))p=t}else p=sq$.test(t)?t.replace("arrow",""):t=="multiply"?"*":t;return p};
WS0=function(t,E){var p=t.hasModifiers;if(E.key)p=LSl(E.key,p);else if(E.detail&&E.detail.key)p=LSl(E.detail.key,p);else{p=E.keyIdentifier;var U="";p&&(p in Pk0?U=Pk0[p]:TFE.test(p)?(p=parseInt(p.replace("U+","0x"),16),U=String.fromCharCode(p).toLowerCase()):U=p.toLowerCase());(p=U)||(p=E.keyCode,U="",Number(p)&&(p>=65&&p<=90?U=String.fromCharCode(32+p):p>=112&&p<=123?U="f"+(p-112+1):p>=48&&p<=57?U=String(p-48):p>=96&&p<=105?U=String(p-96):U=oMO[p]),p=U);p=p||""}return p===t.key&&(!t.hasModifiers||
!!E.shiftKey===!!t.shiftKey&&!!E.ctrlKey===!!t.ctrlKey&&!!E.altKey===!!t.altKey&&!!E.metaKey===!!t.metaKey)};
KSl=function(t){return t.length===1?{combo:t,key:t,event:"keydown"}:t.split("+").reduce(function(E,p){var U=p.split(":");p=U[0];U=U[1];p in $hO?(E[$hO[p]]=!0,E.hasModifiers=!0):(E.key=p,E.event=U||"keydown");return E},{combo:t.split(":").shift()})};
vMJ=function(t){return t.trim().split(" ").map(function(E){return KSl(E)})};
yIE=function(t,E){if(t&&t.fn){var p=t.fn;t.fn=function(){try{p.apply(this,arguments)}catch(U){if(U instanceof Um)console.warn("Argument '"+U.arg+"'"+(E?" for method '"+E+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw U;}}}return t};
cI_=function(){var t=[],E;var p=p||_.SkO.length;for(E=0;E<8;E++)t[E]=_.SkO[0|Math.random()*p];return t.join("")};
tvD=function(){var t=_.t9.apply(0,arguments);return t.length===0?function(E){return E}:t.length===1?t[0]:t.reduce(function(E,p){return function(){return E(p.apply(null,_.KB(_.t9.apply(0,arguments))))}})};
Ei8=function(){var t=_.t9.apply(0,arguments);return function(E){return function(p,U){p=E(p,U);var x=function(){throw Error("Ge");},A={getState:p.getState,
dispatch:function(m){return x.apply(null,[m].concat(_.KB(_.t9.apply(1,arguments))))}};
U=t.map(function(m){return m(A)});
x=tvD.apply(null,_.KB(U))(p.dispatch);return Object.assign({},p,{dispatch:x})}}};
xx_=function(t){Object.keys(t).forEach(function(E){var p=t[E];if(typeof p(void 0,{type:p7L})==="undefined")throw Error("He`"+E);if(typeof p(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+Ux_()})==="undefined")throw Error("Ie`"+E+"`"+p7L);})};
xx=function(t){for(var E=Object.keys(t),p={},U=0;U<E.length;U++){var x=E[U];typeof t[x]==="function"&&(p[x]=t[x])}var A=Object.keys(p);try{xx_(p)}catch(b){var m=b}return function(b,f){b=b===void 0?{}:b;if(m)throw m;for(var B=!1,R={},V=0;V<A.length;V++){var Q=A[V],C=b[Q],d=(0,p[Q])(C,f);if(typeof d==="undefined")throw b=f&&f.type,Error("Je`"+(b?'"'+String(b)+'"':"(unknown type)")+"`"+Q);R[Q]=d;B=B||d!==C}return(B=B||A.length!==Object.keys(b).length)?R:b}};
AUL=function(t,E,p){function U(){if(R)throw Error("Ke");return b}
function x(C){if(typeof C!=="function")throw Error("Le`"+typeof C);if(R)throw Error("Me");var d=!0;B===f&&(B=f.slice());B.push(C);return function(){if(d){if(R)throw Error("Ne");d=!1;B===f&&(B=f.slice());var I=B.indexOf(C);B.splice(I,1);f=null}}}
function A(C){if(typeof C!=="object"||C===null)var d=!1;else{for(d=C;Object.getPrototypeOf(d)!==null;)d=Object.getPrototypeOf(d);d=Object.getPrototypeOf(C)===d}if(!d)throw Error("Oe`"+typeof C);if(typeof C.type==="undefined")throw Error("Pe");if(R)throw Error("Qe");try{R=!0,b=m(b,C)}finally{R=!1}d=f=B;for(var I=0;I<d.length;I++)(0,d[I])();return C}
if(typeof E==="function"&&typeof p==="function"||typeof p==="function"&&typeof arguments[3]==="function")throw Error("Re");typeof E==="function"&&typeof p==="undefined"&&(p=E,E=void 0);if(typeof p!=="undefined"){if(typeof p!=="function")throw Error("Se`"+typeof p);return p(AUL)(t,E)}if(typeof t!=="function")throw Error("Te`"+typeof t);var m=t,b=E,f=[],B=f,R=!1;A({type:p7L});var V={},Q=(V.dispatch=A,V.subscribe=x,V.getState=U,V.replaceReducer=function(C){if(typeof C!=="function")throw Error("Ue`"+
typeof C);m=C;A({type:YHK});return Q},V[MvJ]=function(){var C={};
return C.subscribe=function(d){function I(){d.next&&d.next(U())}
if(typeof d!=="object"||d===null)throw new TypeError("Ve`"+typeof d);I();return{unsubscribe:x(I)}},C[MvJ]=function(){return this},C},V);
return Q};
mx_=function(t){function E(){x&&(x=!1,t());A&&U()}
function p(){requestAnimationFrame(E)}
function U(){var b=Date.now();if(x){if(b-m<2)return;A=!0}else x=!0,A=!1,setTimeout(p,20);m=b}
var x=!1,A=!1,m=0;return U};
Ao=function(t){return typeof t==="number"?t:parseFloat(t)||0};
bJ_=function(t){return _.t9.apply(1,arguments).reduce(function(E,p){return E+Ao(t["border-"+p+"-width"])},0)};
fvD=function(t){if(iJ0[t])return iJ0[t];var E=globalThis[t],p=E.prototype,U=t in qHl?qHl[t]:void 0;U=!(!U||!U.every(function(f){var B,R;return!!((B=Object.getOwnPropertyDescriptor(p,f))==null?0:(R=B.get)==null?0:R.toString().includes("[native code]"))}));
var x=t in HJ8?HJ8[t]:void 0;x=!(!x||!x.every(function(f){var B;return typeof p[f]==="function"&&((B=p[f])==null?void 0:B.toString().includes("[native code]"))}));
if(U&&x&&!globalThis.Zone)return iJ0[t]=E.prototype;try{var A=document.createElement("iframe");document.body.appendChild(A);var m=A.contentWindow;if(!m)return E.prototype;var b=m[t].prototype;document.body.removeChild(A);return b?iJ0[t]=b:p}catch(f){return p}};
Yx=function(t,E,p){var U=t+"."+String(p);if(B0_[U])return B0_[U].call(E);t=fvD(t);var x;t=(x=Object.getOwnPropertyDescriptor(t,p))==null?void 0:x.get;if(!t)return E[p];B0_[U]=t;return t.call(E)};
Rm_=function(t,E){var p="Node."+String(E);if(w7E[p])return w7E[p].bind(t);var U=fvD("Node")[E];if(typeof U!=="function")return t[E];w7E[p]=U;return U.bind(t)};
MG=function(t,E,p){try{if(!(E in t))return function(){};
var U=t[E],x=p(U);typeof x==="function"&&(x.prototype=x.prototype||{},Object.defineProperties(x,{__rrweb_original__:{enumerable:!1,value:U}}));t[E]=x;return function(){t[E]=U}}catch(A){return function(){}}};
iH=function(t){var E=t&&"host"in t&&"mode"in t&&mV(t)||null;return!!(E&&"shadowRoot"in E&&bH(E)===t)};
qG=function(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"};
VvO=function(t){t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return t};
Cd_=function(t){try{var E=t.rules||t.cssRules;if(!E)return null;var p=t.href;!p&&t.ownerNode&&(p=t.ownerNode.baseURI);var U=Array.from(E,function(x){return QQD(x,p)}).join("");
return VvO(U)}catch(x){return null}};
QQD=function(t,E){if("styleSheet"in t){try{var p;if(!(p=Cd_(t.styleSheet))){var U=t.cssText;if(U.split('"').length<3)p=U;else{var x=["@import","url("+JSON.stringify(t.href)+")"];t.layerName===""?x.push("layer"):t.layerName&&x.push("layer("+t.layerName+")");t.supportsText&&x.push("supports("+t.supportsText+")");t.media.length&&x.push(t.media.mediaText);p=x.join(" ")+";"}}var A=p}catch(m){A=t.cssText}return t.styleSheet.href?jQt(A,t.styleSheet.href):A}A=t.cssText;"selectorText"in t&&t.selectorText.includes(":")&&
(A=A.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return E?jQt(A,E):A};
rUY=function(t){var E=t.element;var p=t.maskInputOptions;var U=t.tagName;var x=t.type;var A=t.value;t=t.maskInputFn;A=A||"";x=x&&x.toLowerCase();if(p[U.toLowerCase()]||x&&p[x])A=t?t(A,E):"*".repeat(A.length);return A};
klt=function(t){var E=t.getContext("2d");if(!E)return!0;for(var p=0;p<t.width;p+=50)for(var U=0;U<t.height;U+=50){var x=E.getImageData;if((new Uint32Array(("__rrweb_original__"in x?x.__rrweb_original__:x).call(E,p,U,Math.min(50,t.width-p),Math.min(50,t.height-U)).data.buffer)).some(function(A){return A!==0}))return!1}return!0};
dxK=function(t){var E=t.type;return t.hasAttribute("data-rr-is-password")?"password":E?E.toLowerCase():null};
uBD=function(t){try{var E=new URL(t,window.location.href)}catch(x){return null}var p,U;return(U=(p=E.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:p[1])!=null?U:null};
jQt=function(t,E){return(t||"").replace(JUj,function(p,U,x,A,m,b){x=x||m||b;U=U||A||"";if(!x)return p;if(IvO.test(x)||giO.test(x)||ZJK.test(x))return"url("+U+x+U+")";if(x[0]==="/")return p=E.indexOf("//")>-1?E.split("/").slice(0,3).join("/"):E.split("/")[0],p=p.split("?")[0],"url("+U+(p+x)+U+")";p=E.split("/");A=x.split("/");p.pop();A=_.M(A);for(x=A.next();!x.done;x=A.next())x=x.value,x!=="."&&(x===".."?p.pop():p.push(x));return"url("+U+p.join("/")+U+")"})};
OJL=function(t,E){return(E=E===void 0?!1:E)?t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
X7J=function(t,E){var p=p===void 0?!1:p;E=Array.from(E.childNodes);var U=[],x=0;if(E.length>1&&t&&typeof t==="string")for(var A=OJL(t,p),m=A.length/t.length,b=1;b<E.length;b++)if(E[b].textContent&&typeof E[b].textContent==="string"){for(var f=OJL(E[b].textContent,p),B=3;B<f.length&&(f[B].match(/[a-zA-Z0-9]/)||f.indexOf(f.substring(0,B),1)!==-1);B++);for(;B<f.length;B++){var R=f.substring(0,B),V=A.split(R),Q=-1;if(V.length===2)Q=V[0].length;else if(V.length>2&&V[0]===""&&E[b-1].textContent!=="")Q=
A.indexOf(R,1);else if(V.length===1){R=R.substring(0,R.length-1);V=A.split(R);if(V.length<=1)return U.push(t),U;B=101}else B===f.length-1&&(Q=A.indexOf(R));if(V.length>=2&&B>100){var C=E[b-1].textContent;C&&typeof C==="string"&&(Q=A.indexOf(R,OJL(C).length));Q===-1&&(Q=V[0].length)}if(Q!==-1){for(f=Math.floor(Q/m);f>0&&f<t.length;){x+=1;if(x>50*E.length)return U.push(t),U;B=OJL(t.substring(0,f),p);if(B.length===Q){U.push(t.substring(0,f));t=t.substring(f);A=A.substring(Q);break}else f=B.length<Q?
f+Math.max(1,Math.floor((Q-B.length)/m)):f-Math.max(1,Math.floor((B.length-Q)*m))}break}}}U.push(t);return U};
av8=function(){return hmJ++};
FmJ=function(t){if(t instanceof HTMLFormElement)return"form";t=t.tagName.toLowerCase();return emJ.test(t)?"div":t};
niO=function(t,E){function p(B){return(B=B.exec(E.substring(U)))?(B=B[0],U+=B.length,B):""}
if(E.trim()==="")return E;for(var U=0,x=[];;){p(zmE);if(U>=E.length)break;var A=p(lvi);if(A.slice(-1)===",")A=GlO(t,A.substring(0,A.length-1)),x.push(A);else{var m="";A=GlO(t,A);for(var b=!1;;){var f=E.charAt(U);if(f===""){x.push((A+m).trim());break}else if(b)f===")"&&(b=!1);else if(f===","){U+=1;x.push((A+m).trim());break}else f==="("&&(b=!0);m+=f;U+=1}}}return x.join(", ")};
GlO=function(t,E){return E&&E.trim()!==""?N0J(t,E):E};
N0J=function(t,E){var p=DxJ.get(t);p||(p=t.createElement("a"),DxJ.set(t,p));if(!E)E="";else if(E.startsWith("blob:")||E.startsWith("data:"))return E;pB(p,E);return p.href};
sQj=function(t,E,p,U){return U?p==="src"||p==="href"&&(E!=="use"||U[0]!=="#")||p==="xlink:href"&&U[0]!=="#"||p==="background"&&(E==="table"||E==="td"||E==="th")?GlO(t,U):p==="srcset"?niO(t,U):p==="style"?jQt(U,N0J(t)):E==="object"&&p==="data"?GlO(t,U):U:U};
Lmj=function(t,E){return(t==="video"||t==="audio")&&E==="autoplay"};
Pd8=function(t,E,p){try{if(typeof E==="string"){if(t.classList.contains(E))return!0}else for(var U=t.classList.length;U--;)if(E.test(t.classList[U]))return!0;if(p)return t.matches(p)}catch(x){}return!1};
T0$=function(t,E,p){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return p?T0$(HV(t),E,p):!1;for(var U=t.classList.length;U--;)if(E.test(t.classList[U]))return!0;return p?T0$(HV(t),E,p):!1};
oiY=function(t,E,p,U){if(t.nodeType===t.ELEMENT_NODE){if(!f_(t).length)return!1}else{if(BV(t)===null)return!1;t=BV(t)}try{if(typeof E==="string")if(U){if(t.closest("."+E))return!0}else{if(t.classList.contains(E))return!0}else if(T0$(t,E,U))return!0;if(p)if(U){if(t.closest(p))return!0}else if(t.matches(p))return!0}catch(x){}return!1};
WmJ=function(t,E,p){var U=t.contentWindow;if(U){var x=!1;try{var A=U.document.readyState}catch(b){return}if(A!=="complete"){var m=setTimeout(function(){x||(E(),x=!0)},p);
t.addEventListener("load",function(){clearTimeout(m);x=!0;E()})}else U.location.href==="about:blank"&&t.src!=="about:blank"&&t.src!==""||setTimeout(E,0),t.addEventListener("load",E)}};
$xO=function(t,E,p){var U=!1;try{var x=t.sheet}catch(m){return}if(!x){var A=setTimeout(function(){U||(E(),U=!0)},p);
t.addEventListener("load",function(){clearTimeout(A);U=!0;E()})}};
yUt=function(t,E){var p=E.doc,U=E.blockClass,x=E.blockSelector,A=E.needsMask,m=E.inlineStylesheet,b=E.maskInputOptions===void 0?{}:E.maskInputOptions,f=E.maskTextFn,B=E.maskInputFn,R=E.dataURLOptions===void 0?{}:E.dataURLOptions,V=E.inlineImages,Q=E.recordCanvas,C=E.keepIframeSrcFn,d=E.newlyAddedElement===void 0?!1:E.newlyAddedElement,I=E.cssCaptured===void 0?!1:E.cssCaptured;E=E.mirror;E.nodeMetaMap.has(p)?(E=E.getId(p),E=E===1?void 0:E):E=void 0;switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:t.compatMode}:{type:0,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:1,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:E};case t.ELEMENT_NODE:return Kml(t,{doc:p,blockClass:U,blockSelector:x,inlineStylesheet:m,maskInputOptions:b,maskInputFn:B,dataURLOptions:R,inlineImages:V,recordCanvas:Q,keepIframeSrcFn:C,newlyAddedElement:d,rootId:E});case t.TEXT_NODE:return m=(U=HV(t))&&U.tagName,U="",x=m==="STYLE"?!0:void 0,(m=m==="SCRIPT"?!0:void 0)?
U="SCRIPT_PLACEHOLDER":I||(U=viE(t),x&&U&&(U=jQt(U,N0J(p)))),!x&&!m&&U&&A&&(U=f?f(U,BV(t)):U.replace(/[\S]/g,"*")),{type:3,textContent:U||"",rootId:E};case t.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:E};case t.COMMENT_NODE:return{type:5,textContent:viE(t)||"",rootId:E};default:return!1}};
Kml=function(t,E){var p=E.doc,U=E.inlineStylesheet,x=E.maskInputOptions===void 0?{}:E.maskInputOptions,A=E.maskInputFn,m=E.dataURLOptions===void 0?{}:E.dataURLOptions,b=E.inlineImages,f=E.recordCanvas,B=E.keepIframeSrcFn,R=E.newlyAddedElement===void 0?!1:E.newlyAddedElement,V=E.rootId;E=Pd8(t,E.blockClass,E.blockSelector);for(var Q=FmJ(t),C={},d=t.attributes.length,I=0;I<d;I++){var O=t.attributes[I];Lmj(Q,O.name)||(C[O.name]=sQj(p,Q,O.name.toLowerCase(),O.value))}Q==="link"&&U&&(U=Array.from(p.styleSheets).find(function(W){return W.href===
t.href}),d=null,U&&(d=Cd_(U)),d&&(delete C.rel,delete C.href,C._cssText=d));
Q==="style"&&t.sheet&&(U=Cd_(t.sheet))&&(t.childNodes.length>1&&(U=X7J(U,t).join("/* rr_split */")),C._cssText=U);if(Q==="input"||Q==="textarea"||Q==="select")U=t.value,d=t.checked,C.type!=="radio"&&C.type!=="checkbox"&&C.type!=="submit"&&C.type!=="button"&&U?C.value=rUY({element:t,type:dxK(t),tagName:Q,value:U,maskInputOptions:x,maskInputFn:A}):d&&(C.checked=d);Q==="option"&&(t.selected&&!x.select?C.selected=!0:delete C.selected);Q==="dialog"&&t.open&&(C.rr_open_mode=t.matches("dialog:modal")?"modal":
"non-modal");Q==="canvas"&&f&&(t.__context==="2d"?klt(t)||(C.rr_dataURL=t.toDataURL(m.type,m.quality)):"__context"in t||(x=t.toDataURL(m.type,m.quality),A=p.createElement("canvas"),A.width=t.width,A.height=t.height,A=A.toDataURL(m.type,m.quality),x!==A&&(C.rr_dataURL=x)));if(Q==="img"&&b){wJ||(wJ=p.createElement("canvas"),SHK=wJ.getContext("2d"));var a=t.currentSrc||t.getAttribute("src")||"<unknown-src>",F=t.crossOrigin,L=function(){t.removeEventListener("load",L);try{wJ.width=t.naturalWidth,wJ.height=
t.naturalHeight,SHK.drawImage(t,0,0),C.rr_dataURL=wJ.toDataURL(m.type,m.quality)}catch(W){if(t.crossOrigin!=="anonymous"){t.crossOrigin="anonymous";t.complete&&t.naturalWidth!==0?L():t.addEventListener("load",L);return}console.warn("Cannot inline img src="+a+"! Error: "+W)}t.crossOrigin==="anonymous"&&(F?C.crossOrigin=F:t.removeAttribute("crossorigin"))};
t.complete&&t.naturalWidth!==0?L():t.addEventListener("load",L)}if(Q==="audio"||Q==="video")p=C,p.rr_mediaState=t.paused?"paused":"played",p.rr_mediaCurrentTime=t.currentTime,p.rr_mediaPlaybackRate=t.playbackRate,p.rr_mediaMuted=t.muted,p.rr_mediaLoop=t.loop,p.rr_mediaVolume=t.volume;R||(t.scrollLeft&&(C.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(C.rr_scrollTop=t.scrollTop));E&&(R=t.getBoundingClientRect(),C={class:C.class,rr_width:R.width+"px",rr_height:R.height+"px"});Q!=="iframe"||B(C.src)||(t.contentDocument||
(C.rr_src=C.src),delete C.src);var D;try{customElements.get(Q)&&(D=!0)}catch(W){}return{type:2,tagName:Q,attributes:C,childNodes:[],isSVG:!(t.tagName!=="svg"&&!t.ownerSVGElement)||void 0,needBlock:E,rootId:V,isCustom:D}};
Ri=function(t){return t===void 0||t===null?"":t.toLowerCase()};
cUt=function(t,E){return E.comment&&t.type===5||t.type===2&&(E.script&&(t.tagName==="script"||t.tagName==="link"&&(t.attributes.rel==="preload"&&t.attributes.as==="script"||t.attributes.rel==="modulepreload")||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href==="string"&&uBD(t.attributes.href)==="js")||E.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(Ri(t.attributes.name).match(/^msapplication-tile(image|color)$/)||Ri(t.attributes.name)===
"application-name"||Ri(t.attributes.rel)==="icon"||Ri(t.attributes.rel)==="apple-touch-icon"||Ri(t.attributes.rel)==="shortcut icon"))||t.tagName==="meta"&&(E.headMetaDescKeywords&&Ri(t.attributes.name).match(/^description|keywords$/)||E.headMetaSocial&&(Ri(t.attributes.property).match(/^(og|twitter|fb):/)||Ri(t.attributes.name).match(/^(og|twitter):/)||Ri(t.attributes.name)==="pinterest")||E.headMetaRobots&&(Ri(t.attributes.name)==="robots"||Ri(t.attributes.name)==="googlebot"||Ri(t.attributes.name)===
"bingbot")||E.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0||E.headMetaAuthorship&&(Ri(t.attributes.name)==="author"||Ri(t.attributes.name)==="generator"||Ri(t.attributes.name)==="framework"||Ri(t.attributes.name)==="publisher"||Ri(t.attributes.name)==="progid"||Ri(t.attributes.property).match(/^article:/)||Ri(t.attributes.property).match(/^product:/))||E.headMetaVerification&&(Ri(t.attributes.name)==="google-site-verification"||Ri(t.attributes.name)==="yandex-verification"||Ri(t.attributes.name)===
"csrf-token"||Ri(t.attributes.name)==="p:domain_verify"||Ri(t.attributes.name)==="verify-v1"||Ri(t.attributes.name)==="verification"||Ri(t.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
VL=function(t,E){var p=E.doc,U=E.mirror,x=E.blockClass,A=E.blockSelector,m=E.maskTextClass,b=E.maskTextSelector,f=E.skipChild===void 0?!1:E.skipChild,B=E.inlineStylesheet===void 0?!0:E.inlineStylesheet,R=E.maskInputOptions===void 0?{}:E.maskInputOptions,V=E.maskTextFn,Q=E.maskInputFn,C=E.slimDOMOptions,d=E.dataURLOptions===void 0?{}:E.dataURLOptions,I=E.inlineImages===void 0?!1:E.inlineImages,O=E.recordCanvas===void 0?!1:E.recordCanvas,a=E.onSerialize,F=E.onIframeLoad,L=E.iframeLoadTimeout===void 0?
5E3:E.iframeLoadTimeout,D=E.onStylesheetLoad,W=E.stylesheetLoadTimeout===void 0?5E3:E.stylesheetLoadTimeout,K=E.keepIframeSrcFn===void 0?function(){return!1}:E.keepIframeSrcFn,v=E.newlyAddedElement===void 0?!1:E.newlyAddedElement,YL=E.cssCaptured===void 0?!1:E.cssCaptured,bY=E.needsMask,kL=E.preserveWhiteSpace===void 0?!0:E.preserveWhiteSpace;
bY||(bY=oiY(t,m,b,bY===void 0));var R0=yUt(t,{doc:p,mirror:U,blockClass:x,blockSelector:A,needsMask:bY,inlineStylesheet:B,maskInputOptions:R,maskTextFn:V,maskInputFn:Q,dataURLOptions:d,inlineImages:I,recordCanvas:O,keepIframeSrcFn:K,newlyAddedElement:v,cssCaptured:YL});if(!R0)return console.warn(t,"not serialized"),null;v=U.nodeMetaMap.has(t)?U.getId(t):cUt(R0,C)||!kL&&R0.type===3&&!R0.textContent.replace(/^\s+|\s+$/gm,"").length?-2:hmJ++;E=Object.assign(R0,{id:v});U.add(t,E);if(v===-2)return null;
a&&a(t);v=!f;E.type===2&&(v=v&&!E.needBlock,delete E.needBlock,(YL=bH(t))&&qG(YL)&&(E.isShadowHost=!0));if((E.type===0||E.type===2)&&v){C.headWhitespace&&E.type===2&&E.tagName==="head"&&(kL=!1);f={doc:p,mirror:U,blockClass:x,blockSelector:A,needsMask:bY,maskTextClass:m,maskTextSelector:b,skipChild:f,inlineStylesheet:B,maskInputOptions:R,maskTextFn:V,maskInputFn:Q,slimDOMOptions:C,dataURLOptions:d,inlineImages:I,recordCanvas:O,preserveWhiteSpace:kL,onSerialize:a,onIframeLoad:F,iframeLoadTimeout:L,
onStylesheetLoad:D,stylesheetLoadTimeout:W,keepIframeSrcFn:K,cssCaptured:!1};if(E.type!==2||E.tagName!=="textarea"||E.attributes.value===void 0)for(E.type===2&&E.attributes._cssText!==void 0&&typeof E.attributes._cssText==="string"&&(f.cssCaptured=!0),v=_.M(Array.from(f_(t))),YL=v.next();!YL.done;YL=v.next())(YL=VL(YL.value,f))&&E.childNodes.push(YL);v=null;if(t.nodeType===t.ELEMENT_NODE&&(v=bH(t))){YL=_.M(Array.from(f_(v)));for(var j$=YL.next();!j$.done;j$=YL.next())if(j$=VL(j$.value,f))qG(v)&&(j$.isShadow=
!0),E.childNodes.push(j$)}}(f=HV(t))&&iH(f)&&qG(f)&&(E.isShadow=!0);E.type===2&&E.tagName==="iframe"&&WmJ(t,function(){var lY=t.contentDocument;lY&&F&&(lY=VL(lY,{doc:lY,mirror:U,blockClass:x,blockSelector:A,needsMask:bY,maskTextClass:m,maskTextSelector:b,skipChild:!1,inlineStylesheet:B,maskInputOptions:R,maskTextFn:V,maskInputFn:Q,slimDOMOptions:C,dataURLOptions:d,inlineImages:I,recordCanvas:O,preserveWhiteSpace:kL,onSerialize:a,onIframeLoad:F,iframeLoadTimeout:L,onStylesheetLoad:D,stylesheetLoadTimeout:W,
keepIframeSrcFn:K}))&&F(t,lY)},L);
E.type===2&&E.tagName==="link"&&typeof E.attributes.rel==="string"&&(E.attributes.rel==="stylesheet"||E.attributes.rel==="preload"&&typeof E.attributes.href==="string"&&uBD(E.attributes.href)==="css")&&$xO(t,function(){if(D){var lY=VL(t,{doc:p,mirror:U,blockClass:x,blockSelector:A,needsMask:bY,maskTextClass:m,maskTextSelector:b,skipChild:!1,inlineStylesheet:B,maskInputOptions:R,maskTextFn:V,maskInputFn:Q,slimDOMOptions:C,dataURLOptions:d,inlineImages:I,recordCanvas:O,preserveWhiteSpace:kL,onSerialize:a,
onIframeLoad:F,iframeLoadTimeout:L,onStylesheetLoad:D,stylesheetLoadTimeout:W,keepIframeSrcFn:K});lY&&D(t,lY)}},W);
return E};
tr0=function(t){var E=document;t=t||{};var p=t.maskAllInputs===void 0?!1:t.maskAllInputs,U=t.slimDOM===void 0?!1:t.slimDOM;return VL(E,{doc:E,mirror:t.mirror===void 0?new QL:t.mirror,blockClass:t.blockClass===void 0?"rr-block":t.blockClass,blockSelector:t.blockSelector===void 0?null:t.blockSelector,maskTextClass:t.maskTextClass===void 0?"rr-mask":t.maskTextClass,maskTextSelector:t.maskTextSelector===void 0?null:t.maskTextSelector,skipChild:!1,inlineStylesheet:t.inlineStylesheet===void 0?!0:t.inlineStylesheet,
maskInputOptions:p===!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}:p===!1?{password:!0}:p,maskTextFn:t.maskTextFn,maskInputFn:t.maskInputFn,slimDOMOptions:U===!0||U==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:U==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:U===!1?{}:U,dataURLOptions:t.dataURLOptions,
inlineImages:t.inlineImages===void 0?!1:t.inlineImages,recordCanvas:t.recordCanvas===void 0?!1:t.recordCanvas,preserveWhiteSpace:t.preserveWhiteSpace,onSerialize:t.onSerialize,onIframeLoad:t.onIframeLoad,iframeLoadTimeout:t.iframeLoadTimeout,onStylesheetLoad:t.onStylesheetLoad,stylesheetLoadTimeout:t.stylesheetLoadTimeout,keepIframeSrcFn:t.keepIframeSrcFn===void 0?function(){return!1}:t.keepIframeSrcFn,
newlyAddedElement:!1})};
C_=function(t,E,p){p=p===void 0?document:p;var U={capture:!0,passive:!0};p.addEventListener(t,E,U);return function(){return p.removeEventListener(t,E,U)}};
jQ=function(t,E,p){p=p===void 0?{}:p;var U=null,x=0;return function(){var A=_.t9.apply(0,arguments),m=Date.now();x||p.leading!==!1||(x=m);var b=E-(m-x),f=this;b<=0||b>E?(U&&(clearTimeout(U),U=null),x=m,t.apply(f,A)):U||p.trailing===!1||(U=setTimeout(function(){x=p.leading===!1?0:Date.now();U=null;t.apply(f,A)},b))}};
EE8=function(t,E,p,U,x){x=x===void 0?window:x;var A=x.Object.getOwnPropertyDescriptor(t,E);x.Object.defineProperty(t,E,U?p:{set:function(m){var b=this;setTimeout(function(){p.set.call(b,m)},0);
A&&A.set&&A.set.call(this,m)}});
return function(){return EE8(t,E,A||{},!0)}};
plK=function(t){var E=t.document,p,U,x,A;return{left:E.scrollingElement?E.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:E.documentElement.scrollLeft||(E==null?void 0:E.body)&&((p=BV(E.body))==null?void 0:p.scrollLeft)||(E==null?void 0:(U=E.body)==null?void 0:U.scrollLeft)||0,top:E.scrollingElement?E.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:(E==null?void 0:E.documentElement.scrollTop)||(E==null?void 0:E.body)&&((x=BV(E.body))==null?void 0:x.scrollTop)||(E==
null?void 0:(A=E.body)==null?void 0:A.scrollTop)||0}};
UCO=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
xCY=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
AYY=function(t){return t?t.nodeType===t.ELEMENT_NODE?t:BV(t):null};
rJ=function(t,E,p,U){if(!t)return!1;t=AYY(t);if(!t)return!1;try{if(typeof E==="string"){if(t.classList.contains(E)||U&&t.closest("."+E)!==null)return!0}else if(T0$(t,E,U))return!0}catch(x){}return p&&(t.matches(p)||U&&t.closest(p)!==null)?!0:!1};
Y40=function(t,E,p){return t.tagName==="TITLE"&&p.headTitleMutations?!0:E.getId(t)===-2};
MrK=function(t,E){if(iH(t))return!1;var p=E.getId(t);return E.has(p)?(p=HV(t))&&p.nodeType===t.DOCUMENT_NODE?!1:p?MrK(p,E):!0:!0};
mCK=function(){var t=t===void 0?window:t;"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
b3j=function(t,E){return!(t.nodeName!=="LINK"||t.nodeType!==t.ELEMENT_NODE||!t.getAttribute||t.getAttribute("rel")!=="stylesheet"||!E.nodeMetaMap.get(t))};
q4E=function(t){var E=null,p;"getRootNode"in t&&((p=i38(t))==null?void 0:p.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&mV(i38(t))&&(E=mV(i38(t)));return E};
H30=function(t){var E=t.ownerDocument;if(E){if(!(E=Rm_(E,"contains")(t)))if(E=t.ownerDocument){for(var p;p=q4E(t);)t=p;E=Rm_(E,"contains")(t)}else E=!1}else E=!1;return E};
fJ$=function(t,E){t.delete(E);f_(E).forEach(function(p){return fJ$(t,p)})};
BM8=function(t,E){for(var p=[t];p.length;)t=p.pop(),E.has(t)||(E.add(t),f_(t).forEach(function(U){return p.push(U)}))};
wlj=function(t,E){t.size===0?t=!1:t=(E=HV(E))?t.has(E):!1;return t};
VrJ=function(t,E){return t.size===0?!1:R_j(t,E)};
R_j=function(t,E){return(E=HV(E))?t.has(E)?!0:R_j(t,E):!1};
kx=function(t){try{if("composedPath"in t){var E=t.composedPath();if(E.length)return E[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(p){}return t&&t.target};
CBJ=function(t,E){var p=new QrO;dJ.push(p);p.init(t);t=new (fvD("MutationObserver").constructor)(uH(p.processMutations.bind(p)));t.observe(E,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return t};
rYE=function(t){var E=t.mousemoveCb;var p=t.sampling;var U=t.doc;var x=t.mirror;if(p.mousemove===!1)return function(){};
var A=[],m,b=jQ(uH(function(B){var R=Date.now()-m;E(A.map(function(V){V.timeOffset-=R;return V}),B);
A=[];m=null}),typeof p.mousemoveCallback==="number"?p.mousemoveCallback:500);
t=uH(jQ(uH(function(B){var R=kx(B),V=B.changedTouches?B.changedTouches[0]:B,Q=V.clientX;V=V.clientY;m||(m=jrL());A.push({x:Q,y:V,id:x.getId(R),timeOffset:jrL()-m});b(typeof DragEvent!=="undefined"&&B instanceof DragEvent?12:B instanceof MouseEvent?1:6)}),typeof p.mousemove==="number"?p.mousemove:50,{trailing:!1}));
var f=[C_("mousemove",t,U),C_("touchmove",t,U),C_("drag",t,U)];return uH(function(){f.forEach(function(B){return B()})})};
k4L=function(t){var E=t.mouseInteractionCb;var p=t.doc;var U=t.mirror;var x=t.blockClass;var A=t.blockSelector;t=t.sampling;if(t.mouseInteraction===!1)return function(){};
var m=t.mouseInteraction===!0||t.mouseInteraction===void 0?{}:t.mouseInteraction,b=[],f=null,B=function(R){return function(V){var Q=kx(V);if(!rJ(Q,x,A,!0)){var C=null,d=R;if("pointerType"in V){switch(V.pointerType){case "mouse":C=0;break;case "touch":C=2;break;case "pen":C=1}C===2&&(Jo[R]===1?d="TouchStart":Jo[R]===0&&(d="TouchEnd"))}else V.changedTouches&&(C=2);if(C!==null){if(f=C,d.startsWith("Touch")&&C===2||d.startsWith("Mouse")&&C===0)C=null}else Jo[R]===2&&(C=f,f=null);if(V=V.changedTouches?
V.changedTouches[0]:V)Q=U.getId(Q),uH(E)(Object.assign({},{type:Jo[d],id:Q,x:V.clientX,y:V.clientY},C!==null&&{pointerType:C}))}}};
Object.keys(Jo).filter(function(R){return Number.isNaN(Number(R))&&!R.endsWith("_Departed")&&m[R]!==!1}).forEach(function(R){var V=R.toLowerCase(),Q=B(R);
if(window.PointerEvent)switch(Jo[R]){case 1:case 0:V=V.replace("mouse","pointer");break;case 7:case 9:return}b.push(C_(V,Q,p))});
return uH(function(){b.forEach(function(R){return R()})})};
dC0=function(t){var E=t.scrollCb;var p=t.doc;var U=t.mirror;var x=t.blockClass;var A=t.blockSelector;return C_("scroll",uH(jQ(uH(function(m){var b=kx(m);b&&!rJ(b,x,A,!0)&&(m=U.getId(b),b===p&&p.defaultView?(b=plK(p.defaultView),E({id:m,x:b.left,y:b.top})):E({id:m,x:b.scrollLeft,y:b.scrollTop}))}),t.sampling.scroll||100)),p)};
uc0=function(t,E){var p=t.viewportResizeCb;var U=-1,x=-1;return C_("resize",uH(jQ(uH(function(){var A=UCO(),m=xCY();if(U!==A||x!==m)p({width:Number(m),height:Number(A)}),U=A,x=m}),200)),E.win)};
gEi=function(t){function E(O){var a=kx(O),F=O.isTrusted,L=a&&a.tagName;a&&L==="OPTION"&&(a=BV(a));if(!(!a||!L||JYt.indexOf(L)<0||rJ(a,m,b,!0)||a.classList.contains(f)||B&&a.matches(B))){var D=a.value,W=!1;O=dxK(a)||"";if(O==="radio"||O==="checkbox")W=a.checked;else if(R[L.toLowerCase()]||R[O])D=rUY({element:a,maskInputOptions:R,tagName:L,type:O,value:D,maskInputFn:V});p(a,C?{text:D,isChecked:W,userTriggered:F}:{text:D,isChecked:W});F=a.name;O==="radio"&&F&&W&&x.querySelectorAll('input[type="radio"][name="'+
F+'"]').forEach(function(K){if(K!==a){var v=K.value;p(K,C?{text:v,isChecked:!W,userTriggered:!1}:{text:v,isChecked:!W})}})}}
function p(O,a){var F=IJ$.get(O);F&&F.text===a.text&&F.isChecked===a.isChecked||(IJ$.set(O,a),O=A.getId(O),uH(U)(Object.assign({},a,{id:O})))}
var U=t.inputCb;var x=t.doc;var A=t.mirror;var m=t.blockClass;var b=t.blockSelector;var f=t.ignoreClass;var B=t.ignoreSelector;var R=t.maskInputOptions;var V=t.maskInputFn;var Q=t.sampling;var C=t.userTriggeredOnInput;var d=(Q.input==="last"?["change"]:["input","change"]).map(function(O){return C_(O,uH(E),x)}),I=x.defaultView;
if(!I)return function(){d.forEach(function(O){return O()})};
t=I.Object.getOwnPropertyDescriptor(I.HTMLInputElement.prototype,"value");Q=[[I.HTMLInputElement.prototype,"value"],[I.HTMLInputElement.prototype,"checked"],[I.HTMLSelectElement.prototype,"value"],[I.HTMLTextAreaElement.prototype,"value"],[I.HTMLSelectElement.prototype,"selectedIndex"],[I.HTMLOptionElement.prototype,"selected"]];t&&t.set&&d.push.apply(d,_.KB(Q.map(function(O){return EE8(O[0],O[1],{set:function(){uH(E)({target:this,isTrusted:!1})}},!1,I)})));
return uH(function(){d.forEach(function(O){return O()})})};
O3j=function(t){var E=[],p,U,x,A;Z3D("CSSGroupingRule")&&((p=t.parentRule)==null?void 0:(U=p.constructor)==null?void 0:U.name)==="CSSGroupingRule"||Z3D("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||Z3D("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||Z3D("CSSConditionRule")&&((x=t.parentRule)==null?void 0:(A=x.constructor)==null?void 0:A.name)==="CSSConditionRule"?(t=Array.from(t.parentRule.cssRules).indexOf(t),E.unshift(t)):t.parentStyleSheet&&(t=Array.from(t.parentStyleSheet.cssRules).indexOf(t),
E.unshift(t));return E};
Ii=function(t,E,p){var U,x;if(!t)return{};t.ownerNode?U=E.getId(t.ownerNode):x=p.getId(t);return{styleId:x,id:U}};
h_Y=function(t,E){var p=t.styleSheetRuleCb;var U=t.mirror;var x=t.stylesheetManager;var A=E.win;if(!A.CSSStyleSheet||!A.CSSStyleSheet.prototype)return function(){};
var m=A.CSSStyleSheet.prototype.insertRule;A.CSSStyleSheet.prototype.insertRule=new gJ(m,{apply:uH(function(Q,C,d){var I=_.M(d),O=I.next().value;I=I.next().value;var a=Ii(C,U,x.styleMirror),F=a.id;a=a.styleId;(F&&F!==-1||a&&a!==-1)&&p({id:F,styleId:a,adds:[{rule:O,index:I}]});return Q.apply(C,d)})});
A.CSSStyleSheet.prototype.addRule=function(Q,C,d){d=d===void 0?this.cssRules.length:d;return A.CSSStyleSheet.prototype.insertRule.apply(this,[Q+" { "+C+" }",d])};
var b=A.CSSStyleSheet.prototype.deleteRule;A.CSSStyleSheet.prototype.deleteRule=new gJ(b,{apply:uH(function(Q,C,d){var I=_.M(d).next().value,O=Ii(C,U,x.styleMirror),a=O.id;O=O.styleId;(a&&a!==-1||O&&O!==-1)&&p({id:a,styleId:O,removes:[{index:I}]});return Q.apply(C,d)})});
A.CSSStyleSheet.prototype.removeRule=function(Q){return A.CSSStyleSheet.prototype.deleteRule.apply(this,[Q])};
if(A.CSSStyleSheet.prototype.replace){var f=A.CSSStyleSheet.prototype.replace;A.CSSStyleSheet.prototype.replace=new gJ(f,{apply:uH(function(Q,C,d){var I=_.M(d).next().value,O=Ii(C,U,x.styleMirror),a=O.id;O=O.styleId;(a&&a!==-1||O&&O!==-1)&&p({id:a,styleId:O,replace:I});return Q.apply(C,d)})})}if(A.CSSStyleSheet.prototype.replaceSync){var B=A.CSSStyleSheet.prototype.replaceSync;
A.CSSStyleSheet.prototype.replaceSync=new gJ(B,{apply:uH(function(Q,C,d){var I=_.M(d).next().value,O=Ii(C,U,x.styleMirror),a=O.id;O=O.styleId;(a&&a!==-1||O&&O!==-1)&&p({id:a,styleId:O,replaceSync:I});return Q.apply(C,d)})})}var R={};
Xli("CSSGroupingRule")?R.CSSGroupingRule=A.CSSGroupingRule:(Xli("CSSMediaRule")&&(R.CSSMediaRule=A.CSSMediaRule),Xli("CSSConditionRule")&&(R.CSSConditionRule=A.CSSConditionRule),Xli("CSSSupportsRule")&&(R.CSSSupportsRule=A.CSSSupportsRule));var V={};Object.entries(R).forEach(function(Q){var C=_.M(Q);Q=C.next().value;C=C.next().value;V[Q]={insertRule:C.prototype.insertRule,deleteRule:C.prototype.deleteRule};C.prototype.insertRule=new gJ(V[Q].insertRule,{apply:uH(function(d,I,O){var a=_.M(O),F=a.next().value;
a=a.next().value;var L=Ii(I.parentStyleSheet,U,x.styleMirror),D=L.id;L=L.styleId;(D&&D!==-1||L&&L!==-1)&&p({id:D,styleId:L,adds:[{rule:F,index:[].concat(_.KB(O3j(I)),[a||0])}]});return d.apply(I,O)})});
C.prototype.deleteRule=new gJ(V[Q].deleteRule,{apply:uH(function(d,I,O){var a=_.M(O).next().value,F=Ii(I.parentStyleSheet,U,x.styleMirror),L=F.id;F=F.styleId;(L&&L!==-1||F&&F!==-1)&&p({id:L,styleId:F,removes:[{index:[].concat(_.KB(O3j(I)),[a])}]});return d.apply(I,O)})})});
return uH(function(){A.CSSStyleSheet.prototype.insertRule=m;A.CSSStyleSheet.prototype.deleteRule=b;f&&(A.CSSStyleSheet.prototype.replace=f);B&&(A.CSSStyleSheet.prototype.replaceSync=B);Object.entries(R).forEach(function(Q){var C=_.M(Q);Q=C.next().value;C=C.next().value;C.prototype.insertRule=V[Q].insertRule;C.prototype.deleteRule=V[Q].deleteRule})})};
e_i=function(t,E){var p=t.mirror;var U=t.stylesheetManager;var x=null;x=E.nodeName==="#document"?p.getId(E):p.getId(mV(E));var A,m,b;t=E.nodeName==="#document"?(A=E.defaultView)==null?void 0:A.Document:(m=E.ownerDocument)==null?void 0:(b=m.defaultView)==null?void 0:b.ShadowRoot;var f=(t==null?0:t.prototype)?Object.getOwnPropertyDescriptor(t==null?void 0:t.prototype,"adoptedStyleSheets"):void 0;if(x===null||x===-1||!t||!f)return function(){};
Object.defineProperty(E,"adoptedStyleSheets",{configurable:f.configurable,enumerable:f.enumerable,get:function(){var B;return(B=f.get)==null?void 0:B.call(this)},
set:function(B){var R,V=(R=f.set)==null?void 0:R.call(this,B);if(x!==null&&x!==-1)try{aJi(U,B,x)}catch(Q){}return V}});
return uH(function(){Object.defineProperty(E,"adoptedStyleSheets",{configurable:f.configurable,enumerable:f.enumerable,get:f.get,set:f.set})})};
FCK=function(t,E){var p=t.styleDeclarationCb;var U=t.mirror;var x=t.ignoreCSSAttributes;var A=t.stylesheetManager;var m=E.win;var b=m.CSSStyleDeclaration.prototype.setProperty;m.CSSStyleDeclaration.prototype.setProperty=new gJ(b,{apply:uH(function(B,R,V){var Q=_.M(V),C=Q.next().value,d=Q.next().value;Q=Q.next().value;if(x.has(C))return b.apply(R,[C,d,Q]);var I,O=Ii((I=R.parentRule)==null?void 0:I.parentStyleSheet,U,A.styleMirror);I=O.id;O=O.styleId;(I&&I!==-1||O&&O!==-1)&&p({id:I,styleId:O,set:{property:C,
value:d,priority:Q},index:O3j(R.parentRule)});return B.apply(R,V)})});
var f=m.CSSStyleDeclaration.prototype.removeProperty;m.CSSStyleDeclaration.prototype.removeProperty=new gJ(f,{apply:uH(function(B,R,V){var Q=_.M(V).next().value;if(x.has(Q))return f.apply(R,[Q]);var C,d=Ii((C=R.parentRule)==null?void 0:C.parentStyleSheet,U,A.styleMirror);C=d.id;d=d.styleId;(C&&C!==-1||d&&d!==-1)&&p({id:C,styleId:d,remove:{property:Q},index:O3j(R.parentRule)});return B.apply(R,V)})});
return uH(function(){m.CSSStyleDeclaration.prototype.setProperty=b;m.CSSStyleDeclaration.prototype.removeProperty=f})};
z_O=function(t){var E=t.mediaInteractionCb;var p=t.blockClass;var U=t.blockSelector;var x=t.mirror;var A=t.sampling;t=t.doc;var m=uH(function(f){return jQ(uH(function(B){if((B=kx(B))&&!rJ(B,p,U,!0)){var R=B.currentTime,V=B.volume,Q=B.muted,C=B.playbackRate,d=B.loop;E({type:f,id:x.getId(B),currentTime:R,volume:V,muted:Q,playbackRate:C,loop:d})}}),A.media||500)}),b=[C_("play",m(0),t),
C_("pause",m(1),t),C_("seeked",m(2),t),C_("volumechange",m(3),t),C_("ratechange",m(4),t)];return uH(function(){b.forEach(function(f){return f()})})};
lJL=function(t){var E=t.fontCb;t=t.doc;var p=t.defaultView;if(!p)return function(){};
var U=[],x=new WeakMap,A=p.FontFace;p.FontFace=function(m,b,f){var B=new A(m,b,f);x.set(B,{family:m,buffer:typeof b!=="string",descriptors:f,fontSource:typeof b==="string"?b:JSON.stringify(Array.from(new Uint8Array(b)))});return B};
t=MG(t.fonts,"add",function(m){return function(b){setTimeout(uH(function(){var f=x.get(b);f&&(E(f),x.delete(b))}),0);
return m.apply(this,[b])}});
U.push(function(){p.FontFace=A});
U.push(t);return uH(function(){U.forEach(function(m){return m()})})};
G4J=function(t){var E=t.doc,p=t.mirror,U=t.blockClass,x=t.blockSelector,A=t.selectionCb,m=!0;t=uH(function(){var b=E.getSelection();if(b&&!(m&&(b==null?0:b.isCollapsed))){m=b.isCollapsed||!1;for(var f=[],B=b.rangeCount||0,R=0;R<B;R++){var V=b.getRangeAt(R),Q=V.startContainer,C=V.startOffset,d=V.endContainer;V=V.endOffset;rJ(Q,U,x,!0)||rJ(d,U,x,!0)||f.push({start:p.getId(Q),startOffset:C,end:p.getId(d),endOffset:V})}A({ranges:f})}});
t();return C_("selectionchange",t)};
nEi=function(t){var E=t.doc;var p=t.customElementCb;return(t=E.defaultView)&&t.customElements?MG(t.customElements,"define",function(U){return function(x,A,m){try{p({define:{name:x}})}catch(b){console.warn("Custom element callback failed for "+x)}return U.apply(this,[x,A,m])}}):function(){}};
NM$=function(t,E){var p=t.mutationCb,U=t.mousemoveCb,x=t.mouseInteractionCb,A=t.scrollCb,m=t.viewportResizeCb,b=t.inputCb,f=t.mediaInteractionCb,B=t.styleSheetRuleCb,R=t.styleDeclarationCb,V=t.canvasMutationCb,Q=t.fontCb,C=t.selectionCb,d=t.customElementCb;t.mutationCb=function(){var I=_.t9.apply(0,arguments);E.mutation&&E.mutation.apply(E,_.KB(I));p.apply(null,_.KB(I))};
t.mousemoveCb=function(){var I=_.t9.apply(0,arguments);E.mousemove&&E.mousemove.apply(E,_.KB(I));U.apply(null,_.KB(I))};
t.mouseInteractionCb=function(){var I=_.t9.apply(0,arguments);E.mouseInteraction&&E.mouseInteraction.apply(E,_.KB(I));x.apply(null,_.KB(I))};
t.scrollCb=function(){var I=_.t9.apply(0,arguments);E.scroll&&E.scroll.apply(E,_.KB(I));A.apply(null,_.KB(I))};
t.viewportResizeCb=function(){var I=_.t9.apply(0,arguments);E.viewportResize&&E.viewportResize.apply(E,_.KB(I));m.apply(null,_.KB(I))};
t.inputCb=function(){var I=_.t9.apply(0,arguments);E.input&&E.input.apply(E,_.KB(I));b.apply(null,_.KB(I))};
t.mediaInteractionCb=function(){var I=_.t9.apply(0,arguments);E.mediaInteaction&&E.mediaInteaction.apply(E,_.KB(I));f.apply(null,_.KB(I))};
t.styleSheetRuleCb=function(){var I=_.t9.apply(0,arguments);E.styleSheetRule&&E.styleSheetRule.apply(E,_.KB(I));B.apply(null,_.KB(I))};
t.styleDeclarationCb=function(){var I=_.t9.apply(0,arguments);E.styleDeclaration&&E.styleDeclaration.apply(E,_.KB(I));R.apply(null,_.KB(I))};
t.canvasMutationCb=function(){var I=_.t9.apply(0,arguments);E.canvasMutation&&E.canvasMutation.apply(E,_.KB(I));V.apply(null,_.KB(I))};
t.fontCb=function(){var I=_.t9.apply(0,arguments);E.font&&E.font.apply(E,_.KB(I));Q.apply(null,_.KB(I))};
t.selectionCb=function(){var I=_.t9.apply(0,arguments);E.selection&&E.selection.apply(E,_.KB(I));C.apply(null,_.KB(I))};
t.customElementCb=function(){var I=_.t9.apply(0,arguments);E.customElement&&E.customElement.apply(E,_.KB(I));d.apply(null,_.KB(I))}};
DCO=function(t,E){E=E===void 0?{}:E;var p=t.doc.defaultView;if(!p)return function(){};
NM$(t,E);var U;t.recordDOM&&(U=CBJ(t,t.doc));var x=rYE(t),A=k4L(t),m=dC0(t),b=uc0(t,{win:p}),f=gEi(t),B=z_O(t),R=function(){},V=function(){},Q=function(){},C=function(){};
t.recordDOM&&(R=h_Y(t,{win:p}),V=e_i(t,t.doc),Q=FCK(t,{win:p}),t.collectFonts&&(C=lJL(t)));var d=G4J(t),I=nEi(t),O=[];t=_.M(t.plugins);for(E=t.next();!E.done;E=t.next())E=E.value,O.push(E.observer(E.callback,p,E.options));return uH(function(){dJ.forEach(function(F){return F.reset()});
var a;(a=U)==null||a.disconnect();x();A();m();b();f();B();R();V();Q();C();d();I();O.forEach(function(F){return F()})})};
Z3D=function(t){return typeof window[t]!=="undefined"};
Xli=function(t){return!!(typeof window[t]!=="undefined"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)};
srL=function(t){t=new Uint8Array(t);for(var E="",p=0;p<t.byteLength;p++)E+=String.fromCharCode(t[p]);return btoa(E)};
LCi=function(t,E,p){if(t instanceof Array)return t.map(function(x){return LCi(x,E,p)});
if(t!==null){if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};if(t instanceof ArrayBuffer){var U=t.constructor.name;t=srL(t);return{rr_type:U,base64:t}}if(t instanceof DataView)return{rr_type:t.constructor.name,args:[LCi(t.buffer,E,p),t.byteOffset,t.byteLength]};
if(t instanceof HTMLImageElement)return{rr_type:t.constructor.name,src:t.src};if(t instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:t.toDataURL()};if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[LCi(t.data,E,p),t.width,t.height]};if(PBJ(t,E)||typeof t==="object")return U=t.constructor.name,t=TM0(t,E,p),{rr_type:U,index:t}}return t};
WCl=function(t,E,p,U){for(var x=[],A=_.M(Object.getOwnPropertyNames(E.CanvasRenderingContext2D.prototype)),m=A.next(),b={};!m.done;b={prop$jscomp$58:void 0},m=A.next()){b.prop$jscomp$58=m.value;try{if(typeof E.CanvasRenderingContext2D.prototype[b.prop$jscomp$58]==="function"){var f=MG(E.CanvasRenderingContext2D.prototype,b.prop$jscomp$58,function(B){return function(R){return function(){var V=_.t9.apply(0,arguments),Q=this;rJ(this.canvas,p,U,!0)||setTimeout(function(){var C=oED(V,E,Q);t(Q.canvas,{type:Zs["2D"],
property:B.prop$jscomp$58,args:C})},0);
return R.apply(this,V)}}}(b));
x.push(f)}}catch(B){m=EE8(E.CanvasRenderingContext2D.prototype,b.prop$jscomp$58,{set:function(R){return function(V){t(this.canvas,{type:Zs["2D"],property:R.prop$jscomp$58,args:[V],setter:!0})}}(b)}),x.push(m)}}return function(){x.forEach(function(B){return B()})}};
$CD=function(t,E,p,U){var x=[];try{var A=MG(t.HTMLCanvasElement.prototype,"getContext",function(m){return function(b){var f=_.t9.apply(1,arguments);if(!rJ(this,E,p,!0)){var B=b==="experimental-webgl"?"webgl":b;"__context"in this||(this.__context=B);U&&["webgl","webgl2"].includes(B)&&(f[0]&&typeof f[0]==="object"?(B=f[0],B.preserveDrawingBuffer||(B.preserveDrawingBuffer=!0)):f.splice(0,1,{preserveDrawingBuffer:!0}))}return m.apply(this,[b].concat(_.KB(f)))}});
x.push(A)}catch(m){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){x.forEach(function(m){return m()})}};
KCl=function(t,E,p,U,x,A){for(var m=[],b=_.M(Object.getOwnPropertyNames(t)),f=b.next(),B={};!f.done;B={prop$jscomp$59:void 0},f=b.next())if(B.prop$jscomp$59=f.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(B.prop$jscomp$59))try{if(typeof t[B.prop$jscomp$59]==="function"){var R=MG(t,B.prop$jscomp$59,function(V){return function(Q){return function(){var C=_.t9.apply(0,arguments),d=Q.apply(this,C);TM0(d,A,this);"tagName"in this.canvas&&!rJ(this.canvas,U,x,!0)&&(C=
oED(C,A,this),p(this.canvas,{type:E,property:V.prop$jscomp$59,args:C}));return d}}}(B));
m.push(R)}}catch(V){f=EE8(t,B.prop$jscomp$59,{set:function(Q){return function(C){p(this.canvas,{type:E,property:Q.prop$jscomp$59,args:[C],setter:!0})}}(B)}),m.push(f)}return m};
vEO=function(t,E,p,U){var x=[];x.push.apply(x,_.KB(KCl(E.WebGLRenderingContext.prototype,1,t,p,U,E)));typeof E.WebGL2RenderingContext!=="undefined"&&x.push.apply(x,_.KB(KCl(E.WebGL2RenderingContext.prototype,2,t,p,U,E)));return function(){x.forEach(function(A){return A()})}};
qW$=function(t){var E=t=t===void 0?{}:t,p=E.emit,U=E.checkoutEveryNms,x=E.checkoutEveryNth,A=E.blockClass===void 0?"rr-block":E.blockClass,m=E.blockSelector===void 0?null:E.blockSelector,b=E.ignoreClass===void 0?"rr-ignore":E.ignoreClass,f=E.ignoreSelector===void 0?null:E.ignoreSelector,B=E.maskTextClass===void 0?"rr-mask":E.maskTextClass,R=E.maskTextSelector===void 0?null:E.maskTextSelector,V=E.inlineStylesheet===void 0?!0:E.inlineStylesheet,Q=E.maskAllInputs,C=E.maskInputOptions,d=E.slimDOMOptions,
I=E.maskInputFn,O=E.maskTextFn,a=E.hooks,F=E.packFn,L=E.sampling===void 0?{}:E.sampling,D=E.dataURLOptions===void 0?{}:E.dataURLOptions,W=E.mousemoveWait,K=E.recordDOM===void 0?!0:E.recordDOM,v=E.recordCanvas===void 0?!1:E.recordCanvas,YL=E.recordCrossOriginIframes===void 0?!1:E.recordCrossOriginIframes,bY=E.recordAfter===void 0?t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load":E.recordAfter,kL=E.userTriggeredOnInput===void 0?!1:E.userTriggeredOnInput,R0=E.collectFonts===void 0?!1:E.collectFonts,
j$=E.inlineImages===void 0?!1:E.inlineImages,lY=E.plugins,Tt=E.keepIframeSrcFn===void 0?function(){return!1}:E.keepIframeSrcFn,si=E.ignoreCSSAttributes===void 0?new Set([]):E.ignoreCSSAttributes;
Om=E.errorHandler;var Q0=YL?window.parent===window:!0,ps=!1;if(!Q0)try{window.parent.document&&(ps=!1)}catch($m){ps=!0}if(Q0&&!p)throw Error("af");if(!Q0&&!ps)return function(){};
W!==void 0&&L.mousemove===void 0&&(L.mousemove=W);Xx.reset();var $L=Q===!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}:C!==void 0?C:{password:!0},Cs=d===!0||d==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:d==="all",headMetaDescKeywords:d==="all",headTitleMutations:d==="all"}:
d?d:{};mCK();var km,ZT=0,l8=function($m){for(var Kl=_.M(lY||[]),iG=Kl.next();!iG.done;iG=Kl.next())iG=iG.value,iG.eventProcessor&&($m=iG.eventProcessor($m));F&&!ps&&($m=F($m));return $m};
ho=function($m,Kl){$m.timestamp=jrL();var iG;((iG=dJ[0])==null?0:iG.isFrozen())&&$m.type!==2&&($m.type!==3||$m.data.source!==0)&&dJ.forEach(function(QJ){return QJ.unfreeze()});
Q0?p==null||p(l8($m),Kl):ps&&(Kl={type:"rrweb",event:l8($m),origin:window.location.origin,isCheckout:Kl},window.parent.postMessage(Kl,"*"));$m.type===2?(km=$m,ZT=0):$m.type!==3||$m.data.source===0&&$m.data.isAttachIframe||(ZT++,$m=U&&$m.timestamp-km.timestamp>U,(x&&ZT>=x||$m)&&yYl(!0))};
var Rt=function($m){ho({type:3,data:Object.assign({},{source:0},$m)})},wE=function($m){return ho({type:3,
data:Object.assign({},{source:3},$m)})},Gt=function($m){return ho({type:3,
data:Object.assign({},{source:9},$m)})},V0=new S40({mutationCb:Rt,
adoptedStyleSheetCb:function($m){return ho({type:3,data:Object.assign({},{source:15},$m)})}}),SW=new cYK({mirror:Xx,
mutationCb:Rt,stylesheetManager:V0,recordCrossOriginIframes:YL,wrappedEmit:ho});t=_.M(lY||[]);for(E=t.next();!E.done;E=t.next())E=E.value,E.getMirror&&E.getMirror({nodeMirror:Xx,crossOriginIframeMirror:SW.crossOriginIframeMirror,crossOriginIframeStyleMirror:SW.crossOriginIframeStyleMirror});var h3=new tx_;EbL=new pi8({recordCanvas:v,mutationCb:Gt,win:window,blockClass:A,blockSelector:m,mirror:Xx,sampling:L.canvas,dataURLOptions:D});var zX=new Uii({mutationCb:Rt,scrollCb:wE,bypassOptions:{blockClass:A,
blockSelector:m,maskTextClass:B,maskTextSelector:R,inlineStylesheet:V,maskInputOptions:$L,dataURLOptions:D,maskTextFn:O,maskInputFn:I,recordCanvas:v,inlineImages:j$,sampling:L,slimDOMOptions:Cs,iframeManager:SW,stylesheetManager:V0,canvasManager:EbL,keepIframeSrcFn:Tt,processedNodeManager:h3},mirror:Xx});yYl=function($m){$m=$m===void 0?!1:$m;if(K){ho({type:4,data:{href:window.location.href,width:xCY(),height:UCO()}},$m);V0.reset();zX.init();dJ.forEach(function(iG){return iG.lock()});
var Kl=tr0({mirror:Xx,blockClass:A,blockSelector:m,maskTextClass:B,maskTextSelector:R,inlineStylesheet:V,maskAllInputs:$L,maskTextFn:O,maskInputFn:I,slimDOM:Cs,dataURLOptions:D,recordCanvas:v,inlineImages:j$,onSerialize:function(iG){iG.nodeName==="IFRAME"&&Xx.nodeMetaMap.get(iG)&&xij(SW,iG);b3j(iG,Xx)&&ABt(V0,iG);iG&&bH(iG)&&YW0(zX,bH(iG),document)},
onIframeLoad:function(iG,QJ){MxJ(SW,iG,QJ);iG.contentWindow&&iG.contentDocument&&mil(zX,iG.contentWindow.Element,iG.contentDocument)},
onStylesheetLoad:function(iG,QJ){bmO(V0,iG,QJ)},
keepIframeSrcFn:Tt});Kl?(ho({type:2,data:{node:Kl,initialOffset:plK(window)}},$m),dJ.forEach(function(iG){return iG.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&aJi(V0,document.adoptedStyleSheets,Xx.getId(document))):console.warn("Failed to snapshot the document")}};
try{var zc=[],EC=function($m){var Kl;return uH(DCO)({mutationCb:Rt,mousemoveCb:function(iG,QJ){return ho({type:3,data:{source:QJ,positions:iG}})},
mouseInteractionCb:function(iG){return ho({type:3,data:Object.assign({},{source:2},iG)})},
scrollCb:wE,viewportResizeCb:function(iG){return ho({type:3,data:Object.assign({},{source:4},iG)})},
inputCb:function(iG){return ho({type:3,data:Object.assign({},{source:5},iG)})},
mediaInteractionCb:function(iG){return ho({type:3,data:Object.assign({},{source:7},iG)})},
styleSheetRuleCb:function(iG){return ho({type:3,data:Object.assign({},{source:8},iG)})},
styleDeclarationCb:function(iG){return ho({type:3,data:Object.assign({},{source:13},iG)})},
canvasMutationCb:Gt,fontCb:function(iG){return ho({type:3,data:Object.assign({},{source:10},iG)})},
selectionCb:function(iG){ho({type:3,data:Object.assign({},{source:14},iG)})},
customElementCb:function(iG){ho({type:3,data:Object.assign({},{source:16},iG)})},
blockClass:A,ignoreClass:b,ignoreSelector:f,maskTextClass:B,maskTextSelector:R,maskInputOptions:$L,inlineStylesheet:V,sampling:L,recordDOM:K,recordCanvas:v,inlineImages:j$,userTriggeredOnInput:kL,collectFonts:R0,doc:$m,maskInputFn:I,maskTextFn:O,keepIframeSrcFn:Tt,blockSelector:m,slimDOMOptions:Cs,dataURLOptions:D,mirror:Xx,iframeManager:SW,stylesheetManager:V0,shadowDomManager:zX,processedNodeManager:h3,canvasManager:EbL,ignoreCSSAttributes:si,plugins:(lY==null?void 0:(Kl=lY.filter(function(iG){return iG.observer}))==
null?void 0:Kl.map(function(iG){return{observer:iG.observer,
options:iG.options,callback:function(QJ){return ho({type:6,data:{plugin:iG.name,payload:QJ}})}}}))||[]},a)};
imE(SW,function($m){try{zc.push(EC($m.contentDocument))}catch(Kl){console.warn(Kl)}});
var VJ=function(){yYl();zc.push(EC(document))};
document.readyState==="interactive"||document.readyState==="complete"?VJ():(zc.push(C_("DOMContentLoaded",function(){ho({type:0,data:{}});bY==="DOMContentLoaded"&&VJ()})),zc.push(C_("load",function(){ho({type:1,
data:{}});bY==="load"&&VJ()},window)));
return function(){zc.forEach(function($m){try{$m()}catch(Kl){String(Kl).toLowerCase().includes("cross-origin")||console.warn(Kl)}});
h3.destroy();Om=void 0}}catch($m){console.warn($m)}};
_.J=function(t,E){E=A9(xk(E));t.innerHTML=E};
BTO=function(t){var E=HmJ;E||(E=fGJ(),E=HmJ=_.Kq.transpose(E));E=E[t];return typeof E==="string"?E:_.ai(t)};
wiL=function(t){t=String(t).toLowerCase();var E=fGJ()[t];return typeof E==="string"?E:_.Fx(t)};
RS0=function(t){t=t.toLowerCase();t=fGJ()[t];return typeof t==="string"?t:null};
fGJ=function(){if(!Vxt){for(var t=Object.assign({},QJi),E=_.M(CPi),p=E.next();!p.done;p=E.next())p=p.value,t[p.toLowerCase()]=p;Vxt=t}return Vxt};
k9D=function(t,E){var p=window.customElements;return p&&p.get(t)||jJ8[t]===!0?2:E.name==="HTMLUnknownElement"?1:E.name==="HTMLElement"&&rBE.test(t)?3:0};
JBO=function(t,E){switch(E){case "innerHTML":return di$(t)===1?2:null;case "textContent":return t=di$(t),t===1||t===6?1:null;default:var p,U;return(U=(p=ubD[t.localName])==null?void 0:p[E])!=null?U:null}};
di$=function(t){var E=t.localName,p=k9D(E,t.constructor);switch(p){case 0:case 1:return IGi(E,t);case 3:case 2:return 1;default:_.UC(p,"got an unknown element classification")}};
IGi=function(t,E){var p=Object.hasOwnProperty.call(gb$,t)?gb$[t]:null;return p!==null?p:Object.hasOwnProperty.call(ZmO,t)&&E instanceof SVGElement?ZmO[t]:null};
OmL=function(t,E){return E};
hSl=function(t){return(t=t.split(XiD,2))?{url:t[0],metadata:t[1]}:null};
eS_=function(t){var E=String(t.url).replace(aGl,encodeURIComponent);if(t=t.metadata){aGl.lastIndex=0;if(aGl.test(t))return null;E+=" "+t}return E};
G9i=function(t){function E(B){var R=B.localName;if(!B.getAttribute("is")&&k9D(R,B.constructor)===2){var V;return(V=f)!=null?V:f=document.createElement("polyresinuncustomized")}(B=b[R])||(B=b[R]=document.createElement(R));return B}
var p=t.reportHandler||void 0,U=t.safeTypesBridge||F$Y,x=/^$/;if(t=t.allowedIdentifierPrefixes){t=_.M(t);for(var A=t.next();!A.done;A=t.next())x=new RegExp(x.source+"|^"+_.zSL(A.value))}p&&p(!1,"initResin",null);var m=lGi(x,U,p),b={},f=null;return function(B,R,V){var Q=B.nodeType;if(Q!==Node.ELEMENT_NODE){if(Q===Node.TEXT_NODE){R=B.parentElement;V=!R;if(R&&R.nodeType===Node.ELEMENT_NODE){Q=R.localName;var C=k9D(Q,R.constructor);switch(C){case 0:case 1:R=IGi(Q,R);V=R===1||R===6;break;case 3:case 2:V=
!0;break;default:_.UC(C,"got an unknown element classification")}}if(V)return function(a){return""+U(a,"STRING",a)}}return function(a){if(!a&&a!==document.all)return a;
p&&p(!0,"Failed to sanitize "+(B.parentElement&&B.parentElement.nodeName)+" #text node to value "+a,B.parentElement);return zZ}}var d=B.localName;
Q=E(B);var I=null;switch(V){case "attribute":if(wiL(R)in Q)break;return function(a){return a};
case "property":if(R in Q){I=JBO(Q,R);break}if((C=RS0(R))&&C in Q)break;return function(a){return a};
default:_.UC(V,"got an unknown resin type, expected either 'property' or 'attribute'")}var O=V==="attribute"?R.toLowerCase():BTO(R);I||(I=jEO(d,O,function(a){var F=B.getAttribute(a);return!F||/[\[\{]/.test(a)?null:F}));
return function(a){var F=lH,L=null;if(!a&&a!==document.all)return a;if(I!=null){var D=m[I],W=D.safeType;L=D.safeReplacement;W&&(F=U(a,W,lH));F===lH&&(D.filterString?(F=String(U(a,"STRING",a)),F=D.filterString(d,O,F)):D.filterRaw&&(F=D.filterRaw(d,O,a,B)),F===L&&(F=lH))}F===lH&&(F=L||zZ,p&&p(!0,"Failed to sanitize attribute of <"+d+">: <"+d+" "+O+'="'+a+'">',B));return F}}};
lGi=function(t,E,p){return[,{filterRaw:function(U,x,A){return A},
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:nbY,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:nbY,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:zZ,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:NTO,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(U,x,A){A=
String(A).toLowerCase();return deY(U,x,A)?A:zZ},
safeReplacement:zZ,safeType:void 0},,{filterRaw:void 0,filterString:function(U,x,A){return t.test(A)?A:zZ},
safeReplacement:zZ,safeType:"CONSTANT"},{filterRaw:function(U,x,A,m){if(typeof A==="string")var b=(b=A.match(DiY))?b.map(hSl).filter(Boolean):[];else if(Array.isArray(A))b=A;else return nbY;var f=b;b=[];var B=[],R={};if(Array.isArray(f))for(var V=0,Q=f.length;V<Q;++V){var C=f[V],d=C&&C.url;if(d){var I=E(d,"URL",R);if(I){var O=I!==R;(O?b:B).push({url:O?I:d,metadata:C.metadata})}}}else B.push(f);f=B.length?JSON.stringify(B):null;B=lH;if(b.length){if(!Array.isArray(b))throw Error();B=b.map(eS_).filter(Boolean).join(" , ")||
lH}f&&p&&p(!0,"Failed to sanitize attribute value of <"+U+">: <"+U+" "+x+'="'+A+'">: '+f,m);return B===lH?nbY:B},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
sJO=function(t){var E=G9i(t);return function(p,U,x,A){return A||A===document.all?E(p,U,x)(A):A}};
GZ=function(t,E){function p(){function x(b,f,B){for(f=Reflect.getMetadata("parameters",b)||[];f.length<=B;)f.push(null);f[B]=f[B]||[];f[B].push(m);Reflect.defineMetadata(f,b);return b}
var A=_.t9.apply(0,arguments);if(this instanceof p)return U.apply(this,A),this;var m=new (Function.prototype.bind.apply(p,[null].concat(_.KB(A))));x.annotation=m;return x}
var U=L$L(E);p.prototype.toString=function(){return"@"+t};
return p.annotationCls=p};
L$L=function(t){return function(){var E=_.t9.apply(0,arguments),p=this;t.forEach(function(U,x){x=E[x];if(Array.isArray(U))p[U[0]]=x&&x!==void 0?x:U[1];else for(var A in U)p[A]=x&&x[A]!==void 0?x[A]:U[A]})}};
PPl=function(t){return t!==void 0&&t!==null};
n_=function(t){if(typeof t==="string")return t;if(t===void 0||t===null)return""+t;if(t.overriddenName)return t.overriddenName;if(t.name)return t.name;t=t.toString();var E=t.indexOf("\n");return E===-1?t:t.substring(0,E)};
TTE=function(t){t.__forward_ref__=TTE;t.toString=function(){return n_(this())};
return t};
NG=function(t){return typeof t==="function"&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===TTE?t():t};
obY=function(t){return t?t.map(function(E){return new (Function.prototype.bind.apply(E.type.annotationCls,[null].concat(_.KB(E.args?E.args:[]))))}):[]};
W$_=function(t){for(var E=[],p=0;p<t.length;++p){if(E.indexOf(t[p])>-1){E.push(t[p]);break}E.push(t[p])}return E};
$iY=function(t){return t.length>1?" ("+W$_(t.slice().reverse()).map(function(E){return n_(E.token)}).join(" -> ")+")":""};
vbD=function(t,E,p,U){if(U){var x=Error("df``"+(U instanceof Error?U.message:U));x.ngOriginalError=U}else x=Error();x.addKey=K$_;x.keys=[E];x.injectors=[t];x.constructResolvingMessage=p;x.message=x.constructResolvingMessage();x.ngOriginalError=U;return x};
K$_=function(t,E){this.injectors.push(t);this.keys.push(E);this.message=this.constructResolvingMessage()};
yB_=function(t,E){return vbD(t,E,function(){return"No provider for "+n_(this.keys[0].token)+"!"+$iY(this.keys)})};
SWO=function(t,E){return vbD(t,E,function(){return"Cannot instantiate cyclic dependency!"+$iY(this.keys)})};
cBK=function(t,E,p){return vbD(t,p,function(){var U=n_(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+U+"!"+$iY(this.keys)+"."},E)};
tEY=function(t,E){for(var p=[],U=0,x=E.length;U<x;U++){var A=E[U];A&&A.length!=0?p.push(A.map(n_).join(" ")):p.push("?")}return Error("hf`"+n_(t)+"`"+p.join(", ")+"`"+n_(t))};
MEi=function(t){var E=void 0,p=void 0;if(t&&t.useClass!==void 0){E=t.useClass;var U=NG(t.useClass);var x=EFt.factory(U);U=p$$(U)}else t&&t.useExisting!==void 0?(x=function(A){return A},U=[UUt(Ds.get(NG(t.useExisting)))]):t&&t.useFactory!==void 0?(x=t.useFactory,U=xU_(t.useFactory,t.deps)):(p=t.useValue,x=function(){return t.useValue},U=Al8);
return new Ycl(x,U,E,p)};
bQK=function(t){return new mUi(Ds.get(NG(t.provide)),[MEi(t)],t.multi)};
qc$=function(t){t=iQL(t,[]).map(bQK);for(var E=new Map,p=0;p<t.length;p++){var U=t[p],x=E.get(U.key.id);if(x){if(U.multiProvider!==x.multiProvider)throw Error("kf`"+x+"`"+U);if(U.multiProvider)for(var A=0;A<U.resolvedFactories.length;A++)x.resolvedFactories.push(U.resolvedFactories[A]);else E.set(U.key.id,U)}else x=void 0,U.multiProvider?x=new mUi(U.key,U.resolvedFactories.slice(),U.multiProvider):x=U,E.set(U.key.id,x)}return Array.from(E.values())};
iQL=function(t,E){t.forEach(function(p){if(p instanceof HQi)E.push({provide:p,useClass:p});else if(p&&typeof p=="object"&&p.provide!==void 0)E.push(p);else if(p instanceof Array)iQL(p,E);else throw Error("gf`"+p);});
return E};
xU_=function(t,E){if(E){var p=E.map(function(U){return[U]});
return E.map(function(U){return fxO(t,U,p)})}return p$$(t)};
p$$=function(t){var E=EFt.parameters(t);if(!E)return[];if(E.some(function(p){return p==null}))throw tEY(t,E);
return E.map(function(p){return fxO(t,p,E)})};
fxO=function(t,E,p){var U=null,x=!1;if(!Array.isArray(E))return E instanceof B2_?w$t(E.token,x,null):w$t(E,x,null);for(var A=null,m=0;m<E.length;++m){var b=E[m];if(b instanceof HQi)U=b;else if(b instanceof B2_)U=b.token;else if(b instanceof RWE)x=!0;else if(b instanceof VEL||b instanceof Qu_)A=b}U=NG(U);if(U!=null)return w$t(U,x,A);throw tEY(t,p);};
w$t=function(t,E,p){return new C9Y(Ds.get(NG(t)),E,p)};
juJ=function(t,E){for(var p=Array(t.providers.length),U=0;U<t.providers.length;++U){var x=U;if(U<0||U>=t.providers.length)throw Error("jf`"+U);p[x]=E(t.providers[U])}return p};
rlL=function(t){return typeof t==="function"&&EFt.parameters(t).every(function(E){return!!E})};
uHj=function(t){var E=koE;dUE.get(t)||dUE.set(t,new E);return dUE.get(t)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(t){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(t)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(t){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(t)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(t,E){var p,U;if(t.contains(E))return!0;t=_.sm(t).querySelectorAll("content,slot");for(p=0;p<t.length;++p){var x=_.sm(t[p]).getDistributedNodes();for(U=0;U<x.length;++U)if(x[U].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(x[U],E))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(t){t.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(t)&&t.preventDefault();t.targetTouches&&(t=t.targetTouches[0],Jl0=t.pageX,IxL=t.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 t=0,E=L_.length;t<E;t++)document.addEventListener(L_[t],_._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 t=0,E=L_.length;t<E;t++)document.removeEventListener(L_[t],_._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(t){var E=_.sm(t).rootTarget;t.type!=="touchmove"&&gFl!==E&&(gFl=E,ZQO=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.sm(t).path));if(!ZQO.length)return!0;if(t.type==="touchstart")return!1;t=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(t);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(ZQO,t.deltaX,t.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(t){for(var E=[],p=t.indexOf(OQ0),U=0;U<=p;U++)if(t[U].nodeType===Node.ELEMENT_NODE){var x=t[U],A=x.style;A.overflow!=="scroll"&&A.overflow!=="auto"&&(A=window.getComputedStyle(x));A.overflow!=="scroll"&&A.overflow!=="auto"||E.push(x)}return E};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(t,E,p){if(E||p)for(var U=Math.abs(p)>=Math.abs(E),x=0;x<t.length;x++){var A=t[x];if(U?p<0?A.scrollTop>0:A.scrollTop<A.scrollHeight-A.clientHeight:E<0?A.scrollLeft>0:A.scrollLeft<A.scrollWidth-A.clientWidth)return A}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(t){var E={deltaX:t.deltaX,deltaY:t.deltaY};"deltaX"in t||("wheelDeltaX"in t&&"wheelDeltaY"in t?(E.deltaX=-t.wheelDeltaX,E.deltaY=-t.wheelDeltaY):"wheelDelta"in t?(E.deltaX=0,E.deltaY=-t.wheelDelta):"axis"in t?(E.deltaX=t.axis===1?t.detail:0,E.deltaY=t.axis===2?t.detail:0):t.targetTouches&&(t=t.targetTouches[0],E.deltaX=Jl0-t.pageX,E.deltaY=IxL-t.pageY));return E};
X$L=function(t){this.element=t;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
ax_=function(t){this.element=t;this.color=window.getComputedStyle(t).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");_.sm(this.waveContainer).appendChild(this.wave);hWt(this)};
PV=function(t,E){for(var p in t)if(p.toLowerCase()===E.toLowerCase())return t[p]};
eWi=function(t,E){for(var p in t)if(p.toLowerCase()===E.toLowerCase()){delete t[p];break}};
zWl=function(t){t=_.Kq.clone(t);for(var E=0;E<F5D.length;++E){var p=F5D[E],U=PV(t,p);U&&(t["X-Goog-Upload-Header-"+p]=U,eWi(t,p))}return t};
lx_=function(t){t=_.Kq.clone(t);eWi(t,"X-Goog-Upload-Status")};
nFJ=function(t){return Goj.some(function(E){return E.test(t)})};
L5J=function(t,E){var p;var U=(p=t.formContent)==null?void 0:p.locale;p=U==null?void 0:U.split("-")[0];U=U&&N2J.includes(U)?U:p&&N2J.includes(p)?p:void 0;U=(U!=null?U:"en").replaceAll("-","_").toLowerCase();var x;t=((x=t.initializationData)==null?0:x.useNightlyRelease)?"nightly":"live";var A;return(E==null?0:(A=E.getEnableAlohaBinarySplit)==null?0:A.call(E))?_.JC(DUD,t):_.JC(su0,t,U)};
oF8=function(t,E,p,U){if(P9$&&T2E===E)return P9$;T2E=E;var x=L5J(t,U);return P9$=E.feedbackV2GlobalObject?Promise.resolve(E.feedbackV2GlobalObject):new Promise(function(A,m){var b=_.Gg("SCRIPT");_.w3(b,x);b.onload=function(){E.feedbackV2GlobalObject?A(E.feedbackV2GlobalObject):m(Error("nf"))};
b.onerror=function(){m(Error("of`"+x.toString()))};
p.body.appendChild(b)})};
K5$=function(t,E,p,U){if(W5l&&$Uj===E)return W5l;$Uj=E;var x=L5J(t,U);return W5l=E.feedbackV2GlobalObject?Promise.resolve(E.feedbackV2GlobalObject):new Promise(function(A,m){var b=_.Gg("SCRIPT");_.w3(b,x);b.onload=function(){E.feedbackV2GlobalObject?A(E.feedbackV2GlobalObject):m(Error("nf"))};
b.onerror=function(){m(Error("of`"+x.toString()))};
p.body.appendChild(b)})};
vFj=function(t,E,p,U,x){x=x===void 0?!0:x;var A,m,b,f,B;return _.q(function(R){switch(R.nextAddress){case 1:return A=Date.now(),R.yield(oF8(t,p,U,E),2);case 2:m=R.yieldResult;if(!(x||((f=t.initializationData)==null?0:f.useNightlyRelease)||((B=t.initializationData)==null?0:B.isLocalServer))){b=m.initializeFeedbackClient(t,A,E);R.jumpTo(3);break}return R.yield(m.initializeFeedbackClientAsync(t,A,E),4);case 4:b=R.yieldResult;case 3:return b.initiateAloha(),R.return(b)}})};
ylD=function(t,E,p,U){var x,A,m;return _.q(function(b){if(b.nextAddress==1)return x=Date.now(),b.yield(K5$(t,p,U.document,E),2);if(b.nextAddress!=3)return A=b.yieldResult,b.yield(A.initializeFeedbackClientAsync(t,x,E,U),3);m=b.yieldResult;m.initiateAloha();return b.return(m)})};
ScO=function(t,E,p){var U=!0;U=U===void 0?!0:U;var x,A,m,b,f,B,R,V;return _.q(function(Q){x=p||_.Ui;if((A=E)==null?0:(b=(m=A).getEnableAlohaBinarySplit)==null?0:b.call(m)){f=x;if(f.isFormOpened)throw new TZ;f.isFormOpened=!0;t.callbacks=t.callbacks||{};B=t.callbacks.onClose||function(){};
t.callbacks.onClose=function(C){f.isFormOpened=!1;B(C)};
try{return Q.return(ylD(t,E,f,x))}catch(C){throw f.isFormOpened=!1,C;}}else{R=x;if(R.isFormOpened)throw new TZ;R.isFormOpened=!0;t.callbacks=t.callbacks||{};V=t.callbacks.onClose||function(){};
t.callbacks.onClose=function(C){R.isFormOpened=!1;V(C)};
try{return Q.return(vFj(t,E,R,x.document,U))}catch(C){throw R.isFormOpened=!1,C;}}_.Do(Q)})};
Uwt=function(t,E){return _.q(function(p){return p.return(new Promise(function(U,x){Number.isInteger(Number(t))&&Number(t)>0?(x=cl_(E!=null?E:"")+"/aloha_form_properties?productId="+t,tll(x,function(A){A=A.target;var m=null;try{var b=JSON,f=b.stringify;if(A.JSC$10072_xhr_){var B=A.JSC$10072_xhr_.responseText;B.indexOf(")]}'\n")==0&&(B=B.substring(5));var R=_.oi(B)}else R=void 0;m=bBY(EYl,f.call(b,R))}catch(V){f=new EYl,R=pU_(),R=_.WV(R,13,!1),R=_.WV(R,14,!0),R=_.WV(R,15,!0),R=_.WV(R,20,!1),m=_.FU(f,
1,R)}U(m)},"GET","",{},2E3,!0)):x(Error("pf`"+t))}))})};
cl_=function(t){return nFJ(t)?t:"https://www.google.com/tools/feedback"};
MlO=function(t){t=t.match(new RegExp(xwL,"gi"))||[];t=_.M(t);for(var E=t.next();!E.done;E=t.next()){E=E.value;a:{var p=_.M(Av_);for(var U=p.next();!U.done;U=p.next())if(U.value.test(E)){p=!1;break a}p=!0}if(!p)a:{p=_.M(YvO);for(U=p.next();!U.done;U=p.next())if(U.value.test(E)){p=!0;break a}p=!1}if(p)return!0}return!1};
mwE=function(t,E){var p={},U=Object.keys(t);U=_.M(U);for(var x=U.next();!x.done;x=U.next())x=x.value,p[x]=E(x,t[x]);return p};
bCK=function(t){switch(t){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"}};
qv0=function(t){if(window.crypto&&window.crypto.getRandomValues)try{var E=Array(t),p=new Uint8Array(t);window.crypto.getRandomValues(p);for(var U=0;U<E.length;U++)E[U]=p[U];return E}catch(A){}E=Array(t);for(p=0;p<t;p++){U=Date.now();for(var x=0;x<U%23;x++)E[p]=Math.random();E[p]=Math.floor(Math.random()*256)}if(iCE)for(p=1,U=0;U<iCE.length;U++)E[p%t]^=E[(p-1)%t]/4^iCE.charCodeAt(U),p++;return E};
$x=function(t){t=qv0(t);for(var E=[],p=0;p<t.length;p++)E.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(t[p]&63));return E.join("")};
HCL=function(){var t=_.Ui.ytLoggingDocDocumentNonce_;t||(t=$x(16),_.Oy("ytLoggingDocDocumentNonce_",t));return t};
BaK=function(t){t&&_.MW("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:faD,clientScreenNonce:t})};
wUj=function(t){return _.qO("client-screen-nonce-store",{})[t===void 0?0:t]};
Rzi=function(t,E){E=E===void 0?0:E;var p=_.qO("client-screen-nonce-store");p||(p={},_.ia("client-screen-nonce-store",p));p[E]=t};
Vl$=function(t){t=t===void 0?0:t;return t===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+t};
QLD=function(t){return _.qO(Vl$(t===void 0?0:t))};
_.vV=function(t){return(t=QLD(t===void 0?0:t))?new _.K_({veType:t,youtubeData:void 0,jspbYoutubeData:void 0}):null};
CZO=function(){var t=_.qO("csn-to-ctt-auth-info");t||(t={},_.ia("csn-to-ctt-auth-info",t));return t};
jL_=function(){return Object.values(_.qO("client-screen-nonce-store",{})).filter(function(t){return t!==void 0})};
_.yL=function(t){t=wUj(t===void 0?0:t);if(!t&&!_.HC("USE_CSN_FALLBACK",!0))return null;t||(t="UNDEFINED_CSN");return t?t:null};
kN_=function(t){for(var E=_.M(Object.values(rvO)),p=E.next();!p.done;p=E.next())if(_.yL(p.value)===t)return!0;return!1};
dwO=function(t,E,p){var U=CZO();(p=_.yL(p))&&delete U[p];E&&(U[t]=E)};
SQ=function(t){return CZO()[t]};
_.cV=function(t,E,p,U){p=p===void 0?0:p;if(t!==wUj(p)||E!==_.qO(Vl$(p)))if(dwO(t,U,p),Rzi(t,p),_.ia(Vl$(p),E),E=function(){setTimeout(function(){BaK(t)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(E)}catch(x){E()}else E()};
uqO=function(t,E){E=E===void 0?"":E;var p=[],U;for(U in t)if(t.hasOwnProperty(U)){var x=E!==""?E+"."+U:U;typeof t[U]==="object"?p.push.apply(p,_.KB(uqO(t[U],x))):p.push([x,t[U]])}p.sort();return p};
_.ET=function(t){var E=_.t9.apply(1,arguments);if(!tZ(t)||E.some(function(U){return!tZ(U)}))throw Error("qf");
E=_.M(E);for(var p=E.next();!p.done;p=E.next())Jv8(t,p.value)};
Jv8=function(t,E){for(var p in E)if(tZ(E[p])){if(p in t&&!tZ(t[p]))throw Error("rf");p in t||(t[p]={});Jv8(t[p],E[p])}else if(IaL(E[p])){if(p in t&&!IaL(t[p]))throw Error("sf");p in t||(t[p]=[]);gY8(t[p],E[p])}else t[p]=E[p];return t};
gY8=function(t,E){E=_.M(E);for(var p=E.next();!p.done;p=E.next())p=p.value,tZ(p)?t.push(Jv8({},p)):IaL(p)?t.push(gY8([],p)):t.push(p);return t};
tZ=function(t){return typeof t==="object"&&!Array.isArray(t)};
IaL=function(t){return typeof t==="object"&&Array.isArray(t)};
OCj=function(t){for(var E=_.M(Object.entries(ZCi)),p=E.next();!p.done;p=E.next())if(p=_.M(p.value),p.next(),p=p.next().value,p==="SLI_STATUS_"+t)return p;return"SLI_STATUS_UNKNOWN"};
_.pF=function(t,E,p,U){return XUJ(t,E,function(){return new _.hz_(t,E,p,U)})};
_.aaY=function(){return _.pF("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
ezi=function(){return _.pF("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
UT=function(){return _.pF("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
F0j=function(){return _.pF("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
zzD=function(){return _.pF("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
laJ=function(){return _.pF("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
Nat=function(t){t&&(t.dataset?t.dataset[GNO()]="true":_.VU([_.ks(nY0)],t,"data-loaded","true".toString()))};
Dw$=function(t){return t?t.dataset?t.dataset[GNO()]:t.getAttribute("data-loaded"):null};
GNO=function(){return sLt.loaded||(sLt.loaded="loaded".replace(/\-([a-z])/g,function(t,E){return E.toUpperCase()}))};
_.xT=function(t,E,p){L0D(t,E,p===void 0?null:p)};
_.TaY=function(t,E){t&&E&&(t=""+_.W8(E),(t=PZO[t])&&_.dAO(t))};
L0D=function(t,E,p){p=p===void 0?null:p;var U=_.oYj(typeof t==="string"?t:t.toString()),x=document.getElementById(U),A=x&&Dw$(x),m=x&&!A;A?E&&E():(E&&(A=_.Ga(U,E),E=""+_.W8(E),PZO[E]=A),m||(x=W0l(t,U,function(){Dw$(x)||(Nat(x),_.u5O(U),_.NO(function(){_.I4J(U)},0))},p)))};
W0l=function(t,E,p,U){U=U===void 0?null:U;var x=_.Gg("SCRIPT");x.id=E;x.onload=function(){p&&setTimeout(p,0)};
x.onreadystatechange=function(){switch(x.readyState){case "loaded":case "complete":x.onload()}};
U&&x.setAttribute("nonce",U);_.w3(x,typeof t==="string"?_.cQ(t):t);t=document.getElementsByTagName("head")[0]||document.body;t.insertBefore(x,t.firstChild);return x};
_.oYj=function(t){var E=document.createElement("a");pB(E,t);return"js-"+AZ(E.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
$w_=function(t){var E=_.qO("INNERTUBE_HOST_OVERRIDE");E&&(t=String(E)+String(_.M_(t)));return t};
K0E=function(t){var E={};_.r("json_condensed_response")&&(E.prettyPrint="false");return t=$_j(t,E)};
_.mt=function(t){return gs(t)?"same-origin":"include"};
_.bO=function(t){return gs(t)?"same-origin":"cors"};
iO=function(t,E,p){p=p===void 0?{}:p;t={method:E===void 0?"POST":E,mode:_.bO(t),credentials:_.mt(t)};E={};for(var U=_.M(Object.keys(p)),x=U.next();!x.done;x=U.next())x=x.value,p[x]&&(E[x]=p[x]);Object.keys(E).length>0&&(t.headers=E);return t};
_.q_=function(t,E){E=E===void 0?{}:E;return"service:"+t+"/"+Object.keys(E).sort().map(function(p){return p+":"+E[p]}).join("/")};
vY_=function(t){var E,p,U,x;t=(E=_.k(t,_.HD))==null?void 0:(p=E.watchEndpointSupportedOnesieConfig)==null?void 0:(U=p.html5PlaybackOnesieConfig)==null?void 0:(x=U.commonConfig)==null?void 0:x.url;if(!t)return[];E=new _.fF(t);return E.JSC$10308_domain_?["https://"+E.JSC$10308_domain_+"/generate_204"]:[]};
_.cvO=function(){return yvJ()||cjY()||Sv8&&Hk("version/")?!0:_.qO("EOM_VISITOR_DATA")?!1:!0};
t30=function(t){var E=t.docid||t.video_id||t.videoId||t.id;if(E)return E;E=t.raw_player_response;E||(t=t.player_response)&&(E=JSON.parse(t));return E&&E.videoDetails&&E.videoDetails.videoId||null};
E3O=function(t){return t.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
BD=function(t){return!isNaN(Number(t))&&!_.mJ(t)};
_.RK=function(t,E,p,U){U=U===void 0?!0:U;var x=_.qO("VALID_SESSION_TEMPDATA_DOMAINS",[]),A=_.ua(window.location.href);A&&x.push(A);A=_.ua(t);if(_.zt(x,A)||!A&&_.AD(t,"/"))if(x=document.createElement("a"),pB(x,t),t=x.href)if(t=_.M_(t),t=_.wu(t))U&&!E.csn&&(E.itct||E.ved)&&(E=Object.assign({csn:_.yL()},E)),p?(p=parseInt(p,10),isFinite(p)&&p>0&&pHE(t,E,p)):pHE(t,E)};
xj_=function(t){var E=_.qO("VALID_SESSION_TEMPDATA_DOMAINS",[]),p=_.ua(window.location.href);p&&E.push(p);p=_.ua(t);if(!(_.zt(E,p)||!p&&_.AD(t,"/")))return null;t=_.M_(t);(t=_.wu(t))?(t=Uji(t),t=(t=_.$a.get(t,void 0)||null)?_.CR(t):{}):t=null;return t};
pHE=function(t,E,p){t=Uji(t);E=E?_.T3(E):"";p=p||5;_.cvO()&&_.KR(t,E,p)};
Uji=function(t){for(var E=_.M(A1l),p=E.next();!p.done;p=E.next())t=_.VS(t,p.value);return"ST-"+AZ(t).toString(36)};
_.YuO=function(t){if(t.requestFullscreen)t=t.requestFullscreen(void 0);else if(t.webkitRequestFullscreen)t=t.webkitRequestFullscreen();else if(t.mozRequestFullScreen)t=t.mozRequestFullScreen();else if(t.msRequestFullscreen)t=t.msRequestFullscreen();else if(t.webkitEnterFullscreen)t=t.webkitEnterFullscreen();else return Promise.reject(Error("Bf"));return t instanceof Promise?t:Promise.resolve()};
_.CF=function(t){var E;_.iyK(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.QS()==t&&(E=document):E=t;if(E&&(t=_.iyK(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],E))){t.call(E)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.QS=function(){var t=t===void 0?!1:t;var E=_.iyK(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(t)for(;E&&E.shadowRoot;)E=E.shadowRoot.fullscreenElement;return E?E:null};
_.jR=function(t,E){E=E===void 0?!0:E;t.addEventListener("wheel",M3Y);t.overscrollConfig={cooldown:E}};
_.ru=function(t){t.overscrollConfig=void 0;t.removeEventListener("wheel",M3Y)};
M3Y=function(t){var E=t.deltaY,p=t.target,U=null;if(window.Polymer&&window.Polymer.Element){if(p=t.path||t.composedPath&&t.composedPath()){p=_.M(p);for(var x=p.next();!x.done&&(x=x.value,!mjO(x,E));x=p.next())if(x.overscrollConfig){U=x;break}}}else for(;p&&!mjO(p,E);){if(p.overscrollConfig){U=p;break}p=p.parentElement}U&&(E=U.overscrollConfig,E.cooldown?(U=t.deltaY,p=E.lastDeltaY||0,E.lastDeltaY=U,x=E.lastStopped||0,p&&x&&p>0==U>0?Math.abs(p)>=Math.abs(U)?(U=x+1200,p=!1):(U=x+600,p=!0):(U=Date.now()+
600,p=!0),U>Date.now()&&(t.preventDefault(),p&&(E.lastStopped=Date.now()))):t.preventDefault())};
mjO=function(t,E){return E<0&&t.scrollTop>0||E>0&&t.scrollTop<t.scrollHeight-t.clientHeight-1?(t=getComputedStyle(t).overflowY,t=="auto"||t=="scroll"):!1};
_.kT=function(t,E,p,U){U||(U={bubbles:!0,cancelable:!1,composed:!0});p!==null&&p!==void 0&&(U.detail=p);var x=new CustomEvent(E,U);_.r("untrack_fire_custom_event_killswitch")?t.dispatchEvent(x):_.sJ(function(){return void t.dispatchEvent(x)});
return x};
bzO=function(t){var E=window,p=function(U){E.removeEventListener("yt-navigate-start",p);return t.call(E,U)};
E.addEventListener("yt-navigate-start",p,void 0)};
_.du=function(t,E,p,U){E=new izJ(E,!(U===void 0||!U),p);_.kT(t,"yt-action",E);return E.returnValue};
_.uO=function(t,E,p){return _.du(t,E,p,!0)};
_.IK=function(t,E,p,U){E&&E.length&&E.forEach(function(x){var A=YXj(x);A&&(_.r("handle_service_request_actions")&&x.commandMetadata&&x.commandMetadata.webCommandMetadata&&x.commandMetadata.webCommandMetadata.sendPost?_.JZ(p?p:t,[x]):_.uO(t,A,[x,p,U]))})};
_.JZ=function(t,E){var p=[t];E&&p.push.apply(p,E);E=_.du(t,"yt-service-request",p);return E.length>0&&(E=E[0],_.kT(t,"yt-service-request-sent",E),E&&E.ajaxPromise)?(E.ajaxPromise.then(function(U){_.kT(t,"yt-service-request-completed",U)},function(U){_.kT(t,"yt-service-request-error",{error:U,
params:p})},t),E.ajaxPromise):_.gu()};
_.OT=function(t,E){if(_.r("handle_service_request_actions"))_.IK(E,t,E);else{t=_.M(t);for(var p=t.next();!p.done;p=t.next()){p=p.value;var U=void 0;((U=_.k(p,_.ZU))==null?0:U.commands)?_.OT(_.k(p,_.ZU).commands,E):(U=void 0,((U=_.k(p,_.XJ))==null?0:U.actions)?_.OT(_.k(p,_.XJ).actions,E):(U=void 0,((U=_.k(p.commandMetadata,_.hZ))==null?0:U.sendPost)?_.JZ(E,[p]):_.IK(E,[p],E)))}}};
_.HzD=function(t,E,p){E=E===void 0?{}:E;typeof E==="function"&&(E={callback:E});p||E._c&&E._c.jsl&&E._c.jsl.h||_.Kq.extend(E,{_c:{jsl:{h:_.qO("GAPI_HINT_PARAMS")}}});(E.gapiHintOverride||_.qO("GAPI_HINT_OVERRIDE"))&&(p=_.ji(document.location.href).gapi_jsh)&&_.Kq.extend(E,{_c:{jsl:{h:p}}});qu_(t,E)};
_.zF=function(t,E,p){E=E===void 0?{}:E;t=(t=t in FJ?FJ[t]:p)||"";p={};for(var U in E){p={key$jscomp$844:p.key$jscomp$844};p.key$jscomp$844=U;var x=function(A){return function(){return String(E[A.key$jscomp$844])}}(p);
t=t.replace(new RegExp("\\$\\{"+p.key$jscomp$844+"\\}","gi"),x);t=t.replace(new RegExp("\\$"+p.key$jscomp$844,"gi"),x)}return t};
_.lO=function(t,E){return fmY(t in FJ?FJ[t]:{},E)};
fmY=function(t,E){var p=_.qO("I18N_PLURAL_RULES");p||(p=function(U){return U==1?"one":"other"});
return(t=t["case"+E]||t[p(E)])?t.replace("#",E.toString()):E+""};
R80=function(t){var E=Bcl(t),p=document.getElementById(E),U=p&&Dw$(p);U||p&&!U||(p=wH0(t,E,function(){if(!Dw$(p)){Nat(p);_.u5O(E);var x=_.GF(_.I4J,E);_.NO(x,0)}}))};
wH0=function(t,E,p){var U=document.createElement("link");U.id=E;U.onload=function(){p&&setTimeout(p,0)};
t=_.cQ(t);_.QU(U,t,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(U);return U};
Bcl=function(t){var E=_.Gg("A");pB(E,Pw(t));return"css-"+AZ(E.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.Qy$=function(t){var E=V3_();t!==E&&(E=_.nF(),!_.r("web_autonav_allow_off_by_default")&&t||_.N_(0,141,!0),_.N_(0,140,!t),E.save())};
V3_=function(){var t=_.nF();return _.r("web_autonav_allow_off_by_default")&&!t.getFlag(141)&&_.qO("AUTONAV_OFF_BY_DEFAULT")?!1:!t.getFlag(140)};
Chl=function(t,E){var p,U;t=((p=t.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(U=p.videoAuthorizationToken)==null?void 0:U.credentialTransferTokens)||[];for(p=0;p<t.length;++p)if(t[p].scope===E)return t[p].token||void 0};
jyt=function(t){for(var E=0,p=0;p<t.length;p++)E=E*31+t.charCodeAt(p),p<t.length-1&&(E%=0x800000000000);return E%1E5};
_.DU=function(t){return _.ws("ytcsi."+(t||"")+"data_")||r1E(t)};
_.kwi=function(t){t=_.DU(t);t.metadata||(t.metadata={});return t.metadata};
_.djE=function(t){t=_.DU(t);t.tick||(t.tick={});return t.tick};
_.sT=function(t){t=_.DU(t);if(t.gel){var E=t.gel;E.gelInfos||(E.gelInfos={});E.gelTicks||(E.gelTicks={})}else t.gel={gelTicks:{},gelInfos:{}};return t.gel};
_.uo8=function(t){t=_.sT(t);t.gelInfos||(t.gelInfos={});return t.gelInfos};
J18=function(t){var E=_.DU(t).nonce;E||(E=$x(16),_.DU(t).nonce=E);return E};
r1E=function(t){var E={tick:{},info:{}};_.Oy("ytcsi."+(t||"")+"data_",E);return E};
ImK=function(){var t=_.ws("ytcsi.debug");t||(t=[],_.Oy("ytcsi.debug",t),_.Oy("ytcsi.reference",{}));return t};
_.LF=function(t){t=t||"";var E=g3$();if(E[t])return E[t];var p=ImK(),U={timerName:t,info:{},tick:{},span:{},jspbInfo:[]};p.push(U);return E[t]=U};
ZzK=function(t){t=t||"";var E=g3$();E[t]&&delete E[t];var p=ImK(),U={timerName:t,info:{},tick:{},span:{},jspbInfo:[]};p.push(U);E[t]=U};
g3$=function(){var t=_.ws("ytcsi.reference");if(t)return t;ImK();return _.ws("ytcsi.reference")};
_.XHi=function(t){return OzD[t]||"LATENCY_ACTION_UNKNOWN"};
Fqj=function(t,E,p){p=p===void 0?{}:p;var U=!1;_.HC("ytLoggingEventsDefaultDisabled",!1)&&(U=!0);U=U?null:YX;p=p===void 0?{}:p;var x=Math.round(p.timestamp||(0,_.eu)());_.cE(E,1,x<Number.MAX_SAFE_INTEGER?x:0);x=new h8j;if(p.lact)_.cE(x,1,isFinite(p.lact)?p.lact:-1);else if(p.timestamp)_.cE(x,1,-1);else{var A=_.af();_.cE(x,1,isFinite(A)?A:-1)}if(p.sequenceGroup&&!_.r("web_gel_sequence_info_killswitch")){A=p.sequenceGroup;var m=F8$(A),b=new amE;_.cE(b,2,m);_.Lq(b,1,A);_.FU(x,3,b);p.endOfSequence&&delete e8i[p.sequenceGroup]}_.FU(E,
33,x);(p.sendIsolatedPayload?LhO:PzJ)(t,{endpoint:"log_event",payload:E,cttAuthInfo:p.cttAuthInfo,dangerousLogToVisitorSession:p.dangerousLogToVisitorSession},U)};
_.z8L=function(t,E){_.PD("_start",t,E)};
_.TF=function(t,E){if(!_.r("web_csi_action_sampling_enabled")||!_.DU(E).actionDisabled){var p=_.LF(E||"");_.ET(p.info,t);t.loadType&&(p=t.loadType,_.kwi(E).loadType=p);_.ET(_.uo8(E),t);p=J18(E);E=_.DU(E).cttAuthInfo;lm$().info(t,p,E)}};
Gw$=function(){var t,E,p,U;return((U=_.X3().resolve(_.OB(pW))==null?void 0:(t=U_())==null?void 0:(E=t.loggingHotConfig)==null?void 0:(p=E.csiConfig)==null?void 0:p.debugTicks)!=null?U:[]).map(function(x){return Object.values(x)[0]})};
_.PD=function(t,E,p){if(!_.r("web_csi_action_sampling_enabled")||!_.DU(p).actionDisabled){var U=J18(p),x;if(x=_.r("web_csi_debug_sample_enabled")&&U){(_.X3().resolve(_.OB(pW))==null?0:U_())&&!n3L&&(n3L=!0,_.PD("gcfl",(0,_.eu)(),p));var A,m,b;x=(_.X3().resolve(_.OB(pW))==null?void 0:(A=U_())==null?void 0:(m=A.loggingHotConfig)==null?void 0:(b=m.csiConfig)==null?void 0:b.debugSampleWeight)||0;if(A=x!==0)b:{A=Gw$();if(A.length>0)for(m=0;m<A.length;m++)if(t===A[m]){A=!0;break b}A=!1}A?(x=jyt(U)%x!==0,
_.DU(p).debugTicksExcludedLogged||(A={},A.debugTicksExcluded=x,_.TF(A,p)),_.DU(p).debugTicksExcludedLogged=!0):x=!1}if(!x){t[0]!=="_"&&Ncj(t,p,E);x=_.LF(p||"");x.tick[t]=E||(0,_.eu)();if(x.callback&&x.callback[t])for(x=_.M(x.callback[t]),A=x.next();!A.done;A=x.next())A=A.value,A();x=_.sT(p);x.gelTicks&&(x.gelTicks[t]=!0);A=_.djE(p);x=E||(0,_.eu)();A[t]=x;A=_.DU(p).cttAuthInfo;t==="_start"?lm$().baseline(U,E,A):lm$().tick(t,U,E,A);_.DjL(p);return x}}};
Ncj=function(t,E,p){if(_.oK.mark)if(t.startsWith("mark_")||(t="mark_"+t),E&&(t+=" ("+E+")"),p===void 0||_.r("web_csi_disable_alt_time_performance_mark"))_.oK.mark(t);else{p=_.r("csi_use_performance_navigation_timing")?p-_.oK.timeOrigin:p-(_.oK.timeOrigin||_.oK.timing.navigationStart);try{_.oK.mark(t,{startTime:p})}catch(U){}}};
syE=function(){var t,E=(t=_.oK.getEntriesByType)==null?void 0:t.call(_.oK,"mark");E&&E.forEach(function(p){if(p.name.startsWith("mark_")){var U;(U=_.oK.clearMarks)==null||U.call(_.oK,p.name)}})};
_.Lq0=function(t){var E={},p=function(A,m,b){m=m.match("_rid")?m.split("_rid")[0]:m;typeof b==="number"&&(b=JSON.stringify(b));A.requestIds?A.requestIds.push({endpoint:m,id:b}):A.requestIds=[{endpoint:m,id:b}]};
t=_.M(Object.entries(t));for(var U=t.next();!U.done;U=t.next()){var x=_.M(U.value);U=x.next().value;x=x.next().value;switch(U){case "GetBrowse_rid":p(E,U,x);break;case "GetGuide_rid":p(E,U,x);break;case "GetHome_rid":p(E,U,x);break;case "GetPlayer_rid":p(E,U,x);break;case "GetSearch_rid":p(E,U,x);break;case "GetSettings_rid":p(E,U,x);break;case "GetTrending_rid":p(E,U,x);break;case "GetWatchNext_rid":p(E,U,x);break;case "yt_red":E.isRedSubscriber=!!x;break;case "yt_ad":E.isMonetized=!!x}}return E};
_.Ph_=function(t){var E=_.WD("aft",t);if(E)return E;E=_.qO((t||"")+"TIMING_AFT_KEYS",["ol"]);for(var p=E.length,U=0;U<p;U++){var x=_.WD(E[U],t);if(x)return x}return NaN};
_.TcD=function(t,E){_.Oy("ytglobal.timing"+(E||"")+"ready_",t)};
_.WD=function(t,E){if(t=_.djE(E)[t])return typeof t==="number"?t:t[t.length-1]};
_.DjL=function(t){var E=_.WD("_start",t),p=_.Ph_(t),U=!o3t;E&&p&&U&&(GI0(WqY,new $j8(Math.round(p-E),t)),o3t=!0)};
v3D=function(t){r1E(t);KqE();syE();t||(_.qO("TIMING_ACTION")&&_.ia("PREVIOUS_ACTION",_.qO("TIMING_ACTION")),_.ia("TIMING_ACTION",""))};
_.y1O=function(t){t=t===void 0?{}:t;_.BC(function(){$T();ZzK();v3D();_.TcD(!1);t.cttAuthInfo&&(_.DU().cttAuthInfo=t.cttAuthInfo);_.ia("TIMING_AFT_KEYS",[]);t.isHot?_.KF({loadType:"hot"}):_.KF({loadType:"warm"});_.ia("TIMING_ACTION","");delete _.qO("TIMING_INFO",{}).yt_lt;_.BC(_.z8L)(t.startTime,void 0)})()};
_.yS=function(t,E,p,U){E=E===void 0?{}:E;_.BC(function(){var x=p?p:t;vD(x);var A=E.sampleRate;if(!_.r("web_csi_action_sampling_enabled")||A===void 0||A<=1)A=!1;else{var m=J18(x);A=jyt(m)%A!==0}A&&(_.DU(x).actionDisabled=!0);_.LF(x||"").info.actionType=t;E.cttAuthInfo&&(_.DU(x).cttAuthInfo=E.cttAuthInfo);_.ia(x+"TIMING_ACTION",t);_.BC(_.z8L)(E.startTime,x);A={actionType:U||_.XHi(t)};E.logPreviousAction&&(A.previousAction=_.XHi(_.qO("TIMING_ACTION")));(m=_.yL())&&m!=="UNDEFINED_CSN"&&(A.clientScreenNonce=
m);_.KF(A,x);_.TcD(!0,x)})()};
vD=function(t){_.BC(function(){$T(t);ZzK(t);v3D(t)})()};
SuY=function(){_.BC(function(){var t=[],E;for(E in _.ws("ytcsi.".slice(0,-1)))E.endsWith("data_")&&t.push(E.slice(0,-5));t=_.M(t);for(E=t.next();!E.done;E=t.next())vD(E.value);$T()})()};
_.tVj=function(t){return _.BC(function(){return _.c10("_start",t)})()};
_.KF=function(t,E,p){_.BC(_.TF)(t,E,p===void 0?!1:p)};
_.SR=function(t,E,p){return _.BC(_.PD)(t,E,p)};
_.c10=function(t,E){return _.BC(function(){var p=_.djE(E);return t in p})()};
p5i=function(t){if(!_.r("universal_csi_network_ticks"))return"";t=_.LR(t)||"";for(var E=Object.keys(EA0),p=0;p<E.length;p++){var U=E[p];if(t.includes(U))return U}return""};
xFY=function(t){if(!_.r("universal_csi_network_ticks"))return function(){};
var E=EA0[t];return E?(_.cD(E),function(){var p=_.r("universal_csi_network_ticks")?(p=UFO[t])?_.cD(p):!1:!1;return p}):function(){}};
_.cD=function(t,E,p){return _.BC(function(){if(_.c10(t,p))return!1;_.SR(t,E,p);return!0})()};
_.tj=function(t,E,p){_.BC(function(){if(!_.tVj(p)||_.c10(t,p))return!1;_.SR(t,E,p);return!0})()};
_.EF=function(t){return _.BC(_.WD)(t,void 0)};
$T=function(t){_.tVj(t)&&_.SR("aa",void 0,t)};
_.bi$=function(t,E,p,U,x,A,m,b,f,B){var R=AL0();A=new _.K_({veType:E,youtubeData:A,jspbYoutubeData:b});B=pb({automatedLogEventSource:B},R);x&&(B.cttAuthInfo=x);x={csn:R,pageVe:A.getAsJson()};_.r("expectation_logging")&&f&&f.screenCreatedLoggingExpectations&&(x.screenCreatedLoggingExpectations=f.screenCreatedLoggingExpectations);p&&p.visualElement?(x.implicitGesture={parentCsn:p.clientScreenNonce,gesturedVe:p.visualElement.getAsJson()},m&&(x.implicitGesture.gestureType=m)):p&&_.qW(new _.cC("newScreen() parent element does not have a VE - rootVe",
E));U&&(x.cloneCsn=U);t?AH("screenCreated",x,t,B):_.MW("screenCreated",x,B);GI0(TzE,new YAl(R));UF.clear();MVO.clear();mFE.clear();return R};
xh=function(t,E,p,U,x,A){A=A===void 0?{}:A;iiY(t,E,p,[U],x===void 0?!1:x,A)};
iiY=function(t,E,p,U,x,A){x=x===void 0?!1:x;A=A===void 0?{}:A;Object.assign(A,pb({cttAuthInfo:SQ(E)||void 0},E));for(var m=_.M(U),b=m.next();!b.done;b=m.next()){b=b.value;var f=b.getAsJson();(_.Kq.isEmpty(f)||!f.trackingParams&&!f.veType)&&_.qW(Error("Cf"));if(_.r("no_client_ve_attach_unless_shown")){var B=qAO(b,E);if(f.veType&&!MVO.has(B)&&!mFE.has(B)&&!x){if(!_.r("il_attach_cache_limit")||UF.size<1E3){UF.set(B,[t,E,p,b]);return}_.r("il_attach_cache_limit")&&UF.size>1E3&&_.qW(new _.cC("IL Attach cache exceeded limit"))}b=
qAO(p,E);UF.has(b)?Hii(p,E):mFE.set(b,!0)}}U=U.filter(function(R){R.csn!==E?(R.csn=E,R=!0):R=!1;return R});
p={csn:E,parentVe:p.getAsJson(),childVes:_.vx(U,function(R){return R.getAsJson()})};
E==="UNDEFINED_CSN"?Aj("visualElementAttached",A,p):t?AH("visualElementAttached",p,t,A):_.MW("visualElementAttached",p,A)};
BYK=function(t,E,p,U,x,A,m){fZt(t,E,p,x,m)};
fZt=function(t,E,p,U,x){w5J(p,E);x=pb({cttAuthInfo:SQ(E)||void 0,automatedLogEventSource:x},E);p={csn:E,ve:p.getAsJson(),eventType:1};U&&(p.clientData=U);E==="UNDEFINED_CSN"?Aj("visualElementShown",x,p):t?AH("visualElementShown",p,t,x):_.MW("visualElementShown",p,x)};
RTO=function(t,E,p,U){w5J(p,E);var x=pb({cttAuthInfo:SQ(E)||void 0,automatedLogEventSource:void 0},E);p={csn:E,ve:p.getAsJson(),eventType:4};U&&(p.clientData=U);E==="UNDEFINED_CSN"?Aj("visualElementShown",x,p):t?AH("visualElementShown",p,t,x):_.MW("visualElementShown",p,x)};
VVO=function(t,E,p,U,x,A){var m=(U=U===void 0?!1:U)?16:8;U=pb({cttAuthInfo:SQ(E)||void 0,endOfSequence:U,automatedLogEventSource:A},E);p={csn:E,ve:p.getAsJson(),eventType:m};x&&(p.clientData=x);E==="UNDEFINED_CSN"?Aj("visualElementHidden",U,p):t?AH("visualElementHidden",p,t,U):_.MW("visualElementHidden",p,U)};
Ct_=function(t,E,p,U,x,A){QSY(t,E,p,void 0,U,x,A)};
QSY=function(t,E,p,U,x,A,m){w5J(p,E);U=U||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";A=pb({cttAuthInfo:SQ(E)||void 0,automatedLogEventSource:m},E);p={csn:E,ve:p.getAsJson(),gestureType:U};x&&(p.clientData=x);E==="UNDEFINED_CSN"?Aj("visualElementGestured",A,p):t?AH("visualElementGestured",p,t,A):_.MW("visualElementGestured",p,A)};
jS8=function(t,E,p,U){var x=pb({cttAuthInfo:SQ(E)||void 0},E);p={csn:E,ve:p.getAsJson(),clientData:U};E==="UNDEFINED_CSN"?Aj("visualElementStateChanged",x,p):t?AH("visualElementStateChanged",p,t,x):_.MW("visualElementStateChanged",p,x)};
rLi=function(){var t=qv0(16);for(var E=[],p=0;p<t.length;p++)E.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(t[p]&63));return E.join("")};
Aj=function(t,E,p){k0_.push({payloadName:t,payload:p,jspbPayload:void 0,options:E});dF_||(dF_=Wel())};
PcE=function(t){if(k0_){for(var E=_.M(k0_),p=E.next();!p.done;p=E.next())p=p.value,p.payload&&(p.payload.csn=t.csn,_.MW(p.payloadName,p.payload,p.options));k0_.length=0}dF_=0};
qAO=function(t,E){return""+t.getAsJson().veType+t.getAsJson().veCounter+E};
w5J=function(t,E){if(_.r("no_client_ve_attach_unless_shown")){var p=qAO(t,E);MVO.set(p,!0);Hii(t,E)}};
Hii=function(t,E){t=qAO(t,E);UF.has(t)&&(E=UF.get(t)||[],xh(E[0],E[1],E[2],E[3],!0),UF.delete(t))};
pb=function(t,E){_.r("log_sequence_info_on_gel_web")&&(t.sequenceGroup=E);return t};
_.Yh=function(t,E,p){_.BC(xh)(void 0,t,E,p)};
_.Mc=function(t,E,p){_.BC(iiY)(void 0,t,E,p)};
_.mu=function(t,E){_.BC(BYK)(void 0,t,E,void 0,void 0,void 0)};
_.bU=function(t,E,p){_.BC(function(){_.QE(E,function(U){RTO(void 0,t,U,p)})})()};
_.iU=function(t,E,p,U){_.BC(function(){_.QE(E,function(x){VVO(void 0,t,x,p,U)})})()};
_.qc=function(t,E,p){_.BC(Ct_)(void 0,t,E,p,void 0)};
_.HA=function(t,E,p,U){_.BC(QSY)(void 0,t,E,p,U,void 0)};
_.fb=function(t,E,p){_.BC(jS8)(void 0,t,E,p,void 0)};
un$=function(t,E){BA.set(t,E)};
JLi=function(t){wm.initialized=!0;wm.sessionId=t.sessionId||"";wm.enabledSpans=t.enabledSpans;t.shouldSampleFn!=null&&(wm.shouldSampleFn=t.shouldSampleFn)};
IZt=function(t){wm.processors.push(t)};
Rp=function(t){return wm.initialized?wm.enabledSpans?wm.enabledSpans[t]:!0:!1};
X5O=function(t,E,p){return Rp(t)&&wm.shouldSampleFn(t,E,gAK)?new ZiY(t,E,p):OiY};
VR=function(t,E,p){if(typeof p==="function"){var U=p;p=void 0}var x=X5O(t,E,p),A;if(((A=p)==null?void 0:A.endTime)!=null)return U&&_.qW(Error("Gf")),x;var m;x!==OiY&&((m=p)==null?void 0:m.active)!==!1&&wm.stack.push(x);if(!U)return x;if(x===OiY)return U(x);try{var b=U(x);if(b instanceof Promise)return b.then(function(f){x.end();return f},function(f){x.end("SPAN_STATUS_ERROR");
throw f;});
x.end();return b}catch(f){throw x.end("SPAN_STATUS_ERROR"),f;}};
hTJ=function(){BX.subscribe("handleError",function(t){try{for(var E in QR)try{var p=QR[E];typeof QR[E]==="function"&&(p=p());t.params[E]=typeof QR[E]==="object"?JSON.stringify(p):String(p)}catch(U){_.qW(U)}}catch(U){_.qW(U)}})};
aZY=function(){};
eTO=function(t,E){var p=Object.keys(t);t=new _.cC("[Command Handler] "+E,{filteredCommandNames:p,originalCommand:t});_.bV(t)};
FP8=function(t,E){eTO(t,E+" was called but not set")};
zT_=function(t){return function(){return new t}};
Cb=function(t){return function(){return _.X3().resolve(t)}};
lZD=function(t,E){var p=_.k(t,_.QB);if(p&&(p=E[p.signal]))return p();t=_.M(Object.keys(t));for(p=t.next();!p.done;p=t.next())if(p=p.value,E[p]&&(p=E[p]))return p()};
_.j1=function(t,E,p,U){return{browseEndpoint:{browseId:t},commandMetadata:{webCommandMetadata:{url:E,rootVe:p,webPageType:U===void 0?"WEB_PAGE_TYPE_BROWSE":U}}}};
G0_=function(t,E,p){var U=E=E===void 0?0:E;p=p===void 0?0:p;var x=p-U;return _.rm(t,"PPSV",void 0,void 0,(x>600?0:x<60||p<=0||U/p>.9)?0:E)};
_.rm=function(t,E,p,U,x){var A="/watch?v="+t;t={videoId:t};E&&(t.playlistId=E,A+="&list="+E);U&&(A+="&pp="+U);x&&(t.startTimeSeconds=x,A+="&t="+x+"s");E={watchEndpoint:t,commandMetadata:{webCommandMetadata:{url:A,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};p&&(E.clickTrackingParams=p);U&&(_.k(E,_.HD).playerParams=U);return E};
nAY=function(t){return{browseEndpoint:{browseId:"VL"+t},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+t,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
NYL=function(t){if(t){var E;if(t){var p=(E=_.k(t.commandMetadata,_.hZ))==null?void 0:E.url;E=!(!p||p==="/service_ajax")}else E=!1;if(E)return t;var U;if(t=(U=_.k(t,_.ZU))==null?void 0:U.commands)for(U=_.M(t),t=U.next();!t.done;t=U.next())if(t=NYL(t.value))return t}};
_.kh=function(t){return{runs:[{text:t}]}};
DFY=function(t,E){return t&&E?{runs:[{text:t,navigationEndpoint:E}]}:void 0};
dm=function(t){return t?_.kh(t):void 0};
_.uU=function(t){return t?{simpleText:t}:void 0};
_.Jj=function(t){var E=t.type;t=t.payload;E={type:E};t!==void 0&&(E.payload=t);return E};
sSi=function(t,E,p){for(var U=Object.assign({},t),x=_.M(Object.keys(E)),A=x.next();!A.done;A=x.next()){A=A.value;var m=t[A],b=E[A];if(b===void 0)delete U[A];else if(m===void 0)U[A]=b;else if(Array.isArray(b)&&Array.isArray(m))U[A]=p?[].concat(_.KB(m),_.KB(b)):b;else if(!Array.isArray(b)&&_.o0(b)&&!Array.isArray(m)&&_.o0(m))U[A]=sSi(m,b,p);else if(typeof b===typeof m)U[A]=b;else return E=new _.cC("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:A,originalValue:m,updateValue:b}),
_.bV(E),t}return U};
TYD=function(t){if(!t.length)return"";try{if(LP8)return LP8.decode(t);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(t)}catch(m){}for(var E=0,p=[],U=t.length;E<U;){for(var x=0;x<1024&&E<U;){var A=t[E++];if(A<128)PtJ[x++]=A;else{if(A<224)A=(A&31)<<6|t[E++]&63;else if(A<240)A=(A&15)<<12|(t[E++]&63)<<6|t[E++]&63;else{if(x+1===1024){--E;break}A=(A&7)<<18|(t[E++]&63)<<12|(t[E++]&63)<<6|t[E++]&63;A-=65536;PtJ[x++]=55296|A>>10;A=56320|A&1023}PtJ[x++]=A}}A=String.fromCharCode.apply(String,
PtJ);x<1024&&(A=A.substring(0,x));p.push(A)}return p.join("")};
WP0=function(t,E){var p;if((p=oAO)==null?0:p.encodeInto)return E=oAO.encodeInto(t,E),E.read<t.length?t.length*4:E.written;for(var U=p=0;U<t.length;U++){var x=t.charCodeAt(U);x<128?E[p++]=x:(x<2048?E[p++]=x>>6|192:((x&64512)===55296&&U+1<t.length&&(t.charCodeAt(U+1)&64512)===56320?(x=65536+((x&1023)<<10)+(t.charCodeAt(++U)&1023),E[p++]=x>>18|240,E[p++]=x>>12&63|128):E[p++]=x>>12|224,E[p++]=x>>6&63|128),E[p++]=x&63|128)}return p};
$FL=function(t,E,p){if(E&&p&&p.buffer===E.exports.memory.buffer){var U=E.realloc(p.byteOffset,t);if(U)return new Uint8Array(E.exports.memory.buffer,U,t)}t=E?new Uint8Array(E.exports.memory.buffer,E.malloc(t),t):new Uint8Array(t);p&&t.set(p);return t};
_.gm=function(t){t=new KPi(new vA_([_.c8(decodeURIComponent(t))]));if(yLl(t,2)){var E=Ip(t);var p=t.pos;var U=t.arrayView;p=p===void 0?0:p;var x=E===void 0?-1:E;p=p===void 0?0:p;x=x===void 0?-1:x;if(U.totalLength&&x){x<0&&(x=U.totalLength-p);U.focus(p);if(!(p-U.arrayPos+x<=U.arrays[U.arrayIdx].length)){var A=U.arrayIdx,m=U.arrayPos;U.focus(p+x-1);m=new Uint8Array(U.arrayPos+U.arrays[U.arrayIdx].length-m);for(var b=0,f=A;f<=U.arrayIdx;f++)m.set(U.arrays[f],b),b+=U.arrays[f].length;U.arrays.splice(A,
U.arrayIdx-A+1,m);U.arrayIdx=0;U.arrayPos=0;U.focus(p)}A=U.arrays[U.arrayIdx];U=new DataView(A.buffer,A.byteOffset+p-U.arrayPos,x)}else U=new DataView(new ArrayBuffer(0));U=new Uint8Array(U.buffer,U.byteOffset,U.byteLength);t.pos+=E;E=U}else E=void 0;E=E?TYD(E):void 0;t=yLl(t,4)?Ip(t):void 0;U=SAl[t];if(typeof U==="undefined")throw t=new _.cC("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:t}),_.bV(t),t;return{entityTypeFieldNumber:t,entityType:U,entityId:E}};
_.X1=function(t,E,p){p=p===void 0?0:p;var U=new cLK;if(oAO)t=oAO.encode(t);else{var x=new Uint8Array(Math.ceil(t.length*1.2)),A=WP0(t,x);x.length<A&&(x=new Uint8Array(A),A=WP0(t,x));x.length>A&&(x=x.subarray(0,A));t=x}t!==void 0&&(ZB(U,18),x=t.length,ZB(U,x),OF(U,x),U.buf.set(t,U.pos),U.pos+=x);t=t4j[E];if(typeof t==="undefined")throw p=new _.cC("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:E}),_.bV(p),p;t!==void 0&&(ZB(U,32),ZB(U,t));ZB(U,40);ZB(U,1);E=new Uint8Array(U.buf.buffer,
U.buf.byteOffset,U.pos);return encodeURIComponent(_.S$(E,p))};
E9t=function(t){t=t.key||t.id;if(!t)throw Error("If");return t};
U7J=function(t,E){t=t===void 0?{}:t;return pg0(t,E)};
x7O=function(t,E,p,U){if(U===void 0)return U=Object.assign({},t[E]||{}),p=(delete U[p],U),U={},Object.assign({},t,(U[E]=p,U));var x={},A={};return Object.assign({},t,(A[E]=Object.assign({},t[E],(x[p]=U,x)),A))};
ASY=function(t,E,p,U,x){var A=t[E];if(A==null||!A[p])return t;U=sSi(A[p],U,x==="REPEATED_FIELDS_MERGE_OPTION_APPEND");x={};A={};return Object.assign({},t,(A[E]=Object.assign({},t[E],(x[p]=U,x)),A))};
_.hj=function(t,E,p){return t[E]?t[E][p]||null:null};
M4J=function(){if(Y0$)return Y0$();var t={};Y0$=aD("PersistentEntityStoreDb",{objectStores:(t.EntityStore={addedAtVersion:1},t.EntityAssociationStore={addedAtVersion:2},t),shared:!1,upgrade:function(E,p){p(1)&&QK(VK(E,"EntityStore",{keyPath:"key"}),"entityType","entityType");p(2)&&(E=VK(E,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),QK(E,"byParentEntityKey","parentEntityKey"),QK(E,"byChildEntityKey","childEntityKey"))},
version:3});return Y0$()};
m70=function(t){return _.d7(M4J(),t)};
ap=function(t){return window.Int32Array?new Int32Array(t):Array(t)};
iSD=function(t){return _.d7(bSJ(),t)};
q0t=function(t){return new e1("WRONG_DATA_TYPE",{encoderVersion:t})};
HS0=function(t){return t instanceof Error?new e1("UNKNOWN_ENCODE_ERROR",{originalMessage:t.message}):new e1("UNKNOWN_ENCODE_ERROR")};
f5Y=function(t){return t instanceof Error?new e1("UNKNOWN_DECODE_ERROR",{originalMessage:t.message}):new e1("UNKNOWN_DECODE_ERROR")};
B8K=function(t,E){t=t instanceof e1?t:E(t);_.bV(t);throw t;};
wgj=function(t){t=(new TextEncoder).encode(t).subarray(0,16);var E=new Uint8Array(16);E.set(t);return E};
V4K=function(t){var E=Rk8[t];if(E)return E;_.qW(new _.cC("Entity model not found.",{entityType:t}))};
_.F1=function(){QOY||(QOY=Cui());return QOY};
Cui=function(){var t,E,p;return _.q(function(U){if(U.nextAddress==1)return _.aR(U,2),U.yield(_.hF(),4);if(U.nextAddress!=2){t=U.yieldResult;if(!t||!_.Si()||typeof _.Ui.BroadcastChannel==="undefined")return U.return();E=new jOD;return U.return(new zV(t,E))}p=_.nB(U);p instanceof Error&&_.bV(p);return U.return()})};
_.lU=function(t,E){var p;return _.q(function(U){if(U.nextAddress==1){p=t.mutations;if(!p||p.length<=0)return U.return();E&&E.dispatch(_.Jj({type:"ENTITY_LOADED",payload:p}));return U.yield(rSO(p),2)}p.length=0;_.Do(U)})};
rSO=function(t){var E;return _.q(function(p){return p.nextAddress==1?p.yield(_.F1(),2):(E=p.yieldResult)?p.yield(_.GV(E,"readwrite",function(U){for(var x={},A=_.M(t),m=A.next(),b={};!m.done;b={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},m=A.next())b.mutation$jscomp$8=m.value,b.mutation$jscomp$8.entityKey&&knE(b.mutation$jscomp$8)&&(b.mutationEntityType$jscomp$3=(0,_.Kq.getAnyKey)(b.mutation$jscomp$8.payload),m=void 0,b.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(m=function(f){return function(){return _.d7Y(U,
f.mutation$jscomp$8.payload[f.mutationEntityType$jscomp$3],f.mutationEntityType$jscomp$3)}}(b)),b.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(m=function(f){return function(){return uAO(U,f.mutation$jscomp$8.entityKey)}}(b)),b.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(m=function(f){return function(){return JSE(U,f.mutation$jscomp$8.entityKey,f.mutation$jscomp$8.payload[f.mutationEntityType$jscomp$3],f.mutationEntityType$jscomp$3)}}(b)),m&&(x[b.mutation$jscomp$8.entityKey]=
x[b.mutation$jscomp$8.entityKey]?x[b.mutation$jscomp$8.entityKey].then(m):m()));
return RD.all(Object.values(x))}),0):p.return()})};
knE=function(t){var E;t=(E=t.options)==null?void 0:E.persistenceOption;return t==="ENTITY_PERSISTENCE_OPTION_PERSIST"||t==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
ZSt=function(t,E){var p,U;_.q(function(x){if(x.nextAddress==1)return x.yield(_.F1(),2);if(x.nextAddress!=3)return(p=x.yieldResult)?x.yield(_.GV(p,"readonly",function(A){var m={},b=Object.keys(E).map(function(f){var B=E[f]?[].concat(_.KB(E[f])):[];return I5L(A,f,B,m)});
return RD.all(b).then(function(){return m})}),3):x.return();
U=x.yieldResult;Object.keys(U).length>0&&t.dispatch(g9D(U));_.Do(x)})};
I5L=function(t,E,p,U){return nb(t,E,p).then(function(x){U[E]=OSi(p,x)})};
OSi=function(t,E){if(E.length!==t.length)throw Error("Lf");return E.reduce(function(p,U,x){p[t[x]]=U;return p},{})};
a5E=function(t){var E=t.filter(function(x){var A;return(x==null?void 0:(A=x.transferEntity)==null?void 0:A.transferState)==="TRANSFER_STATE_COMPLETE"}).length,p=t.filter(function(x){var A;
return(x==null?void 0:(A=x.transferEntity)==null?void 0:A.transferState)==="TRANSFER_STATE_FAILED"}).length,U=t.filter(function(x){var A;
return(x==null?void 0:(A=x.transferEntity)==null?void 0:A.transferState)&&XgO.includes(x.transferEntity.transferState)});
if(!(E||U!=null&&U.length))return 0;E=_.hkL(U)+E;t=t.length-p;return t===0?0:Math.round(E*100/t)/100};
_.hkL=function(t){var E=[];E=E.concat.apply(E,_.KB(t.filter(function(A){return A.streamEntity}).map(function(A){var m=Object.assign({},A.streamEntity),b,f=(b=A.transferEntity)==null?void 0:b.transferState;
m.streamsProgress=m.streamsProgress||[];m.streamsProgress=m.streamsProgress.map(function(B){var R=Object.assign({},B);R.numBytesDownloaded=f==="TRANSFER_STATE_COMPLETE"?B.numTotalBytes:B.numBytesDownloaded;return R});
return m}).map(function(A){return A.streamsProgress})));
var p=t=0;E=_.M(E);for(var U=E.next();!U.done;U=E.next()){var x=U.value;U=Number(x.numBytesDownloaded);x=Number(x.numTotalBytes);p+=isNaN(U)?0:U;t+=isNaN(x)?0:x}return t===0?0:Math.round(p*100/t)/100};
ekO=function(t){if(!t||!t.expirationTimestamp||!t.action)return!1;var E=(0,_.eu)()/1E3;return Number(t.expirationTimestamp)>=E};
Nc=function(t){return t&&t.expirationTimestamp&&t.action?ekO(t)&&t.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.Lb=function(t){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(t||"TRANSFER_STATE_UNKNOWN")};
FIl=function(t){var E=new cLK;if(t!==void 0){var p=Math.ceil(Math.log2(t.length*4+2)/7);p=p===void 0?2:p;ZB(E,10);E.submessagePosStack.push(E.pos);E.submessagePosStack.push(p);E.pos+=p;OF(E,t.length*1.2);p=WP0(t,E.buf.subarray(E.pos));E.pos+p>E.buf.length&&(OF(E,p),p=WP0(t,E.buf.subarray(E.pos)));E.pos+=p;t=E.submessagePosStack.pop();p=E.submessagePosStack.pop();for(var U=E.pos-p-t;t--;){var x=t?128:0;E.view.setUint8(p++,U&127|x);U>>=7}}E=new Uint8Array(E.buf.buffer,E.buf.byteOffset,E.pos);return(new TextDecoder("utf-8")).decode(E)};
_.PA=function(t){var E=0;t=_.M(t);for(var p=t.next(),U={};!p.done;U={transferState$jscomp$3:void 0},p=t.next()){var x=p.value,A=void 0;p=(A=x.streamEntity)!=null?A:{};A=void 0;U.transferState$jscomp$3=(A=x.transferEntity)==null?void 0:A.transferState;A=x=void 0;((x=p)==null?0:(A=x.streamsProgress)==null?0:A.length)&&p.streamsProgress.forEach(function(m){return function(b){b=Number(m.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?b.numTotalBytes:b.numBytesDownloaded);isFinite(b)&&(E+=b)}}(U))}return E};
zk$=function(t){return t.some(function(E){var p;if(!(E==null?0:(p=E.transferEntity)==null?0:p.transferState)){var U;return!(E==null?0:(U=E.policyEntity)==null?0:U.action)||E.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return XgO.includes(E.transferEntity.transferState)})};
l5$=function(t,E){if(!E)return!1;if(_.r("of_pb_en_po_ks"))return!0;var p;t=(p=_.hj(t,"offlineVideoPolicy",_.X1(E,"offlineVideoPolicy")))!=null?p:void 0;return!!t&&Nc(t)};
_.n9i=function(t){var E=["TRANSFER_STATE_COMPLETE"];E=E===void 0?Gni:E;return t.filter(function(p){var U,x;return E.includes((x=(U=p.transferEntity)==null?void 0:U.transferState)!=null?x:"TRANSFER_STATE_UNKNOWN")})};
N88=function(t,E){if(E){var p,U=(p=_.hj(t,"playbackData",_.X1(E,"playbackData")))!=null?p:null,x;p=(x=_.hj(t,"transfer",_.X1(E,"transfer")))!=null?x:null;var A;x=(A=_.hj(t,"offlineVideoStreams",_.X1(E,"offlineVideoStreams")))!=null?A:null;var m;t=(m=_.hj(t,"offlineVideoPolicy",_.X1(E,"offlineVideoPolicy")))!=null?m:null;if(U||p||x||t)return{playbackDataEntity:U,transferEntity:p,streamEntity:x,policyEntity:t}}};
_.TV=function(t){var E=t.playbackData;if(!E)return[];var p=[];E=_.M(Object.keys(E));for(var U=E.next();!U.done;U=E.next()){var x=U.value;if(!D7K(t,_.gm(x).entityId)&&(U=N88(t,_.gm(x).entityId))){var A=void 0,m=void 0;x=(m=Number((A=_.hj(t,"playbackData",x))==null?void 0:A.streamDownloadTimestampSeconds))!=null?m:(0,_.eu)();p.push({entity:U,streamDownloadTimestamp:x})}}return p.sort(function(b,f){var B=b.streamDownloadTimestamp,R=f.streamDownloadTimestamp;return R===B?b.entity.streamEntity&&!f.entity.streamEntity?
1:-1:R-B}).map(function(b){return b.entity})};
sOj=function(t){return _.n9i(_.TV(t))};
_.LI0=function(t){return _.TV(t).filter(function(E){var p;if(((p=E.policyEntity)==null?0:p.action)&&E.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var U;if((U=E.transferEntity)==null?0:U.transferState){var x;return XgO.includes((x=E.transferEntity)==null?void 0:x.transferState)}return!0})};
D7K=function(t,E){var p;return((p=_.hj(t,"downloadStatusEntity",_.X1(E,"downloadStatusEntity")))==null?void 0:p.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
Pu0=function(t){var E;if(t==null?0:(E=t.playbackDataEntity)==null?0:E.key)return _.gm(t.playbackDataEntity.key).entityId;var p;if(t==null?0:(p=t.transferEntity)==null?0:p.key)return _.gm(t.transferEntity.key).entityId;var U;if(t==null?0:(U=t.streamEntity)==null?0:U.key)return _.gm(t.streamEntity.key).entityId;var x;if(t==null?0:(x=t.policyEntity)==null?0:x.key)return _.gm(t.policyEntity.key).entityId};
o9_=function(t){var E=new Set,p;t=(p=t.mainDownloadsListEntity)==null?void 0:p[T8O];var U;if(!(t==null?0:(U=t.downloads)==null?0:U.length))return E;var x;t==null||(x=t.downloads)==null||x.forEach(function(A){(A==null?0:A.videoItem)&&E.add(A.videoItem)});
return E};
op=function(t,E){if(E){var p=_.hj(t,"mainVideoEntity",_.X1(E,"mainVideoEntity")),U=_.hj(t,"downloadStatusEntity",_.X1(E,"downloadStatusEntity")),x=_.hj(t,"ytMainChannelEntity",_.X1(E,"ytMainChannelEntity")),A={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};t=N88(t,E);U=(U==null?void 0:U.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.r("woffle_render_failed_download_state_ks")&&(U==null?void 0:U.downloadState)==="DOWNLOAD_STATE_FAILED";!t&&U&&(t=A);if(t&&p&&
x)return Object.assign({},{videoEntity:p,channelEntity:x},t)}};
$7K=function(t,E){return WIj(t,E)==="TRANSFER_STATE_COMPLETE"&&l5$(t,E)};
KIl=function(t,E){if(!E)return!1;var p;t=(p=_.hj(t,"playbackData",_.X1(E,"playbackData")))!=null?p:void 0;return!!t&&!!t.playerResponseJson};
WIj=function(t,E){if(!E)return"TRANSFER_STATE_UNKNOWN";var p=_.hj(t,"transfer",_.X1(E,"transfer"));if(p){var U;return(U=p.transferState)!=null?U:"TRANSFER_STATE_UNKNOWN"}p=_.hj(t,"offlineOrchestrationActionWrapperEntity",_.X1(E,"offlineOrchestrationActionWrapperEntity"));t=_.hj(t,"mainVideoEntity",_.X1(E,"mainVideoEntity"));return p||t?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
v9L=function(t,E){if(!E)return"TRANSFER_STATE_UNKNOWN";if(t=_.hj(t,"transfer",_.X1(E,"transfer"))){var p;return(p=t.transferState)!=null?p:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
ySO=function(t,E){return E&&(t=_.hj(t,"videoPlaybackPositionEntity",_.X1(E,"videoPlaybackPositionEntity")),t==null?0:t.lastPlaybackPositionSeconds)?Number(t.lastPlaybackPositionSeconds):0};
cSL=function(t,E){return S0i(t).some(function(p){var U;return(p==null?void 0:(U=p.mainPlaylistEntity)==null?void 0:U.playlistId)===E})};
Et_=function(t,E,p){var U=tZj(t,E);if(!U.length)return[];E=[];U=_.M(U);for(var x=U.next();!x.done;x=U.next()){x=x.value;var A=op(t,x);p&&WIj(t,x)!=="TRANSFER_STATE_COMPLETE"||A&&E.push(A)}return E};
tZj=function(t,E){if(!E)return[];var p=_.X1(E,"mainPlaylistEntity"),U;E=(U=t.mainPlaylistEntity)==null?void 0:U[p];U=[];if(E==null||!E.videos)return U;E=_.M(E.videos);for(p=E.next();!p.done;p=E.next()){p=p.value;var x=void 0,A=void 0,m=void 0,b=(x=t)==null?void 0:(A=x.mainPlaylistVideoEntity)==null?void 0:(m=A[p])==null?void 0:m.video;b&&(p=_.gm(b).entityId)&&U.push(p)}return U};
pdi=function(t,E){if(E){var p=_.hj(t,"mainPlaylistEntity",_.X1(E,"mainPlaylistEntity")),U=_.hj(t,"mainPlaylistDownloadStateEntity",_.X1(E,"mainPlaylistDownloadStateEntity"));t=_.hj(t,"ytMainChannelEntity",_.X1(E,"ytMainChannelEntity"));if(U&&p)return Object.assign({},{mainPlaylistEntity:p,mainPlaylistDownloadStateEntity:U},!!t&&{channelEntity:t})}};
S0i=function(t){return UYO(t).sort(function(E,p){return p.addedTimestampMillis-E.addedTimestampMillis}).map(function(E){return E.downloadedPlaylistEntities})};
UYO=function(t){var E=t.mainPlaylistDownloadStateEntity,p=[];if(!E)return p;for(var U=_.M(Object.keys(E)),x=U.next();!x.done;x=U.next()){var A=x.value;x=pdi(t,_.gm(A).entityId);var m=void 0;A=Number((m=E[A])==null?void 0:m.addedTimestampMillis);m=isNaN(A)?(0,_.eu)():A;x!==void 0&&p.push({downloadedPlaylistEntities:x,addedTimestampMillis:m})}return p};
xYt=function(t){var E,p=(E=t.mainPlaylistVideoEntity)!=null?E:{};return new Set(S0i(t).reduce(function(U,x){U=U===void 0?[]:U;var A,m;x==null||(A=x.mainPlaylistEntity)==null||(m=A.videos)==null||m.forEach(function(b){var f;(b=(f=p[b])==null?void 0:f.video)&&U.push(b)});
return U},[]))};
A4Y=function(t){return"downloadedMusicPlaylistEntities"in t};
Y7K=function(t){return"mainPlaylistEntity"in t&&"mainPlaylistDownloadStateEntity"in t};
MZl=function(t){return"videoEntity"in t&&"channelEntity"in t};
mYi=function(t){var E=t.musicPlaylistDownloadMetadataEntity,p=[];if(!E)return p;for(var U=_.M(Object.keys(E)),x=U.next();!x.done;x=U.next()){x=x.value;a:{var A=t,m=_.gm(x).entityId;if(m){var b=_.hj(A,"musicPlaylist",_.X1(m,"musicPlaylist"));A=_.hj(A,"musicPlaylistDownloadMetadataEntity",_.X1(m,"musicPlaylistDownloadMetadataEntity"));if(b&&A){b={musicPlaylistEntity:b,musicPlaylistDownloadStateEntity:A};break a}}b=void 0}A=void 0;x=Number((A=E[x])==null?void 0:A.addedTimestampMillis);x=isNaN(x)?(0,_.eu)():
x;b!==void 0&&p.push({downloadedMusicPlaylistEntities:b,addedTimestampMillis:x})}return p};
bHD=function(t){var E=new Set;t=_.M(t);for(var p=t.next();!p.done;p=t.next())if(p=p.value,"musicPlaylistEntity"in p&&"musicPlaylistDownloadStateEntity"in p){p=_.M(p.musicPlaylistEntity.tracks);for(var U=p.next();!U.done;U=p.next())E.add(U.value)}return E};
iHD=function(t,E){if(E){var p=_.hj(t,"musicTrack",_.X1(E,"musicTrack")),U=_.hj(t,"musicArtist",_.X1(E,"musicArtist"))||{};if((t=N88(t,E))&&p&&U)return Object.assign({},{musicTrackEntity:p,musicArtistEntity:U},t)}};
q7t=function(t){var E=t.musicTrackDownloadMetadataEntity,p=[];if(!E)return[];E=_.M(Object.keys(E));for(var U=E.next();!U.done;U=E.next()){var x=U.value;U=iHD(t,_.gm(x).entityId);var A=void 0;x=Number((A=_.hj(t,"musicTrackDownloadMetadataEntity",x))==null?void 0:A.addedTimestampMillis);A=isNaN(x)?(0,_.eu)():x;U!==void 0&&p.push({downloadedMusicEntities:U,addedTimestampMillis:A})}return p};
Bw0=function(t,E){if(!E)return[];if(Object.values(HHt).includes(E))return fFK(t,E);E=_.X1(E,"musicPlaylist");var p;t=(p=t.musicPlaylist)==null?void 0:p[E];p=[];if(t==null||!t.tracks)return p;t=_.M(t.tracks);for(E=t.next();!E.done;E=t.next())(E=_.gm(E.value).entityId)&&p.push(E);return p};
fFK=function(t,E){var p=new Set,U=mYi(t).map(function(A){return A.downloadedMusicPlaylistEntities});
U=bHD(U);U=_.M(U);for(var x=U.next();!x.done;x=U.next())(x=_.gm(x.value).entityId)&&p.add(x);return wdl(t).downloadedMusicEntities.filter(function(A){var m;if((m=A.musicTrackEntity)!=null&&m.videoId){A=A.musicTrackEntity;if(m=E==="PPOM"?!0:!p.has(A.videoId))b:switch(A=A.musicVideoType,E){case "PPSE":m=A==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:m=A!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}A=m}else A=!1;return A}).map(function(A){var m;
return(m=A.musicTrackEntity)==null?void 0:m.videoId})};
wdl=function(t){var E=q7t(t).sort(function(p,U){return U.addedTimestampMillis-p.addedTimestampMillis}).map(function(p){return"downloadedMusicEntities"in p?p.downloadedMusicEntities:A4Y(p)?p.downloadedMusicPlaylistEntities:{}});
t=mYi(t).sort(function(p,U){return U.addedTimestampMillis-p.addedTimestampMillis}).map(function(p){return"downloadedMusicEntities"in p?p.downloadedMusicEntities:A4Y(p)?p.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:E,downloadedMusicPlaylistEntities:t}};
VZD=function(t,E){E=_.qO("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?Bw0(t,E):tZj(t,E);if(!E.length)return"TRANSFER_STATE_UNKNOWN";E=E.map(function(p){return v9L(t,p)});
return ROl(E)};
ROl=function(t){var E=new Set(t);if(E.has("TRANSFER_STATE_FAILED")&&E.size===1)return"TRANSFER_STATE_FAILED";E.delete("TRANSFER_STATE_FAILED");if(E.has("TRANSFER_STATE_UNKNOWN")&&E.size===1)return"TRANSFER_STATE_PRE_TRANSFER";E.delete("TRANSFER_STATE_UNKNOWN");if(E.has("TRANSFER_STATE_PRE_TRANSFER")&&E.size===1||E.size===0)return"TRANSFER_STATE_PRE_TRANSFER";t=E.has("TRANSFER_STATE_TRANSFERRING");E=E.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return t||E?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
WA=function(t){var E=t.mainVideoDownloadStateEntity,p=[];if(!E)return[];E=_.M(Object.keys(E));for(var U=E.next();!U.done;U=E.next()){var x=U.value;if(!D7K(t,_.gm(x).entityId)){U=op(t,_.gm(x).entityId);var A=void 0,m=void 0;x=(m=Number((A=_.hj(t,"mainVideoDownloadStateEntity",x))==null?void 0:A.addedTimestampMillis))!=null?m:(0,_.eu)();U!==void 0&&p.push({downloadedVideoEntities:U,addedTimestampMillis:x})}}return p};
QU8=function(t){return WA(t).sort(function(E,p){return p.addedTimestampMillis-E.addedTimestampMillis}).map(function(E){return E.downloadedVideoEntities})};
_.jU$=function(t){var E=xYt(t),p=_.$h(t),U=o9_(t),x=WA(t).filter(function(m){var b,f;if((m==null?void 0:(b=m.downloadedVideoEntities)==null?void 0:(f=b.transferEntity)==null?void 0:f.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var B,R;m=m==null?void 0:(B=m.downloadedVideoEntities)==null?void 0:(R=B.videoEntity)==null?void 0:R.key;return _.r("kevlar_use_library_entity")?m&&(U.has(m)||p[m]):m&&!E.has(m)}),A=UYO(t).filter(function(m){return VZD(t,m.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.KB(x),_.KB(A)).sort(function(m,b){return b.addedTimestampMillis-m.addedTimestampMillis}).map(function(m){return CI8(m)})};
r4L=function(t,E){if(E&&l5$(t,E)){var p,U,x=(U=(p=_.hj(t,"playbackData",_.X1(E,"playbackData")))!=null?p:void 0)==null?void 0:U.playerResponseJson;if(x){try{var A=JSON.parse(x);var m=_.hj(t,"transfer",_.X1(E,"transfer")),b=ySO(t,E);b&&(A=Object.assign({},A,{playerConfig:Object.assign({},A.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+b*1E3}}})}));A.cotn=m==null?void 0:m.cotn}catch(f){}return A}}};
_.dYj=function(t){var E,p,U;t=(U=(p=((E=t.downloadsPageViewConfigurationEntity)!=null?E:{})[_.Kb])==null?void 0:p.smartDownloadsOptInBannerVisibility)!=null?U:{};var x;return(x=_.k(t,kWl))!=null?x:{}};
_.$h=function(t){var E,p,U;t=(U=(p=((E=t.mainDownloadsListEntity)!=null?E:{})[_.uhO])==null?void 0:p.downloads)!=null?U:[];E={};p=_.M(t);for(U=p.next();!U.done;U=p.next())t=void 0,E[(t=U.value.videoItem)!=null?t:""]=!0;return E};
J4E=function(t){var E=_.$h(t);if(Object.keys(E).length===0)return!1;var p=t.mainVideoEntity;if(!p)return!0;p=_.M(Object.keys(p));for(var U=p.next();!U.done;U=p.next()){U=U.value;var x=_.gm(U).entityId;if(E[U]&&!D7K(t,x))return!1}return!0};
_.vA=function(t){var E=_.$h(t);return WA(t).sort(function(p,U){return p.addedTimestampMillis-U.addedTimestampMillis}).map(function(p){return p.downloadedVideoEntities}).filter(function(p){var U;
return(p=p==null?void 0:(U=p.videoEntity)==null?void 0:U.key)&&!!E[p]})};
_.gt_=function(t){var E,p,U;t=(U=(p=((E=t.downloadsPageViewConfigurationEntity)!=null?E:{})[_.Kb])==null?void 0:p.downloadsUpsellBannerVisibility)!=null?U:{};var x;return(x=_.k(t,IFi))!=null?x:{}};
CI8=function(t){return"downloadedVideoEntities"in t?t.downloadedVideoEntities:"downloadedPlaylistEntities"in t?t.downloadedPlaylistEntities:{}};
ZHt=function(t){var E=_.$h(t),p=xYt(t),U=WA(t).filter(function(x){var A,m;return(x=x==null?void 0:(A=x.downloadedVideoEntities)==null?void 0:(m=A.videoEntity)==null?void 0:m.key)&&!E[x]&&!p.has(x)});
t=UYO(t);return[].concat(_.KB(U),_.KB(t)).sort(function(x,A){return A.addedTimestampMillis-x.addedTimestampMillis}).map(function(x){return CI8(x)})};
_.yR=function(t){if(!_.r("kevlar_use_library_entity"))return ZHt(t);var E=WA(t).filter(function(U){var x,A;if(x=U=U==null?void 0:(x=U.downloadedVideoEntities)==null?void 0:(A=x.videoEntity)==null?void 0:A.key){var m,b,f;x=((b=(m=t.mainDownloadsListEntity)==null?void 0:m[T8O])==null?0:(f=b.downloads)==null?0:f.length)?o9_(t).has(U):!1}return x}),p=UYO(t);
return[].concat(_.KB(E),_.KB(p)).sort(function(U,x){return x.addedTimestampMillis-U.addedTimestampMillis}).map(function(U){return CI8(U)})};
OHi=function(t){var E=_.$h(t),p=xYt(t);return QU8(t).filter(function(U){var x;return(U=U==null?void 0:(x=U.videoEntity)==null?void 0:x.key)&&!E[U]&&!p.has(U)})};
XdL=function(t){if(!_.r("kevlar_use_library_entity"))return OHi(t);var E=_.$h(t),p=o9_(t);return QU8(t).filter(function(U){var x;return(U=U==null?void 0:(x=U.videoEntity)==null?void 0:x.key)&&!E[U]&&p.has(U)})};
hOO=function(t,E){E=_.X1(E,"settingEntity");var p,U,x;return!!((x=(U=((p=t.settingEntity)!=null?p:{})[E])==null?void 0:U.settingOptionValue)!=null?x:{}).boolValue};
_.S1=function(t){var E=_.vA(t);if(zk$(E))return 0;var p=[];E=_.M(E);for(var U=E.next();!U.done;U=E.next()){U=U.value;var x=void 0,A=void 0;if((x=U)==null?0:(A=x.videoEntity)==null?0:A.key)x=_.gm(U.videoEntity.key).entityId,U=t,x=_.X1(x,"mainVideoDownloadStateEntity"),U=_.hj(U,"mainVideoDownloadStateEntity",x),(U=Number(U==null?void 0:U.addedTimestampMillis))&&p.push(U)}return Math.max.apply(Math,_.KB(p))};
_.cA=function(t){return t.ui.richGridMiniMode};
_.tf=function(t){return t.ui.richGridItemsPerRow};
_.aFt=function(t){return t.ui.richGridSlimItemsPerRow};
_.eOE=function(t){return t.ui.guideIsExpanded};
_.E5=function(t){return t.ui.miniplayerIsActive};
F3t=function(t){return t.ui.singleOptionSurveyIsActive};
_.pf=function(t){var E;return((E=t.ui)==null?void 0:E.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.zOi=function(t){return _.pf(t)==="WEB_PAGE_TYPE_WATCH"};
_.lF_=function(t){return _.pf(t)==="WEB_PAGE_TYPE_SHORTS"};
_.GWt=function(t){return t.ui.inlinePreviewIsActive};
_.ntL=function(t){return t.ui.inlinePreviewIsEnabled};
_.Nw_=function(t){return t.ui.miniplayerPlaybackState};
_.U5=function(t){return t.ui.isOnline};
_.DYE=function(t){return t.ui.frostedGlassMode};
_.xz=function(t,E){return WIj(t.entities,E)};
_.Af=function(t,E){return VZD(t.entities,E)};
sUJ=function(t,E){var p;if(E){var U;t=(U=_.hj(t.entities,"offlineVideoPolicy",_.X1(E,"offlineVideoPolicy")))==null?void 0:U.action}else t=void 0;return(p=t)!=null?p:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
L3Y=function(t,E){var p;E?(t=_.hj(t.entities,"offlineVideoPolicy",_.X1(E,"offlineVideoPolicy")),t=Number(t==null?void 0:t.expirationTimestamp)):t=void 0;return(p=t)!=null?p:0};
_.PI0=function(t){return _.TV(t.entities).length};
TwK=function(t,E){return op(t.entities,E)};
otO=function(t,E){return pdi(t.entities,E)};
Yz=function(t,E){return(t=op(t.entities,E))?_.hkL([t]):0};
_.W38=function(t,E){var p=_.qO("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(p){var U=t.entities;var x=Bw0(U,E);if(x.length){var A=[];x=_.M(x);for(var m=x.next();!m.done;m=x.next())(m=iHD(U,m.value))&&A.push(m);U=A}else U=[]}else U=Et_(t.entities,E);var b;if(p){var f=t.entities;E?(E=_.X1(E,"musicPlaylist"),f=(b=f.musicPlaylist)==null?void 0:b[E],b=f!=null&&f.tracks?f.tracks.length:0):b=0}else b=t.entities,E?(E=_.X1(E,"mainPlaylistEntity"),b=(f=b.mainPlaylistEntity)==null?void 0:f[E],b=b!=null&&b.videos?
b.videos.length:0):b=0;return U.length!==b?0:U?a5E(U):0};
_.$Y_=function(t){return t.download.isLeaderTab};
_.K3$=function(t,E,p){if(!E&&p){var U=t.entities;if(p){var x=FIl(p),A,m;E=(m=(A=_.hj(U,"offlineabilityEntity",_.X1(x,"offlineabilityEntity")))==null?void 0:A.addToOfflineButtonState)!=null?m:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else E="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else A=t.entities,E?(m=FIl(E),E=(x=(U=_.hj(A,"offlineabilityEntity",_.X1(m,"offlineabilityEntity")))==null?void 0:U.addToOfflineButtonState)!=null?x:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):E="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return E};
vt0=function(t,E){t=t.entities;if(E){E=FIl(E);var p,U;E=(U=(p=_.hj(t,"offlineabilityEntity",_.X1(E,"offlineabilityEntity")))==null?void 0:p.addToOfflineButtonState)!=null?U:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else E="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return E};
_.y4L=function(t){var E=t.entities;t=_.U5(t);var p=hOO(E,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.r("kevlar_modern_downloads_page")&&p)var U=!1;else{var x,A;E=(A=(x=((U=E.downloadsPageViewConfigurationEntity)!=null?U:{})[_.Kb])==null?void 0:x.smartDownloadsOptInBannerVisibility)!=null?A:{};U=t?!!E.visibleWithConnection:!!E.visibleWithoutConnection}return U};
_.S7_=function(t){return hOO(t.entities,"SMART_DOWNLOADS_ENABLED")};
_.c4$=function(t){return J4E(t.entities)};
tpt=function(t){return _.vA(t.entities).every(function(E){var p;return(E==null?void 0:(p=E.transferEntity)==null?void 0:p.transferState)&&!XgO.includes(E.transferEntity.transferState)})};
_.Epj=function(t){var E,p,U,x=(U=(p=((E=t.entities.downloadsPageViewConfigurationEntity)!=null?E:{})[_.Kb])==null?void 0:p.downloadsUpsellBannerVisibility)!=null?U:{};return _.U5(t)?!!x.visibleWithConnection:!!x.visibleWithoutConnection};
_.pe$=function(t,E){return D7K(t.entities,E)};
UTi=function(t,E){if(E){var p,U;t=(U=(p=_.hj(t.entities,"downloadStatusEntity",_.X1(E,"downloadStatusEntity")))==null?void 0:p.downloadState)!=null?U:"DOWNLOAD_STATE_UNKNOWN"}else t="DOWNLOAD_STATE_UNKNOWN";return t};
MJ=function(t,E){return ySO(t.entities,E)};
Mp0=function(t){t=xTE(t);var E=t.hours===void 0?0:t.hours,p=t.minutes===void 0?0:t.minutes,U=t.seconds===void 0?0:t.seconds,x=E>0;t=[];x&&(E=AT8(E),t.push(E));E=x;E=E===void 0?!1:E;p=(["af","be","lt"].includes(mD)||E)&&p<10?Y9J().format(p):(new Intl.NumberFormat("en-u-nu-latn")).format(p);t.push(p);p=Y9J().format(U);t.push(p);p=":";"da fi id si sr sr-Latn".split(" ").includes(mD)&&(p=".");return t.join(p)};
_.bEl=function(t){t=xTE(t);var E=t.hours===void 0?0:t.hours,p=t.minutes===void 0?0:t.minutes,U=t.seconds===void 0?0:t.seconds;t=[];if(E>0){var x=mT0().format({hours:E});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(mD)||E>9999)x=x.replace(E.toString(),AT8(E)),mD==="km"&&(x=x.replace(".",","));t.push(x)}p>0&&t.push(mT0().format({minutes:p}));U>0&&t.push(mT0().format({seconds:U}));E="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");p=mD=="am"?"{0}\u1363 ":mD=="fa"?"{0}\u060c\u200f ":
mD=="my"?"{0} - ":mD=="ne"?"{0},":mD=="th"?"{0} ":mD=="ur"?"{0}\u060c ":mD=="ar"||mD=="ar-XB"?"{0} \u0648":mD=="ja"||mD=="zh-CN"||mD=="zh-HK"||mD=="zh-TW"?"{0}\u3001":"{0}, ";U=mD=="am"?"\u1363 ":mD=="fa"?"\u060c\u200f ":mD=="my"?" - ":mD=="th"?" ":mD=="ur"?"\u060c ":mD=="ar"||mD=="ar-XB"?" \u0648":mD=="ja"||mD=="zh-CN"||mD=="zh-HK"||mD=="zh-TW"?"\u3001":", ";x=mD=="am"?" \u12a5\u1293 {0}":mD=="as"?" \u0986\u09f0\u09c1 {0}":mD=="az"?" v\u0259 {0}":mD=="bn"?" \u098f\u09ac\u0982 {0}":mD=="cs"?" a\u00a0{0}":
mD=="de"?" und {0}":mD=="el"?" \u03ba\u03b1\u03b9 {0}":mD=="eu"?" eta {0}":mD=="fa"?"\u060c \u0648 {0}":mD=="fil"?", at {0}":mD=="gu"?" \u0a85\u0aa8\u0ac7 {0}":mD=="hi"?", \u0914\u0930 {0}":mD=="hu"?" \u00e9s {0}":mD=="hy"?" \u0587 {0}":mD=="id"?", dan {0}":mD=="iw"?" \u05d5-{0}":mD=="ja"?"\u3001{0}":mD=="ka"?" \u10d3\u10d0 {0}":mD=="km"?" \u1793\u17b7\u1784 {0}":mD=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":mD=="ko"?" \ubc0f {0}":mD=="ky"?" \u0436\u0430\u043d\u0430 {0}":mD=="lt"?" ir {0}":mD==
"lv"?" un {0}":mD=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":mD=="mr"?" \u0906\u0923\u093f {0}":mD=="ms"?" dan {0}":mD=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":mD=="ne"?" \u0930 {0}":mD=="or"?", \u0b13 {0}":mD=="pa"?" \u0a05\u0a24\u0a47 {0}":mD=="ro"?" \u0219i {0}":mD=="si"?", \u0dc3\u0dc4 {0}":mD=="sk"?" a {0}":mD=="sl"?" in {0}":mD=="sq"?" dhe {0}":mD=="sv"?" och {0}":mD=="sw"?" na {0}":mD=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":mD=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
mD=="th"?" \u0e41\u0e25\u0e30{0}":mD=="tr"?" ve {0}":mD=="ur"?"\u060c \u0627\u0648\u0631 {0}":mD=="uz"?" va {0}":mD=="vi"?" v\u00e0 {0}":mD=="zh-HK"?"\u53ca{0}":mD=="zu"?", ne-{0}":mD=="af"||mD=="nl"?" en {0}":mD=="ar"||mD=="ar-XB"?" \u0648{0}":mD=="be"||mD=="uk"?" \u0456 {0}":mD=="en-GB"||mD=="en-IN"?" and {0}":mD=="en"||mD=="en-XA"?", and {0}":mD=="et"||mD=="fi"?" ja {0}":mD=="fr"||mD=="fr-CA"?" et {0}":mD=="zh-CN"||mD=="zh-TW"?"\u548c{0}":mD=="da"||mD=="is"||mD=="no"?" og {0}":mD=="es"||mD=="es-419"||
mD=="es-US"?" y {0}":mD=="kk"||mD=="lo"||mD=="mn"?", {0}":mD=="bg"||mD=="mk"||mD=="ru"||mD=="sr"?" \u0438 {0}":mD=="gl"||mD=="it"||mD=="pt-BR"||mD=="pt-PT"?" e {0}":" i {0}";var A=mD=="am"?"{0} \u12a5\u1293 {1}":mD=="as"?"{0} \u0986\u09f0\u09c1 {1}":mD=="az"?"{0} v\u0259 {1}":mD=="bn"?"{0} \u098f\u09ac\u0982 {1}":mD=="de"?"{0} und {1}":mD=="el"?"{0} \u03ba\u03b1\u03b9 {1}":mD=="eu"?"{0} eta {1}":mD=="fa"?"{0} \u0648 {1}":mD=="fil"?"{0} at {1}":mD=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":mD=="hi"?"{0} \u0914\u0930 {1}":
mD=="hu"?"{0} \u00e9s {1}":mD=="hy"?"{0} \u0587 {1}":mD=="iw"?"{0} \u05d5-{1}":mD=="ja"?"{0}\u3001{1}":mD=="ka"?"{0} \u10d3\u10d0 {1}":mD=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":mD=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":mD=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":mD=="ko"?"{0} \ubc0f {1}":mD=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":mD=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":mD=="lt"?"{0} ir {1}":mD=="lv"?"{0} un {1}":mD=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":mD=="mn"?"{0}, {1}":mD==
"mr"?"{0} \u0906\u0923\u093f {1}":mD=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":mD=="ne"?"{0} \u0930 {1}":mD=="or"?"{0} \u0b13 {1}":mD=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":mD=="ro"?"{0} \u0219i {1}":mD=="si"?"{0} \u0dc3\u0dc4 {1}":mD=="sl"?"{0} in {1}":mD=="sq"?"{0} dhe {1}":mD=="sv"?"{0} och {1}":mD=="sw"?"{0} na {1}":mD=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":mD=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":mD=="th"?"{0}\u0e41\u0e25\u0e30{1}":mD=="tr"?"{0} ve {1}":mD=="ur"?
"{0} \u0627\u0648\u0631 {1}":mD=="uz"?"{0} va {1}":mD=="vi"?"{0} v\u00e0 {1}":mD=="zh-HK"?"{0}\u53ca{1}":mD=="zu"?"{0} ne-{1}":mD=="af"||mD=="nl"?"{0} en {1}":mD=="ar"||mD=="ar-XB"?"{0} \u0648{1}":mD=="be"||mD=="uk"?"{0} \u0456 {1}":mD=="cs"||mD=="sk"?"{0} a\u00a0{1}":mD=="et"||mD=="fi"?"{0} ja {1}":mD=="fr"||mD=="fr-CA"?"{0} et {1}":mD=="id"||mD=="ms"?"{0} dan {1}":mD=="zh-CN"||mD=="zh-TW"?"{0}\u548c{1}":mD=="da"||mD=="is"||mD=="no"?"{0} og {1}":mD=="es"||mD=="es-419"||mD=="es-US"?"{0} y {1}":mD==
"bg"||mD=="mk"||mD=="ru"||mD=="sr"?"{0} \u0438 {1}":mD=="en"||mD=="en-GB"||mD=="en-IN"||mD=="en-XA"?"{0} and {1}":mD=="gl"||mD=="it"||mD=="pt-BR"||mD=="pt-PT"?"{0} e {1}":"{0} i {1}";mD==="sq"?(x=x.replace("dhe","e"),A=A.replace("dhe","e")):mD==="th"?(U=U.replace("{0}"," {0}"),A=A.replace("{0}","{0} "),A=A.replace("{1}"," {1}")):mD==="ne"?U=",":mD==="zh-CN"?U="":E.includes(mD)&&(U=" ");return t.length<2?t.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(mD)?
t.length===2?A.replace("{0}",t[0]).replace("{1}",t[1]):p.replace("{0}",t[0])+t.slice(1,-1).join(U)+x.replace("{0}",t[t.length-1]):t.join(U)};
xTE=function(t){var E=t.hours||0,p=t.minutes||0,U=t.seconds||0;E=U+p*60+E*3600+(t.days||0)*86400+(t.weeks||0)*604800+(t.months||0)*2629800+(t.years||0)*31557600;if(E<=0)return{hours:0,minutes:0,seconds:0};t=E;E=Math.floor(t/3600);t%=3600;p=Math.floor(t/60);U=Math.floor(t%60);return{hours:E,minutes:p,seconds:U}};
AT8=function(t){t=(new Intl.NumberFormat("en-u-nu-latn")).format(t);var E=["fr"],p="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(mD)?t.replace(",","\u00a0"):E.includes(mD)?t.replace(",","\u202f"):p.includes(mD)?t.replace(",","."):t};
Y9J=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
mT0=function(){iE0||(bC=q9l,iE0=new HE_);return iE0};
fHt=function(t){try{return(new _.iC(5)).format(t)}catch(E){}};
qJ=function(t){return{thumbnailOverlayDownloadingRenderer:{state:t}}};
slL=function(){var t=_.zF("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.kh(t),icon:{iconType:"PLAY_ALL"}}}};
Lgi=function(t){t=_.HL(t,2);return mD!=="ru"&&mD!=="es_419"&&mD!=="es-419"&&mD!=="es"&&mD!=="es_US"&&mD!=="es-US"&&mD!=="fr"&&mD!=="pl"&&mD!=="it"&&mD!=="nl"&&mD!=="uk"&&mD!=="fr_CA"&&mD!=="fr-CA"||t===""?t:t[0].toLocaleUpperCase()+t.substring(1)};
Tyi=function(t){return function(E){var p=t(),U=_.HL(E,p.dateFormat);E=_.HL(E,p.timeFormat);var x=Pej.DATETIMEFORMATS[p.joinerStyle];x=x.replace(/'(?!')/g,"");x=x.replace("{0}",E);x=x.replace("{1}",U);return p.capitalize(x)}};
op$=function(t){return t?typeof t.seconds==="string"&&(t.nanos===void 0||typeof t.nanos==="number"):!1};
WgL=function(t){return new Date(Number(t.seconds)*1E3+(t.nanos||0)*1E-6)};
_.HL=function(t,E){if(typeof t.getTime==="function")t={date:t};else if(op$(t))t={date:WgL(t)};else if(typeof op$(t.timestamp)&&typeof t.i18nInternalSecondsEastOfUtc==="number")t={date:WgL(t.timestamp),timeZone:ff(-t.i18nInternalSecondsEastOfUtc/60)};else throw Error("Mf`"+JSON.stringify(t));var p=t;t=p.date;p=p.timeZone;E=$Tt(E).format(t,p);mD==="zh-TW"&&(t=p?Number($Tt("H").format(t,p)):t.getHours(),E=t<5?E.replace("\u4e0a\u5348","\u51cc\u6668"):t<8?E.replace("\u4e0a\u5348","\u65e9\u4e0a"):t<12?
E.replace("\u4e0a\u5348","\u4e0a\u5348"):t<13?E.replace("\u4e0b\u5348","\u4e2d\u5348"):t<19?E.replace("\u4e0b\u5348","\u4e0b\u5348"):E.replace("\u4e0b\u5348","\u665a\u4e0a"));return E};
$Tt=function(t){if(KgY.has(t))return KgY.get(t);var E=vp_(t);E=yTL(E);S9t!==!0&&(S9t=!0);cTL=!0;cTL=!1;E=new BL(E,Pej);KgY.set(t,E);return E};
vp_=function(t){return(new BL(t,Pej)).patternParts_.map(function(E){return E.type===0?"'"+E.text+"'":E.text}).join("")};
yTL=function(t){return mD==="en"||mD==="es_US"||mD==="es-US"?t:t.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(E,p,U){return"H".repeat(p.length)+U})};
Y$0=function(t,E){tA0||(bC=q9l,tA0=new Ecj);var p=tA0;a:if(t=pJt(t),E=pJt(E||new Date),t>E)p=t.getTime()-E.getTime()>6048E5?_.HL(t,1):U4Y(t);else{for(var U=0;x4_(t,12*(U+1))<E;)++U;if(U>0)p=p.format(-U,0);else{for(U=0;x4_(t,U+1)<E;)++U;if(U>0)p=p.format(-U,2);else{t=E.getTime()-t.getTime();E=_.M(As$);for(U=E.next();!U.done;U=E.next()){U=U.value;var x=U.unit,A=Math.floor(t/U.unitDuration);if(A>=(U.threshold===void 0?1:U.threshold)){p=p.format(-A,x);break a}}p=p.format(-0,7)}}}return p};
pJt=function(t){if(typeof t.getTime==="function")return t;if(op$(t))return WgL(t);throw Error("Nf`"+JSON.stringify(t));};
x4_=function(t,E){for(var p=0,U;;++p)if(U=new Date(t.getFullYear(),t.getMonth()+E,t.getDate()-p,t.getHours(),t.getMinutes(),t.getSeconds()),U.getMonth()===(t.getMonth()+E)%12)return U};
_.wN=function(t){return{runs:[{text:t}]}};
_.R4=function(t){if(t&&t.simpleText)return t.simpleText;var E="";if(t&&t.runs)for(var p=0;p<t.runs.length;p++)t.runs[p].text&&(E+=t.runs[p].text);return E};
m48=function(t,E,p,U){return t.videoEntity&&!t.policyEntity&&p!=="DOWNLOAD_STATE_FAILED"?[qJ("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:Nc(t.policyEntity)&&E!=="TRANSFER_STATE_FAILED"&&E!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?E==="TRANSFER_STATE_PAUSED_BY_USER"?[qJ("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.Lb(E)?[qJ("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:t.videoEntity.lengthSeconds?MAj(t.videoEntity.lengthSeconds,U):[]:
[qJ("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
MAj=function(t,E){var p=[{thumbnailOverlayTimeStatusRenderer:{text:_.kh(Mp0({seconds:t})),style:"DEFAULT"}}];E&&(t=E<=0||t<=0?0:E>=t?100:Math.ceil(E*100/t),t>0&&p.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:t}}));return p};
bZi=function(t,E,p,U,x){if(E==="TRANSFER_STATE_UNKNOWN"||!t)return{};if(_.Lb(E)||E==="TRANSFER_STATE_PRE_TRANSFER")var A=[qJ("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var m,b;if(E==="TRANSFER_STATE_COMPLETE"&&((m=t.mainPlaylistEntity)==null?0:(b=m.videos)==null?0:b.length)){var f;t=(A=t.mainPlaylistEntity)==null?void 0:(f=A.videos)==null?void 0:f.length;A=(A=fHt(t))?{thumbnailOverlayBottomPanelRenderer:{text:_.kh(A),icon:{iconType:"PLAYLISTS"}}}:void 0;A=[slL(),Object.assign({},
A!=null?A:{})]}else A=[]}a:if(E==="TRANSFER_STATE_PRE_TRANSFER")p=dm(_.zF("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(E==="TRANSFER_STATE_TRANSFER_IN_QUEUE")p=dm(_.zF("WAITING_TO_DOWNLOAD"));else if(_.Lb(E))p=Math.floor(p*100).toString(),p=dm(_.zF("DOWNLOADING_PERCENT",{percent:p},"Downloading... "+p+"%"));else{if(U&&(_.r("playlist_is_offline_selector_killswitch")&&(x=_.X3().resolve(_.k7).isNetworkAvailable()),x)){p=DFY(_.zF("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
nAY(U));break a}p=void 0}E=E==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.zF("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},A.length?{thumbnailOverlays:A}:{},p?{viewPlaylistText:p}:{viewPlaylistText:_.wN("")},E.length?{badges:E}:{})};
iZY=function(t,E,p,U,x,A){if(E==="TRANSFER_STATE_UNKNOWN"||!t)return{};if(U==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var m=m48(t,E,U);if(t.videoEntity&&!t.policyEntity&&U!=="DOWNLOAD_STATE_FAILED"){var b=_.zF("WAITING_TO_DOWNLOAD");if(b)return{shortViewCountText:_.wN(b),publishedTimeText:void 0,thumbnailOverlays:m}}if(!Nc(t.policyEntity)){A=t.policyEntity&&!ekO(t.policyEntity)?_.zF("DOWNLOAD_EXPIRED",{},"Download expired"):
_.zF("TRANSFER_FAILED",{},"Download failed");var f;if((f=t.policyEntity)==null?0:f.shortMessageForDisabledAction)A=t.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:dm(A),publishedTimeText:void 0,thumbnailOverlays:m}}if(E==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.wN(_.zF("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:m};if(E==="TRANSFER_STATE_FAILED"||E==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.wN(_.zF("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:m};if(E==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(f=_.zF("WAITING_TO_DOWNLOAD"),U==="DOWNLOAD_STATE_PAUSED"&&(f=_.zF("DOWNLOAD_PAUSED",{},"Download paused")),f))return{shortViewCountText:_.wN(f),publishedTimeText:void 0,thumbnailOverlays:m};if(_.Lb(E))return t=Math.floor(p*100).toString(),{shortViewCountText:_.wN(_.zF("DOWNLOADING_PERCENT",{percent:t},"Downloading... "+t+"%")),publishedTimeText:void 0,thumbnailOverlays:m};E=void 0;t.videoEntity.publishedTimestampMillis&&
(E=new Date,x&&(E=new Date(x)),E=dm(Y$0(new Date(Number(t.videoEntity.publishedTimestampMillis)),E)));x=[];_.r("kevlar_woffle_badge_killswitch")||(x=[{metadataBadgeRenderer:{label:_.zF("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var B;t=dm((B=t.videoEntity.localizedStrings)==null?void 0:B.viewCount);return Object.assign({},A?{shortViewCountText:void 0}:{shortViewCountText:t},A?{}:{publishedTimeText:E},{badges:x,thumbnailOverlays:m})};
HZO=function(t,E){t=t===void 0?q$L:t;switch(E.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:E.payload.playlistId,inviteLinkURL:E.payload.inviteLinkUrl};default:return t}};
Bll=function(t,E){t=t===void 0?ff$:t;switch(E.type){case "SET_CURRENT_FORM_ID":return E=E.payload.formId,t.currentFormId===E?t:{currentFormId:E,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var p=E.payload;E=p.groupId;p=p.command;if(t.currentFormId){var U=Object.assign({},t.commandsMap);U[E]=p;t=Object.assign({},t,{commandsMap:U})}return t;case "RESET_COMMAND_MAP":return Object.assign({},t,{commandsMap:{}});default:return t}};
RIj=function(t,E){t=t===void 0?wJY:t;switch(E.type){case "UPDATE_CANVAS_MODE":return Object.assign({},t,{currentMode:E.payload.currentMode});default:return t}};
Q2D=function(t,E){t=t===void 0?VAJ:t;switch(E.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},t,{guideIsExpanded:E.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},t,{scrollAtTop:E.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},t,{guideIsVisibleButNotPersistent:E.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},t,{miniplayerIsActive:E.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},t,{singleOptionSurveyIsActive:E.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},t,{slimlineSurveyRatingSelectedIndex:E.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},t,{richGridMiniMode:E.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},t,{richGridItemsPerRow:E.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},t,{richGridSlimItemsPerRow:E.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},t,{richGridContainerWidth:E.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},t,{richGridStyle:E.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},t,{currentPageType:E.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},t,{inlinePreviewIsActive:E.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},t,{inlinePreviewIsEnabled:E.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},t,{darkModeIsEnabled:E.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
t,{miniplayerPlaybackState:E.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},t,{tabGesturesIsActive:E.payload});case "SET_ONLINE_STATUS":return Object.assign({},t,{isOnline:E.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},t,{chipBarIsSticky:E.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},t,{frostedGlassMode:E.payload});default:return t}};
CLK=function(){return _.r("kevlar_disable_theater_mode_persistence")?!1:_.HC("START_IN_THEATER_MODE")};
rsi=function(t,E){t=t===void 0?j28:t;switch(E.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},t,{transcription:E.payload});case "SET_OVERLAY_STATE":return Object.assign({},t,{overlay:E.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return t}};
hIY=function(){return xx(Object.assign({},{continuation:kki,download:d4O,canvas:RIj,reportChannelAbuse:uGt,share:Js_,talkToRecs:If$,ui:Q2D,voiceSearch:rsi,watch:gcO,ypc:ZZE,shorts:OZ_,radioButtonGroup:Bll,collabInviteLink:HZO},XJD))};
FpO=function(){return _.r("web_player_entities_middleware")?new VM(hIY(),[afO,eIO]):new VM(hIY(),[afO])};
_.QM=function(){zIK||(zIK=FpO());return zIK};
lfL=function(t,E,p){if(t.length)return{titleText:_.kh(E!=null?E:_.zF("DOWNLOADS",void 0,"Downloads")),contents:t.map(function(U){var x=U.videoEntity;U={videoId:x.videoId,title:dm(x.title),shortBylineText:dm(U.channelEntity.title),thumbnail:x.thumbnail};var A=x.videoId?MJ(_.QM().getState(),x.videoId):0;x.videoId&&p?U.navigationEndpoint=_.rm(x.videoId,p,void 0,void 0,A):x.videoId&&(U.navigationEndpoint=G0_(x.videoId,A,x.lengthSeconds));x.lengthSeconds&&(U.thumbnailOverlays=MAj(x.lengthSeconds,A));return{playlistPanelVideoRenderer:U}}),
totalVideos:t.length}};
GkK=function(t){return(t=(0,_.Kq.getValueByKeys)(t,"playlistId"))?{playlistId:t}:null};
nc_=function(){return{}};
NlO=function(t,E){return new _.PE(function(p,U){t.then(function(x){if(x){if(x=E(x))return p(x);U()}},U)})};
D4D=function(t){var E,p,U,x=(E=t.contents)==null?void 0:(p=E.twoColumnWatchNextResults)==null?void 0:(U=p.autoplay)==null?void 0:U.autoplay,A,m,b;E=(A=t.contents)==null?void 0:(m=A.twoColumnWatchNextResults)==null?void 0:(b=m.playlist)==null?void 0:b.playlist;return x&&E&&E.playlistId?{rawResponse:t,autoplayRenderer:x,playlistPanelRenderer:E,playlistId:E.playlistId}:null};
Lp_=function(t){var E=E===void 0?"UNKNOWN_INTERFACE":E;if(t.length===1)return t[0];var p=s2i[E];if(p){p=new RegExp(p);for(var U=_.M(t),x=U.next();!x.done;x=U.next())if(x=x.value,p.exec(x))return x}var A=[];Object.entries(s2i).forEach(function(m){var b=_.M(m);m=b.next().value;b=b.next().value;E!==m&&A.push(b)});
p=new RegExp(A.join("|"));t.sort(function(m,b){return m.length-b.length});
U=_.M(t);for(x=U.next();!x.done;x=U.next())if(x=x.value,!p.exec(x))return x;return t[0]};
_.Cf=function(t){return"/youtubei/v1/"+Lp_(t)};
_.jL=function(t,E){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:t}}},E!==void 0?{durationHintMs:E}:{})}};
_.rN=function(t,E){return _.jL(_.wN(t),E)};
PLE=function(t,E){var p={mode:"NORMAL"};t&&(p.autoplayVideo=t.navigationEndpoint,p.nextButtonVideo=t.navigationEndpoint);E&&(p.previousButtonVideo=E.navigationEndpoint);return p};
WpY=function(t,E,p){if(!p||!p.sets)return{sets:[PLE(t,E)]};var U=p.sets.find(function(m){return m.mode==="NORMAL"}),x=(0,_.Kq.unsafeClone)(p);
if(!U)return x.sets.push(PLE(t,E)),x;if(!t)return p;U=_.Kq.getValueByKeys.apply(null,[U].concat(_.KB(TlD)));var A=_.Kq.getValueByKeys.apply(null,[t].concat(_.KB(oc$)));if(U===A)return p;x.sets=x.sets.filter(function(m){return m.mode!=="NORMAL"});
x.sets.push(PLE(t,E));return x};
$4K=function(t){return!!t.playlistPanelVideoRenderer&&!t.playlistPanelVideoRenderer.unplayableText};
KpD=function(t){return!!t.playlistPanelVideoRenderer&&!!t.playlistPanelVideoRenderer.title};
vcJ=function(t,E){if(E.contents&&!(t>=E.contents.length)&&(t=E.contents.slice(t).find($4K)))return t.playlistPanelVideoRenderer};
ysY=function(t,E){if(E.contents)return(E=E.contents.find(function(p){return!!p.playlistPanelVideoRenderer&&p.playlistPanelVideoRenderer.videoId===t}))?E.playlistPanelVideoRenderer:void 0};
S$O=function(t,E){return E.contents?E.contents.findIndex(function(p){return!!p.playlistPanelVideoRenderer&&p.playlistPanelVideoRenderer.videoId===t}):-1};
csE=function(t,E){return E.contents?E.contents.findIndex(function(p){return!!p.playlistPanelVideoRenderer&&p.playlistPanelVideoRenderer.playlistSetVideoId===t}):-1};
tmj=function(t,E){t.contents&&E!==-1&&t.contents.splice(E,1).length===1&&t.totalVideos!==void 0&&(--t.totalVideos,delete t.videoCountText)};
_.ElD=function(t){var E=[];if(!t||!t.contents)return E;t=_.M(t.contents);for(var p=t.next();!p.done;p=t.next())p=p.value,p.playlistPanelVideoRenderer&&p.playlistPanelVideoRenderer.videoId&&E.push(p.playlistPanelVideoRenderer.videoId);return E};
_.pMY=function(t){if(t&&t.contents)return(t=t.contents.find(function(E){return!!E.playlistPanelVideoRenderer&&!!E.playlistPanelVideoRenderer.selected})||t.contents[t.currentIndex])?t.playlistPanelVideoRenderer:void 0};
UkE=function(t,E,p,U,x,A,m){x=x===void 0?!1:x;A=A===void 0?!1:A;m=m===void 0?!1:m;if(t.contents&&t.contents.length!==0){U&&(t.contents=t.contents.filter(U));U=t.contents.length;for(var b=0;b<U;b++){var f=t.contents[b].playlistPanelVideoRenderer;f&&(b===E?(A&&delete f.menu,f.indexText=_.wN("\u25b6")):x||t.isInfinite||f.indexText===void 0?delete f.indexText:f.indexText=_.wN((b+1+p).toString()))}t.currentIndex=E+p;m&&(delete t.videoCountText,t.totalVideos=U)}};
_.kz=function(t){t=s0E(t);if(t){var E=t.length;var p=-13%E;p<0&&(p=E+p);t=t.slice(E-p)+t.slice(0,E-p)}else t="";p="";for(E=0;E<t.length&&t[E]!==xkO;E++)p+=t[E];return p};
_.Ac8=function(t,E){var p=document.body;E=E===void 0?function(b){return b}:E;
var U,x=null;t=_.M(t);for(U=t.next();!U.done;U=t.next()){var A=U.value;U="div";A[2]&&(U=E(A[2]));U=document.createElement(U);x||(x=U);var m=A[0];A=A[1];m&&(U.id=E(m));if(A)for(A=_.M(A),m=A.next();!m.done;m=A.next())U.classList.add(E(m.value));p.appendChild(U);p=U}return[x,p]};
YMY=function(t,E){for(var p="",U=0;U<E;U++)p+=t.charAt(Math.floor(Math.random()*t.length));return p};
dN=function(t){return YMY("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",t)};
uC=function(t){return YMY("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",t)};
Jf=function(t){return YMY("0123456789",t)};
Mm0=function(){var t=performance.now(),E=new Date;var p="2."+E.getFullYear()+String(E.getMonth()+1).padStart(2,"0")+String(E.getDate()).padStart(2,"0");for(var U,x=Math.floor(Math.random()*11)+15,A=[],m=0;m<x;m++)A.push(Math.floor(Math.random()*26476865)+24547720);U=A.join(",");var b=dN(10),f=dN(100),B=dN(102),R=dN(106),V=dN(108),Q=dN(11),C=dN(1140),d=dN(123),I=dN(14),O=dN(16),a=dN(1900),F=dN(23),L=dN(26),D=dN(34),W=dN(397),K=dN(44),v=dN(5),YL=dN(72),bY=dN(74),kL=dN(75),R0=dN(88),j$=dN(91),lY="rr1---sn-ntqe6n7r rr1---sn-q4flrnsd rr5---sn-5hneknes rr1---sn-5hne6nzs rr1---sn-q4flrnlz rr1---sn-q4flrnss rr4---sn-ntqe6nee rr5---sn-q4fl6ndz rr1---sn-q4flrnes rr3---sn-q4flrnl6 rr3---sn-t0a7ln7d rr5---sn-q4flrnss rr1---sn-q4fl6nsr rr3---sn-hgn7rnls rr4---sn-5hne6nsd rr2---sn-q4flrnss rr1---sn-q4fzen7r rr1---sn-q4flrner rr1---sn-q4flrnld rr4---sn-q4fl6nzy".split(" ");
var Tt=lY[Math.floor(Math.random()*lY.length)];var si=(new Date("2010-01-01")).getTime();var Q0=(new Date(si+Math.random()*((new Date).getTime()-si))).toISOString().split("T")[0];for(var ps,$L=[],Cs=0;Cs<4;Cs++)$L.push(Math.floor(Math.random()*100));ps=$L.join(".");var km=Number(Jf(5)),ZT=Number(Jf(6)),l8=Number(Jf(7)),Rt=Number(Jf(9)),wE=Jf(1),Gt=Jf(10),V0=Jf(16),SW=Jf(19),h3=Jf(2),zX=Jf(20),zc=Jf(21),EC=Jf(3),VJ=Jf(4),$m=Jf(5),Kl=Jf(6),iG=Jf(7),QJ=Jf(8),Rs=Jf(9);var vp=YMY("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var DT=[uC(5),uC(5),uC(5)].join("%2C"),qL=[Jf(3),Jf(5),Jf(5)].join("%2C"),TC=uC(0),Wp=uC(1),jg=uC(10),ES=uC(108),m6=uC(11),Ia=uC(12),mi=uC(13),t6=uC(14),EJ=uC(15),h9=uC(16),Xa=uC(17),gE=uC(18),nO=uC(19),KO=uC(2),dZ=uC(20),Jd=uC(22),XU=uC(23),X7=uC(24),gZ=uC(266),J3=uC(3),T5=uC(30),iF=uC(34),jW=uC(35),zJ=uC(36),Rv=uC(4),o$=uC(40),Vy=uC(43),pM=uC(47),w1=uC(5),ZP=uC(6),rn=uC(7),$A=uC(75),ck=uC(8),Wf=uC(80),k8=uC(9),J9="https://www."+uC(12)+".com",dn={},Td={},oF={},Ki={},LG={},$M={},Ku={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:U}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:p},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+uC(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:p},{key:"client.name",value:"WEB"},{key:"client.fexp",value:U}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:zc+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+uC(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:o$,ypcGetOfflineUpsellEndpoint:{params:Wf}},trackingParams:jW+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+Tt+".googlevideo.com/videoplayback?expire="+Gt+"&ei="+F+"&ip="+ps+"&id=o-AF"+Vy+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+qL+"&mn="+DT+"&ms="+DT+"&mv="+Wp+"&mvi="+wE+"&pl="+h3+"&initcwndbps="+iG+"&siu="+wE+"&spc="+K+"&vprv="+wE+"&svpuc="+wE+"&mime=video%2Fmp4&ns="+X7+"&cnr="+h3+"&ratebypass=yes&dur="+QJ+"&lmt="+V0+"&mt="+Gt+"&fvip=3&c=WEB&txp="+iG+"&n="+O+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:ZT,width:640,height:360,lastModified:V0,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:iG,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+Tt+".googlevideo.com/videoplayback?expire="+Gt+"&ei="+F+"&ip="+ps+"&id=o-AF"+Vy+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+qL+"&mn="+
DT+"&ms="+DT+"&mv="+Wp+"&mvi="+wE+"&pl="+h3+"&initcwndbps="+iG+"&siu="+wE+"&spc="+K+"&vprv="+wE+"&svpuc="+wE+"&mime=video%2Fmp4&ns="+X7+"&cnr="+h3+"&ratebypass=yes&dur="+QJ+"&lmt="+V0+"&mt="+Gt+"&fvip=3&c=WEB&txp="+iG+"&n="+O+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+ES+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:ZT,width:1280,
height:720,lastModified:V0,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:iG,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+Tt+".googlevideo.com/videoplayback?expire="+Gt+"&ei="+F+"&ip="+ps+"&id=o-AF"+Vy+"&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="+qL+"&mn="+DT+"&ms="+
DT+"&mv="+Wp+"&mvi="+wE+"&pl="+h3+"&initcwndbps="+iG+"&siu="+wE+"&spc="+K+"&vprv="+wE+"&svpuc="+wE+"&mime=video%2Fmp4&ns="+X7+"&gir="+J3+"&clen="+Rs+"&dur="+QJ+"&lmt="+V0+"&mt="+Gt+"&fvip=3&keepalive="+J3+"&c=WEB&txp="+iG+"&n="+h9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:l8,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:EC,end:VJ},lastModified:V0,contentLength:Rs,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:l8,approxDurationMs:iG},{itag:248,url:"https://"+Tt+".googlevideo.com/videoplayback?expire="+Gt+"&ei="+F+"&ip="+ps+"&id=o-AF"+Vy+"&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="+qL+"&mn="+DT+"&ms="+DT+"&mv="+
Wp+"&mvi="+wE+"&pl="+h3+"&initcwndbps="+iG+"&siu="+wE+"&spc="+K+"&vprv="+wE+"&svpuc="+wE+"&mime=video%2Fwebm&ns="+X7+"&gir="+J3+"&clen="+Rs+"&dur="+QJ+"&lmt="+V0+"&mt="+Gt+"&fvip=3&keepalive="+J3+"&c=WEB&txp="+iG+"&n="+h9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+R+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/webm; codecs="vp9"',bitrate:l8,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:EC,end:VJ},lastModified:V0,contentLength:Rs,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:l8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:iG},{itag:399,url:"https://"+Tt+".googlevideo.com/videoplayback?expire="+Gt+"&ei="+F+"&ip="+ps+"&id=o-AF"+Vy+"&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="+
qL+"&mn="+DT+"&ms="+DT+"&mv="+Wp+"&mvi="+wE+"&pl="+h3+"&initcwndbps="+iG+"&siu="+wE+"&spc="+K+"&vprv="+wE+"&svpuc="+wE+"&mime=video%2Fmp4&ns="+X7+"&gir="+J3+"&clen="+Rs+"&dur="+QJ+"&lmt="+V0+"&mt="+Gt+"&fvip=3&keepalive="+J3+"&c=WEB&txp="+iG+"&n="+h9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:l8,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:EC,end:VJ},lastModified:V0,contentLength:Rs,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:l8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:iG},{itag:136,url:"https://"+Tt+".googlevideo.com/videoplayback?expire="+Gt+"&ei="+F+"&ip="+ps+"&id=o-AF"+Vy+"&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="+
qL+"&mn="+DT+"&ms="+DT+"&mv="+Wp+"&mvi="+wE+"&pl="+h3+"&initcwndbps="+iG+"&siu="+wE+"&spc="+K+"&vprv="+wE+"&svpuc="+wE+"&mime=video%2Fmp4&ns="+X7+"&gir="+J3+"&clen="+Rs+"&dur="+QJ+"&lmt="+V0+"&mt="+Gt+"&fvip=3&keepalive="+J3+"&c=WEB&txp="+iG+"&n="+h9+"&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="+V,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:l8,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:EC,end:VJ},lastModified:V0,contentLength:Rs,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:ZT,approxDurationMs:iG},{itag:247,url:"https://"+Tt+".googlevideo.com/videoplayback?expire="+Gt+"&ei="+F+"&ip="+ps+"&id=o-AF"+Vy+"&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="+qL+"&mn="+
DT+"&ms="+DT+"&mv="+Wp+"&mvi="+wE+"&pl="+h3+"&initcwndbps="+iG+"&siu="+wE+"&spc="+K+"&vprv="+wE+"&svpuc="+wE+"&mime=video%2Fwebm&ns="+X7+"&gir="+J3+"&clen="+Rs+"&dur="+QJ+"&lmt="+V0+"&mt="+Gt+"&fvip=3&keepalive="+J3+"&c=WEB&txp="+iG+"&n="+h9+"&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="+V,mimeType:'video/webm; codecs="vp9"',bitrate:l8,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:EC,end:VJ},lastModified:V0,contentLength:Rs,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:ZT,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:iG},{itag:398,url:"https://"+Tt+".googlevideo.com/videoplayback?expire="+Gt+"&ei="+F+"&ip="+ps+"&id=o-AF"+Vy+"&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="+
qL+"&mn="+DT+"&ms="+DT+"&mv="+Wp+"&mvi="+wE+"&pl="+h3+"&initcwndbps="+iG+"&siu="+wE+"&spc="+K+"&vprv="+wE+"&svpuc="+wE+"&mime=video%2Fmp4&ns="+X7+"&gir="+J3+"&clen="+Rs+"&dur="+QJ+"&lmt="+V0+"&mt="+Gt+"&fvip=3&keepalive="+J3+"&c=WEB&txp="+iG+"&n="+h9+"&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="+V,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:l8,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:EC,end:VJ},lastModified:V0,contentLength:Rs,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:ZT,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:iG},{itag:135,url:"https://"+Tt+".googlevideo.com/videoplayback?expire="+Gt+"&ei="+F+"&ip="+ps+"&id=o-AF"+Vy+"&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="+
qL+"&mn="+DT+"&ms="+DT+"&mv="+Wp+"&mvi="+wE+"&pl="+h3+"&initcwndbps="+iG+"&siu="+wE+"&spc="+K+"&vprv="+wE+"&svpuc="+wE+"&mime=video%2Fmp4&ns="+X7+"&gir="+J3+"&clen="+QJ+"&dur="+QJ+"&lmt="+V0+"&mt="+Gt+"&fvip=3&keepalive="+J3+"&c=WEB&txp="+iG+"&n="+h9+"&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="+V,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:ZT,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:EC,end:VJ},lastModified:V0,contentLength:QJ,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:ZT,approxDurationMs:iG},{itag:244,url:"https://"+Tt+".googlevideo.com/videoplayback?expire="+Gt+"&ei="+F+"&ip="+ps+"&id=o-AF"+Vy+"&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="+qL+"&mn="+
DT+"&ms="+DT+"&mv="+Wp+"&mvi="+wE+"&pl="+h3+"&initcwndbps="+iG+"&siu="+wE+"&spc="+K+"&vprv="+wE+"&svpuc="+wE+"&mime=video%2Fwebm&ns="+X7+"&gir="+J3+"&clen="+QJ+"&dur="+QJ+"&lmt="+V0+"&mt="+Gt+"&fvip=3&keepalive="+J3+"&c=WEB&txp="+iG+"&n="+h9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+ES+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/webm; codecs="vp9"',bitrate:ZT,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:EC,end:VJ},lastModified:V0,contentLength:QJ,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:ZT,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:iG},{itag:397,url:"https://"+Tt+".googlevideo.com/videoplayback?expire="+Gt+"&ei="+F+"&ip="+ps+"&id=o-AF"+Vy+"&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="+
qL+"&mn="+DT+"&ms="+DT+"&mv="+Wp+"&mvi="+wE+"&pl="+h3+"&initcwndbps="+iG+"&siu="+wE+"&spc="+K+"&vprv="+wE+"&svpuc="+wE+"&mime=video%2Fmp4&ns="+X7+"&gir="+J3+"&clen="+QJ+"&dur="+QJ+"&lmt="+V0+"&mt="+Gt+"&fvip=3&keepalive="+J3+"&c=WEB&txp="+iG+"&n="+h9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:ZT,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:EC,end:VJ},lastModified:V0,contentLength:QJ,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:ZT,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:iG},{itag:134,url:"https://"+Tt+".googlevideo.com/videoplayback?expire="+Gt+"&ei="+F+"&ip="+ps+"&id=o-AF"+Vy+"&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="+
qL+"&mn="+DT+"&ms="+DT+"&mv="+Wp+"&mvi="+wE+"&pl="+h3+"&initcwndbps="+iG+"&siu="+wE+"&spc="+K+"&vprv="+wE+"&svpuc="+wE+"&mime=video%2Fmp4&ns="+X7+"&gir="+J3+"&clen="+QJ+"&dur="+QJ+"&lmt="+V0+"&mt="+Gt+"&fvip=3&keepalive="+J3+"&c=WEB&txp="+iG+"&n="+h9+"&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="+V,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:ZT,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:EC,end:VJ},lastModified:V0,contentLength:QJ,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:ZT,highReplication:!0,approxDurationMs:iG},{itag:243,url:"https://"+Tt+".googlevideo.com/videoplayback?expire="+Gt+"&ei="+F+"&ip="+ps+"&id=o-AF"+Vy+"&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="+
qL+"&mn="+DT+"&ms="+DT+"&mv="+Wp+"&mvi="+wE+"&pl="+h3+"&initcwndbps="+iG+"&siu="+wE+"&spc="+K+"&vprv="+wE+"&svpuc="+wE+"&mime=video%2Fwebm&ns="+X7+"&gir="+J3+"&clen="+QJ+"&dur="+QJ+"&lmt="+V0+"&mt="+Gt+"&fvip=3&keepalive="+J3+"&c=WEB&txp="+iG+"&n="+h9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+R+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/webm; codecs="vp9"',bitrate:ZT,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:EC,end:VJ},lastModified:V0,contentLength:QJ,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:ZT,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:iG},{itag:396,url:"https://"+Tt+".googlevideo.com/videoplayback?expire="+Gt+"&ei="+F+"&ip="+ps+"&id=o-AF"+Vy+"&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="+
qL+"&mn="+DT+"&ms="+DT+"&mv="+Wp+"&mvi="+wE+"&pl="+h3+"&initcwndbps="+iG+"&siu="+wE+"&spc="+K+"&vprv="+wE+"&svpuc="+wE+"&mime=video%2Fmp4&ns="+X7+"&gir="+J3+"&clen="+QJ+"&dur="+QJ+"&lmt="+V0+"&mt="+Gt+"&fvip=3&keepalive="+J3+"&c=WEB&txp="+iG+"&n="+h9+"&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="+V,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:ZT,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:EC,end:VJ},lastModified:V0,contentLength:QJ,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:ZT,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:iG},{itag:133,url:"https://"+Tt+".googlevideo.com/videoplayback?expire="+Gt+"&ei="+F+"&ip="+ps+"&id=o-AF"+Vy+"&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="+
qL+"&mn="+DT+"&ms="+DT+"&mv="+Wp+"&mvi="+wE+"&pl="+h3+"&initcwndbps="+iG+"&siu="+wE+"&spc="+K+"&vprv="+wE+"&svpuc="+wE+"&mime=video%2Fmp4&ns="+X7+"&gir="+J3+"&clen="+QJ+"&dur="+QJ+"&lmt="+V0+"&mt="+Gt+"&fvip=3&keepalive="+J3+"&c=WEB&txp="+iG+"&n="+h9+"&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="+V,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:ZT,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:EC,end:VJ},lastModified:V0,contentLength:QJ,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:ZT,approxDurationMs:iG},{itag:242,url:"https://"+Tt+".googlevideo.com/videoplayback?expire="+Gt+"&ei="+F+"&ip="+ps+"&id=o-AF"+Vy+"&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="+qL+"&mn="+
DT+"&ms="+DT+"&mv="+Wp+"&mvi="+wE+"&pl="+h3+"&initcwndbps="+iG+"&siu="+wE+"&spc="+K+"&vprv="+wE+"&svpuc="+wE+"&mime=video%2Fwebm&ns="+X7+"&gir="+J3+"&clen="+QJ+"&dur="+QJ+"&lmt="+V0+"&mt="+Gt+"&fvip=3&keepalive="+J3+"&c=WEB&txp="+iG+"&n="+h9+"&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="+V,mimeType:'video/webm; codecs="vp9"',bitrate:ZT,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:EC,end:VJ},lastModified:V0,contentLength:QJ,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:ZT,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:iG},{itag:395,url:"https://"+Tt+".googlevideo.com/videoplayback?expire="+Gt+"&ei="+F+"&ip="+ps+"&id=o-AF"+Vy+"&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="+
qL+"&mn="+DT+"&ms="+DT+"&mv="+Wp+"&mvi="+wE+"&pl="+h3+"&initcwndbps="+iG+"&siu="+wE+"&spc="+K+"&vprv="+wE+"&svpuc="+wE+"&mime=video%2Fmp4&ns="+X7+"&gir="+J3+"&clen="+QJ+"&dur="+QJ+"&lmt="+V0+"&mt="+Gt+"&fvip=3&keepalive="+J3+"&c=WEB&txp="+iG+"&n="+h9+"&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="+V,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:ZT,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:EC,end:VJ},lastModified:V0,contentLength:QJ,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:ZT,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:iG},{itag:160,url:"https://"+Tt+".googlevideo.com/videoplayback?expire="+Gt+"&ei="+F+"&ip="+ps+"&id=o-AF"+Vy+"&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="+
qL+"&mn="+DT+"&ms="+DT+"&mv="+Wp+"&mvi="+wE+"&pl="+h3+"&initcwndbps="+iG+"&siu="+wE+"&spc="+K+"&vprv="+wE+"&svpuc="+wE+"&mime=video%2Fmp4&ns="+X7+"&gir="+J3+"&clen="+QJ+"&dur="+QJ+"&lmt="+V0+"&mt="+Gt+"&fvip=3&keepalive="+J3+"&c=WEB&txp="+iG+"&n="+h9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+R+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:ZT,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:EC,end:VJ},lastModified:V0,contentLength:QJ,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:km,approxDurationMs:iG},{itag:278,url:"https://"+Tt+".googlevideo.com/videoplayback?expire="+Gt+"&ei="+F+"&ip="+ps+"&id=o-AF"+Vy+"&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="+qL+"&mn="+
DT+"&ms="+DT+"&mv="+Wp+"&mvi="+wE+"&pl="+h3+"&initcwndbps="+iG+"&siu="+wE+"&spc="+K+"&vprv="+wE+"&svpuc="+wE+"&mime=video%2Fwebm&ns="+X7+"&gir="+J3+"&clen="+QJ+"&dur="+QJ+"&lmt="+V0+"&mt="+Gt+"&fvip=3&keepalive="+J3+"&c=WEB&txp="+iG+"&n="+h9+"&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="+V,mimeType:'video/webm; codecs="vp9"',bitrate:ZT,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:EC,end:VJ},lastModified:V0,contentLength:QJ,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:km,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:iG},{itag:394,url:"https://"+Tt+".googlevideo.com/videoplayback?expire="+Gt+"&ei="+F+"&ip="+ps+"&id=o-AF"+Vy+"&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="+
qL+"&mn="+DT+"&ms="+DT+"&mv="+Wp+"&mvi="+wE+"&pl="+h3+"&initcwndbps="+iG+"&siu="+wE+"&spc="+K+"&vprv="+wE+"&svpuc="+wE+"&mime=video%2Fmp4&ns="+X7+"&gir="+J3+"&clen="+QJ+"&dur="+QJ+"&lmt="+V0+"&mt="+Gt+"&fvip=3&keepalive="+J3+"&c=WEB&txp="+iG+"&n="+h9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:km,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:EC,end:VJ},lastModified:V0,contentLength:QJ,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:km,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:iG},{itag:140,url:"https://"+Tt+".googlevideo.com/videoplayback?expire="+Gt+"&ei="+F+"&ip="+ps+"&id=o-AF"+Vy+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
qL+"&mn="+DT+"&ms="+DT+"&mv="+Wp+"&mvi="+wE+"&pl="+h3+"&initcwndbps="+iG+"&siu="+wE+"&spc="+K+"&vprv="+wE+"&svpuc="+wE+"&mime=audio%2Fmp4&ns="+X7+"&gir="+J3+"&clen="+QJ+"&dur="+QJ+"&lmt="+V0+"&mt="+Gt+"&fvip=3&keepalive="+J3+"&c=WEB&txp="+iG+"&n="+h9+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+R+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:ZT,
initRange:{start:"0",end:"631"},indexRange:{start:EC,end:VJ},lastModified:V0,contentLength:QJ,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:ZT,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:iG,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+Tt+".googlevideo.com/videoplayback?expire="+Gt+"&ei="+F+"&ip="+ps+"&id=o-AF"+Vy+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+qL+"&mn="+DT+"&ms="+DT+"&mv="+Wp+"&mvi="+wE+"&pl="+
h3+"&initcwndbps="+iG+"&siu="+wE+"&spc="+K+"&vprv="+wE+"&svpuc="+wE+"&mime=audio%2Fwebm&ns="+X7+"&gir="+J3+"&clen="+iG+"&dur="+QJ+"&lmt="+V0+"&mt="+Gt+"&fvip=3&keepalive="+J3+"&c=WEB&txp="+iG+"&n="+h9+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+R+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'audio/webm; codecs="opus"',bitrate:km,initRange:{start:"0",end:"265"},indexRange:{start:EC,
end:VJ},lastModified:V0,contentLength:iG,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:km,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:iG,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+Tt+".googlevideo.com/videoplayback?expire="+Gt+"&ei="+F+"&ip="+ps+"&id=o-AF"+Vy+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+qL+"&mn="+DT+"&ms="+DT+"&mv="+Wp+"&mvi="+wE+"&pl="+h3+"&initcwndbps="+iG+"&siu="+wE+"&spc="+K+"&vprv="+wE+"&svpuc="+wE+"&mime=audio%2Fwebm&ns="+
X7+"&gir="+J3+"&clen="+iG+"&dur="+QJ+"&lmt="+V0+"&mt="+Gt+"&fvip=3&keepalive="+J3+"&c=WEB&txp="+iG+"&n="+h9+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+R+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'audio/webm; codecs="opus"',bitrate:km,initRange:{start:"0",end:"265"},indexRange:{start:EC,end:VJ},lastModified:V0,contentLength:iG,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:km,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:iG,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+Tt+".googlevideo.com/videoplayback?expire="+Gt+"&ei="+F+"&ip="+ps+"&id=o-AF"+Vy+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+qL+"&mn="+DT+"&ms="+DT+"&mv="+Wp+"&mvi="+wE+"&pl="+h3+"&initcwndbps="+iG+"&siu="+wE+"&spc="+K+"&vprv="+wE+"&svpuc="+wE+"&mime=audio%2Fwebm&ns="+X7+"&gir="+J3+"&clen="+QJ+"&dur="+QJ+"&lmt="+V0+"&mt="+Gt+"&fvip=3&keepalive="+J3+"&c=WEB&txp="+
iG+"&n="+h9+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+f+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'audio/webm; codecs="opus"',bitrate:ZT,initRange:{start:"0",end:"265"},indexRange:{start:EC,end:VJ},lastModified:V0,contentLength:QJ,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:ZT,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:iG,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="+Rs+"&docid="+Q+"&ei="+F+"&feature="+b+"&fexp="+TC+"&ns="+KO+"&plid="+O+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Wp+"&el="+jg+"&len="+VJ+"&of="+Jd+
"&uga="+h3+"&vm="+gZ},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+Rs+"&docid="+Q+"&ei="+F+"&feature="+b+"&fexp="+TC+"&ns="+KO+"&plid="+O+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Wp+"&el="+jg+"&len="+VJ+"&of="+Jd+"&uga="+h3+"&vm="+gZ},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+Rs+"&docid="+Q+"&ei="+F+"&feature="+b+"&fexp="+TC+"&ns="+KO+"&plid="+O+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
Wp+"&el="+jg+"&len="+VJ+"&of="+Jd+"&uga="+h3+"&vm="+gZ},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+F+"&m="+R0+"&oid="+Jd+"&plid="+O+"&pltype="+rn+"&ptchn="+Jd+"&ptk="+I+"&video_id="+Q},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+Rs+"&docid="+Q+"&ei="+F+"&event="+t6+"&feature="+b+"&fexp="+TC+"&ns="+KO+"&plid="+O+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Wp},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
h9+"&ver=2&cmt=1."+EC+"&fmt="+EC+"&fs=0&rt="+$m+"&euri&lact="+EC+"&cl="+Rs+"&mos="+wE+"&volume=100&cbrand="+w1+"&cbr="+ZP+"&cbrver="+ps+"&c=WEB&cver="+p+"&cplayer=UNIPLAYER&cos="+k8+"&cosver="+iG+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+h3+"&len="+QJ+"&fexp="+DT+"&feature=g-high-rec&afmt="+EC+"&muted=0&conn=1&docid="+Q+"&ei="+F+"&plid="+O+"&vm="+uC(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
Q+"&caps="+J3+"&opi="+Rs+"&xoaf="+wE+"&hl="+KO+"&ip="+ps+"&ipbits="+wE+"&expire="+Gt+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+ps+"&key="+J3+"&lang="+v,name:{simpleText:t6},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+Q+"&caps="+J3+"&opi="+Rs+"&xoaf="+wE+"&hl="+KO+"&ip="+ps+"&ipbits="+wE+"&expire="+Gt+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+ps+"&key="+J3+"&kind="+J3+"&lang="+KO,name:{simpleText:Rv},
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:m6,title:w1,lengthSeconds:"1155",keywords:[dZ,Xa,t6,rn],channelId:X7,isOwnerViewing:!1,shortDescription:EJ,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+zJ+"G&rs="+iF,width:168,height:94},{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+zJ+
"G&rs="+iF,width:196,height:110},{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+zJ+"G&rs="+D,width:246,height:138},{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+zJ+"G&rs="+D,width:336,height:188},{url:"https://i.ytimg.com/vi/"+Q+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:iG,author:mi,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:iG,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
Jd+"/featured_channel.jpg?v="+ck,width:40,height:40}]},trackingParams:jW+"=",navigationEndpoint:{clickTrackingParams:o$,commandMetadata:{webCommandMetadata:{url:"/channel/"+X7,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:X7}},channelName:mi,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Rv}]},subscribed:!1,enabled:!0,type:"FREE",channelId:X7,showPreferences:!1,subscribedButtonText:{runs:[{text:ck}]},unsubscribedButtonText:{runs:[{text:EJ}]},
trackingParams:jW+"=",unsubscribeButtonText:{runs:[{text:dZ}]},serviceEndpoints:[{clickTrackingParams:o$,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[X7],params:ck}},{clickTrackingParams:o$,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:o$,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:jW+"=",dialogMessages:[{runs:[{text:m6},
{text:h9},{text:nO}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:gE}]},serviceEndpoint:{clickTrackingParams:o$,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[X7],params:ck}},accessibility:{label:w1},trackingParams:jW+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:mi}]},accessibility:{label:nO},
trackingParams:jW+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:h9}},unsubscribeAccessibility:{accessibilityData:{label:gE}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:QJ},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:o$,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:o$,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[X7],
params:ck}},unsubscribeCommand:{clickTrackingParams:o$,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[X7],params:ck}},addToWatchLaterCommand:{clickTrackingParams:o$,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:m6,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:o$,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:m6}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+Q+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+zJ+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+Q+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+m6,width:1280,
height:720},title:{simpleText:Xa},description:{simpleText:gE},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+t6,externalChannelId:X7,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:iG,category:"Travel & Events",publishDate:Q0,ownerChannelName:mi,uploadDate:Q0}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:EJ},trackingParams:jW+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:o$,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:jW+"="}}],headerText:{simpleText:gE},icon:{infoCardIconRenderer:{trackingParams:jW+"="}},closeButton:{infoCardIconRenderer:{trackingParams:jW+"="}},trackingParams:jW+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:jW+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+m6+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:vp,interpreterSafeUrl:(dn.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+T5+".js",dn),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:k8},{text:Xa,bold:!0}]},endpoint:{clickTrackingParams:o$,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:jW+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:rn}]},actionButton:{buttonRenderer:{text:{runs:[{text:Ia}]},navigationEndpoint:{clickTrackingParams:o$,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+Q,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
Q,target:"TARGET_NEW_WINDOW"}},trackingParams:jW+"="}},trackingParams:jW+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+YL+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+YL+"=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:iG,endMs:iG,title:{accessibility:{accessibilityData:{label:EJ}},simpleText:nO},metadata:{simpleText:gE},callToAction:{simpleText:EJ},dismiss:{simpleText:Rv},endpoint:{clickTrackingParams:o$,commandMetadata:{webCommandMetadata:{url:"/channel/"+X7,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:X7}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Xa}]},subscribed:!1,enabled:!0,type:"FREE",channelId:X7,showPreferences:!1,
subscribedButtonText:{runs:[{text:t6}]},unsubscribedButtonText:{runs:[{text:nO}]},trackingParams:jW+"=",unsubscribeButtonText:{runs:[{text:jg}]},serviceEndpoints:[{clickTrackingParams:o$,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[X7],params:ck}},{clickTrackingParams:o$,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:o$,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:jW+
"=",dialogMessages:[{runs:[{text:mi},{text:rn},{text:Rv}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:m6}]},serviceEndpoint:{clickTrackingParams:o$,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[X7],params:ck}},accessibility:{label:w1},trackingParams:jW+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:ZP}]},
accessibility:{label:dZ},trackingParams:jW+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:nO}},unsubscribeAccessibility:{accessibilityData:{label:dZ}}}},trackingParams:jW+"=",isSubscribe:!0,id:zX}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+zJ+"G&rs="+D,width:168,height:94},{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+zJ+"G&rs="+iF,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+zJ+"G&rs="+D,width:246,height:138},{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+zJ+"G&rs="+D,width:336,height:188},{url:"https://i.ytimg.com/vi/"+Q+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:iG,endMs:iG,title:{accessibility:{accessibilityData:{label:ZP}},simpleText:t6},metadata:{simpleText:t6},endpoint:{clickTrackingParams:o$,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
m6,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:m6,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+Tt+".googlevideo.com/videoplayback?source=youtube&oeis="+wE+"&c=WEB&oad="+VJ+"&ovd="+VJ+"&oaad="+$m+"&oavd="+$m+"&ocs="+EC+"&oewis="+wE+"&oputc="+wE+"&ofpcc="+wE+"&siu="+wE+"&msp="+wE+"&odepv="+wE+
"&id=o-AF"+Vy+"&ip="+ps+"&initcwndbps="+iG+"&mt="+Gt+"&oweuc="+TC}}}}},trackingParams:jW+"=",id:zX,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:Rv}},simpleText:ck},style:"DEFAULT"}}]}}],startMs:iG,trackingParams:jW+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:wE,offsetEndMilliseconds:$m},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Rs+";dc_trk_cid="+Rs+";dc_dbm_token="+V+";ord="+Gt+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+wE+";dc_rui="+wE+";dc_exteid="+zX+";dc_av="+EC+";dc_sk="+wE+";dc_ctype="+h3+";dc_ref=http://www.youtube.com/video/"+m6+";dc_pubid="+wE+";dc_btype=23?gclid="+j$+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
C+"____________"+d+"AxAA&sigh="+m6+"&cid="+L+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+wE+"&ns="+wE+"&event="+wE+"&device="+wE+"&content_v="+Q+"&el="+jg+"&ei="+F+"&devicever="+p+"&bti="+iG+"&format="+Kl+"&break_type="+wE+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+wE+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+ps+"&slot_pos="+wE+"&slot_len="+wE+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+qL+"&ad_len="+$m+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
m6+"&aqi="+F+"&ad_rmp="+wE+"&sli="+wE}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+Q+"&cid="+L+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+Q+"&cid="+L+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+
";etm1="+wE+";eid1="+h3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+Q+"&cid="+L+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+Kl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
C+"____________"+d+"AxAA&sigh="+Q+"&cid="+L+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+h3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+Q+"&cid="+L+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+Q+"&cid="+L+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+h3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+Q+"&cid="+L+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+iG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+Q+"&cid="+L+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
C+"____________"+d+"AxAA&sigh="+Q+"&cid="+L+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&ctype="+EC+"&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"+
C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_engaged_view&ctype="+EC+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+Kl+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Rs+";dc_trk_cid="+Rs+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+wE+";ord="+Rs+";dc_rui="+wE+";dc_exteid="+SW+";dc_av="+wE+";dc_sk="+wE+";dc_ctype="+h3+";dc_pubid="+wE+";dc_btype=3?gclid="+j$+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+Q+"&cid="+L+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+h3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+B+"&sig="+XU+"&ad_cpn=[AD_CPN]&id="+ZP+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ZP+"&dc_pubid="+wE+"&dc_exteid="+zX+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+Q+"&cid="+L+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+B+"&sig="+XU+"&ad_cpn=[AD_CPN]&id="+ZP+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+wE},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ZP+"&avm="+wE+"&dc_pubid="+wE+"&dc_exteid="+
zX+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+Q+"&cid="+L+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+h3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
B+"&sig="+XU+"&ad_cpn=[AD_CPN]&id="+ZP+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+wE},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ZP+"&dc_pubid="+wE+"&dc_exteid="+zX+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+h3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+Kl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+h3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+Kl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+Q+"&cid="+L+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+h3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:o$,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+
EC+"&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/"+Q+"/mqdefault.jpg",width:320,height:180}]},trackingParams:jW+"="},trackingParams:jW+
"=",templatedCountdown:{templatedAdText:{text:Ia,isTemplated:!0,trackingParams:jW+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:nO,isTemplated:!1,trackingParams:jW+"="},trackingParams:jW+"="}},trackingParams:jW+"=",skipOffsetMilliseconds:5E3}},trackingParams:jW+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:ZP},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:o$,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:jW+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:m6,isTemplated:!1,trackingParams:jW+"="},trackingParams:jW+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:ZP,isTemplated:!0,trackingParams:jW+"="}},trackingParams:jW+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:o$,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Td.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+a+"&hl="+KO+"&origin=www.youtube.com&ata_theme="+Rv,Td),trackingParams:jW+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:jW+"="}},hoverText:{runs:[{text:m6}]},trackingParams:jW+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+pM+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:jW+"="},headline:{text:h9,isTemplated:!1,trackingParams:jW+"="},description:{text:Xa,
trackingParams:jW+"="},actionButton:{buttonRenderer:{text:{simpleText:rn},navigationEndpoint:{clickTrackingParams:o$,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Rs+";dc_trk_cid="+Rs+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+wE+";ord="+Rs+";dc_rui="+wE+";dc_exteid="+zX+";dc_av="+wE+";dc_sk="+wE+";dc_ctype="+h3+";dc_pubid="+wE+";dc_btype=3?gclid="+j$+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:jW+"="}},startMs:wE,trackingParams:jW+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:dZ},elementId:h9}},elementId:Rv,trackingParams:jW+"=",legacyInfoCardVastExtension:rn,sodarExtensionData:{siub:m6,bgub:gE,scs:ck,bgp:h9},externalVideoId:m6,adLayoutLoggingData:{serializedAdServingDataEntry:w1},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+pM+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:jW+"="},
headline:{text:k8,isTemplated:!1,trackingParams:jW+"="},description:{text:m6,isTemplated:!1,trackingParams:jW+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:jg},navigationEndpoint:{clickTrackingParams:o$,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Rs+";dc_trk_cid="+Rs+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+wE+";ord="+Rs+";dc_rui="+wE+";dc_exteid="+
zX+";dc_av="+wE+";dc_sk="+wE+";dc_ctype="+h3+";dc_pubid="+wE+";dc_btype=3?gclid="+j$+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+
wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:jW+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:jW+"="}},navigationEndpoint:{clickTrackingParams:o$,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Rs+";dc_trk_cid="+
Rs+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+wE+";ord="+Rs+";dc_rui="+wE+";dc_exteid="+zX+";dc_av="+wE+";dc_sk="+wE+";dc_ctype="+h3+";dc_pubid="+wE+";dc_btype=3?gclid="+j$+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+Q+"&cid="+L+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+
d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:jW+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:jW+"="},abandonCommands:{commands:[{clickTrackingParams:o$,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+Q+"&cid="+L+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+
wE+"="+wE+";etm1="+wE+";eid1="+h3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:o$,commandExecutorCommand:{commands:[{clickTrackingParams:o$,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+Q+"&cid="+L+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:jg,isTemplated:!1,trackingParams:jW+
"="},trackingParams:jW+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:ZP},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+Q+"&cid="+L+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+iG+";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="+Rs+";dc_trk_cid="+Rs+";ord="+Gt+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+wE+";dc_rui="+wE+";dc_exteid="+zX+";dc_av="+EC+";dc_sk="+wE+";dc_ctype="+h3+";dc_ref=http://www.youtube.com/video/"+m6+";dc_pubid="+wE+";dc_btype=23?gclid="+j$+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+C+"____________"+d+"AxAA&sigh="+m6+"&cid="+L+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+wE+"&ns="+wE+"&event="+wE+"&device="+wE+"&content_v="+Q+"&el="+jg+"&ei="+F+"&devicever="+p+"&bti="+iG+"&format="+Kl+"&break_type="+wE+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+wE+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+ps+"&slot_pos="+wE+"&slot_len="+wE+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
qL+"&ad_len="+$m+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+m6+"&aqi="+F+"&ad_rmp="+wE+"&sli="+wE}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+m6+"&cid="+L+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+m6+"&cid="+L+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+h3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+m6+"&cid="+L+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+Kl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+m6+"&cid="+L+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+h3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+m6+"&cid="+
L+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+m6+"&cid="+L+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+h3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
C+"____________"+d+"AxAA&sigh="+m6+"&cid="+L+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+iG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+m6+"&cid="+L+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+m6+"&cid="+L+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&ctype="+EC+"&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"+C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_engaged_view&ctype="+EC+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+Kl+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+m6+"&cid="+L+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+h3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+B+"&sig="+XU+"&ad_cpn=[AD_CPN]&id="+
ZP+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ZP+"&dc_pubid="+wE+"&dc_exteid="+zX+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+m6+"&cid="+L+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+B+
"&sig="+XU+"&ad_cpn=[AD_CPN]&id="+ZP+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+wE},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ZP+"&avm="+wE+"&dc_pubid="+wE+"&dc_exteid="+zX+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+m6+"&cid="+L+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+h3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+B+"&sig="+XU+"&ad_cpn=[AD_CPN]&id="+ZP+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+wE},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+ZP+"&dc_pubid="+wE+"&dc_exteid="+zX+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+h3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+Kl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+h3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+Kl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+m6+"&cid="+L+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+h3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:o$,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+
EC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&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/"+Q+"/mqdefault.jpg",width:320,height:180}]},trackingParams:jW+"="},trackingParams:jW+"=",templatedCountdown:{templatedAdText:{text:mi,isTemplated:!0,trackingParams:jW+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Xa,isTemplated:!1,trackingParams:jW+"="},trackingParams:jW+"="}},
trackingParams:jW+"=",skipOffsetMilliseconds:5E3}},trackingParams:jW+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Xa},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:o$,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:jW+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Rv,isTemplated:!1,trackingParams:jW+"="},trackingParams:jW+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:gE,
isTemplated:!0,trackingParams:jW+"="}},trackingParams:jW+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:o$,openPopupAction:{popup:{aboutThisAdRenderer:{url:(oF.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+a+"&hl="+KO+"&origin=www.youtube.com&ata_theme="+Rv,oF),trackingParams:jW+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:jW+"="}},hoverText:{runs:[{text:h9}]},trackingParams:jW+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+bY+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:jW+"="},headline:{text:ck,isTemplated:!1,trackingParams:jW+"="},description:{text:gE,trackingParams:jW+"="},actionButton:{buttonRenderer:{text:{simpleText:EJ},navigationEndpoint:{clickTrackingParams:o$,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:jW+"="}},startMs:wE,trackingParams:jW+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:w1},elementId:k8}},elementId:w1,trackingParams:jW+"=",legacyInfoCardVastExtension:ZP,sodarExtensionData:{siub:EJ,bgub:gE,scs:nO,bgp:ck},externalVideoId:m6,adLayoutLoggingData:{serializedAdServingDataEntry:Rv},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+bY+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:jW+"="},headline:{text:ck,
isTemplated:!1,trackingParams:jW+"="},description:{text:nO,isTemplated:!1,trackingParams:jW+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Rv},navigationEndpoint:{clickTrackingParams:o$,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:jW+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:jW+"="}},navigationEndpoint:{clickTrackingParams:o$,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
C+"____________"+d+"AxAA&sigh="+m6+"&cid="+L+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+
wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:jW+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:jW+"="},abandonCommands:{commands:[{clickTrackingParams:o$,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+m6+"&cid="+L+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+h3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:o$,commandExecutorCommand:{commands:[{clickTrackingParams:o$,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+m6+"&cid="+L+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:gE,isTemplated:!1,trackingParams:jW+"="},trackingParams:jW+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:nO},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+m6+"&cid="+L+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+wE+";dc_exteid="+zX+";met="+wE+";ecn"+wE+"="+wE+";etm1="+wE+";eid1="+
iG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:rn}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:rn}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:$m,offsetEndMilliseconds:Kl},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+F+"&m_pos="+h3+"&token=ALHj"+W+"&index="+wE+"&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="+p+"&m_pos_ms="+$m}},adSlotLoggingData:{serializedSlotAdServingDataEntry:jg}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:Kl,offsetEndMilliseconds:Kl},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+F+"&m_pos="+EC+"&token=ALHj"+W+"&index="+wE+"&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="+
p+"&m_pos_ms="+Kl}},adSlotLoggingData:{serializedSlotAdServingDataEntry:mi}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Kl,offsetEndMilliseconds:Kl},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+F+"&m_pos="+EC+"&token=ALHj"+W+"&index="+wE+"&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="+
p+"&m_pos_ms="+Kl}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Rv}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Kl,offsetEndMilliseconds:Kl},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+F+"&m_pos="+EC+"&token=ALHj"+W+"&index="+wE+"&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="+
p+"&m_pos_ms="+Kl}},adSlotLoggingData:{serializedSlotAdServingDataEntry:h9}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Kl,offsetEndMilliseconds:h3},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+F+"&m_pos="+EC+"&token=ALHj"+W+"&index="+wE+"&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="+
p+"&m_pos_ms="+Kl}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Rv}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:h3,offsetEndMilliseconds:h3},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+F+"&m_pos="+h3+"&token=ALHj"+W+"&index="+wE+"&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="+
p+"&m_pos_ms="+h3}},adSlotLoggingData:{serializedSlotAdServingDataEntry:gE}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:nO,isTemplated:!1,trackingParams:jW+"="},description:{text:ck,isTemplated:!1,trackingParams:jW+"="},actionButton:{buttonRenderer:{text:{simpleText:ZP},navigationEndpoint:{clickTrackingParams:o$,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Rs+";dc_trk_cid="+Rs+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+wE+";ord="+Rs+";dc_rui="+wE+";dc_exteid="+zX+";dc_av="+wE+";dc_sk="+wE+";dc_ctype="+h3+";dc_pubid="+wE+";dc_btype=3?gclid="+j$+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:jW+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+pM+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:jW+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+kL+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:jW+"="},navigationEndpoint:{clickTrackingParams:o$,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Rs+";dc_trk_cid="+Rs+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+wE+";ord="+Rs+
";dc_rui="+wE+";dc_exteid="+zX+";dc_av="+wE+";dc_sk="+wE+";dc_ctype="+h3+";dc_pubid="+wE+";dc_btype=3?gclid="+j$+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:jW+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:o$,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Ki.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+a+"&hl="+KO+"&origin=www.youtube.com&ata_theme="+Rv,Ki),trackingParams:jW+"="}},popupType:"DIALOG"}},trackingParams:jW+"="}},hoverText:{runs:[{text:nO}]},trackingParams:jW+"="}},adVideoId:m6,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+Q+"&cid="+L+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:nO},associatedCompositePlayerBytesLayoutId:h9}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:mi}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:h9,isTemplated:!1,trackingParams:jW+"="},description:{text:EJ,isTemplated:!1,trackingParams:jW+"="},actionButton:{buttonRenderer:{text:{simpleText:Xa},navigationEndpoint:{clickTrackingParams:o$,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+
d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:jW+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+bY+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:jW+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+$A+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:jW+"="},navigationEndpoint:{clickTrackingParams:o$,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+
wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:jW+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:o$,openPopupAction:{popup:{aboutThisAdRenderer:{url:(LG.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+a+"&hl="+KO+"&origin=www.youtube.com&ata_theme="+Rv,LG),trackingParams:jW+"="}},popupType:"DIALOG"}},trackingParams:jW+"="}},
hoverText:{runs:[{text:ZP}]},trackingParams:jW+"="}},adVideoId:m6,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+m6+"&cid="+L+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:nO},associatedCompositePlayerBytesLayoutId:h9}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ZP}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:mi,
isTemplated:!1,trackingParams:jW+"="},description:{text:EJ,isTemplated:!1,trackingParams:jW+"="},actionButton:{buttonRenderer:{text:{simpleText:Xa},navigationEndpoint:{clickTrackingParams:o$,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Rs+";dc_trk_cid="+Rs+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+wE+";ord="+Rs+";dc_rui="+wE+";dc_exteid="+zX+";dc_av="+wE+";dc_sk="+wE+";dc_ctype="+
h3+";dc_pubid="+wE+";dc_btype=3?gclid="+j$+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+
D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:jW+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+pM+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:jW+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+kL+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:jW+
"="},navigationEndpoint:{clickTrackingParams:o$,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Rs+";dc_trk_cid="+Rs+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+wE+";ord="+Rs+";dc_rui="+wE+";dc_exteid="+zX+";dc_av="+wE+";dc_sk="+wE+";dc_ctype="+h3+";dc_pubid="+wE+";dc_btype=3?gclid="+j$+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+d+"AxAA&ase=2&num="+wE+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+J9+"&label=video_click_to_advertiser_site&ctype="+EC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:jW+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:o$,openPopupAction:{popup:{aboutThisAdRenderer:{url:($M.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+a+"&hl="+KO+"&origin=www.youtube.com&ata_theme="+Rv,$M),trackingParams:jW+"="}},popupType:"DIALOG"}},trackingParams:jW+
"="}},hoverText:{runs:[{text:m6}]},trackingParams:jW+"="}},adVideoId:m6,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+d+"AxAA&sigh="+Q+"&cid="+L+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Rv},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:h9}},adSlotLoggingData:{serializedSlotAdServingDataEntry:t6}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:T5,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:T5,command:{innertubeCommand:{clickTrackingParams:o$,ypcGetOfflineUpsellEndpoint:{params:Wf}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:jW+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:Gt,nanos:Rt}}}},cX=JSON.stringify(Ku),vf=performance.now()-t;return{objectRepresentation:Ku,jsonRepresentation:cX,generationTime:vf}};
mkO=function(t,E){if(t===E)return!0;if(!t||!E||typeof t!==typeof E)return!1;if(t instanceof Array&&E instanceof Array){if(t.length!==E.length)return!1;for(var p=0;p<t.length;p++)if(!mkO(t[p],E[p]))return!1;return!0}if(typeof t==="object"&&typeof E==="object"&&t&&E){for(p in t)if(!(p in E&&mkO(t[p],E[p])))return!1;for(var U in E)if(!(U in t))return!1;return!0}return!1};
_.gN=function(){if(!I4){I4=new Fs(new bkD);var t=_.z3("client_streamz_web_flush_count",-1);t!==-1&&(I4.invocationLimit=t)}return I4};
ZK=function(t,E,p,U){if(t===E)return!0;if(Array.isArray(t)&&Array.isArray(E)){if(t.length!==E.length)return!1;for(var x=0;x<t.length;x++)if(!ZK(t[x],E[x],p,U))return!1;return!0}if(t instanceof Set||E instanceof Set){if(t instanceof Set&&E instanceof Set){if(t.size!==E.size)return!1;U=_.M(t.values());for(x=U.next();!x.done;x=U.next())if(!E.has(x.value))return!1;return!0}return!1}if(t instanceof Function){if(U)return!0;t.name===""&&_.bV(Error("Rf"),"ERROR");return!1}if(t instanceof Date&&E instanceof
Date)return t.getTime()===E.getTime();if(t instanceof Object&&E instanceof Object){if(ik8(t)&&ik8(E))try{return t.equals(E)}catch(m){_.bV(Error("Sf`"+m),"ERROR")}x=Object.getOwnPropertyNames(t).filter(function(m){return p?t[m]!==void 0:!0});
var A=Object.getOwnPropertyNames(E).filter(function(m){return p?E[m]!==void 0:!0});
if(x.length!==A.length)return!1;x=_.M(x);for(A=x.next();!A.done;A=x.next())if(A=A.value,!ZK(t[A],E[A],p,U))return!1;return!0}return!1};
ik8=function(t){t=Object.getPrototypeOf(t).equals;return t instanceof Function&&t.length===1};
_.f7Y=function(){return _.q(function(t){if(t.nextAddress==1)return qMj!==2?t.jumpTo(2):t.yield(Hk0(),3);t.nextAddress!=2&&(qMj=t.yieldResult);return t.return(qMj)})};
_.RHD=function(){return _.q(function(t){if(t.nextAddress==1)return _.r("ab_pl_man")?BpO!==2?t.jumpTo(2):t.yield(wMJ(),3):t.return(1);t.nextAddress!=2&&(BpO=t.yieldResult);return t.return(BpO)})};
CS_=function(){return _.q(function(t){if(t.nextAddress==1)return _.r("ab_fk_sk_cl")?VmO!==2?t.jumpTo(2):t.yield(QIJ(),3):t.return(1);t.nextAddress!=2&&(VmO=t.yieldResult);return t.return(VmO)})};
_.kRJ=function(){return _.q(function(t){if(t.nextAddress==1)return _.r("ab_det_apb_b")?jI_!==2?t.jumpTo(2):t.yield(rcL(),3):t.return(1);t.nextAddress!=2&&(jI_=t.yieldResult);return t.return(jI_)})};
Jct=function(){var t;return _.q(function(E){if(E.nextAddress==1)return E.yield(Promise.all([_.f7Y(),_.kRJ(),_.RHD(),CS_()]),2);if(E.nextAddress!=3)return dkO()?E.return(!0):E.yield(_.uNt(),3);t=E.yieldResult;return E.return(t===0)})};
dkO=function(){var t=!1,E=function(p,U){I7L.increment(U,p);p===0&&(t=!0)};
E(_.glO(),"j.s_");E(qMj,"f.i_");E(jI_,"a.b_");E(BpO,"p.m_");E(VmO,"i.f_");Zkt===2&&(Zkt=_.Ok$(XMD));E(Zkt,"e.h_");_.r("ks_det_gpbl")||E(_.hHJ(),"p.i_");_.r("ks_get_o_pp")||E(_.a7O(),"g.o_");_.r("ab_deg_unex_thr")||E(_.eHO(),"a.o_");E(Fw$,"s.t_");_.r("ab_det_sc_inj_enf")&&E(_.zHD(),"s.i_");E(l7E,"d.p_");E(_.GR0(_.O5),"o.p_");E(_.nll()===0?0:_.Np_(),"o.a_");return _.r("debug_sk_em_precheck")?!0:t};
sIj=function(){var t=[].concat(_.KB(Dk8));try{var E=Mm0();t.push({jsonRepresentation:E.jsonRepresentation,objectRepresentation:E.objectRepresentation})}catch(p){t=[].concat(_.KB(Dk8))}return t};
Lw8=function(){var t=["adPlacements","adSlots"];try{return t.filter(function(){return!0}).length!==t.length?0:1}catch(E){return 0}};
_.a7O=function(){if(Lw8()===0)return 0;var t=Mm0(),E=t.objectRepresentation,p=(0,_.Kq.unsafeClone)(E),U=[];if(E&&typeof E==="object")for(var x in E)U.push(x);else return 4;t=t.objectRepresentation.adPlacements;if(!(t&&t.length>0))return 4;try{if(!mkO(U,Object.getOwnPropertyNames(E)))return 0}catch(A){return 0}return mkO(p,E)?1:0};
_.GR0=function(t){if(!t||!t.length||typeof t==="string")return 0;for(var E=Object.getOwnPropertyNames(Object.prototype),p=0;p<t.length;p++)for(var U=_.kz(t[p]),x=_.M(E),A=x.next();!A.done;A=x.next())if(U===A.value)return 0;return 1};
PSL=function(t){var E=_.kz(t[1]);if(t[0]===null)return E;t=t[0];for(var p={},U=0;U<t.length;U++){var x=_.kz(t[U]);if(U===0)p[x]=E;else{var A={};A[x]=p;p=A}}return p};
_.nll=function(){for(var t=_.X$,E=0;E<t.length;E++){var p=PSL(t[E]),U=[];U.push(p);if(U.length===0)return 0}return 1};
_.Np_=function(){for(var t=_.X$,E={},p=0;p<t.length;E={gW5:void 0},p++){var U=[PSL(t[p])];E.gW5=[];U.forEach(function(x){return function(A){x.gW5[x.gW5.length]=A}}(E));
if(E.gW5.length===0)return 0}return 1};
_.glO=function(){for(var t=_.M(sIj()),E=t.next();!E.done;E=t.next()){var p=E.value;E=p.jsonRepresentation;p=p.objectRepresentation;try{var U=JSON.parse(E);if(!ZK(U,p,!1,!1))return 0}catch(x){return 0}}return 1};
_.zHD=function(){try{var t=_.G3("ab_det_sc_inj_val");t.length===1&&t[0]===""&&(t=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var E=document.querySelectorAll("script"),p=_.M(E),U=p.next();!U.done;U=p.next())for(var x=U.value,A=_.M(t),m=A.next();!m.done;m=A.next()){var b=m.value;E=void 0;if((E=x.textContent)==null?0:E.includes(b))return 0}}catch(f){return 4}return 1};
_.uNt=function(){var t,E,p,U,x,A,m;return _.q(function(b){switch(b.nextAddress){case 1:_.aR(b,2),t=_.M(Dk8),E=t.next();case 4:if(E.done)return b.return(1);U=p=E.value;x=U.jsonRepresentation;A=U.objectRepresentation;return b.yield((new Response(x,{status:200})).json(),7);case 7:m=b.yieldResult;if(!ZK(m,A,!1,!1))return b.return(0);E=t.next();b.jumpTo(4);break;case 2:return _.nB(b),b.return(4)}})};
_.eHO=function(){try{btoa("abc")}catch(t){return 0}return 1};
Hk0=function(){var t,E,p,U,x,A,m,b,f,B,R;return _.q(function(V){switch(V.nextAddress){case 1:_.aR(V,2),t=_.M(sIj()),E=t.next();case 4:if(E.done)return V.return(1);U=p=E.value;x=U.jsonRepresentation;A=U.objectRepresentation;m=btoa(x);b="data:application/json;base64,"+m;f=new Request(b);Object.defineProperty(f,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(f,"method",{get:function(){return"POST"}});
Object.defineProperty(f,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(f,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(f,"body",{get:function(){return new ReadableStream}});
return V.yield(fetch(f),7);case 7:return B=V.yieldResult,V.yield(B.json(),8);case 8:R=V.yieldResult;if(!ZK(R,A,!1,!1))return V.return(0);E=t.next();V.jumpTo(4);break;case 2:return _.nB(V),V.return(4)}})};
_.Ok$=function(t){if(!t||!t.length||typeof t==="string")return 0;for(var E=function(x){return _.kz(x)},p=2,U=0;U<t.length&&(p=_.Tpt(_.Ac8(t[U],E)),p!==0);U++);
return p};
_.Tpt=function(t){var E=_.M(t);t=E.next().value;E=E.next().value;try{var p=document.createElement("div");document.body.appendChild(p);var U=getComputedStyle(p).display;document.body.removeChild(p);if(U==="none")return 4;var x=getComputedStyle(E).display==="none"?0:1;document.body.removeChild(t);return x}catch(A){return 4}};
QIJ=function(){var t,E,p;return _.q(function(U){t=new _.hf;E=document.createElement("button");E.classList.add("ytp-ad-skip-button");E.style.opacity="0";E.style.height="0px";E.style.width="0px";E.style.padding="0px";E.style.border="none";p=function(){E.parentElement&&E.parentElement.removeChild(E)};
E.onclick=function(){t.resolve(0);p()};
document.body.appendChild(E);setTimeout(function(){p();t.resolve(1)},50);
return U.return(t.promise)})};
wMJ=function(){var t,E,p,U,x,A,m;return _.q(function(b){t=new _.hf;E=document.createElement("ytd-player");try{document.body.prepend(E)}catch(f){return b.return(4)}p=function(){E.parentElement&&E.parentElement.removeChild(E)};
E.getElementsByTagName("div").length>0?U=E.getElementsByTagName("div")[0]:(U=document.createElement("div"),E.appendChild(U));x=document.createElement("div");U.appendChild(x);A=document.createElement("video");m=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"});A.src=_.$I(_.cw(m));A.ontimeupdate=function(){p();t.resolve(0)};
x.appendChild(A);A.classList.add("html5-main-video");setTimeout(function(){x.classList.add("ad-interrupting")},200);
setTimeout(function(){p();t.resolve(1)},5E3);
return b.return(t.promise)})};
oli=function(t){var E=Mm0().objectRepresentation.playbackTracking;if(E){var p=[],U;p.push(E==null?void 0:(U=E.videostatsPlaybackUrl)==null?void 0:U.baseUrl);var x;p.push(E==null?void 0:(x=E.videostatsDelayplayUrl)==null?void 0:x.baseUrl);var A;p.push(E==null?void 0:(A=E.videostatsWatchtimeUrl)==null?void 0:A.baseUrl);var m;p.push(E==null?void 0:(m=E.ptrackingUrl)==null?void 0:m.baseUrl);var b;p.push(E==null?void 0:(b=E.qoeUrl)==null?void 0:b.baseUrl);var f;p.push(E==null?void 0:(f=E.atrUrl)==null?
void 0:f.baseUrl);E=_.M(p);for(p=E.next();!p.done;p=E.next())if((p=p.value)&&t.test(p))return p.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
Wwl=function(t,E){var p,U;return _.q(function(x){switch(x.nextAddress){case 1:p=[],U=0;case 2:if(!(U<3)){x.jumpTo(4);break}return x.yield(fetch(t,{cache:"no-store",method:E}).then(function(A){p.push(A.status)}).catch(function(){p.push(-1)}),3);
case 3:U++;x.jumpTo(2);break;case 4:return x.return(p)}})};
$kt=function(t){return t.domainLookupStart===0&&t.domainLookupEnd===0&&t.connectStart===0&&t.connectEnd===0||t.duration===0};
Kwi=function(t,E,p){p=p===void 0?"GET":p;var U,x,A,m,b,f,B,R,V,Q;return _.q(function(C){if(C.nextAddress==1)return C.yield(Promise.all([Wwl(t,p),Wwl(E,p)]),2);U=C.yieldResult;x=_.M(U);A=x.next().value;m=x.next().value;b=A;f=m;if(Math.min.apply(Math,_.KB(f))!==Math.max.apply(Math,_.KB(f))||Math.min.apply(Math,_.KB(b))!==Math.max.apply(Math,_.KB(b)))return C.return(2);if(Math.min.apply(Math,_.KB(f))===Math.min.apply(Math,_.KB(b)))return C.return(1);R=(B=performance.getEntriesByName(t))==null?void 0:
B[0];Q=(V=performance.getEntriesByName(E))==null?void 0:V[0];return R&&Q?$kt(Q)?C.return(1):$kt(R)?C.return(0):C.return(1):C.return(2)})};
rcL=function(){var t;return _.q(function(E){var p=[];var U;var x,A,m;(x=U=(x=Mm0().objectRepresentation.streamingData)==null?void 0:(A=x.formats)==null?void 0:(m=A[0])==null?void 0:m.url)&&x&&!U.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(x=x.replace("initcwndbps","ctier=L&initcwndbps"),x=x.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),U={testUrl:x,baseUrl:U,method:"GET"}):U=void 0;U&&p.push(U);_.r("ab_net_tp_e")&&p.push({testUrl:_.Ui.location.origin+"/ad_companion",baseUrl:_.Ui.location.origin+
"/generate_204",method:"OPTIONS"});_.r("ab_fix_creator_view_cnt")&&(p.length=0,(U=oli(/api\/stats\/atr/))&&p.push({testUrl:_.Ui.location.origin+U,baseUrl:_.Ui.location.origin+"/generate_204",method:"POST"}));_.r("ad_net_pb_pbp")&&(U=oli(/api\/stats\/qoe/))&&p.push({testUrl:_.Ui.location.origin+U,baseUrl:_.Ui.location.origin+"/feed/download",method:"GET"});p=p.length!==0?p[Math.floor(Math.random()*p.length)]:void 0;return(t=p)?E.return(Kwi(t.testUrl,t.baseUrl,t.method)):E.return(4)})};
_.hHJ=function(){if(_.Ui.q8R===void 0||_.Ui.q8R===null||typeof _.Ui.q8R!=="function")return 2;try{return _.Ui.q8R()===!0?0:1}catch(t){return 0}};
vlE=function(t){switch(t){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.UC(t,"unknown result type")}};
_.ycL=function(t,E){var p=Number(_.qO("CATSTAT",0));if(E.pDV===void 0)return p;E=E.pDV;t=vlE(t);return p&~(3<<E)|t<<E};
SMJ=function(t){var E,p;if((t=(E=t.auxiliaryUi)==null?void 0:(p=E.messageRenderers)==null?void 0:p.bkaEnforcementMessageViewModel)&&t.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return t};
tFY=function(){for(var t=_.M(Object.values(_.cc8)),E=t.next();!E.done;E=t.next())E=E.value,E.rCP&&E.pDV&&_.ia("CATSTAT",_.ycL(2,E))};
_.F$=function(t,E){t=_.a4("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",t);(E===void 0?0:E)?_.Efi(t,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.eL().logFlowEvent(t,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
UvL=function(){if(!pOK){if(Polymer.Base){var t=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{t.apply(this,arguments)}catch(V){_.fR(V)}};
var E=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{E.apply(this,arguments)}catch(V){_.fR(V)}};
var p=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{p.apply(this,arguments)}catch(V){_.fR(V)}};
var U=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{U.apply(this,arguments)}catch(V){_.fR(V)}};
var x=Polymer.Base._listen,A=new WeakMap;Polymer.Base._listen=function(V,Q,C){var d=function(){try{C.apply(this,arguments)}catch(I){_.fR(I)}};
A.set(C,d);x.call(this,V,Q,d)};
var m=Polymer.Base._unlisten;Polymer.Base._unlisten=function(V,Q,C){m.call(this,V,Q,A.get(C))}}if(Polymer.Async){var b=Polymer.Async,f=b._atEndOfMicrotask;
b._atEndOfMicrotask=function(){try{f.apply(b,arguments)}catch(V){_.fR(V)}}}if(Polymer.RenderStatus){var B=Polymer.RenderStatus,R=B.afterNextRender;
B.afterNextRender=function(V,Q,C){R.call(B,V,function(){try{Q.apply(this,arguments)}catch(d){_.fR(d)}},C)}}pOK=!0}};
_.A0_=function(t){var E=t?_.LR(t):"";if(E){if(E.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(E.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(E.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(E.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(E.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.r("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(E.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";E=E.toLowerCase();if(E==="/")return"home";if(E==="/channel_memberships")return"channel-memberships-shopfront";if(E.indexOf("/feed/trending")===0)return"trending";if(E.indexOf("/feed/explore")===0)return"explore";if(E.indexOf("/live")===0)return"live";if(E.indexOf("/results")===0)return"search";if(E.indexOf("/sports")===0)return"sports";if(E.indexOf("/fashion")===0||E.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(E))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(E))return _.r("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(E.indexOf("/channel/")===0||E.indexOf("/user/")===0||E.indexOf("/gaming")===0||E.indexOf("/post/")===0)return"channel";if(xv$(t))return"show";if(E==="/playlist"||E.indexOf("/playlist/")===0||E==="/view_play_list"||E.indexOf("/view_play_list/")===0||E.indexOf("/show/")===0)return"playlist";if(E==="/companion_canvas")return"companion-canvas";if(E==="/feed/history"||
E.indexOf("/feed/history/")===0)return"history";if(E==="/new")return"labs";if(E==="/feed/subscriptions")return"subscriptions";if(E.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(E==="/history_controls")return"standalone";if(E.indexOf("/account")===0||E==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(E.indexOf("/paid_memberships")===0||E.indexOf("/refund")===0||E.indexOf("/purchases")===0||E.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(E.indexOf("/product")===
0)return"yts-products";if(E.indexOf("/premium")===0||E.indexOf("/musicpremium")===0)return E.indexOf("/premium/offers")===0||E.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(E==="/cart/checkout"||E==="/cart")return"ypc-checkout";if(E.indexOf("/reporthistory")===0)return _.r("enable_new_page_subtypes_for_ai_companion")?"report-history":"browse";if(E.indexOf("/feed/downloads")===0||E.indexOf("/redeem")===0)return"browse";if(E.indexOf("/hashtag")===0)return"hashtag-landing-page";if(E.indexOf("/handle")===
0)return"handle";if(E.indexOf("/source")===0)return"audio-pivot";if(E.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(E.indexOf("/playables")===0)return"playables";if(E.indexOf("/create/live/join")===0)return"open-in-app";if(E.indexOf("/shorts")===0)return"shorts";if(E.indexOf("/feed/channels")===0)return"subscriptions-channels";var p=t?_.LR(t):"";p&&p.indexOf("/watch")===0&&_.r("web_watch_enable_learning_journey")?(t=_.ji(t),t=!!t.list&&t.list.indexOf("LJPP")===0):t=!1;if(t)return"learning_journey_watch";
if(_.r("enable_new_page_subtypes_for_ai_companion")&&E==="/feed/courses")return"your-courses"}};
_.z2=function(t){var E,p;(t=(p=_.k(t==null?void 0:t.commandMetadata,_.hZ))==null?void 0:p.url)&&(E=_.A0_(t));return E};
xv$=function(t){var E=t?_.LR(t):"";if(!E)return!1;E=E.toLowerCase();return E.indexOf("/show/")===0||E.indexOf("/playlist")===0&&(t=_.ji(t),t.list&&t.list.indexOf("EL")===0)?!0:!1};
nf=function(t){var E="unknown",p;var U=((p=_.k(t==null?void 0:t.commandMetadata,_.hZ))==null?void 0:p.webPageType)||"";U?(p=U.toLowerCase(),p.startsWith("web_page_type_")&&(p=p.slice(14))):p=U;p&&Yg_[p.toUpperCase()]?E=Yg_[p.toUpperCase()]:_.k(t,_.lC)||_.k(t,MFY)?E="browse":_.k(t,_.G2)?E="search":_.k(t,_.HD)&&(E="watch");E==="watch"&&_.z2(t||null)==="learning_journey_watch"&&(E="learning_journey_watch");E==="unknown"&&_.qW(Error("Uf`"+JSON.stringify({clickTrackingParams:t==null?void 0:t.clickTrackingParams,
commandMetadata:t==null?void 0:t.commandMetadata,allEndpointKeys:Object.keys(t||[])})));return E};
_.NJ=function(t){if(!_.mv_||t)_.mv_=_.NX();return _.mv_};
_.bLJ=function(t){return!!_.k(t,_.HD)||!!_.k(t,_.DK)&&_.r("kevlar_enable_shorts_prefetch")};
_.iLY=function(t,E){t=_.k(t,_.HD)||_.k(t,_.DK);return"v"+t.videoId+(t.playlistId?"-pl"+t.playlistId:"")+(E?"-an1":"")+(t.params?"-pr"+t.params:"")};
_.qgi=function(t){var E=new s5(_.qO("ONE_PICK_URL",""));E.urlParamMap_.set("hostId",t);(t=_.qO("GAPI_LOCALE"))&&E.urlParamMap_.set("hl",t);(t=_.qO("SESSION_INDEX"))&&E.urlParamMap_.set("authuser",t);(t=_.qO("DELEGATED_SESSION_ID"))&&E.urlParamMap_.set("groupId",t);return E};
fOL=function(){var t=_.X3(),E=t.resolve(_.Lf);t=t.resolve(_.PL);return new HLi(E,t)};
wO8=function(t){if(window.IntersectionObserver)return new Bj$(t,400);throw new TypeError("Wf");};
VFJ=function(){var t=Hammer.TouchAction,E=t.prototype.preventDefaults;t.prototype.preventDefaults=function(p){var U=this.actions.indexOf("pan-down")>-1;if(!U)return E.call(this,p);if(!RAJ){var x=p.srcEvent;p=p.direction;var A;if((A=this.manager)==null?0:A.session.prevented)x.preventDefault();else if(U&&p&Hammer.DIRECTION_DOWN)return this.preventSrc(x)}}};
Q6J=function(t){if(!t||t.size===0)return Hammer.DIRECTION_ALL;if(t.size===2){if(t.has("up")&&t.has("down"))return Hammer.DIRECTION_VERTICAL;if(t.has("right")&&t.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(t.size===1){if(t.has("up"))return Hammer.DIRECTION_UP;if(t.has("down"))return Hammer.DIRECTION_DOWN;if(t.has("right"))return Hammer.DIRECTION_RIGHT;if(t.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.o4=function(t,E,p){var U=p&&p>0?p:0;p=U?Date.now()+U*1E3:0;if((U=U?_.T2.getLocalStorage():_.T2.getSessionStorage())&&window.JSON){typeof E!=="string"&&(E=JSON.stringify(E,void 0));try{U.set(t,E,p)}catch(x){U.remove(t)}}};
_.WL=function(t){var E=_.T2.getSessionStorage(),p=_.T2.getLocalStorage();if(!E&&!p||!window.JSON)return null;try{var U=E.get(t)}catch(x){}if(typeof U!=="string")try{U=p.get(t)}catch(x){}if(typeof U!=="string")return null;try{U=JSON.parse(U,void 0)}catch(x){}return U};
_.$z=function(t){try{var E=_.T2.getSessionStorage(),p=_.T2.getLocalStorage();E&&E.remove(t);p&&p.remove(t)}catch(U){}};
j6Y=function(t){var E=Cs0(),p;return _.q(function(U){switch(U.nextAddress){case 1:return _.aR(U,2),U.yield(t.match(E,{cacheName:"yt-appshell-assets"}),4);case 4:p=U.yieldResult;_.r7(U,3);break;case 2:_.nB(U);case 3:return U.return(p)}})};
Cs0=function(){var t=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?r0L.registration.scope:keY;t.endsWith("/")&&(t=t.slice(0,-1));return t+"/app_shell_home"};
dvK=function(t){t.map(function(E){return E.source}).join("|")};
_.uSO=function(t){return _.q(function(E){return E.return(j6Y(t))})};
J00=function(){var t=window.caches,E;return _.q(function(p){if(p.nextAddress==1)return p.yield(_.uSO(t),2);E=p.yieldResult;return p.return(!!E)})};
aOl=function(){_.q(function(t){if(t.nextAddress==1){if(IOi)return t.jumpTo(0);IOi=!0;if(_.r("enable_system_health_primes_monitoring"))return _.D3(gf8,3E4),ZLE(),t.return();if(!(Math.random()<_.z3("web_system_health_fraction")))return t.jumpTo(0);OLO={heightPixels:screen.height,widthPixels:screen.width};Kf&&!isNaN(Kf.jsHeapSizeLimit)&&(OLO.memoryTotalKbytes=String(Math.round(Kf.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(OLO.devicePixelRatio=window.devicePixelRatio);return t.yield(XOt(),4)}_.D3(gf8,
3E4);return t.yield(hAK(),0)})};
XOt=function(){return _.q(function(t){if(t.nextAddress==1)return vL.intersectionObserverPresent="IntersectionObserver"in window,vL.serviceWorkerPresent="serviceWorker"in navigator,vL.webSharePresent="share"in navigator,vL.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,vL.cacheStoragePresent="caches"in window,vL.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,vL.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
vL.webkitTemporaryStoragePresent="webkitTemporaryStorage"in yM&&yM.webkitTemporaryStorage&&"queryUsageAndQuota"in yM.webkitTemporaryStorage,vL.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",t.yield(Q4E(),2);vL.indexedDbPresent=t.yieldResult;vL.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;vL.broadcastChannelPresent="BroadcastChannel"in window;vL.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(vL.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,vL.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.Do(t)})};
gf8=function(){var t=9E4+Math.random()*2E3;_.af()>t||(_.r("enable_system_health_primes_monitoring")?ZLE():hAK())};
hAK=function(){var t;return _.q(function(E){if(E.nextAddress==1)return E.yield(eA8(),2);t=E.yieldResult;_.MW("systemHealthCaptured",t);_.Do(E)})};
ZLE=function(){var t={metric:{}},E=FB$();E.networkEvents.length&&(t.metric.networkEvents=zAL(E));_.MW("systemHealthCaptured",t)};
eA8=function(){var t,E,p,U,x,A,m,b,f,B;return _.q(function(R){switch(R.nextAddress){case 1:t={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)};E=window.screen;_.r("enable_is_extended_monitoring")&&E&&"isExtended"in E&&(t.isExtended=!!E.isExtended);p={metric:{staticContext:OLO,dynamicContext:t,webMetric:lOj,webApiSupport:vL}};
if(U=_.yL())p.csn=U;Kf&&(p.metric.webMetric.currentHeapKbytes=Math.round(Kf.usedJSHeapSize/1E3));window.matchMedia&&(p.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,p.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,p.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in yM&&typeof yM.getBattery==="function")){R.jumpTo(2);break}return R.yield(yM.getBattery(),3);case 3:if(x=
R.yieldResult)p.metric.dynamicContext.chargingStatus=x.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(p.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(vL.storageEstimatePresent)return R.yield(navigator.storage.estimate(),8);if(!vL.webkitTemporaryStoragePresent){R.jumpTo(5);break}return R.yield(GeL(),7);case 7:A=R.yieldResult;R.jumpTo(5);break;case 8:A=R.yieldResult;case 5:return p.metric.dynamicContext.deviceStorageQuotaMbytes=((m=A)==null?0:m.quota)?String(Math.round(A.quota/
1048576/10)*10):"-1",p.metric.dynamicContext.deviceStorageUsageMbytes=((b=A)==null?0:b.usage)?String(Math.round(A.usage/1048576/10)*10):"-1",f=p.metric.dynamicContext,R.yield(J00(),9);case 9:return f.hasAppShell=R.yieldResult,B=FB$(),B.networkEvents.length&&(p.metric.networkEvents=zAL(B)),R.return(p)}})};
GeL=function(){return new Promise(function(t){var E;vL.webkitTemporaryStoragePresent&&(E=yM.webkitTemporaryStorage)!=null&&E.queryUsageAndQuota?yM.webkitTemporaryStorage.queryUsageAndQuota(function(p,U){t({usage:p,quota:U})}):t(void 0)})};
_.SL=function(t){t&=16777215;t=[(t&16711680)>>16,(t&65280)>>8,t&255];return nfY(t[0],t[1],t[2])};
_.cL=function(t){t=[(t&16711680)>>>16,(t&65280)>>>8,t&255,(t&4278190080)>>>24];if(!_.NjO(t,function(E){return E===(E&255)}))throw Error("Xf`"+t.join(","));
return"rgba("+t[0]+","+t[1]+","+t[2]+","+(t[3]/255).toFixed(3)+")"};
_.DvD=function(t){return[(t&16711680)>>>16,(t&65280)>>>8,t&255]};
_.s6L=function(t){t=t.map(function(E){E/=255;return E<=.03928?E/12.92:Math.pow((E+.05)/1.05,2.4)});
return t[0]*.2126+t[1]*.7152+t[2]*.0722};
t2=function(t,E){t=_.DvD(t);return"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+E+")"};
EU=function(t){return(t&4278190080)>>>24===0?t2(t,"1"):_.cL(t)};
_.LB$=function(){try{return!!self.localStorage}catch(t){return!1}};
WB_=function(){if(Psj())_.qW(Error("Yf"));else{var t=document.createElement("iframe");t.style.display="none";var E=E===void 0?window.location.href:E;var p=_.q0(_.qO("PERSIST_IDENTITY_IFRAME_URL"));E=p?p:(new URL(E)).host.indexOf("studio")===0?_.JC(Tj0,"persist_identity"):_.JC(ofJ,"persist_identity");_.mE(t,1,E);t.id="persist_identity";var U;(U=document.body)==null||U.appendChild(t)}};
Psj=function(){var t=$vl;t||(t=document.querySelector("#persist_identity"));return t};
KBj=function(){var t=!1;try{t=!!window.sessionStorage.getItem("session_logininfo")}catch(E){t=!0}return(_.qO("INNERTUBE_CLIENT_NAME")==="WEB"||_.qO("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&t};
vfO=function(t,E){if(!KBj())return!1;E||(E=_.qO("LOGIN_INFO"));return E?(t.session_logininfo=E,!0):!1};
SgL=function(t,E){t=t===void 0?!1:t;if((E===void 0||!E)&&y0O!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.HC("LOG_STICKINESS",!1)){E=_.yL();var p=_.vV(),U={identityStickinessData:{initialState:y0O}};E&&p&&_.fb(E,p,U)}if(E=Psj())if(p=E.src?(new URL(E.src)).origin:"*",t){var x;(x=E.contentWindow)==null||x.postMessage({action:"clear"},p)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(t=window.sessionStorage.getItem("session_logininfo"))){var A;(A=E.contentWindow)==null||A.postMessage({loginInfo:t},p)}};
_.p0=function(t){t=t===void 0?!0:t;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.ia("LOGIN_INFO",""),t&&window.sessionStorage.setItem("from_switch_account","1"),SgL(!0,t)}catch(E){}};
c0t=function(t){t&&(t.startsWith("https://accounts.google.com/AddSession")?_.p0():t.startsWith("https://accounts.google.com/ServiceLogin")?_.p0():t.startsWith("https://myaccount.google.com")&&_.QC(t).getPath().endsWith("/youtubeoptions")&&_.p0())};
UU=function(t,E){c0t(t);if(_.HC("LOGGED_IN",!0)&&KBj()){var p=xj_(t);p==null&&(p={});vfO(p,E)&&_.RK(t,p)}};
tSL=function(){function t(E){for(E=E.target;E&&E.nodeName!=="A";)if(E=E.parentNode,!(E&&E instanceof HTMLElement))return;if(E&&!E.hasAttribute("download")&&E.getAttribute("rel")!=="external"&&E.href)return E.href}
document.addEventListener("mousedown",function(E){E.button!==0&&(E=t(E))&&UU(E)});
document.addEventListener("click",function(E){(E=t(E))&&UU(E)})};
U9J=function(){var t=new Egt;try{if(_.HC("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(b){t.increment(5,!1);return}if(_.qO("LOGIN_INFO")){var E=pBY?pBY:window.location;_.qO("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&WB_();var p=xj_(E.href);p==null&&(p={});var U=p.session_logininfo,x=Number(window.sessionStorage.getItem("stickiness_reload")),A=U===_.qO("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
x>=2||A)x>=2?t.increment(2,A):A?t.increment(7,A):window.sessionStorage.getItem("session_logininfo")||(t.increment(3,A),y0O="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.qO("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.qO("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))t.increment(4,A),window.sessionStorage.removeItem("stickiness_reload");
else if(x<2){window.sessionStorage.setItem("stickiness_reload",String(x+1));var m=E.href;m=_.VS(m,"sttick");UU(m,window.sessionStorage.getItem("session_logininfo"));m=_.rs(m,{sttick:x});t.increment(x,A);_.ao$(E,m)}}else t.increment(6,!1)}else _.p0(!1)}catch(b){}};
_.xR=function(t,E,p,U,x){E=E===void 0?{}:E;p=p===void 0?"":p;U=U===void 0?window:U;t=_.ka(t,E);UU(t);p=_.S8(t+p,x);_.ao$(U.location,p)};
x9_=function(t){if(t.urlEndpoint){if(t=_.ji(t.urlEndpoint.url),t.adurl)return Z3(t.adurl)}else if(t.watchEndpoint)return"//www.youtube.com/watch?v="+t.watchEndpoint.videoId;return null};
AuJ=function(t){if(!t||!t.reportingPings)return null;var E={};t.reportingPings.forEach(function(p){p.pingType in E?E[p.pingType].push(p.url):E[p.pingType]=[p.url]});
return{adpings:oT_(E)}};
_.me=function(t){t=t===void 0?!1:t;var E=_.nF(),p="USER_INTERFACE_THEME_LIGHT";E.getFlag(165)?p="USER_INTERFACE_THEME_DARK":E.getFlag(174)?p="USER_INTERFACE_THEME_LIGHT":_.Ml()&&(p="USER_INTERFACE_THEME_DARK");return t?p:YL_()||p};
_.MSj=function(){return!_.r("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.Ml=function(){return _.MSj()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.bc=function(){var t=_.nF();return _.MSj()&&!t.getFlag(165)&&!t.getFlag(174)};
YL_=function(){var t=t===void 0?window.location.href:t;if(_.r("kevlar_disable_theme_param"))return null;var E=_.LR(t);if(_.m9Y(E))return"USER_INTERFACE_THEME_DARK";try{var p=_.ji(t).theme;return bPJ.get(p)||null}catch(U){}return null};
_.m9Y=function(t){return _.r("enable_dark_theme_only_on_shorts")?!(t==null||!t.startsWith("/shorts/")):!1};
_.H3=function(t,E,p,U,x){E=E===void 0?!1:E;p=p===void 0?!1:p;var A=_.qO("INNERTUBE_CONTEXT");if(!A)return _.bV(Error("bg")),{};A=(0,_.Kq.unsafeClone)(A);_.r("web_no_tracking_params_in_shell_killswitch")||delete A.clickTracking;A.client||(A.client={});var m=A.client;m.clientName==="MWEB"&&m.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(m.clientFormFactor=_.qO("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");m.screenWidthPoints=window.innerWidth;m.screenHeightPoints=window.innerHeight;m.screenPixelDensity=
Math.round(window.devicePixelRatio||1);m.screenDensityFloat=window.devicePixelRatio||1;m.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());m.userInterfaceTheme=_.me();if(!E){var b=_.sp$();b&&(m.connectionType=b);_.r("web_log_effective_connection_type")&&(b=PUD())&&(A.client.effectiveConnectionType=b)}var f;if(_.r("web_log_memory_total_kbytes")&&((f=_.Ui.navigator)==null?0:f.deviceMemory)){var B;f=(B=_.Ui.navigator)==null?void 0:B.deviceMemory;A.client.memoryTotalKbytes=""+f*1E6}E&&U&&!_.r("web_it_context_set_original_url_ks")&&
(m.originalUrl=iPJ(_.Ui.location.href,U).toString());_.r("web_gcf_hashes_innertube")&&(b=cf0())&&(B=b.coldConfigData,f=b.coldHashData,b=b.hotHashData,A.client.configInfo=A.client.configInfo||{},B&&(A.client.configInfo.coldConfigData=B),f&&(A.client.configInfo.coldHashData=f),b&&(A.client.configInfo.hotHashData=b));B=_.ji(_.Ui.location.href);!_.r("web_populate_internal_geo_killswitch")&&B.internalcountrycode&&(m.internalGeo=B.internalcountrycode);!_.r("web_populate_client_screen_killswitch")&&x&&(m.clientScreen=
x);m.clientName==="MWEB"||m.clientName==="WEB"?(m.mainAppWebInfo||(m.mainAppWebInfo={}),m.mainAppWebInfo.graftUrl=U||_.Ui.location.href,_.r("kevlar_woffle")&&_.ic.instance&&(U=_.ic.instance,m.mainAppWebInfo.pwaInstallabilityStatus=!U.appInstalledEventFired&&U.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),m.mainAppWebInfo.webDisplayMode=TN0(),m.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):m.clientName==="TVHTML5"&&
(!_.r("web_lr_app_quality_killswitch")&&(U=_.qO("LIVING_ROOM_APP_QUALITY"))&&(m.tvAppInfo=Object.assign(m.tvAppInfo||{},{appQuality:U})),U=_.qO("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(m.tvAppInfo=Object.assign(m.tvAppInfo||{},{certificationScope:U}));!_.r("web_populate_time_zone_itc_killswitch")&&(U=NmO())&&(m.timeZone=U);(U=YF$())?m.experimentsToken=U:delete m.experimentsToken;m=M1t();U=_.qLi();U=(0,_.Kq.getValues)(U.tokenJars);A.request=Object.assign({},A.request,{internalExperimentFlags:m,consistencyTokenJars:U});
!_.r("web_prequest_context_killswitch")&&(m=_.qO("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(A.request.externalPrequestContext=m);U=_.nF();m=U.getFlag(58);U=U.get("gsml","");A.user=Object.assign({},A.user);m&&(A.user.enableSafetyMode=m);U&&(A.user.lockedSafetyMode=!0);_.r("warm_op_csn_cleanup")?p&&(E=_.yL())&&(A.clientScreenNonce=E):!E&&(E=_.yL())&&(A.clientScreenNonce=E);t&&(A.clickTracking={clickTrackingParams:t});if(t=_.ws("yt.mdx.remote.remoteClient_"))A.remoteClient=t;_.ql.getInstance().setLocationOnInnerTubeContext(A);
try{var R=V1$(),V=R.bid;delete R.bid;A.adSignalsInfo={params:[],bid:V};for(var Q=_.M(Object.entries(R)),C=Q.next();!C.done;C=Q.next()){var d=_.M(C.value),I=d.next().value,O=d.next().value;R=I;V=O;t=void 0;(t=A.adSignalsInfo.params)==null||t.push({key:R,value:""+V})}var a,F;if(((a=A.client)==null?void 0:a.clientName)==="TVHTML5"||((F=A.client)==null?void 0:F.clientName)==="TVHTML5_UNPLUGGED"){var L=_.qO("INNERTUBE_CONTEXT");L.adSignalsInfo&&(A.adSignalsInfo.advertisingId=L.adSignalsInfo.advertisingId,
A.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",A.adSignalsInfo.limitAdTracking=L.adSignalsInfo.limitAdTracking)}}catch(D){_.bV(D)}return A};
_.f0=function(){return{isShellLoad:_.HC("IS_SHELL_LOAD",!1)}};
fz0=function(){navigator.serviceWorker.getRegistrations().then(function(t){t.forEach(HPt)})};
HPt=function(t){t&&_.BPJ(wBY,t.scope)};
_.BPJ=function(t,E){E={scope:E||_.la("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.Dk(t),E)};
B3=function(t,E,p,U){if(E&&E.serializedYpcCujLoggingParams){if(p){var x={};x.transactionErrorType=p;U&&(x.errorMessage=U);E.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:x}}}p={};p.ypcCujContext=E;t=_.a4("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",t,p);_.eL().logFlowEvent(t,"FLOW_TYPE_YPC_ACQUISITION")}};
_.RRE=function(t,E,p,U){var x={};x.serializedTransactionFlowLoggingParams=E;p&&(x.errorType=p);U&&(x.errorMessage=U);_.MW(t,x);_.mL()};
_.VSO=function(t){t&&_.RRE("transactionFlowStarted",t)};
_.QdJ=function(t){t&&_.RRE("transactionFlowCancelled",t)};
_.wz=function(t,E,p){E&&_.RRE("transactionFlowFailed",E,t,p)};
CoD=function(t){var E=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");E&&(E.inert=t)};
_.RG=function(){this.megabloxUrl_=null};
_.Vx=function(t){try{var E=jdY==null?void 0:jdY.composedPath(t)}catch(p){E=t.composedPath?t.composedPath():[]}return E&&E.length>0?E:t.composedPath?t.composedPath():[]};
_.Qx=function(t){return _.Vx(t)[0]};
C0=function(t){return t instanceof ShadowRoot?ShadowRoot:t instanceof DocumentFragment?DocumentFragment:t instanceof Document?Document:HTMLElement};
ruK=function(t){if(t instanceof Element)return Element.prototype;if(t instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("fg`"+t);};
kvj=function(t,E){return _.r("sunnydom_native_scoped_query_selectors")?ruK(t).querySelector.call(t,E):C0(t).prototype.querySelector.call(t,E)};
d9O=function(t,E){return _.r("sunnydom_native_scoped_query_selectors")?ruK(t).querySelectorAll.call(t,E):C0(t).prototype.querySelectorAll.call(t,E)};
uzY=function(t){var E,p,U;return(U=(p=(E=t.parentElement)!=null?E:t.__shady_native_parentElement)!=null?p:t.__shady_parentElement)!=null?U:null};
JuY=function(t){var E,p,U;return(U=(p=(E=t.parentNode)!=null?E:t.__shady_native_parentNode)!=null?p:t.__shady_parentNode)!=null?U:null};
Izt=function(t){var E,p,U;return(U=(p=(E=t.nextSibling)!=null?E:t.__shady_native_nextSibling)!=null?p:t.__shady_nextSibling)!=null?U:null};
ggl=function(t){var E,p,U;return(U=(p=(E=t.previousSibling)!=null?E:t.__shady_native_previousSibling)!=null?p:t.__shady_previousSibling)!=null?U:null};
ZP_=function(t){var E,p,U;return(U=(p=(E=t.nextElementSibling)!=null?E:t.__shady_native_nextElementSibling)!=null?p:t.__shady_nextElementSibling)!=null?U:null};
OPL=function(t){var E,p,U;return(U=(p=(E=t.previousElementSibling)!=null?E:t.__shady_native_previousElementSibling)!=null?p:t.__shady_previousElementSibling)!=null?U:null};
XBi=function(t){var E,p,U;return new Set([].concat(_.KB((E=t.children)!=null?E:[]),_.KB((p=t.__shady_native_children)!=null?p:[]),_.KB((U=t.__shady_children)!=null?U:[])))};
hR_=function(t){var E,p,U;return new Set([].concat(_.KB((E=t.childNodes)!=null?E:[]),_.KB((p=t.__shady_native_childNodes)!=null?p:[]),_.KB((U=t.__shady_childNodes)!=null?U:[])))};
_.jU=function(t){if(!(t instanceof Element))return null;t=t.classList?Array.from(t.classList):void 0;if(!t)return null;var E=t.indexOf("style-scope");return E>-1&&E+1<t.length?t[E+1]:null};
rz=function(t){if(!(t instanceof HTMLElement))return null;var E=t&&(t.$$||t.polymerController)?t.tagName.toLowerCase():null;return E?E:_.jU(t)};
az0=function(t,E){return _.r("sunnydom_native_scoped_query_selectors")?t+".style-scope."+E:t.replace(/[^a-z]*[^\s]+/g,function(p){return p+".style-scope."+E})};
eR8=function(t,E){return E?t.split(",").map(function(p){return az0(p.trim(),E)}).join(", "):t};
_.kR=function(t){var E,p,U,x;return(x=(U=(p=(E=t.root)!=null?E:t.shadowRoot)!=null?p:t.__shady_native_shadowRoot)!=null?U:t.__shady_shadowRoot)!=null?x:t};
Fk_=function(t){var E,p,U;return(U=(p=(E=t.__shady_parentNode)!=null?E:t.__shady_native_parentNode)!=null?p:t.parentNode)!=null?U:null};
zRL=function(t){var E,p;return(p=(E=JuY(t))!=null?E:t.host)!=null?p:null};
lzt=function(t){for(;t&&!(t instanceof HTMLElement);)t=zRL(t);return t};
Gv$=function(t){var E=lzt(t);return t===E?_.jU(t):E?rz(E):null};
ngO=function(t){return(t=lzt(t))?rz(t):null};
NPL=function(t){if(t instanceof Comment)return!1;if(t instanceof Text){var E,p;if(((p=(E=t.textContent)==null?void 0:E.trim())!=null?p:"")==="")return!1}return!0};
dz=function(t,E,p){var U=E(t);for(p=p===void 0?ngO(t):p;U&&(Gv$(U)!==p||!NPL(U));)t=U,U=E(t);return U};
D9i=function(t,E,p){if(!E)return null;t=ngO(t);return Gv$(E)===t&&NPL(E)?E:dz(E,p,t)};
sdD=function(t){return dz(t,Fk_,_.jU(t))};
Lk0=function(t){return dz(t,ZP_)};
PoO=function(t){return dz(t,Izt)};
TP$=function(t){return dz(t,OPL)};
ogL=function(t){return dz(t,ggl)};
WkO=function(t){return D9i(t,t.firstChild||null,Izt)};
$9_=function(t){var E,p,U;var x=(U=(p=(E=t.firstElementChild)!=null?E:t.__shady_native_firstElementChild)!=null?p:t.__shady_firstElementChild)!=null?U:null;return D9i(t,x,ZP_)};
KkD=function(t){var E,p,U;var x=(U=(p=(E=t.lastChild)!=null?E:t.__shady_native_lastChild)!=null?p:t.__shady_lastChild)!=null?U:null;return D9i(t,x,ggl)};
vgi=function(t){var E,p,U;var x=(U=(p=(E=t.lastElementChild)!=null?E:t.__shady_native_lastElementChild)!=null?p:t.__shady_lastElementChild)!=null?U:null;return D9i(t,x,OPL)};
yuD=function(t){var E=ngO(t);return Array.from(hR_(t)).filter(function(p){return Gv$(p)===E})};
SL_=function(t){var E=rz(t);return Array.from(XBi(t)).filter(function(p){return _.jU(p)===E})};
cuY=function(t){if(!t)return null;var E=_.jU(t);if(!E){var p;return(p=Node.prototype.getRootNode)==null?void 0:p.call(t)}E=E.toUpperCase();for(t=uzY(t);t&&t.tagName!==E;)t=uzY(t);return t?_.kR(t):null};
_.uc=function(t){var E=_.r(t);QR["counterfactuals."+t]=String(E);return E};
_.J2=function(t,E,p){if(t instanceof HTMLElement&&_.jU(t)===p){var U=Array.from(t.classList).indexOf("style-scope");if(U===-1)t.classList.add("style-scope"),t.classList.add(E);else if(!(U+1>=t.classList.length)){U=t.classList[U+1];var x,A;t==null||(x=t.classList)==null||(A=x.replace)==null||A.call(x,U,E)}}if(t instanceof HTMLElement||t instanceof DocumentFragment)for(x=_.M(XBi(t)),A=x.next();!A.done;A=x.next())_.J2(A.value,E,p);return t};
IG=function(t,E){if(t instanceof HTMLElement&&_.jU(t)===E){var p=Array.from(t.classList).indexOf("style-scope");p===-1||p+1>=t.classList.length||t.classList.remove("style-scope",t.classList[p+1])}if(t instanceof HTMLElement||t instanceof DocumentFragment){p=_.M(t.children);for(var U=p.next();!U.done;U=p.next())IG(U.value,E)}return t};
_.to8=function(t,E){return C0(t).prototype.appendChild.call(t,E)};
ENY=function(t,E){if(t===E)return!0;t=hR_(t);return Array.from(t).some(function(p){return ENY(p,E)})};
_.ZN=function(t,E){if(t instanceof gz)return t;(E==null?0:E.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(t,"ownerDocument")&&Object.defineProperty(t,"ownerDocument",{get:function(){return window.document}});
return new gz(t)};
USO=function(){var t=gz.prototype,E=[].concat(_.KB(pZi?[]:["getRootNode"]),["setAttribute","removeAttribute"]);E=_.M(E);for(var p=E.next(),U={};!p.done;U={method$jscomp$53:void 0},p=E.next())U.method$jscomp$53=p.value,t[U.method$jscomp$53]=function(x){return function(){return this.host[x.method$jscomp$53].apply(this.host,arguments)}}(U)};
Ax$=function(){var t=gz.prototype,E=[].concat(_.KB(pZi?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.KB(xS$?[]:["querySelector","querySelectorAll"]));E=_.M(E);for(var p=E.next(),U={};!p.done;U={method$jscomp$54:void 0},p=E.next())U.method$jscomp$54=p.value,t[U.method$jscomp$54]=function(x){return function(){return this.root[x.method$jscomp$54].apply(this.root,arguments)}}(U)};
mSK=function(){var t=gz.prototype,E=[].concat(_.KB(YVJ?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.KB(Moj?[]:["parentNode"]));E=_.M(E);for(var p=E.next(),U={};!p.done;U={prop$jscomp$67:void 0},p=E.next())U.prop$jscomp$67=p.value,Object.defineProperty(t,U.prop$jscomp$67,{get:function(x){return function(){return this.host[x.prop$jscomp$67]}}(U),
configurable:!0})};
qV8=function(){var t=gz.prototype,E=["activeElement"].concat(_.KB(YVJ?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.KB(b7K?[]:["children"]),_.KB(i70?[]:["lastChild"]));E=_.M(E);for(var p=E.next(),U={};!p.done;U={prop$jscomp$68:void 0},p=E.next())U.prop$jscomp$68=p.value,Object.defineProperty(t,U.prop$jscomp$68,{get:function(x){return function(){return this.root[x.prop$jscomp$68]}}(U),
configurable:!0})};
H7_=function(){for(var t=gz.prototype,E=_.M(["innerHTML","textContent"]),p=E.next(),U={};!p.done;U={prop$jscomp$69:void 0},p=E.next())U.prop$jscomp$69=p.value,Object.defineProperty(t,U.prop$jscomp$69,{get:function(x){return function(){return this.root[x.prop$jscomp$69]}}(U),
set:function(x){return function(A){this.root[x.prop$jscomp$69]=A}}(U),
configurable:!0})};
fCi=function(t){var E=gz.prototype;t=_.M(Object.entries(t));for(var p=t.next(),U={};!p.done;U={fn$jscomp$402:void 0},p=t.next()){var x=_.M(p.value);p=x.next().value;x=x.next().value;U.fn$jscomp$402=x;E[p]=function(A){return function(){return A.fn$jscomp$402.apply(null,[this.host.node||this.host].concat(_.KB(arguments)))}}(U)}};
wZ0=function(){for(var t=gz.prototype,E=_.M(Object.entries(BoO)),p=E.next(),U={};!p.done;U={fn$jscomp$403:void 0},p=E.next()){var x=_.M(p.value);p=x.next().value;x=x.next().value;U.fn$jscomp$403=x;Object.defineProperty(t,p,{get:function(A){return function(){return A.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.KB(arguments)))}}(U),
configurable:!0})}};
_.OU=function(t){return t instanceof Rp$||t instanceof Document?t:new Rp$(t)};
VoJ=function(){for(var t=Rp$.prototype,E=_.M("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),p=E.next(),U={};!p.done;U={method$jscomp$55:void 0},p=E.next())U.method$jscomp$55=p.value,t[U.method$jscomp$55]=function(x){return function(){return HTMLElement.prototype[x.method$jscomp$55].call.apply(HTMLElement.prototype[x.method$jscomp$55],[this.node].concat(_.KB(arguments)))}}(U)};
QA$=function(){for(var t=Rp$.prototype,E=_.M("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),p=E.next(),U={};!p.done;U={prop$jscomp$70:void 0},p=E.next())U.prop$jscomp$70=p.value,Object.defineProperty(t,U.prop$jscomp$70,{get:function(x){return function(){var A;return(A=this.node["__shady_native_"+x.prop$jscomp$70])!=null?A:this.node[x.prop$jscomp$70]}}(U),
configurable:!0})};
_.XM=function(t,E,p){p===void 0&&(p=!t.classList.contains(E));p?t.classList.add(E):t.classList.remove(E)};
_.h2=function(t,E,p){p===void 0&&(p=!t.hasAttribute(E));if(E==="class")throw Error("gg");p?_.OU(t).setAttribute(E,""):_.OU(t).removeAttribute(E)};
Cll=function(t){return(t.localName!=="slot"?[]:(0,_.aG)(t).assignedNodes({flatten:!0})).filter(function(E){return E.nodeType===Node.ELEMENT_NODE})};
_.jAJ=function(t){return(t=_.ZN(t).querySelector("slot"))&&t.localName==="slot"?Cll(t):[]};
_.eU=function(t,E){window.ShadyCSS&&window.ShadyCSS.styleSubtree(t,E)};
FM=function(t,E){var p=E.bind(t);return function(U){p(U,U.detail)}};
_.zI=function(t,E){var p=rxL.get(t);p||(p=new WeakMap,rxL.set(t,p));if(p.has(E))return p.get(E);if(_.r("web_fi_listen_disable_bound_fn_helper")){var U=E.bind(t);t=function(x){U(x,x==null?void 0:x.detail)}}else t=FM(t,E);
p.set(E,t);return t};
ukO=function(t,E){kbO(t);t.created[dSO].push(E)};
kbO=function(t){if(!t.created||!t.created[dSO]){var E=t.created,p=E?[E]:[];t.created=function(){for(var U=_.M(p),x=U.next();!x.done;x=U.next())x.value.apply(this)};
t.created[dSO]=p}};
Jxt=function(t){return function(){var E=_.t9.apply(0,arguments);return function(p,U,x){t.apply(null,_.KB(E))(p,U,x)}}};
ICO=function(){return function(){var t=_.t9.apply(0,arguments);return function(E,p,U){mhi.apply(null,_.KB(t))(E,p,U)}}};
_.g=function(t){return ICO()(t)};
_.Z=function(){return Jxt(Hut).apply(null,_.KB(_.t9.apply(0,arguments)))};
_.lc=function(t){return _.r("pbcm_fi_listen_decorators")?gNE(t):Jxt(iut)(t)};
gNE=function(t){return function(E,p){ukO(E,function(){var U=this[p],x=_.r("web_fi_listen_disable_bound_fn_helper")?function(A){U(A,A.detail)}.bind(this):FM(this,U);
Z7$.has(t)?fo(this.hostElement,t,x):this.hostElement.addEventListener(t,x)})}};
_.GI=function(){return Jxt(qkE).apply(null,_.KB(_.t9.apply(0,arguments)))};
_.e=function(t){t=t===void 0?{}:t;return Jxt(bu_)(t)};
_.n0=function(t){if(t.hostElement&&t!==t.hostElement){var E=_.sm(t.hostElement);E=t.renderIdom?E:E.shadowRoot}E||(t=t.root,E=t instanceof Node?_.sm(t):null);return E};
_.Nl=function(t){return O7l?XZY(t):function(E,p){Object.defineProperty(E,p,{get:function(){var U;return(U=_.n0(this))==null?void 0:U.querySelector(t)},
enumerable:!0,configurable:!0})}};
XZY=function(t){return function(E,p){Object.defineProperty(E,p,{get:function(){var U,x=(U=_.ZN(this.hostElement))==null?void 0:U.querySelector(t);if(x)return x;var A;return(A=_.n0(this))==null?void 0:A.querySelector(t)},
enumerable:!0,configurable:!0})}};
_.DN=function(t){return O7l?hpJ(t):function(E,p){Object.defineProperty(E,p,{get:function(){var U;return(U=_.n0(this))==null?void 0:U.querySelectorAll(t)},
enumerable:!0,configurable:!0})}};
hpJ=function(t){return function(E,p){Object.defineProperty(E,p,{get:function(){var U,x=(U=_.ZN(this.hostElement))==null?void 0:U.querySelectorAll(t);if(x==null?0:x.length)return x;var A;return(A=_.n0(this))==null?void 0:A.querySelectorAll(t)},
enumerable:!0,configurable:!0})}};
aC_=function(t){return function(E){if(![_.ef,_.z].includes(Object.getPrototypeOf(E.prototype).constructor))throw Error("hg");tIO(Object.assign({},typeof t!=="string"?t:{is:t,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(E)}};
_.L0=function(){var t=t===void 0?{}:t;return function(E){if(![FE,_.sU].includes(Object.getPrototypeOf(E.prototype).constructor))throw Error("ig");EMj(Object.assign({},t,{disableInheritanceCheck:!0}))(E)}};
FvY=function(t,E){ep8[t]!=null||(ep8[t]=new Set);ep8[t].add(E)};
_.P3=function(){var t=_.GI.apply(null,_.KB(_.t9.apply(0,arguments)));return function(E,p){FvY(E.is,p);t(E,p)}};
W3=function(t,E,p){if(TI(t)&&!zpD.has(E)){E=E.replace(/^JSC\$[\d]+_/,"");E=E.replace(/\.\d+(\.|$)/g,function(A,m){return".#"+m});
oG[t]!=null||(oG[t]={});var U,x;(U=oG[t])[x=E]!=null||(U[x]=new Set);oG[t][E].has(p)||(oG[t][E].add(p),_.MW("polymerPropertyAccessEvent",{componentName:t,propertyName:E,accessType:p}))}};
lC$=function(){return _.r("polymer_property_access_logging_debug")||_.r("polymer_enable_property_access_logging")};
TI=function(t){if(_.r("polymer_property_access_logging_debug"))return!0;if(!_.r("polymer_enable_property_access_logging"))return!1;GbD||(GbD=Date.now());return(AZ(t)+GbD)%100<_.z3("polymer_property_access_logging_percent")};
nNL=function(t,E){return TI(E)&&t.hostElement.loggingStatus?new Proxy(t,{get:function(p,U,x){if(p.hostElement.loggingStatus.bypassProxyController)return p[U];p.hostElement.loggingStatus.isExternalGet=!0;var A=p[U];p.hostElement.loggingStatus.isExternalGet=!1;if(A instanceof Function)return function(){var m=_.t9.apply(0,arguments);try{return p.hostElement.loggingStatus.currentExternalCall=U,W3(E,U,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),A.apply(this===x?p:this,m)}finally{p.hostElement.loggingStatus.currentExternalCall=
void 0}};
W3(E,U,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return A},
set:function(p,U,x){if(p.hostElement.loggingStatus.bypassProxyController)return p[U]=x,!0;p.hostElement.loggingStatus.isRendererStamper?W3(E,U,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):p.hostElement.loggingStatus.isDeclarativeExternal||W3(E,U,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{p.hostElement.loggingStatus.currentExternalSet=U,p[U]=x}finally{p.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):t};
No0=function(t,E){t&&t.loggingStatus&&!t.loggingStatus.isDeclarativeExternal&&!t.loggingStatus.isExternalGet&&t.loggingStatus.currentExternalSet!==E&&W3(t.tagName.toLowerCase(),E,"PROPERTY_ACCESS_GET_INTERNAL")};
$R=function(t,E,p){t&&(p||t.loggingStatus&&!t.loggingStatus.isInitializing&&!t.loggingStatus.isDefiningPropertyAccessor&&t.loggingStatus.currentExternalSet!==E)&&W3(t.tagName.toLowerCase(),E,"PROPERTY_ACCESS_SET_INTERNAL")};
DSK=function(){return{_definePropertyAccessor:function(t,E){var p=this,U=p.hostElement.loggingStatus;U&&(U.isDefiningPropertyAccessor=!0);var x=p[t];x!==void 0&&(p.__data?p._setPendingProperty(t,x):(p.__dataProto!=null||(p.__dataProto={}),p.__dataProto[t]=x));U&&(U.isDefiningPropertyAccessor=!1);Object.defineProperty(this,t,{get:function(){No0(p.hostElement,t);return this.__data[t]},
set:function(A){E||this._setPendingProperty(t,A,!0)&&this._invalidateProperties()}})},
created:function(){var t=this._setPendingProperty.bind(this);this._setPendingProperty=function(E,p,U){$R(this.hostElement,E);return t.apply(this,[E,p,U])}}}};
sAl=function(t){lC$()&&_.g(K0.prototype)(t.prototype,"__templateBindingLoggingBehavior")};
Lvj=function(t,E){if(E.resolvedFactories.length!==t.resolvedFactories.length)return!0;E=_.M(E.resolvedFactories.entries());for(var p=E.next();!p.done;p=E.next()){var U=_.M(p.value);p=U.next().value;U=U.next().value;if(U.providerClass){if(U.providerClass!==t.resolvedFactories[p].providerClass)return!0}else if(U.providerValue){if(U.providerValue!==t.resolvedFactories[p].providerValue)return!0}else if(U.factory!==t.resolvedFactories[p].factory)return!0}return!1};
Plt=function(t,E){t=_.M(t);for(var p=t.next();!p.done;p=t.next())if(p=p.value,p.constructor===Array)Plt(p,E);else{var U=E;U.has(p)||(p.inject&&U.add(p),p.behaviors&&Plt(p.behaviors,U))}};
v3=function(t,E){var p=t[E];t[E]=function(){var U=_.t9.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(p)return p.apply(this,U)}};
$S0=function(){_.yx.Class=function(p,U){p=ToD(p,U);v3(p.prototype,"created");return p};
v3(SU.prototype,"_initializeProperties");v3(_.c3.prototype,"_initializeProperties");if(oNK)v3(WvE,"created");else{var t=function(){v3(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))t();else{var E=customElements.define;customElements.define=function(p,U,x){E.call(customElements,p,U,x);p==="tp-yt-iron-list"&&(t(),customElements.define=E)}}}};
vNO=function(t,E){t.prototype.behaviors=t.prototype.behaviors||[];t.prototype.behaviors.unshift(KvY.InjectBehavior);t.prototype.provide=E};
_.p4=function(t){return function(E){if(!t.disableElementRegistration){t.noInjection||vNO(E,t.providers);var p=E.prototype;p.__templateHelpers||mhi(tX.prototype)(p,"__templateHelpers");p=t.is;yxO||(yxO=Date.now());(AZ(p)+yxO)%100<_.z3("polymer_log_prop_change_observer_percent")&&mhi(El.prototype)(E.prototype,"__propertyObserverObserver");E.prototype.behaviors=E.prototype.behaviors||[];E.prototype.behaviors.unshift(_.SVl.YtHostElementBehavior);sAl(E);aC_({is:t.is,notifyObserversOnUndefined:t.notifyObserversOnUndefined!==
!1,fastInit:t.fastInit,template:t.template,disableEnforceFastDefaultValuesCheck:!0})(E)}}};
_.Ul=function(t){return _.p4({is:t.is,template:t.template,disableElementRegistration:t.disableElementRegistration,cssBuildOptOut:t.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
E4t=function(t,E){if(cxj){t=new t;for(var p=_.M(Object.getOwnPropertyNames(t)),U=p.next();!U.done;U=p.next())U=U.value,E[U]=t[U];for(p=E;p&&p!==Object.prototype;p=Object.getPrototypeOf(p)){U=_.M(Object.getOwnPropertyNames(p));for(var x=U.next();!x.done;x=U.next())x=x.value,t.hasOwnProperty(x)||Object.defineProperty(t,x,tkl(E,x))}}else t.apply(E)};
tkl=function(t,E){return{get:function(){var p=t[E];return p instanceof Function?p.bind(t):p},
set:function(p){t[E]=p}}};
UV0=function(t,E){for(var p=t._noAccessors,U=_.M(Object.getOwnPropertyNames(t)),x=U.next();!x.done;x=U.next())if(x=x.value,!p_E.has(x))if(p)E[x]=t[x];else{var A=Object.getOwnPropertyDescriptor(t,x);A&&(A.configurable=!0,Object.defineProperty(E,x,A))}};
xVD=function(t,E,p){return function(U){if(p){var x=p();U.model=x}if(t[E])t[E](U,U.detail)}};
x8=function(t){var E=[];if(typeof t==="string")t.length>0&&E.push.apply(E,_.KB(t.split(".")));else{t=_.M(t);for(var p=t.next();!p.done;p=t.next())p=p.value,typeof p==="string"?E.push.apply(E,_.KB(p.split("."))):E.push(p)}return E};
AbJ=function(t,E){if(E[E.length-1]!=="*"&&E[E.length-1]!=="splices"){for(var p=0;p<E.length;p++){if(!t)return;t=t[E[p]]}return t}};
Yq_=function(t,E){if(t.length>E.length)return!1;for(var p=0;p<t.length;p++)if(t[p]!==E[p])return!1;return!0};
mVJ=function(t,E,p){if(E.type==="compute"){var U=E.getter.bind(p);var x=E.args}else U=function(){return p[E.method.methodName].apply(p,_.KB(_.t9.apply(0,arguments)))},x=E.method.args;
Mkj(t,E.propertyKey,U,x,E.value)};
iUO=function(t,E){if(E.readOnly){var p=Object.getOwnPropertyDescriptor(t.model,E.propertyKey);Object.defineProperty(t.model,E.propertyKey,{get:p.get,set:function(){}});
t.model[bU$(E.propertyKey)]=p.set}};
qq8=function(t,E,p){if(p){var U=E.propertyKey,x=E.selector;E=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.KB(E.selectorArgs.map(function(A){return{type:"path",path:A}})));
Mkj(t,U,function(A){var m=_.t9.apply(1,arguments);return x.apply(null,[p.getState()].concat(_.KB(m)))},E)}};
fet=function(t,E,p){var U=_.ai(E.propertyKey)+"-changed";HUD(t,function(x){var A={value:x.value,queueProperty:!0};x.path.split(".").length>1&&(A.path=x.path);p.dispatchEvent(new CustomEvent(U,{detail:A}))},[{type:"wildcard",
path:E.propertyKey}])};
BSl=function(t,E,p){HUD(t,function(){p[E.method.methodName].apply(p,_.KB(_.t9.apply(0,arguments)))},E.method.args)};
bU$=function(t){return"_set"+(t.charAt(0).toUpperCase()+t.slice(1))};
w_j=function(){var t,E=q$(function(p){t=p},!1);
return[t,E]};
j8L=function(t){t=t.trim().replace(Rdt,",").replace(Vki,"$1");var E=t[0];E==="-"&&(E=t[1]);if(E>="0"&&E<="9")return{type:"literal",value:Number(t)};if(E==="'"||E==='"')return{type:"literal",value:t.slice(1,-1)};if(E=t.match(Q8Y)){E=E[1];var p=CbO[E];if(p)return{type:p,path:t.slice(0,-(E.length+1))}}return{type:"path",path:t}};
uyK=function(t){var E=t.match(rbK);if(E)return t={methodName:E[1],args:kAE},E[2].trim()&&(E=E[2].replace(dVJ,"&comma;").split(","),t.args=E.map(j8L)),t};
JbY=function(t,E,p,U){U=U===void 0?!1:U;E=_.ai(E);var x=SJ;x&&(p=x(p,E,"attribute",t));AX(t,p,E,U)};
AX=function(t,E,p,U){E=Iei(E,U===void 0?!1:U);E===void 0?t.removeAttribute(p):t.setAttribute(p,E)};
Iei=function(t,E){switch(typeof t){case "object":case "function":if(t instanceof Date)return t.toString();if(t){if((E===void 0?0:E)&&!_.r("polymer_reflect_objects_as_boolean_killswitch"))return t?"":void 0;E=window.trustedTypes?window.trustedTypes.isHTML(t)||window.trustedTypes.isScript(t)||window.trustedTypes.isScriptURL(t):void 0;if(E)return t;try{return JSON.stringify(t)}catch(p){_.qW(Error("Eg`"+t))}}break;case "boolean":return t?"":void 0;default:return t!==null&&t!==void 0?t.toString():void 0}};
g4_=function(t){if(t===void 0)throw Error("Fg");return t};
aeO=function(t,E,p,U){var x=ZUE(U);if(x.length){U=p;var A="property";OUO.test(p)?A="attribute":p[p.length-1]==="$"&&(p=p.slice(0,-1),A="attribute");var m=X_J(x);m&&A==="attribute"&&(p==="class"&&t.hasAttribute("class")&&(m+=" "+t.getAttribute(p)),AX(t,m,p));A==="attribute"&&U==="disable-upgrade$"&&t.setAttribute("disable-upgrade","");t.localName==="input"&&U==="value"&&t.setAttribute("value","");t.removeAttribute(U);A==="property"&&(p=_.Fx(p));E=g4_(E);hdl(E,A,p,x);return!0}return p.slice(0,3)===
"on-"?(t.removeAttribute(p),(A=E).events!=null||(A.events=[]),E.events.push({name:p.slice(3),value:U}),!0):p==="id"?(E.id=U,!0):!1};
ZUE=function(t){for(var E=[],p=0,U;(U=edJ.exec(t))!==null;){U.index>p&&E.push({type:"literal",value:t.slice(p,U.index)});var x=U[1][0];p=!!U[2];U=U[3].trim();if(x==="{")throw Error("Gg");(x=uyK(U))?E.push({type:"method",negate:p,signature:x}):E.push({type:"path",negate:p,path:U});p=edJ.lastIndex}p&&p<t.length&&(t=t.substring(p))&&E.push({type:"literal",value:t});return E};
X_J=function(t){for(var E="",p=0;p<t.length;p++){var U=t[p];U.type==="literal"&&(E+=U.value)}return E};
hdl=function(t,E,p,U){t.bindings!=null||(t.bindings=[]);t.bindings.push({kind:E,target:p,parts:U})};
n4O=function(t,E,p){var U=!1;if(t.localName==="template"){U=p;var x=E.stripWhitespace;x=Ff0(t,x===void 0?!1:x);var A=t.content.ownerDocument.createDocumentFragment();x.content=A;A.appendChild(t.content);U&&(U.templateInfo=x);U=!0}else t.localName==="slot"&&(E.hasInsertionPoint=!0);if(t.firstChild&&(x=p,t.localName!=="script"&&t.localName!=="style")){A=0;for(var m=t.firstChild;m;){var b=m;if(b.localName==="template"){var f=b.getAttribute("is");if((m=f==="dom-if")||f==="dom-repeat"){b.removeAttribute("is");
f=b.ownerDocument.createElement("ps-"+f);b.parentNode.replaceChild(f,b);f.appendChild(b);var B=Array.from(b.attributes);B=_.M(B);for(var R=B.next();!R.done;R=B.next())R=R.value,m?zd$.has(R.name)&&AX(f,R.value,R.name):leJ.has(R.name)?AX(f,R.value,R.name):GAJ.has(R.name),b.removeAttribute(R.name);m=f}else m=b}if(m.nodeType===Node.TEXT_NODE){b=void 0;f=t;for(B=m;((b=B.nextSibling)==null?void 0:b.nodeType)===Node.TEXT_NODE;)R=void 0,(R=B).textContent!=null||(R.textContent=""),B.nextSibling.textContent&&
(B.textContent+=B.nextSibling.textContent),f.removeChild(B.nextSibling);if(E.stripWhitespace&&m.textContent&&!m.textContent.trim()){t.removeChild(m);m=m.nextSibling;continue}}n4O(m,E,{parentIndex:A,parentInfo:x});m.parentNode&&A++;m=m.nextSibling}}var V;if((V=t.hasAttributes)==null?0:V.call(t)){V=p=g4_(p);x=!1;A=Array.from(t.attributes);A=_.M(A);for(b=A.next();!b.done;b=A.next())b=b.value,x=aeO(t,V,b.name,b.value)||x;U=x||U}t.nodeType===Node.TEXT_NODE&&(V=ZUE(t.textContent),V.length&&(t.textContent=
X_J(V)||" ",p=g4_(p),hdl(p,"text","textContent",V),U=!0));p&&U&&(p.infoIndex=E.nodeInfoList.push(p)-1)};
Ff0=function(t,E){E={nodeInfoList:[],stripWhitespace:(E===void 0?!1:E)||t.hasAttribute("strip-whitespace")};n4O(t.content,E);return E};
NSj=function(t){Object.assign(t,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
s8E=function(t,E,p){E.signalCache!=null||(E.signalCache={});var U=E.signalCache[p];if(!U){var x=p.split(".");U=!DVK(t,x[0]);if(x.length>1&&U){var A=t.getPathMutationSignal(x);U=function(){var m=fw(t.owner,function(){return t.getWithPath([x[0]])}),b,f=(b=A())==null?void 0:b.value;
return{rootWasDefined:m!==void 0,value:f}}}else U=function(){var m=t.getWithPath(x);
return{rootWasDefined:m!==void 0,value:m}};
E.signalCache[p]=U}return U()};
Pb$=function(t,E,p,U,x){E=E.parts.map(function(m,b){if(m.type==="literal"){p.partWasDefined!=null||(p.partWasDefined=[]);var f;(f=p.partWasDefined)[b]||(f[b]=m.value!==void 0);return m.value}var B;if(m.type==="method"){var R,V=(R=(B=p.partWasDefined)==null?void 0:B[b])!=null?R:!1;V||(V=m.signature.args.every(function(d){return d.type==="literal"}));
var Q=!1,C=!0;B=m.signature.args.map(function(d){if(d.type==="literal")return d.value;if(d.type!=="path")throw Error("Hg`"+d.type);var I=s8E(t,p,d.path);d=I.value;I=I.rootWasDefined;Q||(Q=I);C&&(C=I);return d});
V||(V=x===1?C:Q);p.partWasDefined!=null||(p.partWasDefined={});p.partWasDefined[b]=V;if(!V)return;B=(b=s8E(t,p,m.signature.methodName).value)&&typeof b==="function"?b.apply(U,B):void 0}else R=s8E(t,p,m.path),B=R.value,p.partWasDefined!=null||(p.partWasDefined={}),(V=p.partWasDefined)[b]||(V[b]=B!==void 0||R.rootWasDefined);m.negate&&(B=!B);return B});
if(E.length===1){var A;return((A=p.partWasDefined)==null?0:A[0])?E[0]:LfY}return E.join("")};
TSi=function(t){return typeof t==="object"&&!!t&&"notifyPath"in t&&"canNotifyPath"in t};
o4J=function(t){return typeof t==="object"&&!!t&&"notifyPath"in t};
WfJ=function(t){return"polymerController"in t};
$Vj=function(t,E){E=""+x8(E)[0];if(TSi(t))return t.canNotifyPath(E);if(WfJ(t)&&TSi(t.polymerController))return t.polymerController.canNotifyPath(E);if(o4J(t)){var p;return!((p=t.properties)==null||!p[E])}if(WfJ(t)&&o4J(t.polymerController)){var U;return!((U=t.polymerController.properties)==null||!U[E])}return!1};
Kfj=function(t,E,p){TSi(t)||o4J(t)?t.notifyPath(E,p):WfJ(t)&&(TSi(t.polymerController)||o4J(t.polymerController))&&t.polymerController.notifyPath(E,p)};
ybi=function(t,E,p){if(p!==LfY){t.kind==="attribute"||t.target!=="textContent"&&(t.target!=="value"||E.localName!=="input"&&E.localName!=="textarea")||(p=p===void 0?"":p);var U,x=(U=v4Y.Polymer)==null?void 0:U.sanitizeDOMValue;x&&(p=x(p,t.target,t.kind,E));if(t.kind==="attribute"){t=t.target;if(t==="class"||t==="name"||t==="slot")E=(0,_.aG)(E);AX(E,p,t)}else if(t=t.target,p!==E[t]||typeof p==="object")E.loggingStatus&&(E.loggingStatus.isDeclarativeExternal=!0,W3(E.localName,t,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
E[t]=p,E.loggingStatus&&(E.loggingStatus.isDeclarativeExternal=!1)}};
Sqj=function(t,E,p,U){var x=E.parts[0];if(E.parts.length!==1||x.type!=="path"||!$Vj(p,E.target))return!1;var A=_.M(x.path.split(".")),m=A.next().value,b=uQ(A);if(DVK(t,m))return!1;U.signalCache!=null||(U.signalCache={});A=U.signalCache[x.path];var f;A=(f=A)==null?void 0:f().value;if((A==null?void 0:A.path)!==void 0){U=x8(A.path);var B=x8(x.path);U=[E.target].concat(_.KB(U.slice(B.length-1)));Kfj(p,U,x.negate?!A.value:A.value);return!0}var R=Y8(t,m);var V=R.getChangeRecordSignal(b),Q=!1;A=function(){if(!Q){var d=
fw(t.owner,function(){return R.getWithPath([])});
Q||(Q=d!==void 0)}return{value:V(),rootWasDefined:Q}};
U.signalCache[x.path]=A;U.partWasDefined!=null||(U.partWasDefined={});A=A();(B=U.partWasDefined)[0]||(B[0]=A.rootWasDefined);var C=fw(t.owner,function(){return R.getWithPath(b)});
U.partWasDefined[0]&&fw(t.owner,function(){return void ybi(E,p,x.negate?!C:C)});
return!0};
cb8=function(t,E,p,U,x,A){if(!Sqj(t,E,p,U)){var m=Pb$(t,E,U,x,A);fw(t.owner,function(){return void ybi(E,p,m)})}};
tBE=function(t,E,p,U,x,A){p=_.M(p);for(var m=p.next(),b={};!m.done;b={infoIndex:void 0},m=p.next()){m=m.value;var f=m.bindings;b.infoIndex=m.infoIndex;m=m.parentInfo;if(f){f=_.M(f);for(var B=f.next(),R={};!B.done;R={b$jscomp$257:void 0,bindingCtx$jscomp$4:void 0},B=f.next()){R.b$jscomp$257=B.value;if(b.infoIndex===void 0)throw Error("Ig");R.bindingCtx$jscomp$4={};t.effect(function(V,Q){return function(){x&&!x()||cb8(t,V.b$jscomp$257,E[Q.infoIndex],V.bindingCtx$jscomp$4,U,A)}}(R,b))}}m&&tBE(t,E,[m],
U,x,A)}};
EqO=function(t,E){t=(E.parentInfo?EqO(t,E.parentInfo):t).firstChild;for(var p=0;t;t=t.nextSibling)if(E.parentIndex===p++)return t;throw Error("Jg");};
U3O=function(t,E,p,U){t=document.importNode(t.content,!0);t.__noInsertionPoint=!(U==null?0:U.hasInsertionPoint);for(var x=Array(E.length),A={},m=0;m<E.length;m++){var b=E[m],f=EqO(t,b);x[m]=f;b.id&&(A[b.id]=f);if(b.templateInfo){var B=f.parentElement;B&&(B.templateInfo=b.templateInfo,B.parentSignalProxy=p,B.eventListenerHost=U.eventListenerHost,B.stampingEnabled=U.enabledSignal)}B=void 0;if((B=b.events)==null?0:B.length)for(B=0;B<b.events.length;B++){var R=b.events[B];pr$(U.eventListenerHost,f,R.name,
R.value,U.getModel)}}tBE(p,x,E,U.thisCtx,U.enabledSignal,U.methodInvocationRequirement);return{root:t,nodes:x,nodesById:A}};
A7Y=function(t,E){t=t();var p;(p=x3t.ShadyCSS)==null||p.prepareTemplate(t,E);E=Ff0(t);return{template:t,nodeInfoList:E.nodeInfoList,hasInsertionPoint:E.hasInsertionPoint}};
m3i=function(){YZl=!1;for(var t=Md.length,E=0;E<t;E++){var p=Md[E];if(p)try{p()}catch(U){Promise.resolve().then(function(){throw U;})}}Md.splice(0,t);
MBi+=t};
Hvl=function(t){YZl||(YZl=!0,bv_.textContent=(ivl++).toString());Md.push(t);return qZO++};
_.iR=function(t,E,p){md++;t=E?new fcO(md,t,E,p):new B$Y(md,t);bR.set(md,t);return md};
wrJ=function(t){(t=bR.get(t))&&t.cancel()};
VB_=function(t,E){t=RC$.get(t);return t?(E=t.get(E))?E:null:null};
_.qd=function(t,E,p,U){var x=VB_(t,E);if(!x){x=new QN0;var A=RC$.get(t);A||(A=new Map,RC$.set(t,A));A.set(E,x)}t=p.bind(t);x.run(t,U,void 0)};
_.C2l=function(t,E){var p;(p=VB_(t,E))==null||p.cancel()};
jN_=function(t){var E;(E=VB_(t,"doRender"))==null||E.flush()};
Hu=function(t){var E;return(E=t.hostElement)!=null?E:t};
r7O=function(t){var E=t.indexOf(".");return E===-1?t:t.slice(0,E)};
k6i=function(t,E,p,U,x,A){A=(x=(U=A?r7O(E):E)?E:null)?t.get(x):t.__data[E];x&&A===void 0&&(A=p[E]);_.kT(t.hostElement,E3O(U)+"-changed",{value:A,queueProperty:!0,path:x!=null?x:void 0},{bubbles:!1,composed:!1})};
d3_=function(t,E){t.__isReflecting=!0;JbY(t.hostElement,E,t.__data[E]);t.__isReflecting=!1};
ujY=function(t){if(t._onIronRequestResizeNotifications){var E=t._onIronRequestResizeNotifications.bind(t);t._onIronRequestResizeNotifications=function(p){_.Qx(p)!==t.hostElement&&E(p)}}t._ariaActiveAttributeChanged&&(t._ariaActiveAttributeChanged=t._ariaActiveAttributeChanged.bind(t.hostElement));
t._activeChanged&&(t._activeChanged=function(p){t.toggles?AX(t.hostElement,p?"true":"false",t.ariaActiveAttribute):t.hostElement.removeAttribute(t.ariaActiveAttribute);t._changedButtonState()});
t._asyncClick&&(t._asyncClick=function(){_.iR(function(){t.hostElement.click()},1)});
!t.keyEventTarget||t.keyEventTarget instanceof EventTarget||(t.keyEventTarget=Hu(t.keyEventTarget));t._disabledChanged&&(t._disabledChanged=t._disabledChanged.bind(t.hostElement));t._observeItems&&(t._observeItems=function(p){var U=Hu(p);return _.sm(U).observeNodes(function(x){t._updateItems();t._updateSelected();_.kT(U,"iron-items-changed",x,{bubbles:!1,cancelable:!1})})});
t._updateItems&&t._updateItems===_.f4._updateItems&&(t._updateItems=function(){var p=_.sm(t.hostElement).queryDistributedElements(t.selectable||"*");p=Array.prototype.filter.call(p,t._bindFilterItem);t._setItems(p)});
t._computeKeyboardClass&&(t._computeKeyboardClass=function(p){_.XM(t.hostElement,"keyboard-focus",p)});
t.ensureRipple&&(t.ensureRipple=function(p){if(t.hasRipple&&!t.hasRipple()){if(!t._createRipple)return;t._ripple=t._createRipple();t._ripple.noink=t.noink;var U=t._rippleContainer||t.hostElement;U&&_.ZN(U).appendChild(t._ripple)}var x;if(p&&((x=t._ripple)==null?0:x.uiDownAction)){U=_.ZN(t._rippleContainer||t.hostElement);var A;x=(A=p.composedPath())==null?void 0:A[0];U.contains(x)&&t._ripple.uiDownAction(p)}});
t._updateMultiselectable&&(t._updateMultiselectable=function(p){p?t.hostElement.setAttribute("aria-multiselectable","true"):t.hostElement.removeAttribute("aria-multiselectable")})};
J7K=function(t,E,p){p=_.M(p);for(var U=p.next();!U.done;U=p.next())E4t(U.value.constructor,t);E4t(E.constructor,t)};
gq8=function(t,E){t=_.M(t);for(var p=t.next();!p.done;p=t.next())if(p=p.value,p.type==="signal"){var U=p.propertyKey;if(E.hasOwnProperty(U)&&E[U]!=null&&p.attributeType===Object){a:{U=E[U].constructor;for(var x=_.M(IcD),A=x.next();!A.done;A=x.next())if(A=A.value,U===A){U=A;break a}U=Object}p.attributeType=U}}};
ZvO=function(){};
Ov_=function(t){var E;return(E=t.hostElement)!=null?E:t};
Xr0=function(){throw Error("Ng");};
hCY=function(t,E){t.constructor.prototype.useSignals=!0;var p=new t.constructor;J7K(p,t,E.behaviors);gq8(E.reactiveSchemas,p);p={};for(var U=_.M(E.reactiveSchemas),x=U.next();!x.done;x=U.next())x=x.value,x.type==="signal"&&(p[x.propertyKey]=x.attributeType);var A={copyPropertiesToProto:Xr0,didRegister:!1,typesForSignals:p},m=["disable-upgrade"].concat(_.KB(E.observedAttributes)),b=function(f){Bu.call(this,t,E,A,f)};
_.u(b,Bu);_.aE.Object.defineProperties(b,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return m}}});
A.copyPropertiesToProto=function(){for(var f=0;f<E.behaviors.length;f++)UV0(E.behaviors[f],b.prototype);UV0(t,b.prototype)};
E.legacyOptimizations||A.copyPropertiesToProto();b.prototype.is=t.is;return b};
ac0=function(t,E){if(Object.getPrototypeOf(E.prototype).constructor!==_.z)throw Error("Og");E.prototype.is=t.is;return hCY(E.prototype,t)};
eC$=function(t){return t.type==="compute"||t.type==="computeWithMethod"};
FRK=function(t){for(var E=t.reactiveSchemas.filter(eC$),p=new Map,U=new Map,x=new Map,A=_.M(E),m=A.next();!m.done;m=A.next())m=m.value,p.set(m.propertyKey,m),U.set(m.propertyKey,[]),x.set(m.propertyKey,0);A=0;E=_.M(E);for(m=E.next();!m.done;m=E.next()){m=m.value;for(var b=_.M(m.type==="computeWithMethod"?m.method.args:m.args),f=b.next();!f.done;f=b.next())f=f.value,f.type!=="literal"&&(f=f.path.split(".")[0],U.has(f)&&(U.get(f).push(m.propertyKey),x.set(m.propertyKey,x.get(m.propertyKey)+1),A++))}m=
[].concat(_.KB(U.keys())).filter(function(B){return x.get(B)===0});
for(E=[];m.length;)for(b=m.shift(),E.push(p.get(b)),b=_.M(U.get(b)),f=b.next();!f.done;f=b.next())f=f.value,x.set(f,x.get(f)-1),A--,x.get(f)===0&&m.push(f);p=t.reactiveSchemas.filter(function(B){return!eC$(B)});
t.reactiveSchemas=[].concat(_.KB(p),_.KB(E))};
zCi=function(t,E){if(E.properties)for(var p=_.M(Object.entries(E.properties)),U=p.next();!U.done;U=p.next()){var x=_.M(U.value);U=x.next().value;x=x.next().value;t.properties[U]=typeof x==="function"?{type:x}:x}E.observers&&t.observers.push.apply(t.observers,_.KB(E.observers));E.disabledPolySiReactions&&t.disabledPolySiReactions.push.apply(t.disabledPolySiReactions,_.KB(E.disabledPolySiReactions))};
lcE=function(t,E){for(var p=E.length-1;p>=0;p--){var U=E[p];Array.isArray(U)?lcE(t,U):t.indexOf(U)<0&&t.unshift(U)}};
G6L=function(t,E){t.reactiveSchemas=t.reactiveSchemas.filter(function(p){return p.type==="observe"&&E.includes(p.method.methodName)||eC$(p)&&E.includes(p.propertyKey)?!1:!0})};
N$i=function(t,E){var p=E.prototype,U,x,A={is:t.is,reactiveSchemas:[],observedAttributes:[],behaviors:[KvY.InjectBehavior,tX.prototype],disableElementRegistration:t.disableElementRegistration,provide:(U=t.providers)!=null?U:[],reactivityMode:t.reactivityMode,signalProperties:(x=p.signalProperties)!=null?x:[]};"template"in E?A.templateGetter=function(){return E.template}:t.getTemplate&&(A.templateGetter=t.getTemplate);
p.behaviors&&lcE(A.behaviors,p.behaviors);nqj(A,E);return A};
nqj=function(t,E){for(var p=E.prototype,U={properties:{},observers:[],disabledPolySiReactions:[]},x=_.M(t.behaviors),A=x.next();!A.done;A=x.next())zCi(U,A.value);zCi(U,p);if(t.signalProperties)for(p=_.M(t.signalProperties),x=p.next();!x.done;x=p.next())delete U.properties[x.value];p=_.M(Object.entries(U.properties));for(x=p.next();!x.done;x=p.next()){A=_.M(x.value);x=A.next().value;A=A.next().value;var m=void 0;if((m=t.signalProperties)==null||!m.includes(x)){m=void 0;var b=t,f=A.type;if(!f)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{f=Reflect.getMetadata("design:type",E,x);for(var B=_.M(D3l),R=B.next();!R.done;R=B.next())if(R=R.value,f===R){f=R;break a}f=Object}else f=String;A.computed||A.selector||(b.reactiveSchemas.push({type:"signal",propertyKey:x,value:A.value,attributeType:f,readOnly:A.readOnly}),b.observedAttributes.push(_.ai(x)));A.reflectToAttribute&&b.reactiveSchemas.push({type:"reflect",propertyKey:x});if(A.computed){f=uyK(A.computed);if(!f)throw Error("Pg");b.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:x,method:f,value:A.value})}A.observer&&b.reactiveSchemas.push({type:"observe",method:{methodName:A.observer,args:[{type:"path",path:x}]}});A.notify&&b.reactiveSchemas.push({type:"notify",propertyKey:x});A.selector&&b.reactiveSchemas.push({type:"redux",propertyKey:x,selector:A.selector,selectorArgs:(m=A.selectorArgs)!=null?m:[]})}}sN8&&FRK(t);E=_.M(U.observers);for(x=E.next();!x.done;x=E.next())p=t,x=x.value,(A=uyK(x))?p.reactiveSchemas.push({type:"observe",method:A}):console.log('Warning: unable to parse observe declaration: "'+
x+'"');G6L(t,U.disabledPolySiReactions)};
LRL=function(t,E){for(var p=0;p<E.length;p++){var U=E[p],x=void 0;(x=U).showHideApi!=null||(x.showHideApi={});x=void 0;!!t!==!((x=U.showHideApi)==null||!x.hideTemplateChildren)&&(U.nodeType===Node.TEXT_NODE?t?(U.showHideApi.polymerTextContent=U.textContent,U.textContent=""):(x=void 0,U.textContent=(x=U.showHideApi.polymerTextContent)!=null?x:null):U instanceof Element&&U.localName==="slot"?t?(U.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.aG)((0,_.aG)(U).parentNode).replaceChild(U.showHideApi.polymerReplaced,
U)):(x=U.showHideApi.polymerReplaced)&&(0,_.aG)((0,_.aG)(x).parentNode).replaceChild(U,x):U instanceof HTMLElement&&U.style&&(t?(U.showHideApi.polymerDisplay=U.style.display,U.style.display="none"):U.style.display=U.showHideApi.polymerDisplay));U.showHideApi.hideTemplateChildren=t;U.showHideChildren&&U.showHideChildren(t)}};
T$t=function(){if(!P2O){var t=document.createElement("style");t.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(t);P2O=!0}};
wn=function(){return _.r("disable_hidden_dom_if_using_stamper")};
oql=function(t,E){var p=_.Ro().getState();return E?t.apply(null,[p].concat(_.KB(E))):t(p)};
KR0=function(){if(WRY)return WRY;var t=_.M(_.Py(0,void 0,"MB1Hb")),E=t.next().value;t.next();var p=t.next().value;_.Ro().subscribe(function(){$3Y(p)});
return WRY=E};
$3Y=function(t){vqO||(vqO=!0,Promise.resolve().then(function(){t(function(E){return E+1});
vqO=!1}))};
_.Ro=function(){return y7D.getAppStore()};
SZi=function(t,E){return y7D.getSelectFn()(t,E)};
_.Vl=function(t){y7D.getDispatchFn()(t)};
c7E=function(t,E){var p={},U;for(U in t)p[U]=E(t[U],U);return p};
_.Ql=function(t,E){return function(){var p;return(p=_.Hv(t))!=null?p:E}};
_.C4=function(t,E){var p=Object.assign({},t),U;for(U in E)E.hasOwnProperty(U)&&(p[U]=_.Ql(t[U],E[U]));return p};
t_O=function(t,E,p,U){t instanceof Element&&(p.debugName||(p.debugName="<"+t.tagName.toLowerCase()+(t.tagName.includes("-")?">":"."+t.className+">")),_.r("ytwiz_enable_debug_component_props")&&(t.debugProps||(t.debugProps=c7E(E,function(x){return function(){return x()}})),E.data===void 0||"data"in t&&!t.isWebComponentWrapper||Object.defineProperty(t.debugProps,"data",{get:function(){return _.Hv(E.data)},
set:function(x){var A;U==null||(A=U.data)==null||A.call(U,x)},
enumerable:!0,configurable:!0})))};
_.j5=function(t,E){if(t.length===0&&(E==null||!E.initial))return w6O(t,{debugName:E==null?void 0:E.debugName},"l");var p=_.M(w6O({source:function(){return t()},
computation:function(A,m){return(m==null?0:m.value)?t(m.value):(E==null?0:E.initial)?t(E.initial):A}},{debugName:E==null?void 0:E.debugName},"m")),U=p.next().value,x=p.next().value;
p=p.next().value;return[U,x,p]};
_.l=function(t,E){var p=function(U){return VR("ytComponent",{},function(x){var A=ED_={};var m;if(((m=p)==null?0:m.idomCompat)&&U.renderedFromIdom){var b;m=typeof p.idomCompat==="object"?(b=p)==null?void 0:b.idomCompat.callbacks:{};m=_.M(p2_(U,m));b=m.next().value;var f=m.next().value;m=m.next().value;var B=Up8(t,b);A.privateValue=B;ED_=void 0;t_O(B,b,p,f);x.addAttributes({debugName:p.debugName});x=i_t(B);x=Array.isArray(x)?x[0]:x;x[nw]||(x[nw]={});x[nw].updateSignalsFromIdomProps=m;xpi(b,B);return B}m=
c7E(U,AQD);b=Up8(t,m);t_O(b,m,p);A.privateValue=b;ED_=void 0;x.addAttributes({debugName:p.debugName});xpi(m,b);return b})};
p.debugName=E===void 0?"":E;return p};
Up8=function(t,E){t=t(E);return Lw(t)};
Y1$=function(t,E){t[E]||(t=new _.cC("IDOM interop setter undefined. Key:",E),_.bV(t))};
AQD=function(t,E){return E==="children"||E==="ref"||typeof t==="function"||t===void 0?t:function(){return _.Hv(t)}};
p2_=function(t,E){var p={},U={},x={},A={},m;for(m in t){A={key$jscomp$952:A.key$jscomp$952};A.key$jscomp$952=m;var b=t[A.key$jscomp$952];if(A.key$jscomp$952==="children"||A.key$jscomp$952==="ref")p[A.key$jscomp$952]=b;else if(typeof b==="function")if(A.key$jscomp$952 in E||b.length>0)x[A.key$jscomp$952]=b,p[A.key$jscomp$952]=function(B){return function(){return x[B.key$jscomp$952].apply(x,_.KB(_.t9.apply(0,arguments)))}}(A);
else if(A.key$jscomp$952==="data"){var f=_.M(_.j5(b,{debugName:A.key$jscomp$952+":cwis"}));b=f.next().value;f=f.next().value;p[A.key$jscomp$952]=b;U[A.key$jscomp$952]=f}else p[A.key$jscomp$952]=b;else t[A.key$jscomp$952]===void 0&&A.key$jscomp$952 in E||(f=_.M(_.Py(t[A.key$jscomp$952],{debugName:A.key$jscomp$952+":cwis"},"HQMSk")),b=f.next().value,f=f.next().value,p[A.key$jscomp$952]=b,U[A.key$jscomp$952]=f)}return[p,U,function(B){var R={},V;for(V in B)R={key$jscomp$951:R.key$jscomp$951,val$jscomp$122:void 0},
R.key$jscomp$951=V,R.val$jscomp$122=B[R.key$jscomp$951],R.key$jscomp$951!=="children"&&R.key$jscomp$951!=="ref"&&(typeof R.val$jscomp$122==="function"?R.key$jscomp$951 in E?x[R.key$jscomp$951]=R.val$jscomp$122:R.val$jscomp$122.length>0&&(x[R.key$jscomp$951]=R.val$jscomp$122,_.qW(new _.cC("Callback detected that was not set in the idomCompat callbacks map. Key:",R.key$jscomp$951))):R.key$jscomp$951 in E&&R.val$jscomp$122===void 0||(Y1$(U,R.key$jscomp$951),vy(function(Q){return function(){U[Q.key$jscomp$951](Q.val$jscomp$122)}}(R))))}]};
bVK=function(t,E,p){var U=vCJ(t.prototype,M_i,t.prototype.behaviors);U.prototype.is=E;U.prototype.localName=E;p&&mp_(U,p);return function(x){x&&(U.prototype.hostElement=x);var A=new U;A.root=A;A.hostElement=x;return A}};
mp_=function(t,E){var p;Object.defineProperty(t.prototype,"_template",{get:function(){p===void 0&&(p=E());return p},
set:function(U){p=U},
configurable:!0,enumerable:!0})};
B5J=function(t,E,p,U){function x(){if(!C){for(var d=new Set,I=_.M(R),O=I.next();!O.done;O=I.next()){O=O.value;for(var a=_.M(Object.getOwnPropertyNames(O)),F=a.next();!F.done;F=a.next()){F=F.value;var L=void 0,D=(L=Object.getOwnPropertyDescriptor(O,F))==null?void 0:L.value;D&&D instanceof Function&&!uR(F)&&(!b[F]||_.r("polymer_forward_method_killswitch"))&&d.add(F)}}I=_.M(Object.entries(Object.getOwnPropertyDescriptors(t.prototype)));for(O=I.next();!O.done;O=I.next())a=_.M(O.value),O=a.next().value,
a=a.next().value,a.value instanceof Function&&!uR(O)&&d.add(O);C=d}return C}
iVL(t,E,U==null?void 0:U.providers);yhD(t.prototype,t,!0);var A=bVK(t,E,p),m,b=(m=t.prototype.properties)!=null?m:{},f,B,R=(B=(f=t.prototype.behaviors)==null?void 0:f.flat(Infinity))!=null?B:[];p=_.M(R);for(m=p.next();!m.done;m=p.next())b=Object.assign({},m.value.properties,b);var V=[].concat(_.KB(q1$),_.KB(Object.keys(b).map(function(d){return _.ai(d)}))),Q=!1,C;
return{ctor:function(d,I){var O=A(d),a,F;d=[].concat(_.KB((a=U==null?void 0:U.allowedProps)!=null?a:[]),_.KB((F=U==null?void 0:U.allowedPropsFromBehaviors)!=null?F:[]));O.allowedProps=d.length>0?d:void 0;a={};F=_.M(V);for(d=F.next();!d.done;d=F.next())d=d.value,a[d]=_.Fx(d);O.__dataAttributes=a;var L=O.ready.bind(O);O.ready=function(){I.beforeReady();L();if(TI(E)&&!Q){var D=O.__templateInfo;if(D==null?0:D.hostProps){D=_.M(Object.keys(D.hostProps));for(var W=D.next();!W.done;W=D.next())W3(E,W.value,
"PROPERTY_ACCESS_GET_INTERNAL")}Q=!0}};
O._overrideLegacyUndefined=!0;return O},
props:b,observedAttributes:V,getInitialMethods:x,getPropsToForwardBeforeRegister:function(){for(var d=[],I=new Set,O=_.M(Object.keys(b)),a=O.next();!a.done;a=O.next())a=a.value,d.push([a,b[a].readOnly]),I.add(a);O=x();a=_.M(Object.keys(Object.getOwnPropertyDescriptors(t.prototype)));for(var F=a.next();!F.done;F=a.next())F=F.value,!HVY(F)||O.has(F)||I.has(F)||(d.push([F,!1]),I.add(F));I=_.M(fYO);for(O=I.next();!O.done;O=I.next())d.push([O.value,!0]);return d},
getPropsToForwardBeforeReady:function(d){for(var I=[],O=_.M(Object.entries(d)),a=O.next();!a.done;a=O.next()){var F=_.M(a.value);a=F.next().value;F=F.next().value;if(HVY(a)&&!(F instanceof Function)&&(I.push([a,!1]),TI(E))){var L=F=void 0;(L=(F=d)._createPropertyAccessor)==null||L.call(F,a)}}return I},
shouldForwardProp:HVY,shouldLog:TI}};
iVL=function(t,E,p){vNO(t,p);t.prototype.behaviors.unshift(w2L);if(lC$()){if(TI(E)){var U;(U=t.prototype).behaviors!=null||(U.behaviors=[]);t.prototype.behaviors.unshift(DSK())}sAl(t)}_.g(tX.prototype)(t.prototype,"__templateHelpers")};
uR=function(t){return RwK.has(t)||t.startsWith("__compute__")};
HVY=function(t){return!uR(t)&&!t.startsWith("_")&&!t.endsWith("_")};
rQ$=function(t,E){function p(){var Q=f();Q=_.M(Q);for(var C=Q.next();!C.done;C=Q.next()){var d=_.M(C.value);C=d.next().value;d=d.next().value;V_L(V.prototype,C,d)}U=!0}
var U=!1,x=t.ctor,A=t.getInitialMethods,m=t.observedAttributes,b=t.getPropsToForwardBeforeReady,f=t.getPropsToForwardBeforeRegister,B=t.shouldForwardProp,R=t.shouldLog,V=function(){var Q=HTMLElement.call(this)||this;Q.didForwardDynamicProps=!1;Q.loggingStatus={};U||p();Q.inst=x(Q,{beforeReady:function(){Q.didForwardDynamicProps||(Q.forwardDynamicProps(),Q.didForwardDynamicProps=!0)}});
Q.controllerProxy=nNL(Q.inst,E);Q.forwardMethods();return Q};
_.u(V,HTMLElement);V.prototype.forwardMethods=function(){for(var Q=this,C=_.M(this.inst.getExtraMethodsToForward()),d=C.next(),I={};!d.done;I={method$jscomp$65:void 0},d=C.next()){var O=_.M(d.value);d=O.next().value;O=O.next().value;I.method$jscomp$65=O;this[d]=function(a){return function(){return a.method$jscomp$65.call.apply(a.method$jscomp$65,[Q.inst].concat(_.KB(_.t9.apply(0,arguments))))}}(I)}C=_.M(A());
for(I=C.next();!I.done;I=C.next())I=I.value,B(I)&&Q_l(this,I),R(E)&&!uR(I)&&CWD(this.inst,I)};
V.prototype.forwardDynamicProps=function(){var Q=b(this.inst);Q=_.M(Q);for(var C=Q.next();!C.done;C=Q.next()){var d=_.M(C.value);C=d.next().value;d=d.next().value;V_L(this,C,d);R(E)&&!uR(C)&&j_$(this.inst,C)}};
V.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
V.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
V.prototype.attributeChangedCallback=function(Q,C,d){this.inst.attributeChangedCallbackWrapper(Q,C,d)};
_.aE.Object.defineProperties(V.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return E}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.aE.Object.defineProperties(V,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return m}}});
customElements.define(E,V)};
V_L=function(t,E,p){t.hasOwnProperty(E)||Object.defineProperty(t,E,{get:function(){var U,x=((U=t.is)!=null?U:t.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||W3(x,E,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,U=this.polymerController[E],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,U},
set:function(U){if(!p){var x,A=((x=t.is)!=null?x:t.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||W3(A,E,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=E,this.loggingStatus.bypassProxyController=!0,this.polymerController[E]!==U&&(x={},this.polymerController.setProperties((x[E]=U,x)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
Q_l=function(t,E,p){var U=t.polymerController;t[E]=function(){var x=_.t9.apply(0,arguments);t.loggingStatus.currentExternalCall=E;t.loggingStatus.bypassProxyController=!0;var A,m=((A=t.is)!=null?A:t.tagName).toLowerCase();W3(m,E,"PROPERTY_ACCESS_CALL_EXTERNAL");var b;A=(b=p!=null?p:U[E])==null?void 0:b.call.apply(b,[U].concat(_.KB(x)));t.loggingStatus.currentExternalCall=void 0;t.loggingStatus.bypassProxyController=!1;return A}};
CWD=function(t,E){var p=t.hostElement,U=t[E];t[E]=function(){var x=_.t9.apply(0,arguments);if(p.loggingStatus.currentExternalCall!==E){var A,m=((A=p.is)!=null?A:p.tagName).toLowerCase();W3(m,E,"PROPERTY_ACCESS_CALL_INTERNAL")}return U==null?void 0:U.apply(t,x)}};
j_$=function(t,E){var p=Object.getOwnPropertyDescriptor(t,E);p&&!p.get&&Object.defineProperty(t,E,{get:function(){No0(t.hostElement,E);return p.value},
set:function(U){$R(t.hostElement,E);p.value=U}})};
kS_=function(t){return _.r("poly_si_dom_repeat_detached_fix_killswitch")||t.tagName!=="PS-DOM-REPEAT"?t.tagName==="DOM-REPEAT":!0};
uPE=function(t,E){var p=dp_(t);t instanceof Element&&p.unshift(t);t=_.M(p.filter(kS_));for(var U=t.next();!U.done;U=t.next()){var x=void 0;U=_.M((x=U.value.__instances)!=null?x:[]);for(x=U.next();!x.done;x=U.next())if(x=x.value,x.root){x=Array.from(x.root.children);x=_.M(x);for(var A=x.next();!A.done;A=x.next())p.push.apply(p,_.KB(uPE(A.value,E)))}}return p.filter(function(m){return m.usePatchedLifecycles&&m.lifecycleIsConnected===E})};
dp_=function(t){var E=null;t instanceof Element?E=Element.prototype.querySelectorAll:t instanceof DocumentFragment&&(E=DocumentFragment.prototype.querySelectorAll);return E?Array.from(E.call(t,"*")):[]};
JX=function(t){_.sJ(function(){for(var E=_.M(uPE(t,!1)),p=E.next();!p.done;p=E.next()){p=p.value;p.lifecycleIsConnected=!0;try{var U=void 0,x=void 0,A=void 0,m=void 0;(U=(m=p.polymerController)!=null?m:p)==null||(A=(x=U).connectedCallback)==null||A.call(x)}catch(b){_.bV(b)}}})};
Io=function(t){_.sJ(function(){for(var E=_.M(uPE(t,!0)),p=E.next();!p.done;p=E.next()){p=p.value;p.lifecycleIsConnected=!1;try{var U=void 0,x=void 0,A=void 0,m=void 0;(U=(m=p.polymerController)!=null?m:p)==null||(A=(x=U).disconnectedCallback)==null||A.call(x)}catch(b){_.bV(b)}}})};
hwi=function(){if(!JQl){JQl=!0;var t=[Node];gn&&t.push(gn.Wrapper);var E=Node.prototype.insertBefore,p=Node.prototype.removeChild;t=_.M(t);for(var U=t.next(),x={};!U.done;x={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},U=t.next())U=U.value,x.nativeInsertBefore=U.prototype.insertBefore,U.prototype.insertBefore=function(m){return function(b,f){if(b instanceof DocumentFragment){var B=Array.from(b.children);b=m.nativeInsertBefore.call(this,b,f);
if(this.isConnected&&m.nativeInsertBefore===E)for(f=_.M(B),B=f.next();!B.done;B=f.next())JX(B.value);return b}B=b instanceof Element&&b.isConnected;f=m.nativeInsertBefore.call(this,b,f);B&&Io(b);this.isConnected&&JX(b);return f}}(x),x.nativeAppendChild=U.prototype.appendChild,U.prototype.appendChild=function(m){return function(b){if(b instanceof DocumentFragment){var f=Array.from(b.children);
b=m.nativeAppendChild.call(this,b);if(this.isConnected){f=_.M(f);for(var B=f.next();!B.done;B=f.next())JX(B.value)}return b}f=b instanceof Element&&b.isConnected;B=m.nativeAppendChild.call(this,b);f&&Io(b);this.isConnected&&JX(b);return B}}(x),x.nativeRemoveChild=U.prototype.removeChild,U.prototype.removeChild=function(m){return function(b){var f=b instanceof Element&&b.isConnected,B=m.nativeRemoveChild.call(this,b);
f&&p===m.nativeRemoveChild&&Io(b);return B}}(x),x.nativeReplaceChild=U.prototype.replaceChild,U.prototype.replaceChild=function(m){return function(b,f){if(b instanceof DocumentFragment){var B=Array.from(b.children);
b=m.nativeReplaceChild.call(this,b,f);if(this.isConnected)for(Io(f),f=_.M(B),B=f.next();!B.done;B=f.next())JX(B.value);return b}B=b instanceof Element&&b.isConnected;var R=this.isConnected,V=m.nativeReplaceChild.call(this,b,f);R&&Io(f);B&&Io(b);R&&JX(b);return V}}(x);
t=[Element];gn&&t.push(gn.Wrapper);t=_.M(t);U=t.next();for(x={};!U.done;x={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},U=t.next())U=U.value,U.prototype.before=IYD(U.prototype.before),U.prototype.after=IYD(U.prototype.after),x.nativeReplaceWith=U.prototype.replaceWith,U.prototype.replaceWith=function(m){return function(){var b=_.t9.apply(0,arguments),f=_.M(gDY(b)),B=f.next().value,
R=f.next().value;f=this.isConnected;m.nativeReplaceWith.apply(this,b);b=_.M(R);for(R=b.next();!R.done;R=b.next())Io(R.value);if(f)for(Io(this),B=_.M(B),f=B.next();!f.done;f=B.next())f=f.value,f instanceof Element&&JX(f)}}(x),x.nativeRemove=U.prototype.remove,U.prototype.remove=function(m){return function(){var b=this.isConnected;
m.nativeRemove.call(this);b&&Io(this)}}(x),x.nativeInsertAdjacentElement=U.prototype.insertAdjacentElement,U.prototype.insertAdjacentElement=function(m){return function(b,f){var B=f.isConnected;
b=m.nativeInsertAdjacentElement.call(this,b,f);B&&Io(f);b.isConnected&&JX(b);return b}}(x),x.nativeSetAttribute=U.prototype.setAttribute,U.prototype.setAttribute=function(m){return function(b,f){var B=ZVD(this);
if(!B.usePatchedLifecycles)return m.nativeSetAttribute.call(this,b,f);var R=this.getAttribute(b);m.nativeSetAttribute.call(this,b,f);f=this.getAttribute(b);OVY(B,b,R,f)}}(x),x.nativeRemoveAttribute=U.prototype.removeAttribute,U.prototype.removeAttribute=function(m){return function(b){var f=ZVD(this);
if(!f.usePatchedLifecycles)return m.nativeRemoveAttribute.call(this,b);var B=this.getAttribute(b);m.nativeRemoveAttribute.call(this,b);B!==null&&OVY(f,b,B,null)}}(x),x.nativeToggleAttribute=U.prototype.toggleAttribute,U.prototype.toggleAttribute=function(m){return function(b,f){var B=ZVD(this);
if(!this.usePatchedLifecycles)return m.nativeToggleAttribute.call(this,b,f);var R=this.getAttribute(b),V=R!==null;f=m.nativeToggleAttribute.call(this,b,f);f!==V&&OVY(B,b,R,f?"":null);return f}}(x);
t=[Document,DocumentFragment,Element,ShadowRoot];gn&&t.push(gn.Wrapper);t=_.M(t);for(x=t.next();!x.done;x=t.next())x=x.value,x.prototype.prepend=IYD(x.prototype.prepend),x.prototype.append=IYD(x.prototype.append);(gn==null?void 0:gn.noPatch)===!0&&X2E();document.readyState==="complete"?JX(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&JX(document.body)});
var A=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");A&&A.get&&A.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:A.enumerable,configurable:!0,get:A.get,set:function(m){m||Io(this);A.set.call(this,m);return m}})}};
IYD=function(t){return function(){var E=_.t9.apply(0,arguments),p=_.M(gDY(E)),U=p.next().value;p=p.next().value;t.apply(this,E);E=_.M(p);for(p=E.next();!p.done;p=E.next())Io(p.value);if(this.isConnected)for(U=_.M(U),E=U.next();!E.done;E=U.next())E=E.value,E instanceof Element&&JX(E)}};
X2E=function(){for(var t=_.M(aYY),E=t.next();!E.done;E=t.next()){E=E.value.prototype;for(var p=_.M(ewO),U=p.next();!U.done;U=p.next()){U=U.value;var x=Object.getOwnPropertyDescriptor(E,U);x&&Object.defineProperty(E,"__shady_native_"+U,x)}}};
OVY=function(t,E,p,U){var x,A;if((x=t.polymerController)==null?0:(A=x.observedAttributes)==null?0:A.includes(E))if(t=t.polymerController,t.attributeChangedCallbackWrapper)t.attributeChangedCallbackWrapper.call(t,E,p,U);else{var m;(m=t.attributeChangedCallback)==null||m.call(t,E,p,U)}};
gDY=function(t){var E=[],p=[];t=_.M(t);for(var U=t.next();!U.done;U=t.next())U=U.value,U instanceof Element&&U.isConnected&&p.push(U),U instanceof DocumentFragment?E.push.apply(E,_.KB(Array.from(U.children))):E.push(U);return[E,p]};
ZVD=function(t){return!(t instanceof Element)&&t.node instanceof Element?t.node:t};
FzE=function(t,E){var p=E?["children"].concat(_.KB(E)):["children"];E=[];p=_.M(p);for(var U=p.next();!U.done;U=p.next()){var x=U.value;if(t.hasOwnProperty(x)){U=t[x];U=typeof U==="function"?U():U;U=Array.isArray(U)?U:[U];U=Lw(U).flat();if(x!=="children"){x=E3O(x);for(var A=_.M(U),m=A.next();!m.done;m=A.next())m=m.value,m instanceof Element&&m.setAttribute("slot",x)}E.push(U)}}E.length===0?t=[]:(t=Lw(_.H("div",null,E)),t=Array.from(t.childNodes));return t};
lYO=function(t,E,p){var U={};_.Yw(function(){var x={},A;for(A in E)if(E.hasOwnProperty(A)){var m=void 0,b=void 0;if(!(((m=p.slotProps)==null?0:m.includes(A))||A==="children"||((b=p.callbackProps)==null?0:b.includes(A))||A==="ref")&&(m=_.Hv(E[A]),U[A]!==m)){U[A]=m;b=void 0;var f=(b=t.hostElement)!=null?b:t;!p.skipHostForwardedProps&&zwj.has(A)&&(f[A]=m);x[A]=m}}vy(function(){if(t.setProperties)t.setProperties(x);else for(var B=_.M(Object.entries(x)),R=B.next();!R.done;R=B.next()){var V=_.M(R.value);
R=V.next().value;V=V.next().value;t[R]=V}})},"n")};
nD_=function(t,E,p,U){var x=FzE(p,U.slotProps),A=(0,_.aG)(t);x=_.M(x);for(var m=x.next();!m.done;m=x.next())A.appendChild(m.value);lYO(E,p,U);U=_.M(U.callbackProps||[]);x=U.next();for(A={};!x.done;A={kebabEventName:void 0,eventListener:void 0},x=U.next())m=x=x.value,String(x).substring(0,2)==="on"&&p[m]?(A.kebabEventName=E3O(String(x).substring(2)),A.eventListener=p[m],t.addEventListener(A.kebabEventName,A.eventListener),_.iK(function(R){return function(){t.removeEventListener(R.kebabEventName,R.eventListener)}}(A))):
E[m]=p[m];
if(p.ref){p=_.M(GSi(p.ref));var b=p.next().value,f=p.next().value,B=E.attached.bind(E);E.attached=function(){b(t);B()};
_.iK(function(){f()})}};
GSi=function(t){if(typeof t==="function"){var E;return[function(p){E=t(p)},
function(){var p;(p=E)==null||p()}]}if(!t.onRender||!t.onUnmount)throw Error("Tg");
return[t.onRender,t.onUnmount]};
N50=function(t,E){E=E===void 0?{}:E;var p=function(U){var x=document.createElement(t),A;var m=(A=x.polymerController)!=null?A:x;nD_(x,m,U,E);return x};
p.debugName=t;return p};
PWl=function(t,E,p,U,x){U=U===void 0?{}:U;var A=Dpt,m=!1;A?(m=!0,Dpt=void 0):(s_L=E,A=document.createElement(E),s_L=void 0);var b=A;b.usePatchedLifecycles=!0;b.lifecycleIsConnected=!1;A.loggingStatus={};var f=LzK(t,E,A,U,x);_.iK(function(){b.lifecycleIsConnected&&(b.lifecycleIsConnected=!1,f.disconnectedCallback())});
m||(A.__noInsertionPoint=!0,nD_(A,f,p,U));return A};
LzK=function(t,E,p,U,x){x=x===void 0?B5J:x;T5_[E]!=null||(T5_[E]=x(t,E,U==null?void 0:U.getTemplate,U));var A=T5_[E],m=A.ctor;x=A.getInitialMethods;var b=A.getPropsToForwardBeforeReady;t=A.getPropsToForwardBeforeRegister;U=A.shouldForwardProp;var f=A.observedAttributes,B=A.shouldLog,R=m(p,{beforeReady:function(){var V=R;V._takeAttributes?V._takeAttributes():V.setPropertiesFromInitialAttributeValues&&V.setPropertiesFromInitialAttributeValues();V=_.M(b(p.polymerController));for(var Q=V.next();!Q.done;Q=
V.next()){var C=_.M(Q.value);Q=C.next().value;C=C.next().value;V_L(p,Q,C);B(E)&&!uR(Q)&&j_$(p.polymerController,Q)}p.polymerController=nNL(R,E)}});
p.polymerController=R;p.polymerController.observedAttributes=f;A=_.M(R.getExtraMethodsToForward());for(m=A.next();!m.done;m=A.next())f=_.M(m.value),m=f.next().value,f=f.next().value,Q_l(p,m,f);x=_.M(x());for(A=x.next();!A.done;A=x.next())A=A.value,U(A)&&Q_l(p,A),B(E)&&!uR(A)&&CWD(R,A);t=_.M(t());for(U=t.next();!U.done;U=t.next())x=_.M(U.value),U=x.next().value,x=x.next().value,V_L(p,U,x);return R};
oDt=function(t){var E=Zw;Zw=t;return E};
Kz0=function(t){if(Wzt.has(t)&&Zw&&$pY(Zw)===t){var E;(E=Zw)._numRenders!=null||(E._numRenders=0);Zw._numRenders++;if(Zw._numRenders>1)throw Error("Ug");return Zw}};
yQl=function(t){var E=$pY(t);Zw!==t&&E.includes("-")&&vDl.set(t,!0)};
$pY=function(t){var E;return(E=t==null?void 0:t.tagName.toLowerCase())!=null?E:""};
S1j=function(t,E){if(t.componentType===SK)throw Error("Vg");Wzt.add(E);var p=function(){var U=HTMLElement.call(this)||this;U.is=E;if(s_L===E)return U.isInert=!0,U;U.createElement();return U};
_.u(p,HTMLElement);p.prototype.createElement=function(){if(!this.isInert){Dpt=this;var U=_.M(uJE(function(){return _.H(t,null)})).next().value;
Dpt=void 0;NSj(this);return U}};
customElements.define(E,p)};
tti=function(t,E,p,U,x){t.prototype.is=E;(U==null?0:U.useSink)?cQO(t,E,p,U,x):(p=B5J(t,E,p,U),rQ$(p,E));return t};
cQO=function(t,E,p,U,x){hwi();var A=_.l(function(m){return PWl(t,E,m,Object.assign({},U,{getTemplate:p}),x)},"o");
A.debugName=E;S1j(A,E);return A};
p4D=function(t){return!EdD.has(t)};
AOj=function(t,E,p,U){function x(){if(!V){for(var Q=new Set(UBt),C=_.M(A.behaviors),d=C.next();!d.done;d=C.next()){d=d.value;for(var I=_.M(Object.getOwnPropertyNames(d)),O=I.next();!O.done;O=I.next()){O=O.value;var a=void 0,F=(a=Object.getOwnPropertyDescriptor(d,O))==null?void 0:a.value;F&&F instanceof Function&&(!B[O]||_.r("polymer_forward_method_killswitch"))&&Q.add(O)}}C=_.M(Object.entries(Object.getOwnPropertyDescriptors(t.prototype)));for(d=C.next();!d.done;d=C.next())I=_.M(d.value),d=I.next().value,
I=I.next().value,I.value instanceof Function&&Q.add(d);V=Q}return V}
var A=N$i({is:E,disableElementRegistration:!1,getTemplate:p,providers:U==null?void 0:U.providers,reactivityMode:U==null?void 0:U.reactivityMode},t);if((U==null?0:U.allowedProps)||(U==null?0:U.allowedPropsFromBehaviors)){var m,b;A.allowedProps=[].concat(_.KB((m=U.allowedProps)!=null?m:[]),_.KB((b=U.allowedPropsFromBehaviors)!=null?b:[]))}var f=ac0(A,t);E=f.observedAttributes;var B={};p=_.M(A.reactiveSchemas);for(U=p.next();!U.done;U=p.next())if(U=U.value,U.type==="signal")B[U.propertyKey]={readOnly:U.readOnly},
U.readOnly&&(B[bU$(U.propertyKey)]={readOnly:!0});else if(U.type==="compute"||U.type==="computeWithMethod"||U.type==="redux")B[U.propertyKey]={readOnly:!0};var R=A.reactiveSchemas.length,V;return{ctor:function(Q,C){Q=new f(Q);Q.beforeReady=C.beforeReady;return Q},
props:B,observedAttributes:E,getInitialMethods:x,getPropsToForwardBeforeRegister:function(){for(var Q=[],C=new Set,d=_.M(xBO),I=d.next();!I.done;I=d.next())I=I.value,Q.push([I,I!=="observers"&&I!=="properties"]),C.add(I);d=_.M(Object.keys(B));for(I=d.next();!I.done;I=d.next())I=I.value,Q.push([I,B[I].readOnly]),C.add(I);d=x();I=_.M(Object.keys(Object.getOwnPropertyDescriptors(t.prototype)));for(var O=I.next();!O.done;O=I.next())O=O.value,!p4D(O)||d.has(O)||C.has(O)||(Q.push([O,!1]),C.add(O));Q.push(["allowedProps",
!0]);return Q},
getPropsToForwardBeforeReady:function(Q){var C=[];Q=_.M(Object.keys(Q));for(var d=Q.next();!d.done;d=Q.next()){d=d.value;var I=x();p4D(d)&&!I.has(d)&&C.push([d,!1])}Q=_.M(A.reactiveSchemas.slice(R));for(d=Q.next();!d.done;d=Q.next())d=d.value,d.type!=="compute"&&d.type!=="computeWithMethod"&&d.type!=="redux"&&d.type!=="signal"||C.push([d.propertyKey,d.type==="signal"?d.readOnly:!0]);return C},
shouldForwardProp:p4D,shouldLog:TI}};
_.G=function(t,E,p,U){var x,A,m=(A=(x=U)==null?void 0:x.mode)!=null?A:0;U!=null||(U={});var b;(b=U).reactivityMode!=null||(b.reactivityMode=0);m===1&&_.G3("creator_poly_si_disable_list").includes(E)&&(m=2);return m===1?tti(t,E,p,Object.assign({},U,{useSink:!0}),AOj):tti(t,E,p,Object.assign({},U,{useSink:m===2}))};
_.Ol=function(){return function(t,E,p,U){var x,A,m=(A=(x=U)==null?void 0:x.mode)!=null?A:2;U!=null||(U={});var b;(b=U).reactivityMode!=null||(b.reactivityMode=0);if(m===0)throw Error("Wg`"+m);return cQO(t,E,p,U,m===1?AOj:void 0)}};
_.hX=function(t){return _.r("creator_poly_si_killswitch")?!1:_.r("force_all_poly_si_batches")&&(t==="poly_si_all_on_test_check"?0:t)||document.documentElement.hasAttribute("use-signals")?!0:!t||_.r(t+"_holdback_enabled")&&_.r("kevlar_polysi_holdback")?!1:_.r(t)};
ao=function(t){return t?t.icon?t.icon.iconType.toLowerCase():t.customThumbnail?"member":"":""};
Ydi=function(t){if(!t)return"";t=_.M(t);for(var E=t.next();!E.done;E=t.next())if((E=E.value)&&E.liveChatAuthorBadgeRenderer&&(E=ao(E.liveChatAuthorBadgeRenderer))&&E!=="verified")return E;return""};
Mtl=function(t,E){if(!t)return null;var p;return((p=t.find(function(U){return U&&U.liveChatAuthorBadgeRenderer?ao(U.liveChatAuthorBadgeRenderer)===E:!1}))==null?void 0:p.liveChatAuthorBadgeRenderer)||null};
_.fjO=function(t){var E=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;t=mBt(t);E=mBt(E);var p=baJ(t.hex);E=baJ(E.hex);var U=E[0]/255;var x=E[1]/255,A=E[2]/255,m=Math.max(U,x,A),b=Math.min(U,x,A),f=0,B=0,R=.5*(m+b);m!=b&&(m==U?f=60*(x-A)/(m-b):m==x?f=60*(A-U)/(m-b)+120:m==A&&(f=60*(U-x)/(m-b)+240),B=0<R&&R<=.5?(m-b)/(2*R):(m-b)/(2-2*R));U=[Math.round(f+360)%360,B,R];p=iaE(p,E);for(t=qd0(t.hex);p<4.5;){t=U[2]>=.5?t.darker((4.5-p)/2):t.brighter((4.5-p)/2);p=t.toString();
x=HaY(p);if(!x.length)throw Error("Yd`"+p);p=x;p=iaE(p,E)}return t.hex()};
iaE=function(t,E){t=_.s6L(t);E=_.s6L(E);return(Math.max(t,E)+.05)/(Math.min(t,E)+.05)};
_.e5=function(t){return"#"+("000000"+(t&16777215).toString(16)).slice(-6)};
_.BD_=function(t){for(var E=0,p=0;p<t.length;p++)E=t.charCodeAt(p)+((E<<5)-E);t="#";for(p=0;p<3;p++)t+=("00"+(E>>p*8&255).toString(16)).slice(-2);return t};
w4E=function(t){t=(t||"").split(":");t.length===1&&t.unshift("yt-icons");t[1]=t[1].toLowerCase();return t};
rOO=function(t,E){var p=(E=E===void 0?!1:E)?Ri$:VtK,U=E?QTO:Cw$;t.getIconNames().forEach(function(x){x=E?x:x.substring(x.indexOf(":")+1);t.name==="yt-icons"?jTJ.add(x):x.includes("-filled")?p.add(x):U.add(x)})};
FR=function(t,E,p,U){p=p===void 0?!1:p;U=U===void 0?!1:U;var x,A,m;return _.q(function(b){if(b.nextAddress==1)return b.yield(kPE,2);if(U)return b.return(jTJ.has(t));x=p?Ri$:VtK;A=p?QTO:Cw$;return E?(m=t.includes("-filled")?t:t.concat("-filled"),b.return(x.has(m))):b.return(A.has(t))})};
_.zh=function(t){if(dBO(t))return t.toString();var E=uCJ.get(t);if(E)return E;E=t.toLowerCase();var p="yt-icons",U=E.replace(/_/g,"-");switch(t){case "MY_CHANNEL":E="account_circle";break;case "ADD_TO_LIBRARY":E="add";break;case "ALERT_WARN_RED":E="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":E="person_music";break;case "BLOCK_USER":E="block";break;case "CAPTIONS":E="closed_caption";break;case "CLOSED_CAPTION":p="av";E="closed-caption";break;case "COLLECTION":p="maps";E="layers";break;case "CONTACT":p=
"icons";E="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":p="yt-studio-system-icons";E=U.split("creator-studio-")[1];break;case "DISMISSAL":E="close";break;case "DO_NOT_DISTURB":E="block";break;case "DOGFOOD":p="icons";E="pets";break;case "DRAFT":E="paper_corner_folded";
break;case "EMPTY_LIKE":E="like_outline";break;case "EXIT_APP":E="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":E=U;break;case "GAMES":p="ytg";E="my-games";break;case "GO_TO_PAGE":E="arrow-forward";break;case "GROUP":p="social";break;case "HIDE":E="not_interested";break;case "INPUT_COMPONENT":p="icons";E="settings-input-component";break;case "KIDS_BLOCK":E="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":p="ytg";E="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":p=
"ytg";E="membership-post-purchase";break;case "MULTIVIEW":E="screen_multi_view";break;case "MY_LOCATION":p="maps";E=U;break;case "NOTIFICATIONS_INBOX":E="NOTIFICATIONS";break;case "NEXT":E="chevron_right";break;case "OFFLINE":E="power-settings-new";break;case "PAUSE":p="miniplayer";break;case "PAYMENT":p="icons";break;case "PHONE_DOWNLOAD":E="phone_download";break;case "PREMIUM_STANDALONE":p="yt-logos";E="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":p="yt-logos";E="premium_standalone_cairo";
break;case "QUESTION_ANSWER":E="question_answer";break;case "REDEEM":p="icons";E="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":E="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":E="library_add";break;case "SCHOOL":p="yt-sys-icons";E="creator_academy";break;case "SETTINGS_LIGHT":E="settings_applications";break;case "SETTINGS_MATERIAL":E="settings";break;case "SEARCH_HISTORY":E="watch_history";break;case "SHOPPING_BAG":E="bag";break;case "SOCIAL":case "PEOPLE":p=
"yt-icons";E="people";break;case "STAFF_PICK":p="ytg";E="spotlight";break;case "START_DVR":E="add";break;case "STOP_DVR":p="av";E="stop";break;case "TAB_LIKED":E="like";break;case "TAB_INBOX":E="mail";break;case "TERMS_OF_SERVICE":p="icons";E="description";break;case "TRENDING":E="fire";break;case "UNBLOCK_USER":E="remove";break;case "UNPLUGGED_DARK_THEME":p="image";E="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":E="live";break;case "UNPLUGGED_SPORTS":p="ytu";E="visibility-off";break;
case "VIDEOS":p="av";E="play-circle-filled";break;case "YOUTUBE":p="yt-logos";E="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":p="yt-logos-ext";E="yt-logo-red-updated";break;case "YOUTUBE_LOGO":p="yt-logos-ext";E="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":p="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":p="shorts";E=U;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":p="yt-sys-icons";E="youtube_improve_tv";break;case "OUTLINE_BAG":p=
"yt-sys-icons";E="bag";break;case "QUEUE_PLAY_LAST":p="yt-sys-icons";E="list_queue_last";break;case "SLASH_CIRCLE_LEFT":E="slash_circle_left";break;case "SPEED_1_POINT_2X":E="1_point_2x";break;case "SPEED_1_POINT_5X":E="1_point_5x";break;case "SPEED_1_POINT_8X":E="1_point_8x";break;case "SPEED_POINT_2X":E="point_2x";break;case "SPEED_POINT_5X":E="point_5x";break;case "SPEED_POINT_8X":E="point_8x";break;case "SPEED_1X":E="1x";break;case "SPEED_2X":E="2x";break;case "TAB_BOOKMARK":E="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":p="yt-sys-icons";E="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":p="yt-sys-icons";E="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":p="yt-sys-icons",E="tic_tac_toe"}E=p+":"+E;uCJ.set(t,E);return E};
dBO=function(t){var E;_.r("kevlar_use_wil_icons")?E=!!_.X3().resolve(_.lR).resolveIcon({iconName:t.toString()}):E=!1;return E};
_.n4=function(t,E,p,U){p=p===void 0?{}:p;U=U===void 0?!1:U;p===null&&(p={});var x=_.G3("kevlar_command_handler_command_banlist");x=_.M(x);for(var A=x.next();!A.done;A=x.next())if(A=t?t.hasOwnProperty(A.value):void 0,A)return!1;x=_.k(t.commandMetadata,_.hZ);return U&&x!=null&&x.url?!1:!E.disableCommandHandlerOverride&&_.Gh.instance?(U=_.Gh.instance,p.form||(p.form={element:E}),p.form.element||(p.form.element=E),!p.clickedVisualElement&&E.visualElement&&(p.clickedVisualElement=E.visualElement),U.resolveCommand(t,
p),!0):!1};
JOi=function(t,E){t=Nd(t);for(var p=_.M(t.visibilityMonitorKeys||[]),U=p.next();!U.done;U=p.next())E.unobserveByKey(U.value);t.visibilityMonitorKeys=void 0};
Dw=function(t,E){if(_.yL()){if(_.r("kevlar_vimio_use_shared_monitor"))IjD(t,E.data);else if(!IjD(t,E.data))return;var p=E.data,U=gdO(p);if(_.r("enable_client_ve_spec_logging"))JOi(t,E.observer);else{var x=Nd(t);x.trackedParams&&x.trackedParams!==U&&JOi(t,E.observer)}x=Nd(t);!p||x.data&&x.data===p||(x.data=p);ZaE(t,E);x.trackedParams=U}};
ZaE=function(t,E){var p=E.observer;if(!p&&_.r("web_skip_missing_vimio_observer")){var U,x;_.qW(new _.cC("VisibilityObserver is not defined.",t.tagName,t.trackedParams,(U=E.data)==null?void 0:U.trackingParams,(x=E.data)==null?void 0:x.loggingDirectives))}else{var A=E.layer,m=E.visibilityCallback||function(){},b=E.prescanCallback,f=Nd(t);
U=[];E.showOption&&U.push(p.observe(t,function(){E.skipLogging&&E.skipLogging()||_.sl().reportShown(f,void 0,A,7);m(!0)},E.showOption));
E.hideOption&&U.push(p.observe(t,function(){_.sl().reportHidden(f,void 0,A,7);m(!1)},E.hideOption));
E.prescanOption&&b&&U.push(p.observe(t,function(){b()},E.prescanOption));
f.visibilityMonitorKeys=U}};
IjD=function(t,E){t=Nd(t);if(t.visualElement&&!E)return!0;if(!E)return!1;var p=!1;if(_.r("enable_client_ve_spec_logging")){var U,x;p=!!((U=E.loggingDirectives)==null?0:(x=U.clientVeSpec)==null?0:x.uiType)}U=gdO(E);if(!U&&!p)return!1;_.r("mweb_component_visibility_logging")&&(t.veContainer||(t.veContainer={}),t.veContainer.trackingParams=U);if(t.trackedParams&&t.trackedParams===U)return!1;var A;if(_.r("enable_client_ve_spec_logging")&&((A=t.visualElement)==null?0:A.isClientVe())){var m;A=(m=t.visualElement)==
null?void 0:m.getAsJspb();var b,f,B,R;if(_.kW(A,2)===((b=E.loggingDirectives)==null?void 0:(f=b.clientVeSpec)==null?void 0:f.uiType)&&_.kW(A,3,-1)===((B=E.loggingDirectives)==null?void 0:(R=B.clientVeSpec)==null?void 0:R.elementIndex))return!1}if(_.r("enable_client_ve_spec_logging")){var V,Q;!t.visualElement&&((V=E.loggingDirectives)==null?0:(Q=V.clientVeSpec)==null?0:Q.uiType)&&(b=E.loggingDirectives.clientVeSpec,E=b.uiType,m=b.elementIndex,b=b.clientYoutubeData,t.visualElement=_.L4(_.Pu(),{veType:E,
elementIndex:m,clientYouTubeData:b}))}return!0};
gdO=function(t){if(t==null?0:t.rendererContext){var E=_.k(t.rendererContext,_.Th);if(E==null?0:E.loggingDirectives)return E.loggingDirectives.trackingParams}return(t==null?0:t.loggingDirectives)?t.loggingDirectives.trackingParams:t==null?void 0:t.trackingParams};
Nd=function(t){var E;return(E=t.polymerController)!=null?E:t};
ajj=function(t){_.sl();if(_.BC(oo().JSC$13003_elementShouldLogGesture).bind(oo())(t,4)){OaO(t);var E=X48(t);hiE.set(t,E)}};
OaO=function(t){hiE.has(t)&&(hiE.get(t).cancel("untrack hover element"),hiE.delete(t))};
X48=function(t){var E,p=[],U=!1,x=new _.PE(function(A,m){pN(t,"mouseenter",_.BC(function(){var b,f,B;return _.q(function(R){if(R.nextAddress==1)return E=(0,_.eu)(),b=eiO(t),p.push(b),f=FTO(t,function(){U=!0;m(Error("Xg"))}),R.yield(b,2);
if(R.nextAddress!=3)return f&&Wu(f),B=zi0(t),p.push(B),R.yield(B,3);A();_.Do(R)})}))});
x.then(function(){var A=(0,_.eu)()-E;A=Math.round(A);if(!(500>A||6E5<=A)){var m=t.getScreenLayer?t.getScreenLayer():void 0;m=_.yL(m)||"";var b=ljO(_.sl(),t);_.HA(m,t.visualElement?t.visualElement:_.$8(b),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:A}})}ajj(t)},function(){K4&&(K4(),K4=null);
U&&(OaO(t),ajj(t))});
return x};
eiO=function(t){var E;return(new _.PE(function(p,U){K4=function(){U(Error("Yg"))};
E=_.ir.debounce(_.BC(function(){Wu(x);p()}),1,100);
var x=_.vu(t,"mousemove",E)})).thenCatch(function(){var p=_.ir.cancelDebouncedJobMap.get(E);
p&&_.ir.cancelJob(p)})};
zi0=function(t){var E;return(new _.PE(function(p,U){K4=function(){U(Error("Zg"))};
E=pN(t,"mouseleave",_.BC(function(){p()}))})).thenCatch(function(){Wu(E)})};
FTO=function(t,E){return pN(t,"mouseleave",_.BC(E))};
ndj=function(t){GPj&&_.yl.cancel(GPj);GPj=_.yl.run(function(){_.kT(t,"yt-visibility-refresh");GPj=0})};
NDJ=function(t){t=Number(t);return"rgba("+[t>>16&255,t>>8&255,t&255,(t>>24&255)/255].join()+")"};
sTt=function(t){if(!t)return!1;if(_.k(t,_.DBK))return!0;var E;if(t=(E=_.k(t,_.ZU))==null?void 0:E.commands)for(E=_.M(t),t=E.next();!t.done;t=E.next())if(_.k(t.value,_.DBK))return!0;return!1};
LTt=function(t){var E=!0;E=E===void 0?!0:E;if(!t.useSignals&&!t.experimentalPropertiesChanged||_.r("experimental_templating_behavior_nopatch_killswitch")){var p=t._propertiesChanged;t._propertiesChanged=function(U,x,A){E?t.debounceRender():t.doRender();p&&p.call(t,U,x,A)}}};
PwY=function(t,E){if(t.useSignals||t.experimentalPropertiesChanged)if(_.r("experimental_templating_behavior_nopatch_killswitch"))t.experimentalPropertiesChanged=function(){};
else return;var p=new Set,U=[t].concat(_.KB(t.behaviors));U=_.M(U);for(var x=U.next();!x.done;x=U.next()){x=x.value;for(var A in x.properties)p.has(A)||(t._addPropertyEffect(A,"function",E),p.add(A))}};
TDl=function(){var t=Polymer.Element,E=t._prepareTemplate;t._prepareTemplate=function(){E.call(this);var p=this.prototype;if(p.experimentalTemplatingInUse&&p.experimentalTemplatingInUse()&&p.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.bV(Error("$g"));else{p=this.template.content.childNodes;for(var U=p.length-1;U>=0;U--){var x=p[U];x.nodeName!=="STYLE"&&x.nodeName!=="LINK"&&x.nodeName!=="SCRIPT"&&x.nodeName!=="#comment"&&x.remove()}}}};
od8=function(t){var E=!0;E=E===void 0?!0:E;TDl();var p=t.ready;t.ready=function(){this._template=null;p.call(this)};
PwY(t,E?t.debounceRender:t.doRender)};
$BD=function(t,E,p){if(p===null||p===void 0)return p;var U=jEO(t.tagName.toLowerCase(),E,function(){throw Error("Ub");});
if(U===null)return p;U=WTO[U];var x;if((x=U.isUnwrappable)==null?0:x.call(U,p)){if(U.unwrap)return U.unwrap(p);throw Error("ch");}return U.filterString?U.filterString(t.tagName,E,String(p)):p};
KTK=function(t,E,p){var U=E[E.length-1]!=="$";p=$BD(t,E,p);U?t[E]=p:(U=p==null?null:String(p),wh(t,E.slice(0,-1),U))};
cu=function(t){_.r("mweb_after_render_to_scheduler")?_.ir.addJob(function(){try{t()}catch(E){_.S5(E)}},8):(vdt.length===0&&requestAnimationFrame(function(){setTimeout(function(){var E=vdt.slice();
vdt.length=0;E=_.M(E);for(var p=E.next();!p.done;p=E.next()){p=p.value;try{p()}catch(U){_.S5(U)}}})}),vdt.push(t))};
yO8=function(t){if(t){var E=t.component;if(E){var p;E==null||(p=E.events)==null||p.publish("DISCONNECTED");var U;E==null||(U=E.onDisconnected)==null||U.call(E)}var x,A;(x=t.__spec)==null||(A=x.didUnmount)==null||A.call(x);for(E=0;E<t.childNodes.length;E++)yO8(t.childNodes[E])}};
_.tJ=function(t,E,p){p===void 0?delete t[E.name]:t[E.name]=p};
_.En=function(t){var E={androidIncludeFontPadding:!1},p=0,U=[],x=[],A=[];if(t.simpleText)return E.content=t.simpleText,E;if(t.runs===void 0)return E.content="",E;t=_.M(t.runs);for(var m=t.next();!m.done;m=t.next()){m=m.value;var b=m.text,f=void 0,B=(f=b)==null?void 0:f.length;if(b&&B){U.push(b);if(m.bold||m.italics||m.strikethrough||m.underline||m.textColor!=null&&m.textColor!==0||m.deemphasize){b=x;f=b.push;var R={startIndex:p,length:B};m.bold&&(R.weightLabel="FONT_WEIGHT_MEDIUM");m.italics&&(R.italic=
!0);m.strikethrough&&(R.strikethrough="LINE_STYLE_SINGLE");m.underline&&(R.underline="LINE_STYLE_SINGLE");m.textColor!=null&&m.textColor!==0?document.documentElement.hasAttribute("dark")?R.fontColor=m.darkModeTextColor||m.textColor:R.fontColor=m.textColor:m.deemphasize&&(document.documentElement.hasAttribute("dark")?R.fontColor=parseInt("ff"+SdE("#aaa").substring(1),16):R.fontColor=parseInt("ff"+SdE("#606060").substring(1),16));f.call(b,R)}m.navigationEndpoint&&(b=A,f=b.push,R={startIndex:p,length:B,
onTap:{innertubeCommand:m.navigationEndpoint}},m.loggingDirectives&&_.tJ(R,cOi,m.loggingDirectives),f.call(b,R));p+=B}}E.content=U.join("");E.styleRuns=x.length?x:void 0;E.commandRuns=A.length?A:void 0;return E};
EVt=function(t){if(t==null||!t.runs)return!0;t=_.M(t.runs);for(var E=t.next();!E.done;E=t.next())if(E=E.value,E.bracket||E.errorUnderline||E.deemphasize||_.k(E,py)||_.k(E,tyL))return!1;return!0};
pIL=function(t,E){return function(p){var U=E.unit;if(U!==p)throw Error("fh`"+t+"`"+U+"`"+p);return E}};
Un=function(t){if(!((t==null?0:t.value)&&(t==null?0:t.unit)))return"";switch(t.unit){case "DIMENSION_UNIT_FRACTION":var E="%";break;default:E="px"}t=t.value;E==="%"&&(t*=100);return""+t+E};
UbJ=function(t){try{return t()}catch(E){_.qW(E)}};
_.AJ=function(t){var E=_.k(t,_.x2);if(E)return E;if((E=_.k(t,xb_))&&E.commands)return Ap_(E.commands);if((E=_.k(t,YeD))&&E.commands)return Ap_(E.commands);if((t=_.k(t,MyY))&&t.identifier&&t.command&&(mbj||(mbj=[]),!mbj.includes(t.identifier)))return mbj.push(t.identifier),_.k(t.command,_.x2)};
Ap_=function(t){if(t.length!==0){var E=[];t=_.M(t);for(var p=t.next();!p.done;p=t.next())(p=_.AJ(p.value))&&E.push(p);return{commandExecutorCommand:{commands:E}}}};
_.MA=function(t){var E=t.defaultTarget,p=t.elementConfig,U=t.elementsCommand,x=t.skipOnClick,A=t.forceNewState,m=t.additionalCommandArgs,b=t.innertubeCommand||_.AJ(U);if(b){t={};var f=bK8(b);U=f.navigatingCommand;f=f.href;U&&f?(t.href$=f,iK$(t,U,f,E),_.r("web_atagconfig_pointerdown")&&qeK(t,U),A&&(t["force-new-state$"]=!0)):(t.role$="button",t.href$="javascript:void(0);");_.k(b,HKD)&&(t["aria-haspopup$"]=!0);x||(t.onclick=function(B){var R={};if(fr0(B)){var V=(m==null?void 0:m.clickedVisualElement)||
(m==null?void 0:m.getClickedVisualElement)&&m.getClickedVisualElement();V&&(R={clickedVisualElement:V});R=Object.assign({},{form:{element:B.target,event:B,createScreenConfig:R}},m);B.preventDefault();_.Y2(b,R)}});
return Object.assign({},p,t)}};
BvO=function(t){if(t.length){if(t.length===1)return t[0];var E={};_.tJ(E,_.ZU,{commands:t});return E}};
mh=function(t){return t&&t.href$!=="javascript:void(0);"};
bK8=function(t){var E,p=((E=_.k(t,_.ZU))==null?void 0:E.commands)||[t];t=_.M(p);for(E=t.next();!E.done;E=t.next()){E=E.value;var U=void 0,x=void 0;p=(x=_.k((U=E)==null?void 0:U.commandMetadata,_.hZ))==null?void 0:x.url;_.r("web_remove_web_navigation_endpoint_data")||(U=void 0,p=p||((U=_.k(E,wIl))==null?void 0:U.url));if(p&&p!=="/service_ajax"){if(U=_.vw(p,RYi))return t=_.$I(U),{navigatingCommand:E,href:t};_.qW(new _.cC("AttributedString URL could not be sanitized",p))}}return{}};
fr0=function(t){return t.button!==void 0?t.button===0&&!(t.shiftKey||t.altKey||t.metaKey||t.ctrlKey):!(t.shiftKey||t.altKey||t.metaKey||t.ctrlKey)};
iK$=function(t,E,p,U){p=!gs(p);var x,A,m;if((x=_.k(E,_.lC))!=null&&x.nofollow||(A=_.k(E,_.HD))!=null&&A.nofollow||(m=_.k(E,_.kX))!=null&&m.nofollow||p)t.rel$="nofollow";var b;E=((b=_.k(E,_.kX))==null?void 0:b.target)==="TARGET_NEW_WINDOW"?"_blank":U===void 0?"":U;t.target$=E};
qeK=function(t,E){E.clickTrackingParams&&(t.params={itct:E.clickTrackingParams});t.onpointerdown=function(p){Vy$(p)};
t._data=E};
QgK=function(t){(t.loggingUrls||[]).forEach(function(E){rx(E.baseUrl,E.attributionSrcMode)})};
Vy$=function(t){var E=t.currentTarget;t=UbJ(function(){return E.href});
var p=E.params;t&&_.RK(t,p||{},8,!0)};
_.bz=function(t,E){(t=_.AJ(t))&&_.Y2(t,E)};
_.Y2=function(t,E){xct(function(p){E?p.resolveCommand(t,E):p.resolveCommand(t)})};
kY_=function(t,E){var p=["yt-core-attributed-string__link"];E!=null&&E.noLinkColor||((E==null?0:E.isOverlay)?p.push("yt-core-attributed-string__link--overlay-call-to-action-color"):p.push("yt-core-attributed-string__link--call-to-action-color"),(E==null?0:E.linkInheritColor)&&p.push("yt-core-attributed-string--link-inherit-color"));p={className:p.join(" "),tabindex$:"0"};var U=t.onTap||t.onLongPress;if(!U)return p;var x=Cpj(t);x&&(p["aria-label$"]=x);E=_.MA({elementsCommand:U,elementConfig:p,skipOnClick:!(E==
null||!E.skipOnClick),forceNewState:!0});t.onLongPress&&(U=new jgO(function(){var A=_.AJ(t.onLongPress);A&&_.X3().resolve(_.ei).resolveCommand(A)}),E&&rpO(U,E));
return E||p};
Cpj=function(t){var E,p;return(E=t.onTapOptions)==null?void 0:(p=E.accessibilityInfo)==null?void 0:p.accessibilityLabel};
dbJ=function(t){var E=t;t<=16777215&&(E+=parseInt("ff000000",16));return _.cL(E)};
uwj=function(t){var E=t.isDarkTheme;var p=t.extension;t=t.runColor;var U=void 0;if(p=p==null?void 0:p.colorMap){E=E?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";p=_.M(p);for(var x=p.next();!x.done;x=p.next())if(x=x.value,E===x.key){U=x.value;break}}U==null&&t&&(U=t);if(U)return dbJ(U)};
iz=function(t){var E=t.config;var p=t.image;var U=t.imageConfig;var x=t.imageWrapperConfig;var A=t.run;var m=t.tag;var b=t.textLength;var f=t.startIndex===void 0?0:t.startIndex;t=t.length;f===void 0&&(f=0);A={run:A,startIndex:f,endIndex:t!==void 0?f+t:b,tag:m};p&&(A.image=p);U&&(A.imageConfig=U);x&&(A.imageWrapperConfig=x);E&&(A.config=E);return A};
Jp$=function(t,E){if(t.weight)return t.weight;switch(t.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 E?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
Irt=function(t){switch(t){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"}};
gVO=function(t){switch(t){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"}};
fy=function(t,E,p){var U=E;t.content&&p&&(p=t.content.indexOf("\n"),p!==-1&&(U=Math.min(E,p)));if(!t.content||t.content.length<=U)E=t;else if(t.attachmentRuns||t.commandRuns||t.decorationRuns||t.styleRuns||t.paragraphStyleRuns){E=qA(t.content,U);p=U;var x=t.attachmentRuns;if(x){var A=[];x=_.M(x);for(var m=x.next();!m.done;m=x.next())m=Object.assign({},m.value),m.startIndex===void 0||m.startIndex>=p||(m.length||(m.length=0),m.length+m.startIndex>p&&(m.length=p-m.startIndex),A.push(m));p=A}else p=void 0;
A=ZK8(U,t.commandRuns);x=U;var b=t.decorationRuns;if(b){m=[];b=_.M(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var B=_.k(f.textDecorator,Hs);if(B&&B.startIndex!==void 0&&!(B.startIndex>=x)){f=Object.assign({},f,{textDecorator:{highlightTextDecorator:Object.assign({},B)}});B=_.k(f.textDecorator,Hs);if(!B.length||B.length+B.startIndex>x)B.length=x-B.startIndex;m.push(f)}}x=m}else x=void 0;m=ZK8(U,t.styleRuns);if(b=t.paragraphStyleRuns)for(t=[],b=_.M(b),f=b.next();!f.done;f=b.next()){var R=f.value;
f=Object.assign({},R);if(!(f.startIndex===void 0||f.startIndex>=U)){if(!f.length||f.length+f.startIndex>U)f.length=U-f.startIndex;B=[];var V=void 0,Q=void 0;if((V=R)==null?0:(Q=V.listGroup)==null?0:Q.listItems)for(R=_.M(R.listGroup.listItems),V=R.next();!V.done;V=R.next())if(V=Object.assign({},V.value),!(V.startIndex===void 0||V.startIndex>=U)){if(!V.length||V.length+V.startIndex>U)V.length=U-V.startIndex;B.push(V)}B.length>0&&(f.listGroup||(f.listGroup={}),f.listGroup=Object.assign({},f.listGroup,
{listItems:B}));t.push(f)}}else t=void 0;E={content:E,attachmentRuns:p,commandRuns:A,decorationRuns:x,styleRuns:m,paragraphStyleRuns:t}}else E=Object.assign({},t,{content:qA(t.content,U)});return E};
ZK8=function(t,E){if(E){var p=[];E=_.M(E);for(var U=E.next();!U.done;U=E.next())if(U=Object.assign({},U.value),!(U.startIndex===void 0||U.startIndex>=t)){if(!U.length||U.length+U.startIndex>t)U.length=t-U.startIndex;p.push(U)}return p}};
qA=function(t,E){var p=E,U;if(U=p>0)U=t.charCodeAt(p-1),U=U>=55296&&U<=56319;U&&(p=t.charCodeAt(p),U=p>=56320&&p<=57343);U&&--E;return t.substring(0,E)};
_.Bs=function(t){return(t==null?void 0:t.content)!==void 0};
hY8=function(t){return function(E){var p=t.run;(p.onTap!==void 0||p.onLongPress!==void 0)&&_.k(p,cOi)&&Dw(E,{data:{loggingDirectives:_.k(p,cOi)},observer:_.X3().resolve(hH),hideOption:OKO,showOption:XI8,layer:E.layer})}};
arY=function(t){return function(E){for(var p in t)(ZD[p]||ZD[Rm["default"]])(E,p,t[p])}};
eYK=function(t,E,p,U){for(var x=_.M(t.parts),A=x.next();!A.done;A=x.next()){A=A.value;if(typeof A==="string")throw Error("hh");if(A.start<=E&&p<=A.end){eYK(A,E,p,U);return}}t.parts.push({data:U,parts:[],start:E,end:p})};
FU_=function(t,E){for(var p=E.parts.length;p>=0;p--){var U=E.parts[p],x=E.parts[p-1],A=p===E.parts.length?E.end:U.start;x=p===0?E.start:x.end;A!==x&&E.parts.splice(p,0,t.slice(x,A));U&&FU_(t,U)}};
zYD=function(t){t.sort(function(E,p){if(E.startIndex<p.startIndex)return-1;if(p.startIndex<E.startIndex)return 1;E=E.endIndex-E.startIndex;p=p.endIndex-p.startIndex;return E>p?-1:p>E?1:0})};
_.lrL=function(t){var E=t.thumbnails;if(E){t={sources:[]};E=_.M(E);for(var p=E.next();!p.done;p=E.next()){p=p.value;var U={};U.url=p.url;U.width=p.width;U.height=p.height;t.sources.push(U)}return t}};
GYl=function(t,E,p,U){if(!E)return t.length>=1?t[t.length-1]:null;if(U)for(var x=_.M(t),A=x.next();!A.done;A=x.next()){A=A.value;var m=void 0,b=(m=A.url)==null?void 0:m.indexOf(U);if(b!==void 0&&b>=0)return A}U=_.M(t);for(x=U.next();!x.done;x=U.next())if(x=x.value,x.width&&x.height&&(p&&x.width>=E||!p&&x.height>=E))return x;for(E=t.length-1;E>=0;E--)if(p&&t[E].width||!p&&t[E].height)return t[E];return t[0]};
_.nVE=function(t){var E;return(t=(E=t.sources)==null?void 0:E[0])?t.width/t.height:0};
_.Nvl=function(t){if(t.sources){t=_.M(t.sources);for(var E=t.next();!E.done;E=t.next()){E=E.value;var p=void 0;if((p=E.clientResource)==null?0:p.imageName)return E}}};
sgi=function(t){var E={};t=_.k(t.processor,Db_);var p=(t=t==null?void 0:(p=t.imageTint)==null?void 0:p.color)?_.cL(t):void 0;p&&(E.color=p);return E};
LUE=function(t){var E;if((E=t.clientResource)!=null&&E.imageColor)return _.cL(t.clientResource.imageColor)};
_.TvY=function(t,E,p,U,x,A,m){if(!E||E.length===0||E[0].clientResource)return null;if(p&&E[0].url)return E[0].url;U===void 0&&(U=!0);if(U){var b;t=Ppl*(x||(t==null?void 0:(b=t.getBoundingClientRect())==null?void 0:b.width)||0)}else{var f;t=Ppl*(A||(t==null?void 0:(f=t.getBoundingClientRect())==null?void 0:f.height)||0)}E=GYl(E,t,U,m);return(E==null?0:E.url)?E.url:(E==null?0:E.imageData)?E.imageData:null};
oVL=function(t,E,p){p=p?[p]:[];t.opacity&&p.push("opacity: "+t.opacity+";");E&&t.placeholderColor?(t=_.cL(t.placeholderColor),p.push("background-color: "+t+";")):p.push("background-color: transparent;");return p.join(" ")};
WU8=function(t,E,p,U,x){var A=["ytCoreImageHost"];E&&A.push(E);p||A.push("ytCoreImageFillParentHeight");U||A.push("ytCoreImageFillParentWidth");switch(t.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":A.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":A.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":A.push("ytCoreImageContentModeCenter");break;default:A.push("ytCoreImageContentModeScaleToFill")}t.flipForRtlLayout&&A.push("ytCoreImageFlipRtl");
switch(x){case "TOP_START":var m;A.push(((m=document.body)==null?void 0:m.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return A.join(" ")};
KU0=function(t){var E;if(t==null?0:(E=t.clientResource)==null?0:E.imageName){var p;t=(p=t.clientResource)==null?void 0:p.imageName;a:{switch(t){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":p="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":p="yt-logos-ext:yt-logo-updated";break a}p=void 0}return p||$b8.get(t)||t}};
Sel=function(t){return _.r("mweb_wiz_skip_render")?vVL(t):ypt(t)};
vVL=function(t){return function(E){var p=WQl("wink-root");jC=VG.lastChild;$e$();jFj(p,_.H(t,E))}};
ypt=function(t){var E=E===void 0?!1:E;return function(p){if(!E||!_.r("mweb_skip_keto_to_c3_if_no_data")||p.data!==void 0){var U=Xr(!1);try{var x=p.children;_.r("mweb_render_outside_patch_killswitch")||VG?x?g1(_.H(t,p,x)):g1(_.H(t,p)):_.qW(new _.cC("ketoToC3 called outside of a patch",{tagName:t.TAG_NAME}))}finally{Xr(U)}}}};
cpO=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
ErD=function(t,E){t.onViewportEntered=E;tHO.observe(t)};
pNO=function(){var t={rootMargin:"10%",threshold:.01};_.r("mweb_enable_set_io_root_to_null_safari")?t.root=null:_.r("mweb_enable_set_io_root_to_body_safari")&&(t.root=document.body);return new IntersectionObserver(function(E,p){E.filter(function(U){return U.intersectionRect.height>0}).forEach(function(U){U=U.target;
if(!_.r("mweb_enable_only_update_image_when_connected")||U.isConnected!==!1){var x;(x=U.onViewportEntered)==null||x.call(U);p.unobserve(U)}})},t)};
U1K=function(t,E,p,U,x){function A(){if(U){var b=U.loadedClass,f=U.notifyOnUnloaded;b&&_.w4(t,b);f&&t.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function m(){var b=p(E,t);b&&t.getAttribute("src")!==b&&(_.r("mweb_enable_only_update_image_when_connected")&&t.isConnected===!1||b===t.src||(t.src=b),A())}
x=x===void 0?!0:x;t.removeAttribute("src");A();E&&(x?ErD(t,m):m())};
x1$=function(t,E,p){if(!E)return!1;E=p(E,t);p=t.getAttribute("src");return E&&E===p&&t.complete};
AMY=function(t,E){for(var p in E)p==="className"?t.className=E[p]:(ZD[p]||ZD[Rm.default])(t,p,E[p])};
MH8=function(t,E,p){p=p===void 0?!1:p;var U=t.sources!==void 0?t:_.lrL(t);if(U){var x=E.onload;E.onload=function(B){var R=B.target;p&&R.naturalWidth===120||_.RC(R,"ytCoreImageLoaded");E.notifyOnLoaded&&R.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));x==null||x(B)};
E.targetWidth&&E.preserveWidth&&(E.width=E.targetWidth);E.targetHeight&&E.preserveHeight&&(E.height=E.targetHeight);var A=_.Nvl(U),m=A&&KU0(A),b=sgi(U);if(m)return(t=LUE(A)||b.color)&&(E.color=t),{type:"icon",iconName:m,config:Object.assign({},E,E.alt?{}:{"aria-hidden$":"true"},{"aria-label$":E.alt,role:"img"})};if(t.sources===void 0){E.alt=t.accessibility&&t.accessibility.accessibilityData&&t.accessibility.accessibilityData.label||E.alt;E.style$=oVL(t,E.shouldShowPlaceholder,E.style$);var f;E.isPreloaded=
!((f=_.k(t,YxE))==null||!f.isPreloaded)}E.contentMode&&!U.contentMode&&(U.contentMode=E.contentMode);E.className=WU8(U,E.className,E.preserveHeight,E.preserveWidth,E.objectPosition);E.loadedClass="ytCoreImageLoaded";return{type:"image",image:U,config:E}}};
_.V9=function(){var t=_.t9.apply(0,arguments);return _.pR(m1$,function(E){var p=t.map(function(U){return U==null?void 0:U(E)});
return function(){return void p.forEach(function(U){return void(U==null?void 0:U())})}})};
bcJ=function(t,E){var p=E==null?void 0:E.initial;return _.KN(function(){_.Hv(!0);return p=t(p)},{equals:E==null?void 0:E.isEqual},"rSlKsc")};
icE=function(t,E){if(t===E)return!0;if(t===void 0||E===void 0)return!1;var p,U,x,A,m,b,f,B;return t.content===E.content&&((p=t.styleRuns)==null?void 0:p.length)===((U=E.styleRuns)==null?void 0:U.length)&&((x=t.commandRuns)==null?void 0:x.length)===((A=E.commandRuns)==null?void 0:A.length)&&((m=t.attachmentRuns)==null?void 0:m.length)===((b=E.attachmentRuns)==null?void 0:b.length)&&((f=t.decorationRuns)==null?void 0:f.length)===((B=E.decorationRuns)==null?void 0:B.length)};
HcO=function(t){return t.parts.map(qxO)};
qxO=function(t){if(typeof t==="string")return t;var E=t.data;t=E.image!==void 0&&E.imageConfig!==void 0?_.H("span",{el:_.V9(arY(t.data.imageWrapperConfig))},_.H(_.Q9,Object.assign({},{data:t.data.image},t.data.imageConfig))):_.H(t.data.tag,{el:_.V9(hY8(t.data),arY(t.data.config))},t.parts.map(qxO));return Lw(t)};
fg8=function(t,E){return t===E?!0:t===void 0||E===void 0?!1:t.noStyleRuns===E.noStyleRuns&&t.noLinkColor===E.noLinkColor&&t.noEndpoints===E.noEndpoints&&t.headerRuns===E.headerRuns&&t.isOverlay===E.isOverlay&&t.linkInheritColor===E.linkInheritColor&&t.userInput===E.userInput&&t.isHeadline===E.isHeadline};
BCl=function(t){return function(){var E,p,U,x,A,m,b,f,B,R,V,Q,C,d;return{ariaLabel:(E=t.ariaLabel)==null?void 0:E.call(t),className:(p=t.className)==null?void 0:p.call(t),ellipsisTruncate:(U=t.ellipsisTruncate)==null?void 0:U.call(t),isOverlay:(x=t.isOverlay)==null?void 0:x.call(t),linkInheritColor:(A=t.linkInheritColor)==null?void 0:A.call(t),noEndpoints:(m=t.noEndpoints)==null?void 0:m.call(t),noStyleRuns:(b=t.noStyleRuns)==null?void 0:b.call(t),noLinkColor:(f=t.noLinkColor)==null?void 0:f.call(t),
noPreWrap:(B=t.noPreWrap)==null?void 0:B.call(t),noWrap:(R=t.noWrap)==null?void 0:R.call(t),skipOnClick:(V=t.skipOnClick)==null?void 0:V.call(t),userInput:(Q=t.userInput)==null?void 0:Q.call(t),headerRuns:(C=t.headerRuns)==null?void 0:C.call(t),isHeadline:(d=t.isHeadline)==null?void 0:d.call(t)}}};
Rx_=function(t,E){t=new wNL(t,E);_.bV(t);throw t;};
VHY=function(t,E,p){var U=oDt(t);t._numRenders=0;try{var x=uJE(function(){return _.H(E,Object.assign({},p))})}catch(m){var A=function(b){b.args||(b.args=[]);
b.args.push("Error in web component wrapper");b.args.push(t.tagName.toLowerCase());return b};
_.iV(m instanceof Error?A(m):new wNL("Wiz rendering error",t.tagName.toLowerCase()));throw m;}finally{oDt(U)}return x};
_.k2=function(t,E,p){function U(R){var V={};R=_.M(R);for(var Q=R.next();!Q.done;Q=R.next()){Q=Q.value;var C=void 0,d=void 0,I=void 0,O=_.Fx((I=(d=(C=Q).getAttribute)==null?void 0:d.call(C,"slot"))!=null?I:"children");if(C=V[O])C.push(Q);else if(O in A||O==="children")V[O]=[Q]}R=_.M(Object.keys(V));O=R.next();for(Q={};!O.done;Q={content$jscomp$60:void 0},O=R.next())O=O.value,O!=="children"&&(Q.content$jscomp$60=V[O],V[O]=function(a){return function(){return a.content$jscomp$60}}(Q));
return V}
p=p===void 0?{}:p;t.debugName=E+" (CoW)";var x,A=(x=p.props)!=null?x:{};Wzt.add(E);var m=QVO();x=function(){var R=m.apply(this,arguments)||this;R.rawProps={};R.queuingRender=!1;R.dispose=function(){};
R.isWebComponentWrapper=!0;R.isReparenting=!1;R.hasRendered=!1;return R};
_.u(x,m);x.prototype.render=function(){this.hasRendered=!0;for(var R=_.M([].concat(_.KB(this.attributes))),V=R.next();!V.done;V=R.next())V=V.value,V.name!=="slot"&&V.name!=="hidden"&&this.removeAttribute(V.name);R=Object.assign({},this.componentProps,this.slotProps);V=_.M(VHY(this,t,R));R=V.next().value;V=V.next().value;!(R[0]instanceof Element)||R.length>1?Rx_("Wrapped Wiz components must return a single root element.",E):(R=R[0].tagName.toLowerCase(),R!==E&&Rx_("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(R+" !== '"+E),E),this.dispose=V)};
x.prototype.setUpProps=function(){for(var R=this.rawProps,V=this.attributes,Q=_.M(Object.keys(A)),C=Q.next();!C.done;C=Q.next()){C=C.value;var d=void 0;((d=this)==null?0:d[C])&&this[C]!==C5E&&R[C]===void 0&&(R[C]=this[C],(d=Object.getOwnPropertyDescriptor(this.constructor.prototype,C))&&Object.defineProperty(this,C,d))}Q=_.M(V);for(C=Q.next();!C.done;C=Q.next()){d=C.value;C=_.Fx(d.name);var I=C==="class"&&!V.getNamedItem("class-name");if(C in A||I)d=d.value===""||d.value==="true"?!0:d.value==="false"?
!1:isNaN(Number(d.value))?d.value:Number(d.value),C!=="class"||R.className?R[C]=d:R.className=d}V={};for(var O in A)A[O]!==_.Cy&&A[O]!==jVl&&(R[O]instanceof Function&&Rx_("Function props must be configured as STATIC, not SIGNAL.",E),C=_.M(_.Py(R[O],void 0,"tbseob")),Q=C.next().value,C=C.next().value,V[O]=C,R[O]=Q);R=_.M([R,V]);this.componentProps=R.next().value;this.setters=R.next().value;this.slotProps=U(this.childNodes)};
x.prototype.connectedCallback=function(){vDl.has(this)||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in A&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
x.prototype.disconnectedCallback=function(){if(!vDl.has(this)){var R;a:{if(_.je)for(R=this;R;){if(_.r4.has(R)){R=!0;break a}R=R.parentElement}R=!1}if(R)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){R=_.M([].concat(_.KB(this.attributes)));for(var V=R.next();!V.done;V=R.next()){V=V.value;var Q=void 0;V.name==="slot"||V.name==="hidden"&&((Q=p.unsafeExternallySettableAttributes)==null?0:Q.has("hidden"))||this.removeAttribute(V.name)}}this.innerText="";NSj(this)}}};
x.prototype._setPendingPropertyOrPath=function(){};
x.prototype.notifyPath=function(){};
_.aE.Object.defineProperties(x.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var b=_.M(Object.keys(A)),f=b.next(),B={};!f.done;B={prop$jscomp$109:void 0},f=b.next())B.prop$jscomp$109=f.value,f=void 0,((f=p.legacyPolymer)==null?0:f.forwardHostProps)&&zwj.has(B.prop$jscomp$109)||Object.defineProperty(x.prototype,B.prop$jscomp$109,{set:function(R){return function(V){var Q=this;vDl.has(this)||(this.setters?vy(function(){var C,d;return void((d=(C=Q.setters)[R.prop$jscomp$109])==null?void 0:d.call(C,V))}):(this.rawProps[R.prop$jscomp$109]=V,this.queuingRender&&R.prop$jscomp$109===
"data"&&V!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(B),
get:rMl.has(B.prop$jscomp$109)?void 0:function(){return C5E}});
customElements.define(E,x)};
_.kzD=function(t,E){return(t=_.d4(t,E))?_.$I(_.S8(t)):null};
_.uz=function(t){if(t=_.d4(t,Number.MAX_VALUE,void 0,"width"))return _.S8(t)};
_.d4=function(t,E,p,U){U=U===void 0?"width":U;if(!t||!t.length)return null;if(_.r("kevlar_tuner_should_always_use_device_pixel_ratio")){var x=window.devicePixelRatio;_.r("kevlar_tuner_should_clamp_device_pixel_ratio")?x=Math.min(x,_.z3("kevlar_tuner_clamp_device_pixel_ratio")):_.r("kevlar_tuner_should_use_thumbnail_factor")&&(x=_.z3("kevlar_tuner_thumbnail_factor"));d1L=x}else d1L||(d1L=window.devicePixelRatio);x=d1L;_.r("kevlar_tuner_should_always_use_device_pixel_ratio")?E*=x:x>1&&(E*=x);if(_.r("kevlar_tuner_min_thumbnail_quality"))return t[0].url||
null;x=t.length;if(_.r("kevlar_tuner_max_thumbnail_quality"))return t[x-1].url||null;if(p)for(var A=0;A<x;A++)if(t[A].url.indexOf(p)>=0)return t[A].url||null;for(p=0;p<x;p++)if(t[p][U]>=E)return t[p].url||null;for(E=x-1;E>0;E--)if(t[E][U])return t[E].url||null;return t[0].url||null};
Igl=function(){JJ.size?setTimeout(function(){IC(u6J)},0):JML=0};
u6J=function(){var t=(0,_.eu)(),E=null,p=!1;JJ.forEach(function(x){x.loaded=!0;x.loadTime=t;x.pendingPaint=!1;var A=gr0.get(x);A&&A.resolve(t);E=x;p||!x.ftlEligible&&x.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(p=!0)});
var U;((U=E)==null?0:U.markDirty)&&E.markDirty();JJ.clear();JML=0;p&&ZcE(t)};
Oct=function(t){JJ.add(t);t.pendingPaint=!0;JML||(JML=_.g4(_.ir,Igl))};
XND=function(t){t.loaded=!1;t.loadTime=Infinity;var E=gr0.get(t);E&&(E.reject(Error("nh")),gr0.delete(t));t.pendingPaint&&(JJ.delete(t),t.pendingPaint=!1)};
_.hxi=function(t){var E=t.indexOf(":");return E===-1?{originalName:t}:{originalName:t.substring(0,E),datasyncId:t.substring(E+1)}};
_.exY=function(){return _.q(function(t){if(agL!==void 0)return t.return(agL);agL=new Promise(function(E){var p;return _.q(function(U){switch(U.nextAddress){case 1:return _.aR(U,2),U.yield(_.Z4.open("test-only"),4);case 4:return U.yield(_.Z4.delete("test-only"),5);case 5:_.r7(U,3);break;case 2:if(p=_.nB(U),p instanceof Error&&p.name==="SecurityError")return E(!1),U.return();case 3:E("caches"in window),_.Do(U)}})});
return t.return(agL)})};
lgt=function(){return _.q(function(t){if(t.nextAddress==1)return t.yield(_.exY(),2);if(!t.yieldResult)return t.return(void 0);Fxl||(Fxl=new zxJ);return t.return(Fxl)})};
GzO=function(t){var E,p,U,x;return _.q(function(A){switch(A.nextAddress){case 1:return A.yield(lgt(),2);case 2:E=A.yieldResult;if(!E)throw Error("ph");return A.yield(E.open("yt-player-local-img"),3);case 3:return p=A.yieldResult,A.yield(p.match(t),4);case 4:U=A.yieldResult;if(!U)throw Error("qh");return A.yield(U.blob(),5);case 5:return x=A.yieldResult,A.return(x)}})};
nr0=function(t,E){for(var p in t)if(t.hasOwnProperty(p)&&E[p])return p;return null};
NCO=function(t){return"stamp"+t.replace("-","_")+"_"};
D1O=function(t){var E=t.match(/\[\[([\w\.]+)\]\]/);if(E&&E.length>1)return E[1];_.bV(Error("sh`"+t));return null};
sV8=function(t){return t===void 0?_.HC("REUSE_COMPONENTS",!1):t||!1};
TCE=function(t,E,p){p&&(E.is?(LxK.has(E)&&(t=LxK.get(E),p=t.listener,delete E[t.property],p.type==="element"&&E.removeEventListener(p.eventName,p.handler),LxK.delete(E)),P5Y(E)):E.__proto__==HTMLElement.prototype&&(E=new _.cC("Rendererstamper removed a non custom element","Stamper: "+t+" element: "+(E&&E.nodeName)),_.qW(E)))};
orE=function(t,E,p,U){var x=E.node?E.node:E;_.ZN(p).parentNode===x&&(E.removeChild(p),TCE(t,p,U));if(t=On.get(p))On.delete(p),_.ir.cancelJob(t);p.hidden=!1};
WxO=function(t,E,p,U){if(E&&E.children&&(p=E.children[p]))if(_.HC("DEFERRED_DETACH"))for(;p&&!On.has(p);){var x=t,A=E,m=p,b=U;m.hidden=!0;x=_.E_(_.ir,orE.bind(null,x,A,m,b),0);On.set(m,x);p=p.nextElementSibling}else for(;(m=E.lastElementChild)&&(E.removeChild(m),TCE(t,m,U),m!=p););};
_.X5=function(){for(var t=_.t9.apply(0,arguments),E=!0,p=_.M(t),U=p.next();!U.done;U=p.next())if(typeof U.value!=="string"){E=!1;break}return E?t.join(" ").trim()||void 0:function(){for(var x="",A=_.M(t),m=A.next();!m.done;m=A.next())if(m=m.value,typeof m==="function"&&(m=m()),m)if(typeof m==="string")x+=" "+m;else for(var b in m)if(m.hasOwnProperty(b)){var f=m[b];typeof f==="function"&&(f=f());f&&(x+=" "+b)}x=x.trim()||void 0;return _.Hv(x)}};
_.$10=function(t,E){return _.hj(t.entities,"markersEngagementPanelSyncEntity",E)};
_.hJ=function(t,E){return _.hj(t.entities,"playerStateEntity",E)};
Kx$=function(t,E){return _.hj(t.entities,"fantasyWinProbabilityEntity",E)};
vrJ=function(t,E){return _.hj(t.entities,"fantasyTeamEntity",E)};
yMJ=function(t,E){return _.hj(t.entities,"fantasyPlayerEntity",E)};
SxK=function(t,E){return _.hj(t.entities,"booleanEntity",E)};
cMl=function(t,E){return _.hj(t.entities,"qrCodeEntity",E)};
tO8=function(t){return _.hj(t.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
pFD=function(t){var E;return(E=EHO[t])!=null?E:"EVENT_SPAN_TYPE_UNKNOWN"};
U88=function(t){var E=t.nodeName;if(t.id)return E+="#"+t.id;if(t.classList)for(var p=_.M(t.classList),U=p.next();!U.done;U=p.next())E+="."+U.value;t.parentElement&&(E=U88(t.parentElement)+" > "+E);return E};
x8_=function(t){return function(E){var p=pFD(E.type);return p==="EVENT_SPAN_TYPE_UNKNOWN"?t(E):VR("event",{type:p,nodepath:E.target instanceof Element?U88(E.target):void 0},function(){return t(E)})}};
_.aC=function(t){t&&Rp("event")&&(t=x8_(t));return wY8(function(E){var p,U=(p=t)==null?void 0:p(E);return typeof U==="boolean"?U:!0})};
ee=function(t){return function(){return t()?t():void 0}};
m8O=function(t){var E=_.EB("animated-rolling-character"),p=GF0(),U=BD(t.character)||BD(t.previousCharacter),x=_.M(euL()),A=x.next().value,m=x.next().value;_.A6(function(){if(window.ResizeObserver&&_.r("web_fix_rolling_numbers_zoom_safari")){var b=new _.F5(function(){var B,R,V=Math.round(((R=(B=E.value.querySelector("div"))==null?void 0:B.getBoundingClientRect().height)!=null?R:0)*100)/100;V&&m(V)},500),f=new ResizeObserver(function(){b.fire()});
f.observe(E.value);return function(){f.disconnect();b.dispose()}}});
eBO(function(){var b=_.r("web_fix_rolling_numbers_zoom_safari")?A:t.marginMultiplier;if(b){var f;(f=p.value)==null||f.cancel();U?(f=t.previousCharacter?Number(t.previousCharacter)+10:t.rollUp?0:30,t.shouldAnimate||(f-=AVt(t,f))):(f=t.rollUp?0:2,t.shouldAnimate||(f-=t.rollUp?-1:1));E.value.style.marginTop="-"+f*b+"px";t.shouldAnimate?p.value=Y6L(E.value,t,f,U,b):E.value.style.display=t.character?"":"none"}});
return _.H("animated-rolling-character",{el:E,class:"animatedRollingCharacterHost"},cF8(U,function(){for(var b=[],f=1;f<30;f++)b.push(_.H("div",null,f%10));return _.H(_.Oj,null,_.H("div",null,"\u00a0"),b,_.H("div",null,"\u00a0"))},function(){return MOK(t.character)}))};
MOK=function(t){return _.H(_.Oj,null,_.H("div",null,"\u00a0"),_.H(_.Oj,null,cF8(!t||_.mJ(t),function(){return _.H("div",null,"\u00a0")},function(){return _.H("div",null,t)})),_.H("div",null,"\u00a0"))};
Y6L=function(t,E,p,U,x){p=new Animation(new KeyframeEffect(t,[{transform:"translateY(0px)"},{transform:"translateY("+(U?AVt(E,p):E.rollUp?-1:1)*x+"px)"}],bxJ),document.timeline);E.character?(t.style.display="",p.onfinish=null):p.onfinish=function(){t.style.display="none"};
p.play();return p};
AVt=function(t,E){var p=Number(t.character)+10;if(t.previousCharacter)if(t.character){var U=Number(t.character),x=Number(t.previousCharacter);t=t.rollUp?x<U?p:p+10:x<U?p-10:p}else t=t.rollUp?30:0;else t=t.character==="0"?p:t.rollUp?p-10:p+10;return E-t};
ixE=function(t){return function(E){var p={},U;for(U in E){var x=void 0,A=void 0;((x=void 0)==null?0:(A=x.callbacks)==null?0:A[U])||(p[U]=E[U])}return _.H(D6Y,null,function(){for(var m in p)E[m]=_.Hv(p[m]);E.disableReactiveLogging=!0;return _.H(t,Object.assign({},E))})}};
fn_=function(t,E,p,U,x,A,m){p=new Animation(new KeyframeEffect(t,[{transform:"translateY(0px)"},{transform:"translateY("+(A?q6Y(E,p,U,x):U?-1:1)*m+"px)"}],HxE),document.timeline);E?(t.style.display="",p.onfinish=null):p.onfinish=function(){t.style.display="none"};
p.play();return p};
q6Y=function(t,E,p,U){var x=Number(t)+10;E?t?(t=Number(t),E=Number(E),p=p?E<t?x:x+10:E<t?x-10:x):p=p?30:0:p=t==="0"?x:p?x-10:x+10;return U-p};
wF8=function(t){var E=GF0(),p=GF0();FtO(function(){E.value=t.numberText;p.value=t.numberValue},[t.numberText]);
var U=t.fontSizeMultiplier?t.heightPx*t.fontSizeMultiplier:t.heightPx,x=jKl(function(){if(t.numberText){var m=t.numberText;var b=t.forceRollUp||!p.value||!t.numberValue||p.value<t.numberValue;var f=!!t.shouldAnimate,B=E.value,R=[],V=0,Q=0,C=(B?B.replace(/\D/g,"").length:0)-(m?m.replace(/\D/g,"").length:0);B=B?B.split(/(\d)/).filter(Boolean):[];for(m=m.split(/(\d)/).filter(Boolean);C<0;){var d=m[Q];R.push({character:d,rollUp:b,marginMultiplier:U,shouldAnimate:f});Q++;BD(d)&&C++}for(;V<C;)d=B[V],R.push({previousCharacter:d,
rollUp:b,marginMultiplier:U,shouldAnimate:f}),V++,BD(d)||C++;for(;Q<m.length;)C=m[Q],d=B[V],BD(C)===BD(d)?(Q++,V++):BD(C)?(V++,C=void 0):BD(d)&&(Q++,d=void 0),R.push({character:C,previousCharacter:d,rollUp:b,marginMultiplier:U,shouldAnimate:f});b=R}else b=[];return b},[t.numberText]),A=t.numberText?["height: "+U+"px;",
"line-height: "+t.heightPx+"px;"].join(" "):"";return _.H("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:A,dir:"ltr","aria-hidden":"true"},x.map(function(m){return _.H(B_0,Object.assign({},m))}))};
RlD=function(t){switch(t){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}};
_.VOE=function(t,E){if(!t&&!E)return"medium";t=Math.max(t||0,E||0);return t>=256?"large":t>=96?"medium":"small"};
QZO=function(t){switch(t){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
CXO=function(t){return new KeyframeEffect(t,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
jZ_=function(t){return new KeyframeEffect(t,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.zO=function(t){return function(){var E="",p;for(p in t){for(var U=t[p];typeof U==="function";)U=U();U!==void 0&&U!==null&&(E+="; "+p+": "+U)}return E.length>0?_.Hv(E.slice(2)):_.Hv()}};
rVi=function(t){switch(t){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"}};
k8K=function(t,E){if(E)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(t)switch(t){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"}};
gHO=function(t,E,p,U,x,A,m){var b=d8D(t),f=b.disabled,B=b.iconPosition,R=b.style,V=b.focused,Q=function(){return!!I()&&B()==="icon-only"},C=function(){return!!I()&&B()==="icon-only-40"},d=function(){return!!I()&&B()==="icon-with-label"},I=function(){return!!E||!(U==null||!U())};
return{type:function(){return R()==="call-to-action-inverse"?"text":R()==="overlay-dark"&&t().type!=="filled"&&t().type!=="tonal"?"tonal":t().type},
shouldFocus:function(){return(V()||(A==null?void 0:A()))&&!f()},
hasIconLeading:function(){return!!I()&&B()==="leading"},
hasIconTrailing:function(){return!!I()&&B()==="trailing"},
hasIconLeadingTrailing:function(){return!!I()&&!!(p||x!=null&&x())&&B()==="leading-trailing"},
hasIconOnly:Q,hasIconOnly40:C,hasIconWithLabel:d,iconButton:function(){return Q()||C()||d()},
visiblyDisabled:function(){return(f()?"disabled":t().state)==="disabled"||f()},
overrideSmallSizeIcon:function(){return!t().ignoreIconSizeOverride&&ui_(t(),I())},
iconToRender:E?E:function(){return _.H(_.lz,{icon:U,gradientColor:function(){var O;return(O=t().customColors)==null?void 0:O.iconGradientColor},
size:function(){return JVi(t(),!0,t().ignoreIconSizeOverride)},
active:function(){return t().toggled},
iconFilter:function(){return In0(t())},
animateIcon:m})},
secondaryIconToRender:p?p:function(){return _.H(_.lz,{icon:x,size:function(){return JVi(t(),!0,t().ignoreIconSizeOverride)},
active:function(){return t().toggled},
iconFilter:function(){return In0(t())}})}}};
d8D=function(t){return{size:function(){return t().size},
style:function(){return t().style},
focused:function(){return t().focused},
disabled:function(){return t().disabled},
onTap:function(E){var p,U;return(U=(p=t()).onTap)==null?void 0:U.call(p,E)},
alignByText:function(){return t().alignByText},
aTagConfig:function(){return t().aTagConfig},
customColors:function(){return t().customColors},
segmentedPosition:function(){return t().segmentedPosition},
toggled:function(){return t().toggled},
toggleable:function(){return t().toggleable},
accessibilityLabel:function(){return t().accessibilityLabel},
onToggle:function(E){var p,U;return(U=(p=t()).onToggle)==null?void 0:U.call(p,E)},
iconPosition:function(){return t().iconPosition},
oneOffCustomTextWrap:function(){return t().oneOffCustomTextWrap},
disableTextEllipsis:function(){return t().disableTextEllipsis},
disableBackdropFilter:function(){return t().disableBackdropFilter},
tooltipText:function(){return t().tooltipText},
tooltipShape:function(){return t().tooltipShape},
ariaHidden:function(){return t().ariaHidden},
tabIndex:function(){return t().tabIndex},
buttonText:function(){return t().buttonText},
formattedButtonText:function(){return t().formattedButtonText},
animatedTextProps:function(){return t().animatedTextProps},
onClickRateLimitMs:function(){return t().onClickRateLimitMs}}};
ui_=function(t,E){E=(t.iconPosition==="icon-only"||t.iconPosition==="icon-only-40"||t.iconPosition==="icon-with-label")&&E;return!t.segmentedPosition&&E&&t.size==="S"};
JVi=function(t,E,p){switch(t.size){case "XS":return 16;case "S":return!p&&ui_(t,E)?24:16;default:return 24}};
Zx_=function(t){switch(t){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"}};
Oxt=function(t){switch(t){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"}};
XFO=function(t){switch(t){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"}};
In0=function(t){if(t.style==="overlay-dark"&&t.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
GO=function(t){return t&&t.endsWith("px")?Number(t.slice(0,-2)):0};
el_=function(t,E){var p=_.M(_.j5(function(){var x,A;return(A=t())!=null?A:E==null?void 0:(x=E())==null?void 0:x.text})),U=p.next().value;
return[function(x){var A=_.KN(function(){var f;return Object.assign({},{location:"bottom",offset:16,delay:1},E==null?void 0:E(),{text:(f=U())!=null?f:""})},void 0,"IJU38d");
_.M$(function(){var f=A();_.sJ(function(){_.ir.addJob(function(){ny.notify(x,f)},4)})},"WlsgZc");
var m=function(){hlD(x,A())},b=function(){anK()};
x.addEventListener("mouseenter",m);x.addEventListener("focus",m);x.addEventListener("mouseleave",b);x.addEventListener("blur",b);x.addEventListener("tap",b);_.iK(function(){x.removeEventListener("mouseenter",m);x.removeEventListener("mouseleave",b);x.removeEventListener("focus",m);x.removeEventListener("blur",b);x.removeEventListener("tap",b);anK()})},
p.next().value]};
zlE=function(t,E){if(!gV){var p;VfD(function(){return p=njl(t,E)});
return p}t.parent=Faj();return njl(t,E)};
Faj=function(){var t=OJ(gV||void 0,zuY);return U08(t)?void 0:t};
NA=function(t,E){_.Y2(t,Object.assign({},E,{forceClickLogging:!0}))};
lnO=function(t){switch(t){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"}};
nHY=function(t,E){var p=_.AJ(t==null?void 0:t.onTap),U={};p&&(U.getClickedVisualElement=function(){var x;return G8O(t,p,E==null?void 0:(x=E.value)==null?void 0:x.visualElement)});
U=_.MA({elementsCommand:t.onTap,forceNewState:!0,additionalCommandArgs:U});return mh(U)?U:void 0};
N_O=function(t,E,p,U){NA(t,Object.assign({},{form:{element:E,event:p}},U))};
D8L=function(t,E,p,U,x){var A=void 0;return function(m){var b=_.AJ(p?t==null?void 0:t.onDisabledTap:t==null?void 0:t.onTap);if(b){var f;A=(f=A)!=null?f:E==null?void 0:E.value;if(b)if(_.r("web_button_vm_click_client_ve_killswitch"))N_O(b,A,m);else{var B;f=G8O(t,b,(B=A)==null?void 0:B.visualElement);if(x){N_O(b,x,m,{clickedVisualElement:f,form:{element:x}});return}N_O(b,A,m,{clickedVisualElement:f})}}U&&U(m)}};
G8O=function(t,E,p){E=E==null?void 0:E.clickTrackingParams;var U,x;t=t==null?void 0:(U=t.loggingDirectives)==null?void 0:(x=U.clientVeSpec)==null?void 0:x.uiType;if(p&&t&&!E)return p};
sZY=function(t){switch(t){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"}};
LaY=function(t){switch(t){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"}};
PXi=function(t){switch(t){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"}};
T_0=function(t){switch(t){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"}};
_.D4=function(t){return _.KN(function(){KR0()();return SZi(t)},{debugName:"d8B62c"},"DEXkhd")};
oH8=function(t,E){return _.hj(t.entities,"engagementToolbarStateEntityPayload",E)};
$8Y=function(t){(t=_.$8(t))&&_.Wai(t)};
_.Wai=function(t){var E=_.yL();E&&_.mu(E,t)};
KaL=function(t,E,p){_.du(t,"yt-open-popup-action",[E,p||t])};
vHt=function(t,E){var p=_.mY(t,"endpoint"),U=_.mY(t,"action");return(p=U?U:p)&&E&&(p=E.navigationEndpointPopupMap[p])&&(t=_.ws(p,t),(p=_.mY(t,"renderer"))&&E.supportedPopups.hasOwnProperty(p))?{openPopupAction:{popupType:E.popupTypeMap[p],popup:t}}:null};
yVO=function(t,E,p,U){if(U){var x;p=p==null?void 0:(x=p.data)==null?void 0:x.contents;(x=p instanceof Array&&p.length?p[0]:p)&&(p=_.mY(x,"renderer"))&&U.supportedPopups.hasOwnProperty(p)&&(E.stopPropagation(),KaL(t,{openPopupAction:{popupType:U.popupTypeMap[p],popup:x}}))}};
tj$=function(t,E,p,U){U=U===void 0?!1:U;var x=S6$(E);if(x){x.href&&UU(x.href);var A=E.button;A=A!==void 0?A===0&&!sn(E):!sn(E);x.data&&A&&cVE(t,x,E,p,U)}};
cVE=function(t,E,p,U,x){x=x===void 0?!1:x;var A=_.z3("pbj_navigate_limit",-1)===0;E_$(E);_.X3().resolve(_.OB(r1));var m=E.data;if(Object.keys(m).length!==0)if(!_.r("unplugged_web_disable_actions_for_cec_endpoint")&&_.k(m,_.ZU))_.r("endpoint_behavior_command_executor_fix_killswitch")||(p.preventDefault(),p.stopPropagation()),_.IK(t,[m],t);else if(U=vHt(m,U))m.loggingUrls&&m.loggingUrls.forEach(function(f){f.baseUrl&&_.jT(f.baseUrl)}),p.preventDefault(),p.stopPropagation(),KaL(t,U,E);
else{var b=pWj(0,E.data,p);if(t=E.getForm)t=t(),b.tempData=b.tempData||{},b.tempData=Object.assign({},b.tempData,t);t=_.Vx(p);if(U=t.find(function(f){return!!f.visualElement}))b.createScreenConfig=b.createScreenConfig||{},b.createScreenConfig.clickedVisualElement=U.visualElement;
if(!A)if(p.preventDefault(),p.stopPropagation(),_.k(m,_.UoK)&&!x&&_.Gh.instance)_.Gh.instance.resolveCommand(m,b);else if(_.r("kevlar_command_handler_formatted_string")&&!x&&_.Gh.instance&&xoJ(m))x=t.find(function(f){return!!f.is})||p.target,p={form:Object.assign({},b,{event:p,
element:x,originatingNode:E})},_.Gh.instance.resolveCommand(m,p);else{m=_.Vx(p);p=[];for(x=0;x<m.length;x++)(A=m[x].is)&&p.push(A);Ej8({parents:p.join(","),text:E.innerText},function(){_.kT(E,"yt-navigate",b)})}}};
AzJ=function(t){if(t=S6$(t))E_$(t),c0t(t.href)};
S6$=function(t){t=_.Vx(t);for(var E,p=0;p<t.length;p++)if(E=t[p],E.tagName==="A"&&E.classList.contains("yt-simple-endpoint")){if(!E.data)break;return E}return null};
sn=function(t){return t.shiftKey||t.altKey||t.metaKey||t.ctrlKey};
YN8=function(t,E){var p={itct:E.clickTrackingParams};_.r("kevlar_client_side_screens")&&(!_.k(E,_.DK)||_.r("kevlar_exclude_endpoint_killswitch"))&&(p.endpoint=JSON.stringify(E));_.r("enable_unknown_lact_fix_on_html5")&&_.X3().resolve(_.OB(_.Ly))&&(p.lact=_.af());vfO(p);_.RK(t,p)};
E_$=function(t){t.href&&Object.keys(t.data).length!==0&&YN8(t.href,t.data)};
xoJ=function(t){for(var E=_.M(Mj8),p=E.next();!p.done;p=E.next())if(t[p.value])return!1;return!0};
mo0=function(){if(Ps)return Ps;if(window.lottie)return Ps=Promise.resolve(window.lottie);var t=_.q0(_.qO("LOTTIE_URL"));return t?Ps=new Promise(function(E,p){var U=document.createElement("script");U.addEventListener("load",function(){E(lottie)});
U.addEventListener("error",function(x){var A="Lottie library failed to load.";x?x.message&&(A+=" Original description: "+x.message,_.HX(x,A)):x=Error(A);_.qW(x);p(x)});
U.setAttribute("async","");_.w3(U,t);document.head.appendChild(U)}):Promise.reject(Error("th"))};
bXO=function(){return Ps?Ps:mo0()};
iXJ=function(t){if(t)switch(t){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.r("kevlar_use_wil_icons"))return t=(t=tO8(_.QM().getState()))&&t.animationLightUrl&&t.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:t.animationLightUrl,pathDarkTheme:t.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,t?t:TO.get("LIKE");break;case "LIKE_DELHI_PLAYER":return TO.get("LIKE_DELHI_PLAYER")}};
qN8=function(t){var E=iXJ(t);if(E)return E;switch(t){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return TO.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return TO.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return TO.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return TO.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return TO.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return TO.get("NOTIFICATION_BELL")}};
HXL=function(t,E){if(!t.closest)return!1;E=!!iXJ(E);return _.qO("ID_TOKEN")&&E?!!t.closest("segmented-like-dislike-button-view-model")||!!t.closest("yt-player-quick-action-buttons"):!1};
BfL=function(t,E){if(!t||fdt)E=!1;else{var p;if(!(p=HXL(t,E)))if(t.closest)if(p=!_.qO("ID_TOKEN"),t=t.closest("ytd-subscription-notification-toggle-button-renderer-next"),p||!t)p=!1;else{var U;p=((U=t.data)==null?void 0:U.targetId)==="notification-bell"&&E!=="EXPAND_MORE"}else p=!1;E=p}return E};
wW_=function(t){var E,p;return _.q(function(U){switch(U.nextAddress){case 1:return _.aR(U,2),U.yield(fetch(t),4);case 4:return E=U.yieldResult,U.yield(E.json(),5);case 5:return U.return(U.yieldResult);case 2:p=_.nB(U),_.qW(p),_.Do(U)}})};
RED=function(t,E){var p,U,x;return _.q(function(A){if(A.nextAddress==1)return(p=E?t.pathDarkTheme:t.path)?A.yield(Promise.all([wW_(p),mo0()]),2):A.return();U=A.yieldResult;x=U[0];oC.set(p,x);_.Do(A)})};
QXJ=function(t,E,p,U){function x(m,b){if(E.value===b&&!E.cancelled){for(;t.firstChild;)t.removeChild(t.firstChild);t.classList.add("ytSpecIconShapeHost");m(t,U)}}
var A=_.VjO(_.X3().resolve(_.lR),p);typeof A==="function"?(E.value=null,x(A,null)):(E.value=A,A.then(function(m){x(m,A)}))};
Cit=function(t,E){var p=document.createElement("div"),U=_.UB(p,function(){return _.H(_.w,{cond:t,then:function(x){return _.H(_.Ws,{data:x,options:E})}})},"ea");
return[p,U]};
_.$2=function(t,E){if(E){var p={};jX0.forEach(function(U){U=rzi(E,U,"--yt-lightsource-");Object.assign(p,U)});
kUD.forEach(function(U){U=rzi(E,U,"--yt-basic-");Object.assign(p,U)});
_.eU(t,p)}};
rzi=function(t,E,p){var U={};U[p+_.ai(E)]=t&&t[E]?_.cL(t[E]):"";return U};
_.vs=function(t,E,p){Ky[t]||(Ky[t]={});Ky[t][E]=p};
_.y9=function(t){Ky[t]||(Ky[t]={});return Ky[t]};
dot=function(t){if(!t)return{};var E=t.foregroundTitleColor,p=t.backgroundColor;t=t.borderColor;var U="text";t?U="outline":p&&(U="filled");return{type:U,customColors:{color:E?_.cL(E):void 0,backgroundColor:p?_.cL(p):void 0,borderColor:t?_.cL(t):void 0}}};
ZXO=function(t){var E=t.renderer;var p=t.element;var U=t.commandController;var x=t.onTapCallback;var A=t.skipCommandHandling;var m=t.overrides;var b=t.forceIcon;var f=t.forceModernIconButton;var B=t.forceDisabled;var R=t.isSubscribe===void 0?!1:t.isSubscribe;var V=t.isPressed===void 0?!1:t.isPressed;var Q=t.useButtonSize===void 0?!1:t.useButtonSize;t=ugj(E);R&&(t.style="mono",t.type="filled");b=!E.icon||!b&&E.text?E.icon?E.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:f?"icon-only":"icon-only-40";b==="icon-only-40"&&(t.type="text");var C;f=Object;R=f.assign;Q=Jz0(E,Q);V=!!E.isSelected||!_.r("web_propagate_is_pressed_killswitch")&&!!V;var d=E.isSelected!==void 0;B=B===void 0?E.isDisabled:B;var I=E.text?_.En(E.text):void 0;var O,a,F,L=((O=E.accessibilityData)==null?void 0:(a=O.accessibilityData)==null?void 0:a.label)||((F=E.accessibility)==null?void 0:F.label);O=L?L:_.R4(E.text);p=IdL(E,p,U,x,A);U=g_O(E);U!=null&&U.length?(U=_.MA({innertubeCommand:BvO(U),
forceNewState:!0}),U=mh(U)?U:void 0):U=void 0;return R.call(f,{},t,Q,{iconPosition:b},m,{focused:!1,toggled:V,toggleable:d,disabled:B,formattedButtonText:I,accessibilityLabel:O,onTap:p,aTagConfig:U},dot((C=E.colorData)==null?void 0:C.basicColorPaletteData),{oneOffCustomTextWrap:E.oneOffCustomTextWrap})};
IdL=function(t,E,p,U,x){return function(A){var m=g_O(t);U(m,A);if(!x){m=_.M(m);for(var b=m.next();!b.done;b=m.next())NA(b.value,{form:{element:E,event:A},commandController:p})}}};
g_O=function(t){var E=[];t.command&&E.push(t.command);t.serviceEndpoint&&E.push(t.serviceEndpoint);t.navigationEndpoint&&E.push(t.navigationEndpoint);return E};
Jz0=function(t,E){if(E)switch(t.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(t.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
ugj=function(t){switch(t.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"}}};
OXL=function(t,E){return typeof t!=="object"||t===null?!1:Object.keys(E).every(function(p){return p in t})};
Se=function(t){return Object.fromEntries(Object.keys(t).map(function(E){return[E,E]}))};
XW_=function(t,E,p){return mwE(p,function(U,x){return function(A){var m=_.t9.apply(1,arguments);return OXL(A,t)?x.apply(null,[A[E]].concat(_.KB(m))):x.apply(null,[A].concat(_.KB(m)))}})};
cs=function(t){return function(E,p){return XW_(t,E,p)}};
hEJ=function(t,E){var p;return(p=_.hj(t,"playlistLoopStateEntity",E))!=null?p:void 0};
adl=function(t,E){var p;return(p=_.hj(t,"toggleMenuServiceItemEntity",E))!=null?p:void 0};
_.t8=function(t){return t!=null&&t.watch?t.watch.isTheaterMode:!1};
_.EY=function(t){return t!=null&&t.watch?t.watch.isWatchFullscreen:!1};
_.pd=function(t){if(_.eEK(t))return!0;t=_.FOO(t);return _.r("web_watch_enable_single_column_grid_view")?t:!1};
_.eEK=function(t){return t!=null&&t.watch?t.watch.isSwatcherooActive:!1};
_.FOO=function(t){return t.watch.isWatchNarrowWidth};
_.zEt=function(t){return _.t8(t)||_.EY(t)||_.FOO(t)};
_.ldt=function(t){return t.watch.openEngagementPanels};
_.UY=function(t,E){return _.hj(t.entities,"likeStatusEntity",E)};
GUl=function(t,E){return _.hj(t.entities,"likeCountEntity",E)};
_.n__=function(t,E){return _.hj(t.entities,"stringEntity",E)};
NfD=function(t,E){return _.hj(t.entities,"dataFreshnessEntity",E)};
DoL=function(t,E){if(!t)return!1;var p,U=(p=_.k(t,_.XJ))==null?void 0:p.signal;if(U&&E.signalEndpointMap)return!!E.signalEndpointMap[U];var x;if((p=(x=_.k(t,_.x1))==null?void 0:x.request)&&E.continuationEndpointMap)return!!E.continuationEndpointMap[p];for(var A in t)if(E.commandEndpointMap[A])return!0;return!1};
sXi=function(t,E){if(E.streamingEndpointMap)for(var p in t)if(E.streamingEndpointMap[p]&&(t=E.streamingEndpointMap[p]))return t()};
LO$=function(t,E){var p,U=(p=_.k(t,_.XJ))==null?void 0:p.signal;if(U&&E.signalEndpointMap&&(p=E.signalEndpointMap[U]))return p();var x;if((p=(x=_.k(t,_.x1))==null?void 0:x.request)&&E.continuationEndpointMap&&(x=E.continuationEndpointMap[p]))return x();for(var A in t)if(E.commandEndpointMap[A]&&(t=E.commandEndpointMap[A]))return t()};
Pil=function(t){var E={"Content-Type":"application/json"};_.qO("EOM_VISITOR_DATA")?E["X-Goog-EOM-Visitor-Id"]=_.qO("EOM_VISITOR_DATA"):_.qO("VISITOR_DATA")&&(E["X-Goog-Visitor-Id"]=_.qO("VISITOR_DATA"));E["X-Youtube-Bootstrap-Logged-In"]=_.qO("LOGGED_IN",!1);_.qO("DEBUG_SETTINGS_METADATA")&&(E["X-Debug-Settings-Metadata"]=_.qO("DEBUG_SETTINGS_METADATA"));t!=="cors"&&((t=_.qO("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(E["X-Youtube-Client-Name"]=t),(t=_.qO("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(E["X-Youtube-Client-Version"]=
t),(t=_.qO("CHROME_CONNECTED_HEADER"))&&(E["X-Youtube-Chrome-Connected"]=t),(t=_.qO("DOMAIN_ADMIN_STATE"))&&(E["X-Youtube-Domain-Admin-State"]=t));(t=_.qO("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(E["X-YouTube-Lava-Device-Context"]=t);return E};
Tf0=function(t,E){E.watchNextResponse||E.reelItemWatchResponse?E.watchNextResponse?t.content=E.watchNextResponse:t.content=E.reelItemWatchResponse:E.playerResponse?t.player=E.playerResponse:E.reelWatchSequenceResponse&&(t.reelSequence=E.reelWatchSequenceResponse)};
A8=function(t){return function(){return new t}};
Y1=function(t){var E=_.X3();return function(){return E.resolve(t)}};
_.Mn=function(t){if(!t)return null;for(var E=[],p=0;p<t.textSegments.length;p++){var U=t.textSegments[p];U.text?E.push(U):U.emojiId&&E.push({emoji_id:U.emojiId})}return{text_segments:E}};
v_l=function(t,E,p,U,x,A,m){A=A===void 0?[]:A;var b=new _.m8;b.endpoint=p;if(!p)return _.iV(new _.cC("handle undefined endpoint",E.tagName)),b;var f=i$J(p);f.length&&(_.IK(t,f,E,U),b.actions=f);p.loggingUrls&&p.loggingUrls.forEach(function(R){R.baseUrl&&rx(R.baseUrl,R.attributionSrcMode)});
f=!_.r("web_skip_impression_click_killswitch")&&U&&U.impression;if(p.clickTrackingParams&&!o_O(p)&&!WOj(E)&&!f&&(f=_.Pu(),!_.bA(f,E))){var B=E.getScreenLayer&&E.getScreenLayer();B?f.clickCommand(p,null,B):f.clickCommand(p,null)}f=!1;for(B=0;B<A.length;B++)if((0,A[B])(E,p,U)){f=!0;break}!f&&$oO(p)&&(b.ajaxPromise=KO8(t,E,p,U,x,m));return b};
WOj=function(t){var E;return(t=(E=t.data)==null?void 0:E.navigationEndpoint)&&!!t.clickTrackingParams};
o_O=function(t){var E=_.k(t,_.XJ);if(E&&(E=E.signal)&&yzt.indexOf(E)>=0)return!0;for(var p in t)if(SNY.indexOf(p)>=0)return!0;return!1};
$oO=function(t){var E;if(((E=_.k(t,_.XJ))==null?void 0:E.signal)==="CLIENT_SIGNAL")return!1;for(var p in t)if(czY.indexOf(p)>=0)return!1;t=Object.keys(t);return t.length===1&&t[0]==="loggingUrls"?!1:!0};
mIt=function(t,E,p,U,x,A,m){var b=_.iA.instance;if(b&&_.qn(b,U))var f=_.H9(b,U,x).then(function(R){return(R==null?0:R.data)?R:{data:R}});
else f=t.requestDataForServiceEndpoint(U,x),_.k(U,tX$)||_.k(U,EG0)||_.k(U,_.pzO)||_.k(U,UI8)||_.qW(new _.cC("No RequestBuilder for endpoint",U));var B=_.fd();B.promise.thenCatch(function(){var R=_.mY(U,"action")||_.mY(U,"command")||_.mY(U,"endpoint");R&&(R=U[R],R.hasOwnProperty("onFailureAction")?_.IK(E,[R.onFailureAction],p):R.hasOwnProperty("onFailureCommand")&&_.IK(E,R.onFailureCommand,p));f.cancel("Resolver promise rejected")});
f.then(function(R){if(R){var V=R.error;if(V){if(A&&A.onServerError)A.onServerError(U,R);B.reject(new _.cC("Response error",U,V))}else if(R=R.data)if(V=R.error){if(A&&A.onServerError)A.onServerError(U,R);B.reject(new _.cC("Returned error",U,V))}else{xI8(E,p,R,U);A_E(R);if(V=b$0(R))for(var Q=_.M(V),C=Q.next();!C.done;C=Q.next()){C=C.value;var d=_.X3().resolve(_.OB(Y30))||MXJ;if(!_.iA.instance||!d.some(function(O){return!!_.k(U,O)})||_.r("kevlar_response_processor_allowlist_killswitch")){var I=d=void 0;
((I=_.k((d=C)==null?void 0:d.commandMetadata,_.hZ))==null?0:I.sendPost)?_.JZ(E,[C]):_.IK(E,[C],p)}}(Q=_.k(R==null?void 0:R.frameworkUpdates,B9))&&m&&m(Q);if(A&&A.onSuccess)A.onSuccess(U,R);B.resolve(new _.Rn(R,V))}}else B.reject(new _.cC("Invalid service endpoint provided",U))},function(R){B.reject(R)});
return B.promise};
A_E=function(t){var E;(t=(E=_.k(t==null?void 0:t.onResponseReceivedCommand,b8t))==null?void 0:E.continuationItems)&&(t==null?void 0:t.length)===1&&_.k(t[0],i8$)&&_.SR("so_r",void 0,"search_overview_answer")};
KO8=function(t,E,p,U,x,A){var m;return(m=E.getNetworkManager&&E.getNetworkManager()?E.getNetworkManager():_.X3().resolve(_.OB(_.Lf)))?mIt(m,t,E,p,U,x,A):_.S5("No network manager.")};
xI8=function(t,E,p,U){if(p=p.trackingParams||p.loggingDirectives&&p.loggingDirectives.trackingParams){var x;(_.k(U,_.Vb)||_.k(U,q38)||_.k(U,H8E))&&U.clickTrackingParams&&(x=_.$8(U.clickTrackingParams));var A;U=(A=E.getScreenLayer)==null?void 0:A.call(E);E=_.Pu().graftServerVe(p,x,U);_.uO(t,"yt-store-grafted-ve-action",[E])}};
_.fLj=function(t){var E=new Image;return new _.PE(function(p,U){E.addEventListener("load",function(){p()});
E.addEventListener("error",function(){U()});
E.src=t})};
BrO=function(t){return!!t};
wzE=function(t){return!!t};
R4K=function(t,E,p){var U=t.rowIndex;U!==void 0&&_.uO(t.hostElement,"yt-section-reactive-dismissal",[U,E,p])};
_.Qb=function(t,E,p){t=_.M(t);for(var U=t.next();!U.done;U=t.next()){U=U.value;if(U===E)break;for(var x=_.M(p),A=x.next();!A.done;A=x.next())if(A=A.value,U.tagName===A||!_.r("web_event_button_role_check_killswitch")&&U.role==="button"&&A==="BUTTON")return!0}return!1};
_.Cd=function(t,E,p){t=_.M(t);for(var U=t.next();!U.done;U=t.next()){U=U.value;if(U===E)break;for(var x=_.M(p),A=x.next();!A.done;A=x.next())if(U.id===A.value)return!0}return!1};
_.k1=function(){var t=_.X3().resolve(_.OB(_.jw));return t?(t=t.getCurrentPage())?_.rG(t):null:null};
_.dG=function(){var t=_.k1();if(!t){var E=_.X3().resolve(_.OB(_.jw)),p=E?typeof E:"no page manager";E=E?E.getCurrentPage():null;p=new _.cC("Player is missing when requested.",p,E?E.tagName:"no page");_.bV(p)}return t};
_.rG=function(t){return t&&t.getPlayer?t.getPlayer():null};
VXL=function(t,E){t={args:{raw_player_response:t}};E&&(t.args=Object.assign({},t.args,E));return t};
QwK=function(t){if(t.args){if(t.args.raw_player_response)return t.args.raw_player_response;if(t.args.player_response)return JSON.parse(t.args.player_response)}};
_.CTi=function(t,E){var p={url:"/watch?v="+t.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};t.playlistId&&(p.url+="&list="+t.playlistId);t.playerParams&&(p.url+="&pp="+t.playerParams);t={watchEndpoint:t,commandMetadata:{webCommandMetadata:p}};E&&(t.clickTrackingParams=E);return t};
r__=function(){return jw_||!!_.ws("yt.player.Application")};
dIY=function(){return k_D||!!document.querySelector("link#player-css")};
J_L=function(){function t(){jw_=!0;ul0.resolve()}
var E,p;return _.q(function(U){ul0||(ul0=new _.hf,r__()?t():(E=document.createElement("script"),E.addEventListener("load",t),p=_.cQ(_.qO("PLAYER_JS_URL")),_.w3(E,p),document.head.appendChild(E)));return U.return(ul0.promise)})};
gGE=function(){function t(){k_D=!0;ILK.resolve()}
if(!ILK)if(ILK=new _.hf,dIY())t();else{var E=document.createElement("link");E.id="player-css";E.addEventListener("load",t);var p=_.cQ(_.qO("PLAYER_CSS_URL"));_.QU(E,p,"stylesheet");document.head.appendChild(E)}return ILK.promise};
Z8l=function(){return r__()&&dIY()?Promise.resolve([]):Promise.all([J_L(),gGE()])};
O8j=function(t,E,p){var U={args:{}};t&&(U.args.raw_player_response=t);E&&(U.args.raw_watch_next_response=E);p&&(U.args=Object.assign({},U.args,p));return U};
e4i=function(t,E,p){var U=!1;U=U===void 0?!0:U;t=typeof t==="string"?_.uA(document,t):t;var x=XzO+"_"+_.W8(t),A=h4_[x];if(A&&U)return aLJ(E,p)?A.api.loadVideoByPlayerVars(E.args||null):A.loadNewVideoConfig(E),A.api;A=new J8(t,x,E,p,void 0);h4_[x]=A;A.addOnDisposeCallback(function(){delete h4_[A.getId()]});
return A.api};
aLJ=function(t,E){return E&&E.serializedExperimentFlags?E.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):t&&t.args&&t.args.fflags?t.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
F1i=function(){var t=new _.hf;t.resolved=!1;var E=t.resolve;t.resolve=function(p){t.resolved=!0;E(p)};
return t};
lLO=function(t){var E={};z4i().install((E.document_disposed={callback:t},E))};
In=function(t,E){if(!t&&Math.random()<=_.z3("kevlar_unified_player_logging_threshold")){t=Error("vh`"+(E?E:"Unspecified error"));if(_.r("kevlar_unified_player_throw_errors"))throw t;_.qW(t)}};
_.G_E=function(){var t=_.ws("ytDebugData.callbacks");t||(t={},_.Oy("ytDebugData.callbacks",t));return t};
NrO=function(t,E){var p=_.G_E();if(_.r("web_dd_iu")||nGJ.includes(t))p[t]=E};
DIl=function(){return _.q(function(t){return t.return({isLeader:_.$Y_(_.QM().getState()),c:_.qO("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.qO("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
swK=function(){var t;_.q(function(E){if(E.nextAddress==1)return NrO("APP_STATE",DIl),E.yield(_.X3().resolve(_.gG),2);t=E.yieldResult;NrO("PI",function(){return _.q(function(p){return p.return(t.getVideoStats())})});
_.Do(E)})};
L1t=function(t){return!!t&&t.length>0&&t[0].loggingUrls!=null&&t[0].loggingUrls.length>0};
PTY=function(){var t=_.qO("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(t==null?void 0:t.length)===2?t[1]:null};
Tri=function(t){if(!t)return[];var E=[];t=_.M(t);for(var p=t.next();!p.done;p=t.next())if(p=p.value,p.loggingUrls){p=_.M(p.loggingUrls);for(var U=p.next();!U.done;U=p.next())U=U.value,U.baseUrl&&E.push(U.baseUrl)}return E};
oGi=function(t){var E=_.wu(_.M_(_.Ui.location.href));t=_.wu(_.M_(t));return _.r("kevlar_clear_non_displayable_url_params")?E==Zq(t):Zq(E)==Zq(t)};
Zq=function(t){var E=_.W1D(t);t=t.slice(0);var p=["frags"];_.r("kevlar_hide_pp_url_param")&&p.push("pp");_.r("kevlar_hide_time_continue_url_param")&&p.push("time_continue");p=_.M(p);for(var U=p.next();!U.done;U=p.next())U=U.value,t=_.VS(_.wu(t),U);return _.wu(t)+(E?"#"+E:"")};
OY=function(t,E){var p=p===void 0?!0:p;E=Number(E)*1E3;var U=Math.round((0,_.eu)()),x=U.toString();t={innertubeResponse:t,serverDateTimestampMs:x,lastModifiedTimestampMs:x,expireTimestampMs:(U+E).toString(),isProcessed:p};if(p=_.qO("INNERTUBE_CONTEXT_CLIENT_NAME"))t.clientName=p;return t};
K1$=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++$Ij};
vG$=function(t){return!isNaN(t)&&t>0};
S3l=function(){_.r("web_adaptive_repeat_ase")&&y_E&&_.MW("applicationStarted",y_E)};
_.c_8=function(){var t=_.vV(),E=_.yL();E&&t&&_.iU(E,[t],!0)};
ES_=function(t){return t&&t60.some(function(E){return t.includes(E)})};
M6$=function(t){var E=_.k(t,_.kX);if(!E)return!1;var p=E.url,U=E.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!p)return _.bV(Error("Ah")),!1;if(E.target==="TARGET_NEW_WINDOW"){E={};_.r("resolve_url_parent_tracking_params")&&(!_.ua(p)||J6(window.location.href,p))&&(E={endpoint:t,itct:t.clickTrackingParams});vfO(E);t=null;try{if(U){a:{var x=p,A=E;U=U===void 0?!1:U;A&&_.RK(x,A);var m=_.S8(x),b=_.$I(m);x!=b&&_.Ra(Error("Zf`"+x));x=b;try{if(U){b=x;b=WdD(b);UU(b);t=_.b0(window,b,"_blank",
"attributionsrc");break a}}catch(Q){_.fR(Q)}UU(x);t=_.b0(window,m,"_blank")}pbj(_.X3().resolve(U58),t,p);return!0}}catch(Q){_.bV(Q)}_.RK(p,E);E={target:"_blank",noopener:!1};m=window;b=Ww(p)?p:_.S8(typeof p.href!="undefined"?p.href:String(p));U=self.crossOriginIsolated!==void 0;t="strict-origin-when-cross-origin";window.Request&&(t=(new Request("/")).referrerPolicy);x=E.noreferrer;if(U&&x&&t==="unsafe-url")throw Error("we");t=x&&!U;x=E.target||p.target;A=[];var f=[],B=!1;for(V in E){var R=E[V];switch(V){case "width":case "height":case "top":case "left":A.push(V+
"="+R);break;case "target":break;case "noopener":case "noreferrer":R?f.push(V):(B=!0,f.push(V+"=false"));break;case "attributionsrc":A.push(V+(R?"="+R:""));break;default:A.push(V+"="+(R?1:0))}}var V=x!==void 0&&!["_blank","_self","_top","_parent",""].includes(x);V=JD()&&V;x5E&&U&&A.length===0&&f.length>0&&!V&&!B?(f.length===2&&(f=["noreferrer"]),_.b0(m,b,x,f[0]),t=ARj()):(V=A.join(","),_.XO()&&m.navigator&&m.navigator.standalone&&x&&x!="_self"?(V=_.Gg("A"),pB(V,b),V.target=x,t&&(V.rel="noreferrer"),
((E=E.attributionsrc)||E==="")&&V.setAttribute("attributionsrc",E),E=document.createEvent("MouseEvent"),E.initMouseEvent("click",!0,!0,m,1),V.dispatchEvent(E),V=ARj()):t?(V=_.b0(m,"",x,V),m=_.$I(b),V&&(V.opener=null,m===""&&(m="javascript:''"),m='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+X0(m)+'">',m=xk(m),(E=V.document)&&E.write&&(E.write(A9(m)),E.close()))):((V=_.b0(m,b,x,V))&&E.noopener&&(V.opener=null),V&&E.noreferrer&&(V.opener=null)),t=V);pbj(_.X3().resolve(U58),
t,p);return!0}V=_.LR(p);V=ES_(V)||p==="https://studio.youtube.com/";if(_.ua(p)&&!J6(window.location.href,p)||V)UU(p),$T(),_.xR(p,void 0,void 0,window.top,Ypi);else return _.qW(new _.cC("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",t)),!1;return!0};
_.ini=function(t,E){E=E===void 0?0:E;if(!(_.k(t,m5_)||_.k(t,bnL)||_.k(t,_.kX)&&_.k(t,_.kX).url))return!1;var p,U=(p=_.k(t,_.kX))==null?void 0:p.url;p=U?{externalLinkData:{url:U}}:null;return _.Pu().clickCommand(t,p,E)};
HnE=function(t,E,p,U,x){x=x===void 0?{}:x;return function(A){var m,b;var f=((m=t.loggingDirectives)==null?0:(b=m.clientVeSpec)==null?0:b.uiType)?_.h8(t.loggingDirectives.clientVeSpec.uiType):void 0;x.clickedVisualElement||(x.clickedVisualElement=f);f=qp0(t,E);p(f,A);f=_.M(f);for(m=f.next();!m.done;m=f.next()){m=m.value;b=U;var B=A,R=x;R.form?R.form.event=B:R.form={element:b,event:B};NA(m,R)}}};
qp0=function(t,E){var p=[];E?(t.toggledCommand&&p.push(t.toggledCommand),t.toggledServiceEndpoint&&p.push(t.toggledServiceEndpoint)):(t.defaultCommand&&p.push(t.defaultCommand),t.defaultServiceEndpoint&&p.push(t.defaultServiceEndpoint),t.defaultNavigationEndpoint&&p.push(t.defaultNavigationEndpoint));return p};
fIO=function(t,E){var p=t.toggledStyle||t.style,U;switch((U=E?p:t.style)==null?void 0:U.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"}}};
_.an=function(){return _.q(function(t){return t.nextAddress==1?t.yield(_.X3().resolve(_.gG),2):t.return(_.X3().resolve(BqE)())})};
_.ew=function(){return _.X3().resolve(BqE)()};
_.F0=function(){return{lottieEl:void 0}};
wbJ=function(t,E){return t.startsWith(E.uniqueId)};
R6Y=function(t){var E,p;_.q(function(U){if(U.nextAddress==1)return U.yield(_.an(),2);E=U.yieldResult;if((p=E)==null||!p.addEventListener)return zE(),U.return();E.addEventListener("onCueRangeEnter",t);_.Do(U)})};
V6E=function(t){var E,p;_.q(function(U){if(U.nextAddress==1)return U.yield(_.an(),2);E=U.yieldResult;if((p=E)==null||!p.removeEventListener)return zE(),U.return();E.removeEventListener("onCueRangeEnter",t);_.Do(U)})};
QBE=function(t){var E,p,U,x,A;_.q(function(m){if(m.nextAddress==1)return m.yield(_.an(),2);E=m.yieldResult;if((p=E)==null||!p.addCueRange)return zE(),m.return();U=_.M(t.timings);for(x=U.next();!x.done;x=U.next())A=x.value,E.addCueRange(t.uniqueId+"-"+A,A/1E3,(A+100)/1E3);_.Do(m)})};
CMY=function(t){var E,p,U,x,A;_.q(function(m){if(m.nextAddress==1)return m.yield(_.an(),2);E=m.yieldResult;if((p=E)==null||!p.removeCueRange)return zE(),m.return();U=_.M(t.timings);for(x=U.next();!x.done;x=U.next())A=x.value,E.removeCueRange(t.uniqueId+"-"+A);_.Do(m)})};
jBD=function(){var t,E,p;return _.q(function(U){if(U.nextAddress==1)return U.yield(_.an(),2);t=U.yieldResult;if((E=t)==null||!E.getPlayerState)return zE(),U.return();p=t.getPlayerState();return U.return(p===2)})};
zE=function(){_.qW(new _.cC("Smartimation player does not exist or is corrupted"))};
rRD=function(){try{var t;return(t=window.CSS)!=null&&t.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(E){return _.qW(new _.cC("Smartimation CSS.supports threw an error")),!1}};
ZnK=function(t,E,p,U,x){var A=t.playlistId?k7E:d5i;E=E();p=p();x=!!t.videoId&&x()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.Lb(E))return ue0({data:t,actionType:A,disabled:x},p);if(t.videoId&&U())return JRl({data:t,actionType:A,disabled:x});switch(E){case "TRANSFER_STATE_UNKNOWN":return JRl({data:t,actionType:A,disabled:x});case "TRANSFER_STATE_FAILED":return t.videoId?IIt({data:t,actionType:A,disabled:x}):gSi({data:t,actionType:A,disabled:x});case "TRANSFER_STATE_COMPLETE":return gSi({data:t,
actionType:A,disabled:x});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return ue0({data:t,actionType:A,disabled:x},p);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return t.videoId?IIt({data:t,actionType:A,disabled:x}):JRl({data:t,actionType:A,disabled:x});default:return JRl({data:t,actionType:A,disabled:x})}};
OnO=function(t,E){var p=t.onTapCommand,U=_.AJ(p);if(t.videoId&&_.k(U,_.lA))return _.k(U,_.lA).action=E,p;t.playlistId&&_.k(U,_.GE)&&(_.k(U,_.GE).action=E);return p};
JRl=function(t){var E=t.data;var p=t.actionType;t=t.disabled;return{text:XbO,iconType:"OFFLINE_DOWNLOAD",onTap:OnO(E,p.ACTION_ADD),disabled:t}};
ue0=function(t,E){var p=t.data;var U=t.actionType;t=t.disabled;var x="OFFLINE_DOWNLOAD";E>=0&&E<=.1?x="OFFLINE_DOWNLOADING_ZERO":E>.1&&E<=.3?x="OFFLINE_DOWNLOADING_TWENTY":E>.3&&E<=.5?x="OFFLINE_DOWNLOADING_FORTY":E>.5&&E<=.7?x="OFFLINE_DOWNLOADING_SIXTY":E>.7&&E<1?x="OFFLINE_DOWNLOADING_EIGHTY":E===1&&(x="OFFLINE_PIN");return{text:h6Y,iconType:x,onTap:OnO(p,U.ACTION_REMOVE_WITH_PROMPT),disabled:t}};
gSi=function(t){var E=t.data;var p=t.actionType;t=t.disabled;return{text:aI8,iconType:"OFFLINE_PIN",onTap:OnO(E,p.ACTION_REMOVE_WITH_PROMPT),disabled:t}};
IIt=function(t){var E=t.data;var p=t.actionType;t=t.disabled;return{text:e6K,iconType:"OFFLINE_DOWNLOAD",onTap:OnO(E,p.ACTION_RETRY),disabled:t}};
_.nd=function(t,E){var p=KR0();return _.KN(function(){p();return SZi(t,[_.Hv(E)||""])},{debugName:"LUZslf"},"Z105t")};
FNY=function(t){var E=_.nd(_.xz,function(){return t().videoId}),p=_.nd(_.Af,function(){return t().playlistId});
return function(){return t().videoId?E:t().playlistId?p:_.M(_.Py("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
z6i=function(t){var E=_.nd(Yz,function(){return t().videoId}),p=_.nd(_.W38,function(){return t().playlistId});
return function(){return t().videoId?E:t().playlistId?p:_.M(_.Py(0,void 0,"K4tgOc")).next().value}};
lIt=function(t){var E=_.nd(_.pe$,function(){return t().videoId});
return function(){return t().videoId?E:_.M(_.Py(!1,void 0,"Oaxwcf")).next().value}};
G7$=function(t){var E=_.nd(vt0,function(){return t().videoId});
return function(){return t().videoId?E:_.M(_.Py("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
nSE=function(){return{}};
_.PM_=function(t,E,p){return{submitForm:function(){var U,x,A,m;return _.q(function(b){if(b.nextAddress==1){U=Nq0(t());if(!U)return b.return();if(U.onSubmit)return D5$(E),U.onSubmit(),D5$(p),b.return();if(!U.submitConfig||!U.formData)return b.jumpTo(0);U.disableDuringSubmission&&sBY(t(),!0);D5$(E);return b.yield(LN0(U.submitConfig,U.formData()),3)}x=b.yieldResult;D5$(p);if(((A=x)==null?0:A.submitResult)&&((m=U)==null?0:m.onSubmitResult))U.onSubmitResult(x.submitResult);U.disableDuringSubmission&&sBY(t(),
!1);return b.return()})},
isValid:function(){var U=Nq0(t());if(U){var x;return!((x=U.isValid)==null||!x.call(U))}return!0},
isSubmitting:function(){var U,x;return!!((U=Nq0(t()))==null?0:(x=U.isSubmitting)==null?0:x.call(U))}}};
_.Nn=function(){if(!Tq8){var t=_.M(_.Py(new Map,void 0,"Y1XnBc"));Tq8=t.next().value;oSO=t.next().value}return Tq8};
_.WN$=function(t){oSO(new Map(t))};
Nq0=function(t){if(t)return _.Nn()().get(t)};
LN0=function(t,E){var p;return _.q(function(U){return U.nextAddress==1?E?(p=_.X3().resolve(_.OB($5E)))&&t.submitId?U.yield(p.submitForm(t.submitId,E,KNO,t.params,t.clickTrackingParams),2):U.return(Promise.reject(Error("Ch"))):U.return(Promise.reject(Error("Bh"))):U.return(U.yieldResult)})};
sBY=function(t,E){if(t){var p=_.Nn();p().set(t,Object.assign({},p().get(t),{isSubmitting:function(){return E}}));
_.WN$(p())}};
D5$=function(t){if(t){var E=_.X3().resolve(_.ei);E&&(t=_.AJ(t()))&&E.resolveCommand(t)}};
Sp_=function(t,E){E=E===void 0?{shouldPersist:!0}:E;return{useUpdatableData:function(p,U){var x=_.KN(function(){return t(p())},void 0,"Gmrblb"),A=vSO(p,x,U,E);
_.M$(function(){if(x()!=null){yRl.set(x(),A);var m=x();_.iK(function(){yRl.delete(m)})}},"j4hx9b");
return A},
getData:function(p){var U;return(U=yRl.get(t(p)))==null?void 0:U[0]()},
updateData:function(p,U){p=t(p);p=yRl.get(p);if(!p)return!1;var x=_.M(p);p=x.next().value;x=x.next().value;U=U(p());x(U);return!0}}};
vSO=function(t,E,p,U){U=U===void 0?{}:U;var x=_.M(_.j5(function(){var b=t(),f=E();return cRt(b,f,p,U)})),A=x.next().value,m=x.next().value;
return[A,function(b){m(b);var f=E();if(U.shouldPersist&&f!=null){var B,R=(B=p==null?void 0:p.map(function(V){return V()}))!=null?B:[];
_.Dq.set(f,[b,R])}}]};
cRt=function(t,E,p,U){U=U===void 0?{}:U;if(E==null||!U.shouldPersist)return t;U=_.Dq.get(E);if(!U)return t;var x=_.M(U);U=x.next().value;var A=x.next().value,m;x=(m=p==null?void 0:p.map(function(b){return b()}))!=null?m:[];
if((A==null?0:A.length)&&(p==null?0:p.length)&&x.some(function(b,f){return b!==A[f]}))return _.Dq.remove(E),t;
(p==null?0:p.length)&&_.Dq.set(E,[U,x]);return U};
tP$=function(t){var E=_.M(_.Py(!0,void 0,"bKtO6d")),p=E.next().value;E.next();return function(){var U=Lw(t.children());return _.H(_.w,{cond:p,then:function(){return U},
else:t.fallback})}()};
_.sY=function(t){var E=E0O(t),p=E.data,U=E.mapping,x=E.wrapper;E=E.pendingFallback;var A=function(){return ptL(_.Hv(p))},m=function(){var b=A(),f=[];
b=_.M(b);for(var B=b.next();!B.done;B=b.next()){var R=void 0;B=B.value;var V=void 0;for(R in B)if(!(!B).hasOwnProperty(R)){V=R;break}(R=V)&&f.push(R)}return f};
return t.data?_.H(tP$,{fallback:E},function(){return _.H(_.yG,{each:m},function(b,f){var B=x?function(d){return x(function(){return U[b](d,f)},R,f)}:function(d){return U[b](d,f)};
B.debugName||(B.debugName=String(b));if(!U[String(b)])return document.createComment("");B.componentType!==SK&&UDL(String(b));var R=xD8(A,b,f);if(_.r("web_add_microtask_to_stamper")&&!APL.has(String(b))){var V=_.M(_.Py(!1,void 0,"afb1md")),Q=V.next().value,C=V.next().value;Promise.resolve().then(function(){APL.add(String(b));C(!0)});
return _.H(_.w,{cond:Q,then:function(){return _.H(B,{data:R})}})}return _.H(B,{data:R})})}):_.H(_.Oj,null)};
E0O=function(t){var E=t.targetId||YfD(t.children);if(!t.data||!E)return Object.assign({},t,{mapping:t.children});var p="stamper-"+MPi++,U=function(){var b;return(b=typeof t.targetId==="function"?t.targetId(p):t.targetId)!=null?b:p};
E=_.M(mDO(function(){var b=ptL(t.data());b.targetId=U;return b})).next().value;
var x=Object.assign({},(_.X3().resolve(_.OB(bpj))||{}).replaceableMapping,t.children);if(t.replacementWrapper){var A=x.notificationTextRenderer,m=x.notificationMultiActionRenderer;A&&(x.notificationTextRenderer=function(b,f){return t.replacementWrapper(A({data:b.data},f))});
m&&(x.notificationMultiActionRenderer=function(b,f){return t.replacementWrapper(m({data:b.data},f))})}return Object.assign({},t,{data:E,
mapping:x,wrapper:function(b,f,B){return zlE({targetId:U,stamperIndex:B},t.wrapper?function(){return t.wrapper(b,f,B)}:b)}})};
xD8=function(t,E,p){var U;return _.KN(function(){var x=t()[p()];if(x)U=x[E];else return _.qW(new _.cC("Stamper failed to find "+String(E)+" at index "+p()+" of data array of length "+(t().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),U;return x[E]},void 0,"Su9U8")};
YfD=function(t){t=_.M(Object.keys(t));for(var E=t.next();!E.done;E=t.next())if(E=E.value,ipE.includes(E)||qfJ.includes(E)||HpD.includes(E))return!0;return!1};
ptL=function(t){return t?Array.isArray(t)&&t instanceof Array?t:[t]:[]};
UDL=function(t){if(_.r("web_enable_renderer_logger")){var E;(E=_.X3().resolve(_.OB(fEJ)))!=null&&E.loggingEnabled&&!E.ids.has(t)&&E.ids.add(t)}};
BOE=function(){var t,E;return(E=(t=_.X3().resolve(_.OB(_.Ld)))==null?void 0:t())!=null?E:!1};
RVJ=function(t,E){t=t===void 0?wtt:t;switch(E.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},t,{isOpen:E.payload});default:return t}};
Qkt=function(t,E){t=t===void 0?VP$:t;switch(E.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},t,{isAllowed:E.payload});default:return t}};
jkO=function(t,E){t=t===void 0?CqO:t;switch(E.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},t,{errorMessage:E.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},t,{title:E.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},t,{privacy:E.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},t,{isDisabled:E.payload});default:return t}};
kKY=function(t,E){t=t===void 0?rPO:t;switch(E.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},t,{isOpen:E.payload});default:return t}};
uZt=function(t,E){t=t===void 0?dDt:t;switch(E.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},t,{isFullscreen:E.payload});case "SET_NAVIGATION_BUTTON":var p=E.payload.targetId,U=Object.assign({},t.navigationButtons);U[p]=E.payload.button;return Object.assign({},t,{navigationButtons:U});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},t,{topPanelId:E.payload});case "SET_SECONDARY_HEADER":return p=E.payload.panelId,U=Object.assign({},t.secondaryHeader),U[p]=E.payload.secondaryHeader,
Object.assign({},t,{secondaryHeader:U});default:return t}};
ZpO=function(){return xx(Object.assign({},{voiceSearch:rsi,engagementPanel:uZt,bottomSheet:RVJ,cinematicSetting:Qkt,shorts:OZ_,drawerLayout:kKY,createPlaylist:jkO,locationCollection:JPj,reportChannel:IEj,reportForm:g0O},XJD))};
OpK=function(t,E){_.ir.addLowPriorityJob(function(){var p,U,x;return _.q(function(A){switch(A.nextAddress){case 1:return _.aR(A,2),A.yield(mo0(),4);case 4:return A.yield(fetch(t),5);case 5:return p=A.yieldResult,A.yield(p.json(),6);case 6:U=A.yieldResult;oC.set(t,U);requestAnimationFrame(function(){E(U)});
_.r7(A,0);break;case 2:x=_.nB(A),_.qW(x),_.Do(A)}})})};
Xt$=function(t){var E={animationConfig:{},listeners:{}},p=function(){t(!0)};
E.listeners.data_failed=p;E.listeners.error=p;E.listeners.data_ready=function(){t(!1)};
return E};
eV$=function(t){var E=t.model;var p=t.subscribed;var U=t.isOverlay;var x=t.element;var A=t.commandController;var m=t.notificationState;if(p){var b,f;var B=(E==null?void 0:(b=E.buttonStyle)==null?void 0:b.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:E==null?void 0:(f=E.unsubscribeButtonContent)==null?void 0:f.buttonText}else{var R;B=E==null?void 0:(R=E.subscribeButtonContent)==null?void 0:R.buttonText}a:{var V;switch(E==null?void 0:(V=E.buttonStyle)==
null?void 0:V.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":b="S";break a;default:b="M"}}a:if(U)U="overlay";else switch(E.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":U="overlay";break a;default:U="mono"}a:if(p)var Q="tonal";else switch((Q=E.buttonStyle)==null?void 0:Q.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":Q=
"tonal";break a;default:Q="filled"}return{style:U,type:Q,state:E.disableSubscribeButton?"disabled":"active",size:b,focused:t.focused,toggled:p,accessibilityLabel:hV0(E,p,m),buttonText:B,iconPosition:E.disableNotificationBell?"none":"leading-trailing",onTap:aEi(E,p,x,A),disableTextEllipsis:!!t.disableTextEllipsis}};
aEi=function(t,E,p,U){return function(x){if(E){var A;var m=t.disableNotificationBell?_.AJ(t==null?void 0:(A=t.unsubscribeButtonContent)==null?void 0:A.onTapCommand):_.AJ(t==null?void 0:t.onShowSubscriptionOptions)}else{var b;m=_.AJ(t==null?void 0:(b=t.subscribeButtonContent)==null?void 0:b.onTapCommand)}m&&NA(m,{form:{element:p==null?void 0:p.value},commandController:U});x.stopPropagation()}};
hV0=function(t,E,p){if(E){if(t==null?0:t.disableNotificationBell){var U;return t==null?void 0:(U=t.unsubscribeButtonContent)==null?void 0:U.accessibilityText}switch(p){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var x;return t==null?void 0:(x=t.bellAccessibilityData)==null?void 0:x.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var A;return t==null?void 0:(A=t.bellAccessibilityData)==null?void 0:A.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var m;return t==null?void 0:(m=
t.bellAccessibilityData)==null?void 0:m.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var b;return t==null?void 0:(b=t.bellAccessibilityData)==null?void 0:b.disabledLabel;default:var f;return t==null?void 0:(f=t.unsubscribeButtonContent)==null?void 0:f.accessibilityText}}else{var B;return t==null?void 0:(B=t.subscribeButtonContent)==null?void 0:B.accessibilityText}};
FZl=function(t,E){return _.hj(t.entities,"subscriptionStateEntity",E)};
zVK=function(t,E){return _.hj(t.entities,"subscriptionNotificationStateEntity",E)};
lEt=function(t,E){return _.hj(t.entities,"upcomingEventReminderStateEntity",E)};
GKO=function(t,E){return _.hj(t.entities,"commentEntityPayload",E)};
n0Y=function(t,E){return _.hj(t.entities,"engagementToolbarSurfaceEntityPayload",E)};
NOL=function(t,E){return _.hj(t.entities,"triStateButtonStateEntityPayload",E)};
DD8=function(t,E){return _.hj(t.entities,"commerceCartCheckoutButtonEntity",E)};
ski=function(t,E){return _.hj(t.entities,"commandEntity",E)};
LZt=function(t){if(t){switch(t){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":t="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":t="NOTIFICATIONS_OFF";break;default:t="NOTIFICATIONS_NONE"}return t}};
PqO=function(t,E,p){p.subscribed!==E&&((p=p.key)&&_.Vl(_.P9("subscriptionStateEntity",p,{key:p,subscribed:E})),t.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:E})),E||_.du(t,"yt-unsubscribe-action"))};
o0D=function(t){t=_.k(_.AJ(t),_.TE);var E,p,U,x;return(x=_.k(t==null?void 0:(E=t.panelLoadingStrategy)==null?void 0:(p=E.inlineContent)==null?void 0:(U=p.sheetViewModel)==null?void 0:U.content,TOi))==null?void 0:x.listItems};
WZj=function(t,E){if(t.onShowSubscriptionOptions&&E&&(t=o0D(t.onShowSubscriptionOptions),t!=null&&t.length)){var p=LZt(E);t.forEach(function(U){U=_.k(U,_.on);var x,A,m,b,f=U==null?void 0:(x=U.leadingImage)==null?void 0:(A=x.sources)==null?void 0:(m=A[0])==null?void 0:(b=m.clientResource)==null?void 0:b.imageName;U&&f&&(U.isSelected=f===p)})}};
$Dl=function(t,E,p,U){E&&p?t.style.width=p+"px":!E&&U&&(t.style.width=U+"px")};
KZi=function(t,E,p){var U;(U=t.lottieEl)==null||U.goToAndPlay(0);var x;(x=E.lottieEl)==null||x.goToAndPlay(0);_.W9(_.ir,function(){var A;(A=p.lottieEl)==null||A.goToAndPlay(0)},300)};
v0l=function(t){return!(t==null||!t.iconName||(t==null?0:t.title))};
yP_=function(t,E,p,U){p&&_.ir.cancelJob(p);p=_.ir.addLowPriorityJob(function(){U(void 0)},5E3);
U(p);E&&t!==(E.likeStatus==="LIKE")&&E.key&&_.Vl(_.P9("likeStatusEntity",E.key,{key:E.key,likeStatus:t?"LIKE":"INDIFFERENT",hadUserInteraction:t}))};
_.Sf_=function(t,E){return _.hj(t.entities,"accountLinkStatusEntity",E)};
cPt=function(t,E){return _.hj(t.entities,"hatsSurveyEntity",E)};
tDj=function(t,E){return _.hj(t.entities,"hatsSurveyStateEntity",E)};
EQj=function(t,E){return _.hj(t.entities,"quantityIncrementerEntity",E)};
phO=function(t){switch(t){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}};
UNO=function(t){switch(t){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}};
xNO=function(t){switch(t){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"}};
_.Ysj=function(t){var E=_.z3("web_generic_client_event_wait_period ",0);E||(E=3E5);var p=AmO.get(t);!_.r("enable_web_client_experiment_event_timeout_killswitch")&&p&&(0,_.eu)()-p<E||(AmO.set(t,(0,_.eu)()),_.MW("genericClientExperimentEvent",{eventType:t}))};
_.MD_=function(t,E){var p,U,x,A;a:{var m=t.style;if(m===void 0)m=17;else switch(m){case "LIVE":m=18;break a;default:m=17}}return{type:m,text:E?Mp0({seconds:E}):_.R4(t.text),accessibilityText:(p=t.text)==null?void 0:(U=p.accessibility)==null?void 0:(x=U.accessibilityData)==null?void 0:x.label,icon:(A=t.icon)==null?void 0:A.iconType}};
mNE=function(t){switch(t){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
b9L=function(t){if(!t)return"";var E,p=(E=_.X3().resolve(_.OB(_.Ld)))==null?void 0:E(),U;if(!p&&((U=t.vibrantColorPalette)==null?0:U.iconInactiveColor))return t2(t.vibrantColorPalette.iconInactiveColor,"1");var x;return p&&((x=t.darkColorPalette)==null?0:x.iconInactiveColor)?t2(t.darkColorPalette.iconInactiveColor,"1"):t.color?t2(t.color,"1"):t.sampledThumbnailColor?(t=t.sampledThumbnailColor,"rgba("+t.red+","+t.green+","+t.blue+");"):""};
_.$1=function(t,E){if(!t.includes("DATE_PLACEHOLDER"))return t;var p=new Date(0);p.setUTCSeconds(E);return t.replace("DATE_PLACEHOLDER",i9Y(p))};
qs$=function(t,E,p){return function(U){var x=t.command;x&&(NA(x,{form:{element:p}}),E([x],U))}};
fAO=function(t,E,p,U,x){return function(A){var m=H90(t,E);m&&NA(m,{form:{element:p},commandController:U});x&&A.stopPropagation()}};
H90=function(t,E){if(t.signInEndpoint&&!_.r("web_subscribe_sign_in_endpoint_killswitch"))return t.signInEndpoint;if(E){if(t.serviceEndpoints)return t.serviceEndpoints[1];if(t.onUnsubscribeEndpoints)return t.onUnsubscribeEndpoints[0]}else{if(t.serviceEndpoints)return t.serviceEndpoints[0];if(t.onSubscribeEndpoints)return t.onSubscribeEndpoints[0]}};
BRK=function(t,E){var p,U,x,A;E=E&&((p=t.unsubscribeAccessibility)==null?void 0:(U=p.accessibilityData)==null?void 0:U.label)||((x=t.subscribeAccessibility)==null?void 0:(A=x.accessibilityData)==null?void 0:A.label);return t.longSubscriberCountText?[E,_.R4(t.longSubscriberCountText)].filter(function(m){return m}).join(" "):E};
Kd=function(t,E){return E||(t==null?0:t.isChannelDelegate)?"disabled":"active"};
wh$=function(t,E){var p;switch((p=t.style)==null?void 0:p.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:Kd(t)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:Kd(t)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:Kd(t,!0)};case "OVERLAY":return E?{style:"overlay",type:"tonal",state:Kd(t)}:{style:"overlay",type:"filled",state:Kd(t)};default:return E?{style:"mono",type:"tonal",state:Kd(t)}:{style:"mono",type:"filled",state:Kd(t)}}};
_.v9=function(){for(var t=[],E=_.M(_.t9.apply(0,arguments)),p=E.next();!p.done;p=E.next())if(p=p.value)if(typeof p==="string")t.push(p);else{p=_.M(Object.entries(p));for(var U=p.next();!U.done;U=p.next()){var x=_.M(U.value);U=x.next().value;(x=x.next().value)&&t.push(U)}}return t.join(" ")};
R0K=function(t){switch(t){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
VDj=function(t){switch(t){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
Q3l=function(t,E){var p=t.map(function(U){return U.toString()});
return _.aC(function(U){if(p.includes(U.key)){E&&U.preventDefault();var x;(x=U.currentTarget)==null||x.click()}})};
_.Cy8=function(){return Q3l(["Enter"])};
_.j3E=function(){return Q3l(["Enter"," "],!0)};
_.yb=function(t){if(t.composedPath)return t.composedPath();if(!t.__composedPath){for(var E=[],p=t.target;p;)E.push(p),p=p.parentNode;E.push(window);t.__composedPath=E}return t.__composedPath};
_.Sw=function(t,E,p){t=_.M(t);for(var U=t.next();!U.done;U=t.next()){U=U.value;if(U===E)break;for(var x=_.M(p),A=x.next();!A.done;A=x.next())if(A=A.value,U.tagName===A||U.role==="button"&&A==="BUTTON")return!0}return!1};
kjj=function(t,E){var p,U=(p=E.observer)!=null?p:_.X3().resolve(hH);if(t){p=rmj(t);var x=[];E.showOption&&x.push(U.observe(t,function(){E.visibilityCallback(!0,t)},E.showOption));
E.hideOption&&x.push(U.observe(t,function(){E.visibilityCallback(!1,t)},E.hideOption));
E.prescanOption&&E.prescanCallback&&x.push(U.observe(t,function(){E.prescanCallback()},E.prescanOption));
var A;p.visibilityMonitorKeys=((A=p.visibilityMonitorKeys)!=null?A:[]).concat(x)}};
rmj=function(t){var E;return(E=t.polymerController)!=null?E:t};
_.te=function(t){return!!_.c9(t)};
_.EX=function(t,E,p,U,x){return function(A){var m=Faj();_.M$(function(){if(A){dNO(A,t(),x);var b=umO(A,t(),E,p,U,m);_.iK(b)}},"lrewVd")}};
dNO=function(t,E,p){var U=JmY(E),x=IAO(E),A=U&&XI8,m=x&&OKO;(U||x)&&kjj(t,{visibilityCallback:function(b){var f=_.X3().resolve(_.ei);b&&U?(f.resolveCommand(U,{form:{element:p?t:void 0},disableClickTracking:!0}),U=JmY(E)):!b&&x&&(f.resolveCommand(x,{form:{element:p?t:void 0},disableClickTracking:!0}),x=IAO(E))},
showOption:A,hideOption:m})};
umO=function(t,E,p,U,x,A){var m=new Map;if(E=_.c9(E)){var b;t=(U==null?void 0:(b=U.onTap)==null?void 0:b.value)||t;p=gQi(E,t,p==null?void 0:p.onTap,x,A);t.addEventListener("click",p);m.set("click",p)}return function(){for(var f=_.M(m),B=f.next();!B.done;B=f.next()){var R=_.M(B.value);B=R.next().value;R=R.next().value;t.removeEventListener(B,R)}}};
_.c9=function(t){var E;return(t=(E=_.k(t,_.p$))==null?void 0:E.onTap)&&_.AJ(t)};
JmY=function(t){var E;return(t=(E=_.k(t,_.p$))==null?void 0:E.onVisible)&&_.AJ(t)};
IAO=function(t){var E;return(t=(E=_.k(t,_.p$))==null?void 0:E.onHidden)&&_.AJ(t)};
gQi=function(t,E,p,U,x){var A=function(b){_.X3().resolve(_.ei).resolveCommand(t,b)},m=function(b){U&&_.Sw(_.yb(b),E,U)||A(b.target?{form:{element:b.target,
sourceData:t,mutationContext:x}}:void 0)};
p&&(m=function(b){p(b,A)});
return m};
Z9J=function(t){switch(t){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}};
O9_=function(t){var E=t.numAvatarsInCluster;switch(t.clusterSize){case "small":return E===2?22:18;case "40":return E===2?24:22;default:return E===2?24:20}};
XhJ=function(t,E){return function(p){var U=Object.keys(E);_.M$(function(){if(t!=null&&t()){for(var x=_.M(U),A=x.next();!A.done;A=x.next())A=A.value,p.addEventListener(A,E[A]);_.iK(function(){for(var m=_.M(U),b=m.next();!b.done;b=m.next())b=b.value,p.removeEventListener(b,E[b])})}},"bXZGfe")}};
h08=function(t){switch(O9_(t)){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""}};
aAi=function(t){switch(t){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""}};
e00=function(t){switch(O9_(t)){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""}};
FyO=function(t){switch(t){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""}};
z0K=function(t){switch(t){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}};
lAO=function(t){return t==="medium"||t==="48"||t==="large"||t==="extra-large"||t==="extra-extra-large"||t==="giant"};
Gjl=function(t){return!!((t==null?0:t.includes(3))||(t==null?0:t.includes(5)))};
NRl=function(t){var E=t.data;return{size:nQi(E.avatarImageSize),type:E.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:t.onTap,decorations:t.decorations||[],badgeText:t.badgeText,accessibilityText:t.accessibilityText,avatarButtonCustomClassName:t.avatarButtonCustomClassName,clusterLayoutConfig:t.clusterLayoutConfig}};
nQi=function(t){switch(t){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"}};
DNl=function(t){switch(t){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}};
s3O=function(t){switch(t){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""}};
LyD=function(t){var E=t.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",p,U=t.avatars&&t.avatars.length>0?(p=_.k(t.avatars[0],_.UX))==null?void 0:p.avatarImageSize:"AVATAR_SIZE_UNKNOWN";p=DNl(U)||0;if(E){var x,A=(x=t.avatarClusterSize)!=null?x:"AVATAR_SIZE_M";E=DNl(A);var m,b,f=Math.min((b=(m=t.avatars)==null?void 0:m.length)!=null?b:0,4),B;return{avatars:((B=t.avatars)==null?void 0:B.slice(0,4))||[],avatarSizeInPx:p,avatarStackStyle:{width:E+"px",height:E+"px",position:"relative"},avatarStyle:function(V){var Q=
O9_({clusterSize:nQi(A),numAvatarsInCluster:f,avatarIndex:V});var C=DNl(A);f===3&&V===2?(C=(C-Q)/2,C=(_.qO("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*C):C=void 0;return{position:"absolute",top:f===2&&V===1||f===3&&V===2||f===4&&V>=2?"0":void 0,bottom:f===2&&V===0||f>2&&V<2?"0":void 0,left:f===2&&V===1||f>2&&(V===1||V===3)?"0":void 0,right:f<=3&&V===0||f===4&&(V===0||V===2)?"0":void 0,transform:C?"translateX("+C+"px)":void 0,width:Q+"px",height:Q+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(V){return{clusterSize:nQi(t.avatarClusterSize),numAvatarsInCluster:f,avatarIndex:V}},
avatarButtonCustomClassName:void 0}}var R;return{avatars:((R=t.avatars)==null?void 0:R.slice())||[],avatarSizeInPx:p,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:s3O(U),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
Py0=function(t,E,p){return function(){NA(t,{form:{element:E},commandController:p})}};
TRO=function(t){switch(t){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
oQL=function(t){switch(t){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"}};
Wy_=function(t){if("accessibilityText"in t)return t.accessibilityText||"";if("title"in t){var E,p,U;return((E=t.title)==null?void 0:(p=E.accessibility)==null?void 0:(U=p.accessibilityData)==null?void 0:U.label)||""}if("accessibility"in t){var x,A;return((x=t.accessibility)==null?void 0:(A=x.accessibilityData)==null?void 0:A.label)||""}return""};
$N_=function(t){return"inlinePlayerData"in t};
xj=function(t){return new KyE(t)};
vQ0=function(t){switch(t){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"}};
ymK=function(t){switch(t){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;case "BADGE_MEDIA":return 1;case "BADGE_TIMELY":return 5;default:return 0}};
Ss8=function(t){switch(t){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}};
cmt=function(t){return function(E){t&&(t.thumbnailElRef=E.thumbnailElRef,t.thumbnail=E.thumbnail,t.thumbnailOverlays=E.thumbnailOverlays,t.thumbnailSize=E.thumbnailSize)}};
tnE=function(t){switch(t){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
poK=function(t){var E=_.M(_.Py(!1,void 0,"E6wDDe")),p=E.next().value,U=E.next().value;_.A6(function(){var x=t==null?void 0:t();if(x){var A=_.X3().resolve(_.OB(EK0));if(A){var m={triggeringElement:x,onDwellTriggeredFn:function(){U(!0)},
onDwellEndFn:function(){U(!1)}};
A.registerElement(m);_.iK(function(){_.Ae(A,m)})}}});
return p};
Uri=function(t,E,p){p?p(E):_.bz(E,t.target?{form:{element:t.target}}:void 0)};
_.Yj=function(t,E,p,U){return function(x){_.M$(function(){function A(R){R=R.composedPath();R=_.M(R);for(var V=R.next();!V.done;V=R.next()){V=V.value;if(V===x)break;if(V.className.indexOf("HostIsClickableAdComponent")>=0||V.tagName==="A".toString()||V.tagName==="BUTTON".toString())return!0}return!1}
var m=new Map,b,f=(b=t())==null?void 0:b.onTap;if(f){b=function(R){A(R)||Uri(R,f,E)};
var B=function(R){A(R)||R.key!=="Enter"||Uri(R,f,E)};
(p==null?0:p())||_.r("enable_web_home_top_landscape_image_layout_level_click")?(x.addEventListener("tap",b),m.set("tap",b)):(x.addEventListener("click",b),m.set("click",b));if(U==null?0:U())x.addEventListener("keydown",B),m.set("keydown",B)}_.iK(function(){for(var R=_.M(m),V=R.next();!V.done;V=R.next()){var Q=_.M(V.value);V=Q.next().value;Q=Q.next().value;x.removeEventListener(V,Q)}})},"D7XqOc")}};
xrO=function(t,E){var p,U=(p=t.interaction)==null?void 0:p.onTap;if(t=_.MA({elementsCommand:U,forceNewState:!0,skipOnClick:!0}))return t.onclick=function(x){fr0(x)&&(x.preventDefault(),U&&Uri(x,U,E))},mh(t)?t:void 0};
A$K=function(t){switch(t){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
Yo0=function(t){switch(t){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"}};
MnO=function(t){switch(t){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"}};
_.mr_=function(t){return _.r("rich_grid_enable_dynamic_offset")&&t?Math.max((t-_.z3("rich_grid_dynamic_offset_anchor_width",1300))/100*_.z3("rich_grid_dynamic_offset_offset_per_100",10),_.z3("rich_grid_dynamic_offset_lower_bound",-60)):0};
bA0=function(t,E){switch(E){case 4:return 16;case 1:return t<528?16:t<1024?32:48;case 2:return(t>=528?16:8)/2;case 3:return(t<528?16:t<1024?32:48)+(t>=528?16:8)/2;default:return 0}};
iAi=function(t){var E=t.originalContainerWidth;var p=t.sizing;var U=t.standardUnit;if(t.isCompactList&&E<528)return 1;switch(p){case "STANDARD":return U;case "COMPACT":return U+1;case "EXTRA_COMPACT":return _.r("web_responsive_extra_compact_2x")?U*2:_.r("web_responsive_current")?U===1?2:U%2===0?U/2*3:U+2:U<4?U*2:Math.ceil(U*3/2);case "MINI":return U>1?U*2:3;default:return U}};
HAO=function(t){var E=t.containerWidth;var p=t.peek;var U=t.gutter;var x=t.numItems;t=t.ignoreMaxWidthLimit;E=p?Math.max((E-p-U*x)/x,0):Math.max((E-U*(x-1))/x,0);return t?E:Math.min(E,qoL)};
_.M6=function(t){var E=t.containerWidth;var p=t.hasPeek;var U=t.sizing;var x=t.marginSettings;var A=t.isCompactList;var m=t.enableFullBleedForSingleCol;var b=t.standardUnitMinWidth;U=U||"STANDARD";p=!!p;t=E>=528?16:8;var f=p?E>=528?48:24:0;x=bA0(E,x);var B=Math.max(E-x*2,0);b=_.r("kevlar_disable_min_width_override")?void 0:b;b=Math.min(Math.max(Math.floor((B-f+t)/((b!=null?b:f$E)+_.mr_(E)+t)),1),6);var R=(m=!!m&&b===1)||b===1&&U!=="STANDARD";p=p||R?B:Math.min(B,(qoL+t)*b-t);U=iAi({originalContainerWidth:E,
sizing:U,standardUnit:b,isCompactList:A});return{itemWidth:HAO({containerWidth:p,peek:f,gutter:t,numItems:U,ignoreMaxWidthLimit:R}),gutter:t,maxContainerWidth:p,numItems:U,margin:m?0:x,contentMargin:bA0(E,1),typographyBump:HAO({containerWidth:p,peek:f,gutter:t,numItems:b,ignoreMaxWidthLimit:R})>400&&!(A&&E<528),standardUnit:b}};
mH=function(t){switch(t){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.BUE=function(t){if(t){var E;if((E=t.responsiveContainerConfiguration)==null?0:E.responsiveSize)return mH(t.responsiveContainerConfiguration.responsiveSize);if(t.layoutSizing)switch(t.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"}}};
woE=function(t){if(t.fullbleed)return 1;switch(t.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
jHD=function(t,E,p,U,x,A,m,b,f){a:if(t===4&&U==="LOCKUP_CONTENT_TYPE_SOURCE")var B=1;else switch(t){case 3:B=1;break a;default:B=0}var R=R3t(t,U);a:switch(t){case 4:A=!!(A&&A<100);break a;default:A=!1}a:switch(t){case 3:case 4:var V=U==="LOCKUP_CONTENT_TYPE_CHANNEL"||U==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:V=!1}return{metadataOnThumbnail:R,isOverlay:b||R,isCard:VnK(U,m),sizing:E!=null?E:"STANDARD",typographyBump:p!=null?p:!1,isTiny:A,isCentered:V,isCollection:QHO(U),arrangement:B,addMarginForFullbleed:t===
1&&U!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:t===1&&U==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:C_l(U,x,f),disableRounding:t===5||VnK(U,m)||t===1&&U==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:QHO(U)?2:0,useLegacyTypography:!(f==null||!f.useLegacyTypography),useRichGridLegacyTypography:!(f==null||!f.useRichGridLegacyTypography)&&!_.r("web_enable_typography_bump"),compactMetadata:B===0&&U==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:f==null?void 0:f.onFocusEffect,titleMaxLines:U==="LOCKUP_CONTENT_TYPE_AI_CARD"?
1:void 0}};
QHO=function(t){switch(t){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}};
VnK=function(t,E){if(E&&t==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(t){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
R3t=function(t,E){if(E==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(t){case 5:return!0;case 4:return!1;default:return!1}};
C_l=function(t,E,p){if(E&&(p==null||!p.alwaysRespectPodcastShowAspectRatio||t!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(t){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}};
_.b7=function(t){if(t){var E;return((E=_.X3().resolve(_.OB(_.Ld)))==null?0:E())?t.darkThemeImage:t.image}};
drj=function(t,E,p,U,x,A){if(x&&A&&E==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:x,height:A};if(!p)return{};x=p.size;p=p.allowFullWidth;if(E==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&p)return{fullWidth:!0};if(x===void 0)return{};switch(t){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:x,height:x};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:x,height:1/r$Y*x};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:x*
ky$,height:x};default:return(U==null?0:U.height)&&(U==null?0:U.width)?U.width/U.height>1?{maxWidth:x*ky$}:{maxWidth:x}:{maxWidth:x}}};
uTD=function(t){var E;return t&&((E=_.b7(t.themedImage))!=null?E:t.image)};
J$$=function(t){var E;return t==null?void 0:(E=t.sources)==null?void 0:E[0]};
I$i=function(t){switch(t){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"}};
_.gKO=function(t){if(t)return"content-id-"+t};
ZAO=function(t){switch(t.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"}}};
OA_=function(t){var E=_.i7.currentPageSubTypeSelector(_.Ro().getState())||"";return t?t+E:""};
Xot=function(t){switch(t){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
a$K=function(t){var E=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],p=_.M(_.Py(void 0,void 0,"JrqNsb")),U=p.next().value,x=p.next().value,A=_.M(_.Py(void 0,void 0,"rWytse"));p=A.next().value;var m=A.next().value;A=_.M(_.Py(void 0,void 0,"DHRqxe"));var b=A.next().value,f=A.next().value;return{touchFeedbackEvents:{pointerUpEvent:U,pointerDownEvent:p,pointerLeaveEvent:b},touchFeedbackOnPointerUp:_.aC(function(B){h3_(_.yb(B),E)||(x(B),m(void 0),f(void 0))}),
touchFeedbackOnPointerDown:_.aC(function(B){t==null||t(B);h3_(_.yb(B),E)||(m(B),x(void 0),f(void 0))}),
touchFeedbackOnPointerLeave:_.aC(function(B){h3_(_.yb(B),E)||(f(B),m(void 0),x(void 0))})}};
h3_=function(t,E){E=E===void 0?[]:E;E=[].concat(_.KB(E),["BUTTON".toString()]);t=_.M(t);for(var p=t.next();!p.done;p=t.next()){p=p.value;for(var U=_.M(E),x=U.next();!x.done;x=U.next())if(p.tagName===x.value)return!0}return!1};
e3E=function(t){switch(t){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"}};
Fct=function(t){return t.scrollHeight-t.offsetHeight>1};
z3O=function(t,E){var p;return fy(t,((p=t.content)==null?void 0:p.length)||0,!E)};
nKK=function(t,E,p,U,x,A){if(!E||l$$){var m;return fy(t,((m=t.content)==null?void 0:m.length)||0,!0)}E=U.value;if(!p.value||!E||!t.content)return t;p=0;U=t.content.length;m=0;GyO||(GyO=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var b=GyO;for(x=x*A*b;p<=U;)A=Math.floor(p+(U-p)/2),b=fy(t,A)||t,E.firstChild&&(E.firstChild.textContent=b.content),E.scrollHeight>x?U=A-1:(m=A,p=A+1);return fy(t,m)};
NU$=function(t,E){var p,U;return(((p=t.content)==null?void 0:p.length)||0)>(((U=E.content)==null?void 0:U.length)||0)};
Dr8=function(t,E,p,U,x,A){var m=_.EB("truncated-text-content"),b=_.EB("truncated-text-content"),f=_.EB("button"),B=_.EB("button"),R=_.EB("button"),V=_.X3().resolve(_.q6),Q=_.M(_.j5(function(){return z3O(t(),x())})),C=Q.next().value,d=Q.next().value;
Q=_.M(_.j5(function(){return NU$(t(),C())}));
var I=Q.next().value,O=Q.next().value,a=null;_.M$(function(){function F(){if(m.value&&f.value&&R.value){var W=A()?t():nKK(t(),x(),m,b,E(),p());d(W);requestAnimationFrame(function(){if(m.value&&f.value&&R.value){var K=Fct(m.value)||NU$(t(),W);O(K);if(!U()){var v=Fct(m.value),YL=p(),bY=m.value,kL=f.value,R0=R.value,j$=V==="rtl";if(bY&&kL){var lY=kL.offsetLeft;j$&&(lY=bY.offsetWidth-kL.offsetWidth-kL.offsetLeft);if(K){K=kL.offsetWidth;kL=bY.offsetWidth;var Tt=v?kL-K-70:lY-70;YL="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
YL+"rem,\n      #000 "+YL+"rem,\n      #000 100%), linear-gradient(\n      to "+((j$?"left":"right")+",\n      #000 0px,\n      #000 "+Tt+"px,\n      transparent "+(v?kL-K:Tt+70)+"px)");bY.style.setProperty("-webkit-mask-image",YL);bY.style.setProperty("mask-image",YL)}else bY.style.setProperty("-webkit-mask-image",""),bY.style.setProperty("mask-image","");v?j$?(R0.style.setProperty("left","0"),R0.style.setProperty("right","unset")):(R0.style.setProperty("left",""),R0.style.setProperty("right","0")):
j$?(R0.style.setProperty("left","unset"),R0.style.setProperty("right",lY+"px")):(R0.style.setProperty("left",lY+"px"),R0.style.setProperty("right","unset"))}}}})}}
var L,D;(L=a)==null||(D=L.stop)==null||D.call(L);L=new _.F5(F,17);F();a=L},"KjwIxd");
_.A6(function(){d(z3O(t(),x()));O(NU$(t(),C()));var F=function(){GyO=void 0;var D,W;(D=a)==null||(W=D.fire)==null||W.call(D)};
if(window.ResizeObserver){var L=new ResizeObserver(F);L.observe(m.value);_.iK(function(){var D,W;(D=a)==null||(W=D.stop)==null||W.call(D);L.disconnect()})}else window.addEventListener("resize",F),_.iK(function(){var D,W;
(D=a)==null||(W=D.stop)==null||W.call(D);window.removeEventListener("resize",F)})});
return{isTruncated:I,displayText:C,contentRef:m,hiddenRef:b,placeholderTruncationTextRef:f,hiddenTruncationTextRef:B,truncationTextRef:R}};
sHO=function(t){return{content:t!=null?t:""}};
LcO=function(t){return _.AJ(t.onTap)||_.c9(t.rendererContext)};
P_D=function(t){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:t.overflowMenuA11yLabel,onTap:function(E){E.preventDefault();E.stopPropagation();if(t.overflowMenuOnTap){var p=_.MA({elementsCommand:t.overflowMenuOnTap,forceNewState:!0});if(p==null?0:p.onclick)p.onclick(E)}}}};
_.HY=function(t,E,p,U,x){U=U===void 0?{}:U;if(!x||Math.random()<5E-4){E=E||null;p=p||null;t=t instanceof Error?t:new _.cC(t);if(t.args)for(var A=_.M(t.args),m=A.next();!m.done;m=A.next())m=m.value,m instanceof Object&&(U=Object.assign({},m,U));U.category="H5 Ads Control Flow";E&&(U.slot=E?"slot:  "+E.slotType:"");p&&(U.layout=p?"layout:  "+p.layoutType:"",U.layoutId=p.layoutId);x&&(U.known_error_aggressively_sampled=!0);t.args=[U];_.qW(t)}};
_.TU$=function(t,E){E=_.jL(E);_.du(t,"yt-open-popup-action",[E,t])};
_.f$=function(t,E){_.TU$(t,_.wN(E))};
WcE=function(t){if(!t)return"";if(oKK[t])return oKK[t];BY||(BY=_.Gg("A"));BY.href!==t&&pB(BY,t);var E=BY.pathname;oKK[t]=E.startsWith("/")?E:"/"+E;return oKK[t]};
$rj=function(){var t=WcE(window.location.href);if(t==="/")return"home";if(t.startsWith("/results"))return"search";if(t.startsWith("/watch"))return"watch";if(t.startsWith("/shorts"))return"shorts";if(t.startsWith("/hashtag"))return"hashtag";if(t.startsWith("/create_channel"))return"create_channel";if(t.startsWith("/@")||t.startsWith("/user/")||t.startsWith("/channel/"))return"channel";if(t.startsWith("/experiments"))return"experiments";if(t.startsWith("/sponsor_channel"))return"sponsorship";if(t.startsWith("/select_site"))return"settings";
if(t.startsWith("/locate"))return"locate";if(t.startsWith("/redeem"))return"redeem";if(t.startsWith("/musicpremium")||t.startsWith("/premium")||t.startsWith("/red"))return"premium";if(t.startsWith("/paid_memberships"))return"paid_memberships";if(t.startsWith("/oops"))return"oops";if(t.startsWith("/clip"))return"clip";var E;return(wX==null?void 0:(E=wX.response)==null?void 0:E.page)==="404"?"404":t.startsWith("/feed/history")?"history":t.startsWith("/feed/library")?"library":t.startsWith("/feed/subscriptions")?
"subscriptions":t.startsWith("/feed/trending")?"trending":t.startsWith("/feed/news_destination")?"news":t.startsWith("/playlist")?"playlist":t.startsWith("/minor_moment")?"minor_moment":t.startsWith("/playable/")||t.match("^/playables/(?!saved).")?"mini_app":t.startsWith("/playables")?"playables":t.startsWith("/create/live/join")?"open_in_app":t.startsWith("/feed/explore")?"explore":"browse"};
_.Vj=function(){var t=wX==null?void 0:wX.response,E=t==null?void 0:t.endpoint;if(!E)return(t==null?void 0:t.page)==="watch"?"watch":$rj();var p;t=(p=_.k(E==null?void 0:E.commandMetadata,_.hZ))==null?void 0:p.webPageType;p=!1;if(t&&!KcO.includes(t))switch(t){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 U;return((U=_.k(E==null?void 0:E.commandMetadata,_.hZ))==null?0:U.url)&&WcE(_.k(E.commandMetadata,_.hZ).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var x;return(E=(x=_.k(E,_.lC))==null?void 0:x.browseId)?vKt[E]||"browse":"browse";default:p=!0}if(_.k(E,_.RF)||_.k(E,y$_))return"sponsorship";x=WcE(window.location.href);if(x.startsWith("/experiments"))return"experiments";if(x.startsWith("/create_channel"))return"create_channel";
if(_.k(E,_.kX)&&x.startsWith("/shorts"))return"shorts";if(_.k(E,_.kX)&&x.startsWith("/watch"))return"watch";p&&(E=new _.cC("Unsupported mWeb page type",{pathname:x,webPageType:t}),_.bV(E));return"browse"};
Qj=function(t,E,p,U){return t&&E?t!==p||E!==U?(_.HY(Error("Lh"),void 0,void 0,{"stored-slot":t,"stored-layout":E,"latest-slot":p,"latest-layout":U}),!1):!0:!1};
c$O=function(t,E,p){return t({targetId:E},function(U){return p.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},U,{contents:[p.continuationItems?_.k(p.continuationItems[0],SoJ):{}]}):p.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},U,{header:p.continuationItems?p.continuationItems[0]:void 0}):Object.assign({},U,{contents:p.continuationItems?p.continuationItems:[]})})};
t0J=function(t,E,p,U){if(E=E.trackingParams){var x,A=(x=p.getScreenLayer)==null?void 0:x.call(p);p=_.yL(A);x=_.vV(A);if(p&&x){var m=_.$8(E);_.r("combine_ve_grafts")?t.graftServerVe(E,x,A):_.Yh(p,x,m);U==null||U(m)}}};
pP_=function(t){var E;return((E=EUJ.get(t))==null?void 0:E.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
Aql=function(t,E){var p={type:E.slotType,controlFlowManagerLayer:Utj.get(E.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};E.slotEntryTrigger&&(p.entryTriggerType=E.slotEntryTrigger.triggerType);E.slotPhysicalPosition!==1&&(p.slotPhysicalPosition=E.slotPhysicalPosition);if(t){p.debugData={slotId:E.slotId};if(t=E.slotEntryTrigger)p.debugData.slotEntryTriggerData=xtj(t);t=E.slotFulfillmentTriggers;p.debugData.fulfillmentTriggerData=[];t=_.M(t);for(var U=t.next();!U.done;U=t.next())p.debugData.fulfillmentTriggerData.push(xtj(U.value));
E=E.slotExpirationTriggers;p.debugData.expirationTriggerData=[];E=_.M(E);for(t=E.next();!t.done;t=E.next())p.debugData.expirationTriggerData.push(xtj(t.value))}return p};
xtj=function(t,E){var p={type:t.triggerType};E!=null&&(p.category=E);t.triggeringSlotId!=null&&(p.triggerSourceData||(p.triggerSourceData={}),p.triggerSourceData.associatedSlotId=t.triggeringSlotId);t.triggeringLayoutId!=null&&(p.triggerSourceData||(p.triggerSourceData={}),p.triggerSourceData.associatedLayoutId=t.triggeringLayoutId);return p};
YD8=function(t,E,p,U){E={opportunityType:E};t&&(U||p)&&(U=_.vx(U||[],function(x){return Aql(t,x)}),E.debugData=Object.assign({},p&&p.length>0?{associatedSlotId:p}:{},U.length>0?{slots:U}:{}));
return E};
M0l=function(t){return C$(t.opportunityAdapterMap).concat(C$(t.triggerAdapterMap)).concat(C$(t.fulfillmentAdapterFactoryMap)).concat(C$(t.slotAdapterFactoryMap)).concat(C$(t.layoutRenderingAdapterFactoryMap))};
C$=function(t){var E=[];t=_.M(t.values());for(var p=t.next();!p.done;p=t.next())p=p.value,p.isAdsControlFlowEventListener&&E.push(p);return E};
rX=function(t){var E=t.slotId,p=t.slotType,U=t.slotPhysicalPosition;return E===void 0?new jY("Cannot construct a slot due to the missing id.",{adSlotMetadata:t}):p===void 0?new jY("Cannot construct a slot due to the missing type.",{adSlotMetadata:t}):U===void 0?new jY("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:t}):{slotId:E,slotType:p,slotPhysicalPosition:U,managerLayer:"external",adSlotLoggingData:t.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new mtY}};
b2D=function(t){var E=t.layoutId,p=t.layoutType;return E===void 0?new kj("Cannot construct a layout due to the missing id.",{adLayoutMetadata:t}):p===void 0?new kj("Cannot construct a layout due to the missing type.",{adLayoutMetadata:t}):{layoutId:E,layoutType:p,managerLayer:"external",adLayoutLoggingData:t.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new mtY,interactionLoggingAdsClientData:{}}};
i2O=function(t){if(t.querySelector("img")){var E=t.querySelector("img");E.addEventListener("error",function(){GzO(E.src).then(function(p){(p=_.cw(p).toString())?E.src=p:E.removeAttribute("src")}).catch(function(){E.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
u7=function(t,E){if(E&&(qDJ(E.viewableCommand)||qDJ(E.endOfSessionCommand))){var p=H2E(E==null?void 0:E.viewableCommand);E=H2E(E==null?void 0:E.endOfSessionCommand);if(!dX){var U=_.z3("custom_active_view_tos_timeout_ms");dX=U>0&&U!==36E5?new fuL(BA$(),U):new fuL(BA$())}wPl(dX,t);RPD(dX,t,p,E)}};
Je=function(t){dX&&wPl(dX,t)};
BA$=function(){var t=_.qO("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(t==null?void 0:t.length)===2?t[1]:null};
qDJ=function(t){t=_.AJ(t);return!(t==null||!t.loggingUrls)&&t.loggingUrls.length>0};
H2E=function(t){if(!t)return[];var E=[],p,U;((U=(p=_.AJ(t))==null?void 0:p.loggingUrls)!=null?U:[]).forEach(function(x){x.baseUrl&&E.push(x.baseUrl)});
return E};
V0$=function(t){if(_.r("stop_av_measurement_on_detach"))return function(){Je(t)}};
Q9t=function(t){return function(){_.r("stop_av_measurement_on_detach")&&Je(t)}};
C$i=function(t){if(_.r("stop_av_measurement_on_detach"))return function(){Je(t)}};
j90=function(t){return t.shorts.isDesktopSmallWidth};
_.rq8=function(t){return t.shorts.isShortsActive};
_.kL0=function(t){return t.shorts.isWatchWhileMode};
_.IF=function(t){return t.shorts.isFullscreen};
_.gX=function(t){return t.shorts.isShortsPipActive};
uDY=function(t){var E,p;if(t=(E=_.k(t.reelsAdCardButtoned,dtl))==null?void 0:(p=E.animatedRenderingConfig)==null?void 0:p.easeOutSeconds)return t+"s"};
Iu0=function(t,E,p){return _.q(function(U){return U.return(new Promise(function(x){var A=new Image;A.onload=function(){x(new Jq8(t,E,p,A.naturalWidth,A.naturalHeight))};
A.src=p.toString()}))})};
gUE=function(t,E){return Math.round(t/1E-5)===Math.round(E/1E-5)};
Z2i=function(t,E){return Math.round(t/1E-5)===Math.round(E/1E-5)};
O2O=function(t,E){return t.year===E.year&&t.month===E.month&&t.day===E.day};
XPD=function(t,E){return t.year!==E.year?t.year<E.year:t.month!==E.month?t.month<E.month:t.day<E.day};
au$=function(t){return t.day===hP_(t.year,t.month)?t.month===11?{year:t.year+1,month:0,day:1}:{year:t.year,month:t.month+1,day:1}:{year:t.year,month:t.month,day:t.day+1}};
ePK=function(){var t=new Date,E={year:t.getFullYear(),month:t.getMonth(),day:t.getDate()};return{start:E,end:{year:t.getFullYear()+2,month:t.getMonth(),day:t.getDate()},selectedDate:au$(E)}};
F_$=function(t){return(new BL(2)).format(new Date(t.year,t.month,t.day))};
zP$=function(t){return{year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}};
lul=function(t,E){t=(t+(Number(E.utcOffsetSec)+(new Date(t*1E3)).getTimezoneOffset()*60))*1E3;E=zP$(new Date(t));return{date:E,secondsSinceMidnight:Math.floor((t-(new Date(E.year,E.month,E.day)).getTime())/1E3)}};
GLO=function(t,E){E=E.months.findIndex(function(p){return p.year===t.year&&p.month===t.month});
return E>=0?E:void 0};
nUi=function(t){if(!t)return!1;try{if(t.host&&t.host.tagName==="YT-FORMATTED-STRING"&&t.host.id==="contenteditable-textarea"||t.nodeType===Node.ELEMENT_NODE&&t.tagName==="YTD-COMMENTBOX")return!0}catch(E){return!1}return nUi(t.parentNode)};
ZV=function(t){return t?!(t.tagName!=="A"||!t.href||!t.classList.contains("yt-simple-endpoint")):!1};
NAL=function(t){return t?t.tagName==="IMG"&&t.classList.contains("emoji"):!1};
Dt0=function(t,E,p){if(!t)return null;var U=ZV(t);if(U&&p)return E=t.pathname.substring(t.pathname.indexOf("/channel/")+9),document.createTextNode("@"+E);if(U&&!p)return document.createTextNode("");if(NAL(t))return p=t.alt,t=t.dataset.emojiId,!t&&E&&(E=_.OX(E,p))&&E.isCustomEmoji&&(t=E.emojiId),t?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+t+">"):document.createTextNode(p);U=t.cloneNode(!1);for(var x=0;x<t.childNodes.length;++x){var A=Dt0(t.childNodes[x],E,p);A&&U.appendChild(A)}return U};
Xt=function(t){return t?ZV(t)?t:Xt(t.lastChild):null};
s90=function(t){return t?ZV(t)?t:s90(t.firstChild):null};
L_K=function(t){if(!t)return null;for(var E=t.previousSibling;E;)if(E.nodeType===Node.ELEMENT_NODE&&E.nodeName==="BR")E=E.previousSibling;else if(E.nodeType===Node.TEXT_NODE&&/\s+/.test(E.textContent))E=E.previousSibling;else break;(E=Xt(E))?t=E:t=(t=t.parentNode)?Xt(t.previousElementSibling):null;return t};
P$0=function(t){if(!t)return null;for(var E=t.nextSibling;E;)if(E.nodeType===Node.ELEMENT_NODE&&E.nodeName==="BR")E=E.nextSibling;else if(E.nodeType===Node.TEXT_NODE&&/\s+/.test(E.textContent))E=E.nextSibling;else break;return(E=s90(E))?E:P$0(t.parentNode)};
TAl=function(t){var E=_.sR(),p=E.JSC$11621_getStartNode();if(!nUi(p.parentNode))return null;E=E.JSC$11621_getStartOffset();if(p.nodeType===Node.TEXT_NODE){var U=_.tg(p,ZV);if(U){if(t&&E===0||!t&&E===p.length)return U}else{if(t&&E===p.length)return!p||p.nodeName==="BR"||p.nextElementSibling&&_.he(p.nextElementSibling,"display")==="block"?null:s90(p.nextElementSibling);if(!t&&E===0)return p?Xt(p.previousElementSibling):null}}if(p.nodeType===Node.ELEMENT_NODE)if(t){if(0<=E&&E<p.childNodes.length)return s90(p.childNodes[E])}else if(0<
E&&E<=p.childNodes.length)return Xt(p.childNodes[E-1]);return null};
oU_=function(t,E,p){if(!t)return null;if(t.nodeType===Node.TEXT_NODE)if(p){var U=L_K(t);if(U&&!/^\s+\S/.test(t.wholeText.substr(0,E)))return U}else if((U=P$0(t))&&!/\S\s+/.test(t.wholeText.substr(E,t.wholeText.length)))return U;return t.nodeType===Node.ELEMENT_NODE?p?L_K(t.childNodes[E]):P$0(t.childNodes[E]):oU_(t.parentNode,E,p)};
W_0=function(t){if(t.hasChildNodes())switch(t.tagName){case "DIV":case "A":case "SPAN":var E="";for(t=t.firstChild;t;t=t.nextSibling)E+=W_0(t);return E;default:return""}else switch(t.nodeType){case 3:return t.textContent;default:return""}};
aF=function(t,E){return t.year===E.year&&t.month===E.month&&t.day===E.day};
eY=function(t,E){return t.year!==E.year?t.year<E.year:t.month!==E.month?t.month<E.month:t.day<E.day};
$tj=function(t){return{year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}};
K_L=function(t){var E=Lgi;E=E===void 0?Lgi:E;E(new Date(t.year,t.month,t.day))};
Ft=function(t){return $tj(new Date(Number(t.seconds)*1E3))};
vUl=function(t){return t.year!==void 0&&t.month!==void 0&&t.day!==void 0};
yql=function(t){return t.start!==void 0&&t.end!==void 0};
SDJ=function(t){return yql(t)?t.start:t};
cqY=function(t){return yql(t)?t.end:void 0};
EyL=function(t,E){for(var p=[],U=new Date(t.start.year,t.start.month);U.getFullYear()<t.end.year||U.getFullYear()===t.end.year&&U.getMonth()<=t.end.month;){var x=p,A=x.push,m=U.getFullYear(),b=U.getMonth(),f=t,B=E,R=void 0,V=[],Q=Object.freeze({extraCssClass:"invisible"}),C=new Date(m,b),d=$tj(C);C=C.getDay();for(var I=$tj(new Date);d.month===b;){C!==tzO&&R||(R=Array.from({length:7}).fill(Q),V.push(R));var O={date:{year:m,month:b,day:d.day},extraCssClass:"",debugClass:""};O.extraCssClass=B(O.date,
d,I,f).trim();R[(C-tzO+7)%7]=O;d=d.day===hP_(d.year,d.month)?d.month===11?{year:d.year+1,month:0,day:1}:{year:d.year,month:d.month+1,day:1}:{year:d.year,month:d.month,day:d.day+1};C=(C+1)%7}A.call(x,{weeks:V,monthLabel:zd.SHORTMONTHS[b]+" "+m,year:m,month:b,monthLabelExtraCssClass:V[0][2]===Q?"shift-down-label":""});U.setMonth(U.getMonth()+1)}return p};
pj8=function(t,E){E=E.months.findIndex(function(p){return p.year===t.year&&p.month===t.month});
return E>=0?E:void 0};
xaD=function(t,E){a:{var p=p===void 0?[2,3]:p;p=_.M(p);for(var U=p.next();!U.done;U=p.next()){var x=new Date;if((new UaO(U.value)).parse(E,x,{validate:!0})){x.setHours(0,0,0,0);E=x;break a}}E=null}if(!E)return{isValid:!1,value:void 0};E=$tj(E);p=t.end;return eY(E,t.start)||eY(p,E)?{isValid:!1,value:void 0}:{isValid:!0,value:E}};
bYE=function(t){var E=AEK;E=E===void 0?YE_:E;var p=t.columnsToShow||[],U=MzD(t.columnDimensions,t.columnsToShow,t.leftFloatingColumns,E);return p.map(function(x,A){var m=t.columns[x];if(m===void 0)throw Error("Rh");var b=U?U[A]:"";var f=t.getCustomTooltip?t.getCustomTooltip(x,m.headerTooltipParagraphs):m.headerTooltipParagraphs;var B=ma$(t,x);return{type:x,index:A,style:b,classes:B,headerName:m.headerName||"",headerIcon:m.headerIcon,headerTooltipParagraphs:f||[],headerTooltipHelpContext:m.headerTooltipHelpContext,
sortOrders:m.sortOrders||[],selectionState:m.isSelectionCheckbox?t.selectionState:void 0}})};
ma$=function(t,E){var p=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],U=t.columns[E];if(U===void 0)return"";var x=p.includes("DEFAULTS")&&U.cssClass?[U.cssClass]:[];if(p.includes("SORTING")){U.sortOrders&&U.sortOrders.length&&x.push("sortable");if(t.sorting&&t.sorting.columnType===E)a:switch(t.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var A="column-sorted";break a;default:A=""}else A="";A&&x.push(A)}p.includes("FLOATING")&&(E=t.columnsToShow.indexOf(E),t.leftFloatingColumns&&E<t.leftFloatingColumns&&
x.push("floating-column"),t.leftFloatingColumns&&E===t.leftFloatingColumns-1&&x.push("last-floating-column"));p.includes("RIGHT_ALIGN")&&U.rightAlignHeader&&x.push("right-align");return x.filter(function(m){return m}).join(" ")};
MzD=function(t,E,p,U){p=p===void 0?0:p;U=U===void 0?YE_:U;if(t){var x=[],A=0;iY8(t,E,U).forEach(function(m,b){var f="min-width:"+m.minWidth+"px;padding-left:"+m.paddingLeft+"px;padding-right:"+m.paddingRight+"px;flex:"+m.flexGrow+" 0 "+m.minWidth+"px;";m.maxWidth!==Infinity&&(f=[f,"max-width:"+m.maxWidth+"px;"].join(""));A>0&&b<p&&(f=[f,"left:"+A+"px;"].join(""));x.push(f);A+=m.minWidth+m.paddingLeft+m.paddingRight});
return x}};
iY8=function(t,E,p){p=p===void 0?YE_:p;return E.map(function(U,x){U=t&&t[U]||{};var A=x===0?p.paddingLeftFirstColumn:p.padding;U.paddingLeft!==void 0&&(A=U.paddingLeft);x=x===E.length-1?p.paddingRightLastColumn:p.padding;U.paddingRight!==void 0&&(x=U.paddingRight);return{paddingLeft:A,paddingRight:x,minWidth:U.minWidth!==void 0?U.minWidth:p.minWidth,maxWidth:U.maxWidth!==void 0?U.maxWidth:p.maxWidth,flexGrow:U.flexGrow!==void 0?U.flexGrow:p.flexGrow}})};
qEY=function(t){var E=t.reduce(function(U,x){var A=x.columnId,m={};x.headerText&&(m.headerName=_.R4(x.headerText));x.rightAlignHeader&&(m.rightAlignHeader=x.rightAlignHeader);var b;if((b=x.headerIcon)==null?0:b.iconType)m.headerIcon=_.zh(x.headerIcon.iconType);U[A]=m;return U},{}),p=t.filter(function(U){return!U.hideColumn}).map(function(U){return U.columnId});
t=t.filter(function(U){return!!U.dimensions}).reduce(function(U,x){U[x.columnId]=x.dimensions;
return U},{});
return{columns:E,columnsToShow:p,columnDimensions:t}};
_.HYY=function(t){return t?t.simpleText?t.simpleText:t.runs?t.runs.map(function(E){return E.text}).join(""):"":""};
Qbi=function(t){var E=t.data;var p=t.onTap;var U=t.isSelected;var x=t.onFocusIn;if(!E)return{};t=fQO(E);U===void 0&&(U=E==null?void 0:E.isSelected);var A;return{text:BL8(E,t),startIcon:(A=E.icon)==null?void 0:A.iconType,state:U?0:2,type:0,style:wjj(E),onTap:RNt(E,p),accessibilityLabel:VzJ(E,t),onFocusIn:function(){return x==null?void 0:x()}}};
BL8=function(t,E){if(!E)return t.text?_.HYY(t.text):void 0};
wjj=function(t){var E;switch((E=t.style)==null?void 0:E.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
RNt=function(t,E){return function(p){E==null||E(p,t)}};
fQO=function(t){t=t.style&&t.style.styleType;return!l$$&&t==="STYLE_EXPLORE_LAUNCHER_CHIP"};
VzJ=function(t,E){if(E){var p,U,x;return(x=(p=t.accessibilityData)==null?void 0:(U=p.accessibilityData)==null?void 0:U.label)!=null?x:BL8(t,!1)}};
CDE=function(){var t;return[function(E,p,U){return _.kT(t,E,p,U)},
function(E){t=E}]};
jbL=function(t,E){return _.hj(t.entities,"chipEntity",E)};
kii=function(t,E,p,U){return function(){var x=rEJ.has(t.displayType)&&t.selected,A=x&&t.deselectCommand?t.deselectCommand:t.tapCommand;!A||x&&U||_.bz(A,{form:{element:E==null?void 0:E.value}});p==null||p()}};
daO=function(t,E){E=E==null?void 0:E.stepStates;if(t&&E){var p,U;return(p=E[t])==null?void 0:(U=p.userQuery)==null?void 0:U.userQuery}};
l7=function(t){return{signalAction:{signal:t}}};
IQl=function(){return _.qO("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?ufj:_.JEt};
gyl=function(t,E){t=t===void 0?"SOFT_RELOAD_PAGE":t;E=E===void 0?49504:E;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.kh(_.zF("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:E}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:t}}]}}}};
ZY0=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.kh(_.zF("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:IQl()}};
OY_=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.kh(_.zF("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:IQl()}};
XjY=function(t,E){var p=_.kh(_.zF("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),U=_.kh(_.zF("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),x={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.kh(_.zF("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};x.serviceEndpoint=t?t:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[l7("SOFT_RELOAD_PAGE")]}};return{title:p,bodyText:U,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:x},
style:{value:E!=null?E:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
aQJ=function(t){t=t===void 0?{}:t;return{title:_.kh(t.localizedZeroStateTitleText===void 0?"":t.localizedZeroStateTitleText),bodyText:_.kh(t.localizedZeroStateMessage===void 0?"":t.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.kh(t.localizedZeroStateButtonText===void 0?"":t.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[hNO]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
FK0=function(t){t=t===void 0?{}:t;return{title:_.kh(t.localizedOptInBannerTitleText===void 0?"":t.localizedOptInBannerTitleText),titleLength:19,subtitle:_.kh(t.localizedOptInMessage===void 0?"":t.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.kh(_.zF("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:_.kh(_.zF("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:[eNO]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
Gij=function(t,E){var p=E=E===void 0?{}:E;E=p.offlineTitleText===void 0?"":p.offlineTitleText;var U=p.offlineDescriptionText===void 0?"":p.offlineDescriptionText,x=p.formattedSupplementalText,A=p.actionButtonText===void 0?"":p.actionButtonText,m=p.titleText===void 0?"":p.titleText;p=p.descriptionText===void 0?"":p.descriptionText;var b={title:A,accessibilityText:A,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"}}}}};t||(m=E,p=U,b={title:A,accessibilityText:A,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:_.kh(m),titleLength:m.length,overrideTitleMaxFontSize:30,subtitle:_.kh(p),supplementalText:x,primaryButton:{buttonViewModel:b},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[zNt]},darkTileImage:{thumbnails:[lQO]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.DaE=function(t,E,p,U,x,A,m,b,f,B,R){x=x===void 0?!1:x;A=A===void 0?!1:A;m=m===void 0?0:m;b=b===void 0?-Infinity:b;f=f===void 0?!1:f;B=B===void 0?!1:B;R=R===void 0?!1:R;var V=[],Q=_.kh(_.zF("SMART_DOWNLOADS",void 0,"Smart downloads")),C=_.kh(nyi(m,b,t.length));b=m=void 0;B?m={statementBannerRenderer:Gij(R,U)}:x?t.length>0?b=NLO(t,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.r("kevlar_manual_downloads_above"),Q,C):f?b={alertBannerViewModel:{heading:{content:p.localizedOptInBannerTitleText===
void 0?"":p.localizedOptInBannerTitleText},body:{content:p.localizedPromptMessage===void 0?"":p.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.zF("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.zF("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:_.uhO}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:A&&(b={backgroundPromoRenderer:{bodyText:_.kh(_.zF("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"}}}):
A&&(b={alertBannerViewModel:{heading:{content:p.localizedOptInBannerTitleText===void 0?"":p.localizedOptInBannerTitleText},body:{content:p.localizedOptInMessage===void 0?"":p.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.zF("TURN_ON",void 0,"Turn on"),accessibilityText:_.zF("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}}}}}});p=_.kh(_.zF("YOUR_DOWNLOADS",void 0,"Your downloads"));U=void 0;E.length>0?(U=void 0,_.r("kevlar_display_downloads_numbers")&&(U=_.kh(_.lO("VIDEO_COUNT",E.length))),U=NLO(E,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,p,U)):x||t.length||
B||(U={backgroundPromoRenderer:{bodyText:_.kh(_.zF("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}}}});m?V.push({richSectionRenderer:{content:m}}):b&&!_.r("kevlar_manual_downloads_above")&&V.push({richSectionRenderer:{content:b,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
U&&V.push({richSectionRenderer:{content:U,loggingDirectives:{clientVeSpec:{uiType:51721}}}});b&&_.r("kevlar_manual_downloads_above")&&V.push({richSectionRenderer:{content:b,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(E.length>0||x&&t.length>0&&!B)&&V.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.kh(_.zF("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:V}};
_.LK$=function(t){return sbE(t,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.PDK=function(t){return sbE(t,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
sbE=function(t,E){var p=[];t=NLO(t,E,!0);p.push({richSectionRenderer:{content:t}});return{contents:p}};
NLO=function(t,E,p,U,x){p=p===void 0?!1:p;var A="RESPONSIVE_SIZE_STANDARD";_.r("kevlar_standard_rich_grid_on_offline_home")&&E==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?A="RESPONSIVE_SIZE_STANDARD":_.r("kevlar_modern_downloads_compact")?A="RESPONSIVE_SIZE_COMPACT":_.r("kevlar_modern_downloads_extra_compact")?A="RESPONSIVE_SIZE_EXTRA_COMPACT":_.r("kevlar_modern_downloads_tiny")&&(A="RESPONSIVE_SIZE_TINY");t={isExpanded:p,contents:Gd(t),entitySelectorType:E,responsiveContainerConfiguration:{responsiveSize:A}};
U&&(t.title=U);x&&(t.subtitle=x);p||(_.r("kevlar_smart_downloads_show_more_button")?(t.showMoreButton={buttonRenderer:{accessibility:{label:_.zF("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.kh(_.zF("SHOW_MORE",void 0,"Show more"))}},t.showLessButton={buttonRenderer:{accessibility:{label:_.zF("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.kh(_.zF("SHOW_LESS",void 0,"Show less"))}}):(t.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.zF("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}}}},t.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.zF("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}}}},t.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.zF("VIEW_ALL",void 0,"View all"),accessibilityText:_.zF("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:_.j1("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:t}};
Gd=function(t){var E=[];t=_.M(t);for(var p=t.next();!p.done;p=t.next())if(p=p.value,MZl(p)){var U=E,x=U.push;var A=void 0;if(p==null?0:(A=p.videoEntity)==null?0:A.videoId){A=MJ(_.QM().getState(),p.videoEntity.videoId);var m=_.QM().getState();var b=_.X1(p.videoEntity.videoId,"mainVideoEntity");m=!!_.$h(m.entities)[b];m={videoId:p.videoEntity.videoId,title:dm(p.videoEntity.title),shortBylineText:dm(p.channelEntity.title),thumbnail:p.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:m&&_.r("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:G0_(p.videoEntity.videoId,A,p.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.zF("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};p.videoEntity.lengthSeconds&&(m.thumbnailOverlays=MAj(p.videoEntity.lengthSeconds,A));m.isWatched=A>0;_.r("kevlar_modern_downloads_page")&&(m.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:p.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.zF("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},m.badges=void 0);p=m}else p={};x.call(U,{richItemRenderer:{content:{videoRenderer:p},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(Y7K(p)){U=E;x=U.push;var f=b=A=void 0,B=void 0,R=void 0,V=void 0,Q=void 0,C=void 0,d=void 0,I=void 0,O=void 0,a=void 0;m=p.mainPlaylistEntity.playlistId;var F=p==null?void 0:(a=p.mainPlaylistEntity)==null?void 0:(O=a.thumbnailStyleData)==null?void 0:(I=O[0])==null?void 0:(d=I.value)==null?void 0:(C=d.collageThumbnail)==
null?void 0:C.coverThumbnail;if(m&&F){C=nAY(m);!_.r("enable_offline_playlist_page")&&(p==null?0:(Q=p.mainPlaylistEntity)==null?0:Q.videos)&&(Q=p==null?void 0:(V=p.mainPlaylistEntity)==null?void 0:(R=V.videos)==null?void 0:R[0],R=_.gm(Q).entityId,R=JSON.parse(R).videoId,R!==void 0&&(C=MJ(_.QM().getState(),R),C=_.rm(R,m,void 0,void 0,C)));R=[];if(p==null?0:(B=p.mainPlaylistEntity)==null?0:(f=B.videos)==null?0:f.length)f=slL(),B=Object,R=B.assign,V=(V=fHt(p==null?void 0:p.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.kh(V),icon:{iconType:"PLAYLISTS"}}}:void 0,R=[f,R.call(B,{},(b=V)!=null?b:{})];p={playlistId:m,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:F}},navigationEndpoint:C,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:R,title:dm(p.mainPlaylistEntity.title),shortBylineText:dm(p==null?void 0:(A=p.channelEntity)==null?void 0:A.title),badges:[{metadataBadgeRenderer:{label:_.zF("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.r("kevlar_modern_downloads_page")&&(p.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:TLi,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:m,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.zF("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},p.badges=void 0)}else p=void 0;x.call(U,{richItemRenderer:{content:{playlistRenderer:p},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return E};
nyi=function(t,E,p){t=t?Oo0(t):"";E!==void 0&&isFinite(E)?E===0?E=_.zF("UPDATING",void 0,"Updating..."):(E=Y$0(new Date(E),new Date),E=_.zF("UPDATED_TIME",{relative_time:E},"Updated "+E)):E="";var U="";t&&E&&(U=" \u2022 ");if(p&&_.r("kevlar_display_downloads_numbers")){p=_.lO("VIDEO_COUNT",p);if(t||E)U=" \u2022 ";return p+U+t+U+E}return t+U+E};
oyO=function(t){return S0i(t.entities).length};
_.WKi=function(t,E,p){var U=mH(t.responsiveSize),x;t=!((x=t.responsiveMap)==null||!x.some(function(A){return A.containerSize==="CONTAINER_SIZE_NARROW"&&A.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:p,containerWidth:E,sizing:U,enableFullBleedForSingleCol:!1,isCompactList:U==="COMPACT"&&t}};
$aE=function(t,E){return _.hj(t.entities,"votingEntity",E)};
n$=function(t){if(t){var E;return((E=_.X3().resolve(_.OB(_.Ld)))==null?0:E())?t.darkTheme:t.lightTheme}};
KKO=function(t,E){if(t.simpleText)return Object.assign({},t,{simpleText:qA(t.simpleText,E)});if(!t.runs)return t;for(var p=Object.assign({},t,{runs:[]}),U=0,x=_.M(t.runs),A=x.next();!A.done;A=x.next())if(A=A.value,A.text)if(U+A.text.length<=E)p.runs.push(A),U+=A.text.length;else return p.runs.push(Object.assign({},A,{text:qA(A.text,E-U)})),p;return t};
vyj=function(t,E){return _.hj(t.entities,"chipBarStateEntity",E)};
yEL=function(t){switch(t){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""}};
SEi=function(t,E){return{triggeringElement:t,onDwellTriggeredFn:function(){var p={triggeringElement:t,loadVideoPreviewEventData:E},U=document.querySelector(".video-preview");U&&U.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:p}))},
onDwellEndFn:function(){var p=document.querySelector(".video-preview");p&&p.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
cEE=function(t){var E=_.X3().resolve(_.OB(EK0));return function(p){var U=function(){var x=t(p);return E&&x?SEi(p,x):null};
_.M$(function(){var x=U();E&&x&&Promise.resolve().then(function(){E.registerElement(x)});
_.iK(function(){E&&x&&Promise.resolve().then(function(){_.Ae(E,x)})})},"p0smCb")}};
EP0=function(t){var E=t.dataset.resizeObserverId;if(E)return E;E=""+t7J++;return t.dataset.resizeObserverId=E};
p1K=function(t){t=_.M(t);for(var E=t.next();!E.done;E=t.next()){E=E.value;var p=EP0(E.target),U=Object.assign({},{target:E.target},N6.get(p));if(U!=null&&U.contentRect?U.contentRect.width!==E.contentRect.width||U.contentRect.height!==E.contentRect.height:1)for(N6.set(p,{borderBoxSize:E.borderBoxSize,contentBoxSize:E.contentBoxSize,contentRect:E.contentRect,devicePixelContentBoxSize:E.devicePixelContentBoxSize}),p=_.M(DV.get(p)||[]),U=p.next();!U.done;U=p.next())U=U.value,U(E)}};
xPL=function(t,E){var p=EP0(t);DV.has(p)||DV.set(p,new Set);DV.get(p).add(E);N6.has(p)&&E(Object.assign({},{target:t},N6.get(p)));sX||(sX=new UP8(p1K));E=sX;E.observe(t)};
AaL=function(t,E){var p=EP0(t);DV.has(p)&&(DV.get(p).delete(E),DV.get(p).size===0&&(DV.delete(p),N6.delete(p),sX.unobserve(t),delete t.dataset.resizeObserverId));DV.size===0&&sX&&(sX.disconnect(),sX=void 0)};
M7O=function(t,E){var p=_.X3().resolve(hH);return YK_.map(function(U){return p.observe(t,E,U)})};
mPL=function(t){var E=_.X3().resolve(hH);t.forEach(function(p){E.unobserveByKey(p)})};
_.L$=function(t){var E=_.M(aD$()),p=E.next().value,U=E.next().value,x=Object.assign({},bI$,t),A=iIO(function(m){var b=m.contentRect.height;if((m=m.contentRect.width)||b||x.canHaveZeroSize)p.width()===m&&p.height()===b||U(p,{height:b,width:m})},x.throttleMs);
return[p,function(m){var b=[];x.useVisibilityObserver&&(b=M7O(m,function(f,B){requestAnimationFrame(function(){B==="visible"?xPL(m,A):AaL(m,A)})}));
b.length||xPL(m,A);return function(){b.length&&(mPL(b),b.length=0);AaL(m,A)}}]};
HIJ=function(t,E,p,U,x){t=E?t.switchOffCommand:t.switchOnCommand;if(U&&x)qKi(t,p,x);else{var A,m;(A=_.MA({elementsCommand:t}))==null||(m=A.onclick)==null||m.call(A,p)}};
qKi=function(t,E,p){t=_.MA({elementsCommand:t,additionalCommandArgs:{commandController:{onSuccess:function(){p(!1)},
onServerError:function(){p(!1)}}}});
if(t==null?0:t.onclick)t.onclick(E),p(!0)};
BdO=function(t){if(t)return _.k(t,fWj)};
w1J=function(t){if(t)switch(t){case "LIST_ITEM_ICON_ACCESSORY_SIZE_XSMALL":return 16;case "LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL":return 18;case "LIST_ITEM_ICON_ACCESSORY_SIZE_STANDARD":return 24;case "LIST_ITEM_ICON_ACCESSORY_SIZE_LARGE":return 36;case "LIST_ITEM_ICON_ACCESSORY_SIZE_XLARGE":return 48;default:return 24}};
RyD=function(t,E){if(!((t==null?0:t.entitySelectorType)&&(t==null?0:t.entityKey)))return{};switch(t.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.r("enable_web_shorts_captions_language_command")){var p;var U=(p=_.ew())==null?void 0:p.getOption("captions","track");var x,A=typeof(U==null?void 0:U.translationLanguage)==="object"&&((x=U.translationLanguage)==null?void 0:x.languageName)||(U==null?void 0:U.displayName)||"";U={data:Object.assign({},
!!A&&{selectionText:{content:A}},!!A&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof U==="undefined"})}}else U={};return U;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.r("web_shorts_audio_track_picker")){var m;x=((m=_.ew())==null?void 0:m.getAudioTrack())||void 0;p=x==null?void 0:(A=x.getLanguageInfo())==null?void 0:A.getName();x={data:Object.assign({},{selectionText:{content:p}},p&&!(x==null?0:(U=x.getLanguageInfo())==
null?0:U.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else x={};return x;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return U=t!=null&&t.entityKey?(U=_.hJ(E,t.entityKey))?{isHidden:(U==null?void 0:U.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},U;default:return{}}};
V7J=function(t,E){return function(p){var U=function(x){_.Sw(_.yb(x),p,E)||t(x)};
p.addEventListener("click",U);return function(){p.removeEventListener("click",U)}}};
_.Q1i=function(t){return function(){return _.k(t(),_.PY)}};
CvY=function(t){switch(t){case "LINEAR_LAYOUT_SPACE_S1":return 4;case "LINEAR_LAYOUT_SPACE_S2":return 8;case "LINEAR_LAYOUT_SPACE_S3":return 12;case "LINEAR_LAYOUT_SPACE_S4":return 16;case "LINEAR_LAYOUT_SPACE_S5":return 20;case "LINEAR_LAYOUT_SPACE_S6":return 24;case "LINEAR_LAYOUT_SPACE_S7":return 28;case "LINEAR_LAYOUT_SPACE_S8":return 32;case "LINEAR_LAYOUT_SPACE_S9":return 36;case "LINEAR_LAYOUT_SPACE_S10":return 40;case "LINEAR_LAYOUT_SPACE_S11":return 44;case "LINEAR_LAYOUT_SPACE_S12":return 48;
default:return 0}};
j1D=function(t){return CvY(t==null?void 0:t.all)};
ra$=function(t){var E={};(t=t==null?void 0:t.padding)&&(E.padding=CvY(t.vertical)+"px "+CvY(t.horizontal)+"px");return E};
kuY=function(t){switch(t){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
dPY=function(t){switch(t){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"}};
ud8=function(t){switch(t){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"}};
JaD=function(t,E){if(E)return{containerStyles:ra$(E),itemStyles:function(p,U){var x={flex:"1"},A=E==null?void 0:E.flexDirection;b:switch(A){case "FLEX_DIRECTION_ROW_REVERSE":case "FLEX_DIRECTION_COLUMN_REVERSE":p=!!p;break b;default:p=!!U}p||(p=_.qO("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",A==="FLEX_DIRECTION_ROW"||A==="FLEX_DIRECTION_ROW_REVERSE"?(A=j1D(E==null?void 0:E.gap)+"px",p?x["margin-left"]=A:x["margin-right"]=A):x["margin-bottom"]=j1D(E==null?void 0:E.gap)+"px",x.flex=
"1");return x},
containerLayoutConfig:{responsiveSize:"RESPONSIVE_SIZE_STANDARD",containerSize:"CONTAINER_SIZE_UNSPECIFIED",containerType:(E==null?void 0:E.flexDirection)==="FLEX_DIRECTION_ROW"||(E==null?void 0:E.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?"CONTAINER_TYPE_HORIZONTAL_LIST":"CONTAINER_TYPE_VERTICAL_LIST",contentPreviewWidth:"33%"}}};
IWl=function(t){return t<528?"CONTAINER_SIZE_NARROW":t<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE"};
gPY=function(t,E){t=_.M(t.responsiveMap||[]);for(var p=t.next();!p.done;p=t.next())if(p=p.value,p.containerSize===E)return p.containerType};
_.ZI8=function(t,E){if(E){var p=E.responsiveSize;t=IWl(t);var U=gPY(E,t);if(U&&p){a:{if(U==="CONTAINER_TYPE_VERTICAL_LIST")if(p==="RESPONSIVE_SIZE_STANDARD"){if(t!=="CONTAINER_SIZE_NARROW"){var x="50%";break a}}else{x=t==="CONTAINER_SIZE_NARROW"?"50%":"33.3%";break a}x=void 0}return{responsiveSize:p,containerSize:t,containerType:U,force16By9ThumbnailAspectRatio:!E.enableContentSpecificAspectRatio,contentPreviewWidth:x,fullbleed:(U==="CONTAINER_TYPE_VERTICAL_LIST"||U==="CONTAINER_TYPE_GRID")&&t===
"CONTAINER_SIZE_NARROW"&&!1}}}};
OI_=function(t,E){var p={};switch(E){case "CONTAINER_TYPE_VERTICAL_LIST":p["flex-direction"]="column";p.padding="0 "+t.margin+"px";break;case "CONTAINER_TYPE_GRID":p["flex-direction"]="row";p.flex="none";p["flex-wrap"]="wrap";p.width=t.maxContainerWidth?t.maxContainerWidth+t.gutter+"px":void 0;p.padding="0 "+(t.margin-t.gutter/2)+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":p["flex-direction"]="row",p.flex="none",p["overflow-x"]="auto",p.width=t.maxContainerWidth?t.maxContainerWidth+"px":void 0,
p.padding="0 "+t.margin+"px"}return p};
X1K=function(t,E){if(E){var p=gPY(E,IWl(t));a:switch(p){case "CONTAINER_TYPE_GRID":var U=3;break a;default:U=1}U=_.WKi(E,t,U);var x=_.M6(U);return{containerLayoutConfig:_.ZI8(t,E),containerStyles:OI_(x,p),itemStyles:function(A,m){A={};switch(p){case "CONTAINER_TYPE_VERTICAL_LIST":m||(A["margin-bottom"]="16px");break;case "CONTAINER_TYPE_GRID":A.width=x.itemWidth+"px";A["margin-right"]=x.gutter/2+"px";A["margin-left"]=x.gutter/2+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":A.width=x.itemWidth+
"px",A.flex="none",m||(A["margin-right"]=x.gutter+"px")}return A}}}};
zyl=function(t,E,p){if(E)return[hyD];switch(t){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[WY];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return p?[WY]:[aWE,WY];case "TRANSFER_STATE_PAUSED_BY_USER":return[ey_,WY];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[FsO,WY];default:return[hyD]}};
lWO=function(t,E,p,U){return zyl(t,E,U).map(function(x){var A=x.text,m=x.iconType,b=x.videoAction;x=x.playlistAction;A=A?{content:A}:void 0;m=m&&{sources:[{clientResource:{imageName:m}}]};var f=(0,_.Kq.unsafeClone)(p);if(f){var B=_.k(f,_.lA),R=_.k(f,_.GE);B&&b?B.action=b:R&&x&&(R.action=x)}return{title:A,leadingImage:m,rendererContext:f&&{commandContext:{onTap:{innertubeCommand:f}}}}})};
Gu8=function(t){t=_.c9(t.rendererContext);var E;return(E=_.k(t,_.GE))==null?void 0:E.playlistId};
nP$=function(t){var E;return(E=t.listItems)==null?void 0:E.some(function(p){var U;return _.te((U=_.k(p,_.on))==null?void 0:U.rendererContext)})};
NdJ=function(t,E){var p;(p=t[(E+1)%t.length])==null||p.focus()};
DPl=function(t,E){var p=t.length,U;(U=t[E===-1?p-1:(E-1+p)%p])==null||U.focus()};
_.K$=function(t){var E=_.X3().resolve(_.OB(_.Ld));return E!=null&&E()?t.darkThemeColorPalette:t.lightThemeColorPalette};
_.yj=function(t){return{primaryTextColor:vY(t,0),secondaryTextColor:vY(t,1),optionColor:vY(t,2),backgroundColor:vY(t,3),videoBackgroundColor:vY(t,4)}};
vY=function(t,E){if(t){switch(E){case 0:t=t.primaryTitleColor;break;case 1:t=t.secondaryTitleColor;break;case 2:t=t.surgeColor;break;case 3:t=t.section2Color;break;case 4:t=t.section3Color;break;default:return}if(t)return _.SL(t)}};
Pvj=function(t){var E=t.element;var p=t.veType;var U=t.storedVisualElement===void 0?null:t.storedVisualElement;var x=t.elementIndex===void 0?0:t.elementIndex;t=t.clientYouTubeData;var A=_.yL();A!==s1E&&(LsO.clear(),s1E=A);if(E.visualElement&&LsO.has(E.visualElement))return null;if(U&&LsO.has(U))return E.visualElement=U,null;p=_.L4(_.Pu(),{veType:p,elementIndex:x,clientYouTubeData:t});if(!p)return null;E.visualElement=p;LsO.add(p);return p};
_.SY=function(t,E,p,U){p=p===void 0?null:p;U=U===void 0?Td_:U;var x=x===void 0?null:x;cu(function(){if(E){p instanceof Function&&(p=p());var A=Pvj({element:E,veType:t,storedVisualElement:p,clientYouTubeData:void 0});A&&(Dw(E,{data:x,observer:_.X3().resolve(hH),hideOption:OKO,showOption:XI8,layer:E.layer}),U(A))}})};
oP_=function(t){return t?_.cL(t):""};
WsJ=function(t){return(t==null?void 0:t.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
$PE=function(t,E){return _.hj(t.entities,"videoOverviewAsyncDataEntity",E)};
Kst=function(t,E){var p;return"linear-gradient(to bottom, "+((p=E==null?void 0:E.map(function(U){var x=t?U.darkThemeColor:U.lightThemeColor;return x?_.cL(x)+" "+((U==null?void 0:U.startLocation)||0)*100+"%":"transparent"}))==null?void 0:p.join(", "))+")"};
vP_=function(t,E,p,U,x){if(!((U==null?0:U.height)&&(U==null?0:U.width)))return{size:0};var A=U.width;U=U.height;if(x)return E==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||E==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&A>U?{size:312/ky$}:E==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(p!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||t!==1&&t!==2||E!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&E!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&E!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(E==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||E==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||U===A)switch(t){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(E==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||U>A)switch(t){case 1:case 3:return{size:240*r$Y};default:return{size:360*r$Y}}switch(t){case 1:case 2:return{size:1/ky$*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.ya_=function(t){if(!("matchMedia"in window))return _.Ra(Error("Sh")),function(){return!1};
var E=window.matchMedia(t);t=_.M(_.Py(E.matches,void 0,"waIHpe"));var p=t.next().value,U=t.next().value,x=function(A){U(A.matches)};
E.addEventListener?(E.addEventListener("change",x),_.iK(function(){E.removeEventListener("change",x)})):E.addListener&&(E.addListener(x),_.iK(function(){E.removeListener(x)}));
return p};
SK0=function(t){return t==="IMAGE_BANNER_STYLE_INSET"||t==="IMAGE_BANNER_STYLE_UNKNOWN"};
caO=function(){if(!("matchMedia"in window))return _.Ra(Error("Sh")),function(){return 0};
var t=window.matchMedia("(max-width: 527.9px)"),E=window.matchMedia("(min-width: 528px) and (max-width: 839.9px)"),p=window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)"),U=window.matchMedia("(min-width: 1024px)"),x=_.M(_.Py(t.matches,void 0,"TmIKcb")),A=x.next().value,m=x.next().value;x=_.M(_.Py(E.matches,void 0,"Z0fTKd"));var b=x.next().value,f=x.next().value;x=_.M(_.Py(p.matches,void 0,"w4xy7b"));var B=x.next().value,R=x.next().value;x=_.M(_.Py(U.matches,void 0,"DrbNC"));var V=x.next().value,
Q=x.next().value,C=function(a){m(a.matches)},d=function(a){f(a.matches)},I=function(a){R(a.matches)},O=function(a){Q(a.matches)};
_.A6(function(){t.addEventListener?(t.addEventListener("change",C),E.addEventListener("change",d),p.addEventListener("change",I),U.addEventListener("change",O)):t.addListener&&(t.addListener(C),E.addListener(d),p.addListener(I),U.addListener(O));_.iK(function(){t.removeEventListener?(t.removeEventListener("change",C),E.removeEventListener("change",d),p.removeEventListener("change",I),U.removeEventListener("change",O)):t.removeListener&&(t.removeListener(C),E.removeListener(d),p.removeListener(I),
U.removeListener(O))})});
return function(){return A()?1:b()?2:B()?3:V()?4:0}};
tqO=function(t){var E=0;t=_.M([t.title,t.metadata,t.actions,t.description,t.attribution]);for(var p=t.next();!p.done;p=t.next())p.value&&E++;return E};
Ev0=function(t){return t===1||t===2?1:0};
UZ0=function(t){t=(new pGl).parse(t);return(new p_).render(t).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(E){var p=E.split(":").map(Number),U=0,x=0;if(p.length===3)p=_.M(p),U=p.next().value,x=p.next().value,p=p.next().value;else if(p.length===2)p=_.M(p),x=p.next().value,p=p.next().value;else if(p.length===1)p=_.M(p).next().value;else throw Error("Th");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(U*3600+x*60+p)+'" role="button">'+E+"</span>"})};
xZ_=function(t){t=_.M(t.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var E=t.next(),p={};!E.done;p={clickHandler$jscomp$5:void 0},E=t.next()){E=E.value;p.clickHandler$jscomp$5=function(x){x=Number(x.target.getAttribute("data-time"));if(isNaN(x))throw Error("Uh");var A;(A=_.ew())==null||A.seekTo(x,!0)};
var U=function(x){return function(A){A.key!=="Enter"&&A.key!=="Space"||(0,x.clickHandler$jscomp$5)(A)}}(p);
E.setAttribute("tabindex","0");E.removeEventListener("click",p.clickHandler$jscomp$5);E.removeEventListener("keydown",U);E.addEventListener("click",p.clickHandler$jscomp$5);E.addEventListener("keydown",U)}};
AiE=function(){return _.H("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.H(cY,{percentWidth:100}),_.H(cY,{animationDelay:200}),_.H(cY,{animationDelay:400}),_.H(cY,{animationDelay:600}),_.H(cY,{animationDelay:800,percentWidth:60}),_.H("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.H(cY,{percentWidth:100}),_.H(cY,{animationDelay:200}),_.H(cY,{animationDelay:400}),_.H(cY,{animationDelay:600,percentWidth:50}))};
cY=function(t){return _.H("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(t.percentWidth===void 0?100:t.percentWidth)+"%"},_.H("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(t.animationDelay===void 0?0:t.animationDelay)+"ms"}))};
YPj=function(){var t=_.M(_.Py(function(){return""},void 0,"dXJHWc")),E=t.next().value;
return[function(){return E()()},
t.next().value]};
Mqj=function(t,E){t=t?Oo0(t):"";E!==void 0&&isFinite(E)?E===0?E=_.zF("UPDATING",void 0,"Updating..."):(E=Y$0(new Date(E),new Date),E=_.zF("UPDATED_TIME",{relative_time:E},"Updated "+E)):E="";var p="";t&&E&&(p=" \u2022 ");return _.kh(t+p+E)};
ij0=function(t,E,p,U,x,A){E=E===void 0?0:E;var m=mZt[E],b=m.title,f=m.iconType,B=m.topButtonRenderer,R=m.sectionClientVE;m=m.videoClientVE;var V;if(E!==1||t.length){p=[];t=_.M(t);for(U=t.next();!U.done;U=t.next()){var Q=U.value;if(MZl(Q))p.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:Q.videoEntity.videoId,title:dm(Q.videoEntity.title),shortBylineText:dm(Q.channelEntity.title),thumbnail:Q.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:Q.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.zF("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:m}}}}}});else if(Y7K(Q)){U=p;var C=U.push;var d=void 0,I=void 0,O=void 0,a=void 0,F=void 0,L=void 0,D=void 0,W=void 0,K=Q.mainPlaylistEntity.playlistId,v=Q==null?void 0:(W=Q.mainPlaylistEntity)==null?void 0:(D=W.thumbnailStyleData)==null?void 0:(L=D[0])==null?void 0:(F=L.value)==null?void 0:(a=F.collageThumbnail)==null?void 0:a.coverThumbnail;a=nAY(K);if(!_.r("enable_offline_playlist_page")&&
(Q==null?0:(O=Q.mainPlaylistEntity)==null?0:O.videos)){b:{O=Q==null?void 0:(I=Q.mainPlaylistEntity)==null?void 0:I.videos;I=_.QM().getState().entities;if(O!=null&&O.length&&I)for(O=_.M(O),F=O.next();!F.done;F=O.next())if(F=_.gm(F.value).entityId,(F=JSON.parse(F).videoId)&&v9L(I,F)==="TRANSFER_STATE_COMPLETE"){I=F;break b}I=""}I!==void 0&&(a=MJ(_.QM().getState(),I),a=_.rm(I,K,void 0,void 0,a))}I=DFY(_.zF("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),nAY(K));Q=K&&v&&I?{playlistId:K,navigationEndpoint:a,
viewPlaylistText:I,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:v}},title:dm(Q.mainPlaylistEntity.title),shortBylineText:dm(Q==null?void 0:(d=Q.channelEntity)==null?void 0:d.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:bjE,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:K,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.zF("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:m}}}:
void 0;C.call(U,{gridPlaylistRenderer:Q})}}m={gridRenderer:{items:p}};E===1&&(V=Mqj(x,A))}else if(U){var YL=_.kh((C=p==null?void 0:p.localizedPromptMessage)!=null?C:"");m={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.kh(_.zF("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.uhO}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.kh(_.zF("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};V=Mqj(x,A)}else YL=_.kh(_.zF("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
m={};return{contents:[{shelfRenderer:{title:b,titleAnnotation:V,icon:{iconType:f},subtitle:YL,content:m,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:B}]}}}}],loggingDirectives:{clientVeSpec:{uiType:R}}}};
qPK=function(t,E,p,U,x,A,m,b,f,B,R){p=p===void 0?{}:p;U=U===void 0?{}:U;x=x===void 0?!1:x;A=A===void 0?!1:A;m=m===void 0?!1:m;b=b===void 0?!1:b;f=f===void 0?!1:f;B=B===void 0?0:B;R=R===void 0?-Infinity:R;if(!(E.length||t.length||x||b))return A?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:aQJ(p)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.kh(_.zF("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 V=[];t.length&&V.push(ij0(t,0));b?V.push({contents:[{statementBannerRenderer:Gij(f,U)}]}):x?V.push(ij0(E,1,p,m,B,R)):A&&V.push({contents:[{statementBannerRenderer:FK0(p)}]});(x&&E.length||t.length)&&V.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.kh(_.zF("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 V.map(function(Q){return{itemSectionRenderer:Q}})};
tN=function(t,E){if(typeof t!=="object")return null;t=_.M(Object.entries(t));for(var p=t.next();!p.done;p=t.next()){var U=_.M(p.value);p=U.next().value;U=U.next().value;if(p===E)return p;if(U=tN(U,E))return p+"."+U}return null};
EQ=function(t){var E=t.content;return(t=t.styleRuns)&&E?{runs:t.map(function(p){var U={text:E.slice(p.startIndex,p.startIndex+p.length)};p.fontColor&&(U.textColor=p.fontColor);return U})}:{simpleText:E}};
BbO=function(t,E,p,U){var x=HjD;U&&(t.quantity=U);if(!t.quantity||!t.maxQuantity)return{};U=t.minusButton;var A=t.plusButton,m,b,f,B;return{value:t.quantity,maxValue:t.maxQuantity,onChangeCallback:function(R){x(t,R)},
minusLabel:(m=_.k(U,fh8))==null?void 0:m.label,minimumReachedLabel:(b=_.k(U,fh8))==null?void 0:b.limitReachedLabel,plusLabel:(f=_.k(A,fh8))==null?void 0:f.label,maximumReachedLabel:(B=_.k(A,fh8))==null?void 0:B.limitReachedLabel,disabled:E,onRemoveCommand:p}};
HjD=function(t,E){var p=t.quantityIncrementerEntityKey;if(p){var U={};U.quantity=E;_.Vl(_.pr("quantityIncrementerEntity",p,U));t.onChangeCommand&&_.bz(t.onChangeCommand)}};
wGl=function(t){if(t)return t===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(t).overflowY)?t:wGl(t.parentElement)};
QPJ=function(t,E){(t=RKi(t))&&((_.r("enable_mini_app_command_handler_mweb_fix")?0:E)?Vqj.push({command:t,sourceData:{},commandContext:void 0}):_.X3().resolve(_.ei).resolveCommand(t))};
RKi=function(t){return _.k(t,_.x2)};
CEj=function(){var t=window.performance.timeOrigin+window.performance.now(),E=(new _.UQ).setSeconds(t/1E9);return _.AG(E,2,_.fl(t%1E9),0)};
rit=function(t,E){var p;t=(p=_.k(_.k(t,_.x2),jP0))==null?void 0:p.methodName;var U,x;(p=window.youtubewebview||((U=window.webkit)==null?void 0:(x=U.messageHandlers)==null?void 0:x.youtubewebview))&&t&&(U=new xu,t=_.Lq(U,1,t),t=_.S$(t.JSC$12826_serializeBinary()),E=_.S$(E),p.postMessage(t+","+E))};
AN=function(t,E){var p=_.k(_.k(t,_.x2),jP0);p&&(E&&(p.serializedAdditionalMetadata=_.S$(E)),QPJ(t,!0))};
kBO=function(t,E,p){setTimeout(function(){_.Yk(t,E)},p)};
dZl=function(t){switch(t){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"}};
uXt=function(){return!!_.qO("ID_TOKEN")};
gvi=function(t){return t instanceof Error&&t.cause instanceof Ji8&&t.cause.rpcErrorCode!==void 0?!IhJ.includes(t.cause.rpcErrorCode):!0};
OjD=function(){return _.ka(ZjO,{authuser:""+(_.qO("SESSION_INDEX")||0)})};
Yu=function(t,E,p,U){p=p===void 0?"MINI_APP_SDK_API_UNSPECIFIED":p;U=U===void 0?"":U;var x=new _.cC;p={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:U,sdkApi:p};t instanceof Error&&(x.message=t.message,x.name=t.name,t.cause instanceof Ji8&&t.cause.rpcErrorCode!==void 0&&(p.rpcErrorCode=t.cause.rpcErrorCode));var A;(A=E.onError)==null||A.call(E,{loggingError:x,metadata:p})};
hKE=function(t,E,p,U){switch(t){case "MINI_APP_SOURCE_GAMESNACKS":return new MM(E,p,U);default:return new XG$(E,p,U)}};
ahL=function(t){switch(t){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"}};
eKj=function(t){switch(t){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"}};
FlY=function(t){switch(t){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE";
case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";case 15:return"MINI_APP_SDK_API_OPEN_CONTENT";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
zKt=function(){return Math.floor(Math.random()*4)+1};
lhE=function(t,E,p,U){t=_.M(Object.entries(t));for(var x=t.next(),A={};!x.done;A={message$jscomp$995:void 0},x=t.next()){var m=_.M(x.value);x=m.next().value;m=m.next().value;A.message$jscomp$995=m;E.push(setTimeout(function(b){return function(){U(!1);p(b.message$jscomp$995.text)}}(A),A.message$jscomp$995.delayMs));
Number(x)>0&&E.push(setTimeout(function(){U(!0)},A.message$jscomp$995.delayMs-400))}};
GBt=function(t,E,p){p=p===void 0?Td_:p;if(t){var U=_.X3().resolve(hH);U||_.r("mweb_no_observer_killswitch")?Dw(t,{data:E,observer:U,visibilityCallback:p,hideOption:OKO,showOption:XI8,layer:t.layer}):_.qW(new _.cC("Warning: monitorVisibility called with null observer",t.tagName,E==null?void 0:E.loggingDirectives,E==null?void 0:E.trackingParams))}else _.qW(new _.cC("Warning: monitorVisibility called with null element",E==null?void 0:E.loggingDirectives,E==null?void 0:E.trackingParams,E==null?void 0:
E.rendererContext))};
nvL=function(t,E){var p=p===void 0?Td_:p;_.r("mweb_fix_monitor_visibility_after_render")?t&&cu(function(){GBt(t,E,p)}):cu(function(){GBt(t,E,p)})};
Nbt=function(t,E){var p=document.createElement("ytd-engagement-panel-section-list-renderer");p.data=t;var U=E!=null?E:{};t=U.isPersistentPanel;E=U.hideDelayMs;U=U.overscrollContain;t=Object.assign({},t&&{isPersistentPanel:t},E&&{hideDelayMs:E},U&&{overscrollContain:U});Object.assign(p,t);return p};
PEO=function(t){DZ0||(DZ0=sPL(new _.iC(1,void 0,void 0,LlL),0));var E=DZ0.format(Math.floor(t));E=mD==="be"||mD==="bg"||mD==="es"||mD==="et"||mD==="hu"||mD==="ka"||mD==="lv"||mD==="pl"||mD==="pt-PT"||mD==="sq"?E.replace(new RegExp("^(\\d)"+LlL.GROUP_SEP.replace(".","\\.")+"(\\d+("+LlL.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):E;return t>=1E3&&t<=9999&&E[1]==="."&&(mD==="sl"||mD==="it")?E.replace(".",""):E};
_.WlO=function(t,E,p){return window.spf&&!_.r("web_disable_spfjs_client")?TbK(t,E,p):ovO(t,E)};
TbK=function(t,E,p){var U=null,x=(new _.PE(function(A,m){var b={};if(E){b.method=E.method;var f=E.postParams||{};jpD(t,E)&&(f[_.qO("XSRF_FIELD_NAME")]=_.qO("XSRF_TOKEN"));b.postData=_.T3(f);E.type&&(b.type=E.type);f=E.headers}b.headers=Bm_(t,f);_.r("debug_forward_web_query_parameters")&&(t=_.Qp$(t,window.location.search));b.experimental_headers=b.headers;b.onError=function(B){B.err&&B.xhr&&(B.err.params={url:B.xhr.responseURL,response:B.xhr.responseText.substr(0,64)});m(B.err)};
b.onPartDone=function(B){p&&p.call(null,B.part)};
b.onDone=function(B){var R=$Zj(B.response,"xsrf_token");J6(window.location.href,t)&&R&&_.ia("XSRF_TOKEN",R);if(R=$Zj(B.response,"service_worker_killswitch"))_.ia("SERVICE_WORKER_KILLSWITCH",R),fz0();A(B.response)};
U=spf.request(t,b)})).then(KlD);
x.thenCatch(function(A){var m=A instanceof _.mF,b=A&&A.hasOwnProperty("params")&&A.params.response?A.params.response:"";A instanceof Error&&(b?m?tYD(A):b===')]}\'\n{"reload":"now"}'?tYD(A):(vvD(A,t,b),yiO(A,b)?_.qW(A):_.bV(A)):tYD(A));U&&U.abort()});
return x};
KlD=function(t){if(t.type==="multipart"){var E=t.timing;t=t.parts.reduce(function(p,U){Object.assign(p,U);return p},{});
t.timing=t.timing||{};Object.assign(t.timing,E);t.type="reduced"}return t};
ovO=function(t,E){E=E===void 0?{}:E;var p=null,U=new _.PE(function(x,A){E.onFinish=function(m){if(m.readyState===XMLHttpRequest.DONE)if(m.status===200){if(m.responseType!=="json"){var b=m.response;b.substring(0,5)===")]}'\n"&&(b=b.substring(5));try{var f=JSON.parse(b)}catch(B){f=B}}else f=m.response;f instanceof Error?A(f):(b=$Zj(f,"xsrf_token"),J6(window.location.href,t)&&b&&_.ia("XSRF_TOKEN",b),m=m.responseURL,window.performance&&window.performance.getEntriesByName?(b=window.performance.getEntriesByName(m).pop())?
m={responseStart:(0,_.eu)()-(b.responseEnd-b.responseStart)}:(Math.random()<.01&&(b=Error("gi"),b.params=m,_.qW(b)),m={responseStart:-1}):m={responseStart:0},f.timing=f.timing||{},Object.assign(f.timing,m),x(f))}else A(Error("fi`"+m.status))};
(p=_.PC(t,E))||A(Error("fi`"+p.status))});
U.thenCatch(function(x){x instanceof Error&&(vvD(x,t),yiO(x)&&(x.level="WARNING"))});
_.r("cancel_pending_navs")&&U.thenCatch(function(){p.abort()});
return U};
$Zj=function(t,E){var p=t[E],U=t.parts;t.type==="multipart"&&U&&(p=(t=U.find(function(x){return E in x}))&&t[E]);
return p};
vvD=function(t,E,p){var U=t.message||"";E={original:U,url:E};if(p)if(U=U.match(/position:?\s*(\d+)/)){U=U&&Number(U[1])?Number(U[1]):0;var x=Math.max(U-25,0);E.position=U;E.response=p.substring(x,U+25)}else E.response=p.substring(0,50);_.HX(t,E);try{t.message="JSON parse error"}catch(A){}};
yiO=function(t,E){t=t.message||"";t=!!(t.indexOf("<")>=0||t.indexOf("end of ")>=0||t.indexOf("Unterminated string")>=0||t.indexOf("Unexpected EOF"));if(!t&&E)for(var p=E.length,U=!1,x=0;x<p;x++)if(U&&E[x]==="\\")x++;else if(E[x]==='"')U=!U;else if(E[x]==="<"&&!U){t=!0;break}return t};
SPj=function(){return document.documentElement.hasAttribute("dark")};
_.ci$=function(t,E){if(t!=="GFEEDBACK"&&t!=="GUIDED_HELP")_.fR(Error("hi`"+t));else{var p=_.X3().resolve(_.OB(_.jw));if(p&&(p=p.getCurrentPage())&&p.getServiceTrackingParams&&(p=p.getServiceTrackingParams()))for(var U=0,x;x=p[U++];)if(x.service===t){if(t=x.params)for(p=0;U=t[p++];)E[U.key]=U.value;break}}};
_.tb8=function(t){var E=_.k1();E&&(E=E.getPlayer())&&(E.pauseVideo(),t.playback_id=E.getVideoData().cpn,t.eid=E.getVideoData().eventId,Object.assign(t,E.getFeedbackProductData()))};
EB0=function(){var t={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.qO("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(t.enableAnonymousFeedback=!0);_.qO("SESSION_INDEX")&&(t.authuser=String(_.qO("SESSION_INDEX")));_.r("enable_pageid_for_feedback")&&_.qO("DELEGATED_SESSION_ID")&&(t.pageId=String(_.qO("DELEGATED_SESSION_ID")));return t};
_.bm=function(t){_.r("enable_ypc_spinners")&&_.du(t,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},t])};
_.im=function(t){_.r("enable_ypc_spinners")&&_.du(t,"yt-close-popup-action",["yt-loading-renderer"])};
p0t=function(t){return new Promise(function(E,p){_.Y2({verifyCommand:{recaptchaToken:t.recaptchaResponse}},{commandController:{onSuccess:function(U,x){x||p("ChallengeService did not return a response.");var A;E({challengeCompleted:(A=x.verified)!=null?A:!1})},
onServerError:function(U,x){p(x)}}})})};
UsJ=function(t,E,p,U){E({recaptchaResponse:U}).then(function(x){x.challengeCompleted?_.vC()?(p(3),_.X3().resolve(_.ei).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:t}})):p(2):p(4)},function(){p(4)})};
A5Y=function(t,E,p){_.xT(_.JC(xsO,_.qO("HL")),function(){var U;(U=window.grecaptcha)==null||U.ready(function(){var x=window.grecaptcha;x?(p(x.render(t,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:UsJ.bind(null,t,p0t,E)})),E(1)):E(4)})})};
YwK=function(t,E){return function(){switch(E()){case 0:return t().captchaLoadingMessage;case 1:return t().challengeReason;case 3:return t().captchaSuccessfulMessage;case 2:return t().captchaCookieSetFailureMessage;case 4:return t().captchaFailedMessage;default:return t().challengeReason}}()};
_.qM=function(){if(!Mb$){var t=document.querySelector("#player.skeleton");t&&(_.ng(t),Mb$=!0)}};
_.b68=function(){return ms8=dkO()};
H6O=function(){return _.q(function(t){return i6O!==void 0?t.return():t.yield(qwO(),0)})};
qwO=function(){return _.q(function(t){if(t.nextAddress==1)return t.yield(Jct(),2);ms8=t.yieldResult;i6O=_.ir.addLowPriorityJob(qwO,5E3);_.Do(t)})};
VbO=function(t){var E=E===void 0?fbi:E;var p,U,x=(p=t.responseContext)==null?void 0:(U=p.mainAppWebResponseContext)==null?void 0:U.trackingParam;if(!x){E.increment("MISSING");var A,m,b,f,B,R;_.qW(new _.cC("282054944_a",{gxj:!!((A=t.responseContext)==null?0:(m=A.mainAppWebResponseContext)==null?0:m.loggedOut),a3u:((b=t.responseContext)==null?void 0:b.mainAppWebResponseContext)===void 0,bh2:t.responseContext===void 0,cp:(f=t.playabilityStatus)==null?void 0:f.contextParams,pVi:(((B=t.streamingData)==
null?void 0:B.formats)||[]).length>0,oJ7:(((R=t.streamingData)==null?void 0:R.adaptiveFormats)||[]).length>0,os:!!t.offlineState,cotn:t.cotn}));return 2}p="";try{p=BeJ(x)}catch(C){return E.increment("C_ERROR"),_.bV(C),2}try{var V=_.LJj(p);var Q=w0t(V)}catch(C){return E.increment("P_ERROR"),_.bV(C),2}Q=_.jd(Q,RnD,1,_.ri());x=[];Q=_.M(Q);for(V=Q.next();!V.done;V=Q.next())U=V.value,V=U.getPath(),p=(0,_.Kq.getValueByKeys)(t,V.split(".")),p=String(p===void 0||p===null?"":p),U=U.getValue()||"",A=/[+\-\/_]/g,
p.replace(A,"")!==U.replace(A,"")&&(E.increment("MISMATCH"),_.r("ab_mis_log_err")&&(p=new _.cC("282054944_p",{wBY:V,g:String(p),e:String(U)}),_.bV(p)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(V)||(V.match(/enforcementMessageViewModel/i)?x.push(3):x.push(2)));if(x.length>0)return Math.max.apply(Math,_.KB(x));E.increment("SUCCESS");return 1};
j5K=function(t){var E=new HS;if(t.interpreterJavascript){var p=_.Ke0(t.interpreterJavascript);p=fB(p).toString();var U=new Q5E;_.Lq(U,6,p);_.FU(E,1,U,lG)}else t.interpreterUrl&&(p=_.q0(t.interpreterUrl),p=_.Dk(p).toString(),U=new _.Cxj,_.Lq(U,4,p),_.FU(E,2,U,lG));t.interpreterHash&&_.R7(E,3,t.interpreterHash,lG);t.program&&_.R7(E,4,t.program,lG);t.globalName&&_.R7(E,5,t.globalName,lG);t.clientExperimentsStateBlob&&_.R7(E,7,t.clientExperimentsStateBlob,lG);return E};
Vc=function(t){var E={};t=_.M(t.split("&"));for(var p=t.next();!p.done;p=t.next())p=p.value.split("="),p.length===2&&(E[p[0]]=p[1]);return E};
r5Y=function(t){return Number(t.t)||7200};
k1D=function(){var t=t===void 0?window:t;var E,p;return _.q(function(U){if(U.nextAddress==1)return U.yield(YBK(),2);E=t;p=E.bgevmc;if(!p)throw Error("li");return U.return({pause:function(){p.p()},
resume:function(){p.r()},
checkForRefresh:function(){return p.cr()}})})};
A6_=function(){if(_.r("bg_st_hr"))return"havuokmhhs-0";var t,E=((t=globalThis.performance)==null?void 0:t.timeOrigin)||0;return"havuokmhhs-"+Math.floor(E)};
Qc=function(t){window.bgens=t};
ds_=function(){return new Promise(function(t){var E=window;E.ntpevasrs!==void 0?t(new Cr(E.ntpevasrs)):(E.ntpqfbel===void 0&&(E.ntpqfbel=[]),E.ntpqfbel.push(function(p){t(new Cr(p))}))})};
uVE=function(t){if(_.r("attmusi")&&_.r("attmusi_ue")){t={s:t.owV.bind(t),ir:t.yPz.bind(t)};var E=window;E.attmp=t;if(E.attmq!==void 0)for(var p=_.M(E.attmq),U=p.next();!U.done;U=p.next())U=U.value,U(t);E.attmq=void 0}else E=t.owV.bind(t),_.Oy("yt.aba.att",E),t=t.yPz.bind(t),_.Oy("yt.aba.att2",t)};
IbO=function(t){switch(_.LR(t.input)){case _.Cf(J5t):var E={};return E.encryptedVideoId=t.innerTubeRequest.externalVideoId,E}return{}};
O6Y=function(t){switch(_.LR(t.input)){case _.Cf(J5t):if(_.r("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.Cf(gBE):if(_.r("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.Cf(jc):if(_.r("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&t.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.Cf(Z6_):var E,p;if(_.r("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((p=_.k((E=t.config)==null?void 0:E.command,_.Vb))==null?0:p.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.hn$=function(t){var E;if(t.playlistVideoRenderer&&((E=t.playlistVideoRenderer)==null?0:E.engagementBar))return X0O(t.playlistVideoRenderer.engagementBar);if(_.k(t,rI)){var p;if(t=(p=_.k(t,rI))==null?void 0:p.engagementBar)return X0O(t)}return""};
X0O=function(t){if(!t)return"";t=_.k(t,_.abJ);if(t==null||!t.actions)return"";t=_.M(t.actions);for(t=t.next();!t.done;t=t.next()){t=_.k(t.value,_.enD);var E=void 0;if((E=t)==null||!E.itemId)break;return t.itemId}return""};
_.FXL=function(t){var E;if(t.playlistVideoRenderer&&((E=t.playlistVideoRenderer)==null?0:E.videoId))return t.playlistVideoRenderer.videoId;if(_.k(t,rI)){var p,U;if(t=(p=_.k(t,rI))==null?void 0:(U=p.playlistItemData)==null?void 0:U.videoId)return t}return""};
_.znO=function(t){var E;if(t.playlistVideoRenderer&&((E=t.playlistVideoRenderer)==null?0:E.voteCount))return t.playlistVideoRenderer.voteCount;if(_.k(t,rI)){var p,U;if(t=(p=_.k(t,rI))==null?void 0:(U=p.playlistItemData)==null?void 0:U.voteCount)return t}return 0};
_.ku=function(t,E){return _.hj(t.entities,"flowStateEntity",E)};
G1J=function(t,E,p,U){var x=void 0;t=_.M(t[E.iconName]||[]);for(var A=t.next();!A.done;A=t.next()){A=A.value;var m=E.iconSize;var b=E.iconStyle;m=!m||m===A[2];var f=lbJ[A[0]];U&&U!==A[1]||!m||b&&b!==f?b=!1:x?(b=lbJ[A[0]],b=!!E.iconStyle||b==="youtube_outline",m=x.version<=A[1],b=(!!E.iconSize||A[2]===24)&&b&&m):b=!0;b&&(x={name:E.iconName,style:lbJ[A[0]],size:A[2],version:A[1],allowMirroring:!!A[3],url:p(E.iconName,A)})}return x};
nB0=function(t,E,p,U){return t+(""+lbJ[p[0]]+((U===void 0?0:U)?"_experimental":"")+"/"+E+"/v"+p[1]+"/")+(p[2]+"px.svg")};
NeL=function(t){return _.qO("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.qO("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":t};
Ds_=function(t,E){return nB0("https://fonts.gstatic.com/s/i/",t,E)};
s5$=function(t,E){return nB0("https://fonts.gstatic.com/s/i/",t,E,!0)};
LXE=function(t,E){return nB0("https://www.gstatic.com/youtube/img/icons/web/",t,E)};
Tet=function(t){var E=t.enabled;var p=t.itemPlaybackModel;var U=t.thumbnailElRef;var x=t.containerElRef;var A=t.options;var m;_.M$(function(){var b=x==null?void 0:x.value;var f,B=(f=U())==null?void 0:f.value;f=p();var R=A();if(E&&f&&b&&B&&(R==null?0:R.thumbnail)){var V={data:f,hostElement:b},Q,C,d=[].concat(_.KB((Q=R.thumbnailOverlays)!=null?Q:[]),_.KB((C=f.overlays)!=null?C:[]));C=f.itemPlaybackOptions;Q=(C==null?void 0:C.enableRoundedPlayer)||R.enableRounding;C=C==null?void 0:C.disableTimeStatusOverlay;
var I,O;b={mediaRenderer:V,lockupElement:b,thumbnailElement:B,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.AJ((I=f.inlinePlayerData)==null?void 0:I.onVisible),navigationEndpoint:_.AJ((O=f.inlinePlayerData)==null?void 0:O.onSelect),thumbnail:R.thumbnail,thumbnailOverlays:d,accessibilityText:R.accessibilityText||""},thumbnailSize:R.thumbnailSize,enableRounding:Q,mouseleaveCallback:R.mouseleaveCallback,hideTimeDisplay:C}}}else b=void 0;if(I=b){var a;(a=m)==null||dI(a);m=xj(I);var F,L;
((F=p())==null?0:(L=F.inlinePlayerData)==null?0:L.forceImpAutoplay)&&PxJ(m)}},"BLiQOd");
_.iK(function(){var b;(b=m)==null||dI(b)})};
oBE=function(t){t=atob(t);for(var E=[],p=0;p<t.length;p++)E.push(t.charCodeAt(p));return new Blob([new Uint8Array(E)],{type:"image/png"})};
$s0=function(t,E,p,U){U=U===void 0?"INSERTION_POSITION_UNSPECIFIED":U;return t({targetId:E},function(x){var A,m=(A=x.contents)!=null?A:[];A=p!=null?p:[];var b=WXO(m);switch(U){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},x,{contents:[].concat(_.KB(m.slice(0,b)),_.KB(A),_.KB(m.slice(b+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},x,{contents:[].concat(_.KB(A),_.KB(m))});case "INSERTION_POSITION_LAST":return Object.assign({},x,{contents:[].concat(_.KB(m),_.KB(A))});
default:return x}})};
vBL=function(t,E,p,U,x){x=x===void 0?"RELATIVE_INSERTION_POSITION_AFTER":x;return t({targetId:E},function(A){var m,b=(m=A.contents)!=null?m:[];m=KX8(b,p);if(m<0)return A;m=x==="RELATIVE_INSERTION_POSITION_BEFORE"?m:m+1;return Object.assign({},A,{contents:[].concat(_.KB(b.slice(0,m)),_.KB(U),_.KB(b.slice(m)))})})};
WXO=function(t){var E=t.findIndex(function(p){return _.k(p,_.um)});
return E>=0?E:t.length};
KX8=function(t,E){return t.findIndex(function(p){a:{p=_.M(Object.values(p));for(var U=p.next();!U.done;U=p.next())if((U=U.value)&&U.targetId){p=U.targetId;break a}p=""}return p===E})};
SwO=function(t,E,p){return t({targetId:E},function(U){var x,A=(x=U.contents)!=null?x:[];return Object.assign({},U,{contents:y5O(A,p)})})};
y5O=function(t,E){return t.filter(function(p){var U=E.includes;a:{p=_.M(Object.values(p));for(var x=p.next();!x.done;x=p.next())if((x=x.value)&&x.targetId){p=x.targetId;break a}p=""}return!U.call(E,p||"")})};
_.c58=function(t,E){return{engagementPanelSectionListRenderer:{panelIdentifier:t,identifier:E,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
t9O=function(t,E){t=t.getAvailableAudioTracks();if(t.length)return t==null?void 0:t.find(function(p){var U;return(p==null?void 0:(U=p.getLanguageInfo())==null?void 0:U.getId())===E})};
_.pmO=function(t){var E,p=(E=t.getOption("captions","tracklist",{includeAsr:!0}))!=null?E:[];return p=EJj(p,t)};
UuO=function(t){return t.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
EJj=function(t,E){E=UuO(E);if(E==null||!E.length)return t;var p=E.filter(function(m){return m});
E=t.filter(function(m){return m.languageCode.startsWith("en")});
p=_.M(p);for(var U=p.next();!U.done;U=p.next())if(U=U.value,E.length){var x=E[0],A=Object.assign({},x);x.languageCode!==U.languageCode&&(A.displayName=x.languageName+" >> "+U.languageName,A.translationLanguage=U,t.push(A))}return t};
xuK=function(t,E,p){t=_.pmO(t);if(t.length)return p?t.find(function(U){if(typeof(U==null?void 0:U.translationLanguage)==="object"){var x;return((x=U.translationLanguage)==null?void 0:x.languageCode)===E}return!1}):t==null?void 0:t.find(function(U){return U.languageCode===E})};
Akj=function(t){return t.getOption("captions","tracklist",{includeAsr:!0})};
YOY=function(t){var E=t.getAvailableAudioTracks();if(E!=null&&E.length){var p=t.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.KB(E.map(function(U){return{listItemViewModel:{title:{content:U.getLanguageInfo().getName()},isSelected:U.getLanguageInfo().getId()===(p==null?void 0:p.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:U.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
M9t=function(t){return t.getOption("captions","tracklist",{includeAsr:!0})};
mu0=function(t){var E=M9t(t);if(E==null?0:E.length)return E;t.loadModule("captions");return M9t(t)};
b5O=function(t){var E=t.getOption("captions","track");if(E)return E;t.loadModule("captions");return t.getOption("captions","track")};
qOK=function(t){var E=mu0(t);if(E!=null&&E.length){var p=b5O(t),U;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.zF("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(p==null?0:p.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.KB(E.map(function(x){return{listItemViewModel:{title:{content:x.displayName},
isSelected:x.displayName===(p==null?void 0:p.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:x.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.zF("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!p.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!p.translationLanguage&&{selectionText:{content:(p==null?void 0:(U=p.translationLanguage)==null?void 0:U.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[i5O(t)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
i5O=function(t){var E=UuO(t);if(E==null||!E.length)throw Error("Hi");var p=b5O(t);t=E.filter(function(U){return!U.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.KB(t.map(function(U){var x;return{listItemViewModel:{title:{content:U.languageName},isSelected:U.languageName===(p==null?void 0:(x=p.translationLanguage)==null?void 0:x.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:U.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
wmE=function(t){return new Promise(function(E,p){if(t===void 0)_.bV(Error("Li"),"ERROR"),p(Error("Li"));else{p=new _.H5Y;var U=_.fXL();p=p.init();var x=_.BK0(_.qO("YPC_MB_URL"),!0);Promise.all([p,x]).then(function(){var A=_.JN.payments.business.integration.ClientTokenFactory.createClientToken(t,U);E(A)})}})};
QYj=function(t,E,p,U,x,A,m){var b=_.fd();p=p.replace(/-/g,"+").replace(/_/g,"/");var f=_.nF().get("hl"),B=_.I7(_.RG),R=E==null?void 0:E.element;R&&_.bm(R);RG$(E,!0);_.V9D(B,p,b.resolve,function(){R&&_.im(R)},function(V){R&&_.im(R);
b.reject(V)},f,U?function(V){U&&_.H9(t,U,{backend_analytics:V})}:void 0,b.resolve,x,A,m);
return b.promise};
RG$=function(t,E){!(t=t==null?void 0:t.element)||t.tagName!=="YT-BUTTON-RENDERER"&&t.tagName!=="YTD-BUTTON-RENDERER"||(t.disabled=E)};
CjL=function(){var t=_.zF("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.kh(t),actionButton:{buttonRenderer:OY_()}}},popupType:"TOAST"}};
jYl=function(){var t=_.zF("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.kh(t),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
rk_=function(t){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:t}]}}};
gI=function(t,E,p,U){var x;return _.q(function(A){if(A.nextAddress==1)return _.aR(A,2),A.yield(t,4);if(A.nextAddress!=2)return(x=_.TV(E.getState().entities).length>0)?A.return({title:_.kh(_.zF("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.kh(_.zF("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:ZY0()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
A.return(XjY(p,U));_.nB(A);return A.return(XjY(p,U))})};
kTt=function(t,E){return E?E==="PPSV"||cSL(t,E):!1};
duY=function(t){t.responseContext||(t.responseContext={});t.responseContext.maxAgeSeconds=0;return t};
OQ=function(t){var E;return _.q(function(p){return p.nextAddress==1?p.yield(uFL(t,"service:topbar:fallback"),2):(E=p.yieldResult)&&_.Z2(E)?p.return(duY(_.Z2(E))):p.return()})};
Jk0=function(t){var E;return _.q(function(p){return p.nextAddress==1?p.yield(uFL(t,"service:downloads_settings:fallback"),2):(E=p.yieldResult)&&_.Z2(E)?p.return(E):p.return()})};
uFL=function(t,E){var p;return _.q(function(U){if(U.nextAddress==1)return t?U.yield(t.get(E),2):U.return();p=U.yieldResult;return!p||!_.Z2(p)||!isNaN(Number(p.data.expireTimestampMs))&&p.isExpired()?U.return():U.return(p)})};
IXl=function(t){var E=_.X3().resolve(XY).getState().entities;return t.playlistId?kTt(E,t.playlistId):!1};
Z50=function(t){var E=_.z3("web_pbj_log_warning_rate",0);E=E>0&&Math.random()<E;if(!_.k(t,_.DK))return E&&_.qW(Error("ej")),!1;var p;return _.r("shorts_controller_retrieve_seedless_sequence_v2")&&((p=_.k(t,_.DK))==null?void 0:p.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:gJl(t)?!0:(E&&_.qW(Error("fj")),!1)};
gJl=function(t){var E=(_.k(t,_.HD)||_.k(t,_.DK)).videoId;if(!E||!O5O.test(E))return!1;var p;return(t=(p=_.k(t.commandMetadata,_.hZ))==null?void 0:p.url)&&(t.includes(E)||t.startsWith("/clip"))?!0:!1};
_.hGi=function(){var t=_.nF();return t.getFlag(192)?t.getFlag(190):!(_.uc("web_watch_cinematics_disabled_by_default")||_.uc("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&XmO())};
_.hN=function(t,E,p){var U={};U.currentUrl=E;U.vis=t.vis!==void 0?t.vis:0;U.splay=!1;E=_.nF();U.autoCaptionsDefaultOn=E.getFlag(66);E.getFlag(141)?E.getFlag(140)?U.autonavState="STATE_OFF":U.autonavState="STATE_ON":U.autonavState="STATE_NONE";U.html5Preference="HTML5_PREF_WANTS";isNaN(_.qO("STS"))||(U.signatureTimestamp=_.qO("STS"));t.autonav&&(U.autoplay=!0,U.autonav=!0);t.mutedAutoplay&&(U.autoplay=!0,U.mutedAutoplay=!0);t.inlinePlayback&&(U.autoplay=!0,U.autonav=!1,U.isInlineUnmutedPlayback=!!t.inlineUnmuted);
U.referer=p;U.lactMilliseconds=t.lact!==void 0?t.lact.toString():"-1";_.r("enable_unknown_lact_fix_on_html5")&&U.lactMilliseconds==="-1"&&_.qW(new _.cC("Unknown LACT is set in playbackContext.",{"lact in tempData":t.lact||"undefined",autonav:t.autonav||"undefined"}));t={};E.getFlag(194)&&(t.hasShownAmbientMode=!0);E.getFlag(192)&&(t.hasToggledOffAmbientMode=!0);_.hGi()&&(t.watchAmbientModeEnabled=!0);U.watchAmbientModeContext=t;return U};
aX0=function(t){var E={},p=t.pbis||0;p&&(E.playbackBeginsInSeconds=p);t.prefetch_reason&&t.prefetch_reason==="hc_pbis"&&(E.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return E};
eGY=function(t,E){var p;if(E==null?0:(p=E.requestTemplate)==null?0:p.panelId)t.panelId=E.requestTemplate.panelId;var U;if(E==null?0:(U=E.requestTemplate)==null?0:U.params)t.params=E.requestTemplate.params};
zG8=function(){if(F28)return F28();var t=!_.r("idb_response_store_auth_killswitch"),E={};F28=aD("yt-it-response-store",{objectStores:(E.ResponseStore={addedAtVersion:1},E),shared:!t,upgrade:function(p,U){U(1)&&(p=VK(p,"ResponseStore",{keyPath:["key","clientName"]}),QK(p,"byExpiration","expireTimestampMs"),QK(p,"byInterface","clientName"))},
version:1});return F28()};
a7=function(t){return _.d7(zG8(),t)};
GTJ=function(t,E){var p;return _.q(function(U){return U.nextAddress==1?U.yield(_.hF(),2):(p=U.yieldResult)?U.return(new lXE(t,E,p)):U.return()})};
nJD=function(t){var E=Object.keys(t)[0];if(E)return t.screenExit&&(E=E+";"+t.screenExit.screen),E};
NKY=function(t){var E=new Map;t=_.M(t);for(var p=t.next();!p.done;p=t.next())p=p.value,p!=null&&(E.has(p.taskType)||E.set(p.taskType,[]),E.get(p.taskType).push(p));return E};
DuO=function(t){t=[].concat(_.KB(t)).sort(function(p,U){return p-U});
var E=Math.floor(t.length/2);return t.length%2?t[E]:(t[E-1]+t[E])/2};
Pj$=function(t,E){t=t===void 0?NGi:t;E=E===void 0?{}:E;_.Oy("yt.logging.errors.log",_.bV);GEL();sY$(TGO(),E);window.onerror=t;L2j=n18;window.addEventListener("unhandledrejection",function(p){if(p.reason instanceof Error){var U=p.reason;_.HX(U,{source:"unhandledrejection"});U.name==="AbortError"&&(U.level="WARNING")}n18(p.reason);p.preventDefault()})};
_.TKi=function(t){var E,p,U,x,A,m,b,f,B,R,V,Q,C,d,I,O,a,F,L,D,W,K,v,YL,bY,kL,R0,j$,lY,Tt,si,Q0,ps,$L,Cs,km,ZT,l8,Rt,wE;return _.q(function(Gt){if(Gt.nextAddress==1)return Gt.yield(_.GV(t,{mode:"readonly",enableRetries:!0},function(V0){return nb(V0,"playbackData").then(function(SW){var h3=SW.map(function(VJ){return VJ.transfer}).filter(function(VJ){return!!VJ}),zX=SW.map(function(VJ){return VJ.offlineVideoPolicy}).filter(function(VJ){return!!VJ}),zc=SW.filter(function(VJ){return!!VJ.key}).map(function(VJ){return _.X1(_.gm(VJ.key).entityId,
"downloadStatusEntity")});
h3=nb(V0,"transfer",h3);zX=nb(V0,"offlineVideoPolicy",zX);zc=nb(V0,"downloadStatusEntity",zc);var EC=h3.then(function(VJ){VJ=VJ.reduce(function($m,Kl){(Kl==null?0:Kl.offlineVideoStreams)&&$m.push.apply($m,_.KB(Kl.offlineVideoStreams));return $m},[]).filter(function($m){return!!$m});
return nb(V0,"offlineVideoStreams",VJ)});
return RD.all([h3,zX,EC,zc]).then(function(VJ){var $m=_.M(VJ);VJ=$m.next().value;var Kl=$m.next().value;var iG=$m.next().value;$m=$m.next().value;return[SW,VJ,Kl,iG,$m]})})}),2);
if(Gt.nextAddress!=3)return E=Gt.yieldResult,Gt.yield(_.GV(t,{mode:"readonly",enableRetries:!0},function(V0){return nb(V0,"mainDownloadsListEntity").then(function(SW){var h3,zX;return(zX=(h3=SW[0])==null?void 0:h3.downloads)!=null?zX:[]})}),3);
p=Gt.yieldResult;U=_.M(E);x=U.next().value;A=U.next().value;m=U.next().value;b=U.next().value;f=U.next().value;B=x;R=A;V=m;Q=b;C=f;d={};I={};O={};a={};F={};L=[];D=_.M(R);for(W=D.next();!W.done;W=D.next())(K=W.value)&&(d[K.key]=K);v=_.M(V);for(YL=v.next();!YL.done;YL=v.next())(bY=YL.value)&&(I[bY.key]=bY);kL=_.M(C);for(R0=kL.next();!R0.done;R0=kL.next())(j$=R0.value)&&(O[j$.key]=j$);lY=_.M(Q);for(Tt=lY.next();!Tt.done;Tt=lY.next())(si=Tt.value)&&(a[si.key]=si);Q0=_.M(p);for(ps=Q0.next();!ps.done;ps=
Q0.next())$L=ps.value,Cs=void 0,F[(Cs=$L.videoItem)!=null?Cs:""]=!0,$L.videoItem&&(ZT=km=void 0,l8=(ZT=(km=_.gm($L.videoItem))==null?void 0:km.entityId)!=null?ZT:"",L.push({externalVideoId:l8}));Rt=B.filter(function(V0){if(!V0||!V0.key||!V0.offlineVideoPolicy)return!1;V0=_.gm(V0.key).entityId;V0=_.X1(V0,"downloadStatusEntity");var SW;return!(V0&&((SW=O[V0])==null?void 0:SW.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
wE=Rt.map(function(V0){var SW=d[V0.transfer],h3=[];if(SW==null?0:SW.offlineVideoStreams)for(var zX=_.M(SW.offlineVideoStreams),zc=zX.next();!zc.done;zc=zX.next())(zc=a[zc.value])&&h3.push(zc);zX=I[V0.offlineVideoPolicy];zc=F;var EC=V0==null?void 0:V0.playerResponseTimestamp,VJ=_.gm(zX.key).entityId;V0=_.X1(VJ,"mainVideoEntity");if(zX.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var $m="OFFLINE_VIDEO_STATE_DISABLED";zX.expirationTimestamp&&Number(zX.expirationTimestamp)<Date.now()/1E3&&($m="OFFLINE_VIDEO_STATE_EXPIRED")}else if(zX.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")$m="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(SW==null?void 0:SW.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":$m="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":$m="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":$m="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":$m="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":$m="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":$m="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:$m="OFFLINE_VIDEO_STATE_UNKNOWN"}if($m==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(SW==null?void 0:SW.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":$m="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":$m="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":$m=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}VJ={id:VJ,videoState:$m};if(SW==null?0:SW.cotn)VJ.cotn=SW.cotn;if(SW==null?0:SW.maximumDownloadQuality)VJ.selectedVideoQuality=SW==null?void 0:SW.maximumDownloadQuality;if(SW==null?0:SW.lastProgressTimeMs)VJ.lastProgressTimeMs=SW.lastProgressTimeMs;EC&&(VJ.playerResponseSavedTimeMs=String(Number(EC)*1E3));SW=String;EC=0;h3=_.M(h3);for($m=h3.next();!$m.done;$m=h3.next())if($m=$m.value,$m.streamsProgress){$m=_.M($m.streamsProgress);for(var Kl=$m.next();!Kl.done;Kl=
$m.next()){var iG=void 0;EC+=Number((iG=Kl.value.numBytesDownloaded)!=null?iG:0)}}VJ.downloadedBytes=SW(EC);VJ.selectedOfflineMode=zc[V0]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";zX.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(VJ.offlinePlaybackDisabledReason=zX.offlinePlaybackDisabledReason);return VJ});
return Gt.return({offlineVideos:wE,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:L}}})})};
oJ$=function(){var t;return _.q(function(E){return E.nextAddress==1?E.yield(_.F1(),2):(t=E.yieldResult)?E.return(_.TKi(t)):E.return({state:"PES Unavailable"})})};
K2$=function(){var t,E,p,U;return _.q(function(x){if(x.nextAddress==1)return x.yield(_.F1(),2);if(x.nextAddress!=3)return(t=x.yieldResult)?x.yield(W2i(t),3):x.return({state:"PES Unavailable"});E=x.yieldResult;p={};U=E.reduce(function(A,m){A[m.key]=m;return A},p);
return x.return($uO(U))})};
$uO=function(t){for(var E={},p=[],U=_.M(Object.keys(t)),x=U.next();!x.done;x=U.next()){var A=x.value;x=t[A];var m=void 0;if(((m=x)==null?void 0:m.entityType)==="mainVideoEntity"){delete t[A];var b=x.data;x={};if(b){var f=void 0;m=(f=b.videoId)!=null?f:"vid-"+A;A=t;x.video=b;delete x.video.formattedDescription;delete x.video.thumbnail;b.owner&&(f=A[b.owner],f==null?0:f.data)&&(delete A[f.key],x.video.owner=f.data,delete x.video.owner.avatar);if(b=b.downloadState)if(f=A[b],f==null?0:f.data)if(delete A[b],
b=f.data.playbackData)if(f=A[b],f!=null&&f.data){delete A[b];b=f.data;delete b.playerResponseJson;x.playbackData=b;if(b.transfer&&(f=A[b.transfer],f==null?0:f.data)){delete A[f.key];var B=f.data;x.transfer=B;f=[];B=_.M(B.offlineVideoStreams||[]);for(var R=B.next();!R.done;R=B.next())if(R=A[R.value])delete A[R.key],f.push(R.data);f&&(x.streams=f)}(b=b.offlineVideoPolicy)&&(b=A[b])&&b.data&&(delete A[b.key],x.offlineVideoPolicy=b.data)}E[m]=x}}else x&&x.entityType==="offlineOrchestrationActionWrapperEntity"&&
x.data&&(delete t[x.key],m=x.data,A=void 0,p.push({id:m.rootActionId,type:((A=m.actionProto)==null?void 0:A.actionType)||"",entity:x}))}E.wrapperEntities=p;Object.keys(t).length>0&&(E.unknownKeys=t);return E};
vJ0=function(){var t,E,p,U,x,A,m,b,f;return _.q(function(B){if(B.nextAddress==1)return t=(new _.wx("")).hasLocalStorage(),U=!!((E=_.Ui.crypto)==null?0:(p=E.subtle)==null?0:p.importKey),x=!!_.Ui.BroadcastChannel,A=!!_.Ui.navigator.locks,B.yield(Q4E(),2);m=B.yieldResult;b=t&&U&&x&&A&&m;f={isSupported:b};if(b)return B.return(f);f.missingBrowserFeatures=[];m||f.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");t||f.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
U||f.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");x||f.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");A||f.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return B.return(f)})};
ykE=function(t,E,p,U){var x=!1,A={contentId:void 0,contentType:"video"};E=_.M(Object.entries(E));for(var m=E.next();!m.done;m=E.next()){var b=_.M(m.value);m=b.next().value;b=b.next().value;t.includes(m)&&!p.has(b)?(A.contentId=b,p.add(b),x=!0):m==="contentType"?b==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(A.contentType="playlist"):typeof b==="object"&&b!==null&&ykE(t,b,p,U)}x&&U.push(A)};
SOL=function(){var t;return!((t=ec?ec:null)==null||!t.window)};
_.E$j=function(t){if(_.ck_()){var E=_.tGO().mediaSession;try{E.setActionHandler("enterpictureinpicture",function(p){t(p)})}catch(p){}}};
_.ck_=function(){return!(!ec||!ec)&&Zl()&&_.kt$("Chromium")>=120};
pcE=function(t){for(var E=[],p=_.M(document.styleSheets),U=p.next(),x={};!U.done;x={node$jscomp$778:void 0},U=p.next())x.node$jscomp$778=U.value.ownerNode,x.node$jscomp$778&&(x.node$jscomp$778 instanceof HTMLStyleElement||x.node$jscomp$778 instanceof HTMLLinkElement)&&E.push(new Promise(function(A){return function(m){var b=A.node$jscomp$778.cloneNode(!0);b.onload=function(){m()};
b.onerror=function(){_.qW(Error("wj"));m()};
t.document.head.appendChild(b)}}(x)));
return Promise.all(E)};
Hhi=function(t){var E=[_.ks(UHj),_.ks(xHj),_.ks(Art)];YbL(window.document.documentElement,t.document.documentElement,[_.ks(MGJ),_.ks(mHl),_.ks(bhl),_.ks(ih0),_.ks(qb0)]);YbL(window.document.body,t.document.body,E)};
YbL=function(t,E,p){t=_.M(t.attributes);for(var U=t.next();!U.done;U=t.next())if(U=U.value)try{_.VU(p,E,U.name,U.value)}catch(x){}};
BHO=function(t,E){t=new _.FY(t.document.documentElement);t.start(f6O,E);return t};
wc0=function(t){var E=t.document.documentElement;E.addEventListener("click",function(p){tj$(E,p)});
E.addEventListener("touchstart",function(p){AzJ(p)});
E.addEventListener("mousedown",function(p){AzJ(p)})};
VGO=function(t,E,p,U){U=U===void 0?!1:U;E=new RsY(E||t,p||t);return{x:t.x+((U===void 0?0:U)?E.lengthX*-1:E.lengthX)*.2,y:t.y+((U===void 0?0:U)?E.lengthY*-1:E.lengthY)*.2}};
Qj8=function(t){if(!t)return!1;var E=t.status==="OK"||t.status==="LIVE_STREAM_OFFLINE",p,U,x,A=(x=(p=t.errorScreen)==null?void 0:p.playerLegacyDesktopYpcTrailerRenderer)!=null?x:(U=t.errorScreen)==null?void 0:U.ypcTrailerRenderer;return!!E||!!A};
_.C4i=function(t,E){if(!t)return!1;var p,U=(p=t.errorScreen)==null?void 0:p.playerLegacyDesktopYpcOfferRenderer,x;E=!!(E==null?0:(x=E.playerOverlayRenderer)==null?0:x.gatedActionsOverlayRenderer);return!!Qj8(t)||!!U||!!E};
kfi=function(t){return jjY(t,0,"gclid",t.search(rr8))>=0||jjY(t,0,"gad_source",t.search(rr8))>=0};
dH_=function(t){var E=[],p=0;return{clear:function(){p=E.length=0},
push:function(U){E[p]=U;p=(p+1)%t},
iterate:function(){return function x(){var A,m,b,f;return _.zs(x,function(B){switch(B.nextAddress){case 1:_.l0(B,2),A=E.length,m=0;case 4:if(!(m<A)){B.jumpTo(2);break}b=p+m;f=_.lm;return B.yield(E[b%A],7);case 7:f(B.yieldResult);m++;B.jumpTo(4);break;case 2:_.FQ(B),_.Gc(B,0)}})}()}}};
uKD=function(t){t.eventsToIgnore||(t.eventsToIgnore=[]);var E=t.eventsToIgnore.map(pFD),p=new Set(E),U=dH_(t.bufferSize);return{flush:function(){var x=Array.from(U.iterate());U.clear();x=x.map(function(A){return{name:A.name,timestamp:A.startTime,attributes:A.attributes}});
return JSON.stringify(x)},
onSpanStart:function(x){x.name==="event"&&p.has(x.attributes.type)||U.push(x)}}};
Jri=function(t){t=uKD(t);var E=t.flush;IZt({onSpanStart:t.onSpanStart});BX.subscribe("handleError",function(p){try{p.params.breadcrumbs=E()}catch(U){_.bV(U,"WARNING")}})};
I68=function(){vD("web_tracing_action");_.yS("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
g$J=function(){vD("web_tracing_action");_.yS("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
Xcj=function(t,E,p){if(E===void 0){ZhO||(g$J(),setInterval(g$J,6E5),ZhO=!0);var U="web_tracing_action"}else U=E;var x,A=((x=t.endTime)!=null?x:t.startTime)-t.startTime;x={};p=OhE(t.name,A,t.startTime,{webTracing:(x[t.name]=t.attributes,x)},p,U,{spanStatus:t.status});if(t.children)for(t=_.M(t.children),U=t.next();!U.done;U=t.next())Xcj(U.value,E,p)};
hsi=function(t){var E=aZY.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(p){p.data&&typeof p.data==="object"&&(p=p.data,p.from==="extension"&&p.app==="yt.telemetry"&&(E("Received message from extension",p),t.onMessage(p)))});
return function(p,U){p={app:"yt.telemetry",from:"app",key:p,payload:U};E("Sending message to extension",p);window.postMessage(p,"*")}};
a6i=function(){var t=t===void 0?3E3:t;var E=hsi({onMessage:function(){}}),p=[];
return{onSpanEnd:function(U){U.parentId==null&&p.push(U)===1&&setTimeout(function(){var x=[].concat(_.KB(p));p.length=0;E("spansReported",{spans:x})},t)}}};
es_=function(t){t=t===void 0?400:t;var E=[],p=[];return{start:function(){return qW$({checkoutEveryNth:t,emit:function(U,x){x&&(E=p,p=[]);p.push(U)}})},
getRecording:function(){return[].concat(_.KB(E),_.KB(p))}}};
l60=function(){(new Fj_({sessionReplayEvents:_.z3("web_tracing_session_replay",0)})).subscribe(function(t){if(t.sessionReplayEvents>0)try{var E=es_(t.sessionReplayEvents);E.start();if(_.r("web_tracing_session_replay_demo")){var p=console.log;window.exportSessionReplay=function(){var U=JSON.stringify(E.getRecording(),null,2);U=zsl(new Blob([U],{type:"text/plain"}));var x=document.createElement("a");x.download="session_replay.json";x.dataset.downloadurl=["application/json",x.download,x.href].join(":");
x.style.display="none";x.href=U;x.click();URL.revokeObjectURL(U);p("View replay at go/yt-session-replay-viewer")}}}catch(U){_.qW(Error("yj"))}})};
n$j=function(){var t=window.fetch;window.fetch=function(){var E=_.t9.apply(0,arguments),p=_.M(E),U=p.next().value;p=p.next().value;var x=VR("httpEvent",{method:(p===void 0?{}:p).method||"GET",path:Gf$(U),type:"fetch"},{active:!1});return t.apply(null,_.KB(E)).then(function(A){x.addAttributes({statusCode:A.status,statusText:A.statusText});x.end();return A}).catch(function(A){x.end("SPAN_STATUS_ERROR");
throw A;})}};
NH0=function(){var t=XMLHttpRequest.prototype.open,E=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.open=function(p,U,x,A,m){var b=this;x=x===void 0?!0:x;this._requestData={method:p,url:U.toString()};this.addEventListener("load",function(){var f=b._span;f==null||f.addAttributes({statusCode:b.status,responseContentLength:b.responseText.length});f==null||f.end()});
this.addEventListener("error",function(){var f=b._span;f==null||f.addAttributes({statusCode:b.status,statusText:b.statusText});f==null||f.end("SPAN_STATUS_ERROR")});
this.addEventListener("abort",function(){var f=b._span;f==null||f.addAttributes({statusCode:b.status,aborted:!0});f==null||f.end()});
t.apply(this,[p,U,x,A,m])};
XMLHttpRequest.prototype.send=function(p){var U=this._requestData||{method:"N/A",url:"N/A"};this._span=VR("httpEvent",{method:U.method,path:Gf$(U.url),type:"xhr"},{active:!1});E.apply(this,[p])}};
Gf$=function(t){try{if(t instanceof URL)return t.pathname;t instanceof Request&&(t=t.url);return(new URL(t,"https://youtube.com")).pathname}catch(E){return"<unable to parse path>"}};
sjJ=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var t=window.performance.getEntriesByType("navigation");if(t.length>0){var E=t[0],p=window.performance.timeOrigin;VR("pageLoad",{navigationType:DHO(E.type),unloadEventStart:Math.round(E.unloadEventStart),unloadEventEnd:Math.round(E.unloadEventEnd),domInteractive:Math.round(E.domInteractive),domContentLoadedEventStart:Math.round(E.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(E.domContentLoadedEventEnd),
domComplete:Math.round(E.domComplete),loadEventStart:Math.round(E.loadEventStart),loadEventEnd:Math.round(E.loadEventEnd),redirectCount:E.redirectCount},{active:!1,startTime:p+E.startTime,endTime:p+E.loadEventEnd})}}catch(U){}})};
DHO=function(t){switch(t){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"}};
Wj8=function(){for(var t=Lj$.value,E={},p=_.M(t.enabledSpansArray),U=p.next();!U.done;U=p.next())E[U.value]=!0;JLi({sessionId:HCL(),enabledSpans:E,shouldSampleFn:function(x,A,m){if(P4j){var b;return x==="shortToShort"||(m==null?void 0:(b=m.rootSpan())==null?void 0:b.name)==="shortToShort"}return!0}});
hTJ();Rp("pageLoad")&&sjJ();Rp("httpEvent")&&(n$j(),NH0());t.exportToCsi&&IZt(THl);t.exportToDevTools&&IZt(a6i());t.maxBreadcrumbs>0&&Jri({eventsToIgnore:o$$,bufferSize:t.maxBreadcrumbs})};
$HO=function(t){return new Promise(function(E){window.setTimeout(E,t)})};
KjK=function(t){var E={bicf:function(A){t.gY2=A},
blc:function(){return t.getLatestChallengeResponse()},
bcr:function(A){t.sYO.push(A)}},p=window;
p.ntpevasrs=E;if(p.ntpqfbel!==void 0)for(var U=_.M(p.ntpqfbel),x=U.next();!x.done;x=U.next())x=x.value,x(E);p.ntpqfbel=void 0};
v$O=function(t){return _.q(function(E){if(E.nextAddress==1)return _.aR(E,2),E.yield(t.cb2(),4);if(E.nextAddress!=2)return _.r7(E,0);_.nB(E);_.Do(E)})};
yrO=function(t){var E,p;(E=t.ytcsi)==null||(p=E.tick)==null||p.call(E,"pot_ist")};
Sbl=function(t){if(t instanceof Error){var E=_.ws("yt.logging.errors.log");E&&E(t,"WARNING")}};
crO=function(t){try{var E=JSON.parse(t);if(E.bgChallenge)return E}catch(p){}};
EoK=function(){var t=window,E={networkStatusManagerPromise:_.X3().resolve(new UcD(_.k7)),initialChallengeSli:_.r("wpo_att_sli")?new _.hz_("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};t=t===void 0?window:t;var p=t.ytAtR,U;E==null||(U=E.initialChallengeSli)==null||_.Gs(U);if(p){if(p=crO(p)){var x;E==null||(x=E.initialChallengeSli)==null||_.nr(x,"SUCCESS");ta0(p,E)}t.ytAtR=void 0}else t.ytAtRC=function(A){if(A=crO(A)){var m;E==null||(m=E.initialChallengeSli)==null||
_.nr(m,"SUCCESS");ta0(A,E);t.ytAtRC=void 0}}};
xg8=function(){if(paj)return paj;try{var t=_.Gg("IFRAME");_.Yk(t,_.JC(UgL));t.sandbox.add("allow-same-origin");t.style.display="none";document.body.appendChild(t);return paj=t}catch(E){t=new _.cC("Failed to create sandbox iframe"),_.bV(t)}};
AKE=function(){return function(t,E){_.qO("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[t]=E}};
YzK=function(){return function(t,E){var p={};p[t]=E;t=_.BC(_.Lq0)(p);Object.keys(t).length>0&&_.KF(t)}};
beE=function(){if(_.by8()==="hidden")var t="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else _.by8()==="visible"&&(t="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",Mai=null);t&&mgO(t)};
mgO=function(t){if(t==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||t==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(ieK===t)return;ieK=t}var E=9E4+Math.random()*2E3;if(t!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.af()>E)&&_.by8()==="visible"){E=-1;Mai&&(E=Math.round((0,_.eu)()-Mai));var p=String;var U=_.ws("_fact",window);U=U==null||U==-1?-1:Math.max(Date.now()-U,0);_.MW("foregroundHeartbeat",{firstActivityMs:p(U),clientDocumentNonce:faD,index:String(qzO),lastEventDeltaMs:String(E),trigger:t});
_.Oy("_fact",-1,window);qzO++;Mai=(0,_.eu)()}};
He$=function(t,E,p,U,x,A){E=new Uint8Array(E);if(t.length===0)return E;var m=0;x=x!=null?x:t.length-1;for(var b=p;b<=x;b++){var f=t[b],B=b===p?U:0,R=void 0,V=b===x?(R=A)!=null?R:f.length:f.length;f=f.subarray(B,V);E.set(f,m);m+=f.length}return E};
_.fiY=function(){try{return!!self.sessionStorage}catch(t){return!1}};
BBO=function(){var t=navigator;return new Promise(function(E,p){var U;(U=t.webkitTemporaryStorage)!=null&&U.queryUsageAndQuota?t.webkitTemporaryStorage.queryUsageAndQuota(function(x,A){E({usage:x,quota:A})},function(x){p(x)}):p(Error("Hj"))})};
waJ=function(t,E){var p={errorSeverity:E.errorSeverity.toString(),wizFeatureFlags:Object.entries(E.featureFlags).join("\n")};lqO(E,p);E=E.errorSeverity;E===3?_.bV(t,"ERROR",void 0,void 0,void 0,p):E===2&&_.bV(t,"WARNING",void 0,void 0,void 0,p);_.r("cow_if_errors_in_popup")&&E===3&&t.message.indexOf("<If>")!==-1&&window.alert(t.message)};
R$0=function(t,E){var p=BA.get(t)||{layerNode:E};p.layerNode=E;un$(t,p);t.getScreenLayer=function(){return NM(p.layerNode)}};
VaY=function(t){var E;t=t.parentNode;for(var p;t&&((E=BA.get(t))==null||!E.isRenderer)&&!((p=t.polymerController)!=null?p:t).isRenderer_;)t=t.parentNode||t.host;if(E=t)return BA.get(E)};
QM$=function(t){if(t){BA.delete(t);var E=_.X3().resolve(hH);JOi(t,E)}};
jMO=function(t,E,p){if(p===void 0?0:p){if(p=t.getAttribute("client-ve-type"),E.data&&!E.disableReactiveLogging||p)_.Yw(function(){C18(t,_.Hv(E.data))},"Fg"),_.iK(function(){return void QM$(t)})}else typeof E.data!=="function"&&C18(t,E.data)};
C18=function(t,E){rKE++;kr8(t,E)&&_.ir.addJob(function(){_.D2(_.ir,function(){if(kr8(t,E)&&t.ownerDocument.documentElement===document.documentElement&&t){var p;if(t.getAttribute("layer")){var U=p=Number(t.getAttribute("layer")),x=BA.get(t);x?x.layerNode.layer=U:R$0(t,new dgi(U));(U=VaY(t))&&(x=BA.get(t))!=null&&(x.layerNode.parent=U.layerNode)}else if(p=BA.get(t))p=NM(p.layerNode);else{p=NM;U=new dgi;if(x=VaY(t))U.parent=x.layerNode;R$0(t,U);p=p(U)}p!=null||(p=0);U=t.getAttribute("client-ve-type");
x=Number(U);var A=!1;U=!1;var m=BA.get(t),b;if((b=m)&&!(b=m[uut]!==E)&&(b=x)){var f;b=((f=BA.get(t))==null?void 0:f.clientVeType)===void 0}b&&(m[uut]=E,A=U=m.isRenderer=!0);BA.has(t)&&(BA.get(t).clientVeType=x);t.visualElement&&(U=!0);if(_.r("wiz_next_ld_fix_client_ve_spec")){var B;f=((B=_.k(E==null?void 0:E.rendererContext,_.Th))==null?void 0:B.loggingDirectives)||(E==null?void 0:E.loggingDirectives)}else f=E==null?void 0:E.loggingDirectives;f&&f.clientVeSpec&&(B=JK_(_.sl(),t),B=_.Iit(_.Pu(),f,B||
void 0,p))&&(t.visualElement=B);!t.visualElement&&x&&A&&(t.veType=x,B=void 0,_.r("wiz_next_client_ve_parent_fix")&&(B=JK_(_.sl(),t)),B=_.L4(_.Pu(),t,B,p),t.visualElement=B);U&&(B=_.X3().resolve(hH),Dw(t,{data:E,observer:B,layer:p,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
kr8=function(t,E){return(E==null?0:E.trackingParams)||(E==null?0:E.loggingDirectives)||_.k(E==null?void 0:E.rendererContext,_.Th)||t.getAttribute("client-ve-type")?!0:!1};
goO=function(t,E,p){t.componentType!==SK&&p instanceof HTMLElement&&E&&!_.r("cow_logging_in_component_wrapper")&&jMO(p,E,!0)};
h$J=function(){if(!Zei){Zei=!0;var t=_.r("enable_wiz_context_per_component")||!1;t=Object.assign({},{flushRenderEffectsDuringRender:!0,enableQueueEffectAndOnInitInitialRuns:_.r("enable_wiz_queue_effect_and_on_init_initial_runs"),enableContextPerComponent:t,enableContextBasedComponentStacks:t},{handleError:waJ,enableComponentStacksInErrorMessages:!1});Object.assign(ac,t);_.r("web_c3_idom_interop_ks")&&($Gl=OeK);XaJ();co8=Kz0;vxY=yQl}};
XaJ=function(){_.r("cow_logging_in_component_wrapper")?(xpi=function(t,E){E instanceof HTMLElement&&jMO(E,t,!0)},lsO=function(){}):(xpi=function(){},lsO=goO)};
aij=function(t,E,p){E=E===void 0?{}:E;var U,x=(U=_.k(t.commandMetadata,_.hZ))==null?void 0:U.url;U=E.form||{};!p||U.element||U.skipDefaultElement||(E.form=E.form||{},E.form.element=p);if(x&&x!=="/service_ajax")return{type:0,command:t,form:E.form};if(_.r("kevlar_service_command_check")){if(_.qn(_.X3().resolve(_.PL),t))return Object.assign({},{type:1,command:t},E)}else{var A;if((A=_.k(t.commandMetadata,_.hZ))==null?0:A.apiUrl)return Object.assign({},{type:1,command:t},E)}return{type:2,command:t,form:E.form}};
e$Y=function(t){if(t.form){var E=t.form,p=Object.assign({},E);E=E.element;p=(delete p.element,p);if(E)return[_.JZ(E,[t.command,p,t.commandController])]}return[]};
FGY=function(t){if(t.form){var E=t.form,p=Object.assign({},E);E=E.element;p=(delete p.element,p);E&&_.IK(E,[t.command],E,p)}};
li8=function(t,E,p){var U=new z$J(t,E),x=new sQ(t,E,p);t={"/youtubei/v1/browse":new Lr(t,E,p),"/youtubei/v1/player":U,"/youtubei/v1/navigation/resolve_url":new PS,"/youtubei/v1/next":x,"/youtubei/v1/guide":new Ts(p),"/youtubei/v1/search":new o7(t,E,p),"/youtubei/v1/reel/reel_item_watch":new WS(t,E,p),"/youtubei/v1/get_watch":new $u(U,x)};t["/youtubei/v1/account/account_menu"]=new Kr;t["/youtubei/v1/notification/get_notification_menu"]=new vS;return t};
Sc=function(){var t=_.X3().resolve(_.yc);return Promise.resolve(Grl(t,_.Ui.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
noE=function(t){return t&&(t=_.cS(_.W1D(t)))?(new URLSearchParams(t)).get("service"):null};
pG=function(t,E){_.g4(_.ty(),function(){_.SR("adl")});
_.X3().resolve(NBO)(E);t=t.root;t.loadData&&t.loadData(E);(E==null?0:E.response)?_.nr(F0j(),"SUCCESS"):_.qW(new _.cC("Lifecycle: No response in data",_.HC("IS_SHELL_LOAD"),E?E.page:"NO_PAGE",E?E.endpoint:"NO_ENDPOINT"));t.polymerController.$["page-manager"].lazyPrepareCriticalPages((E==null?void 0:E.page)||"",E.endpoint);var p,U;((U=_.k(E==null?void 0:(p=E.endpoint)==null?void 0:p.commandMetadata,_.hZ))==null?0:U.webPageType)&&_.QM().dispatch(_.Ea(_.k(E.endpoint.commandMetadata,_.hZ).webPageType))};
Dg0=function(){var t,E;return _.q(function(p){switch(p.nextAddress){case 1:t=window;if(!t.getDataPromise){p.jumpTo(2);break}_.aR(p,3);return p.yield(t.getDataPromise(),5);case 5:return p.return(p.yieldResult);case 3:return _.nB(p),p.yield(Sc(),6);case 6:return p.return(p.yieldResult);case 2:if(t.getInitialData)return E=t.getInitialData(),t.getInitialData=void 0,p.return(E);throw Error("Jj`"+_.Ui.location.href);}})};
LGl=function(){_.ia("CSI_SERVICE_NAME","youtube");_.KF({loadType:"cold"});_.r("kevlar_log_lcp")&&sML(function(t){_.SR("lcp",t.value)})};
P1Y=function(){var t=_.Rc(document.location.href,"enable");t&&t.indexOf("scraper")>-1&&_.ia("ADD_SCRAPER_ATTRIBUTES",!0)};
KGO=function(t){var E=t.root;t=[TBY,ooY,_.Ua];_.r("web_feedback_endpoint_autolog_allowlist_killswitch")&&t.push(_.xZ,WGD);$g0(function(p,U){return aij(p,U,E)},function(p){if(!p.command)return[];
var U;((U=p.form)==null?0:U.element)?p.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},p.form,{endpoint:p.command})})):E.handleNavigate(p);return[]},t);
_.X3().addProvider({provide:_.ei,useValue:_.Gh.instance})};
yK0=function(){var t={},E={},p;for(p in vo_){var U=_.M(_.Py(vo_[p],void 0,"e17Ccb"));t[p]=U.next().value;E[p]=U.next().value}return[t,function(x){for(var A in x){var m=void 0;(m=E[A])==null||m(x[A])}}]};
_.tN_=function(t,E){var p=!1;p=p===void 0?!1:p;var U=_.Kq.getValueByKeys(t,"contents","twoColumnWatchNextResults","results","results","contents"),x=_.Kq.getValueByKeys(t,"contents","twoColumnWatchNextResults","playlist","playlist")||null;p&&(x=null);var A=p=null;if(x)p=_.Kq.getValueByKeys(x,"titleText"),A=_.Kq.unsafeClone(_.Kq.getValueByKeys(x,"longBylineText")),U="",A&&(U=_.R4(A)),A=_.wN(U);else if(U){U=_.M(U);for(var m=U.next();!m.done;m=U.next())m=m.value,m.videoPrimaryInfoRenderer&&(p=_.Kq.getValueByKeys.apply(_.Kq,
[m].concat(_.KB(Szj)))),m.videoSecondaryInfoRenderer&&(A=_.Kq.getValueByKeys.apply(_.Kq,[m].concat(_.KB(cKj))))}else _.Ra(Error("Oj"));var b;t.currentVideoEndpoint?b=t.currentVideoEndpoint:_.Ra(Error("Pj"));var f;E&&(f=_.Kq.getValueByKeys(E,"playabilityStatus","miniplayer","miniplayerRenderer"));t={miniplayerTitle:p,miniplayerSubtitle:A,watchEndpoint:b,playlistData:x};f&&(t.miniplayerRenderer=f);return t};
E5$=function(t){if(t)return _.En(t)};
_.pRO=function(){return{isFullscreen:function(){throw Error("Qj");},
toggleFullscreen:function(){throw Error("Rj");},
exitFullscreen:function(){throw Error("Sj");},
isAutonavEnabled:function(){throw Error("Tj");},
setAutonavEnabled:function(){throw Error("Uj");},
isAutoplaySetExplicitly:function(){throw Error("Vj");}}};
UzY=function(t){return t.videoDuration?t.numTaps>1&&t.tapDirection!==0?_.Ay(t.draggedTime/t.videoDuration,0,1):_.Ay((t.playedTime||0)/t.videoDuration,0,1):0};
xzE=function(t){return t.videoDuration?t.isDragging||t.numTaps>1&&t.tapDirection!==0?_.Ay(t.draggedTime/t.videoDuration,0,1):_.Ay((t.playedTime||0)/t.videoDuration,0,1):0};
YIl=function(t){var E,p,U;return _.k(t==null?void 0:(E=t.markersMap)==null?void 0:(p=E.find(function(x){return x.key==="HEATSEEKER"}))==null?void 0:(U=p.value)==null?void 0:U.heatmap,An_)};
MNK=function(t){var E,p;return(p=(E=YIl(t))==null?void 0:E.heatMarkersDecorations)!=null?p:[]};
mzt=function(t){if(_.r("mweb_supported_chapters_killswitch"))return!0;var E;return!!(t==null?0:(E=t.markersMap)==null?0:E.find(function(p){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(p.key)}))};
_.bD0=function(t){var E=Object,p=E.assign,U;t={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(U=t==null?void 0:t.getPlayerState())!=null?U:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return p.call(E,{},{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},t,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
iDJ=function(t){return function(E){var p=t(),U,x=(U=p.playerApi)==null?void 0:U.getPlayerState();E&&E!==p.playerState&&(E===1||E===2)&&p.setState({playerState:x})}};
HDO=function(t){return function(E){var p=t(),U=p.playerApi;U&&(E==null?void 0:E.type)==="newdata"&&(qIi&&(clearTimeout(qIi),qIi=void 0),_.r("web_shorts_use_progress_state_for_gapless")?(E=U==null?void 0:U.getProgressState(E==null?void 0:E.playertype),E=E.seekableEnd-E.seekableStart):E=U==null?void 0:U.getDuration(E==null?void 0:E.playertype),p.setState({playedTime:0,videoDuration:E}))}};
f0j=function(t){return function(E){var p=t(),U=p.playerApi;if(U){var x=U.getPresentingPlayerType();_.r("web_shorts_use_progress_state_for_gapless")?(U=U.getProgressState(x),U=U.seekableEnd-U.seekableStart):U=U.getDuration(x);p.setState({playedTime:E,videoDuration:U})}}};
wRj=function(t){_.SY(112394,t,function(){return BQi},function(E){BQi=E})};
QWj=function(t,E){if(!t)return[];var p,U,x;t=((p=t.markersMap)==null?void 0:(U=p.find(function(A){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(A.key)}))==null?void 0:(x=U.value)==null?void 0:x.chapters)||[];
!R18(t)||(E==null?0:E.ignoreStub)||(t=[VN8()].concat(_.KB(t)));return t};
VN8=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
R18=function(t){if(t.length===0)return!1;var E;return((E=_.k(t[0],YZ))==null?void 0:E.timeRangeStartMillis)!==0};
Mm=function(t){return t?t.timeRangeStartMillis||0:0};
jWJ=function(t,E){if(t.isDragging&&E)return t=C6$(t,E),t===-1?VN8():QWj(E)[t]};
C6$=function(t,E){return t.isDragging&&E?QWj(E,{ignoreStub:!0}).findIndex(function(p,U,x){p=rni(t);return kDK(p,x,U).scrubberHovering}):-1};
rni=function(t){return Object.assign({},t,{videoDuration:t.videoDuration*1E3,playedTime:t.playedTime*1E3,draggedTime:t.draggedTime*1E3})};
kDK=function(t,E,p){var U=Mm(_.k(E[p],YZ));E=Mm(_.k(E[p+1],YZ))||t.videoDuration;p=t.isDragging;var x;if(x=t.isDragging)x=t.draggedTime,x=x!==null&&x>=U&&x<E;var A=t.playedTime;return A!==null&&A>=U&&A<E?{videoPosition:"active",isScrubbing:p,scrubberHovering:x}:t.playedTime<U?{videoPosition:"pending",isScrubbing:p,scrubberHovering:x}:{videoPosition:"seen",isScrubbing:p,scrubberHovering:x}};
dzD=function(t,E){return t.videoPosition==="seen"||(E===void 0?0:E)>0};
upL=function(t,E,p){E=t/E.storyboardInterval;var U=QWj(p);if(!U.length)return-E*72;p=0;U=_.M(U);for(var x=U.next();!x.done;x=U.next())if(Mm(_.k(x.value,YZ))/1E3<t)p++;else break;return-(E*72)-p*56};
JnJ=function(t){return t?t.width/t.columns:0};
I0$=function(t){return t.isHovering?t.hoveredTime:t.draggedTime};
g5O=function(t,E){t=t.draggedTime*1E3;return t>=E.visibleTimeRangeStartMillis&&t<=E.visibleTimeRangeEndMillis};
_.ZDj=function(t){if(t===void 0||Number.isNaN(t))return"--:--";var E=Math.abs(Math.floor(t)),p=Math.floor(E/86400),U=Math.floor(E%86400/3600),x=Math.floor(E%3600/60);E=Math.floor(E%60);var A="";p>0&&(A+=p+":",U<10&&(A+="0"));if(p>0||U>0)A+=U+":",x<10&&(A+="0");A+=x+":";E<10&&(A+="0");A+=E;return t>=0?A:"-"+A};
ODY=function(t,E){return function(){var p=I0$(t());var U=E();var x=t().playerApi;if(x&&x.getNumberOfStoryboardLevels()!==0){var A=x.getStoryboardFrameIndex(p,1);A!==-1?U=x.getStoryboardFrame(A,1):(p=x.getStoryboardFrameIndex(p,0),x=x.getStoryboardFrame(p,0),U&&x&&(x.height*=3,x.width*=3),U=x)}else U=null;if(!U)return null;E()&&(U.width=90*U.columns,U.height=160*U.rows);return U}};
_.mb=function(t){if(!t||t.getVideoData)return t};
XRJ=function(){var t;return{playerApi:(t=_.ew())!=null?t:void 0}};
h1Y=function(t){var E;_.q(function(p){if(p.nextAddress==1)return p.yield(_.an(),2);if(E=p.yieldResult)E.unMute(!0),E.setVolume(t,!0);_.Do(p)})};
a0i=function(t,E){t&&(t.value=""+E,t.style.setProperty("--gradient-percent",E+"%"))};
e10=function(t){var E;return(E=t==null?void 0:t.value)!=null?E:0};
F4t=function(){var t;_.q(function(E){if(E.nextAddress==1)return E.yield(_.an(),2);t=E.yieldResult;if(!t)return E.return();t.isMuted()?t.unMute(!0):t.mute(!0);_.Do(E)})};
z1O=function(t){var E=_.X3().resolve(_.bf).getPlayerElement();E&&t&&(t===1?E.pause():E.play())};
l0O=function(t){return!!_.k(t,_.qm)||!!_.k(t,_.Hn)};
GDt=function(t){_.uO(t,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
n5_=function(t){_.uO(t,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
Dzl=function(t){return _.UB(t.document.body,function(){return _.H(NQD,null)},"ph")};
sWt=function(){var t;return(t=navigator.userActivation)==null?void 0:t.isActive};
L48=function(){var t=window.performance.getEntriesByType("navigation");return t?t.map(function(E){return E.type}).includes("reload"):!1};
P6J=function(t,E){E=E===void 0?!1:E;var p,U,x,A;return _.q(function(m){if(m.nextAddress==1)return E||!_.r("kevlar_shorts_seedless_retry_initial_load")||(p=window,U=!(!p.getDataPromise&&!p.getInitialData),U)?m.yield(Dg0(),2):(setTimeout(P6J.bind(window,t,!0),1E3),m.return());if(m.nextAddress!=3)return x=m.yieldResult,m.yield(TQj(x),3);A=m.yieldResult;pG(t,A);_.Do(m)})};
TQj=function(t){var E;if((E=t.response)==null||!E.replacementEndpoint)return _.gu(t);E=_.X3().resolve(_.yc);t=t.response;_.k(t.replacementEndpoint,_.DK)&&t.sequenceContinuation&&(_.k(t.replacementEndpoint,_.DK).sequenceParams=t.sequenceContinuation);return fG(E,t.replacementEndpoint,{},_.Ui.location.href,"shorts",function(){},function(){return!1})};
W4$=function(t){var E=_.X3().resolve(o5i);t.playerResponse&&E.handleResponse(t.playerResponse);t.response&&E.handleResponse(t.response)};
$zL=function(t){var E=_.QM(),p,U=_.k((p=t.response)==null?void 0:p.frameworkUpdates,B9),x;p=_.k((x=t.playerResponse)==null?void 0:x.frameworkUpdates,B9);var A;t=_.k((A=t.reelWatchSequenceResponse)==null?void 0:A.frameworkUpdates,B9);U&&_.lU(U,E);p&&_.lU(p,E);t&&_.lU(t,E)};
K4D=function(t){var E;_.r("enable_redirect_linking_for_desktop_web_client")&&((E=window.location.hash)==null?0:E.includes("redirect_state"))&&t.url&&(t.url=t.url.toString()+window.location.hash)};
SI8=function(t){var E=_.X3(),p=E.resolve(_.yc);E=E.resolve(_.v5K);t.endpoint&&(p=ynE(p,t.endpoint),p.content&&t.response&&_.Bn(E,t.response,p.content),p.player&&t.playerResponse&&_.Bn(E,t.playerResponse,p.player),p.reelSequence&&t.reelWatchSequenceResponse&&_.Bn(E,t.reelWatchSequenceResponse,p.reelSequence))};
wW=function(t,E){_.r("web_enable_chunk_prediction")&&cnL(E);W4$(E);$zL(E);var p;(E==null?0:E.url)&&((p=window.location.hash)==null?0:p.includes("redirect_state"))&&(K4D(E),(p=noE(E.url))&&_.du(t.root,"yt-initialize-third-party",[p,E]));SI8(E);p=_.X3();var U=p.resolve(t$X);E.playerResponse&&p.resolve(EL4).handleResponse(E.playerResponse);if(E.playerResponse){p=void 0;if(_.r("ab_v_vid_sig")&&E.endpoint){var x,A=(x=_.k(E.endpoint,_.HD))!=null?x:_.k(E.endpoint,_.DK);A&&(p=A.videoId)}p8r(U,E.playerResponse,
p)}E.playerResponse&&SMJ(E.playerResponse)&&_.r("web_enable_ab_rsp_cl")?H6O().then(function(){UKG(U,E.playerResponse);pG(t,E)}):pG(t,E)};
ADs=function(t){if(t=t.root.data){var E=_.X3().resolve(xKT);t.endpoint&&(t.response&&E.handleResponse(t.response,void 0,document.querySelector("ytd-app")),t.playerResponse&&E.handleResponse(t.playerResponse),t.reelWatchSequenceResponse&&E.handleResponse(t.reelWatchSequenceResponse))}};
cnL=function(t){t.response&&_.X3().resolve(Yi0).handleResponse(t.response)};
M$p=function(t){var E,p,U,x,A,m;return _.q(function(b){switch(b.nextAddress){case 1:E=window;if(!E.getDataPromise){b.jumpTo(2);break}_.aR(b,3);return b.yield(E.getDataPromise(),5);case 5:p=b.yieldResult;wW(t,p);_.r7(b,4);break;case 3:return _.nB(b),b.yield(Sc(),6);case 6:U=b.yieldResult,_.r("web_enable_chunk_prediction")&&cnL(U),pG(t,U);case 4:return b.return();case 2:if(!_.r("sw_nav_preload_pbj")){b.jumpTo(7);break}E.fetchInitialData=function(){var f;return _.q(function(B){if(B.nextAddress==1)return B.yield(Sc(),
2);f=B.yieldResult;_.r("web_enable_chunk_prediction")&&cnL(f);pG(t,f);_.Do(B)})};
if(E.getInitialData){E.loadInitialData=function(f){wW(t,f)};
x=E.getInitialData();E.getInitialData=void 0;wW(t,x);b.jumpTo(8);break}E.fetchInitialData=void 0;return b.yield(Sc(),9);case 9:A=b.yieldResult,_.r("web_enable_chunk_prediction")&&cnL(A),pG(t,A);case 8:return b.return();case 7:E.getInitialData?(m=E.getInitialData(),E.getInitialData=void 0,wW(t,m)):E.loadInitialData=function(f){wW(t,f)},_.Do(b)}})};
bOs=function(){var t=new mKo;_.CJD(t);t.registerInitializationCallback(function(){pSJ(void 0,void 0,void 0,{batchingStrategy:"BATCH"})});
t.registerCallback("error",function(E,p,U){_.fR(Error("Zj`"+p+"`"+U))})};
iOT=typeof Object.create=="function"?Object.create:function(t){var E=function(){};
E.prototype=t;return new E};
qiG=typeof Object.defineProperties=="function"?Object.defineProperty:function(t,E,p){if(t==Array.prototype||t==Object.prototype)return t;t[E]=p.value;return t};
HOZ=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var E=0;E<t.length;++E){var p=t[E];if(p&&p.Math==Math)return p}throw Error("a");};
_.aE=HOZ(this);fl0="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.aE.BigInt64Array&&(fl0.push("BigInt64"),fl0.push("BigUint64"));var w8s=function(t,E){if(E)for(var p=0;p<fl0.length;p++)BEX(fl0[p]+"Array.prototype."+t,E)},Re=function(t,E){E&&BEX(t,E)},BEX=function(t,E){var p=_.aE;
t=t.split(".");for(var U=0;U<t.length-1;U++){var x=t[U];if(!(x in p))return;p=p[x]}t=t[t.length-1];U=p[t];E=E(U);E!=U&&E!=null&&qiG(p,t,{configurable:!0,writable:!0,value:E})},RjW=function(){function t(){function p(){}
new p;Reflect.construct(p,[],function(){});
return new p instanceof p}
if(typeof Reflect!="undefined"&&Reflect.construct){if(t())return Reflect.construct;var E=Reflect.construct;return function(p,U,x){p=E(p,U);x&&Reflect.setPrototypeOf(p,x.prototype);return p}}return function(p,U,x){x===void 0&&(x=p);
x=iOT(x.prototype||Object.prototype);return Function.prototype.apply.call(p,x,U)||x}}(),V$0;
if(typeof Object.setPrototypeOf=="function")V$0=Object.setPrototypeOf;else{var Q0r;a:{var CY3={a:!0},j0G={};try{j0G.__proto__=CY3;Q0r=j0G.a;break a}catch(t){}Q0r=!1}V$0=Q0r?function(t,E){t.__proto__=E;if(t.__proto__!==E)throw new TypeError("b`"+t);return t}:null}VT=V$0;
_.u=function(t,E){t.prototype=iOT(E.prototype);t.prototype.constructor=t;if(VT)VT(t,E);else for(var p in E)if(p!="prototype")if(Object.defineProperties){var U=Object.getOwnPropertyDescriptor(E,p);U&&Object.defineProperty(t,p,U)}else t[p]=E[p];t.superClass_=E.prototype};
rDp=function(t){var E=0;return function(){return E<t.length?{done:!1,value:t[E++]}:{done:!0}}};
_.M=function(t){var E=typeof Symbol!="undefined"&&Symbol.iterator&&t[Symbol.iterator];if(E)return E.call(t);if(typeof t.length=="number")return{next:rDp(t)};throw Error("c`"+String(t));};
uQ=function(t){for(var E,p=[];!(E=t.next()).done;)p.push(E.value);return p};
_.KB=function(t){return t instanceof Array?t:uQ(_.M(t))};
_.CG=function(t){return QT(t,t)};
QT=function(t,E){t.raw=E;Object.freeze&&(Object.freeze(t),Object.freeze(E));return t};
jh=function(t,E){return Object.prototype.hasOwnProperty.call(t,E)};
ktW=function(t){if(t==null)throw new TypeError("d");return Object(t)};
dKX=typeof Object.assign=="function"?Object.assign:function(t,E){t=ktW(t);for(var p=1;p<arguments.length;p++){var U=arguments[p];if(U)for(var x in U)jh(U,x)&&(t[x]=U[x])}return t};
Re("Object.assign",function(t){return t||dKX});
var rW=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},uOm=function(t){if(t.isRunning_)throw new TypeError("f");
t.isRunning_=!0};
rW.prototype.JSC$8989_next_=function(t){this.yieldResult=t};
var JDW=function(t,E){t.abruptCompletion_={exception:E,isException:!0};t.nextAddress=t.catchAddress_||t.finallyAddress_};
rW.prototype.return=function(t){this.abruptCompletion_={return:t};this.nextAddress=this.finallyAddress_};
rW.prototype.yield=function(t,E){this.nextAddress=E;return{value:t}};
rW.prototype.jumpTo=function(t){this.nextAddress=t};
_.Do=function(t){t.nextAddress=0};
_.aR=function(t,E,p){t.catchAddress_=E;p!=void 0&&(t.finallyAddress_=p)};
_.l0=function(t,E){t.catchAddress_=0;t.finallyAddress_=E||0};
_.r7=function(t,E,p){t.nextAddress=E;t.catchAddress_=p||0};
_.nB=function(t,E){t.catchAddress_=E||0;E=t.abruptCompletion_.exception;t.abruptCompletion_=null;return E};
_.FQ=function(t,E,p,U){U?t.finallyContexts_[U]=t.abruptCompletion_:t.finallyContexts_=[t.abruptCompletion_];t.catchAddress_=E||0;t.finallyAddress_=p||0};
_.Gc=function(t,E,p){p=t.finallyContexts_.splice(p||0)[0];(p=t.abruptCompletion_=t.abruptCompletion_||p)?p.isException?t.nextAddress=t.catchAddress_||t.finallyAddress_:p.jumpTo!=void 0&&t.finallyAddress_<p.jumpTo?(t.nextAddress=p.jumpTo,t.abruptCompletion_=null):t.nextAddress=t.finallyAddress_:t.nextAddress=E};
Il0=function(t){this.JSC$8994_context_=new rW;this.program_=t};
ZOT=function(t,E){uOm(t.JSC$8994_context_);var p=t.JSC$8994_context_.yieldAllIterator_;if(p)return gLp(t,"return"in p?p["return"]:function(U){return{value:U,done:!0}},E,t.JSC$8994_context_.return);
t.JSC$8994_context_.return(E);return kZ(t)};
gLp=function(t,E,p,U){try{var x=E.call(t.JSC$8994_context_.yieldAllIterator_,p);if(!(x instanceof Object))throw new TypeError("e`"+x);if(!x.done)return t.JSC$8994_context_.isRunning_=!1,x;var A=x.value}catch(m){return t.JSC$8994_context_.yieldAllIterator_=null,JDW(t.JSC$8994_context_,m),kZ(t)}t.JSC$8994_context_.yieldAllIterator_=null;U.call(t.JSC$8994_context_,A);return kZ(t)};
kZ=function(t){for(;t.JSC$8994_context_.nextAddress;)try{var E=t.program_(t.JSC$8994_context_);if(E)return t.JSC$8994_context_.isRunning_=!1,{value:E.value,done:!1}}catch(p){t.JSC$8994_context_.yieldResult=void 0,JDW(t.JSC$8994_context_,p)}t.JSC$8994_context_.isRunning_=!1;if(t.JSC$8994_context_.abruptCompletion_){E=t.JSC$8994_context_.abruptCompletion_;t.JSC$8994_context_.abruptCompletion_=null;if(E.isException)throw E.exception;return{value:E.return,done:!0}}return{value:void 0,done:!0}};
OOs=function(t){this.next=function(E){uOm(t.JSC$8994_context_);t.JSC$8994_context_.yieldAllIterator_?E=gLp(t,t.JSC$8994_context_.yieldAllIterator_.next,E,t.JSC$8994_context_.JSC$8989_next_):(t.JSC$8994_context_.JSC$8989_next_(E),E=kZ(t));return E};
this.throw=function(E){uOm(t.JSC$8994_context_);t.JSC$8994_context_.yieldAllIterator_?E=gLp(t,t.JSC$8994_context_.yieldAllIterator_["throw"],E,t.JSC$8994_context_.JSC$8989_next_):(JDW(t.JSC$8994_context_,E),E=kZ(t));return E};
this.return=function(E){return ZOT(t,E)};
this[Symbol.iterator]=function(){return this}};
_.zs=function(t,E){E=new OOs(new Il0(E));VT&&t.prototype&&VT(E,t.prototype);return E};
X8m=function(t){function E(U){return t.next(U)}
function p(U){return t.throw(U)}
return new Promise(function(U,x){function A(m){m.done?U(m.value):Promise.resolve(m.value).then(E,p).then(A,x)}
A(t.next())})};
_.q=function(t){return X8m(new OOs(new Il0(t)))};
Re("Symbol",function(t){if(t)return t;var E=function(A,m){this.$jscomp$symbol$id_=A;qiG(this,"description",{configurable:!0,writable:!0,value:m})};
E.prototype.toString=function(){return this.$jscomp$symbol$id_};
var p="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",U=0,x=function(A){if(this instanceof x)throw new TypeError("g");return new E(p+(A||"")+"_"+U++,A)};
return x});
Re("Symbol.iterator",function(t){if(t)return t;t=Symbol("h");qiG(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return hjs(rDp(this))}});
return t});
Re("Symbol.asyncIterator",function(t){return t?t:Symbol("i")});
hjs=function(t){t={next:t};t[Symbol.iterator]=function(){return this};
return t};
_.es=function(t){var E=t[Symbol.asyncIterator];return E!==void 0?E.call(t):new alG(_.M(t))};
alG=function(t){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return t};
this.next=function(E){return Promise.resolve(t.next(E))};
this["throw"]=function(E){return new Promise(function(p,U){var x=t["throw"];x!==void 0?p(x.call(t,E)):(p=t["return"],p!==void 0&&p.call(t),U(new TypeError("j")))})};
t["return"]!==void 0&&(this["return"]=function(E){return Promise.resolve(t["return"](E))})};
_.t9=function(){for(var t=Number(this),E=[],p=t;p<arguments.length;p++)E[p-t]=arguments[p];return E};
_.lm=function(t){return t};
Re("globalThis",function(t){return t||_.aE});
Re("Reflect",function(t){return t?t:{}});
Re("Reflect.construct",function(){return RjW});
Re("Reflect.setPrototypeOf",function(t){return t?t:VT?function(E,p){try{return VT(E,p),!0}catch(U){return!1}}:null});
Re("Promise",function(t){function E(){this.batch_=null}
function p(m){return m instanceof x?m:new x(function(b){b(m)})}
if(t&&(typeof _.aE.PromiseRejectionEvent!=="undefined"||!_.aE.Promise||_.aE.Promise.toString().indexOf("[native code]")===-1))return t;E.prototype.asyncExecute=function(m){if(this.batch_==null){this.batch_=[];var b=this;this.asyncExecuteFunction(function(){b.executeBatch_()})}this.batch_.push(m)};
var U=_.aE.setTimeout;E.prototype.asyncExecuteFunction=function(m){U(m,0)};
E.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var m=this.batch_;this.batch_=[];for(var b=0;b<m.length;++b){var f=m[b];m[b]=null;try{f()}catch(B){this.asyncThrow_(B)}}}this.batch_=null};
E.prototype.asyncThrow_=function(m){this.asyncExecuteFunction(function(){throw m;})};
var x=function(m){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var b=this.createResolveAndReject_();try{m(b.resolve,b.reject)}catch(f){b.reject(f)}};
x.prototype.createResolveAndReject_=function(){function m(B){return function(R){f||(f=!0,B.call(b,R))}}
var b=this,f=!1;return{resolve:m(this.resolveTo_),reject:m(this.JSC$9026_reject_)}};
x.prototype.resolveTo_=function(m){if(m===this)this.JSC$9026_reject_(new TypeError("n"));else if(m instanceof x)this.settleSameAsPromise_(m);else{a:switch(typeof m){case "object":var b=m!=null;break a;case "function":b=!0;break a;default:b=!1}b?this.resolveToNonPromiseObj_(m):this.fulfill_(m)}};
x.prototype.resolveToNonPromiseObj_=function(m){var b=void 0;try{b=m.then}catch(f){this.JSC$9026_reject_(f);return}typeof b=="function"?this.settleSameAsThenable_(b,m):this.fulfill_(m)};
x.prototype.JSC$9026_reject_=function(m){this.settle_(2,m)};
x.prototype.fulfill_=function(m){this.settle_(1,m)};
x.prototype.settle_=function(m,b){if(this.state_!=0)throw Error("o`"+m+"`"+b+"`"+this.state_);this.state_=m;this.result_=b;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
x.prototype.scheduleUnhandledRejectionCheck_=function(){var m=this;U(function(){if(m.notifyUnhandledRejection_()){var b=_.aE.console;typeof b!=="undefined"&&b.error(m.result_)}},1)};
x.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var m=_.aE.CustomEvent,b=_.aE.Event,f=_.aE.dispatchEvent;if(typeof f==="undefined")return!0;typeof m==="function"?m=new m("unhandledrejection",{cancelable:!0}):typeof b==="function"?m=new b("unhandledrejection",{cancelable:!0}):(m=_.aE.document.createEvent("CustomEvent"),m.initCustomEvent("unhandledrejection",!1,!0,m));m.promise=this;m.reason=this.result_;return f(m)};
x.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var m=0;m<this.onSettledCallbacks_.length;++m)A.asyncExecute(this.onSettledCallbacks_[m]);this.onSettledCallbacks_=null}};
var A=new E;x.prototype.settleSameAsPromise_=function(m){var b=this.createResolveAndReject_();m.callWhenSettled_(b.resolve,b.reject)};
x.prototype.settleSameAsThenable_=function(m,b){var f=this.createResolveAndReject_();try{m.call(b,f.resolve,f.reject)}catch(B){f.reject(B)}};
x.prototype.then=function(m,b){function f(Q,C){return typeof Q=="function"?function(d){try{B(Q(d))}catch(I){R(I)}}:C}
var B,R,V=new x(function(Q,C){B=Q;R=C});
this.callWhenSettled_(f(m,B),f(b,R));return V};
x.prototype.catch=function(m){return this.then(void 0,m)};
x.prototype.callWhenSettled_=function(m,b){function f(){switch(B.state_){case 1:m(B.result_);break;case 2:b(B.result_);break;default:throw Error("p`"+B.state_);}}
var B=this;this.onSettledCallbacks_==null?A.asyncExecute(f):this.onSettledCallbacks_.push(f);this.isRejectionHandled_=!0};
x.resolve=p;x.reject=function(m){return new x(function(b,f){f(m)})};
x.race=function(m){return new x(function(b,f){for(var B=_.M(m),R=B.next();!R.done;R=B.next())p(R.value).callWhenSettled_(b,f)})};
x.all=function(m){var b=_.M(m),f=b.next();return f.done?p([]):new x(function(B,R){function V(d){return function(I){Q[d]=I;C--;C==0&&B(Q)}}
var Q=[],C=0;do Q.push(void 0),C++,p(f.value).callWhenSettled_(V(Q.length-1),R),f=b.next();while(!f.done)})};
return x});
var dW=function(t,E,p){if(t==null)throw new TypeError("q`"+p);if(E instanceof RegExp)throw new TypeError("r`"+p);return t+""};
Re("String.prototype.startsWith",function(t){return t?t:function(E,p){var U=dW(this,E,"startsWith"),x=U.length,A=E.length;p=Math.max(0,Math.min(p|0,U.length));for(var m=0;m<A&&p<x;)if(U[p++]!=E[m++])return!1;return m>=A}});
Re("Object.setPrototypeOf",function(t){return t||VT});
Re("Symbol.dispose",function(t){return t?t:Symbol("s")});
Re("SuppressedError",function(t){function E(p,U,x){if(!(this instanceof E))return new E(p,U,x);x=Error(x);"stack"in x&&(this.stack=x.stack);this.message=x.message;this.error=p;this.suppressed=U}
if(t)return t;_.u(E,Error);E.prototype.name="SuppressedError";return E});
Re("Array.from",function(t){return t?t:function(E,p,U){p=p!=null?p:function(b){return b};
var x=[],A=typeof Symbol!="undefined"&&Symbol.iterator&&E[Symbol.iterator];if(typeof A=="function"){E=A.call(E);for(var m=0;!(A=E.next()).done;)x.push(p.call(U,A.value,m++))}else for(A=E.length,m=0;m<A;m++)x.push(p.call(U,E[m],m));return x}});
var ejr=function(t,E,p){t instanceof String&&(t=String(t));for(var U=t.length,x=0;x<U;x++){var A=t[x];if(E.call(p,A,x,t))return{i:x,v:A}}return{i:-1,v:void 0}};
Re("Array.prototype.find",function(t){return t?t:function(E,p){return ejr(this,E,p).v}});
Re("WeakMap",function(t){function E(){}
function p(f){var B=typeof f;return B==="object"&&f!==null||B==="function"}
function U(f){if(!jh(f,A)){var B=new E;qiG(f,A,{value:B})}}
function x(f){var B=Object[f];B&&(Object[f]=function(R){if(R instanceof E)return R;Object.isExtensible(R)&&U(R);return B(R)})}
if(function(){if(!t||!Object.seal)return!1;try{var f=Object.seal({}),B=Object.seal({}),R=new t([[f,2],[B,3]]);if(R.get(f)!=2||R.get(B)!=3)return!1;R.delete(f);R.set(B,4);return!R.has(f)&&R.get(B)==4}catch(V){return!1}}())return t;
var A="$jscomp_hidden_"+Math.random();x("freeze");x("preventExtensions");x("seal");var m=0,b=function(f){this.JSC$9034_id_=(m+=Math.random()+1).toString();if(f){f=_.M(f);for(var B;!(B=f.next()).done;)B=B.value,this.set(B[0],B[1])}};
b.prototype.set=function(f,B){if(!p(f))throw Error("t");U(f);if(!jh(f,A))throw Error("u`"+f);f[A][this.JSC$9034_id_]=B;return this};
b.prototype.get=function(f){return p(f)&&jh(f,A)?f[A][this.JSC$9034_id_]:void 0};
b.prototype.has=function(f){return p(f)&&jh(f,A)&&jh(f[A],this.JSC$9034_id_)};
b.prototype.delete=function(f){return p(f)&&jh(f,A)&&jh(f[A],this.JSC$9034_id_)?delete f[A][this.JSC$9034_id_]:!1};
return b});
Re("Map",function(t){if(function(){if(!t||typeof t!="function"||!t.prototype.entries||typeof Object.seal!="function")return!1;try{var b=Object.seal({x:4}),f=new t(_.M([[b,"s"]]));if(f.get(b)!="s"||f.size!=1||f.get({x:4})||f.set({x:4},"t")!=f||f.size!=2)return!1;var B=f.entries(),R=B.next();if(R.done||R.value[0]!=b||R.value[1]!="s")return!1;R=B.next();return R.done||R.value[0].x!=4||R.value[1]!="t"||!B.next().done?!1:!0}catch(V){return!1}}())return t;
var E=new WeakMap,p=function(b){this[0]={};this[1]=A();this.size=0;if(b){b=_.M(b);for(var f;!(f=b.next()).done;)f=f.value,this.set(f[0],f[1])}};
p.prototype.set=function(b,f){b=b===0?0:b;var B=U(this,b);B.list||(B.list=this[0][B.id]=[]);B.entry?B.entry.value=f:(B.entry={next:this[1],previous:this[1].previous,head:this[1],key:b,value:f},B.list.push(B.entry),this[1].previous.next=B.entry,this[1].previous=B.entry,this.size++);return this};
p.prototype.delete=function(b){b=U(this,b);return b.entry&&b.list?(b.list.splice(b.index,1),b.list.length||delete this[0][b.id],b.entry.previous.next=b.entry.next,b.entry.next.previous=b.entry.previous,b.entry.head=null,this.size--,!0):!1};
p.prototype.clear=function(){this[0]={};this[1]=this[1].previous=A();this.size=0};
p.prototype.has=function(b){return!!U(this,b).entry};
p.prototype.get=function(b){return(b=U(this,b).entry)&&b.value};
p.prototype.entries=function(){return x(this,function(b){return[b.key,b.value]})};
p.prototype.keys=function(){return x(this,function(b){return b.key})};
p.prototype.values=function(){return x(this,function(b){return b.value})};
p.prototype.forEach=function(b,f){for(var B=this.entries(),R;!(R=B.next()).done;)R=R.value,b.call(f,R[1],R[0],this)};
p.prototype[Symbol.iterator]=p.prototype.entries;var U=function(b,f){var B=f&&typeof f;B=="object"||B=="function"?E.has(f)?B=E.get(f):(B=""+ ++m,E.set(f,B)):B="p_"+f;var R=b[0][B];if(R&&jh(b[0],B))for(b=0;b<R.length;b++){var V=R[b];if(f!==f&&V.key!==V.key||f===V.key)return{id:B,list:R,index:b,entry:V}}return{id:B,list:R,index:-1,entry:void 0}},x=function(b,f){var B=b[1];
return hjs(function(){if(B){for(;B.head!=b[1];)B=B.previous;for(;B.next!=B.head;)return B=B.next,{done:!1,value:f(B)};B=null}return{done:!0,value:void 0}})},A=function(){var b={};
return b.previous=b.next=b.head=b},m=0;
return p});
Re("Set",function(t){if(function(){if(!t||typeof t!="function"||!t.prototype.entries||typeof Object.seal!="function")return!1;try{var p=Object.seal({x:4}),U=new t(_.M([p]));if(!U.has(p)||U.size!=1||U.add(p)!=U||U.size!=1||U.add({x:4})!=U||U.size!=2)return!1;var x=U.entries(),A=x.next();if(A.done||A.value[0]!=p||A.value[1]!=p)return!1;A=x.next();return A.done||A.value[0]==p||A.value[0].x!=4||A.value[1]!=A.value[0]?!1:x.next().done}catch(m){return!1}}())return t;
var E=function(p){this.JSC$9048_map_=new Map;if(p){p=_.M(p);for(var U;!(U=p.next()).done;)this.add(U.value)}this.size=this.JSC$9048_map_.size};
E.prototype.add=function(p){p=p===0?0:p;this.JSC$9048_map_.set(p,p);this.size=this.JSC$9048_map_.size;return this};
E.prototype.delete=function(p){p=this.JSC$9048_map_.delete(p);this.size=this.JSC$9048_map_.size;return p};
E.prototype.clear=function(){this.JSC$9048_map_.clear();this.size=0};
E.prototype.has=function(p){return this.JSC$9048_map_.has(p)};
E.prototype.entries=function(){return this.JSC$9048_map_.entries()};
E.prototype.values=function(){return this.JSC$9048_map_.values()};
E.prototype.keys=E.prototype.values;E.prototype[Symbol.iterator]=E.prototype.values;E.prototype.forEach=function(p,U){var x=this;this.JSC$9048_map_.forEach(function(A){return p.call(U,A,A,x)})};
return E});
Re("Math.log2",function(t){return t?t:function(E){return Math.log(E)/Math.LN2}});
Re("Object.values",function(t){return t?t:function(E){var p=[],U;for(U in E)jh(E,U)&&p.push(E[U]);return p}});
Re("Object.is",function(t){return t?t:function(E,p){return E===p?E!==0||1/E===1/p:E!==E&&p!==p}});
Re("Array.prototype.includes",function(t){return t?t:function(E,p){var U=this;U instanceof String&&(U=String(U));var x=U.length;p=p||0;for(p<0&&(p=Math.max(p+x,0));p<x;p++){var A=U[p];if(A===E||Object.is(A,E))return!0}return!1}});
Re("String.prototype.includes",function(t){return t?t:function(E,p){return dW(this,E,"includes").indexOf(E,p||0)!==-1}});
Re("Object.entries",function(t){return t?t:function(E){var p=[],U;for(U in E)jh(E,U)&&p.push([U,E[U]]);return p}});
Re("Number.isFinite",function(t){return t?t:function(E){return typeof E!=="number"?!1:!isNaN(E)&&E!==Infinity&&E!==-Infinity}});
Re("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Re("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Re("Number.isInteger",function(t){return t?t:function(E){return Number.isFinite(E)?E===Math.floor(E):!1}});
Re("Number.isSafeInteger",function(t){return t?t:function(E){return Number.isInteger(E)&&Math.abs(E)<=Number.MAX_SAFE_INTEGER}});
Re("String.prototype.endsWith",function(t){return t?t:function(E,p){var U=dW(this,E,"endsWith");p===void 0&&(p=U.length);p=Math.max(0,Math.min(p|0,U.length));for(var x=E.length;x>0&&p>0;)if(U[--p]!=E[--x])return!1;return x<=0}});
var FJr=function(t,E){t instanceof String&&(t+="");var p=0,U=!1,x={next:function(){if(!U&&p<t.length){var A=p++;return{value:E(A,t[A]),done:!1}}U=!0;return{done:!0,value:void 0}}};
x[Symbol.iterator]=function(){return x};
return x};
Re("Array.prototype.entries",function(t){return t?t:function(){return FJr(this,function(E,p){return[E,p]})}});
Re("Math.trunc",function(t){return t?t:function(E){E=Number(E);if(isNaN(E)||E===Infinity||E===-Infinity||E===0)return E;var p=Math.floor(Math.abs(E));return E<0?-p:p}});
Re("Number.isNaN",function(t){return t?t:function(E){return typeof E==="number"&&isNaN(E)}});
Re("Array.prototype.keys",function(t){return t?t:function(){return FJr(this,function(E){return E})}});
Re("Array.prototype.values",function(t){return t?t:function(){return FJr(this,function(E,p){return p})}});
Re("Array.prototype.fill",function(t){return t?t:function(E,p,U){var x=this.length||0;p<0&&(p=Math.max(0,x+p));if(U==null||U>x)U=x;U=Number(U);U<0&&(U=Math.max(0,x+U));for(p=Number(p||0);p<U;p++)this[p]=E;return this}});
w8s("fill",function(t){return t?t:Array.prototype.fill});
Re("Object.fromEntries",function(t){return t?t:function(E){var p={};if(!(Symbol.iterator in E))throw new TypeError("v`"+E);E=E[Symbol.iterator].call(E);for(var U=E.next();!U.done;U=E.next()){U=U.value;if(Object(U)!==U)throw new TypeError("w");p[U[0]]=U[1]}return p}});
Re("String.prototype.replaceAll",function(t){return t?t:function(E,p){if(E instanceof RegExp&&!E.global)throw new TypeError("x");return E instanceof RegExp?this.replace(E,p):this.replace(new RegExp(String(E).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),p)}});
Re("Object.getOwnPropertySymbols",function(t){return t?t:function(){return[]}});
Re("String.prototype.repeat",function(t){return t?t:function(E){var p=dW(this,null,"repeat");if(E<0||E>1342177279)throw new RangeError("y");E|=0;for(var U="";E;)if(E&1&&(U+=p),E>>>=1)p+=p;return U}});
Re("Array.prototype.findIndex",function(t){return t?t:function(E,p){return ejr(this,E,p).i}});
Re("Array.prototype.flatMap",function(t){return t?t:function(E,p){var U=[];Array.prototype.forEach.call(this,function(x,A){x=E.call(p,x,A,this);Array.isArray(x)?U.push.apply(U,x):U.push(x)});
return U}});
Re("String.prototype.codePointAt",function(t){return t?t:function(E){var p=dW(this,null,"codePointAt"),U=p.length;E=Number(E)||0;if(E>=0&&E<U){E|=0;var x=p.charCodeAt(E);if(x<55296||x>56319||E+1===U)return x;E=p.charCodeAt(E+1);return E<56320||E>57343?x:(x-55296)*1024+E+9216}}});
Re("String.fromCodePoint",function(t){return t?t:function(E){for(var p="",U=0;U<arguments.length;U++){var x=Number(arguments[U]);if(x<0||x>1114111||x!==Math.floor(x))throw new RangeError("z`"+x);x<=65535?p+=String.fromCharCode(x):(x-=65536,p+=String.fromCharCode(x>>>10&1023|55296),p+=String.fromCharCode(x&1023|56320))}return p}});
Re("String.prototype.trimLeft",function(t){function E(){return this.replace(/^[\s\xa0]+/,"")}
return t||E});
Re("String.prototype.trimStart",function(t){return t||String.prototype.trimLeft});
Re("String.prototype.padStart",function(t){return t?t:function(E,p){var U=dW(this,null,"padStart");E-=U.length;p=p!==void 0?String(p):" ";return(E>0&&p?p.repeat(Math.ceil(E/p.length)).substring(0,E):"")+U}});
Re("Promise.prototype.finally",function(t){return t?t:function(E){return this.then(function(p){return Promise.resolve(E()).then(function(){return p})},function(p){return Promise.resolve(E()).then(function(){throw p;
})})}});
Re("Math.imul",function(t){return t?t:function(E,p){E=Number(E);p=Number(p);var U=E&65535,x=p&65535;return U*x+((E>>>16&65535)*x+U*(p>>>16&65535)<<16>>>0)|0}});
Re("Object.hasOwn",function(t){return t?t:function(E,p){return Object.prototype.hasOwnProperty.call(E,p)}});
Re("Math.sign",function(t){return t?t:function(E){E=Number(E);return E===0||isNaN(E)?E:E>0?1:-1}});
Re("Array.prototype.flat",function(t){return t?t:function(E){E=E===void 0?1:E;var p=[];Array.prototype.forEach.call(this,function(U){Array.isArray(U)&&E>0?(U=Array.prototype.flat.call(U,E-1),p.push.apply(p,U)):p.push(U)});
return p}});
Re("String.raw",function(t){return t?t:function(E,p){E=ktW(E);for(var U=E.raw,x=U.length,A="",m=0;m<x;++m)A+=U[m],m+1<x&&m+1<arguments.length&&(A+=String(arguments[m+1]));return A}});
Re("WeakSet",function(t){if(function(){if(!t||!Object.seal)return!1;try{var p=Object.seal({}),U=Object.seal({}),x=new t([p]);if(!x.has(p)||x.has(U))return!1;x.delete(p);x.add(U);return!x.has(p)&&x.has(U)}catch(A){return!1}}())return t;
var E=function(p){this.JSC$9062_map_=new WeakMap;if(p){p=_.M(p);for(var U;!(U=p.next()).done;)this.add(U.value)}};
E.prototype.add=function(p){this.JSC$9062_map_.set(p,!0);return this};
E.prototype.has=function(p){return this.JSC$9062_map_.has(p)};
E.prototype.delete=function(p){return this.JSC$9062_map_.delete(p)};
return E});
Re("Reflect.ownKeys",function(t){return t?t:function(E){var p=[],U=Object.getOwnPropertyNames(E);E=Object.getOwnPropertySymbols(E);for(var x=0;x<U.length;x++)(U[x].substring(0,14)=="jscomp_symbol_"?E:p).push(U[x]);return p.concat(E)}});
Re("Object.getOwnPropertyDescriptors",function(t){return t?t:function(E){for(var p={},U=Reflect.ownKeys(E),x=0;x<U.length;x++)p[U[x]]=Object.getOwnPropertyDescriptor(E,U[x]);return p}});
Re("Promise.allSettled",function(t){function E(U){return{status:"fulfilled",value:U}}
function p(U){return{status:"rejected",reason:U}}
return t?t:function(U){var x=this;U=Array.from(U,function(A){return x.resolve(A).then(E,p)});
return x.all(U)}});
Re("Number.parseInt",function(t){return t||parseInt});
var zjT=function(t,E,p){t instanceof String&&(t=String(t));for(var U=t.length-1;U>=0;U--){var x=t[U];if(E.call(p,x,U,t))return{i:U,v:x}}return{i:-1,v:void 0}};
Re("Array.prototype.findLastIndex",function(t){return t?t:function(E,p){return zjT(this,E,p).i}});
w8s("findLastIndex",function(t){return t?t:function(E,p){return zjT(this,E,p).i}});
_._DumpException=window._DumpException||function(t){throw t;};
window._DumpException=_._DumpException;var llZ=window.ytcsi;llZ&&typeof llZ.tick==="function"&&llZ.tick("rses_dpj");var Gtf,uf,Jy,Ie,nL3,NEZ,DK0,s0Z,z5,LJo;Gtf=Gtf||{};_.Ui=this||self;_.Oy=function(t,E,p){t=t.split(".");p=p||_.Ui;for(var U;t.length&&(U=t.shift());)t.length||E===void 0?p[U]&&p[U]!==Object.prototype[U]?p=p[U]:p=p[U]={}:p[U]=E};
uf=function(t,E){var p=_.ws("WIZ_global_data.oxN3nb");t=p&&p[t];return t!=null?t:E};
Jy=_.Ui._F_toggles_default_kevlar_base||[];Ie=function(){};
Ie.get=function(){return null};
_.lV=null;_.ws=function(t,E){t=t.split(".");E=E||_.Ui;for(var p=0;p<t.length;p++)if(E=E[t[p]],E==null)return null;return E};
_.gW=function(t){t.instance_=void 0;t.getInstance=function(){return t.instance_?t.instance_:t.instance_=new t}};
_.Ye=function(t){var E=typeof t;return E!="object"?E:t?Array.isArray(t)?"array":E:"null"};
_.LO=function(t){var E=_.Ye(t);return E=="array"||E=="object"&&typeof t.length=="number"};
_.o0=function(t){var E=typeof t;return E=="object"&&t!=null||E=="function"};
_.W8=function(t){return Object.prototype.hasOwnProperty.call(t,nL3)&&t[nL3]||(t[nL3]=++NEZ)};
nL3="closure_uid_"+(Math.random()*1E9>>>0);NEZ=0;DK0=function(t,E,p){return t.call.apply(t.bind,arguments)};
s0Z=function(t,E,p){if(!t)throw Error();if(arguments.length>2){var U=Array.prototype.slice.call(arguments,2);return function(){var x=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(x,U);return t.apply(E,x)}}return function(){return t.apply(E,arguments)}};
_.Tg=function(t,E,p){_.Tg=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?DK0:s0Z;return _.Tg.apply(null,arguments)};
_.GF=function(t,E){var p=Array.prototype.slice.call(arguments,1);return function(){var U=p.slice();U.push.apply(U,arguments);return t.apply(this,U)}};
_.Z1=function(){return Date.now()};
z5=function(t){return t};
_.Oa=function(t,E){function p(){}
p.prototype=E.prototype;t.superClass_=E.prototype;t.prototype=new p;t.prototype.constructor=t;t.base=function(U,x,A){for(var m=Array(arguments.length-2),b=2;b<arguments.length;b++)m[b-2]=arguments[b];return E.prototype[x].apply(U,m)}};
LJo=function(t){return t};var PYW,TEm;_.N=function(t,E,p,U){var x=arguments.length,A=x<3?E:U===null?U=Object.getOwnPropertyDescriptor(E,p):U,m;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")A=Reflect.decorate(t,E,p,U);else for(var b=t.length-1;b>=0;b--)if(m=t[b])A=(x<3?m(A):x>3?m(E,p,A):m(E,p))||A;x>3&&A&&Object.defineProperty(E,p,A)};
_.P=function(t,E){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(t,E)};
PYW=function(t,E){if(E!==null&&E!==void 0){if(typeof E!=="object"&&typeof E!=="function")throw new TypeError("A");if(p===void 0){if(!Symbol.dispose)throw new TypeError("C");var p=E[Symbol.dispose]}if(typeof p!=="function")throw new TypeError("D");t.stack.push({value:E,dispose:p,async:!1})}return E};
TEm=function(t){function E(A){t.error=t.hasError?new SuppressedError(A,t.error,"An error was suppressed during disposal."):A;t.hasError=!0}
function p(){for(;U=t.stack.pop();)try{if(!U.async&&x===1)return x=0,t.stack.push(U),Promise.resolve().then(p);if(U.dispose){var A=U.dispose.call(U.value);if(U.async)return x|=2,Promise.resolve(A).then(p,function(m){E(m);return p()})}else x|=1}catch(m){E(m)}if(x===1)return t.hasError?Promise.reject(t.error):Promise.resolve();
if(t.hasError)throw t.error;}
var U,x=0;p()};var oLs="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(" ");t$t()&&oLs.push("details:not(:has(summary))");var p8i=oLs.join(",");_.Oa(_.tD,Error);_.tD.prototype.name="CustomError";var WJr;var $Km=void 0,KJG,vLr=typeof TextDecoder!=="undefined",qiY,iOl=typeof String.prototype.isWellFormed==="function",bO0=typeof TextEncoder!=="undefined";var yDs;_.Lg=function(t){for(var E=[],p=0,U=0;U<t.length;U++){var x=t.charCodeAt(U);x<128?E[p++]=x:(x<2048?E[p++]=x>>6|192:((x&64512)==55296&&U+1<t.length&&(t.charCodeAt(U+1)&64512)==56320?(x=65536+((x&1023)<<10)+(t.charCodeAt(++U)&1023),E[p++]=x>>18|240,E[p++]=x>>12&63|128):E[p++]=x>>12|224,E[p++]=x>>6&63|128),E[p++]=x&63|128)}return E};
yDs=function(t){for(var E=[],p=0,U=0;p<t.length;){var x=t[p++];if(x<128)E[U++]=String.fromCharCode(x);else if(x>191&&x<224){var A=t[p++];E[U++]=String.fromCharCode((x&31)<<6|A&63)}else if(x>239&&x<365){A=t[p++];var m=t[p++],b=t[p++];x=((x&7)<<18|(A&63)<<12|(m&63)<<6|b&63)-65536;E[U++]=String.fromCharCode(55296+(x>>10));E[U++]=String.fromCharCode(56320+(x&1023))}else A=t[p++],m=t[p++],E[U++]=String.fromCharCode((x&15)<<12|(A&63)<<6|m&63)}return E.join("")};var fO=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]},Si4=/&/g,cDr=/</g,tWr=/>/g,EmG=/"/g,ppr=/'/g,Ufp=/\x00/g,xfr=/[\x00&<>"']/;var XI=!!(Jy[0]>>17&1),A30=!!(Jy[0]&4096),YrZ=!!(Jy[0]>>18&1),MWr=!!(Jy[0]&8),mfr=!!(Jy[0]&2),bss=!!(Jy[0]&4),isp=!!(Jy[0]&16),qrr=!!(Jy[0]&256),Hs4=!!(Jy[0]&32);var fTs,CO,BZ4,wpT,Ror,x5E,XKL;fTs=uf(1,!0);CO=XI?YrZ:uf(610401301,!1);BZ4=XI?A30||!MWr:uf(772657768,fTs);wpT=XI?mfr:uf(513659523,!1);Ror=XI?A30||!bss:uf(568333945,!0);x5E=XI?isp:uf(1331761403,!1);XKL=XI?A30||!qrr:uf(748402147,!0);_.hy=XI?Hs4:uf(824648567,!1);var rE,VWG=_.Ui.navigator;rE=VWG?VWG.userAgentData||null:null;var ur;_.FO=function(t,E){return Array.prototype.indexOf.call(t,E,void 0)};
_.QE=function(t,E,p){Array.prototype.forEach.call(t,E,p)};
_.ae=function(t,E,p){return Array.prototype.filter.call(t,E,p)};
_.vx=function(t,E,p){return Array.prototype.map.call(t,E,p)};
ur=function(t,E,p){return Array.prototype.some.call(t,E,p)};
_.NjO=function(t,E,p){return Array.prototype.every.call(t,E,p)};var eh=function(t){eh[" "](t);return t};
eh[" "]=function(){};
var vs_=function(t,E){try{return eh(t[E]),!0}catch(p){}return!1},Wni=function(t,E,p,U){U=U?U(E):E;
return Object.prototype.hasOwnProperty.call(t,U)?t[U]:t[U]=p(E)};var Qsr,g7,CGX,jsp,kXp,dfm,Sv8,u4X,J33,ITs,l$$,ZsZ,Os3,eoT,Fro,zoW;_.tGO=function(){return _.Ui.navigator||null};
Qsr=w80();_.FI=Rj$();g7=dE("Edge");CGX=g7||_.FI;_.Ne=dE("Gecko")&&!(_.H8(_.V_(),"WebKit")&&!dE("Edge"))&&!(dE("Trident")||dE("MSIE"))&&!dE("Edge");_.no=_.H8(_.V_(),"WebKit")&&!dE("Edge");jsp=_.no&&dE("Mobile");_.r3p=_.JD$();kXp=_.Il_();dfm=(Oi()?rE.platform==="Linux":dE("Linux"))||_.gL8();Sv8=_.dKt();u4X=uOL();J33=dE("iPad");ITs=dE("iPod");_.gmm=_.XO();l$$=_.H8(_.V_(),"KaiOS");ZsZ=function(){var t=_.Ui.document;return t?t.documentMode:void 0};
a:{var Xp4="",hoX=function(){var t=_.V_();if(_.Ne)return/rv:([^\);]+)(\)|;)/.exec(t);if(g7)return/Edge\/([\d\.]+)/.exec(t);if(_.FI)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t);if(_.no)return/WebKit\/(\S+)/.exec(t);if(Qsr)return/(?:Version)[ \/]?(\S+)/.exec(t)}();
hoX&&(Xp4=hoX?hoX[1]:"");if(_.FI){var aTm=ZsZ();if(aTm!=null&&aTm>parseFloat(Xp4)){Os3=String(aTm);break a}}Os3=Xp4}eoT=Os3;Fro={};_.zm=function(t){return Wni(Fro,t,function(){return _.B8(eoT,t)>=0})};
if(_.Ui.document&&_.FI){var lT0=ZsZ();zoW=lT0?lT0:parseInt(eoT,10)||void 0}else zoW=void 0;_.GXW=zoW;var yj_,SFl,nm4;_.lf=JD();yj_=uOL()||dE("iPod");SFl=dE("iPad");nm4=_.CYD();_.Gm=Zl();_.Bk=_.Q0J()&&!_.XO();var NEE={},t3=null,QvD=_.Ne||_.no||typeof _.Ui.btoa=="function";var ppJ=typeof Uint8Array!=="undefined",oL0=!_.FI&&typeof btoa==="function",WJJ=/[-_.]/g,PY$={"-":"+",_:"/",".":"="},as={};var X4,Dfr;X4=function(t,E){if(E!==as)throw Error("J");this.JSC$9096_value_=t;if(t!=null&&t.length===0)throw Error("I");};
_.eW=function(){return NZ3||(NZ3=new X4(null,as))};
Dfr=function(t){return new Uint8Array(cdY(t)||0)};
X4.prototype.isEmpty=function(){return this.JSC$9096_value_==null};
X4.prototype.sizeBytes=function(){var t=cdY(this);return t?t.length:0};
var cdY=function(t){if(as!==as)throw Error("J");var E=t.JSC$9096_value_;E==null||ppJ&&E!=null&&E instanceof Uint8Array||(typeof E==="string"?E=$KL(E):(_.Ye(E),E=null));return E==null?E:t.JSC$9096_value_=E},NZ3;var vLJ=void 0;var Ym=typeof Symbol==="function"&&typeof Symbol()==="symbol",sss=A3("jas",void 0,!0),Krt=A3(void 0,"0di"),bF=A3(void 0,"1oa"),G5=A3(void 0,Symbol()),qCE=A3(void 0,"0ub"),f9D=A3(void 0,"0ubs"),zcj=A3(void 0,"0ubsb"),a9E=A3(void 0,"0actk"),at=A3("m_m","messagePrototypeMarker",!0),u7O=A3(void 0,"vps"),mLL=A3();var cDi,SiO,yJ,LrT;cDi={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};SiO=Object.defineProperties;_.Mf=Ym?sss:"internalArrayState";LrT=[];Hp(LrT,7);yJ=Object.freeze(LrT);var eg={},Is={},PGG=function(t,E,p){this.iterable=t;this.mapper=E;this.thisArg=p};
PGG.prototype.next=function(){var t=this.iterable.next();t.done||(t.value=this.mapper.call(this.thisArg,t.value));return t};
PGG.prototype[Symbol.iterator]=function(){return this};
var TZ0=Object.freeze({}),lG={};var A3_=void 0,YrE=ns(function(t){return t!==null&&t!==void 0});var qri=ns(function(t){return typeof t==="number"}),is8=ns(function(t){return typeof t==="string"}),fTO=ns(function(t){return typeof t==="boolean"}),omo=ns(function(t){return t!=null&&typeof t==="object"&&typeof t.then==="function"}),UR8=ns(function(t){return typeof t==="function"}),LN=ns(function(t){return!!t&&(typeof t==="object"||typeof t==="function")});var HsO=typeof _.Ui.BigInt==="function"&&typeof _.Ui.BigInt(0)==="bigint";var Lrl=ns(function(t){return HsO?t>=Wr4&&t<=$f3:t[0]==="-"?BZO(t,KrX):BZO(t,vm3)}),KrX=Number.MIN_SAFE_INTEGER.toString(),Wr4=HsO?BigInt(Number.MIN_SAFE_INTEGER):void 0,vm3=Number.MAX_SAFE_INTEGER.toString(),$f3=HsO?BigInt(Number.MAX_SAFE_INTEGER):void 0;var y3Z=typeof Uint8Array.prototype.slice==="function",sr=0,Ls=0,VWY;var Cl,u8,ML,dt,ZsE;Cl=typeof BigInt==="function"?BigInt.asIntN:void 0;_.It=typeof BigInt==="function"?BigInt.asUintN:void 0;u8=Number.isSafeInteger;ML=Number.isFinite;dt=Math.trunc;ZsE=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Jdt={};var Ad$={},Srr=function(){try{var t=function(){return RjW(Map,[],this.constructor)};
_.u(t,Map);eh(new t);return!1}catch(E){return!0}}(),nG=function(){this.JSC$9115_map_=new Map};
_.Y=nG.prototype;_.Y.get=function(t){return this.JSC$9115_map_.get(t)};
_.Y.set=function(t,E){this.JSC$9115_map_.set(t,E);this.size=this.JSC$9115_map_.size;return this};
_.Y.delete=function(t){t=this.JSC$9115_map_.delete(t);this.size=this.JSC$9115_map_.size;return t};
_.Y.clear=function(){this.JSC$9115_map_.clear();this.size=this.JSC$9115_map_.size};
_.Y.has=function(t){return this.JSC$9115_map_.has(t)};
_.Y.entries=function(){return this.JSC$9115_map_.entries()};
_.Y.keys=function(){return this.JSC$9115_map_.keys()};
_.Y.values=function(){return this.JSC$9115_map_.values()};
_.Y.forEach=function(t,E){return this.JSC$9115_map_.forEach(t,E)};
nG.prototype[Symbol.iterator]=function(){return this.entries()};
var Nm=function(){if(Srr)return Object.setPrototypeOf(nG.prototype,Map.prototype),Object.defineProperties(nG.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),nG;var t=function(){return RjW(Map,[],this.constructor)};
_.u(t,Map);return t}(),F7=function(t,E,p,U){p=p===void 0?tgO:p;
U=U===void 0?tgO:U;var x=Nm.call(this)||this;x.arrayState=t[_.Mf]|0;x.valueCtor=E;x.keyToApi=p;x.valueToApi=x.valueCtor?pKE:U;for(var A=0;A<t.length;A++){var m=t[A],b=p(m[0],!1,!0),f=m[1];E?f===void 0&&(f=null):f=U(m[1],!1,!0,void 0,void 0,x.arrayState);Nm.prototype.set.call(x,b,f)}return x};
_.u(F7,Nm);var c34=function(t){if(t.arrayState&2)throw Error("N");},dLD=function(t,E){return wZ(Array.from(Nm.prototype.entries.call(t),E))};
_.Y=F7.prototype;_.Y.clear=function(){c34(this);Nm.prototype.clear.call(this)};
_.Y.delete=function(t){c34(this);return Nm.prototype.delete.call(this,this.keyToApi(t,!0,!1))};
_.Y.entries=function(){if(this.valueCtor){var t=Nm.prototype.keys.call(this);t=new PGG(t,ULL,this)}else t=Nm.prototype.entries.call(this);return t};
_.Y.values=function(){if(this.valueCtor){var t=Nm.prototype.keys.call(this);t=new PGG(t,F7.prototype.get,this)}else t=Nm.prototype.values.call(this);return t};
_.Y.forEach=function(t,E){this.valueCtor?Nm.prototype.forEach.call(this,function(p,U,x){t.call(E,x.get(U),U,x)}):Nm.prototype.forEach.call(this,t,E)};
_.Y.set=function(t,E){c34(this);t=this.keyToApi(t,!0,!1);return t==null?this:E==null?(Nm.prototype.delete.call(this,t),this):Nm.prototype.set.call(this,t,this.valueToApi(E,!0,!0,this.valueCtor,!1,this.arrayState))};
_.Y.has=function(t){return Nm.prototype.has.call(this,this.keyToApi(t,!1,!1))};
_.Y.get=function(t){t=this.keyToApi(t,!1,!1);var E=Nm.prototype.get.call(this,t);if(E!==void 0){var p=this.valueCtor;return p?(p=this.valueToApi(E,!1,!0,p,this.callToMutableOnAccess,this.arrayState),p!==E&&Nm.prototype.set.call(this,t,p),p):E}};
F7.prototype[Symbol.iterator]=function(){return this.entries()};
F7.prototype.toJSON=void 0;var xLO;var VgK=function(){},wK_=function(t,E){for(var p in t)!isNaN(p)&&E(t,+p,t[p])},Qtt=function(t){var E=new VgK;
wK_(t,function(p,U,x){E[U]=td(x)});
E.reviveUnknownFields=t.reviveUnknownFields;return E},bl8={reviveIntoImmutable:!0};var RbY;var I9L,geO;var tg4,US,Ta,yK,Ee3,$Z,KT,pKZ,ULm,Sh,xLs,cn,p1,Ut;tg4=_.Nf(0);_.D1={};_.sa=function(t,E,p,U,x){E=US(t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E,p,x);if(E!==null||U&&t.noLegacyNull!==Is)return E};
US=function(t,E,p,U){if(E===-1)return null;var x=E+(p?0:-1),A=t.length-1;if(!(A<1+(p?0:-1))){if(x>=A){var m=t[A];if(m!=null&&typeof m==="object"&&m.constructor===Object){p=m[E];var b=!0}else if(x===A)p=m;else return}else p=t[x];if(U&&p!=null){U=U(p);if(U==null)return U;if(!Object.is(U,p))return b?m[E]=U:t[x]=U,U}return p}};
_.nM=function(t,E,p,U){WK(t);var x=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;vK(x,x[_.Mf]|0,E,p,U);return t};
_.Pn=function(t,E,p){t=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return $L0(t,t[_.Mf]|0,E,p)!==void 0};
_.Tm=function(t,E,p,U){var x=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return $L0(x,x[_.Mf]|0,E,yK(t,U,p))!==void 0};
_.ri=function(t){return t===TZ0?2:4};
_.oe=function(t,E){t=_.sa(t,E,void 0,void 0,stY);return t==null?_.eW():t};
Ta=function(t,E,p,U){WK(t);var x=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=x[_.Mf]|0;if(U==null){var m=TtD(x);if(oeO(m,x,A,p)===E)m.set(p,0);else return t}else A=WoO(x,A,p,E);vK(x,A,E,U);return t};
_.I$=function(t,E,p,U){var x=t[_.Mf]|0,A=GX(x);x=WoO(t,x,p,E,A);vK(t,x,E,U,A)};
yK=function(t,E,p){return _.Wn(t,E)===p?p:-1};
_.Wn=function(t,E){t=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return oeO(TtD(t),t,void 0,E,void 0)};
Ee3=function(t,E,p){var U=t[_.Mf]|0,x=GX(U),A=US(t,p,x);if(A!=null&&A[at]===eg){if(!Or(A))return ot(A),A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var m=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(A)&&(m=A);if(m){var b=m[_.Mf]|0;b&2&&(m=PK(m,b))}m=sC(m,E);m!==A&&vK(t,U,p,m,x);return m};
_.lJ=function(t,E,p,U){var x=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=x[_.Mf]|0;E=$L0(x,A,E,p,U);if(E==null)return E;A=x[_.Mf]|0;if(!Or(t,A)){var m=EeD(E);m!==E&&(ot(t)&&(x=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=x[_.Mf]|0),E=m,A=vK(x,A,p,E,U),$e(x,A))}return E};
_.jd=function(t,E,p,U){var x=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Ko$(t,x,x[_.Mf]|0,E,p,U,!1,!0)};
_.FU=function(t,E,p,U){p=veK(p);_.nM(t,E,p,U);p&&!Or(p)&&$e(t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return t};
_.zC=function(t,E,p,U){U=veK(U);Ta(t,E,p,U);U&&!Or(U)&&$e(t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return t};
$Z=function(t,E,p){WK(t);var U=t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=U[_.Mf]|0;if(p==null)return vK(U,x,E),t;for(var A=p===yJ?7:p[_.Mf]|0,m=A,b=tG(A),f=b||Object.isFrozen(p),B=!0,R=!0,V=0;V<p.length;V++){var Q=p[V];b||(Q=Or(Q),B&&(B=!Q),R&&(R=Q))}b||(A=B?13:5,A=R?A&-4097:A|4096);f&&A===m||(p=td(p),m=0,A=Sg(A,x));A!==m&&Hp(p,A);x=vK(U,x,E,p);2&A||!(4096&A||16&A)||$e(U,x);return t};
KT=function(t,E,p,U){SC$(t,E,p,U);return t};
pKZ=function(t,E,p){SC$(t,E,KG,void 0,p,1,!0);return t};
_.vn=function(t,E,p){t=_.sa(t,E,void 0,p);E=typeof t;t=t==null?t:E==="bigint"?_.Nf((0,_.It)(64,t)):_.mo(t)?E==="string"?_.ss0(t):_.NZD(t):void 0;return t};
_.yT=function(t,E){var p=p===void 0?!1:p;var U;return(U=_.gmL(_.sa(t,E)))!=null?U:p};
_.kW=function(t,E,p){p=p===void 0?0:p;var U;return(U=_.BK(_.sa(t,E)))!=null?U:p};
ULm=function(t,E){var p=p===void 0?0:p;t=_.XpO(_.sa(t,E));return t!=null?t:p};
Sh=function(t,E,p){p=p===void 0?tg4:p;var U;return(U=_.omj(_.sa(t,E)))!=null?U:p};
xLs=function(t){var E=E===void 0?tg4:E;var p;return(p=_.vn(t,23))!=null?p:E};
cn=function(t,E){var p=p===void 0?0:p;var U;return(U=_.sa(t,E,void 0,void 0,_.Ad))!=null?U:p};
_.th=function(t,E,p,U){p=p===void 0?"":p;var x;return(x=_.hd(_.sa(t,E,U)))!=null?x:p};
_.Et=function(t,E){var p=p===void 0?0:p;var U;return(U=_.HK(_.sa(t,E)))!=null?U:p};
p1=function(t,E){var p=p===void 0?"0":p;t=TZ_(_.sa(t,E),!0);return t!=null?t:p};
_.AdW=function(t,E,p){t=_.cK(t,E,_.hd,3,!0);Uf8(t,p);return t[p]};
Ut=function(t,E,p){return _.th(t,yK(t,p,E))};
_.xC=function(t,E,p,U){return _.lJ(t,E,yK(t,U,p),void 0)};
_.lN=function(t,E){return _.hd(_.sa(t,E,void 0,_.D1))};
_.gi=function(t,E,p){return _.nM(t,E,ITO(p))};
_.WV=function(t,E,p){return _.AG(t,E,ITO(p),!1)};
_.Ah=function(t,E,p){return _.nM(t,E,_.fl(p))};
_.cE=function(t,E,p){return _.nM(t,E,ke(p))};
_.Lq=function(t,E,p){return _.nM(t,E,Z9(p))};
_.R7=function(t,E,p,U){return _.AG(t,E,Z9(p),"",U)};
_.GM=function(t,E,p){return _.nM(t,E,p==null?p:_.b8(p))};
_.YC=function(t,E,p){return _.AG(t,E,p==null?p:_.b8(p),0)};var q2=function(t,E,p){this.buffer=t;if(p&&!E)throw Error();this.JSC$9127_isImmutable=E};var YCr=function(t,E,p,U){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9130_start_=0;this.init(t,E,p,U)},mLm,Mq,blp,xEi,il3,qCZ,Hls,f93,uUK,Mgo;
_.Y=YCr.prototype;_.Y.init=function(t,E,p,U){var x=U===void 0?{}:U;U=x.aliasBytesFields===void 0?!1:x.aliasBytesFields;x=x.treatNewDataAsImmutable===void 0?!1:x.treatNewDataAsImmutable;this.aliasBytesFields=U;this.treatNewDataAsImmutable=x;t&&(t=t8O(t,this.treatNewDataAsImmutable),this.bytes_=t.buffer,this.bytesAreImmutable_=t.JSC$9127_isImmutable,this.JSC$9130_start_=E||0,this.end_=p!==void 0?this.JSC$9130_start_+p:this.bytes_.length,this.cursor_=this.JSC$9130_start_)};
_.Y.free=function(){this.clear();Mgo.length<100&&Mgo.push(this)};
_.Y.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9130_start_=0;this.aliasBytesFields=!1};
_.Y.reset=function(){this.cursor_=this.JSC$9130_start_};
_.Y.atEnd=function(){return this.cursor_==this.end_};
_.JG=function(t,E){var p=0,U=0,x=0,A=t.bytes_,m=t.cursor_;do{var b=A[m++];p|=(b&127)<<x;x+=7}while(x<32&&b&128);if(x>32)for(U|=(b&127)>>4,x=3;x<32&&b&128;x+=7)b=A[m++],U|=(b&127)<<x;Mq(t,m);if(!(b&128))return E(p>>>0,U>>>0);throw Error();};
mLm=function(t){return _.JG(t,function(E,p){return dfL(E,p,r38)})};
Mq=function(t,E){t.cursor_=E;if(E>t.end_)throw Error();};
_.mA=function(t){var E=t.bytes_,p=t.cursor_,U=E[p++],x=U&127;if(U&128&&(U=E[p++],x|=(U&127)<<7,U&128&&(U=E[p++],x|=(U&127)<<14,U&128&&(U=E[p++],x|=(U&127)<<21,U&128&&(U=E[p++],x|=U<<28,U&128&&E[p++]&128&&E[p++]&128&&E[p++]&128&&E[p++]&128&&E[p++]&128)))))throw Error();Mq(t,p);return x};
_.b3=function(t){var E=t.bytes_,p=t.cursor_,U=E[p],x=E[p+1],A=E[p+2];E=E[p+3];Mq(t,t.cursor_+4);return(U<<0|x<<8|A<<16|E<<24)>>>0};
blp=function(t){var E=_.b3(t);t=_.b3(t);return CGt(E,t)};
xEi=function(t){var E=_.b3(t);t=_.b3(t);return js8(E,t)};
il3=function(t){var E=_.b3(t);t=(E>>31)*2+1;var p=E>>>23&255;E&=8388607;return p==255?E?NaN:t*Infinity:p==0?t*1.401298464324817E-45*E:t*Math.pow(2,p-150)*(E+8388608)};
qCZ=function(t){var E=_.b3(t),p=_.b3(t);t=(p>>31)*2+1;var U=p>>>20&2047;E=4294967296*(p&1048575)+E;return U==2047?E?NaN:t*Infinity:U==0?t*4.9E-324*E:t*Math.pow(2,U-1075)*(E+4503599627370496)};
Hls=function(t){for(var E=0,p=t.cursor_,U=p+10,x=t.bytes_;p<U;){var A=x[p++];E|=A;if((A&128)===0)return Mq(t,p),!!(E&127)}throw Error();};
f93=function(t,E){if(E<0)throw Error();var p=t.cursor_;E=p+E;if(E>t.end_)throw Error();t.cursor_=E;return p};
uUK=function(t,E){if(E==0)return _.eW();var p=f93(t,E);t.aliasBytesFields&&t.bytesAreImmutable_?p=t.bytes_.subarray(p,p+E):(t=t.bytes_,E=p+E,p=p===E?new Uint8Array(0):y3Z?t.slice(p,E):new Uint8Array(t.subarray(p,E)));return p.length==0?_.eW():new X4(p,as)};
Mgo=[];var wK0=function(t,E,p,U){if(Mgo.length){var x=Mgo.pop();x.init(t,E,p,U);t=x}else t=new YCr(t,E,p,U);this.decoder_=t;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;Btf(this,U)},Btf=function(t,E){E=E===void 0?{}:E;
t.discardUnknownFields=E.discardUnknownFields===void 0?!1:E.discardUnknownFields},gIL=function(t,E,p,U){if(RbG.length){var x=RbG.pop();
Btf(x,U);x.decoder_.init(t,E,p,U);return x}return new wK0(t,E,p,U)},rGL,d2O,Hq,Vgf,RbG;
wK0.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;RbG.length<100&&RbG.push(this)};
wK0.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
rGL=function(t){if(t.decoder_.atEnd())return!1;t.fieldCursor_=t.decoder_.cursor_;var E=_.mA(t.decoder_)>>>0,p=E>>>3;E&=7;if(!(E>=0&&E<=5))throw Error();if(p<1)throw Error();t.nextField_=p;t.nextWireType_=E;return!0};
d2O=function(t){switch(t.nextWireType_){case 0:t.nextWireType_!=0?d2O(t):Hls(t.decoder_);break;case 1:t=t.decoder_;Mq(t,t.cursor_+8);break;case 2:if(t.nextWireType_!=2)d2O(t);else{var E=_.mA(t.decoder_)>>>0;t=t.decoder_;Mq(t,t.cursor_+E)}break;case 5:t=t.decoder_;Mq(t,t.cursor_+4);break;case 3:E=t.nextField_;do{if(!rGL(t))throw Error();if(t.nextWireType_==4){if(t.nextField_!=E)throw Error();break}d2O(t)}while(1);break;default:throw Error();}};
Hq=function(t,E,p){var U=t.decoder_.end_,x=_.mA(t.decoder_)>>>0;x=t.decoder_.cursor_+x;var A=x-U;A<=0&&(t.decoder_.end_=x,p(E,t,void 0,void 0,void 0),A=x-t.decoder_.cursor_);if(A)throw Error();t.decoder_.cursor_=x;t.decoder_.end_=U;return E};
Vgf=function(t){var E=_.mA(t.decoder_)>>>0;t=t.decoder_;var p=f93(t,E);t=t.bytes_;if(vLr){var U=t,x;(x=KJG)||(x=KJG=new TextDecoder("utf-8",{fatal:!0}));E=p+E;U=p===0&&E===U.length?U:U.subarray(p,E);try{var A=x.decode(U)}catch(B){if($Km===void 0){try{x.decode(new Uint8Array([128]))}catch(R){}try{x.decode(new Uint8Array([97])),$Km=!0}catch(R){$Km=!1}}!$Km&&(KJG=void 0);throw B;}}else{A=p;E=A+E;p=[];for(var m=null,b,f;A<E;)b=t[A++],b<128?p.push(b):b<224?A>=E?Ei():(f=t[A++],b<194||(f&192)!==128?(A--,
Ei()):p.push((b&31)<<6|f&63)):b<240?A>=E-1?Ei():(f=t[A++],(f&192)!==128||b===224&&f<160||b===237&&f>=160||((x=t[A++])&192)!==128?(A--,Ei()):p.push((b&15)<<12|(f&63)<<6|x&63)):b<=244?A>=E-2?Ei():(f=t[A++],(f&192)!==128||(b<<28)+(f-144)>>30!==0||((x=t[A++])&192)!==128||((U=t[A++])&192)!==128?(A--,Ei()):(b=(b&7)<<18|(f&63)<<12|(x&63)<<6|U&63,b-=65536,p.push((b>>10&1023)+55296,(b&1023)+56320))):Ei(),p.length>=8192&&(m=mKj(m,p),p.length=0);A=mKj(m,p)}return A};
_.QtX=function(t){var E=_.mA(t.decoder_)>>>0;return uUK(t.decoder_,E)};
_.C8X=function(t,E,p){var U=_.mA(t.decoder_)>>>0;for(U=t.decoder_.cursor_+U;t.decoder_.cursor_<U;)p.push(E(t.decoder_))};
RbG=[];var jtf=function(t,E){this.JSC$9137_lo=t>>>0;this.JSC$9137_hi=E>>>0},s$L=function(t){t=BigInt.asUintN(64,t);
return new jtf(Number(t&BigInt(4294967295)),Number(t>>BigInt(32)))},U2K=function(t){if(!t)return rdZ||(rdZ=new jtf(0,0));
if(!/^\d+$/.test(t))return null;cp(t);return new jtf(sr,Ls)},rdZ,D28=function(t,E){this.JSC$9139_lo=t>>>0;
this.JSC$9139_hi=E>>>0},EIi=function(t){if(!t)return k5p||(k5p=new D28(0,0));
if(!/^-?\d+$/.test(t))return null;cp(t);return new D28(sr,Ls)},k5p;var f1=function(){this.JSC$9141_buffer_=[]},kI,uF,dL3;
f1.prototype.length=function(){return this.JSC$9141_buffer_.length};
f1.prototype.end=function(){var t=this.JSC$9141_buffer_;this.JSC$9141_buffer_=[];return t};
kI=function(t,E,p){for(;p>0||E>127;)t.JSC$9141_buffer_.push(E&127|128),E=(E>>>7|p<<25)>>>0,p>>>=7;t.JSC$9141_buffer_.push(E)};
uF=function(t,E){for(;E>127;)t.JSC$9141_buffer_.push(E&127|128),E>>>=7;t.JSC$9141_buffer_.push(E)};
_.PFO=function(t,E){if(E>=0)uF(t,E);else{for(var p=0;p<9;p++)t.JSC$9141_buffer_.push(E&127|128),E>>=7;t.JSC$9141_buffer_.push(1)}};
dL3=function(t,E){cp(E);kX8(function(p,U){kI(t,p>>>0,U>>>0)})};
f1.prototype.writeUint8=function(t){this.JSC$9141_buffer_.push(t>>>0&255)};
_.r6=function(t,E){t.JSC$9141_buffer_.push(E>>>0&255);t.JSC$9141_buffer_.push(E>>>8&255);t.JSC$9141_buffer_.push(E>>>16&255);t.JSC$9141_buffer_.push(E>>>24&255)};
f1.prototype.writeInt8=function(t){this.JSC$9141_buffer_.push(t>>>0&255)};var u7s,R$,oIY,K6O,M8i;u7s=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new f1};
R$=function(t,E){E.length!==0&&(t.blocks_.push(E),t.totalLength_+=E.length)};
_.JdX=function(t,E){_.j8(t,E,2);E=t.encoder_.end();R$(t,E);E.push(t.totalLength_);return E};
_.I9m=function(t,E){var p=E.pop();for(p=t.totalLength_+t.encoder_.length()-p;p>127;)E.push(p&127|128),p>>>=7,t.totalLength_++;E.push(p);t.totalLength_++};
_.j8=function(t,E,p){uF(t.encoder_,E*8+p)};
oIY=function(t,E,p){if(p!=null)switch(x2i(p),_.j8(t,E,1),typeof p){case "number":t=t.encoder_;wpl(p);_.r6(t,sr);_.r6(t,Ls);break;case "bigint":p=s$L(p);t=t.encoder_;E=p.JSC$9137_hi;_.r6(t,p.JSC$9137_lo);_.r6(t,E);break;default:p=U2K(p),t=t.encoder_,E=p.JSC$9137_hi,_.r6(t,p.JSC$9137_lo),_.r6(t,E)}};
K6O=function(t,E,p){_.j8(t,E,2);uF(t.encoder_,p.length);R$(t,t.encoder_.end());R$(t,p)};
M8i=function(t,E,p,U){p!=null&&(E=_.JdX(t,E),U(p,t),_.I9m(t,E))};var AGO,ge4,Zl3,Olo,XKm,a9Z,ebZ,zbZ,l9f;AGO=Hw();ge4=Hw();Zl3=Hw();Olo=Hw();XKm=Hw();_.hb0=Hw();_.Bq=Hw();a9Z=Hw();ebZ=Hw();_.FoG=Hw();zbZ=Hw();l9f=Hw();_.G54=Hw();_.ner=Hw();_.w6=function(t,E,p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t,E,p)};
_.w6.prototype.toJSON=function(){return D9(this)};
_.w6.prototype.serialize=function(t){return JSON.stringify(D9(this,t))};
var bBY=function(t,E){if(E==null||E=="")return new t;E=JSON.parse(E);if(!Array.isArray(E))throw Error("V");return new t(EmY(E))};
_.w6.prototype.getExtension=function(t){Hl0(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t.fieldIndex);ilD(this,t.fieldIndex);return t.ctor?t.isRepeated?t.getExtensionFn(this,t.ctor,t.fieldIndex,_.ri(),t.JSC$9152_hasMessageId):t.getExtensionFn(this,t.ctor,t.fieldIndex,t.JSC$9152_hasMessageId):t.isRepeated?t.getExtensionFn(this,t.fieldIndex,_.ri(),t.JSC$9152_hasMessageId):t.getExtensionFn(this,t.fieldIndex,t.defaultValue,t.JSC$9152_hasMessageId)};
_.w6.prototype.clone=function(){var t=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=t[_.Mf]|0;return G5O(this,t,E)?l9K(this,t,!0):new this.constructor(PK(t,E,!1))};
_.w6.prototype[at]=eg;_.w6.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var ft=function(t,E,p){this.$$binaryReaderFn=t;this.$$binaryWriterFn=E;t=z5(AGO);this.$$isMsg=!!t&&p===t||!1},fki=YSt(function(t,E,p,U,x){if(t.nextWireType_!==2)return!1;
Hq(t,Ee3(E,U,p),x);return!0},btJ),B6O=YSt(function(t,E,p,U,x){if(t.nextWireType_!==2)return!1;
Hq(t,Ee3(E,U,p),x);return!0},btJ),OtK=Symbol(),V8J=Symbol(),j$Y=Symbol(),akE=Symbol(),JGY=Symbol(),itY,qSi;var Nto,Y2J,DLX,w9,stG,Lor,P8r,Tt3,Vg,Wo4,$Ls,KoW,vef,ydX,cdG,t84,EIr,pws,U2f,x2r;Nto=_.Nf(0);Y2J=function(t,E){var p=new u7s;ec_(t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,p,Bw(OtK,Zt8,Xw$,E));R$(p,p.encoder_.end());t=new Uint8Array(p.totalLength_);E=p.blocks_;for(var U=E.length,x=0,A=0;A<U;A++){var m=E[A];t.set(m,x);x+=m.length}p.blocks_=[t];return t};
DLX=YSt(function(t,E,p,U,x){if(t.nextWireType_!==2)return!1;t=Hq(t,sC([void 0,void 0],U),x);t=td(t);U=E[_.Mf]|0;x=GX(U);if(U&2)throw Error();var A=US(E,p,x);if(A instanceof F7)(A.arrayState&2)!=0?(A=dLD(A),A.push(t),vK(E,U,p,A,x)):(E=A,p=E.keyToApi(t[0],!1,!0),t=t[1],t=E.valueCtor?t===void 0?null:t:E.valueToApi(t,!1,!0,void 0,!1,E.arrayState),Nm.prototype.set.call(E,p,t));else if(Array.isArray(A)){var m=A[_.Mf]|0;m&8192||Hp(A,m|=8192);m&2&&(A=LoJ(A),vK(E,U,p,A,x));A.push(t)}else vK(E,U,p,wZ([t]),
x);return!0},function(t,E,p,U,x){if(E instanceof F7)E.forEach(function(b,f){M8i(t,p,sC([f,
b],U),x)});
else if(Array.isArray(E)){for(var A=0;A<E.length;A++){var m=E[A];Array.isArray(m)&&M8i(t,p,sC(m,U),x)}wZ(E)}});
w9=_.Q$(function(t,E,p){if(t.nextWireType_!==1)return!1;_.Ct(E,p,qCZ(t.decoder_));return!0},nI$,l9f);
stG=_.Q$(function(t,E,p,U){if(t.nextWireType_!==1)return!1;_.I$(E,p,U,qCZ(t.decoder_));return!0},nI$,l9f);
Lor=_.Q$(function(t,E,p){if(t.nextWireType_!==5)return!1;_.Ct(E,p,il3(t.decoder_));return!0},N6i,zbZ);
P8r=_.GCL(function(t,E,p){if(t.nextWireType_!==5&&t.nextWireType_!==2)return!1;E=_.YI(E,E[_.Mf]|0,p);t.nextWireType_==2?_.C8X(t,il3,E):E.push(il3(t.decoder_));return!0},function(t,E,p){E=_.lkL(_.Ad,E,!0);
if(E!=null&&E.length)for(_.j8(t,p,2),uF(t.encoder_,E.length*4),p=0;p<E.length;p++){var U=t.encoder_;QsJ(E[p]);_.r6(U,sr)}},zbZ);
Tt3=_.Q$(function(t,E,p,U){if(t.nextWireType_!==5)return!1;_.I$(E,p,U,il3(t.decoder_));return!0},N6i,zbZ);
_.oes=_.Q$(function(t,E,p){if(_.hy)return EkO(t,E,p);if(t.nextWireType_!==0)return!1;_.Ct(E,p,_.JG(t.decoder_,_.y0));return!0},_.d6,_.Bq);
_.Rx=_.Q$(function(t,E,p){if(_.hy)return EkO(t,E,p);if(t.nextWireType_!==0)return!1;_.Ct(E,p,_.JG(t.decoder_,Ks));return!0},_.d6,_.Bq);
Vg=_.Q$(function(t,E,p){if(_.hy)return t.nextWireType_!==0?E=!1:(t=_.JG(t.decoder_,r38),_.Ct(E,p,t===Nto?void 0:t),E=!0),E;if(t.nextWireType_!==0)return!1;t=_.JG(t.decoder_,Ks);_.Ct(E,p,t===0?void 0:t);return!0},_.d6,_.Bq);
Wo4=_.Q$(function(t,E,p,U){if(_.hy)return _.pTO(t,E,p,U);if(t.nextWireType_!==0)return!1;_.I$(E,p,U,_.JG(t.decoder_,Ks));return!0},_.d6,_.Bq);
$Ls=_.Q$(function(t,E,p){if(_.hy)return UEi(t,E,p);if(t.nextWireType_!==0)return!1;_.Ct(E,p,_.JG(t.decoder_,_.TX));return!0},L6j,a9Z);
_.Qg=_.Q$(function(t,E,p){if(_.hy)return UEi(t,E,p);if(t.nextWireType_!==0)return!1;_.Ct(E,p,_.JG(t.decoder_,CGt));return!0},L6j,a9Z);
_.C1=_.Q$(function(t,E,p){if(t.nextWireType_!==0)return!1;_.Ct(E,p,_.mA(t.decoder_));return!0},T6l,Olo);
KoW=_.Q$(function(t,E,p){if(t.nextWireType_!==0)return!1;t=_.mA(t.decoder_);_.Ct(E,p,t===0?void 0:t);return!0},T6l,Olo);
vef=_.Q$(function(t,E,p,U){if(t.nextWireType_!==0)return!1;_.I$(E,p,U,_.mA(t.decoder_));return!0},T6l,Olo);
ydX=_.Q$(function(t,E,p){if(_.hy)return _.A9J(t,E,p);if(t.nextWireType_!==1)return!1;_.Ct(E,p,blp(t.decoder_));return!0},_.W6O,_.FoG);
_.SCW=_.GCL(function(t,E,p){if(_.hy)return t.nextWireType_!==1&&t.nextWireType_!==2?t=!1:(E=_.YI(E,E[_.Mf]|0,p),t.nextWireType_==2?_.C8X(t,xEi,E):E.push(xEi(t.decoder_)),t=!0),t;if(t.nextWireType_!==1&&t.nextWireType_!==2)return!1;E=_.YI(E,E[_.Mf]|0,p);t.nextWireType_==2?_.C8X(t,blp,E):E.push(blp(t.decoder_));return!0},function(t,E,p){E=_.lkL($fD,E,!1);
if(E!=null)for(var U=0;U<E.length;U++)oIY(t,p,E[U])},_.FoG);
_.jM=_.Q$(function(t,E,p){if(t.nextWireType_!==0)return!1;_.Ct(E,p,Hls(t.decoder_));return!0},$2D,ge4);
_.r9=_.Q$(function(t,E,p){if(t.nextWireType_!==0)return!1;t=Hls(t.decoder_);_.Ct(E,p,t===!1?void 0:t);return!0},$2D,ge4);
cdG=_.Q$(function(t,E,p,U){if(t.nextWireType_!==0)return!1;_.I$(E,p,U,Hls(t.decoder_));return!0},$2D,ge4);
_.kC=_.Q$(function(t,E,p){if(t.nextWireType_!==2)return!1;_.Ct(E,p,Vgf(t));return!0},vIt,Zl3);
_.d9=_.Q$(function(t,E,p){if(t.nextWireType_!==2)return!1;t=Vgf(t);_.Ct(E,p,t===""?void 0:t);return!0},vIt,Zl3);
_.u3=_.Q$(function(t,E,p,U){if(t.nextWireType_!==2)return!1;_.I$(E,p,U,Vgf(t));return!0},vIt,Zl3);
t84=_.GCL(function(t,E,p){if(t.nextWireType_!==2)return!1;t=Vgf(t);_.YI(E,E[_.Mf]|0,p).push(t);return!0},function(t,E,p){E=_.lkL(_.hd,E,!0);
if(E!=null)for(var U=0;U<E.length;U++){var x=t,A=p,m=E[U];m!=null&&K6O(x,A,HOE(m))}},Zl3);
EIr=void 0;EIr=EIr===void 0?AGO:EIr;_.Jh=new ft(function(t,E,p,U,x){if(t.nextWireType_!==2)return!1;U=sC(void 0,U);_.YI(E,E[_.Mf]|0,p).push(U);Hq(t,U,x);return!0},function(t,E,p,U,x){if(Array.isArray(E)){for(var A=0;A<E.length;A++)yG0(t,E[A],p,U,x);
t=E[_.Mf]|0;t&1||Hp(E,t|1)}},EIr);
_.Ix=YSt(function(t,E,p,U,x,A){if(t.nextWireType_!==2)return!1;var m=E[_.Mf]|0;WoO(E,m,A,p,GX(m));E=Ee3(E,U,p);Hq(t,E,x);return!0},yG0);
_.g9=_.Q$(function(t,E,p){if(t.nextWireType_!==2)return!1;_.Ct(E,p,_.QtX(t));return!0},_.SSO,_.G54);
pws=_.Q$(function(t,E,p,U){if(t.nextWireType_!==2)return!1;_.I$(E,p,U,_.QtX(t));return!0},_.SSO,_.G54);
_.Zy=_.Q$(function(t,E,p){if(t.nextWireType_!==0)return!1;_.Ct(E,p,_.mA(t.decoder_)>>>0);return!0},cGj,XKm);
U2f=_.Q$(function(t,E,p,U){if(t.nextWireType_!==0)return!1;_.I$(E,p,U,_.mA(t.decoder_)>>>0);return!0},cGj,XKm);
_.Ot=_.Q$(function(t,E,p){if(t.nextWireType_!==0)return!1;_.Ct(E,p,_.mA(t.decoder_));return!0},_.tsj,_.ner);
_.X2=_.Q$(function(t,E,p){if(t.nextWireType_!==0)return!1;t=_.mA(t.decoder_);_.Ct(E,p,t===0?void 0:t);return!0},_.tsj,_.ner);
x2r=_.Q$(function(t,E,p){if(_.hy)return t.nextWireType_!==0?t=!1:(_.Ct(E,p,mLm(t.decoder_)),t=!0),t;if(t.nextWireType_!==0)return!1;_.Ct(E,p,_.JG(t.decoder_,u4t));return!0},function(t,E,p){E=WrO(E);
if(E!=null&&(pw0(E),E!=null))switch(_.j8(t,p,0),typeof E){case "number":t=t.encoder_;p=E;E=p<0;p=Math.abs(p)*2;wpl(p);p=sr;var U=Ls;E&&(p==0?U==0?U=p=4294967295:(U--,p=4294967295):p--);sr=p;Ls=U;kI(t,sr,Ls);break;case "bigint":t=t.encoder_;E=E<<BigInt(1)^E>>BigInt(63);sr=Number(BigInt.asUintN(32,E));Ls=Number(BigInt.asUintN(32,E>>BigInt(32)));kI(t,sr,Ls);break;default:dL3(t.encoder_,E)}},ebZ);var M8r=function(){var t=AG4,E=YSX;this.fieldIndex=175237375;this.ctor=E;this.isRepeated=0;this.getExtensionFn=_.lJ;this.defaultValue=void 0;this.JSC$9152_hasMessageId=t.messageId!=null?lG:void 0};
M8r.prototype.register=function(){eh(this)};var m2f=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(m2f,_.w6);var btr=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(btr,_.w6);var HBi=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(HBi,_.w6);var itG=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(itG,_.w6);var qSr=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(qSr,_.w6);var HtW=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(HtW,_.w6);var fkr=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(fkr,_.w6);fkr.prototype.getData=function(){return _.oe(this,2)};var B64=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(B64,_.w6);var wwr=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(wwr,_.w6);wwr.prototype.getStyle=function(){return _.lJ(this,m2f,1)};var e8=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(e8,_.w6);e8.prototype.getPayloadCase=function(){return _.Wn(this,lF)};
e8.prototype.getStyle=function(){return _.xC(this,wwr,6,lF)};
var Rc3=function(){var t=new e8,E=new qSr;return _.zC(t,7,lF,E)},V8r=function(){var t=new e8,E=new HtW;
return _.zC(t,8,lF,E)},lF=[1,
2,3,4,5,6,7,8];var Q$m=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Q$m,_.w6);var CFp=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(CFp,_.w6);var j$G=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(j$G,_.w6);var rGm=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(rGm,_.w6);var kCG=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(kCG,_.w6);var d24=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(d24,_.w6);var uUf=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(uUf,_.w6);var JGG=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(JGG,_.w6);JGG.prototype.getData=function(){return _.oe(this,2)};var Ikm=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Ikm,_.w6);var q20=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(q20,_.w6);q20.prototype.getPayloadCase=function(){return _.Wn(this,hh)};
var hh=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var ax=function(t,E){t=Error.call(this,t);this.message=t.message;"stack"in t&&(this.stack=t.stack);this.code=E===void 0?2:E};
_.u(ax,Error);var gIm=Promise;var Ztp=function(t){this.channelPromise=t};
Ztp.prototype.send=function(t,E,p){this.channelPromise.then(function(U){U.send(t,E,p)})};var Otf=function(t,E){this.data=t;this.channel=E};
Otf.prototype.reply=function(t,E,p){this.channel.send(t,E,p)};var XwW=function(t){this.JSC$9218_port_=t};
XwW.prototype.send=function(t,E,p){p=p===void 0?[]:p;var U=new MessageChannel;hcX(U.port1,E);this.JSC$9218_port_.postMessage(t,[U.port2].concat(p))};
var akZ=function(t,E){hcX(t,E);return new XwW(t)},hcX=function(t,E){E&&(t.onmessage=function(p){E(new Otf(p.data,akZ(p.ports[0])))})};var ec0=function(t){this.verifier_=t};
ec0.prototype.verify=function(t){return this.verifier_(t)};
var F64=function(t){var E=Object.create(null);(typeof t==="string"?[t]:t).forEach(function(p){if(p==="null")throw Error("X");E[p]=!0});
return function(p){return E[p]===!0}};_.zco=function(){if(!_.Ui.addEventListener||!Object.defineProperty)return!1;var t=!1,E=Object.defineProperty({},"passive",{get:function(){t=!0}});
try{var p=function(){};
_.Ui.addEventListener("test",p,E);_.Ui.removeEventListener("test",p,E)}catch(U){}return t}();var lkm;_.eM=function(t){var E=t.destination;var p=t.iframe;var U=t.origin;var x=t.channelName===void 0?"ZNWN1d":t.channelName;var A=t.onMessage===void 0?void 0:t.onMessage;t=t.onEstablished===void 0?void 0:t.onEstablished;return lkm({destination:E,getSource:function(){return p.contentWindow},
originVerifier:U instanceof ec0?U:typeof U==="function"?new ec0(U):new ec0(F64(U)),channelName:x,onMessage:A,onEstablished:t})};
lkm=function(t){var E=t.destination;var p=t.getSource;var U=t.originVerifier;var x=t.token===void 0?void 0:t.token;var A=t.channelName;var m=t.onMessage===void 0?void 0:t.onMessage;var b=t.onEstablished===void 0?void 0:t.onEstablished;return new Ztp(new gIm(function(f,B){var R=function(V){V.source&&V.source===p()&&U.verify(V.origin)&&(V.data.n||V.data)===A&&(E.removeEventListener("message",R,!1),x&&V.data.t!==x?B(Error("Y`"+A+"`"+x+"`"+V.data.t)):(f(akZ(V.ports[0],m)),b&&b(V)))};
E.addEventListener("message",R,!1)}))};var GCm=function(t){try{t()}catch(E){xL(E)}};var N6r=function(t){var E=this;var p=t.getMessageType;var U=t.onUnregisteredMessage===void 0?function(){}:t.onUnregisteredMessage;
var x=t.onBeforeRegisteredMessage===void 0?function(){}:t.onBeforeRegisteredMessage;
t=t.onAfterRegisteredMessage===void 0?function(){}:t.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=p;this.onUnregisteredMessage_=U;this.onBeforeRegisteredMessage_=x;this.onAfterRegisteredMessage_=t;this.onMessage=function(A){return nIW(E,A)}};
N6r.prototype.register=function(t,E){this.registry_.set(t,E);return this};
var nIW=function(t,E){var p=t.getMessageType_(E.data),U=t.registry_.get(p);U?(GCm(function(){return t.onBeforeRegisteredMessage_(E,p)}),GCm(function(){return U(E)}),GCm(function(){return t.onAfterRegisteredMessage_(E,p)})):GCm(function(){return t.onUnregisteredMessage_(E,p)})};var D2p=function(t){this.JSC$9235_channel_=t},L6o,PF4;
D2p.prototype.send=function(t,E,p){this.JSC$9235_channel_.send(D9(t),E,p)};
_.s$m=function(t,E){return function(p){var U=new t(p.data);return E(new Otf(U,p.channel))}};
L6o=function(t){return function(E){return t(new Otf(E.data,new D2p(E.channel)))}};
PF4=function(t,E){return L6o(_.s$m(t,E))};var T6T=function(t,E,p,U){this.registry=t;this.delegate=E;this.receiveMessageConstructor=p;this.createInitMessage=U;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},iBJ=function(t){var E=new N6r({getMessageType:t.getPayloadCase});
return new T6T(E,new D2p(_.eM({iframe:t.child,destination:window,origin:t.origin,channelName:t.channelName,onMessage:PF4(t.receiveMessageConstructor,E.onMessage)})),t.receiveMessageConstructor,t.createInitMessage)},oIG=function(t,E){t.createInitMessage=E};
T6T.prototype.send=function(t){if(!this.initialised)throw new ax("Attempted to send a message before initialisation.");this.delegate.send(t)};
var W6s=function(t,E){return _.q(function(p){if(!t.initialised)throw new ax("Attempted to send a message before initialisation.");return p.return(new Promise(function(U){t.delegate.send(E,PF4(t.receiveMessageConstructor,U))}))})};
T6T.prototype.init=function(){var t=this;return _.q(function(E){if(t.initialised)throw new ax("Attempted to initialise twice. The SDK can only be initialised once.");if(t.createInitMessage!==void 0){var p=t.delegate,U=p.send,x=t.createInitMessage;var A=new btr;var m=[].concat(_.KB(t.features));A=_.xI(A,1,m,_.b8);U.call(p,x.call(t,A))}t.initialised=!0;_.Do(E)})};
var F2=function(t,E){if(t.initialised)throw new ax('Attempted to set up API "'+E+'" after initialisation. All APIs must be set up before initialising the SDK.');t.features.add(E);return t.registry};
_.aE.Object.defineProperties(T6T.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var $23=function(t){this.channel=t;this.registered=!1};
$23.prototype.update=function(t){if(this.channel.isInitialised){if(!this.registered)throw new ax("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var E=new e8;var p=new itG;p=_.gi(p,1,t);E=_.zC(E,2,lF,p);this.channel.send(E)}else this.register();this.JSC$9249_audioEnabled=t};
$23.prototype.register=function(){F2(this.channel,1);this.registered=!0};
$23.prototype.isAudioEnabled=function(){return this.JSC$9249_audioEnabled};var K64=function(t){this.channel=t};
_.Y=K64.prototype;_.Y.onFirstFrameReady=function(t){F2(this.channel,2).register(11,function(E){E=_.xC(E.data,Q$m,11,hh);if(!E)throw new ax("Unexpectedly nonexistent GameFirstFrameReadyEvent");t(_.th(E,1))})};
_.Y.onReady=function(t){F2(this.channel,2).register(4,function(E){E=_.xC(E.data,j$G,4,hh);if(!E)throw new ax("Unexpectedly nonexistent GameReadyEvent");t(_.th(E,1))})};
_.Y.onLevelComplete=function(t){F2(this.channel,2).register(5,function(E){E=_.xC(E.data,rGm,5,hh);if(!E)throw new ax("Unexpectedly nonexistent LevelCompleteEvent");t(_.th(E,1),_.kW(E,2))})};
_.Y.onGameOver=function(t){F2(this.channel,2).register(6,function(E){E=_.xC(E.data,CFp,6,hh);if(!E)throw new ax("Unexpectedly nonexistent GameOverEvent");t(_.th(E,1))})};
_.Y.pause=function(){var t=this;if(!this.channel.isInitialised)return F2(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new ax("Using unregistered Game Feature: pause.");var E=Rc3();return new Promise(function(p){return _.q(function(U){if(U.nextAddress==1)return U.yield(W6s(t.channel,E),2);p();_.Do(U)})})};
_.Y.resume=function(){var t=this;if(!this.channel.isInitialised)return F2(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new ax("Using unregistered Game Feature: resume.");var E=V8r();return new Promise(function(p){return _.q(function(U){if(U.nextAddress==1)return U.yield(W6s(t.channel,E),2);p();_.Do(U)})})};var vIX=function(t){this.channel=t};
vIX.prototype.onReady=function(t){F2(this.channel,5).register(8,function(E){if(!_.xC(E.data,kCG,8,hh))throw new ax("Unexpectedly nonexistent PageReadyEvent");t()})};var yGs=function(t){this.channel=t};
yGs.prototype.onChange=function(t){F2(this.channel,3).register(7,function(E){E=_.xC(E.data,d24,7,hh);if(!E)throw new ax("Unexpectedly nonexistent ScoreEvent");t(_.th(E,1),_.kW(E,2))})};var SS4={load:function(){throw new ax("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new ax("Storage used, but storage.onSave() listener not set!");}},cGo=function(t){this.channel=t;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},tso=function(t){F2(t.channel,4).register(2,SS4.load).register(3,SS4.save);
t.initialSetupDone=!0};
cGo.prototype.onLoad=function(t){this.initialSetupDone||tso(this);this.loadRegistered||(this.loadRegistered=!0,F2(this.channel,4).register(2,function(E){var p,U,x;return _.q(function(A){if(A.nextAddress==1){p=_.xC(E.data,uUf,2,hh);if(!p)throw new ax("Unexpectedly nonexistent StorageLoad");U=_.th(p,1);return A.yield(t(U),2)}x=A.yieldResult;var m=E.reply,b=new e8;var f=new fkr;f=_.Lq(f,1,U);f=_.nM(f,2,_.F4(x,!1));b=_.zC(b,3,lF,f);m.call(E,b);_.Do(A)})}))};
cGo.prototype.onSave=function(t){this.initialSetupDone||tso(this);this.saveRegistered||(this.saveRegistered=!0,F2(this.channel,4).register(3,function(E){var p,U,x;return _.q(function(A){if(A.nextAddress==1){p=_.xC(E.data,JGG,3,hh);if(!p)throw new ax("Unexpectedly nonexistent StorageSave");U=_.th(p,1);x=Dfr(p.getData());return A.yield(t(U,x),2)}var m=E.reply,b=new e8;var f=new B64;f=_.Lq(f,1,U);b=_.zC(b,4,lF,f);m.call(E,b);_.Do(A)})}))};var Eks=function(t){this.channel=t};
Eks.prototype.update=function(t){if(!this.channel.features.has(6))throw new ax("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var E=new e8,p=new wwr;t=_.FU(p,1,t);E=_.zC(E,6,lF,t);this.channel.send(E)};
Eks.prototype.register=function(){F2(this.channel,6)};var pT4=function(t){this.channel=t;this.userActivityLoggingIntervalMs=0};
pT4.prototype.onUserActivity=function(t,E){this.userActivityLoggingIntervalMs=E;F2(this.channel,7).register(9,function(p){if(!_.xC(p.data,Ikm,9,hh))throw new ax("Unexpectedly nonexistent ClickEvent");t()})};var UEr=function(t){var E=this;this.channel=t;this.init=this.channel.init.bind(this.channel);this.page=new vIX(this.channel);this.game=new K64(this.channel);this.audio=new $23(this.channel);this.score=new yGs(this.channel);this.storage=new cGo(this.channel);this.style=new Eks(this.channel);this.userActivity=new pT4(this.channel);oIG(this.channel,function(p){var U=new HBi;p=_.FU(U,1,p);p=_.Ah(p,3,E.userActivity.userActivityLoggingIntervalMs);U=E.audio.isAudioEnabled();U!==void 0&&_.gi(p,2,U);U=new e8;
return _.zC(U,5,lF,p)})};var xEr=function(){this.timedFunctionContext=0};
xEr.prototype.timeExecution=function(t,E){var p=this;return function(){var U=_.t9.apply(0,arguments);p.timedFunctionContext=t;return E.apply(null,_.KB(U))}};var A9r=function(){var t={};this.priorityTasks=(t[3]=[],t[2]=[],t[1]=[],t);this.isFlushing=!1},FW=function(t,E,p){var U=Y2r(t,p);
t.priorityTasks[p].push(E);U&&t.priorityTasks[p].length===1&&t.flush()},Y2r=function(t,E){return Object.keys(t.priorityTasks).map(function(p){return Number(p)}).filter(function(p){return!isNaN(p)&&p>E}).every(function(p){return t.priorityTasks[p].length===0})};
A9r.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(t){return t.length>0});)Mss(this,3),Mss(this,2),Mss(this,1)}catch(t){throw Object.values(this.priorityTasks).forEach(function(E){return void E.splice(0,E.length)}),t;
}finally{this.isFlushing=!1}}};
var Mss=function(t,E){for(;Y2r(t,E)&&t.priorityTasks[E].length>0;)t.priorityTasks[E][0](),t.priorityTasks[E].shift()};
_.aE.Object.defineProperties(A9r.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(t){return t.length>0})}}});var C0Y={};var mEr=globalThis.trustedTypes,B3Y=mEr,RXE;var nt=function(t){this.privateDoNotAccessOrElseWrappedResourceUrl=t};
nt.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var bBG,iBr,q2s,HBr,fo3,B3G,wTG,RXZ;bBG=_.CG([""]);iBr=QT(["\x00"],["\\0"]);q2s=QT(["\n"],["\\n"]);HBr=QT(["\x00"],["\\u0000"]);fo3=_.CG([""]);B3G=QT(["\x00"],["\\0"]);wTG=QT(["\n"],["\\n"]);RXZ=QT(["\x00"],["\\u0000"]);_.Vss=QRj(function(t){return t(bBG)})||QRj(function(t){return t(iBr)})||QRj(function(t){return t(q2s)})||QRj(function(t){return t(HBr)});
_.QRo=_.sS(fo3)&&_.sS(B3G)&&_.sS(wTG)&&_.sS(RXZ);var y$;_.Lt=function(t,E){this.privateDoNotAccessOrElseWrappedUrl=E};
_.Lt.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.C0G=Pw("about:blank");y$=Pw("about:invalid#zClosurez");var jR8=function(t){this.isValid=t},jRp=new jR8(function(t){return/^[^:]*([/?#]|$)/.test(t)}),r9r=Kt("data"),kc4=Kt("http"),dEm=Kt("https"),uQ4=Kt("ftp"),J9X=Kt("mailto"),IoX=Kt("intent"),gko=Kt("vnd.youtube"),r9J=[r9r,
kc4,dEm,J9X,uQ4,jRp],dEL=GC(function(){return typeof URL==="function"}),ZB0=["data:",
"http:","https:","mailto:","ftp:"],J9t=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var U2=function(t){this.privateDoNotAccessOrElseWrappedHtml=t};
U2.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var LnK=GC(function(){return new U2(mEr?mEr.emptyHTML:"")});var OBo={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"},gkj=function(t,E){var p=Error.call(this,t+" cannot be used with intent "+OBo[E]);this.message=p.message;"stack"in p&&(this.stack=p.stack);this.type=t;this.intent=E;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.u(gkj,Error);_.qE=function(t){this.privateDoNotAccessOrElseWrappedScript=t};
_.qE.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var OBj=function(t){this.privateDoNotAccessOrElseWrappedAttributePrefix=t};
OBj.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var XTL="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var CB=function(t){this.privateDoNotAccessOrElseWrappedStyleSheet=t};
CB.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var PAj=function(t){var E=_.ws("window.location.href");t==null&&(t='Unknown Error of type "null/undefined"');if(typeof t==="string")return{message:t,name:"Unknown error",lineNumber:"Not available",fileName:E,stack:"Not available"};var p=!1;try{var U=t.lineNumber||t.line||"Not available"}catch(m){U="Not available",p=!0}try{var x=t.fileName||t.filename||t.sourceURL||_.Ui.$googDebugFname||E}catch(m){x="Not available",p=!0}E=XTm(t);if(!(!p&&t.lineNumber&&t.fileName&&t.stack&&t.message&&t.name)){p=t.message;
if(p==null){if(t.constructor&&t.constructor instanceof Function){if(t.constructor.name)p=t.constructor.name;else if(p=t.constructor,zH[p])p=zH[p];else{p=String(p);if(!zH[p]){var A=/function\s+([^\(]+)/m.exec(p);zH[p]=A?A[1]:"[Anonymous]"}p=zH[p]}p='Unknown Error of type "'+p+'"'}else p="Unknown Error of unknown type";typeof t.toString==="function"&&Object.prototype.toString!==t.toString&&(p+=": "+t.toString())}return{message:p,name:t.name||"UnknownError",lineNumber:U,fileName:x,stack:E||"Not available"}}return{message:t.message,
name:t.name,lineNumber:t.lineNumber,fileName:t.fileName,stack:E}},XTm=function(t,E){E||(E={});
E[hXr(t)]=!0;var p=t.stack||"",U=t.cause;U&&!E[hXr(U)]&&(p+="\nCaused by: ",U.stack&&U.stack.indexOf(U.toString())==0||(p+=typeof U==="string"?U:U.message+"\n"),p+=XTm(U,E));t=t.errors;if(Array.isArray(t)){U=1;var x;for(x=0;x<t.length&&!(U>4);x++)E[hXr(t[x])]||(p+="\nInner error "+U++ +": ",t[x].stack&&t[x].stack.indexOf(t[x].toString())==0||(p+=typeof t[x]==="string"?t[x]:t[x].message+"\n"),p+=XTm(t[x],E));x<t.length&&(p+="\n... "+(t.length-x)+" more inner errors")}return p},hXr=function(t){var E=
"";
typeof t.toString==="function"&&(E=""+t);return E+t.stack},zH={};var aoW,Z3,X0,FEp,zX4,eXp,VC,AZ,Gcs;aoW=function(t,E){for(var p=t.split("%s"),U="",x=Array.prototype.slice.call(arguments,1);x.length&&p.length>1;)U+=p.shift()+x.shift();return U+p.join("%s")};
_.VE=function(t){return encodeURIComponent(String(t))};
Z3=function(t){return decodeURIComponent(t.replace(/\+/g," "))};
X0=function(t){xfr.test(t)&&(t.indexOf("&")!=-1&&(t=t.replace(Si4,"&amp;")),t.indexOf("<")!=-1&&(t=t.replace(cDr,"&lt;")),t.indexOf(">")!=-1&&(t=t.replace(tWr,"&gt;")),t.indexOf('"')!=-1&&(t=t.replace(EmG,"&quot;")),t.indexOf("'")!=-1&&(t=t.replace(ppr,"&#39;")),t.indexOf("\x00")!=-1&&(t=t.replace(Ufp,"&#0;")));return t};
FEp=function(t){var E={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var p=_.Ui.document.createElement("div");return t.replace(eXp,function(U,x){var A=E[U];if(A)return A;x.charAt(0)=="#"&&(x=Number("0"+x.slice(1)),isNaN(x)||(A=String.fromCharCode(x)));A||(_.RR(p,xk(U+" ")),A=p.firstChild.nodeValue.slice(0,-1));return E[U]=A})};
zX4=function(t){return t.replace(/&([^;]+);/g,function(E,p){switch(p){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return p.charAt(0)!="#"||(p=Number("0"+p.slice(1)),isNaN(p))?E:String.fromCharCode(p)}})};
eXp=/&([^;\s<&]+);?/g;_.zSL=function(t){return String(t).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.lo0=String.prototype.repeat?function(t,E){return t.repeat(E)}:function(t,E){return Array(E+1).join(t)};
_.l3=function(t,E){if(!Number.isFinite(t))return String(t);t=String(t);var p=t.indexOf(".");p===-1&&(p=t.length);var U=t[0]==="-"?"-":"";U&&(t=t.substring(1));return U+(0,_.lo0)("0",Math.max(0,E-p))+t};
VC=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.Z1()).toString(36)};
AZ=function(t){for(var E=0,p=0;p<t.length;++p)E=31*E+t.charCodeAt(p)>>>0;return E};
_.Fx=function(t){return String(t).replace(/\-([a-z])/g,function(E,p){return p.toUpperCase()})};
_.ai=function(t){return String(t).replace(/([A-Z])/g,"-$1").toLowerCase()};
Gcs=function(t){return t.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(E,p,U){return p+U.toUpperCase()})};var nkZ=function(){this.names=new Map};
nkZ.prototype.getName=function(t){var E=this.names.get(t);if(E)return E;var p;E=(p=t.description)!=null?p:VC();this.names.set(t,E);return E};var N3s=function(t){var E=Error.call(this,t?t.length+" errors occurred during unsubscription:\n"+t.map(function(p,U){return U+1+") "+p.toString()}).join("\n  "):"");
this.message=E.message;"stack"in E&&(this.stack=E.stack);this.errors=t;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.u(N3s,Error);var r3=function(t){this.initialTeardown=t;this.closed=!1;this._teardowns=this._parentage=null};
_.Y=r3.prototype;
_.Y.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this._parentage;if(Array.isArray(t))for(var E=_.M(t),p=E.next();!p.done;p=E.next())p.value.remove(this);else t==null||t.remove(this);E=this.initialTeardown;if(js(E))try{E()}catch(A){var U=A instanceof N3s?A.errors:[A]}var x=this._teardowns;if(x)for(this._teardowns=null,E=_.M(x),p=E.next();!p.done;p=E.next()){p=p.value;try{js(p)?p():p.unsubscribe()}catch(A){p=void 0,U=(p=U)!=null?p:[],A instanceof N3s?U=[].concat(_.KB(U),_.KB(A.errors)):
U.push(A)}}if(U)throw new N3s(U);}};
_.Y.add=function(t){if(t&&t!==this)if(this.closed)js(t)?t():t.unsubscribe();else{if(t instanceof r3){if(t.closed||t._hasParent(this))return;t._addParent(this)}var E;(this._teardowns=(E=this._teardowns)!=null?E:[]).push(t)}};
_.Y._hasParent=function(t){var E=this._parentage;return E===t||Array.isArray(E)&&E.includes(t)};
_.Y._addParent=function(t){var E=this._parentage;this._parentage=Array.isArray(E)?(E.push(t),E):E?[E,t]:t};
_.Y._removeParent=function(t){var E=this._parentage;E===t?this._parentage=null:Array.isArray(E)&&zXO(E,t)};
_.Y.remove=function(t){var E=this._teardowns;E&&zXO(E,t);t instanceof r3&&t._removeParent(this)};
var DEG=new r3;DEG.closed=!0;r3.JSC$9345_EMPTY=DEG;var Gc0=function(){setTimeout.apply(null,_.KB(_.t9.apply(0,arguments)))};var GH=function(t){r3.call(this);this.JSC$9350_isStopped=!1;this.destination=t instanceof GH?t:new n1(!t||js(t)?{next:t!=null?t:void 0}:t);lo_(t)&&t.add(this)};
_.u(GH,r3);GH.JSC$9345_EMPTY=r3.JSC$9345_EMPTY;GH.create=function(t,E,p){return new Nq(t,E,p)};
_.Y=GH.prototype;_.Y.next=function(t){this.JSC$9350_isStopped||this._next(t)};
_.Y.error=function(t){this.JSC$9350_isStopped||(this.JSC$9350_isStopped=!0,this._error(t))};
_.Y.complete=function(){this.JSC$9350_isStopped||(this.JSC$9350_isStopped=!0,this._complete())};
_.Y.unsubscribe=function(){this.closed||(this.JSC$9350_isStopped=!0,r3.prototype.unsubscribe.call(this))};
_.Y._next=function(t){this.destination.next(t)};
_.Y._error=function(t){this.destination.error(t);this.unsubscribe()};
_.Y._complete=function(){this.destination.complete();this.unsubscribe()};
var n1=function(t){this.partialObserver=t};
n1.prototype.next=function(t){var E=this.partialObserver;if(E.next)try{E.next(t)}catch(p){d3(p)}};
n1.prototype.error=function(t){var E=this.partialObserver;if(E.error)try{E.error(t)}catch(p){d3(p)}else d3(t)};
n1.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(E){d3(E)}};
var Nq=function(t,E,p){GH.call(this);var U;js(t)||!t?U={next:t!=null?t:void 0,error:E!=null?E:void 0,complete:p!=null?p:void 0}:U=t;this.destination=new n1(U)};
_.u(Nq,GH);Nq.JSC$9345_EMPTY=GH.JSC$9345_EMPTY;Nq.create=GH.create;var Zo=typeof Symbol==="function"&&Symbol.observable||"@@observable";var g3=function(t){t&&(this._subscribe=t)};
_.Y=g3.prototype;_.Y.lift=function(t){var E=new g3;E.source=this;E.operator=t;return E};
_.Y.subscribe=function(t,E,p){t=t&&t instanceof GH||t&&js(t.next)&&js(t.error)&&js(t.complete)&&lo_(t)?t:new Nq(t,E,p);E=this.operator;p=this.source;t.add(E?E.call(t,p):p?this._subscribe(t):this._trySubscribe(t));return t};
_.Y._trySubscribe=function(t){try{return this._subscribe(t)}catch(E){t.error(E)}};
_.Y.forEach=function(t,E){var p=this;E=N30(E);return new E(function(U,x){var A=p.subscribe(function(m){try{t(m)}catch(b){x(b),A==null||A.unsubscribe()}},x,U)})};
_.Y._subscribe=function(t){var E;return(E=this.source)==null?void 0:E.subscribe(t)};
g3.prototype[Zo]=function(){return this};
g3.prototype.pipe=function(){var t=_.t9.apply(0,arguments);return t.length?nkE(t)(this):this};
g3.create=function(t){return new g3(t)};var sRW=function(){var t=Error.call(this,"object unsubscribed");this.message=t.message;"stack"in t&&(this.stack=t.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.u(sRW,Error);var hC=function(){this.observers=[];this.hasError=this.JSC$9366_isStopped=this.closed=!1;this.thrownError=null};
_.u(hC,g3);_.Y=hC.prototype;_.Y.lift=function(t){var E=new Dy(this,this);E.operator=t;return E};
_.Y._throwIfClosed=function(){if(this.closed)throw new sRW;};
_.Y.next=function(t){this._throwIfClosed();if(!this.JSC$9366_isStopped){var E=this.observers.slice();E=_.M(E);for(var p=E.next();!p.done;p=E.next())p.value.next(t)}};
_.Y.error=function(t){this._throwIfClosed();if(!this.JSC$9366_isStopped){this.hasError=this.JSC$9366_isStopped=!0;this.thrownError=t;for(var E=this.observers;E.length;)E.shift().error(t)}};
_.Y.complete=function(){this._throwIfClosed();if(!this.JSC$9366_isStopped){this.JSC$9366_isStopped=!0;for(var t=this.observers;t.length;)t.shift().complete()}};
_.Y.unsubscribe=function(){this.JSC$9366_isStopped=this.closed=!0;this.observers=null};
_.Y._trySubscribe=function(t){this._throwIfClosed();return g3.prototype._trySubscribe.call(this,t)};
_.Y._subscribe=function(t){this._throwIfClosed();this._checkFinalizedStatuses(t);return this._innerSubscribe(t)};
_.Y._innerSubscribe=function(t){var E=this,p=this.JSC$9366_isStopped,U=this.observers;return this.hasError||p?r3.JSC$9345_EMPTY:(U.push(t),new r3(function(){return zXO(E.observers,t)}))};
_.Y._checkFinalizedStatuses=function(t){var E=this.thrownError,p=this.JSC$9366_isStopped;this.hasError?t.error(E):p&&t.complete()};
hC.create=function(t,E){return new Dy(t,E)};
var Dy=function(t,E){hC.call(this);this.destination=t;this.source=E};
_.u(Dy,hC);Dy.create=hC.create;Dy.prototype.next=function(t){var E,p;(E=this.destination)==null||(p=E.next)==null||p.call(E,t)};
Dy.prototype.error=function(t){var E,p;(E=this.destination)==null||(p=E.error)==null||p.call(E,t)};
Dy.prototype.complete=function(){var t,E;(t=this.destination)==null||(E=t.complete)==null||E.call(t)};
Dy.prototype._subscribe=function(t){var E,p;return(p=(E=this.source)==null?void 0:E.subscribe(t))!=null?p:r3.JSC$9345_EMPTY};var Ag=function(t){hC.call(this);this._value=t};
_.u(Ag,hC);Ag.create=hC.create;Ag.prototype._subscribe=function(t){var E=hC.prototype._subscribe.call(this,t);!E.closed&&t.next(this._value);return E};
Ag.prototype.getValue=function(){var t=this.thrownError,E=this._value;if(this.hasError)throw t;this._throwIfClosed();return E};
Ag.prototype.next=function(t){hC.prototype.next.call(this,this._value=t)};
_.aE.Object.defineProperties(Ag.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var E8=new g3(function(t){return t.complete()});var P0O=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var KEO=function(t){return t&&typeof t.length==="number"&&typeof t!=="function"};var LEZ={now:function(){return(LEZ.delegate||Date).now()},
delegate:void 0};var Rh=function(t,E,p){t=t===void 0?Infinity:t;E=E===void 0?Infinity:E;p=p===void 0?LEZ:p;hC.call(this);this.bufferSize=t;this.windowTime=E;this.timestampProvider=p;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=E===Infinity;this.bufferSize=Math.max(1,t);this.windowTime=Math.max(1,E)};
_.u(Rh,hC);Rh.create=hC.create;Rh.prototype.next=function(t){var E=this.buffer,p=this.infiniteTimeWindow,U=this.timestampProvider,x=this.windowTime;this.JSC$9366_isStopped||(E.push(t),!p&&E.push(U.now()+x));P0s(this);hC.prototype.next.call(this,t)};
Rh.prototype._subscribe=function(t){this._throwIfClosed();P0s(this);for(var E=this._innerSubscribe(t),p=this.infiniteTimeWindow,U=this.buffer.slice(),x=0;x<U.length&&!t.closed;x+=p?1:2)t.next(U[x]);this._checkFinalizedStatuses(t);return E};
var P0s=function(t){var E=t.bufferSize,p=t.timestampProvider,U=t.buffer;t=t.infiniteTimeWindow;var x=(t?1:2)*E;E<Infinity&&x<U.length&&U.splice(0,U.length-x);if(!t){E=p.now();p=0;for(t=1;t<U.length&&U[t]<=E;t+=2)p=t;p&&U.splice(0,p+1)}};var okm=function(t,E){E=E===void 0?T34:E;this.schedulerActionCtor=t;this.now=E};
okm.prototype.schedule=function(t,E,p){E=E===void 0?0:E;return(new this.schedulerActionCtor(this,t)).schedule(p,E)};
var T34=LEZ.now;var DXL=function(){var t=Error.call(this,"no elements in sequence");this.message=t.message;"stack"in t&&(this.stack=t.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.u(DXL,Error);var oR=function(t,E,p,U,x){GH.call(this,t);this.onUnsubscribe=x;E&&(this._next=function(A){try{E(A)}catch(m){this.destination.error(m)}});
p&&(this._error=function(A){try{p(A)}catch(m){this.destination.error(m)}this.unsubscribe()});
U&&(this._complete=function(){try{U()}catch(A){this.destination.error(A)}this.unsubscribe()})};
_.u(oR,GH);oR.JSC$9345_EMPTY=GH.JSC$9345_EMPTY;oR.create=GH.create;oR.prototype.unsubscribe=function(){var t;this.closed||(t=this.onUnsubscribe)!=null&&t.call(this);GH.prototype.unsubscribe.call(this)};var Bx=function(t,E){this.source=t;this.subjectFactory=E;this._subject=null;this._refCount=0;this._connection=null};
_.u(Bx,g3);Bx.create=g3.create;Bx.prototype._subscribe=function(t){return WEf(this).subscribe(t)};
var WEf=function(t){var E=t._subject;if(!E||E.JSC$9366_isStopped)t._subject=t.subjectFactory();return t._subject};
Bx.prototype._teardown=function(){this._refCount=0;var t=this._connection;this._subject=this._connection=null;t==null||t.unsubscribe()};
Bx.prototype.connect=function(){var t=this,E=this._connection;if(!E){E=this._connection=new r3;var p=WEf(this);E.add(this.source.subscribe(new oR(p,void 0,function(U){t._teardown();p.error(U)},function(){t._teardown();
p.complete()},function(){return t._teardown()})));
E.closed&&(this._connection=null,E=r3.JSC$9345_EMPTY)}return E};var M2J=Array.isArray;var bq$=Array.isArray,$Es=Object,iqO=$Es.getPrototypeOf,q80=$Es.prototype,HqO=$Es.keys;var yU=function(t,E,p){GH.call(this,t);this._next=E;this.shouldComplete=p};
_.u(yU,GH);yU.JSC$9345_EMPTY=GH.JSC$9345_EMPTY;yU.create=GH.create;yU.prototype._complete=function(){this.shouldComplete()?GH.prototype._complete.call(this):this.unsubscribe()};var rCJ=["addListener","removeListener"],jhj=["addEventListener","removeEventListener"],dXj=["on","off"];var st=function(){r3.call(this)};
_.u(st,r3);st.JSC$9345_EMPTY=r3.JSC$9345_EMPTY;st.prototype.schedule=function(){return this};var KE4=function(t,E){return setInterval.apply(null,[t,E].concat(_.KB(_.t9.apply(2,arguments))))};var L1=function(t,E){r3.call(this);this.scheduler=t;this.work=E;this.pending=!1};
_.u(L1,st);L1.JSC$9345_EMPTY=st.JSC$9345_EMPTY;L1.prototype.schedule=function(t,E){E=E===void 0?0:E;if(this.closed)return this;this.state=t;t=this.id;var p=this.scheduler;t!=null&&(this.id=vkr(this,t,E));this.pending=!0;this.delay=E;this.id=this.id||this.requestAsyncId(p,this.id,E);return this};
L1.prototype.requestAsyncId=function(t,E,p){p=p===void 0?0:p;return KE4(t.flush.bind(t,this),p)};
var vkr=function(t,E,p){p=p===void 0?0:p;if(p!=null&&t.delay===p&&t.pending===!1)return E;clearInterval(E)};
L1.prototype.execute=function(t,E){if(this.closed)return Error("ha");this.pending=!1;if(t=this._execute(t,E))return t;this.pending===!1&&this.id!=null&&(this.id=vkr(this,this.id,null))};
L1.prototype._execute=function(t){var E=!1;try{this.work(t)}catch(U){E=!0;var p=!!U&&U||Error(U)}if(E)return this.unsubscribe(),p};
L1.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,E=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;zXO(E,this);t!=null&&(this.id=vkr(this,t,null));this.delay=null;st.prototype.unsubscribe.call(this)}};var y9s=function(t,E){E=E===void 0?T34:E;okm.call(this,t,E);this.actions=[];this.active=!1;this.scheduled=void 0};
_.u(y9s,okm);y9s.prototype.flush=function(t){var E=this.actions;if(this.active)E.push(t);else{var p;this.active=!0;do if(p=t.execute(t.state,t.delay))break;while(t=E.shift());this.active=!1;if(p){for(;t=E.shift();)t.unsubscribe();throw p;}}};var oh=new g3(kk);var uWE=Array.isArray;var Pq=function(t,E){L1.call(this,t,E);this.scheduler=t;this.work=E};
_.u(Pq,L1);Pq.JSC$9345_EMPTY=L1.JSC$9345_EMPTY;Pq.prototype.schedule=function(t,E){E=E===void 0?0:E;if(E>0)return L1.prototype.schedule.call(this,t,E);this.delay=E;this.state=t;this.scheduler.flush(this);return this};
Pq.prototype.execute=function(t,E){return E>0||this.closed?L1.prototype.execute.call(this,t,E):this._execute(t,E)};
Pq.prototype.requestAsyncId=function(t,E,p){p=p===void 0?0:p;return p!=null&&p>0||p==null&&this.delay>0?L1.prototype.requestAsyncId.call(this,t,E,p):t.flush(this)};var S2X=function(){y9s.apply(this,arguments)};
_.u(S2X,y9s);var AC$=new S2X(Pq);var c9o=function(){this.performanceMonitor=new xEr;this.queue=new A9r;this.internalSymbol=Symbol();this.debugNames=new nkZ};
c9o.prototype.getOnBackgrounded=function(){return oh};
_.aE.Object.defineProperties(c9o.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var TH=function(t,E){E=Error.call(this,E?t+": "+E:String(t));this.message=E.message;"stack"in E&&(this.stack=E.stack);this.code=t;this.__proto__=TH.prototype;this.name=String(t)};
_.u(TH,Error);var Wx=function(t){TH.call(this,1E3,'sfr:"'+t+'"');this.measurementStrategyFailureReason=t;this.__proto__=Wx.prototype};
_.u(Wx,TH);var $s=function(){TH.call(this,1003);this.__proto__=$s.prototype};
_.u($s,TH);var ox=function(){TH.call(this,1009);this.__proto__=ox.prototype};
_.u(ox,TH);var t24=function(){TH.call(this,1011);this.__proto__=t24.prototype};
_.u(t24,TH);var Esp=function(){TH.call(this,1007);this.__proto__=$s.prototype};
_.u(Esp,TH);var Px=function(t){TH.call(this,1004,String(t));this.inputObservableIndex=t;this.__proto__=Px.prototype};
_.u(Px,TH);var bN$=function(t){TH.call(this,1010,t);this.__proto__=iNY.prototype};
_.u(bN$,TH);var iNY=function(t){TH.call(this,1005,t);this.__proto__=iNY.prototype};
_.u(iNY,TH);var pxf=function(t){var E=_.t9.apply(1,arguments),p=this;this.orderedFactories=[];this.orderedFactories.push(t);E.forEach(function(U){p.orderedFactories.push(U)})};
pxf.prototype.isSupported=function(t){return this.orderedFactories.some(function(E){return E.isSupported(t)})};
pxf.prototype.makeBeacon=function(t,E){for(var p=0;p<this.orderedFactories.length;p++)if(this.orderedFactories[p].isSupported(E))return this.orderedFactories[p].makeBeacon(t,E);throw new ox;};var SJ8=Symbol("ia"),UXp=Symbol("ja"),AC=function(t,E){this.value=t;this.timeline=E},xs=function(t,E){if(E.timeline!==t.timeline)throw new Esp;
return t.value-E.value};
_.Y=AC.prototype;_.Y.equals=function(t){return xs(this,t)===0};
_.Y.maximum=function(t){if(t.timeline!==this.timeline)throw new Esp;return this.value>=t.value?this:t};
_.Y.round=function(){return new AC(Math.round(this.value),this.timeline)};
_.Y.add=function(t){return new AC(this.value+t,this.timeline)};
_.Y.toString=function(){return String(this.value)};var Wq=function(t,E){this.context=t;this.JSC$9472_pinger=E};
Wq.prototype.isSupported=function(t){return this.JSC$9472_pinger.isSupported(t)};
Wq.prototype.makeBeacon=function(t,E){if(!this.isSupported(E))throw new ox;return new $C(this.context,this.JSC$9472_pinger,E!=null?E:void 0,t)};
var $C=function(t,E,p,U){var x=this;this.JSC$9478_pinger=E;this.properties=p;this.url=U;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var A;this.method=(A=p==null?void 0:p.beaconMethod)!=null?A:"GET";this.backgroundedSubscription=t.getOnBackgrounded().subscribe(function(){x.sendNow()})};
$C.prototype.deactivate=function(){this.internalIsPending=!1};
$C.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9478_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var t,E;this.JSC$9478_pinger.pingWithHeadersAndBody((t=this.properties)!=null?t:{},this.customHeaders,(E=this.body)!=null?E:"",this.url)}else this.JSC$9478_pinger.ping(this.url);this.internalIsPending=!1}catch(p){}else this.internalIsPending=!1};
$C.prototype.setHeader=function(t,E){this.customHeaders.set(t,E)};
_.aE.Object.defineProperties($C.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var ACW=function(){for(var t=_.M(_.t9.apply(0,arguments)),E=t.next();!E.done;E=t.next())if(E=E.value,E.available()){this.timeProvider=E;return}this.timeProvider=new xXs};
_.Y=ACW.prototype;_.Y.available=function(){return this.timeProvider.available()};
_.Y.now=function(){return this.timeProvider.now()};
_.Y.setTimeout=function(t,E){return this.timeProvider.setTimeout(t,E)};
_.Y.clearTimeout=function(t){this.timeProvider.clearTimeout(t)};
_.Y.interval=function(t,E){var p=this.intervalObservable(t).subscribe(E);return function(){return void p.unsubscribe()}};
_.Y.intervalObservable=function(t){return this.timeProvider.intervalObservable(t)};
_.aE.Object.defineProperties(ACW.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var xXs=function(){this.timeline=Symbol()};
_.Y=xXs.prototype;_.Y.available=function(){return!1};
_.Y.now=function(){return new AC(0,this.timeline)};
_.Y.setTimeout=function(){return 0};
_.Y.clearTimeout=function(){};
_.Y.interval=function(){return function(){}};
_.Y.intervalObservable=function(){return oh};var K1=function(t,E){this.intrinsicFunctionNamespace=t;this.performanceMonitor=E};
_.Y=K1.prototype;_.Y.setTimeout=function(t,E){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,t),E)};
_.Y.clearTimeout=function(t){this.intrinsicFunctionNamespace.clearTimeout(t)};
_.Y.interval=function(t,E){var p=this.intervalObservable(t).subscribe(E);return function(){return void p.unsubscribe()}};
_.Y.intervalObservable=function(t){var E=this;return new g3(function(p){var U=0,x=E.intrinsicFunctionNamespace.setInterval(function(){p.next(U++)},t);
return function(){E.intrinsicFunctionNamespace.clearInterval(x)}})};
_.Y.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var Y8m=function(t,E){K1.call(this,t,E);this.timeline=UXp};
_.u(Y8m,K1);Y8m.prototype.now=function(){return new AC(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
Y8m.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&K1.prototype.available.call(this)};var M2r=function(t,E){K1.call(this,t,E);this.timeline=SJ8};
_.u(M2r,K1);M2r.prototype.now=function(){return new AC(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
M2r.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&K1.prototype.available.call(this)};var bqW=function(t){this.context=t;if(mXX===void 0)a:{var E,p,U=(E=t.global)==null?void 0:(p=E.document)==null?void 0:p.createElement("meta");if(U)try{U.httpEquiv="origin-trial";U.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";t.global.document.head.append(U);mXX=U;break a}catch(x){}mXX=void 0}},
mXX;
bqW.prototype.isSupported=function(t){return Fi_(this.context)!==void 0&&!(t==null||!t.endOfSession)&&!vq(this.context)&&!(t==null?0:t.attributionEnabled)&&!(t==null?0:t.customHeaders)&&!(t==null?0:t.customBody)};
bqW.prototype.makeBeacon=function(t,E){if(!this.isSupported(E))throw new ox;return new yg(this.context,t,E)};
var yg=function(t,E,p){this.context=t;this.properties=p;this.JSC$9505_urlWithoutToken=E;var U;this.beaconMethod=(U=p==null?void 0:p.beaconMethod)!=null?U:"GET";t=Fi_(this.context);if(t===void 0)throw Error();this.fetchLater=t;iqs(this,q8s(this))},iqs=function(t,E){t.beaconResult&&t.beaconResult.activated||(t.beaconAbort=new AbortController,t.beaconResult=t.fetchLater(E,{method:t.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:t.beaconAbort.signal,activateAfter:96E4}))},q8s=function(t){t=t.JSC$9505_urlWithoutToken;
return(t.slice(-1)[0]==="&"?t:t+"&")+"flapi=1"};
yg.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
yg.prototype.sendNow=function(){};
yg.prototype.setHeader=function(){};
_.aE.Object.defineProperties(yg.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9505_urlWithoutToken},
set:function(t){this.JSC$9505_urlWithoutToken=t;t=q8s(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);iqs(this,t)}},
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 Hq4=function(t){this.context=t};
Hq4.prototype.isSupported=function(){return!vq(this.context)&&!!this.context.global.fetch};
Hq4.prototype.ping=function(){var t=this;return pq.apply(null,_.KB(_.t9.apply(0,arguments).map(function(E){return XQ(t.context.global.fetch(E,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe($k(function(p){return p.status===200}))}))).pipe(sh8(function(E){return E}),PgY())};
Hq4.prototype.pingWithHeadersAndBody=function(t,E,p){for(var U=_.t9.apply(3,arguments),x=this,A=new Headers,m=_.M(E.entries()),b=m.next();!b.done;b=m.next()){var f=_.M(b.value);b=f.next().value;f=f.next().value;A.set(b,f)}var B,R=(B=t.keepAlive)!=null?B:!1;pq.apply(null,_.KB(U.map(function(V){return XQ(x.context.global.fetch(V,Object.assign({},{method:String(t.beaconMethod),cache:"no-cache"},R?{keepalive:!0}:{},{mode:"no-cors",headers:A,body:p}))).pipe($k(function(Q){return Q.status===200}))}))).pipe(sh8(function(V){return V}),
PgY())};var f_G,iIO,BgZ;_.SM=function(){};
_.a0=function(t){return t};
f_G=function(t){var E=E||0;return function(){return t.apply(this,Array.prototype.slice.call(arguments,0,E))}};
_.cq=function(t){var E=!1,p;return function(){E||(p=t(),E=!0);return p}};
_.tI=function(t,E){var p=0;return function(U){_.Ui.clearTimeout(p);var x=arguments;p=_.Ui.setTimeout(function(){t.apply(void 0,x)},E)}};
iIO=function(t,E){var p=0,U=!1,x=[],A=function(){p=0;U&&(U=!1,m())},m=function(){p=_.Ui.setTimeout(A,E);
var b=x;x=[];t.apply(void 0,b)};
return function(b){x=arguments;p?U=!0:m()}};
BgZ=function(t,E){var p=0,U=function(){p=0};
return function(x){p||(p=_.Ui.setTimeout(U,E),t.apply(void 0,arguments))}};var Ek=function(t,E,p,U,x){this.allowedElements=t;this.elementPolicies=E;this.allowedGlobalAttributes=p;this.globalAttributePolicies=U;this.globallyAllowedAttributePrefixes=x},wxp=function(t,E,p){p=t.elementPolicies.get(p);
return(p==null?0:p.has(E))?p.get(E):t.allowedGlobalAttributes.has(E)?{policyAction:1}:(p=t.globalAttributePolicies.get(E))?p:t.globallyAllowedAttributePrefixes&&[].concat(_.KB(t.globallyAllowedAttributePrefixes)).some(function(U){return E.indexOf(U)===0})?{policyAction:1}:{policyAction:0}};var Rt4="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(" "),
V2G=[["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}]])]],Qhr="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(" "),
Cgs=[["dir",{policyAction:3,conditions:GC(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:GC(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:GC(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:GC(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],jho=new Ek(new Set(Rt4),new Map(V2G),new Set(Qhr),new Map(Cgs)),rCr=new Ek(new Set(Rt4.concat(["BUTTON",
"INPUT"])),new Map(V2G),new Set(GC(function(){return Qhr.concat(["class","id","name"])})),new Map(GC(function(){return Cgs.concat([["style",
{policyAction:1}]])})));var kJf,dXo,JC4;kJf=function(t,E,p,U,x){this.JSC$9562_sanitizerTable=t;this.styleElementSanitizer=E;this.styleAttributeSanitizer=p;this.JSC$9562_resourceUrlPolicy=U;this.JSC$9562_navigationUrlPolicy=x;this.changes=[]};
_.uWZ=function(t,E){var p=document.implementation.createHTMLDocument("");t=dXo(t,E,p);p=p.body;p.appendChild(t);p=(new XMLSerializer).serializeToString(p);p=p.slice(p.indexOf(">")+1,p.lastIndexOf("</"));return xk(p)};
dXo=function(t,E,p){E=pQ_(E,p);E=document.createTreeWalker(E,5,function(b){if(b.nodeType===3)b=1;else if(xy0(b))if(b=Uyt(b),b===null)b=2;else{var f=t.JSC$9562_sanitizerTable;b=b!=="FORM"&&(f.allowedElements.has(b)||f.elementPolicies.has(b))?1:2}else b=2;return b});
for(var U=E.nextNode(),x=p.createDocumentFragment(),A=x;U!==null;){var m=void 0;if(U.nodeType===3)t.styleElementSanitizer&&A.nodeName==="STYLE"?(U=t.styleElementSanitizer(U.data),m=t.createTextNode(U)):m=t.createTextNode(U.data);else if(xy0(U))m=JC4(t,U,p);else throw Error("Z");A.appendChild(m);if(U=E.firstChild())A=m;else for(;!(U=E.nextSibling())&&(U=E.parentNode());)A=A.parentNode}return x};
kJf.prototype.createTextNode=function(t){return document.createTextNode(t)};
JC4=function(t,E,p){var U,x=Uyt(E);p=p.createElement(x);E=E.attributes;for(var A=_.M(E),m=A.next();!m.done;m=A.next()){var b=m.value;m=b.name;b=b.value;var f=wxp(t.JSC$9562_sanitizerTable,m,x);a:{if(U=f.conditions){U=_.M(U);for(var B=U.next();!B.done;B=U.next()){var R=_.M(B.value);B=R.next().value;R=R.next().value;var V=void 0;if((B=(V=E.getNamedItem(B))==null?void 0:V.value)&&!R.has(B)){U=!1;break a}}}U=!0}if(U)switch(f.policyAction){case 1:ug(p,m,b);break;case 2:throw Error();case 3:ug(p,m,b.toLowerCase());
break;case 4:t.styleAttributeSanitizer?(b=t.styleAttributeSanitizer(b),ug(p,m,b)):ug(p,m,b);break;case 5:t.JSC$9562_resourceUrlPolicy?(f={type:2,attributeName:m,elementName:x},b=EW8(b),(b=t.JSC$9562_resourceUrlPolicy(b,f))&&ug(p,m,b.toString())):ug(p,m,b);break;case 6:if(t.JSC$9562_resourceUrlPolicy){f={type:2,attributeName:m,elementName:x};U=[];b=_.M(b.split(","));for(B=b.next();!B.done;B=b.next())R=_.M(B.value.trim().split(/\s+/,2)),B=R.next().value,R=R.next().value,U.push({url:B,descriptor:R});
b={parts:[]};U=_.M(U);for(B=U.next();!B.done;B=U.next())B=B.value,R=EW8(B.url),(R=t.JSC$9562_resourceUrlPolicy(R,f))&&b.parts.push({url:R.toString(),descriptor:B.descriptor});ug(p,m,Ag0(b))}else ug(p,m,b);break;case 7:f=b;if(t.JSC$9562_navigationUrlPolicy){f={type:2,attributeName:m,elementName:x};b=EW8(b);b=t.JSC$9562_navigationUrlPolicy(b,f);if(b===null)break;f=b.toString()}b=f;f=_.uQO(b);f=f!==void 0&&ZB0.indexOf(f.toLowerCase())!==-1?b:"about:invalid#zClosurez";ug(p,m,f)}}return p};
_.I_r=GC(function(){return new kJf(jho)});
_.gsr=GC(function(){return new kJf(rCr)});var Zqr=function(){this.calledBuild=!1;this.JSC$9574_sanitizerTable=jho},OqG=function(){Zqr.apply(this,arguments)};
_.u(OqG,Zqr);OqG.prototype.build=function(){if(this.calledBuild)throw Error("la");this.calledBuild=!0;return new kJf(this.JSC$9574_sanitizerTable,void 0,void 0,this.JSC$9574_resourceUrlPolicy,this.JSC$9574_navigationUrlPolicy)};var Xxs=/[^#]*/;var Wi8={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"},ht3=_.cq(function(){return Ki_()}),
etm=function(){var t=a_0("IFRAME"),E={};
_.QE(ht3(),function(p){t.sandbox&&t.sandbox.supports&&t.sandbox.supports(p)&&(E[p]=!0)});
return E},a_0=function(t,E){E=E===void 0?document:E;
return E.createElement(String(t).toLowerCase())};var pu;_.Ay=function(t,E,p){return Math.min(Math.max(t,E),p)};
pu=function(t,E,p){return t+p*(E-t)};_.Y=_.gg.prototype;_.Y.clone=function(){return new _.gg(this.x,this.y)};
_.Y.equals=function(t){return t instanceof _.gg&&(this==t?!0:this&&t?this.x==t.x&&this.y==t.y:!1)};
_.Y.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.Y.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.Y.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.Y.translate=function(t,E){t instanceof _.gg?(this.x+=t.x,this.y+=t.y):(this.x+=Number(t),typeof E==="number"&&(this.y+=E));return this};
_.Y.scale=function(t,E){this.x*=t;this.y*=typeof E==="number"?E:t;return this};_.nq=function(t,E){this.width=t;this.height=E};
_.Y=_.nq.prototype;_.Y.clone=function(){return new _.nq(this.width,this.height)};
_.Y.area=function(){return this.width*this.height};
_.Y.aspectRatio=function(){return this.width/this.height};
_.Y.isEmpty=function(){return!this.area()};
_.Y.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.Y.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.Y.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.Y.scale=function(t,E){this.width*=t;this.height*=typeof E==="number"?E:t;return this};var Fi0;_.Kq={};Fi0="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.Kq.add=function(t,E,p){if(t!==null&&E in t)throw Error("na`"+E);t[E]=p};
_.Kq.clear=function(t){for(var E in t)delete t[E]};
_.Kq.clone=function(t){var E={},p;for(p in t)E[p]=t[p];return E};
_.Kq.contains=function(t,E){return igO(t,E)};
_.Kq.containsKey=function(t,E){return t!==null&&E in t};
_.Kq.containsValue=igO;_.Kq.create=fPj;_.Kq.createImmutableView=function(t){var E=t;Object.isFrozen&&!Object.isFrozen(t)&&(E=Object.create(t),Object.freeze(E));return E};
_.Kq.createSet=BiE;_.Kq.equals=function(t,E){for(var p in t)if(!(p in E)||t[p]!==E[p])return!1;for(var U in E)if(!(U in t))return!1;return!0};
_.Kq.every=function(t,E,p){for(var U in t)if(!E.call(p,t[U],U,t))return!1;return!0};
_.Kq.extend=function(t,E){for(var p,U,x=1;x<arguments.length;x++){U=arguments[x];for(p in U)t[p]=U[p];for(var A=0;A<Fi0.length;A++)p=Fi0[A],Object.prototype.hasOwnProperty.call(U,p)&&(t[p]=U[p])}};
_.Kq.filter=function(t,E,p){var U={},x;for(x in t)E.call(p,t[x],x,t)&&(U[x]=t[x]);return U};
_.Kq.findKey=qhJ;_.Kq.findValue=function(t,E,p){return(E=qhJ(t,E,p))&&t[E]};
_.Kq.forEach=function(t,E,p){for(var U in t)E.call(p,t[U],U,t)};
_.Kq.get=function(t,E,p){return t!==null&&E in t?t[E]:p};
_.Kq.getAllPropertyNames=function(t,E,p){if(!t)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return bgK(t);for(var U={};t&&(t!==Object.prototype||E)&&(t!==Function.prototype||p);){for(var x=Object.getOwnPropertyNames(t),A=0;A<x.length;A++)U[x[A]]=!0;t=Object.getPrototypeOf(t)}return bgK(U)};
_.Kq.getAnyKey=function(t){for(var E in t)return E};
_.Kq.getAnyValue=function(t){for(var E in t)return t[E]};
_.Kq.getCount=function(t){var E=0,p;for(p in t)E++;return E};
_.Kq.getKeys=bgK;_.Kq.getSuperClass=function(t){return(t=Object.getPrototypeOf(t.prototype))&&t.constructor};
_.Kq.getValueByKeys=function(t,E){var p=_.LO(E),U=p?E:arguments;for(p=p?0:1;p<U.length;p++){if(t==null)return;t=t[U[p]]}return t};
_.Kq.getValues=function(t){var E=[],p=0,U;for(U in t)E[p++]=t[U];return E};
_.Kq.isEmpty=function(t){for(var E in t)return!1;return!0};
_.Kq.isImmutableView=function(t){return!!Object.isFrozen&&Object.isFrozen(t)};
_.Kq.map=function(t,E,p){var U={},x;for(x in t)U[x]=E.call(p,t[x],x,t);return U};
_.Kq.remove=function(t,E){var p;(p=E in t)&&delete t[E];return p};
_.Kq.set=function(t,E,p){t[E]=p};
_.Kq.setIfUndefined=function(t,E,p){return E in t?t[E]:t[E]=p};
_.Kq.setWithReturnValueIfNotSet=function(t,E,p){if(E in t)return t[E];p=p();return t[E]=p};
_.Kq.some=function(t,E,p){for(var U in t)if(E.call(p,t[U],U,t))return!0;return!1};
_.Kq.transpose=function(t){var E={},p;for(p in t)E[t[p]]=p;return E};
_.Kq.unsafeClone=Hg8;var fW=function(t,E){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=t===W8E&&E||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=ztG};
fW.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var l_p=function(t){return t instanceof fW&&t.constructor===fW&&t.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===ztG?t.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},ztG={},W8E={};
new fW(W8E,"");var s8,Ny,xM,GJf,DXm,Ngr,yX,LiW,Tg3,PgG,mS,os3,CkY,S8f,yC4,cCr,td0,EWp,pQ0,Hy$,UyX,Ags,Yhf,xys,Uk;s8=function(t){return t?new Uk(_.S2(t)):WJr||(WJr=new Uk)};
_.uA=function(t,E){return typeof E==="string"?t.getElementById(E):E};
Ny=function(t,E){return(E||document).getElementsByTagName(String(t))};
_.nsX=function(t){return GJf("yt-formatted-string","paper-input-input",t)};
xM=function(t,E,p,U){t=U||t;return(E=E&&E!="*"?String(E).toUpperCase():"")||p?t.querySelectorAll(E+(p?"."+p:"")):t.getElementsByTagName("*")};
GJf=function(t,E,p){var U=document,x=t&&t!="*"?String(t).toUpperCase():"";return x||E?(p||U).querySelector(x+(E?"."+E:"")):xM(U,t,E,p)[0]||null};
DXm=function(t,E){_.Kq.forEach(E,function(p,U){U=="style"?t.style.cssText=p:U=="class"?t.className=p:U=="for"?t.htmlFor=p:Ngr.hasOwnProperty(U)?t.setAttribute(Ngr[U],p):_.AD(U,"aria-")||_.AD(U,"data-")?t.setAttribute(U,p):t[U]=p})};
Ngr={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"};_.NX=function(t){t=(t||window).document;t=t.compatMode=="CSS1Compat"?t.documentElement:t.body;return new _.nq(t.clientWidth,t.clientHeight)};
_.shp=function(t){var E=_.AI(t);t=t.defaultView;return new _.gg((t==null?void 0:t.pageXOffset)||E.scrollLeft,(t==null?void 0:t.pageYOffset)||E.scrollTop)};
_.AI=function(t){return t.scrollingElement?t.scrollingElement:_.no||t.compatMode!="CSS1Compat"?t.body||t.documentElement:t.documentElement};
yX=function(t){return t?t.defaultView:window};
_.YM=function(t,E,p){return LiW(document,arguments)};
LiW=function(t,E){var p=E[1],U=PgG(t,String(E[0]));p&&(typeof p==="string"?U.className=p:Array.isArray(p)?U.className=p.join(" "):DXm(U,p));E.length>2&&Tg3(t,U,E,2);return U};
Tg3=function(t,E,p,U){function x(b){b&&E.appendChild(typeof b==="string"?t.createTextNode(b):b)}
for(;U<p.length;U++){var A=p[U];if(!_.LO(A)||_.o0(A)&&A.nodeType>0)x(A);else{a:{if(A&&typeof A.length=="number"){if(_.o0(A)){var m=typeof A.item=="function"||typeof A.item=="string";break a}if(typeof A==="function"){m=typeof A.item=="function";break a}}m=!1}_.QE(m?_.Dl(A):A,x)}}};
_.Gg=function(t){return PgG(document,t)};
PgG=function(t,E){E=String(E);t.contentType==="application/xhtml+xml"&&(E=E.toLowerCase());return t.createElement(E)};
_.Mh=function(){return document.createTextNode("\n")};
mS=function(t){if(t.nodeType!=1)return!1;switch(t.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};
os3=function(t,E){Tg3(_.S2(t),t,arguments,1)};
_.bk=function(t){for(var E;E=t.firstChild;)t.removeChild(E)};
_.ik=function(t,E){E.parentNode&&E.parentNode.insertBefore(t,E)};
_.qh=function(t,E){E.parentNode&&E.parentNode.insertBefore(t,E.nextSibling)};
_.ng=function(t){return t&&t.parentNode?t.parentNode.removeChild(t):null};
_.Wip=function(t,E){var p=E.parentNode;p&&p.replaceChild(t,E)};
_.$XT=function(t){var E,p=t.parentNode;if(p&&p.nodeType!=11)if(t.removeNode)t.removeNode(!1);else{for(;E=t.firstChild;)p.insertBefore(E,t);_.ng(t)}};
_.Hf=function(t){return t.children!=void 0?t.children:Array.prototype.filter.call(t.childNodes,function(E){return E.nodeType==1})};
_.vs0=function(t){return t.nextElementSibling!==void 0?t.nextElementSibling:_.Ki0(t.nextSibling,!0)};
_.Ki0=function(t,E){for(;t&&t.nodeType!=1;)t=E?t.nextSibling:t.previousSibling;return t};
_.Ic=function(t){return _.o0(t)&&t.nodeType==1};
_.wV=function(t,E){if(!t||!E)return!1;if(t.contains&&E.nodeType==1)return t==E||t.contains(E);if(typeof t.compareDocumentPosition!="undefined")return t==E||!!(t.compareDocumentPosition(E)&16);for(;E&&t!=E;)E=E.parentNode;return E==t};
CkY=function(t,E){if(t==E)return 0;if(t.compareDocumentPosition)return t.compareDocumentPosition(E)&2?1:-1;if("sourceIndex"in t||t.parentNode&&"sourceIndex"in t.parentNode){var p=t.nodeType==1,U=E.nodeType==1;if(p&&U)return t.sourceIndex-E.sourceIndex;var x=t.parentNode,A=E.parentNode;return x==A?yC4(t,E):!p&&_.wV(x,E)?-1*S8f(t,E):!U&&_.wV(A,t)?S8f(E,t):(p?t.sourceIndex:x.sourceIndex)-(U?E.sourceIndex:A.sourceIndex)}U=_.S2(t);p=U.createRange();p.selectNode(t);p.collapse(!0);t=U.createRange();t.selectNode(E);
t.collapse(!0);return p.compareBoundaryPoints(_.Ui.Range.START_TO_END,t)};
S8f=function(t,E){var p=t.parentNode;if(p==E)return-1;for(;E.parentNode!=p;)E=E.parentNode;return yC4(E,t)};
yC4=function(t,E){for(;E=E.previousSibling;)if(E==t)return-1;return 1};
cCr=function(t){var E,p=arguments.length;if(!p)return null;if(p==1)return arguments[0];var U=[],x=Infinity;for(E=0;E<p;E++){for(var A=[],m=arguments[E];m;)A.unshift(m),m=m.parentNode;U.push(A);x=Math.min(x,A.length)}A=null;for(E=0;E<x;E++){m=U[0][E];for(var b=1;b<p;b++)if(m!=U[b][E])return A;A=m}return A};
_.S2=function(t){return t.nodeType==9?t:t.ownerDocument||t.document};
td0=function(t){return t.contentDocument||t.contentWindow.document};
_.fu=function(t,E){if("textContent"in t)t.textContent=E;else if(t.nodeType==3)t.data=String(E);else if(t.firstChild&&t.firstChild.nodeType==3){for(;t.lastChild!=t.firstChild;)t.removeChild(t.lastChild);t.firstChild.data=String(E)}else _.bk(t),t.appendChild(_.S2(t).createTextNode(String(E)))};
EWp={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};pQ0={IMG:" ",BR:"\n"};Hy$=function(t){var E;t.tagName=="A"&&t.hasAttribute("href")||t.tagName=="INPUT"||t.tagName=="TEXTAREA"||t.tagName=="SELECT"||t.tagName=="BUTTON"?E=!t.disabled&&(!t.hasAttribute("tabindex")||UyX(t)):E=t.hasAttribute("tabindex")&&UyX(t);return E};
UyX=function(t){t=t.tabIndex;return typeof t==="number"&&t>=0&&t<32768};
Ags=function(t){var E=[];xys(t,E,!0);t=E.join("");t=t.replace(/ \xAD /g," ").replace(/\xAD/g,"");t=t.replace(/\u200B/g,"");t=t.replace(/ +/g," ");t!=" "&&(t=t.replace(/^\s*/,""));return t};
Yhf=function(t){var E=[];xys(t,E,!1);return E.join("")};
xys=function(t,E,p){if(!(t.nodeName in EWp))if(t.nodeType==3)p?E.push(String(t.nodeValue).replace(/(\r\n|\r|\n)/g,"")):E.push(t.nodeValue);else if(t.nodeName in pQ0)E.push(pQ0[t.nodeName]);else for(t=t.firstChild;t;)xys(t,E,p),t=t.nextSibling};
_.Md0=function(t,E,p){if(!E&&!p)return null;var U=E?String(E).toUpperCase():null;return _.tg(t,function(x){return(!U||x.nodeName==U)&&(!p||typeof x.className==="string"&&_.zt(x.className.split(/\s+/),p))},!0)};
_.tg=function(t,E,p){t&&!p&&(t=t.parentNode);for(p=0;t;){if(E(t))return t;t=t.parentNode;p++}return null};
Uk=function(t){this.JSC$9602_document_=t||_.Ui.document||document};
_.Y=Uk.prototype;_.Y.getElement=function(t){return _.uA(this.JSC$9602_document_,t)};
_.Y.$=Uk.prototype.getElement;_.Y.getElementsByTagName=function(t,E){return(E||this.JSC$9602_document_).getElementsByTagName(String(t))};
_.Y.getElementsByTagNameAndClass=function(t,E,p){return xM(this.JSC$9602_document_,t,E,p)};
_.Y.$$=Uk.prototype.getElementsByTagNameAndClass;_.Y.setProperties=DXm;_.Y.JSC$9604_createDom=function(t,E,p){return LiW(this.JSC$9602_document_,arguments)};
_.Y.createElement=function(t){return PgG(this.JSC$9602_document_,t)};
_.Y.createTextNode=function(t){return this.JSC$9602_document_.createTextNode(String(t))};
_.Y.getWindow=function(){return this.JSC$9602_document_.defaultView};
var D_=function(t){return _.shp(t.JSC$9602_document_)};
_.Y=Uk.prototype;_.Y.appendChild=function(t,E){t.appendChild(E)};
_.Y.append=os3;_.Y.canHaveChildren=mS;_.Y.removeNode=_.ng;_.Y.getChildren=_.Hf;_.Y.contains=_.wV;_.Y.isFocusable=Hy$;_.Y=Z_.prototype;_.Y.getWidth=function(){return this.right-this.left};
_.Y.getHeight=function(){return this.bottom-this.top};
_.Y.clone=function(){return new Z_(this.top,this.right,this.bottom,this.left)};
_.Y.contains=function(t){return this&&t?t instanceof Z_?t.left>=this.left&&t.right<=this.right&&t.top>=this.top&&t.bottom<=this.bottom:t.x>=this.left&&t.x<=this.right&&t.y>=this.top&&t.y<=this.bottom:!1};
_.Y.expand=function(t,E,p,U){_.o0(t)?(this.top-=t.top,this.right+=t.right,this.bottom+=t.bottom,this.left-=t.left):(this.top-=t,this.right+=Number(E),this.bottom+=Number(p),this.left-=Number(U));return this};
_.Y.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};
_.Y.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};
_.Y.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};
_.Y.translate=function(t,E){t instanceof _.gg?(this.left+=t.x,this.right+=t.x,this.top+=t.y,this.bottom+=t.y):(this.left+=t,this.right+=t,typeof E==="number"&&(this.top+=E,this.bottom+=E));return this};
_.Y.scale=function(t,E){E=typeof E==="number"?E:t;this.left*=t;this.right*=t;this.top*=E;this.bottom*=E;return this};_.Y=O8.prototype;_.Y.clone=function(){return new O8(this.left,this.top,this.width,this.height)};
_.Y.boundingRect=function(t){var E=Math.max(this.left+this.width,t.left+t.width),p=Math.max(this.top+this.height,t.top+t.height);this.left=Math.min(this.left,t.left);this.top=Math.min(this.top,t.top);this.width=E-this.left;this.height=p-this.top};
_.Y.contains=function(t){return t instanceof _.gg?t.x>=this.left&&t.x<=this.left+this.width&&t.y>=this.top&&t.y<=this.top+this.height:this.left<=t.left&&this.left+this.width>=t.left+t.width&&this.top<=t.top&&this.top+this.height>=t.top+t.height};
_.Y.distance=function(t){var E=t.x<this.left?this.left-t.x:Math.max(t.x-(this.left+this.width),0);t=t.y<this.top?this.top-t.y:Math.max(t.y-(this.top+this.height),0);return Math.sqrt(E*E+t*t)};
_.Y.getSize=function(){return new _.nq(this.width,this.height)};
_.Y.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};
_.Y.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};
_.Y.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};
_.Y.translate=function(t,E){t instanceof _.gg?(this.left+=t.x,this.top+=t.y):(this.left+=t,typeof E==="number"&&(this.top+=E));return this};
_.Y.scale=function(t,E){E=typeof E==="number"?E:t;this.left*=t;this.width*=t;this.top*=E;this.height*=E;return this};var bgf,Rq,NVl,wF,fPo,Hgp,BiZ,jq8,wQZ,Vds;_.Bf=function(t,E,p){if(typeof E==="string")(E=_.myo(t,E))&&(t.style[E]=p);else for(var U in E){p=t;var x=E[U],A=_.myo(p,U);A&&(p.style[A]=x)}};
bgf={};_.myo=function(t,E){var p=bgf[E];if(!p){var U=_.Fx(E);p=U;t.style[U]===void 0&&(U=(_.no?"Webkit":_.Ne?"Moz":null)+Gcs(U),t.style[U]!==void 0&&(p=U));bgf[E]=p}return p};
_.he=function(t,E){var p=_.S2(t);return p.defaultView&&p.defaultView.getComputedStyle&&(t=p.defaultView.getComputedStyle(t,null))?t[E]||t.getPropertyValue(E)||"":""};
_.By=function(t,E){return _.he(t,E)||(t.currentStyle?t.currentStyle[E]:null)||t.style&&t.style[E]};
_.igs=function(t){return _.By(t,"position")};
Rq=function(t,E,p){if(E instanceof _.gg){var U=E.x;E=E.y}else U=E,E=p;t.style.left=wF(U,!1);t.style.top=wF(E,!1)};
NVl=function(t){try{return t.getBoundingClientRect()}catch(E){return{left:0,top:0,right:0,bottom:0}}};
_.cx=function(t){var E=_.S2(t),p=new _.gg(0,0);if(t==(E?_.S2(E):document).documentElement)return p;t=NVl(t);E=D_(s8(E));p.x=t.left+E.x;p.y=t.top+E.y;return p};
_.qhr=function(t,E,p){if(E instanceof _.nq)p=E.height,E=E.width;else if(p==void 0)throw Error("oa");t.style.width=wF(E,!0);t.style.height=wF(p,!0)};
wF=function(t,E){typeof t=="number"&&(t=(E?Math.round(t):t)+"px");return t};
fPo=function(t){return Hgp(t)};
Hgp=function(t){var E=BiZ;if(_.By(t,"display")!="none")return E(t);var p=t.style,U=p.display,x=p.visibility,A=p.position;p.visibility="hidden";p.position="absolute";p.display="inline";t=E(t);p.display=U;p.position=A;p.visibility=x;return t};
BiZ=function(t){var E=t.offsetWidth,p=t.offsetHeight,U=_.no&&!E&&!p;return(E===void 0||U)&&t.getBoundingClientRect?(t=NVl(t),new _.nq(t.right-t.left,t.bottom-t.top)):new _.nq(E,p)};
jq8=function(t){var E=_.cx(t);t=Hgp(t);return new O8(E.x,E.y,t.width,t.height)};
wQZ=function(t,E){t=t.style;"opacity"in t?t.opacity=E:"MozOpacity"in t?t.MozOpacity=E:"filter"in t&&(t.filter=E===""?"":"alpha(opacity="+Number(E)*100+")")};
_.rV=function(t,E){t.style.display=E?"":"none"};
_.R7W=function(t){return"rtl"==_.By(t,"direction")};
Vds=function(t){var E=_.he(t,"marginLeft"),p=_.he(t,"marginRight"),U=_.he(t,"marginTop");t=_.he(t,"marginBottom");return new Z_(parseFloat(U),parseFloat(p),parseFloat(t),parseFloat(E))};
_.Qv3=function(t){var E=_.he(t,"borderLeftWidth"),p=_.he(t,"borderRightWidth"),U=_.he(t,"borderTopWidth");t=_.he(t,"borderBottomWidth");return new Z_(parseFloat(U),parseFloat(p),parseFloat(t),parseFloat(E))};var VD=function(t){this.context=t};
VD.prototype.isSupported=function(t){return(t==null?0:t.attributionEnabled)||(t==null?void 0:t.beaconMethod)==="POST"||(t==null?0:t.customHeaders)||(t==null?0:t.customBody)||(t==null?0:t.keepAlive)?!1:!vq(this.context)};
VD.prototype.ping=function(){var t=this;return LB(_.t9.apply(0,arguments).map(function(E){try{var p=t.context.global,U=!1;U=U===void 0?!1:U;p.google_image_requests||(p.google_image_requests=[]);var x=a_0("IMG",p.document);U&&(x.attributionSrc="");x.src=E;p.google_image_requests.push(x);return!0}catch(A){return!1}}).every(function(E){return E}))};
VD.prototype.pingWithHeadersAndBody=function(t,E,p){this.ping.apply(this,_.KB(_.t9.apply(3,arguments)))};var CNG=function(t){this.context=t};
CNG.prototype.isSupported=function(t){return jvo&&!vq(this.context)&&wQE(this.context)!==void 0&&!(t==null?0:t.attributionEnabled)&&(t==null?void 0:t.beaconMethod)!=="POST"&&!(t==null?0:t.customHeaders)&&!(t==null?0:t.customBody)};
CNG.prototype.makeBeacon=function(t,E){if(!this.isSupported(E))throw new ox;return new QD(this.context,t)};
var jvo=!1,QD=function(t,E){this.context=t;this.JSC$9623_urlWithoutToken=E;t=wQE(this.context);if(t===void 0)throw Error();this.wrappedBeacon=new t(rgW(this),{})},rgW=function(t){t=t.JSC$9623_urlWithoutToken;
return(t.slice(-1)[0]==="&"?t:t+"&")+"pbapi=1"};
QD.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
QD.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
QD.prototype.setHeader=function(){};
_.aE.Object.defineProperties(QD.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9623_urlWithoutToken},
set:function(t){this.JSC$9623_urlWithoutToken=t;this.wrappedBeacon.setURL(rgW(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(t){if(t!=="GET")throw new ox;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var kgX=function(t){this.context=t};
kgX.prototype.isSupported=function(t){if((t==null?0:t.attributionEnabled)||(t==null?void 0:t.beaconMethod)==="GET"||(t==null?0:t.customHeaders)||(t==null?0:t.customBody)||(t==null?0:t.keepAlive))return!1;var E;return!vq(this.context)&&((E=this.context.global.navigator)==null?void 0:E.sendBeacon)!==void 0};
kgX.prototype.ping=function(){var t=this;return LB(_.t9.apply(0,arguments).map(function(E){var p;return(p=t.context.global.navigator)==null?void 0:p.sendBeacon(E)}).every(function(E){return E}))};
kgX.prototype.pingWithHeadersAndBody=function(t,E,p){this.ping.apply(this,_.KB(_.t9.apply(3,arguments)))};var lg=function(t){this.value=t},qy=function(t,E){return LB(t.value).pipe(e2(E))},fg=new lg(!1),Sj$=new lg(!0);var Eh=function(t){this.value=t;this.releasedSubject=new hC};
Eh.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.aE.Object.defineProperties(Eh.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9636_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var Zgj=["FRAME","IMG","IFRAME"],kgt=/^[01](px)?$/,gWO=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},IPL=function(){var t=new gWO;
t.crossDomainLoadedDefault=!0;t.pendingImagesBlockLoad=!0;return t};var dyf=function(t,E){var p=z7$(t);if(p)if(p.onCreativeLoad)p.onCreativeLoad(E);else{var U=E?[E]:[],x=function(A){for(var m=0;m<U.length;++m)try{U[m](1,A)}catch(b){}U={push:function(b){b(1,A)}}};
p.onCreativeLoad=function(A){U.push(A)};
p.setAttribute("data-creative-load-listener","");p.addEventListener("creativeLoad",function(A){x(A.detail)});
_.Ui.addEventListener("message",function(A){F9$(p,x,A)})}};var Cu=function(t,E){var p=this;this.global=t;this.parentContext=E;this.JSC$9647_onVisibilityChange=this.document?pq(LB(!0),tC(this.document,"visibilitychange")).pipe(Ys(this.parentContext.performanceMonitor,748),$k(function(){return p.getVisibilityState()}),Hx()):LB("visible");
this.document?tC(this.document,"DOMContentLoaded").pipe(Ys(this.parentContext.performanceMonitor,739),qX(1)):LB(jvj("DOMContentLoaded"))},ytO=function(t){return t.document!==null&&t.document.visibilityState!==void 0};
Cu.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
Cu.prototype.querySelector=function(t){return this.document?this.document.querySelector(t):null};
Cu.prototype.querySelectorAll=function(t){return this.document?_.Dl(this.document.querySelectorAll(t)):[]};
Cu.prototype.elementFromPoint=function(t,E){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;t=this.document.elementFromPoint(t,E);return t===null?null:new Eh(t)};
var Nhl=function(t,E,p){p=p===void 0?!1:p;if(E.ref===void 0||!t.document)return LB(E).pipe(Ys(t.parentContext.performanceMonitor,749));var U=new Rh(1),x=function(){U.next(E)};
p||dyf(E.ref,x);OgL(E.ref,x);return U.pipe(Ys(t.parentContext.performanceMonitor,749),qX(1))};
_.aE.Object.defineProperties(Cu.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return vs_(this.global,"document")?this.global.document||null:null}}});var lP0=_.CG(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),Ggj=_.CG(["./reach_worklet.js"]),nWL=_.CG(["./reach_worklet.js"]),usr=_.CG(["./reach_worklet.html"]),Jgr=_.CG(["./reach_worklet.js"]),IPm=_.CG(["./reach_worklet.js"]);_.JC(usr);_.JC(Jgr);_.JC(IPm);var YW={left:0,top:0,width:0,height:0};var gWs,Zgo,Ogm,qy_,J6,h7m,aP3,e7X,jjY,rr8,lPs,Ggo;gWs=function(t,E,p,U,x,A,m){var b="";t&&(b+=t+":");p&&(b+="//",E&&(b+=E+"@"),b+=p,U&&(b+=":"+U));x&&(b+=x);A&&(b+="?"+A);m&&(b+="#"+m);return b};
Zgo=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.ds=function(t){return t.match(Zgo)};
_.cS=function(t,E){return t?E?decodeURI(t):decodeURIComponent(t):t};
Ogm=function(t){t=_.ds(t)[1]||null;!t&&_.Ui.self&&_.Ui.self.location&&(t=_.Ui.self.location.protocol.slice(0,-1));return t?t.toLowerCase():""};
_.ua=function(t){return _.cS(_.ds(t)[3]||null,!0)};
_.LR=function(t){return _.cS(_.ds(t)[5]||null,!0)};
_.W1D=function(t){var E=t.indexOf("#");return E<0?null:t.slice(E+1)};
qy_=function(t){t=_.ds(t);return gWs(t[1],t[2],t[3],t[4])};
_.XQG=function(t){t=_.ds(t);return gWs(t[1],null,t[3],t[4])};
_.M_=function(t){t=_.ds(t);return gWs(null,null,null,null,t[5],t[6],t[7])};
_.wu=function(t){var E=t.indexOf("#");return E<0?t:t.slice(0,E)};
J6=function(t,E){t=_.ds(t);E=_.ds(E);return t[3]==E[3]&&t[1]==E[1]&&t[4]==E[4]};
h7m=function(t,E){if(t){t=t.split("&");for(var p=0;p<t.length;p++){var U=t[p].indexOf("="),x=null;if(U>=0){var A=t[p].substring(0,U);x=t[p].substring(U+1)}else A=t[p];E(A,x?Z3(x):"")}}};
aP3=function(t){var E=t.indexOf("#");E<0&&(E=t.length);var p=t.indexOf("?");if(p<0||p>E){p=E;var U=""}else U=t.substring(p+1,E);return[t.slice(0,p),U,t.slice(E)]};
e7X=function(t,E){return E?t?t+"&"+E:E:t};
_.F9W=function(t,E){if(!E)return t;t=aP3(t);t[1]=e7X(t[1],E);return t[0]+(t[1]?"?"+t[1]:"")+t[2]};
_.z7W=function(t,E,p){if(Array.isArray(E))for(var U=0;U<E.length;U++)_.z7W(t,String(E[U]),p);else E!=null&&p.push(t+(E===""?"":"="+_.VE(E)))};
_.T3=function(t){var E=[],p;for(p in t)_.z7W(p,t[p],E);return E.join("&")};
_.ka=function(t,E){E=_.T3(E);return _.F9W(t,E)};
_.jI=function(t,E,p){p=p!=null?"="+_.VE(p):"";return _.F9W(t,E+p)};
jjY=function(t,E,p,U){for(var x=p.length;(E=t.indexOf(p,E))>=0&&E<U;){var A=t.charCodeAt(E-1);if(A==38||A==63)if(A=t.charCodeAt(E+x),!A||A==61||A==38||A==35)return E;E+=x+1}return-1};
rr8=/#|$/;_.Rc=function(t,E){var p=t.search(rr8),U=jjY(t,0,E,p);if(U<0)return null;var x=t.indexOf("&",U);if(x<0||x>p)x=p;U+=E.length+1;return Z3(t.slice(U,x!==-1?x:0))};
lPs=/[?&]($|#)/;_.VS=function(t,E){for(var p=t.search(rr8),U=0,x,A=[];(x=jjY(t,U,E,p))>=0;)A.push(t.substring(U,x)),U=Math.min(t.indexOf("&",x)+1||p,p);A.push(t.slice(U));return A.join("").replace(lPs,"$1")};
_.Rz=function(t,E,p){return _.jI(_.VS(t,E),E,p)};
Ggo=function(t){var E=aP3(window.location.href),p=E[1],U=[];p&&p.split("&").forEach(function(x){var A=x.indexOf("=");A=A>=0?x.slice(0,A):x;t.hasOwnProperty(A)||U.push(x)});
E[1]=e7X(U.join("&"),_.T3(t));return E[0]+(E[1]?"?"+E[1]:"")+E[2]};var AWO=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(AWO,_.w6);var xQi=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(xQi,_.w6);var Sh$=function(t,E){return _.Lq(t,2,E)},UQK=function(t,E){return _.Lq(t,3,E)};
xQi.prototype.getModel=function(){return _.th(this,4)};
var tKj=function(t,E){return _.Lq(t,4,E)},ygi=function(t,E){return _.Lq(t,5,E)},pyO=function(t,E){return _.Lq(t,9,E)},vWl=function(t,E){return $Z(t,10,E)},K9E=function(t,E){return _.gi(t,11,E)},cgO=function(t,E){return _.Lq(t,1,E)},EOO=function(t,E){return _.gi(t,7,E)};var W98="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var HQ=function(t,E,p,U){t=t===void 0?window:t;E=E===void 0?null:E;p=p===void 0?new xEr:p;U=U===void 0?NiJ():U;c9o.call(this);var x=this;this.global=t;this.debugChannel=E;this.performanceMonitor=p;this.onPageHide=CgO(function(){return tC(x.global,"pagehide")}).pipe(Ys(this.performanceMonitor,941));
this.onLoad=CgO(function(){return tC(x.global,"load")}).pipe(Ys(this.performanceMonitor,738),qX(1));
this.onResize=CgO(function(){return tC(x.global,"resize")}).pipe(Ys(this.performanceMonitor,741));
this.onMessage=CgO(function(){return tC(x.global,"message")}).pipe(Ys(this.performanceMonitor,740));
this.document=new Cu(this.global,this);this.timeProvider=new ACW(new M2r(this.intrinsicFunctionNamespace,this.performanceMonitor),new Y8m(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new pxf(new bqW(this),new CNG(this),new Wq(this,new Hq4(this)),new Wq(this,new kgX(this)),new Wq(this,new VD(this)))};
_.u(HQ,c9o);HQ.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(t){return t}};
var vq=function(t){var E=t.global;return!!t.global.HTMLFencedFrameElement&&!!E.fence&&typeof E.fence.reportEvent==="function"};
_.Y=HQ.prototype;_.Y.reportFencedFrameEvent=function(t){vq(this)&&this.global.fence.reportEvent(t)};
_.Y.getOnBackgrounded=function(){return this.onPageHide.pipe(Ys(this.performanceMonitor,942),e2(this.queue),$k(function(){}))};
_.Y.postMessage=function(t,E,p){p=p===void 0?[]:p;this.global.postMessage(t,E,p)};
_.Y.getWidth=function(){return yCO(this.global)?this.global.width:0};
_.Y.getHeight=function(){return yCO(this.global)?this.global.height:0};
_.Y.isMobile=function(){return S8K()||cCJ()};
var Uh=function(t,E){try{var p=PN$(E,t.global,t.isMobile());return{left:p.left,top:p.top,width:p.getWidth(),height:p.getHeight()}}catch(U){return YW}};
HQ.prototype.validate=function(){var t=this.beaconFactory.isSupported()||vq(this);return this.global&&this.timeProvider.available()&&t};
var VdO=function(t){return(t=MK_(t.global))?XQ(t):null};
_.aE.Object.defineProperties(HQ.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(t){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(t){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!yCO(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}}});_.nWm=!_.FI&&!_.Q0J();var ct8=function(t){return t};var EaO=function(t){return t.pipe(U8(function(E){var p=E.endOfSessionReason;var U;return((U=E.viewable)==null?void 0:U.extrapolateToNow().value)||p!=void 0}),qX(1),bg())};var BV$=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},wyO=function(t){var E=t.sequenceNumber.toString(10).padStart(2,"0");
E=""+t.startTime+E;t.sequenceNumber<99&&t.sequenceNumber++;return E};var vwj=IR(rg(function(t){return t.endOfSessionReason===void 0}),$k(function(t){return Object.assign({},t,{timestamps:TJ(t)})}),U8(function(t){var E=t.viewable;
t=t.timestamps;var p;return(p=E==null?void 0:E.extrapolateUsingTimestampMap(t).value)!=null?p:!1}),$k(function(t){var E=t.beaconFactory;
var p=t.timestampedExposureHistory;var U=t.timeOnScreen;var x=t.binaryContext;t=t.timestamps;if(E===void 0||p===void 0||U===void 0||x===void 0)return!1;if(U.extrapolateUsingTimestampMap(t).value.every(function(A){return A>=0}))return!0;
p=p.map(function(A){return A.timestamp+":"+A.value}).join(",");
U=R2i({bin:x,tos:U},t);E.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+U+("&eh="+p)).sendNow();return!0}),rg(function(t){return!t}),bg());var Qct=function(t){return{id:t.pingId,mcvt:t.maxConsecutiveViewTime,p:t.creativePosition,asp:t.adSpeedPosition,tm:t.totalMeasurementTime,tu:t.totalUnviewedTime,mtos:t.maxTimeOnScreen,tos:t.timeOnScreen,v:t.binaryVersion,bin:t.binaryContext,avms:t.measurementStrategy,bs:t.browserSize,mc:t.maximumExposure,"if":t.crossDomainIframeState,vu:t.delayedImpressionJsState,app:t.inApp,mse:t.mraidError,mtop:t.mraidSituation,itpl:t.injectedTemplateId,adk:t.adKey,exk:t.awbidKey,rs:t.requestSource,la:t.isLargeAd,
cr:t.isContentRecommendationAd,uach:t.userAgentClientHints,vs:t.viewState,r:t.reasonCode,pay:t.hasCpmavUrl,co:t.clientPingOrderCounter,rst:t.adRenderStartTime,rpt:t.adRenderPeriodTime,isd:t.initialScrollDepth,lsd:t.loadedScrollDepth,context:t.errorContext,msg:t.errorMessage,stack:t.errorStack,name:t.errorName,ec:t.hasElementChanged,sfr:t.strategyFailureReasons,met:t.creativeSearchResult,wmsd:t.webMeasurementStartDiagnostic,pv:t.pageVisible,epv:t.eosPageVisible,pbe:t.inStatefulBeaconExperiment,fle:t.inFetchLaterBeaconExperiment,
vae:t.inViewableAttributionExperiment,spb:t.supportsPendingBeacon,sfl:t.supportsFetchLater,ffslot:t.isFencedFrameSlotTurtlex,reach:t.sharedStorageReachMode,io2:t.v2VisibilityBitVector,rxdbg:t.rxDebugger,omida:t.omidAppId,omidp:t.omidPartner,omidpv:t.omidPartnerVersion,omidor:t.omidOcclusionReasons,omidv:t.omidVersion,omids:t.omidSessionType,omidam:t.omidAccessMode,omidct:t.omidCreativeType,omidia:t.omidInApp,omiddc:t.omidDeviceCategory,omidlat:t.omidLastActivity,omiddit:t.omidDeviceIdleTime,qid:t.errorEscapedQueryId}};var tiJ=function(t){var E=[];return t.pipe($k(function(p){var U=p.beaconFactory,x=p.fetchBeaconFactory,A=p.timeOnScreen,m=p.timeOnScreenUrlPrefixes,b=p.payloadMapper,f=p.timeOnScreenPingId,B=p.timeOnScreenReason,R=p.urlSerializer,V=p.viewable,Q=p.hasImpressionFired,C=p.inStatefulBeaconExperiment,d=p.supportsPendingBeacon,I=p.supportsFetchLater,O=p.turtlexReportEventData;if(!p.geometryMeasurable||!Q||p.maxTimeOnScreen===void 0||A===void 0||m===void 0||b===void 0||f===void 0||R===void 0||U===void 0)return!1;
if(p.isTurtlex){if(B===void 0)return!1;m=p.reportFencedFrameEvent;if(!m)return!1;m({eventType:"active-view-time-on-screen",eventData:O!=null?O:"",destination:["buyer"]});return!0}if(!(C||I||B))return!1;O=TJ(p);var a;V=(a=V==null?void 0:V.extrapolateUsingTimestampMap(O).value)!=null?a:!1;a=R(Object.assign({},p,{pingId:f,viewState:V?4:3,reasonCode:B!=null?B:"u",payloadMapper:b,urlPrefixes:m}),O);if(C){for(;E.length>m.length;)p=void 0,(p=E.shift())==null||p.deactivate();a.forEach(function(L,D){D>=E.length?
E.push(U.makeBeacon(L)):E[D].url=L});
return d&&x&&B!==void 0?(a.forEach(function(L){x.makeBeacon(L).sendNow()}),!0):B!==void 0}if(d&&x&&B!==void 0)return a.forEach(function(L){x.makeBeacon(L).sendNow()}),!0;
if(I&&x){for(;E.length>m.length;)d=void 0,(d=E.shift())==null||d.deactivate();var F=R(Object.assign({},p,{pingId:f,viewState:V?4:3,reasonCode:B!=null?B:"u",payloadMapper:b,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),O)[0];a.forEach(function(L,D){D>=E.length?E.push(U.makeBeacon(F,{endOfSession:!0})):E[D].url=F});
return B!==void 0?(a.forEach(function(L){x.makeBeacon(L).sendNow()}),!0):B!==void 0}return B!==void 0?(a.forEach(function(L){U.makeBeacon(L).sendNow()}),!0):!1}),rg(function(p){return!p}),bg())};var pCt=IR(U8(function(t){return t.immediateUrlPrefixes!==void 0&&t.payloadMapper!==void 0&&t.urlSerializer!==void 0&&t.inferredPingId!==void 0&&t.beaconFactory!==void 0}),U8(function(t){return I8_(t)!==null}),u8t(function(t){return t.activeViewUnmeasurableEvent},function(t){return t.emit}),$k(function(t){if(t.isTurtlex){var E=t.reportFencedFrameEvent;
if(E){var p;E({eventType:"active-view-unmeasurable",eventData:(p=t.turtlexReportEventData)!=null?p:"",destination:["buyer"]})}}else{p=void 0;var U=I8_(t);if(U==="x"){var x,A=(x=t.geometricMeasurementErrors)!=null?x:t.contextValidationErrors;A&&(E=A.stack,p=A.message)}t.urlSerializer(Object.assign({},t,{urlPrefixes:t.immediateUrlPrefixes,payloadMapper:t.payloadMapper,pingId:t.inferredPingId,viewState:2,reasonCode:U,errorMessage:p,errorStack:E}),TJ(t)).forEach(function(m){t.beaconFactory.makeBeacon(m).sendNow()})}}),
qX(1),bg());var gO0=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var KW$=IR(U8(function(t){return t.payloadMapper!==void 0&&t.immediateUrlPrefixes!==void 0&&t.urlSerializer!==void 0&&t.inferredPingId!==void 0&&t.beaconFactory!==void 0}),$k(function(t){return Object.assign({},t,{timestamps:TJ(t)})}),U8(function(t){var E=t.viewable;
var p=t.hasImpressionFired;t=t.timestamps;var U;return!!p&&((U=E==null?void 0:E.extrapolateUsingTimestampMap(t).value)!=null?U:!1)}),u8t(function(t){return t.activeViewViewableEvent},function(t){return t.emit}),$k(function(t){var E=t.beaconFactory,p=t.turtlexReportEventData;
if(t.isTurtlex){var U=t.reportFencedFrameEvent;if(!U)return!1;U({eventType:"active-view-viewable",eventData:p!=null?p:"",destination:["buyer"]});return!0}p=t.urlSerializer(Object.assign({},t,{urlPrefixes:t.immediateUrlPrefixes,payloadMapper:t.payloadMapper,pingId:t.inferredPingId,viewState:4,reasonCode:"v"}),t.timestamps);(U=t.cpmavUrls)&&U.length>0&&t.viewUrlSerializer&&t.viewUrlSerializer(U,t).forEach(function(x){E.makeBeacon(x).sendNow()});
(U=t.viewableRelayUrls)&&U.length>0&&t.viewUrlSerializer&&t.viewUrlSerializer(U,t).forEach(function(x){E.makeBeacon(x).sendNow()});
p.forEach(function(x){E.makeBeacon(x,{attributionEnabled:t.isViewableAttributionEnabled}).sendNow()});
return!0}),rg(function(t){return!t}),bg());var Qmj=$k(function(t){return[t.value.topWindowViewportExternalGeometry.width,t.value.topWindowViewportExternalGeometry.height]});var xW=function(t,E){this.callback=t;this.options=E;this.intersectionObserverV2=this.intersectionObserverV1=null},tCO=function(t,E){E?t.intersectionObserverV2||(E=Object.assign({},t.options,{delay:100,
trackVisibility:!0}),t.intersectionObserverV2=new IntersectionObserver(t.callback,E)):t.intersectionObserverV1||(t.intersectionObserverV1=new IntersectionObserver(t.callback,t.options))},Nir=function(t,E){t=E?t.intersectionObserverV2:t.intersectionObserverV1;
if(!t)throw new t24;return t};
xW.prototype.observe=function(t,E){Nir(this,t).observe(E)};
xW.prototype.unobserve=function(t,E){Nir(this,t).unobserve(E)};
xW.prototype.disconnect=function(t){Nir(this,t).disconnect()};
xW.prototype.takeRecords=function(t){return Nir(this,t).takeRecords()};var sc_={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:YW,topWindowViewportExternalGeometry:YW,measurementRequests:new hC,elementGeometrySourceName:"ns",elementGeometry:YW,intersectionGeometry:YW,viewportLocalAppOffset:{x:0,y:0}};var MCt=My(IR($k(function(t){var E;return(E=t.exposureOverride)!=null?E:pvK(t)}),$k(function(t){return isFinite(t)?t:0}))),BhO=My(IR($k(function(t){var E;
return(E=t.exposureOverride)!=null?E:pvK(t)}),$k(function(t){return isFinite(t)?t:-1})));var rF=function(t,E){this.a=t;this.b=E;if(t.clock.timeline!==E.clock.timeline)throw Error();};
rF.prototype.equivalentTo=function(t){return t instanceof rF?this.a.equivalentTo(t.a)&&this.b.equivalentTo(t.b):!1};
rF.prototype.extrapolateToTime=function(t){var E=this.a.extrapolateToTime(t).value,p=this.b.extrapolateToTime(t).value;return{timestamp:t,value:[E,p]}};
_.aE.Object.defineProperties(rF.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 t=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),E=this.a.lastMeasurement.timestamp.equals(t)?this.a.lastMeasurement.value:this.a.extrapolateToTime(t).value,p=this.b.lastMeasurement.timestamp.equals(t)?this.b.lastMeasurement.value:this.b.extrapolateToTime(t).value;return{timestamp:t,value:[E,p]}}}});var kM=function(t,E){this.input=t;this.mapFunction=E;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
kM.prototype.equivalentTo=function(t){return t instanceof kM?this.input.equivalentTo(t.input)&&this.mapFunction===t.mapFunction:!1};
kM.prototype.extrapolateToTime=function(t){t=this.input.extrapolateToTime(t);return{timestamp:t.timestamp,value:this.mapFunction(t.value)}};
_.aE.Object.defineProperties(kM.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var dF=function(){};
dF.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
dF.prototype.extrapolateUsingTimestampMap=function(t){var E=this.clock.timeline,p,U=(p=t.get(E))!=null?p:this.clock.now();t.set(E,U);return this.extrapolateToTime(U)};
dF.prototype.map=function(t){return new Dy3(this,t)};
dF.prototype.joinWith=function(t){return new svm(this,t)};
var svm=function(){rF.apply(this,arguments);this.map=dF.prototype.map;this.joinWith=dF.prototype.joinWith;this.extrapolateToNow=dF.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=dF.prototype.extrapolateUsingTimestampMap};
_.u(svm,rF);var Dy3=function(){kM.apply(this,arguments);this.map=dF.prototype.map;this.joinWith=dF.prototype.joinWith;this.extrapolateToNow=dF.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=dF.prototype.extrapolateUsingTimestampMap};
_.u(Dy3,kM);var bN=function(t,E){this.lastMeasurement=E;this.extrapolateToNow=dF.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=dF.prototype.extrapolateUsingTimestampMap;this.map=dF.prototype.map;this.joinWith=dF.prototype.joinWith;this.clock=t};
bN.prototype.equivalentTo=function(t){return t.active};
bN.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.aE.Object.defineProperties(bN.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var VCL=$k(function(t){if(t.value.viewportGeometrySourceName==="omid"){if(t.value.elementGeometrySourceName==="nio")return"omio";if(t.value.elementGeometrySourceName==="geo")return"omgeo"}return t.value.elementGeometrySourceName==="geo"||t.value.elementGeometrySourceName==="nio"?t.value.viewportGeometrySourceName:t.value.elementGeometrySourceName});var x$8=IR(U8(function(t){return!isNaN(t)}),QX(function(t,E){return isNaN(t)?E:Math.min(t,E)},NaN),Hx());var m$J=My(IR($k(function(t){return t.intersectionGeometry.width*t.intersectionGeometry.height/(t.exposedViewportLocalGeometry.width*t.exposedViewportLocalGeometry.height)}),$k(function(t){return isFinite(t)?Math.min(1,t):0})));var Rg$=IR(My($k(function(t){t=t.exposureOverride?t.elementGeometry.width*t.elementGeometry.height*t.exposureOverride/(t.topWindowViewportExternalGeometry.width*t.topWindowViewportExternalGeometry.height):t.intersectionGeometry.width*t.intersectionGeometry.height/(t.topWindowViewportExternalGeometry.width*t.topWindowViewportExternalGeometry.height);return isFinite(t)?t:0})));var rt$=function(t,E){var p=this;this.timeProvider=t;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=E.pipe(Hx()).subscribe(function(U){d$J(p);p.measurementRequestObserver=U})},ur_=function(t,E){d$J(t);
t.lastMeasurementRequest=t.timeProvider.setTimeout(function(){var p;return void((p=t.measurementRequestObserver)==null?void 0:p.next())},E)},d$J=function(t){t.lastMeasurementRequest!==null&&t.timeProvider.clearTimeout(t.lastMeasurementRequest);
t.lastMeasurementRequest=null};
rt$.prototype.dispose=function(){d$J(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var L9G=function(){};var ow_=function(t,E){this.context=t;this.strategies=E};
_.u(ow_,L9G);ow_.prototype.buildGeometrySource=function(t,E){var p=this.strategies.map(function(A){return A.buildGeometrySource(t,E)}),U=OwE(p.map(function(A){return A.geometrySource})),x=U.capturedErrors.pipe(PNW());
return{geometrySource:U.chain.pipe(e2(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:x,strategyErrors:U.capturedErrors}].concat(_.KB(p.map(function(A){return A.additionalOutputs}))))}};
var PNW=function(){return QX(function(t,E){E instanceof Wx?t.push(E.measurementStrategyFailureReason):t.push(-1);return t},[])};var $$L=function(t,E){this.context=t;this.poller=E};
_.u($$L,L9G);$$L.prototype.buildGeometrySource=function(t,E){var p=Xvj(apY(this.context,this.poller),L7D(this.context,E.requestSource));return{geometrySource:Zwt(t.measurableCreative.pipe(p),E.inApp),additionalOutputs:{}}};var WWE=function(t,E,p){p=p===void 0?K7K(t,E):p;this.context=t;this.intersectionObserverStrategy=p};
_.u(WWE,L9G);WWE.prototype.buildGeometrySource=function(t,E){var p=this.intersectionObserverStrategy(E.useV2);return{geometrySource:Zwt(t.measurableCreative.pipe(p,vOL(this.context)),E.inApp),additionalOutputs:{}}};var Tim=function(t,E,p){var U=U===void 0?Symbol():U;this.element=t;this.immediateUrls=E;this.timeOnScreenUrls=p;this.symbol=U};var jmO=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),Gqj=Object.freeze([1,.75,jmO.exposureThreshold,jmO.largeAdExposureThreshold,0]);var fuL=function(t,E){E=E===void 0?36E5:E;var p=p===void 0?!0:p;this.creatives=new hC;this.elementsToUnregister=new hC;this.elementMap=new Map;var U=new HQ(window,null);U.beaconFactory=new Wq(U,new VD(U));ThD(U,this.creatives,this.elementsToUnregister,t,E,p).subscribe()},RPD=function(t,E,p,U){if(!t.elementMap.has(E)){var x=new Eh(E);
t.elementMap.set(E,x);t.creatives.next(new Tim(x,p,U))}},wPl=function(t,E){t.elementsToUnregister.next(E);
var p=t.elementMap.get(E);p!==void 0&&(p.release(),t.elementMap.delete(E))};var sot=function(t){var E=t.url;t=t.uaDataValues;this.JSC$9752_url_=E;this.uaDataValues_=t;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var p=/[?&]([^&=]+)=([^&]*)/g;t=p.exec(E);)this.urlParamValues_[t[1]]=t[2]},LdY=function(t){t=t.uaDataValues_;
if(!t)return"";var E=BQ("uap",t.platform)+BQ("uapv",t.platformVersion)+BQ("uafv",t.uaFullVersion)+BQ("uaa",t.architecture)+BQ("uam",t.model)+BQ("uab",t.bitness);t.fullVersionList&&(E+="&uafvl="+encodeURIComponent(t.fullVersionList.map(function(p){return encodeURIComponent(p.brand)+";"+encodeURIComponent(p.version)}).join("|")));
t.wow64!=null&&(E+="&uaw="+Number(t.wow64));return E.slice(1)};var oWm=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(oWm,_.w6);oWm.prototype.getId=function(){return _.th(this,1)};var uk=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(uk,_.w6);uk.prototype.getSeconds=function(){return Sh(this,1)};
uk.prototype.setSeconds=function(t){return _.AG(this,1,ke(t),"0")};_.UQ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(_.UQ,_.w6);_.UQ.prototype.getSeconds=function(){return Sh(this,1)};
_.UQ.prototype.setSeconds=function(t){return _.AG(this,1,ke(t),"0")};
_.W9p=function(t){var E=Number(p1(t,1));t=_.kW(t,2);return new Date(E*1E3+t/1E6)};var JI=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(JI,_.w6);JI.prototype.getUrl=function(){return _.th(this,1)};
JI.prototype.setUrl=function(t){return _.R7(this,1,t)};
JI.prototype.getHeight=function(){return _.kW(this,2)};
JI.prototype.getWidth=function(){return _.kW(this,3)};var Iq=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Iq,_.w6);Iq.prototype.getAspectRatio=function(){return cn(this,1)};
Iq.prototype.getDuration=function(){return _.lJ(this,uk,2)};var $yr=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u($yr,_.w6);var K9Z=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(K9Z,_.w6);var vWT=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(vWT,_.w6);var ygr=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(ygr,_.w6);var ShW=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(ShW,_.w6);var cg4=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(cg4,_.w6);var tKo=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(tKo,_.w6);var EO4=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(EO4,_.w6);var pys=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(pys,_.w6);var gF=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(gF,_.w6);var ZS=[2,4,5,6,7];var UQf=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(UQf,_.w6);var KG=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(KG,_.w6);_.Y=KG.prototype;_.Y.getId=function(){return _.lJ(this,oWm,1)};
_.Y.getName=function(){return _.th(this,2)};
_.Y.setDescription=function(t){return _.R7(this,3,t)};
_.Y.getUrl=function(){return _.th(this,8)};
_.Y.setUrl=function(t){return _.R7(this,8,t)};
var Ok=function(t){return _.jd(t,JI,10,_.ri())};
KG.prototype.getOwner=function(t){return _.AdW(this,40,t)};
var X9=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(X9,_.w6);_.hI=[0,Vg,KoW];_.aq=[0,Vg,KoW];var xQr=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(xQr,_.w6);var eI=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(eI,_.w6);eI.prototype.getStatus=function(){return _.Et(this,1)};
eI.prototype.removeItem=function(t){return pKZ(this,2,t)};var AW4=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(AW4,_.w6);AW4.prototype.getName=function(){return _.th(this,8)};var F9=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(F9,_.w6);F9.prototype.getCommand=function(){return _.Et(this,1)};
F9.prototype.getSource=function(){return _.lJ(this,AW4,2)};
F9.prototype.setVisible=function(t){return _.WV(this,5,t)};
F9.prototype.removeItem=function(t){return pKZ(this,7,t)};var YJX=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(YJX,_.w6);YJX.prototype.getCommand=function(){return _.Et(this,1)};
YJX.prototype.removeItem=function(t){return pKZ(this,4,t)};
var MK0=_.hG(YJX);var zG=function(t,E,p){p=p===void 0?Error():p;var U=Error.call(this);this.message=U.message;"stack"in U&&(this.stack=U.stack);this.code=t;E+=":";p instanceof Error?(this.message=E+p.message,this.stack=p.stack||""):(this.message=E+String(p),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.u(zG,Error);_.PQ=function(){this.JSC$9810_disposed_=this.JSC$9810_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.PQ.prototype.JSC$9810_disposed_=!1;_.PQ.prototype.isDisposed=function(){return this.JSC$9810_disposed_};
_.PQ.prototype.dispose=function(){this.JSC$9810_disposed_||(this.JSC$9810_disposed_=!0,this.disposeInternal())};
_.PQ.prototype[Symbol.dispose]=function(){this.dispose()};
_.ed=function(t,E){t.addOnDisposeCallback(_.GF(_.wi,E))};
_.PQ.prototype.addOnDisposeCallback=function(t,E){this.JSC$9810_disposed_?E!==void 0?t.call(E):t():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),E&&(t=t.bind(E)),this.onDisposeCallbacks_.push(t))};
_.PQ.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var lk=function(t){_.PQ.call(this);this.wpc=t};
_.u(lk,_.PQ);lk.prototype.cb2=function(){return this.wpc.f()};
lk.prototype.bLq=function(t){return this.wpc.c(t)};
lk.prototype.i1=function(t){return this.wpc.m(MiK(t))};
lk.prototype.nJG=function(t){return this.wpc.mws(MiK(t))};
var Cg=function(t){_.PQ.call(this);var E=this;this.vm=t;this.sHb="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.pfR=void 0;this.gCG=this.vm.p;this.jpk=this.gRT.bind(this);this.addOnDisposeCallback(function(){return void mQr(E)})};
_.u(Cg,_.PQ);var bNW=function(t){var E;return _.q(function(p){if(p.nextAddress==1){if(!t.vm.wpc)throw new zG(30,"NWA");return t.gD6?p.return(t.gD6):p.yield(t.vm.wpc(),2)}E=p.yieldResult;t.gD6=new lk(E);return p.return(t.gD6)})};
Cg.prototype.snapshot=function(t){return this.vm.s(Object.assign({},t.cw&&{c:t.cw},t.wUG&&{s:t.wUG},t.kMI!==void 0&&{p:t.kMI}))};
Cg.prototype.gRT=function(t){this.vm.e(t)};
Cg.prototype.dVf=function(t,E){return this.vm.c(t,E,!1)};
var mQr=function(t){t.pfR!==void 0&&(t.sHb.forEach(function(E){var p;(p=t.pfR)==null||p.removeEventListener(E,t.jpk)}),t.pfR=void 0)};
Cg.prototype.ko2=function(){return this.vm.l()};var GG=function(){_.PQ.apply(this,arguments);this.pJH=1};
_.u(GG,_.PQ);GG.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.pJH++;return this};
GG.prototype.dispose=function(){--this.pJH||_.PQ.prototype.dispose.call(this)};var iNG=function(t){this.mOB=t;t.addNewEventMetric("/client_streamz/bg/frs",_.Jg("mk"))};
iNG.prototype.record=function(t,E){this.mOB.record("/client_streamz/bg/frs",t,E)};
var qJm=function(t){this.bJn=t;t.addNewEventMetric("/client_streamz/bg/wrl",_.Jg("mn"),uN("ac"),uN("sc"),_.Jg("rk"),_.Jg("mk"))};
qJm.prototype.record=function(t,E,p,U,x,A){this.bJn.record("/client_streamz/bg/wrl",t,E,p,U,x,A)};
var HNp=function(t){this.nnI=t;t.addNewCounter("/client_streamz/bg/ec",_.Jg("en"),_.Jg("mk"))};
HNp.prototype.increment=function(t,E){this.nnI.JSC$10063_incrementCounter("/client_streamz/bg/ec",t,E)};
var f8s=function(t){this.kf0=t;t.addNewEventMetric("/client_streamz/bg/el",_.Jg("en"),_.Jg("mk"))};
f8s.prototype.record=function(t,E,p){this.kf0.record("/client_streamz/bg/el",t,E,p)};
var BVW=function(t){this.onR=t;t.addNewCounter("/client_streamz/bg/cec",uN("ec"),_.Jg("mk"))};
BVW.prototype.increment=function(t,E){this.onR.JSC$10063_incrementCounter("/client_streamz/bg/cec",t,E)};
var wy4=function(t){this.eqI=t;t.addNewCounter("/client_streamz/bg/po/csc",uN("cs"),_.Jg("mk"))};
wy4.prototype.increment=function(t,E){this.eqI.JSC$10063_incrementCounter("/client_streamz/bg/po/csc",t,E)};
var R2r=function(t){this.cvb=t;t.addNewCounter("/client_streamz/bg/po/ctav",_.Jg("av"),_.Jg("mk"))};
R2r.prototype.increment=function(t,E){this.cvb.JSC$10063_incrementCounter("/client_streamz/bg/po/ctav",t,E)};
var VKZ=function(t){this.rvb=t;t.addNewCounter("/client_streamz/bg/po/cwsc",_.Jg("su"),_.Jg("mk"))};
VKZ.prototype.increment=function(t,E){this.rvb.JSC$10063_incrementCounter("/client_streamz/bg/po/cwsc",t,E)};var zZ_=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(zZ_,_.w6);var FY0=function(t,E){return _.xI(t,3,E,OsD)};var QcX=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(QcX,_.w6);var CQs=[1,2,3];var jc3=[0,CQs,_.u3,vef,cdG];var rWr=[0,_.Jh,[0,w9,_.Rx]];var k$X=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(k$X,_.w6);var dQp=[1,2,3];var u8X=[0,dQp,Wo4,stG,_.Ix,rWr];var JWf=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(JWf,_.w6);var I80=[0,_.Jh,jc3,u8X];var gOs=[0,_.kC];var ZNW=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(ZNW,_.w6);var ONW=[0,_.kC,-1,_.jM];var XyW=[0,_.kC,-1,_.C1,_.jM];var h2r=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(h2r,_.w6);var a8m=[1,2,3];var e2G=[0,a8m,_.Ix,ONW,_.Ix,XyW,_.Ix,gOs];var F7f=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(F7f,_.w6);F7f.prototype.JSC$9883_serializeBinary=Ms0([0,_.kC,e2G,t84,_.Jh,I80,ydX,_.SCW]);var z2o=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(z2o,_.w6);var nOo=function(t){var E=new F7f;E=_.Lq(E,1,t.JSC$9999_metricName);var p=l8s(t);E=_.xI(E,3,p,_.gt);p=[];for(var U=[],x=_.M(t.cellMap.keys()),A=x.next();!A.done;A=x.next())U.push(A.value.split(","));for(x=0;x<U.length;x++){A=U[x];for(var m=t.cellType,b=t.getCells(A)||[],f=[],B=0;B<b.length;B++){var R=b[B],V=R&&R.cellValue;R=new k$X;switch(m){case 3:V=Number(V);Number.isFinite(V)&&Ta(R,1,dQp,ke(V));break;case 2:Ta(R,2,dQp,_.xe(Number(V)))}f.push(R)}m=f;for(b=0;b<m.length;b++){f=m[b];B=new JWf;f=_.FU(B,
2,f);B=[];R=G$0(t);for(V=0;V<R.length;V++){var Q=R[V],C=A[V],d=new QcX;switch(Q){case 3:Ta(d,1,CQs,Z9(String(C)));break;case 2:Q=Number(C);Number.isFinite(Q)&&Ta(d,2,CQs,_.fl(Q));break;case 1:Ta(d,3,CQs,ITO(C==="true"))}B.push(d)}$Z(f,1,B);p.push(f)}}$Z(E,4,p);return E};var NVT=function(t){if(!t)return"";if(/^about:(?:blank|srcdoc)$/.test(t))return window.origin||"";t.indexOf("blob:")===0&&(t=t.substring(5));t=t.split("#")[0].split("?")[0];t=t.toLowerCase();t.indexOf("//")==0&&(t=window.location.protocol+t);/^[\w\-]*:\/\//.test(t)||(t=window.location.href);var E=t.substring(t.indexOf("://")+3),p=E.indexOf("/");p!=-1&&(E=E.substring(0,p));p=t.substring(0,t.indexOf("://"));if(!p)throw Error("qa`"+t);if(p!=="http"&&p!=="https"&&p!=="chrome-extension"&&p!=="moz-extension"&&
p!=="file"&&p!=="android-app"&&p!=="chrome-search"&&p!=="chrome-untrusted"&&p!=="chrome"&&p!=="app"&&p!=="devtools")throw Error("ra`"+p);t="";var U=E.indexOf(":");if(U!=-1){var x=E.substring(U+1);E=E.substring(0,U);if(p==="http"&&x!=="80"||p==="https"&&x!=="443")t=":"+x}return p+"://"+E+t};var sc0=function(t,E,p){var U=String(_.Ui.location.href);return U&&t&&E?[E,DQo(NVT(U),t,p||null)].join(" "):null},DQo=function(t,E,p){var U=[],x=[];
if((Array.isArray(p)?2:1)==1)return x=[E,t],_.QE(U,function(b){x.push(b)}),L73(x.join(" "));
var A=[],m=[];_.QE(p,function(b){m.push(b.key);A.push(b.value)});
p=Math.floor((new Date).getTime()/1E3);x=A.length==0?[p,E,t]:[A.join(":"),p,E,t];_.QE(U,function(b){x.push(b)});
t=L73(x.join(" "));t=[p,t];m.length==0||t.push(m.join(""));return t.join("_")},L73=function(t){var E=wCD();
E.update(t);return E.digestString().toLowerCase()};var PQZ;_.Y=Iv.prototype;_.Y.isEnabled=function(){if(!_.Ui.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};
_.Y.set=function(t,E,p){var U=!1;if(typeof p==="object"){var x=p.sameSite;U=p.secure||!1;var A=p.domain||void 0;var m=p.path||void 0;var b=p.maxAge}if(/[;=\s]/.test(t))throw Error("sa`"+t);if(/[;\r\n]/.test(E))throw Error("ta`"+E);b===void 0&&(b=-1);p=A?";domain="+A:"";m=m?";path="+m:"";U=U?";secure":"";b=b<0?"":b==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+b*1E3)).toUTCString();this.JSC$9894_document_.cookie=t+"="+E+p+m+b+U+(x!=null?";samesite="+x:"")};
_.Y.get=function(t,E){for(var p=t+"=",U=(this.JSC$9894_document_.cookie||"").split(";"),x=0,A;x<U.length;x++){A=fO(U[x]);if(A.lastIndexOf(p,0)==0)return A.slice(p.length);if(A==t)return""}return E};
_.Y.remove=function(t,E,p){var U=this.containsKey(t);this.set(t,"",{maxAge:0,path:E,domain:p});return U};
_.Y.getKeys=function(){return PQZ(this).keys};
_.Y.getValues=function(){return PQZ(this).values};
_.Y.isEmpty=function(){return!this.JSC$9894_document_.cookie};
_.Y.getCount=function(){return this.JSC$9894_document_.cookie?(this.JSC$9894_document_.cookie||"").split(";").length:0};
_.Y.containsKey=function(t){return this.get(t)!==void 0};
_.Y.containsValue=function(t){for(var E=PQZ(this).values,p=0;p<E.length;p++)if(E[p]==t)return!0;return!1};
_.Y.clear=function(){for(var t=PQZ(this).keys,E=t.length-1;E>=0;E--)this.remove(t[E])};
PQZ=function(t){t=(t.JSC$9894_document_.cookie||"").split(";");for(var E=[],p=[],U,x,A=0;A<t.length;A++)x=fO(t[A]),U=x.indexOf("="),U==-1?(E.push(""),p.push(x)):(E.push(x.substring(0,U)),p.push(x.substring(U+1)));return{keys:E,values:p}};
_.$a=new Iv(typeof document=="undefined"?null:document);var yvJ,TV4;yvJ=function(){var t=_.Ui.__SAPISID||_.Ui.__APISID||_.Ui.__3PSAPISID||_.Ui.__1PSAPISID||_.Ui.__OVERRIDE_SID;if(t)return!0;typeof document!=="undefined"&&(t=new Iv(document),t=t.get("SAPISID")||t.get("APISID")||t.get("__Secure-3PAPISID")||t.get("__Secure-1PAPISID"));return!!t};
TV4=function(t,E,p,U){(t=_.Ui[t])||typeof document==="undefined"||(t=(new Iv(document)).get(E));return t?sc0(t,p,U):null};
_.V5O=function(t){var E=NVT(_.Ui==null?void 0:_.Ui.location.href),p=[];if(yvJ()){E=E.indexOf("https:")==0||E.indexOf("chrome-extension:")==0||E.indexOf("chrome-untrusted://new-tab-page")==0||E.indexOf("moz-extension:")==0;var U=E?_.Ui.__SAPISID:_.Ui.__APISID;U||typeof document==="undefined"||(U=new Iv(document),U=U.get(E?"SAPISID":"APISID")||U.get("__Secure-3PAPISID"));(U=U?sc0(U,E?"SAPISIDHASH":"APISIDHASH",t):null)&&p.push(U);E&&((E=TV4("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",t))&&p.push(E),
(t=TV4("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",t))&&p.push(t))}return p.length==0?null:p.join(" ")};var oOG=function(){this.minSize=1024};
oOG.prototype.compress=function(t){var E,p,U,x;return _.q(function(A){switch(A.nextAddress){case 1:return E=new CompressionStream("gzip"),p=(new Response(E.readable)).arrayBuffer(),U=E.writable.getWriter(),A.yield(U.write((new TextEncoder).encode(t)),2);case 2:return A.yield(U.close(),3);case 3:return x=Uint8Array,A.yield(p,4);case 4:return A.return(new x(A.yieldResult))}})};
oOG.prototype.isSupported=function(t){return t<this.minSize?!1:typeof CompressionStream!=="undefined"};var W7W=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(W7W,_.w6);var nu=function(t,E){this.intervalMs=t;this.callback=E;this.enabled=!1;this.nowFn=function(){return _.Z1()};
this.lastTimeMs=this.nowFn()};
nu.prototype.setInterval=function(t){this.intervalMs=t;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
nu.prototype.start=function(){var t=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){t.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
nu.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
nu.prototype.tick=function(){var t=this;if(this.enabled){var E=Math.max(this.nowFn()-this.lastTimeMs,0);E<this.intervalMs*.8?this.timer=setTimeout(function(){t.tick()},this.intervalMs-E):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var $QG=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u($QG,_.w6);var K7f=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(K7f,_.w6);var vOm=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(vOm,_.w6);vOm.prototype.getTransmissionType=function(){return _.Et(this,1)};
vOm.prototype.getRetryCount=function(){return _.kW(this,3)};var Ca$=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Ca$,_.w6);var Nh=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Nh,_.w6);var QaY=function(t){$Z(jal,1,t)};
Nh.prototype.getModel=function(){return _.th(this,6)};
var yWo=_.hG(Nh);var SJp=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(SJp,_.w6);var RZO=["platform","platformVersion","architecture","model","uaFullVersion"],jal=new Nh,Vit=null;var DS=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(DS,_.w6);var cW0=function(t){return _.GM(t,1,1)};var tC4=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t,4)};
_.u(tC4,_.w6);_.sk=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t,36)};
_.u(_.sk,_.w6);_.sk.prototype.getExperimentIds=function(){return _.lJ(this,W7W,16)};var EwX=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t,19)};
_.u(EwX,_.w6);EwX.prototype.setLogSource=function(t){return _.GM(this,2,t)};
EwX.prototype.setScheduler=function(t){return _.GM(this,10,t)};var U$W=function(t,E){this.isServiceWorkerScope=E=E===void 0?!1:E;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new EwX;Number.isInteger(t)&&this.logRequest.setLogSource(t);E||(this.locale=document.documentElement.getAttribute("lang"));pvf(this,new DS)};
U$W.prototype.setLogSource=function(t){this.logRequest.setLogSource(t);return this};
var pvf=function(t,E){_.FU(t.logRequest,1,E);_.Et(E,1)||cW0(E);t.isServiceWorkerScope||(E=Lu(t),_.th(E,5)||_.Lq(E,5,t.locale));t.uach&&(E=Lu(t),_.lJ(E,Nh,9)||_.FU(E,9,t.uach))},x$p=function(t,E){t.transmissionType=E},Ato=function(t){var E=E===void 0?RZO:E;
var p=t.isServiceWorkerScope?void 0:yX();p?r6i(p,E).then(function(U){t.uach=yWo(U!=null?U:"[]");U=Lu(t);_.FU(U,9,t.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},Lu=function(t){var E=_.lJ(t.logRequest,DS,1);
E||(E=new DS,pvf(t,E));t=E;E=_.lJ(t,SJp,11);E||(E=new SJp,_.FU(t,11,E));return E};
U$W.prototype.build=function(t,E,p,U,x,A){E=E===void 0?0:E;p=p===void 0?0:p;U=U===void 0?null:U;x=x===void 0?0:x;A=A===void 0?0:A;if(!this.isServiceWorkerScope){var m=Lu(this);var b=new vOm;b=_.GM(b,1,this.transmissionType);b=_.gi(b,2,this.isFinal);p=_.Ah(b,3,p>0?p:void 0);p=_.Ah(p,4,x>0?x:void 0);p=_.Ah(p,5,A>0?A:void 0);x=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;A=x[_.Mf]|0;p=Or(p,A)?p:G5O(p,x,A)?l9K(p,x):new p.constructor(PK(x,A,!0));_.FU(m,10,p)}m=this.logRequest.clone();p=Date.now().toString();
m=_.nM(m,4,ke(p));t=t.slice();t=$Z(m,3,t);U&&(m=new $QG,U=_.Ah(m,13,U),m=new K7f,U=_.FU(m,2,U),m=new tC4,U=_.FU(m,1,U),U=_.GM(U,2,9),_.FU(t,18,U));E&&_.cE(t,14,E);return t};Oh.prototype.currBackoffCount_=0;Oh.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Oh.prototype.getValue=function(){return this.currValue_};
var Yjp=function(t){t.currBaseValue_=Math.min(t.maxValue_,t.currBaseValue_*t.backoffFactor_);t.currValue_=Math.min(t.maxValue_,t.currBaseValue_+(t.randomFactor_?Math.round(t.randomFactor_*(Math.random()-.5)*2*t.currBaseValue_):0));t.currBackoffCount_++};var AG4=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t,8)};
_.u(AG4,_.w6);var MCX=_.hG(AG4);var YSX=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(YSX,_.w6);var Pf;Pf=new M8r;var TG=function(t){_.PQ.call(this);var E=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9972_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$9972_sendBeaconApiEnabled=!1;this.logSource=t.logSource;this.getAuthHeaderValue=
t.getAuthHeaderValue||function(){};
this.logRequestBuilder=new U$W(t.logSource,t.isServiceWorkerScope);this.network=t.network||null;this.productID=t.productID||null;this.bufferSize=1E3;this.clearcutUrl=t.urlOverride||null;this.sessionIndex=t.sessionIndex||null;this.disableAutomaticFlush=t.disableAutomaticFlush||!1;this.withCredentials=!t.disableWithCredentials;this.isServiceWorkerScope=t.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!yX()&&!!yX().navigator&&yX().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(m$r())).searchParams&&!!(new URL(m$r())).searchParams.set;var p=cW0(new DS);pvf(this.logRequestBuilder,p);this.flushBackoff=new Oh(1E4,3E5,.1);t=bws(this,t.backgroundJobDeferrer);this.JSC$9972_flushTimer=new nu(this.flushBackoff.getValue(),t);this.backupTimer=new nu(6E5,t);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){iwr(E);
var U;(U=E.metalogService)==null||U.flush()}}),document.addEventListener("pagehide",function(){iwr(E);
var U;(U=E.metalogService)==null||U.flush()}))};
_.u(TG,_.PQ);var bws=function(t,E){return t.isBrowserSupported?E?function(){E().then(function(){t.flush()})}:function(){t.flush()}:function(){}};
TG.prototype.disposeInternal=function(){iwr(this);this.JSC$9972_flushTimer.stop();this.backupTimer.stop();_.PQ.prototype.disposeInternal.call(this)};
var qj4=function(t){t.clearcutUrl||(t.clearcutUrl=m$r());try{return(new URL(t.clearcutUrl)).toString()}catch(E){return(new URL(t.clearcutUrl,yX().location.origin)).toString()}};
TG.prototype.dispatch=function(t){if(t instanceof _.sk)this.log(t);else try{var E=new _.sk,p=t.serialize();var U=_.Lq(E,8,p);this.log(U)}catch(x){oq(this,4,1)}};
var oq=function(t,E,p){t.metalogService&&t.metalogService.increment(E,p)};
TG.prototype.log=function(t){oq(this,2,1);if(this.isBrowserSupported){t=t.clone();var E=this.sequencePosition++;t=_.cE(t,21,E);this.componentId&&_.Lq(t,26,this.componentId);E=t;if(TZ_(_.sa(E,1))==null){var p=Date.now();p=Number.isFinite(p)?p.toString():"0";_.nM(E,1,ke(p))}_.PGY(_.sa(E,15))!=null||_.cE(E,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(p=this.experimentIds.clone(),_.FU(E,16,p));oq(this,1,1);E=this.pendingEvents.length-this.bufferSize+1;E>0&&(this.pendingEvents.splice(0,E),
this.numLogsDroppedSinceLastFlush+=E,oq(this,3,E));this.pendingEvents.push(t);this.disableAutomaticFlush||this.JSC$9972_flushTimer.enabled||this.JSC$9972_flushTimer.start()}};
TG.prototype.flush=function(t,E){var p=this;if(this.pendingEvents.length===0)t&&t();else if(this.JSC$9972_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,HwX(this);else{var U=Date.now();if(this.noFlushUntilMs>U&&this.startWaitingMs<U)E&&E("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?x$p(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var x=this.pendingEvents.length,
A=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),m=this.getAuthHeaderValue();if(m&&this.lastFailedAuth===m)E&&E("stale-auth-token");else{this.pendingEvents=[];this.JSC$9972_flushTimer.enabled&&this.JSC$9972_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;U=A.serialize();var b;this.JSC$9972_compressor&&this.JSC$9972_compressor.isSupported(U.length)&&
(b=this.JSC$9972_compressor.compress(U));var f=fp3(this,U,m),B=function(Q){p.flushBackoff.reset();p.JSC$9972_flushTimer.setInterval(p.flushBackoff.getValue());if(Q){var C=null;try{var d=JSON.stringify(JSON.parse(Q.replace(")]}'\n","")));C=MCX(d)}catch(I){}C&&(Q=Number(Sh(C,1,_.Nf("-1"))),Q>0&&(p.startWaitingMs=Date.now(),p.noFlushUntilMs=p.startWaitingMs+Q),Hl0(C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Pf.fieldIndex),ilD(C,Pf.fieldIndex),C=Pf.ctor?Pf.getExtensionFn(C,Pf.ctor,Pf.fieldIndex,
Pf.JSC$9152_hasMessageId):Pf.getExtensionFn(C,Pf.fieldIndex,null,Pf.JSC$9152_hasMessageId),C=C===null?void 0:C)&&(C=_.kW(C,1,-1),C!==-1&&(p.flushBackoff=new Oh(C<1?1:C,3E5,.1),p.JSC$9972_flushTimer.setInterval(p.flushBackoff.getValue())))}t&&t();p.numRetriesSinceLastSuccessfulFlush=0},R=function(Q,C){var d=_.jd(A,_.sk,3,_.ri());
var I=Number(Sh(A,14));Yjp(p.flushBackoff);p.JSC$9972_flushTimer.setInterval(p.flushBackoff.getValue());Q===401&&m&&(p.lastFailedAuth=m);I&&(p.numLogsDroppedSinceLastFlush+=I);C===void 0&&(C=p.isRetryable(Q));C&&(p.pendingEvents=d.concat(p.pendingEvents),p.disableAutomaticFlush||p.JSC$9972_flushTimer.enabled||p.JSC$9972_flushTimer.start());oq(p,7,1);E&&E("net-send-failed",Q);++p.numRetriesSinceLastSuccessfulFlush},V=function(){p.network&&p.network.send(f,B,R)};
b?b.then(function(Q){oq(p,5,x);f.requestHeaders["Content-Encoding"]="gzip";f.requestHeaders["Content-Type"]="application/binary";f.body=Q;f.bodyType=2;V()},function(){oq(p,6,x);
V()}):V()}}}};
var fp3=function(t,E,p){p=p===void 0?null:p;var U=U===void 0?t.withCredentials:U;var x={},A=new URL(qj4(t));p&&(x.Authorization=p);t.sessionIndex&&(x["X-Goog-AuthUser"]=t.sessionIndex,A.searchParams.set("authuser",t.sessionIndex));t.pageId&&(Object.defineProperty(x,"X-Goog-PageId",{value:t.pageId}),A.searchParams.set("pageId",t.pageId));return{url:A.toString(),body:E,bodyType:1,requestHeaders:x,requestType:"POST",withCredentials:U,timeoutMillis:t.timeoutMillis}},iwr=function(t){t.logRequestBuilder.isFinal=
!0;
t.flush();t.logRequestBuilder.isFinal=!1},HwX=function(t){Bh4(t,function(E,p){E=new URL(E);
E.searchParams.set("format","json");var U=!1;try{U=yX().navigator.sendBeacon(E.toString(),p.serialize())}catch(x){}U||(t.isSendBeaconSupported=!1);return U})},Bh4=function(t,E){if(t.pendingEvents.length!==0){var p=new URL(qj4(t));
p.searchParams.delete("format");var U=t.getAuthHeaderValue();U&&p.searchParams.set("auth",U);p.searchParams.set("authuser",t.sessionIndex||"0");for(U=0;U<10&&t.pendingEvents.length;++U){var x=t.pendingEvents.slice(0,32),A=t.logRequestBuilder.build(x,t.numLogsDroppedSinceLastFlush,t.numRetriesSinceLastSuccessfulFlush,t.productID,t.persistedLogRecoveredCount,t.persistedLogExpiredCount);if(!E(p.toString(),A)){++t.numRetriesSinceLastSuccessfulFlush;break}t.numLogsDroppedSinceLastFlush=0;t.numRetriesSinceLastSuccessfulFlush=
0;t.persistedLogRecoveredCount=0;t.persistedLogExpiredCount=0;t.pendingEvents=t.pendingEvents.slice(x.length)}t.JSC$9972_flushTimer.enabled&&t.JSC$9972_flushTimer.stop()}};
TG.prototype.isRetryable=function(t){return 500<=t&&t<600||t===401||t===0};
var m$r=function(){return"https://play.google.com/log?format=json&hasfast=true"};var wv4=function(){this.abortSupported=typeof AbortController!=="undefined"};
wv4.prototype.send=function(t,E,p){var U=this,x,A,m,b,f,B,R,V,Q,C;return _.q(function(d){switch(d.nextAddress){case 1:return A=(x=U.abortSupported?new AbortController:void 0)?setTimeout(function(){x.abort()},t.timeoutMillis):void 0,_.aR(d,2,3),m=Object.assign({},{method:t.requestType,
headers:Object.assign({},t.requestHeaders)},t.body&&{body:t.body},t.withCredentials&&{credentials:"include"},{signal:t.timeoutMillis&&x?x.signal:null}),d.yield(fetch(t.url,m),5);case 5:b=d.yieldResult;if(b.status!==200){(f=p)==null||f(b.status);d.jumpTo(3);break}if((B=E)==null){d.jumpTo(7);break}return d.yield(b.text(),8);case 8:B(d.yieldResult);case 7:case 3:_.FQ(d);clearTimeout(A);_.Gc(d,0);break;case 2:R=_.nB(d);switch((V=R)==null?void 0:V.name){case "AbortError":(Q=p)==null||Q(408);break;default:(C=
p)==null||C(400)}d.jumpTo(3)}})};
wv4.prototype.getTransmissionType=function(){return 4};_.av=function(t,E){E=E===void 0?"0":E;_.PQ.call(this);this.logSource=t;this.sessionIndex=E;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9990_clearExperimentIds=this.productID=null;this.JSC$9990_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.u(_.av,_.PQ);var hZE=function(t,E){t.buildLabel=E;return t},XCJ=function(t,E){t.network=E;
return t},eZO=function(t,E){t.JSC$9990_clearExperimentIds=E},OR$=function(t){t.JSC$9990_sendBeaconApiEnabled=!0;
return t};
_.av.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.av.prototype.build=function(){this.network||(this.network=new wv4);var t=new TG({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.V5O,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.ed(this,t);if(this.buildLabel){var E=this.buildLabel,p=
Lu(t.logRequestBuilder);_.Lq(p,7,E)}t.JSC$9972_compressor=new oOG;this.componentId&&(t.componentId=this.componentId);this.productID&&(t.productID=this.productID);this.pageId&&(t.pageId=this.pageId);this.JSC$9990_clearExperimentIds&&((p=this.JSC$9990_clearExperimentIds)?(t.experimentIds||(t.experimentIds=new W7W),E=t.experimentIds,p=p.serialize(),_.Lq(E,4,p)):t.experimentIds&&_.nM(t.experimentIds,4));this.JSC$9990_sendBeaconApiEnabled&&(t.JSC$9972_sendBeaconApiEnabled=t.isSendBeaconSupported);Ato(t.logRequestBuilder);
this.bufferSize&&(t.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(t);return t};var l3L=function(t,E,p,U,x,A,m){t=t===void 0?-1:t;E=E===void 0?"":E;p=p===void 0?"":p;U=U===void 0?!1:U;x=x===void 0?"":x;_.PQ.call(this);this.logSource=t;this.componentId=E;A?E=A:(t=new _.av(t,"0"),t.componentId=E,_.ed(this,t),p!==""&&(t.destinationUrl=p),U&&(t.serviceWorkerScopeEnabled=!0),x&&hZE(t,x),m&&XCJ(t,m),E=t.build());this.JSC$9994_transport=E};
_.u(l3L,_.PQ);l3L.prototype.flush=function(t){t=t||[];if(t.length){for(var E=new z2o,p=[],U=0;U<t.length;U++){var x=t[U],A=nOo(x);p.push(A);x.clear()}$Z(E,1,p);this.JSC$9994_transport.dispatch(E);this.JSC$9994_transport.flush()}};var RgW=function(t){this.cellValue=t};var yD=function(t,E,p){this.JSC$9999_metricName=t;this.cellType=E;this.fields=p||[];this.cellMap=new Map},G$0=function(t){return t.fields.map(function(E){return E.fieldType})},l8s=function(t){return t.fields.map(function(E){return E.fieldName})};
_.Y=yD.prototype;_.Y.addCell=function(t){var E=_.t9.apply(1,arguments),p=this.getCells(E);p?p.push(new RgW(t)):this.JSC$9999_setCell(t,E)};
_.Y.JSC$9999_setCell=function(t){var E=this.JSC$9999_getKey(_.t9.apply(1,arguments));this.cellMap.set(E,[new RgW(t)])};
_.Y.getCells=function(){var t=this.JSC$9999_getKey(_.t9.apply(0,arguments));return this.cellMap.has(t)?this.cellMap.get(t):void 0};
_.Y.getCell=function(){var t=this.getCells(_.t9.apply(0,arguments));return t&&t.length?t[0]:void 0};
_.Y.clear=function(){this.cellMap.clear()};
_.Y.JSC$9999_getKey=function(){var t=_.t9.apply(0,arguments);return t?t.join(","):"key"};var VCm=function(t,E){yD.call(this,t,3,E)};
_.u(VCm,yD);VCm.prototype.JSC$10002_incrementCounterBy=function(t){var E=_.t9.apply(1,arguments),p=0,U=this.getCell(E);U&&(p=U.cellValue);this.JSC$9999_setCell(p+t,E)};var Qmo=function(t,E){yD.call(this,t,2,E)};
_.u(Qmo,yD);Qmo.prototype.record=function(t){this.addCell(t,_.t9.apply(1,arguments))};_.SI=function(t){this.id=t};
_.SI.prototype.toString=function(){return this.id};_.dV=function(t,E){this.type=t instanceof _.SI?String(t):t;this.currentTarget=this.target=E;this.defaultPrevented=this.propagationStopped_=!1};
_.dV.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.dV.prototype.preventDefault=function(){this.defaultPrevented=!0};_.cf=function(t,E){_.dV.call(this,t?t.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;t&&this.init(t,E)};
_.Oa(_.cf,_.dV);
_.cf.prototype.init=function(t,E){var p=this.type=t.type,U=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;this.target=t.target||t.srcElement;this.currentTarget=E;E=t.relatedTarget;E||(p=="mouseover"?E=t.fromElement:p=="mouseout"&&(E=t.toElement));this.relatedTarget=E;U?(this.clientX=U.clientX!==void 0?U.clientX:U.pageX,this.clientY=U.clientY!==void 0?U.clientY:U.pageY,this.screenX=U.screenX||0,this.screenY=U.screenY||0):(this.offsetX=_.no||t.offsetX!==void 0?t.offsetX:t.layerX,
this.offsetY=_.no||t.offsetY!==void 0?t.offsetY:t.layerY,this.clientX=t.clientX!==void 0?t.clientX:t.pageX,this.clientY=t.clientY!==void 0?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0);this.button=t.button;this.keyCode=t.keyCode||0;this.key=t.key||"";this.charCode=t.charCode||(p=="keypress"?t.keyCode:0);this.ctrlKey=t.ctrlKey;this.altKey=t.altKey;this.shiftKey=t.shiftKey;this.metaKey=t.metaKey;this.pointerId=t.pointerId||0;this.pointerType=t.pointerType;this.state=t.state;
this.timeStamp=t.timeStamp;this.event_=t;t.defaultPrevented&&_.cf.superClass_.preventDefault.call(this)};
_.cf.prototype.isButton=function(t){return this.event_.button==t};
_.cf.prototype.stopPropagation=function(){_.cf.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.cf.prototype.preventDefault=function(){_.cf.superClass_.preventDefault.call(this);var t=this.event_;t.preventDefault?t.preventDefault():t.returnValue=!1};var CKW="closure_listenable_"+(Math.random()*1E6|0),tU=function(t){return!(!t||!t[CKW])};var jm4=0;var rtW=function(t,E,p,U,x){this.listener=t;this.proxy=null;this.src=E;this.type=p;this.capture=!!U;this.handler=x;this.key=++jm4;this.removed=this.callOnce=!1},kqo=function(t){t.removed=!0;
t.listener=null;t.proxy=null;t.src=null;t.handler=null};hg.prototype.add=function(t,E,p,U,x){var A=t.toString();t=this.listeners[A];t||(t=this.listeners[A]=[],this.typeCount_++);var m=d$r(t,E,U,x);m>-1?(E=t[m],p||(E.callOnce=!1)):(E=new rtW(E,this.src,A,!!U,x),E.callOnce=p,t.push(E));return E};
hg.prototype.remove=function(t,E,p,U){t=t.toString();if(!(t in this.listeners))return!1;var x=this.listeners[t];E=d$r(x,E,p,U);return E>-1?(kqo(x[E]),_.X8L(x,E),x.length==0&&(delete this.listeners[t],this.typeCount_--),!0):!1};
var ur0=function(t,E){var p=E.type;if(!(p in t.listeners))return!1;var U=_.NK(t.listeners[p],E);U&&(kqo(E),t.listeners[p].length==0&&(delete t.listeners[p],t.typeCount_--));return U};
hg.prototype.removeAll=function(t){t=t&&t.toString();var E=0,p;for(p in this.listeners)if(!t||p==t){for(var U=this.listeners[p],x=0;x<U.length;x++)++E,kqo(U[x]);delete this.listeners[p];this.typeCount_--}return E};
hg.prototype.getListener=function(t,E,p,U){t=this.listeners[t.toString()];var x=-1;t&&(x=d$r(t,E,p,U));return x>-1?t[x]:null};
hg.prototype.hasListener=function(t,E){var p=t!==void 0,U=p?t.toString():"",x=E!==void 0;return _.Kq.some(this.listeners,function(A){for(var m=0;m<A.length;++m)if(!(p&&A[m].type!=U||x&&A[m].capture!=E))return!0;return!1})};
var d$r=function(t,E,p,U){for(var x=0;x<t.length;++x){var A=t[x];if(!A.removed&&A.listener==E&&A.capture==!!p&&A.handler==U)return x}return-1};var Jt0,Ips,gwW,OwZ,Xvo,pN,Wu,HMO,hgr,apG,EH,egT,ZwX;Jt0="closure_lm_"+(Math.random()*1E6|0);Ips={};gwW=0;_.vu=function(t,E,p,U,x){if(U&&U.once)return pN(t,E,p,U,x);if(Array.isArray(E)){for(var A=0;A<E.length;A++)_.vu(t,E[A],p,U,x);return null}p=ZwX(p);return tU(t)?t.listen(E,p,_.o0(U)?!!U.capture:!!U,x):OwZ(t,E,p,!1,U,x)};
OwZ=function(t,E,p,U,x,A){if(!E)throw Error("va");var m=_.o0(x)?!!x.capture:!!x,b=EH(t);b||(t[Jt0]=b=new hg(t));p=b.add(E,p,U,m,A);if(p.proxy)return p;U=Xvo();p.proxy=U;U.src=t;U.listener=p;if(t.addEventListener)_.zco||(x=m),x===void 0&&(x=!1),t.addEventListener(E.toString(),U,x);else if(t.attachEvent)t.attachEvent(hgr(E.toString()),U);else if(t.addListener&&t.removeListener)t.addListener(U);else throw Error("wa");gwW++;return p};
Xvo=function(){var t=apG,E=function(p){return t.call(E.src,E.listener,p)};
return E};
pN=function(t,E,p,U,x){if(Array.isArray(E)){for(var A=0;A<E.length;A++)pN(t,E[A],p,U,x);return null}p=ZwX(p);return tU(t)?t.listenOnce(E,p,_.o0(U)?!!U.capture:!!U,x):OwZ(t,E,p,!0,U,x)};
_.pJ=function(t,E,p,U,x){if(Array.isArray(E))for(var A=0;A<E.length;A++)_.pJ(t,E[A],p,U,x);else U=_.o0(U)?!!U.capture:!!U,p=ZwX(p),tU(t)?t.unlisten(E,p,U,x):t&&(t=EH(t))&&(E=t.getListener(E,p,U,x))&&Wu(E)};
Wu=function(t){if(typeof t==="number"||!t||t.removed)return!1;var E=t.src;if(tU(E))return ur0(E.eventTargetListeners_,t);var p=t.type,U=t.proxy;E.removeEventListener?E.removeEventListener(p,U,t.capture):E.detachEvent?E.detachEvent(hgr(p),U):E.addListener&&E.removeListener&&E.removeListener(U);gwW--;(p=EH(E))?(ur0(p,t),p.typeCount_==0&&(p.src=null,E[Jt0]=null)):kqo(t);return!0};
HMO=function(t,E,p,U,x){p=ZwX(p);U=!!U;return tU(t)?t.getListener(E,p,U,x):t?(t=EH(t))?t.getListener(E,p,U,x):null:null};
hgr=function(t){return t in Ips?Ips[t]:Ips[t]="on"+t};
apG=function(t,E){if(t.removed)t=!0;else{E=new _.cf(E,this);var p=t.listener,U=t.handler||t.src;t.callOnce&&Wu(t);t=p.call(U,E)}return t};
EH=function(t){t=t[Jt0];return t instanceof hg?t:null};
egT="__closure_events_fn_"+(Math.random()*1E9>>>0);ZwX=function(t){if(typeof t==="function")return t;t[egT]||(t[egT]=function(E){return t.handleEvent(E)});
return t[egT]};_.UH=function(){_.PQ.call(this);this.eventTargetListeners_=new hg(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.Oa(_.UH,_.PQ);_.UH.prototype[CKW]=!0;_.Y=_.UH.prototype;_.Y.setParentEventTarget=function(t){this.parentEventTarget_=t};
_.Y.addEventListener=function(t,E,p,U){_.vu(this,t,E,p,U)};
_.Y.removeEventListener=function(t,E,p,U){_.pJ(this,t,E,p,U)};
_.Y.dispatchEvent=function(t){var E,p=this.parentEventTarget_;if(p)for(E=[];p;p=p.parentEventTarget_)E.push(p);p=this.actualEventTarget_;var U=t.type||t;if(typeof t==="string")t=new _.dV(t,p);else if(t instanceof _.dV)t.target=t.target||p;else{var x=t;t=new _.dV(U,p);_.Kq.extend(t,x)}x=!0;var A;if(E)for(A=E.length-1;!t.propagationStopped_&&A>=0;A--){var m=t.currentTarget=E[A];x=FWp(m,U,!0,t)&&x}t.propagationStopped_||(m=t.currentTarget=p,x=FWp(m,U,!0,t)&&x,t.propagationStopped_||(x=FWp(m,U,!1,t)&&
x));if(E)for(A=0;!t.propagationStopped_&&A<E.length;A++)m=t.currentTarget=E[A],x=FWp(m,U,!1,t)&&x;return x};
_.Y.disposeInternal=function(){_.UH.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.Y.listen=function(t,E,p,U){return this.eventTargetListeners_.add(String(t),E,!1,p,U)};
_.Y.listenOnce=function(t,E,p,U){return this.eventTargetListeners_.add(String(t),E,!0,p,U)};
_.Y.unlisten=function(t,E,p,U){return this.eventTargetListeners_.remove(String(t),E,p,U)};
_.Y.removeAllListeners=function(t){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(t):0};
var FWp=function(t,E,p,U){E=t.eventTargetListeners_.listeners[String(E)];if(!E)return!0;E=E.concat();for(var x=!0,A=0;A<E.length;++A){var m=E[A];if(m&&!m.removed&&m.capture==p){var b=m.listener,f=m.handler||m.src;m.callOnce&&ur0(t.eventTargetListeners_,m);x=b.call(f,U)!==!1&&x}}return x&&!U.defaultPrevented};
_.UH.prototype.getListener=function(t,E,p,U){return this.eventTargetListeners_.getListener(String(t),E,p,U)};
_.UH.prototype.hasListener=function(t,E){return this.eventTargetListeners_.hasListener(t!==void 0?String(t):void 0,E)};var xi=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(t){return t&&AsyncContext.Snapshot.wrap(t)}:function(t){return t};var zgm=function(t,E){this.create_=t;this.reset_=E;this.occupants_=0;this.JSC$10034_head_=null};
zgm.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var t=this.JSC$10034_head_;this.JSC$10034_head_=t.next;t.next=null}else t=this.create_();return t};
zgm.prototype.put=function(t){this.reset_(t);this.occupants_<100&&(this.occupants_++,t.next=this.JSC$10034_head_,this.JSC$10034_head_=t)};var lpm=function(){this.workTail_=this.workHead_=null};
lpm.prototype.add=function(t,E){var p=dO_.get();p.set(t,E);this.workTail_?this.workTail_.next=p:this.workHead_=p;this.workTail_=p};
lpm.prototype.remove=function(){var t=null;this.workHead_&&(t=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),t.next=null);return t};
var dO_=new zgm(function(){return new Gqo},function(t){return t.reset()}),Gqo=function(){this.next=this.scope=this.fn=null};
Gqo.prototype.set=function(t,E){this.fn=t;this.scope=E;this.next=null};
Gqo.prototype.reset=function(){this.next=this.scope=this.fn=null};var nwZ,u3Y,k3E,NhT;u3Y=!1;k3E=new lpm;_.AU=function(t,E){nwZ||NhT();u3Y||(nwZ(),u3Y=!0);k3E.add(t,E)};
NhT=function(){var t=Promise.resolve(void 0);nwZ=function(){t.then(J6E)}};var D$Z=function(t){t.prototype.$goog_Thenable=!0},smG=function(t){if(!t)return!1;
try{return!!t.$goog_Thenable}catch(E){return!1}};var LWm,PKm,Th3,WWZ,$$m,KWW,ctp,pCX,YBf,xO3,L2j;_.PE=function(t,E){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(t!=_.SM)try{var p=this;t.call(E,function(U){p.resolve_(2,U)},function(U){p.resolve_(3,U)})}catch(U){this.resolve_(3,U)}};
LWm=function(){this.next=this.context=this.JSC$10045_onRejected=this.JSC$10045_onFulfilled=this.child=null;this.always=!1};
LWm.prototype.reset=function(){this.context=this.JSC$10045_onRejected=this.JSC$10045_onFulfilled=this.child=null;this.always=!1};
PKm=new zgm(function(){return new LWm},function(t){t.reset()});
Th3=function(t,E,p){var U=PKm.get();U.JSC$10045_onFulfilled=t;U.JSC$10045_onRejected=E;U.context=p;return U};
_.gu=function(t){if(t instanceof _.PE)return t;var E=new _.PE(_.SM);E.resolve_(2,t);return E};
_.S5=function(t){return new _.PE(function(E,p){p(t)})};
WWZ=function(t,E,p){ow0(t,E,p,null)||_.AU(_.GF(E,t))};
_.Yi=function(t){return new _.PE(function(E,p){var U=t.length,x=[];if(U)for(var A=function(B,R){U--;x[B]=R;U==0&&E(x)},m=function(B){p(B)},b,f=0;f<t.length;f++)b=t[f],WWZ(b,_.GF(A,f),m);
else E(x)})};
$$m=function(t){return new _.PE(function(E){var p=t.length,U=[];if(p)for(var x=function(b,f,B){p--;U[b]=f?{fulfilled:!0,value:B}:{fulfilled:!1,reason:B};p==0&&E(U)},A,m=0;m<t.length;m++)A=t[m],WWZ(A,_.GF(x,m,!0),_.GF(x,m,!1));
else E(U)})};
KWW=function(t){return new _.PE(function(E,p){var U=t.length,x=[];if(U)for(var A=function(B){E(B)},m=function(B,R){U--;
x[B]=R;U==0&&p(x)},b,f=0;f<t.length;f++)b=t[f],WWZ(b,A,_.GF(m,f));
else E(void 0)})};
_.fd=function(){var t,E,p=new _.PE(function(U,x){t=U;E=x});
return new vwo(p,t,E)};
_.PE.prototype.then=function(t,E,p){return yt4(this,xi(typeof t==="function"?t:null),xi(typeof E==="function"?E:null),p)};
D$Z(_.PE);ctp=function(t,E,p,U){SjW(t,Th3(E||_.SM,p||null,U))};
_.Mx=function(t,E){E=xi(E);E=Th3(E,E);E.always=!0;SjW(t,E);return t};
_.PE.prototype.finally=function(t){var E=this;t=xi(t);return new _.PE(function(p,U){ctp(E,function(x){t();p(x)},function(x){t();
U(x)})})};
_.PE.prototype.thenCatch=function(t,E){return yt4(this,null,xi(t),E)};
_.PE.prototype.catch=_.PE.prototype.thenCatch;_.PE.prototype.cancel=function(t){if(this.state_==0){var E=new _.mF(t);_.AU(function(){tir(this,E)},this)}};
var tir=function(t,E){if(t.state_==0)if(t.parent_){var p=t.parent_;if(p.callbackEntries_){for(var U=0,x=null,A=null,m=p.callbackEntries_;m&&(m.always||(U++,m.child==t&&(x=m),!(x&&U>1)));m=m.next)x||(A=m);x&&(p.state_==0&&U==1?tir(p,E):(A?(U=A,U.next==p.callbackEntriesTail_&&(p.callbackEntriesTail_=U),U.next=U.next.next):Eas(p),pCX(p,x,3,E)))}t.parent_=null}else t.resolve_(3,E)},SjW=function(t,E){t.callbackEntries_||t.state_!=2&&t.state_!=3||UO3(t);
t.callbackEntriesTail_?t.callbackEntriesTail_.next=E:t.callbackEntries_=E;t.callbackEntriesTail_=E},yt4=function(t,E,p,U){var x=Th3(null,null,null);
x.child=new _.PE(function(A,m){x.JSC$10045_onFulfilled=E?function(b){try{var f=E.call(U,b);A(f)}catch(B){m(B)}}:A;
x.JSC$10045_onRejected=p?function(b){try{var f=p.call(U,b);f===void 0&&b instanceof _.mF?m(b):A(f)}catch(B){m(B)}}:m});
x.child.parent_=t;SjW(t,x);return x.child};
_.PE.prototype.unblockAndFulfill_=function(t){this.state_=0;this.resolve_(2,t)};
_.PE.prototype.unblockAndReject_=function(t){this.state_=0;this.resolve_(3,t)};
_.PE.prototype.resolve_=function(t,E){this.state_==0&&(this===E&&(t=3,E=new TypeError("xa")),this.state_=1,ow0(E,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=E,this.state_=t,this.parent_=null,UO3(this),t!=3||E instanceof _.mF||xO3(this,E)))};
var ow0=function(t,E,p,U){if(t instanceof _.PE)return ctp(t,E,p,U),!0;if(smG(t))return t.then(E,p,U),!0;if(_.o0(t))try{var x=t.then;if(typeof x==="function")return A60(t,x,E,p,U),!0}catch(A){return p.call(U,A),!0}return!1},A60=function(t,E,p,U,x){var A=!1,m=function(f){A||(A=!0,p.call(x,f))},b=function(f){A||(A=!0,U.call(x,f))};
try{E.call(t,m,b)}catch(f){b(f)}},UO3=function(t){t.executing_||(t.executing_=!0,_.AU(t.executeCallbacks_,t))},Eas=function(t){var E=null;
t.callbackEntries_&&(E=t.callbackEntries_,t.callbackEntries_=E.next,E.next=null);t.callbackEntries_||(t.callbackEntriesTail_=null);return E};
_.PE.prototype.executeCallbacks_=function(){for(var t;t=Eas(this);)pCX(this,t,this.state_,this.result_);this.executing_=!1};
pCX=function(t,E,p,U){if(p==3&&E.JSC$10045_onRejected&&!E.always)for(;t&&t.hadUnhandledRejection_;t=t.parent_)t.hadUnhandledRejection_=!1;if(E.child)E.child.parent_=null,YBf(E,p,U);else try{E.always?E.JSC$10045_onFulfilled.call(E.context):YBf(E,p,U)}catch(x){L2j.call(null,x)}PKm.put(E)};
YBf=function(t,E,p){E==2?t.JSC$10045_onFulfilled.call(t.context,p):t.JSC$10045_onRejected&&t.JSC$10045_onRejected.call(t.context,p)};
xO3=function(t,E){t.hadUnhandledRejection_=!0;_.AU(function(){t.hadUnhandledRejection_&&L2j.call(null,E)})};
L2j=xL;_.mF=function(t){_.tD.call(this,t)};
_.Oa(_.mF,_.tD);_.mF.prototype.name="cancel";var vwo=function(t,E,p){this.promise=t;this.resolve=E;this.reject=p};var mm;_.vQ=function(t,E){_.UH.call(this);this.JSC$10057_interval_=t||1;this.timerObject_=E||_.Ui;this.boundTick_=(0,_.Tg)(this.tick_,this);this.last_=_.Z1()};
_.Oa(_.vQ,_.UH);_.Y=_.vQ.prototype;_.Y.enabled=!1;_.Y.JSC$10059_timer_=null;_.Y.setInterval=function(t){this.JSC$10057_interval_=t;this.JSC$10059_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$10059_timer_&&this.stop()};
_.Y.tick_=function(){if(this.enabled){var t=_.Z1()-this.last_;t>0&&t<this.JSC$10057_interval_*.8?this.JSC$10059_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$10057_interval_-t):(this.JSC$10059_timer_&&(this.timerObject_.clearTimeout(this.JSC$10059_timer_),this.JSC$10059_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.Y.start=function(){this.enabled=!0;this.JSC$10059_timer_||(this.JSC$10059_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$10057_interval_),this.last_=_.Z1())};
_.Y.stop=function(){this.enabled=!1;this.JSC$10059_timer_&&(this.timerObject_.clearTimeout(this.JSC$10059_timer_),this.JSC$10059_timer_=null)};
_.Y.disposeInternal=function(){_.vQ.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
mm=function(t,E,p){if(typeof t==="function")p&&(t=(0,_.Tg)(t,p));else if(t&&typeof t.handleEvent=="function")t=(0,_.Tg)(t.handleEvent,t);else throw Error("ya");return Number(E)>2147483647?-1:_.Ui.setTimeout(t,E||0)};
_.Mif=function(t){var E=null;return(new _.PE(function(p,U){E=mm(function(){p(void 0)},t);
E==-1&&U(Error("za"))})).thenCatch(function(p){_.Ui.clearTimeout(E);
throw p;})};var Fs=function(t){_.PQ.call(this);this.streamzLogger=t;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$10063_flushTimer=new _.vQ(this.flushInterval);this.JSC$10063_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.ed(this,this.JSC$10063_flushTimer)};
_.u(Fs,_.PQ);Fs.prototype.sendIsolatedPayload=function(t){this.shouldSendIsolatedPayload=t;this.invocationLimit=1};
var mOs=function(t){t.JSC$10063_flushTimer.enabled||t.JSC$10063_flushTimer.start();t.invocationCount++;t.invocationCount>=t.invocationLimit&&t.snapshotAndFlush()};
Fs.prototype.snapshotAndFlush=function(){var t=this.metricMap.values();t=[].concat(_.KB(t)).filter(function(E){return E.cellMap.size});
t.length&&this.streamzLogger.flush(t,this.shouldSendIsolatedPayload);bRr(t);this.invocationCount=0;this.JSC$10063_flushTimer.enabled&&this.JSC$10063_flushTimer.stop()};
Fs.prototype.addNewCounter=function(t){var E=_.t9.apply(1,arguments);this.metricMap.has(t)||this.metricMap.set(t,new VCm(t,E))};
Fs.prototype.addNewEventMetric=function(t){var E=_.t9.apply(1,arguments);this.metricMap.has(t)||this.metricMap.set(t,new Qmo(t,E))};
var iRp=function(t,E){return t.disabledMetrics.has(E)?void 0:t.metricMap.get(E)};
Fs.prototype.JSC$10063_incrementCounter=function(t){this.JSC$10063_incrementCounterBy(t,1,_.t9.apply(1,arguments))};
Fs.prototype.JSC$10063_incrementCounterBy=function(t,E){var p=_.t9.apply(2,arguments),U=iRp(this,t);U&&U instanceof VCm&&(U.JSC$10002_incrementCounterBy(E,p),mOs(this))};
Fs.prototype.record=function(t,E){var p=_.t9.apply(2,arguments),U=iRp(this,t);U&&U instanceof Qmo&&(U.record(E,p),mOs(this))};
var bRr=function(t){for(var E=0;E<t.length;E++)t[E].clear()};_.bd=function(t,E,p){p=p===void 0?{}:p;E=Error.call(this,E);this.message=E.message;"stack"in E&&(this.stack=E.stack);this.code=t;this.metadata=p;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.u(_.bd,Error);_.bd.prototype.toString=function(){var t="RpcError("+(gaL(this.code)||String(this.code))+")";this.message&&(t+=": "+this.message);return t};_.qB3=_.Ui.JSON.parse;_.id=_.Ui.JSON.stringify;_.oi=_.Ui.JSON.parse;_.HRZ=function(t){switch(t){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 f3r=function(t){switch(t){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Bss,wC3=function(){};
_.Oa(wC3,_.ZRY);wC3.prototype.createInstance=function(){return new XMLHttpRequest};
Bss=new wC3;_.qx=function(t){_.UH.call(this);this.headers=new Map;this.JSC$10072_xmlHttpFactory_=t||null;this.JSC$10072_active_=!1;this.JSC$10072_xhr_=null;this.JSC$10072_lastUri_="";this.JSC$10072_lastErrorCode_=0;this.JSC$10072_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$10072_timeoutId_=null;this.responseType_="";this.JSC$10072_withCredentials_=!1};
_.Oa(_.qx,_.UH);var RZ4=/^https?$/i,ViX=["POST","PUT"],QaG=[],tll=function(t,E,p,U,x,A,m){var b=new _.qx;QaG.push(b);E&&b.listen("complete",E);b.listenOnce("ready",b.cleanupSend_);A&&(b.timeoutInterval_=Math.max(0,A));m&&(b.JSC$10072_withCredentials_=m);b.send(t,p,U,x)};
_.qx.prototype.cleanupSend_=function(){this.dispose();_.NK(QaG,this)};
_.qx.prototype.send=function(t,E,p,U){if(this.JSC$10072_xhr_)throw Error("Aa`"+this.JSC$10072_lastUri_+"`"+t);E=E?E.toUpperCase():"GET";this.JSC$10072_lastUri_=t;this.JSC$10072_lastError_="";this.JSC$10072_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$10072_active_=!0;this.JSC$10072_xhr_=this.createXhr();this.JSC$10072_xhr_.onreadystatechange=xi((0,_.Tg)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$10072_xhr_.open(E,String(t),!0),this.inOpen_=!1}catch(m){CaW(this,m);return}t=
p||"";p=new Map(this.headers);if(U)if(Object.getPrototypeOf(U)===Object.prototype)for(var x in U)p.set(x,U[x]);else if(typeof U.keys==="function"&&typeof U.get==="function"){x=_.M(U.keys());for(var A=x.next();!A.done;A=x.next())A=A.value,p.set(A,U.get(A))}else throw Error("Ba`"+String(U));U=Array.from(p.keys()).find(function(m){return"content-type"==m.toLowerCase()});
x=_.Ui.FormData&&t instanceof _.Ui.FormData;!_.zt(ViX,E)||U||x||p.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");E=_.M(p);for(U=E.next();!U.done;U=E.next())p=_.M(U.value),U=p.next().value,p=p.next().value,this.JSC$10072_xhr_.setRequestHeader(U,p);this.responseType_&&(this.JSC$10072_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$10072_xhr_&&this.JSC$10072_xhr_.withCredentials!==this.JSC$10072_withCredentials_&&(this.JSC$10072_xhr_.withCredentials=this.JSC$10072_withCredentials_);
try{this.JSC$10072_timeoutId_&&(clearTimeout(this.JSC$10072_timeoutId_),this.JSC$10072_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$10072_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$10072_xhr_.send(t),this.inSend_=!1}catch(m){CaW(this,m)}};
_.qx.prototype.createXhr=function(){return this.JSC$10072_xmlHttpFactory_?this.JSC$10072_xmlHttpFactory_.createInstance():Bss.createInstance()};
_.qx.prototype.timeout_=function(){typeof Gtf!="undefined"&&this.JSC$10072_xhr_&&(this.JSC$10072_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$10072_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var CaW=function(t,E){t.JSC$10072_active_=!1;t.JSC$10072_xhr_&&(t.inAbort_=!0,t.JSC$10072_xhr_.abort(),t.inAbort_=!1);t.JSC$10072_lastError_=E;t.JSC$10072_lastErrorCode_=5;jaT(t);r6r(t)},jaT=function(t){t.errorDispatched_||(t.errorDispatched_=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))};
_.qx.prototype.abort=function(t){this.JSC$10072_xhr_&&this.JSC$10072_active_&&(this.JSC$10072_active_=!1,this.inAbort_=!0,this.JSC$10072_xhr_.abort(),this.inAbort_=!1,this.JSC$10072_lastErrorCode_=t||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),r6r(this))};
_.qx.prototype.disposeInternal=function(){this.JSC$10072_xhr_&&(this.JSC$10072_active_&&(this.JSC$10072_active_=!1,this.inAbort_=!0,this.JSC$10072_xhr_.abort(),this.inAbort_=!1),r6r(this,!0));_.qx.superClass_.disposeInternal.call(this)};
_.qx.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)k3Z(this);else this.onReadyStateChangeEntryPoint_()};
_.qx.prototype.onReadyStateChangeEntryPoint_=function(){k3Z(this)};
var k3Z=function(t){if(t.JSC$10072_active_&&typeof Gtf!="undefined")if(t.inSend_&&_.H7(t)==4)setTimeout(t.onReadyStateChange_.bind(t),0);else if(t.dispatchEvent("readystatechange"),t.isComplete()){t.JSC$10072_active_=!1;try{if(t.isSuccess())t.dispatchEvent("complete"),t.dispatchEvent("success");else{t.JSC$10072_lastErrorCode_=6;try{var E=_.H7(t)>2?t.JSC$10072_xhr_.statusText:""}catch(p){E=""}t.JSC$10072_lastError_=E+" ["+t.getStatus()+"]";jaT(t)}}finally{r6r(t)}}},r6r=function(t,E){if(t.JSC$10072_xhr_){t.JSC$10072_timeoutId_&&
(clearTimeout(t.JSC$10072_timeoutId_),t.JSC$10072_timeoutId_=null);
var p=t.JSC$10072_xhr_;t.JSC$10072_xhr_=null;E||t.dispatchEvent("ready");try{p.onreadystatechange=null}catch(U){}}};
_.qx.prototype.isActive=function(){return!!this.JSC$10072_xhr_};
_.qx.prototype.isComplete=function(){return _.H7(this)==4};
_.qx.prototype.isSuccess=function(){var t=this.getStatus(),E;if(!(E=f3r(t))){if(t=t===0)t=Ogm(String(this.JSC$10072_lastUri_)),t=!RZ4.test(t);E=t}return E};
_.H7=function(t){return t.JSC$10072_xhr_?t.JSC$10072_xhr_.readyState:0};
_.Y=_.qx.prototype;_.Y.getStatus=function(){try{return _.H7(this)>2?this.JSC$10072_xhr_.status:-1}catch(t){return-1}};
_.Y.getResponseText=function(){try{return this.JSC$10072_xhr_?this.JSC$10072_xhr_.responseText:""}catch(t){return""}};
_.Y.getResponse=function(){try{if(!this.JSC$10072_xhr_)return null;if("response"in this.JSC$10072_xhr_)return this.JSC$10072_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$10072_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$10072_xhr_)return this.JSC$10072_xhr_.mozResponseArrayBuffer}return null}catch(t){return null}};
_.Y.getAllResponseHeaders=function(){return this.JSC$10072_xhr_&&_.H7(this)>=2?this.JSC$10072_xhr_.getAllResponseHeaders()||"":""};
_.Y.getLastError=function(){return typeof this.JSC$10072_lastError_==="string"?this.JSC$10072_lastError_:String(this.JSC$10072_lastError_)};var a3i=function(){};
a3i.prototype.send=function(t,E,p){E=E===void 0?function(){}:E;
p=p===void 0?function(){}:p;
tll(t.url,function(U){U=U.target;U.isSuccess()?E(U.getResponseText()):p(U.getStatus())},t.requestType,t.body,t.requestHeaders,t.timeoutMillis,t.withCredentials)};
a3i.prototype.getTransmissionType=function(){return 1};var dO0=function(t,E){this.eRV=t;this.event=E;this.startTime=zg()},na_;
dO0.prototype.done=function(){this.eRV.kT(this.event,zg()-this.startTime)};
var fJ=function(){GG.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.u(fJ,GG);_.B7=function(t,E,p){var U=zg();E=E();t.kT(p,zg()-U);return E};
na_=function(){fJ.apply(this,arguments)};
_.u(na_,fJ);_.Y=na_.prototype;_.Y.xHG=function(){};
_.Y.hv=function(){};
_.Y.kT=function(){};
_.Y.logError=function(){};
_.Y.zb=function(){};
_.Y.tAn=function(){};
_.Y.h8G=function(){};
_.Y.lrO=function(){};
var u3G=function(t){fJ.call(this);var E=this;this.d9=t;this.TEST_ONLY={uBQ:function(){return E.d9},
getExperimentIds:function(){return E.d9.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void E.d9.dispose()})};
_.u(u3G,fJ);_.Y=u3G.prototype;_.Y.update=function(t){this.d9.dispose();this.d9=t};
_.Y.hv=function(t){this.d9.hv(t)};
_.Y.kT=function(t,E){this.d9.kT(t,E)};
_.Y.logError=function(t){this.d9.logError(t)};
_.Y.zb=function(){this.d9.zb()};
_.Y.tAn=function(t){this.d9.tAn(t)};
_.Y.h8G=function(t){this.d9.h8G(t)};
_.Y.lrO=function(t){this.d9.lrO(t)};
_.Y.xHG=function(t){this.d9.xHG(t)};
var J6Z=function(t,E){_.PQ.call(this);var p=this;this.callback=t;this.nJQ=E;this.yJq=-E;this.addOnDisposeCallback(function(){return void clearTimeout(p.timer)})};
_.u(J6Z,_.PQ);var I3Z=function(t){if(t.timer===void 0){var E=Math.max(0,t.yJq+t.nJQ-zg());t.timer=setTimeout(function(){try{t.callback()}finally{t.yJq=zg(),t.timer=void 0}},E)}},gam=function(t,E){fJ.call(this);
this.metrics=t;this.kj=E};
_.u(gam,fJ);_.Y=gam.prototype;_.Y.xHG=function(t){this.metrics.vRu.record(t,this.kj)};
_.Y.hv=function(t){this.metrics.eventCount.increment(t,this.kj)};
_.Y.kT=function(t,E){this.metrics.iyz.record(E,t,this.kj)};
_.Y.logError=function(t){this.metrics.errorCount.increment(t,this.kj)};
_.Y.tAn=function(t){this.metrics.kwu.increment(t,this.kj)};
_.Y.h8G=function(t){this.metrics.wZf.increment(t,this.kj)};
_.Y.lrO=function(t){this.metrics.nsF.increment(t,this.kj)};
var Nst=function(t,E){E=E===void 0?[]:E;var p={kj:t.kj||"_",cMC:t.cMC||[],jFI:t.jFI|0,destinationUrl:t.destinationUrl,dG5:t.dG5||function(){},
kOy:t.kOy||function(A,m){return G30(A,m,p.dG5,p.destinationUrl)}},U=p.kOy("52",p.cMC.concat(E));
gam.call(this,{vRu:new iNG(U),errorCount:new BVW(U),eventCount:new HNp(U),iyz:new f8s(U),s6C:new qJm(U),kwu:new wy4(U),wZf:new R2r(U),nsF:new VKZ(U)},p.kj);var x=this;this.TEST_ONLY={getExperimentIds:function(){return x.options.cMC.concat(x.v9J).sort(function(A,m){return A-m})}};
this.options=p;this.service=U;this.h4n=!t.kOy;this.flushDebouncer=new J6Z(function(){return void x.service.snapshotAndFlush()},p.jFI);
this.addOnDisposeCallback(function(){x.flushDebouncer.dispose();x.h4n&&x.service.dispose()});
(this.v9J=E.slice()).sort(_.FJi)};
_.u(Nst,gam);Nst.prototype.zb=function(){I3Z(this.flushDebouncer)};var Q5E=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Q5E,_.w6);_.Cxj=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(_.Cxj,_.w6);var HS=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t,0,HS.messageId)};
_.u(HS,_.w6);var ZRG=_.mEi(HS);HS.messageId="bfkj";var qBD=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(qBD,_.w6);var ORW=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(ORW,_.w6);var XCr=_.hG(ORW);_.hf=function(){var t=this;this.promise=new Promise(function(E,p){t.resolve=E;t.reject=p})};_.w0=function(t){_.PQ.call(this);var E=this;this.gCi=Math.floor(Math.random()*200);this.bs5=new ORW;if("challenge"in t&&ZRG(t.challenge)){var p=_.th(t.challenge,4,void 0,lG);var U=_.th(t.challenge,5,void 0,lG);_.th(t.challenge,7,void 0,lG)&&(this.bs5=XCr(_.th(t.challenge,7,void 0,lG)))}else p=t.program,U=t.globalName;this.addOnDisposeCallback(function(){var d,I,O;return _.q(function(a){if(a.nextAddress==1)return a.yield(E.iT6,2);d=a.yieldResult;I=d.hLr;(O=I)==null||O();_.Do(a)})});
this.sQ=DOK(t.bB6||{},this.bs5);_.ed(this,this.sQ);var x=new _.hf;this.iT6=x.promise;this.sQ.hv("t");var A=this.sQ.share(),m=new dO0(A,"t"),b=function(d,I,O,a){if(!E.sQ.isDisposed()){var F="k";I?F="h":O&&(F="u");F!=="k"?a!==0&&(E.sQ.hv(F),E.sQ.kT(F,d)):E.gCi<=0?(E.sQ.hv(F),E.sQ.kT(F,d),E.gCi=Math.floor(Math.random()*200)):E.gCi--}},f=function(d,I,O,a){Promise.resolve().then(function(){m.done();
A.zb();A.dispose();x.resolve({iRV:d,hLr:I,tpF:O,zsI:a})})};
if(!_.Ui[U])throw this.sQ.logError(25),Error("Ca");if(!_.Ui[U].a)throw this.sQ.logError(26),Error("Da");try{var B=_.Ui[U].a;U=[];for(var R=[],V=HRE(this.bs5),Q=0;Q<V.length;Q++)U.push(V[Q]),R.push(1);var C=f3i(this.bs5);for(V=0;V<C.length;V++)U.push(C[V]),R.push(2);this.uPv=_.M(B(p,f,!0,t.qBk,b,[U,R],_.th(this.bs5,5),!1)).next().value;this.gCG=x.promise.then(function(){})}catch(d){throw this.sQ.logError(28),d;
}};
_.u(_.w0,_.PQ);_.w0.prototype.snapshot=function(t){if(this.isDisposed())throw Error("Ea");this.sQ.hv("n");var E=this.sQ.share();return this.iT6.then(function(p){var U=p.iRV;return new Promise(function(x){var A=new dO0(E,"n");U(function(m){A.done();E.xHG(m.length);E.zb();E.dispose();x(m)},[t.cw,
t.wUG,t.jKI,t.kMI])})})};
_.w0.prototype.gRT=function(t){this.iT6.then(function(E){var p;(p=E.tpF)==null||p(t)})};
_.w0.prototype.dVf=function(t,E){return this.iT6.then(function(p){var U;return(U=p.zsI)==null?void 0:U(t,E,!1)})};
_.w0.prototype.ko2=function(){return this.sQ.share()};var hZZ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(hZZ,_.w6);var BJO=_.mEi(hZZ);var a3r=function(){this.promises={};this.lsE=null},eZs=function(){a3r.instance||(a3r.instance=new a3r);
return a3r.instance},zZ0=function(t,E){return FYs(t,_.lJ(E,Q5E,1,lG),_.lJ(E,_.Cxj,2,lG),_.th(E,3,void 0,lG))},FYs=function(t,E,p,U){if(!E&&!p)return Promise.resolve();
if(!U)return oaO(E,p);var x;(x=t.promises)[U]||(x[U]=new Promise(function(A,m){oaO(E,p).then(function(){t.lsE=U;A()},function(b){delete t.promises[U];
m(b)})}));
return t.promises[U]};var l3m=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(l3m,_.w6);var G3s=function(t,E){return _.R7(t,1,E)},na0=function(t,E){return _.R7(t,2,E)};var RQ=function(t){_.PQ.call(this);var E=this;this.options=t;this.lq5=new _.hf;this.gCG=this.lq5.promise;this.gvi=new _.hf;this.rJ2=1;this.jfi=new _.hf;this.uP2=[];this.isPaused=!1;this.baf=t.baf||function(){};
this.dXG=new u3G(DOK(t.bB6||{}));NsX(this,t.dj,t.ydH,t.nJ7,t.wr0,Object.assign({},DOf,t.wCG||{}));this.addOnDisposeCallback(function(){return void sa3(E)})};
_.u(RQ,_.PQ);RQ.prototype.snapshot=function(t){var E=this;return _.q(function(p){switch(p.nextAddress){case 1:if(E.isDisposed())throw Error("Ea");if(E.ai||E.fsU){p.jumpTo(2);break}return p.yield(E.gvi.promise,2);case 2:if(!E.ai){p.jumpTo(4);break}return p.yield(E.ai.snapshot(t),5);case 5:return p.return(p.yieldResult);case 4:throw E.fsU;}})};
RQ.prototype.pause=function(){this.isDisposed()||this.isPaused||(this.isPaused=!0,this.r9&&this.r9.pause())};
RQ.prototype.resume=function(){!this.isDisposed()&&this.isPaused&&(this.isPaused=!1,this.r9&&this.r9.resume())};
RQ.prototype.checkForRefresh=function(){var t=this;return _.q(function(E){if(t.isDisposed())throw Error("Ea");var p;if(p=t.r9)p=t.r9,p.isExpired()?(LYm(p),p.resolver(0),p=!0):p=!1,p=!p;return p?E.jumpTo(0):E.yield(t.jfi.promise,0)})};
var Tss=function(t){var E;return _.q(function(p){if(t.isDisposed())throw Error("Ea");(E=t.r9)==null||PaG(E);return p.yield(t.jfi.promise,0)})},sa3=function(t){t.fsU=Error("Ga");
t.gvi.resolve();BsO(t.lq5.promise);t.lq5.reject(Error("Ga"));t.dXG.dispose();Promise.all(t.uP2).then(function(){var p;return _.q(function(U){(p=t.ai)==null||p.dispose();t.ai=void 0;_.Do(U)})});
t.uP2=[];var E;(E=t.r9)==null||PaG(E);BsO(t.jfi.promise);t.jfi.reject(Error("Ga"))};
RQ.prototype.gRT=function(t){var E,p;(E=this.ai)==null||(p=E.gRT)==null||p.call(E,t)};
RQ.prototype.dVf=function(t,E){var p,U,x;return(x=(p=this.ai)==null?void 0:(U=p.dVf)==null?void 0:U.call(p,t,E))!=null?x:Promise.resolve()};
var oas=function(t,E){var p=t.baf;t.baf=function(){p();E()}},WY4=function(t,E){t.isDisposed()||(t.ai=E,t.dXG.update(E.ko2()),t.gvi.resolve(),t.lq5.resolve(void 0),t.baf())};
RQ.prototype.handleError=function(t){if(!this.isDisposed()){this.fsU=t;this.gvi.resolve();var E,p;(p=(E=this.options).gxU)==null||p.call(E,t)}};
var $Op=function(t,E){E&&(Promise.all(t.uP2).then(function(){return void E.dispose()}),t.uP2=[])},V1=function(t,E){t.rJ2=E;
var p,U;(U=(p=t.options).e66)==null||U.call(p,E)},KYG=function(t){t.isDisposed()||(t.jfi.resolve(),t.jfi=new _.hf)},NsX=function(t,E,p,U,x,A){U=U===void 0?eZs():U;
x=x===void 0?Promise.resolve(void 0):x;var m,b,f,B,R,V,Q,C,d,I,O,a;_.q(function(F){switch(F.nextAddress){case 1:return F.yield(0,3);case 3:b=null;if(!m){F.jumpTo(6);break}V1(t,7);_.aR(F,7);return F.yield(DP(m.snapshot({}),A.fEP,function(){return Promise.resolve("E:CTO")}),9);
case 9:b=F.yieldResult;_.r7(F,6);break;case 7:_.nB(F),b="E:UCE";case 6:f=void 0,B=m?A.hSI:A.lqB,R=new Oh(B,A.tkI,A.g1I,A.fq0),V=1;case 10:if(!(V<=A.maxAttempts)){F.jumpTo(12);break}if(V===1){F.jumpTo(13);break}V1(t,0);t.r9=new Q1(R.getValue(),A.aSG,A.qvf);return F.yield(t.r9.promise,14);case 14:Q=F.yieldResult,t.r9=void 0,Q===1?(V=1,R.reset()):Yjp(R);case 13:_.aR(F,15);C=void 0;if(p){C=p;F.jumpTo(17);break}V1(t,5);d=U.lsE;return F.yield(DP(vam(E,d,b),A.gFI,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:C=F.yieldResult;case 17:return V1(t,3),F.yield(DP(zZ0(U,C),A.wXU,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return V1(t,8),F.yield(x,20);case 20:return I=new _.w0({challenge:C,bB6:t.options.bB6,qBk:t.options.qBk}),F.yield(DP(I.gCG,A.oiY,function(){return Promise.reject(Error("Ja"))}),21);
case 21:f=I;F.jumpTo(12);break;case 15:O=_.nB(F),t.handleError(O),KYG(t);case 11:V++;F.jumpTo(10);break;case 12:if(t.isDisposed()){F.jumpTo(5);break}f&&(p=void 0,$Op(t,m),m=f,WY4(t,f),KYG(t));V1(t,2);t.r9=new Q1(A.rh9,A.aSG,A.qvf);t.isPaused&&t.r9.pause();return F.yield(t.r9.promise,22);case 22:t.r9=void 0;if(t.isDisposed()){F.jumpTo(5);break}F.jumpTo(3);break;case 5:(a=m)==null||a.dispose(),_.Do(F)}})};
RQ.prototype.ko2=function(){return this.dXG.share()};
var DOf={rh9:432E5,aSG:3E5,qvf:10,fEP:1E4,gFI:3E4,wXU:3E4,oiY:6E4,lqB:1E3,hSI:6E4,tkI:6E5,g1I:.25,fq0:2,maxAttempts:10},Q1=function(t,E,p){var U=this;this.endTimeMs=0;this.vVO=null;this.isPaused=!1;this.tick=function(){if(!U.isPaused){var x=U.endTimeMs-Date.now();x<=U.yj5?(U.vVO=null,U.resolver(0)):U.vVO=setTimeout(U.tick,Math.min(x,U.aSG))}};
this.aSG=E;this.yj5=p;this.promise=new Promise(function(x){U.resolver=x});
y6p(this,t)},y6p=function(t,E){t.endTimeMs=Date.now()+E;
t.tick()};
Q1.prototype.pause=function(){this.isPaused||(this.isPaused=!0,LYm(this))};
Q1.prototype.resume=function(){this.isPaused&&(this.isPaused=!1,this.tick())};
var PaG=function(t){LYm(t);t.endTimeMs=0;t.isPaused=!1;t.resolver(1)},LYm=function(t){t.vVO&&(clearTimeout(t.vVO),t.vVO=null)};
Q1.prototype.isExpired=function(){return Date.now()>this.endTimeMs};var SBm,KYY=(SBm=Math.imul)!=null?SBm:function(t,E){return t*E|0},sh=[196,
200,224,18],CJ=function(t,E,p){p=p===void 0?[]:p;this.maxItems=t;this.nF=E===void 0?0:E;this.xT=p},c6p=function(t){var E=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!E)return new CJ(t);var p=E.split(",");if(p.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new CJ(t);E=p.slice(1);E.length===1&&E[0]===""&&(E=[]);p=Number(p[0]);return isNaN(p)||p<0||p>E.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new CJ(t)):new CJ(t,p,E)};
CJ.prototype.serialize=function(){return String(this.nF)+","+this.xT.join()};
CJ.prototype.insert=function(t,E){var p=void 0;if(this.xT[this.nF]!==t){var U=this.xT.indexOf(t);U!==-1?(this.xT.splice(U,1),U<this.nF&&this.nF--,this.xT.splice(this.nF,0,t)):(p=this.xT[this.nF],this.xT[this.nF]=t)}this.nF=(this.nF+1)%this.maxItems;t=WYO("iU5q-!O9@$",this.serialize());p&&t&&E(p);return t};
var tuT=function(t,E){this.rwn=E;try{var p=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(U){p=!1}p&&(this.index=c6p(t))},E63=function(t,E,p,U,x){var A=t.index?_.B7(t.rwn,function(){return c68(t.index,y68(E),p,U,x)},"W"):"u";
t.rwn.lrO(A)},pk4=function(t,E,p){var U=_.M(t.index?_.B7(t.rwn,function(){return tul(y68(E),p)},"R"):["u"]),x=U.next().value;
U=U.next().value;t.rwn.h8G(x);return U};var URp={toString:function(t){var E=[],p=0;t-=-2147483648;E[p++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(t%52);for(t=Math.floor(t/52);t>0;)E[p++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(t%62),t=Math.floor(t/62);return E.join("")}};var Yyf=function(t){t=xRr(t);for(var E=2654435769,p=2654435769,U=314159265,x=t.length,A=x,m=0,b=function(){E-=p;E-=U;E^=U>>>13;p-=U;p-=E;p^=E<<8;U-=E;U-=p;U^=p>>>13;E-=p;E-=U;E^=U>>>12;p-=U;p-=E;p^=E<<16;U-=E;U-=p;U^=p>>>5;E-=p;E-=U;E^=U>>>3;p-=U;p-=E;p^=E<<10;U-=E;U-=p;U^=p>>>15};A>=12;A-=12,m+=12)E+=AFp(t,m),p+=AFp(t,m+4),U+=AFp(t,m+8),b();
U+=x;switch(A){case 11:U+=t[m+10]<<24;case 10:U+=t[m+9]<<16;case 9:U+=t[m+8]<<8;case 8:p+=t[m+7]<<24;case 7:p+=t[m+6]<<16;case 6:p+=t[m+5]<<8;case 5:p+=t[m+4];case 4:E+=t[m+3]<<24;case 3:E+=t[m+2]<<16;case 2:E+=t[m+1]<<8;case 1:E+=t[m]}b();return URp.toString(U)},xRr=function(t){for(var E=[],p=0;p<t.length;p++)E.push(t.charCodeAt(p));
return E},AFp=function(t,E){return t[E]+(t[E+1]<<8)+(t[E+2]<<16)+(t[E+3]<<24)};var jv=function(t){_.PQ.call(this);this.yv=t;this.r6U=new _.hf};
_.u(jv,_.PQ);var Mus=function(t,E){var p=setTimeout(function(){t.r6U.resolve()},E);
t.addOnDisposeCallback(function(){return void clearTimeout(p)})};
jv.prototype.nJG=function(t,E){var p=this.i1(t);E==null||E(p);return _.B7(this.yv,function(){return _.S$(p,2)},this.vcf)};
var mRZ=function(t,E,p,U){return _.B7(t.yv,function(){return p?t.nJG(E,U):t.i1(E,U)},t.kH2)},bMZ=function(t,E,p,U){jv.call(this,t);
this.pVU=E;this.ck5=p;this.kH2="m";this.vcf="x";this.e9U=0;Mus(this,U)};
_.u(bMZ,jv);bMZ.prototype.i1=function(t,E){var p=this;this.yv.hv(this.kH2);++this.e9U>=this.ck5&&this.r6U.resolve();var U=t();t=_.B7(this.yv,function(){return p.pVU(U)},"C");
if(t===void 0)throw new zG(17,"YNJ:Undefined");if(!(t instanceof Uint8Array))throw new zG(18,"ODM:Invalid");E==null||E(t);return t};
var iMG=function(t,E,p){jv.call(this,t);this.hbn=E;this.kH2="f";this.vcf="z";Mus(this,p)};
_.u(iMG,jv);iMG.prototype.i1=function(){return this.hbn};
var qy0=function(t,E,p){jv.call(this,t);this.fwn=E;this.kH2="w";this.vcf="z";Mus(this,p)};
_.u(qy0,jv);qy0.prototype.i1=function(){var t=this;return _.B7(this.yv,function(){return _.c8(t.fwn)},"d")};
qy0.prototype.nJG=function(){return this.fwn};
var HMs=function(t,E){jv.call(this,t);this.error=E;this.kH2="e";this.vcf="y"};
_.u(HMs,jv);var fRm=function(t,E){var p=(E(t.error.message)+":"+E(t.error.stack)).substring(0,2048);E=p.length+1;p=E6D(p);var U=new Uint8Array(4+p.length);U.set([42,E&127|128,E>>7,t.error.code]);U.set(p,4);return U};
HMs.prototype.i1=function(){if(this.tyH)return this.tyH;this.tyH=fRm(this,function(t){return"_"+Yyf(t)});
return fRm(this,function(t){return t})};
var B7X=function(t,E,p){jv.call(this,t);this.nM0=E;this.clientState=p;this.kH2="S";this.vcf="q"};
_.u(B7X,jv);B7X.prototype.i1=function(){var t=Math.floor(Date.now()/1E3),E=[Math.random()*255,Math.random()*255],p=E.concat([this.nM0&255,this.clientState],[t>>24&255,t>>16&255,t>>8&255,t&255]);t=new Uint8Array(2+p.length);t[0]=34;t[1]=p.length;t.set(p,2);p=t.subarray(2);for(var U=E=E.length;U<p.length;++U)p[U]^=p[U%E];this.yv.tAn(this.clientState);return t};var wks={qg0:3E4,xj5:2E4},r0=function(t){_.PQ.call(this);var E=this;this.xlG=new _.hf;this.ckz=0;this.zh=void 0;this.state=2;this.vm=t.vm;this.dj=t.dj;this.wCG=Object.assign({},wks,t.wCG||{});this.wG=t.vm.ko2();var p;this.onError=(p=t.onError)!=null?p:function(){};
this.lDS=t.lDS||!1;if(Re4(t)){var U=this.vm;this.ct2=function(){return Tss(U).catch(function(m){m=E.reportError(new zG(E.xd?20:32,"TRG:Disposed",m));E.zh=m;var b;(b=E.xd)==null||b.dispose();E.xd=void 0;E.xlG.reject(m)})};
oas(U,function(){return void VuX(E)});
U.rJ2===2&&VuX(this)}else this.ct2=t.neL,VuX(this);var x=this.wG.share();x.hv("o");var A=new dO0(x,"o");this.xlG.promise.then(function(){A.done();x.zb();x.dispose()},function(){return void x.dispose()});
this.addOnDisposeCallback(function(){E.xd?(E.xd.dispose(),E.xd=void 0):E.zh?E.wG.zb():(E.zh=E.reportError(new zG(32,"TNP:Disposed")),E.wG.zb(),E.xlG.reject(E.zh))});
_.ed(this,this.wG)};
_.u(r0,_.PQ);r0.prototype.cb2=function(){return this.xlG.promise};
var QDr=function(t,E){if(!(E instanceof zG))if(E instanceof _.bd){var p=Error(E.toString());p.stack=E.stack;E=new zG(11,"EBH:Error",p)}else E=new zG(12,"BSO:Unknown",E);return t.reportError(E)},VuX=function(t){var E,p,U,x,A,m,b,f,B,R,V,Q,C,d,I;
return _.q(function(O){switch(O.nextAddress){case 1:E=void 0;t.ckz++;p=new _.hf;t.vm instanceof RQ&&t.vm.uP2.push(p.promise);if(!t.lDS){O.jumpTo(2);break}U=new _.hf;setTimeout(function(){return void U.resolve()});
return O.yield(U.promise,2);case 2:return x=t.wG.share(),_.aR(O,4,5),t.state=5,A={},m=[],O.yield(DP(t.vm.snapshot({cw:A,jKI:m}),t.wCG.xj5,function(){return Promise.reject(new zG(15,"MDA:Timeout"))}),7);
case 7:b=O.yieldResult;if(t.isDisposed())throw new zG(t.xd?20:32,"MDA:Disposed");f=m[0];t.state=6;return O.yield(DP(CJ3(t.dj,b),t.wCG.qg0,function(){return Promise.reject(new zG(10,"BWB:Timeout"))}),8);
case 8:B=O.yieldResult;if(t.isDisposed())throw new zG(t.xd?20:32,"BWB:Disposed");t.state=7;E=_.B7(x,function(){var F=jDm(t,B,p,f);F.r6U.promise.then(function(){return void t.ct2()});
return F},"i");
case 5:_.FQ(O);x.dispose();_.Gc(O,6);break;case 4:R=_.nB(O);(V=E)==null||V.dispose();if(!t.zh){Q=QDr(t,R);p.resolve();var a;if(a=t.vm instanceof RQ&&t.ckz<2)a:if(R instanceof zG)a=R.code!==32&&R.code!==20&&R.code!==10;else{if(R instanceof _.bd)switch(R.code){case 2:case 13:case 14:case 4:break;default:a=!1;break a}a=!0}if(a)return C=(1+Math.random()*.25)*(t.xd?6E4:1E3),d=setTimeout(function(){return void t.ct2()},C),t.addOnDisposeCallback(function(){return void clearTimeout(d)}),O.return();
t.zh=Q}x.logError(t.xd?13:14);t.xlG.reject(t.zh);return O.return();case 6:t.state=8,t.ckz=0,(I=t.xd)==null||I.dispose(),t.xd=E,t.xlG.resolve(),_.Do(O)}})},jDm=function(t,E,p,U){var x=ULm(E,2)*1E3;
if(x<=0)throw new zG(31,"TTM:Invalid");if(_.th(E,4))return new qy0(t.wG,_.th(E,4),x);if(!ULm(E,3))return new iMG(t.wG,Dfr(_.oe(E,1)),x);if(!U)throw new zG(4,"PMD:Undefined");U=U(Dfr(_.oe(E,1)));if(!(U instanceof Function))throw new zG(16,"APF:Failed");t.gMC=Math.floor((Date.now()+x)/1E3);t=new bMZ(t.wG,U,ULm(E,3),x);t.addOnDisposeCallback(function(){return void p.resolve()});
return t};
r0.prototype.i1=function(t){return rFs(this,Object.assign({},t),!1)};
r0.prototype.nJG=function(t){return rFs(this,Object.assign({},t),!0)};
r0.prototype.bLq=function(t){if(t>150)return!1;try{return this.cache=new tuT(t,this.wG),!0}catch(E){return this.reportError(new zG(22,"GBJ:init",E)),!1}};
r0.prototype.reportError=function(t){this.wG.logError(t.code);this.onError(t);return t};
var kMo=function(t,E){E=E instanceof zG?E:new zG(5,"TVD:error",E);return t.reportError(E)},rFs=function(t,E,p){try{if(t.isDisposed())throw new zG(21,"BNT:disposed");
if(!t.xd&&t.zh)throw t.zh;var U,x;return(x=(U=dR0(t,E,p))!=null?U:uaW(t,E,p))!=null?x:JFp(t,E,p)}catch(A){if(!E.igE)throw kMo(t,A);return IRT(t,p,A)}},dR0=function(t,E,p){var U;
return(U=t.xd)==null?void 0:mRZ(U,function(){return g6W(t,E)},p,function(x){var A;
if(t.xd instanceof bMZ&&((A=E.kP)==null?0:A.oZb))try{var m;(m=t.cache)==null||E63(m,g6W(t,E),x,E.kP.lPn,t.gMC-120)}catch(b){t.reportError(new zG(24,"ELX:write",b))}})},uaW=function(t,E,p){var U;
if((U=E.kP)!=null&&U.foi)try{var x,A=(x=t.cache)==null?void 0:pk4(x,g6W(t,E),E.kP.lPn);return A?p?_.B7(t.wG,function(){return _.S$(A,2)},"a"):A:void 0}catch(m){t.reportError(new zG(23,"RXO:read",m))}},JFp=function(t,E,p){var U={stack:[],
error:void 0,hasError:!1};try{if(!E.zTz)throw new zG(29,"SDF:notready");return mRZ(PYW(U,new B7X(t.wG,0,t.state)),function(){return g6W(t,E)},p)}catch(x){U.error=x,U.hasError=!0}finally{TEm(U)}},IRT=function(t,E,p){var U={stack:[],
error:void 0,hasError:!1};try{var x=kMo(t,p);return mRZ(PYW(U,new HMs(t.wG,x)),function(){return[]},E)}catch(A){U.error=A,U.hasError=!0}finally{TEm(U)}},g6W=function(t,E){return E.a52?E.a52:E.cw?_.B7(t.wG,function(){return E.a52=E6D(E.cw)},"c"):[]},Re4=function(t){return ns(function(E){if(!LN(E))return!1;
for(var p=_.M(Object.entries(t)),U=p.next();!U.done;U=p.next()){var x=_.M(U.value);U=x.next().value;x=x.next().value;if(!(U in E)){if(x.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!x(E[U]))return!1}return!0})}({vm:function(t){return ns(function(E){return E instanceof t})}(RQ)},"");var ZM0=function(){var t=_.gN();this.JSC$10190_streamzService=t;t.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",di("cookie_enabled"),di("cookie_3p_enabled"),_.Jg("browser"))};
ZM0.prototype.increment=function(t,E,p){this.JSC$10190_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",t,E,p)};
var Egt=function(){var t=_.gN();this.JSC$10214_streamzService=t;t.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",uN("tick"),di("from_st_cookie"))};
Egt.prototype.increment=function(t,E){this.JSC$10214_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",t,E)};
var OM0=function(){var t=_.gN();this.JSC$10220_streamzService=t;t.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.Jg("status"))};
OM0.prototype.increment=function(t){this.JSC$10220_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",t)};
var XkX=function(){var t=_.gN();this.JSC$10223_streamzService=t;t.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.Jg("stage"),di("is_using_ytd_player"),di("has_expandable_tiles"))};
XkX.prototype.increment=function(t,E,p){this.JSC$10223_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",t,E,p)};
var hes=function(){var t=_.gN();this.JSC$10226_streamzService=t;t.addNewCounter("/client_streamz/youtube/web/response_signature",_.Jg("check_status"))};
hes.prototype.increment=function(t){this.JSC$10226_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/web/response_signature",t)};
var aRr=function(){var t=_.gN();this.JSC$10229_streamzService=t;t.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.Jg("sig"),uN("de"))};
aRr.prototype.increment=function(t,E){this.JSC$10229_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/web/e_sig_log",t,E)};
var ees=function(){var t=_.gN();this.JSC$10232_streamzService=t;t.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.Jg("sig"),uN("de"))};
ees.prototype.increment=function(t,E){this.JSC$10232_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/web/e_sig_en",t,E)};
_.Fnp=function(){var t=_.gN();this.JSC$10235_streamzService=t;t.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.Jg("action"))};
_.Fnp.prototype.increment=function(t){this.JSC$10235_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/web/enforcement_intent",t)};var ki=window;var zeG=(new Date).getTime();_.Kq.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.Kq.createSet("action","cite","data","formaction","href","manifest","poster","src");var lRs=function(t){this.servicePromise_=t;t.then((0,_.Tg)(function(){},this),function(){},this)},GMs=function(t,E,p){t.servicePromise_.then(function(U){var x=U[E];
if(!x)throw Error("Ka`"+E);return x.apply(U,p)})},DRp=function(t,E,p){for(var U=Array(arguments.length-2),x=2;x<arguments.length;x++)U[x-2]=arguments[x];
x=n64(t,E).then(function(A){return A.apply(null,U)},function(A){A=Error("La`"+E+"`"+t+"`"+A,{cause:A});
delete N7r[E];return _.S5(A)});
return new lRs(x)},N7r={},n64=function(t,E){var p=N7r[E];
if(p)return p;p=(p=_.ws(E))?_.gu(p):(new _.PE(function(U,x){var A=(new Uk(document)).createElement("SCRIPT");A.async=!0;_.w3(A,_.N2(l_p(t)));A.onload=A.onreadystatechange=function(){A.readyState&&A.readyState!="loaded"&&A.readyState!="complete"||U()};
A.onerror=function(m){x(Error("Ma`"+E+"`"+t,{cause:m}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(A)})).then(function(){var U=_.ws(E);
if(!U)throw Error("Na`"+E+"`"+t);return U});
return N7r[E]=p};var sD3={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},PJo=function(){var t=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=pkO(function(){return _.q(function(E){if(E.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?E.return(Promise.resolve()):E.yield(Lnf(t),2);t.rsaForList.length>
0&&document.addEventListener("click",t.requestAccessForHelpPanel);_.Do(E)})});
this.requestAccessForHelpPanel=function(){if(!(t.rsaForPromises.length>0)){for(var E=_.M(t.rsaForList),p=E.next();!p.done;p=E.next()){p=p.value;try{t.rsaForPromises.push(document.requestStorageAccessFor(p))}catch(U){}}Promise.all(t.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){t.reset()})}}};
PJo.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var Lnf=function(t){var E,p,U,x;return _.q(function(A){switch(A.nextAddress){case 1:E=_.M(Object.values(sD3)),p=E.next();case 2:if(p.done){A.jumpTo(0);break}U=p.value;_.aR(A,5);return A.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:U}),7);case 7:x=A.yieldResult;x.state!=="granted"&&t.rsaForList.push(U);_.r7(A,3);break;case 5:_.nB(A);A.jumpTo(0);break;case 3:p=E.next(),A.jumpTo(2)}})};(new PJo).initialize();var T7X=function(t){this.JSC$10249_loader_=t};
T7X.prototype.startHelp=function(t){GMs(this.JSC$10249_loader_,"startHelp",arguments)};
T7X.prototype.JSC$10251_loadChatSupport=function(t){GMs(this.JSC$10249_loader_,"loadChatSupport",arguments)};
var Wnr=function(t,E){E=E||{};t=DRp(o6r,"help.service.Lazy.create",t,{apiKey:E.apiKey||E.apiKey,asxUiUri:E.asxUiUri||E.asxUiUri,environment:E.environment||E.environment,flow:E.flow||E.flow,frdProductData:E.frdProductData||E.frdProductData,frdProductDataSerializedJspb:E.frdProductDataSerializedJspb||E.frdProductDataSerializedJspb,helpCenterPath:E.helpCenterPath||E.helpCenterPath,locale:E.locale||E.locale||"en-US".replace(/-/g,"_"),nonce:E.nonce||E.nonce,productData:E.productData||E.productData,receiverUri:E.receiverUri||
E.receiverUri,renderApiUri:E.renderApiUri||E.renderApiUri,theme:E.theme||E.theme,window:E.window||E.window});return new T7X(t)},o6r=new fW(W8E,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var $R3=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u($R3,_.w6);var Kns=_.hG($R3);var v6r=[0,_.d9,Vg,KoW];_.yFp=new function(t,E,p,U){this.configType=t;this.flagName=p;this.defaultValue=U;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 cFp=function(){this.retriever=_.X3().resolve(SyZ)};_.JN={get payments(){return window.payments}};xRJ(Node);xRJ(Element);var tTr=xRJ(HTMLElement);xRJ(SVGElement);var E7s,pEs,JU,U0p;E7s=function(t){return typeof t.className=="string"?t.className:t.getAttribute&&t.getAttribute("class")||""};
pEs=function(t){return t.classList?t.classList:E7s(t).match(/\S+/g)||[]};
_.d0=function(t,E){typeof t.className=="string"?t.className=E:t.setAttribute&&t.setAttribute("class",E)};
_.ud=function(t,E){return t.classList?t.classList.contains(E):_.zt(pEs(t),E)};
_.RC=function(t,E){if(t.classList)t.classList.add(E);else if(!_.ud(t,E)){var p=E7s(t);_.d0(t,p+(p.length>0?" "+E:E))}};
JU=function(t,E){if(t.classList)Array.prototype.forEach.call(E,function(x){_.RC(t,x)});
else{var p={};Array.prototype.forEach.call(pEs(t),function(x){p[x]=!0});
Array.prototype.forEach.call(E,function(x){p[x]=!0});
E="";for(var U in p)E+=E.length>0?" "+U:U;_.d0(t,E)}};
_.w4=function(t,E){t.classList?t.classList.remove(E):_.ud(t,E)&&_.d0(t,Array.prototype.filter.call(pEs(t),function(p){return p!=E}).join(" "))};
U0p=function(t,E){t.classList?Array.prototype.forEach.call(E,function(p){_.w4(t,p)}):_.d0(t,Array.prototype.filter.call(pEs(t),function(p){return!_.zt(E,p)}).join(" "))};var x0s=function(t){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=t.document},MTG=function(t,E){AwW(t);
var p=document.createElement("div"),U;(U=E.parentNode)==null||U.insertBefore(p,E);p.tabIndex=0;p.id="fc-focus-trap-pre-div";p=document.createElement("div");var x;(x=E.parentNode)==null||x.insertBefore(p,E.nextSibling);p.tabIndex=0;p.id="fc-focus-trap-post-div";var A=YGm(t,E),m=YGm(t,E,!0);A&&m&&(t.focusChangeHandler=function(){var b=t.document.activeElement;if(b)if(_.wV(E,b))t.previouslyFocusedElement=b;else if(b===t.document.activeElement)switch(t.previouslyFocusedElement){case A:m.focus();t.previouslyFocusedElement=
m;break;default:A.focus(),t.previouslyFocusedElement=A}},t.document.addEventListener("focus",t.focusChangeHandler,!0),t.document.addEventListener("focusin",t.focusChangeHandler))},AwW=function(t){t.focusChangeHandler&&(document.removeEventListener("focus",t.focusChangeHandler,!0),document.removeEventListener("focusin",t.focusChangeHandler),t.focusChangeHandler=null);
var E;(E=document.getElementById("fc-focus-trap-pre-div"))==null||E.remove();var p;(p=document.getElementById("fc-focus-trap-post-div"))==null||p.remove()},m0o=function(t,E,p,U,x){p=p===void 0?!0:p;
var A;x=(A=x===void 0?null:x)!=null?A:YGm(t,E,U===void 0?!1:U);x!==null&&(x.focus(),p&&MTG(t,E))};
x0s.prototype.disableButton=function(t,E){E=E===void 0?null:E;t.disabled=!0;E&&_.RC(t,E)};
var YGm=function(t,E,p){p=p===void 0?!1:p;if(Hy$(E)&&!p)return E;var U=p?[].slice.call(E.children,0).reverse():E.children;U=_.M(U);for(var x=U.next();!x.done;x=U.next())if(x=x.value,tTr(x)&&(x=YGm(t,x,p)))return x;return Hy$(E)&&p?E:null};var bTr=function(t){this.originalBodyOverflow="";this.JSC$10276_domHelper=s8(t);var E;this.isScrollingEnabled=((E=this.JSC$10276_domHelper.JSC$9602_document_.body)==null?void 0:E.style.overflow)!=="hidden"};
bTr.prototype.enableScrolling=function(){this.isScrollingEnabled||(this.JSC$10276_domHelper.JSC$9602_document_.body.style.overflow=this.originalBodyOverflow,this.isScrollingEnabled=!0)};_.Oa(_.ov,_.PQ);_.Y=_.ov.prototype;_.Y.JSC$10279_id_=0;_.Y.disposeInternal=function(){_.ov.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10277_listener_;delete this.handler_};
_.Y.start=function(t){this.stop();this.JSC$10279_id_=mm(this.callback_,t!==void 0?t:this.JSC$10277_interval_)};
_.Y.stop=function(){this.isActive()&&_.Ui.clearTimeout(this.JSC$10279_id_);this.JSC$10279_id_=0};
_.Y.fire=function(){this.stop();this.JSC$10279_doAction_()};
_.Y.isActive=function(){return this.JSC$10279_id_!=0};
_.Y.JSC$10279_doAction_=function(){this.JSC$10279_id_=0;this.JSC$10277_listener_&&this.JSC$10277_listener_.call(this.handler_)};_.Kg=function(t){_.PQ.call(this);this.handler_=t;this.JSC$10280_keys_={}};
_.Oa(_.Kg,_.PQ);var iTG=[];_.Kg.prototype.listen=function(t,E,p,U){Array.isArray(E)||(E&&(iTG[0]=E.toString()),E=iTG);for(var x=0;x<E.length;x++){var A=_.vu(t,E[x],p||this.handleEvent,U||!1,this.handler_||this);if(!A)break;this.JSC$10280_keys_[A.key]=A}return this};
_.Kg.prototype.listenOnce=function(t,E,p,U){return qGW(this,t,E,p,U)};
var qGW=function(t,E,p,U,x,A){if(Array.isArray(p))for(var m=0;m<p.length;m++)qGW(t,E,p[m],U,x,A);else{E=pN(E,p,U||t.handleEvent,x,A||t.handler_||t);if(!E)return t;t.JSC$10280_keys_[E.key]=E}return t};
_.Kg.prototype.unlisten=function(t,E,p,U,x){if(Array.isArray(E))for(var A=0;A<E.length;A++)this.unlisten(t,E[A],p,U,x);else if(t=HMO(t,E,p||this.handleEvent,_.o0(U)?!!U.capture:!!U,x||this.handler_||this))Wu(t),delete this.JSC$10280_keys_[t.key];return this};
_.Kg.prototype.removeAll=function(){_.Kq.forEach(this.JSC$10280_keys_,function(t,E){this.JSC$10280_keys_.hasOwnProperty(E)&&Wu(t)},this);
this.JSC$10280_keys_={}};
_.Kg.prototype.disposeInternal=function(){_.Kg.superClass_.disposeInternal.call(this);this.removeAll()};
_.Kg.prototype.handleEvent=function(){throw Error("Oa");};_.Oa(WQ,_.PQ);WQ.prototype.connect=function(t){t&&t()};
WQ.prototype.isConnected=function(){return!0};
WQ.prototype.registerService=function(t,E,p){this.services_[t]={callback:E,objectPayload:!!p}};
WQ.prototype.getService=function(t,E){var p=this.services_[t];return p?p:this.defaultService_?{callback:_.GF(this.defaultService_,t),objectPayload:_.o0(E)}:null};
var HTp=function(t,E){if(E&&typeof t==="string")try{return JSON.parse(t)}catch(p){return null}else if(!E&&typeof t!=="string")return(0,_.id)(t);return t};
WQ.prototype.disposeInternal=function(){WQ.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 yy=function(t,E){this.sequence_=[];this.onCancelFunction_=t;this.defaultScope_=E||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};
yy.prototype.cancel=function(t){if(this.fired_)this.result_ instanceof yy&&this.result_.cancel();else{if(this.parent_){var E=this.parent_;delete this.parent_;t?E.cancel(t):(E.branches_--,E.branches_<=0&&E.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new IQ(this))}};
yy.prototype.continue_=function(t,E){this.blocked_=!1;ftp(this,t,E)};
var ftp=function(t,E,p){t.fired_=!0;t.result_=p;t.hadError_=!E;BxW(t)},RMX=function(t){if(t.fired_){if(!t.silentlyCanceled_)throw new wEo(t);
t.silentlyCanceled_=!1}};
yy.prototype.callback=function(t){RMX(this);ftp(this,!0,t)};
yy.prototype.errback=function(t){RMX(this);ftp(this,!1,t)};
var mRE=function(t,E,p){g0(t,E,null,p)};
yy.prototype.finally=function(t){var E=this;return VTs(new Promise(function(p,U){g0(E,function(x){t();p(x)},function(x){t();
U(x)})}))};
var g0=function(t,E,p,U){var x=t.fired_;x||(E===p?E=p=xi(E):(E=xi(E),p=xi(p)));t.sequence_.push([E,p,U]);x&&BxW(t)};
yy.prototype.then=function(t,E,p){var U,x,A=new _.PE(function(m,b){x=m;U=b});
g0(this,x,function(m){m instanceof IQ?A.cancel():U(m);return QfT},this);
return A.then(t,E,p)};
D$Z(yy);var Mu0=function(t,E){E instanceof yy?mRE(t,(0,_.Tg)(E.branch,E)):mRE(t,function(){return E})};
yy.prototype.branch=function(t){var E=new yy;g0(this,E.callback,E.errback,E);t&&(E.parent_=this,this.branches_++);return E};
yy.prototype.isError=function(t){return t instanceof Error};
var CrX=function(t){return ur(t.sequence_,function(E){return typeof E[1]==="function"})},QfT={},BxW=function(t){if(t.unhandledErrorId_&&t.fired_&&CrX(t)){var E=t.unhandledErrorId_,p=jfr[E];
p&&(_.Ui.clearTimeout(p.JSC$10297_id_),delete jfr[E]);t.unhandledErrorId_=0}t.parent_&&(t.parent_.branches_--,delete t.parent_);E=t.result_;for(var U=p=!1;t.sequence_.length&&!t.blocked_;){var x=t.sequence_.shift(),A=x[0],m=x[1];x=x[2];if(A=t.hadError_?m:A)try{var b=A.call(x||t.defaultScope_,E);b===QfT&&(b=void 0);b!==void 0&&(t.hadError_=t.hadError_&&(b==E||t.isError(b)),t.result_=E=b);if(smG(E)||typeof _.Ui.Promise==="function"&&E instanceof _.Ui.Promise)U=!0,t.blocked_=!0}catch(f){E=f,t.hadError_=
!0,CrX(t)||(p=!0)}}t.result_=E;U&&(b=(0,_.Tg)(t.continue_,t,!0),U=(0,_.Tg)(t.continue_,t,!1),E instanceof yy?(g0(E,b,U),E.blocking_=!0):E.then(b,U));p&&(E=new rws(E),jfr[E.JSC$10297_id_]=E,t.unhandledErrorId_=E.JSC$10297_id_)},VTs=function(t){var E=new yy;
t.then(function(p){E.callback(p)},function(p){E.errback(p)});
return E},wEo=function(){_.tD.call(this)};
_.Oa(wEo,_.tD);wEo.prototype.message="Deferred has already fired";wEo.prototype.name="AlreadyCalledError";var IQ=function(){_.tD.call(this)};
_.Oa(IQ,_.tD);IQ.prototype.message="Deferred was canceled";IQ.prototype.name="CanceledError";var rws=function(t){this.JSC$10297_id_=_.Ui.setTimeout((0,_.Tg)(this.throwError,this),0);this.JSC$10297_error_=t};
rws.prototype.throwError=function(){delete jfr[this.JSC$10297_id_];throw this.JSC$10297_error_;};
var jfr={};var ka3={1:"NativeMessagingTransport"},iMY=["pu","lru","pru","lpu","ppu"],AF8=function(){for(var t=10,E=d0X,p=E.length,U="";t-- >0;)U+=E.charAt(Math.floor(Math.random()*p));return U},d0X="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var $W=function(t){_.PQ.call(this);this.JSC$10300_domHelper_=t||s8()};
_.Oa($W,_.PQ);$W.prototype.transportType=0;$W.prototype.getWindow=function(){return this.JSC$10300_domHelper_.getWindow()};
$W.prototype.getName=function(){return ka3[String(this.transportType)]||""};_.Oa(Sd,$W);Sd.prototype.peerProtocolVersion_=null;Sd.prototype.initialized_=!1;Sd.prototype.transportType=1;var uLm={};Sd.prototype.sendTimerId_=0;
var g7G=function(t){var E=t.event_.data;if(typeof E!=="string")return!1;var p=E.indexOf("|"),U=E.indexOf(":");if(p==-1||U==-1)return!1;var x=E.substring(0,p);p=E.substring(p+1,U);E=E.substring(U+1);if(U=tW[x])return U.xpcDeliver(p,E,t.event_.origin),!0;U=Jwf(E)[0];for(var A in tW){var m=tW[A];if(YyK(m)==1&&!m.isConnected()&&p=="tp"&&(U=="SETUP"||U=="SETUP_NTPV2")&&Itf(m,t.event_.origin))return delete tW[m.name],m.name=x,tW[x]=m,m.xpcDeliver(p,E),!0}return!1},ZTW=function(t){t.protocolVersion_!=2||
t.peerProtocolVersion_!=null&&t.peerProtocolVersion_!=2||t.send("tp","SETUP_NTPV2,"+t.endpointId_);
t.peerProtocolVersion_!=null&&t.peerProtocolVersion_!=1||t.send("tp","SETUP")},OTX=function(t,E){if(t.protocolVersion_!=2||t.peerProtocolVersion_!=null&&t.peerProtocolVersion_!=2||E!=2){if(t.peerProtocolVersion_!=null&&t.peerProtocolVersion_!=1||E!=1)return;
t.send("tp","SETUP_ACK")}else t.send("tp","SETUP_ACK_NTPV2");t.setupAckSent_.fired_||t.setupAckSent_.callback(!0)},XEX=function(t,E){E>t.peerProtocolVersion_&&(t.peerProtocolVersion_=E);
t.peerProtocolVersion_==1&&(t.setupAckSent_.fired_||t.oneSidedHandshake_||t.setupAckSent_.callback(!0),t.peerEndpointId_=null)};
_.Y=Sd.prototype;_.Y.connect=function(){var t=this.getWindow(),E=_.W8(t),p=uLm[E];typeof p!=="number"&&(p=0);p==0&&_.vu(t.postMessage?t:t.document,"message",g7G,!1,Sd);uLm[E]=p+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.Y.maybeAttemptToConnect_=function(){var t=YyK(this.JSC$10303_channel_)==0;this.oneSidedHandshake_&&t||this.JSC$10303_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),ZTW(this))};
_.Y.send=function(t,E){var p=this.JSC$10303_channel_.peerWindowObject_;p&&(this.send=function(U,x){var A=this,m=this.JSC$10303_channel_.name;this.sendTimerId_=mm(function(){A.sendTimerId_=0;try{var b=p.postMessage?p:p.document;b.postMessage&&b.postMessage(m+"|"+U+":"+x,A.peerHostname_)}catch(f){}},0)},this.send(t,E))};
_.Y.notifyConnected_=function(){var t=this.JSC$10303_channel_,E=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;t.isConnected()||t.connectionDelay_&&t.connectionDelay_.isActive()||(t.state_=2,_.wi(t.connectionDelay_),E!==void 0?(t.connectionDelay_=new _.ov(t.connectCb_,E),t.connectionDelay_.start()):(t.connectionDelay_=null,t.connectCb_()))};
_.Y.disposeInternal=function(){if(this.initialized_){var t=this.getWindow(),E=_.W8(t),p=uLm[E];uLm[E]=p-1;p==1&&_.pJ(t.postMessage?t:t.document,"message",g7G,!1,Sd)}this.sendTimerId_&&(_.Ui.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.wi(this.JSC$10303_eventHandler_);delete this.JSC$10303_eventHandler_;_.wi(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10303_connected_.cancel();delete this.JSC$10303_connected_;delete this.send;Sd.superClass_.disposeInternal.call(this)};
var Jwf=function(t){t=t.split(",");t[1]=t[1]||null;return t};var ats;_.Zv=function(t){if(t.getValues&&typeof t.getValues=="function")return t.getValues();if(typeof Map!=="undefined"&&t instanceof Map||typeof Set!=="undefined"&&t instanceof Set)return Array.from(t.values());if(typeof t==="string")return t.split("");if(_.LO(t)){for(var E=[],p=t.length,U=0;U<p;U++)E.push(t[U]);return E}return _.Kq.getValues(t)};
_.hMf=function(t){if(t.getKeys&&typeof t.getKeys=="function")return t.getKeys();if(!t.getValues||typeof t.getValues!="function"){if(typeof Map!=="undefined"&&t instanceof Map)return Array.from(t.keys());if(!(typeof Set!=="undefined"&&t instanceof Set)){if(_.LO(t)||typeof t==="string"){var E=[];t=t.length;for(var p=0;p<t;p++)E.push(p);return E}return _.Kq.getKeys(t)}}};
ats=function(t,E,p){if(t.forEach&&typeof t.forEach=="function")t.forEach(E,p);else if(_.LO(t)||typeof t==="string")Array.prototype.forEach.call(t,E,p);else for(var U=_.hMf(t),x=_.Zv(t),A=x.length,m=0;m<A;m++)E.call(p,x[m],U&&U[m],t)};var iPJ,zl,Gl,NxG,eMZ,zMm,FMr,n7r,ltX;
_.fF=function(t,E){this.JSC$10308_domain_=this.userInfo_=this.scheme_="";this.JSC$10308_port_=null;this.fragment_=this.JSC$10308_path_="";this.JSC$10308_ignoreCase_=!1;var p;t instanceof _.fF?(this.JSC$10308_ignoreCase_=E!==void 0?E:t.JSC$10308_ignoreCase_,_.OH(this,t.scheme_),this.userInfo_=t.userInfo_,_.XB(this,t.JSC$10308_domain_),_.hU(this,t.JSC$10308_port_),_.aQ(this,t.getPath()),_.ev(this,t.JSC$10308_queryData_.clone()),_.FB(this,t.fragment_)):t&&(p=_.ds(String(t)))?(this.JSC$10308_ignoreCase_=
!!E,_.OH(this,p[1]||"",!0),this.userInfo_=zl(p[2]||""),_.XB(this,p[3]||"",!0),_.hU(this,p[4]),_.aQ(this,p[5]||"",!0),_.ev(this,p[6]||"",!0),_.FB(this,p[7]||"",!0)):(this.JSC$10308_ignoreCase_=!!E,this.JSC$10308_queryData_=new _.ld(null,this.JSC$10308_ignoreCase_))};
_.fF.prototype.toString=function(){var t=[],E=this.scheme_;E&&t.push(Gl(E,eMZ,!0),":");var p=this.JSC$10308_domain_;if(p||E=="file")t.push("//"),(E=this.userInfo_)&&t.push(Gl(E,eMZ,!0),"@"),t.push(_.VE(p).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),p=this.JSC$10308_port_,p!=null&&t.push(":",String(p));if(p=this.getPath())this.JSC$10308_domain_&&p.charAt(0)!="/"&&t.push("/"),t.push(Gl(p,p.charAt(0)=="/"?FMr:zMm,!0));(p=this.JSC$10308_queryData_.toString())&&t.push("?",p);(p=this.fragment_)&&t.push("#",
Gl(p,ltX));return t.join("")};
_.fF.prototype.resolve=function(t){var E=this.clone(),p=!!t.scheme_;p?_.OH(E,t.scheme_):p=!!t.userInfo_;p?E.userInfo_=t.userInfo_:p=!!t.JSC$10308_domain_;p?_.XB(E,t.JSC$10308_domain_):p=t.JSC$10308_port_!=null;var U=t.getPath();if(p)_.hU(E,t.JSC$10308_port_);else if(p=!!t.JSC$10308_path_){if(U.charAt(0)!="/")if(this.JSC$10308_domain_&&!this.JSC$10308_path_)U="/"+U;else{var x=E.getPath().lastIndexOf("/");x!=-1&&(U=E.getPath().slice(0,x+1)+U)}x=U;if(x==".."||x==".")U="";else if(_.iY(x,"./")||_.iY(x,
"/.")){U=_.AD(x,"/");x=x.split("/");for(var A=[],m=0;m<x.length;){var b=x[m++];b=="."?U&&m==x.length&&A.push(""):b==".."?((A.length>1||A.length==1&&A[0]!="")&&A.pop(),U&&m==x.length&&A.push("")):(A.push(b),U=!0)}U=A.join("/")}else U=x}p?_.aQ(E,U):p=t.JSC$10308_queryData_.toString()!=="";p?_.ev(E,t.JSC$10308_queryData_.clone()):p=!!t.fragment_;p&&_.FB(E,t.fragment_);return E};
_.fF.prototype.clone=function(){return new _.fF(this)};
_.OH=function(t,E,p){t.scheme_=p?zl(E,!0):E;t.scheme_&&(t.scheme_=t.scheme_.replace(/:$/,""));return t};
_.XB=function(t,E,p){t.JSC$10308_domain_=p?zl(E,!0):E;return t};
_.hU=function(t,E){if(E){E=Number(E);if(isNaN(E)||E<0)throw Error("Pa`"+E);t.JSC$10308_port_=E}else t.JSC$10308_port_=null;return t};
_.fF.prototype.getPath=function(){return this.JSC$10308_path_};
_.aQ=function(t,E,p){t.JSC$10308_path_=p?zl(E,!0):E;return t};
_.ev=function(t,E,p){E instanceof _.ld?(t.JSC$10308_queryData_=E,GaW(t.JSC$10308_queryData_,t.JSC$10308_ignoreCase_)):(p||(E=Gl(E,n7r)),t.JSC$10308_queryData_=new _.ld(E,t.JSC$10308_ignoreCase_));return t};
_.jK=function(t,E,p){t.JSC$10308_queryData_.set(E,p);return t};
_.CN=function(t,E){return t.JSC$10308_queryData_.get(E)};
_.FB=function(t,E,p){t.fragment_=p?zl(E):E;return t};
_.nJ=function(t){_.jK(t,"zx",VC());return t};
_.QC=function(t,E){return t instanceof _.fF?t.clone():new _.fF(t,E)};
iPJ=function(t,E){t instanceof _.fF||(t=_.QC(t));E instanceof _.fF||(E=_.QC(E));return t.resolve(E)};
zl=function(t,E){return t?E?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""};
Gl=function(t,E,p){return typeof t==="string"?(t=encodeURI(t).replace(E,NxG),p&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null};
NxG=function(t){t=t.charCodeAt(0);return"%"+(t>>4&15).toString(16)+(t&15).toString(16)};
eMZ=/[#\/\?@]/g;zMm=/[#\?:]/g;FMr=/[#\?]/g;n7r=/[#\?@]/g;ltX=/#/g;_.ld=function(t,E){this.count_=this.keyMap_=null;this.encodedQuery_=t||null;this.JSC$10309_ignoreCase_=!!E};
_.Nx=function(t){t.keyMap_||(t.keyMap_=new Map,t.count_=0,t.encodedQuery_&&h7m(t.encodedQuery_,function(E,p){t.add(Z3(E),p)}))};
_.Y=_.ld.prototype;_.Y.getCount=function(){_.Nx(this);return this.count_};
_.Y.add=function(t,E){_.Nx(this);this.encodedQuery_=null;t=Dv(this,t);var p=this.keyMap_.get(t);p||this.keyMap_.set(t,p=[]);p.push(E);this.count_+=1;return this};
_.Y.remove=function(t){_.Nx(this);t=Dv(this,t);return this.keyMap_.has(t)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(t).length,this.keyMap_.delete(t)):!1};
_.Y.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.Y.isEmpty=function(){_.Nx(this);return this.count_==0};
_.Y.containsKey=function(t){_.Nx(this);t=Dv(this,t);return this.keyMap_.has(t)};
_.Y.containsValue=function(t){var E=this.getValues();return _.zt(E,t)};
_.Y.forEach=function(t,E){_.Nx(this);this.keyMap_.forEach(function(p,U){p.forEach(function(x){t.call(E,x,U,this)},this)},this)};
_.Y.getKeys=function(){_.Nx(this);for(var t=Array.from(this.keyMap_.values()),E=Array.from(this.keyMap_.keys()),p=[],U=0;U<E.length;U++)for(var x=t[U],A=0;A<x.length;A++)p.push(E[U]);return p};
_.Y.getValues=function(t){_.Nx(this);var E=[];if(typeof t==="string")this.containsKey(t)&&(E=E.concat(this.keyMap_.get(Dv(this,t))));else{t=Array.from(this.keyMap_.values());for(var p=0;p<t.length;p++)E=E.concat(t[p])}return E};
_.Y.set=function(t,E){_.Nx(this);this.encodedQuery_=null;t=Dv(this,t);this.containsKey(t)&&(this.count_-=this.keyMap_.get(t).length);this.keyMap_.set(t,[E]);this.count_+=1;return this};
_.Y.get=function(t,E){if(!t)return E;t=this.getValues(t);return t.length>0?String(t[0]):E};
_.D0Z=function(t,E,p){t.remove(E);p.length>0&&(t.encodedQuery_=null,t.keyMap_.set(Dv(t,E),_.Dl(p)),t.count_+=p.length)};
_.ld.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var t=[],E=Array.from(this.keyMap_.keys()),p=0;p<E.length;p++){var U=E[p],x=_.VE(U);U=this.getValues(U);for(var A=0;A<U.length;A++){var m=x;U[A]!==""&&(m+="="+_.VE(U[A]));t.push(m)}}return this.encodedQuery_=t.join("&")};
_.ld.prototype.clone=function(){var t=new _.ld;t.encodedQuery_=this.encodedQuery_;this.keyMap_&&(t.keyMap_=new Map(this.keyMap_),t.count_=this.count_);return t};
var Dv=function(t,E){E=String(E);t.JSC$10309_ignoreCase_&&(E=E.toLowerCase());return E},GaW=function(t,E){E&&!t.JSC$10309_ignoreCase_&&(_.Nx(t),t.encodedQuery_=null,t.keyMap_.forEach(function(p,U){var x=U.toLowerCase();
U!=x&&(this.remove(U),_.D0Z(this,x,p))},t));
t.JSC$10309_ignoreCase_=E};
_.ld.prototype.extend=function(t){for(var E=0;E<arguments.length;E++)ats(arguments[E],function(p,U){this.add(U,p)},this)};_.Oa(xO,WQ);var sfm=RegExp("^%*tp$"),LMr=RegExp("^%+tp$");_.Y=xO.prototype;_.Y.connectionDelay_=null;_.Y.peerWindowDeferred_=null;_.Y.transport_=null;_.Y.state_=1;_.Y.isConnected=function(){return this.state_==2};
_.Y.peerWindowObject_=null;_.Y.iframeElement_=null;_.Y.getConfig=function(){return this.cfg_};
_.Y.connect=function(t){this.connectCb_=t||_.SM;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?mRE(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.Y.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10304_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var t=this.iframeElement_.contentWindow;t||(t=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=t}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$10304_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new Sd(this,this.cfg_.ph,this.JSC$10304_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()()};
_.Y.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.wi(this.transport_);this.connectCb_=this.transport_=null;_.wi(this.connectionDelay_);this.connectionDelay_=null};
_.Y.send=function(t,E){if(this.isConnected()){try{var p=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(x){p=!1}if(p){_.o0(E)&&(E=(0,_.id)(E));p=this.transport_;var U=p.send;sfm.test(t)&&(t="%"+t);t=t.replace(/[%:|]/g,encodeURIComponent);U.call(p,t,E)}else this.close()}};
_.Y.xpcDeliver=function(t,E,p){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.Tg)(this.xpcDeliver,this,t,E,p));else if(Itf(this,p)&&!this.isDisposed()&&this.state_!=3)if(t&&t!="tp")this.isConnected()&&(t=t.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),t=LMr.test(t)?t.substring(1):t,t=this.getService(t,E))&&(E=HTp(E,t.objectPayload),E!=null&&t.callback(E));else switch(t=this.transport_,p=Jwf(E),E=p[1],p[0]){case "SETUP_ACK":XEX(t,1);t.setupAckReceived_.fired_||t.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":t.protocolVersion_==2&&(XEX(t,2),t.setupAckReceived_.fired_||t.setupAckReceived_.callback(!0));break;case "SETUP":XEX(t,1);OTX(t,1);break;case "SETUP_NTPV2":t.protocolVersion_==2&&(p=t.peerProtocolVersion_,XEX(t,2),OTX(t,2),p!=1&&t.peerEndpointId_==null||t.peerEndpointId_==E||ZTW(t),t.peerEndpointId_=E)}};
var YyK=function(t){var E=t.cfg_.role;return typeof E==="number"?E:window.parent==t.peerWindowObject_?1:0},Itf=function(t,E){var p=t.cfg_.ph;
return _.mJ(E==null?"":String(E))||_.mJ(p==null?"":String(p))||E==t.cfg_.ph};
xO.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete tW[this.name];_.wi(this.peerLoadHandler_);delete this.peerLoadHandler_;xO.superClass_.disposeInternal.call(this)};
var fRL=function(){for(var t in tW)_.wi(tW[t])},tW={};var Txs=function(t,E){this.win=t;this.allowAdsHttpEndpoint=E;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10318_domHelper=s8(t);this.scrollManager=new bTr(t);this.accessibilityManager=new x0s(t);Pr3(this)},Pr3=function(t){var E=function(){t.allowAdsPopup&&t.allowAdsPopup.style.setProperty("display","none","important");
t.wallElement.style.setProperty("display","","important");AwW(t.accessibilityManager);m0o(t.accessibilityManager,t.wallElement.querySelector(".fc-dialog-container"),!1,!1,t.wallElement.querySelector(".fc-button-whitelist"));t.scrollManager.enableScrolling()};
t.allowAdsPopup=t.JSC$10318_domHelper.JSC$9604_createDom("DIV",{"class":"fc-whitelist-root"});t.allowAdsPopup.style.setProperty("display","none","important");t.JSC$10318_domHelper.appendChild(t.JSC$10318_domHelper.JSC$9602_document_.body,t.allowAdsPopup);var p=t.JSC$10318_domHelper.JSC$9604_createDom("DIV",{"class":"fc-dialog-overlay"});t.JSC$10318_domHelper.appendChild(t.allowAdsPopup,p);var U=t.JSC$10318_domHelper.JSC$9604_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:E});t.JSC$10318_domHelper.appendChild(t.allowAdsPopup,
U);p=t.JSC$10318_domHelper.JSC$9604_createDom("IFRAME");p.className="fc-whitelist-dialog";p.frameBorder="0";p.id="fc-whitelist-iframe";p.tabIndex="0";_.Yk(p,t.allowAdsHttpEndpoint);t.JSC$10318_domHelper.appendChild(U,p);U={};U.pu=_.Dk(t.allowAdsHttpEndpoint).toString();U.tp=1;U.cn="fc-whitelist-channel";U.ifrid=p.id;U.osh=!0;t.allowAdsCrossPageChannel=new xO(U);t.allowAdsCrossPageChannel.registerService("close",E);t.allowAdsCrossPageChannel.registerService("refresh",function(){t.win.location.reload()});
t.allowAdsCrossPageChannel.registerService("resize",function(x){if(x){var A=t.allowAdsPopup.querySelector(".fc-whitelist-dialog");x.width&&A.style.setProperty("width",x.width,"important");x.height&&A.style.setProperty("height",x.height,"important")}},!0);
t.allowAdsCrossPageChannel.connect()};
Txs.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10318_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var sH=window,LJ=document,o74=sH.location,WMp=function(){},$0X=/\[native code\]/,P7=function(t,E,p){return t[E]=t[E]||p},KMr=function(t){t=t.sort();
for(var E=[],p=void 0,U=0;U<t.length;U++){var x=t[U];x!=p&&E.push(x);p=x}return E},Tl=function(){var t;
if((t=Object.create)&&$0X.test(t))t=t(null);else{t={};for(var E in t)t[E]=void 0}return t},oQ=P7(sH,"gapi",{});var W7={};W7=P7(sH,"___jsl",Tl());P7(W7,"I",0);P7(W7,"hel",10);var v7W=function(){var t=o74.href;if(W7.dpo)var E=W7.h;else{E=W7.h;var p=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),U=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(t=t&&(p.exec(t)||U.exec(t)))try{E=decodeURIComponent(t[2])}catch(x){}}return E},ywr=function(t){var E=P7(W7,"PQ",[]);
W7.PQ=[];var p=E.length;if(p===0)t();else for(var U=0,x=function(){++U===p&&t()},A=0;A<p;A++)E[A](x)},SGT=function(t){return P7(P7(W7,"H",Tl()),t,Tl())};var $i=function(t){this.JSC$10320_obj_=t};
$i.prototype.value=function(){return this.JSC$10320_obj_};
$i.prototype.getWidth=function(){return this.JSC$10320_obj_.width};
$i.prototype.getHeight=function(){return this.JSC$10320_obj_.height};
$i.prototype.getStyle=function(){return this.JSC$10320_obj_.style};var cwp=function(t){this.JSC$10323_obj_=t||{}};
_.Y=cwp.prototype;_.Y.value=function(){return this.JSC$10323_obj_};
_.Y.setUrl=function(t){this.JSC$10323_obj_.url=t;return this};
_.Y.getUrl=function(){return this.JSC$10323_obj_.url};
_.Y.getStyle=function(){return this.JSC$10323_obj_.style};
_.Y.getId=function(){return this.JSC$10323_obj_.id};
_.Y.getContext=function(){return this.JSC$10323_obj_.context};
var tJr=function(t){t.JSC$10323_obj_.attributes=t.JSC$10323_obj_.attributes||{};return new $i(t.JSC$10323_obj_.attributes)};var EX4=function(){cwp.apply(this,arguments)};
_.u(EX4,cwp);var pXZ=P7(W7,"perf",Tl());P7(pXZ,"g",Tl());var UW4=P7(pXZ,"i",Tl());P7(pXZ,"r",[]);Tl();Tl();var AHr=function(t,E,p){E&&E.length>0&&(E=xWf(E),p&&p.length>0&&(E+="___"+xWf(p)),E.length>28&&(E=E.substr(0,28)+(E.length-28)),p=E,E=P7(UW4,"_p",Tl()),P7(E,p,Tl())[t]=(new Date).getTime(),E=pXZ.r,typeof E==="function"?E(t,"_p",p):E.push([t,"_p",p]))},xWf=function(t){return t.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var Y_Z=Tl(),MJf=[],KJ=function(t){throw Error("Ua`"+t);};
MJf.push(["jsl",function(t){for(var E in t)if(Object.prototype.hasOwnProperty.call(t,E)){var p=t[E];typeof p=="object"?W7[E]=P7(W7,E,[]).concat(p):P7(W7,E,p)}if(E=t.u)t=P7(W7,"us",[]),t.push(E),(E=/^https:(.*)$/.exec(E))&&t.push("http:"+E[1])}]);
var mW0=/^(\/[a-zA-Z0-9_\-]+)+$/,bWp=[/\/amp\//,/\/amp$/,/^\/amp$/],iWr=/^[a-zA-Z0-9\-_\.,!]+$/,q_m=/^gapi\.loaded_[0-9]+$/,HWs=/^[a-zA-Z0-9,._-]+$/,RLs=function(t,E,p,U,x){var A=t.split(";"),m=A.shift(),b=Y_Z[m],f=null;b?f=b(A,E,p,U):KJ("no hint processor for: "+m);f||KJ("failed to generate load url");E=f;p=E.match(fDr);(U=E.match(B1m))&&U.length===1&&wXo.test(E)&&p&&p.length===1||KJ("failed sanity: "+t);try{t="?";if(x&&x.length>0){eji(x);var B=x.join(",");f=f+"?le="+B;t="&"}if(W7.rol){var R=W7.ol;
R&&R.length&&(f=""+f+t+"ol="+R.length)}}catch(V){}return f},CVp=function(t,E,p,U){t=VJf(t);
q_m.test(p)||KJ("invalid_callback");E=QzT(E);U=U&&U.length?QzT(U):null;var x=function(A){return encodeURIComponent(A).replace(/%2C/g,",")};
return[encodeURIComponent(t.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",x(t.version),"/m=",x(E),U?"/exm="+x(U):"","/rt=j/sv=1/d=1/ed=1",t.activeMods?"/am="+x(t.activeMods):"",t.resourceSig?"/rs="+x(t.resourceSig):"",t.zcms?"/t="+x(t.zcms):"","/cb=",x(p)].join("")},VJf=function(t){t.charAt(0)!=="/"&&KJ("relative path");
for(var E=t.substring(1).split("/"),p=[];E.length;){t=E.shift();if(!t.length||t.indexOf(".")==0)KJ("empty/relative directory");else if(t.indexOf("=")>0){E.unshift(t);break}p.push(t)}t={};for(var U=0,x=E.length;U<x;++U){var A=E[U].split("="),m=decodeURIComponent(A[0]),b=decodeURIComponent(A[1]);A.length==2&&m&&b&&(t[m]=t[m]||b)}E="/"+p.join("/");mW0.test(E)||KJ("invalid_prefix");p=0;for(U=bWp.length;p<U;++p)bWp[p].test(E)&&KJ("invalid_prefix");p=jzp(t,"k",!0);U=jzp(t,"am");x=jzp(t,"rs");t=jzp(t,"t");
return{pathPrefix:E,version:p,activeMods:U,resourceSig:x,zcms:t}},QzT=function(t){for(var E=[],p=0,U=t.length;p<U;++p){var x=t[p].replace(/\./g,"_").replace(/-/g,"_");
HWs.test(x)&&E.push(x)}return E.join(",")},jzp=function(t,E,p){t=t[E];
!t&&p&&KJ("missing: "+E);if(t){if(iWr.test(t))return t;KJ("invalid: "+E)}return null},wXo=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,B1m=/\/cb=/g,fDr=/\/\//g;
Y_Z.m=function(t,E,p,U){(t=t[0])||KJ("missing_hint");return"https://apis.google.com"+CVp(t,E,p,U)};
var rH3=decodeURI("%73cript"),kQr=/^[-+_0-9\/A-Za-z]+={0,2}$/,dWo=function(t,E){for(var p=[],U=0;U<t.length;++U){var x=t[U],A;if(A=x){a:{for(A=0;A<E.length;A++)if(E[A]===x)break a;A=-1}A=A<0}A&&p.push(x)}return p},uvo=function(){var t=W7.nonce;
return t!==void 0?t&&t===String(t)&&t.match(kQr)?t:W7.nonce=null:LJ.querySelector?(t=LJ.querySelector("script[nonce]"))?(t=t.nonce||t.getAttribute("nonce")||"",t&&t===String(t)&&t.match(kQr)?W7.nonce=t:W7.nonce=null):null:null},gXW=function(t){if(LJ.readyState!="loading")JHZ(t);
else{var E=uvo(),p="";E!==null&&(p=' nonce="'+E+'"');t="<"+rH3+' src="'+encodeURI(t)+'"'+p+"></"+rH3+">";LJ.write(ID4?ID4.createHTML(t):t)}},JHZ=function(t){var E=LJ.createElement(rH3);
E.setAttribute("src",ID4?ID4.createScriptURL(t):t);t=uvo();t!==null&&E.setAttribute("nonce",t);E.async="true";(t=LJ.getElementsByTagName(rH3)[0])?t.parentNode.insertBefore(E,t):(LJ.head||LJ.body||LJ.documentElement).appendChild(E)},OWs=function(t,E,p){ZWr(function(){var U=E===v7W()?P7(oQ,"_",Tl()):Tl();
U=P7(SGT(E),"_",U);t(U)},p)},qu_=function(t,E){var p=E||{};
typeof E=="function"&&(p={},p.callback=E);var U=(E=p)&&E._c;if(U)for(var x=0;x<MJf.length;x++){var A=MJf[x][0],m=MJf[x][1];m&&Object.prototype.hasOwnProperty.call(U,A)&&m(U[A],t,E)}E=[];t?E=t.split(":"):p.features&&(E=p.features);if(!(t=p.h)&&(t=v7W(),!t))throw Error("Va");XX4(E||[],p,t)},XX4=function(t,E,p){t=KMr(t)||[];
var U=E.callback,x=E.config,A=E.timeout,m=E.ontimeout,b=E.onerror,f=void 0;typeof b=="function"&&(f=b);var B=null,R=!1;if(A&&!m||!A&&m)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";b=P7(SGT(p),"r",[]).sort();var V=P7(SGT(p),"L",[]).sort(),Q=W7.le||[],C=[].concat(b),d=function(L,D){if(R)return 0;sH.clearTimeout(B);V.push.apply(V,I);var W=((oQ||{}).config||{}).update;W?W(x):x&&P7(W7,"cu",[]).push(x);if(D){AHr("me0",L,C);try{OWs(D,p,f)}finally{AHr("me1",L,C)}}return 1};
A>0&&(B=sH.setTimeout(function(){R=!0;m()},A));
var I=dWo(t,V);if(I.length){I=dWo(t,b);var O=P7(W7,"CP",[]),a=O.length;O[a]=function(L){if(!L)return 0;AHr("ml1",I,C);var D=function(K){O[a]=null;d(I,L)&&ywr(function(){U&&U();K()})},W=function(){var K=O[a+1];
K&&K()};
a>0&&O[a-1]?O[a]=function(){D(W)}:D(W)};
if(I.length){var F="loaded_"+W7.I++;oQ[F]=function(L){O[a](L);oQ[F]=null};
t=RLs(p,I,"gapi."+F,b,Q);b.push.apply(b,I);AHr("ml0",I,C);E.sync||sH.___gapisync?gXW(t):JHZ(t)}else O[a](WMp)}else d(I)&&U&&U()},hLp;
var aDW=null,eL4=_.Ui.trustedTypes;if(eL4&&eL4.createPolicy){try{aDW=eL4.createPolicy("goog#gapi",{createHTML:LJo,createScript:LJo,createScriptURL:LJo})}catch(t){_.Ui.console&&_.Ui.console.error(t.message)}hLp=aDW}else hLp=aDW;var ID4=hLp,ZWr=function(t,E){if(W7.hee&&W7.hel>0)try{return t()}catch(p){E&&E(p),W7.hel--,qu_("debug_error",function(){try{window.___jsl.hefn(p)}catch(U){throw p;}})}else try{return t()}catch(p){throw E&&E(p),p;
}},FLW=oQ.load;
FLW&&P7(W7,"ol",[]).push(FLW);oQ.load=function(t,E){return ZWr(function(){return qu_(t,E)})};var Vut;var GQX=function(){var t=zLp;var E=E||[];this.moduleId_=t||null;this.dependencies_=[];lDG(this,E)};
GQX.prototype.toString=function(){return"MpJwZc"};
GQX.prototype.getModuleId=function(){return this.moduleId_};
var lDG=function(t,E){var p=!1;p=p===void 0?!1:p;t.dependencies_=t.dependencies_.concat(E);if(p){if(!t.moduleId_)throw Error("Wa`MpJwZc");E.map(function(U){return U.getModuleId()}).forEach(function(U){QDJ(function(x){x.addExtraEdge(t.moduleId_,U)})})}};var zLp;zLp="MpJwZc";var O_E=new GQX;var IUi=new _.SI("a"),hJO=new _.SI("c"),XVl=function(t,E,p){_.dV.call(this,t,E);this.node=E;this.kind=p};
_.u(XVl,_.dV);var nXs=function(){this.JSC$10336_keys_={};this.urlPrefix_="";this.JSC$10336_queryData_={}};
nXs.prototype.toString=function(){var t=this.urlPrefix_+N1X(this),E=_.T3(this.JSC$10336_queryData_),p="";E!=""&&(p="?"+E);return t+p};
var DWX=function(t){t=v7(t,"md");return!!t&&t!=="0"},N1X=function(t){var E=[],p=function(U){t.JSC$10336_keys_[U]!==void 0&&E.push(U+"="+t.JSC$10336_keys_[U])};
DWX(t)?(p("md"),p("k"),p("ck"),p("am"),p("rs"),p("gssmodulesetproto"),p("slk"),p("dti")):(p("sdch"),p("k"),p("ck"),p("am"),p("amc"),p("rt"),"d"in t.JSC$10336_keys_||y1(t,"d","0"),p("d"),p("exm"),p("excm"),(t.JSC$10336_keys_.excm||t.JSC$10336_keys_.exm)&&E.push("ed=1"),p("im"),p("dg"),p("sm"),v7(t,"br")!="1"&&v7(t,"br")!="0"||p("br"),p("br-d"),v7(t,"rb")=="1"&&p("rb"),v7(t,"zs")!=="0"&&p("zs"),szr(t)!==""&&p("wt"),p("gssmodulesetproto"),p("ujg"),p("sp"),p("rs"),p("cb"),p("ee"),p("slk"),p("dti"),p("m"));
return E.join("/")},v7=function(t,E){return t.JSC$10336_keys_[E]?t.JSC$10336_keys_[E]:null},y1=function(t,E,p){p?t.JSC$10336_keys_[E]=p:delete t.JSC$10336_keys_[E]},LLm=function(t,E){t.urlPrefix_=E},PVr=function(t,E){E&&E.length>0?(E.sort(),y1(t,"exm",E.join(","))):y1(t,"exm",null)},T1p=function(t,E){E&&E.length>0?(E.sort(),y1(t,"excm",E.join(","))):y1(t,"excm",null)},oX4=function(t){return(t=v7(t,"m"))?t.split(","):[]},szr=function(t){switch(v7(t,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},WLZ=function(t,E){var p=Object.keys(E).filter(function(U){return!!Object.keys(E[U]).length}).map(function(U){var x=Object.keys(E[U]);
x.length>1&&x.sort();return U+":"+x.join(",")});
p.sort();y1(t,"ee",p.join(";"))},JwK=function(t){var E=v7(t,"ee");
if(!E)return{};t={};E=_.M(E.split(";"));for(var p=E.next();!p.done;p=E.next()){var U=_.M(p.value.split(":"));p=U.next().value;U=U.next().value;t[p]={};U=_.M(U.split(","));for(var x=U.next();!x.done;x=U.next())t[p][x.value]=!0}return t},$WT=function(t){delete t.JSC$10336_keys_.m;
delete t.JSC$10336_keys_.exm;delete t.JSC$10336_keys_.ed};
nXs.prototype.clone=function(){var t=new nXs;t.JSC$10336_keys_=Object.assign({},this.JSC$10336_keys_);t.urlPrefix_=this.urlPrefix_;t.JSC$10336_queryData_=Object.assign({},this.JSC$10336_queryData_);return t};
var ItK=function(t,E){E=E===void 0?!0:E;var p=KLp(t),U=new nXs,x=_.ds(p)[5];_.Kq.forEach(vX0,function(m){var b=x.match("/"+m+"=([^/]+)");b&&y1(U,m,b[1])});
var A="";A=t.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";LLm(U,t.substr(0,t.indexOf(A)+A.length));if(!E)return U;(t=_.ds(p)[6]||null)&&h7m(t,function(m,b){U.JSC$10336_queryData_[m]=b});
return U},kaD=function(t){t=_.LR(KLp(t));
return t===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(t)?/\/k=/.test(t):!1},KLp=function(t){return t.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?t.substr(65):t},vX0={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",ALLOW_MISSING_CHUNKS:"amc",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",
GSS_MODULE_SET_PROTO:"gssmodulesetproto",USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},yHZ=RegExp("^(gapi\\.)?loaded(_g|_h)?(_[0-9a-z]+)+$");_.Sv=function(t){this.JSC$10348_id_=t;this.opts={}};
_.Sv.prototype.JSC$10350_setLabel=function(t){this.label_=t||void 0;return this};
_.Sv.prototype.addUploadMetadata=function(t,E){var p=this.opts.data||{};p[t]=E;this.opts.data=p;return this};
var S_p=function(t){var E=_.Kq.filter(t.opts,function(p){return p!==null});
E=_.Kq.isEmpty(E)?null:E;t=[t.JSC$10348_id_,t.label_,E];E=ZOl(t);return t=t.slice(0,E+1)};
_.Sv.prototype.toString=function(){var t=S_p(this);return"("+_.vx(t,function(E){return JSON.stringify(E)}).join(",")+")"};
_.Sv.prototype.getId=function(){return this.JSC$10348_id_};
_.Sv.prototype.getOptions=function(){return _.Kq.clone(this.opts)};var c7=function(){_.Sv.call(this,"image-search")};
_.u(c7,_.Sv);c7.prototype.setSize=function(t){this.opts.imgsz=t;return this};
c7.prototype.JSC$10350_setLabel=function(t){_.Sv.prototype.JSC$10350_setLabel.call(this,t);return this};
c7.prototype.addUploadMetadata=function(t,E){_.Sv.prototype.addUploadMetadata.call(this,t,E);return this};var tY=function(){_.Sv.call(this,"maps")};
_.u(tY,_.Sv);tY.prototype.setZoom=function(t){this.opts.zoom=t;return this};
tY.prototype.JSC$10350_setLabel=function(t){_.Sv.prototype.JSC$10350_setLabel.call(this,t);return this};
tY.prototype.addUploadMetadata=function(t,E){_.Sv.prototype.addUploadMetadata.call(this,t,E);return this};_.E4=function(){_.Sv.call(this,"photos")};
_.u(_.E4,_.Sv);_.E4.prototype.JSC$10350_setLabel=function(t){_.Sv.prototype.JSC$10350_setLabel.call(this,t);return this};
_.E4.prototype.addUploadMetadata=function(t,E){_.Sv.prototype.addUploadMetadata.call(this,t,E);return this};var p3=function(){_.Sv.call(this,"url")};
_.u(p3,_.Sv);var cH0=function(){var t=new p3;t.opts.type="video";t.opts.site="youtube.com";return t};
p3.prototype.JSC$10350_setLabel=function(t){_.Sv.prototype.JSC$10350_setLabel.call(this,t);return this};
p3.prototype.addUploadMetadata=function(t,E){_.Sv.prototype.addUploadMetadata.call(this,t,E);return this};var U4=function(){_.Sv.call(this,"video-search")};
_.u(U4,_.Sv);var tff=function(){var t=new U4;t.opts.site="youtube.com";return t};
U4.prototype.JSC$10350_setLabel=function(t){_.Sv.prototype.JSC$10350_setLabel.call(this,t);return this};
U4.prototype.addUploadMetadata=function(t,E){_.Sv.prototype.addUploadMetadata.call(this,t,E);return this};var Enm=function(){_.Sv.call(this,"web")};
_.u(Enm,_.Sv);Enm.prototype.JSC$10350_setLabel=function(t){_.Sv.prototype.JSC$10350_setLabel.call(this,t);return this};
Enm.prototype.addUploadMetadata=function(t,E){_.Sv.prototype.addUploadMetadata.call(this,t,E);return this};var xE=function(){this.items_=[];this.opts={}},p6o=function(t){switch(t){case "image-search":return new c7;
case "maps":return new tY;case "photos":return new _.E4;case "url":return new p3;case "video-search":return new U4;case "web":return new Enm}return new _.Sv(t)};
xE.prototype.addView=function(t){this.items_.push(typeof t==="string"?p6o(t):t);return this};
var Ue0=function(t){return"("+_.vx(t.items_,function(E){return E.toString()}).join(",")+")"};
xE.prototype.toString=function(){return Ue0(this)};
xE.prototype.getViews=function(t,E){E=E===void 0?[]:E;for(var p=this.items_,U=0;U<p.length;U++){var x=p[U];x instanceof xE?x.getViews(t,E):x.getId()==t&&E.push(x)}return E};
xE.prototype.getOptions=function(){return _.Kq.clone(this.opts)};var Hy=function(t){this.basePickerUrl_=t||"https://docs.google.com/picker";this.nav_=new xE};
Hy.prototype.nav_=null;Hy.prototype.addView=function(t){this.nav_.addView(t);return this};
Hy.prototype.getBaseUrl=function(){return this.basePickerUrl_};
Hy.prototype.getViews=function(t){return this.nav_.getViews(t)};
_.xeZ=function(t,E){t.callback_=E;return t};var AAr=new Map;AAr.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");AAr.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");AAr.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var YRr=new Set;YRr.add("application/vnd.google-apps.kix");YRr.add("application/vnd.google-apps.ritz");YRr.add("application/vnd.google-apps.punch");var QEr=function(t,E,p){var U=p&&_.th(p,1);p=Mff(p);var x=t[0].getId();switch(_.Et(x,2)){case 13:return meW(t,E,U,p);case 3:return bo4(t,E,U,p);case 10:return ioo(t,E,U,p);case 27:return ioo(t,E,U,p);case 12:return qRZ(t,E);case 2:return Hor(t,E,U,p);case 5:return fMT(t,E,U,p);case 9:return Bkr(t,E,U,p);case 6:return w6s(t,E,U,p);case 25:return Rfs(t,E,U,p);case 1:return _.Pn(t[0],$yr,26)?Vf3(t,E,U,p):ioo(t,E,U,p);default:return{}}},w6s=function(t,E,p,U){t=t.map(function(x){return{id:x.getId().getId(),
serviceId:"youtube",name:x.getName(),description:_.th(x,3),type:AY(x),lastEditedUtc:_.W9p(_.lJ(x,_.UQ,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:x.getUrl(),embedUrl:_.th(x,13),thumbnails:YE(Ok(x))}});
return{action:E,docs:t,viewToken:U,view:p||"youtube",v2Translated:!0}},Hor=function(t,E,p,U){var x=t.map(function(A){var m=A.getId().getId(),b=_.th(A,7),f=A.getName(),B=AY(A),R=_.W9p(_.lJ(A,_.UQ,12)).getTime(),V=A.getUrl(),Q=Number(xLs(A)),C=_.th(A,3),d=_.th(A,11),I=YE(Ok(A));
var O=_.lJ(A,X9,21);O=_.yT(O,1);var a=_.lJ(A,X9,21);a=_.th(a,10);var F=_.th(A,13);var L=_.lJ(A,X9,21);L=_.yT(L,9);var D=_.lJ(A,X9,21);D=_.th(D,11);m={id:m,serviceId:"docs",mimeType:b,name:f,type:B,lastEditedUtc:R,url:V,sizeBytes:Q,description:C,iconUrl:d,thumbnails:I,isShared:O,downloadUrl:a,embedUrl:F,copyable:L,resourceKey:D};b=_.lJ(A,X9,21);_.yT(b,12)&&(m.uploadState="success",m.isNew=!0);b=_.lJ(A,X9,21);_.Pn(b,Iq,3)&&(A=_.lJ(A,X9,21),A=_.lJ(A,Iq,3),_.Pn(A,uk,2)&&(b=m7(A.getDuration().getSeconds()),
f=A.getDuration(),f=_.kW(f,2),m.duration=b+f/1E9),m.aspectRatio=A.getAspectRatio());return m});
return{action:E,docs:x,viewToken:U,view:p||"all",extraUserInputs:Cnf(t),v2Translated:!0}},fMT=function(t,E,p,U){t=t.map(function(x){var A=_.lJ(x,UQf,15);
A=_.lJ(A,JI,1);KT(x,10,JI,A);return{id:x.getId().getId(),serviceId:"web",mimeType:_.th(x,7),name:x.getName(),type:AY(x),url:x.getUrl(),description:_.th(x,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:YE(Ok(x))}});
return{action:E,docs:t,viewToken:U,view:p||"image-search",v2Translated:!0}},Bkr=function(t,E,p,U){t=t.map(function(x){return{serviceId:"url",
name:Ok(x)[0].getUrl().split("/").pop(),type:AY(x),mimeType:_.th(x,7),url:x.getUrl(),description:_.th(x,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:YE(Ok(x))}});
return{action:E,docs:t,viewToken:U,view:p||"url",v2Translated:!0}},Vf3=function(t,E,p,U){t=t.map(function(x){return{id:x.getId().getId(),
serviceId:"picasa",name:x.getName(),type:AY(x),description:_.th(x,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:YE(Ok(x))}});
return{action:E,docs:t,viewToken:U,view:p||"webcam",v2Translated:!0}},ioo=function(t,E,p,U){return{action:E,
docs:t.map(jEs),viewToken:U,view:rAX(p||"upload",t),extraUserInputs:Cnf(t),v2Translated:!0}},rAX=function(t,E){return E.some(function(p){var U;
return((U=_.lJ(p,gF,30))==null?void 0:_.Et(U,3))===9})?t+"/gmailphotos":t},bo4=function(t,E,p,U){var x=t.map(function(A){var m={id:A.getId().getId(),
serviceId:"picasa",mimeType:_.th(A,7),name:A.getName(),type:AY(A),lastEditedUtc:_.W9p(_.lJ(A,_.UQ,12)).getTime(),url:A.getUrl(),sizeBytes:Number(xLs(A)),description:_.th(A,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:YE(Ok(A)),mediaKey:A.getId().getId(),parentId:_.th(A,4)},b,f=(b=_.lJ(A,ygr,18))==null?void 0:_.lJ(b,vWT,3);f&&(m.latitude=cn(f,1),m.longitude=cn(f,2));var B;A=(B=_.lJ(A,ygr,18))==null?void 0:Sh(B,6);B=A!=null?m7(A):void 0;B&&(m.version=
B);return m});
return{action:E,docs:x,viewToken:U,view:p||"photos",extraUserInputs:Cnf(t),v2Translated:!0}},meW=function(t,E,p,U){t=t.map(function(x){return{id:x.getId().getId(),
serviceId:"et",name:Ok(x)[0].getUrl().split("/").pop(),description:_.th(x,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:YE(Ok(x),"etjpg")}});
return{action:E,docs:t,viewToken:U,view:p||"et",v2Translated:!0}},Rfs=function(t,E,p,U){t=t.map(function(x){var A=x.getId().getId(),m=U["2"];
return{id:A,serviceId:m.type!=="gmail_themes"&&m.parent==="6226252643674576769"?"picasa":"static_themes",name:x.getName(),mimeType:_.th(x,7),type:AY(x),description:_.th(x,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:x.getUrl(),embedUrl:x.getUrl(),thumbnails:YE(Ok(x))}});
return{action:E,docs:t,viewToken:U,view:p||"photos",v2Translated:!0}},qRZ=function(t,E){t=t.map(function(p){var U=_.lJ(p,K9Z,27);
U=_.cK(U,1,_.hd,_.ri())[0];return{id:p.getId().getId(),serviceId:"contacts",mimeType:_.th(p,7),name:p.getName(),description:_.th(p,3),url:"mailto:"+U,thumbnail:[{url:_.th(p,11)}],email:U}});
return{action:E,docs:t,view:"contacts",v2Translated:!0}},Mff=function(t){if(!t)return{};
var E=_.th(t,3);E=E&&JSON.parse(E)||{};return{0:_.th(t,1),1:_.th(t,2),2:E}},YE=function(t,E){E=E===void 0?"":E;
if(!t.length)return null;E=="etjpg"&&(t=t.filter(function(p){return p.getUrl().includes("w1200-h300")}));
return t.map(function(p){return{url:p.getUrl(),height:p.getHeight(),width:p.getWidth(),type:E}})},Cnf=function(t){return{isAttachment:t.some(function(E){return _.yT(E,31)})}},jEs=function(t){var E,p={id:(E=t.getId())==null?void 0:E.getId(),
serviceId:kx4(t),mimeType:_.th(t,7),name:t.getName(),type:AY(t),sizeBytes:Number(xLs(t)),description:_.th(t,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:YE(Ok(t)),isNew:!0};if(E=_.lJ(t,gF,30)){p.dataUrl=_.th(E,1)||null;a:{var U=_.lJ(t,gF,30);switch(_.Et(U,3)){case 9:U=_.xC(U,EO4,2,ZS);U={remoteRefs:U&&_.th(U,1)};break a;case 10:case 15:U=_.xC(U,tKo,4,ZS);var x=Ok(t);U={photo_id:U&&_.th(U,1),media_key:t.getId().getId(),media_type:_.Et(t,6)===1?1:2,image_url:x&&
x[0].getUrl(),width:x&&String(x[0].getWidth()),height:x&&String(x[0].getHeight())};break a}U=null}p.uploadMetadata=U;p.uploadId=_.th(E,9)||null;p.uploadState=deG(E)||null}(U=E&&_.xC(E,tKo,4,ZS))&&(p.id=_.th(U,1));(U=E&&_.xC(E,pys,5,ZS))&&(p.contentId=_.th(U,1));(U=E&&_.xC(E,ShW,7,ZS))&&(p.contentId=_.th(U,1));(U=E&&_.xC(E,cg4,6,ZS))&&(p.contentId=_.th(U,1));(E==null?void 0:_.Et(E,3))===1&&(p.mediaKey=t.getId().getId());return p},kx4=function(t){var E;
switch(((E=_.lJ(t,gF,30))==null?void 0:_.Et(E,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},AY=function(t){switch(_.Et(t,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 _.th(t,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},deG=function(t){switch(t==null?void 0:_.Et(t,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 gnp,uEr,JAr,IMm;_.Zo4=function(t,E){var p=E||{};E=p.document||document;var U=_.Dk(t).toString(),x=(new Uk(E)).createElement("SCRIPT"),A={script_:x,timeout_:void 0},m=new yy(uEr,A),b=null,f=p.timeout!=null?p.timeout:5E3;f>0&&(b=window.setTimeout(function(){JAr(x,!0);m.errback(new IMm(1,"Timeout reached for loading script "+U))},f),A.timeout_=b);
x.onload=x.onreadystatechange=function(){x.readyState&&x.readyState!="loaded"&&x.readyState!="complete"||(JAr(x,p.cleanupWhenDone||!1,b),m.callback(null))};
x.onerror=function(){JAr(x,!0,b);m.errback(new IMm(0,"Error while loading script "+U))};
A=p.attributes||{};_.Kq.extend(A,{type:"text/javascript",charset:"UTF-8"});DXm(x,A);_.w3(x,t);gnp(E).appendChild(x);return m};
gnp=function(t){var E=Ny("HEAD",t);return E&&E.length!==0?E[0]:t.documentElement};
uEr=function(){if(this&&this.script_){var t=this.script_;t&&t.tagName=="SCRIPT"&&JAr(t,!0,this.timeout_)}};
JAr=function(t,E,p){p!=null&&_.Ui.clearTimeout(p);t.onload=function(){};
t.onerror=function(){};
t.onreadystatechange=function(){};
E&&window.setTimeout(function(){_.ng(t)},0)};
IMm=function(t,E){var p="Jsloader error (code #"+t+")";E&&(p+=": "+E);_.tD.call(this,p);this.code=t};
_.Oa(IMm,_.tD);var Oos=_.CG(["https://apis.google.com/js/api.js"]),X6o=_.JC(Oos),FQX=function(t,E,p){p=p===void 0?{}:p;var U=!1,x=hfs(t,E,p).then(function(m){U=!0;return m}),A=_.Mif(5E3).then(function(){return U?hfs(t,E,p):aMW(E,p).then(function(m){return ef3(m,t)})});
return KWW([x,A])},hfs=function(t,E,p){p=p===void 0?{}:p;
return zf3(E,p).then(function(U){return ef3(U,t)})},ef3=function(t,E){var p=_.AD(E,"gapi.")?E.slice(5):E;
return t[p]?_.gu(t[p]):new _.PE(function(U,x){var A=mm(function(){x(Error("Ya"))},3E4);
t.load(E,{callback:function(){_.Ui.clearTimeout(A);U(t[p])},
onerror:function(m){_.Ui.clearTimeout(A);x(m)}})})},zf3=function(t,E){E=E===void 0?{}:E;
return t.gapi&&t.gapi.load?_.gu(t.gapi):aMW(t,E)},aMW=function(t,E){E=E===void 0?{}:E;
return _.Zo4(X6o,{document:t.document,attributes:E}).then(function(){return t.gapi})},lMW=function(){};
lMW.prototype.load=function(t,E,p){E=E===void 0?window:E;p=p===void 0?{}:p;var U=Date.now();return FQX(t,E,p).then(function(x){var A=Date.now();return{library:x,loadStartMs:U,loadEndMs:A}},function(x){throw x instanceof Error?x:Error(String(x));
})};var n6O=function(){_.PQ.call(this);this.gapiLoader_=new lMW;this.origin_=null;this.gapiPickerIframeResolver_=_.fd();this.gapiIframesResolver_=_.fd();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.u(n6O,_.PQ);var Gxs=function(t,E){var p=p===void 0?{}:p;var U=_.ws("gapi.iframes",E);return U?(t=Date.now(),_.gu({library:U,loadStartMs:t,loadEndMs:t})):t.gapiLoader_.load("gapi.iframes",E,p)},nnT=function(t,E,p,U,x,A){var m=!1;
m=m===void 0?!1:m;Gxs(t,yX(E.ownerDocument)).then(function(b){var f=b.library;t.gapiIframesResolver_.resolve(f);b=t.gapiPickerIframeResolver_;var B=b.resolve,R=m;R=R===void 0?!1:R;var V={};V["host-message-handler"]=p;t.hostMessageHandlerInternal_=V;var Q=_.QC(U);Q=_.QC(Q);Q=_.hU(_.XB(_.OH(new _.fF,Q.scheme_),Q.JSC$10308_domain_),Q.JSC$10308_port_).toString();t.origin_=Q;Q=(new EX4).setUrl(U);Q.JSC$10323_obj_.where=E;Q.JSC$10323_obj_.allowPost=R;Q.JSC$10323_obj_.messageHandlers=V;R=_.ws("makeWhiteListIframesFilter",
f)([t.origin_]);Q.JSC$10323_obj_.messageHandlersFilter=R;x!=null&&(Q.JSC$10323_obj_.id=x);A!=null&&(Q.JSC$10323_obj_.rpctoken=A);R=tJr(Q);R.JSC$10320_obj_.style={display:"block","min-width":"100%",width:"1px"};R.JSC$10320_obj_.height="100%";tJr(Q).value().allow="camera 'src' "+t.origin_;f=f.getContext().openChild(Q.value());B.call(b,f)},function(b){t.gapiIframesResolver_.reject(b);
t.gapiPickerIframeResolver_.reject(b)});
return t.gapiPickerIframeResolver_.promise},Nkr=function(t,E){return _.Yi([t.gapiIframesResolver_.promise,
t.gapiPickerIframeResolver_.promise]).then(function(p){var U=_.M(p);p=U.next().value;return(U=U.next().value)?U.send("picker-message-handler",E,void 0,_.ws("makeWhiteListIframesFilter",p)([t.origin_])):_.S5(Error("Za"))})};
n6O.prototype.disposeInternal=function(){DeX(this);_.PQ.prototype.disposeInternal.call(this)};
var DeX=function(t){t.gapiPickerIframeResolver_.promise.then(function(E){E&&(E.unregister("host-message-handler"),delete t.hostMessageHandlerInternal_["host-message-handler"])})};var sEp=function(){this.nextId=0};var PnT=function(t,E){switch(t.action){case "select-contacts":t=LQm(t.contacts);break;case "visibility":t=t.visible;var p=new F9;t=_.YC(p,1,7).setVisible(t);p={};p["iframe-command"]=t.serialize();t=p;break;default:t=null}return t?Nkr(E,t):_.gu()},LQm=function(t){if(!t||t.length==0)return null;
var E=new F9;_.YC(E,1,11);var p=new sEp;t.forEach(function(U){if(U.email){var x=new KG;x=_.R7(x,2,U.name?U.name:U.email);var A=new K9Z;U=_.ydt(A,1,_.gt,U.email,_.hd);U=_.FU(x,27,U);x=new oWm;A=":"+(p.nextId++).toString(36);x=_.R7(x,1,A);x=_.YC(x,2,12);U=_.FU(U,1,x)}else U=null;U&&KT(E,7,KG,U)});
t={};t["iframe-command"]=E.serialize();return t};_.Tkr=function(){if(kXp){var t=/Windows NT ([0-9.]+)/;return(t=t.exec(_.V_()))?t[1]:"0"}return _.r3p?(t=/1[0|1][_.][0-9_.]+/,(t=t.exec(_.V_()))?t[0].replace(/_/g,"."):"10"):Sv8?(t=/Android\s+([^\);]+)(\)|;)/,(t=t.exec(_.V_()))?t[1]:""):u4X||J33||ITs?(t=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(t=t.exec(_.V_()))?t[1].replace(/_/g,"."):""):""}();var MC;MC=function(t){return(t=t.exec(_.V_()))?t[1]:""};
_.onZ=function(){if(_.lf)return MC(/Firefox\/([0-9.]+)/);if(_.FI||g7||Qsr)return eoT;if(_.Gm){if(_.XO()||_.JD$()){var t=MC(/CriOS\/([0-9.]+)/);if(t)return t}return MC(/Chrome\/([0-9.]+)/)}if(_.Bk&&!_.XO())return MC(/Version\/([0-9.]+)/);if(yj_||SFl){if(t=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.V_()))return t[1]+"."+t[2]}else if(nm4)return(t=MC(/Android\s+([0-9.]+)/))?t:MC(/Version\/([0-9.]+)/);return""}();var WQT=function(){};
_.gW(WQT);WQT.prototype.nextId_=0;_.mC=function(t){return":"+(t.nextId_++).toString(36)};var bQ=function(t){_.UH.call(this);this.JSC$10418_dom_=t||s8();this.JSC$10418_id_=null;this.inDocument_=!1;this.JSC$10418_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.Oa(bQ,_.UH);bQ.prototype.idGenerator_=WQT.getInstance();bQ.prototype.getId=function(){return this.JSC$10418_id_||(this.JSC$10418_id_=_.mC(this.idGenerator_))};
bQ.prototype.getElement=function(){return this.JSC$10418_element_};
var bB=function(t){t.googUiComponentHandler_||(t.googUiComponentHandler_=new _.Kg(t));return t.googUiComponentHandler_},$eW=function(t,E){if(t==E)throw Error("$a");
var p;if(p=E&&t.parent_&&t.JSC$10418_id_){p=t.parent_;var U=t.JSC$10418_id_;p=p.childIndex_&&U?_.Kq.get(p.childIndex_,U)||null:null}if(p&&t.parent_!=E)throw Error("$a");t.parent_=E;bQ.superClass_.setParentEventTarget.call(t,E)};
bQ.prototype.setParentEventTarget=function(t){if(this.parent_&&this.parent_!=t)throw Error("ab");bQ.superClass_.setParentEventTarget.call(this,t)};
bQ.prototype.JSC$10420_createDom=function(){this.JSC$10418_element_=this.JSC$10418_dom_.createElement("DIV")};
bQ.prototype.render=function(t){KQm(this,t)};
var KQm=function(t,E,p){if(t.inDocument_)throw Error("bb");t.JSC$10418_element_||t.JSC$10420_createDom();E?E.insertBefore(t.JSC$10418_element_,p||null):t.JSC$10418_dom_.JSC$9602_document_.body.appendChild(t.JSC$10418_element_);t.parent_&&!t.parent_.inDocument_||t.enterDocument()};
_.Y=bQ.prototype;_.Y.decorate=function(t){if(this.inDocument_)throw Error("bb");if(t&&this.canDecorate(t)){this.wasDecorated_=!0;var E=_.S2(t);this.JSC$10418_dom_&&this.JSC$10418_dom_.JSC$9602_document_==E||(this.JSC$10418_dom_=s8(t));this.decorateInternal(t);this.enterDocument()}else throw Error("cb");};
_.Y.canDecorate=function(){return!0};
_.Y.decorateInternal=function(t){this.JSC$10418_element_=t};
_.Y.enterDocument=function(){this.inDocument_=!0;vno(this,function(t){!t.inDocument_&&t.getElement()&&t.enterDocument()})};
_.Y.exitDocument=function(){vno(this,function(t){t.inDocument_&&t.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.Y.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);vno(this,function(t){t.dispose()});
!this.wasDecorated_&&this.JSC$10418_element_&&_.ng(this.JSC$10418_element_);this.parent_=this.model_=this.JSC$10418_element_=this.childIndex_=this.children_=null;bQ.superClass_.disposeInternal.call(this)};
_.Y.getModel=function(){return this.model_};
_.Y.addChild=function(t,E){var p=this.children_?this.children_.length:0;if(t.inDocument_&&(E||!this.inDocument_))throw Error("bb");if(p<0||p>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);t.parent_==this?(_.Kq.set(this.childIndex_,t.getId(),t),_.NK(this.children_,t)):_.Kq.add(this.childIndex_,t.getId(),t);$eW(t,this);_.alY(this.children_,p,0,t);t.inDocument_&&this.inDocument_&&t.parent_==this?(E=this.getContentElement(),
(E.childNodes[p]||null)!=t.getElement()&&(t.getElement().parentElement==E&&E.removeChild(t.getElement()),p=E.childNodes[p]||null,E.insertBefore(t.getElement(),p))):E?(this.JSC$10418_element_||this.JSC$10420_createDom(),p=this.children_?this.children_[p+1]||null:null,KQm(t,this.getContentElement(),p?p.JSC$10418_element_:null)):this.inDocument_&&!t.inDocument_&&t.JSC$10418_element_&&t.JSC$10418_element_.parentNode&&t.JSC$10418_element_.parentNode.nodeType==1&&t.enterDocument()};
_.Y.getContentElement=function(){return this.JSC$10418_element_};
var vno=function(t,E){t.children_&&t.children_.forEach(E,void 0)};
bQ.prototype.removeChild=function(t,E){if(t){var p=typeof t==="string"?t:t.getId();t=this.childIndex_&&p?_.Kq.get(this.childIndex_,p)||null:null;p&&t&&(_.Kq.remove(this.childIndex_,p),_.NK(this.children_,t),E&&(t.exitDocument(),t.JSC$10418_element_&&_.ng(t.JSC$10418_element_)),$eW(t,null))}if(!t)throw Error("eb");return t};_.Oa(rFO,jDL);_.Oa(kMj,jDL);var yAT;_.Kq.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var SRs=function(t,E){E?t.setAttribute("role",E):t.removeAttribute("role")},iB=function(t,E,p){Array.isArray(p)&&(p=p.join(" "));
var U="aria-"+E;p===""||p==void 0?(yAT||(p={},yAT=(p.atomic=!1,p.autocomplete="none",p.dropeffect="none",p.haspopup=!1,p.live="off",p.multiline=!1,p.multiselectable=!1,p.orientation="vertical",p.readonly=!1,p.relevant="additions text",p.required=!1,p.sort="none",p.busy=!1,p.disabled=!1,p.hidden=!1,p.invalid="false",p)),p=yAT,E in p?t.setAttribute(U,p[E]):t.removeAttribute(U)):t.setAttribute(U,p)};var cAW;_.qC=function(t,E,p){_.UH.call(this);this.target=t;this.handle=E||t;this.limits=p||new O8(NaN,NaN,NaN,NaN);this.JSC$10423_document_=_.S2(t);this.JSC$10423_eventHandler_=new _.Kg(this);_.ed(this,this.JSC$10423_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;_.vu(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=cAW};
_.Oa(_.qC,_.UH);cAW=_.Ui.document&&_.Ui.document.documentElement&&!!_.Ui.document.documentElement.setCapture&&!!_.Ui.document.releaseCapture;_.tQ3=function(t,E){t.hysteresisDistanceSquared_=Math.pow(E,2)};
_.Y=_.qC.prototype;_.Y.setEnabled=function(t){this.enabled_=t};
_.Y.disposeInternal=function(){_.qC.superClass_.disposeInternal.call(this);_.pJ(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10423_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10423_document_.releaseCapture();this.handle=this.target=null};
_.Y.startDrag=function(t){var E=t.type=="mousedown";if(!this.enabled_||this.dragging_||E&&(!t.isButton(0)||_.r3p&&t.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new Hl("start",this,t.clientX,t.clientY,t)))this.dragging_=!0,E&&t.preventDefault();else return;else E&&t.preventDefault();E=this.JSC$10423_document_;var p=E.documentElement,U=!this.useSetCapture_;this.JSC$10423_eventHandler_.listen(E,["touchmove","mousemove"],this.handleMove_,
{capture:U,passive:!1});this.JSC$10423_eventHandler_.listen(E,["touchend","mouseup"],this.endDrag,U);this.useSetCapture_?(p.setCapture(!1),this.JSC$10423_eventHandler_.listen(p,"losecapture",this.endDrag)):this.JSC$10423_eventHandler_.listen(yX(E),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10423_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,U);this.clientX=this.startX=t.clientX;this.clientY=this.startY=t.clientY;this.screenX=t.screenX;this.screenY=t.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=D_(s8(this.JSC$10423_document_))}};
_.Y.endDrag=function(t,E){this.JSC$10423_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10423_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new Hl("end",this,t.clientX,t.clientY,t,Ex3(this,this.deltaX),pVo(this,this.deltaY),E||t.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.Y.handleMove_=function(t){if(this.enabled_){var E=t.clientX-this.clientX,p=t.clientY-this.clientY;this.clientX=t.clientX;this.clientY=t.clientY;this.screenX=t.screenX;this.screenY=t.screenY;if(!this.dragging_){var U=this.startX-this.clientX,x=this.startY-this.clientY;if(U*U+x*x>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new Hl("start",this,t.clientX,t.clientY,t)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(t);return}}p=UGs(this,E,p);E=p.x;p=p.y;this.dragging_&&this.dispatchEvent(new Hl("beforedrag",
this,t.clientX,t.clientY,t,E,p))&&(xG0(this,t,E,p),t.preventDefault())}};
var UGs=function(t,E,p){var U=D_(s8(t.JSC$10423_document_));E+=U.x-t.pageScroll.x;p+=U.y-t.pageScroll.y;t.pageScroll=U;t.deltaX+=E;t.deltaY+=p;return new _.gg(Ex3(t,t.deltaX),pVo(t,t.deltaY))};
_.qC.prototype.onScroll_=function(t){var E=UGs(this,0,0);t.clientX=this.clientX;t.clientY=this.clientY;xG0(this,t,E.x,E.y)};
var xG0=function(t,E,p,U){t.target.style.left=p+"px";t.target.style.top=U+"px";t.dispatchEvent(new Hl("drag",t,E.clientX,E.clientY,E,p,U))},Ex3=function(t,E){var p=t.limits;
t=isNaN(p.left)?null:p.left;p=isNaN(p.width)?0:p.width;return Math.min(t!=null?t+p:Infinity,Math.max(t!=null?t:-Infinity,E))},pVo=function(t,E){var p=t.limits;
t=isNaN(p.top)?null:p.top;p=isNaN(p.height)?0:p.height;return Math.min(t!=null?t+p:Infinity,Math.max(t!=null?t:-Infinity,E))};
_.qC.prototype.isDragging=function(){return this.dragging_};
var Hl=function(t,E,p,U,x,A,m){_.dV.call(this,t);this.clientX=p;this.clientY=U;this.browserEvent=x;this.left=A!==void 0?A:E.deltaX;this.top=m!==void 0?m:E.deltaY};
_.Oa(Hl,_.dV);var f3=function(t){this.JSC$10430_map_=new Map;var E=arguments.length;if(E>1){if(E%2)throw Error("ma");for(var p=0;p<E;p+=2)this.set(arguments[p],arguments[p+1])}else t&&this.addAll(t)};
_.Y=f3.prototype;_.Y.getCount=function(){return this.JSC$10430_map_.size};
_.Y.getValues=function(){return Array.from(this.JSC$10430_map_.values())};
_.Y.getKeys=function(){return Array.from(this.JSC$10430_map_.keys())};
_.Y.containsKey=function(t){return this.JSC$10430_map_.has(t)};
_.Y.containsValue=function(t){return this.getValues().some(function(E){return E==t})};
_.Y.equals=function(t,E){var p=this;E=E===void 0?function(U,x){return U===x}:E;
return this===t?!0:this.JSC$10430_map_.size!=t.getCount()?!1:this.getKeys().every(function(U){return E(p.JSC$10430_map_.get(U),t.get(U))})};
_.Y.isEmpty=function(){return this.JSC$10430_map_.size==0};
_.Y.clear=function(){this.JSC$10430_map_.clear()};
_.Y.remove=function(t){return this.JSC$10430_map_.delete(t)};
_.Y.get=function(t,E){return this.JSC$10430_map_.has(t)?this.JSC$10430_map_.get(t):E};
_.Y.set=function(t,E){this.JSC$10430_map_.set(t,E);return this};
_.Y.addAll=function(t){if(t instanceof f3){t=_.M(t.JSC$10430_map_);for(var E=t.next();!E.done;E=t.next()){var p=_.M(E.value);E=p.next().value;p=p.next().value;this.JSC$10430_map_.set(E,p)}}else if(t)for(t=_.M(Object.entries(t)),E=t.next();!E.done;E=t.next())p=_.M(E.value),E=p.next().value,p=p.next().value,this.JSC$10430_map_.set(E,p)};
_.Y.forEach=function(t,E){var p=this;E=E===void 0?this:E;this.JSC$10430_map_.forEach(function(U,x){return t.call(E,U,x,p)})};
_.Y.clone=function(){return new f3(this)};(function(){for(var t=["ms","moz","webkit","o"],E,p=0;E=t[p]&&!_.Ui.requestAnimationFrame;++p)_.Ui.requestAnimationFrame=_.Ui[E+"RequestAnimationFrame"],_.Ui.cancelAnimationFrame=_.Ui[E+"CancelAnimationFrame"]||_.Ui[E+"CancelRequestAnimationFrame"];if(!_.Ui.requestAnimationFrame){var U=0;_.Ui.requestAnimationFrame=function(x){var A=(new Date).getTime(),m=Math.max(0,16-(A-U));U=A+m;return _.Ui.setTimeout(function(){x(A+m)},m)};
_.Ui.cancelAnimationFrame||(_.Ui.cancelAnimationFrame=function(x){clearTimeout(x)})}})();
var ua$=[[],[]],JF8=0,IRl=!1,dR_=0;var Aos=_.CG(["about:blank"]),Yms=_.CG(["javascript:undefined"]),MQr=_.JC(Aos);_.Dk(MQr);var mGp=_.JC(Yms);_.Dk(mGp);var Bl=function(t){_.UH.call(this);this.JSC$10436_element_=t;this.listenKeyIn_=_.vu(this.JSC$10436_element_,"focus",this,!0);this.listenKeyOut_=_.vu(this.JSC$10436_element_,"blur",this,!0)};
_.Oa(Bl,_.UH);Bl.prototype.handleEvent=function(t){var E=new _.cf(t.event_);E.type=t.type=="focusin"||t.type=="focus"?"focusin":"focusout";this.dispatchEvent(E)};
Bl.prototype.disposeInternal=function(){Bl.superClass_.disposeInternal.call(this);Wu(this.listenKeyIn_);Wu(this.listenKeyOut_);delete this.JSC$10436_element_};_.Oa(iQ,bQ);_.Y=iQ.prototype;_.Y.focusHandler_=null;_.Y.visible_=!1;_.Y.bgEl_=null;_.Y.bgIframeEl_=null;_.Y.tabCatcherElement_=null;_.Y.backwardTabWrapInProgress_=!1;_.Y.getCssClass=function(){return"goog-modalpopup"};
_.Y.getBackgroundElement=function(){return this.bgEl_};
_.Y.JSC$10420_createDom=function(){iQ.superClass_.JSC$10420_createDom.call(this);var t=this.getElement(),E=fO(this.getCssClass()).split(" ");JU(t,E);t.tabIndex=0;_.rV(t,!1);b_s(this);i_X(this)};
var b_s=function(t){if(t.useIframeMask_&&!t.bgIframeEl_){var E=t.JSC$10418_dom_.JSC$9604_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.Yk(E,MQr);t.bgIframeEl_=E;t.bgIframeEl_.className=t.getCssClass()+"-bg";_.rV(t.bgIframeEl_,!1);wQZ(t.bgIframeEl_,0)}t.bgEl_||(t.bgEl_=t.JSC$10418_dom_.JSC$9604_createDom("DIV",t.getCssClass()+"-bg"),_.rV(t.bgEl_,!1))},i_X=function(t){t.tabCatcherElement_||(t.tabCatcherElement_=t.JSC$10418_dom_.createElement("SPAN"),_.rV(t.tabCatcherElement_,
!1),t.tabCatcherElement_.tabIndex=0,t.tabCatcherElement_.style.position="absolute")};
_.Y=iQ.prototype;_.Y.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.Y.canDecorate=function(t){return!!t&&t.tagName=="DIV"};
_.Y.decorateInternal=function(t){iQ.superClass_.decorateInternal.call(this,t);t=fO(this.getCssClass()).split(" ");JU(this.getElement(),t);b_s(this);i_X(this);this.getElement().tabIndex=0;_.rV(this.getElement(),!1)};
_.Y.enterDocument=function(){this.bgIframeEl_&&_.ik(this.bgIframeEl_,this.getElement());_.ik(this.bgEl_,this.getElement());iQ.superClass_.enterDocument.call(this);_.qh(this.tabCatcherElement_,this.getElement());this.focusHandler_=new Bl(this.JSC$10418_dom_.JSC$9602_document_);bB(this).listen(this.focusHandler_,"focusin",this.onFocus);qm0(this,!1)};
_.Y.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.wi(this.focusHandler_);iQ.superClass_.exitDocument.call(this);_.ng(this.bgIframeEl_);_.ng(this.bgEl_);_.ng(this.tabCatcherElement_)};
_.Y.setVisible=function(t){if(t!=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_&&qm0(this,t),t){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10418_dom_.JSC$9602_document_.activeElement}catch(x){}this.updateModalAndBackground_();bB(this).listen(this.JSC$10418_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10418_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);H_W(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)pN(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){bB(this).unlisten(this.JSC$10418_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10418_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)pN(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var E=this.JSC$10418_dom_,p=E.JSC$9602_document_.body,U=E.JSC$9602_document_.activeElement||p;if(!this.lastFocus_||this.lastFocus_==p){this.lastFocus_=null;break a}(U==p||E.contains(this.getElement(),U))&&this.lastFocus_.focus()}catch(x){}this.lastFocus_=
null}}};
var qm0=function(t,E){t.modalAriaVisibilityHelper_||(t.modalAriaVisibilityHelper_=new OM_(t.JSC$10418_element_,t.JSC$10418_dom_));t=t.modalAriaVisibilityHelper_;if(E){t.hiddenElements_||(t.hiddenElements_=[]);E=t.JSC$10439_dom_.getChildren(t.JSC$10439_dom_.JSC$9602_document_.body);for(var p=0;p<E.length;p++){var U=E[p],x;if(x=U!=t.JSC$10439_element_)x=U.getAttribute("aria-hidden"),x=!(x==null||x==void 0?0:String(x));x&&(iB(U,"hidden",!0),t.hiddenElements_.push(U))}}else if(t.hiddenElements_){for(E=
0;E<t.hiddenElements_.length;E++)t.hiddenElements_[E].removeAttribute("aria-hidden");t.hiddenElements_=null}};
iQ.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var H_W=function(t,E){t.bgIframeEl_&&_.rV(t.bgIframeEl_,E);t.bgEl_&&_.rV(t.bgEl_,E);_.rV(t.getElement(),E);_.rV(t.tabCatcherElement_,E)};
_.Y=iQ.prototype;_.Y.onShow=function(){this.dispatchEvent("show")};
_.Y.onHide=function(){H_W(this,!1);this.dispatchEvent("hide")};
_.Y.isVisible=function(){return this.visible_};
_.Y.focus=function(){this.focusElement_()};
_.Y.resizeBackground_=function(){this.bgIframeEl_&&_.rV(this.bgIframeEl_,!1);this.bgEl_&&_.rV(this.bgEl_,!1);var t=this.JSC$10418_dom_.JSC$9602_document_;var E=_.NX(yX(this.JSC$10418_dom_.JSC$9602_document_)||window);var p=Math.max(E.width,Math.max(t.body.scrollWidth,t.documentElement.scrollWidth));t=Math.max(E.height,Math.max(t.body.scrollHeight,t.documentElement.scrollHeight));this.bgIframeEl_&&(_.rV(this.bgIframeEl_,!0),_.qhr(this.bgIframeEl_,p,t));this.bgEl_&&(_.rV(this.bgEl_,!0),_.qhr(this.bgEl_,
p,t))};
_.Y.reposition=function(){var t;if(_.igs(this.getElement())=="fixed")var E=t=0;else E=D_(this.JSC$10418_dom_),t=E.x,E=E.y;var p=fPo(this.getElement());var U=_.NX(yX(this.JSC$10418_dom_.JSC$9602_document_)||window);t=Math.max(t+U.width/2-p.width/2,0);E=Math.max(E+U.height/2-p.height/2,0);Rq(this.getElement(),t,E);Rq(this.tabCatcherElement_,t,E)};
_.Y.onFocus=function(t){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():t.target==this.tabCatcherElement_&&mm(this.focusElement_,0,this)};
_.Y.focusElement_=function(){try{this.getElement().focus()}catch(t){}};
_.Y.disposeInternal=function(){_.wi(this.popupShowTransition_);this.popupShowTransition_=null;_.wi(this.popupHideTransition_);this.popupHideTransition_=null;_.wi(this.bgShowTransition_);this.bgShowTransition_=null;_.wi(this.bgHideTransition_);this.bgHideTransition_=null;iQ.superClass_.disposeInternal.call(this)};var qQ=function(t,E,p){iQ.call(this,E,p);this.JSC$10449_class_=t||"modal-dialog";this.buttons_=(new wM).addButton(fsr,!0).addButton(BJs,!1,!0)};
_.Oa(qQ,iQ);_.Y=qQ.prototype;_.Y.escapeToCancel_=!0;_.Y.hasTitleCloseButton_=!0;_.Y.modal_=!0;_.Y.draggable_=!0;_.Y.backgroundElementOpacity_=.5;_.Y.title_="";_.Y.JSC$10451_dragger_=null;_.Y.JSC$10451_disposeOnHide_=!1;_.Y.titleEl_=null;_.Y.titleTextEl_=null;_.Y.titleTextId_=null;_.Y.titleCloseEl_=null;_.Y.contentEl_=null;_.Y.buttonEl_=null;_.Y.getCssClass=function(){return this.JSC$10449_class_};
_.Y.setTitle=function(t){this.title_=t;this.titleTextEl_&&_.fu(this.titleTextEl_,t)};
_.Y.getTitle=function(){return this.title_};
_.Y.getContent=function(){return""};
_.Y.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var wVp=function(t){t.getElement()||t.render();return t.getElement()};
qQ.prototype.getBackgroundElement=function(){this.getElement()||this.render();return qQ.superClass_.getBackgroundElement.call(this)};
var RJs=function(t,E){t.backgroundElementOpacity_=E;t.getElement()&&(E=t.getBackgroundElement())&&wQZ(E,t.backgroundElementOpacity_)};
qQ.prototype.setDraggable=function(t){this.draggable_=t;VQp(this,t&&this.inDocument_)};
qQ.prototype.handleDrag=function(){};
var VQp=function(t,E){var p=fO(t.JSC$10449_class_+"-title-draggable").split(" ");t.getElement()&&(E?JU(t.titleEl_,p):U0p(t.titleEl_,p));E&&!t.JSC$10451_dragger_?(E=new _.qC(t.getElement(),t.titleEl_),t.JSC$10451_dragger_=E,JU(t.titleEl_,p),_.vu(t.JSC$10451_dragger_,"start",t.setDraggerLimits_,!1,t),_.vu(t.JSC$10451_dragger_,"drag",t.handleDrag,!1,t)):!E&&t.JSC$10451_dragger_&&(t.JSC$10451_dragger_.dispose(),t.JSC$10451_dragger_=null)};
_.Y=qQ.prototype;
_.Y.JSC$10420_createDom=function(){qQ.superClass_.JSC$10420_createDom.call(this);var t=this.getElement(),E=this.JSC$10418_dom_;this.titleTextId_=this.getId();var p=this.getId()+".contentEl";this.titleEl_=E.JSC$9604_createDom("DIV",this.JSC$10449_class_+"-title",this.titleTextEl_=E.JSC$9604_createDom("SPAN",{className:this.JSC$10449_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=E.JSC$9604_createDom("SPAN",this.JSC$10449_class_+"-title-close"));os3(t,this.titleEl_,this.contentEl_=
E.JSC$9604_createDom("DIV",{className:this.JSC$10449_class_+"-content",id:p}),this.buttonEl_=E.JSC$9604_createDom("DIV",this.JSC$10449_class_+"-buttons"));SRs(this.titleTextEl_,"heading");SRs(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;iB(this.titleCloseEl_,"label","Close");SRs(t,"dialog");iB(t,"labelledby",this.titleTextId_||"");_.rV(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(t=this.buttons_,t.JSC$10452_element_=this.buttonEl_,t.render());_.rV(this.buttonEl_,!!this.buttons_);
RJs(this,this.backgroundElementOpacity_)};
_.Y.decorateInternal=function(t){qQ.superClass_.decorateInternal.call(this,t);t=this.getElement();var E=this.JSC$10449_class_+"-content";this.contentEl_=xM(document,null,E,t)[0];this.contentEl_||(this.contentEl_=this.JSC$10418_dom_.JSC$9604_createDom("DIV",E),t.appendChild(this.contentEl_));E=this.JSC$10449_class_+"-title";var p=this.JSC$10449_class_+"-title-text",U=this.JSC$10449_class_+"-title-close";(this.titleEl_=xM(document,null,E,t)[0])?(this.titleTextEl_=xM(document,null,p,this.titleEl_)[0],
this.titleCloseEl_=xM(document,null,U,this.titleEl_)[0]):(this.titleEl_=this.JSC$10418_dom_.JSC$9604_createDom("DIV",E),t.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=Ags(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.YM("SPAN",{className:p,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;iB(t,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10418_dom_.JSC$9604_createDom("SPAN",U),this.titleEl_.appendChild(this.titleCloseEl_));_.rV(this.titleCloseEl_,this.hasTitleCloseButton_);E=this.JSC$10449_class_+"-buttons";(this.buttonEl_=xM(document,null,E,t)[0])?(this.buttons_=new wM(this.JSC$10418_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10418_dom_.JSC$9604_createDom("DIV",E),t.appendChild(this.buttonEl_),this.buttons_&&(t=this.buttons_,t.JSC$10452_element_=this.buttonEl_,t.render()),_.rV(this.buttonEl_,
!!this.buttons_));RJs(this,this.backgroundElementOpacity_)};
_.Y.enterDocument=function(){qQ.superClass_.enterDocument.call(this);bB(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);bB(this).listen(this.buttonEl_,"click",this.onButtonClick_);VQp(this,this.draggable_);bB(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var t=this.getElement();SRs(t,"dialog");this.titleTextEl_.id!==""&&iB(t,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){t=this.JSC$10418_dom_;
var E=this.getBackgroundElement();t.removeNode(this.bgIframeEl_);t.removeNode(E)}this.isVisible()&&qm0(this,!1)}};
_.Y.exitDocument=function(){this.isVisible()&&this.setVisible(!1);VQp(this,!1);qQ.superClass_.exitDocument.call(this)};
_.Y.setVisible=function(t){t!=this.isVisible()&&(this.inDocument_||this.render(),qQ.superClass_.setVisible.call(this,t))};
_.Y.onShow=function(){qQ.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.Y.onHide=function(){qQ.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10451_disposeOnHide_&&this.dispose()};
_.Y.setDraggerLimits_=function(){var t=this.JSC$10418_dom_.JSC$9602_document_,E=_.NX(yX(t)||window),p=Math.max(t.body.scrollWidth,E.width);t=Math.max(t.body.scrollHeight,E.height);var U=fPo(this.getElement());_.igs(this.getElement())=="fixed"?this.JSC$10451_dragger_.limits=new O8(0,0,Math.max(0,E.width-U.width),Math.max(0,E.height-U.height)):this.JSC$10451_dragger_.limits=new O8(0,0,p-U.width,t-U.height)};
_.Y.onTitleCloseClick_=function(){Qim(this)};
var Qim=function(t){if(t.hasTitleCloseButton_){var E=t.buttons_,p=E&&E.cancelButton_;p?(E=E.get(p),t.dispatchEvent(new Rr(p,E))&&t.setVisible(!1)):t.setVisible(!1)}},CH4=function(t){t.hasTitleCloseButton_=!1;
t.titleCloseEl_&&_.rV(t.titleCloseEl_,t.hasTitleCloseButton_)};
qQ.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;qQ.superClass_.disposeInternal.call(this)};
qQ.prototype.onButtonClick_=function(t){a:{for(t=t.target;t!=null&&t!=this.buttonEl_;){if(t.tagName=="BUTTON")break a;t=t.parentNode}t=null}if(t&&!t.disabled){t=t.name;var E=this.buttons_.get(t);this.dispatchEvent(new Rr(t,E))&&this.setVisible(!1)}};
qQ.prototype.onKey_=function(t){var E=!1,p=!1,U=this.buttons_,x=t.target;if(t.type=="keydown")if(this.escapeToCancel_&&t.keyCode==27){var A=U&&U.cancelButton_;x=x.tagName=="SELECT"&&!x.disabled;A&&!x?(p=!0,E=U.get(A),E=this.dispatchEvent(new Rr(A,E))):x||(E=!0)}else{if(t.keyCode==9&&t.shiftKey&&x==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(R){}mm(this.resetBackwardTabWrap_,0,this)}}else if(t.keyCode==13){if(x.tagName=="BUTTON"&&!x.disabled)A=x.name;
else if(x==this.titleCloseEl_)Qim(this);else if(U){var m=U.defaultButton_,b;if(b=m)a:{b=Ny("BUTTON",U.JSC$10452_element_);for(var f,B=0;f=b[B];B++)if(f.name==m||f.id==m){b=f;break a}b=null}x=(x.tagName=="TEXTAREA"||x.tagName=="SELECT"||x.tagName=="A")&&!x.disabled;!b||b.disabled||x||(A=m)}A&&U&&(p=!0,E=this.dispatchEvent(new Rr(A,String(U.get(A)))))}else x!=this.titleCloseEl_||t.keyCode!=32&&t.key!=" "||Qim(this);if(E||p)t.stopPropagation(),t.preventDefault();E&&this.setVisible(!1)};
var Rr=function(t,E){this.type="dialogselect";this.key=t;this.caption=E};
_.Oa(Rr,_.dV);var wM=function(t){f3.call(this);t||s8();this.cancelButton_=this.JSC$10452_element_=this.defaultButton_=null};
_.Oa(wM,f3);_.Y=wM.prototype;_.Y.clear=function(){f3.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.Y.set=function(t,E,p,U){f3.prototype.set.call(this,t,E);p&&(this.defaultButton_=t);U&&(this.cancelButton_=t);return this};
_.Y.addButton=function(t,E,p){return this.set(t.key,t.caption,E,p)};
_.Y.render=function(){if(this.JSC$10452_element_){_.RR(this.JSC$10452_element_,LnK);var t=s8(this.JSC$10452_element_);this.forEach(function(E,p){E=t.JSC$9604_createDom("BUTTON",{name:p},E);p==this.defaultButton_&&(E.className="goog-buttonset-default");this.JSC$10452_element_.appendChild(E)},this)}};
_.Y.decorate=function(t){if(t&&t.nodeType==1){this.JSC$10452_element_=t;t=Ny("BUTTON",this.JSC$10452_element_);for(var E,p,U,x=0;E=t[x];x++)if(p=E.name||E.id,U=Ags(E)||E.value,p){var A=x==0;this.set(p,U,A,E.name=="cancel");A&&_.RC(E,"goog-buttonset-default")}}};
_.Y.getElement=function(){return this.JSC$10452_element_};
var fsr={key:"ok",caption:"OK"},BJs={key:"cancel",caption:"Cancel"},jiW={key:"yes",caption:"Yes"},roZ={key:"no",caption:"No"},kZ0={key:"save",caption:"Save"},dGs={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new wM).addButton(fsr,!0,!0),(new wM).addButton(fsr,!0).addButton(BJs,!1,!0),(new wM).addButton(jiW,!0).addButton(roZ,!1,!0),(new wM).addButton(jiW).addButton(roZ,!0).addButton(BJs,!1,!0),(new wM).addButton(dGs).addButton(kZ0).addButton(BJs,!0,!0));_.Oa(Xkt,qQ);_.Oa(he0,Hy);var uxs=_.CG(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),JoT=_.CG(["//apis.google.com/js/rpc.js"]),sDD=_.JC(uxs),DR8=_.JC(JoT),ee0=null;var fN=function(t,E){_.UH.call(this);this.JSC$10461_element_=t;t=_.Ic(this.JSC$10461_element_)?this.JSC$10461_element_:this.JSC$10461_element_?this.JSC$10461_element_.body:null;this.isRtl_=!!t&&_.R7W(t);this.listenKey_=_.vu(this.JSC$10461_element_,_.Ne?"DOMMouseScroll":"mousewheel",this,E)};
_.Oa(fN,_.UH);fN.prototype.handleEvent=function(t){var E=0,p=0,U=t.event_;U.type=="mousewheel"?(t=IsZ(-U.wheelDelta),U.wheelDeltaX!==void 0?(E=IsZ(-U.wheelDeltaX),p=IsZ(-U.wheelDeltaY)):p=t):(t=U.detail,t>100?t=3:t<-100&&(t=-3),U.axis!==void 0&&U.axis===U.HORIZONTAL_AXIS?E=t:p=t);typeof this.maxDeltaX_==="number"&&(E=_.Ay(E,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(p=_.Ay(p,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(E=-E);E=new gxs(t,U,E,p);this.dispatchEvent(E)};
var IsZ=function(t){return _.no&&(_.r3p||dfm)&&t%40!=0?t:t/40};
fN.prototype.disposeInternal=function(){fN.superClass_.disposeInternal.call(this);Wu(this.listenKey_);this.listenKey_=null};
var gxs=function(t,E,p,U){_.cf.call(this,E);this.type="mousewheel";this.detail=t;this.deltaX=p;this.deltaY=U};
_.Oa(gxs,_.cf);_.I7=function(t){var E="instance_";if(t.instance_&&t.hasOwnProperty(E))return t.instance_;E=new t;return t.instance_=E};var N7J;var Z_s=_.CG(["https://about:blank"]),O_Z=_.CG(['javascript:""']),XVT=_.CG(["about:blank"]);_.Oa(kO,Xkt);_.Y=kO.prototype;_.Y.JSC$10469_url_="";_.Y.JSC$10469_iframe_=null;_.Y.iframeLoaded_=!1;_.Y.loadedFired_=!1;_.Y.callback_=function(){};
_.Y.enterDocument=function(){kO.superClass_.enterDocument.call(this);lR0(this.getBackgroundElement(),bB(this))};
_.Y.render=function(t){var E=this;kO.superClass_.render.call(this,t);this.useGapi_?Gxs(this.iframeManager_,window).then(function(){return hJs(E)}).then(null,function(){E.callback_({action:"error"})}):asp(this)};
var hJs=function(t){var E=t.JSC$10418_dom_.JSC$9604_createDom("div",["picker-dialog-content","picker-frame"]);_.rV(E,!1);t.getContentElement().appendChild(E);return nnT(t.iframeManager_,E,function(p){var U=MK0(p["iframe-command"]);switch(U.getCommand()){case 1:p=t.callback_;U=_.lJ(U,eI,2);var x="";switch(U.getStatus()){case 2:x="cancel";break;case 1:x="picked";break;case 3:x="error"}var A=_.jd(U,KG,2,_.ri(TZ0));U=A.length===0?{action:x}:QEr(A,x,_.lJ(U,xQr,7));p.call(t,U);t.setVisible(!1);break;case 4:CH4(t);
t.callback_({action:"loaded"});break;case 7:case 8:p=t.callback_;a:{x=U.getCommand();A=_.lJ(U,eI,2);switch(x){case 7:x="uploadScheduled";break;case 8:x="uploadStateChange";break;default:U={};break a}U=_.jd(A,KG,2,_.ri(TZ0));if(U.length===0)U={action:x};else{var m=_.lJ(A,xQr,7);A=m&&_.th(m,1);m=Mff(m);U=ioo(U,x,A,m)}}p.call(t,U)}},t.JSC$10469_url_,t.targetId_,t.rpcToken_).then(function(p){t.JSC$10469_iframe_=p.getIframeEl();
eJ4(t);_.rV(t.JSC$10469_iframe_.parentElement,!0);_.RC(t.getElement(),"picker-dialog");FVW(t);return p})},asp=function(t){t.JSC$10469_iframe_=t.JSC$10418_dom_.JSC$9604_createDom("IFRAME",{id:t.targetId_,
name:t.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.Yk(t.JSC$10469_iframe_,zJX(t));_.RC(t.getElement(),"picker-dialog");t.getContentElement().appendChild(t.JSC$10469_iframe_);bB(t).listen(t.JSC$10469_iframe_,"load",function(){return void eJ4(t)});
t.JSC$10469_iframe_.src=t.JSC$10469_url_;FVW(t)},GZG=function(t){lss(t,(0,_.Tg)(function(E){E.setAuthToken(this.targetId_,this.rpcToken_)},t))},FVW=function(t){var E=_.CN(_.QC(t.JSC$10469_url_),"title");
E&&t.setTitle(E)},zJX=function(t){return _.kt$("Internet Explorer")>=7&&_.AD(t.JSC$10469_url_,"https")?_.JC(Z_s):_.FI?_.JC(O_Z):_.JC(XVT)},eJ4=function(t){GZG(t);
t.iframeLoaded_=!0;t.JSC$10469_iframe_.tabIndex=0;t.isVisible()&&t.focus()};
kO.prototype.handleKeydown_=function(t){t.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),t.stopPropagation(),t.preventDefault())};
var lss=function(t,E){var p=t.JSC$10467_gadgetsDomHelper_;Fn8(function(){E(p.getWindow().gadgets.rpc)},p)};
kO.prototype.setUrl=function(t){t=_.jK(new _.fF(t),"rpcService",this.targetId_);_.jK(t,"rpctoken",this.rpcToken_);_.FB(t,"rpctoken="+this.rpcToken_);_.OH(t,"https");this.JSC$10469_url_=t.toString();this.JSC$10469_iframe_&&(this.JSC$10469_iframe_.src=this.JSC$10469_url_)};
var nxf=function(t,E){t.callback_=E;lss(t,(0,_.Tg)(function(p){p.register(this.targetId_,(0,_.Tg)(this.handlePickerAction_,this))},t))};
kO.prototype.handlePickerAction_=function(t){var E=t.action;E=="loaded"&&(this.loadedFired_=!0,NJ3(this,new kMj(this.isVisible())),DGr(this),CH4(this),bB(this).unlisten(this.JSC$10418_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10469_iframe_.tabIndex=0);E!="picked"&&E!="cancel"||this.setVisible(!1);this.callback_(t)};
var DGr=function(t){t.JSC$10469_appId_&&NJ3(t,new rFO(t.JSC$10469_appId_,window.location.protocol+"//"+window.location.host))};
kO.prototype.setRelayUrl=function(t){lss(this,(0,_.Tg)(function(E){E.setRelayUrl(this.targetId_,t)},this))};
var NJ3=function(t,E){t.useGapi_&&PnT(E,t.iframeManager_).then(null,function(){t.callback_({action:"error"})});
lss(t,(0,_.Tg)(function(p){p.call(this.targetId_,"picker",null,E)},t))};
kO.prototype.resizePicker_=function(){var t=yX(this.JSC$10418_dom_.JSC$9602_document_)||window;if(_.CN(_.QC(this.JSC$10469_url_),"ignoreLimits")=="true")t=new _.nq(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.CN(_.QC(this.JSC$10469_url_),"shadeDialog")=="true"){var E=wVp(this);E=Vds(E);var p=_.NX(t);t=p.width-80;p=p.height-40;E&&(t-=E.left?E.left:0,t-=E.right?E.right:0,p-=E.top?E.top:0,p-=E.bottom?E.bottom:0);t=new _.nq(t>0?t:0,p>0?p:0)}else(E=this.preferredDialogWidth_)?(E=Math.max(320,
Math.min(1051,E)),(p=this.preferredDialogHeight_)||(p=_.NX(t).height*.85),p=Math.max(480,Math.min(650,p))):(E=_.NX(t),p=E.width*.618,p=p<E.height?Math.round(Math.max(480,Math.min(650,p*.85))):Math.round(Math.max(480,Math.min(650,E.height*.85))),E=Math.round(p/.618)),t=_.NX(t),E=Math.min(E,Math.max(t.width,320)),p=Math.min(p,Math.max(t.height,480)),t=new _.nq(E,p);_.qhr(this.getContentElement(),t);this.reposition()};
kO.prototype.reposition=function(){if(_.CN(_.QC(this.JSC$10469_url_),"shadeDialog")=="true"){var t=fPo(this.getElement()),E=_.NX(this.JSC$10418_dom_.getWindow());t=Math.floor(E.width/2-t.width/2);E=wVp(this);if(E=Vds(E)){var p=E.left?E.left:0;p+=E.right?E.right:0;t=Math.floor(t-p/2)}t=t>0?t:0;E=D_(this.JSC$10418_dom_).y;Rq(this.getElement(),t,E)}else kO.superClass_.reposition.call(this)};
kO.prototype.setVisible=function(t){if(t!=this.isVisible()&&this.autoSizeDialog_){var E=this.JSC$10418_dom_.getWindow();t?(this.resizePicker_(),bB(this).listen(E,"resize",this.resizePicker_),this.iframeLoaded_||bB(this).listen(E,"keydown",this.handleKeydown_)):(bB(this).unlisten(E,"resize",this.resizePicker_),this.iframeLoaded_||bB(this).unlisten(E,"keydown",this.handleKeydown_))}kO.superClass_.setVisible.call(this,t);NJ3(this,new kMj(t))};
kO.prototype.focus=function(){kO.superClass_.focus.call(this);if(this.JSC$10469_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10469_iframe_.focus()}catch(t){}};var s5=function(t,E){E=E===void 0?kO:E;Hy.call(this,t);this.pickerConstructor=E;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(t=window.location.origin)||(t=window.location.protocol+"//"+window.location.host);t&&this.urlParamMap_.set("origin",t);this.postProcessors_=[]};
_.u(s5,he0);s5.prototype.JSC$10474_disposeOnHide_=!1;
s5.prototype.build=function(){this.JSC$10375_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10375_appId_);this.getRelayUrl()||this.setRelayUrl(_.aQ(_.FB(_.ev(_.QC(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("gb");var t=new this.pickerConstructor(siZ(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);t.JSC$10451_disposeOnHide_=this.JSC$10474_disposeOnHide_;
t.JSC$10469_appId_=this.JSC$10375_appId_;t.loadedFired_&&DGr(t);nxf(t,this.callback_);return t};
var LV4=function(t){t.urlParamMap_.set("multiselectEnabled","true");return t};
_.Y=s5.prototype;_.Y.getHeight=function(){return this.dialogHeight_};
_.Y.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.Y.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.Y.getTitle=function(){return this.urlParamMap_.get("title")};
_.Y.getWidth=function(){return this.dialogWidth_};
var PH0=function(t){t.JSC$10474_disposeOnHide_=void 0;return t};
s5.prototype.setRelayUrl=function(t){this.urlParamMap_.set("parent",t);return this};
var TJX=function(t,E){t.urlParamMap_.set("selectButtonLabel",E);return t};
s5.prototype.setSize=function(t,E){this.dialogWidth_=t;this.dialogHeight_=E;return this};
s5.prototype.setTitle=function(t){this.urlParamMap_.set("title",t);return this};
var siZ=function(t){t.postProcessors_.length&&t.urlParamMap_.set("pp",JSON.stringify(t.postProcessors_));t.urlParamMap_.set("nav",Ue0(t.nav_));var E=new _.fF(t.getBaseUrl());t.urlParamMap_.forEach(function(p,U){_.jK(E,U,p)});
return E};var $GT=function(t,E){t.name!==void 0?(this.name=t.name,this.code=ox4[t.name]):(this.code=t=t.code,this.name=WVZ(t));_.tD.call(this,aoW("%s %s",this.name,E))};
_.Oa($GT,_.tD);var WVZ=function(t){var E=_.Kq.findKey(ox4,function(p){return t==p});
if(E===void 0)throw Error("ib`"+t);return E},VN={},ox4=(VN.AbortError=3,VN.EncodingError=5,VN.InvalidModificationError=9,VN.InvalidStateError=7,VN.NotFoundError=1,VN.NotReadableError=4,VN.NoModificationAllowedError=6,VN.PathExistsError=12,VN.QuotaExceededError=10,VN.SecurityError=2,VN.SyntaxError=8,VN.TypeMismatchError=11,VN);_.Oa(PJj,_.dV);var KV0=function(t,E,p){p===void 0&&(p=t.size);return t.slice?t.slice(E,p):null};var o6i=new WeakMap,T7t=function(t,E){t=[t];for(var p=E.length-1;p>=0;--p)t.push(typeof E[p],E[p]);return t.join("\v")};_.$RD(function(){if(!_.Ui.Blob)return!1;var t=new Uint8Array(100);try{var E=new Blob([t])}catch(p){return!1}return E.size!=100?!1:!0});
var vxG=_.$RD(function(){if(!_.Ui.Blob)return!1;var t=new Uint8Array(100);try{var E=new Blob([t])}catch(p){return!1}return KV0(E,0,1)===null?!1:!0});_.Ui.U3bHHf!=null||(_.Ui.U3bHHf=0);_.Ui.U3bHHf++;var yF8=new WeakMap;var v6J=new WeakMap;var tTi={};var gV=void 0;var pE0=Symbol("qb");var VT0=X8("WizInjectionContext_Dispatcher");var Zp=Symbol("rb");var sj=function(){this.afterRenderCallbacks=null},MTY=Symbol("sb"),$w=function(t){this.props=t;
this.__unmounted=!1};
$w.prototype.didPatch=function(){};
$w.prototype.didMount=function(){};
$w.prototype.didUnmount=function(){};
$w.prototype.didUpdate=function(){};var YGL=X8("WizInjectionContext_RootElement");var Bx$=X8("WizInjectionContext_AppContext"),ft8=X8("WizInjectionContext_ModelRootElement"),wEj=X8("WizInjectionContext_RendererData"),RMt=X8("WizInjectionContext_InjectingConstructor"),HT8=X8("WizInjectionContext_AsyncDeps"),Qfl={};var uLL=!1;var ZT$={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:wpT,enableContextPerComponent:wpT,enableLazyTsx:Ror,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:BZ4,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var ac=Object.assign({},{attributes:{},handleError:function(t){throw t;}},ZT$);var yos=Symbol("wb"),pw=Symbol("xb"),tfK=Symbol("yb"),S_8=Symbol("zb"),MfK=ns(function(t){return LN(t)&&yos in t});var eK=null,z$=!1,G$=1,D8=Symbol("Db"),$O={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 QN=Symbol("Eb"),C3=Symbol("Fb"),NQ=Symbol("Gb"),LMi=Object.assign({},$O,{value:QN,dirty:!0,error:null,equal:eME,kind:"computed",producerMustRecompute:function(t){return t.value===QN||t.value===C3},
producerRecomputeValue:function(t){if(t.value===C3)throw Error("Z");var E=t.value;t.value=C3;var p=NxY(t),U=!1;try{var x=t.computation();F8(null);U=E!==QN&&E!==NQ&&x!==NQ&&t.equal(E,x)}catch(A){x=NQ,t.error=A}finally{F8(p),t&&sfL(t)}U?t.value=E:(t.value=x,t.version++)}});var Smo=Object.assign({},$O,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var WM8=function(){throw Error();};var KMi=null,TxO=Object.assign({},$O,{equal:eME,value:void 0,kind:"signal"});var v7$=Object.assign({},$O,{value:QN,dirty:!0,error:null,equal:eME,kind:"linkedSignal",producerMustRecompute:function(t){return t.value===QN||t.value===C3},
producerRecomputeValue:function(t){if(t.value===C3)throw Error("Z");var E=t.value;t.value=C3;var p=NxY(t);try{var U=t.source();var x=t.computation(U,E===QN||E===NQ?void 0:{source:t.sourceValue,value:E});t.sourceValue=U}catch(A){x=NQ,t.error=A}finally{F8(p),t&&sfL(t)}E!==QN&&x!==NQ&&t.equal(E,x)?t.value=E:(t.value=x,t.version++)}});Object.assign({},$O,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(t){t.schedule!==null&&t.schedule(t.ref)},
cleanupFn:function(){}});var UWO=Symbol("Hb"),jr={},tJJ=(jr[UWO]=!0,jr.debugName="[component]",jr.getComponentStack=function(){for(var t=[],E=this;E;)xWK(E)&&t.push(E.debugName),E=E.parent;return t},jr.registerSignal=function(){},jr.registerEffect=function(){},jr);var JHE=Symbol("Ib"),T$=Symbol("Jb");var oc=Array.isArray;var FL$;var cop={},lDY=eLO(Object.assign({},{consumerAllowSignalWrites:!0},cop)),Pv=eLO(Object.assign({},{consumerAllowSignalWrites:!0},cop));var SK=Symbol("Ob");var yC=null,DWt,szJ=null,LLL;var Uj=0,xw=!1,rM=function(){this.queue=new Set};
rM.prototype.schedule=function(t){this.queue.add(t)};
rM.prototype.remove=function(t){this.queue.delete(t)};
rM.prototype.clear=function(){this.queue.clear()};
var $Wl=Symbol("Pb"),oXO=Symbol("Qb"),kE=function(){rM.apply(this,arguments)};
_.u(kE,rM);kE.prototype.flush=function(){if(this.queue.size){xw=!0;for(var t=_.M(this.queue),E=t.next();!E.done;E=t.next()){E=E.value;this.queue.delete(E);try{E.run()}catch(p){tRX(p)}}xw=!1}};
var ET0=function(){kE.apply(this,arguments)};
_.u(ET0,kE);var WLE=new ET0,pD0=function(){kE.apply(this,arguments)};
_.u(pD0,kE);pD0.prototype.schedule=function(t){return _.q(function(E){if(E.nextAddress==1)return E.yield(Promise.resolve(),2);t.run();_.Do(E)})};
pD0.prototype.enqueue=function(t){this.queue.add(t)};
var KL8=new pD0,dM=function(){rM.apply(this,arguments)};
_.u(dM,rM);dM.prototype.flush=function(){this.queue.size&&me$(this.queue)};
var U_G=function(){dM.apply(this,arguments)};
_.u(U_G,dM);U_G.prototype.schedule=function(t){t.version===0?t.run():this.queue.add(t)};
U_G.prototype.flush=function(){if(this.queue.size)if(ac.flushRenderEffectsDuringRender){var t=this.queue;this.queue=new Set;me$(t)}else me$(this.queue)};
var yHE=new U_G,x_s=function(){dM.apply(this,arguments)};
_.u(x_s,dM);x_s.prototype.schedule=function(t){return _.q(function(E){if(E.nextAddress==1)return E.yield(Promise.resolve(),2);t.run();_.Do(E)})};
x_s.prototype.enqueue=function(t){this.queue.add(t)};
var EnL=new x_s,AZp=function(){dM.apply(this,arguments)};
_.u(AZp,dM);var cH_=new AZp,Ue_=[yHE,WLE,cH_],YRi=[KL8,EnL],YTW=[yHE,cH_,EnL],boO=[].concat(_.KB(Ue_),_.KB(YRi)),MRs=[];KMi=function(){AAJ();for(var t=_.M(MRs),E=t.next();!E.done;E=t.next())E=E.value,E()};
var tRX=xL;var uB={},m_3=Object.assign({},Smo,(uB[yos]=!0,uB.effectType=pw,uB.isResettableContext=!0,uB.consumerMarkedDirty=p6j,uB.run=function(){qRE(this)},uB.cleanup=function(){qG$(this)},uB.componentStack=void 0,uB.debugName="[effect]",uB.destroy=function(){if(lQ(this))for(var t=this.producers;t!==void 0;)t=D0E(t);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;t=_.M(YTW);for(var E=t.next();!E.done;E=t.next())E.value.remove(this);iTY(this)},uB[Symbol.dispose]=function(){this.destroy()},uB)),bF0=Object.assign({},m_3,{version:1,
dirty:!1});var HoJ=Object.assign({},m_3,{effectType:pw});var fMl=Object.assign({},m_3,{effectType:tfK});var Rf0=Symbol("Sb");var tQD=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 CnK={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},QEi=
{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}]}},gb$={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},kxO=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],rAt={"*":{async:1,dir:0,loading:2,target:3}};var iFW=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,JY={},uEi=(JY[1]=null,JY[2]=function(t,E){return E instanceof U2?A9(E):y$.toString()},JY[3]=function(t,E){return Ww(E)?_.$I(E):iFW.test(String(E))?String(E):y$.toString()},JY[4]=function(t,E){return E instanceof nt?_.Dk(E):y$.toString()},JY[5]=function(t,E){return String(E)},JY[7]=null,JY[8]=null,JY[10]=null,JY);var d6E=Symbol("Vb");var ZoO="Y Z E P T G M K  m u n".split(" "),gn8={"":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};_.qTr=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 zq={};RegExp.prototype.hasOwnProperty("sticky");var pVj=function(t){t=String(t);for(var E=function(U,x,A){for(var m=Math.min(x.length-A,U.length),b=0;b<m;b++){var f=x[A+b];if(U[b]!==("A"<=f&&f<="Z"?f.toLowerCase():f))return!1}return!0},p=0;(p=t.indexOf("<",p))!=-1;){if(E("\x3c/script",t,p)||E("\x3c!--",t,p))return"zSoyz";
p+=1}return t};var Rm={default:"__default"};var efD=Object.prototype.hasOwnProperty;X6j.prototype=Object.create(null);var ZD=lM$();var uK=null;var KQL=function(t){this.created=[];this.deleted=[];this.node=t};var vnj=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var t=this,E=t;t;)E=t,t=t.parentNode;return E};var nnl=function(t,E){this._attrsArr=null;this.nameOrCtor=t;this.key=E;this.text=void 0};var Cw=null,jC=null,VG=null,kw=null,Tki=[],Pnl=sE8,dh=[],kd$=function(t){return yAl(function(E,p,U){VG=jC=E;jC=null;p(U);LQL(null);jC=VG;VG=VG.parentNode;return E},t)}(),reJ=function(t){return yAl(function(E,p,U){var x={nextSibling:E};
jC=x;p(U);VG&&LQL(E.nextSibling);return x===jC?null:jC},t)}();var Jt=[],utL=0;var O_=new X6j;var HFp=lM$(),AoO=HFp[Rm.default],xG_=HFp.style,ExD=["focusin","focusout"],mG8="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var $Gl=function(){},lsO=function(){},co8=function(){},vxY=function(){};var gh=Symbol("cc");var fsi,H_$=qm_;var nw=Symbol("dc");var Smj=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(" ")),
yoO=new Set(["a","font","script","style","title"]);var Gq={setUp:IsE,tearDown:IsE,log:IsE,logNodeRange:IsE,graft:function(t,E){E()}};var Tq={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var om=null,Wv=function(t,E){$w.call(this,t);var p=this;this.functionComponent=E;this.hooks=[];this.hookCounter=0;this.disposeEffects=q$(function(U){p.effectContext=U;_.iK(function(){DGJ(p,p.el)})},ac.alwaysTrackContexts||!!gV)};
_.u(Wv,$w);Wv.prototype.render=function(t){var E=om;om=this;this.hookCounter=0;var p=F8(Pv),U=Z8(this.effectContext);try{return XEt("render",this.componentName),this.functionComponent(t)}finally{hMK("render",this.componentName),Z8(U),F8(p),om=E}};
_.aE.Object.defineProperties(Wv.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return nX0(this.functionComponent)}}});var tRt=Symbol("rc"),oxO=function(t,E,p){this.afterRenderCallbacks=null;this.kind=t;this.props=E;this.children=p};
_.u(oxO,sj);oxO.prototype.render=function(){var t=TJt(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var E=_.M(this.afterRenderCallbacks),p=E.next();!p.done;p=E.next())p=p.value,t=p(t);return t};
oxO.prototype.getChildren=function(){return this.children};var pD_=[];WM8=function(t){throw Error("pb`"+t.debugName);};
(function(){var t=uK;uK=function(E){t==null||t(E);U_Y(E)}})();Object.assign({},bF0,{effectType:pw,elementRef:null,attributes:null,fn:function(){var t=this.elementRef;var E;t.element!=null||(t.element=(E=t.document.getElementById(t.value))!=null?E:void 0);t=t.element;for(E=this.attributes;E;){var p=E.signal();p!==E.prevValue&&(E.prevValue=p,E.namespace===1?t[E.name]=p:tQD.has(E.name)?wh(t,E.name,p?"":null):wh(t,E.name,p));E=E.next}}});_.Kw.debugName="tbhMcf";_.vv.debugName="zyMFzb";Object.assign({},bF0,{effectType:pw});_.w.debugName="RlDudd";var x_0={nonNullableCondIsNull:function(){return Error("vc")}};var qTJ=function(){this.map=new Map};
qTJ.prototype.push=function(t,E){var p=this.map;p.has(t)&&(this.multi||(this.multi=new Map),this.multi.set(E,p.get(t)));p.set(t,E)};
qTJ.prototype.pop=function(t){var E=this.map,p=E.get(t),U;p!==void 0&&((U=this.multi)==null?0:U.has(p))?(E.set(t,this.multi.get(p)),this.multi.delete(p)):E.delete(t);return p};_.yG.debugName="nsTGHd";_.SC.debugName="vI1rtf";var RBt={OUT_OF_ORDER_HOOK_CALL:function(t){return Error("wc`"+t)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("xc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("yc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("zc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(t,E){return Error("Ac`"+((E===void 0?0:E)?"IDOM":"Reactive")+"`"+(cv(t)?t.description:t))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(t,E){return Error("Bc`"+(cv(t)?t.description:t)+"`"+E)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(t){return Error("Cc`"+(cv(t)?t.description:t))},
USE_ELEMENT_NOT_ASSIGNED:function(t){return Error("Dc`"+(cv(t)?t.description:t))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(t){return Error("Ec`"+(cv(t)?t.description:t))}};var m1$=Symbol("Fc");fsi=WVE;fsi=WVE;var gT0=Symbol("Gc");nxK({beforeRender:function(t){var E=Z8(t.effectContext);try{var p;((p=t.__syncEffects)==null?0:p.length)&&lUE(t.__syncEffects)}finally{Z8(E)}},
didPatch:function(t){var E=Z8(t.effectContext);try{var p;((p=t.__syncEffects)==null?0:p.length)&&lUE(t.__syncEffects)}finally{Z8(E)}},
didUnmount:function(t){var E;((E=t.hooks)==null?0:E.length)&&t.hooks.forEach(zBO)}});var fUX,Bu0,wDf;fUX=_.Ui.window;_.ba=(fUX==null?void 0:(Bu0=fUX.yt)==null?void 0:Bu0.config_)||(fUX==null?void 0:(wDf=fUX.ytcfg)==null?void 0:wDf.data_)||{};_.Oy("yt.config_",_.ba);var RBX={},Nu0=[];_.cC=function(t){var E=_.t9.apply(1,arguments);var p=Error.call(this,t);this.message=p.message;"stack"in p&&(this.stack=p.stack);this.args=[].concat(_.KB(E));Object.setPrototypeOf(this,this.constructor.prototype)};
_.u(_.cC,Error);var izJ=function(t,E,p){this.actionName=t;this.optionalAction=E===void 0?!1:E;this.args=p===void 0?null:p;this.returnValue=[]};_.Ir=function(t){this.name=t};_.QB=new _.Ir("signalAction");var yZO=/^[\w.]*$/,Tul={q:!0,search_query:!0},POO=String(Lti);var aa;aa=Symbol("Hc");_.gM=function(t){this.name=t};
_.gM.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var STE=function(t){this.key=t},UcD=function(t){this.deferredKey=t},t1$=function(){var t=this;
this.providers=new Map;this.JSC$10767_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(t.providers)}}};
t1$.prototype.addProvider=function(t){this.providers.set(t.provide,t);var E=this.JSC$10767_deferred.get(t.provide);if(E)try{E.resolver(this.resolve(t.provide))}catch(p){E.rejector(p)}};
t1$.prototype.resolve=function(t){return t instanceof UcD?VR0(this,t):t instanceof STE?QKG(this,t.key,[],!0):QKG(this,t,[])};
var VR0=function(t,E){E=E.deferredKey;if(t.JSC$10767_deferred.has(E))return t.JSC$10767_deferred.get(E).promise;var p={};p.promise=new Promise(function(U,x){p.resolver=U;p.rejector=x});
t.JSC$10767_deferred.set(E,p);return p.promise},QKG=function(t,E,p,U){U=U===void 0?!1:U;
if(p.indexOf(E)>-1)throw Error("Ic`"+E);if(t.cachedValues.has(E))return t.cachedValues.get(E);if(!t.providers.has(E)){if(U)return;throw Error("Jc`"+E);}U=t.providers.get(E);p.push(E);if(U.useValue!==void 0)var x=U.useValue;else if(U.useFactory)x=U[aa]?CO0(t,U[aa],p):[],x=U.useFactory.apply(U,_.KB(x));else if(U.useClass){x=U.useClass;var A=x[aa]?CO0(t,x[aa],p):[];x=new (Function.prototype.bind.apply(x,[null].concat(_.KB(A))))}else throw Error("Kc`"+E);p.pop();U.skipCache||t.cachedValues.set(E,x);return x},
CO0=function(t,E,p){return E?E.map(function(U){return U instanceof STE?QKG(t,U.key,p,!0):QKG(t,U,p)}):[]};var cZJ;var r1=new _.gM("ENDPOINT_HANDLER_TOKEN");_.kX=new _.Ir("urlEndpoint");var jKT=function(){this.data=[];this.cachedPackedInt52=-1};
jKT.prototype.set=function(t,E){E=E===void 0?!0:E;0<=t&&t<52&&Number.isInteger(t)&&this.data[t]!==E&&(this.data[t]=E,this.cachedPackedInt52=-1)};
jKT.prototype.get=function(t){return!!this.data[t]};
var rZ4=function(t){t.cachedPackedInt52===-1&&(t.cachedPackedInt52=t.data.reduce(function(E,p,U){return E+(p?Math.pow(2,U):0)},0));
return t.cachedPackedInt52};var V1$=function(t){var E=kFr;t=t===void 0?_.ws("yt.ads.biscotti.lastId_")||"":t;var p=Object,U=p.assign,x={};x.dt=zeG;x.flash="0";a:{try{var A=E.JSC$10773_win_.top.location.href}catch(v){A=2;break a}A=A?A===E.doc_.location.href?0:1:2}x=(x.frm=A,x);try{x.u_tz=-(new Date).getTimezoneOffset();try{var m=ki.history.length}catch(v){m=0}x.u_his=m;var b;x.u_h=(b=ki.screen)==null?void 0:b.height;var f;x.u_w=(f=ki.screen)==null?void 0:f.width;var B;x.u_ah=(B=ki.screen)==null?void 0:B.availHeight;var R;x.u_aw=
(R=ki.screen)==null?void 0:R.availWidth;var V;x.u_cd=(V=ki.screen)==null?void 0:V.colorDepth}catch(v){}m=E.JSC$10773_win_;try{var Q=m.screenX;var C=m.screenY}catch(v){}try{var d=m.outerWidth;var I=m.outerHeight}catch(v){}try{var O=m.innerWidth;var a=m.innerHeight}catch(v){}try{var F=m.screenLeft;var L=m.screenTop}catch(v){}try{O=m.innerWidth,a=m.innerHeight}catch(v){}try{var D=m.screen.availWidth;var W=m.screen.availTop}catch(v){}Q=[F,L,Q,C,D,W,d,I,O,a];C=L9Y(!1,E.JSC$10773_win_.top);d={};var K=K===
void 0?_.Ui:K;I=new jKT;"SVGElement"in K&&"createElementNS"in K.document&&I.set(0);O=etm();O["allow-top-navigation-by-user-activation"]&&I.set(1);O["allow-popups-to-escape-sandbox"]&&I.set(2);K.crypto&&K.crypto.subtle&&I.set(3);"TextDecoder"in K&&"TextEncoder"in K&&I.set(4);K=rZ4(I);E=(d.bc=K,d.bih=C.height,d.biw=C.width,d.brdim=Q.join(),d.vis=egl(E.doc_),d.wgl=!!ki.WebGLRenderingContext,d);p=U.call(p,x,E);p.ca_type="image";t&&(p.bid=t);return p},kFr=new function(){var t=window.document;
this.JSC$10773_win_=window;this.doc_=t};
_.Oy("yt.ads_.signals_.getAdSignalsString",function(t){return oT_(V1$(t))});_.Z1();navigator.userAgent.indexOf(" (CrKey ");var mcE="XMLHttpRequest"in _.Ui?function(){return new XMLHttpRequest}:null;var d_o="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),uJZ=[].concat(_.KB(d_o),["client_dev_set_cookie"]);var RqL={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"},qFK="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(_.KB(d_o)),IBK=!1,fB$=_.Qp$,dcO=wAK;var o1_=[{messageFn:function(t){return"Cannot read property '"+t.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(t){return"Cannot call '"+t.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(t){return t.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var JZZ={messageWeights:[],callbackWeights:[{callback:XAj,weight:500},{callback:hqO,weight:500}]};var IUr=function(){this.callbackWeights=[];this.messageWeights=[]},gTs,TGO=function(){if(!gTs){var t=gTs=new IUr;
t.messageWeights.length=0;t.callbackWeights.length=0;sY$(t,JZZ)}return gTs},sY$=function(t,E){E.messageWeights&&t.messageWeights.push.apply(t.messageWeights,E.messageWeights);
E.callbackWeights&&t.callbackWeights.push.apply(t.callbackWeights,E.callbackWeights)};_.Oa(_.oa,_.PQ);_.oa.prototype.subscribe=function(t,E,p){var U=this.topics_[t];U||(U=this.topics_[t]=[]);var x=this.JSC$10796_key_;this.subscriptions_[x]=t;this.subscriptions_[x+1]=E;this.subscriptions_[x+2]=p;this.JSC$10796_key_=x+3;U.push(x);return x};
var ZFs=function(t){var E=BX,p=!1,U=E.subscribe("handleError",function(x){p||(p=!0,this.unsubscribeByKey(U),t.apply(void 0,arguments))},E)};
_.oa.prototype.unsubscribe=function(t,E,p){if(t=this.topics_[t]){var U=this.subscriptions_;if(t=t.find(function(x){return U[x+1]==E&&U[x+2]==p}))return this.unsubscribeByKey(t)}return!1};
_.oa.prototype.unsubscribeByKey=function(t){var E=this.subscriptions_[t];if(E){var p=this.topics_[E];this.publishDepth_!=0?(this.pendingKeys_.push(t),this.subscriptions_[t+1]=function(){}):(p&&_.NK(p,t),delete this.subscriptions_[t],delete this.subscriptions_[t+1],delete this.subscriptions_[t+2])}return!!E};
_.oa.prototype.publish=function(t,E){var p=this.topics_[t];if(p){var U=Array(arguments.length-1),x=arguments.length,A;for(A=1;A<x;A++)U[A-1]=arguments[A];if(this.async_)for(A=0;A<p.length;A++)x=p[A],OFs(this.subscriptions_[x+1],this.subscriptions_[x+2],U);else{this.publishDepth_++;try{for(A=0,x=p.length;A<x&&!this.isDisposed();A++){var m=p[A];this.subscriptions_[m+1].apply(this.subscriptions_[m+2],U)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;p=this.pendingKeys_.pop();)this.unsubscribeByKey(p)}}return A!=
0}return!1};
var OFs=function(t,E,p){_.AU(function(){t.apply(E,p)})};
_.oa.prototype.clear=function(t){if(t){var E=this.topics_[t];E&&(E.forEach(this.unsubscribeByKey,this),delete this.topics_[t])}else this.subscriptions_.length=0,this.topics_={}};
_.oa.prototype.getCount=function(t){if(t){var E=this.topics_[t];return E?E.length:0}t=0;for(E in this.topics_)t+=this.getCount(E);return t};
_.oa.prototype.disposeInternal=function(){_.oa.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var BX=new _.oa;var NR=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(NR,_.w6);NR.prototype.getColdHashData=function(){return _.th(this,3)};
NR.prototype.getHotHashData=function(){return _.th(this,5)};
NR.prototype.setHotHashData=function(t){return _.Lq(this,5,t)};var PCL=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(PCL,_.w6);var RD_=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(RD_,_.w6);_.Y=RD_.prototype;_.Y.getDeviceId=function(){return _.th(this,6)};
_.Y.getExperimentIds=function(t){var E=_.cK(this,9,_.BK,3,!0);Uf8(E,t);return E[t]};
_.Y.getPlayerType=function(){return _.Et(this,36)};
_.Y.setHomeGroupInfo=function(t){return _.FU(this,81,t)};
_.Y.clearLocationPlayabilityToken=function(){return _.nM(this,89)};var $7=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u($7,_.w6);$7.prototype.setKey=function(t){return _.Lq(this,1,t)};
$7.prototype.getValue=function(){return Ut(this,2,QnO)};
var QnO=[2,3,4,5,6];var XDf=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(XDf,_.w6);XDf.prototype.setTrackingParams=function(t){return _.nM(this,1,_.F4(t,!1))};var Vwj=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Vwj,_.w6);var WD0=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(WD0,_.w6);WD0.prototype.getExperimentIds=function(t){var E=_.cK(this,5,_.XpO,3,!0);Uf8(E,t);return E[t]};var ST=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(ST,_.w6);ST.prototype.getToken=function(){return _.lN(this,2)};
ST.prototype.setToken=function(t){return _.Lq(this,2,t)};var vE=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(vE,_.w6);vE.prototype.setSafetyMode=function(t){return _.GM(this,5,t)};var WE=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(WE,_.w6);WE.prototype.setClient=function(t){return _.FU(this,1,t)};var ozj={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 TN0;_.ic=function(){var t=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Ui.addEventListener("beforeinstallprompt",function(E){E.preventDefault();t.deferredInstallPrompt=E});
_.Ui.addEventListener("appinstalled",function(){t.appInstalledEventFired=!0},{once:!0})};
TN0=function(){if(!_.Ui.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Ui.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Ui.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Ui.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Ui.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(t){return"WEB_DISPLAY_MODE_UNKNOWN"}};var vzY=function(){this.syncHeaders=!0},yfO=function(t){var E={},p=[];
"USER_SESSION_ID"in _.ba&&p.push({key:"u",value:_.qO("USER_SESSION_ID")});if(p=_.V5O(p))E.Authorization=p,p=t=t==null?void 0:t.sessionIndex,p===void 0&&(p=Number(_.qO("SESSION_INDEX",0)),p=isNaN(p)?0:p),_.r("voice_search_auth_header_removal")||(E["X-Goog-AuthUser"]=p.toString()),"INNERTUBE_HOST_OVERRIDE"in _.ba||(E["X-Origin"]=window.location.origin),t===void 0&&"DELEGATED_SESSION_ID"in _.ba&&(E["X-Goog-PageId"]=_.qO("DELEGATED_SESSION_ID"));return E};var hBr={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var ZJ=_.ws("ytglobal.prefsUserPrefsPrefs_")||{},aUo;_.Oy("ytglobal.prefsUserPrefsPrefs_",ZJ);_.O4=function(){this.cookieName=_.qO("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.qO("ALT_PREF_COOKIE_DOMAIN","youtube.com");var t=_.$a.get(this.cookieName,void 0);t&&this.parse(t)};
_.nF=function(){aUo||(aUo=new _.O4);return aUo};
_.O4.prototype.get=function(t,E){eBs(t);Ft4(t);t=ZJ[t]!==void 0?ZJ[t].toString():null;return t!=null?t:E?E:""};
_.O4.prototype.set=function(t,E){eBs(t);Ft4(t);if(E==null)throw Error("Nc");ZJ[t]=E.toString()};
_.O4.prototype.getFlag=function(t){return!!((zBs("f"+(Math.floor(t/31)+1))||0)&1<<t%31)};
_.N_=function(t,E,p){t="f"+(Math.floor(E/31)+1);E=1<<E%31;var U=zBs(t)||0;U=p?U|E:U&~E;U===0?delete ZJ[t]:(p=U.toString(16),ZJ[t]=p.toString())};
_.O4.prototype.remove=function(t){eBs(t);Ft4(t);delete ZJ[t]};
_.O4.prototype.save=function(){var t=!0;_.r("web_secure_pref_cookie_killswitch")&&(t=!1);_.KR(this.cookieName,this.dump(),63072E3,this.cookieDomain,t)};
_.O4.prototype.clear=function(){_.Kq.clear(ZJ)};
_.O4.prototype.dump=function(){var t=[],E;for(E in ZJ)ZJ.hasOwnProperty(E)&&t.push(E+"="+encodeURIComponent(String(ZJ[E])));return t.join("&")};
var Ft4=function(t){if(/^f([1-9][0-9]*)$/.test(t))throw Error("Oc`"+t);},eBs=function(t){if(!/^\w+$/.test(t))throw Error("Pc`"+t);
},zBs=function(t){t=ZJ[t]!==void 0?ZJ[t].toString():null;
return t!=null&&/^[A-Fa-f0-9]+$/.test(t)?parseInt(t,16):null};
_.O4.prototype.parse=function(t){t=decodeURIComponent(t).split("&");for(var E=0;E<t.length;E++){var p=t[E].split("="),U=p[0];(p=p[1])&&(ZJ[U]=p.toString())}};var Dcl={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"},$JD={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},KDl={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},Lul={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var IC;_.Xc=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.E_=function(t,E,p){return t.addJob(E,0,p)};
_.Xc.prototype.addLowPriorityJob=function(t,E){return this.addJob(t,1,E)};
_.W9=function(t,E,p){return t.addJob(E,2,p)};
_.D2=function(t,E,p){return t.addJob(E,3,p)};
_.g4=function(t,E,p){return t.addJob(E,4,p)};
IC=function(t){var E=_.ws("yt.scheduler.instance.addImmediateJob");E?E(t):t()};
_.Xc.prototype.debounce=function(t,E,p){var U=this,x=0,A=function(){x&&U.cancelJob(x);x=U.addJob(t,E,p);U.cancelDebouncedJobMap.set(A,x)};
return A};
_.Xc.prototype.cancelThrottle=function(t){(t=this.cancelThrottledJobMap.get(t))&&t()};var hY=function(){_.Xc.apply(this,arguments)},lUZ;
_.u(hY,_.Xc);_.ty=function(){hY.instance||(hY.instance=new hY);return hY.instance};
hY.prototype.addJob=function(t,E,p){p!==void 0&&Number.isNaN(Number(p))&&(p=void 0);var U=_.ws("yt.scheduler.instance.addJob");return U?U(t,E,p):p===void 0?(t(),NaN):_.NO(t,p||0)};
hY.prototype.cancelJob=function(t){if(t===void 0||!Number.isNaN(Number(t))){var E=_.ws("yt.scheduler.instance.cancelJob");E?E(t):_.sB(t)}};
hY.prototype.start=function(){var t=_.ws("yt.scheduler.instance.start");t&&t()};
hY.prototype.pause=function(){var t=_.ws("yt.scheduler.instance.pause");t&&t()};
lUZ=function(){_.ty();var t=_.ws("yt.scheduler.instance.setPriorityThreshold");t&&t(4)};
_.ir=_.ty();_.tF.prototype.set=function(t,E){E===void 0?this.mechanism.remove(t):this.mechanism.set(t,(0,_.id)(E))};
_.tF.prototype.get=function(t){try{var E=this.mechanism.get(t)}catch(p){return}if(E!==null)try{return JSON.parse(E)}catch(p){throw"Storage: Invalid value was encountered";}};
_.tF.prototype.remove=function(t){this.mechanism.remove(t)};var ar=function(t){this.mechanism=t};
_.Oa(ar,_.tF);var GFs=function(t){this.data=t},nTr=function(t){return t===void 0||t instanceof GFs?t:new GFs(t)};
ar.prototype.set=function(t,E){ar.superClass_.set.call(this,t,nTr(E))};
ar.prototype.getWrapper=function(t){t=ar.superClass_.get.call(this,t);if(t===void 0||t instanceof Object)return t;throw"Storage: Invalid value was encountered";};
ar.prototype.get=function(t){if(t=this.getWrapper(t)){if(t=t.data,t===void 0)throw"Storage: Invalid value was encountered";}else t=void 0;return t};_.Oa(Ey,ar);_.Nus=function(t){var E=t.creation;t=t.expiration;return!!t&&t<_.Z1()||!!E&&E>_.Z1()};
Ey.prototype.set=function(t,E,p){if(E=nTr(E)){if(p){if(p<_.Z1()){Ey.prototype.remove.call(this,t);return}E.expiration=p}E.creation=_.Z1()}Ey.superClass_.set.call(this,t,E)};
Ey.prototype.getWrapper=function(t,E){var p=Ey.superClass_.getWrapper.call(this,t);if(p)if(!E&&_.Nus(p))Ey.prototype.remove.call(this,t);else return p};var er=function(){};
er.prototype.next=function(){return Fc};
var Fc={done:!0,value:void 0},z4=function(t){return{value:t,done:!1}};
er.prototype.__iterator__=function(){return this};
_.D_r=function(t){if(t instanceof er)return t;if(typeof t.__iterator__=="function")return t.__iterator__(!1);if(_.LO(t)){var E=0,p=new er;p.next=function(){for(;;){if(E>=t.length)return Fc;if(E in t)return z4(t[E++]);E++}};
return p}throw Error("Qc");};var sK3=function(t){if(t instanceof lB||t instanceof G4||t instanceof n3)return t;if(typeof t.next=="function")return new lB(function(){return t});
if(typeof t[Symbol.iterator]=="function")return new lB(function(){return t[Symbol.iterator]()});
if(typeof t.__iterator__=="function")return new lB(function(){return t.__iterator__()});
throw Error("Rc");},lB=function(t){this.func_=t};
lB.prototype.__iterator__=function(){return new G4(this.func_())};
lB.prototype[Symbol.iterator]=function(){return new n3(this.func_())};
lB.prototype.toEs6=function(){return new n3(this.func_())};
var G4=function(t){this.JSC$10881_iter_=t};
_.u(G4,er);G4.prototype.next=function(){return this.JSC$10881_iter_.next()};
G4.prototype[Symbol.iterator]=function(){return new n3(this.JSC$10881_iter_)};
G4.prototype.toEs6=function(){return new n3(this.JSC$10881_iter_)};
var n3=function(t){lB.call(this,function(){return t});
this.JSC$10884_iter_=t};
_.u(n3,lB);n3.prototype.next=function(){return this.JSC$10884_iter_.next()};var Ltr=function(){};var NC=function(){};
_.Oa(NC,Ltr);NC.prototype.getCount=function(){for(var t=0,E=_.M(this),p=E.next();!p.done;p=E.next())t++;return t};
NC.prototype[Symbol.iterator]=function(){return sK3(this.__iterator__(!0)).toEs6()};
NC.prototype.clear=function(){var t=Array.from(this);t=_.M(t);for(var E=t.next();!E.done;E=t.next())this.remove(E.value)};_.Oa(Uy,NC);_.Y=Uy.prototype;_.Y.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var t=this.storage_;if(t)try{t.setItem("__sak","1");t.removeItem("__sak");var E=!0}catch(p){E=p instanceof DOMException&&(p.name==="QuotaExceededError"||p.code===22||p.code===1014||p.name==="NS_ERROR_DOM_QUOTA_REACHED")&&t&&t.length!==0}else E=!1;this.cachedIsStorageAvailable_=E}return this.cachedIsStorageAvailable_};
_.Y.set=function(t,E){DJ(this);try{this.storage_.setItem(t,E)}catch(p){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.Y.get=function(t){DJ(this);t=this.storage_.getItem(t);if(typeof t!=="string"&&t!==null)throw"Storage mechanism: Invalid value was encountered";return t};
_.Y.remove=function(t){DJ(this);this.storage_.removeItem(t)};
_.Y.getCount=function(){DJ(this);return this.storage_.length};
_.Y.__iterator__=function(t){DJ(this);var E=0,p=this.storage_,U=new er;U.next=function(){if(E>=p.length)return Fc;var x=p.key(E++);if(t)return z4(x);x=p.getItem(x);if(typeof x!=="string")throw"Storage mechanism: Invalid value was encountered";return z4(x)};
return U};
_.Y.clear=function(){DJ(this);this.storage_.clear()};
_.Y.key=function(t){DJ(this);return this.storage_.key(t)};
var DJ=function(t){if(t.storage_==null)throw Error("Sc");t.isAvailable()||xL(Error("Sc"))};_.Oa(TmE,Uy);_.Oa(oht,Uy);_.Oa(x6,NC);x6.prototype.set=function(t,E){this.mechanism_.set(this.JSC$10899_prefix_+t,E)};
x6.prototype.get=function(t){return this.mechanism_.get(this.JSC$10899_prefix_+t)};
x6.prototype.remove=function(t){this.mechanism_.remove(this.JSC$10899_prefix_+t)};
x6.prototype.__iterator__=function(t){var E=this.mechanism_[Symbol.iterator](),p=this,U=new er;U.next=function(){var x=E.next();if(x.done)return x;for(x=x.value;x.slice(0,p.JSC$10899_prefix_.length)!=p.JSC$10899_prefix_;){x=E.next();if(x.done)return x;x=x.value}return z4(t?x.slice(p.JSC$10899_prefix_.length):p.mechanism_.get(x))};
return U};_.wx=function(t){this.expiringStorage_=(t=_.AF(t))?new Ey(t):null;this.JSC$10903_domain_=document.domain||window.location.hostname};
_.Y=_.wx.prototype;_.Y.hasLocalStorage=function(){return!!this.expiringStorage_};
_.Y.set=function(t,E,p,U){p=p||31104E3;this.remove(t);if(this.hasLocalStorage())try{this.expiringStorage_.set(t,E,Date.now()+p*1E3);return}catch(A){}var x="";if(U)try{x=escape((0,_.id)(E))}catch(A){return}else x=escape(E);_.KR(t,x,p,this.JSC$10903_domain_)};
_.Y.get=function(t,E){var p=void 0,U=!this.hasLocalStorage();if(!U)try{p=this.expiringStorage_.get(t)}catch(x){U=!0}if(U&&(p=_.$a.get(t,void 0))&&(p=unescape(p),E))try{p=JSON.parse(p)}catch(x){this.remove(t),p=void 0}return p};
_.Y.remove=function(t){this.hasLocalStorage()&&this.expiringStorage_.remove(t);_.GVK(t,"/",this.JSC$10903_domain_)};
_.Y.getCreationTime=function(t){return this.hasLocalStorage()&&(t=(this.expiringStorage_.getWrapper(t)||{}).creation,typeof t==="number")?t:null};var $cY=function(){var t;return function(){t||(t=new _.wx("ytidb"));return t}}();var vht;_.MR=[];vht=!1;var BNt=yj_||SFl;var s4={},POs=(s4.AUTH_INVALID="No user identifier specified.",s4.EXPLICIT_ABORT="Transaction was explicitly aborted.",s4.IDB_NOT_SUPPORTED="IndexedDB is not supported.",s4.MISSING_INDEX="Index not created.",s4.MISSING_OBJECT_STORES="Object stores not created.",s4.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",s4.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",s4.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",s4.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",s4.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",s4.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",s4.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",s4),L3={},TuT=(L3.AUTH_INVALID="ERROR",L3.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",L3.EXPLICIT_ABORT="IGNORED",
L3.IDB_NOT_SUPPORTED="ERROR",L3.MISSING_INDEX="WARNING",L3.MISSING_OBJECT_STORES="ERROR",L3.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",L3.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",L3.QUOTA_EXCEEDED="WARNING",L3.QUOTA_MAYBE_EXCEEDED="WARNING",L3.UNKNOWN_ABORT="WARNING",L3.INCOMPATIBLE_DB_VERSION="WARNING",L3),Pl={},oT0=(Pl.AUTH_INVALID=!1,Pl.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Pl.EXPLICIT_ABORT=!1,Pl.IDB_NOT_SUPPORTED=!1,Pl.MISSING_INDEX=!1,Pl.MISSING_OBJECT_STORES=!1,Pl.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Pl.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Pl.QUOTA_EXCEEDED=!1,Pl.QUOTA_MAYBE_EXCEEDED=!0,Pl.UNKNOWN_ABORT=!0,Pl.INCOMPATIBLE_DB_VERSION=!1,Pl),fM=function(t,E,p,U,x){E=E===void 0?{}:E;p=p===void 0?POs[t]:p;U=U===void 0?TuT[t]:U;x=x===void 0?oT0[t]:x;_.cC.call(this,p,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:t},E));this.type=t;this.message=p;this.level=U;this.retryable=x;Object.setPrototypeOf(this,fM.prototype)};
_.u(fM,_.cC);var WtZ=function(t,E){fM.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:E,foundObjectStores:t},POs.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,WtZ.prototype)};
_.u(WtZ,fM);var tLY=function(t,E){var p=Error.call(this);this.message=p.message;"stack"in p&&(this.stack=p.stack);this.index=t;this.objectStore=E;Object.setPrototypeOf(this,tLY.prototype)};
_.u(tLY,Error);var EzD=["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 Vk=function(t){this.executor=t},RD=function(t){var E=this;
this.state={status:"PENDING"};this.JSC$10931_onFulfilled=[];this.JSC$10931_onRejected=[];t=t.executor;var p=function(x){if(E.state.status==="PENDING"){E.state={status:"FULFILLED",value:x};x=_.M(E.JSC$10931_onFulfilled);for(var A=x.next();!A.done;A=x.next())A=A.value,A()}},U=function(x){if(E.state.status==="PENDING"){E.state={status:"REJECTED",
reason:x};x=_.M(E.JSC$10931_onRejected);for(var A=x.next();!A.done;A=x.next())A=A.value,A()}};
try{t(p,U)}catch(x){U(x)}};
RD.all=function(t){return new RD(new Vk(function(E,p){var U=[],x=t.length;x===0&&E(U);for(var A={i$jscomp$469:0};A.i$jscomp$469<t.length;A={i$jscomp$469:A.i$jscomp$469},++A.i$jscomp$469)RD.resolve(t[A.i$jscomp$469]).then(function(m){return function(b){U[m.i$jscomp$469]=b;x--;x===0&&E(U)}}(A)).catch(function(m){p(m)})}))};
RD.resolve=function(t){return new RD(new Vk(function(E,p){t instanceof RD?t.then(E,p):E(t)}))};
RD.reject=function(t){return new RD(new Vk(function(E,p){p(t)}))};
RD.prototype.then=function(t,E){var p=this,U=t!=null?t:xJt,x=E!=null?E:UJK;return new RD(new Vk(function(A,m){p.state.status==="PENDING"?(p.JSC$10931_onFulfilled.push(function(){$_o(p,p,U,A,m)}),p.JSC$10931_onRejected.push(function(){KtG(p,p,x,A,m)})):p.state.status==="FULFILLED"?$_o(p,p,U,A,m):p.state.status==="REJECTED"&&KtG(p,p,x,A,m)}))};
RD.prototype.catch=function(t){return this.then(void 0,t)};
var $_o=function(t,E,p,U,x){try{if(t.state.status!=="FULFILLED")throw Error("Vc");var A=p(t.state.value);A instanceof RD?vTp(t,E,A,U,x):U(A)}catch(m){x(m)}},KtG=function(t,E,p,U,x){try{if(t.state.status!=="REJECTED")throw Error("Wc");
var A=p(t.state.reason);A instanceof RD?vTp(t,E,A,U,x):U(A)}catch(m){x(m)}},vTp=function(t,E,p,U,x){E===p?x(new TypeError("Xc")):p.then(function(A){A instanceof RD?vTp(t,E,A,U,x):U(A)},function(A){x(A)})};var T4;T4=window;_.eu=T4.ytcsi&&T4.ytcsi.now?T4.ytcsi.now:T4.performance&&T4.performance.timing&&T4.performance.now&&T4.performance.timing.navigationStart?function(){return T4.performance.timing.navigationStart+T4.performance.now()}:function(){return(new Date).getTime()};var CM=function(t,E){this.JSC$10943_wrapped=t;this.options=E;this.transactionCount=0;this.startedMs=Math.round((0,_.eu)());this.hasUnknownAbortedTransaction=!1},or=function(){return _.r("idb_immediate_commit")},cZr,t1W,K3,Uc3;
CM.prototype.add=function(t,E,p){return _.uJ(this,[t],{mode:"readwrite",enableRetries:!0,commit:or()},function(U){return U.objectStore(t).add(E,p)})};
CM.prototype.clear=function(t){return _.uJ(this,[t],{mode:"readwrite",enableRetries:!0},function(E){return E.objectStore(t).clear()})};
CM.prototype.close=function(){this.JSC$10943_wrapped.close();var t;((t=this.options)==null?0:t.closed)&&this.options.closed()};
CM.prototype.count=function(t,E){return _.uJ(this,[t],{mode:"readonly",enableRetries:!0,commit:or()},function(p){return p.objectStore(t).count(E)})};
var VK=function(t,E,p){t=t.JSC$10943_wrapped.createObjectStore(E,p);return new Wl(t)};
CM.prototype.delete=function(t,E){return _.uJ(this,[t],{mode:"readwrite",enableRetries:!0,commit:or()&&!(E instanceof IDBKeyRange)},function(p){return p.objectStore(t).delete(E)})};
var yZ4=function(t,E){return _.uJ(t,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(p){return p.objectStore("ResponseStore").index("byInterface").delete(E)})};
CM.prototype.get=function(t,E){return _.uJ(this,[t],{mode:"readonly",enableRetries:!0,commit:or()},function(p){return p.objectStore(t).get(E)})};
CM.prototype.getAll=function(t,E,p){return _.uJ(this,[t],{mode:"readonly",enableRetries:!0},function(U){return U.objectStore(t).getAll(E,p)})};
CM.prototype.put=function(t,E,p){return _.uJ(this,[t],{mode:"readwrite",enableRetries:!0,commit:or()},function(U){return U.objectStore(t).put(E,p)})};
CM.prototype.objectStoreNames=function(){return Array.from(this.JSC$10943_wrapped.objectStoreNames)};
_.uJ=function(t,E,p,U){var x,A,m,b,f,B,R,V,Q,C,d,I;return _.q(function(O){switch(O.nextAddress){case 1:var a={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof p==="string"?a.mode=p:Object.assign(a,p);x=a;t.transactionCount++;A=x.enableRetries?3:1;m=0;case 2:if(b){O.jumpTo(4);break}m++;f=Math.round((0,_.eu)());_.aR(O,5);B=t.JSC$10943_wrapped.transaction(E,x.mode);a=O.yield;var F=!!x.commit;var L=new ju(B);F=STZ(L,U,F);return a.call(O,F,7);case 7:return R=O.yieldResult,V=Math.round((0,_.eu)()),
cZr(t,f,V,m,void 0,E.join(),x),O.return(R);case 5:Q=_.nB(O);C=Math.round((0,_.eu)());d=pL_(Q,t.JSC$10943_wrapped.name,E.join(),t.JSC$10943_wrapped.version);if((I=d instanceof fM&&!d.retryable)||m>=A)cZr(t,f,C,m,d,E.join(),x),b=d;O.jumpTo(2);break;case 4:return O.return(Promise.reject(b))}})};
cZr=function(t,E,p,U,x,A,m){E=p-E;x?(x instanceof fM&&(x.type==="QUOTA_EXCEEDED"||x.type==="QUOTA_MAYBE_EXCEEDED")&&bJ("QUOTA_EXCEEDED",{dbName:qR(t.JSC$10943_wrapped.name),objectStoreNames:A,transactionCount:t.transactionCount,transactionMode:m.mode}),x instanceof fM&&x.type==="UNKNOWN_ABORT"&&(p-=t.startedMs,p<0&&p>=2147483648&&(p=0),bJ("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:A,transactionDuration:E,transactionCount:t.transactionCount,dbDuration:p}),t.hasUnknownAbortedTransaction=!0),
t1W(t,!1,U,A,E,m.tag),_.mn(x)):t1W(t,!0,U,A,E,m.tag)};
t1W=function(t,E,p,U,x,A){bJ("TRANSACTION_ENDED",{objectStoreNames:U,connectionHasUnknownAbortedTransaction:t.hasUnknownAbortedTransaction,duration:x,isSuccessful:E,tryCount:p,tag:A===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":A})};
CM.prototype.getName=function(){return this.JSC$10943_wrapped.name};
var Wl=function(t){this.JSC$10958_wrapped=t};
Wl.prototype.add=function(t,E){return Qk(this.JSC$10958_wrapped.add(t,E))};
Wl.prototype.autoIncrement=function(){return this.JSC$10958_wrapped.autoIncrement};
Wl.prototype.clear=function(){return Qk(this.JSC$10958_wrapped.clear()).then(function(){})};
var QK=function(t,E,p){t.JSC$10958_wrapped.createIndex(E,p,{unique:!1})};
Wl.prototype.count=function(t){return Qk(this.JSC$10958_wrapped.count(t))};
var Eho=function(t,E){return ID(t,{query:E},function(p){return p.delete().then(function(){return p.continue()})}).then(function(){})};
Wl.prototype.delete=function(t){return t instanceof IDBKeyRange?Eho(this,t):Qk(this.JSC$10958_wrapped.delete(t))};
Wl.prototype.get=function(t){return Qk(this.JSC$10958_wrapped.get(t))};
Wl.prototype.getAll=function(t,E){return"getAll"in IDBObjectStore.prototype?Qk(this.JSC$10958_wrapped.getAll(t,E)):pAs(this,t,E)};
var pAs=function(t,E,p){var U=[];return ID(t,{query:E},function(x){if(!(p!==void 0&&U.length>=p))return U.push(x.getValue()),x.continue()}).then(function(){return U})};
Wl.prototype.index=function(t){try{return new $E(this.JSC$10958_wrapped.index(t))}catch(E){if(E instanceof Error&&E.name==="NotFoundError")throw new tLY(t,this.JSC$10958_wrapped.name);throw E;}};
Wl.prototype.getName=function(){return this.JSC$10958_wrapped.name};
Wl.prototype.keyPath=function(){return this.JSC$10958_wrapped.keyPath};
Wl.prototype.put=function(t,E){return Qk(this.JSC$10958_wrapped.put(t,E))};
var ID=function(t,E,p){t=t.JSC$10958_wrapped.openCursor(E.query,E.direction);return Uc3(t).then(function(U){return MLt(U,p)})},ju=function(t){var E=this;
this.JSC$10966_wrapped=t;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(p,U){E.JSC$10966_wrapped.addEventListener("complete",function(){p()});
E.JSC$10966_wrapped.addEventListener("error",function(x){x.currentTarget===x.target&&U(E.JSC$10966_wrapped.error)});
E.JSC$10966_wrapped.addEventListener("abort",function(){var x=E.JSC$10966_wrapped.error;if(x)U(x);else if(!E.aborted){x=fM;for(var A=E.JSC$10966_wrapped.objectStoreNames,m=[],b=0;b<A.length;b++){var f=A.item(b);if(f===null)throw Error("Yc");m.push(f)}x=new x("UNKNOWN_ABORT",{objectStoreNames:m.join(),dbName:E.JSC$10966_wrapped.db.name,mode:E.JSC$10966_wrapped.mode});U(x)}})})},STZ=function(t,E,p){var U=new Promise(function(x,A){try{var m=E(t);
p&&t.commit();m.then(function(b){x(b)}).catch(A)}catch(b){A(b),t.abort()}});
return Promise.all([U,t.done]).then(function(x){return _.M(x).next().value})};
ju.prototype.abort=function(){this.JSC$10966_wrapped.abort();this.aborted=!0;throw new fM("EXPLICIT_ABORT");};
ju.prototype.commit=function(){if(!this.aborted){var t,E;(E=(t=this.JSC$10966_wrapped).commit)==null||E.call(t)}};
ju.prototype.objectStore=function(t){t=this.JSC$10966_wrapped.objectStore(t);var E=this.objectStoreCache.get(t);E||(E=new Wl(t),this.objectStoreCache.set(t,E));return E};
var $E=function(t){this.JSC$10968_wrapped=t};
$E.prototype.count=function(t){return Qk(this.JSC$10968_wrapped.count(t))};
$E.prototype.delete=function(t){return _.Fa(this,{query:t},function(E){return E.delete().then(function(){return E.continue()})})};
$E.prototype.get=function(t){return Qk(this.JSC$10968_wrapped.get(t))};
$E.prototype.getAll=function(t,E){return"getAll"in IDBIndex.prototype?Qk(this.JSC$10968_wrapped.getAll(t,E)):xcX(this,t,E)};
var xcX=function(t,E,p){var U=[];return _.Fa(t,{query:E},function(x){if(!(p!==void 0&&U.length>=p))return U.push(x.getValue()),x.continue()}).then(function(){return U})};
$E.prototype.keyPath=function(){return this.JSC$10968_wrapped.keyPath};
$E.prototype.unique=function(){return this.JSC$10968_wrapped.unique};
_.Fa=function(t,E,p){t=t.JSC$10968_wrapped.openCursor(E.query===void 0?null:E.query,E.direction===void 0?"next":E.direction);return Uc3(t).then(function(U){return MLt(U,p)})};
K3=function(t,E){this.request=t;this.cursor=E};
Uc3=function(t){return Qk(t).then(function(E){return E?new K3(t,E):null})};
K3.prototype.continue=function(t){this.cursor.continue(t);return Uc3(this.request)};
K3.prototype.delete=function(){return Qk(this.cursor.delete()).then(function(){})};
K3.prototype.getValue=function(){return this.cursor.value};
K3.prototype.update=function(t){return Qk(this.cursor.update(t))};var vl=function(t,E){this.name=t;this.options=E;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},Ajo;
vl.prototype.openDb=function(t,E,p){p=p===void 0?{}:p;return bfY(t,E,p)};
vl.prototype.delete=function(t){t=t===void 0?{}:t;return _.k6(this.name,t)};
Ajo=function(t,E){return new fM("INCOMPATIBLE_DB_VERSION",{dbName:t.name,oldVersion:t.options.version,newVersion:E})};
_.d7=function(t,E){if(!E)throw w7("openWithToken",qR(t.name));return t.open()};
vl.prototype.open=function(){var t=this;if(!this.isCompatible)throw Ajo(this);if(this.connectionPromise)return this.connectionPromise;var E,p=function(){t.connectionPromise===E&&(t.connectionPromise=void 0)},U={blocking:function(A){A.close()},
closed:p,terminated:p,upgrade:this.options.upgrade},x=function(){var A,m,b,f,B,R,V,Q,C,d;return _.q(function(I){switch(I.nextAddress){case 1:return m=(A=Error().stack)!=null?A:"",_.aR(I,2),I.yield(t.openDb(t.name,t.options.version,U),4);case 4:for(var O=b=I.yieldResult,a=t.options,F=[],L=_.M(Object.keys(a.objectStores)),D=L.next();!D.done;D=L.next()){D=D.value;var W=a.objectStores[D],K=W.removedAtVersion===void 0?Number.MAX_VALUE:W.removedAtVersion;!(O.JSC$10943_wrapped.version>=W.addedAtVersion)||
O.JSC$10943_wrapped.version>=K||O.JSC$10943_wrapped.objectStoreNames.contains(D)||F.push(D)}f=F;if(f.length===0){I.jumpTo(5);break}B=Object.keys(t.options.objectStores);R=b.objectStoreNames();if(t.timesReopenedToFixMissingObjectStore<_.z3("ytidb_reopen_db_retries",0))return t.timesReopenedToFixMissingObjectStore++,b.close(),_.mn(new fM("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:t.name,expectedObjectStores:B,foundObjectStores:R})),I.return(x());if(!(t.timesDeletedToFixMissingObjectStore<_.z3("ytidb_remake_db_retries",
1))){I.jumpTo(6);break}t.timesDeletedToFixMissingObjectStore++;return I.yield(t.delete(),7);case 7:return _.mn(new fM("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:t.name,expectedObjectStores:B,foundObjectStores:R})),I.return(x());case 6:throw new WtZ(R,B);case 5:return I.return(b);case 2:V=_.nB(I);if(V instanceof DOMException?V.name!=="VersionError":"DOMError"in self&&V instanceof DOMError?V.name!=="VersionError":!(V instanceof Object&&"message"in V)||V.message!=="An attempt was made to open a database using a lower version than the existing version."){I.jumpTo(8);
break}return I.yield(t.openDb(t.name,void 0,Object.assign({},U,{upgrade:void 0})),9);case 9:Q=I.yieldResult;C=Q.JSC$10943_wrapped.version;if(t.options.version!==void 0&&C>t.options.version+1)throw Q.close(),t.isCompatible=!1,Ajo(t,C);return I.return(Q);case 8:throw p(),V instanceof Error&&!_.r("ytidb_async_stack_killswitch")&&(V.stack=V.stack+"\n"+m.substring(m.indexOf("\n")+1)),pL_(V,t.name,"",(d=t.options.version)!=null?d:-1);}})};
return this.connectionPromise=E=x()};var if0=new vl("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(t,E){E(1)&&VK(t,"databases",{keyPath:"actualName"})}});var VLj,wL$=new function(){}(new function(){});new _.hf;var YFW=function(t,E){vl.call(this,t,E);this.options=E;iJ(t)};
_.u(YFW,vl);var gzj=function(t,E){var p;return function(){p||(p=new YFW(t,E));return p}};
YFW.prototype.openDb=function(t,E,p){p=p===void 0?{}:p;return(this.options.shared?k2i:rfY)(t,E,Object.assign({},p))};
YFW.prototype.delete=function(t){t=t===void 0?{}:t;return(this.options.shared?IKL:dJ$)(this.name,t)};var M1X={},Zfi=aD("ytGcfConfig",{objectStores:(M1X.coldConfigStore={addedAtVersion:1},M1X.hotConfigStore={addedAtVersion:1},M1X),shared:!1,upgrade:function(t,E){E(1)&&(QK(VK(t,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),QK(VK(t,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var mcZ=function(){_.PQ.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var t=_.ws("yt.gcf.config.hotUpdateCallbacks");t?(this.localHotConfigJobQueue=[].concat(_.KB(t)),this.sharedHotConfigJobQueue=t):(this.sharedHotConfigJobQueue=[],_.Oy("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.u(mcZ,_.PQ);mcZ.prototype.disposeInternal=function(){for(var t=_.M(this.localHotConfigJobQueue),E=t.next();!E.done;E=t.next()){var p=this.sharedHotConfigJobQueue;E=p.indexOf(E.value);E>=0&&p.splice(E,1)}this.localHotConfigJobQueue.length=0;_.PQ.prototype.disposeInternal.call(this)};var pW=function(){var t=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new mcZ;this.TEST_ONLY={initializeConfigDb:function(){t.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return t.coldGlobalConfigGroup},
setHotConfigGroup:function(E){bbp(t,E)},
setHotHashData:function(E){t.setHotHashData(E)},
setColdConfigGroup:function(E){ibW(t,E)},
getColdHashData:function(){return t.coldHashData},
getHotHashData:function(){return t.hotHashData},
getHotConfigGroup:function(){return t.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return qFf()},
getExportedHotConfigGroup:function(){return yN()},
getExportedColdHashData:function(){return _.ws("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.ws("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){Hbr(t)},
resetInstance:function(){t.setHotHashData(void 0);fBW(t);delete pW.instance},
setDebounceTimer:function(E){t.debounceTimer=E},
getDebounceTimer:function(){return t.debounceTimer}}},Bm0=function(){if(!pW.instance){var t=new pW;
pW.instance=t}return pW.instance},V1W=function(t){var E;
_.q(function(p){if(p.nextAddress==1)return _.r("start_client_gcf")||_.r("delete_gcf_config_db")?_.r("start_client_gcf")?p.yield(_.hF(),3):p.jumpTo(2):p.return();p.nextAddress!=2&&((E=p.yieldResult)&&_.Si()&&!_.r("delete_gcf_config_db")?(t.isConfigDbInitialized=!0,Hbr(t)):(wAf(t),Rqm(t)));return _.r("delete_gcf_config_db")?p.yield(FDt(),0):p.jumpTo(0)})},U_=function(){var t;
return(t=yN())!=null?t:_.qO("RAW_HOT_CONFIG_GROUP")},QpW=function(t){var E,p,U,x,A,m;
return _.q(function(b){switch(b.nextAddress){case 1:if(t.hotGlobalConfigGroup)return b.return(yN());if(!t.isConfigDbInitialized)return E=w7("getHotConfig IDB not initialized"),_.Ra(E),b.return(Promise.reject(E));p=ZR();U=_.qO("TIME_CREATED_MS");if(!p){x=w7("getHotConfig token error");_.Ra(x);b.jumpTo(2);break}return b.yield(eF$(p),3);case 3:if((A=b.yieldResult)&&A.timestamp>U)return bbp(t,A.config),t.setHotHashData(A.hashData),b.return(yN());case 2:Rqm(t);if(!(p&&t.hotGlobalConfigGroup&&t.hotHashData)){b.jumpTo(4);
break}return b.yield(XLJ(t.hotGlobalConfigGroup,t.hotHashData,p,U),4);case 4:return t.hotGlobalConfigGroup?b.return(yN()):(m=new _.cC("Config not available in ytConfig"),_.Ra(m),b.return(Promise.reject(m)))}})},jp3=function(t){var E,p,U,x,A,m;
return _.q(function(b){switch(b.nextAddress){case 1:if(t.coldGlobalConfigGroup)return b.return(qFf());if(!t.isConfigDbInitialized)return E=w7("getColdConfig IDB not initialized"),_.Ra(E),b.return(Promise.reject(E));p=ZR();U=_.qO("TIME_CREATED_MS");if(!p){x=w7("getColdConfig");_.Ra(x);b.jumpTo(2);break}return b.yield(aK$(p),3);case 3:if((A=b.yieldResult)&&A.timestamp>U)return ibW(t,A.config),CUm(t,A.configData),fBW(t,A.hashData),b.return(qFf());case 2:wAf(t);if(!(p&&t.coldGlobalConfigGroup&&t.coldHashData&&
t.configData)){b.jumpTo(4);break}return b.yield(hF_(t.coldGlobalConfigGroup,t.coldHashData,t.configData,p,U),4);case 4:return t.coldGlobalConfigGroup?b.return(qFf()):(m=new _.cC("Config not available in ytConfig"),_.Ra(m),b.return(Promise.reject(m)))}})},Hbr=function(t){if(!t.hotGlobalConfigGroup||!t.coldGlobalConfigGroup){if(!ZR()){var E=w7("scheduleGetConfigs");
_.Ra(E)}t.initJob||(t.initJob=_.ir.addLowPriorityJob(function(){return _.q(function(p){switch(p.nextAddress){case 1:return _.aR(p,2),p.yield(QpW(t),4);case 4:_.r7(p,3);break;case 2:_.nB(p);case 3:return _.aR(p,5),p.yield(jp3(t),7);case 7:_.r7(p,6);break;case 5:_.nB(p);case 6:t.initJob&&(t.initJob=0),_.Do(p)}})},100))}},Odl=function(t,E,p){var U,x,A;
return _.q(function(m){switch(m.nextAddress){case 1:if(!_.r("start_client_gcf")){m.jumpTo(0);break}p&&bbp(t,p);t.setHotHashData(E);U=ZR();if(!U){m.jumpTo(3);break}if(p){m.jumpTo(4);break}return m.yield(eF$(U),5);case 5:x=m.yieldResult,p=(A=x)==null?void 0:A.config;case 4:return m.yield(XLJ(p,E,U),3);case 3:if(p)for(var b=p,f=_.M(t.configUpdateService.sharedHotConfigJobQueue),B=f.next();!B.done;B=f.next())B=B.value,B(b);_.Do(m)}})},X9$=function(t,E,p){var U,x,A,m;
return _.q(function(b){if(b.nextAddress==1){if(!_.r("start_client_gcf"))return b.jumpTo(0);fBW(t,E);return(U=ZR())?p?b.jumpTo(4):b.yield(aK$(U),5):b.jumpTo(0)}b.nextAddress!=4&&(x=b.yieldResult,p=(A=x)==null?void 0:A.config);if(!p)return b.jumpTo(0);m=p.configData;return b.yield(hF_(p,E,m,U),0)})},cf0=function(){var t=Bm0(),E=(0,_.eu)()-t.debounceTimer;
if(!(t.debounceTimer!==0&&E<_.z3("send_config_hash_timer"))){E=_.ws("yt.gcf.config.coldConfigData");var p=_.ws("yt.gcf.config.hotHashData"),U=_.ws("yt.gcf.config.coldHashData");E&&p&&U&&(t.debounceTimer=(0,_.eu)());return{coldConfigData:E,hotHashData:p,coldHashData:U}}},wAf=function(t){ibW(t,_.qO("RAW_COLD_CONFIG_GROUP"));
fBW(t,_.qO("SERIALIZED_COLD_HASH_DATA"));var E;CUm(t,(E=t.coldGlobalConfigGroup)==null?void 0:E.configData)},Rqm=function(t){bbp(t,_.qO("RAW_HOT_CONFIG_GROUP"));
t.setHotHashData(_.qO("SERIALIZED_HOT_HASH_DATA"))},bbp=function(t,E){t.hotGlobalConfigGroup=E;
_.Oy("yt.gcf.config.hotConfigGroup",t.hotGlobalConfigGroup||null)},ibW=function(t,E){t.coldGlobalConfigGroup=E;
_.Oy("yt.gcf.config.coldConfigGroup",t.coldGlobalConfigGroup||null)};
pW.prototype.setHotHashData=function(t){this.hotHashData=t;_.Oy("yt.gcf.config.hotHashData",this.hotHashData||null)};
var fBW=function(t,E){t.coldHashData=E;_.Oy("yt.gcf.config.coldHashData",t.coldHashData||null)},CUm=function(t,E){t.configData=E;
_.Oy("yt.gcf.config.coldConfigData",t.configData||null)},yN=function(){return _.ws("yt.gcf.config.hotConfigGroup")},qFf=function(){return _.ws("yt.gcf.config.coldConfigGroup")};var TM={},rj0=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";TM.assign=function(t){for(var E=Array.prototype.slice.call(arguments,1);E.length;){var p=E.shift();if(p){if(typeof p!=="object")throw new TypeError("ad`"+p);for(var U in p)Object.prototype.hasOwnProperty.call(p,U)&&(t[U]=p[U])}}return t};
TM.shrinkBuf=function(t,E){if(t.length===E)return t;if(t.subarray)return t.subarray(0,E);t.length=E;return t};
var kV4={arraySet:function(t,E,p,U,x){if(E.subarray&&t.subarray)t.set(E.subarray(p,p+U),x);else for(var A=0;A<U;A++)t[x+A]=E[p+A]},
flattenChunks:function(t){var E,p;var U=p=0;for(E=t.length;U<E;U++)p+=t[U].length;var x=new Uint8Array(p);U=p=0;for(E=t.length;U<E;U++){var A=t[U];x.set(A,p);p+=A.length}return x}},dcs={arraySet:function(t,E,p,U,x){for(var A=0;A<U;A++)t[x+A]=E[p+A]},
flattenChunks:function(t){return[].concat.apply([],t)}};
TM.setTyped=function(){rj0?(TM.Buf8=Uint8Array,TM.Buf16=Uint16Array,TM.Buf32=Int32Array,TM.assign(TM,kV4)):(TM.Buf8=Array,TM.Buf16=Array,TM.Buf32=Array,TM.assign(TM,dcs))};
TM.setTyped();var u1Z=!0;try{new Uint8Array(1)}catch(t){u1Z=!1}
var e9O=function(t){var E,p,U=t.length,x=0;for(E=0;E<U;E++){var A=t.charCodeAt(E);if((A&64512)===55296&&E+1<U){var m=t.charCodeAt(E+1);(m&64512)===56320&&(A=65536+(A-55296<<10)+(m-56320),E++)}x+=A<128?1:A<2048?2:A<65536?3:4}var b=new TM.Buf8(x);for(E=p=0;p<x;E++)A=t.charCodeAt(E),(A&64512)===55296&&E+1<U&&(m=t.charCodeAt(E+1),(m&64512)===56320&&(A=65536+(A-55296<<10)+(m-56320),E++)),A<128?b[p++]=A:(A<2048?b[p++]=192|A>>>6:(A<65536?b[p++]=224|A>>>12:(b[p++]=240|A>>>18,b[p++]=128|A>>>12&63),b[p++]=
128|A>>>6&63),b[p++]=128|A&63);return b};var jG8={};jG8=function(t,E,p,U){var x=t&65535|0;t=t>>>16&65535|0;for(var A;p!==0;){A=p>2E3?2E3:p;p-=A;do x=x+E[U++]|0,t=t+x|0;while(--A);x%=65521;t%=65521}return x|t<<16|0};for(var Aw={},Sr,Jjm=[],IBf=0;IBf<256;IBf++){Sr=IBf;for(var ghp=0;ghp<8;ghp++)Sr=Sr&1?3988292384^Sr>>>1:Sr>>>1;Jjm[IBf]=Sr}Aw=function(t,E,p,U){p=U+p;for(t^=-1;U<p;U++)t=t>>>8^Jjm[(t^E[U])&255];return t^-1};var KM={};KM={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 b0Y=[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],qUY=[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],aN8=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],QG8=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],tw=Array(576);DR(tw);var EG=Array(60);DR(EG);var Wk=Array(512);DR(Wk);var oD=Array(256);DR(oD);var i0t=Array(29);DR(i0t);var H0D=Array(30);DR(H0D);var O0D,X3J,h9L,Z0i=!1;var br;
br=[new mM(0,0,0,0,function(t,E){var p=65535;for(p>t.pending_buf_size-5&&(p=t.pending_buf_size-5);;){if(t.lookahead<=1){Y7(t);if(t.lookahead===0&&E===0)return 1;if(t.lookahead===0)break}t.strstart+=t.lookahead;t.lookahead=0;var U=t.block_start+p;if(t.strstart===0||t.strstart>=U)if(t.lookahead=t.strstart-U,t.strstart=U,pT(t,!1),t.strm.avail_out===0)return 1;if(t.strstart-t.block_start>=t.w_size-262&&(pT(t,!1),t.strm.avail_out===0))return 1}t.insert=0;if(E===4)return pT(t,!0),t.strm.avail_out===0?3:
4;t.strstart>t.block_start&&pT(t,!1);return 1}),
new mM(4,4,8,4,r2Y),new mM(4,5,16,8,r2Y),new mM(4,6,32,32,r2Y),new mM(4,4,16,16,M0),new mM(8,16,32,32,M0),new mM(8,16,128,128,M0),new mM(8,32,128,256,M0),new mM(32,128,258,1024,M0),new mM(32,258,258,4096,M0)];var gRt={};gRt=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 FeY=Object.prototype.toString;
INJ.prototype.push=function(t,E){var p=this.strm,U=this.options.chunkSize;if(this.ended)return!1;var x=E===~~E?E:E===!0?4:0;typeof t==="string"?p.input=e9O(t):FeY.call(t)==="[object ArrayBuffer]"?p.input=new Uint8Array(t):p.input=t;p.next_in=0;p.avail_in=p.input.length;do{p.avail_out===0&&(p.output=new TM.Buf8(U),p.next_out=0,p.avail_out=U);t=J2i(p,x);if(t!==1&&t!==0)return Zb4(this,t),this.ended=!0,!1;if(p.avail_out===0||p.avail_in===0&&(x===4||x===2))if(this.options.to==="string"){var A=TM.shrinkBuf(p.output,
p.next_out);E=A;A=A.length;if(A<65537&&(E.subarray&&u1Z||!E.subarray))E=String.fromCharCode.apply(null,TM.shrinkBuf(E,A));else{for(var m="",b=0;b<A;b++)m+=String.fromCharCode(E[b]);E=m}this.chunks.push(E)}else E=TM.shrinkBuf(p.output,p.next_out),this.chunks.push(E)}while((p.avail_in>0||p.avail_out===0)&&t!==1);if(x===4)return(p=this.strm)&&p.state?(U=p.state.status,U!==42&&U!==69&&U!==73&&U!==91&&U!==103&&U!==113&&U!==666?t=vk(p,-2):(p.state=null,t=U===113?vk(p,-3):0)):t=-2,Zb4(this,t),this.ended=
!0,t===0;x===2&&(Zb4(this,0),p.avail_out=0);return!0};
var Zb4=function(t,E){E===0&&(t.result=t.options.to==="string"?t.chunks.join(""):TM.flattenChunks(t.chunks));t.chunks=[];t.err=E;t.msg=t.strm.msg};var ObT=typeof TextEncoder!=="undefined"?new TextEncoder:null,b4O=ObT?function(t){return ObT.encode(t)}:function(t){t=_.Lg(t);
for(var E=new Uint8Array(t.length),p=0;p<E.length;p++)E[p]=t[p];return E};var EA0={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},UFO={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var cl=function(t,E){this.version=t;this.args=E};
cl.prototype.serialize=function(){return{version:this.version,args:this.args}};var NzE=function(t,E){this.topic=t;this.dataClass=E};
NzE.prototype.toString=function(){return this.topic};var XAo=_.ws("ytPubsub2Pubsub2Instance")||new _.oa;_.oa.prototype.subscribe=_.oa.prototype.subscribe;_.oa.prototype.unsubscribeByKey=_.oa.prototype.unsubscribeByKey;_.oa.prototype.publish=_.oa.prototype.publish;_.oa.prototype.clear=_.oa.prototype.clear;_.Oy("ytPubsub2Pubsub2Instance",XAo);var nRO=_.ws("ytPubsub2Pubsub2SubscribedKeys")||{};_.Oy("ytPubsub2Pubsub2SubscribedKeys",nRO);var sGD=_.ws("ytPubsub2Pubsub2TopicToKeys")||{};_.Oy("ytPubsub2Pubsub2TopicToKeys",sGD);
var Dl$=_.ws("ytPubsub2Pubsub2IsAsync")||{};_.Oy("ytPubsub2Pubsub2IsAsync",Dl$);_.Oy("ytPubsub2Pubsub2SkipSubKey",null);var SU0=void 0,vRi=void 0;var Yli=_.z3("max_body_size_to_compress",5E5),M5K=_.z3("min_body_size_to_compress",500),HE=!0,H4O=0,fT=0,qlO=_.z3("compression_performance_threshold_lr",250),BnL=_.z3("slow_compressions_before_abandon_count",4),E8t=!1,pu_=new Map,mdi=1;_.Oa(BE,Rv8);BE.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 hq4=function(t,E,p){p||(p=0);var U=t.W_;if(typeof E==="string")for(var x=0;x<16;x++)U[x]=E.charCodeAt(p)<<24|E.charCodeAt(p+1)<<16|E.charCodeAt(p+2)<<8|E.charCodeAt(p+3),p+=4;else for(x=0;x<16;x++)U[x]=E[p]<<24|E[p+1]<<16|E[p+2]<<8|E[p+3],p+=4;for(E=16;E<80;E++)p=U[E-3]^U[E-8]^U[E-14]^U[E-16],U[E]=(p<<1|p>>>31)&4294967295;E=t.chain_[0];p=t.chain_[1];x=t.chain_[2];for(var A=t.chain_[3],m=t.chain_[4],b,f,B=0;B<80;B++)B<40?B<20?(b=A^p&(x^A),f=1518500249):(b=p^x^A,f=1859775393):B<60?(b=p&x|A&(p|x),
f=2400959708):(b=p^x^A,f=3395469782),b=(E<<5|E>>>27)+b+m+f+U[B]&4294967295,m=A,A=x,x=(p<<30|p>>>2)&4294967295,p=E,E=b;t.chain_[0]=t.chain_[0]+E&4294967295;t.chain_[1]=t.chain_[1]+p&4294967295;t.chain_[2]=t.chain_[2]+x&4294967295;t.chain_[3]=t.chain_[3]+A&4294967295;t.chain_[4]=t.chain_[4]+m&4294967295};
BE.prototype.update=function(t,E){if(t!=null){E===void 0&&(E=t.length);for(var p=E-this.blockSize,U=0,x=this.buf_,A=this.inbuf_;U<E;){if(A==0)for(;U<=p;)hq4(this,t,U),U+=this.blockSize;if(typeof t==="string")for(;U<E;){if(x[A]=t.charCodeAt(U),++A,++U,A==this.blockSize){hq4(this,x);A=0;break}}else for(;U<E;)if(x[A]=t[U],++A,++U,A==this.blockSize){hq4(this,x);A=0;break}}this.inbuf_=A;this.total_+=E}};
BE.prototype.digest=function(){var t=[],E=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var p=this.blockSize-1;p>=56;p--)this.buf_[p]=E&255,E/=256;hq4(this,this.buf_);for(p=E=0;p<5;p++)for(var U=24;U>=0;U-=8)t[E]=this.chain_[p]>>U&255,++E;return t};var CRD;var EW=function(t){var E=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(R){E.databaseToken=R},
triggerThrottle:function(){E.throttledSend()},
cancelThrottle:function(){E.cancelThrottledSend()},
immediateSend:function(R){return _.q(function(V){return V.yield(E.immediateSend(R),0)})},
requestWithinAgeLimit:function(R,V){return E.requestWithinAgeLimit(R,V)},
retryQueuedRequests:function(){E.retryQueuedRequests()}};
var p;this.throttleTimeout=(p=t.throttleTimeout)!=null?p:100;var U;this.retryMaxAttempts=(U=t.retryMaxAttempts)!=null?U:1;var x;this.requestAgeLimitMs=(x=t.requestAgeLimitMs)!=null?x:2592E6;var A;this.queuedRequestAgeLimitMs=(A=t.queuedRequestAgeLimitMs)!=null?A:12E4;var m;this.retryDelayMs=(m=t.retryDelayMs)!=null?m:5E3;var b;this.databaseToken=(b=t.databaseToken)!=null?b:void 0;this.enableCleaning=!!t.enableCleaning;var f;this.cleaningRate=(f=t.cleaningRate)!=null?f:.1;var B;this.potentialEsfErrorLimit=
(B=t.potentialEsfErrorLimit)!=null?B:10;t.handleError&&(this.handleError=t.handleError);t.handleWarning&&(this.handleWarning=t.handleWarning);t.disableYtIdbTransactions&&(this.disableYtIdbTransactions=t.disableYtIdbTransactions);t.bypassDbTokenDependency&&(this.bypassDbTokenDependency=t.bypassDbTokenDependency);this.getBooleanFlag=t.getBooleanFlag;this.jobManager=t.jobManager;this.logsStore=t.logsStore;this.networkManager=t.networkManager;this.sendFn=t.sendFn;this.onlineEvent=t.onlineEvent;this.offlineEvent=
t.offlineEvent;tB(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&aBr(this)},aBr=function(t){tB(t)&&!t.disableYtIdbTransactions&&(t.initialized=!0,t.enableCleaning&&Math.random()<=t.cleaningRate&&t.logsStore.cleanLogsStore(t.databaseToken),t.retryQueuedRequests(),t.networkManager.isNetworkAvailable()&&t.throttledSend(),t.networkManager.listen(t.onlineEvent,t.throttledSend.bind(t)),t.networkManager.listen(t.offlineEvent,t.cancelThrottledSend.bind(t)))};
_.Y=EW.prototype;_.Y.writeThenSend=function(t,E){var p=this;E=E===void 0?{}:E;if(tB(this)&&this.initialized){var U={url:t,options:E,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(U,this.databaseToken).then(function(x){U.id=x;p.networkManager.isNetworkAvailable()&&p.immediateSend(U)}).catch(function(x){p.immediateSend(U);
eqT(p,x)})}else this.sendFn(t,E)};
_.Y.sendThenWrite=function(t,E,p){var U=this;E=E===void 0?{}:E;if(tB(this)&&this.initialized){var x={url:t,options:E,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(x.skipRetry=p);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!x.skipRetry){if(!x.skipRetry){var A=E.onError?E.onError:function(){};
E.onError=function(m,b){return _.q(function(f){if(f.nextAddress==1)return f.yield(U.logsStore.set(x,U.databaseToken).catch(function(B){eqT(U,B)}),2);
A(m,b);_.Do(f)})}}this.sendFn(t,E,x.skipRetry)}else this.logsStore.set(x,this.databaseToken).catch(function(m){U.sendFn(t,E,x.skipRetry);
eqT(U,m)})}else this.sendFn(t,E,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&p)};
_.Y.sendAndWrite=function(t,E){var p=this;E=E===void 0?{}:E;if(tB(this)&&this.initialized){var U={url:t,options:E,timestamp:this.now(),status:"NEW",sendCount:0},x=!1,A=E.onSuccess?E.onSuccess:function(){};
U.options.onSuccess=function(m,b){U.id!==void 0?p.logsStore.deleteRequest(U.id,p.databaseToken):x=!0;p.networkManager.networkStatusHint&&p.getBooleanFlag&&p.getBooleanFlag("vss_network_hint")&&p.networkManager.networkStatusHint(!0);A(m,b)};
this.sendFn(U.url,U.options,void 0,!0);this.logsStore.set(U,this.databaseToken).then(function(m){U.id=m;x&&p.logsStore.deleteRequest(U.id,p.databaseToken)}).catch(function(m){eqT(p,m)})}else this.sendFn(t,E,void 0,!0)};
_.Y.throttledSend=function(){var t=this;if(!tB(this))throw Error("dd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var E;return _.q(function(p){if(p.nextAddress==1)return p.yield(t.logsStore.getMostRecentByStatus("NEW",t.databaseToken),2);if(p.nextAddress!=3)return E=p.yieldResult,E?p.yield(t.immediateSend(E),3):(t.cancelThrottledSend(),p.return());t.intervalJob&&(t.intervalJob=0,t.throttledSend());_.Do(p)})},this.throttleTimeout))};
_.Y.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.Y.immediateSend=function(t){var E=this,p;return _.q(function(U){switch(U.nextAddress){case 1:if(!tB(E))throw Error("ed");if(t.id===void 0){U.jumpTo(2);break}return U.yield(E.logsStore.markAsQueued(t.id,E.databaseToken),3);case 3:(p=U.yieldResult)||E.handleWarning(Error("fd"));case 2:if(E.requestWithinAgeLimit(t,E.requestAgeLimitMs)){U.jumpTo(4);break}E.handleWarning(Error("gd"));if(t.id===void 0){U.jumpTo(5);break}return U.yield(E.logsStore.deleteRequest(t.id,E.databaseToken),5);case 5:return U.return();
case 4:t.skipRetry||(t=Fuo(E,t));if(!t){U.jumpTo(0);break}if(!t.skipRetry||t.id===void 0){U.jumpTo(8);break}return U.yield(E.logsStore.deleteRequest(t.id,E.databaseToken),8);case 8:E.sendFn(t.url,t.options,!!t.skipRetry),_.Do(U)}})};
var Fuo=function(t,E){if(!tB(t))throw Error("hd");var p=E.options.onError?E.options.onError:function(){};
E.options.onError=function(x,A){var m,b,f,B;return _.q(function(R){switch(R.nextAddress){case 1:m=uRE(A);(b=JXJ(A))&&t.getBooleanFlag&&t.getBooleanFlag("web_enable_error_204")&&t.handleError(Error("id"),E.url,A);if(!(t.getBooleanFlag&&t.getBooleanFlag("nwl_consider_error_code")&&m||t.getBooleanFlag&&!t.getBooleanFlag("nwl_consider_error_code")&&t.potentialEsfErrorCounter<=t.potentialEsfErrorLimit)){R.jumpTo(2);break}if(!t.networkManager.sendNetworkCheckRequest){R.jumpTo(3);break}return R.yield(t.networkManager.sendNetworkCheckRequest(),
3);case 3:if(t.networkManager.isNetworkAvailable()){R.jumpTo(2);break}p(x,A);if(!t.getBooleanFlag||!t.getBooleanFlag("nwl_consider_error_code")||((f=E)==null?void 0:f.id)===void 0){R.jumpTo(6);break}return R.yield(t.logsStore.resetRequest(E.id,t.databaseToken,!1),6);case 6:return R.return();case 2:if(t.getBooleanFlag&&t.getBooleanFlag("nwl_consider_error_code")&&!m&&t.potentialEsfErrorCounter>t.potentialEsfErrorLimit)return R.return();t.potentialEsfErrorCounter++;if(((B=E)==null?void 0:B.id)===void 0){R.jumpTo(8);
break}return E.sendCount<t.retryMaxAttempts?R.yield(t.logsStore.resetRequest(E.id,t.databaseToken,!0,b?!1:void 0),12):R.yield(t.logsStore.deleteRequest(E.id,t.databaseToken),8);case 12:t.jobManager.addLowPriorityJob(function(){t.networkManager.isNetworkAvailable()&&t.throttledSend()},t.retryDelayMs);
case 8:p(x,A),_.Do(R)}})};
var U=E.options.onSuccess?E.options.onSuccess:function(){};
E.options.onSuccess=function(x,A){var m;return _.q(function(b){if(b.nextAddress==1)return((m=E)==null?void 0:m.id)===void 0?b.jumpTo(2):b.yield(t.logsStore.deleteRequest(E.id,t.databaseToken),2);t.networkManager.networkStatusHint&&t.getBooleanFlag&&t.getBooleanFlag("vss_network_hint")&&t.networkManager.networkStatusHint(!0);U(x,A);_.Do(b)})};
return E};
EW.prototype.requestWithinAgeLimit=function(t,E){t=t.timestamp;return this.now()-t>=E?!1:!0};
EW.prototype.retryQueuedRequests=function(){var t=this;if(!tB(this))throw Error("jd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(E){E&&!t.requestWithinAgeLimit(E,t.queuedRequestAgeLimitMs)?t.jobManager.addLowPriorityJob(function(){return _.q(function(p){if(p.nextAddress==1)return E.id===void 0?p.jumpTo(2):p.yield(t.logsStore.resetRequest(E.id,t.databaseToken),2);t.retryQueuedRequests();_.Do(p)})}):t.networkManager.isNetworkAvailable()&&t.throttledSend()})};
var eqT=function(t,E){t.writeError&&!t.networkManager.isNetworkAvailable()?t.writeError(E):t.handleError(E)},tB=function(t){return!!t.databaseToken||t.bypassDbTokenDependency};var IwY;var eDt={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,
visualElementShown:72,visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,
spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,
vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,
buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,
buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,
transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,
outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,
ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,
watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,
deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,
ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,
watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,
tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,
tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,
activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,
browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,
gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,
sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,
musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,
embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,
getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,
unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,
connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532,dnaRecapScreenshotEvent:534};var zqr={},lw8=aD("ServiceWorkerLogsDatabase",{objectStores:(zqr.SWHealthLog={addedAtVersion:1},zqr),shared:!0,upgrade:function(t,E){E(1)&&QK(VK(t,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var TnK={},PRt=0;var KdL;var pm=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},dx=function(){if(!pm.instance){var t=_.ws("yt.networkRequestMonitor.instance")||new pm;
_.Oy("yt.networkRequestMonitor.instance",t);pm.instance=t}return pm.instance};
pm.prototype.requestComplete=function(t,E){E&&(this.anyRequestHasSucceeded=!0);t=this.removeParams(t);this.requestMap.get(t)||this.requestMap.set(t,E)};
pm.prototype.isEndpointCFR=function(t){t=this.removeParams(t);return(t=this.requestMap.get(t))?!1:t===!1&&this.anyRequestHasSucceeded?!0:null};
pm.prototype.removeParams=function(t){return t.split("?")[0]};
pm.prototype.removeParams=pm.prototype.removeParams;pm.prototype.isEndpointCFR=pm.prototype.isEndpointCFR;pm.prototype.requestComplete=pm.prototype.requestComplete;pm.getInstance=dx;var UW=function(t){_.UH.call(this);var E=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=t!=null?t:{addLowPriorityJob:function(x,A){return setTimeout(x,A)},
cancelJob:function(x){clearTimeout(x)}};
var p,U;this.isOnline=(U=(p=window.navigator)==null?void 0:p.onLine)!=null?U:!0;this.onNavigatorChange=function(){return _.q(function(x){return x.yield(lBZ(E),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||GVf(this)};
_.u(UW,_.UH);UW.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete UW.instance};
UW.prototype.isNetworkAvailable=function(){return this.isOnline};
var GVf=function(t){t.pollingJob=t.jobManager.addLowPriorityJob(function(){var E;return _.q(function(p){if(p.nextAddress==1)return t.isOnline?((E=window.navigator)==null?0:E.onLine)?p.jumpTo(3):p.yield(lBZ(t),3):p.yield(lBZ(t),3);GVf(t);_.Do(p)})},3E4)},lBZ=function(t,E){return t.networkRequestPromise?t.networkRequestPromise:t.networkRequestPromise=new Promise(function(p){var U,x,A,m;
return _.q(function(b){switch(b.nextAddress){case 1:return U=window.AbortController?new window.AbortController:void 0,A=(x=U)==null?void 0:x.signal,m=!1,_.aR(b,2,3),U&&(t.abortTimeoutKey=t.jobManager.addLowPriorityJob(function(){U.abort()},E||2E4)),b.yield(fetch("/generate_204",{method:"HEAD",
signal:A}),5);case 5:m=!0;case 3:_.FQ(b);t.networkRequestPromise=void 0;t.abortTimeoutKey&&(t.jobManager.cancelJob(t.abortTimeoutKey),t.abortTimeoutKey=0);m!==t.isOnline&&(t.isOnline=m,t.isOnline?t.dispatchEvent("networkstatus-online"):t.dispatchEvent("networkstatus-offline"));p(m);_.Gc(b,0);break;case 2:_.nB(b),m=!1,b.jumpTo(3)}})})};var xb=function(){_.UH.call(this);var t=this;this.shouldFlushErrors=!1;UW.instance||(UW.instance=new UW(_.ir));this.sharedNetworkStatusManager=UW.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(t.shouldFlushErrors&&_.r("offline_error_handling")){var E=v88().get("errors",!0);if(E){for(var p in E)if(E[p]){var U=new _.cC(p,"sent via offline_errors");U.name=E[p].name;U.stack=E[p].stack;U.level=E[p].level;_.fR(U)}v88().set("errors",{},2592E3,!0)}}})};
_.u(xb,_.UH);var nhW=function(){if(!xb.instance){var t=_.ws("yt.networkStatusManager.instance")||new xb;_.Oy("yt.networkStatusManager.instance",t);xb.instance=t}return xb.instance};
_.Y=xb.prototype;_.Y.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.Y.networkStatusHint=function(t){this.sharedNetworkStatusManager.isOnline=t};
_.Y.getWindowStatus=function(){var t=window.navigator.onLine;return t===void 0?!0:t};
_.Y.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.Y.listen=function(t,E){return this.sharedNetworkStatusManager.listen(t,E)};
_.Y.sendNetworkCheckRequest=function(t){t=lBZ(this.sharedNetworkStatusManager,t);t.then(function(E){_.r("use_cfr_monitor")&&dx().requestComplete("generate_204",E)});
return t};
xb.prototype.sendNetworkCheckRequest=xb.prototype.sendNetworkCheckRequest;xb.prototype.listen=xb.prototype.listen;xb.prototype.enableErrorFlushing=xb.prototype.enableErrorFlushing;xb.prototype.getWindowStatus=xb.prototype.getWindowStatus;xb.prototype.networkStatusHint=xb.prototype.networkStatusHint;xb.prototype.isNetworkAvailable=xb.prototype.isNetworkAvailable;xb.getInstance=nhW;_.k7=function(t){t=t===void 0?{}:t;_.UH.call(this);var E=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=nhW();var p=_.ws("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);p&&(t.rateLimit?(this.rateLimit=t.rateLimit,p("networkstatus-online",function(){Nms(E,"publicytnetworkstatus-online")}),p("networkstatus-offline",function(){Nms(E,"publicytnetworkstatus-offline")})):(p("networkstatus-online",function(){E.dispatchEvent("publicytnetworkstatus-online")}),p("networkstatus-offline",
function(){E.dispatchEvent("publicytnetworkstatus-offline")})))};
_.u(_.k7,_.UH);_.k7.prototype.isNetworkAvailable=function(){var t=_.ws("yt.networkStatusManager.instance.isNetworkAvailable");return t?t.bind(this.nsmInstance)():!0};
_.k7.prototype.networkStatusHint=function(t){var E=_.ws("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);E&&E(t)};
_.k7.prototype.sendNetworkCheckRequest=function(t){var E=this,p;return _.q(function(U){p=_.ws("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(E.nsmInstance);return _.r("skip_network_check_if_cfr")&&dx().isEndpointCFR("generate_204")?U.return(new Promise(function(x){var A;E.networkStatusHint(((A=window.navigator)==null?void 0:A.onLine)||!0);x(E.isNetworkAvailable())})):p?U.return(p(t)):U.return(!0)})};
var Nms=function(t,E){t.rateLimit?t.lastJobTime?(_.ir.cancelJob(t.schedulerJob),t.schedulerJob=_.ir.addLowPriorityJob(function(){t.lastPublicSignalSent!==E&&(t.dispatchEvent(E),t.lastPublicSignalSent=E,t.lastJobTime=(0,_.eu)())},t.rateLimit-((0,_.eu)()-t.lastJobTime))):(t.dispatchEvent(E),t.lastPublicSignalSent=E,t.lastJobTime=(0,_.eu)()):t.dispatchEvent(E)};var E2$,AB=function(){EW.call(this,{logsStore:{cleanLogsStore:Fd8,deleteRequest:evO,getMostRecentByStatus:Xu_,markAsQueued:hvE,resetRequest:awJ,set:O40},networkManager:_.psE(),handleError:function(t,E,p){var U,x=p==null?void 0:(U=p.error)==null?void 0:U.code;if(x===400||x===415){var A;t=new _.cC(t.message,E,p==null?void 0:(A=p.error)==null?void 0:A.code);_.Ra(t,void 0,void 0,void 0,!0)}else _.fR(t)},
handleWarning:_.Ra,sendFn:cX0,now:_.eu,writeError:yXj,jobManager:_.ty(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.z3("potential_esf_error_limit",10),getBooleanFlag:_.r,disableYtIdbTransactions:!(_.Si()&&_.UAO())});this.initializationPromise=new _.hf;_.r("networkless_immediately_drop_all_requests")&&zvL();IKL("LogsDatabaseV2")};
_.u(AB,EW);_.spW=function(){var t=_.ws("yt.networklessRequestController.instance");t||(t=new AB,_.Oy("yt.networklessRequestController.instance",t),_.r("networkless_logging")&&_.hF().then(function(E){t.databaseToken=E;aBr(t);t.initializationPromise.resolve();t.enableCleaning&&Math.random()<=t.cleaningRate&&t.databaseToken&&n8L(t.databaseToken);_.r("networkless_immediately_drop_sw_health_store")&&DcT(t)}));
return t};
AB.prototype.writeThenSend=function(t,E){E||(E={});E=te8(t,E);_.Si()||(this.initialized=!1);EW.prototype.writeThenSend.call(this,t,E)};
AB.prototype.sendThenWrite=function(t,E,p){E||(E={});E=te8(t,E);_.Si()||(this.initialized=!1);EW.prototype.sendThenWrite.call(this,t,E,p)};
AB.prototype.sendAndWrite=function(t,E){E||(E={});E=te8(t,E);_.Si()||(this.initialized=!1);EW.prototype.sendAndWrite.call(this,t,E)};
AB.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var DcT=function(t){var E;_.q(function(p){if(!t.databaseToken)throw E=w7("clearSWHealthLogsDb"),E;return p.return(NnD(t.databaseToken).catch(function(U){t.handleError(U)}))})};_.AJD=!1;_.xAD=_.Ui.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.AJD};_.Oy("ytNetworklessLoggingInitializationOptions",_.xAD);var YX=function(t){var E=this;this.config_=null;t?this.config_=t:zFD()&&(this.config_=_.zM());_.E_(_.ir,function(){ddJ(E)},5E3)};
YX.prototype.isReady=function(){!this.config_&&zFD()&&(this.config_=_.zM());return!!this.config_};
var khJ=function(t,E,p,U){!_.qO("VISITOR_DATA")&&E!=="visitor_id"&&Math.random()<.01&&_.Ra(new _.cC("Missing VISITOR_DATA when sending innertube request.",E,p,U));if(!t.isReady()){var x=new _.cC("innertube xhrclient not ready",E,p,U);_.fR(x);throw x;}var A={headers:U.headers||{},method:"POST",postParams:p,postBody:U.postBody,postBodyFormat:U.postBodyFormat||"JSON",onTimeout:function(){U.onTimeout()},
onFetchTimeout:U.onTimeout,onSuccess:function(V,Q){if(U.onSuccess)U.onSuccess(Q)},
onFetchSuccess:function(V){if(U.onSuccess)U.onSuccess(V)},
onProgress:function(V){if(U.onProgress)U.onProgress(V)},
onError:function(V,Q){if(U.onError)U.onError(Q)},
onFetchError:function(V){if(U.onError)U.onError(V)},
timeout:U.timeout,withCredentials:!0,compress:U.compress};A.headers["Content-Type"]||(A.headers["Content-Type"]="application/json");var m="";(x=t.config_.innertubeHostOverride)&&(m=x);var b=t.config_.innertubeUseThirdPartyAuth||!1,f=_.S5L(b,m,U);Object.assign(A.headers,f);A.headers.Authorization&&!m&&b&&(A.headers["x-origin"]=window.location.origin);var B=_.rs(m+("/youtubei/"+t.config_.innertubeApiVersion+"/"+E),{alt:"json"}),R=function(V){V=V===void 0?!1:V;var Q;if(U.retry&&m!="www.youtube-nocookie.com"&&
(V||_.r("skip_ls_gel_retry")||A.headers["Content-Type"]!=="application/json"||(Q=joD(E,p,f,b)),Q)){var C=A.onSuccess,d=A.onFetchSuccess;A.onSuccess=function(a,F){rX0(Q);C(a,F)};
p.onFetchSuccess=function(a,F){rX0(Q);d(a,F)}}try{if(V&&U.retry&&!U.networklessOptions.bypassNetworkless)A.method="POST",U.networklessOptions.writeThenSend?_.spW().writeThenSend(B,A):_.spW().sendAndWrite(B,A);
else if(U.compress){var I=!U.networklessOptions.writeThenSend;if(A.postBody){var O=A.postBody;typeof O!=="string"&&(O=JSON.stringify(A.postBody));i4$(B,O,A,_.PC,I)}else i4$(B,JSON.stringify(A.postParams),A,CUL,I)}else CUL(B,A)}catch(a){if(a.name==="InvalidAccessError")Q&&(rX0(Q),Q=0),_.Ra(Error("kd"));else throw a;}Q&&_.E_(_.ir,function(){ddJ(t)},5E3)};
_.Ynj()?Q4E().then(function(V){R(V)}):R(!1)};var amE=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(amE,_.w6);var LuT=0,mAJ=_.no?"webkit":_.Ne?"moz":_.FI?"ms":Qsr?"o":"";_.Oy("ytDomDomGetNextId",_.ws("ytDomDomGetNextId")||function(){return++LuT});var PU3={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},Zt=function(t){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(t=
t||window.event){this.event=t;for(var E in t)E in PU3||(this[E]=t[E]);this.scale=t.scale;this.rotation=t.rotation;var p=t.target||t.srcElement;p&&p.nodeType==3&&(p=p.parentNode);this.target=p;var U=t.relatedTarget;if(U)try{U=U.nodeName?U:null}catch(x){U=null}else this.type=="mouseover"?U=t.fromElement:this.type=="mouseout"&&(U=t.toElement);this.relatedTarget=U;this.clientX=t.clientX!=void 0?t.clientX:t.pageX;this.clientY=t.clientY!=void 0?t.clientY:t.pageY;this.keyCode=t.keyCode?t.keyCode:t.which;
this.charCode=t.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=t.altKey;this.ctrlKey=t.ctrlKey;this.shiftKey=t.shiftKey;this.metaKey=t.metaKey;this.pageX_=t.pageX;this.pageY_=t.pageY}}catch(x){}},TmZ=function(t){if(document.body&&document.documentElement){var E=document.body.scrollTop+document.documentElement.scrollTop;
t.pageX_=t.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);t.pageY_=t.clientY+E}};
Zt.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Zt.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Zt.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var gx=_.Ui.ytEventsEventsListeners||{};_.Oy("ytEventsEventsListeners",gx);var B4$=_.Ui.ytEventsEventsCounter||{count:0};_.Oy("ytEventsEventsCounter",B4$);var wsD=_.cq(function(){var t=!1;try{var E=Object.defineProperty({},"capture",{get:function(){t=!0}});
window.addEventListener("test",null,E)}catch(p){}return t});_.Oa(XL,_.PQ);XL.prototype.onMouseMove_=function(t){t.pageX_===void 0&&TmZ(t);var E=t.pageX_;t.pageY_===void 0&&TmZ(t);this.position_=new _.gg(E,t.pageY_)};
XL.prototype.checkPosition_=function(){if(this.position_){var t=(0,_.eu)();if(this.previousTime_!=0){var E=this.previousPosition_,p=this.position_,U=E.x-p.x;E=E.y-p.y;U=Math.sqrt(U*U+E*E)/(t-this.previousTime_);this.cycles_[this.index_]=Math.abs((U-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(p=E=0;p<4;p++)E+=this.cycles_[p]||0;E>=3&&this.callback_();this.previousVelocity_=U}this.previousTime_=t;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
XL.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.RUD(this.mouseListenerKey_)};var rJt={};var ZdE=new _.Ir("rawColdConfigGroup");var g1l=new _.Ir("rawHotConfigGroup");var ohX=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(ohX,_.w6);var h8j=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(h8j,_.w6);var tH=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t,500)};
_.u(tH,_.w6);tH.prototype.getPayloadCase=function(){return _.Wn(this,Wup)};
tH.prototype.getContext=function(){return _.lJ(this,h8j,33)};
var Wup=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530,531];var r8O=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(r8O,_.w6);var Sn_=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Sn_,_.w6);Sn_.prototype.setVideoId=function(t){return Ta(this,1,cJ8,Z9(t))};
Sn_.prototype.getPlaylistId=function(){return _.lN(this,yK(this,cJ8,2))};
var cJ8=[1,2];var of=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(of,_.w6);of.prototype.getContext=function(){return _.lJ(this,WE,1)};
of.prototype.getTier=function(){return _.Et(this,7)};
of.prototype.getRetryCount=function(){return _.kW(this,11)};var $cG,FL,lr;$cG=_.Ui.ytPubsubPubsubInstance||new _.oa;FL=_.Ui.ytPubsubPubsubSubscribedKeys||{};lr=_.Ui.ytPubsubPubsubTopicToKeys||{};_.kOK=_.Ui.ytPubsubPubsubIsSynchronous||{};_.oa.prototype.subscribe=_.oa.prototype.subscribe;_.oa.prototype.unsubscribeByKey=_.oa.prototype.unsubscribeByKey;_.oa.prototype.publish=_.oa.prototype.publish;_.oa.prototype.clear=_.oa.prototype.clear;_.Oy("ytPubsubPubsubInstance",$cG);_.Oy("ytPubsubPubsubTopicToKeys",lr);_.Oy("ytPubsubPubsubIsSynchronous",_.kOK);
_.Oy("ytPubsubPubsubSubscribedKeys",FL);var nT=window;var Yb=_.r("web_enable_lifecycle_monitoring")&&g2_()!==0,Ku0=_.r("web_enable_lifecycle_monitoring");var vhX=function(t){var E=this;var p=p===void 0?0:p;var U=U===void 0?_.ty():U;this.JSC$11164_defaultPriority=p;this.scheduler=U;this.completedResolver=new _.hf;this.scheduledPayloads=t;for(t={i$jscomp$493:0};t.i$jscomp$493<this.scheduledPayloads.length;t={payload$jscomp$20:void 0,i$jscomp$493:t.i$jscomp$493},t.i$jscomp$493++)t.payload$jscomp$20=this.scheduledPayloads[t.i$jscomp$493],p=function(x){return function(){x.payload$jscomp$20.job();E.scheduledPayloads[x.i$jscomp$493].processed=!0;E.scheduledPayloads.every(function(A){return A.processed===
!0})&&E.completedResolver.resolve()}}(t),U=this.getPriority(t.payload$jscomp$20),U=this.scheduler.addJob(p,U),this.scheduledPayloads[t.i$jscomp$493]=Object.assign({},t.payload$jscomp$20,{job:p,
jobId:U})};
vhX.prototype.flushJobs=function(){var t=this,E=Array.from(this.scheduledPayloads.keys()).sort(function(U,x){return t.getPriority(t.scheduledPayloads[x])-t.getPriority(t.scheduledPayloads[U])});
E=_.M(E);for(var p=E.next();!p.done;p=E.next())p=this.scheduledPayloads[p.value],p.jobId===void 0||p.processed||(this.scheduler.cancelJob(p.jobId),this.scheduler.addJob(p.job,10))};
vhX.prototype.cancel=function(){for(var t=_.M(this.scheduledPayloads),E=t.next();!E.done;E=t.next())E=E.value,E.jobId===void 0||E.processed||this.scheduler.cancelJob(E.jobId),E.processed=!0;this.completedResolver.resolve()};
vhX.prototype.getPriority=function(t){var E;return(E=t.priority)!=null?E:this.JSC$11164_defaultPriority};var Mi=function(t){this.state=t;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};Yb&&ZyJ(this.state)};
Mi.prototype.install=function(t){this.plugins.push(t);return this};
Mi.prototype.uninstall=function(){var t=this;_.t9.apply(0,arguments).forEach(function(E){E=t.plugins.indexOf(E);E>-1&&t.plugins.splice(E,1)})};
Mi.prototype.transition=function(t,E){var p=this;Yb&&Oy8(this.state);var U=this.transitions.find(function(A){return Array.isArray(A.from)?A.from.find(function(m){return m===p.state&&A.to===t}):A.from===p.state&&A.to===t});
if(U){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);yj0(this,t,E);this.state=t;Yb&&ZyJ(this.state);U=U.action.bind(this);var x=this.plugins.filter(function(A){return A[t]}).map(function(A){return A[t]});
U(SFT(this,x),E)}else throw Error("ld`"+this.state+"`"+t);};
var SFT=function(t,E){var p=E.filter(function(x){return cjG(t,x)===10}),U=E.filter(function(x){return cjG(t,x)!==10});
return t.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var x=_.t9.apply(0,arguments);return _.q(function(A){if(A.nextAddress==1)return A.yield(t.runImmediateJobsAsync.apply(t,[p].concat(_.KB(x))),2);t.setJobSetWithScheduledJobs.apply(t,[U].concat(_.KB(x)));_.Do(A)})}:function(){var x=_.t9.apply(0,arguments);
t.runImmediateJobsSync.apply(t,[p].concat(_.KB(x)));t.setJobSetWithScheduledJobs.apply(t,[U].concat(_.KB(x)))}};
Mi.prototype.runImmediateJobsSync=function(t){var E=_.t9.apply(1,arguments);_.ty();for(var p=_.M(t),U=p.next(),x={};!U.done;x={lifecycle$jscomp$2:void 0},U=p.next())x.lifecycle$jscomp$2=U.value,IC(function(A){return function(){tLG(A.lifecycle$jscomp$2.name);hUK(function(){return A.lifecycle$jscomp$2.callback.apply(A.lifecycle$jscomp$2,_.KB(E))});
m$(A.lifecycle$jscomp$2.name)}}(x))};
Mi.prototype.runImmediateJobsAsync=function(t){var E=_.t9.apply(1,arguments),p,U,x,A;return _.q(function(m){m.nextAddress==1&&(_.ty(),p=_.M(t),U=p.next(),x={});if(m.nextAddress!=3){if(U.done)return m.jumpTo(0);x.lifecycle$jscomp$3=U.value;x.asyncJobCompletion=void 0;A=function(b){return function(){tLG(b.lifecycle$jscomp$3.name);var f=hUK(function(){return b.lifecycle$jscomp$3.callback.apply(b.lifecycle$jscomp$3,_.KB(E))});
omo(f)?b.asyncJobCompletion=_.r("web_lifecycle_error_handling_killswitch")?f.then(function(){m$(b.lifecycle$jscomp$3.name)}):f.then(function(){m$(b.lifecycle$jscomp$3.name)},function(B){XsK(B);
m$(b.lifecycle$jscomp$3.name)}):m$(b.lifecycle$jscomp$3.name)}}(x);
IC(A);return x.asyncJobCompletion?m.yield(x.asyncJobCompletion,3):m.jumpTo(3)}x={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};U=p.next();return m.jumpTo(2)})};
Mi.prototype.setJobSetWithScheduledJobs=function(t){var E=_.t9.apply(1,arguments),p=this,U=t.map(function(x){return{job:function(){tLG(x.name);hUK(function(){return x.callback.apply(x,_.KB(E))});
m$(x.name)},
priority:cjG(p,x)}});
U.length&&(this.jobSet=new vhX(U))};
var cjG=function(t,E){var p,U;return(U=(p=t.overridePriority)!=null?p:E.priority)!=null?U:0},tLG=function(t){Yb&&t&&ZyJ(t)},m$=function(t){Yb&&t&&Oy8(t)},yj0=function(t,E,p){Ku0&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+t.constructor.name+"] '"+t.state+"' to '"+E+"'"),console.log("with message: ",p),console.groupEnd())};
_.aE.Object.defineProperties(Mi.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Ez3=function(t){Mi.call(this,t===void 0?"none":t);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(){}}]},pL0;
_.u(Ez3,Mi);Ez3.prototype.runApplicationNavigationBegin=function(t,E){var p=this;this.navigationTimer=_.E_(_.ir,function(){p.currentState==="application_navigating"&&p.transition("none")},5E3);
t(E==null?void 0:E.event)};
Ez3.prototype.runApplicationNavigationEnd=function(t,E){this.navigationTimer&&(_.ir.cancelJob(this.navigationTimer),this.navigationTimer=null);t(E==null?void 0:E.event)};
_.Iq_=function(){pL0||(pL0=new Ez3);return pL0};var J8_=[];_.Oy("yt.logging.transport.getScrapedGelPayloads",function(){return J8_});var N0=function(){var t=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return t.totalEntries}}};
N0.prototype.storePayload=function(t,E){t=a4_(t);this.store[t]?this.store[t].push(E):(this.memoizedKeySequences={},this.store[t]=[E]);this.totalEntries++;_.r("more_accurate_gel_parser")&&(E=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(E));return t};
N0.prototype.smartExtractMatchingEntries=function(t){if(!t.keys.length)return[];for(var E=UJf(this,t.keys.splice(0,1)[0]),p=[],U=0;U<E.length;U++)this.store[E[U]]&&t.sizeLimit&&(this.store[E[U]].length<=t.sizeLimit?(p.push.apply(p,_.KB(this.store[E[U]])),delete this.store[E[U]]):p.push.apply(p,_.KB(this.store[E[U]].splice(0,t.sizeLimit))));this.totalEntries-=p.length;(t==null?0:t.sizeLimit)&&p.length<(t==null?void 0:t.sizeLimit)&&(t.sizeLimit-=p.length,p.push.apply(p,_.KB(this.smartExtractMatchingEntries(t))));
return p};
N0.prototype.extractMatchingEntries=function(t){t=UJf(this,t);for(var E=[],p=0;p<t.length;p++)this.store[t[p]]&&(E.push.apply(E,_.KB(this.store[t[p]])),delete this.store[t[p]]);this.totalEntries-=E.length;return E};
N0.prototype.getSequenceCount=function(t){t=UJf(this,t);for(var E=0,p=0;p<t.length;p++){var U=void 0;E+=((U=this.store[t[p]])==null?void 0:U.length)||0}return E};
var UJf=function(t,E){var p=a4_(E);if(t.memoizedKeySequences[p])return t.memoizedKeySequences[p];var U=Object.keys(t.store)||[];if(U.length<=1&&a4_(E)===U[0])return U;for(var x=[],A=0;A<U.length;A++){var m=U[A].split("/");if(xJX(E.auth,m[0])){var b=E.isJspb;xJX(b===void 0?"undefined":b?"true":"false",m[1])&&xJX(E.cttAuthInfo,m[2])&&(b=E.tier,b=b===void 0?"undefined":JSON.stringify(b),xJX(b,m[3])&&x.push(U[A]))}}return t.memoizedKeySequences[p]=x},xJX=function(t,E){return t===void 0||t==="undefined"?
!0:t===E};
N0.prototype.getSequenceCount=N0.prototype.getSequenceCount;N0.prototype.extractMatchingEntries=N0.prototype.extractMatchingEntries;N0.prototype.smartExtractMatchingEntries=N0.prototype.smartExtractMatchingEntries;N0.prototype.storePayload=N0.prototype.storePayload;var mnO,YYE,bd_,LT,Afr,aqL,hDl,A8$,xn_,Wh8,MwO,dnJ,E1_;mnO=_.z3("initial_gel_batch_timeout",2E3);YYE=_.z3("gel_queue_timeout_max_ms",6E4);bd_=_.z3("gel_min_batch_size",5);LT=void 0;Afr=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
aqL=new Afr;hDl=new Afr;A8$=new Afr;xn_=new Afr;MwO=!0;dnJ=1;_.kED=new Map;E1_=_.Ui.ytLoggingTransportTokensToCttTargetIds_||{};_.Oy("ytLoggingTransportTokensToCttTargetIds_",E1_);var twj=_.Ui.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.Oy("ytLoggingTransportTokensToJspbCttTargetIds_",twj);var sG={};var xX=_.Ui.ytLoggingGelSequenceIdObj_||{};_.Oy("ytLoggingGelSequenceIdObj_",xX);var zD8=[];var $nt=new Set,Dnj=0,y8i=0,v1J=0,L8L=[],sn0=[],SYi=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var qXJ=function(){};
qXJ.prototype.getUrl=function(t,E){E=E===void 0?!1:E;return t.hasOwnProperty("shareEndpoint")?null:_.pY8(t,null,E)};
var pWj=function(t,E,p){t={endpoint:E,actions:[]};p=(p.path?p.path[0]:p.target).icon||"";E=p.indexOf(":");E>0&&(p=p.substr(E+1));p&&t.actions.push(p);return t};var m6i=/Command$/,MYj=/Endpoint$/,x6i=new Map;var Y5p,MLX;Y5p=1;_.d1=function(){this.actionRoutingMap=new Map};
_.d1.prototype.triggerAction=function(t){var E=new izJ(t,!1,_.t9.apply(1,arguments));this.handleAction(E);return E.returnValue};
_.d1.prototype.triggerOptionalAction=function(t){var E=new izJ(t,!0,_.t9.apply(1,arguments));this.handleAction(E);return E.returnValue};
_.bP=function(t,E,p){E.forEach(function(U){var x=YXj(U);x&&t.triggerOptionalAction(x,U,p,void 0)})};
_.d1.prototype.handleAction=function(t){var E=this.actionRoutingMap.get(t.actionName);E&&MLX(t,E);t.optionalAction||t.returnValue.length!==0||(t=new _.cC("Unhandled action",t.actionName),_.Ra(t))};
MLX=function(t,E){E.forEach(function(p){var U=null;p?U=p.apply(null,t.args):(p=Error("md"),p.params=t.actionName,_.fR(p));t.returnValue.push(U)})};
_.uV=function(t,E,p){p||(p=Y5p++);for(var U=_.M(Object.keys(E)),x=U.next();!x.done;x=U.next()){x=x.value;var A=t.actionRoutingMap.get(x);A||(A=new Map,t.actionRoutingMap.set(x,A));t.registerActionHandler(p,x,E[x],A)}return p};
_.d1.prototype.registerActionHandler=function(t,E,p,U){U.set(t,_.BC(p))};
_.JH=function(t,E,p){E=_.M(Object.keys(E));for(var U=E.next();!U.done;U=E.next())(U=t.actionRoutingMap.get(U.value))&&U.delete(p)};
_.gW(_.d1);var BXO=function(t,E){var p=_.d1.getInstance();_.A6(function(){var U={},x=_.uV(p,(U[t]=E,U));_.iK(function(){var A={};_.JH(p,(A[t]="",A),x)})})};fsi=WVE;var O$K=new Set(["For","If","Match","Watch"]),mJX={},bfG=(mJX[Rm.default]=function(){return Ym0},mJX.style=function(){return Ym0},mJX),ifs;
for(ifs in bfG)ac.attributes[ifs]=bfG[ifs](ac.attributes[ifs]);var hH=new _.gM("VISIBILITY_OBSERVER");var NXO={retrieve:function(t){return this.id.\u0275prov.token===t.\u0275prov.token?this.contextValue:this?OJ(this,this.id):pE0}};var OeK=function(t,E,p){if(t!==RuO)return!1;t=kd$(document.createElement("div"),function(){var U=Xr(!1);try{p[0]()}finally{Xr(U)}});
t=Array.from(t.childNodes);t.length===1&&(t=t[0]);return t};var q5T=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(t){}var HfG=typeof WeakRef==="function";var fKf=function(t){this.value=t};
fKf.prototype.deref=function(){return this.value};
var BNX=HfG?WeakRef:fKf,wLW=function(t){this.newKeyHandler=t;this.map=new WeakMap};
wLW.prototype.add=function(t,E){this.map.has(t)||(this.newKeyHandler(t),this.map.set(t,[]));this.map.get(t).push(new BNX(E))};
wLW.prototype.get=function(t){var E=this;return function U(){var x,A,m,b,f,B,R,V,Q,C,d;return _.zs(U,function(I){switch(I.nextAddress){case 1:_.l0(I,2);x=E.map.get(t);if(!x)return I.return();A=0;m=_.M(x);b=m.next();case 4:if(b.done){I.jumpTo(6);break}f=b.value;B=f.deref();if(!B){I.jumpTo(5);break}A++;R=_.lm;return I.yield(B,8);case 8:R(I.yieldResult);case 5:b=m.next();I.jumpTo(4);break;case 6:if(2*A<x.length){V=0;Q=_.M(x);for(C=Q.next();!C.done;C=Q.next())d=C.value,d.deref()&&(x[V++]=d);x.length=
V}case 2:_.FQ(I),_.Gc(I,0)}})}()};var RFo=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},oji=new wLW(function(t){t.addEventListener("abort",$6O,{once:!0})}),TXj=new WeakMap,VLo=function(t){t=t===void 0?iP:t;
this.signal=new t};
VLo.prototype.abort=function(t){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=t,t=new Event("abort"),this.signal.dispatchEvent(t))};
var iP=function(){this.target=RFo();this.aborted=!1;this.onabort=null};
iP.prototype.throwIfAborted=function(){P7i.call(this)};
iP.prototype.addEventListener=function(t,E,p){this.target.addEventListener(t,E,p)};
iP.prototype.removeEventListener=function(t,E,p){this.target.removeEventListener(t,E,p)};
iP.prototype.dispatchEvent=function(t){if(this.onabort&&t.type==="abort")this.onabort(t);return this.target.dispatchEvent(t)};
iP.abort=LHE;iP.timeout=KHJ;iP.any=WHJ;var sFj=q5T?AbortController:VLo,qi=q5T?AbortSignal:iP;typeof qi.abort!=="function"&&(qi.abort=LHE);typeof qi.prototype.throwIfAborted!=="function"&&(qi.prototype.throwIfAborted=P7i);typeof qi.any!=="function"&&(qi.any=WHJ);typeof qi.timeout!=="function"&&(qi.timeout=KHJ);var eJ=null,yeD=new Map;var Q4Z=function(t){t=t.clone();$WT(t);y1(t,"dg",null);y1(t,"d","0");PVr(t,null);T1p(t,null);return t},CCo=!0,j4p=function(t,E,p){var U=p===void 0?{}:p;
p=U.cssRowKey===void 0?void 0:U.cssRowKey;var x=U.combinedSignature===void 0?void 0:U.combinedSignature;var A=U.extraEdges===void 0?void 0:U.extraEdges;U=U.callback===void 0?void 0:U.callback;y1(t,"m",E.join(","));A&&WLZ(t,A);p&&(y1(t,"ck",p),x?y1(t,"rs",x):CCo&&(CCo=!1));if(U){if(U!=null&&!yHZ.test(U))throw Error("Xa`"+U);y1(t,"cb",U)}t=t.toString();_.AD(t,"/")&&(t=qy_(document.location.href)+t);return _.N2(t)};var k2r=function(t){return rfG(t).then(function(E){return JSON.parse(E.responseText)})},rfG=function(t){var E={},p=E.xmlHttpFactory?E.xmlHttpFactory.createInstance():Bss.createInstance();
return(new _.PE(function(U,x){var A;try{p.open("GET",t,!0)}catch(f){x(new Hi("Error opening XHR: "+f.message,t,p))}p.onreadystatechange=function(){if(p.readyState==4){_.Ui.clearTimeout(A);var f;!(f=f3r(p.status))&&(f=p.status===0)&&(f=Ogm(t),f=!(f=="http"||f=="https"||f==""));f?U(p):x(new dJW(p.status,t,p))}};
p.onerror=function(){x(new Hi("Network error",t,p))};
if(E.headers)for(var m in E.headers){var b=E.headers[m];b!=null&&p.setRequestHeader(m,b)}E.withCredentials&&(p.withCredentials=E.withCredentials);E.responseType&&(p.responseType=E.responseType);E.mimeType&&p.overrideMimeType(E.mimeType);E.timeoutMs>0&&(A=_.Ui.setTimeout(function(){p.onreadystatechange=function(){};
p.abort();x(new u$Z(t,p))},E.timeoutMs));
try{p.send(null)}catch(f){p.onreadystatechange=function(){},_.Ui.clearTimeout(A),x(new Hi("Error sending XHR: "+f.message,t,p))}})).thenCatch(function(U){U instanceof _.mF&&p.abort();
throw U;})},Hi=function(t,E,p){_.tD.call(this,t+", url="+E);
this.url=E;this.xhr=p};
_.Oa(Hi,_.tD);Hi.prototype.name="XhrError";var dJW=function(t,E,p){Hi.call(this,"Request Failed, status="+t,E,p);this.status=t};
_.Oa(dJW,Hi);dJW.prototype.name="XhrHttpError";var u$Z=function(t,E){Hi.call(this,"Request timed out",t,E)};
_.Oa(u$Z,Hi);u$Z.prototype.name="XhrTimeoutError";Ie=Ie||{};var fm=function(){_.PQ.call(this)};
_.Oa(fm,_.PQ);fm.prototype.initialize=function(){};cet.prototype.execute=function(t){this.fn_&&(this.fn_.call(this.handler_||null,t),this.fn_=this.handler_=null)};
cet.prototype.abort=function(){this.handler_=this.fn_=null};
Ie.ModuleLoadCallback=cet;var Bi=function(t,E){_.PQ.call(this);this.deps_=t;this.JSC$11319_id_=E;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.Oa(Bi,_.PQ);Bi.prototype.moduleConstructor_=fm;Bi.prototype.module_=null;Bi.prototype.getId=function(){return this.JSC$11319_id_};
Bi.prototype.registerCallback=function(t,E){return wT(this.onloadCallbacks_,t,E)};
var JfX=function(t,E){wT(t.onErrorCallbacks_,E)},wT=function(t,E,p){E=new Ie.ModuleLoadCallback(E,p);
t.push(E);return E};
Bi.prototype.isLoaded=function(){return!!this.module_};
Bi.prototype.onLoad=function(t){var E=new this.moduleConstructor_;E.initialize(t());this.module_=E;E=(E=IKm(this.earlyOnloadCallbacks_,t()))||IKm(this.onloadCallbacks_,t());E||(this.onErrorCallbacks_.length=0);return E};
Bi.prototype.onError=function(t){(t=IKm(this.onErrorCallbacks_,t))&&xL(Error("sd`"+t));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var IKm=function(t,E){for(var p=[],U=0;U<t.length;U++)try{t[U].execute(E)}catch(x){xL(x),p.push(x)}t.length=0;return p.length?p:null};
Bi.prototype.disposeInternal=function(){Bi.superClass_.disposeInternal.call(this);_.wi(this.module_)};var gzo,eFW,hF0,aKW,Ofs,XLr,nzX,lKZ,G2T;
_.zQ=function(t,E,p,U,x){U=U===void 0?!1:U;x=x===void 0?!1:x;var A=A===void 0?!0:A;this.scsReferenceUrl_=ItK(_.Dk(t).toString(),A);this.cssRowKey_=E;this.combinedSignature_=p;this.useNegativeLoading_=U;this.requestedModuleMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(t=v7(this.scsReferenceUrl_,"excm"))?t.split(","):[];this.shouldScanForCss_=x;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=document.head||document.documentElement;
this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;g7Y();_.RJ(this,oX4(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
gzo=function(t,E){if(E.href||E.getAttribute("data-href"))if(E=E.href||E.getAttribute("data-href"),kaD(E)&&!ItK(E).urlPrefix_.endsWith("_/js/")){E=oX4(ItK(E));E=_.M(E);for(var p=E.next();!p.done;p=E.next())p=p.value,t.loadedCssModuleList_.includes(p)||t.loadedCssModuleList_.push(p)}};
_.zQ.prototype.loadModules=function(t,E,p){var U=p===void 0?{}:p;E=U.extraEdges;p=U.onError;var x=U.onSuccess;U=U.forceReload;if(!t)throw Error("td");if(this.shouldScanForCss_){for(var A=_.M(document.getElementsByTagName("style")),m=A.next();!m.done;m=A.next())gzo(this,m.value);A=_.M(document.getElementsByTagName("link"));for(m=A.next();!m.done;m=A.next())gzo(this,m.value)}Zfr(this,Ofs(this,t),E,p,x,U)};
var Zfr=function(t,E,p,U,x,A){U=U===void 0?function(){}:U;
x=x===void 0?function(){}:x;
A=A===void 0?!1:A;XLr(t,E,function(m,b,f){f=f===void 0?b:f;t.enableFallbackFetch&&A?t.loadWithFetch(m,b,U,x,f):t.load(m,b,U,x,f,p)},p)||U(-1)};
_.zQ.prototype.loadWithFetch=function(){_.q(function(){throw Error("ud");})};
_.zQ.prototype.maybeSetAdditionalFields=function(){};
eFW=function(t,E,p){if(t.useNegativeLoading_){var U=t.scsReferenceUrl_;t={cssRowKey:t.cssRowKey_,combinedSignature:t.combinedSignature_,extraEdges:p,requestedModuleIds:hF0(t),requestedCssModuleIds:aKW(t)};var x=t===void 0?{}:t;t=x.requestedModuleIds===void 0?[]:x.requestedModuleIds;p=x.requestedCssModuleIds===void 0?[]:x.requestedCssModuleIds;var A=x.cssRowKey===void 0?void 0:x.cssRowKey;var m=x.combinedSignature===void 0?void 0:x.combinedSignature;var b=x.extraEdges===void 0?void 0:x.extraEdges;
x=x.callback===void 0?void 0:x.callback;U=Q4Z(U);y1(U,"d","1");PVr(U,t);T1p(U,p);E=j4p(U,E,{cssRowKey:A,combinedSignature:m,extraEdges:b,callback:x})}else U=t.scsReferenceUrl_,t={cssRowKey:t.cssRowKey_,combinedSignature:t.combinedSignature_,requestedModuleIds:hF0(t),requestedCssModuleIds:aKW(t)},b=t===void 0?{}:t,t=b.requestedCssModuleIds===void 0?[]:b.requestedCssModuleIds,p=b.cssRowKey===void 0?void 0:b.cssRowKey,A=b.combinedSignature===void 0?void 0:b.combinedSignature,m=b.extraEdges===void 0?
void 0:b.extraEdges,b=b.callback===void 0?void 0:b.callback,U=Q4Z(U),T1p(U,t),E=j4p(U,E,{cssRowKey:p,combinedSignature:A,extraEdges:m,callback:b});return E};
_.RJ=function(t,E){for(var p=!1,U=[],x=0;x<E.length;++x){var A=E[x];t.requestedModuleMap_[A]||(t.requestedModuleMap_[A]=!0,t.requestedModuleList_.push(A),p=!0,U.push(A))}p&&(t.requestedModuleListSorted_=!1)};
_.Vi=function(t,E){for(var p=[],U=0;U<E.length;++U){var x=E[U];t.requestedModuleMap_[x]&&(delete t.requestedModuleMap_[x],_.NK(t.requestedModuleList_,x),p.push(x))}};
_.zQ.prototype.load=function(t,E,p,U,x){x=x===void 0?E:x;_.Dk(t);var A=this.useCors_,m=this.corsMode_,b=this.fetchPriority,f=_.Gg("SCRIPT");_.w3(f,t);A&&(f.crossOrigin=m);f.async=!1;b&&f.setAttribute("fetchpriority",b);_.RJ(this,E);_.FDX(this,t,f,E,p,U,x)};
_.FDX=function(t,E,p,U,x,A,m){m=m===void 0?U:m;t.lastScript_=p;t.insertPos.insertBefore(p,t.insertPos.firstChild);_.zF3(p,U,function(){p.parentElement.removeChild(p);t.lastScript_==p&&(t.lastScript_=null);A()},function(b){p.parentElement.removeChild(p);
t.lastScript_==p&&(t.lastScript_=null);_.Vi(t,b);t.pendingModuleGraphUpdate_?t.pendingModuleGraphUpdate_.then(function(){x(-1,E)}):x(-1,E)},m)};
_.zF3=function(t,E,p,U,x){x=x===void 0?E:x;var A=E.length,m=function(){A=0;t.onload=null;t.onerror=null;b=function(){}},b=function(){m();
var B=x.filter(function(R){return!MQ().getModuleInfo(R).isLoaded()});
B.length!==0?U(B,"Response was successful but was missing module(s) "+B+"."):p()},f=function(){A--;
A==0&&b()};
E.forEach(function(B){B=MQ().getModuleInfo(B);B.isLoaded()?f():(wT(B.earlyOnloadCallbacks_,f),JfX(B,f))});
t.onload=function(){return b()};
t.onerror=function(){m();U(E)}};
hF0=function(t){t.requestedModuleListSorted_||(t.requestedModuleListSorted_=!0,t.requestedModuleList_.sort());return t.requestedModuleList_};
aKW=function(t){t=t.loadedCssModuleList_;t.sort();return t};
Ofs=function(t,E){return E.filter(function(p){return!t.requestedModuleMap_[p]})};
XLr=function(t,E,p,U){if(t.pendingModuleGraphUpdate_)return t.pendingModuleGraphUpdate_.then(function(){XLr(t,E,p,U)}),!0;
if(!t.useNegativeLoading_){var x=[],A=Object.assign({},t.requestedModuleMap_);lKZ(t,E,function(R){x.push(R.getId())},U,function(R){return!R.isLoaded()},A);
E=x}for(A=0;A<E.length;){for(var m=E.length-A,b=A==0?E:E.slice(A,E.length),f=eFW(t,b,U),B=_.Dk(f).toString();B.length>t.urlMaxLength;)if(m>1)m-=Math.ceil((B.length-t.urlMaxLength)/6),m=Math.max(m,1),b=E.slice(A,A+m),f=eFW(t,b,U),B=_.Dk(f).toString();else return t.useNegativeLoading_?(t.useNegativeLoading_=!1,t.pendingModuleGraphUpdate_=G2T(t).then(function(R){nzX(t,R,U)}),XLr(t,E.slice(A),p,U)):!1;
A+=m;t.useNegativeLoading_?p(f,b):p(f,b,A===E.length?E:[])}return!0};
nzX=function(t,E,p){MQ().setAllModuleInfoString((E||{}).moduleGraph);lKZ(t,hF0(t),function(U){_.RJ(t,[U.getId()])},p);
t.pendingModuleGraphUpdate_=null};
lKZ=function(t,E,p,U,x,A){A=A===void 0?{}:A;var m=MQ();E=_.M(E);for(var b=E.next();!b.done;b=E.next()){b=b.value;var f=m.getModuleInfo(b);if(!(A[b]||x&&!x(f))){A[b]=!0;var B=f.deps_||[];if(U){var R=[];U[b]&&(R=Object.keys(U[b]));B=B.concat(R)}lKZ(t,B,p,U,x,A);p(f)}}};
G2T=function(t){t=t.scsReferenceUrl_.clone();$WT(t);y1(t,"dg",null);y1(t,"md","1");return k2r(t.toString())};var tcD=new Uint8Array(123);var NNr=[];var DJr=function(){this.JSC$10330_loader_=null};
_.Y=DJr.prototype;_.Y.setBatchModeEnabled=function(){};
_.Y.setAllModuleInfoString=function(){};
_.Y.addExtraEdge=function(){throw Error("vd");};
_.Y.removeExtraEdge=function(){throw Error("wd");};
_.Y.getModuleContext=function(){return null};
_.Y.isActive=function(){return!1};
_.Y.isUserActive=function(){return!1};
_.Y.registerInitializationCallback=function(){};
_.Y.registerCallback=function(){};var Qi=function(t,E,p,U,x){var A=Error.call(this);this.message=A.message;"stack"in A&&(this.stack=A.stack);this.name="ModuleLoadFailure";this.type=t;this.status=E;this.requestedModuleIds=p;this.url=U;this.cause=x;this.message=this.toString()};
_.u(Qi,Error);Qi.prototype.toString=function(){return s4s(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var s4s=function(t){switch(t.type){case Qi.Type.UNAUTHORIZED:return"Unauthorized";case Qi.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Qi.Type.TIMEOUT:return"Timed out";case Qi.Type.OLD_CODE_GONE:return"Out of date module id";case Qi.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+t.type}};
Ie.ModuleLoadFailure=Qi;Ie.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var Cm=function(){this.moduleIds_=this.JSC$10330_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11337_extraEdges_={};this.JSC$11337_callbackMap_={};this.JSC$11337_currentlyLoadingModule_=this.baseModuleInfo_=new Bi([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new yy;this.isDisposed_=this.userLastActive_=this.lastActive_=this.batchModeEnabled_=
!1};
_.Oa(Cm,DJr);var LDp=function(t,E){_.tD.call(this,"Error loading "+t+": "+E)};
_.Oa(LDp,_.tD);Cm.prototype.setBatchModeEnabled=function(t){this.batchModeEnabled_=t};
Cm.prototype.setAllModuleInfoString=function(t,E){if(!(this instanceof Cm))this.setAllModuleInfoString(t,E);else if(typeof t==="string"){if(t.startsWith("d$")){t=t.substring(2);for(var p=[],U=0,x=t.indexOf("/"),A=0,m=!1,b=0;;){var f=m?t.substring(A):t.substring(A,x);if(f.length===0)U++,A="sy"+U.toString(36),f=[];else{var B=f.indexOf(":");if(B<0)A=f,f=[];else if(B===f.length-1)A=f.substring(0,B),f=Array(p[b-1]);else{A=f.substring(0,B);f=f.substring(B+1).split(",");B=b;for(var R=0;R<f.length;R++)B-=
f[R].length===0?1:Number(f[R]),f[R]=p[B]}B=0;if(A.length===0)B=1;else if(A.charAt(0)==="+"||A.charAt(0)==="-")B=Number(A);B!==0&&(U+=B,A="sy"+U.toString(36))}p.push(A);PCm(this,A,f);if(m)break;A=x+1;x=t.indexOf("/",A);x===-1&&(m=!0);b++}this.moduleIds_=p}else if(t.startsWith("p$"))TNs(this,t);else{t=t.split("/");p=[];for(U=0;U<t.length;U++){b=t[U].split(":");x=b[0];m=[];if(b[1])for(m=b[1].split(","),b=0;b<m.length;b++)m[b]=p[parseInt(m[b],36)];p.push(x);PCm(this,x,m)}this.moduleIds_=p}E&&E.length?
(_.P8(this.loadingModuleIds_,E),this.lastInitialModuleId_=_.hD(E)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11337_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11337_currentlyLoadingModule_=null,(E=this.baseModuleInfo_.onLoad((0,_.Tg)(this.getModuleContext,this)))&&E.length&&ozo(this,new Ie.ModuleLoadFailure(Ie.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,E[0])),jx(this))}};
var TNs=function(t,E){var p=E.substring(2);for(E=0;E<64;E++)tcD["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(E)]=E;var U={buf:p,pos:0};Fv(U);var x=Fv(U),A=Fv(U)+1;E=Array(x);var m=Array(x),b=Array(x);A=Array(A);var f=0,B=0,R=U.pos,V=U.buf.indexOf("|",U.pos);U.pos=V+1;for(V=0;V<x;V++){var Q=Fv(U),C=Q&2,d=Q&1;Q>>>=2;d?(f+=Q>>>1^-(Q&1),Q="sy"+f.toString(36)):(d=R,R+=Q,Q=p.substring(d,R));E[V]=Q;C&&(A[B++]=Q)}A[B]="";U.pos++;B=x&-2;p=x&1;for(f=0;f<B;f+=2)R=EuO(U),b[f]=
R&7,b[f+1]=R>>>3&7;p&&(p=EuO(U),b[B]=p&7);U.pos++;for(B=0;B<x;B++)b[B]===7&&(b[B]=Fv(U));U.pos++;for(p=B=0;p<x;p++){f=b[p];R=f===0?NNr:Array(f);m[p]=R;V=B;for(C=0;C<f;C++)V-=Fv(U),R[C]=A[V];A[B]===E[p]&&B++}for(U=0;U<E.length;U++)PCm(t,E[U],m[U]);t.moduleIds_=E};
_.Y=Cm.prototype;_.Y.getModuleInfo=function(t){return this.moduleInfoMap[t]};
_.Y.addExtraEdge=function(t,E){var p=this.getModuleInfo(t);p&&p.isLoaded()?this.load(E):(this.JSC$11337_extraEdges_[t]||(this.JSC$11337_extraEdges_[t]={}),this.JSC$11337_extraEdges_[t][E]=!0)};
_.Y.removeExtraEdge=function(t,E){if(this.JSC$11337_extraEdges_[t]){delete this.JSC$11337_extraEdges_[t][E];for(var p in this.JSC$11337_extraEdges_[t])return;delete this.JSC$11337_extraEdges_[t]}};
_.Y.isActive=function(){return this.loadingModuleIds_.length>0};
_.Y.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var jx=function(t){var E=t.lastActive_,p=t.isActive();p!=E&&(t.executeCallbacks_(p?"active":"idle"),t.lastActive_=p);E=t.isUserActive();E!=t.userLastActive_&&(t.executeCallbacks_(E?"userActive":"userIdle"),t.userLastActive_=E)},PCm=function(t,E,p){t.moduleInfoMap[E]?(t=t.moduleInfoMap[E].deps_,t!=p&&t.splice.apply(t,[0,
t.length].concat(_.KB(p)))):t.moduleInfoMap[E]=new Bi(p,E)},$J3=function(t,E,p){var U=[];
eji(E,U);E=[];for(var x={},A=0;A<U.length;A++){var m=U[A],b=t.getModuleInfo(m);if(!b)throw Error("xd`"+m);var f=new yy;x[m]=f;b.isLoaded()?f.callback(null):(WDs(t,m,b,!!p,f),t.isModuleLoading(m)||E.push(m))}E.length>0&&(t.loadingModuleIds_.length===0?t.loadModules_(E):(t.requestedModuleIdsQueue_.push(E),jx(t)));return x},WDs=function(t,E,p,U,x){p.registerCallback(x.callback,x);
JfX(p,function(A){x.errback(new LDp(E,A))});
t.isModuleLoading(E)?U&&(KDT(t,E),jx(t)):U&&KDT(t,E)};
Cm.prototype.loadModules_=function(t,E,p){var U=this;E=E===void 0?0:E;var x=vzG(this,t);this.loadingModuleIds_=x;this.requestedLoadingModuleIds_=this.batchModeEnabled_?t:_.Dl(x);jx(this);if(x.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,x);t=this.JSC$10330_loader_;if(!t)throw Error("yd");if(Object.keys(this.JSC$11337_extraEdges_).length>0&&!t.supportsExtraEdges)throw Error("zd");p=(0,_.Tg)(t.loadModules,t,_.Dl(x),this.moduleInfoMap,{extraEdges:this.JSC$11337_extraEdges_,
forceReload:!!p,onError:function(A,m,b){var f=U.requestedLoadingModuleIds_;A=A!=null?A:void 0;var B=E;b=b===void 0?!1:b;b=(b===void 0?0:b)?0:(B===void 0?0:B)+1;B=_.Dl(x);U.requestedLoadingModuleIds_=f;x.forEach(_.GF(_.NK,U.requestedModuleIds_),U);A==401?(ozo(U,new Ie.ModuleLoadFailure(Ie.ModuleLoadFailure.Type.UNAUTHORIZED,A)),U.requestedModuleIdsQueue_.length=0):A==410?(yfs(U,new Ie.ModuleLoadFailure(Ie.ModuleLoadFailure.Type.OLD_CODE_GONE,A)),S5m(U)):b>=3?(yfs(U,new Ie.ModuleLoadFailure(Ie.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
A,B,m)),S5m(U)):U.loadModules_(U.requestedLoadingModuleIds_,b,A==8001||!1)},
onTimeout:(0,_.Tg)(this.handleLoadTimeout_,this)});(t=Math.pow(E,2)*5E3)?_.Ui.setTimeout(p,t):p()}};
var vzG=function(t,E){E=E.filter(function(x){return t.moduleInfoMap[x].isLoaded()?(_.Ui.setTimeout(function(){return Error("Ad`"+x)},0),!1):!0});
for(var p=[],U=0;U<E.length;U++)p=p.concat(cfs(t,E[U]));eji(p);return!t.batchModeEnabled_&&p.length>1?(E=p.shift(),t.requestedModuleIdsQueue_=p.map(function(x){return[x]}).concat(t.requestedModuleIdsQueue_),[E]):p},cfs=function(t,E){var p=_.Kq.createSet(t.requestedModuleIds_),U=[];
p[E]||U.push(E);E=[E];for(var x=0;x<E.length;x++)for(var A=t.getModuleInfo(E[x]).deps_,m=A.length-1;m>=0;m--){var b=A[m];t.getModuleInfo(b).isLoaded()||p[b]||(U.push(b),E.push(b))}U.reverse();eji(U);return U};
Cm.prototype.JSC$11332_setLoaded=function(){if(this.JSC$11337_currentlyLoadingModule_){var t=this.JSC$11337_currentlyLoadingModule_.getId(),E=[];if(this.JSC$11337_extraEdges_[t]){for(var p=_.M(Object.keys(this.JSC$11337_extraEdges_[t])),U=p.next();!U.done;U=p.next()){U=U.value;var x=this.getModuleInfo(U);x&&!x.isLoaded()&&(this.removeExtraEdge(t,U),E.push(U))}this.loadMultiple(E)}this.isDisposed()||((E=this.moduleInfoMap[t].onLoad((0,_.Tg)(this.getModuleContext,this)))&&E.length&&ozo(this,new Ie.ModuleLoadFailure(Ie.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,E[0])),_.NK(this.userInitiatedLoadingModuleIds_,t),_.NK(this.loadingModuleIds_,t),this.loadingModuleIds_.length===0&&S5m(this),this.lastInitialModuleId_&&t==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),jx(this),this.JSC$11337_currentlyLoadingModule_=null)}};
Cm.prototype.isModuleLoading=function(t){if(_.zt(this.loadingModuleIds_,t))return!0;for(var E=0;E<this.requestedModuleIdsQueue_.length;E++)if(_.zt(this.requestedModuleIdsQueue_[E],t))return!0;return!1};
Cm.prototype.load=function(t,E){return $J3(this,[t],E)[t]};
Cm.prototype.loadMultiple=function(t){return $J3(this,t)};
var KDT=function(t,E){_.zt(t.userInitiatedLoadingModuleIds_,E)||t.userInitiatedLoadingModuleIds_.push(E)};
Cm.prototype.beforeLoadModuleCode=function(t){var E=this;this.JSC$11337_currentlyLoadingModule_&&this.JSC$11337_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11332_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[t]&&tU4(this,this.moduleInfoMap[t].deps_||[],function(p){p.module_=new fm;_.NK(E.loadingModuleIds_,p.getId())},function(p){return!p.isLoaded()});
this.JSC$11337_currentlyLoadingModule_=this.getModuleInfo(t)};
Cm.prototype.registerInitializationCallback=function(t){this.JSC$11337_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new Bi([],"synthetic_module_overhead"),this.JSC$11337_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);wT(this.JSC$11337_currentlyLoadingModule_.earlyOnloadCallbacks_,t)};
Cm.prototype.handleLoadTimeout_=function(){yfs(this,new Ie.ModuleLoadFailure(Ie.ModuleLoadFailure.Type.TIMEOUT));S5m(this)};
var yfs=function(t,E){t.requestedLoadingModuleIds_.length>1?t.requestedModuleIdsQueue_=t.requestedLoadingModuleIds_.map(function(p){return[p]}).concat(t.requestedModuleIdsQueue_):ozo(t,E)},ozo=function(t,E){var p=t.requestedLoadingModuleIds_;
t.loadingModuleIds_.length=0;for(var U=[],x=0;x<t.requestedModuleIdsQueue_.length;x++){var A=t.requestedModuleIdsQueue_[x].filter(function(f){var B=cfs(this,f);return ur(p,function(R){return _.zt(B,R)})},t);
_.P8(U,A)}for(x=0;x<p.length;x++)_.OOO(U,p[x]);for(x=0;x<U.length;x++){for(A=0;A<t.requestedModuleIdsQueue_.length;A++)_.NK(t.requestedModuleIdsQueue_[A],U[x]);_.NK(t.userInitiatedLoadingModuleIds_,U[x])}if(x=t.JSC$11337_callbackMap_.error)for(A=0;A<x.length;A++)for(var m=x[A],b=0;b<U.length;b++)m("error",U[b],E);for(U=0;U<p.length;U++)if(t.moduleInfoMap[p[U]])t.moduleInfoMap[p[U]].onError(E);t.requestedLoadingModuleIds_.length=0;jx(t)},S5m=function(t){for(;t.requestedModuleIdsQueue_.length;){var E=
t.requestedModuleIdsQueue_.shift().filter(function(p){return!this.getModuleInfo(p).isLoaded()},t);
if(E.length>0){t.loadModules_(E);return}}jx(t)};
Cm.prototype.registerCallback=function(t,E){Array.isArray(t)||(t=[t]);for(var p=0;p<t.length;p++){var U=t[p],x=E,A=this.JSC$11337_callbackMap_;A[U]||(A[U]=[]);A[U].push(x)}};
Cm.prototype.executeCallbacks_=function(t){for(var E=this.JSC$11337_callbackMap_[t],p=0;E&&p<E.length;p++)E[p](t)};
var tU4=function(t,E,p,U,x){U=U===void 0?function(){return!0}:U;
x=x===void 0?{}:x;E=_.M(E);for(var A=E.next();!A.done;A=E.next()){A=A.value;var m=t.getModuleInfo(A);!x[A]&&U(m)&&(x[A]=!0,tU4(t,m.deps_||[],p,U,x),p(m))}};
Cm.prototype.dispose=function(){_.Qy(_.Kq.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11337_callbackMap_={};this.isDisposed_=!0};
Cm.prototype.isDisposed=function(){return this.isDisposed_};
_.YO=function(){return new Cm};var ERr=[5E3,2E4],mKo=function(){this.JSC$10330_loader_=null;this.JSC$11345_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11345_queue_=[];this.JSC$11345_extraEdges_=Object.create(null);this.JSC$11345_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.u(mKo,DJr);_.Y=mKo.prototype;_.Y.setAllModuleInfoString=function(){this.JSC$11345_currentlyLoadingModule_&&this.JSC$11345_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11332_setLoaded()};
_.Y.getModuleInfo=function(t){var E=this.JSC$11345_moduleInfoMap_[t];E||(E=new Bi([],t),this.JSC$11345_moduleInfoMap_[t]=E);return E};
_.Y.addExtraEdge=function(t,E){this.getModuleInfo(t).isLoaded()?this.load(E):(this.JSC$11345_extraEdges_[t]||(this.JSC$11345_extraEdges_[t]={}),this.JSC$11345_extraEdges_[t][E]=!0)};
_.Y.removeExtraEdge=function(t,E){if(this.JSC$11345_extraEdges_[t]){delete this.JSC$11345_extraEdges_[t][E];for(var p in this.JSC$11345_extraEdges_[t])return;delete this.JSC$11345_extraEdges_[t]}};
_.Y.isModuleLoading=function(t){return!!this.loadingModules_[t]};
_.Y.load=function(t){p3o(this,[t]);return Uls(this,t)};
_.Y.loadMultiple=function(t){var E=this,p=Object.create(null),U=[];t.forEach(function(x){p[x]||(p[x]=Uls(E,x),U.push(x))});
p3o(this,U);return p};
_.Y.beforeLoadModuleCode=function(t){var E;((E=this.JSC$11345_currentlyLoadingModule_)==null?void 0:E.getId())==="synthetic_module_overhead"&&this.JSC$11332_setLoaded();var p,U;xlo(this,(U=(p=this.JSC$11345_moduleInfoMap_[t])==null?void 0:p.deps_)!=null?U:[],function(x){x.module_=new fm},function(x){return!x.isLoaded()});
this.JSC$11345_currentlyLoadingModule_=this.getModuleInfo(t)};
_.Y.JSC$11332_setLoaded=function(){if(this.JSC$11345_currentlyLoadingModule_){var t=this.JSC$11345_currentlyLoadingModule_.getId(),E=[];if(this.JSC$11345_extraEdges_[t]){for(var p=_.M(Object.keys(this.JSC$11345_extraEdges_[t])),U=p.next();!U.done;U=p.next())U=U.value,this.getModuleInfo(U).isLoaded()||(this.removeExtraEdge(t,U),E.push(U));this.loadMultiple(E)}this.JSC$11345_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11345_currentlyLoadingModule_=null;(!this.isModuleLoading(t)&&/^sy[0-9a-z]{0,4}$/.test(t)||t==="synthetic_module_overhead")&&delete this.JSC$11345_moduleInfoMap_[t];this.unsetModulesAsLoading(t)}};
_.Y.registerInitializationCallback=function(t){this.JSC$11345_currentlyLoadingModule_||(this.JSC$11345_moduleInfoMap_.synthetic_module_overhead=new Bi([],"synthetic_module_overhead"),this.JSC$11345_currentlyLoadingModule_=this.JSC$11345_moduleInfoMap_.synthetic_module_overhead);wT(this.JSC$11345_currentlyLoadingModule_.earlyOnloadCallbacks_,t)};
_.Y.setModulesAsLoading=function(){var t=this;_.t9.apply(0,arguments).forEach(function(E){t.loadingModules_[E]=!0})};
_.Y.unsetModulesAsLoading=function(){var t=this;_.t9.apply(0,arguments).forEach(function(E){delete t.loadingModules_[E]})};
var Uls=function(t,E){return new _.PE(function(p,U){var x=t.getModuleInfo(E);x.isLoaded()?p(null):(x.registerCallback(function(){p(null)}),JfX(x,function(A){var m="Error loading "+E+": "+A;
A instanceof Ie.ModuleLoadFailure&&A.url&&(m=m+", requested url: "+A.url.toString());U(Error(m))}))})},p3o=function(t,E){E=E.filter(function(p){return!t.isModuleLoading(p)&&!t.getModuleInfo(p).isLoaded()});
E.length>0&&(t.setModulesAsLoading.apply(t,_.KB(E)),t.JSC$11345_queue_.push(E),A2Z(t))},A2Z=function(t){for(var E={};t.activeLoads_<Infinity&&t.JSC$11345_queue_.length>0;E={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})E.ids$jscomp$37=t.JSC$11345_queue_.shift().filter(function(p){return!t.getModuleInfo(p).isLoaded()}),E.ids$jscomp$37.length>0&&(t.activeLoads_++,E.finishLoad=function(p){return function(){t.activeLoads_--;
A2Z(t);p.finishLoad=function(){}}}(E),_.Yi(E.ids$jscomp$37.map(function(p){return Uls(t,p)})).then(function(p){return function(){(0,p.finishLoad)()}}(E)),E.attempt$jscomp$6=0,E.load$jscomp$1=function(p){return function(){if(Object.keys(t.JSC$11345_extraEdges_).length>0&&!t.JSC$10330_loader_.supportsExtraEdges)throw Error("zd");
t.JSC$10330_loader_.loadModules(p.ids$jscomp$37,t.JSC$11345_moduleInfoMap_,{extraEdges:t.JSC$11345_extraEdges_,onError:function(U,x){var A=ERr[p.attempt$jscomp$6++];A!==void 0?setTimeout(function(){(0,p.load$jscomp$1)()},A):(t.unsetModulesAsLoading.apply(t,_.KB(p.ids$jscomp$37)),(0,p.finishLoad)(),p.ids$jscomp$37.forEach(function(m){m=t.getModuleInfo(m);
if(!m.isLoaded())m.onError(new Ie.ModuleLoadFailure(Ie.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,U,p.ids$jscomp$37,x))}))}})}}(E),(0,E.load$jscomp$1)())},xlo=function(t,E,p,U,x){U=U===void 0?function(){return!0}:U;
x=x===void 0?{}:x;E=_.M(E);for(var A=E.next();!A.done;A=E.next()){A=A.value;var m=t.getModuleInfo(A);!x[A]&&U(m)&&(x[A]=!0,xlo(t,m.deps_||[],p,U,x),p(m))}};var YU0=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var xM$=Symbol("Cd");window.JSCompiler_renameProperty=function(t){return t};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var MUf=!YU0||HTMLElement.es5Shimmed||_.Ui.Reflect===void 0||_.Ui.customElements===void 0||_.Ui.customElements.polyfillWrapFlushCallback||!1,mlf,QVO=function(){var t=HTMLElement;if(MUf)return t;if(mlf!==void 0)return mlf;var E=_.Ui.Reflect,p=function(){return E.construct(t,[],this.constructor)};
p.prototype=t.prototype;p.prototype.constructor=p;p.es5Shimmed=!0;Object.setPrototypeOf(p,t);return mlf=p},b0G=!1;MUf||b0G||(b0G=!0,_.Ui.HTMLElement=QVO());/*

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 brj=/(url\()([^)]*)(\))/g,Mc0=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,mMD,GQ;var Co=!window.ShadyDOM||!window.ShadyDOM.inUse,i0X=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),qUG=!window.customElements.polyfillWrapFlushCallback,H03;if(H03=Co&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var fNm=new CSSStyleSheet;fNm.replaceSync("");var Bz3=document.createElement("div");Bz3.attachShadow({mode:"open"});Bz3.shadowRoot.adoptedStyleSheets=[fNm];H03=Bz3.shadowRoot.adoptedStyleSheets[0]===fNm}catch(t){H03=!1}
var w3f=H03,R9s=window.Polymer&&window.Polymer.rootPath||qQ_(document.baseURI||window.location.href),SJ=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Cfl=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,dk=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,VUr=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,QO=window.Polymer&&window.Polymer.legacyOptimizations||!1,kn=window.Polymer&&window.Polymer.legacyWarnings||!1,QGp=window.Polymer&&window.Polymer.syncInitialRender||
!1,ER=window.Polymer&&window.Polymer.legacyUndefined||!1,Cc4=window.Polymer&&window.Polymer.orderedComputed||!1,rT=window.Polymer&&window.Polymer.removeNestedTemplates||!1,kb=window.Polymer&&window.Polymer.fastDomIf||!1,dT=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,jGp=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,r2G=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var uP={},kIs={},UR=function(){return HTMLElement.apply(this,arguments)||this};
_.u(UR,HTMLElement);UR.import=function(t,E){return t?(t=uP[t]||kIs[t.toLowerCase()])&&E?t.querySelector(E):t:null};
UR.prototype.attributeChangedCallback=function(t,E,p){E!==p&&this.register()};
UR.prototype.register=function(t){if(t=t||this.id){if(dk&&(uP[t]||kIs[t.toLowerCase()])!==void 0)throw uP[t]=kIs[t.toLowerCase()]=null,Error("Dd`"+t);this.id=t;uP[t]=kIs[t.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.aE.Object.defineProperties(UR.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;t=_.nW(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=qQ_(t)}return this.__assetpath}}});
_.aE.Object.defineProperties(UR,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
UR["import"]=UR.import;UR.prototype.modules=uP;customElements.define("dom-module",UR);var dlp=0,f2_=0,NW=[],uMp=0,Hr_=!1,J2r=document.createTextNode(""),INr,RE;(new window.MutationObserver(BI_)).observe(J2r,{characterData:!0});_.JB={after:function(t){return{run:function(E){return window.setTimeout(E,t)},
cancel:function(E){window.clearTimeout(E)}}},
run:function(t,E){return window.setTimeout(t,E)},
cancel:function(t){window.clearTimeout(t)}};
_.yl={run:function(t){return window.requestAnimationFrame(t)},
cancel:function(t){window.cancelAnimationFrame(t)}};
INr={run:function(t){return window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16)},
cancel:function(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}};
RE={run:function(t){Hr_||(Hr_=!0,J2r.textContent=uMp++);NW.push(t);return dlp++},
cancel:function(t){var E=t-f2_;if(E>=0){if(!NW[E])throw Error("Ed`"+t);NW[E]=null}}};var gRX=0,IJ=function(t){var E=t.__mixinApplications;E||(E=new WeakMap,t.__mixinApplications=E);var p=gRX++;return function(U){var x=U.__mixinSet;if(x&&x[p])return U;var A=E,m=A.get(U);m||(m=t(U),A.set(U,m),U=Object.create(m.__mixinSet||x||null),U[p]=!0,m.__mixinSet=U);return m}};_.yB=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(t){return ShadyDOM.patch(t)}:function(t){return t};var Z0r=IJ(function(t){var E=function(){var p=t.call(this)||this;p.__dataEnabled=!1;p.__dataReady=!1;p.__dataInvalid=!1;p.__data={};p.__dataPending=null;p.__dataOld=null;p.__dataInstanceProps=null;p.__dataCounter=0;p.__serializing=!1;p._initializeProperties();return p};
_.u(E,t);E.createProperties=function(p){var U=this.prototype,x;for(x in p)x in U||U._createPropertyAccessor(x)};
E.attributeNameForProperty=function(p){return p.toLowerCase()};
E.typeForProperty=function(){};
E.prototype._createPropertyAccessor=function(p,U){this._addPropertyToAttributeMap(p);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[p]||(this.__dataHasAccessor[p]=!0,this._definePropertyAccessor(p,U))};
E.prototype._addPropertyToAttributeMap=function(p){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var U=this.__dataAttributes[p];U||(U=this.constructor.attributeNameForProperty(p),this.__dataAttributes[U]=p);return U};
E.prototype._definePropertyAccessor=function(p,U){Object.defineProperty(this,p,{get:function(){return this.__data[p]},
set:U?function(){}:function(x){this._setPendingProperty(p,x,!0)&&this._invalidateProperties()}})};
E.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
E.prototype._initializeProperties=function(){for(var p in this.__dataHasAccessor)this.hasOwnProperty(p)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[p]=this[p],delete this[p])};
E.prototype._initializeInstanceProperties=function(p){Object.assign(this,p)};
E.prototype._setProperty=function(p,U){this._setPendingProperty(p,U)&&this._invalidateProperties()};
E.prototype._getProperty=function(p){return this.__data[p]};
E.prototype._setPendingProperty=function(p,U){var x=this.__data[p],A=this._shouldPropertyChange(p,U,x);A&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||p in this.__dataOld||(this.__dataOld[p]=x),this.__data[p]=U,this.__dataPending[p]=U);return A};
E.prototype._isPropertyPending=function(p){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(p))};
E.prototype._invalidateProperties=function(){var p=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,RE.run(function(){p.__dataInvalid&&(p.__dataInvalid=!1,p._flushProperties())}))};
E.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
E.prototype._flushProperties=function(){this.__dataCounter++;var p=this.__data,U=this.__dataPending,x=this.__dataOld;this._shouldPropertiesChange(p,U,x)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(p,U,x));this.__dataCounter--};
E.prototype._shouldPropertiesChange=function(p,U){return!!U};
E.prototype._propertiesChanged=function(){};
E.prototype._shouldPropertyChange=function(p,U,x){return x!==U&&(x===x||U===U)};
E.prototype.attributeChangedCallback=function(p,U,x,A){U!==x&&this._attributeToProperty(p,x);t.prototype.attributeChangedCallback&&t.prototype.attributeChangedCallback.call(this,p,U,x,A)};
E.prototype._attributeToProperty=function(p,U,x){if(!this.__serializing){var A=this.__dataAttributes;p=A&&A[p]||p;this[p]=this._deserializeValue(U,x||this.constructor.typeForProperty(p))}};
E.prototype._propertyToAttribute=function(p,U,x){this.__serializing=!0;x=arguments.length<3?this[p]:x;this._valueToNodeAttribute(this,x,U||this.constructor.attributeNameForProperty(p));this.__serializing=!1};
E.prototype._valueToNodeAttribute=function(p,U,x){U=this._serializeValue(U);if(x==="class"||x==="name"||x==="slot")p=(0,_.yB)(p);U===void 0?p.removeAttribute(x):p.setAttribute(x,U===""&&window.trustedTypes?window.trustedTypes.emptyScript:U)};
E.prototype._serializeValue=function(p){switch(typeof p){case "boolean":return p?"":void 0;default:return p!=null?p.toString():void 0}};
E.prototype._deserializeValue=function(p,U){switch(U){case Boolean:return p!==null;case Number:return Number(p);default:return p}};
return E});var O03=0,wS$=[];var X3r=IJ(function(t){function E(A){A=Object.getPrototypeOf(A);return A.prototype instanceof x?A:null}
function p(A){if(!A.hasOwnProperty("__ownProperties")){var m=null;if(A.hasOwnProperty("properties")){var b=A.properties;if(b){m={};for(var f in b){var B=b[f];m[f]=typeof B==="function"?{type:B}:B}}}A.__ownProperties=m}return A.__ownProperties}
var U=Z0r(t),x=function(){return U.apply(this,arguments)||this};
_.u(x,U);x.finalize=function(){if(!this.hasOwnProperty("__finalized")){var A=E(this);A&&A.finalize();this.__finalized=!0;this._finalizeClass()}};
x._finalizeClass=function(){var A=p(this);A&&this.createProperties(A)};
x.typeForProperty=function(A){return(A=this._properties[A])&&A.type};
x.prototype._initializeProperties=function(){O03++;this.constructor.finalize();U.prototype._initializeProperties.call(this)};
x.prototype.connectedCallback=function(){U.prototype.connectedCallback&&U.prototype.connectedCallback.call(this);this._enableProperties()};
x.prototype.disconnectedCallback=function(){U.prototype.disconnectedCallback&&U.prototype.disconnectedCallback.call(this)};
_.aE.Object.defineProperties(x,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var A=this;if(!this.hasOwnProperty("__observedAttributes")){RQ$(this.prototype);var m=this._properties;this.__observedAttributes=m?Object.keys(m).map(function(b){return A.prototype._addPropertyToAttributeMap(b)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var A=E(this);this.__properties=Object.assign({},A&&A._properties,p(this))}return this.__properties}}});
return x});var Vcl={},Q7L=/-[a-z]/g,CmK=/([A-Z])/g;for(var h9m={},aNp=HTMLElement.prototype;aNp;){for(var e9s=Object.getOwnPropertyNames(aNp),FeG=0;FeG<e9s.length;FeG++)h9m[e9s[FeG]]=!0;aNp=Object.getPrototypeOf(aNp)}var z94=window.trustedTypes?function(t){return trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t)}:function(){return!1},lNG=IJ(function(t){var E=Z0r(t);
t=function(){return E.apply(this,arguments)||this};
_.u(t,E);t.createPropertiesForAttributes=function(){for(var p=this.observedAttributes,U=0;U<p.length;U++)this.prototype._createPropertyAccessor(DD(p[U]))};
t.attributeNameForProperty=function(p){return s_(p)};
t.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);E.prototype._initializeProperties.call(this)};
t.prototype._initializeProtoProperties=function(p){for(var U in p)this._setProperty(U,p[U])};
t.prototype._ensureAttribute=function(p,U){this.hasAttribute(p)||this._valueToNodeAttribute(this,U,p)};
t.prototype._serializeValue=function(p){switch(typeof p){case "object":if(p instanceof Date)return p.toString();if(p){if(z94(p))return p;try{return JSON.stringify(p)}catch(U){return""}}default:return E.prototype._serializeValue.call(this,p)}};
t.prototype._deserializeValue=function(p,U){switch(U){case Object:try{var x=JSON.parse(p)}catch(A){x=p}break;case Array:try{x=JSON.parse(p)}catch(A){x=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+p)}break;case Date:x=isNaN(p)?String(p):Number(p);x=new Date(x);break;default:x=E.prototype._deserializeValue.call(this,p,U)}return x};
t.prototype._definePropertyAccessor=function(p,U){if(!h9m[p]){var x=this[p];x!==void 0&&(this.__data?this._setPendingProperty(p,x):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[p]=x))}E.prototype._definePropertyAccessor.call(this,p,U)};
t.prototype._hasAccessor=function(p){return this.__dataHasAccessor&&this.__dataHasAccessor[p]};
t.prototype._isPropertyPending=function(p){return!!(this.__dataPending&&p in this.__dataPending)};
return t});var GIs={"dom-if":!0,"dom-repeat":!0},nRs=!1,NzZ=!1,DlW=function(){var t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(E){return E}});
return function(E,p,U){p=p.getAttribute(U);t&&U.startsWith("on-")?E.setAttribute(U,t.createScript(p,U)):E.setAttribute(U,p)}}(),sG3=IJ(function(t){var E=function(){return t.apply(this,arguments)||this};
_.u(E,t);E._parseTemplate=function(p,U){if(!p._templateInfo){var x=p._templateInfo={};x.nodeInfoList=[];x.nestedTemplate=!!U;x.stripWhiteSpace=U&&U.stripWhiteSpace||p.hasAttribute&&p.hasAttribute("strip-whitespace");this._parseTemplateContent(p,x,{parent:null})}return p._templateInfo};
E._parseTemplateContent=function(p,U,x){return this._parseTemplateNode(p.content,U,x)};
E._parseTemplateNode=function(p,U,x){var A=!1;p.localName!="template"||p.hasAttribute("preserve-content")?p.localName==="slot"&&(U.hasInsertionPoint=!0):A=this._parseTemplateNestedTemplate(p,U,x)||A;if(!nRs){nRs=!0;var m=document.createElement("textarea");m.placeholder="a";NzZ=m.placeholder===m.textContent}NzZ&&p.localName==="textarea"&&p.placeholder&&p.placeholder===p.textContent&&(p.textContent=null);p.firstChild&&this._parseTemplateChildNodes(p,U,x);p.hasAttributes&&p.hasAttributes()&&(A=this._parseTemplateNodeAttributes(p,
U,x)||A);return A||x.noted};
E._parseTemplateChildNodes=function(p,U,x){if(p.localName!=="script"&&p.localName!=="style")for(var A=p.firstChild,m=0,b;A;A=b){if(A.localName=="template"){var f=A.getAttribute("is");if(f&&GIs[f])for(b=A,b.removeAttribute("is"),A=b.ownerDocument.createElement(f),b.parentNode.replaceChild(A,b),A.appendChild(b);b.attributes.length;)f=b.attributes[0].name,DlW(A,b,f),b.removeAttribute(f)}b=A.nextSibling;if(A.nodeType===Node.TEXT_NODE){for(f=b;f&&f.nodeType===Node.TEXT_NODE;)A.textContent+=f.textContent,
b=f.nextSibling,p.removeChild(f),f=b;if(U.stripWhiteSpace&&!A.textContent.trim()){p.removeChild(A);continue}}f={parentIndex:m,parentInfo:x};this._parseTemplateNode(A,U,f)&&(f.infoIndex=U.nodeInfoList.push(f)-1);A.parentNode&&m++}};
E._parseTemplateNestedTemplate=function(p,U,x){U=this._parseTemplate(p,U);(U.content=p.content.ownerDocument.createDocumentFragment()).appendChild(p.content);x.templateInfo=U;return!0};
E._parseTemplateNodeAttributes=function(p,U,x){for(var A=!1,m=Array.from(p.attributes),b=m.length-1,f;f=m[b];b--)A=this._parseTemplateNodeAttribute(p,U,x,f.name,f.value)||A;return A};
E._parseTemplateNodeAttribute=function(p,U,x,A,m){return A.slice(0,3)==="on-"?(p.removeAttribute(A),x.events=x.events||[],x.events.push({name:A.slice(3),value:m}),!0):A==="id"?(x.id=m,!0):!1};
E._contentForTemplate=function(p){var U=p._templateInfo;return U&&U.content||p.content};
E.prototype._stampTemplate=function(p,U){p&&!p.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(p);U=U||this.constructor._parseTemplate(p);var x=U.nodeInfoList;p=document.importNode(U.content||p.content,!0);p.__noInsertionPoint=!U.hasInsertionPoint;var A=p.nodeList=Array(x.length);p.$={};for(var m=0,b=x.length,f=void 0;m<b&&(f=x[m]);m++){var B=A[m]=j7_(p,f);f.id&&(p.$[f.id]=B);var R=B,V=f,Q=U;V.templateInfo&&(R._templateInfo=V.templateInfo,R._parentTemplateInfo=
Q);if(f.events&&f.events.length)for(R=0,V=f.events,Q=void 0;R<V.length&&(Q=V[R]);R++)this._addMethodEventListenerToNode(B,Q.name,Q.value,this)}return p};
E.prototype._addMethodEventListenerToNode=function(p,U,x,A){x=rNY(A||p,x);this._addEventListenerToNode(p,U,x);return x};
E.prototype._addEventListenerToNode=function(p,U,x){p.addEventListener(U,x)};
E.prototype._removeEventListenerFromNode=function(p,U,x){p.removeEventListener(U,x)};
return E});var KW=0,tA=[],LeW={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},PcZ=/[A-Z]/,TzZ=function(t,E,p,U,x){var A=x?PX(t):t;if(E=E[A])for(A=0;A<E.length;A++){var m=E[A];if(m.info.lastRun!==KW&&(!x||gu0(t,m.trigger))){m.info.lastRun=KW;m=m.info;for(var b=p,f=U,B=0,R=b.length-1,V=-1;B<=R;){var Q=B+R>>1,C=f.get(b[Q].methodInfo)-f.get(m.methodInfo);if(C<0)B=Q+1;else if(C>0)R=Q-1;else{V=Q;break}}V<
0&&(V=R+1);b.splice(V,0,m)}}},LFK=[],oRs=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"),ZG=IJ(function(t){var E=sG3(lNG(t));
t=function(){var p=E.call(this)||this;p.__isPropertyEffectsClient=!0;return p};
_.u(t,E);t.prototype._initializeProperties=function(){E.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};
t.prototype._registerHost=function(){if(gT.length){var p=gT[gT.length-1];p._enqueueClient(this);this.__dataHost=p}};
t.prototype._initializeProtoProperties=function(p){this.__data=Object.create(p);this.__dataPending=Object.create(p);this.__dataOld={}};
t.prototype._initializeInstanceProperties=function(p){var U=this.__readOnly,x;for(x in p)U&&U[x]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[x]=this.__dataPending[x]=p[x])};
t.prototype._addPropertyEffect=function(p,U,x){this._createPropertyAccessor(p,U=="__readOnly");var A=I28(this,U,!0)[p];A||(A=this[U][p]=[]);A.push(x)};
t.prototype._removePropertyEffect=function(p,U,x){p=I28(this,U,!0)[p];x=p.indexOf(x);x>=0&&p.splice(x,1)};
t.prototype._hasPropertyEffect=function(p,U){U=this[U];return!(!U||!U[p])};
t.prototype._hasReadOnlyEffect=function(p){return this._hasPropertyEffect(p,"__readOnly")};
t.prototype._hasNotifyEffect=function(p){return this._hasPropertyEffect(p,"__notifyEffects")};
t.prototype._hasReflectEffect=function(p){return this._hasPropertyEffect(p,"__reflectEffects")};
t.prototype._hasComputedEffect=function(p){return this._hasPropertyEffect(p,"__computeEffects")};
t.prototype._setPendingPropertyOrPath=function(p,U,x,A){if(A||PX(Array.isArray(p)?p[0]:p)!==p){if(!A&&(A=$X(this,p),p=JNY(this,p,U),!p||!E.prototype._shouldPropertyChange.call(this,p,U,A)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(p,U,x)){if(x=this.__dataLinkedPaths)for(var m in x)A=x[m],TQ(m,p)?(A=oz(m,A,p),this._setPendingPropertyOrPath(A,U,!0,!0)):TQ(A,p)&&(A=oz(A,m,p),this._setPendingPropertyOrPath(A,U,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[p])return this._setPendingProperty(p,
U,x);this[p]=U}return!1};
t.prototype._setUnmanagedPropertyToNode=function(p,U,x){if(x!==p[U]||typeof x=="object")U==="className"&&(p=(0,_.yB)(p)),p[U]=x};
t.prototype._setPendingProperty=function(p,U,x){var A=this.__dataHasPaths&&LW(p);if(this._shouldPropertyChange(p,U,(A?this.__dataTemp:this.__data)[p])){this.__dataPending||(this.__dataPending={},this.__dataOld={});p in this.__dataOld||(this.__dataOld[p]=this.__data[p]);A?this.__dataTemp[p]=U:this.__data[p]=U;this.__dataPending[p]=U;if(A||this.__notifyEffects&&this.__notifyEffects[p])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[p]=x;return!0}return!1};
t.prototype._setProperty=function(p,U){this._setPendingProperty(p,U,!0)&&this._invalidateProperties()};
t.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
t.prototype._enqueueClient=function(p){this.__dataPendingClients=this.__dataPendingClients||[];p!==this&&this.__dataPendingClients.push(p)};
t.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
t.prototype.__enableOrFlushClients=function(){var p=this.__dataPendingClients;if(p){this.__dataPendingClients=null;for(var U=0;U<p.length;U++){var x=p[U];x.__dataEnabled?x.__dataPending&&x._flushProperties():x._enableProperties()}}};
t.prototype._readyClients=function(){this.__enableOrFlushClients()};
t.prototype.setProperties=function(p,U){for(var x in p)!U&&this.__readOnly&&this.__readOnly[x]||this._setPendingPropertyOrPath(x,p[x],!0);this._invalidateProperties()};
t.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
t.prototype._propertiesChanged=function(p,U,x){p=this.__dataHasPaths;this.__dataHasPaths=!1;var A;if(A=this.__computeEffects)if(Cc4){KW++;var m=eQ_(this),b=[],f;for(f in U)TzZ(f,A,b,m,p);for(;f=b.shift();)zQJ(this,"",U,x,f)&&TzZ(f.methodInfo,A,b,m,p);Object.assign(x,this.__dataOld);Object.assign(U,this.__dataPending);this.__dataPending=null}else for(m=U;vX(this,A,m,x,p);)Object.assign(x,this.__dataOld),Object.assign(U,this.__dataPending),m=this.__dataPending,this.__dataPending=null;A=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(U,x,p);this._flushClients();vX(this,this.__reflectEffects,U,x,p);vX(this,this.__observeEffects,U,x,p);if(A){m=this.__notifyEffects;b=KW++;for(var B in A)if(A[B]){if(f=m){var R=m;f=b;var V=B,Q=U,C=x,d=p,I=!1,O=d?PX(V):V;if(R=R[O]){O=0;for(var a=R.length,F=void 0;O<a&&(F=R[O]);O++)F.info&&F.info.lastRun===f||d&&!gu0(V,F.trigger)||(F.info&&(F.info.lastRun=f),F.fn(this,V,Q,C,F.info,d,void 0),I=!0)}f=I}if(f)var L=!0;else{if(f=p)f=B,V=U,Q=PX(f),Q!==
f?(Q=s_(Q)+"-changed",OrY(this,Q,V[f],f),f=!0):f=!1;f&&(L=!0)}}var D;L&&(D=this.__dataHost)&&D._invalidateProperties&&D._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
t.prototype._propagatePropertyChanges=function(p,U,x){this.__propagateEffects&&vX(this,this.__propagateEffects,p,U,x);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,p,U,x)};
t.prototype._runEffectsForTemplate=function(p,U,x,A){var m=this,b=function(f,B){vX(m,p.propertyEffects,f,x,B,p.nodeList);for(var R=p.firstChild;R;R=R.nextSibling)m._runEffectsForTemplate(R,f,x,B)};
p.runEffects?p.runEffects(b,U,A):b(U,A)};
t.prototype.linkPaths=function(p,U){p=WX(p);U=WX(U);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[p]=U};
t.prototype.unlinkPaths=function(p){p=WX(p);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[p]};
t.prototype.notifySplices=function(p,U){var x={path:""};p=$X(this,p,x);WFJ(this,p,x.path,U)};
t.prototype.get=function(p,U){return $X(U||this,p)};
t.prototype.set=function(p,U,x){x?JNY(x,p,U):this.__readOnly&&this.__readOnly[p]||this._setPendingPropertyOrPath(p,U,!0)&&this._invalidateProperties()};
t.prototype.push=function(p){var U=_.t9.apply(1,arguments),x={path:""},A=$X(this,p,x),m=A.length,b=A.push.apply(A,_.KB(U));U.length&&po(this,A,x.path,m,U.length,[]);return b};
t.prototype.pop=function(p){var U={path:""};p=$X(this,p,U);var x=!!p.length,A=p.pop();x&&po(this,p,U.path,p.length,0,[A]);return A};
t.prototype.splice=function(p,U,x){var A=_.t9.apply(3,arguments),m={path:""},b=$X(this,p,m);U<0?U=b.length-Math.floor(-U):U&&(U=Math.floor(U));var f=arguments.length===2?b.splice(U):b.splice.apply(b,[U,x].concat(_.KB(A)));(A.length||f.length)&&po(this,b,m.path,U,A.length,f);return f};
t.prototype.shift=function(p){var U={path:""};p=$X(this,p,U);var x=!!p.length,A=p.shift();x&&po(this,p,U.path,0,0,[A]);return A};
t.prototype.unshift=function(p){var U=_.t9.apply(1,arguments),x={path:""},A=$X(this,p,x),m=A.unshift.apply(A,_.KB(U));U.length&&po(this,A,x.path,0,U.length,[]);return m};
t.prototype.notifyPath=function(p,U){if(arguments.length==1){var x={path:""};U=$X(this,p,x);x=x.path}else x=Array.isArray(p)?WX(p):p;this._setPendingPropertyOrPath(x,U,!0,!0)&&this._invalidateProperties()};
t.prototype._createReadOnlyProperty=function(p,U){this._addPropertyEffect(p,"__readOnly");U&&(this["_set"+(p[0].toUpperCase()+p.substring(1))]=function(x){this._setProperty(p,x)})};
t.prototype._createPropertyObserver=function(p,U,x){var A={property:p,method:U,dynamicFn:!!x};this._addPropertyEffect(p,"__observeEffects",{fn:ZrJ,info:A,trigger:{name:p}});x&&this._addPropertyEffect(U,"__observeEffects",{fn:ZrJ,info:A,trigger:{name:U}})};
t.prototype._createMethodObserver=function(p,U){var x=TIO(p);if(!x)throw Error("Fd`"+p);DME(this,x,"__observeEffects",FFK,null,U)};
t.prototype._createNotifyingProperty=function(p){this._addPropertyEffect(p,"__notifyEffects",{fn:XSO,info:{eventName:s_(p)+"-changed",property:p}})};
t.prototype._createReflectedProperty=function(p){var U=this.constructor.attributeNameForProperty(p);U[0]==="-"?console.warn("Property "+p+" cannot be reflected to attribute "+U+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(p,"__reflectEffects",{fn:hQY,info:{attrName:U}})};
t.prototype._createComputedProperty=function(p,U,x){var A=TIO(U);if(!A)throw Error("Gd`"+U);U=DME(this,A,"__computeEffects",zQJ,p,x);I28(this,"__computeInfo")[p]=U};
t.prototype._marshalArgs=function(p,U,x){for(var A=this.__data,m=[],b=0,f=p.length;b<f;b++){var B=p[b],R=B.name,V=B.structured,Q=B.wildcard,C=B.value;B.literal||(Q?(B=TQ(R,U),V=ouL(A,x,B?U:R),C={path:B?U:R,value:V,base:B?$X(A,R):V}):C=V?ouL(A,x,R):A[R]);if(ER&&!this._overrideLegacyUndefined&&C===void 0&&p.length>1)return tA;m[b]=C}return m};
t.addPropertyEffect=function(p,U,x){this.prototype._addPropertyEffect(p,U,x)};
t.createPropertyObserver=function(p,U,x){this.prototype._createPropertyObserver(p,U,x)};
t.createMethodObserver=function(p,U){this.prototype._createMethodObserver(p,U)};
t.createNotifyingProperty=function(p){this.prototype._createNotifyingProperty(p)};
t.createReadOnlyProperty=function(p,U){this.prototype._createReadOnlyProperty(p,U)};
t.createReflectedProperty=function(p){this.prototype._createReflectedProperty(p)};
t.createComputedProperty=function(p,U,x){this.prototype._createComputedProperty(p,U,x)};
t.bindTemplate=function(p){return this.prototype._bindTemplate(p)};
t.prototype._bindTemplate=function(p,U){var x=this.constructor._parseTemplate(p),A=this.__preBoundTemplateInfo==x;if(!A)for(var m in x.propertyEffects)this._createPropertyAccessor(m);U?(x=Object.create(x),x.wasPreBound=A,this.__templateInfo?(p=p._parentTemplateInfo||this.__templateInfo,U=p.lastChild,x.parent=p,p.lastChild=x,(x.previousSibling=U)?U.nextSibling=x:p.firstChild=x):this.__templateInfo=x):this.__preBoundTemplateInfo=x;return x};
t._addTemplatePropertyEffect=function(p,U,x){(p.hostProps=p.hostProps||{})[U]=!0;p=p.propertyEffects=p.propertyEffects||{};(p[U]=p[U]||[]).push(x)};
t.prototype._stampTemplate=function(p,U){U=U||this._bindTemplate(p,!0);gT.push(this);p=E.prototype._stampTemplate.call(this,p,U);gT.pop();U.nodeList=p.nodeList;if(!U.wasPreBound)for(var x=U.childNodes=[],A=p.firstChild;A;A=A.nextSibling)x.push(A);p.templateInfo=U;x=U.nodeList;A=U.nodeInfoList;if(A.length)for(var m=0;m<A.length;m++){var b=x[m],f=A[m].bindings;if(f)for(var B=0;B<f.length;B++){var R=f[B],V=b,Q=R;if(Q.isCompound){for(var C=V.__dataCompoundStorage||(V.__dataCompoundStorage={}),d=Q.parts,
I=Array(d.length),O=0;O<d.length;O++)I[O]=d[O].literal;d=Q.target;C[d]=I;Q.literal&&Q.kind=="property"&&(d==="className"&&(V=(0,_.yB)(V)),V[d]=Q.literal)}NI_(b,this,R)}b.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(U,this.__data,null,!1),this._flushClients());return p};
t.prototype._removeBoundDom=function(p){p=p.templateInfo;var U=p.previousSibling,x=p.nextSibling,A=p.parent;U?U.nextSibling=x:A&&(A.firstChild=x);x?x.previousSibling=U:A&&(A.lastChild=U);p.nextSibling=p.previousSibling=null;p=p.childNodes;for(U=0;U<p.length;U++)x=p[U],(0,_.yB)((0,_.yB)(x).parentNode).removeChild(x)};
t._parseTemplateNode=function(p,U,x){var A=E._parseTemplateNode.call(this,p,U,x);if(p.nodeType===Node.TEXT_NODE){var m=this._parseBindings(p.textContent,U);m&&(p.textContent=s7E(m)||" ",nul(this,U,x,"text","textContent",m),A=!0)}return A};
t._parseTemplateNodeAttribute=function(p,U,x,A,m){var b=this._parseBindings(m,U);if(b){m=A;var f="property";PcZ.test(A)?f="attribute":A[A.length-1]=="$"&&(A=A.slice(0,-1),f="attribute");var B=s7E(b);B&&f=="attribute"&&(A=="class"&&p.hasAttribute("class")&&(B+=" "+p.getAttribute(A)),p.setAttribute(A,B));f=="attribute"&&m=="disable-upgrade$"&&p.setAttribute(A,"");p.localName==="input"&&m==="value"&&p.setAttribute(m,"");p.removeAttribute(m);f==="property"&&(A=DD(A));nul(this,U,x,f,A,b,B);return!0}return E._parseTemplateNodeAttribute.call(this,
p,U,x,A,m)};
t._parseTemplateNestedTemplate=function(p,U,x){var A=E._parseTemplateNestedTemplate.call(this,p,U,x),m=p.parentNode,b=x.templateInfo,f=m.localName==="dom-if",B=m.localName==="dom-repeat";rT&&(f||B)&&(m.removeChild(p),x=x.parentInfo,x.templateInfo=b,x.noted=!0,A=!1);p=b.hostProps;if(kb&&f)p&&(U.hostProps=Object.assign(U.hostProps||{},p),rT||(x.parentInfo.noted=!0));else for(var R in p)nul(this,U,x,"property","_host_"+R,[{mode:"{",source:R,dependencies:[R],hostProp:!0}]);return A};
t._parseBindings=function(p,U){for(var x=[],A=0,m;(m=oRs.exec(p))!==null;){m.index>A&&x.push({literal:p.slice(A,m.index)});A=m[1][0];var b=!!m[2];m=m[3].trim();var f=!1,B="",R=-1;A=="{"&&(R=m.indexOf("::"))>0&&(B=m.substring(R+2),m=m.substring(0,R),f=!0);R=TIO(m);var V=[];if(R){var Q=R,C=Q.args;Q=Q.methodName;for(var d=0;d<C.length;d++){var I=C[d];I.literal||V.push(I)}if((C=U.dynamicFns)&&C[Q]||R.static)V.push(Q),R.dynamicFn=!0}else V.push(m);x.push({source:m,mode:A,negate:b,customEvent:f,signature:R,
dependencies:V,event:B});A=oRs.lastIndex}A&&A<p.length&&(p=p.substring(A))&&x.push({literal:p});return x.length?x:null};
t._evaluateBinding=function(p,U,x,A,m,b){p=U.signature?FFK(p,x,A,m,U.signature):x!=U.source?$X(p,U.source):b&&LW(x)?$X(p,x):p.__data[x];U.negate&&(p=!p);return p};
_.aE.Object.defineProperties(t.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return LeW}}});
return t}),gT=[];var WeT=window.ShadyCSS&&window.ShadyCSS.cssBuild,OW=IJ(function(t){function E(U,x,A,m){if(!WeT){for(var b=x.content.querySelectorAll("style"),f=yN$(x),B=SQj(A),R=x.content.firstElementChild,V=0;V<B.length;V++){var Q=B[V];Q.textContent=U._processStyleText(Q.textContent,m);x.content.insertBefore(Q,R)}for(R=B=0;R<f.length;R++)V=f[R],Q=b[B],Q!==V?(V=V.cloneNode(!0),Q.parentNode.insertBefore(V,Q)):B++,V.textContent=U._processStyleText(V.textContent,m)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(x,
A);if(r2G&&WeT&&w3f&&(x=x.content.querySelectorAll("style"))){var C="";Array.from(x).forEach(function(d){C+=d.textContent;d.parentNode.removeChild(d)});
U._styleSheet=new CSSStyleSheet;U._styleSheet.replaceSync(C)}}
var p=X3r(ZG(t));t=function(){return p.call(this)||this};
_.u(t,p);t._finalizeClass=function(){p._finalizeClass.call(this);var U;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(U=this.__ownObservers)&&this.createObservers(U,this._properties);this._prepareTemplate()};
t._prepareTemplate=function(){var U=this.template;U&&(typeof U==="string"?(console.error("template getter must return HTMLTemplateElement"),U=null):QO||(U=U.cloneNode(!0)));this.prototype._template=U};
t.createProperties=function(U){for(var x in U){var A=this.prototype,m=x,b=U[x],f=U;b.computed&&(b.readOnly=!0);b.computed&&(A._hasReadOnlyEffect(m)?console.warn("Cannot redefine computed property '"+m+"'."):A._createComputedProperty(m,b.computed,f));b.readOnly&&!A._hasReadOnlyEffect(m)?A._createReadOnlyProperty(m,!b.computed):b.readOnly===!1&&A._hasReadOnlyEffect(m)&&console.warn("Cannot make readOnly property '"+m+"' non-readOnly.");b.reflectToAttribute&&!A._hasReflectEffect(m)?A._createReflectedProperty(m):
b.reflectToAttribute===!1&&A._hasReflectEffect(m)&&console.warn("Cannot make reflected property '"+m+"' non-reflected.");b.notify&&!A._hasNotifyEffect(m)?A._createNotifyingProperty(m):b.notify===!1&&A._hasNotifyEffect(m)&&console.warn("Cannot make notify property '"+m+"' non-notify.");b.observer&&A._createPropertyObserver(m,b.observer,f[b.observer]);A._addPropertyToAttributeMap(m)}};
t.createObservers=function(U,x){for(var A=this.prototype,m=0;m<U.length;m++)A._createMethodObserver(U[m],x)};
t.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);p.prototype._initializeProperties.call(this);this.rootPath=R9s;this.importPath=this.constructor.importPath;var U=this.constructor;if(!U.hasOwnProperty("__propertyDefaults")){U.__propertyDefaults=null;var x=U._properties,A;for(A in x){var m=x[A];"value"in m&&(U.__propertyDefaults=U.__propertyDefaults||{},U.__propertyDefaults[A]=m)}}if(U=U.__propertyDefaults)for(var b in U)x=U[b],
this._canApplyPropertyDefault(b)&&(x=typeof x.value=="function"?x.value.call(this):x.value,this._hasAccessor(b)?this._setPendingProperty(b,x,!0):this[b]=x)};
t.prototype._canApplyPropertyDefault=function(U){return!this.hasOwnProperty(U)};
t._processStyleText=function(U,x){return ir$(U,x)};
t._finalizeTemplate=function(U){var x=this.prototype._template;if(x&&!x.__polymerFinalized){x.__polymerFinalized=!0;var A=this.importPath;A=A?_.nW(A):"";E(this,x,U,A);this.prototype._bindTemplate(x)}};
t.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);p.prototype.connectedCallback.call(this)};
t.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);p.prototype.ready.call(this)};
t.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));p.prototype._readyClients.call(this)};
t.prototype._attachDom=function(U){var x=(0,_.yB)(this);if(x.attachShadow)return U?(x.shadowRoot||(x.attachShadow({mode:"open",shadyUpgradeFragment:U}),x.shadowRoot.appendChild(U),this.constructor._styleSheet&&(x.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),QGp&&window.ShadyDOM&&window.ShadyDOM.flushInitial(x.shadowRoot),x.shadowRoot):null;throw Error("Id");};
t.prototype.updateStyles=function(U){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,U)};
t.prototype.resolveUrl=function(U,x){!x&&this.importPath&&(x=_.nW(this.importPath));return _.nW(U,x)};
t._parseTemplateContent=function(U,x,A){x.dynamicFns=x.dynamicFns||this._properties;return p._parseTemplateContent.call(this,U,x,A)};
t._addTemplatePropertyEffect=function(U,x,A){!kn||x in this._properties||A.info.part.signature&&A.info.part.signature.static||A.info.part.hostProp||U.nestedTemplate||console.warn("Property '"+x+"' used in template but not declared in 'properties'; attribute will not be observed.");return p._addTemplatePropertyEffect.call(this,U,x,A)};
_.aE.Object.defineProperties(t,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var U=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof U==="function"&&(U=U());if(U===void 0){if(U=this.hasOwnProperty("is")){U=this.is;var x=null;if(U&&(!dk||VUr)&&(x=UR.import(U,"template"),dk&&!x))throw Error("Hd`"+U);U=x}U=U||Object.getPrototypeOf(this.prototype).constructor.template}this._template=U}return this._template},
set:function(U){this._template=U}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var U=this.importMeta;U?this._importPath=qQ_(U.url):this._importPath=(U=UR.import(this.is))&&U.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return t});var $l0=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(t){return t}}),Ay8=function(t,E){Kes(t,E);
this.value=E.reduce(function(p,U,x){return p+Ya$(U)+t[x+1]},t[0]).toString()},Kes;
Ay8.prototype.toString=function(){return this.value};
_.vRr=function(t){var E=_.t9.apply(1,arguments);Kes(t,E);var p=document.createElement("template");E=E.reduce(function(U,x,A){if(x instanceof HTMLTemplateElement)x=x.innerHTML;else if(x instanceof Ay8)x=Ya$(x);else throw Error("Kd`"+x);return U+x+t[A+1]},t[0]);
$l0&&(E=$l0.createHTML(E));p.innerHTML=E;return p};
Kes=function(t,E){if(!Array.isArray(t)||!Array.isArray(t.raw)||E.length!==t.length-1)throw new TypeError("Ld");};var Xb=OW(HTMLElement);var y2X=IJ(function(t){var E=OW(t);t=function(){var p=E.call(this)||this;p.__lastItems=null;p.__lastMulti=null;p.__selectedMap=null;return p};
_.u(t,E);t.prototype.__updateSelection=function(p,U){var x=U.path;x=="items"?(U=U.base||[],x=this.__lastItems,p!==this.__lastMulti&&this.clearSelection(),x&&(x=xmL(U,x),this.__applySplices(x)),this.__lastItems=U,this.__lastMulti=p):U.path=="items.splices"?this.__applySplices(U.value.indexSplices):(p=x.slice(6),U=parseInt(p,10),p.indexOf(".")<0&&p==U&&this.__deselectChangedIdx(U))};
t.prototype.__applySplices=function(p){for(var U=this,x=this.__selectedMap,A={},m=0;m<p.length;A={s$jscomp$109:void 0},m++){A.s$jscomp$109=p[m];x.forEach(function(R){return function(V,Q){V<R.s$jscomp$109.index||(V>=R.s$jscomp$109.index+R.s$jscomp$109.removed.length?x.set(Q,V+R.s$jscomp$109.addedCount-R.s$jscomp$109.removed.length):x.set(Q,-1))}}(A));
for(var b=0;b<A.s$jscomp$109.addedCount;b++){var f=A.s$jscomp$109.index+b;x.has(this.items[f])&&x.set(this.items[f],f)}}this.__updateLinks();var B=0;x.forEach(function(R,V){R<0?(U.multi?U.splice("selected",B,1):U.selected=U.selectedItem=null,x.delete(V)):B++})};
t.prototype.__updateLinks=function(){var p=this;this.__dataLinkedPaths={};if(this.multi){var U=0;this.__selectedMap.forEach(function(x){x>=0&&p.linkPaths("items."+x,"selected."+U++)})}else this.__selectedMap.forEach(function(x){p.linkPaths("selected","items."+x);
p.linkPaths("selectedItem","items."+x)})};
t.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
t.prototype.isSelected=function(p){return this.__selectedMap.has(p)};
t.prototype.isIndexSelected=function(p){return this.isSelected(this.items[p])};
t.prototype.__deselectChangedIdx=function(p){var U=this,x=this.__selectedIndexForItemIndex(p);if(x>=0){var A=0;this.__selectedMap.forEach(function(m,b){x==A++&&U.deselect(b)})}};
t.prototype.__selectedIndexForItemIndex=function(p){if(p=this.__dataLinkedPaths["items."+p])return parseInt(p.slice(9),10)};
t.prototype.deselect=function(p){var U=this.__selectedMap.get(p);if(U>=0){this.__selectedMap.delete(p);var x;this.multi&&(x=this.__selectedIndexForItemIndex(U));this.__updateLinks();this.multi?this.splice("selected",x,1):this.selected=this.selectedItem=null}};
t.prototype.deselectIndex=function(p){this.deselect(this.items[p])};
t.prototype.select=function(p){this.selectIndex(this.items.indexOf(p))};
t.prototype.selectIndex=function(p){var U=this.items[p];this.isSelected(U)?this.toggle&&this.deselectIndex(p):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(U,p),this.__updateLinks(),this.multi?this.push("selected",U):this.selected=this.selectedItem=U)};
_.aE.Object.defineProperties(t,{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 t}),SUs=y2X(Xb),hB=function(){return SUs.apply(this,arguments)||this};
_.u(hB,SUs);_.aE.Object.defineProperties(hB,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(hB.is,hB);var c2W=window.Polymer;window.Polymer=function(t){return window.Polymer._polymerFn(t)};
c2W&&Object.assign(Polymer,c2W);Polymer._polymerFn=function(){throw Error("Md");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:ir$,resolveUrl:_.nW,pathFromUrl:qQ_};Polymer.DomModule=UR;Polymer.Async={timeOut:_.JB,animationFrame:_.yl,idlePeriod:INr,microTask:RE};Polymer.dedupingMixin=IJ;Polymer.wrap=_.yB;Polymer.PropertiesChanged=Z0r;Polymer.telemetry={instanceCount:O03,incrementInstanceCount:function(){O03++},
registrations:wS$,register:RQ$,dumpRegistrations:function(){wS$.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=X3r;Polymer.CaseMap={dashToCamelCase:DD,camelToDashCase:s_};Polymer.PropertyAccessors=lNG;Polymer.TemplateStamp=sG3;Polymer.Path={isPath:LW,root:PX,isAncestor:ksK,isDescendant:TQ,translate:oz,matches:dMO,normalize:WX,split:uYY,get:$X,set:JNY,isDeep:LW};Polymer.Settings={useShadow:Co,useNativeCSSProperties:i0X,useNativeCustomElements:qUG,get rootPath(){return R9s},setRootPath:function(t){R9s=t},
get sanitizeDOMValue(){return SJ},setSanitizeDOMValue:function(t){SJ=t},
get passiveTouchGestures(){return Cfl},setPassiveTouchGestures:function(t){Cfl=t},
get strictTemplatePolicy(){return dk},setStrictTemplatePolicy:function(t){dk=t},
get allowTemplateFromDomModule(){return VUr},setAllowTemplateFromDomModule:function(t){VUr=t},
get legacyOptimizations(){return QO},setLegacyOptimizations:function(t){QO=t},
get syncInitialRender(){return QGp},setSyncInitialRender:function(t){QGp=t},
get legacyUndefined(){return ER},setLegacyUndefined:function(t){ER=t},
get legacyWarnings(){return kn},setLegacyWarnings:function(t){kn=t},
get orderedComputed(){return Cc4},setOrderedComputed:function(t){Cc4=t},
get fastDomIf(){return kb},setFastDomIf:function(t){kb=t},
get removeNestedTemplates(){return rT},setRemoveNestedTemplates:function(t){rT=t},
get suppressTemplateNotifications(){return dT},setSuppressTemplateNotifications:dT};Polymer.rootPath!==void 0&&(R9s=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(SJ=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(Cfl=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(dk=Polymer.strictTemplatePolicy);VUr=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(QO=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(QGp=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(ER=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(kn=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(Cc4=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(kb=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(rT=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(dT=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return SJ},
set:function(t){SJ=t}});Polymer.PropertyEffects=ZG;Polymer.StyleGather={stylesFromModules:vuj,stylesFromModule:KFE,stylesFromTemplate:yN$,stylesFromModuleImports:SQj,cssFromModules:thj,cssFromModule:cNt,cssFromTemplate:EZ_,cssFromModuleImports:function(t){return(t=UR.import(t))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(t):""}};Polymer.ElementMixin=OW;Polymer.updateStyles=function(t){window.ShadyCSS&&window.ShadyCSS.styleDocument(t)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:xmL};Polymer.html=_.vRr;Polymer.htmlLiteral=function(t){return new Ay8(t,_.t9.apply(1,arguments))};Polymer.Element=Xb;Polymer.ArraySelectorMixin=y2X;Polymer.ArraySelector=hB;var t5f=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,E8X=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,N90=/@media\s(.*)/;var iG_=null,bG0=window.HTMLImports&&window.HTMLImports.whenReady||null,qa$;var pu0=null,aJ=null,ex=function(){this.customStyles=[];this.enqueued=!1;HGO(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},Uds=function(t){!t.enqueued&&aJ&&(t.enqueued=!0,HGO(aJ))};
ex.prototype.addCustomStyle=function(t){t.__seenByShadyCSS||(t.__seenByShadyCSS=!0,this.customStyles.push(t),Uds(this))};
ex.prototype.getStyleForCustomStyle=function(t){if(t.__shadyCSSCachedStyle)return t.__shadyCSSCachedStyle;var E;t.getStyle?E=t.getStyle():E=t;return E};
ex.prototype.processStyles=function(){for(var t=this.customStyles,E=0;E<t.length;E++){var p=t[E];if(!p.__shadyCSSCachedStyle){var U=this.getStyleForCustomStyle(p);U&&(U=U.__appliedElement||U,pu0&&pu0(U),p.__shadyCSSCachedStyle=U)}}return t};
ex.prototype.addCustomStyle=ex.prototype.addCustomStyle;ex.prototype.getStyleForCustomStyle=ex.prototype.getStyleForCustomStyle;ex.prototype.processStyles=ex.prototype.processStyles;Object.defineProperties(ex.prototype,{transformCallback:{get:function(){return pu0},
set:function(t){pu0=t}},
validateCallback:{get:function(){return aJ},
set:function(t){var E=!1;aJ||(E=!0);aJ=t;E&&Uds(this)}}});var BW_=!(window.ShadyDOM&&window.ShadyDOM.inUse),f1J,hA;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(hA=window.ShadyCSS.cssBuild);var xd4=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?f1J=window.ShadyCSS.nativeCss:window.ShadyCSS?(wnL(window.ShadyCSS),window.ShadyCSS=void 0):wnL(window.WebComponents&&window.WebComponents.flags);var lyL=f1J;var AXG=new ex;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(t,E){AXG.processStyles();Mh0(t,E)},
styleElement:function(){AXG.processStyles()},
styleDocument:function(t){AXG.processStyles();Mh0(document.body,t)},
getComputedStyleValue:function(t,E){return mm$(t,E)},
flushCustomStyles:function(){},
nativeCss:lyL,nativeShadow:BW_,cssBuild:hA,disableRuntime:xd4});window.ShadyCSS.CustomStyleInterface=AXG;var Ylr=window.ShadyCSS.CustomStyleInterface,Fb=function(){var t=HTMLElement.call(this)||this;t._style=null;Ylr.addCustomStyle(t);return t};
_.u(Fb,HTMLElement);Fb.prototype.getStyle=function(){if(this._style)return this._style;var t=this.querySelector("style");if(!t)return null;this._style=t;var E=t.getAttribute("include");E&&(t.removeAttribute("include"),t.textContent=thj(E)+t.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
Fb.prototype.getStyle=Fb.prototype.getStyle;window.customElements.define("custom-style",Fb);Polymer.CustomStyle=Fb;var z9=function(){this._timer=this._callback=this._asyncModule=null},lP,mdr;
z9.prototype.setConfig=function(t,E){var p=this;this._asyncModule=t;this._callback=E;this._timer=this._asyncModule.run(function(){p._timer=null;lP.delete(p);p._callback()})};
z9.prototype.cancel=function(){this.isActive()&&(M5f(this),lP.delete(this))};
var M5f=function(t){t.isActive()&&(t._asyncModule.cancel(t._timer),t._timer=null)};
z9.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
z9.prototype.isActive=function(){return this._timer!=null};
_.G9=function(t,E,p){t instanceof z9?M5f(t):t=new z9;t.setConfig(E,p);return t};
lP=new Set;_.nm=function(t){lP.add(t)};
mdr=function(){var t=!!lP.size;lP.forEach(function(E){try{E.flush()}catch(p){setTimeout(function(){throw p;})}});
return t};var Vh$=typeof document.head.style.touchAction==="string",R5_=["mousedown","mousemove","mouseup","click"],I1D=[0,1,4,2],b4s;try{b4s=(new MouseEvent("test",{buttons:1})).buttons===1}catch(t){b4s=!1}var JyK=b4s,QeK=!1;(function(){try{var t=Object.defineProperty({},"passive",{get:function(){QeK=!0}});
window.addEventListener("test",null,t);window.removeEventListener("test",null,t)}catch(E){}})();
var ry0=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),km_=[],i4W={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},nZO={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},dmO=function(t){var E=t.sourceCapabilities;if(!E||E.firesTouchEvents)if(t.__polymerGesturesHandled={skip:!0},t.type==="click"){E=!1;for(var p=Xn0(t),U=0;U<p.length;U++){if(p[U].nodeType===Node.ELEMENT_NODE)if(p[U].localName==="label")km_.push(p[U]);
else if(i4W[p[U].localName]){var x=p[U];var A=Array.prototype.slice.call(x.labels||[]);if(!A.length){A=[];try{var m=x.getRootNode();if(x.id){var b=m.querySelectorAll("label[for = '"+x.id+"']");for(x=0;x<b.length;x++)A.push(b[x])}}catch(f){}}for(x=0;x<A.length;x++)E=E||km_.indexOf(A[x])>-1}if(p[U]===ql4)return}E||(t.preventDefault(),t.stopPropagation())}},ql4=null,Ni=null,a1$=0,e50=0,h5_=-1,Fbt=!1;
document.addEventListener("touchend",function(t){Ni||uIO(!0);ql4=Xn0(t)[0];Ni=_.G9(Ni,_.JB.after(2500),function(){uIO();Ni=ql4=null})},QeK?{passive:!0}:!1);
var Xn0=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(t){return t.composedPath&&t.composedPath()||[]},H6={},bn=[];
z5L({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){mQ(this.info)},
mousedown:function(t){if(AA(t)){var E=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t),p=this;ZG8(this.info,function(U){AA(U)||(VO("up",E,U),mQ(p.info))},function(U){AA(U)&&VO("up",E,U);
mQ(p.info)});
VO("down",E,t)}},
touchstart:function(t){VO("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t),t.changedTouches[0],t)},
touchend:function(t){VO("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t),t.changedTouches[0],t)}});
z5L({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(t){this.moves.length>2&&this.moves.shift();this.moves.push(t)},
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;mQ(this.info)},
mousedown:function(t){if(AA(t)){var E=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t),p=this,U=function(x){var A=x.clientX,m=x.clientY;l1L(p.info,A,m)&&(p.info.state=p.info.started?x.type==="mouseup"?"end":"track":"start",p.info.state==="start"&&qe("tap"),p.info.addMove({x:A,y:m}),AA(x)||(p.info.state="end",mQ(p.info)),E&&Gm_(p.info,E,x),p.info.started=!0)};
ZG8(this.info,U,function(x){p.info.started&&U(x);mQ(p.info)});
this.info.x=t.clientX;this.info.y=t.clientY}},
touchstart:function(t){t=t.changedTouches[0];this.info.x=t.clientX;this.info.y=t.clientY},
touchmove:function(t){var E=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t);t=t.changedTouches[0];var p=t.clientX,U=t.clientY;l1L(this.info,p,U)&&(this.info.state==="start"&&qe("tap"),this.info.addMove({x:p,y:U}),Gm_(this.info,E,t),this.info.state="track",this.info.started=!0)},
touchend:function(t){var E=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t);t=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Gm_(this.info,E,t))}});
z5L({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(t){AA(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},
click:function(t){AA(t)&&NWO(this.info,t)},
touchstart:function(t){t=t.changedTouches[0];this.info.x=t.clientX;this.info.y=t.clientY},
touchend:function(t){NWO(this.info,t.changedTouches[0],t)}});var H4s=IJ(function(t){var E=function(){return t.apply(this,arguments)||this};
_.u(E,t);E.prototype._addEventListenerToNode=function(p,U,x){fo(p,U,x)||t.prototype._addEventListenerToNode.call(this,p,U,x)};
E.prototype._removeEventListenerFromNode=function(p,U,x){B6(p,U,x)||t.prototype._removeEventListenerFromNode.call(this,p,U,x)};
return E});var DG=IJ(function(t){var E=function(){return t.apply(this,arguments)||this};
_.u(E,t);E.prototype._shouldPropertyChange=function(p,U,x){return Dm0(this,p,U,x,!0)};
return E}),fw0=IJ(function(t){var E=function(){return t.apply(this,arguments)||this};
_.u(E,t);E.prototype._shouldPropertyChange=function(p,U,x){return Dm0(this,p,U,x,this.mutableData)};
_.aE.Object.defineProperties(E,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return E});
DG._mutablePropertyChange=Dm0;var sel=!1;var Bnm=H4s(fw0(ZG(HTMLElement))),sW=function(){var t=Bnm.call(this)||this;if(dk)throw Error("Nd");t.root=null;t.$=null;t.__children=null;return t};
_.u(sW,Bnm);_.Y=sW.prototype;_.Y.attributeChangedCallback=function(){this.mutableData=!0};
_.Y.connectedCallback=function(){Lbi()||(this.style.display="none");this.render()};
_.Y.disconnectedCallback=function(){this.__removeChildren()};
_.Y.__insertChildren=function(){(0,_.yB)((0,_.yB)(this).parentNode).insertBefore(this.root,this)};
_.Y.__removeChildren=function(){if(this.__children)for(var t=0;t<this.__children.length;t++)this.root.appendChild(this.__children[t])};
_.Y.render=function(){var t=this;if(!this.__children){var E=E||this.querySelector("template");if(!E){var p=new MutationObserver(function(){if(E=t.querySelector("template"))p.disconnect(),t.render();else throw Error("Od");});
p.observe(this,{childList:!0});return}this.root=this._stampTemplate(E);this.$=this.root.$;this.__children=[];for(var U=this.root.firstChild;U;U=U.nextSibling)this.__children[this.__children.length]=U;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.aE.Object.defineProperties(sW,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",sW);Polymer.Debouncer=z9;Polymer.Gestures={gestures:H6,recognizers:bn,deepTargetFind:OGY,addListener:fo,removeListener:B6,register:z5L,setTouchAction:_.wk,prevent:qe,resetMouseCanceller:function(){Ni&&Ni.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:fo,remove:B6};Polymer.GestureEventListeners=H4s;Polymer.MutableData=DG;Polymer.OptionalMutableData=fw0;Polymer.DomBind=sW;_.Lm=function(){do{var t=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var E=mdr()}while(t||E)};var PfL=null;TWL.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:TWL,writable:!0}});var cy8=ZG(TWL),Saj=DG(cy8),wuG=ZG(function(){}),jf=function(t){var E=wuG.call(this)||this;
E._configureProperties(t);E.root=E._stampTemplate(E.__dataHost);var p=[];E.children=p;for(var U=E.root.firstChild;U;U=U.nextSibling)p.push(U),U.__templatizeInstance=E;E.__templatizeOwner&&E.__templatizeOwner.__hideTemplateChildren__&&E._showHideChildren(!0);p=E.__templatizeOptions;(t&&p.instanceProps||!p.instanceProps)&&E._enableProperties();return E};
_.u(jf,wuG);_.Y=jf.prototype;_.Y._configureProperties=function(t){if(this.__templatizeOptions.forwardHostProp)for(var E in this.__hostProps)this._setPendingProperty(E,this.__dataHost["_host_"+E]);for(var p in t)this._setPendingProperty(p,t[p])};
_.Y.forwardHostProp=function(t,E){this._setPendingPropertyOrPath(t,E,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.Y._addEventListenerToNode=function(t,E,p){var U=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,E,function(A){A.model=U;p(A)});
else{var x=this.__dataHost.__dataHost;x&&x._addEventListenerToNode(t,E,p)}};
_.Y._showHideChildren=function(t){Wbj(t,this.children)};
_.Y._setUnmanagedPropertyToNode=function(t,E,p){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&E=="textContent"?t.__polymerTextContent__=p:wuG.prototype._setUnmanagedPropertyToNode.call(this,t,E,p)};
_.Y.dispatchEvent=function(){return!0};
_.aE.Object.defineProperties(jf.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var t=this.__parentModel;if(!t){var E;t=this;do t=t.__dataHost.__dataHost;while((E=t.__templatizeOptions)&&!E.parentModel);this.__parentModel=t}return t}}});
var Kbi=DG(jf);var Pi=function(){var t=Xb.call(this)||this;t.__renderDebouncer=null;t._lastIf=!1;t.__hideTemplateChildren__=!1;return t};
_.u(Pi,Xb);_.Y=Pi.prototype;_.Y.__debounceRender=function(){var t=this;this.__renderDebouncer=_.G9(this.__renderDebouncer,RE,function(){return t.__render()});
_.nm(this.__renderDebouncer)};
_.Y.disconnectedCallback=function(){Xb.prototype.disconnectedCallback.call(this);var t=(0,_.yB)(this).parentNode;t&&(t.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.yB)(t).host)||this.__teardownInstance()};
_.Y.connectedCallback=function(){Xb.prototype.connectedCallback.call(this);Lbi()||(this.style.display="none");this.if&&this.__debounceRender()};
_.Y.__ensureTemplate=function(){var t=this;if(!this.__template){var E=this._templateInfo?this:(0,_.yB)(this).querySelector("template");if(!E){var p=new MutationObserver(function(){if((0,_.yB)(t).querySelector("template"))p.disconnect(),t.__render();else throw Error("Rd");});
p.observe(this,{childList:!0});return!1}this.__template=E}return!0};
_.Y.__ensureInstance=function(){var t=(0,_.yB)(this).parentNode;if(this.__hasInstance()){var E=this.__getInstanceNodes();if(E&&E.length&&(0,_.yB)(this).previousSibling!==E[E.length-1])for(var p=0,U=void 0;p<E.length&&(U=E[p]);p++)(0,_.yB)(t).insertBefore(U,this)}else{if(!t||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(t)}return!0};
_.Y.render=function(){_.Lm()};
_.Y.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();dT&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.Y.__hasInstance=function(){};
_.Y.__getInstanceNodes=function(){};
_.Y.__createAndInsertInstance=function(){};
_.Y.__teardownInstance=function(){};
_.Y._showHideChildren=function(){};
_.aE.Object.defineProperties(Pi,{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:Pi.prototype.__debounceRender},restamp:{type:Boolean,observer:Pi.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var Rvp=function(){var t=Pi.call(this)||this;t.__instance=null;t.__syncInfo=null;return t};
_.u(Rvp,Pi);_.Y=Rvp.prototype;_.Y.__hasInstance=function(){return!!this.__instance};
_.Y.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.Y.__createAndInsertInstance=function(t){var E=this,p=this.__dataHost||this;if(dk&&!this.__dataHost)throw Error("Pd");var U=p._bindTemplate(this.__template,!0);U.runEffects=function(x,A,m){var b=E.__syncInfo;if(E.if)b&&(E.__syncInfo=null,E._showHideChildren(),A=Object.assign(b.changedProps,A)),x(A,m);else if(E.__instance)if(b||(b=E.__syncInfo={runEffects:x,changedProps:{}}),m)for(var f in A)x=PX(f),b.changedProps[x]=E.__dataHost[x];else Object.assign(b.changedProps,A)};
this.__instance=p._stampTemplate(this.__template,U);(0,_.yB)(t).insertBefore(this.__instance,this)};
_.Y.__syncHostProperties=function(){var t=this.__syncInfo;t&&(this.__syncInfo=null,t.runEffects(t.changedProps,!1))};
_.Y.__teardownInstance=function(){var t=this.__dataHost||this;this.__instance&&(t._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.Y._showHideChildren=function(){var t=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==t&&(this.__instance.__hidden=t,Wbj(t,this.__instance.templateInfo.childNodes));t||this.__syncHostProperties()};
var V54=function(){var t=Pi.call(this)||this;t.__ctor=null;t.__instance=null;t.__invalidProps=null;return t};
_.u(V54,Pi);_.Y=V54.prototype;_.Y.__hasInstance=function(){return!!this.__instance};
_.Y.__getInstanceNodes=function(){return this.__instance.children};
_.Y.__createAndInsertInstance=function(t){this.__ctor||(this.__ctor=rk(this.__template,this,{mutableData:!0,forwardHostProp:function(E,p){this.__instance&&(this.if?this.__instance.forwardHostProp(E,p):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[PX(E)]=!0))}}));
this.__instance=new this.__ctor;(0,_.yB)(t).insertBefore(this.__instance.root,this)};
_.Y.__teardownInstance=function(){if(this.__instance){var t=this.__instance.children;if(t&&t.length){var E=(0,_.yB)(t[0]).parentNode;if(E){E=(0,_.yB)(E);for(var p=0,U=void 0;p<t.length&&(U=t[p]);p++)E.removeChild(U)}}this.__instance=this.__invalidProps=null}};
_.Y.__syncHostProperties=function(){var t=this.__invalidProps;if(t){this.__invalidProps=null;for(var E in t)this.__instance._setPendingProperty(E,this.__dataHost[E]);this.__instance._flushProperties()}};
_.Y._showHideChildren=function(){var t=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==t&&(this.__instance.__hidden=t,this.__instance._showHideChildren(t));t||this.__syncHostProperties()};
_.c3=kb?Rvp:V54;customElements.define(_.c3.is,_.c3);Polymer.enqueueDebouncer=_.nm;Polymer.flush=_.Lm;Polymer.Templatize={templatize:rk,modelForElement:Ah_};Polymer.TemplateInstanceBase=jf;Polymer.DomIf=_.c3;var Qoo=fw0(Xb),SU=function(){var t=Qoo.call(this)||this;t.__instances=[];t.__renderDebouncer=null;t.__itemsIdxToInstIdx={};t.__chunkCount=null;t.__renderStartTime=null;t.__itemsArrayChanged=!1;t.__shouldMeasureChunk=!1;t.__shouldContinueChunking=!1;t.__chunkingId=0;t.__sortFn=null;t.__filterFn=null;t.__observePaths=null;t.__ctor=null;t.__isDetached=!0;t.template=null;return t};
_.u(SU,Qoo);_.Y=SU.prototype;_.Y.disconnectedCallback=function(){Qoo.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.Y.connectedCallback=function(){Qoo.prototype.connectedCallback.call(this);Lbi()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var t=(0,_.yB)((0,_.yB)(this).parentNode),E=0;E<this.__instances.length;E++)this.__attachInstance(E,t);this.__chunkingId&&this.__render()}};
_.Y.__ensureTemplatized=function(){var t=this;if(!this.__ctor){var E=this.template=this._templateInfo?this:this.querySelector("template");if(!E){var p=new MutationObserver(function(){if(t.querySelector("template"))p.disconnect(),t.__render();else throw Error("Sd");});
p.observe(this,{childList:!0});return!1}var U={};U[this.as]=!0;U[this.indexAs]=!0;U[this.itemsIndexAs]=!0;this.__ctor=rk(E,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:U,forwardHostProp:function(x,A){for(var m=this.__instances,b=0,f=void 0;b<m.length&&(f=m[b]);b++)f.forwardHostProp(x,A)},
notifyInstanceProp:function(x,A,m){dMO(this.as,A)&&(x=x[this.itemsIndexAs],A==this.as&&(this.items[x]=m),A=oz(this.as,"items."+x,A),this.notifyPath(A,m))}})}return!0};
_.Y.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.Y.__functionFromPropertyValue=function(t){if(typeof t==="string"){var E=this.__getMethodHost();return function(){return E[t].apply(E,arguments)}}return t};
_.Y.__sortChanged=function(t){this.__sortFn=this.__functionFromPropertyValue(t);this.items&&this.__debounceRender(this.__render)};
_.Y.__filterChanged=function(t){this.__filterFn=this.__functionFromPropertyValue(t);this.items&&this.__debounceRender(this.__render)};
_.Y.__computeFrameTime=function(t){return Math.ceil(1E3/t)};
_.Y.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.Y.__handleObservedPaths=function(t){if(this.__sortFn||this.__filterFn)if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var E=this.__observePaths,p=0;p<E.length;p++)t.indexOf(E[p])===0&&this.__debounceRender(this.__render,this.delay)};
_.Y.__itemsChanged=function(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.Y.__debounceRender=function(t,E){E=E===void 0?0:E;this.__renderDebouncer=_.G9(this.__renderDebouncer,E>0?_.JB.after(E):RE,t.bind(this));_.nm(this.__renderDebouncer)};
_.Y.render=function(){this.__debounceRender(this.__render);_.Lm()};
_.Y.__render=function(){var t=this;if(this.__ensureTemplatized()){var E=this.items||[],p=this.__sortAndFilterItems(E),U=this.__calculateLimit(p.length);this.__updateInstances(E,U,p);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){t.__chunkingId=null;t.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);dT&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.Y.__sortAndFilterItems=function(t){for(var E=this,p=Array(t.length),U=0;U<t.length;U++)p[U]=U;this.__filterFn&&(p=p.filter(function(x,A,m){return E.__filterFn(t[x],A,m)}));
this.__sortFn&&p.sort(function(x,A){return E.__sortFn(t[x],t[A])});
return p};
_.Y.__calculateLimit=function(t){var E=t,p=this.__instances.length;if(this.initialCount){var U;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(E=Math.min(t,this.initialCount),this.__chunkCount=(U=Math.max(E-p,0))||1):(U=Math.min(Math.max(t-p,0),this.__chunkCount),E=Math.min(p+U,t));this.__shouldMeasureChunk=U===this.__chunkCount;this.__shouldContinueChunking=E<t;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return E};
_.Y.__continueChunking=function(){if(this.__shouldMeasureChunk){var t=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/t*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.Y.__updateInstances=function(t,E,p){var U=this.__itemsIdxToInstIdx={},x;for(x=0;x<E;x++){var A=this.__instances[x],m=p[x],b=t[m];U[m]=x;A?(A._setPendingProperty(this.as,b),A._setPendingProperty(this.indexAs,x),A._setPendingProperty(this.itemsIndexAs,m),A._flushProperties()):this.__insertInstance(b,x,m)}for(t=this.__instances.length-1;t>=x;t--)this.__detachAndRemoveInstance(t)};
_.Y.__detachInstance=function(t){t=this.__instances[t];for(var E=(0,_.yB)(t.root),p=0;p<t.children.length;p++)E.appendChild(t.children[p]);return t};
_.Y.__attachInstance=function(t,E){E.insertBefore(this.__instances[t].root,this)};
_.Y.__detachAndRemoveInstance=function(t){this.__detachInstance(t);this.__instances.splice(t,1)};
_.Y.__stampInstance=function(t,E,p){var U={};U[this.as]=t;U[this.indexAs]=E;U[this.itemsIndexAs]=p;return new this.__ctor(U)};
_.Y.__insertInstance=function(t,E,p){t=this.__stampInstance(t,E,p);p=(p=this.__instances[E+1])?p.children[0]:this;(0,_.yB)((0,_.yB)(this).parentNode).insertBefore(t.root,p);return this.__instances[E]=t};
_.Y._showHideChildren=function(t){for(var E=0;E<this.__instances.length;E++)this.__instances[E]._showHideChildren(t)};
_.Y.__handleItemPath=function(t,E){var p=t.slice(6),U=p.indexOf(".");t=U<0?p:p.substring(0,U);if(t==parseInt(t,10)){p=U<0?"":p.substring(U+1);this.__handleObservedPaths(p);if(t=this.__instances[this.__itemsIdxToInstIdx[t]])t._setPendingPropertyOrPath(this.as+(p?"."+p:""),E,!1,!0),t._flushProperties();return!0}};
_.Y.itemForElement=function(t){return(t=this.modelForElement(t))&&t[this.as]};
_.Y.indexForElement=function(t){return(t=this.modelForElement(t))&&t[this.indexAs]};
_.Y.modelForElement=function(t){return Ah_(this.template,t)};
_.aE.Object.defineProperties(SU,{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:SU.prototype.__sortChanged},filter:{type:Function,observer:SU.prototype.__filterChanged},observe:{type:String,observer:SU.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!dT,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.*)"]}}});
SU.prototype._setRenderedItemCount=function(){};
customElements.define(SU.is,SU);Polymer.DomRepeat=SU;var CR3=function(t,E){var p=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=t;this.callback=E;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){p._schedule()};
this.connect();this._schedule()},jo3=function(t){var E=(0,_.yB)(t);
if(un(t))return E.assignedNodes({flatten:!0});t=[];for(var p=0;p<E.childNodes.length;p++){var U=E.childNodes[p];un(U)?t.push.apply(t,_.KB((0,_.yB)(U).assignedNodes({flatten:!0}))):t.push(U)}return t};
_.Y=CR3.prototype;_.Y.connect=function(){var t=this;un(this._target)?this._listenSlots([this._target]):(0,_.yB)(this._target).children&&(this._listenSlots((0,_.yB)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(E){t._processMutations(E)}):(this._nativeChildrenObserver=new MutationObserver(function(E){t._processMutations(E)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.Y.disconnect=function(){un(this._target)?this._unlistenSlots([this._target]):(0,_.yB)(this._target).children&&(this._unlistenSlots((0,_.yB)(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};
_.Y._schedule=function(){var t=this;this._scheduled||(this._scheduled=!0,RE.run(function(){return t.flush()}))};
_.Y._processMutations=function(t){this._processSlotMutations(t);this.flush()};
_.Y._processSlotMutations=function(t){if(t)for(var E=0;E<t.length;E++){var p=t[E];p.addedNodes&&this._listenSlots(p.addedNodes);p.removedNodes&&this._unlistenSlots(p.removedNodes)}};
_.Y.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 t={target:this._target,addedNodes:[],removedNodes:[]},E=jo3(this._target),p=xmL(E,this._effectiveNodes),U=0,x=void 0;U<p.length&&(x=p[U]);U++)for(var A=0,m=void 0;A<x.removed.length&&(m=x.removed[A]);A++)t.removedNodes.push(m);
U=0;for(x=void 0;U<p.length&&(x=p[U]);U++)for(A=x.index;A<x.index+x.addedCount;A++)t.addedNodes.push(E[A]);this._effectiveNodes=E;E=!1;if(t.addedNodes.length||t.removedNodes.length)E=!0,this.callback.call(this._target,t);return E};
_.Y._listenSlots=function(t){for(var E=0;E<t.length;E++){var p=t[E];un(p)&&p.addEventListener("slotchange",this._boundSchedule)}};
_.Y._unlistenSlots=function(t){for(var E=0;E<t.length;E++){var p=t[E];un(p)&&p.removeEventListener("slotchange",this._boundSchedule)}};var T9=Element.prototype,rXs=T9.matches||T9.matchesSelector||T9.mozMatchesSelector||T9.msMatchesSelector||T9.oMatchesSelector||T9.webkitMatchesSelector,khr=function(t,E){return rXs.call(t,E)},JA=function(t){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(t);
this.node=t},IwG;
_.Y=JA.prototype;_.Y.observeNodes=function(t){return new CR3(this.node,t)};
_.Y.unobserveNodes=function(t){t.disconnect()};
_.Y.notifyObserver=function(){};
_.Y.deepContains=function(t){if((0,_.yB)(this.node).contains(t))return!0;var E=t;for(t=t.ownerDocument;E&&E!==t&&E!==this.node;)E=(0,_.yB)(E).parentNode||(0,_.yB)(E).host;return E===this.node};
_.Y.getOwnerRoot=function(){return(0,_.yB)(this.node).getRootNode()};
_.Y.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.yB)(this.node).assignedNodes({flatten:!0}):[]};
_.Y.getDestinationInsertionPoints=function(){for(var t=[],E=(0,_.yB)(this.node).assignedSlot;E;)t.push(E),E=(0,_.yB)(E).assignedSlot;return t};
_.Y.importNode=function(t,E){return(0,_.yB)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(t,E)};
_.Y.getEffectiveChildNodes=function(){return jo3(this.node)};
_.Y.queryDistributedElements=function(t){for(var E=this.getEffectiveChildNodes(),p=[],U=0,x=E.length,A=void 0;U<x&&(A=E[U]);U++)A.nodeType===Node.ELEMENT_NODE&&khr(A,t)&&p.push(A);return p};
_.aE.Object.defineProperties(JA.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var t=this.node;return t._activeElement!==void 0?t._activeElement:t.activeElement}}});
var oJ=function(t){this.event=t};
_.aE.Object.defineProperties(oJ.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 ddr=JA;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var uRZ=window.ShadyDOM.Wrapper,JXr=function(){return uRZ.apply(this,arguments)||this};
_.u(JXr,uRZ);Object.getOwnPropertyNames(JA.prototype).forEach(function(t){t!="activeElement"&&t!="constructor"&&(JXr.prototype[t]=JA.prototype[t])});
MME(JXr.prototype,["classList"]);ddr=JXr;Object.defineProperties(oJ.prototype,{localTarget:{get:function(){var t=this.event.currentTarget;t=t&&_.sm(t).getOwnerRoot();for(var E=this.path,p=0;p<E.length;p++){var U=E[p];if(_.sm(U).getOwnerRoot()===t)return U}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else YtE(),MME(JA.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),mqL();IwG=ddr;_.sm=function(t){t=t||document;if(t instanceof ddr)return t;if(t instanceof oJ)return t;var E=t.__domApi;E||(t instanceof Event?E=new oJ(t):E=new ddr(t),t.__domApi=E);return E};var g8W=/:host\(:dir\((ltr|rtl)\)\)/g,Z4G=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,O4s=/:dir\((?:ltr|rtl)\)/,Xu0=!(!window.ShadyDOM||!window.ShadyDOM.inUse),gk=[],Wi=null,IE="",hvZ=IJ(function(t){Xu0||Wi||(IE=document.documentElement.getAttribute("dir"),Wi=new MutationObserver(b1t),Wi.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var E=lNG(t);t=function(){var p=E.call(this)||this;p.__autoDirOptOut=!1;return p};
_.u(t,E);t._processStyleText=function(p,U){p=E._processStyleText.call(this,p,U);!Xu0&&O4s.test(p)&&(p=this._replaceDirInCssText(p),this.__activateDir=!0);return p};
t._replaceDirInCssText=function(p){p=p.replace(g8W,':host([dir="$1"])');return p=p.replace(Z4G,':host([dir="$2"]) $1')};
t.prototype.ready=function(){E.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
t.prototype.connectedCallback=function(){E.prototype.connectedCallback&&E.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(Wi&&Wi.takeRecords().length&&b1t(),gk.push(this),this.__autoDirOptOut||this.setAttribute("dir",IE))};
t.prototype.disconnectedCallback=function(){E.prototype.disconnectedCallback&&E.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var p=gk.indexOf(this);p>-1&&gk.splice(p,1)}};
t.__activateDir=!1;return t});var awr=function(t){for(;t;){var E=Object.getOwnPropertyDescriptor(t,"observedAttributes");if(E)return E.get;t=Object.getPrototypeOf(t.prototype).constructor}return function(){return[]}};
IJ(function(t){var E=OW(t),p=awr(E);t=function(){return E.call(this)||this};
_.u(t,E);t.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:E.prototype._initializeProperties.call(this)};
t.prototype._enableProperties=function(){this.__isUpgradeDisabled||E.prototype._enableProperties.call(this)};
t.prototype._canApplyPropertyDefault=function(U){return E.prototype._canApplyPropertyDefault.call(this,U)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(U))};
t.prototype.attributeChangedCallback=function(U,x,A,m){U=="disable-upgrade"?this.__isUpgradeDisabled&&A==null&&(E.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.yB)(this).isConnected&&E.prototype.connectedCallback.call(this)):E.prototype.attributeChangedCallback.call(this,U,x,A,m)};
t.prototype.connectedCallback=function(){this.__isUpgradeDisabled||E.prototype.connectedCallback.call(this)};
t.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||E.prototype.disconnectedCallback.call(this)};
_.aE.Object.defineProperties(t,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return p.call(this).concat("disable-upgrade")}}});
return t});var ZM=!1,qtt=[],OR=[];var wqY=window.ShadyDOM,RrD=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",Qxj):document.readyState==="interactive"||document.readyState==="complete"?Qxj():window.addEventListener("DOMContentLoaded",Qxj);var rhj=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=""},C3E=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,jxJ=/@import[^;]*;/gim,gCD=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Z1_=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,O1D=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,XqL=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,JhE=/^@[^\s]*keyframes/,
u28=/\s+/g;var hrL={};var FAi=Promise.resolve();var evs=new Set;var Fdp=/;\s*/m,zvm=/^\s*(initial)|(inherit)\s*$/,lwp=/\s*!important/,Ghf=function(){this._map={}};
Ghf.prototype.set=function(t,E){t=t.trim();this._map[t]={properties:E,dependants:{}}};
Ghf.prototype.get=function(t){t=t.trim();return this._map[t]||null};
var n8m=null,$b=function(){this._measureElement=this._currentElement=null;this._map=new Ghf};
_.Y=$b.prototype;_.Y.detectMixin=function(t){t=E8X.test(t)||t5f.test(t);E8X.lastIndex=0;t5f.lastIndex=0;return t};
_.Y.transformTemplate=function(t,E){if(t._gatheredStyle===void 0){var p=[];for(var U=t.content.querySelectorAll("style"),x=0;x<U.length;x++){var A=U[x];if(A.hasAttribute("shady-unscoped")){if(!BW_){var m=A.textContent;if(!evs.has(m)){evs.add(m);var b=document.createElement("style");b.setAttribute("shady-unscoped","");b.textContent=m;document.head.appendChild(b)}A.parentNode.removeChild(A)}}else p.push(A.textContent),A.parentNode.removeChild(A)}(p=p.join("").trim())?(U=document.createElement("style"),
U.textContent=p,t.content.insertBefore(U,t.content.firstChild),p=U):p=null;t._gatheredStyle=p}return(t=t._gatheredStyle)?this.JSC$11545_transformStyle(t,E):null};
_.Y.JSC$11545_transformStyle=function(t,E){E=E===void 0?"":E;var p=nCi(t);this.transformRules(p,E);t.textContent=GHO(p);return p};
_.Y.transformCustomStyle=function(t){var E=this,p=nCi(t);Dq0(p,function(U){U.selector===":root"&&(U.selector="html");E.transformRule(U)});
t.textContent=GHO(p);return p};
_.Y.transformRules=function(t,E){var p=this;this._currentElement=E;Dq0(t,function(U){p.transformRule(U)});
this._currentElement=null};
_.Y.transformRule=function(t){t.cssText=Nn3(this,t.parsedCssText,t);t.selector===":root"&&(t.selector=":host > *")};
var Nn3=function(t,E,p){E=E.replace(t5f,function(U,x,A,m){return t._produceCssProperties(U,x,A,m,p)});
return t._consumeCssProperties(E,p)};
_.Y=$b.prototype;_.Y._getInitialValueForProperty=function(t){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(t)};
_.Y._fallbacksFromPreviousRules=function(t){for(var E=this,p=t;p.parent;)p=p.parent;var U={},x=!1;Dq0(p,function(A){(x=x||A===t)||A.selector===t.selector&&Object.assign(U,E._cssTextToMap(A.parsedCssText))});
return U};
_.Y._consumeCssProperties=function(t,E){for(var p;p=E8X.exec(t);){var U=p[0],x=p[1];p=p.index;var A=p+U.indexOf("@apply"),m=p+U.length;U=t.slice(0,A);t=t.slice(m);A=E?this._fallbacksFromPreviousRules(E):{};Object.assign(A,this._cssTextToMap(U));x=this._atApplyToCssProperties(x,A);t=U+x+t;E8X.lastIndex=p+x.length}return t};
_.Y._atApplyToCssProperties=function(t,E){t=t.replace(Fdp,"");var p=[],U=this._map.get(t);U||(this._map.set(t,{}),U=this._map.get(t));if(U){this._currentElement&&(U.dependants[this._currentElement]=!0);var x,A=U.properties;for(x in A){var m=E&&E[x];U=[x,": var(",t,"_-_",x];m&&U.push(",",m.replace(lwp,""));U.push(")");lwp.test(A[x])&&U.push(" !important");p.push(U.join(""))}}return p.join("; ")};
_.Y._replaceInitialOrInherit=function(t,E){var p=zvm.exec(E);p&&(E=p[1]?this._getInitialValueForProperty(t):"apply-shim-inherit");return E};
_.Y._cssTextToMap=function(t,E){E=E===void 0?!1:E;t=t.split(";");for(var p,U,x={},A=0;A<t.length;A++)if(p=t[A])U=p.split(":"),U.length>1&&(p=U[0].trim(),U=U.slice(1).join(":"),E&&(U=this._replaceInitialOrInherit(p,U)),x[p]=U);return x};
_.Y._invalidateMixinEntry=function(t){if(n8m)for(var E in t.dependants)E!==this._currentElement&&n8m(E)};
_.Y._produceCssProperties=function(t,E,p,U,x){var A=this;p&&sxE(p,function(d,I){I&&A._map.get(I)&&(U="@apply "+I+";")});
if(!U)return t;var m=this._consumeCssProperties(""+U,x);x=t.slice(0,t.indexOf("--"));var b=m=this._cssTextToMap(m,!0),f=this._map.get(E),B=f&&f.properties;B?b=Object.assign(Object.create(B),m):this._map.set(E,b);var R=[],V,Q=!1;for(V in b){var C=m[V];C===void 0&&(C="initial");!B||V in B||(Q=!0);R.push(E+"_-_"+V+": "+C)}Q&&this._invalidateMixinEntry(f);f&&(f.properties=b);p&&(x=t+";"+x);return x+R.join("; ")+";"};
$b.prototype.detectMixin=$b.prototype.detectMixin;$b.prototype.transformStyle=$b.prototype.JSC$11545_transformStyle;$b.prototype.transformCustomStyle=$b.prototype.transformCustomStyle;$b.prototype.transformRules=$b.prototype.transformRules;$b.prototype.transformRule=$b.prototype.transformRule;$b.prototype.transformTemplate=$b.prototype.transformTemplate;$b.prototype._separator="_-_";Object.defineProperty($b.prototype,"invalidCallback",{get:function(){return n8m},
set:function(t){n8m=t}});var Km=new $b,Ddr=function(){this.customStyleInterface=null;Km.invalidCallback=ay8},vi=function(t){!t.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(t.customStyleInterface=window.ShadyCSS.CustomStyleInterface,t.customStyleInterface.transformCallback=function(E){Km.transformCustomStyle(E)},t.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){t.customStyleInterface.enqueued&&t.flushCustomStyles()})})};
_.Y=Ddr.prototype;_.Y.prepareTemplate=function(t,E){vi(this);LA8(t)===""&&(hrL[E]=t,E=Km.transformTemplate(t,E),t._styleAst=E)};
_.Y.flushCustomStyles=function(){vi(this);if(this.customStyleInterface){var t=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var E=0;E<t.length;E++){var p=this.customStyleInterface.getStyleForCustomStyle(t[E]);p&&Km.transformCustomStyle(p)}this.customStyleInterface.enqueued=!1}}};
_.Y.styleSubtree=function(t,E){vi(this);E&&Mh0(t,E);if(t.shadowRoot)for(this.styleElement(t),t=t.shadowRoot.children||t.shadowRoot.childNodes,E=0;E<t.length;E++)this.styleSubtree(t[E]);else for(t=t.children||t.childNodes,E=0;E<t.length;E++)this.styleSubtree(t[E])};
_.Y.styleElement=function(t){vi(this);var E=t.localName,p;E?E.indexOf("-")>-1?p=E:p=t.getAttribute&&t.getAttribute("is")||"":p=t.is;E=hrL[p];if(!(E&&LA8(E)!==""||!E||erl(E))){if(erl(E)||E._applyShimValidatingVersion!==E._applyShimNextVersion)this.prepareTemplate(E,p),zrO(E);if(t=t.shadowRoot)if(t=t.querySelector("style"))t.__cssRules=E._styleAst,t.textContent=GHO(E._styleAst)}};
_.Y.styleDocument=function(t){vi(this);this.styleSubtree(document.body,t)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var yi=new Ddr,soX=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(t,E){yi.flushCustomStyles();yi.prepareTemplate(t,E)},
prepareTemplateStyles:function(t,E,p){window.ShadyCSS.prepareTemplate(t,E,p)},
prepareTemplateDom:function(){},
styleSubtree:function(t,E){yi.flushCustomStyles();yi.styleSubtree(t,E)},
styleElement:function(t){yi.flushCustomStyles();yi.styleElement(t)},
styleDocument:function(t){yi.flushCustomStyles();yi.styleDocument(t)},
getComputedStyleValue:function(t,E){return mm$(t,E)},
flushCustomStyles:function(){yi.flushCustomStyles()},
nativeCss:lyL,nativeShadow:BW_,cssBuild:hA,disableRuntime:xd4};soX&&(window.ShadyCSS.CustomStyleInterface=soX)}window.ShadyCSS.ApplyShim=Km;var LdG;LdG=window.ShadyCSS;_.Sx=IJ(function(t){t=H4s(OW(t));var E=WeT?t:hvZ(t),p=awr(E),U={x:"pan-x",y:"pan-y",none:"none",all:"auto"};t=function(){return E.call(this)||this};
_.u(t,E);t.prototype.created=function(){};
t.prototype.__attributeReaction=function(x,A,m){(this.__dataAttributes&&this.__dataAttributes[x]||x==="disable-upgrade")&&this.attributeChangedCallback(x,A,m,null)};
t.prototype.setAttribute=function(x,A){if(jGp&&!this._legacyForceObservedAttributes){var m=this.getAttribute(x);E.prototype.setAttribute.call(this,x,A);this.__attributeReaction(x,m,String(A))}else E.prototype.setAttribute.call(this,x,A)};
t.prototype.removeAttribute=function(x){if(jGp&&!this._legacyForceObservedAttributes){var A=this.getAttribute(x);E.prototype.removeAttribute.call(this,x);this.__attributeReaction(x,A,null)}else E.prototype.removeAttribute.call(this,x)};
t.prototype._enableProperties=function(){this.__isUpgradeDisabled||E.prototype._enableProperties.call(this)};
t.prototype._canApplyPropertyDefault=function(x){return E.prototype._canApplyPropertyDefault.call(this,x)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(x))};
t.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(E.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
t.prototype.attached=function(){};
t.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(E.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
t.prototype.detached=function(){};
t.prototype.attributeChangedCallback=function(x,A,m,b){A!==m&&(x=="disable-upgrade"?this.__isUpgradeDisabled&&m==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.yB)(this).isConnected&&this.connectedCallback()):(E.prototype.attributeChangedCallback.call(this,x,A,m,b),this.attributeChanged(x,A,m)))};
t.prototype.attributeChanged=function(){};
t.prototype._initializeProperties=function(){if(QO&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var x=Object.getPrototypeOf(this);x.hasOwnProperty("__hasRegisterFinished")||(this._registered(),x.__hasRegisterFinished=!0);E.prototype._initializeProperties.call(this);this.root=this;this.created();jGp&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
t.prototype._takeAttributes=function(){for(var x=this.attributes,A=0,m=x.length;A<m;A++){var b=x[A];this.__attributeReaction(b.name,null,b.value)}};
t.prototype._registered=function(){};
t.prototype.ready=function(){this._ensureAttributes();E.prototype.ready.call(this)};
t.prototype._ensureAttributes=function(){};
t.prototype._applyListeners=function(){};
t.prototype.serialize=function(x){return this._serializeValue(x)};
t.prototype.deserialize=function(x,A){return this._deserializeValue(x,A)};
t.prototype.reflectPropertyToAttribute=function(x,A,m){this._propertyToAttribute(x,A,m)};
t.prototype.serializeValueToAttribute=function(x,A,m){this._valueToNodeAttribute(m||this,x,A)};
t.prototype.extend=function(x,A){if(!x||!A)return x||A;for(var m=Object.getOwnPropertyNames(A),b=0,f=void 0;b<m.length&&(f=m[b]);b++){var B=Object.getOwnPropertyDescriptor(A,f);B&&Object.defineProperty(x,f,B)}return x};
t.prototype.mixin=function(x,A){for(var m in A)x[m]=A[m];return x};
t.prototype.chainObject=function(x,A){x&&A&&x!==A&&(x.__proto__=A);return x};
t.prototype.instanceTemplate=function(x){x=this.constructor._contentForTemplate(x);return document.importNode(x,!0)};
t.prototype.fire=function(x,A,m){m=m||{};A=A===null||A===void 0?{}:A;x=new Event(x,{bubbles:m.bubbles===void 0?!0:m.bubbles,cancelable:!!m.cancelable,composed:m.composed===void 0?!0:m.composed});x.detail=A;(0,_.yB)(m.node||this).dispatchEvent(x);return x};
t.prototype.listen=function(x,A,m){x=x||this;var b=this.__boundListeners||(this.__boundListeners=new WeakMap),f=b.get(x);f||(f={},b.set(x,f));b=A+m;f[b]||(f[b]=this._addMethodEventListenerToNode(x,A,m,this))};
t.prototype.unlisten=function(x,A,m){x=x||this;var b=this.__boundListeners&&this.__boundListeners.get(x);m=A+m;var f=b&&b[m];f&&(this._removeEventListenerFromNode(x,A,f),b[m]=null)};
t.prototype.setScrollDirection=function(x,A){_.wk(A||this,U[x]||"auto")};
t.prototype.$$=function(x){return this.root.querySelector(x)};
t.prototype.distributeContent=function(){var x=_.sm(this);window.ShadyDOM&&x.shadowRoot&&ShadyDOM.flush()};
t.prototype.getEffectiveChildNodes=function(){return _.sm(this).getEffectiveChildNodes()};
t.prototype.queryDistributedElements=function(x){return _.sm(this).queryDistributedElements(x)};
t.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(x){return x.nodeType===Node.ELEMENT_NODE})};
t.prototype.getEffectiveTextContent=function(){for(var x=this.getEffectiveChildNodes(),A=[],m=0,b;b=x[m];m++)b.nodeType!==Node.COMMENT_NODE&&A.push(b.textContent);return A.join("")};
t.prototype.queryEffectiveChildren=function(x){return(x=this.queryDistributedElements(x))&&x[0]};
t.prototype.queryAllEffectiveChildren=function(x){return this.queryDistributedElements(x)};
t.prototype.getContentChildNodes=function(x){return(x=this.root.querySelector(x||"slot"))?_.sm(x).getDistributedNodes():[]};
t.prototype.getContentChildren=function(x){return this.getContentChildNodes(x).filter(function(A){return A.nodeType===Node.ELEMENT_NODE})};
t.prototype.isLightDescendant=function(x){return this!==x&&(0,_.yB)(this).contains(x)&&(0,_.yB)(this).getRootNode()===(0,_.yB)(x).getRootNode()};
t.prototype.isLocalDescendant=function(x){return this.root===(0,_.yB)(x).getRootNode()};
t.prototype.scopeSubtree=function(x,A){return VMY(x,A===void 0?!1:A)};
t.prototype.getComputedStyleValue=function(x){return LdG.getComputedStyleValue(this,x)};
t.prototype.debounce=function(x,A,m){this._debouncers=this._debouncers||{};return this._debouncers[x]=_.G9(this._debouncers[x],m>0?_.JB.after(m):RE,A.bind(this))};
t.prototype.isDebouncerActive=function(x){this._debouncers=this._debouncers||{};x=this._debouncers[x];return!(!x||!x.isActive())};
t.prototype.flushDebouncer=function(x){this._debouncers=this._debouncers||{};(x=this._debouncers[x])&&x.flush()};
t.prototype.cancelDebouncer=function(x){this._debouncers=this._debouncers||{};(x=this._debouncers[x])&&x.cancel()};
t.prototype.async=function(x,A){return A>0?_.JB.run(x.bind(this),A):~RE.run(x.bind(this))};
t.prototype.cancelAsync=function(x){x<0?RE.cancel(~x):_.JB.cancel(x)};
t.prototype.create=function(x,A){x=document.createElement(x);if(A)if(x.setProperties)x.setProperties(A);else for(var m in A)x[m]=A[m];return x};
t.prototype.elementMatches=function(x,A){return khr(A||this,x)};
t.prototype.toggleAttribute=function(x,A){var m=this;arguments.length===3&&(m=arguments[2]);arguments.length==1&&(A=!m.hasAttribute(x));if(A)return(0,_.yB)(m).setAttribute(x,""),!0;(0,_.yB)(m).removeAttribute(x);return!1};
t.prototype.toggleClass=function(x,A,m){m=m||this;arguments.length==1&&(A=!m.classList.contains(x));A?m.classList.add(x):m.classList.remove(x)};
t.prototype.transform=function(x,A){A=A||this;A.style.webkitTransform=x;A.style.transform=x};
t.prototype.translate3d=function(x,A,m,b){this.transform("translate3d("+x+","+A+","+m+")",b||this)};
t.prototype.arrayDelete=function(x,A){if(Array.isArray(x)){if(A=x.indexOf(A),A>=0)return x.splice(A,1)}else if(A=$X(this,x).indexOf(A),A>=0)return this.splice(x,A,1);return null};
t.prototype._logger=function(x,A){Array.isArray(A)&&A.length===1&&Array.isArray(A[0])&&(A=A[0]);switch(x){case "log":case "warn":case "error":console[x].apply(console,_.KB(A))}};
t.prototype._log=function(){this._logger("log",_.t9.apply(0,arguments))};
t.prototype._warn=function(){this._logger("warn",_.t9.apply(0,arguments))};
t.prototype._error=function(){this._logger("error",_.t9.apply(0,arguments))};
t.prototype._logf=function(x){return["[%s::%s]",this.is,x].concat(_.KB(_.t9.apply(1,arguments)))};
_.aE.Object.defineProperties(t.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var x=(0,_.yB)(this).getRootNode();return x instanceof DocumentFragment?x.host:x}}});
_.aE.Object.defineProperties(t,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return jGp&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],RQ$(this.prototype)),this.__observedAttributes):p.call(this).concat("disable-upgrade")}}});
t.prototype.is="";return t});Polymer.FlattenedNodesObserver=CR3;Polymer.DomApi=IwG;Polymer.EventApi=oJ;Polymer.dom=_.sm;Polymer.dom.matchesSelector=khr;Polymer.dom.flush=_.Lm;Polymer.dom.addDebouncer=_.nm;Polymer.DirMixin=hvZ;Polymer.RenderStatus={beforeNextRender:_.B9t,afterNextRender:_.XE,flush:function(){for(;qtt.length||OR.length;)i1D(qtt),i1D(OR);ZM=!1}};Polymer.LegacyElementMixin=_.Sx;var PRX;PRX=DG._mutablePropertyChange;var Tnf={properties:{mutableData:Boolean},_shouldPropertyChange:function(t,E,p){return PRX(this,t,E,p,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(t,E,p){return PRX(this,t,E,p,!0)}};
Polymer.OptionalMutableDataBehavior=Tnf;var P3l={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},KAK={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},$q$=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},KAK),o8G=(0,_.Sx)(HTMLElement),ToD=function(t,E){t||console.warn("Polymer.Class requires `info` argument");E=E?E(o8G):o8G;E=vCJ(t,E,t.behaviors);E.is=E.prototype.is=
t.is;return E};Polymer.Class=ToD;Polymer.mixinBehaviors=function(t,E){return vCJ({},(0,_.Sx)(E),t)};
Polymer.GenerateClassFromInfo=vCJ;_.yx=function(t){var E=typeof t==="function"?t:_.yx.Class(t);t._legacyForceObservedAttributes&&(E.prototype._legacyForceObservedAttributes=t._legacyForceObservedAttributes);customElements.define(E.is,E);return E};
_.yx.Class=ToD;Polymer._polymerFn=_.yx;var Wd3=window.onLegacyPolymerFunctionDefinedCallback;Wd3&&Wd3();var WvE={templatize:function(t,E){this._templatizerTemplate=t;this.ctor=rk(t,this,{mutableData:!!E,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(t){return new this.ctor(t)},
modelForElement:function(t){return Ah_(this._templatizerTemplate,t)}};Polymer.Templatizer=WvE;_.ci=(0,_.Sx)(HTMLElement).prototype;Polymer.Base=_.ci;var Stj=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.ef=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.u(_.ef,PolymerFakeBaseClass);var FE=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.u(FE,PolymerFakeBaseClass);var chD=Symbol("Td"),MIY=[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 $dm=$dm||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},Kdm;(function(t){function E(D,W,K){var v=L.get(D);if(!v){if(!K)return;v=new a;L.set(D,v)}D=v.get(W);if(!D){if(!K)return;D=new a;v.set(W,D)}return D}
function p(D,W,K){if(U(D,W,K))return!0;W=Q(W);return W!==null?p(D,W,K):!1}
function U(D,W,K){W=E(W,K,!1);return W===void 0?!1:!!W.has(D)}
function x(D,W,K){if(U(D,W,K))return A(D,W,K);W=Q(W);if(W!==null)return x(D,W,K)}
function A(D,W,K){W=E(W,K,!1);if(W!==void 0)return W.get(D)}
function m(D,W){var K=b(D,W);D=Q(D);if(D===null)return K;var v=m(D,W);if(v.length<=0)return K;if(K.length<=0)return v;W=new F;D=[];K=_.M(K);for(var YL=K.next();!YL.done;YL=K.next())YL=YL.value,W.has(YL)||(W.add(YL),D.push(YL));K=_.M(v);for(v=K.next();!v.done;v=K.next())v=v.value,W.has(v)||(W.add(v),D.push(v));return D}
function b(D,W){D=E(D,W,!1);var K=[];D&&D.forEach(function(v,YL){return K.push(YL)});
return K}
function f(D){return D===void 0}
function B(D){return typeof D==="object"?D!==null:typeof D==="function"}
function R(D){return typeof D==="function"}
function V(D){return typeof D==="symbol"?D:String(D)}
function Q(D){var W=Object.getPrototypeOf(D);if(typeof D!=="function"||D===O||W!==O)return W;var K=Object.getPrototypeOf(D.prototype);if(K==null||K===Object.prototype)return W;K=K.constructor;return typeof K!=="function"||K===D?W:K}
function C(){function D(){this._keys=[];this._values=[];this._cache=W}
var W={};D.prototype={get size(){return this._keys.length},has:function(K){return K===this._cache?!0:this._find(K)>=0?(this._cache=K,!0):!1},
get:function(K){var v=this._find(K);if(v>=0)return this._cache=K,this._values[v]},
set:function(K,v){this.delete(K);this._keys.push(K);this._values.push(v);this._cache=K;return this},
delete:function(K){K=this._find(K);return K>=0?(this._keys.splice(K,1),this._values.splice(K,1),this._cache=W,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=W},
forEach:function(K){for(var v=this.size,YL=0;YL<v;++YL){var bY=this._keys[YL],kL=this._values[YL];this._cache=bY;K.call(this,kL,bY,this)}},
_find:function(K){for(var v=this._keys,YL=v.length,bY=0;bY<YL;++bY)if(v[bY]===K)return bY;return-1}};
return D}
function d(){function D(){this._map=new a}
D.prototype={get size(){return this._map.length},has:function(W){return this._map.has(W)},
add:function(W){this._map.set(W,W);return this},
delete:function(W){return this._map.delete(W)},
clear:function(){this._map.clear()},
forEach:function(W,K){this._map.forEach(W,K)}};
return D}
function I(){function D(){this._key=K()}
function W(j$,lY){for(var Tt=0;Tt<lY;++Tt)j$[Tt]=Math.random()*255|0}
function K(){do{if(YL)var j$=YL.randomBytes(16);else typeof Uint8Array==="function"?(j$=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(j$):W(j$,16)):(j$=Array(16),W(j$,16));j$[6]=j$[6]&79|64;j$[8]=j$[8]&191|128;for(var lY="",Tt=0;Tt<16;++Tt){var si=j$[Tt];if(Tt===4||Tt===6||Tt===8)lY+="-";si<16&&(lY+="0");lY+=si.toString(16).toLowerCase()}j$="@@WeakMap@@"+lY}while(bY.call(kL,j$));kL[j$]=!0;return j$}
function v(j$,lY){if(!bY.call(j$,R0)){if(!lY)return;Object.defineProperty(j$,R0,{value:Object.create(null)})}return j$[R0]}
var YL=typeof global!=="undefined"&&typeof $dm==="object"&&typeof require==="function"&&require("crypto"),bY=Object.prototype.hasOwnProperty,kL={},R0=K();D.prototype={has:function(j$){return(j$=v(j$,!1))?this._key in j$:!1},
get:function(j$){if(j$=v(j$,!1))return j$[this._key]},
set:function(j$,lY){v(j$,!0)[this._key]=lY;return this},
delete:function(j$){return(j$=v(j$,!1))&&this._key in j$?delete j$[this._key]:!1},
clear:function(){this._key=K()}};
return D}
var O=Object.getPrototypeOf(Function),a=typeof Map==="function"?Map:C(),F=typeof Set==="function"?Set:d(),L=new (typeof WeakMap==="function"?WeakMap:I());t.decorate=function(D,W,K,v){if(f(v)){if(f(K)){if(!Array.isArray(D))throw new TypeError;if(!R(W))throw new TypeError;for(K=D.length-1;K>=0;--K)if(v=(0,D[K])(W),!f(v)){if(!R(v))throw new TypeError;W=v}return W}if(!Array.isArray(D))throw new TypeError;if(!B(W))throw new TypeError;K=V(K);for(v=D.length-1;v>=0;--v)(0,D[v])(W,K)}else{if(Array.isArray(D))if(B(W)){if(f(K))throw new TypeError;
if(!B(v))throw new TypeError;}else throw new TypeError;else throw new TypeError;K=V(K);for(var YL=D.length-1;YL>=0;--YL){var bY=(0,D[YL])(W,K,v);if(!f(bY)){if(!B(bY))throw new TypeError;v=bY}}return v}};
t.metadata=function(D,W){return function(K,v){if(f(v)){if(!R(K))throw new TypeError;E(K,void 0,!0).set(D,W)}else{if(!B(K))throw new TypeError;v=V(v);E(K,v,!0).set(D,W)}}};
t.defineMetadata=function(D,W){var K;if(B(W))f(K)||(K=V(K));else throw new TypeError;E(W,K,!0).set("parameters",D)};
t.hasMetadata=function(D,W,K){if(B(W))f(K)||(K=V(K));else throw new TypeError;return p(D,W,K)};
t.hasOwnMetadata=function(D,W,K){if(B(W))f(K)||(K=V(K));else throw new TypeError;return U(D,W,K)};
t.getMetadata=function(D,W,K){if(B(W))f(K)||(K=V(K));else throw new TypeError;return x(D,W,K)};
t.getOwnMetadata=function(D,W,K){if(B(W))f(K)||(K=V(K));else throw new TypeError;return A(D,W,K)};
t.getMetadataKeys=function(D,W){if(B(D))f(W)||(W=V(W));else throw new TypeError;return m(D,W)};
t.getOwnMetadataKeys=function(D,W){if(B(D))f(W)||(W=V(W));else throw new TypeError;return b(D,W)};
t.deleteMetadata=function(D,W,K){if(B(W))f(K)||(K=V(K));else throw new TypeError;var v=E(W,K,!1);if(!f(v)){if(!v.delete(D))return!1;if(v.size>0)return!0;D=L.get(W);D.delete(K);if(D.size>0)return!0;L.delete(W);return!0}};
(function(D){if(typeof D.Reflect!=="undefined"){if(D.Reflect!==t)for(var W in t)D.Reflect[W]=t[W]}else D.Reflect=t})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(Kdm||(Kdm={}));var r0L=self;var v8p=[0,_.C1,_.kC,_.C1];var yXo=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(yXo,_.w6);var Slo=_.g6(yXo,[0,_.g9,_.Jh,v8p,_.kC,_.Ot]);var tep=[0,_.Zy,-3,_.Ot,_.g9,_.C1,_.oes,_.Zy,$Ls,Lor,w9,_.jM,_.C1,function(){return cXs},
_.kC],cXs=[0,_.Jh,function(){return tep},
_.g9,14,_.Zy];_.Oa(_.zx,_.PQ);_.Y=_.zx.prototype;_.Y.start=function(){this.stop();this.usingListeners_=!1;var t=E2W(this),E=psZ(this);t&&!E&&this.JSC$11588_win_.mozRequestAnimationFrame?(this.JSC$11588_id_=_.vu(this.JSC$11588_win_,"MozBeforePaint",this.callback_),this.JSC$11588_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11588_id_=t&&E?t.call(this.JSC$11588_win_,this.callback_):this.JSC$11588_win_.setTimeout(f_G(this.callback_),20)};
_.Y.stop=function(){if(this.isActive()){var t=E2W(this),E=psZ(this);t&&!E&&this.JSC$11588_win_.mozRequestAnimationFrame?Wu(this.JSC$11588_id_):t&&E?E.call(this.JSC$11588_win_,this.JSC$11588_id_):this.JSC$11588_win_.clearTimeout(this.JSC$11588_id_)}this.JSC$11588_id_=null};
_.Y.fire=function(){this.stop();this.JSC$11590_doAction_()};
_.Y.isActive=function(){return this.JSC$11588_id_!=null};
_.Y.JSC$11590_doAction_=function(){this.usingListeners_&&this.JSC$11588_id_&&Wu(this.JSC$11588_id_);this.JSC$11588_id_=null;this.JSC$11588_listener_.call(this.handler_,_.Z1())};
_.Y.disposeInternal=function(){this.stop();_.zx.superClass_.disposeInternal.call(this)};
var E2W=function(t){t=t.JSC$11588_win_;return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||null},psZ=function(t){t=t.JSC$11588_win_;
return t.cancelAnimationFrame||t.cancelRequestAnimationFrame||t.webkitCancelRequestAnimationFrame||t.mozCancelRequestAnimationFrame||t.oCancelRequestAnimationFrame||t.msCancelRequestAnimationFrame||null};_.F5=function(t,E,p){_.PQ.call(this);this.JSC$11591_listener_=p!=null?t.bind(p):t;this.JSC$11591_interval_=E;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11591_timer_=null};
_.u(_.F5,_.PQ);_.Y=_.F5.prototype;_.Y.fire=function(t){this.args_=arguments;this.JSC$11591_timer_||this.pauseCount_?this.shouldFire_=!0:UA4(this)};
_.Y.stop=function(){this.JSC$11591_timer_&&(_.Ui.clearTimeout(this.JSC$11591_timer_),this.JSC$11591_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.Y.pause=function(){this.pauseCount_++};
_.Y.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11591_timer_||(this.shouldFire_=!1,UA4(this))};
_.Y.disposeInternal=function(){_.PQ.prototype.disposeInternal.call(this);this.stop()};
var UA4=function(t){t.JSC$11591_timer_=mm(function(){t.JSC$11591_timer_=null;t.shouldFire_&&!t.pauseCount_&&(t.shouldFire_=!1,UA4(t))},t.JSC$11591_interval_);
var E=t.args_;t.args_=null;t.JSC$11591_listener_.apply(null,E)};var xA3=function(t,E){this.childIterator_=t[_.Ui.Symbol.iterator]();this.mapFn_=E};
xA3.prototype[Symbol.iterator]=function(){return this};
xA3.prototype.next=function(){var t=this.childIterator_.next();return{value:t.done?void 0:this.mapFn_.call(void 0,t.value),done:t.done}};
var AJ3=function(t,E){return new xA3(t,E)};var Yno={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 mBt=function(t){var E=MeW(t);if(!E)throw Error("Xd`"+t);return E},MeW=function(t){var E={};
t=String(t);var p=t.charAt(0)=="#"?t:"#"+t;if(mAr.test(p))return E.hex=SdE(p),E.type="hex",E;p=HaY(t);return p.length?(E.hex=nfY(p[0],p[1],p[2]),E.type="rgb",E):Yno&&(t=Yno[t.toLowerCase()])?(E.hex=t,E.type="named",E):null},byp=/#(.)(.)(.)/,SdE=function(t){if(!mAr.test(t))throw Error("Zd`"+t);
t.length==4&&(t=t.replace(byp,"#$1$1$2$2$3$3"));return t.toLowerCase()},baJ=function(t){t=SdE(t);
t=parseInt(t.slice(1),16);return[t>>16,t>>8&255,t&255]},nfY=function(t,E,p){t=Number(t);
E=Number(E);p=Number(p);if(t!=(t&255)||E!=(E&255)||p!=(p&255))throw Error("$d`"+t+"`"+E+"`"+p);E=t<<16|E<<8|p;return t<16?"#"+(16777216|E).toString(16).slice(1):"#"+E.toString(16)},mAr=/^#(?:[0-9a-f]{3}){1,2}$/i,iyf=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,HaY=function(t){var E=t.match(iyf);
if(E){t=Number(E[1]);var p=Number(E[2]);E=Number(E[3]);if(t>=0&&t<=255&&p>=0&&p<=255&&E>=0&&E<=255)return[t,p,E]}return[]};var qn3={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},zd=qn3;zd=qn3;var hP_,HyW,f4m;hP_=function(t,E){switch(E){case 1:return t%4!=0||t%100==0&&t%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
HyW=function(t,E,p,U,x){t=new Date(t,E,p);x=x||0;return t.valueOf()+(((U!==void 0?U:3)-x+7)%7-((t.getDay()+6)%7-x+7)%7)*864E5};
_.tl=function(t,E,p){typeof t==="number"?(this.date=f4m(t,E||0,p||1),B4W(this,p||1)):_.o0(t)?(this.date=f4m(t.getFullYear(),t.getMonth(),t.getDate()),B4W(this,t.getDate())):(this.date=new Date(_.Z1()),t=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),B4W(this,t))};
f4m=function(t,E,p){E=new Date(t,E,p);t>=0&&t<100&&E.setFullYear(E.getFullYear()-1900);return E};
_.Y=_.tl.prototype;_.Y.firstDayOfWeek_=zd.FIRSTDAYOFWEEK;_.Y.firstWeekCutOffDay_=zd.FIRSTWEEKCUTOFFDAY;_.Y.clone=function(){var t=new _.tl(this.date);t.firstDayOfWeek_=this.firstDayOfWeek_;t.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return t};
_.Y.getFullYear=function(){return this.date.getFullYear()};
_.Y.getYear=function(){return this.getFullYear()};
_.Y.getMonth=function(){return this.date.getMonth()};
_.Y.getDate=function(){return this.date.getDate()};
_.Y.getTime=function(){return this.date.getTime()};
_.Y.getDay=function(){return this.date.getDay()};
_.Y.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.Y.getUTCMonth=function(){return this.date.getUTCMonth()};
_.Y.getUTCDate=function(){return this.date.getUTCDate()};
_.Y.getUTCDay=function(){return this.date.getDay()};
_.Y.getUTCHours=function(){return this.date.getUTCHours()};
_.Y.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.Y.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.Y.set=function(t){this.date=new Date(t.getFullYear(),t.getMonth(),t.getDate())};
_.Y.setFullYear=function(t){this.date.setFullYear(t)};
_.Y.setYear=function(t){this.setFullYear(t)};
_.Y.setMonth=function(t){this.date.setMonth(t)};
_.Y.setDate=function(t){this.date.setDate(t)};
_.Y.setTime=function(t){this.date.setTime(t)};
_.Y.setUTCFullYear=function(t){this.date.setUTCFullYear(t)};
_.Y.setUTCMonth=function(t){this.date.setUTCMonth(t)};
_.Y.setUTCDate=function(t){this.date.setUTCDate(t)};
_.Y.add=function(t){if(t.years||t.months){var E=this.getMonth()+t.months+t.years*12,p=this.getYear()+Math.floor(E/12);E%=12;E<0&&(E+=12);var U=Math.min(hP_(p,E),this.getDate());this.setDate(1);this.setFullYear(p);this.setMonth(E);this.setDate(U)}t.days&&(p=this.getYear(),E=p>=0&&p<=99?-1900:0,t=new Date((new Date(p,this.getMonth(),this.getDate(),12)).getTime()+t.days*864E5),this.setDate(1),this.setFullYear(t.getFullYear()+E),this.setMonth(t.getMonth()),this.setDate(t.getDate()),B4W(this,t.getDate()))};
_.Y.JSC$11604_toIsoString=function(t){var E=this.getFullYear(),p=E<0?"-":E>=1E4?"+":"";return[p+_.l3(Math.abs(E),p?6:4),_.l3(this.getMonth()+1,2),_.l3(this.getDate(),2)].join(t?"-":"")};
_.Y.equals=function(t){return!(!t||this.getYear()!=t.getYear()||this.getMonth()!=t.getMonth()||this.getDate()!=t.getDate())};
_.Y.toString=function(){return this.JSC$11604_toIsoString()};
var B4W=function(t,E){t.getDate()!=E&&t.date.setUTCHours(t.date.getUTCHours()+(t.getDate()<E?1:-1))};
_.tl.prototype.valueOf=function(){return this.date.valueOf()};var pQ=function(t,E,p,U,x){this.reversed=!!E;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!p;t&&Ec(this,t,U);this.depth=x!=void 0?x:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.Oa(pQ,er);var Ec=function(t,E,p,U){if(t.node=E)t.tagType=typeof p==="number"?p:t.node.nodeType!=1?0:t.reversed?-1:1;typeof U==="number"&&(t.depth=U)};
_.Y=pQ.prototype;_.Y.JSC$11619_copyFrom=function(t){this.node=t.node;this.tagType=t.tagType;this.depth=t.depth;this.reversed=t.reversed;this.constrained=t.constrained};
_.Y.clone=function(){return new pQ(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.Y.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return Fc;var t=this.node;var E=this.reversed?-1:1;if(this.tagType==E){var p=this.reversed?t.lastChild:t.firstChild;p?Ec(this,p):Ec(this,t,E*-1)}else(p=this.reversed?t.previousSibling:t.nextSibling)?Ec(this,p):Ec(this,t.parentNode,E*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(t=this.node)?z4(t):Fc};
_.Y.equals=function(t){return t.node==this.node&&(!this.node||t.tagType==this.tagType)};
_.Y.splice=function(t){var E=this.node,p=this.reversed?1:-1;this.tagType==p&&(this.tagType=p*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;pQ.prototype.next.call(this);this.reversed=!this.reversed;p=_.LO(arguments[0])?arguments[0]:arguments;for(var U=p.length-1;U>=0;U--)_.qh(p[U],E);_.ng(E)};var ws3=function(){},Uc=function(t){for(var E=[],p=t.getTextRangeCount(),U=0;U<p;U++)E.push(t.getTextRange(U));
return E};
ws3.prototype.isReversed=function(){return!1};
ws3.prototype.getWindow=function(){return yX(_.S2(this.JSC$11621_getStartNode()))};
var RU3=function(t,E){pQ.call(this,t,E,!0)};
_.Oa(RU3,pQ);var xF=function(t,E,p,U,x){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!x;if(t){this.startNode_=t;this.startOffset_=E;this.endNode_=p;this.endOffset_=U;if(t.nodeType==1&&t.tagName!="BR")if(t=t.childNodes,E=t[E])this.startNode_=E,this.startOffset_=0;else{t.length&&(this.startNode_=_.hD(t));var A=!0}p.nodeType==1&&((this.endNode_=p.childNodes[U])?this.endOffset_=0:this.endNode_=p)}pQ.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);A&&this.next()};
_.Oa(xF,RU3);_.Y=xF.prototype;_.Y.JSC$11627_getStartNode=function(){return this.startNode_};
_.Y.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)};
_.Y.next=function(){return this.isLast()?Fc:xF.superClass_.next.call(this)};
_.Y.JSC$11619_copyFrom=function(t){this.startNode_=t.startNode_;this.endNode_=t.endNode_;this.startOffset_=t.startOffset_;this.endOffset_=t.endOffset_;this.isReversed_=t.isReversed_;xF.superClass_.JSC$11619_copyFrom.call(this,t)};
_.Y.clone=function(){var t=new xF(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);t.JSC$11619_copyFrom(this);return t};fSl.prototype.__iterator__=function(){return new xF(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var DM=function(t){this.range_=t};
_.Oa(DM,fSl);var Ver=function(t){var E=_.S2(t).createRange();if(t.nodeType==3)E.setStart(t,0),E.setEnd(t,t.length);else if(mS(t)||t.nodeType==3){for(var p,U=t;(p=U.firstChild)&&(mS(p)||p.nodeType==3);)U=p;E.setStart(U,0);for(U=t;(p=U.lastChild)&&(mS(p)||p.nodeType==3);)U=p;E.setEnd(U,U.nodeType==1?U.childNodes.length:U.length)}else p=t.parentNode,t=Array.prototype.indexOf.call(p.childNodes,t),E.setStart(p,t),E.setEnd(p,t+1);return E},QCf=function(t,E,p,U){var x=_.S2(t).createRange();
x.setStart(t,E);x.setEnd(p,U);return x};
_.Y=DM.prototype;_.Y.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.Y.getContainer=function(){return this.range_.commonAncestorContainer};
_.Y.compareBrowserRangeEndpoints=function(t,E,p){return this.range_.compareBoundaryPoints(p==1?E==1?_.Ui.Range.START_TO_START:_.Ui.Range.START_TO_END:E==1?_.Ui.Range.END_TO_START:_.Ui.Range.END_TO_END,t)};
_.Y.isCollapsed=function(){return this.range_.collapsed};
_.Y.select=function(t){this.selectInternal(yX(_.S2(this.range_.startContainer)).getSelection(),t)};
_.Y.selectInternal=function(t){t.removeAllRanges();t.addRange(this.range_)};
_.Y.insertNode=function(t,E){var p=this.range_.cloneRange();p.collapse(E);p.insertNode(t);p.detach();return t};
_.Y.collapse=function(t){this.range_.collapse(t)};_.Oa(ln,DM);ln.prototype.selectInternal=function(t,E){!E||this.isCollapsed()?ln.superClass_.selectInternal.call(this,t,E):(t.collapse(this.range_.endContainer,this.range_.endOffset),t.extend(this.range_.startContainer,this.range_.startOffset))};_.Oa(Gx,DM);Gx.prototype.compareBrowserRangeEndpoints=function(t,E,p){return Gx.superClass_.compareBrowserRangeEndpoints.call(this,t,E,p)};
Gx.prototype.selectInternal=function(t,E){E?t.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):t.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Al=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},Qqj;
_.Oa(Al,ws3);Qqj=function(t,E){var p=new Al;p.browserRangeWrapper_=t;p.isReversed_=!!E;return p};
_.Czp=function(t){t=_.no?new Gx(Ver(t)):_.Ne?new ln(Ver(t)):new DM(Ver(t));return Qqj(t)};
_.P6=function(t,E,p,U){var x=new Al;x.isReversed_=VI_(t,E,p,U);if(_.Ic(t)&&!mS(t)){var A=t.parentNode;E=Array.prototype.indexOf.call(A.childNodes,t);t=A}_.Ic(p)&&!mS(p)&&(A=p.parentNode,U=Array.prototype.indexOf.call(A.childNodes,p),p=A);x.isReversed_?(x.startNode_=p,x.startOffset_=U,x.endNode_=t,x.endOffset_=E):(x.startNode_=t,x.startOffset_=E,x.endNode_=p,x.endOffset_=U);return x};
_.Y=Al.prototype;_.Y.clone=function(){var t=new Al;t.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();t.startNode_=this.startNode_;t.startOffset_=this.startOffset_;t.endNode_=this.endNode_;t.endOffset_=this.endOffset_;t.isReversed_=this.isReversed_;return t};
_.Y.JSC$11621_getType=function(){return"text"};
_.Y.getBrowserRangeObject=function(){return YF(this).range_};
_.Y.getTextRangeCount=function(){return 1};
_.Y.getTextRange=function(){return this};
var YF=function(t){var E;if(!(E=t.browserRangeWrapper_)){E=t.JSC$11621_getStartNode();var p=t.JSC$11621_getStartOffset(),U=t.JSC$11621_getEndNode(),x=t.JSC$11621_getEndOffset();E=_.no?new Gx(QCf(E,p,U,x)):_.Ne?new ln(QCf(E,p,U,x)):new DM(QCf(E,p,U,x));E=t.browserRangeWrapper_=E}return E};
_.Y=Al.prototype;_.Y.getContainer=function(){return YF(this).getContainer()};
_.Y.JSC$11621_getStartNode=function(){return this.startNode_||(this.startNode_=YF(this).range_.startContainer)};
_.Y.JSC$11621_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=YF(this).range_.startOffset};
_.Y.JSC$11621_getEndNode=function(){return this.endNode_||(this.endNode_=YF(this).range_.endContainer)};
_.Y.JSC$11621_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=YF(this).range_.endOffset};
_.Y.isReversed=function(){return this.isReversed_};
_.Y.JSC$11621_containsRange=function(t,E){if(t.JSC$11621_getType()=="text"){var p=YF(this);t=YF(t);E=E&&!t.isCollapsed();t=t.range_;p=E?p.compareBrowserRangeEndpoints(t,0,1)>=0&&p.compareBrowserRangeEndpoints(t,1,0)<=0:p.compareBrowserRangeEndpoints(t,0,0)>=0&&p.compareBrowserRangeEndpoints(t,1,1)<=0}else p=!1;return p};
_.Y.isCollapsed=function(){return YF(this).isCollapsed()};
_.Y.JSC$11621_getText=function(){return YF(this).range_.toString()};
_.Y.__iterator__=function(){return new xF(this.JSC$11621_getStartNode(),this.JSC$11621_getStartOffset(),this.JSC$11621_getEndNode(),this.JSC$11621_getEndOffset())};
_.Y.select=function(){YF(this).select(this.isReversed_)};
_.Y.JSC$11621_removeContents=function(){var t=YF(this).range_;t.extractContents();if(t.startContainer.hasChildNodes()&&(t=t.startContainer.childNodes[t.startOffset])){var E=t.previousSibling;Yhf(t)==""&&_.ng(t);E&&Yhf(E)==""&&_.ng(E)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.Y.insertNode=function(t,E){t=YF(this).insertNode(t,E);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return t};
_.Y.collapse=function(t){t=this.isReversed()?!t:t;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(t);t?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var jC4=function(){};
_.Oa(jC4,ws3);jC4.prototype.JSC$11621_containsRange=function(t,E){var p=Uc(this);t=Uc(t);return(E?ur:_.NjO)(t,function(U){return ur(p,function(x){return x.JSC$11621_containsRange(U,E)})})};
jC4.prototype.insertNode=function(t,E){E?_.ik(t,this.JSC$11621_getStartNode()):_.qh(t,this.JSC$11621_getEndNode());return t};var rJX,kOf=s8().JSC$9602_document_.documentElement;rJX=kOf.requestFullscreen?"fullscreenchange":kOf.webkitRequestFullscreen?"webkitfullscreenchange":kOf.mozRequestFullScreen?"mozfullscreenchange":kOf.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var Lo=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.Oa(Lo,jC4);_.Y=Lo.prototype;_.Y.clone=function(){var t=new Lo;t.browserRanges_=_.Dl(this.browserRanges_);return t};
_.Y.JSC$11621_getType=function(){return"mutli"};
_.Y.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.Y.getTextRangeCount=function(){return this.browserRanges_.length};
_.Y.getTextRange=function(t){this.ranges_[t]||(this.ranges_[t]=Qqj(BFO(this.browserRanges_[t])));return this.ranges_[t]};
_.Y.getContainer=function(){if(!this.container_){for(var t=[],E=this.getTextRangeCount(),p=0;p<E;p++)t.push(this.getTextRange(p).getContainer());this.container_=cCr.apply(null,t)}return this.container_};
var MU=function(t){t.sortedRanges_||(t.sortedRanges_=Uc(t),t.sortedRanges_.sort(function(E,p){var U=E.JSC$11621_getStartNode();E=E.JSC$11621_getStartOffset();var x=p.JSC$11621_getStartNode();p=p.JSC$11621_getStartOffset();return U==x&&E==p?0:VI_(U,E,x,p)?1:-1}));
return t.sortedRanges_};
_.Y=Lo.prototype;_.Y.JSC$11621_getStartNode=function(){return MU(this)[0].JSC$11621_getStartNode()};
_.Y.JSC$11621_getStartOffset=function(){return MU(this)[0].JSC$11621_getStartOffset()};
_.Y.JSC$11621_getEndNode=function(){return _.hD(MU(this)).JSC$11621_getEndNode()};
_.Y.JSC$11621_getEndOffset=function(){return _.hD(MU(this)).JSC$11621_getEndOffset()};
_.Y.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.Y.JSC$11621_getText=function(){return Uc(this).map(function(t){return t.JSC$11621_getText()}).join("")};
_.Y.__iterator__=function(){return new m5(this)};
_.Y.select=function(){var t=this.getWindow().getSelection();t.removeAllRanges();for(var E=this.getTextRangeCount(),p=0;p<E;p++)t.addRange(this.getTextRange(p).getBrowserRangeObject())};
_.Y.JSC$11621_removeContents=function(){Uc(this).forEach(function(t){t.JSC$11621_removeContents()})};
_.Y.collapse=function(t){if(!this.isCollapsed()){var E=t?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;E.collapse(t);this.ranges_=[E];this.sortedRanges_=[E];this.browserRanges_=[E.getBrowserRangeObject()]}};
var m5=function(t){this.iterators_=null;this.currentIdx_=0;t&&(this.iterators_=MU(t).map(function(E){return _.D_r(E)}));
pQ.call(this,t?this.JSC$11627_getStartNode():null,!1,!0)};
_.Oa(m5,RU3);_.Y=m5.prototype;_.Y.JSC$11627_getStartNode=function(){return this.iterators_[0].JSC$11627_getStartNode()};
_.Y.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.Y.next=function(){for(;this.currentIdx_<this.iterators_.length;){var t=this.iterators_[this.currentIdx_],E=t.next();if(E.done)this.currentIdx_++;else return Ec(this,t.node,t.tagType,t.depth),E}return Fc};
_.Y.JSC$11619_copyFrom=function(t){this.iterators_=_.Dl(t.iterators_);m5.superClass_.JSC$11619_copyFrom.call(this,t)};
_.Y.clone=function(){var t=new m5(null);t.JSC$11619_copyFrom(this);return t};var b9=function(){_.UH.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.Tg)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.Tg)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.Tg)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.Tg)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.Tg)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.Tg)(this.dispatchProgressEvent_,this)};
_.Oa(b9,_.UH);b9.prototype.abort=function(){try{this.reader_.abort()}catch(t){throw new $GT(t,"aborting read");}};
b9.prototype.getError=function(){return this.reader_.error&&new $GT(this.reader_.error,"reading file")};
b9.prototype.dispatchProgressEvent_=function(t){this.dispatchEvent(new PJj(t,this))};
b9.prototype.disposeInternal=function(){b9.superClass_.disposeInternal.call(this);delete this.reader_};
var u5s=function(t){var E=new b9,p=dA4(E);E.reader_.readAsArrayBuffer(t);return p},JJT=function(t){var E=new b9,p=dA4(E);
E.reader_.readAsDataURL(t);return p},dA4=function(t){var E=new yy;
t.listen("loadend",_.GF(function(p,U){var x=U.reader_.result,A=U.getError();x==null||A?p.errback(A):p.callback(x);U.dispose()},E,t));
return E};var i9=function(){_.UH.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11661_eventHandler_=new _.Kg(this);this.JSC$11661_isInitialized_=!1};
_.Oa(i9,_.UH);var I4r=new _.SI("d"),g20=new _.SI("beforedragstart"),Zyr=new _.SI("dragstart"),Oyp=new _.SI("beforedragmove"),Xsf=new _.SI("dragmove"),hUf=new _.SI("beforedragend"),a40=new _.SI("dragend"),eUW=new _.SI("e");i9.prototype.isDragging=function(){return!!this.JSC$11661_dragger_};
var Fhf=function(t,E){E.dlgGrowthDirection_=0;E.dlgDragHoverClass_=void 0;E.dlgDragPermission=0;t.dragLists_.push(E)},zU4=function(t,E){t.getHandleForDragItem_=E};
i9.prototype.init=function(){if(!this.JSC$11661_isInitialized_){for(var t=this.dragLists_.length,E=0;E<t;E++)for(var p=_.Hf(this.dragLists_[E]),U=p.length,x=0;x<U;++x){var A=p[x],m=this.getHandleForDragItem_(A),b=_.W8(m);this.dragItemForHandle_[b]=A;this.dragItemHoverClasses_&&(this.JSC$11661_eventHandler_.listen(A,"mouseover",this.handleDragItemMouseover_),this.JSC$11661_eventHandler_.listen(A,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11661_eventHandler_.listen(m,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11661_eventHandler_.listen(m,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(A);this.JSC$11661_eventHandler_.listen(m,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11661_isInitialized_=!0}};
i9.prototype.disposeInternal=function(){this.JSC$11661_eventHandler_.dispose();for(var t=this.dragLists_.length,E=0;E<t;E++){var p=this.dragLists_[E];p.dlgGrowthDirection_=void 0;p.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;l40(this);i9.superClass_.disposeInternal.call(this)};
var GOX=function(t,E){for(var p=t.dragLists_.length,U=0;U<p;U++){var x=t.dragLists_[U];x.dlgBounds_=jq8(x)}p=t.dragItems_.length;for(U=0;U<p;U++)x=t.dragItems_[U],x!=E&&(x.dlgBounds_=jq8(x))};
_.Y=i9.prototype;
_.Y.handlePotentialDragStart_=function(t){var E=_.W8(t.currentTarget);E=this.dragItemForHandle_[E];if(E.parentElement.dlgDragPermission!=2){this.currDragItem_=E;a:{E=this.currDragItem_;for(var p=E.cloneNode(!0),U=Ny("TEXTAREA",E),x=Ny("TEXTAREA",p),A=0;A<U.length;A++)x[A].value=U[A].value;switch(E.tagName){case "TR":E=_.YM("TABLE",null,_.YM("TBODY",null,p));break a;case "TD":case "TH":E=_.YM("TABLE",null,_.YM("TBODY",null,_.YM("TR",null,p)));break a;case "TEXTAREA":p.value=E.value;default:E=p;break a}E=
void 0}this.draggerEl_=E;this.draggerElClasses_&&JU(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.S2(this.currDragItem_).body.appendChild(this.draggerEl_);p=_.cx(this.currDragItem_);E=this.draggerEl_;U=_.cx(E);if(p instanceof _.gg){var m=p.y;p=p.x}Rq(E,E.offsetLeft+(p-U.x),E.offsetTop+(Number(m)-U.y));this.JSC$11661_dragger_=new _.qC(this.draggerEl_);_.tQ3(this.JSC$11661_dragger_,this.hysteresisDistance_);
_.vu(this.JSC$11661_dragger_,"start",this.handleDragStart_,!1,this);_.vu(this.JSC$11661_dragger_,"end",this.handleDragEnd_,!1,this);_.vu(this.JSC$11661_dragger_,"earlycancel",this.JSC$11663_cleanup_,!1,this);this.dispatchEvent(new qU(I4r,this,t,this.currDragItem_,this.draggerEl_,this.JSC$11661_dragger_));this.JSC$11661_dragger_.startDrag(t)}};
_.Y.handleDragStart_=function(t){if(this.dispatchEvent(new qU(g20,this,t.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.vs0(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?JU(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var E=Hgp(this.draggerEl_);this.draggerEl_.halfWidth=E.width/2;this.draggerEl_.halfHeight=E.height/2;E=this.draggerEl_.getBoundingClientRect();
var p=t.clientY,U=Ex3(this.JSC$11661_dragger_,t.clientX);if(U>E.right){var x=this.currDragItem_.getBoundingClientRect();this.JSC$11661_dragger_.deltaX=U-(U-x.left)/x.width*E.width}p=pVo(this.JSC$11661_dragger_,p);p>E.bottom&&(this.JSC$11661_dragger_.deltaY+=p-E.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";GOX(this,this.currDragItem_);this.currDragItem_.style.display="";_.vu(this.JSC$11661_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new qU(Zyr,
this,t.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11661_dragger_))}else t.preventDefault(),this.JSC$11663_cleanup_()};
_.Y.handleDragMove_=function(t){var E=_.cx(this.draggerEl_);E=new _.gg(E.x+this.draggerEl_.halfWidth,E.y+this.draggerEl_.halfHeight);a:{var p=null;if(this.currDragItem_.style.display!="none"){p=this.currDragItem_.parentNode;var U=jq8(p);if(n2r(E,U))break a}U=this.dragLists_.length;for(var x=0;x<U;x++){var A=this.dragLists_[x];if(A!=p&&n2r(E,A.dlgBounds_)){p=A;break a}}p=null}if(p){if(p==null)throw Error("ae");U=0;x=!1;A=void 0;switch(p.dlgGrowthDirection_){case 0:U=E.y;var m=N44;var b=DAT;break;case 4:x=
!0;case 2:U=E.x;m=sC4;b=DAT;break;case 5:x=!0;case 3:U=E.x,m=Lhs,b=Pzr}for(var f=null,B,R=_.Hf(p),V=R.length,Q=0;Q<V;Q++){var C=R[Q];if(C!=this.currDragItem_){var d=m(C.dlgBounds_);if(x){var I=T4m(C,E);A===void 0&&(A=I);b(U,d)&&(B==void 0||I<A||I==A&&(b(d,B)||d==B))&&(f=C,B=d);I<A&&(A=I)}else b(U,d)&&(B==void 0||b(d,B))&&(f=C,B=d)}}m=f!==null&&T4m(f,E)>A?null:f}else m=null;if(!this.dispatchEvent(new qU(Oyp,this,t,this.currDragItem_,this.draggerEl_,this.JSC$11661_dragger_,E,p,m)))return!1;if(p&&p.dlgDragPermission!=
1)this.currDragItem_.parentNode==p&&_.vs0(this.currDragItem_)==m||p.insertBefore(this.currDragItem_,m),this.currDragItem_.style.display="",p.dlgDragHoverClass_&&_.RC(p,p.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",b=this.dragLists_.length,B=0;B<b;B++)U=this.dragLists_[B],U.dlgDragHoverClass_&&_.w4(U,U.dlgDragHoverClass_);p!=this.currHoverList_&&(this.currHoverList_=p,GOX(this,this.currDragItem_));this.dispatchEvent(new qU(Xsf,this,t,this.currDragItem_,this.draggerEl_,this.JSC$11661_dragger_,
E,p,m));return!1};
_.Y.JSC$11663_cleanup_=function(){l40(this);this.JSC$11661_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var t=this.dragLists_.length,E=0;E<t;E++)this.dragLists_[E].dlgBounds_=null;t=this.dragItems_.length;for(E=0;E<t;E++)this.dragItems_[E].dlgBounds_=null};
_.Y.handleDragEnd_=function(t){if(!this.dispatchEvent(new qU(hUf,this,t,this.currDragItem_,this.draggerEl_,this.JSC$11661_dragger_)))return!1;l40(this);this.dispatchEvent(new qU(a40,this,t,this.currDragItem_,this.draggerEl_,this.JSC$11661_dragger_));this.JSC$11663_cleanup_();return!0};
var l40=function(t){_.wi(t.JSC$11661_dragger_);var E=t.draggerEl_&&t.draggerEl_.parentElement;t.draggerEl_&&_.ng(t.draggerEl_);t.currDragItem_&&t.currDragItem_.style.display=="none"&&(t.origList_.insertBefore(t.currDragItem_,t.origNextItem_),t.currDragItem_.style.display="");t.currDragItemClasses_&&t.currDragItem_?U0p(t.currDragItem_,t.currDragItemClasses_||[]):t.currDragItem_&&(t.currDragItem_.style.visibility="");for(var p=t.dragLists_.length,U=0;U<p;U++){var x=t.dragLists_[U];x.dlgDragHoverClass_&&
_.w4(x,x.dlgDragHoverClass_)}E&&t.dispatchEvent(new qU(eUW,t,null,t.currDragItem_,t.draggerEl_,t.JSC$11661_dragger_))};
_.Y=i9.prototype;_.Y.getHandleForDragItem_=function(t){return t};
_.Y.handleDragItemMouseover_=function(t){JU(t.currentTarget,this.dragItemHoverClasses_||[])};
_.Y.handleDragItemMouseout_=function(t){U0p(t.currentTarget,this.dragItemHoverClasses_||[])};
_.Y.handleDragItemHandleMouseover_=function(t){JU(t.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.Y.handleDragItemHandleMouseout_=function(t){U0p(t.currentTarget,this.dragItemHandleHoverClasses_||[])};
var n2r=function(t,E){return t.x>E.left&&t.x<E.left+E.width&&t.y>E.top&&t.y<E.top+E.height},T4m=function(t,E){t=t.dlgBounds_;
return Math.abs(E.y-(t.top+(t.height-1)/2))},N44=function(t){return t.top+t.height-1},sC4=function(t){return t.left+t.width-1},Lhs=function(t){return t.left||0},DAT=function(t,E){return t<E},Pzr=function(t,E){return t>E},qU=function(t,E,p,U,x,A){_.dV.call(this,t);
this.event=p;this.currDragItem=U;this.draggerEl=x;this.JSC$11665_dragger=A};
_.Oa(qU,_.dV);_.Oa(W6,_.PQ);var o20=new _.gg(0,0);W6.prototype.JSC$11669_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
W6.prototype.JSC$11669_onMouseMove=function(t){var E=this.containerIsActuallyContent_?o20:D_(s8(this.containerNode_)),p=this.horizontalScrolling_?this.calculateScrollDelta(t.clientX+E.x,this.scrollBounds_.left,this.scrollBounds_.width):0,U=this.calculateScrollDelta(t.clientY+E.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=p;this.scrollDelta_.y=U;!(p=!p&&!U)&&(p=this.constrainScroll_)&&(p=t.clientX+E.x,t=t.clientY+E.y,E=this.containerBounds_,p=!(E.left<=p&&E.left+E.width>=
p&&E.top<=t&&E.top+E.height>=t));p?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
W6.prototype.calculateScrollDelta=function(t,E,p){var U=0;t<E?U=-8:t>E+p&&(U=8);return U};
W6.prototype.disposeInternal=function(){W6.superClass_.disposeInternal.call(this);this.JSC$11667_eventHandler_.dispose();this.scrollTimer_.dispose()};var Whp={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"}}},H$=Whp;H$=Whp;var fQ={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 $As=function(){},ff=function(t){if(typeof t=="number"){var E=new $As;
E.standardOffset_=t;var p=t;if(p==0)p="Etc/GMT";else{var U=["Etc/GMT",p<0?"-":"+"];p=Math.abs(p);U.push(Math.floor(p/60)%100);p%=60;p!=0&&U.push(":",_.l3(p,2));p=U.join("")}E.timeZoneId_=p;p=t;p==0?p="UTC":(U=["UTC",p<0?"+":"-"],p=Math.abs(p),U.push(Math.floor(p/60)%100),p%=60,p!=0&&U.push(":",p),p=U.join(""));t=Khm(t);E.tzNames_=[p,p];E.tzNamesExt_={STD_LONG_NAME_GMT:t,STD_GENERIC_LOCATION:t};E.transitions_=[];return E}E=new $As;E.timeZoneId_=t.id;E.standardOffset_=-t.std_offset;E.tzNames_=t.names;
E.tzNamesExt_=t.names_ext;E.transitions_=t.transitions;return E},Khm=function(t){var E=["GMT"];
E.push(t<=0?"+":"-");t=Math.abs(t);E.push(_.l3(Math.floor(t/60)%100,2),":",_.l3(t%60,2));return E.join("")},v2s=function(t,E){E=Date.UTC(E.getUTCFullYear(),E.getUTCMonth(),E.getUTCDate(),E.getUTCHours(),E.getUTCMinutes())/36E5;
for(var p=0;p<t.transitions_.length&&E>=t.transitions_[p];)p+=2;return p==0?0:t.transitions_[p-1]},yJr=function(t,E){t=t.standardOffset_-v2s(t,E);
return t===-1440?0:t};var BL=function(t,E){this.patternParts_=[];this.JSC$11680_dateTimeSymbols_=E||zd;typeof t=="number"?Sn0(this,t):cJp(this,t)},two=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],B$=function(t){return t.getHours?t.getHours():0},cJp=function(t,E){for(cTL&&(E=E.replace(/\u200f/g,""));E;){for(var p=E,U=0;U<two.length;++U){var x=E.match(two[U]);
if(x){var A=x[0];E=E.substring(A.length);U==0&&(A=="''"?A="'":(A=A.substring(1,x[1]=="'"?A.length-1:A.length),A=A.replace(/''/g,"'")));t.patternParts_.push({text:A,type:U});break}}if(p===E)throw Error("be`"+E);}};
BL.prototype.format=function(t,E){if(!t)throw Error("ce");var p=E?(t.getTimezoneOffset()-yJr(E,t))*6E4:0,U=p?new Date(t.getTime()+p):t,x=U;E&&U.getTimezoneOffset()!=t.getTimezoneOffset()&&(U=new Date(U.getTime()+(U.getTimezoneOffset()-t.getTimezoneOffset())*6E4),x=new Date(t.getTime()+(p+(p>0?-864E5:864E5))));p=[];for(var A=0;A<this.patternParts_.length;++A){var m=this.patternParts_[A].text;1==this.patternParts_[A].type?p.push(E10(this,m,t,U,x,E)):p.push(m)}return p.join("")};
var Sn0=function(t,E){if(E<4)var p=t.JSC$11680_dateTimeSymbols_.DATEFORMATS[E];else if(E<8)p=t.JSC$11680_dateTimeSymbols_.TIMEFORMATS[E-4];else if(E<12)p=t.JSC$11680_dateTimeSymbols_.DATETIMEFORMATS[E-8],p=p.replace("{1}",t.JSC$11680_dateTimeSymbols_.DATEFORMATS[E-8]),p=p.replace("{0}",t.JSC$11680_dateTimeSymbols_.TIMEFORMATS[E-8]);else if(E===12)p=t.JSC$11680_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(E===13)p=t.JSC$11680_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{Sn0(t,10);return}cJp(t,p)},w2=function(t,E){E=String(E);
t=t.JSC$11680_dateTimeSymbols_||zd;if(t.ZERODIGIT!==void 0&&!S9t){for(var p=[],U=0;U<E.length;U++){var x=E.charCodeAt(U);p.push(48<=x&&x<=57?String.fromCharCode(t.ZERODIGIT+x-48):E.charAt(U))}E=p.join("")}return E},S9t=!1,cTL=!1,Un4=function(t,E,p,U){p=p.getFullYear();
p<=0&&U&&(p=1-p);return w2(t,p9G(p,E))},p9G=function(t,E){E==2&&(t%=100);
t<0&&E++;return _.l3(t,E)},Ru=function(t){if(!(t.getHours&&t.getSeconds&&t.getMinutes))throw Error("de");
},xn0=function(t,E){Ru(E);
E=B$(E);return t.JSC$11680_dateTimeSymbols_.AMPMS[E>=12&&E<24?1:0]},E10=function(t,E,p,U,x,A){var m=E.length;
switch(E.charAt(0)){case "G":return p=U.getFullYear()>0?1:0,m>=4?t.JSC$11680_dateTimeSymbols_.ERANAMES[p]:t.JSC$11680_dateTimeSymbols_.ERAS[p];case "y":return Un4(t,m,U,!0);case "Y":return p=(new Date(HyW(U.getFullYear(),U.getMonth(),U.getDate(),t.JSC$11680_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,t.JSC$11680_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),m==2&&(p%=100),w2(t,p9G(p,m));case "u":return Un4(t,m,U,!1);case "M":a:switch(p=U.getMonth(),m){case 5:m=t.JSC$11680_dateTimeSymbols_.NARROWMONTHS[p];
break a;case 4:m=t.JSC$11680_dateTimeSymbols_.MONTHS[p];break a;case 3:m=t.JSC$11680_dateTimeSymbols_.SHORTMONTHS[p];break a;default:m=w2(t,_.l3(p+1,m))}return m;case "k":return Ru(x),w2(t,_.l3(B$(x)||24,m));case "S":return w2(t,(x.getMilliseconds()/1E3).toFixed(Math.min(3,m)).slice(2)+(m>3?_.l3(0,m-3):""));case "E":return p=U.getDay(),m>=4?t.JSC$11680_dateTimeSymbols_.WEEKDAYS[p]:t.JSC$11680_dateTimeSymbols_.SHORTWEEKDAYS[p];case "a":return xn0(t,x);case "b":return xn0(t,x);case "B":return xn0(t,
x);case "h":return Ru(x),w2(t,_.l3(B$(x)%12||12,m));case "K":return Ru(x),w2(t,_.l3(B$(x)%12,m));case "H":return Ru(x),w2(t,_.l3(B$(x),m));case "c":a:switch(p=U.getDay(),m){case 5:m=t.JSC$11680_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[p];break a;case 4:m=t.JSC$11680_dateTimeSymbols_.STANDALONEWEEKDAYS[p];break a;case 3:m=t.JSC$11680_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[p];break a;default:m=w2(t,_.l3(p,1))}return m;case "L":a:switch(p=U.getMonth(),m){case 5:m=t.JSC$11680_dateTimeSymbols_.STANDALONENARROWMONTHS[p];
break a;case 4:m=t.JSC$11680_dateTimeSymbols_.STANDALONEMONTHS[p];break a;case 3:m=t.JSC$11680_dateTimeSymbols_.STANDALONESHORTMONTHS[p];break a;default:m=w2(t,_.l3(p+1,m))}return m;case "Q":return p=Math.floor(U.getMonth()/3),m<4?t.JSC$11680_dateTimeSymbols_.SHORTQUARTERS[p]:t.JSC$11680_dateTimeSymbols_.QUARTERS[p];case "d":return w2(t,_.l3(U.getDate(),m));case "m":return Ru(x),w2(t,_.l3(x.getMinutes?x.getMinutes():0,m));case "s":return Ru(x),w2(t,_.l3(x.getSeconds(),m));case "v":return(A||ff(p.getTimezoneOffset())).timeZoneId_;
case "V":return t=A||ff(p.getTimezoneOffset()),m<=2?t.timeZoneId_:v2s(t,p)>0?t.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?t.tzNamesExt_.DST_GENERIC_LOCATION:t.tzNamesExt_.DST_GENERIC_LOCATION:t.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?t.tzNamesExt_.STD_GENERIC_LOCATION:t.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return p=HyW(x.getFullYear(),x.getMonth(),x.getDate(),t.JSC$11680_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,t.JSC$11680_dateTimeSymbols_.FIRSTDAYOFWEEK),w2(t,_.l3(Math.floor(Math.round((p-(new Date((new Date(p)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,m));case "z":return t=A||ff(p.getTimezoneOffset()),m<4?t.tzNames_[v2s(t,p)>0?2:0]:t.tzNames_[v2s(t,p)>0?3:1];case "Z":return E=A||ff(p.getTimezoneOffset()),m<4?(m=-yJr(E,p),t=[m<0?"-":"+"],m=Math.abs(m),t.push(_.l3(Math.floor(m/60)%100,2),_.l3(m%60,2)),m=t.join("")):m=w2(t,Khm(yJr(E,p))),m;default:return""}};var A8W=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,YYZ=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,UaO=function(t){this.patternParts_=[];this.JSC$11689_dateTimeSymbols_=zd;if(typeof t=="number"){t>11&&(t=10);if(t<4)var E=this.JSC$11689_dateTimeSymbols_.DATEFORMATS[t];else t<8?E=this.JSC$11689_dateTimeSymbols_.TIMEFORMATS[t-4]:(E=this.JSC$11689_dateTimeSymbols_.DATETIMEFORMATS[t-8],E=E.replace("{1}",this.JSC$11689_dateTimeSymbols_.DATEFORMATS[t-8]),E=E.replace("{0}",this.JSC$11689_dateTimeSymbols_.TIMEFORMATS[t-
8]));Mw4(this,E)}else Mw4(this,t)},Mw4=function(t,E){for(var p=!1,U="",x=0;x<E.length;x++){var A=E.charAt(x);
if(A8W.test(A))for(U.length>0&&(t.patternParts_.push({text:U,count:0,abutStart:!1,numeric:!1}),U=""),t.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});x<E.length-1&&E.charAt(x+1)==" ";)x++;else if(p)A=="'"?x+1<E.length&&E.charAt(x+1)=="'"?(U+="'",x++):p=!1:U+=A;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(A)>=0){U.length>0&&(t.patternParts_.push({text:U,count:0,abutStart:!1,numeric:!1}),U="");for(var m=E.charAt(x),b=x+1;b<E.length&&E.charAt(b)==m;)b++;m=b-x;m<=0?b=!1:(b="MydhHmsSDkK".indexOf(A),
b=b>0||b==0&&m<3);t.patternParts_.push({text:A,count:m,abutStart:!1,numeric:b});x+=m-1}else A=="'"?x+1<E.length&&E.charAt(x+1)=="'"?(U+="'",x++):p=!0:U+=A}U.length>0&&t.patternParts_.push({text:U,count:0,abutStart:!1,numeric:!1});E=!1;for(p=0;p<t.patternParts_.length;p++)t.patternParts_[p].numeric?!E&&p+1<t.patternParts_.length&&t.patternParts_[p+1].numeric&&(E=!0,t.patternParts_[p].abutStart=!0):E=!1};
UaO.prototype.parse=function(t,E,p){var U=!1,x=!1;p&&(U=p.predictive||!1,x=p.validate||!1);if(U)for(p=0;p<this.patternParts_.length;p++){var A=this.patternParts_[p];if(A.count>0&&("abBhHkKm".indexOf(A.text.charAt(0))<0||A.count>2||A.abutStart))throw Error("ee`"+A.text.charAt(0));}A=new mn4;p=[0];A.dayPeriodIndex=-1;for(var m=0;m<this.patternParts_.length&&!(U&&p[0]>=t.length);m++){if(this.patternParts_[m].count==0){a:{var b=t;var f=p,B=this.patternParts_[m],R=U;if(B.text.match(A8W)!=null){if(B=f[0],
bd0(b,f),f[0]>B){b=!0;break a}}else{if(b.indexOf(B.text,f[0])==f[0]){f[0]+=B.text.length;b=!0;break a}if(R&&B.text.indexOf(b.substring(f[0]))==0){f[0]+=b.length-f[0];b=!0;break a}}b=!1}if(b)continue;return 0}if(this.patternParts_[m].abutStart){a:{f=t;B=p;R=m;var V=B[0],Q=0;for(b=R;b<this.patternParts_.length;b++){var C=this.patternParts_[b],d=C.count;if(d===0)break;if(b==R&&(d-=Q,Q++,d==0)){b=0;break a}var I=b>R&&C.numeric,O=B[0];if(!ids(this,f,B,C,d,A,!1)||I&&B[0]-O<d)b=R-1,B[0]=V}b-=R}if(b<=0)return 0;
m+=b-1}else if(!ids(this,t,p,this.patternParts_[m],0,A,U))return 0}a:{t=x;if(E==null)throw Error("fe");A.era!=void 0&&A.year!=void 0&&A.era==0&&A.year>0&&(A.year=-(A.year-1));A.year!=void 0&&E.setFullYear(A.year);U=E.getDate();E.setDate(1);A.month!=void 0&&E.setMonth(A.month);A.day!=void 0?E.setDate(A.day):(x=hP_(E.getFullYear(),E.getMonth()),E.setDate(U>x?x:U));typeof E.setHours==="function"&&(A.hours==void 0&&(A.hours=E.getHours()),A.hours<12&&(A.ampm!=void 0&&A.ampm>0?A.hours+=12:A.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(A.dayPeriodName)||["night1","night2"].includes(A.dayPeriodName)&&A.hours>=6)&&(A.hours+=12)),E.setHours(A.hours));typeof E.setMinutes==="function"&&A.minutes!=void 0&&E.setMinutes(A.minutes);typeof E.setSeconds==="function"&&A.seconds!=void 0&&E.setSeconds(A.seconds);typeof E.setMilliseconds==="function"&&A.milliseconds!=void 0&&E.setMilliseconds(A.milliseconds);if(t&&(A.year&&A.year!=E.getFullYear()||A.month&&A.month!=
E.getMonth()||A.day&&A.day!=E.getDate()||A.hours&&A.hours>=24||A.minutes&&A.minutes>=60||A.seconds&&A.seconds>=60||A.milliseconds&&A.milliseconds>=1E3))E=!1;else{A.tzOffset!=void 0&&E.setTime(E.getTime()+(A.tzOffset-E.getTimezoneOffset())*60*1E3);A.ambiguousYear&&(t=new Date,t.setFullYear(t.getFullYear()-80),E.getTime()<t.getTime()&&E.setFullYear(t.getFullYear()+100));if(A.dayOfWeek!=void 0)if(A.day==void 0)A=(7+A.dayOfWeek-E.getDay())%7,A>3&&(A-=7),t=E.getMonth(),E.setDate(E.getDate()+A),E.getMonth()!=
t&&E.setDate(E.getDate()+(A>0?-7:7));else if(A.dayOfWeek!=E.getDay()){E=!1;break a}E=!0}}return E?p[0]:0};
var ids=function(t,E,p,U,x,A,m){bd0(E,p);if(U.numeric&&x>0&&p[0]+x>E.length)return!1;switch(U.text.charAt(0)){case "G":return VA(E,p,[t.JSC$11689_dateTimeSymbols_.ERAS],function(b){return A.era=b}),!0;
case "M":case "L":return qYr(t,E,p,x,U,A);case "E":return VA(E,p,[t.JSC$11689_dateTimeSymbols_.WEEKDAYS,t.JSC$11689_dateTimeSymbols_.SHORTWEEKDAYS],function(b){return A.dayOfWeek=b});
case "B":case "b":return x=[],t=[[].concat(t.JSC$11689_dateTimeSymbols_.AMPMS)],x.push("isAm"),x.push("isPm"),E=VA(E,p,t,function(b){return A.dayPeriodIndex=b},m),A.dayPeriodName=x[A.dayPeriodIndex],m?E:!0;
case "a":return E=VA(E,p,[t.JSC$11689_dateTimeSymbols_.AMPMS],function(b){return A.ampm=b},m),m?E:!0;
case "y":return HdG(t,E,p,U,x,A);case "Q":return VA(E,p,[t.JSC$11689_dateTimeSymbols_.QUARTERS,t.JSC$11689_dateTimeSymbols_.SHORTQUARTERS],function(b){A.month=b*3;A.day=1});
case "d":return QA(t,E,p,U,x,function(b){A.day=b}),!0;
case "S":return fqr(t,E,p,x,A);case "h":case "K":case "H":case "k":return E=QA(t,E,p,U,x,function(b){A.hours=U.text.charAt(0)==="h"&&b===12?0:b},m),m?E:!0;
case "m":return E=QA(t,E,p,U,x,function(b){A.minutes=b},m),m?E:!0;
case "s":return QA(t,E,p,U,x,function(b){A.seconds=b}),!0;
case "z":case "Z":case "v":return BGo(t,E,p,A);default:return!1}},HdG=function(t,E,p,U,x,A){var m=p[0];
x=CQ(t,E,p,x);x===null&&(x=CQ(t,E,p,0,!0));if(x===null)return!1;x>=0&&p[0]-m==2&&U.count==2?(t=x,E=(new Date).getFullYear()-80,p=E%100,A.ambiguousYear=t==p,t+=Math.floor(E/100)*100+(t<p?100:0),A.year=t):A.year=x;return!0},qYr=function(t,E,p,U,x,A){return x.numeric&&QA(t,E,p,x,U,function(m){A.month=m-1})?!0:VA(E,p,[t.JSC$11689_dateTimeSymbols_.MONTHS,
t.JSC$11689_dateTimeSymbols_.STANDALONEMONTHS,t.JSC$11689_dateTimeSymbols_.SHORTMONTHS,t.JSC$11689_dateTimeSymbols_.STANDALONESHORTMONTHS],function(m){A.month=m})},fqr=function(t,E,p,U,x){var A=p[0];
t=CQ(t,E,p,U);if(t===null)return!1;p=p[0]-A;x.milliseconds=p<3?t*Math.pow(10,3-p):Math.round(t/Math.pow(10,p-3));return!0},BGo=function(t,E,p,U){E.indexOf("GMT",p[0])==p[0]&&(p[0]+=3);
if(p[0]>=E.length)return U.tzOffset=0,!0;var x=p[0],A=CQ(t,E,p,0,!0);if(A===null)return!1;if(p[0]<E.length&&E.charAt(p[0])==":"){var m=A*60;p[0]++;A=CQ(t,E,p,0);if(A===null)return!1;m+=A}else m=A,m=m<24&&p[0]-x<=3?m*60:m%100+m/100*60;U.tzOffset=-m;return!0},QA=function(t,E,p,U,x,A,m){m=m||!1;
var b=p[0];t=CQ(t,E,p,x);if(t===null)return!1;if(m&&p[0]-b<U.count){if(p[0]<E.length)return!1;t*=Math.pow(10,U.count-(p[0]-b))}A(t);return!0},VA=function(t,E,p,U,x){x=x||!1;
for(var A,m=0;m<p.length;m++){A=E;for(var b=p[m],f=x,B=0,R=null,V=t.substring(A[0]).toLowerCase(),Q=0;Q<b.length;Q++){var C=b[Q].toLowerCase();if(f&&C.indexOf(V)==0){B=V.length;R=Q;break}b[Q].length>B&&V.indexOf(C)==0&&(B=b[Q].length,R=Q)}R!==null&&(A[0]+=B);A=R;if(A!==null)return U(A),!0}return!1},bd0=function(t,E){(t=t.substring(E[0]).match(YYZ))&&(E[0]+=t[0].length)},CQ=function(t,E,p,U,x){E=U>0?E.substring(0,p[0]+U):E;
x=x||!1;if(t.JSC$11689_dateTimeSymbols_.ZERODIGIT){U=[];for(var A=p[0];A<E.length;A++){var m=E.charCodeAt(A)-t.JSC$11689_dateTimeSymbols_.ZERODIGIT;U.push(0<=m&&m<=9?String.fromCharCode(m+48):E.charAt(A))}E=U.join("")}else E=E.substring(p[0]);t=E.match(new RegExp("^"+(x?"[+-]?":"")+"\\d+"));if(!t)return null;p[0]+=t[0].length;return parseInt(t[0],10)},mn4=function(){};
mn4.prototype.ambiguousYear=!1;var w90;
w90={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 RD0={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}"]};
RD0={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 Vwo=function(){var t={type:"unit",style:"narrow"};this.listType_=t&&t.type?t.type:"conjunction";this.listStyle_=t&&t.style?t.style:"long";this.listSymbols_=RD0;t=0;switch(this.listStyle_){case "short":t=1;break;case "narrow":t=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[t];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[t];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[t];this.listEndPattern_=
this.listSymbols_.AND_END[t];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[t];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[t];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[t];this.listEndPattern_=this.listSymbols_.OR_END[t];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[t],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[t],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[t],this.listEndPattern_=this.listSymbols_.UNIT_END[t]}};
Vwo.prototype.format=function(t){return Qn4(this,t)};
var Qn4=function(t,E){var p=E.length;switch(p){case 0:return"";case 1:return String(E[0]);case 2:return t.listTwoPattern_.replace("{0}",String(E[0])).replace("{1}",String(E[1]))}for(var U=t.listStartPattern_.replace("{0}",String(E[0])).replace("{1}",String(E[1])),x=2;x<p-1;++x)U=t.listMiddlePattern_.replace("{0}",U).replace("{1}",String(E[x]));return t.listEndPattern_.replace("{0}",U).replace("{1}",String(E[p-1]))};var CAX={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"},jnZ=CAX,r8s=CAX;r8s=jnZ=CAX;var dnr,jE,kF,sPL,r2,kE3;
_.iC=function(t,E,p,U){var x;if(x=E){a:if(E&&E.length===3){for(x=0;x<3;x++){var A=E[x];if(A<"A"||A>"Z"&&A<"a"||A>"z"){x=!1;break a}}x=!0}else x=!1;x=!x}if(x)throw new TypeError("ge");this.intlCurrencyCode_=E?E.toUpperCase():null;this.currencyStyle_=p||0;this.overrideNumberFormatSymbols_=U||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_=jE(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof t==="number")switch(t){case 1:r2(this,jE(this).DECIMAL_PATTERN);break;case 2:r2(this,jE(this).SCIENTIFIC_PATTERN);break;case 3:r2(this,jE(this).PERCENT_PATTERN);break;case 4:t=jE(this).CURRENCY_PATTERN;E=["0"];if(p=
fQ[kF(this)]){p=p[0]&7;if(p>0)for(E.push("."),U=0;U<p;U++)E.push("0");t=t.replace(/0.00/g,E.join(""))}r2(this,t);break;case 5:kE3(this,1);break;case 6:kE3(this,2);break;default:throw Error("je");}else r2(this,t)};
dnr=!1;jE=function(t){return t.overrideNumberFormatSymbols_||(dnr?r8s:jnZ)};
kF=function(t){return t.intlCurrencyCode_||jE(t).DEF_CURRENCY_CODE};
sPL=function(t,E){if(E>308)throw Error("ie`"+E);t.maximumFractionDigits_=E;return t};
r2=function(t,E){var p=[0];t.positivePrefix_=u0s(t,E,p);for(var U=p[0],x=-1,A=0,m=0,b=0,f=-1,B=E.length,R=!0;p[0]<B&&R;p[0]++)switch(E.charAt(p[0])){case "#":m>0?b++:A++;f>=0&&x<0&&f++;break;case "0":if(b>0)throw Error("pe`"+E);m++;f>=0&&x<0&&f++;break;case ",":f>0&&t.groupingArray_.push(f);f=0;break;case ".":if(x>=0)throw Error("qe`"+E);x=A+m+b;break;case "E":if(t.useExponentialNotation_)throw Error("re`"+E);t.useExponentialNotation_=!0;t.minExponentDigits_=0;p[0]+1<B&&E.charAt(p[0]+1)=="+"&&(p[0]++,
t.useSignForPositiveExponent_=!0);for(;p[0]+1<B&&E.charAt(p[0]+1)=="0";)p[0]++,t.minExponentDigits_++;if(A+m<1||t.minExponentDigits_<1)throw Error("se`"+E);R=!1;break;default:p[0]--,R=!1}m==0&&A>0&&x>=0&&(m=x,m==0&&m++,b=A-m,A=m-1,m=1);if(x<0&&b>0||x>=0&&(x<A||x>A+m)||f==0)throw Error("te`"+E);b=A+m+b;t.maximumFractionDigits_=x>=0?b-x:0;x>=0&&(t.minimumFractionDigits_=A+m-x,t.minimumFractionDigits_<0&&(t.minimumFractionDigits_=0));t.minimumIntegerDigits_=(x>=0?x:b)-A;t.useExponentialNotation_&&(t.maximumIntegerDigits_=
A+t.minimumIntegerDigits_,t.maximumFractionDigits_==0&&t.minimumIntegerDigits_==0&&(t.minimumIntegerDigits_=1));t.groupingArray_.push(Math.max(0,f));t.decimalSeparatorAlwaysShown_=x==0||x==b;U=p[0]-U;t.positiveSuffix_=u0s(t,E,p);p[0]<E.length&&E.charAt(p[0])==";"?(p[0]++,t.multiplier_!=1&&(t.negativePercentSignExpected_=!0),t.negativePrefix_=u0s(t,E,p),p[0]+=U,t.negativeSuffix_=u0s(t,E,p)):(t.negativePrefix_+=t.positivePrefix_,t.negativeSuffix_+=t.positiveSuffix_)};
kE3=function(t,E){t.compactStyle_=E;r2(t,jE(t).DECIMAL_PATTERN);t.minimumFractionDigits_=0;sPL(t,2);if(t.minimumFractionDigits_>0)throw Error("he");t.significantDigits_=2};
_.iC.prototype.parse=function(t,E){E=E||[0];if(this.compactStyle_!==0)throw Error("ke");t=t.replace(/ |\u202f/g,"\u00a0");var p=t.indexOf(this.positivePrefix_,E[0])==E[0],U=t.indexOf(this.negativePrefix_,E[0])==E[0];p&&U&&(this.positivePrefix_.length>this.negativePrefix_.length?U=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(p=!1));p?E[0]+=this.positivePrefix_.length:U&&(E[0]+=this.negativePrefix_.length);if(t.indexOf(jE(this).INFINITY,E[0])==E[0]){E[0]+=jE(this).INFINITY.length;var x=
Infinity}else{x=t;var A=!1,m=!1,b=!1,f=-1,B=1,R=jE(this).DECIMAL_SEP,V=jE(this).GROUP_SEP,Q=jE(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("le");V=V.replace(/\u202f/g,"\u00a0");for(var C="";E[0]<x.length;E[0]++){var d=x.charAt(E[0]),I=J80(this,d);if(I>=0&&I<=9)C+=I,b=!0;else if(d==R.charAt(0)){if(A||m)break;C+=".";A=!0}else if(d==V.charAt(0)&&("\u00a0"!=V.charAt(0)||E[0]+1<x.length&&J80(this,x.charAt(E[0]+1))>=0)){if(A||m)break}else if(d==Q.charAt(0)){if(m)break;C+="E";m=!0;f=E[0]}else if(d==
"+"||d=="-"){if(b&&f!=E[0]-1)break;C+=d}else if(this.multiplier_==1&&d==jE(this).PERCENT.charAt(0)){if(B!=1)break;B=100;if(b){E[0]++;break}}else if(this.multiplier_==1&&d==jE(this).PERMILL.charAt(0)){if(B!=1)break;B=1E3;if(b){E[0]++;break}}else break}this.multiplier_!=1&&(B=this.multiplier_);x=parseFloat(C)/B}if(p){if(t.indexOf(this.positiveSuffix_,E[0])!=E[0])return NaN;E[0]+=this.positiveSuffix_.length}else if(U){if(t.indexOf(this.negativeSuffix_,E[0])!=E[0])return NaN;E[0]+=this.negativeSuffix_.length}return U?
-x:x};
_.iC.prototype.format=function(t){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("me");if(isNaN(t))return jE(this).NAN;var E=[];var p=t;if(this.compactStyle_==0)p=d2;else{p=Math.abs(p);var U=Iq0(this,p<=1?0:g1T(p)).divisorBase;p=Iq0(this,U+g1T(ZdZ(this,u9(p,-U)).intValue))}t=u9(t,-p.divisorBase);(U=t<0||t==0&&1/t<0)?p.negative_prefix?E.push(p.negative_prefix):(E.push(p.prefix),E.push(this.negativePrefix_)):(E.push(p.prefix),E.push(this.positivePrefix_));if(isFinite(t))if(t*=
U?-1:1,t*=this.multiplier_,this.useExponentialNotation_){var x=t;if(x==0)OdT(this,x,this.minimumIntegerDigits_,E),X9W(this,0,E);else{var A=Math.floor(Math.log(x)/Math.log(10)+2E-15);x=u9(x,-A);var m=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(m=A%this.maximumIntegerDigits_,m<0&&(m=this.maximumIntegerDigits_+m),x=u9(x,m),A-=m,m=1):this.minimumIntegerDigits_<1?(A++,x=u9(x,-1)):(A-=this.minimumIntegerDigits_-1,x=u9(x,this.minimumIntegerDigits_-
1));OdT(this,x,m,E);X9W(this,A,E)}}else OdT(this,t,this.minimumIntegerDigits_,E);else E.push(jE(this).INFINITY);U?p.negative_suffix?E.push(p.negative_suffix):(isFinite(t)&&E.push(p.suffix),E.push(this.negativeSuffix_)):(isFinite(t)&&E.push(p.suffix),E.push(this.positiveSuffix_));return E.join("")};
var ZdZ=function(t,E){var p=u9(E,t.maximumFractionDigits_);t.significantDigits_>0&&(p=hDT(p,t.significantDigits_,t.maximumFractionDigits_));p=Math.round(p);if(isFinite(p)){var U=Math.floor(u9(p,-t.maximumFractionDigits_));p=Math.floor(p-u9(U,t.maximumFractionDigits_));if(p<0||p>=u9(1,t.maximumFractionDigits_))U=Math.round(E),p=0}else U=E,p=0;return{intValue:U,fracValue:p}},OdT=function(t,E,p,U){if(t.minimumFractionDigits_>t.maximumFractionDigits_)throw Error("me");
U||(U=[]);E=ZdZ(t,E);var x=E.intValue,A=E.fracValue,m=t.minimumFractionDigits_>0||A>0||!1;E=t.minimumFractionDigits_;m&&(E=t.minimumFractionDigits_);for(var b="",f=x;f>1E20;)b="0"+b,f=Math.round(u9(f,-1));b=f+b;var B=jE(t).DECIMAL_SEP;f=jE(t).ZERO_DIGIT.codePointAt(0);var R=b.length,V=0;if(x>0||p>0){for(x=R;x<p;x++)U.push(String.fromCodePoint(f));if(t.groupingArray_.length>=2)for(p=1;p<t.groupingArray_.length;p++)V+=t.groupingArray_[p];p=R-V;if(p>0){x=t.groupingArray_;V=R=0;for(var Q,C=jE(t).GROUP_SEP,
d=b.length,I=0;I<d;I++)if(U.push(String.fromCodePoint(f+Number(b.charAt(I)))),d-I>1)if(Q=x[V],I<p){var O=p-I;(Q===1||Q>0&&O%Q===1)&&U.push(C)}else V<x.length&&(I===p?V+=1:Q===I-p-R+1&&(U.push(C),R+=Q,V+=1))}else{p=b;b=t.groupingArray_;x=jE(t).GROUP_SEP;Q=p.length;C=[];for(R=b.length-1;R>=0&&Q>0;R--){V=b[R];for(d=0;d<V&&Q-d-1>=0;d++)C.push(String.fromCodePoint(f+Number(p.charAt(Q-d-1))));Q-=V;Q>0&&C.push(x)}U.push.apply(U,C.reverse())}}else m||U.push(String.fromCodePoint(f));(t.decimalSeparatorAlwaysShown_||
m)&&U.push(B);A=String(A);m=A.split("e+");m.length==2&&(A=String(hDT(parseFloat(m[0]),t.significantDigits_,1)),A=A.replace(".",""),A+=(0,_.lo0)("0",parseInt(m[1],10)-A.length+1));t.maximumFractionDigits_+1>A.length&&(A="1"+(0,_.lo0)("0",t.maximumFractionDigits_-A.length)+A);for(t=A.length;A.charAt(t-1)=="0"&&t>E+1;)t--;for(E=1;E<t;E++)U.push(String.fromCodePoint(f+Number(A.charAt(E))))},X9W=function(t,E,p){p.push(jE(t).EXP_SYMBOL);
E<0?(E=-E,p.push(jE(t).MINUS_SIGN)):t.useSignForPositiveExponent_&&p.push(jE(t).PLUS_SIGN);E=""+E;for(var U=jE(t).ZERO_DIGIT,x=E.length;x<t.minExponentDigits_;x++)p.push(U);t=U.codePointAt(0)-aqm;for(U=0;U<E.length;U++)p.push(String.fromCodePoint(t+E.codePointAt(U)))},J80=function(t,E){E=E.codePointAt(0);
if(48<=E&&E<58)return E-48;t=jE(t).ZERO_DIGIT.codePointAt(0);return t<=E&&E<t+10?E-t:-1},aqm="0".codePointAt(0),u0s=function(t,E,p){for(var U="",x=!1,A=E.length;p[0]<A;p[0]++){var m=E.charAt(p[0]);
if(m=="'")p[0]+1<A&&E.charAt(p[0]+1)=="'"?(p[0]++,U+="'"):x=!x;else if(x)U+=m;else switch(m){case "#":case "0":case ",":case ".":case ";":return U;case "\u00a4":if(p[0]+1<A&&E.charAt(p[0]+1)=="\u00a4")p[0]++,U+=kF(t);else switch(t.currencyStyle_){case 0:m=kF(t);U+=m in fQ?fQ[m][1]:m;break;case 2:m=kF(t);var b=fQ[m];U+=b?m==b[1]?m:m+" "+b[1]:m;break;case 1:m=kF(t),U+=m in fQ?fQ[m][2]:m}break;case "%":if(!t.negativePercentSignExpected_&&t.multiplier_!=1)throw Error("ne");if(t.negativePercentSignExpected_&&
t.multiplier_!=100)throw Error("oe");t.multiplier_=100;t.negativePercentSignExpected_=!1;U+=jE(t).PERCENT;break;case "\u2030":if(!t.negativePercentSignExpected_&&t.multiplier_!=1)throw Error("ne");if(t.negativePercentSignExpected_&&t.multiplier_!=1E3)throw Error("oe");t.multiplier_=1E3;t.negativePercentSignExpected_=!1;U+=jE(t).PERMILL;break;default:U+=m}}return U},d2={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},Iq0=function(t,E){t=t.compactStyle_==1?H$.COMPACT_DECIMAL_SHORT_PATTERN:H$.COMPACT_DECIMAL_LONG_PATTERN;t==null&&(t=H$.COMPACT_DECIMAL_SHORT_PATTERN);if(E<3)return d2;E=Math.min(14,E);var p=t[u9(1,E)];for(--E;!p&&E>=3;)p=t[u9(1,E)],E--;if(!p)return d2;p=p.other;var U=t="",x=p.indexOf(";");x>=0&&(p=p.substring(0,x),x=p.substring(x+1))&&(U=/([^0]*)(0+)(.*)/.exec(x),t=U[1],U=U[3]);return p&&p!="0"?(p=/([^0]*)(0+)(.*)/.exec(p))?{divisorBase:E+
1-(p[2].length-1),negative_prefix:t,negative_suffix:U,prefix:p[1],suffix:p[3]}:d2:d2},g1T=function(t){if(!isFinite(t))return t>0?t:0;
for(var E=0;(t/=10)>=1;)E++;return E},u9=function(t,E){if(!t||!isFinite(t)||E==0)return t;
t=String(t).split("e");return parseFloat(t[0]+"e"+(parseInt(t[1]||0,10)+E))},eDX=function(t,E){return t&&isFinite(t)?u9(Math.round(u9(t,E)),-E):t},hDT=function(t,E,p){if(!t)return t;
E=E-g1T(t)-1;return E<-p?eDX(t,-p):eDX(t,E)};var F8W=function(t){return t%10==1&&t%100!=11?"one":t%10==2&&t%100!=12?"two":t%10==3&&t%100!=13?"few":"other"},zDp=F8W;
zDp=F8W;var lqs=function(t,E){var p=t|0;if(void 0===E){E=Math;var U=E.min,x=t+"",A=x.indexOf(".");E=U.call(E,A===-1?0:x.length-A-1,3)}U=Math.pow(10,E);t={v:E,f:(t*U|0)%U};return p==1&&t.v==0?"one":"other"},bC=lqs;
bC=lqs;var Dno=function(t){this.JSC$11732_pattern_=t;this.parsedPattern_=this.literals_=this.initialLiterals_=null;t=jnZ;var E=H$;if(GEm!==t||n1p!==E)GEm=t,n1p=E,NGr=new _.iC(1);this.numberFormatter_=NGr},GEm=null,n1p=null,NGr=null,sns=RegExp("'([{}#].*?)'","g"),L8m=RegExp("''","g");
Dno.prototype.format=function(t){if(this.JSC$11732_pattern_){this.initialLiterals_=[];var E=PAo(this,this.JSC$11732_pattern_);this.parsedPattern_=TG4(this,E);this.JSC$11732_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Dl(this.initialLiterals_),E=[],o10(this,this.parsedPattern_,t,!1,E),t=E.join("");this.literals_.length>0;)t=t.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else t="";return t};
var o10=function(t,E,p,U,x){for(var A=0;A<E.length;A++)switch(E[A].type){case 4:x.push(E[A].value);break;case 3:var m=E[A].value;var b=t,f=x,B=p[m];B===void 0?f.push("Undefined parameter - "+m):(b.literals_.push(B),f.push(b.buildPlaceholder_(b.literals_)));break;case 2:m=E[A].value;b=t;f=p;B=U;var R=x,V=m.argumentIndex;f[V]===void 0?R.push("Undefined parameter - "+V):(V=m[f[V]],V===void 0&&(V=m.other),o10(b,V,f,B,R));break;case 0:m=E[A].value;W8Z(t,m,p,bC,U,x);break;case 1:m=E[A].value,W8Z(t,m,p,
zDp,U,x)}},W8Z=function(t,E,p,U,x,A){var m=E.argumentIndex,b=E.argumentOffset,f=+p[m];
isNaN(f)?A.push("Undefined or invalid parameter - "+m):(b=f-b,m=E[p[m]],m===void 0&&(U=U(Math.abs(b)),m=E[U],m===void 0&&(m=E.other)),E=[],o10(t,m,p,x,E),p=E.join(""),x?A.push(p):(t=t.numberFormatter_.format(b),A.push(p.replace(/#/g,t))))},PAo=function(t,E){var p=t.initialLiterals_,U=t.buildPlaceholder_.bind(t);
E=E.replace(L8m,function(){p.push("'");return U(p)});
return E=E.replace(sns,function(x,A){p.push(A);return U(p)})},$nX=function(t){var E=0,p=[],U=[],x=/[{}]/g;
x.lastIndex=0;for(var A;A=x.exec(t);){var m=A.index;A[0]=="}"?(p.pop(),p.length==0&&(A={type:1},A.value=t.substring(E,m),U.push(A),E=m+1)):(p.length==0&&(E=t.substring(E,m),E!=""&&U.push({type:0,value:E}),E=m+1),p.push("{"))}t=t.substring(E);t!=""&&U.push({type:0,value:t});return U},K8r=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,v1r=/^\s*(\w+)\s*,\s*selectordinal\s*,/,y8r=/^\s*(\w+)\s*,\s*select\s*,/,TG4=function(t,E){var p=[];
E=$nX(E);for(var U=0;U<E.length;U++){var x={};if(0==E[U].type)x.type=4,x.value=E[U].value;else if(1==E[U].type){var A=E[U].value;switch(K8r.test(A)?0:v1r.test(A)?1:y8r.test(A)?2:/^\s*\w+\s*/.test(A)?3:5){case 2:x.type=2;x.value=SYr(t,E[U].value);break;case 0:x.type=0;x.value=c8r(t,E[U].value);break;case 1:x.type=1;x.value=tY3(t,E[U].value);break;case 3:x.type=3,x.value=E[U].value}}p.push(x)}return p},SYr=function(t,E){var p="";
E=E.replace(y8r,function(b,f){p=f;return""});
var U={};U.argumentIndex=p;E=$nX(E);for(var x=0;x<E.length;){var A=E[x].value;x++;var m=void 0;1==E[x].type&&(m=TG4(t,E[x].value));U[A.replace(/\s/g,"")]=m;x++}return U},c8r=function(t,E){var p="",U=0;
E=E.replace(K8r,function(f,B,R){p=B;R&&(U=parseInt(R,10));return""});
var x={};x.argumentIndex=p;x.argumentOffset=U;E=$nX(E);for(var A=0;A<E.length;){var m=E[A].value;A++;var b=void 0;1==E[A].type&&(b=TG4(t,E[A].value));x[m.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=b;A++}return x},tY3=function(t,E){var p="";
E=E.replace(v1r,function(b,f){p=f;return""});
var U={};U.argumentIndex=p;U.argumentOffset=0;E=$nX(E);for(var x=0;x<E.length;){var A=E[x].value;x++;var m=void 0;1==E[x].type&&(m=TG4(t,E[x].value));U[A.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=m;x++}return U};
Dno.prototype.buildPlaceholder_=function(t){return"\ufddf_"+(t.length-1).toString(10)+"_"};var HE_=function(){var t={style:1},E=Ejp;this.style_=(t==null?void 0:t.style)||0;this.durationSymbols_=E||w90},pYp=function(t,E){switch(E){default:case "years":return t.durationSymbols_.YEAR;
case "months":return t.durationSymbols_.MONTH;case "weeks":return t.durationSymbols_.WEEK;case "days":return t.durationSymbols_.DAY;case "hours":return t.durationSymbols_.HOUR;case "minutes":return t.durationSymbols_.MINUTE;case "seconds":return t.durationSymbols_.SECOND}},Jl=function(t,E,p){a:{p=pYp(t,p);
switch(t.style_){case 1:if(p.LONG!=void 0){t=p.LONG;break a}case 2:if(p.NARROW!=void 0){t=p.NARROW;break a}default:t=p.SHORT;break a}t=void 0}return t?(new Dno("{DURATION_VALUE,plural,"+t+"}")).format({DURATION_VALUE:E}):""};
HE_.prototype.format=function(t){var E=[],p=t.years,U=t.months,x=t.weeks,A=t.days,m=t.hours,b=t.minutes;t=t.seconds;p!=null&&E.push(Jl(this,p,"years"));U!=null&&E.push(Jl(this,U,"months"));x!=null&&E.push(Jl(this,x,"weeks"));A!=null&&E.push(Jl(this,A,"days"));m!=null&&E.push(Jl(this,m,"hours"));b!=null&&E.push(Jl(this,b,"minutes"));t!=null&&E.push(Jl(this,t,"seconds"));return(new Vwo).format(E)};var U6s;
U6s={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 Ecj=function(){this.rdtfSymbols_=x6r||U6s;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
Ecj.prototype.format=function(t,E){a:{E=Aes(this,E);switch(this.style_){case 2:if(E.NARROW!=void 0){E=E.NARROW;break a}case 1:if(E.SHORT!=void 0){E=E.SHORT;break a}default:E=E.LONG;break a}E=void 0}if(!this.alwaysNumeric_&&E&&E.R&&E.R[""+t])t=E.R[""+t];else if(E){var p=Math.abs(t);t=(new Dno("{N,plural,"+(t>0||t==0&&1/t==Infinity?E.F:E.P)+"}")).format({N:p})}else t="";return t};
var Aes=function(t,E){switch(E){default:case 0:return t.rdtfSymbols_.YEAR;case 1:return t.rdtfSymbols_.QUARTER;case 2:return t.rdtfSymbols_.MONTH;case 3:return t.rdtfSymbols_.WEEK;case 4:return t.rdtfSymbols_.DAY;case 5:return t.rdtfSymbols_.HOUR;case 6:return t.rdtfSymbols_.MINUTE;case 7:return t.rdtfSymbols_.SECOND}};rIl.prototype.clone=function(){return new rIl(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
rIl.prototype.equals=function(t){return this.x0==t.x0&&this.y0==t.y0&&this.x1==t.x1&&this.y1==t.y1&&this.x2==t.x2&&this.y2==t.y2&&this.x3==t.x3&&this.y3==t.y3};
var YXo=function(t,E){if(E==0)return t.x0;if(E==1)return t.x3;var p=pu(t.x0,t.x1,E),U=pu(t.x1,t.x2,E);t=pu(t.x2,t.x3,E);p=pu(p,U,E);U=pu(U,t,E);return pu(p,U,E)},MYo=function(t,E){var p=(E-t.x0)/(t.x3-t.x0);
if(p<=0)return 0;if(p>=1)return 1;for(var U=0,x=1,A=0,m=0;m<8;m++){A=YXo(t,p);var b=(YXo(t,p+1E-6)-A)/1E-6;if(Math.abs(A-E)<1E-6)return p;if(Math.abs(b)<1E-6)break;else A<E?U=p:x=p,p-=(A-E)/b}for(m=0;Math.abs(A-E)>1E-6&&m<8;m++)A<E?(U=p,p=(p+x)/2):(x=p,p=(p+U)/2),A=YXo(t,p);return p};var Iu=function(){_.UH.call(this);this.JSC$11753_name_="closure_frame"+m6r++;this.iframesForDisposal_=[];b$s[this.JSC$11753_name_]=this},g2;
_.Oa(Iu,_.UH);var b$s={},m6r=0,i$r=function(t,E){var p=s8(t);ats(E,function(U,x){Array.isArray(U)||(U=[U]);_.QE(U,function(A){A=p.JSC$9604_createDom("INPUT",{type:"hidden",name:x,value:A});t.appendChild(A)})})};
_.Y=Iu.prototype;_.Y.JSC$11755_form_=null;_.Y.JSC$11755_iframe_=null;_.Y.iframeName_=null;_.Y.nextIframeId_=0;_.Y.JSC$11755_active_=!1;_.Y.complete_=!1;_.Y.success_=!1;_.Y.lastContent_=null;_.Y.JSC$11755_lastErrorCode_=0;_.Y.iframeDisposalTimer_=null;
_.Y.send=function(t,E,p,U){if(this.JSC$11755_active_)throw Error("ue");t=new _.fF(t);E=E?E.toUpperCase():"GET";p&&_.nJ(t);g2||(g2=_.YM("FORM"),g2.acceptCharset="utf-8",p=g2.style,p.position="absolute",p.visibility="hidden",p.top=p.left="-10px",p.width=p.height="10px",p.overflow="hidden",document.body.appendChild(g2));this.JSC$11755_form_=g2;E=="GET"&&i$r(this.JSC$11755_form_,t.JSC$10308_queryData_);U&&i$r(this.JSC$11755_form_,U);p=t.toString();p=bME(p);U=this.JSC$11755_form_;p=_.E2(Pw(p));p!==void 0&&
(U.action=p);this.JSC$11755_form_.method=E;qXr(this);H$4(this)};
_.Y.abort=function(t){if(this.JSC$11755_active_){var E=Zx(this);if(E)if(tU(E))E.removeAllListeners(void 0);else if(E=EH(E)){var p=0,U;for(U in E.listeners)for(var x=E.listeners[U].concat(),A=0;A<x.length;++A)Wu(x[A])&&++p}this.success_=this.JSC$11755_active_=this.complete_=!1;this.JSC$11755_lastErrorCode_=t||7;this.dispatchEvent("abort");fVo(this)}};
_.Y.disposeInternal=function(){this.JSC$11755_active_&&this.abort();Iu.superClass_.disposeInternal.call(this);this.JSC$11755_iframe_&&BXs(this);H$4(this);this.JSC$11755_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11755_form_=null;this.JSC$11755_lastErrorCode_=0;delete b$s[this.JSC$11753_name_]};
_.Y.isComplete=function(){return this.complete_};
_.Y.isSuccess=function(){return this.success_};
_.Y.isActive=function(){return this.JSC$11755_active_};
_.Y.getResponseText=function(){return this.lastContent_};
_.Y.getLastError=function(){return _.HRZ(this.JSC$11755_lastErrorCode_)};
var qXr=function(t){t.JSC$11755_active_=!0;t.complete_=!1;t.JSC$11755_lastErrorCode_=0;t.iframeName_=t.JSC$11753_name_+"_"+(t.nextIframeId_++).toString(36);t.JSC$11755_iframe_=s8(t.JSC$11755_form_).JSC$9604_createDom("IFRAME",{name:t.iframeName_,id:t.iframeName_});var E=t.JSC$11755_iframe_.style;E.visibility="hidden";E.width=E.height="10px";E.display="none";_.no?E.marginTop=E.marginLeft="-10px":(E.position="absolute",E.top=E.left="-10px");s8(t.JSC$11755_form_).JSC$9602_document_.body.appendChild(t.JSC$11755_iframe_);
E=t.iframeName_+"_inner";var p=td0(t.JSC$11755_iframe_);if(document.baseURI){var U=X0(E);U='<head><base href="'+X0(document.baseURI)+'"></head><body><iframe id="'+U+'" name="'+U+'"></iframe>';U=xk(U)}else U=X0(E),U=xk('<body><iframe id="'+U+'" name="'+U+'"></iframe>');p.write(A9(U));_.vu(p.getElementById(E),"load",t.onIframeLoaded_,!1,t);U=Ny("TEXTAREA",t.JSC$11755_form_);for(var x=0,A=U.length;x<A;x++){var m=U[x].value;Yhf(U[x])!=m&&(_.fu(U[x],m),U[x].value=m)}U=p.importNode(t.JSC$11755_form_,!0);
U.target=E;U.action=t.JSC$11755_form_.action;p.body.appendChild(U);x=Ny("SELECT",t.JSC$11755_form_);A=Ny("SELECT",U);m=0;for(var b=x.length;m<b;m++)for(var f=Ny("OPTION",x[m]),B=Ny("OPTION",A[m]),R=0,V=f.length;R<V;R++)B[R].selected=f[R].selected;x=Ny("INPUT",t.JSC$11755_form_);A=Ny("INPUT",U);m=0;for(b=x.length;m<b;m++)if(x[m].type=="file"&&x[m].value!=A[m].value){t.JSC$11755_form_.target=E;U=t.JSC$11755_form_;break}try{t.errorHandled_=!1,U.submit(),p.close(),_.Ne&&setTimeout(t.testForFirefoxSilentError_.bind(t),
250)}catch(Q){_.pJ(p.getElementById(E),"load",t.onIframeLoaded_,!1,t),p.close(),Oc(t,2)}};
Iu.prototype.onIframeLoaded_=function(){_.pJ(Zx(this),"load",this.onIframeLoaded_,!1,this);try{var t=this.JSC$11755_iframe_?td0(Zx(this)):null;this.complete_=!0;this.JSC$11755_active_=!1;try{var E=t.body;this.lastContent_=E.textContent||E.innerText}catch(x){var p=1}var U;p||typeof this.errorChecker_!="function"||(U=this.errorChecker_(t))&&(p=4);p?Oc(this,p):(this.success_=!0,this.JSC$11755_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),fVo(this))}catch(x){Oc(this,1)}};
var Oc=function(t,E){t.errorHandled_||(t.success_=!1,t.JSC$11755_active_=!1,t.complete_=!0,t.JSC$11755_lastErrorCode_=E,t.dispatchEvent("complete"),t.dispatchEvent("error"),fVo(t),t.errorHandled_=!0)},fVo=function(t){BXs(t);
H$4(t);t.JSC$11755_form_=null;t.dispatchEvent("ready")},BXs=function(t){var E=t.JSC$11755_iframe_;
E&&(E.onreadystatechange=null,E.onload=null,E.onerror=null,t.iframesForDisposal_.push(E));t.iframeDisposalTimer_&&(clearTimeout(t.iframeDisposalTimer_),t.iframeDisposalTimer_=null);_.Ne?t.iframeDisposalTimer_=setTimeout(t.disposeIframes_.bind(t),2E3):t.disposeIframes_();t.JSC$11755_iframe_=null;t.iframeName_=null};
Iu.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var t=this.iframesForDisposal_.pop();_.ng(t)}};
var H$4=function(t){t.JSC$11755_form_&&t.JSC$11755_form_==g2&&_.bk(t.JSC$11755_form_)},Zx=function(t){return t.JSC$11755_iframe_?td0(t.JSC$11755_iframe_).getElementById(t.iframeName_+"_inner"):null};
Iu.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11755_active_){var t=this.JSC$11755_iframe_?td0(Zx(this)):null;t&&!vs_(t,"documentUri")?(_.pJ(Zx(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?Oc(this,3):Oc(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.XH=function(t){return t=="\r"||t=="\n"||t==" "||t=="\t"};_.$n.prototype.isInputValid=function(){return this.streamState_!=3};
_.$n.prototype.done=function(){return this.streamState_===2};
var hl=function(t,E,p){t.streamState_=3;t.errorMessage_="The stream is broken @"+t.JSC$11757_pos_+"/"+p+". With input:\n"+E;throw Error(t.errorMessage_);};
_.$n.prototype.acceptsBinaryInput=function(){return!1};
_.$n.prototype.parse=function(t){function E(){for(;V<t.length;)if(_.XH(t[V]))V++,A.JSC$11757_pos_++;else break;return V<f}
function p(){for(var C;;){C=t[V++];if(!C)break;A.JSC$11757_pos_++;switch(A.state_){case 0:C==="{"?A.state_=2:C==="["?A.state_=4:_.XH(C)||hl(A,t,V);continue;case 7:case 2:if(_.XH(C))continue;if(A.state_===7)m.push(8);else if(C==="}"){x("{}");A.state_=U();continue}else m.push(3);C==='"'?A.state_=6:hl(A,t,V);continue;case 8:case 3:if(_.XH(C))continue;C===":"?(A.state_===3&&(m.push(3),A.depth_++),A.state_=1):C==="}"?(A.depth_--,x(),A.state_=U()):C===","?(A.state_===3&&m.push(3),A.state_=7):hl(A,t,V);
continue;case 4:case 1:if(_.XH(C))continue;if(A.state_===4)if(A.depth_++,A.state_=1,C==="]"){A.depth_--;if(A.depth_===0){A.state_=5;return}x("[]");A.state_=U();continue}else m.push(5);C==='"'?A.state_=6:C==="{"?A.state_=2:C==="["?A.state_=4:C==="t"?A.state_=9:C==="f"?A.state_=12:C==="n"?A.state_=16:C!=="-"&&("0123456789".indexOf(C)!==-1?A.state_=20:hl(A,t,V));continue;case 5:if(C===",")m.push(5),A.state_=1,A.depth_===1&&(R=V);else if(C==="]"){A.depth_--;if(A.depth_===0)return;x();A.state_=U()}else if(_.XH(C))continue;
else hl(A,t,V);continue;case 6:var d=V;a:for(;;){for(;A.unicodeCount_>0;)if(C=t[V++],A.unicodeCount_===4?A.unicodeCount_=0:A.unicodeCount_++,!C)break a;if(C==='"'&&!A.slashed_){A.state_=U();break}if(C==="\\"&&!A.slashed_&&(A.slashed_=!0,C=t[V++],!C))break;if(A.slashed_)if(A.slashed_=!1,C==="u"&&(A.unicodeCount_=1),C=t[V++])continue;else break;b.lastIndex=V;C=b.exec(t);if(!C){V=t.length+1;break}V=C.index+1;C=t[C.index];if(!C)break}A.JSC$11757_pos_+=V-d;continue;case 9:if(!C)continue;C==="r"?A.state_=
10:hl(A,t,V);continue;case 10:if(!C)continue;C==="u"?A.state_=11:hl(A,t,V);continue;case 11:if(!C)continue;C==="e"?A.state_=U():hl(A,t,V);continue;case 12:if(!C)continue;C==="a"?A.state_=13:hl(A,t,V);continue;case 13:if(!C)continue;C==="l"?A.state_=14:hl(A,t,V);continue;case 14:if(!C)continue;C==="s"?A.state_=15:hl(A,t,V);continue;case 15:if(!C)continue;C==="e"?A.state_=U():hl(A,t,V);continue;case 16:if(!C)continue;C==="u"?A.state_=17:hl(A,t,V);continue;case 17:if(!C)continue;C==="l"?A.state_=18:
hl(A,t,V);continue;case 18:if(!C)continue;C==="l"?A.state_=U():hl(A,t,V);continue;case 19:C==="."?A.state_=20:hl(A,t,V);continue;case 20:if("0123456789.eE+-".indexOf(C)!==-1)continue;else V--,A.JSC$11757_pos_--,A.state_=U();continue;default:hl(A,t,V)}}}
function U(){var C=m.pop();return C!=null?C:1}
function x(C){A.depth_>1||(C||(C=R===-1?A.JSC$11757_buffer_+t.substring(B,V):t.substring(R,V)),A.deliverMessageAsRawString_?A.result_.push(C):A.result_.push(JSON.parse(C)),R=V)}
for(var A=this,m=A.stack_,b=A.stringInputPattern_,f=t.length,B=0,R=-1,V=0;V<f;)switch(A.streamState_){case 3:return hl(A,t,V),null;case 2:return E()&&hl(A,t,V),null;case 0:if(E()){var Q=t[V++];A.JSC$11757_pos_++;if(Q==="["){A.streamState_=1;B=V;A.state_=4;continue}else hl(A,t,V)}return null;case 1:return p(),A.depth_===0&&A.state_==5?(A.streamState_=2,A.JSC$11757_buffer_=t.substring(V)):A.JSC$11757_buffer_=R===-1?A.JSC$11757_buffer_+t.substring(B):t.substring(R),A.result_.length>0?(Q=A.result_,A.result_=
[],Q):null}return null};_.Oa(_.Ko,Ey);v6.prototype.getValue=function(){return this.JSC$11764_value_};
v6.prototype.clone=function(){return new v6(this.JSC$11764_key_,this.JSC$11764_value_)};var au=function(t){this.nodes_=[];if(t)a:{if(t instanceof au){var E=t.getKeys();t=t.getValues();if(this.getCount()<=0){for(var p=this.nodes_,U=0;U<E.length;U++)p.push(new v6(E[U],t[U]));break a}}else E=_.Kq.getKeys(t),t=_.Kq.getValues(t);for(p=0;p<E.length;p++)this.insert(E[p],t[p])}};
_.Y=au.prototype;_.Y.insert=function(t,E){var p=this.nodes_;p.push(new v6(t,E));t=p.length-1;E=this.nodes_;for(p=E[t];t>0;){var U=t-1>>1;if(E[U].JSC$11764_key_>p.JSC$11764_key_)E[t]=E[U],t=U;else break}E[t]=p};
_.Y.remove=function(){var t=this.nodes_,E=t.length,p=t[0];if(!(E<=0)){if(E==1)t.length=0;else{t[0]=t.pop();t=0;E=this.nodes_;for(var U=E.length,x=E[t];t<U>>1;){var A=t*2+1,m=t*2+2;A=m<U&&E[m].JSC$11764_key_<E[A].JSC$11764_key_?m:A;if(E[A].JSC$11764_key_>x.JSC$11764_key_)break;E[t]=E[A];t=A}E[t]=x}return p.getValue()}};
_.Y.peek=function(){var t=this.nodes_;if(t.length!=0)return t[0].getValue()};
_.Y.getValues=function(){for(var t=this.nodes_,E=[],p=t.length,U=0;U<p;U++)E.push(t[U].getValue());return E};
_.Y.getKeys=function(){for(var t=this.nodes_,E=[],p=t.length,U=0;U<p;U++)E.push(t[U].JSC$11764_key_);return E};
_.Y.containsValue=function(t){return this.nodes_.some(function(E){return E.getValue()==t})};
_.Y.containsKey=function(t){return this.nodes_.some(function(E){return E.JSC$11764_key_==t})};
_.Y.clone=function(){return new au(this)};
_.Y.getCount=function(){return this.nodes_.length};
_.Y.isEmpty=function(){return this.nodes_.length===0};
_.Y.clear=function(){this.nodes_.length=0};_.Y=_.yO.prototype;_.Y.getCount=function(){return this.size};
_.Y.getValues=function(){eE(this);for(var t=[],E=0;E<this.JSC$11770_keys_.length;E++)t.push(this.JSC$11770_map_[this.JSC$11770_keys_[E]]);return t};
_.Y.getKeys=function(){eE(this);return this.JSC$11770_keys_.concat()};
_.Y.containsKey=function(t){return this.has(t)};
_.Y.has=function(t){return FH(this.JSC$11770_map_,t)};
_.Y.containsValue=function(t){for(var E=0;E<this.JSC$11770_keys_.length;E++){var p=this.JSC$11770_keys_[E];if(FH(this.JSC$11770_map_,p)&&this.JSC$11770_map_[p]==t)return!0}return!1};
_.Y.equals=function(t,E){if(this===t)return!0;if(this.size!=t.getCount())return!1;E=E||wYp;eE(this);for(var p,U=0;p=this.JSC$11770_keys_[U];U++)if(!E(this.get(p),t.get(p)))return!1;return!0};
var wYp=function(t,E){return t===E};
_.yO.prototype.isEmpty=function(){return this.size==0};
_.yO.prototype.clear=function(){this.JSC$11770_map_={};this.version_=this.size=this.JSC$11770_keys_.length=0};
_.yO.prototype.remove=function(t){return this.delete(t)};
_.yO.prototype.delete=function(t){return FH(this.JSC$11770_map_,t)?(delete this.JSC$11770_map_[t],--this.size,this.version_++,this.JSC$11770_keys_.length>2*this.size&&eE(this),!0):!1};
var eE=function(t){if(t.size!=t.JSC$11770_keys_.length){for(var E=0,p=0;E<t.JSC$11770_keys_.length;){var U=t.JSC$11770_keys_[E];FH(t.JSC$11770_map_,U)&&(t.JSC$11770_keys_[p++]=U);E++}t.JSC$11770_keys_.length=p}if(t.size!=t.JSC$11770_keys_.length){E={};for(U=p=0;p<t.JSC$11770_keys_.length;){var x=t.JSC$11770_keys_[p];FH(E,x)||(t.JSC$11770_keys_[U++]=x,E[x]=1);p++}t.JSC$11770_keys_.length=U}};
_.Y=_.yO.prototype;_.Y.get=function(t,E){return FH(this.JSC$11770_map_,t)?this.JSC$11770_map_[t]:E};
_.Y.set=function(t,E){FH(this.JSC$11770_map_,t)||(this.size+=1,this.JSC$11770_keys_.push(t),this.version_++);this.JSC$11770_map_[t]=E};
_.Y.addAll=function(t){if(t instanceof _.yO)for(var E=t.getKeys(),p=0;p<E.length;p++)this.set(E[p],t.get(E[p]));else for(E in t)this.set(E,t[E])};
_.Y.forEach=function(t,E){for(var p=this.getKeys(),U=0;U<p.length;U++){var x=p[U],A=this.get(x);t.call(E,A,x,this)}};
_.Y.clone=function(){return new _.yO(this)};
_.Y.transpose=function(){for(var t=new _.yO,E=0;E<this.JSC$11770_keys_.length;E++){var p=this.JSC$11770_keys_[E];t.set(this.JSC$11770_map_[p],p)}return t};
_.Y.keys=function(){return sK3(this.__iterator__(!0)).toEs6()};
_.Y.values=function(){return sK3(this.__iterator__(!1)).toEs6()};
_.Y.entries=function(){var t=this;return AJ3(this.keys(),function(E){return[E,t.get(E)]})};
_.Y.__iterator__=function(t){eE(this);var E=0,p=this.version_,U=this,x=new er;x.next=function(){if(p!=U.version_)throw Error("ve");if(E>=U.JSC$11770_keys_.length)return Fc;var A=U.JSC$11770_keys_[E++];return z4(t?A:U.JSC$11770_map_[A])};
return x};
var FH=function(t,E){return Object.prototype.hasOwnProperty.call(t,E)};var Rus=function(t,E){if(E=t.JSC$11773_map_.get(E))E.remove(),t.insert_(E);return E};
_.Y=dh8.prototype;_.Y.get=function(t,E){return(t=Rus(this,t))?t.value:E};
_.Y.set=function(t,E){var p=Rus(this,t);p?p.value=E:(p=new kGO(t,E),this.JSC$11773_map_.set(t,p),this.insert_(p))};
_.Y.peek=function(){return this.JSC$11773_head_.next.value};
_.Y.shift=function(){return VYG(this,this.JSC$11773_head_.next)};
_.Y.pop=function(){return VYG(this,this.JSC$11773_head_.prev)};
_.Y.remove=function(t){return(t=this.JSC$11773_map_.get(t))?(this.removeNode(t),!0):!1};
_.Y.removeNode=function(t){t.remove();this.JSC$11773_map_.remove(t.key)};
_.Y.getCount=function(){return this.JSC$11773_map_.getCount()};
_.Y.isEmpty=function(){return this.JSC$11773_map_.isEmpty()};
_.Y.getKeys=function(){return this.map(function(t,E){return E})};
_.Y.getValues=function(){return this.map(function(t){return t})};
_.Y.contains=function(t){return this.some(function(E){return E==t})};
_.Y.containsKey=function(t){return this.JSC$11773_map_.containsKey(t)};
_.Y.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11773_head_.prev)};
_.Y.forEach=function(t,E){for(var p=this.JSC$11773_head_.next;p!=this.JSC$11773_head_;p=p.next)t.call(E,p.value,p.key,this)};
_.Y.map=function(t,E){for(var p=[],U=this.JSC$11773_head_.next;U!=this.JSC$11773_head_;U=U.next)p.push(t.call(E,U.value,U.key,this));return p};
_.Y.some=function(t,E){for(var p=this.JSC$11773_head_.next;p!=this.JSC$11773_head_;p=p.next)if(t.call(E,p.value,p.key,this))return!0;return!1};
_.Y.every=function(t,E){for(var p=this.JSC$11773_head_.next;p!=this.JSC$11773_head_;p=p.next)if(!t.call(E,p.value,p.key,this))return!1;return!0};
_.Y.insert_=function(t){t.next=this.JSC$11773_head_.next;t.prev=this.JSC$11773_head_;this.JSC$11773_head_.next=t;for(t.next.prev=t;this.getCount()>100;)this.removeNode(this.JSC$11773_head_.prev)};
var VYG=function(t,E){t.JSC$11773_head_!=E&&t.removeNode(E);return E.value},kGO=function(t,E){this.key=t;
this.value=E};
kGO.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var QFr=function(){au.apply(this,arguments)};
_.u(QFr,au);QFr.prototype.enqueue=function(t,E){this.insert(t,E)};var C7o=function(){var t=Error();t.name="SecurityError";throw t;},ARj=function(){return{get opener(){return null},
get closed(){return!0},get location(){C7o()},get document(){C7o()},postMessage:function(){},
close:function(){},
focus:function(){}}};var u9$={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 gMY={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 jFo={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(gMY).join("|");var rer=function(){function t(b){b.substr(-1)!==";"&&(b+=";");return m(b)}
for(var E=Object.keys(jFo).sort(ISL),p=Object.keys(gMY).sort(ISL),U=0,x=0;U<p.length;U++)E[x]===p[U]?(p[U]+=";?",x++):p[U]+=";";var A=new RegExp("&(?:"+p.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),m=ZuO();return function(b){return String(b).replace(A,t)}}();/*

 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 kdW={};var d6Z=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"),utm=/[\\&]/,JeT=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),IVr=RegExp('[&<>"]',"g"),gjT=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),Z$3=function(t){return t.charCodeAt(0)===92?t.charAt(1):rer(t)},O$f=function(t){return utm.test(t)?t.replace(JeT,Z$3):t},XY4=function(t){try{var E,p="";
if(typeof x!=="string"){var U=x;var x=";/?:@&=+$,-_.!~*'()#"}typeof U==="undefined"&&(U=!0);var A,m=kdW[x];if(m)var b=m;else{m=kdW[x]=[];for(A=0;A<128;A++){var f=String.fromCharCode(A);/^[0-9a-z]$/i.test(f)?m.push(f):m.push("%"+("0"+A.toString(16).toUpperCase()).slice(-2))}for(A=0;A<x.length;A++)m[x.charCodeAt(A)]=x[A];b=m}var B=0;for(E=t.length;B<E;B++){var R=t.charCodeAt(B);if(U&&R===37&&B+2<E&&/^[0-9a-f]{2}$/i.test(t.slice(B+1,B+3)))p+=t.slice(B,B+3),B+=2;else if(R<128)p+=b[R];else if(R>=55296&&
R<=57343){if(R>=55296&&R<=56319&&B+1<E){var V=t.charCodeAt(B+1);if(V>=56320&&V<=57343){p+=encodeURIComponent(t[B]+t[B+1]);B++;continue}}p+="%EF%BF%BD"}else p+=encodeURIComponent(t[B])}return p}catch(Q){return t}},hur=function(t){switch(t){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return t}},zo=function(t,E){return IVr.test(t)?E?t.replace(gjT,hur):t.replace(IVr,hur):t};/*

 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 l9;if(String.fromCodePoint)l9=function(t){try{return String.fromCodePoint(t)}catch(E){if(E instanceof RangeError)return String.fromCharCode(65533);throw E;}};
else{var aVo=String.fromCharCode,eum=Math.floor;l9=function(){var t=[],E=-1,p=arguments.length;if(!p)return"";for(var U="";++E<p;){var x=Number(arguments[E]);if(!isFinite(x)||x<0||x>1114111||eum(x)!==x)return String.fromCharCode(65533);if(x<=65535)t.push(x);else{x-=65536;var A=(x>>10)+55296;x=x%1024+56320;t.push(A,x)}if(E+1===p||t.length>16384)U+=aVo.apply(null,t),t.length=0}return U}};var FHr=function(t){this.root=this.current=t;this.entering=!0};
FHr.prototype.next=function(){var t=this.current,E=this.entering;if(t===null)return null;a:switch(t._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 p=!0;break a;default:p=!1}E&&p?t._firstChild?(this.current=t._firstChild,this.entering=!0):this.entering=!1:t===this.root?this.current=null:t._next===null?(this.current=
t._parent,this.entering=!1):(this.current=t._next,this.entering=!0);return{entering:E,node:t}};
var Em=function(t,E){this._type=t;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=E;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};
Em.prototype.appendChild=function(t){t.unlink();t._parent=this;this._lastChild?(this._lastChild._next=t,t._prev=this._lastChild):this._firstChild=t;this._lastChild=t};
Em.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 zuG=function(t,E){E.unlink();E._next=t._next;E._next&&(E._next._prev=E);E._prev=t;t._next=E;E._parent=t._parent;E._next||(E._parent._lastChild=E)};
Em.prototype.insertBefore=function(t){t.unlink();t._prev=this._prev;t._prev&&(t._prev._next=t);t._next=this;this._prev=t;t._parent=this._parent;t._prev||(t._parent._firstChild=t)};
_.aE.Object.defineProperties(Em.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(t){this._literal=t}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(t){this._destination=t}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(t){this._title=t}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(t){this._info=t}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(t){this._level=t}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(t){this._listData.type=t}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(t){this._listData.tight=t}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(t){this._listData.start=t}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(t){this._onEnter=t}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(t){this._onExit=t}}});var OuE=/[ \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,
XfJ={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 lVr=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]/),
Gdp=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),njT=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),NX4=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),D6G=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),sFo=/`+/,LHZ=/^`+/,P7r=/\.\.\./g,TXo=/--+/g,ojr=/^<([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])?)*)>/,
WHr=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,$64=/^ *(?:\n *)?/,KHr=/^[ \t\n\x0b\x0c\x0d]/,vjr=/[ \t\n\x0b\x0c\x0d]+/g,ye3=/^\s/,SXr=/ *$/,ceX=/^ */,tc3=/^ *(?:\n|$)/,Eus=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),pSr=/^[^\n`\[\]\\!<&*_'"]+/m,Go=function(t){var E=new Em("text");E._literal=t;return E},nQ=function(t){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=t||{}};
nQ.prototype.match=function(t){t=t.exec(this.subject.slice(this.pos));if(t===null)return null;this.pos+=t.index+t[0].length;return t[0]};
nQ.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var NU=function(t){t.match($64);return!0},UMr=function(t,E,p){var U=0;
var x=t.pos;if(E===39||E===34)U++,t.pos++;else for(;t.peek()===E;)U++,t.pos++;if(U===0)U=null;else{var A=x===0?"\n":t.subject.charAt(x-1);var m=t.peek();m=m===-1?"\n":l9(m);var b=ye3.test(m);m=lVr.test(m);var f=ye3.test(A);var B=lVr.test(A);A=!b&&!(m&&!f&&!B);b=!f&&!(B&&!b&&!m);E===95?(f=A&&(!b||B),m=b&&(!A||m)):(f=E===39||E===34?A&&!b:A,m=b);t.pos=x;U={numdelims:U,can_open:f,can_close:m}}if(!U)return!1;x=U.numdelims;m=t.pos;t.pos+=x;m=E===39?"\u2019":E===34?"\u201c":t.subject.slice(m,t.pos);m=Go(m);
p.appendChild(m);t.delimiters={cc:E,numdelims:x,origdelims:x,node:m,previous:t.delimiters,next:null,can_open:U.can_open,can_close:U.can_close};t.delimiters.previous!==null&&(t.delimiters.previous.next=t.delimiters);return!0},xMW=function(t,E){E.previous!==null&&(E.previous.next=E.next);
E.next===null?t.delimiters=E.previous:E.next.previous=E.previous},ANs=function(t,E){var p,U,x=[],A=!1;
x[95]=E;x[42]=E;x[39]=E;x[34]=E;for(p=t.delimiters;p!==null&&p.previous!==E;)p=p.previous;for(;p!==null;){var m=p.cc;if(p.can_close){var b=p.previous;for(U=!1;b!==null&&b!==E&&b!==x[m];){A=(p.can_open||b.can_close)&&(b.origdelims+p.origdelims)%3===0;if(b.cc===p.cc&&b.can_open&&!A){U=!0;break}b=b.previous}var f=p;if(m===42||m===95)if(U){var B=p.numdelims>=2&&b.numdelims>=2?2:1;var R=b.node;var V=p.node;b.numdelims-=B;p.numdelims-=B;R._literal=R._literal.slice(0,R._literal.length-B);V._literal=V._literal.slice(0,
V._literal.length-B);var Q=new Em(B===1?"emph":"strong");for(B=R._next;B&&B!==V;){var C=B._next;B.unlink();Q.appendChild(B);B=C}zuG(R,Q);B=b;C=p;B.next!==C&&(B.next=C,C.previous=B);b.numdelims===0&&(R.unlink(),xMW(t,b));p.numdelims===0&&(V.unlink(),b=p.next,xMW(t,p),p=b)}else p=p.next;else m===39?(p.node._literal="\u2019",U&&(b.node._literal="\u2018"),p=p.next):m===34&&(p.node._literal="\u201d",U&&(b.node.literal="\u201c"),p=p.next);U||A||(x[m]=f.previous,f.can_open||xMW(t,f))}else p=p.next}for(;t.delimiters!==
null&&t.delimiters!==E;)xMW(t,t.delimiters)},YQ0=function(t){t=t.match(Gdp);
return t===null?null:O$f(t.substr(1,t.length-2))},Mcs=function(t){var E=t.match(njT);
if(E===null){E=t.pos;for(var p=0,U;(U=t.peek())!==-1;)if(U===92)t.pos+=1,t.peek()!==-1&&(t.pos+=1);else if(U===40)t.pos+=1,p+=1;else if(U===41)if(p<1)break;else t.pos+=1,--p;else if(KHr.exec(l9(U))!==null)break;else t.pos+=1;E=t.subject.substr(E,t.pos-E);return XY4(O$f(E))}return XY4(O$f(E.substr(1,E.length-2)))},mM3=function(t){t=t.match(Eus);
return t===null||t.length>1001?0:t.length},bro=function(t,E,p,U){t.brackets!==null&&(t.brackets.bracketAfter=!0);
t.brackets={node:E,previous:t.brackets,previousDelimiter:t.delimiters,index:p,image:U,active:!0}},irW=function(t,E){var p;
return(p=t.match(pSr))?(t.options.smart?E.appendChild(Go(p.replace(P7r,"\u2026").replace(TXo,function(U){var x=0,A=0;U.length%3===0?A=U.length/3:U.length%2===0?x=U.length/2:U.length%3===2?(x=1,A=(U.length-2)/3):(x=2,A=(U.length-4)/3);U="";var m;for(m=0;m<A;m++)U+="\u2014";for(m=0;m<x;m++)U+="\u2013";return U}))):E.appendChild(Go(p)),!0):!1},qQ0=function(t,E,p){t.subject=E;
t.pos=0;E=t.pos;var U=mM3(t);if(U===0)return 0;var x=t.subject.substr(0,U);if(t.peek()===58)t.pos++;else return t.pos=E,0;NU(t);U=Mcs(t);if(U===null||U.length===0)return t.pos=E,0;var A=t.pos;NU(t);var m=YQ0(t);m===null&&(m="",t.pos=A);var b=!0;t.match(tc3)===null&&(m===""?b=!1:(m="",t.pos=A,b=t.match(tc3)!==null));if(!b)return t.pos=E,0;x=hai(x);if(x==="")return t.pos=E,0;p[x]||(p[x]={destination:U,title:m});return t.pos-E},Hr0=function(t,E){var p,U=t.peek();
if(U===-1)return!1;switch(U){case 10:t.pos+=1;if((p=E._lastChild)&&p.type==="text"&&p._literal[p._literal.length-1]===" "){var x=p._literal[p._literal.length-2]===" ";p._literal=p._literal.replace(SXr,"");E.appendChild(new Em(x?"linebreak":"softbreak"))}else E.appendChild(new Em("softbreak"));t.match(ceX);p=!0;break;case 92:p=t.subject;t.pos+=1;t.peek()===10?(t.pos+=1,p=new Em("linebreak"),E.appendChild(p)):NX4.test(p.charAt(t.pos))?(E.appendChild(Go(p.charAt(t.pos))),t.pos+=1):E.appendChild(Go("\\"));
p=!0;break;case 96:a:if(p=t.match(LHZ),p===null)p=!1;else{x=t.pos;for(var A;(A=t.match(sFo))!==null;)if(A===p){A=new Em("code");A._literal=t.subject.slice(x,t.pos-p.length).trim().replace(vjr," ");E.appendChild(A);p=!0;break a}t.pos=x;E.appendChild(Go(p));p=!0}break;case 42:case 95:p=UMr(t,U,E);break;case 39:case 34:p=t.options.smart&&UMr(t,U,E);break;case 91:p=t.pos;t.pos+=1;x=Go("[");E.appendChild(x);bro(t,x,p,!1);p=!0;break;case 33:p=t.pos;t.pos+=1;t.peek()===91?(t.pos+=1,x=Go("!["),E.appendChild(x),
bro(t,x,p+1,!0)):E.appendChild(Go("!"));p=!0;break;case 93:var m,b=!1,f;t.pos+=1;var B=t.pos;x=t.brackets;if(x===null)E.appendChild(Go("]"));else if(x.active){p=x.image;var R=t.pos;t.peek()===40&&(t.pos++,NU(t)&&(A=Mcs(t))!==null&&NU(t)&&(KHr.test(t.subject.charAt(t.pos-1))&&(m=YQ0(t)),1)&&NU(t)&&t.peek()===41?(t.pos+=1,b=!0):t.pos=R);if(!b){var V=t.pos,Q=mM3(t);Q>2?f=t.subject.slice(V,V+Q):x.bracketAfter||(f=t.subject.slice(x.index,B));Q===0&&(t.pos=R);f&&(f=t.refmap[hai(f)])&&(A=f.destination,m=
f.title,b=!0)}if(b){B=new Em(p?"image":"link");B._destination=A;B._title=m||"";for(A=x.node._next;A;)m=A._next,A.unlink(),B.appendChild(A),A=m;E.appendChild(B);ANs(t,x.previousDelimiter);t.brackets=t.brackets.previous;x.node.unlink();if(!p)for(x=t.brackets;x!==null;)x.image||(x.active=!1),x=x.previous}else t.brackets=t.brackets.previous,t.pos=B,E.appendChild(Go("]"))}else E.appendChild(Go("]")),t.brackets=t.brackets.previous;p=!0;break;case 60:(p=t.match(ojr))?(p=p.slice(1,p.length-1),x=new Em("link"),
x._destination=XY4("mailto:"+p),x._title="",x.appendChild(Go(p)),E.appendChild(x),p=!0):(p=t.match(WHr))?(p=p.slice(1,p.length-1),x=new Em("link"),x._destination=XY4(p),x._title="",x.appendChild(Go(p)),E.appendChild(x),p=!0):p=!1;p||(p=t.match(d6Z),p===null?p=!1:(x=new Em("html_inline"),x._literal=p,E.appendChild(x),p=!0));break;case 38:(p=t.match(D6G))?(E.appendChild(Go(rer(p))),p=!0):p=!1;break;default:p=irW(t,E)}p||(t.pos+=1,E.appendChild(Go(l9(U))));return!0};
nQ.prototype.parseInlines=function(t){this.subject=t._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;Hr0(this,t););t._string_content=null;ANs(this,null)};
nQ.prototype.parse=nQ.prototype.parseInlines;var f20=[/./,/^<(?: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")],BI0=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],wSW=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,RQW=/^[#`~*+_=<>0-9-\|]|\|/,VcT=/[^ \t\f\v\r\n]/,Q7m=/^[*+-]/,Cmf=/^(\d{1,9})([.)])/,j70=/^#{1,6}(?:[ \t]+|$)/,rNG=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,ksf=/^(?:`{3,}|~{3,})(?= *$)/,dMs=/^(?:=+|-+)[ \t]*$/,uYG=/\r\n|\n|\r/,ea$=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,FSL=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,JNG={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(t){return t!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(t,E){for(t=E._firstChild;t;){if(aSj(t)&&t._next){E._listData.tight=!1;break}for(var p=t._firstChild;p;){if(aSj(p)&&(t._next||p._next)){E._listData.tight=!1;break}p=p._next}t=t._next}},
canContain:function(t){return t==="item"},
acceptsLines:!1},block_quote:{continue:function(t){var E=t.currentLine;if(t.indented||c6(E,t.nextNonspace)!==62)return 1;Dx(t);sc(t,1,!1);Sf(c6(E,t.offset))&&sc(t,1,!0);return 0},
finalize:function(){},
canContain:function(t){return t!=="item"},
acceptsLines:!1},item:{continue:function(t,E){if(t.blank){if(E._firstChild==null)return 1;Dx(t)}else if(t.indent>=E._listData.markerOffset+E._listData.padding)sc(t,E._listData.markerOffset+E._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(t){return t!=="item"&&!zaD(t)},
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(t,E){var p=t.currentLine,U=t.indent;if(E._isFenced){if((U=U<=3&&p.charAt(t.nextNonspace)===E._fenceChar&&p.slice(t.nextNonspace).match(ksf))&&U[0].length>=E._fenceLength)return t.finalize(E,t.lineNumber),2;for(E=E._fenceOffset;E>0&&Sf(c6(p,t.offset));)sc(t,1,!0),E--}else if(U>=4)sc(t,4,!0);else if(t.blank)Dx(t);else return 1;return 0},
finalize:function(t,E){if(E._isFenced){var p=E._string_content,U=p.indexOf("\n");t=p.slice(0,U);p=p.slice(U+1);E.info=O$f(t.trim());E._literal=p}else E._literal=E._string_content.replace(/(\n *)+$/,"\n");E._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(t,E){return!t.blank||E._htmlBlockType!==6&&E._htmlBlockType!==7?0:1},
finalize:function(t,E){E._literal=E._string_content.replace(/(\n *)+$/,"");E._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(t){return t.blank?1:0},
finalize:function(t,E){for(var p,U=!1;c6(E._string_content,0)===91&&(p=qQ0(t.inlineParser,E._string_content,t.refmap));)E._string_content=E._string_content.slice(p),U=!0;U&&!VcT.test(E._string_content)&&E.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(t){return to(t.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(t){return t=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(t,E){if(!E._rowIsDelimiter){t=E._isHeader?"th":"td";for(var p=E._parent._tableColumns,U=E._string_content,x=0,A="",m,b=E._sourcepos[0][0];x<U.length;){switch(U[x]){case "|":m&&(m._string_content=A.trim(),A="",m=null,p--,p<=0&&(x=U.length));break;default:if(!m){m=new Em(t,[[b,x],[b,x]]);var f=E._parent._columnAlignment,B=E._parent._tableColumns-p;f&&B<=f.length&&B>=0&&(m._alignment=f[B]);E.appendChild(m)}A+=U[x];m._sourcepos[1][1]=x}x++}m&&(m._string_content=A.trim());E._string_content=
""}},
canContain:function(t){return t!=="row"},
acceptsLines:!1}},I2p=[function(t){if(t.indented||c6(t.currentLine,t.nextNonspace)!==62)return 0;Dx(t);sc(t,1,!1);Sf(c6(t.currentLine,t.offset))&&sc(t,1,!0);LQ(t);t.addChild("block_quote",t.nextNonspace);return 1},
function(t){var E;if(!t.indented&&(E=t.currentLine.slice(t.nextNonspace).match(j70))){Dx(t);sc(t,E[0].length,!1);LQ(t);var p=t.addChild("heading",t.nextNonspace);p.level=E[0].trim().length;p._string_content=t.currentLine.slice(t.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");sc(t,t.currentLine.length-t.offset);return 2}return 0},
function(t){var E;if(!t.indented&&(E=t.currentLine.slice(t.nextNonspace).match(rNG))){var p=E[0].length;LQ(t);var U=t.addChild("code_block",t.nextNonspace);U._isFenced=!0;U._fenceLength=p;U._fenceChar=E[0][0];U._fenceOffset=t.indent;Dx(t);sc(t,p,!1);return 2}return 0},
function(t,E){if(!t.indented&&c6(t.currentLine,t.nextNonspace)===60){var p=t.currentLine.slice(t.nextNonspace),U;for(U=1;U<=7;U++)if(f20[U].test(p)&&(U<7||E.type!=="paragraph"))return LQ(t),t.addChild("html_block",t.offset)._htmlBlockType=U,2}return 0},
function(t,E){var p;if(!t.indented&&E.type==="paragraph"&&(p=t.currentLine.slice(t.nextNonspace).match(dMs))){LQ(t);var U=new Em("heading",E.sourcepos);U.level=p[0][0]==="="?1:2;U._string_content=E._string_content;zuG(E,U);E.unlink();t.tip=U;sc(t,t.currentLine.length-t.offset,!1);return 2}return 0},
function(t){return!t.indented&&wSW.test(t.currentLine.slice(t.nextNonspace))?(LQ(t),t.addChild("thematic_break",t.nextNonspace),sc(t,t.currentLine.length-t.offset,!1),2):0},
function(t,E){var p,U;if(!(U=t.indented&&E.type!=="list")){a:{var x=E,A=t.currentLine.slice(t.nextNonspace);U={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:t.indent};if(p=A.match(Q7m))U.type="bullet",U.bulletChar=p[0][0];else{if(!(p=A.match(Cmf))||x.type==="paragraph"&&p[1]!=="1"){p=null;break a}U.type="ordered";U.start=parseInt(p[1],10);U.delimiter=p[2]}var m=c6(t.currentLine,t.nextNonspace+p[0].length);if(m!==-1&&m!==9&&m!==32||x.type==="paragraph"&&!t.currentLine.slice(t.nextNonspace+
p[0].length).match(VcT))p=null;else{Dx(t);sc(t,p[0].length,!0);x=t.column;A=t.offset;do sc(t,1,!0),m=c6(t.currentLine,t.offset);while(t.column-x<5&&Sf(m));m=c6(t.currentLine,t.offset)===-1;var b=t.column-x;b>=5||b<1||m?(U.padding=p[0].length+1,t.column=x,t.offset=A,Sf(c6(t.currentLine,t.offset))&&sc(t,1,!0)):U.padding=p[0].length+b;p=U}}U=!p}if(U)return 0;LQ(t);(U=t.tip.type!=="list")||(E=E._listData,U=!(E.type===p.type&&E.delimiter===p.delimiter&&E.bulletChar===p.bulletChar));U&&(E=t.addChild("list",
t.nextNonspace),E._listData=p);E=t.addChild("item",t.nextNonspace);E._listData=p;return 1},
function(t){var E;return((E=t.options.shouldParseIndentAsCodeBlock)!=null?E:1)&&t.indented&&t.tip.type!=="paragraph"&&!t.blank?(sc(t,4,!0),LQ(t),t.addChild("code_block",t.offset),2):0},
function(t,E){var p=to(t.currentLine),U=to(t.lookahead);if(p!==0&&U<0&&Math.abs(p)==Math.abs(U)&&!zaD(E.type)){LQ(t);E=t.addChild("table",t.nextNonspace);E._tableRows=1;E._tableColumns=Math.abs(p);p=t.lookahead;if(FSL.test(p)){U=[];for(var x=0,A=!1,m=0,b=void 0;x<p.length;){var f=m>=3;switch(p[x]){case "-":m++;break;case "|":A&&(U.push(b),b=void 0,m=0);A=!0;break;case ":":b||f||(b="left"),!b&&f&&(b="right"),b==="left"&&f&&(b="center")}x++}p=U}else p=void 0;E._columnAlignment=p;E=t.addChild("row",
t.nextNonspace);E._isHeader=!0;sc(t,t.currentLine.length-t.offset,!1);E._string_content=t.currentLine;return 1}return 0},
function(t,E){if(E.type=="table"&&to(t.currentLine)!==0){LQ(t);var p=E;E=t.addChild("row",t.nextNonspace);to(t.currentLine)<0?E._rowIsDelimiter=!0:p._tableRows+=1;sc(t,t.currentLine.length-t.offset,!1);E._string_content=t.currentLine;return 2}return 0}],pGl=function(){var t={shouldParseIndentAsCodeBlock:!1};
t=t===void 0?{}:t;this.lastMatchedContainer=this.doc=lSD();this.refmap={};this.lastLineLength=0;this.inlineParser=new nQ(t);this.options=t;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=JNG;this.blockStarts=I2p},gus=function(t){t.partiallyConsumedTab&&(t.offset+=1,t.tip._string_content+=" ".repeat(4-t.column%
4));
t.tip._string_content+=t.currentLine.slice(t.offset)+"\n"};
pGl.prototype.addChild=function(t,E){for(;!this.blocks[this.tip.type].canContain(t);)this.finalize(this.tip,this.lineNumber-1);t=new Em(t,[[this.lineNumber,E+1],[0,0]]);t._string_content="";this.tip.appendChild(t);return this.tip=t};
var LQ=function(t){if(!t.allClosed){for(;t.oldtip!==t.lastMatchedContainer;){var E=t.oldtip._parent;t.finalize(t.oldtip,t.lineNumber-1);t.oldtip=E}t.allClosed=!0}},sc=function(t,E,p){for(var U=t.currentLine,x,A;E>0&&(A=U[t.offset]);)A==="\t"?(x=4-t.column%4,p?(t.partiallyConsumedTab=x>E,x=x>E?E:x,t.column+=x,t.offset+=t.partiallyConsumedTab?0:1,E-=x):(t.partiallyConsumedTab=!1,t.column+=x,t.offset+=1,--E)):(t.partiallyConsumedTab=!1,t.offset+=1,t.column+=1,--E)},Dx=function(t){t.offset=t.nextNonspace;
t.column=t.nextNonspaceColumn;t.partiallyConsumedTab=!1},Zrr=function(t){for(var E=t.currentLine,p=t.offset,U=t.column,x;(x=E.charAt(p))!=="";)if(x===" ")p++,U++;
else if(x==="\t")p++,U+=4-U%4;else break;t.blank=x==="\n"||x==="\r"||x==="";t.nextNonspace=p;t.nextNonspaceColumn=U;t.indent=t.nextNonspaceColumn-t.column;t.indented=t.indent>=4};
pGl.prototype.finalize=function(t,E){var p=t._parent;t._open=!1;t.sourcepos[1]=[E,this.lastLineLength];this.blocks[t.type].finalize(this,t);this.tip=p};
pGl.prototype.parse=function(t){this.tip=this.doc=lSD();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!t)return this.doc;this.options.time&&console.time("preparing input");var E=t.split(uYG),p=E.length;t.charCodeAt(t.length-1)===10&&--p;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(t=0;t<p;t++)a:{var U=void 0,x=E[t],A=E[t+1],m=!0,b=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;x.indexOf("\x00")!==-1&&(x=x.replace(/\0/g,"\ufffd"));this.currentLine=x;for(this.lookahead=A;(U=b._lastChild)&&U._open;){b=U;Zrr(this);switch(this.blocks[b.type].continue(this,b)){case 0:break;case 1:m=!1;break;case 2:this.lastLineLength=x.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!m){b=b._parent;break}}this.allClosed=b===this.oldtip;this.lastMatchedContainer=
b;U=b.type!=="paragraph"&&JNG[b.type].acceptsLines;A=this.blockStarts;for(m=A.length;!U;){Zrr(this);if(!this.indented&&!RQW.test(x.slice(this.nextNonspace))){Dx(this);break}for(var f=0;f<m;){var B=A[f](this,b);if(B===1){b=this.tip;break}else if(B===2){b=this.tip;U=!0;break}else f++}if(f===m){Dx(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){LQ(this);this.blank&&b.lastChild&&(b.lastChild._lastLineBlank=!0);U=b.type;A=this.blank&&!(U==="block_quote"||U==="code_block"&&b._isFenced||
U==="item"&&!b._firstChild&&b.sourcepos[0][0]===this.lineNumber);for(m=b;m;)m._lastLineBlank=A,m=m._parent;this.blocks[U].acceptsLines?(gus(this),U==="html_block"&&b._htmlBlockType>=1&&b._htmlBlockType<=5&&BI0[b._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(b,this.lineNumber)):this.offset<x.length&&!this.blank&&(this.addChild("paragraph",this.offset),Dx(this),gus(this))}else gus(this);this.lastLineLength=x.length}for(;this.tip;)this.finalize(this.tip,p);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");x=new FHr(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;p=x.next();)E=p.node,t=E.type,p.entering||t!=="paragraph"&&t!=="heading"&&t!=="th"&&t!="td"||this.inlineParser.parse(E);this.options.time&&console.timeEnd("inline parsing");return this.doc};GGY.prototype.render=function(t){t=new FHr(t);var E;this.buffer="";for(this.lastOut="\n";E=t.next();){var p=E.node.type;if(this[p])this[p](E.node,E.entering)}return this.buffer};
GGY.prototype.out=function(t){To(this,t)};
var To=function(t,E){t.buffer+=E;t.lastOut=E};
GGY.prototype.cr=function(){this.lastOut!=="\n"&&To(this,"\n")};var OrG=/^javascript:|vbscript:|file:|data:/i,XS4=/^data:image\/(?:png|gif|jpeg|webp)/i,hQG=function(t){return OrG.test(t)&&!XS4.test(t)};
p_.prototype=Object.create(GGY.prototype);_.Y=p_.prototype;_.Y.text=function(t){this.out(t.literal)};
_.Y.html_inline=function(t){this.options.safe?To(this,"\x3c!-- raw HTML omitted --\x3e"):To(this,t.literal)};
_.Y.html_block=function(t){this.cr();this.options.safe?To(this,"\x3c!-- raw HTML omitted --\x3e"):To(this,t.literal);this.cr()};
_.Y.softbreak=function(){To(this,this.options.softbreak)};
_.Y.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.Y.link=function(t,E){var p=this.attrs(t);E?(this.options.safe&&hQG(t.destination)||p.push(["href",zo(t.destination,!0)]),t.title&&p.push(["title",zo(t.title,!0)]),this.tag("a",p)):this.tag("/a")};
_.Y.image=function(t,E){E?(this.disableTags===0&&(this.options.safe&&hQG(t.destination)?To(this,'<img src="" alt="'):To(this,'<img src="'+zo(t.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(t.title&&To(this,'" title="'+zo(t.title,!0)),To(this,'" />')))};
_.Y.emph=function(t,E){this.tag(E?"em":"/em")};
_.Y.strong=function(t,E){this.tag(E?"strong":"/strong")};
_.Y.paragraph=function(t,E){var p=t.parent.parent;t=this.attrs(t);p!==null&&p.type==="list"&&p.listTight||(E?(this.cr(),this.tag("p",t)):(this.tag("/p"),this.cr()))};
_.Y.heading=function(t,E){var p="h"+t.level;t=this.attrs(t);E?(this.cr(),this.tag(p,t)):(this.tag("/"+p),this.cr())};
_.Y.code=function(t){this.tag("code");this.out(t.literal);this.tag("/code")};
_.Y.code_block=function(t){var E=t.info?t.info.split(/\s+/):[],p=this.attrs(t);E.length>0&&E[0].length>0&&p.push(["class","language-"+zo(E[0],!0)]);this.cr();this.tag("pre");this.tag("code",p);this.out(t.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.Y.thematic_break=function(t){t=this.attrs(t);this.cr();this.tag("hr",t,!0);this.cr()};
_.Y.block_quote=function(t,E){t=this.attrs(t);E?(this.cr(),this.tag("blockquote",t)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.Y.list=function(t,E){var p=t.listType==="bullet"?"ul":"ol",U=this.attrs(t);E?(t=t.listStart,t!==null&&t!==1&&U.push(["start",t.toString()]),this.cr(),this.tag(p,U)):(this.cr(),this.tag("/"+p));this.cr()};
_.Y.item=function(t,E){t=this.attrs(t);E?this.tag("li",t):(this.tag("/li"),this.cr())};
_.Y.custom_inline=function(t,E){E&&t.onEnter?To(this,t.onEnter):!E&&t.onExit&&To(this,t.onExit)};
_.Y.custom_block=function(t,E){this.cr();E&&t.onEnter?To(this,t.onEnter):!E&&t.onExit&&To(this,t.onExit);this.cr()};
_.Y.table=function(t,E){t=this.attrs(t);E?(this.cr(),this.tag("table",t)):(this.tag("/table"),this.cr())};
_.Y.row=function(t,E){t._rowIsDelimiter||(t=this.attrs(t),E?this.tag("tr",t):this.tag("/tr"))};
_.Y.td=function(t,E){var p=this.attrs(t);t._alignment&&p.push(["align",t._alignment]);E?this.tag("td",p):this.tag("/td")};
_.Y.th=function(t,E){var p=this.attrs(t);t._alignment&&p.push(["align",t._alignment]);E?this.tag("th",p):this.tag("/th")};
_.Y.out=function(t){To(this,zo(t,!1))};
_.Y.tag=function(t,E,p){if(!(this.disableTags>0)){this.buffer+="<"+t;if(E&&E.length>0){t=0;for(var U;(U=E[t])!==void 0;)this.buffer+=" "+U[0]+'="'+U[1]+'"',t++}p&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.Y.attrs=function(t){var E=[];this.options.sourcepos&&(t=t.sourcepos)&&E.push(["data-sourcepos",String(t[0][0])+":"+String(t[0][1])+"-"+String(t[1][0])+":"+String(t[1][1])]);return E};
p_.prototype.text=p_.prototype.text;p_.prototype.html_inline=p_.prototype.html_inline;p_.prototype.html_block=p_.prototype.html_block;p_.prototype.softbreak=p_.prototype.softbreak;p_.prototype.linebreak=p_.prototype.linebreak;p_.prototype.link=p_.prototype.link;p_.prototype.image=p_.prototype.image;p_.prototype.emph=p_.prototype.emph;p_.prototype.strong=p_.prototype.strong;p_.prototype.paragraph=p_.prototype.paragraph;p_.prototype.heading=p_.prototype.heading;p_.prototype.code=p_.prototype.code;
p_.prototype.code_block=p_.prototype.code_block;p_.prototype.thematic_break=p_.prototype.thematic_break;p_.prototype.block_quote=p_.prototype.block_quote;p_.prototype.list=p_.prototype.list;p_.prototype.item=p_.prototype.item;p_.prototype.custom_inline=p_.prototype.custom_inline;p_.prototype.custom_block=p_.prototype.custom_block;p_.prototype.table=p_.prototype.table;p_.prototype.row=p_.prototype.row;p_.prototype.td=p_.prototype.td;p_.prototype.th=p_.prototype.th;p_.prototype.out=p_.prototype.out;
p_.prototype.tag=p_.prototype.tag;p_.prototype.attrs=p_.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 a2m,eQ0,qd0;(function(){function t(h,X){return h<X?-1:h>X?1:h>=X?0:NaN}
function E(h){return function(X,n){return t(h(X),n)}}
function p(){for(var h=0,X=arguments.length,n={},pO;h<X;++h){if(!(pO=arguments[h]+"")||pO in n)throw Error("xe`"+pO);n[pO]=[]}return new U(n)}
function U(h){this._=h}
function x(h,X){return h.trim().split(/^|\s+/).map(function(n){var pO="",qK=n.indexOf(".");qK>=0&&(pO=n.slice(qK+1),n=n.slice(0,qK));if(n&&!X.hasOwnProperty(n))throw Error("ye`"+n);return{type:n,name:pO}})}
function A(h,X,n){for(var pO=0,qK=h.length;pO<qK;++pO)if(h[pO].name===X){h[pO]=Mmt;h=h.slice(0,pO).concat(h.slice(pO+1));break}n!=null&&h.push({name:X,value:n});return h}
function m(h){var X=h,n=X.indexOf(":");n>=0&&(X=h.slice(0,n))!=="xmlns"&&(h=h.slice(n+1));return fr.hasOwnProperty(X)?{space:fr[X],local:h}:h}
function b(h){return function(){var X=this.ownerDocument,n=this.namespaceURI;return n==="http://www.w3.org/1999/xhtml"&&X.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?X.createElement(h):X.createElementNS(n,h)}}
function f(h){return function(){return this.ownerDocument.createElementNS(h.space,h.local)}}
function B(h){h=m(h);return(h.local?f:b)(h)}
function R(){}
function V(h){return h==null?R:function(){return this.querySelector(h)}}
function Q(h){return Array(h.length)}
function C(h,X){this.ownerDocument=h.ownerDocument;this.namespaceURI=h.namespaceURI;this._next=null;this._parent=h;this.__data__=X}
function d(h){return function(){return h}}
function I(h,X,n,pO,qK,Q_){for(var I0=0,e$,bG=X.length,xm=Q_.length;I0<xm;++I0)(e$=X[I0])?(e$.__data__=Q_[I0],pO[I0]=e$):n[I0]=new C(h,Q_[I0]);for(;I0<bG;++I0)if(e$=X[I0])qK[I0]=e$}
function O(h,X,n,pO,qK,Q_,I0){var e$,bG,xm={},qf=X.length,rZ=Q_.length,pl=Array(qf),nl;for(e$=0;e$<qf;++e$)if(bG=X[e$])pl[e$]=nl="$"+I0.call(bG,bG.__data__,e$,X),nl in xm?qK[e$]=bG:xm[nl]=bG;for(e$=0;e$<rZ;++e$)nl="$"+I0.call(h,Q_[e$],e$,Q_),(bG=xm[nl])?(pO[e$]=bG,bG.__data__=Q_[e$],xm[nl]=null):n[e$]=new C(h,Q_[e$]);for(e$=0;e$<qf;++e$)(bG=X[e$])&&xm[pl[e$]]===bG&&(qK[e$]=bG)}
function a(h,X){return h<X?-1:h>X?1:h>=X?0:NaN}
function F(h){return function(){this.removeAttribute(h)}}
function L(h){return function(){this.removeAttributeNS(h.space,h.local)}}
function D(h,X){return function(){this.setAttribute(h,X)}}
function W(h,X){return function(){this.setAttributeNS(h.space,h.local,X)}}
function K(h,X){return function(){var n=X.apply(this,arguments);n==null?this.removeAttribute(h):this.setAttribute(h,n)}}
function v(h,X){return function(){var n=X.apply(this,arguments);n==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,n)}}
function YL(h){return function(){this.style.removeProperty(h)}}
function bY(h,X,n){return function(){this.style.setProperty(h,X,n)}}
function kL(h,X,n){return function(){var pO=X.apply(this,arguments);pO==null?this.style.removeProperty(h):this.style.setProperty(h,pO,n)}}
function R0(h,X){return h.style.getPropertyValue(X)||(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView).getComputedStyle(h,null).getPropertyValue(X)}
function j$(h){return function(){delete this[h]}}
function lY(h,X){return function(){this[h]=X}}
function Tt(h,X){return function(){var n=X.apply(this,arguments);n==null?delete this[h]:this[h]=n}}
function si(){this.textContent=""}
function Q0(h){return function(){this.textContent=h}}
function ps(h){return function(){var X=h.apply(this,arguments);this.textContent=X==null?"":X}}
function $L(){this.innerHTML=""}
function Cs(h){return function(){this.innerHTML=h}}
function km(h){return function(){var X=h.apply(this,arguments);this.innerHTML=X==null?"":X}}
function ZT(){return null}
function l8(){var h=this.parentNode;h&&h.removeChild(this)}
function Rt(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function wE(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function Gt(h,X,n){h=V0(h,X,n);return function(pO){var qK=pO.relatedTarget;qK&&(qK===this||qK.compareDocumentPosition(this)&8)||h.call(this,pO)}}
function V0(h,X,n){return function(){h.call(this,this.__data__,X,n)}}
function SW(h){return h.trim().split(/^|\s+/).map(function(X){var n="",pO=X.indexOf(".");pO>=0&&(n=X.slice(pO+1),X=X.slice(0,pO));return{type:X,name:n}})}
function h3(h){return function(){var X=this.__on;if(X){for(var n=0,pO=-1,qK=X.length,Q_;n<qK;++n)(Q_=X[n],h.type&&Q_.type!==h.type||Q_.name!==h.name)?X[++pO]=Q_:this.removeEventListener(Q_.type,Q_.listener,Q_.capture);++pO?X.length=pO:delete this.__on}}}
function zX(h,X,n){var pO=S9X.hasOwnProperty(h.type)?Gt:V0;return function(qK,Q_,I0){qK=this.__on;var e$;Q_=pO(X,Q_,I0);if(qK){I0=0;for(var bG=qK.length;I0<bG;++I0)if((e$=qK[I0]).type===h.type&&e$.name===h.name){this.removeEventListener(e$.type,e$.listener,e$.capture);this.addEventListener(e$.type,e$.listener=Q_,e$.capture=n);e$.value=X;return}}this.addEventListener(h.type,Q_,n);e$={type:h.type,name:h.name,value:X,listener:Q_,capture:n};qK?qK.push(e$):this.__on=[e$]}}
function zc(h,X,n){var pO=h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView,qK=pO.CustomEvent;typeof qK==="function"?qK=new qK(X,n):(qK=pO.document.createEvent("Event"),n?(qK.initEvent(X,n.bubbles,n.cancelable),qK.detail=n.detail):qK.initEvent(X,!1,!1));h.dispatchEvent(qK)}
function EC(h,X){return function(){return zc(this,h,X)}}
function VJ(h,X){return function(){return zc(this,h,X.apply(this,arguments))}}
function $m(h,X){this._groups=h;this._parents=X}
function Kl(){return new $m([[document.documentElement]],mk7)}
function iG(){this._="@"+(++bkd).toString(36)}
function QJ(h,X,n){h.prototype=X.prototype=n;n.constructor=h}
function Rs(h,X){h=Object.create(h.prototype);for(var n in X)h[n]=X[n];return h}
function vp(){}
function DT(h){var X;h=(h+"").trim().toLowerCase();return(X=ikK.exec(h))?(X=parseInt(X[1],16),new ES(X>>8&15|X>>4&240,X>>4&15|X&240,(X&15)<<4|X&15,1)):(X=qMb.exec(h))?qL(parseInt(X[1],16)):(X=Hkt.exec(h))?new ES(X[1],X[2],X[3],1):(X=f78.exec(h))?new ES(X[1]*255/100,X[2]*255/100,X[3]*255/100,1):(X=Bpl.exec(h))?TC(X[1],X[2],X[3],X[4]):(X=wMo.exec(h))?TC(X[1]*255/100,X[2]*255/100,X[3]*255/100,X[4]):(X=RHd.exec(h))?Ia(X[1],X[2]/100,X[3]/100,1):(X=Vml.exec(h))?Ia(X[1],X[2]/100,X[3]/100,X[4]):cTm.hasOwnProperty(h)?
qL(cTm[h]):h==="transparent"?new ES(NaN,NaN,NaN,0):null}
function qL(h){return new ES(h>>16&255,h>>8&255,h&255,1)}
function TC(h,X,n,pO){pO<=0&&(h=X=n=NaN);return new ES(h,X,n,pO)}
function Wp(h){h instanceof vp||(h=DT(h));if(!h)return new ES;h=h.rgb();return new ES(h.r,h.g,h.b,h.opacity)}
function jg(h,X,n,pO){return arguments.length===1?Wp(h):new ES(h,X,n,pO==null?1:pO)}
function ES(h,X,n,pO){this.r=+h;this.g=+X;this.b=+n;this.opacity=+pO}
function m6(h){h=Math.max(0,Math.min(255,Math.round(h)||0));return(h<16?"0":"")+h.toString(16)}
function Ia(h,X,n,pO){pO<=0?h=X=n=NaN:n<=0||n>=1?h=X=NaN:X<=0&&(h=NaN);return new EJ(h,X,n,pO)}
function mi(h){if(h instanceof EJ)return new EJ(h.h,h.s,h.l,h.opacity);h instanceof vp||(h=DT(h));if(!h)return new EJ;if(h instanceof EJ)return h;h=h.rgb();var X=h.r/255,n=h.g/255,pO=h.b/255,qK=Math.min(X,n,pO),Q_=Math.max(X,n,pO),I0=NaN,e$=Q_-qK,bG=(Q_+qK)/2;e$?(I0=X===Q_?(n-pO)/e$+(n<pO)*6:n===Q_?(pO-X)/e$+2:(X-n)/e$+4,e$/=bG<.5?Q_+qK:2-Q_-qK,I0*=60):e$=bG>0&&bG<1?0:I0;return new EJ(I0,e$,bG,h.opacity)}
function t6(h,X,n,pO){return arguments.length===1?mi(h):new EJ(h,X,n,pO==null?1:pO)}
function EJ(h,X,n,pO){this.h=+h;this.s=+X;this.l=+n;this.opacity=+pO}
function h9(h,X,n){return(h<60?X+(n-X)*h/60:h<180?n:h<240?X+(n-X)*(240-h)/60:X)*255}
function Xa(h){if(h instanceof gE)return new gE(h.l,h.a,h.b,h.opacity);if(h instanceof gZ){if(isNaN(h.h))return new gE(h.l,0,0,h.opacity);var X=h.h*tAs;return new gE(h.l,Math.cos(X)*h.c,Math.sin(X)*h.c,h.opacity)}h instanceof ES||(h=Wp(h));var n=Jd(h.r),pO=Jd(h.g),qK=Jd(h.b);X=nO(.2225045*n+.7168786*pO+.0606169*qK);if(n===pO&&pO===qK)var Q_=n=X;else Q_=nO((.4360747*n+.3850649*pO+.1430804*qK)/.96422),n=nO((.0139322*n+.0971045*pO+.7141733*qK)/.82521);return new gE(116*X-16,500*(Q_-X),200*(X-n),h.opacity)}
function gE(h,X,n,pO){this.l=+h;this.a=+X;this.b=+n;this.opacity=+pO}
function nO(h){return h>QIo?Math.pow(h,1/3):h/Eco+pJX}
function KO(h){return h>dC?h*h*h:Eco*(h-pJX)}
function dZ(h){return 255*(h<=.0031308?12.92*h:1.055*Math.pow(h,1/2.4)-.055)}
function Jd(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}
function XU(h){if(h instanceof gZ)return new gZ(h.h,h.c,h.l,h.opacity);h instanceof gE||(h=Xa(h));if(h.a===0&&h.b===0)return new gZ(NaN,0,h.l,h.opacity);var X=Math.atan2(h.b,h.a)*U4G;return new gZ(X<0?X+360:X,Math.sqrt(h.a*h.a+h.b*h.b),h.l,h.opacity)}
function X7(h,X,n,pO){return arguments.length===1?XU(h):new gZ(h,X,n,pO==null?1:pO)}
function gZ(h,X,n,pO){this.h=+h;this.c=+X;this.l=+n;this.opacity=+pO}
function J3(h,X,n,pO){if(arguments.length===1){var qK=h;if(qK instanceof T5)qK=new T5(qK.h,qK.s,qK.l,qK.opacity);else{qK instanceof ES||(qK=Wp(qK));var Q_=qK.g/255,I0=qK.b/255,e$=(x40*I0+qK.r/255*-1.7884503806-3.5172982438*Q_)/(x40+-1.7884503806-3.5172982438);I0-=e$;var bG=(1.97294*(Q_-e$)- -.29227*I0)/-.90649;I0=(Q_=Math.sqrt(bG*bG+I0*I0)/(1.97294*e$*(1-e$)))?Math.atan2(bG,I0)*U4G-120:NaN;qK=new T5(I0<0?I0+360:I0,Q_,e$,qK.opacity)}}else qK=new T5(h,X,n,pO==null?1:pO);return qK}
function T5(h,X,n,pO){this.h=+h;this.s=+X;this.l=+n;this.opacity=+pO}
function iF(h,X,n,pO,qK){var Q_=h*h,I0=Q_*h;return((1-3*h+3*Q_-I0)*X+(4-6*Q_+3*I0)*n+(1+3*h+3*Q_-3*I0)*pO+I0*qK)/6}
function jW(h){return function(){return h}}
function zJ(h,X){return function(n){return h+n*X}}
function Rv(h,X,n){return h=Math.pow(h,n),X=Math.pow(X,n)-h,n=1/n,function(pO){return Math.pow(h+pO*X,n)}}
function o$(h,X){var n=X-h;return n?zJ(h,n>180||n<-180?n-360*Math.round(n/360):n):jW(isNaN(h)?X:h)}
function Vy(h){return(h=+h)===1?pM:function(X,n){return n-X?Rv(X,n,h):jW(isNaN(X)?n:X)}}
function pM(h,X){var n=X-h;return n?zJ(h,n):jW(isNaN(h)?X:h)}
function w1(h){return function(X){var n=X.length,pO=Array(n),qK=Array(n),Q_=Array(n),I0;for(I0=0;I0<n;++I0){var e$=jg(X[I0]);pO[I0]=e$.r||0;qK[I0]=e$.g||0;Q_[I0]=e$.b||0}pO=h(pO);qK=h(qK);Q_=h(Q_);e$.opacity=1;return function(bG){e$.r=pO(bG);e$.g=qK(bG);e$.b=Q_(bG);return e$+""}}}
function ZP(h,X){return h=+h,X-=h,function(n){return h+X*n}}
function rn(h){return function(){return h}}
function $A(h){return function(X){return h(X)+""}}
function ck(h,X){var n=ByD.lastIndex=we$.lastIndex=0,pO,qK,Q_,I0=-1,e$=[],bG=[];h+="";for(X+="";(pO=ByD.exec(h))&&(qK=we$.exec(X));)(Q_=qK.index)>n&&(Q_=X.slice(n,Q_),e$[I0]?e$[I0]+=Q_:e$[++I0]=Q_),(pO=pO[0])===(qK=qK[0])?e$[I0]?e$[I0]+=qK:e$[++I0]=qK:(e$[++I0]=null,bG.push({i:I0,x:ZP(pO,qK)})),n=we$.lastIndex;n<X.length&&(Q_=X.slice(n),e$[I0]?e$[I0]+=Q_:e$[++I0]=Q_);return e$.length<2?bG[0]?$A(bG[0].x):rn(X):(X=bG.length,function(xm){for(var qf=0,rZ;qf<X;++qf)e$[(rZ=bG[qf]).i]=rZ.x(xm);return e$.join("")})}
function Wf(h,X,n,pO,qK,Q_){var I0,e$,bG;if(I0=Math.sqrt(h*h+X*X))h/=I0,X/=I0;if(bG=h*n+X*pO)n-=h*bG,pO-=X*bG;if(e$=Math.sqrt(n*n+pO*pO))n/=e$,pO/=e$,bG/=e$;h*pO<X*n&&(h=-h,X=-X,bG=-bG,I0=-I0);return{translateX:qK,translateY:Q_,rotate:Math.atan2(X,h)*AsW,skewX:Math.atan(bG)*AsW,scaleX:I0,scaleY:e$}}
function k8(h,X,n,pO){function qK(xm){return xm.length?xm.pop()+" ":""}
function Q_(xm,qf,rZ,pl,nl,a$){xm!==rZ||qf!==pl?(nl=nl.push("translate(",null,X,null,n),a$.push({i:nl-4,x:ZP(xm,rZ)},{i:nl-2,x:ZP(qf,pl)})):(rZ||pl)&&nl.push("translate("+rZ+X+pl+n)}
function I0(xm,qf,rZ,pl){xm!==qf?(xm-qf>180?qf+=360:qf-xm>180&&(xm+=360),pl.push({i:rZ.push(qK(rZ)+"rotate(",null,pO)-2,x:ZP(xm,qf)})):qf&&rZ.push(qK(rZ)+"rotate("+qf+pO)}
function e$(xm,qf,rZ,pl){xm!==qf?pl.push({i:rZ.push(qK(rZ)+"skewX(",null,pO)-2,x:ZP(xm,qf)}):qf&&rZ.push(qK(rZ)+"skewX("+qf+pO)}
function bG(xm,qf,rZ,pl,nl,a$){xm!==rZ||qf!==pl?(nl=nl.push(qK(nl)+"scale(",null,",",null,")"),a$.push({i:nl-4,x:ZP(xm,rZ)},{i:nl-2,x:ZP(qf,pl)})):rZ===1&&pl===1||nl.push(qK(nl)+"scale("+rZ+","+pl+")")}
return function(xm,qf){var rZ=[],pl=[];xm=h(xm);qf=h(qf);Q_(xm.translateX,xm.translateY,qf.translateX,qf.translateY,rZ,pl);I0(xm.rotate,qf.rotate,rZ,pl);e$(xm.skewX,qf.skewX,rZ,pl);bG(xm.scaleX,xm.scaleY,qf.scaleX,qf.scaleY,rZ,pl);xm=qf=null;return function(nl){for(var a$=-1,cT=pl.length,NE;++a$<cT;)rZ[(NE=pl[a$]).i]=NE.x(nl);return rZ.join("")}}}
function J9(h){return function(X,n){var pO=h((X=t6(X)).h,(n=t6(n)).h),qK=pM(X.s,n.s),Q_=pM(X.l,n.l),I0=pM(X.opacity,n.opacity);return function(e$){X.h=pO(e$);X.s=qK(e$);X.l=Q_(e$);X.opacity=I0(e$);return X+""}}}
function dn(h){return function(X,n){var pO=h((X=X7(X)).h,(n=X7(n)).h),qK=pM(X.c,n.c),Q_=pM(X.l,n.l),I0=pM(X.opacity,n.opacity);return function(e$){X.h=pO(e$);X.c=qK(e$);X.l=Q_(e$);X.opacity=I0(e$);return X+""}}}
function Td(h){return function pO(n){function qK(Q_,I0){var e$=h((Q_=J3(Q_)).h,(I0=J3(I0)).h),bG=pM(Q_.s,I0.s),xm=pM(Q_.l,I0.l),qf=pM(Q_.opacity,I0.opacity);return function(rZ){Q_.h=e$(rZ);Q_.s=bG(rZ);Q_.l=xm(Math.pow(rZ,n));Q_.opacity=qf(rZ);return Q_+""}}
n=+n;qK.gamma=pO;return qK}(1)}
function oF(){return Yg||(Y$s(Ki),Yg=B0.now()+Y_E)}
function Ki(){Yg=0}
function LG(){this._call=this._time=this._next=null}
function $M(h,X,n){var pO=new LG;pO.restart(h,X,n);return pO}
function Ku(){Yg=(MJK=B0.now())+Y_E;u5=we=0;try{oF();++u5;for(var h=mW_,X;h;)(X=Yg-h._time)>=0&&h._call.call(null,X),h=h._next;--u5}finally{u5=0;h=mW_;for(var n=Infinity;h;)if(h._call){n>h._time&&(n=h._time);var pO=h;h=h._next}else X=h._next,h._next=null,h=pO?pO._next=X:mW_=X;R5=pO;vf(n);Yg=0}}
function cX(){var h=B0.now(),X=h-MJK;X>1E3&&(Y_E-=X,MJK=h)}
function vf(h){u5||(we&&(we=clearTimeout(we)),h-Yg>24?(h<Infinity&&(we=setTimeout(Ku,h-B0.now()-Y_E)),VH&&(VH=clearInterval(VH))):(VH||(MJK=B0.now(),VH=setInterval(cX,1E3)),u5=1,Y$s(Ku)))}
function vg(h,X,n){var pO=new LG;X=X==null?0:+X;pO.restart(function(qK){pO.stop();h(qK+X)},X,n);
return pO}
function Er(h,X,n,pO,qK,Q_){var I0=h.__transition;if(!I0)h.__transition={};else if(n in I0)return;XW(h,n,{name:X,index:pO,group:qK,on:CSJ,tween:jIJ,time:Q_.time,delay:Q_.delay,duration:Q_.duration,ease:Q_.ease,timer:null,state:0})}
function i8(h,X){h=M2(h,X);if(h.state>0)throw Error("ze");return h}
function OC(h,X){h=M2(h,X);if(h.state>2)throw Error("Ae");return h}
function M2(h,X){h=h.__transition;if(!h||!(h=h[X]))throw Error("Be");return h}
function XW(h,X,n){function pO(bG){var xm,qf;if(n.state!==1)return Q_();for(pl in I0){var rZ=I0[pl];if(rZ.name===n.name){if(rZ.state===3)return vg(pO);rZ.state===4?(rZ.state=6,rZ.timer.stop(),rZ.on.call("interrupt",h,h.__data__,rZ.index,rZ.group),delete I0[pl]):+pl<X&&(rZ.state=6,rZ.timer.stop(),delete I0[pl])}}vg(function(){n.state===3&&(n.state=4,n.timer.restart(qK,n.delay,n.time),qK(bG))});
n.state=2;n.on.call("start",h,h.__data__,n.index,n.group);if(n.state===2){n.state=3;e$=Array(qf=n.tween.length);var pl=0;for(xm=-1;pl<qf;++pl)if(rZ=n.tween[pl].value.call(h,h.__data__,n.index,n.group))e$[++xm]=rZ;e$.length=xm+1}}
function qK(bG){bG=bG<n.duration?n.ease.call(null,bG/n.duration):(n.timer.restart(Q_),n.state=5,1);for(var xm=-1,qf=e$.length;++xm<qf;)e$[xm].call(null,bG);n.state===5&&(n.on.call("end",h,h.__data__,n.index,n.group),Q_())}
function Q_(){n.state=6;n.timer.stop();delete I0[X];for(var bG in I0)return;delete h.__transition}
var I0=h.__transition,e$;I0[X]=n;n.timer=$M(function(bG){n.state=1;n.timer.restart(pO,n.delay,n.time);n.delay<=bG&&pO(bG-n.delay)},0,n.time)}
function pg(h,X){var n,pO;return function(){var qK=OC(this,h),Q_=qK.tween;if(Q_!==n){pO=n=Q_;Q_=0;for(var I0=pO.length;Q_<I0;++Q_)if(pO[Q_].name===X){pO=pO.slice();pO.splice(Q_,1);break}}qK.tween=pO}}
function UJ(h,X,n){var pO,qK;if(typeof n!=="function")throw Error();return function(){var Q_=OC(this,h),I0=Q_.tween;if(I0!==pO){qK=(pO=I0).slice();I0={name:X,value:n};for(var e$=0,bG=qK.length;e$<bG;++e$)if(qK[e$].name===X){qK[e$]=I0;break}e$===bG&&qK.push(I0)}Q_.tween=qK}}
function DB(h,X,n){var pO=h._id;h.each(function(){var qK=OC(this,pO);(qK.value||(qK.value={}))[X]=n.apply(this,arguments)});
return function(qK){return M2(qK,pO).value[X]}}
function i3(h,X){var n;return(typeof X==="number"?ZP:X instanceof DT?MAo:(n=DT(X))?(X=n,MAo):ck)(h,X)}
function QH(h){return function(){this.removeAttribute(h)}}
function bW8(h){return function(){this.removeAttributeNS(h.space,h.local)}}
function C6(h,X,n){var pO,qK;return function(){var Q_=this.getAttribute(h);return Q_===n?null:Q_===pO?qK:qK=X(pO=Q_,n)}}
function jb(h,X,n){var pO,qK;return function(){var Q_=this.getAttributeNS(h.space,h.local);return Q_===n?null:Q_===pO?qK:qK=X(pO=Q_,n)}}
function iWJ(h,X,n){var pO,qK,Q_;return function(){var I0=n(this);if(I0==null)return void this.removeAttribute(h);var e$=this.getAttribute(h);return e$===I0?null:e$===pO&&I0===qK?Q_:Q_=X(pO=e$,qK=I0)}}
function rce(h,X,n){var pO,qK,Q_;return function(){var I0=n(this);if(I0==null)return void this.removeAttributeNS(h.space,h.local);var e$=this.getAttributeNS(h.space,h.local);return e$===I0?null:e$===pO&&I0===qK?Q_:Q_=X(pO=e$,qK=I0)}}
function kRo(h,X){function n(){var pO=this,qK=X.apply(pO,arguments);return qK&&function(Q_){pO.setAttributeNS(h.space,h.local,qK(Q_))}}
n._value=X;return n}
function dkl(h,X){function n(){var pO=this,qK=X.apply(pO,arguments);return qK&&function(Q_){pO.setAttribute(h,qK(Q_))}}
n._value=X;return n}
function uN5(h,X){return function(){i8(this,h).delay=+X.apply(this,arguments)}}
function Jc5(h,X){return X=+X,function(){i8(this,h).delay=X}}
function I7e(h,X){return function(){OC(this,h).duration=+X.apply(this,arguments)}}
function gl7(h,X){return X=+X,function(){OC(this,h).duration=X}}
function Zk5(h,X){if(typeof X!=="function")throw Error();return function(){OC(this,h).ease=X}}
function Okg(h){return(h+"").trim().split(/^|\s+/).every(function(X){var n=X.indexOf(".");n>=0&&(X=X.slice(0,n));return!X||X==="start"})}
function XMd(h,X,n){var pO,qK,Q_=Okg(X)?i8:OC;return function(){var I0=Q_(this,h),e$=I0.on;if(e$!==pO)(qK=(pO=e$).copy()).on(X,n);I0.on=qK}}
function hHo(h){return function(){var X=this.parentNode,n;for(n in this.__transition)if(+n!==h)return;X&&X.removeChild(this)}}
function a7l(h,X){var n,pO,qK;return function(){var Q_=R0(this,h),I0=(this.style.removeProperty(h),R0(this,h));return Q_===I0?null:Q_===n&&I0===pO?qK:qK=X(n=Q_,pO=I0)}}
function eH7(h){return function(){this.style.removeProperty(h)}}
function Fwg(h,X,n){var pO,qK;return function(){var Q_=R0(this,h);return Q_===n?null:Q_===pO?qK:qK=X(pO=Q_,n)}}
function zHd(h,X,n){var pO,qK,Q_;return function(){var I0=R0(this,h),e$=n(this);e$==null&&(e$=(this.style.removeProperty(h),R0(this,h)));return I0===e$?null:I0===pO&&e$===qK?Q_:Q_=X(pO=I0,qK=e$)}}
function l7t(h,X,n){function pO(){var qK=this,Q_=X.apply(qK,arguments);return Q_&&function(I0){qK.style.setProperty(h,Q_(I0),n)}}
pO._value=X;return pO}
function GRt(h){return function(){this.textContent=h}}
function nl9(h){return function(){var X=h(this);this.textContent=X==null?"":X}}
function yu(h,X,n,pO){this._groups=h;this._parents=X;this._name=n;this._id=pO}
function Rhj(h){return{type:h}}
function Vp0(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function q_L(){}
function m4p(h,X){var n=new q_L;if(h instanceof q_L)h.each(function(I0,e$){n.set(e$,I0)});
else if(Array.isArray(h)){var pO=-1,qK=h.length,Q_;if(X==null)for(;++pO<qK;)n.set(pO,h[pO]);else for(;++pO<qK;)n.set(X(Q_=h[pO],pO,h),Q_)}else if(h)for(pO in h)n.set(pO,h[pO]);return n}
function HWO(){}
function bZr(h){return function(X){for(var n={},pO=0;pO<h.length;pO++)n[h[pO]]=X[pO]||"";return n}}
function NpJ(h,X){var n=bZr(h);return function(pO,qK){return X(n(pO),qK,h)}}
function DkK(h){var X=Object.create(null),n=[];h.forEach(function(pO){for(var qK in pO)qK in X||n.push(X[qK]=qK)});
return n}
function iZG(h){function X(I0,e$){function bG(){if(a$)return Qli;if(cT)return cT=!1,q$m;var CW,mW=rZ,aK;if(I0.charCodeAt(mW)===34){for(;rZ++<qf&&I0.charCodeAt(rZ)!==34||I0.charCodeAt(++rZ)===34;);(CW=rZ)>=qf?a$=!0:(aK=I0.charCodeAt(rZ++))===10?cT=!0:aK===13&&(cT=!0,I0.charCodeAt(rZ)===10&&++rZ);return I0.slice(mW+1,CW-1).replace(/""/g,'"')}for(;rZ<qf;){if((aK=I0.charCodeAt(CW=rZ++))===10)cT=!0;else if(aK===13)cT=!0,I0.charCodeAt(rZ)===10&&++rZ;else if(aK!==Q_)continue;return I0.slice(mW,CW)}return a$=
!0,I0.slice(mW,qf)}
var xm=[],qf=I0.length,rZ=0,pl=0,nl,a$=qf<=0,cT=!1;I0.charCodeAt(qf-1)===10&&--qf;for(I0.charCodeAt(qf-1)===13&&--qf;(nl=bG())!==Qli;){for(var NE=[];nl!==q$m&&nl!==Qli;)NE.push(nl),nl=bG();e$&&(NE=e$(NE,pl++))==null||xm.push(NE)}return xm}
function n(I0){return I0.map(pO).join(h)}
function pO(I0){return I0==null?"":qK.test(I0)?'"'+I0.replace(/"/g,'""')+'"':I0}
var qK=new RegExp('["'+h+"\n\r]"),Q_=h.charCodeAt(0);return{parse:function(I0,e$){var bG,xm;I0=X(I0,function(qf,rZ){if(bG)return bG(qf,rZ-1);xm=qf;bG=e$?NpJ(qf,e$):bZr(qf)});
I0.columns=xm||[];return I0},
parseRows:X,format:function(I0,e$){e$==null&&(e$=DkK(I0));return[e$.map(pO).join(h)].concat(I0.map(function(bG){return e$.map(function(xm){return pO(bG[xm])}).join(h)})).join("\n")},
formatRows:function(I0){return I0.map(n).join("\n")}}}
function sIb(h){if(!h.ok)throw Error("Ce`"+h.status+"`"+h.statusText);return h.text()}
function HZ4(h){return function(X,n,pO){arguments.length===2&&typeof n==="function"&&(pO=n,n=void 0);return fetch(X,n).then(sIb).then(function(qK){return h(qK,pO)})}}
function ffW(h,X,n,pO){if(isNaN(X)||isNaN(n))return h;var qK,Q_=h._root;pO={data:pO};var I0=h._x0,e$=h._y0,bG=h._x1,xm=h._y1,qf,rZ,pl,nl,a$;if(!Q_)return h._root=pO,h;for(;Q_.length;)if((pl=X>=(qf=(I0+bG)/2))?I0=qf:bG=qf,(nl=n>=(rZ=(e$+xm)/2))?e$=rZ:xm=rZ,qK=Q_,!(Q_=Q_[a$=nl<<1|pl]))return qK[a$]=pO,h;var cT=+h._x.call(null,Q_.data);var NE=+h._y.call(null,Q_.data);if(X===cT&&n===NE)return pO.next=Q_,qK?qK[a$]=pO:h._root=pO,h;do qK=qK?qK[a$]=Array(4):h._root=Array(4),(pl=X>=(qf=(I0+bG)/2))?I0=qf:bG=
qf,(nl=n>=(rZ=(e$+xm)/2))?e$=rZ:xm=rZ;while((a$=nl<<1|pl)===(pl=(NE>=rZ)<<1|cT>=qf));return qK[pl]=Q_,qK[a$]=pO,h}
function A2(h,X,n,pO,qK){this.node=h;this.x0=X;this.y0=n;this.x1=pO;this.y1=qK}
function LwK(h){return h[0]}
function PSe(h){return h[1]}
function Ce$(h,X,n,pO,qK,Q_){this._x=h;this._y=X;this._x0=n;this._y0=pO;this._x1=qK;this._y1=Q_;this._root=void 0}
function BlT(h){for(var X={data:h.data},n=X;h=h.next;)n=n.next={data:h.data};return X}
function fDi(h,X){if((X=(h=X?h.toExponential(X-1):h.toExponential()).indexOf("e"))<0)return null;var n=h.slice(0,X);return[n.length>1?n[0]+n.slice(2):n,+h.slice(X+1)]}
function Tp5(h){return h=fDi(Math.abs(h)),h?h[1]:NaN}
function olC(h,X){return function(n,pO){for(var qK=n.length,Q_=[],I0=0,e$=h[0],bG=0;qK>0&&e$>0;){bG+e$+1>pO&&(e$=Math.max(1,pO-bG));Q_.push(n.substring(qK-=e$,qK+e$));if((bG+=e$+1)>pO)break;e$=h[I0=(I0+1)%h.length]}return Q_.reverse().join(X)}}
function Ww9(h){return function(X){return X.replace(/[0-9]/g,function(n){return h[+n]})}}
function jlO(h){return new rT_(h)}
function rT_(h){if(!(X=$k5.exec(h)))throw Error("De`"+h);var X;this.fill=X[1]||" ";this.align=X[2]||">";this.sign=X[3]||"-";this.symbol=X[4]||"";this.zero=!!X[5];this.width=X[6]&&+X[6];this.comma=!!X[7];this.precision=X[8]&&+X[8].slice(1);this.trim=!!X[9];this.type=X[10]||""}
function wJG(h,X){X=fDi(h,X);if(!X)return h+"";h=X[0];X=X[1];return X<0?"0."+Array(-X).join("0")+h:h.length>X+1?h.slice(0,X+1)+"."+h.slice(X+1):h+Array(X-h.length+2).join("0")}
function RIo(h){return h}
function KwC(h){function X(e$){function bG(ME){var za=aK,pt=wG,Zk,V$;if(mW==="c")pt=bK(ME)+pt,ME="";else{ME=+ME;var NL=ME<0;ME=bK(Math.abs(ME),NE);if(CW){var Ya=ME.length,Yn=1,jJ=-1;a:for(;Yn<Ya;++Yn)switch(ME[Yn]){case ".":jJ=Zk=Yn;break;case "0":jJ===0&&(jJ=Yn);Zk=Yn;break;default:if(!+ME[Yn])break a;jJ>0&&(jJ=0)}ME=jJ>0?ME.slice(0,jJ)+ME.slice(Zk+1):ME}NL&&+ME===0&&(NL=!1);za=(NL?rZ==="("?rZ:"-":rZ==="-"||rZ==="("?"":rZ)+za;pt=(mW==="s"?VAr[8+Q23/3]:"")+pt+(NL&&rZ==="("?")":"");if(Xs)for(NL=-1,
Zk=ME.length;++NL<Zk;)if(V$=ME.charCodeAt(NL),48>V$||V$>57){pt=(V$===46?qK+ME.slice(NL+1):ME.slice(NL))+pt;ME=ME.slice(0,NL);break}}cT&&!nl&&(ME=n(ME,Infinity));V$=za.length+ME.length+pt.length;NL=V$<a$?Array(a$-V$+1).join(xm):"";cT&&nl&&(ME=n(NL+ME,NL.length?a$-pt.length:Infinity),NL="");switch(qf){case "<":ME=za+ME+pt+NL;break;case "=":ME=za+NL+ME+pt;break;case "^":ME=NL.slice(0,V$=NL.length>>1)+za+ME+pt+NL.slice(V$);break;default:ME=NL+za+ME+pt}return Q_(ME)}
e$=jlO(e$);var xm=e$.fill,qf=e$.align,rZ=e$.sign,pl=e$.symbol,nl=e$.zero,a$=e$.width,cT=e$.comma,NE=e$.precision,CW=e$.trim,mW=e$.type;mW==="n"?(cT=!0,mW="g"):CLf[mW]||(NE==null&&(NE=12),CW=!0,mW="g");if(nl||xm==="0"&&qf==="=")nl=!0,xm="0",qf="=";var aK=pl==="$"?pO[0]:pl==="#"&&/[boxX]/.test(mW)?"0"+mW.toLowerCase():"",wG=pl==="$"?pO[1]:/[%p]/.test(mW)?I0:"",bK=CLf[mW],Xs=/[defgprs%]/.test(mW);NE=NE==null?6:/[gprs]/.test(mW)?Math.max(1,Math.min(21,NE)):Math.max(0,Math.min(20,NE));bG.toString=function(){return e$+
""};
return bG}
var n=h.grouping&&h.thousands?olC(h.grouping,h.thousands):RIo,pO=h.currency,qK=h.decimal,Q_=h.numerals?Ww9(h.numerals):RIo,I0=h.percent||"%";return{format:X,formatPrefix:function(e$,bG){var xm=X((e$=jlO(e$),e$.type="f",e$));e$=Math.max(-8,Math.min(8,Math.floor(Tp5(bG)/3)))*3;var qf=Math.pow(10,-e$),rZ=VAr[8+e$/3];return function(pl){return xm(qf*pl)+rZ}}}}
function qq(){this.reset()}
function j2p(h,X,n){var pO=h.s=X+n,qK=pO-X;h.t=X-(pO-qK)+(n-qK)}
function B1L(h){return h>1?BS:h<-1?-BS:Math.asin(h)}
function vlt(){}
function rsr(h){var X=h[0];h=h[1];var n=wI(h);return[n*wI(X),n*sF(X),sF(h)]}
function kkr(h,X){return[h[1]*X[2]-h[2]*X[1],h[2]*X[0]-h[0]*X[2],h[0]*X[1]-h[1]*X[0]]}
function d44(h){var X=wXj(h[0]*h[0]+h[1]*h[1]+h[2]*h[2]);h[0]/=X;h[1]/=X;h[2]/=X}
function yce(){var h=[],X;return{point:function(n,pO){X.push([n,pO])},
lineStart:function(){h.push(X=[])},
lineEnd:vlt,rejoin:function(){h.length>1&&h.push(h.pop().concat(h.shift()))},
result:function(){var n=h;h=[];X=null;return n}}}
function RLO(h,X,n,pO){this.x=h;this.z=X;this.o=n;this.e=pO;this.v=!1;this.n=this.p=null}
function SMo(h,X,n,pO,qK){var Q_=[],I0=[];h.forEach(function(rZ){if(!((pl=rZ.length-1)<=0)){var pl,nl=rZ[0],a$=rZ[pl],cT=nl;if(S4(cT[0]-a$[0])<1E-6&&S4(cT[1]-a$[1])<1E-6){qK.lineStart();for(e$=0;e$<pl;++e$)qK.point((nl=rZ[e$])[0],nl[1]);qK.lineEnd()}else Q_.push(pl=new RLO(nl,rZ,null,!0)),I0.push(pl.o=new RLO(nl,null,pl,!1)),Q_.push(pl=new RLO(a$,rZ,null,!1)),I0.push(pl.o=new RLO(a$,null,pl,!0))}});
if(Q_.length){I0.sort(X);uGX(Q_);uGX(I0);var e$=0;for(h=I0.length;e$<h;++e$)I0[e$].e=n=!n;n=Q_[0];for(var bG;;){for(var xm=n,qf=!0;xm.v;)if((xm=xm.n)===n)return;X=xm.z;qK.lineStart();do{xm.v=xm.o.v=!0;if(xm.e){if(qf)for(e$=0,h=X.length;e$<h;++e$)qK.point((bG=X[e$])[0],bG[1]);else pO(xm.x,xm.n.x,1,qK);xm=xm.n}else{if(qf)for(X=xm.p.z,e$=X.length-1;e$>=0;--e$)qK.point((bG=X[e$])[0],bG[1]);else pO(xm.x,xm.p.x,-1,qK);xm=xm.p}xm=xm.o;X=xm.z;qf=!qf}while(!xm.v);qK.lineEnd()}}}
function uGX(h){if(X=h.length){for(var X,n=0,pO=h[0],qK;++n<X;)pO.n=qK=h[n],qK.p=pO,pO=qK;pO.n=qK=h[0];qK.p=pO}}
function ccK(h){return h.length>1}
function tF8(h,X){return((h=h.x)[0]<0?h[1]-BS-1E-6:BS-h[1])-((X=X.x)[0]<0?X[1]-BS-1E-6:BS-X[1])}
function kpK(){}
function Js0(h){return function(X,n){var pO=wI(X),qK=wI(n);pO=h(pO*qK);return[pO*qK*sF(X),pO*sF(n)]}}
function re(h){return function(X,n){var pO=wXj(X*X+n*n),qK=h(pO),Q_=sF(qK);qK=wI(qK);return[IfW(X*Q_,pO*qK),B1L(pO&&n*Q_/pO)]}}
function EfC(h){var X=0,n=h.children,pO=n&&n.length;if(pO)for(;--pO>=0;)X+=n[pO].value;else X=1;h.value=X}
function gcs(h,X){var n=new kB(h);h=+h.value&&(n.value=h.value);var pO,qK=[n],Q_,I0,e$,bG;for(X==null&&(X=pOL);pO=qK.pop();)if(h&&(pO.value=+pO.data.value),(I0=X(pO.data))&&(bG=I0.length))for(pO.children=Array(bG),e$=bG-1;e$>=0;--e$)qK.push(Q_=pO.children[e$]=new kB(I0[e$])),Q_.parent=pO,Q_.depth=pO.depth+1;return n.eachBefore(Uve)}
function pOL(h){return h.children}
function xvg(h){h.data=h.data.data}
function Uve(h){var X=0;do h.height=X;while((h=h.parent)&&h.height<++X)}
function kB(h){this.data=h;this.depth=this.height=0;this.parent=null}
function eQ(h,X,n,pO){function qK(Q_){return h(Q_=new Date(+Q_)),Q_}
qK.floor=qK;qK.ceil=function(Q_){return h(Q_=new Date(Q_-1)),X(Q_,1),h(Q_),Q_};
qK.round=function(Q_){var I0=qK(Q_),e$=qK.ceil(Q_);return Q_-I0<e$-Q_?I0:e$};
qK.offset=function(Q_,I0){return X(Q_=new Date(+Q_),I0==null?1:Math.floor(I0)),Q_};
qK.range=function(Q_,I0,e$){var bG=[],xm;Q_=qK.ceil(Q_);e$=e$==null?1:Math.floor(e$);if(!(Q_<I0&&e$>0))return bG;do bG.push(xm=new Date(+Q_)),X(Q_,e$),h(Q_);while(xm<Q_&&Q_<I0);return bG};
qK.filter=function(Q_){return eQ(function(I0){if(I0>=I0)for(;h(I0),!Q_(I0);)I0.setTime(I0-1)},function(I0,e$){if(I0>=I0)if(e$<0)for(;++e$<=0;)for(;X(I0,-1),!Q_(I0););
else for(;--e$>=0;)for(;X(I0,1),!Q_(I0););})};
n&&(qK.count=function(Q_,I0){dTY.setTime(+Q_);u_O.setTime(+I0);h(dTY);h(u_O);return Math.floor(n(dTY,u_O))},qK.every=function(Q_){Q_=Math.floor(Q_);
return isFinite(Q_)&&Q_>0?Q_>1?qK.filter(pO?function(I0){return pO(I0)%Q_===0}:function(I0){return qK.count(0,I0)%Q_===0}):qK:null});
return qK}
function M9(h){return eQ(function(X){X.setDate(X.getDate()-(X.getDay()+7-h)%7);X.setHours(0,0,0,0)},function(X,n){X.setDate(X.getDate()+n*7)},function(X,n){return(n-X-(n.getTimezoneOffset()-X.getTimezoneOffset())*6E4)/6048E5})}
function mk(h){return eQ(function(X){X.setUTCDate(X.getUTCDate()-(X.getUTCDay()+7-h)%7);X.setUTCHours(0,0,0,0)},function(X,n){X.setUTCDate(X.getUTCDate()+n*7)},function(X,n){return(n-X)/6048E5})}
function A0J(h){if(0<=h.y&&h.y<100){var X=new Date(-1,h.m,h.d,h.H,h.M,h.S,h.L);X.setFullYear(h.y);return X}return new Date(h.y,h.m,h.d,h.H,h.M,h.S,h.L)}
function VJK(h){if(0<=h.y&&h.y<100){var X=new Date(Date.UTC(-1,h.m,h.d,h.H,h.M,h.S,h.L));X.setUTCFullYear(h.y);return X}return new Date(Date.UTC(h.y,h.m,h.d,h.H,h.M,h.S,h.L))}
function de(h){return{y:h,m:0,d:1,H:0,M:0,S:0,L:0}}
function YgJ(h){function X(pt,Zk){return function(V$){var NL=[],Ya=-1,Yn=0,jJ=pt.length,h6,P$;for(V$ instanceof Date||(V$=new Date(+V$));++Ya<jJ;)if(pt.charCodeAt(Ya)===37){NL.push(pt.slice(Yn,Ya));(Yn=ZZZ[h6=pt.charAt(++Ya)])!=null?h6=pt.charAt(++Ya):Yn=h6==="e"?" ":"0";if(P$=Zk[h6])h6=P$(V$,Yn);NL.push(h6);Yn=Ya+1}NL.push(pt.slice(Yn,Ya));return NL.join("")}}
function n(pt,Zk){return function(V$){var NL=de(1900);if(pO(NL,pt,V$,0)!=V$.length)return null;if("Q"in NL)return new Date(NL.Q);"p"in NL&&(NL.H=NL.H%12+NL.p*12);if("V"in NL){if(NL.V<1||NL.V>53)return null;"w"in NL||(NL.w=1);if("Z"in NL){V$=VJK(de(NL.y));var Ya=V$.getUTCDay();V$=Ya>4||Ya===0?JTY.ceil(V$):JTY(V$);V$=OZ0.offset(V$,(NL.V-1)*7);NL.y=V$.getUTCFullYear();NL.m=V$.getUTCMonth();NL.d=V$.getUTCDate()+(NL.w+6)%7}else V$=Zk(de(NL.y)),Ya=V$.getDay(),V$=Ya>4||Ya===0?IHD.ceil(V$):IHD(V$),V$=XJ3.offset(V$,
(NL.V-1)*7),NL.y=V$.getFullYear(),NL.m=V$.getMonth(),NL.d=V$.getDate()+(NL.w+6)%7}else if("W"in NL||"U"in NL)"w"in NL||(NL.w="u"in NL?NL.u%7:"W"in NL?1:0),Ya="Z"in NL?VJK(de(NL.y)).getUTCDay():Zk(de(NL.y)).getDay(),NL.m=0,NL.d="W"in NL?(NL.w+6)%7+NL.W*7-(Ya+5)%7:NL.w+NL.U*7-(Ya+6)%7;return"Z"in NL?(NL.H+=NL.Z/100|0,NL.M+=NL.Z%100,VJK(NL)):Zk(NL)}}
function pO(pt,Zk,V$,NL){for(var Ya=0,Yn=Zk.length,jJ=V$.length,h6;Ya<Yn;){if(NL>=jJ)return-1;h6=Zk.charCodeAt(Ya++);if(h6===37){if(h6=Zk.charAt(Ya++),h6=za[h6 in ZZZ?Zk.charAt(Ya++):h6],!h6||(NL=h6(pt,V$,NL))<0)return-1}else if(h6!=V$.charCodeAt(NL++))return-1}return NL}
var qK=h.dateTime,Q_=h.date,I0=h.time,e$=h.periods,bG=h.days,xm=h.shortDays,qf=h.months,rZ=h.shortMonths,pl=ux(e$),nl=J5(e$),a$=ux(bG),cT=J5(bG),NE=ux(xm),CW=J5(xm),mW=ux(qf),aK=J5(qf),wG=ux(rZ),bK=J5(rZ),Xs={a:function(pt){return xm[pt.getDay()]},
A:function(pt){return bG[pt.getDay()]},
b:function(pt){return rZ[pt.getMonth()]},
B:function(pt){return qf[pt.getMonth()]},
c:null,d:hIG,e:hIG,f:MF8,H:mvJ,I:bLo,j:iL8,L:afs,m:qgC,M:HLC,p:function(pt){return e$[+(pt.getHours()>=12)]},
Q:eIs,s:Fp4,S:fOe,u:Bjg,U:wOK,V:RAo,w:VFo,W:Q6o,x:null,X:null,y:Cst,Y:j68,Z:r0e,"%":zIf},ME={a:function(pt){return xm[pt.getUTCDay()]},
A:function(pt){return bG[pt.getUTCDay()]},
b:function(pt){return rZ[pt.getUTCMonth()]},
B:function(pt){return qf[pt.getUTCMonth()]},
c:null,d:lfm,e:lfm,f:ke8,H:dvL,I:uSl,j:J0t,L:Gkf,m:IOC,M:gfK,p:function(pt){return e$[+(pt.getUTCHours()>=12)]},
Q:eIs,s:Fp4,S:ZLt,u:OLl,U:XO5,V:hAL,w:aO9,W:eAK,x:null,X:null,y:FBg,Y:zAe,Z:lOb,"%":zIf},za={a:function(pt,Zk,V$){return(Zk=NE.exec(Zk.slice(V$)))?(pt.w=CW[Zk[0].toLowerCase()],V$+Zk[0].length):-1},
A:function(pt,Zk,V$){return(Zk=a$.exec(Zk.slice(V$)))?(pt.w=cT[Zk[0].toLowerCase()],V$+Zk[0].length):-1},
b:function(pt,Zk,V$){return(Zk=wG.exec(Zk.slice(V$)))?(pt.m=bK[Zk[0].toLowerCase()],V$+Zk[0].length):-1},
B:function(pt,Zk,V$){return(Zk=mW.exec(Zk.slice(V$)))?(pt.m=aK[Zk[0].toLowerCase()],V$+Zk[0].length):-1},
c:function(pt,Zk,V$){return pO(pt,qK,Zk,V$)},
d:nc0,e:nc0,f:Gee,H:Nl4,I:Nl4,j:nf8,L:Njl,m:Dvd,M:s6e,p:function(pt,Zk,V$){return(Zk=pl.exec(Zk.slice(V$)))?(pt.p=nl[Zk[0].toLowerCase()],V$+Zk[0].length):-1},
Q:LBg,s:Psb,S:Tjt,u:ofo,U:WBJ,V:$v9,w:KBb,W:vfl,x:function(pt,Zk,V$){return pO(pt,Q_,Zk,V$)},
X:function(pt,Zk,V$){return pO(pt,I0,Zk,V$)},
y:y07,Y:Sge,Z:c05,"%":tSe};Xs.x=X(Q_,Xs);Xs.X=X(I0,Xs);Xs.c=X(qK,Xs);ME.x=X(Q_,ME);ME.X=X(I0,ME);ME.c=X(qK,ME);return{format:function(pt){var Zk=X(pt,Xs);Zk.toString=function(){return pt};
return Zk},
parse:function(pt){var Zk=n(pt,A0J);Zk.toString=function(){return pt};
return Zk},
utcFormat:function(pt){var Zk=X(pt,ME);Zk.toString=function(){return pt};
return Zk},
utcParse:function(pt){var Zk=n(pt,VJK);Zk.toString=function(){return pt};
return Zk}}}
function Fr(h,X,n){var pO=h<0?"-":"";h=(pO?-h:h)+"";var qK=h.length;return pO+(qK<n?Array(n-qK+1).join(X)+h:h)}
function Eg5(h){return h.replace(pB8,"\\$&")}
function ux(h){return new RegExp("^(?:"+h.map(Eg5).join("|")+")","i")}
function J5(h){for(var X={},n=-1,pO=h.length;++n<pO;)X[h[n].toLowerCase()]=n;return X}
function KBb(h,X,n){return(X=eR.exec(X.slice(n,n+1)))?(h.w=+X[0],n+X[0].length):-1}
function ofo(h,X,n){return(X=eR.exec(X.slice(n,n+1)))?(h.u=+X[0],n+X[0].length):-1}
function WBJ(h,X,n){return(X=eR.exec(X.slice(n,n+2)))?(h.U=+X[0],n+X[0].length):-1}
function $v9(h,X,n){return(X=eR.exec(X.slice(n,n+2)))?(h.V=+X[0],n+X[0].length):-1}
function vfl(h,X,n){return(X=eR.exec(X.slice(n,n+2)))?(h.W=+X[0],n+X[0].length):-1}
function Sge(h,X,n){return(X=eR.exec(X.slice(n,n+4)))?(h.y=+X[0],n+X[0].length):-1}
function y07(h,X,n){return(X=eR.exec(X.slice(n,n+2)))?(h.y=+X[0]+(+X[0]>68?1900:2E3),n+X[0].length):-1}
function c05(h,X,n){return(X=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(X.slice(n,n+6)))?(h.Z=X[1]?0:-(X[2]+(X[3]||"00")),n+X[0].length):-1}
function Dvd(h,X,n){return(X=eR.exec(X.slice(n,n+2)))?(h.m=X[0]-1,n+X[0].length):-1}
function nc0(h,X,n){return(X=eR.exec(X.slice(n,n+2)))?(h.d=+X[0],n+X[0].length):-1}
function nf8(h,X,n){return(X=eR.exec(X.slice(n,n+3)))?(h.m=0,h.d=+X[0],n+X[0].length):-1}
function Nl4(h,X,n){return(X=eR.exec(X.slice(n,n+2)))?(h.H=+X[0],n+X[0].length):-1}
function s6e(h,X,n){return(X=eR.exec(X.slice(n,n+2)))?(h.M=+X[0],n+X[0].length):-1}
function Tjt(h,X,n){return(X=eR.exec(X.slice(n,n+2)))?(h.S=+X[0],n+X[0].length):-1}
function Njl(h,X,n){return(X=eR.exec(X.slice(n,n+3)))?(h.L=+X[0],n+X[0].length):-1}
function Gee(h,X,n){return(X=eR.exec(X.slice(n,n+6)))?(h.L=Math.floor(X[0]/1E3),n+X[0].length):-1}
function tSe(h,X,n){return(h=U9o.exec(X.slice(n,n+1)))?n+h[0].length:-1}
function LBg(h,X,n){return(X=eR.exec(X.slice(n)))?(h.Q=+X[0],n+X[0].length):-1}
function Psb(h,X,n){return(X=eR.exec(X.slice(n)))?(h.Q=+X[0]*1E3,n+X[0].length):-1}
function hIG(h,X){return Fr(h.getDate(),X,2)}
function mvJ(h,X){return Fr(h.getHours(),X,2)}
function bLo(h,X){return Fr(h.getHours()%12||12,X,2)}
function iL8(h,X){return Fr(1+XJ3.count(JM(h),h),X,3)}
function afs(h,X){return Fr(h.getMilliseconds(),X,3)}
function MF8(h,X){return afs(h,X)+"000"}
function qgC(h,X){return Fr(h.getMonth()+1,X,2)}
function HLC(h,X){return Fr(h.getMinutes(),X,2)}
function fOe(h,X){return Fr(h.getSeconds(),X,2)}
function Bjg(h){h=h.getDay();return h===0?7:h}
function wOK(h,X){return Fr(x9J.count(JM(h),h),X,2)}
function RAo(h,X){var n=h.getDay();h=n>=4||n===0?gpi(h):gpi.ceil(h);return Fr(gpi.count(JM(h),h)+(JM(h).getDay()===4),X,2)}
function VFo(h){return h.getDay()}
function Q6o(h,X){return Fr(IHD.count(JM(h),h),X,2)}
function Cst(h,X){return Fr(h.getFullYear()%100,X,2)}
function j68(h,X){return Fr(h.getFullYear()%1E4,X,4)}
function r0e(h){h=h.getTimezoneOffset();return(h>0?"-":(h*=-1,"+"))+Fr(h/60|0,"0",2)+Fr(h%60,"0",2)}
function lfm(h,X){return Fr(h.getUTCDate(),X,2)}
function dvL(h,X){return Fr(h.getUTCHours(),X,2)}
function uSl(h,X){return Fr(h.getUTCHours()%12||12,X,2)}
function J0t(h,X){return Fr(1+OZ0.count(IV(h),h),X,3)}
function Gkf(h,X){return Fr(h.getUTCMilliseconds(),X,3)}
function ke8(h,X){return Gkf(h,X)+"000"}
function IOC(h,X){return Fr(h.getUTCMonth()+1,X,2)}
function gfK(h,X){return Fr(h.getUTCMinutes(),X,2)}
function ZLt(h,X){return Fr(h.getUTCSeconds(),X,2)}
function OLl(h){h=h.getUTCDay();return h===0?7:h}
function XO5(h,X){return Fr(Auo.count(IV(h),h),X,2)}
function hAL(h,X){var n=h.getUTCDay();h=n>=4||n===0?ZEl(h):ZEl.ceil(h);return Fr(ZEl.count(IV(h),h)+(IV(h).getUTCDay()===4),X,2)}
function aO9(h){return h.getUTCDay()}
function eAK(h,X){return Fr(JTY.count(IV(h),h),X,2)}
function FBg(h,X){return Fr(h.getUTCFullYear()%100,X,2)}
function zAe(h,X){return Fr(h.getUTCFullYear()%1E4,X,4)}
function lOb(){return"+0000"}
function zIf(){return"%"}
function eIs(h){return+h}
function Fp4(h){return Math.floor(+h/1E3)}
function dg(h){for(var X=h.length/6|0,n=Array(X),pO=0;pO<X;)n[pO]="#"+h.slice(pO*6,++pO*6);return n}
function MO(h){return YLJ(h[h.length-1])}
function Qzl(h){var X=h.length;return function(n){return h[Math.max(0,Math.min(X-1,Math.floor(n*X)))]}}
function D43(h){this._context=h}
function s2r(h){this._curve=h}
function Lp0(h,X,n){var pO=h._x1-h._x0;X-=h._x1;var qK=(h._y1-h._y0)/(pO||X<0&&-0);h=(n-h._y1)/(X||pO<0&&-0);return((qK<0?-1:1)+(h<0?-1:1))*Math.min(Math.abs(qK),Math.abs(h),.5*Math.abs((qK*X+h*pO)/(pO+X)))||0}
function PLZ(h,X){var n=h._x1-h._x0;return n?(3*(h._y1-h._y0)/n-X)/2:X}
function OEE(h,X,n){var pO=h._x0,qK=h._x1,Q_=h._y1,I0=(qK-pO)/3;h._context.bezierCurveTo(pO+I0,h._y0+I0*X,qK-I0,Q_-I0*n,qK,Q_)}
function Xe_(h){this._context=h}
function Tl3(h){this._context=h}
function I5(h,X,n){this.k=h;this.x=X;this.y=n}
(function(h){h.length===1&&(h=E(h));return{left:function(X,n,pO,qK){pO==null&&(pO=0);qK==null&&(qK=X.length);for(;pO<qK;){var Q_=pO+qK>>>1;h(X[Q_],n)<0?pO=Q_+1:qK=Q_}return pO},
right:function(X,n,pO,qK){pO==null&&(pO=0);qK==null&&(qK=X.length);for(;pO<qK;){var Q_=pO+qK>>>1;h(X[Q_],n)>0?qK=Q_:pO=Q_+1}return pO}}})(t);
var Mmt={value:function(){}};
U.prototype=p.prototype={constructor:U,on:function(h,X){var n=this._,pO=x(h+"",n),qK,Q_=-1,I0=pO.length;if(arguments.length<2)for(;++Q_<I0;){var e$;if(e$=qK=(h=pO[Q_]).type){a:{e$=n[qK];for(var bG=0,xm=e$.length;bG<xm;++bG)if((qK=e$[bG]).name===h.name){qK=qK.value;break a}qK=void 0}e$=qK}if(e$)return qK}else{if(X!=null&&typeof X!=="function")throw Error("Ee`"+X);for(;++Q_<I0;)if(qK=(h=pO[Q_]).type)n[qK]=A(n[qK],h.name,X);else if(X==null)for(qK in n)n[qK]=A(n[qK],h.name,null);return this}},
copy:function(){var h={},X=this._,n;for(n in X)h[n]=X[n].slice();return new U(h)},
call:function(h,X){if((qK=arguments.length-2)>0)for(var n=Array(qK),pO=0,qK,Q_;pO<qK;++pO)n[pO]=arguments[pO+2];if(!this._.hasOwnProperty(h))throw Error("ye`"+h);Q_=this._[h];pO=0;for(qK=Q_.length;pO<qK;++pO)Q_[pO].value.apply(X,n)},
apply:function(h,X,n){if(!this._.hasOwnProperty(h))throw Error("ye`"+h);h=this._[h];for(var pO=0,qK=h.length;pO<qK;++pO)h[pO].value.apply(X,n)}};
var fr={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/"},ocW=function(h){return function(){return this.matches(h)}};
if(typeof document!=="undefined"){var ge=document.documentElement;if(!ge.matches){var MSb=ge.webkitMatchesSelector||ge.msMatchesSelector||ge.mozMatchesSelector||ge.oMatchesSelector;ocW=function(h){return function(){return MSb.call(this,h)}}}}var WpG=ocW;
C.prototype={constructor:C,appendChild:function(h){return this._parent.insertBefore(h,this._next)},
insertBefore:function(h,X){return this._parent.insertBefore(h,X)},
querySelector:function(h){return this._parent.querySelector(h)},
querySelectorAll:function(h){return this._parent.querySelectorAll(h)}};
var S9X={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(S9X={mouseenter:"mouseover",mouseleave:"mouseout"}));var mk7=[null];$m.prototype=Kl.prototype={constructor:$m,select:function(h){typeof h!=="function"&&(h=V(h));for(var X=this._groups,n=X.length,pO=Array(n),qK=0;qK<n;++qK)for(var Q_=X[qK],I0=Q_.length,e$=pO[qK]=Array(I0),bG,xm,qf=0;qf<I0;++qf)(bG=Q_[qf])&&(xm=h.call(bG,bG.__data__,qf,Q_))&&("__data__"in bG&&(xm.__data__=bG.__data__),e$[qf]=xm);return new $m(pO,
this._parents)},
filter:function(h){typeof h!=="function"&&(h=WpG(h));for(var X=this._groups,n=X.length,pO=Array(n),qK=0;qK<n;++qK)for(var Q_=X[qK],I0=Q_.length,e$=pO[qK]=[],bG,xm=0;xm<I0;++xm)(bG=Q_[xm])&&h.call(bG,bG.__data__,xm,Q_)&&e$.push(bG);return new $m(pO,this._parents)},
data:function(h,X){if(!h)return nl=Array(this.size()),xm=-1,this.each(function(mW){nl[++xm]=mW}),nl;
var n=X?O:I,pO=this._parents,qK=this._groups;typeof h!=="function"&&(h=d(h));for(var Q_=qK.length,I0=Array(Q_),e$=Array(Q_),bG=Array(Q_),xm=0;xm<Q_;++xm){var qf=pO[xm],rZ=qK[xm],pl=rZ.length,nl=h.call(qf,qf&&qf.__data__,xm,pO),a$=nl.length,cT=e$[xm]=Array(a$),NE=I0[xm]=Array(a$);pl=bG[xm]=Array(pl);n(qf,rZ,cT,NE,pl,nl,X);rZ=qf=0;for(var CW;qf<a$;++qf)if(pl=cT[qf]){for(qf>=rZ&&(rZ=qf+1);!(CW=NE[rZ])&&++rZ<a$;);pl._next=CW||null}}I0=new $m(I0,pO);I0._enter=e$;I0._exit=bG;return I0},
enter:function(){return new $m(this._enter||this._groups.map(Q),this._parents)},
exit:function(){return new $m(this._exit||this._groups.map(Q),this._parents)},
merge:function(h){var X=this._groups;h=h._groups;for(var n=X.length,pO=Math.min(n,h.length),qK=Array(n),Q_=0;Q_<pO;++Q_)for(var I0=X[Q_],e$=h[Q_],bG=I0.length,xm=qK[Q_]=Array(bG),qf,rZ=0;rZ<bG;++rZ)if(qf=I0[rZ]||e$[rZ])xm[rZ]=qf;for(;Q_<n;++Q_)qK[Q_]=X[Q_];return new $m(qK,this._parents)},
order:function(){for(var h=this._groups,X=-1,n=h.length;++X<n;)for(var pO=h[X],qK=pO.length-1,Q_=pO[qK],I0;--qK>=0;)if(I0=pO[qK])Q_&&Q_!==I0.nextSibling&&Q_.parentNode.insertBefore(I0,Q_),Q_=I0;return this},
sort:function(h){function X(rZ,pl){return rZ&&pl?h(rZ.__data__,pl.__data__):!rZ-!pl}
h||(h=a);for(var n=this._groups,pO=n.length,qK=Array(pO),Q_=0;Q_<pO;++Q_){for(var I0=n[Q_],e$=I0.length,bG=qK[Q_]=Array(e$),xm,qf=0;qf<e$;++qf)if(xm=I0[qf])bG[qf]=xm;bG.sort(X)}return(new $m(qK,this._parents)).order()},
call:function(){var h=arguments[0];arguments[0]=this;h.apply(null,arguments);return this},
nodes:function(){var h=Array(this.size()),X=-1;this.each(function(){h[++X]=this});
return h},
node:function(){for(var h=this._groups,X=0,n=h.length;X<n;++X)for(var pO=h[X],qK=0,Q_=pO.length;qK<Q_;++qK){var I0=pO[qK];if(I0)return I0}return null},
size:function(){var h=0;this.each(function(){++h});
return h},
empty:function(){return!this.node()},
each:function(h){for(var X=this._groups,n=0,pO=X.length;n<pO;++n)for(var qK=X[n],Q_=0,I0=qK.length,e$;Q_<I0;++Q_)(e$=qK[Q_])&&h.call(e$,e$.__data__,Q_,qK);return this},
attr:function(h,X){var n=m(h);if(arguments.length<2){var pO=this.node();return n.local?pO.getAttributeNS(n.space,n.local):pO.getAttribute(n)}return this.each((X==null?n.local?L:F:typeof X==="function"?n.local?v:K:n.local?W:D)(n,X))},
style:function(h,X,n){return arguments.length>1?this.each((X==null?YL:typeof X==="function"?kL:bY)(h,X,n==null?"":n)):R0(this.node(),h)},
property:function(h,X){return arguments.length>1?this.each((X==null?j$:typeof X==="function"?Tt:lY)(h,X)):this.node()[h]},
text:function(h){return arguments.length?this.each(h==null?si:(typeof h==="function"?ps:Q0)(h)):this.node().textContent},
html:function(h){return arguments.length?this.each(h==null?$L:(typeof h==="function"?km:Cs)(h)):this.node().innerHTML},
append:function(h){var X=typeof h==="function"?h:B(h);return this.select(function(){return this.appendChild(X.apply(this,arguments))})},
insert:function(h,X){var n=typeof h==="function"?h:B(h),pO=X==null?ZT:typeof X==="function"?X:V(X);return this.select(function(){return this.insertBefore(n.apply(this,arguments),pO.apply(this,arguments)||null)})},
remove:function(){return this.each(l8)},
clone:function(h){return this.select(h?wE:Rt)},
datum:function(h){return arguments.length?this.property("__data__",h):this.node().__data__},
on:function(h,X,n){var pO=SW(h+""),qK=pO.length,Q_;if(arguments.length<2){var I0=this.node().__on;if(I0)for(var e$=0,bG=I0.length,xm;e$<bG;++e$){var qf=0;for(xm=I0[e$];qf<qK;++qf)if((Q_=pO[qf]).type===xm.type&&Q_.name===xm.name)return xm.value}}else{I0=X?zX:h3;n==null&&(n=!1);for(qf=0;qf<qK;++qf)this.each(I0(pO[qf],X,n));return this}},
dispatch:function(h,X){return this.each((typeof X==="function"?VJ:EC)(h,X))}};
var bkd=0;iG.prototype=function(){return new iG}.prototype={constructor:iG,
get:function(h){for(var X=this._;!(X in h);)if(!(h=h.parentNode))return;return h[X]},
set:function(h,X){return h[this._]=X},
remove:function(h){return this._ in h&&delete h[this._]},
toString:function(){return this._}};
var gC=1/.7,ikK=/^#([0-9a-f]{3})$/,qMb=/^#([0-9a-f]{6})$/,Hkt=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),f78=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Bpl=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),wMo=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*\\)$"),
RHd=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Vml=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*\\)$"),cTm={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};
QJ(vp,DT,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
QJ(ES,jg,Rs(vp,{brighter:function(h){h=h==null?gC:Math.pow(gC,h);return new ES(this.r*h,this.g*h,this.b*h,this.opacity)},
darker:function(h){h=h==null?.7:Math.pow(.7,h);return new ES(this.r*h,this.g*h,this.b*h,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"#"+m6(this.r)+m6(this.g)+m6(this.b)},
toString:function(){var h=this.opacity;h=isNaN(h)?1:Math.max(0,Math.min(1,h));return(h===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))+(h===1?")":", "+h+")")}}));
QJ(EJ,t6,Rs(vp,{brighter:function(h){h=h==null?gC:Math.pow(gC,h);return new EJ(this.h,this.s,this.l*h,this.opacity)},
darker:function(h){h=h==null?.7:Math.pow(.7,h);return new EJ(this.h,this.s,this.l*h,this.opacity)},
rgb:function(){var h=this.h%360+(this.h<0)*360,X=this.l,n=X+(X<.5?X:1-X)*(isNaN(h)||isNaN(this.s)?0:this.s);X=2*X-n;return new ES(h9(h>=240?h-240:h+120,X,n),h9(h,X,n),h9(h<120?h+240:h-120,X,n),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 tAs=Math.PI/180,U4G=180/Math.PI,pJX=4/29,dC=6/29,Eco=3*dC*dC,QIo=dC*dC*dC;QJ(gE,function(h,X,n,pO){return arguments.length===1?Xa(h):new gE(h,X,n,pO==null?1:pO)},Rs(vp,{brighter:function(h){return new gE(this.l+18*(h==null?1:h),this.a,this.b,this.opacity)},
darker:function(h){return new gE(this.l-18*(h==null?1:h),this.a,this.b,this.opacity)},
rgb:function(){var h=(this.l+16)/116,X=isNaN(this.a)?h:h+this.a/500,n=isNaN(this.b)?h:h-this.b/200;X=.96422*KO(X);h=1*KO(h);n=.82521*KO(n);return new ES(dZ(3.1338561*X-1.6168667*h-.4906146*n),dZ(-.9787684*X+1.9161415*h+.033454*n),dZ(.0719453*X-.2289914*h+1.4052427*n),this.opacity)}}));
QJ(gZ,X7,Rs(vp,{brighter:function(h){return new gZ(this.h,this.c,this.l+18*(h==null?1:h),this.opacity)},
darker:function(h){return new gZ(this.h,this.c,this.l-18*(h==null?1:h),this.opacity)},
rgb:function(){return Xa(this).rgb()}}));
var x40=1.78277*-.29227-.1347134789;QJ(T5,J3,Rs(vp,{brighter:function(h){h=h==null?gC:Math.pow(gC,h);return new T5(this.h,this.s,this.l*h,this.opacity)},
darker:function(h){h=h==null?.7:Math.pow(.7,h);return new T5(this.h,this.s,this.l*h,this.opacity)},
rgb:function(){var h=isNaN(this.h)?0:(this.h+120)*tAs,X=+this.l,n=isNaN(this.s)?0:this.s*X*(1-X),pO=Math.cos(h);h=Math.sin(h);return new ES(255*(X+n*(-.14861*pO+1.78277*h)),255*(X+n*(-.29227*pO+-.90649*h)),255*(X+1.97294*pO*n),this.opacity)}}));
var MAo=function n(X){function pO(Q_,I0){var e$=qK((Q_=jg(Q_)).r,(I0=jg(I0)).r),bG=qK(Q_.g,I0.g),xm=qK(Q_.b,I0.b),qf=pM(Q_.opacity,I0.opacity);return function(rZ){Q_.r=e$(rZ);Q_.g=bG(rZ);Q_.b=xm(rZ);Q_.opacity=qf(rZ);return Q_+""}}
var qK=Vy(X);pO.gamma=n;return pO}(1),YLJ=w1(function(X){var n=X.length-1;
return function(pO){var qK=pO<=0?pO=0:pO>=1?(pO=1,n-1):Math.floor(pO*n),Q_=X[qK],I0=X[qK+1];return iF((pO-qK/n)*n,qK>0?X[qK-1]:2*Q_-I0,Q_,I0,qK<n-1?X[qK+2]:2*I0-Q_)}});
w1(function(X){var n=X.length;return function(pO){var qK=Math.floor(((pO%=1)<0?++pO:pO)*n);return iF((pO-qK/n)*n,X[(qK+n-1)%n],X[qK%n],X[(qK+1)%n],X[(qK+2)%n])}});
var ByD=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,we$=new RegExp(ByD.source,"g"),AsW=180/Math.PI,hht={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Zb,aH$,$4f,CV8,m98=k8(function(X){if(X==="none")return hht;Zb||(Zb=document.createElement("DIV"),aH$=document.documentElement,$4f=document.defaultView);Zb.style.transform=X;X=$4f.getComputedStyle(aH$.appendChild(Zb),null).getPropertyValue("transform");aH$.removeChild(Zb);X=X.slice(7,-1).split(",");return Wf(+X[0],+X[1],+X[2],+X[3],
+X[4],+X[5])},"px, ","px)","deg)"),bPo=k8(function(X){if(X==null)return hht;
CV8||(CV8=document.createElementNS("http://www.w3.org/2000/svg","g"));CV8.setAttribute("transform",X);if(!(X=CV8.transform.baseVal.consolidate()))return hht;X=X.matrix;return Wf(X.a,X.b,X.c,X.d,X.e,X.f)},", ",")",")");
J9(o$);J9(pM);dn(o$);dn(pM);Td(o$);var ehK=Td(pM),u5=0,we=0,VH=0,mW_,R5,MJK=0,Yg=0,Y_E=0,B0=typeof performance==="object"&&performance.now?performance:Date,Y$s=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(X){setTimeout(X,17)};
LG.prototype=$M.prototype={constructor:LG,restart:function(X,n,pO){if(typeof X!=="function")throw new TypeError("Fe");pO=(pO==null?oF():+pO)+(n==null?0:+n);this._next||R5===this||(R5?R5._next=this:mW_=this,R5=this);this._call=X;this._time=pO;vf()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,vf())}};
var CSJ=p("start","end","interrupt"),jIJ=[],iPo=Kl.prototype.constructor,Kp3=0,Zg=Kl.prototype;yu.prototype=function(X){return Kl().transition(X)}.prototype={constructor:yu,
select:function(X){var n=this._name,pO=this._id;typeof X!=="function"&&(X=V(X));for(var qK=this._groups,Q_=qK.length,I0=Array(Q_),e$=0;e$<Q_;++e$)for(var bG=qK[e$],xm=bG.length,qf=I0[e$]=Array(xm),rZ,pl,nl=0;nl<xm;++nl)(rZ=bG[nl])&&(pl=X.call(rZ,rZ.__data__,nl,bG))&&("__data__"in rZ&&(pl.__data__=rZ.__data__),qf[nl]=pl,Er(qf[nl],n,pO,nl,qf,M2(rZ,pO)));return new yu(I0,this._parents,n,pO)},
filter:function(X){typeof X!=="function"&&(X=WpG(X));for(var n=this._groups,pO=n.length,qK=Array(pO),Q_=0;Q_<pO;++Q_)for(var I0=n[Q_],e$=I0.length,bG=qK[Q_]=[],xm,qf=0;qf<e$;++qf)(xm=I0[qf])&&X.call(xm,xm.__data__,qf,I0)&&bG.push(xm);return new yu(qK,this._parents,this._name,this._id)},
merge:function(X){if(X._id!==this._id)throw Error();var n=this._groups;X=X._groups;for(var pO=n.length,qK=Math.min(pO,X.length),Q_=Array(pO),I0=0;I0<qK;++I0)for(var e$=n[I0],bG=X[I0],xm=e$.length,qf=Q_[I0]=Array(xm),rZ,pl=0;pl<xm;++pl)if(rZ=e$[pl]||bG[pl])qf[pl]=rZ;for(;I0<pO;++I0)Q_[I0]=n[I0];return new yu(Q_,this._parents,this._name,this._id)},
selection:function(){return new iPo(this._groups,this._parents)},
transition:function(){for(var X=this._name,n=this._id,pO=++Kp3,qK=this._groups,Q_=qK.length,I0=0;I0<Q_;++I0)for(var e$=qK[I0],bG=e$.length,xm,qf=0;qf<bG;++qf)if(xm=e$[qf]){var rZ=M2(xm,n);Er(xm,X,pO,qf,e$,{time:rZ.time+rZ.delay+rZ.duration,delay:0,duration:rZ.duration,ease:rZ.ease})}return new yu(qK,this._parents,X,pO)},
call:Zg.call,nodes:Zg.nodes,node:Zg.node,size:Zg.size,empty:Zg.empty,each:Zg.each,on:function(X,n){var pO=this._id;return arguments.length<2?M2(this.node(),pO).on.on(X):this.each(XMd(pO,X,n))},
attr:function(X,n){var pO=m(X),qK=pO==="transform"?bPo:i3;return this.attrTween(X,typeof n==="function"?(pO.local?rce:iWJ)(pO,qK,DB(this,"attr."+X,n)):n==null?(pO.local?bW8:QH)(pO):(pO.local?jb:C6)(pO,qK,n+""))},
attrTween:function(X,n){var pO="attr."+X;if(arguments.length<2)return(pO=this.tween(pO))&&pO._value;if(n==null)return this.tween(pO,null);if(typeof n!=="function")throw Error();var qK=m(X);return this.tween(pO,(qK.local?kRo:dkl)(qK,n))},
style:function(X,n,pO){var qK=X==="transform"?m98:i3;return n==null?this.styleTween(X,a7l(X,qK)).on("end.style."+X,eH7(X)):this.styleTween(X,typeof n==="function"?zHd(X,qK,DB(this,"style."+X,n)):Fwg(X,qK,n+""),pO)},
styleTween:function(X,n,pO){var qK="style."+X;if(arguments.length<2)return(qK=this.tween(qK))&&qK._value;if(n==null)return this.tween(qK,null);if(typeof n!=="function")throw Error();return this.tween(qK,l7t(X,n,pO==null?"":pO))},
text:function(X){return this.tween("text",typeof X==="function"?nl9(DB(this,"text",X)):GRt(X==null?"":X+""))},
remove:function(){return this.on("end.remove",hHo(this._id))},
tween:function(X,n){var pO=this._id;if(arguments.length<2){pO=M2(this.node(),pO).tween;for(var qK=0,Q_=pO.length,I0;qK<Q_;++qK)if((I0=pO[qK]).name===X)return I0.value;return null}return this.each((n==null?pg:UJ)(pO,X,n))},
delay:function(X){var n=this._id;return arguments.length?this.each((typeof X==="function"?uN5:Jc5)(n,X)):M2(this.node(),n).delay},
duration:function(X){var n=this._id;return arguments.length?this.each((typeof X==="function"?I7e:gl7)(n,X)):M2(this.node(),n).duration},
ease:function(X){var n=this._id;return arguments.length?this.each(Zk5(n,X)):M2(this.node(),n).ease}};
var Fgt={time:null,delay:0,duration:250,ease:function(X){return((X*=2)<=1?X*X*X:(X-=2)*X*X+2)/2}};
Kl.prototype.transition=function(X){var n;if(X instanceof yu){var pO=X._id;X=X._name}else pO=++Kp3,(n=Fgt).time=oF(),X=X==null?null:X+"";for(var qK=this._groups,Q_=qK.length,I0=0;I0<Q_;++I0)for(var e$=qK[I0],bG=e$.length,xm,qf=0;qf<bG;++qf)if(xm=e$[qf]){var rZ=xm,pl=X,nl=pO,a$=qf,cT=e$,NE;if(!(NE=n))a:{NE=void 0;for(var CW=pO;!(NE=xm.__transition)||!(NE=NE[CW]);)if(!(xm=xm.parentNode)){NE=(Fgt.time=oF(),Fgt);break a}}Er(rZ,pl,nl,a$,cT,NE)}return new yu(qK,this._parents,X,pO)};
["e","w"].map(Rhj);["n","s"].map(Rhj);"n e s w nw ne se sw".split(" ").map(Rhj);Vp0.prototype=function(){return new Vp0}.prototype={constructor:Vp0,
moveTo:function(X,n){this._+="M"+(this._x0=this._x1=+X)+","+(this._y0=this._y1=+n)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(X,n){this._+="L"+(this._x1=+X)+","+(this._y1=+n)},
bezierCurveTo:function(X,n,pO,qK,Q_,I0){this._+="C"+ +X+","+ +n+","+ +pO+","+ +qK+","+(this._x1=+Q_)+","+(this._y1=+I0)},
rect:function(X,n,pO,qK){this._+="M"+(this._x0=this._x1=+X)+","+(this._y0=this._y1=+n)+"h"+ +pO+"v"+ +qK+"h"+-pO+"Z"},
toString:function(){return this._}};
q_L.prototype=m4p.prototype={constructor:q_L,has:function(X){return" "+X in this},
get:function(X){return this[" "+X]},
set:function(X,n){this[" "+X]=n;return this},
remove:function(X){X=" "+X;return X in this&&delete this[X]},
clear:function(){for(var X in this)X[0]===" "&&delete this[X]},
keys:function(){var X=[],n;for(n in this)n[0]===" "&&X.push(n.slice(1));return X},
values:function(){var X=[],n;for(n in this)n[0]===" "&&X.push(this[n]);return X},
entries:function(){var X=[],n;for(n in this)n[0]===" "&&X.push({key:n.slice(1),value:this[n]});return X},
size:function(){var X=0,n;for(n in this)n[0]===" "&&++X;return X},
empty:function(){for(var X in this)if(X[0]===" ")return!1;return!0},
each:function(X){for(var n in this)n[0]===" "&&X(this[n],n.slice(1),this)}};
var bo=m4p.prototype;HWO.prototype=function(X,n){var pO=new HWO;if(X instanceof HWO)X.each(function(I0){pO.add(I0)});
else if(X){var qK=-1,Q_=X.length;if(n==null)for(;++qK<Q_;)pO.add(X[qK]);else for(;++qK<Q_;)pO.add(n(X[qK],qK,X))}return pO}.prototype={constructor:HWO,
has:bo.has,add:function(X){this[" "+X]=X;return this},
remove:bo.remove,clear:bo.clear,values:bo.keys,size:bo.size,empty:bo.empty,each:bo.each};var q$m={},Qli={},qLC=iZG(",").parse,HP5=iZG("\t").parse;HZ4(qLC);HZ4(HP5);var YR=function(X,n,pO){n=new Ce$(n==null?LwK:n,pO==null?PSe:pO,NaN,NaN,NaN,NaN);return X==null?n:n.addAll(X)}.prototype=Ce$.prototype;
YR.copy=function(){var X=new Ce$(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root,pO,qK;if(!n)return X;if(!n.length)return X._root=BlT(n),X;for(pO=[{source:n,target:X._root=Array(4)}];n=pO.pop();)for(var Q_=0;Q_<4;++Q_)if(qK=n.source[Q_])qK.length?pO.push({source:qK,target:n.target[Q_]=Array(4)}):n.target[Q_]=BlT(qK);return X};
YR.add=function(X){var n=+this._x.call(null,X),pO=+this._y.call(null,X);return ffW(this.cover(n,pO),n,pO,X)};
YR.addAll=function(X){var n,pO,qK=X.length,Q_,I0,e$=Array(qK),bG=Array(qK),xm=Infinity,qf=Infinity,rZ=-Infinity,pl=-Infinity;for(pO=0;pO<qK;++pO)isNaN(Q_=+this._x.call(null,n=X[pO]))||isNaN(I0=+this._y.call(null,n))||(e$[pO]=Q_,bG[pO]=I0,Q_<xm&&(xm=Q_),Q_>rZ&&(rZ=Q_),I0<qf&&(qf=I0),I0>pl&&(pl=I0));rZ<xm&&(xm=this._x0,rZ=this._x1);pl<qf&&(qf=this._y0,pl=this._y1);this.cover(xm,qf).cover(rZ,pl);for(pO=0;pO<qK;++pO)ffW(this,e$[pO],bG[pO],X[pO]);return this};
YR.cover=function(X,n){if(isNaN(X=+X)||isNaN(n=+n))return this;var pO=this._x0,qK=this._y0,Q_=this._x1,I0=this._y1;if(isNaN(pO))Q_=(pO=Math.floor(X))+1,I0=(qK=Math.floor(n))+1;else if(pO>X||X>Q_||qK>n||n>I0){var e$=Q_-pO,bG=this._root,xm;switch(xm=(n<(qK+I0)/2)<<1|X<(pO+Q_)/2){case 0:do{var qf=Array(4);qf[xm]=bG;bG=qf}while(e$*=2,Q_=pO+e$,I0=qK+e$,X>Q_||n>I0);break;case 1:do qf=Array(4),qf[xm]=bG,bG=qf;while(e$*=2,pO=Q_-e$,I0=qK+e$,pO>X||n>I0);break;case 2:do qf=Array(4),qf[xm]=bG,bG=qf;while(e$*=
2,Q_=pO+e$,qK=I0-e$,X>Q_||qK>n);break;case 3:do qf=Array(4),qf[xm]=bG,bG=qf;while(e$*=2,pO=Q_-e$,qK=I0-e$,pO>X||qK>n)}this._root&&this._root.length&&(this._root=bG)}else return this;this._x0=pO;this._y0=qK;this._x1=Q_;this._y1=I0;return this};
YR.data=function(){var X=[];this.visit(function(n){if(!n.length){do X.push(n.data);while(n=n.next)}});
return X};
YR.extent=function(X){return arguments.length?this.cover(+X[0][0],+X[0][1]).cover(+X[1][0],+X[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
YR.find=function(X,n,pO){var qK=this._x0,Q_=this._y0,I0,e$,bG,xm,qf=this._x1,rZ=this._y1,pl=[],nl=this._root,a$;nl&&pl.push(new A2(nl,qK,Q_,qf,rZ));pO==null?pO=Infinity:(qK=X-pO,Q_=n-pO,qf=X+pO,rZ=n+pO,pO*=pO);for(;a$=pl.pop();)if(!(!(nl=a$.node)||(I0=a$.x0)>qf||(e$=a$.y0)>rZ||(bG=a$.x1)<qK||(xm=a$.y1)<Q_))if(nl.length){a$=(I0+bG)/2;var cT=(e$+xm)/2;pl.push(new A2(nl[3],a$,cT,bG,xm),new A2(nl[2],I0,cT,a$,xm),new A2(nl[1],a$,e$,bG,cT),new A2(nl[0],I0,e$,a$,cT));if(nl=(n>=cT)<<1|X>=a$)a$=pl[pl.length-
1],pl[pl.length-1]=pl[pl.length-1-nl],pl[pl.length-1-nl]=a$}else if(a$=X-+this._x.call(null,nl.data),cT=n-+this._y.call(null,nl.data),a$=a$*a$+cT*cT,a$<pO){var NE=Math.sqrt(pO=a$);qK=X-NE;Q_=n-NE;qf=X+NE;rZ=n+NE;NE=nl.data}return NE};
YR.remove=function(X){if(isNaN(xm=+this._x.call(null,X))||isNaN(qf=+this._y.call(null,X)))return this;var n,pO=this._root,qK,Q_=this._x0,I0=this._y0,e$=this._x1,bG=this._y1,xm,qf,rZ,pl,nl,a$,cT;if(!pO)return this;if(pO.length)for(;;){(nl=xm>=(rZ=(Q_+e$)/2))?Q_=rZ:e$=rZ;(a$=qf>=(pl=(I0+bG)/2))?I0=pl:bG=pl;if(!(n=pO,pO=pO[cT=a$<<1|nl]))return this;if(!pO.length)break;if(n[cT+1&3]||n[cT+2&3]||n[cT+3&3]){var NE=n;var CW=cT}}for(;pO.data!==X;)if(!(qK=pO,pO=pO.next))return this;(X=pO.next)&&delete pO.next;
if(qK)return X?qK.next=X:delete qK.next,this;if(!n)return this._root=X,this;X?n[cT]=X:delete n[cT];(pO=n[0]||n[1]||n[2]||n[3])&&pO===(n[3]||n[2]||n[1]||n[0])&&!pO.length&&(NE?NE[CW]=pO:this._root=pO);return this};
YR.removeAll=function(X){for(var n=0,pO=X.length;n<pO;++n)this.remove(X[n]);return this};
YR.root=function(){return this._root};
YR.size=function(){var X=0;this.visit(function(n){if(!n.length){do++X;while(n=n.next)}});
return X};
YR.visit=function(X){var n=[],pO,qK=this._root,Q_,I0,e$,bG,xm;for(qK&&n.push(new A2(qK,this._x0,this._y0,this._x1,this._y1));pO=n.pop();)if(!X(qK=pO.node,I0=pO.x0,e$=pO.y0,bG=pO.x1,xm=pO.y1)&&qK.length){pO=(I0+bG)/2;var qf=(e$+xm)/2;(Q_=qK[3])&&n.push(new A2(Q_,pO,qf,bG,xm));(Q_=qK[2])&&n.push(new A2(Q_,I0,qf,pO,xm));(Q_=qK[1])&&n.push(new A2(Q_,pO,e$,bG,qf));(Q_=qK[0])&&n.push(new A2(Q_,I0,e$,pO,qf))}};
YR.visitAfter=function(X){var n=[],pO=[],qK;for(this._root&&n.push(new A2(this._root,this._x0,this._y0,this._x1,this._y1));qK=n.pop();){var Q_=qK.node;if(Q_.length){var I0,e$=qK.x0,bG=qK.y0,xm=qK.x1,qf=qK.y1,rZ=(e$+xm)/2,pl=(bG+qf)/2;(I0=Q_[0])&&n.push(new A2(I0,e$,bG,rZ,pl));(I0=Q_[1])&&n.push(new A2(I0,rZ,bG,xm,pl));(I0=Q_[2])&&n.push(new A2(I0,e$,pl,rZ,qf));(I0=Q_[3])&&n.push(new A2(I0,rZ,pl,xm,qf))}pO.push(qK)}for(;qK=pO.pop();)X(qK.node,qK.x0,qK.y0,qK.x1,qK.y1);return this};
YR.x=function(X){return arguments.length?(this._x=X,this):this._x};
YR.y=function(X){return arguments.length?(this._y=X,this):this._y};
var $k5=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;jlO.prototype=rT_.prototype;rT_.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 Q23,CLf={"%":function(X,n){return(X*100).toFixed(n)},
b:function(X){return Math.round(X).toString(2)},
c:function(X){return X+""},
d:function(X){return Math.round(X).toString(10)},
e:function(X,n){return X.toExponential(n)},
f:function(X,n){return X.toFixed(n)},
g:function(X,n){return X.toPrecision(n)},
o:function(X){return Math.round(X).toString(8)},
p:function(X,n){return wJG(X*100,n)},
r:wJG,s:function(X,n){var pO=fDi(X,n);if(!pO)return X+"";var qK=pO[0];pO=pO[1];pO=pO-(Q23=Math.max(-8,Math.min(8,Math.floor(pO/3)))*3)+1;var Q_=qK.length;return pO===Q_?qK:pO>Q_?qK+Array(pO-Q_+1).join("0"):pO>0?qK.slice(0,pO)+"."+qK.slice(pO):"0."+Array(1-pO).join("0")+fDi(X,Math.max(0,n+pO-1))[0]},
X:function(X){return Math.round(X).toString(16).toUpperCase()},
x:function(X){return Math.round(X).toString(16)}},VAr="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),fzt;
(function(X){return fzt=KwC(X)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});qq.prototype={constructor:qq,reset:function(){this.s=this.t=0},
add:function(X){j2p(jz8,X,this.t);j2p(this,jz8.s,this.s);this.s?this.t+=jz8.t:this.s=jz8.t},
valueOf:function(){return this.s}};
var jz8=new qq,Me=Math.PI,BS=Me/2,vcr=Me/4,BPo=Me*2,zhD=Me/180,S4=Math.abs,lHO=Math.atan,IfW=Math.atan2,wI=Math.cos,sF=Math.sin,wXj=Math.sqrt;new qq;new qq;new qq;var Gpt=new qq;(function(X,n,pO,qK){return function(Q_){function I0(bK,Xs){X(bK,Xs)&&Q_.point(bK,Xs)}
function e$(bK,Xs){nl.point(bK,Xs)}
function bG(){wG.point=e$;nl.lineStart()}
function xm(){wG.point=I0;nl.lineEnd()}
function qf(bK,Xs){aK.push([bK,Xs]);cT.point(bK,Xs)}
function rZ(){cT.lineStart();aK=[]}
function pl(){qf(aK[0][0],aK[0][1]);cT.lineEnd();var bK=cT.clean(),Xs=a$.result(),ME=Xs.length,za;aK.pop();CW.push(aK);aK=null;if(ME)if(bK&1){if(ME=Xs[0],(Xs=ME.length-1)>0){NE||(Q_.polygonStart(),NE=!0);Q_.lineStart();for(bK=0;bK<Xs;++bK)Q_.point((za=ME[bK])[0],za[1]);Q_.lineEnd()}}else ME>1&&bK&2&&Xs.push(Xs.pop().concat(Xs.shift())),mW.push(Xs.filter(ccK))}
var nl=n(Q_),a$=yce(),cT=n(a$),NE=!1,CW,mW,aK,wG={point:I0,lineStart:bG,lineEnd:xm,polygonStart:function(){wG.point=qf;wG.lineStart=rZ;wG.lineEnd=pl;mW=[];CW=[]},
polygonEnd:function(){wG.point=I0;wG.lineStart=bG;wG.lineEnd=xm;var bK=mW,Xs=bK.length;var ME=-1;for(var za=0,pt,Zk;++ME<Xs;)za+=bK[ME].length;for(pt=Array(za);--Xs>=0;)for(Zk=bK[Xs],ME=Zk.length;--ME>=0;)pt[--za]=Zk[ME];mW=pt;bK=CW;Xs=qK[0];za=qK[1];var V$=sF(za);ME=[sF(Xs),-wI(Xs),0];Zk=pt=0;Gpt.reset();V$===1?za=BS+1E-6:V$===-1&&(za=-BS-1E-6);V$=0;for(var NL=bK.length;V$<NL;++V$)if(Yn=(Ya=bK[V$]).length){var Ya,Yn,jJ=Ya[Yn-1],h6=jJ[0],P$=jJ[1]/2+vcr,rHD=sF(P$),ysG=wI(P$);for(P$=0;P$<Yn;++P$,h6=
npL,rHD=S$4,ysG=Ow,jJ=kQi){var kQi=Ya[P$],npL=kQi[0];Ow=kQi[1]/2+vcr;var S$4=sF(Ow),Ow=wI(Ow),Ox=npL-h6,Nyl=Ox>=0?1:-1,DTL=Nyl*Ox,dWj=DTL>Me;rHD*=S$4;Gpt.add(IfW(rHD*Nyl*sF(DTL),ysG*Ow+rHD*wI(DTL)));pt+=dWj?Ox+Nyl*BPo:Ox;dWj^h6>=Xs^npL>=Xs&&(jJ=kkr(rsr(jJ),rsr(kQi)),d44(jJ),h6=kkr(ME,jJ),d44(h6),h6=(dWj^Ox>=0?-1:1)*B1L(h6[2]),za>h6||za===h6&&(jJ[0]||jJ[1]))&&(Zk+=dWj^Ox>=0?1:-1)}}bK=(pt<-1E-6||pt<1E-6&&Gpt<-1E-6)^Zk&1;mW.length?(NE||(Q_.polygonStart(),NE=!0),SMo(mW,tF8,bK,pO,Q_)):bK&&(NE||(Q_.polygonStart(),
NE=!0),Q_.lineStart(),pO(null,null,1,Q_),Q_.lineEnd());NE&&(Q_.polygonEnd(),NE=!1);mW=CW=null},
sphere:function(){Q_.polygonStart();Q_.lineStart();pO(null,null,1,Q_);Q_.lineEnd();Q_.polygonEnd()}};
return wG}})(function(){return!0},function(X){var n=NaN,pO=NaN,qK=NaN,Q_;
return{lineStart:function(){X.lineStart();Q_=1},
point:function(I0,e$){var bG=I0>0?Me:-Me,xm=S4(I0-n);if(S4(xm-Me)<1E-6)X.point(n,pO=(pO+e$)/2>0?BS:-BS),X.point(qK,pO),X.lineEnd(),X.lineStart(),X.point(bG,pO),X.point(I0,pO),Q_=0;else if(qK!==bG&&xm>=Me){S4(n-qK)<1E-6&&(n-=qK*1E-6);S4(I0-bG)<1E-6&&(I0-=bG*1E-6);xm=n;var qf=pO,rZ=I0,pl,nl,a$=sF(xm-rZ);pO=S4(a$)>1E-6?lHO((sF(qf)*(nl=wI(e$))*sF(rZ)-sF(e$)*(pl=wI(qf))*sF(xm))/(pl*nl*a$)):(qf+e$)/2;X.point(qK,pO);X.lineEnd();X.lineStart();X.point(bG,pO);Q_=0}X.point(n=I0,pO=e$);qK=bG},
lineEnd:function(){X.lineEnd();n=pO=NaN},
clean:function(){return 2-Q_}}},function(X,n,pO,qK){X==null?(pO*=BS,qK.point(-Me,pO),qK.point(0,pO),qK.point(Me,pO),qK.point(Me,0),qK.point(Me,-pO),qK.point(0,-pO),qK.point(-Me,-pO),qK.point(-Me,0),qK.point(-Me,pO)):S4(X[0]-n[0])>1E-6?(X=X[0]<n[0]?Me:-Me,pO=pO*X/2,qK.point(-X,pO),qK.point(0,pO),qK.point(X,pO)):qK.point(n[0],n[1])},[-Me,
-BS]);new qq;new qq;new qq;new qq;kpK.prototype={constructor:kpK,point:function(X,n){this.stream.point(X,n)},
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()}};
wI(30*zhD);(function(X){return function(n){var pO=new kpK,qK;for(qK in X)pO[qK]=X[qK];pO.stream=n;return pO}})({point:function(X,n){this.stream.point(X*zhD,n*zhD)}});
Js0(function(X){return wXj(2/(1+X))}).invert=re(function(X){return 2*B1L(X/2)});
Js0(function(X){return(X=X>1?0:X<-1?Me:Math.acos(X))&&X/sF(X)}).invert=re(function(X){return X});
wXj(3);re(lHO);re(B1L);re(function(X){return 2*lHO(X)});
kB.prototype=gcs.prototype={constructor:kB,count:function(){return this.eachAfter(EfC)},
each:function(X){var n,pO=[this],qK;do{var Q_=pO.reverse();for(pO=[];n=Q_.pop();)if(X(n),n=n.children){var I0=0;for(qK=n.length;I0<qK;++I0)pO.push(n[I0])}}while(pO.length);return this},
eachAfter:function(X){for(var n,pO=[this],qK=[],Q_,I0;n=pO.pop();)if(qK.push(n),n=n.children)for(Q_=0,I0=n.length;Q_<I0;++Q_)pO.push(n[Q_]);for(;n=qK.pop();)X(n);return this},
eachBefore:function(X){for(var n,pO=[this],qK;n=pO.pop();)if(X(n),n=n.children)for(qK=n.length-1;qK>=0;--qK)pO.push(n[qK]);return this},
sum:function(X){return this.eachAfter(function(n){for(var pO=+X(n.data)||0,qK=n.children,Q_=qK&&qK.length;--Q_>=0;)pO+=qK[Q_].value;n.value=pO})},
sort:function(X){return this.eachBefore(function(n){n.children&&n.children.sort(X)})},
path:function(X){var n=this;var pO=n;var qK=X;if(pO!==qK){var Q_=pO.ancestors(),I0=qK.ancestors(),e$=null;pO=Q_.pop();for(qK=I0.pop();pO===qK;)e$=pO,pO=Q_.pop(),qK=I0.pop();pO=e$}for(qK=[n];n!==pO;)n=n.parent,qK.push(n);for(n=qK.length;X!==pO;)qK.splice(n,0,X),X=X.parent;return qK},
ancestors:function(){for(var X=this,n=[X];X=X.parent;)n.push(X);return n},
links:function(){var X=this,n=[];X.each(function(pO){pO!==X&&n.push({source:pO.parent,target:pO})});
return n},
copy:function(){return gcs(this).eachBefore(xvg)}};
(function(X,n){this._=X;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=n}).prototype=Object.create(kB.prototype);
var dTY=new Date,u_O=new Date,csZ=eQ(function(){},function(X,n){X.setTime(+X+n)},function(X,n){return n-X});
csZ.every=function(X){X=Math.floor(X);return isFinite(X)&&X>0?X>1?eQ(function(n){n.setTime(Math.floor(n/X)*X)},function(n,pO){n.setTime(+n+pO*X)},function(n,pO){return(pO-n)/X}):csZ:null};
eQ(function(X){X.setTime(Math.floor(X/1E3)*1E3)},function(X,n){X.setTime(+X+n*1E3)},function(X,n){return(n-X)/1E3},function(X){return X.getUTCSeconds()});
eQ(function(X){X.setTime(Math.floor(X/6E4)*6E4)},function(X,n){X.setTime(+X+n*6E4)},function(X,n){return(n-X)/6E4},function(X){return X.getMinutes()});
eQ(function(X){var n=X.getTimezoneOffset()*6E4%36E5;n<0&&(n+=36E5);X.setTime(Math.floor((+X-n)/36E5)*36E5+n)},function(X,n){X.setTime(+X+n*36E5)},function(X,n){return(n-X)/36E5},function(X){return X.getHours()});
var XJ3=eQ(function(X){X.setHours(0,0,0,0)},function(X,n){X.setDate(X.getDate()+n)},function(X,n){return(n-X-(n.getTimezoneOffset()-X.getTimezoneOffset())*6E4)/864E5},function(X){return X.getDate()-1}),x9J=M9(0),IHD=M9(1);
M9(2);M9(3);var gpi=M9(4);M9(5);M9(6);eQ(function(X){X.setDate(1);X.setHours(0,0,0,0)},function(X,n){X.setMonth(X.getMonth()+n)},function(X,n){return n.getMonth()-X.getMonth()+(n.getFullYear()-X.getFullYear())*12},function(X){return X.getMonth()});
var JM=eQ(function(X){X.setMonth(0,1);X.setHours(0,0,0,0)},function(X,n){X.setFullYear(X.getFullYear()+n)},function(X,n){return n.getFullYear()-X.getFullYear()},function(X){return X.getFullYear()});
JM.every=function(X){return isFinite(X=Math.floor(X))&&X>0?eQ(function(n){n.setFullYear(Math.floor(n.getFullYear()/X)*X);n.setMonth(0,1);n.setHours(0,0,0,0)},function(n,pO){n.setFullYear(n.getFullYear()+pO*X)}):null};
eQ(function(X){X.setUTCSeconds(0,0)},function(X,n){X.setTime(+X+n*6E4)},function(X,n){return(n-X)/6E4},function(X){return X.getUTCMinutes()});
eQ(function(X){X.setUTCMinutes(0,0,0)},function(X,n){X.setTime(+X+n*36E5)},function(X,n){return(n-X)/36E5},function(X){return X.getUTCHours()});
var OZ0=eQ(function(X){X.setUTCHours(0,0,0,0)},function(X,n){X.setUTCDate(X.getUTCDate()+n)},function(X,n){return(n-X)/864E5},function(X){return X.getUTCDate()-1}),Auo=mk(0),JTY=mk(1);
mk(2);mk(3);var ZEl=mk(4);mk(5);mk(6);eQ(function(X){X.setUTCDate(1);X.setUTCHours(0,0,0,0)},function(X,n){X.setUTCMonth(X.getUTCMonth()+n)},function(X,n){return n.getUTCMonth()-X.getUTCMonth()+(n.getUTCFullYear()-X.getUTCFullYear())*12},function(X){return X.getUTCMonth()});
var IV=eQ(function(X){X.setUTCMonth(0,1);X.setUTCHours(0,0,0,0)},function(X,n){X.setUTCFullYear(X.getUTCFullYear()+n)},function(X,n){return n.getUTCFullYear()-X.getUTCFullYear()},function(X){return X.getUTCFullYear()});
IV.every=function(X){return isFinite(X=Math.floor(X))&&X>0?eQ(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/X)*X);n.setUTCMonth(0,1);n.setUTCHours(0,0,0,0)},function(n,pO){n.setUTCFullYear(n.getUTCFullYear()+pO*X)}):null};
var ZZZ={"-":"",_:" ",0:"0"},eR=/^\s*\d+/,U9o=/^%/,pB8=/[\\^$*+?|[\]().{}]/g,uvj;(function(X){uvj=YgJ(X);a2m=uvj.utcFormat;eQ0=uvj.utcParse;return uvj})({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||a2m("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||eQ0("%Y-%m-%dT%H:%M:%S.%LZ");dg("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
dg("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");dg("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");dg("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");dg("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");dg("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");dg("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
dg("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");dg("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");dg("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");dg("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");dg("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var wB8=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(dg);MO(wB8);var RRt=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(dg);MO(RRt);var VS7=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(dg);MO(VS7);var Qdo=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(dg);
MO(Qdo);var Cod=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(dg);MO(Cod);var jd8=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(dg);MO(jd8);var ruL=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(dg);MO(ruL);var kvb=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(dg);MO(kvb);var d9l=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(dg);MO(d9l);var uz8=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(dg);MO(uz8);var Ju8=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(dg);MO(Ju8);var Iz5=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(dg);MO(Iz5);var gg9=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(dg);MO(gg9);var ZPJ=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(dg);MO(ZPJ);var OPe=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(dg);MO(OPe);var XBC=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(dg);MO(XBC);var hRJ=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(dg);MO(hRJ);var azt=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(dg);MO(azt);var eRK=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(dg);MO(eRK);var FkJ=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(dg);MO(FkJ);var zRe=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(dg);MO(zRe);var lz5=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(dg);MO(lz5);var Gvg=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(dg);MO(Gvg);var ng7=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(dg);MO(ng7);var NPe=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(dg);MO(NPe);var D9C=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(dg);MO(D9C);var sdd=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(dg);MO(sdd);ehK(J3(300,.5,0),J3(-240,.5,1));ehK(J3(-100,.75,.35),J3(80,1.5,.8));ehK(J3(260,.75,.35),J3(80,1.5,.8));J3();jg();Qzl(dg("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
Qzl(dg("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
Qzl(dg("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
Qzl(dg("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
D43.prototype={lineStart:function(){this._point=0},
lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(X,n){X=+X;n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(X,n):this._context.moveTo(X,n);break;case 1:this._point=2;default:this._context.lineTo(X,n)}}};
(function(X){function n(pO){return new s2r(X(pO))}
n._curve=X;return n})(function(X){return new D43(X)});
s2r.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(X,n){this._curve.point(n*Math.sin(X),n*-Math.cos(X))}};
Xe_.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:OEE(this,this._t0,PLZ(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(X,n){var pO=NaN;X=+X;n=+n;if(X!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(X,n):this._context.moveTo(X,n);break;case 1:this._point=2;break;case 2:this._point=3;OEE(this,PLZ(this,pO=Lp0(this,X,n)),pO);break;default:OEE(this,this._t0,pO=Lp0(this,X,n))}this._x0=this._x1;this._x1=X;this._y0=this._y1;this._y1=n;this._t0=pO}}};
(function(X){this._context=new Tl3(X)}.prototype=Object.create(Xe_.prototype)).point=function(X,n){Xe_.prototype.point.call(this,n,X)};
Tl3.prototype={moveTo:function(X,n){this._context.moveTo(n,X)},
closePath:function(){this._context.closePath()},
lineTo:function(X,n){this._context.lineTo(n,X)},
bezierCurveTo:function(X,n,pO,qK,Q_,I0){this._context.bezierCurveTo(n,X,qK,pO,I0,Q_)}};
I5.prototype={constructor:I5,scale:function(X){return X===1?this:new I5(this.k*X,this.x,this.y)},
translate:function(X,n){return X===0&n===0?this:new I5(this.k,this.x+this.k*X,this.y+this.k*n)},
apply:function(X){return[X[0]*this.k+this.x,X[1]*this.k+this.y]},
invert:function(X){return[(X[0]-this.x)/this.k,(X[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new I5(1,0,0);qd0=DT;fr.svg=fr.svg;fr.xhtml=fr.xhtml;fr.xlink=fr.xlink;fr.xml=fr.xml;fr.xmlns=fr.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 FFf="hammer_"+(Math.random()*1E6|0),zQr=function(){var t=document||document;if(!t[FFf]){var E=function(){(function(p,U,x,A){function m(gE,nO,KO){return setTimeout(Q(gE,KO),nO)}
function b(gE,nO,KO){return Array.isArray(gE)?(f(gE,KO[nO],KO),!0):!1}
function f(gE,nO,KO){var dZ;if(gE)if(gE.forEach)gE.forEach(nO,KO);else if(gE.length!==A){var Jd=0;for(dZ=gE.length;Jd<dZ;Jd++)nO.call(KO,gE[Jd],Jd,gE)}else for(Jd in gE)gE.hasOwnProperty(Jd)&&nO.call(KO,gE[Jd],Jd,gE)}
function B(gE,nO,KO){for(var dZ=Object.keys(nO),Jd=0,XU=dZ.length;Jd<XU;Jd++)if(!KO||KO&&gE[dZ[Jd]]===A)gE[dZ[Jd]]=nO[dZ[Jd]];return gE}
function R(gE,nO){return B(gE,nO,!0)}
function V(gE,nO,KO){nO=nO.prototype;var dZ=gE.prototype=Object.create(nO);dZ.constructor=gE;dZ._super=nO;KO&&B(dZ,KO)}
function Q(gE,nO){return function(){return gE.apply(nO,arguments)}}
function C(gE,nO){return typeof gE=="function"?gE.apply(nO?nO[0]||A:A,nO):gE}
function d(gE,nO,KO){f(O(nO),function(dZ){gE.addEventListener(dZ,KO,!1)})}
function I(gE,nO,KO){f(O(nO),function(dZ){gE.removeEventListener(dZ,KO,!1)})}
function O(gE){return gE.trim().split(/\s+/g)}
function a(gE,nO,KO){if(gE.indexOf&&!KO)return gE.indexOf(nO);for(var dZ=0,Jd=gE.length;dZ<Jd;dZ++)if(KO&&gE[dZ][KO]==nO||!KO&&gE[dZ]===nO)return dZ;return-1}
function F(gE,nO,KO){for(var dZ=[],Jd=[],XU=0,X7=gE.length;XU<X7;XU++){var gZ=nO?gE[XU][nO]:gE[XU];a(Jd,gZ)<0&&dZ.push(gE[XU]);Jd[XU]=gZ}KO&&(dZ=nO?dZ.sort(function(J3,T5){return J3[nO]>T5[nO]}):dZ.sort());
return dZ}
function L(gE,nO){for(var KO,dZ=nO[0].toUpperCase()+nO.slice(1),Jd=0,XU=VJ.length;Jd<XU;Jd++)if(KO=(KO=VJ[Jd])?KO+dZ:nO,KO in gE)return KO;return A}
function D(gE,nO){var KO=this;this.manager=gE;this.callback=nO;this.element=gE.element;this.target=gE.options.inputTarget;this.domHandler=function(dZ){C(gE.options.enable,[gE])&&KO.handler(dZ)};
this.evEl&&d(this.element,this.evEl,this.domHandler);this.evTarget&&d(this.target,this.evTarget,this.domHandler);this.evWin&&d(p,this.evWin,this.domHandler)}
function W(gE){var nO;qL?nO=lY:TC?nO=Tt:DT?nO=si:nO=j$;return new nO(gE,K)}
function K(gE,nO,KO){var dZ=KO.pointers.length,Jd=KO.changedPointers.length,XU=nO&1&&dZ-Jd===0;KO.isFirst=!!XU;KO.isFinal=!!(nO&12&&dZ-Jd===0);XU&&(gE.session={});KO.eventType=nO;nO=gE.session;dZ=KO.pointers;Jd=dZ.length;nO.firstInput||(nO.firstInput=v(KO));Jd>1&&!nO.firstMultiple?nO.firstMultiple=v(KO):Jd===1&&(nO.firstMultiple=!1);XU=nO.firstInput;var X7=(Jd=nO.firstMultiple)?Jd.center:XU.center,gZ=KO.center=YL(dZ);KO.timeStamp=QJ();KO.deltaTime=KO.timeStamp-XU.timeStamp;KO.angle=R0(X7,gZ);KO.distance=
kL(X7,gZ);XU=KO.center;X7=nO.offsetDelta||{};gZ=nO.prevDelta||{};var J3=nO.prevInput||{};if(KO.eventType===1||J3.eventType===4)gZ=nO.prevDelta={x:J3.deltaX||0,y:J3.deltaY||0},X7=nO.offsetDelta={x:XU.x,y:XU.y};KO.deltaX=gZ.x+(XU.x-X7.x);KO.deltaY=gZ.y+(XU.y-X7.y);KO.offsetDirection=bY(KO.deltaX,KO.deltaY);Jd?(XU=Jd.pointers,XU=kL(dZ[0],dZ[1],jg)/kL(XU[0],XU[1],jg)):XU=1;KO.scale=XU;Jd?(Jd=Jd.pointers,dZ=R0(dZ[1],dZ[0],jg)-R0(Jd[1],Jd[0],jg)):dZ=0;KO.rotation=dZ;X7=nO.lastInterval||KO;dZ=KO.timeStamp-
X7.timeStamp;KO.eventType!=8&&(dZ>25||X7.velocity===A)?(XU=X7.deltaX-KO.deltaX,X7=X7.deltaY-KO.deltaY,gZ=XU/dZ||0,J3=X7/dZ||0,dZ=gZ,Jd=J3,gZ=iG(gZ)>iG(J3)?gZ:J3,XU=bY(XU,X7),nO.lastInterval=KO):(gZ=X7.velocity,dZ=X7.velocityX,Jd=X7.velocityY,XU=X7.direction);KO.velocity=gZ;KO.velocityX=dZ;KO.velocityY=Jd;KO.direction=XU;nO=gE.element;a:{for(dZ=KO.srcEvent.target;dZ;){if(dZ==nO){dZ=!0;break a}dZ=dZ.parentNode}dZ=!1}dZ&&(nO=KO.srcEvent.target);KO.target=nO;gE.emit("hammer.input",KO);gE.recognize(KO);
gE.session.prevInput=KO}
function v(gE){for(var nO=[],KO=0;KO<gE.pointers.length;KO++)nO[KO]={clientX:Kl(gE.pointers[KO].clientX),clientY:Kl(gE.pointers[KO].clientY)};return{timeStamp:QJ(),pointers:nO,center:YL(nO),deltaX:gE.deltaX,deltaY:gE.deltaY}}
function YL(gE){var nO=gE.length;if(nO===1)return{x:Kl(gE[0].clientX),y:Kl(gE[0].clientY)};for(var KO=0,dZ=0,Jd=0;Jd<nO;Jd++)KO+=gE[Jd].clientX,dZ+=gE[Jd].clientY;return{x:Kl(KO/nO),y:Kl(dZ/nO)}}
function bY(gE,nO){return gE===nO?1:iG(gE)>=iG(nO)?gE>0?2:4:nO>0?8:16}
function kL(gE,nO,KO){KO||(KO=Wp);var dZ=nO[KO[0]]-gE[KO[0]];gE=nO[KO[1]]-gE[KO[1]];return Math.sqrt(dZ*dZ+gE*gE)}
function R0(gE,nO,KO){KO||(KO=Wp);return Math.atan2(nO[KO[1]]-gE[KO[1]],nO[KO[0]]-gE[KO[0]])*180/Math.PI}
function j$(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;D.apply(this,arguments)}
function lY(){this.evEl=mi;this.evWin=t6;D.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function Tt(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};D.apply(this,arguments)}
function si(){D.apply(this,arguments);var gE=Q(this.handler,this);this.touch=new Tt(this.manager,gE);this.mouse=new j$(this.manager,gE)}
function Q0(gE,nO){this.manager=gE;this.set(nO)}
function ps(gE){if(gE.indexOf("none")>-1)return"none";var nO=gE.indexOf("pan-x")>-1,KO=gE.indexOf("pan-y")>-1;return nO&&KO?"pan-x pan-y":nO||KO?nO?"pan-x":"pan-y":gE.indexOf("manipulation")>-1?"manipulation":"auto"}
function $L(gE){this.id=Rs++;this.manager=null;this.options=R(gE||{},this.defaults);gE=this.options.enable;this.options.enable=gE===A?!0:gE;this.state=1;this.simultaneous={};this.requireFail=[]}
function Cs(gE){return gE==16?"down":gE==8?"up":gE==2?"left":gE==4?"right":""}
function km(gE,nO){return(nO=nO.manager)?nO.get(gE):gE}
function ZT(){$L.apply(this,arguments)}
function l8(){ZT.apply(this,arguments);this.pY=this.pX=null}
function Rt(){ZT.apply(this,arguments)}
function wE(){$L.apply(this,arguments);this._input=this._timer=null}
function Gt(){ZT.apply(this,arguments)}
function V0(){ZT.apply(this,arguments)}
function SW(){$L.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function h3(gE,nO){nO=nO||{};var KO=nO.recognizers;nO.recognizers=KO===A?h3.defaults.preset:KO;return new zX(gE,nO)}
function zX(gE,nO){nO=nO||{};this.options=R(nO,h3.defaults);this.options.inputTarget=this.options.inputTarget||gE;this.handlers={};this.session={};this.recognizers=[];this.element=gE;this.input=W(this);this.touchAction=new Q0(this,this.options.touchAction);zc(this,!0);f(nO.recognizers,function(KO){var dZ=this.add(new KO[0](KO[1]));KO[2]&&dZ.recognizeWith(KO[2]);KO[3]&&dZ.requireFailure(KO[2])},this)}
function zc(gE,nO){var KO=gE.element;f(gE.options.cssProps,function(dZ,Jd){KO.style[L(KO.style,Jd)]=nO?dZ:""})}
function EC(gE,nO){var KO=U.createEvent("Event");KO.initEvent(gE,!0,!0);KO.gesture=nO;nO.target.dispatchEvent(KO)}
var VJ=" webkit moz MS ms o".split(" "),$m=U.createElement("div"),Kl=Math.round,iG=Math.abs,QJ=Date.now,Rs=1,vp=/mobile|tablet|ip(ad|hone|od)|android/i,DT="ontouchstart"in p,qL=L(p,"PointerEvent")!==A,TC=DT&&vp.test(navigator.userAgent),Wp=["x","y"],jg=["clientX","clientY"];D.prototype={handler:function(){},
destroy:function(){this.evEl&&I(this.element,this.evEl,this.domHandler);this.evTarget&&I(this.target,this.evTarget,this.domHandler);this.evWin&&I(p,this.evWin,this.domHandler)}};
var ES={mousedown:1,mousemove:2,mouseup:4};V(j$,D,{handler:function(gE){var nO=ES[gE.type];nO&1&&gE.button===0&&(this.pressed=!0);nO&2&&gE.which!==1&&(nO=4);this.pressed&&this.allow&&(nO&4&&(this.pressed=!1),this.callback(this.manager,nO,{pointers:[gE],changedPointers:[gE],pointerType:"mouse",srcEvent:gE}))}});
var m6={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Ia={2:"touch",3:"pen",4:"mouse",5:"kinect"},mi="pointerdown",t6="pointermove pointerup pointercancel";p.MSPointerEvent&&(mi="MSPointerDown",t6="MSPointerMove MSPointerUp MSPointerCancel");V(lY,D,{handler:function(gE){var nO=this.store,KO=!1,dZ=gE.type.toLowerCase().replace("ms","");dZ=m6[dZ];var Jd=Ia[gE.pointerType]||gE.pointerType;dZ&1&&(gE.button===0||Jd=="touch")?nO.push(gE):dZ&12&&(KO=!0);var XU=a(nO,gE.pointerId,"pointerId");
XU<0||(nO[XU]=gE,this.callback(this.manager,dZ,{pointers:nO,changedPointers:[gE],pointerType:Jd,srcEvent:gE}),KO&&nO.splice(XU,1))}});
var EJ={touchstart:1,touchmove:2,touchend:4,touchcancel:8};V(Tt,D,{handler:function(gE){var nO=EJ[gE.type];var KO=Array.prototype.slice.call(gE.touches,0);var dZ=this.targetIds;if(nO&3&&KO.length===1)dZ[KO[0].identifier]=!0,dZ=[KO,KO];else{var Jd,XU=Array.prototype.slice.call(gE.targetTouches,0),X7=Array.prototype.slice.call(gE.changedTouches,0),gZ=[];if(nO===1)for(KO=0,Jd=XU.length;KO<Jd;KO++)dZ[XU[KO].identifier]=!0;KO=0;for(Jd=X7.length;KO<Jd;KO++)dZ[X7[KO].identifier]&&gZ.push(X7[KO]),nO&12&&
delete dZ[X7[KO].identifier];dZ=gZ.length?[F(XU.concat(gZ),"identifier",!0),gZ]:void 0}dZ&&this.callback(this.manager,nO,{pointers:dZ[0],changedPointers:dZ[1],pointerType:"touch",srcEvent:gE})}});
V(si,D,{handler:function(gE,nO,KO){var dZ=KO.pointerType=="mouse";if(KO.pointerType=="touch")this.mouse.allow=!1;else if(dZ&&!this.mouse.allow)return;nO&12&&(this.mouse.allow=!0);this.callback(gE,nO,KO)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var h9=L($m.style,"touchAction"),Xa=h9!==A;Q0.prototype={set:function(gE){gE=="compute"&&(gE=this.compute());Xa&&(this.manager.element.style[h9]=gE);this.actions=gE.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var gE=[];f(this.manager.recognizers,function(nO){C(nO.options.enable,[nO])&&(gE=gE.concat(nO.getTouchAction()))});
return ps(gE.join(" "))},
preventDefaults:function(gE){if(!Xa){var nO=gE.srcEvent;gE=gE.offsetDirection;if(this.manager.session.prevented)nO.preventDefault();else{var KO=this.actions,dZ=KO.indexOf("none")>-1,Jd=KO.indexOf("pan-y")>-1;KO=KO.indexOf("pan-x")>-1;if(dZ||Jd&&KO||Jd&&gE&6||KO&&gE&24)return this.preventSrc(nO)}}},
preventSrc:function(gE){this.manager.session.prevented=!0;gE.preventDefault()}};
$L.prototype={defaults:{},set:function(gE){B(this.options,gE);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(gE){if(b(gE,"recognizeWith",this))return this;var nO=this.simultaneous;gE=km(gE,this);nO[gE.id]||(nO[gE.id]=gE,gE.recognizeWith(this));return this},
dropRecognizeWith:function(gE){if(b(gE,"dropRecognizeWith",this))return this;gE=km(gE,this);delete this.simultaneous[gE.id];return this},
requireFailure:function(gE){if(b(gE,"requireFailure",this))return this;var nO=this.requireFail;gE=km(gE,this);a(nO,gE)===-1&&(nO.push(gE),gE.requireFailure(this));return this},
dropRequireFailure:function(gE){if(b(gE,"dropRequireFailure",this))return this;gE=km(gE,this);gE=a(this.requireFail,gE);gE>-1&&this.requireFail.splice(gE,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(gE){return!!this.simultaneous[gE.id]},
emit:function(gE){function nO(Jd){KO.manager.emit(KO.options.event+(Jd?dZ&16?"cancel":dZ&8?"end":dZ&4?"move":dZ&2?"start":"":""),gE)}
var KO=this,dZ=this.state;dZ<8&&nO(!0);nO();dZ>=8&&nO(!0)},
tryEmit:function(gE){if(this.canEmit())return this.emit(gE);this.state=32},
canEmit:function(){for(var gE=0;gE<this.requireFail.length;gE++)if(!(this.requireFail[gE].state&33))return!1;return!0},
recognize:function(gE){gE=B({},gE);C(this.options.enable,[this,gE])?(this.state&56&&(this.state=1),this.state=this.process(gE),this.state&30&&this.tryEmit(gE)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
V(ZT,$L,{defaults:{pointers:1},attrTest:function(gE){var nO=this.options.pointers;return nO===0||gE.pointers.length===nO},
process:function(gE){var nO=this.state,KO=gE.eventType,dZ=nO&6;gE=this.attrTest(gE);return dZ&&(KO&8||!gE)?nO|16:dZ||gE?KO&4?nO|8:nO&2?nO|4:2:32}});
V(l8,ZT,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var gE=this.options.direction;if(gE===30)return["none"];var nO=[];gE&6&&nO.push("pan-y");gE&24&&nO.push("pan-x");return nO},
directionTest:function(gE){var nO=this.options,KO=!0,dZ=gE.distance,Jd=gE.direction,XU=gE.deltaX,X7=gE.deltaY;Jd&nO.direction||(nO.direction&6?(Jd=XU===0?1:XU<0?2:4,KO=XU!=this.pX,dZ=Math.abs(gE.deltaX)):(Jd=X7===0?1:X7<0?8:16,KO=X7!=this.pY,dZ=Math.abs(gE.deltaY)));gE.direction=Jd;return KO&&dZ>nO.threshold&&Jd&nO.direction},
attrTest:function(gE){return ZT.prototype.attrTest.call(this,gE)&&(this.state&2||!(this.state&2)&&this.directionTest(gE))},
emit:function(gE){this.pX=gE.deltaX;this.pY=gE.deltaY;var nO=Cs(gE.direction);nO&&this.manager.emit(this.options.event+nO,gE);this._super.emit.call(this,gE)}});
V(Rt,ZT,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(gE){return this._super.attrTest.call(this,gE)&&(Math.abs(gE.scale-1)>this.options.threshold||this.state&2)},
emit:function(gE){this._super.emit.call(this,gE);gE.scale!==1&&this.manager.emit(this.options.event+(gE.scale<1?"in":"out"),gE)}});
V(wE,$L,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(gE){var nO=this.options,KO=gE.pointers.length===nO.pointers,dZ=gE.distance<nO.threshold,Jd=gE.deltaTime>nO.time;this._input=gE;if(!dZ||!KO||gE.eventType&12&&!Jd)this.reset();else if(gE.eventType&1)this.reset(),this._timer=m(function(){this.state=8;this.tryEmit()},nO.time,this);
else if(gE.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(gE){this.state===8&&(gE&&gE.eventType&4?this.manager.emit(this.options.event+"up",gE):(this._input.timeStamp=QJ(),this.manager.emit(this.options.event,this._input)))}});
V(Gt,ZT,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(gE){return this._super.attrTest.call(this,gE)&&(Math.abs(gE.rotation)>this.options.threshold||this.state&2)}});
V(V0,ZT,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return l8.prototype.getTouchAction.call(this)},
attrTest:function(gE){var nO=this.options.direction;if(nO&30)var KO=gE.velocity;else nO&6?KO=gE.velocityX:nO&24&&(KO=gE.velocityY);return this._super.attrTest.call(this,gE)&&nO&gE.direction&&iG(KO)>this.options.velocity&&gE.eventType&4},
emit:function(gE){var nO=Cs(gE.direction);nO&&this.manager.emit(this.options.event+nO,gE);this.manager.emit(this.options.event,gE)}});
V(SW,$L,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(gE){var nO=this.options,KO=gE.pointers.length===nO.pointers,dZ=gE.distance<nO.threshold,Jd=gE.deltaTime<nO.time;this.reset();if(gE.eventType&1&&this.count===0)return this.failTimeout();if(dZ&&Jd&&KO){if(gE.eventType!=4)return this.failTimeout();KO=this.pTime?gE.timeStamp-this.pTime<nO.interval:!0;dZ=!this.pCenter||kL(this.pCenter,gE.center)<nO.posThreshold;this.pTime=gE.timeStamp;this.pCenter=gE.center;dZ&&KO?this.count+=1:this.count=1;this._input=gE;if(this.count%nO.taps===0)return this.hasRequireFailures()?
(this._timer=m(function(){this.state=8;this.tryEmit()},nO.interval,this),2):8}return 32},
failTimeout:function(){this._timer=m(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))}});
h3.VERSION="2.0.2";h3.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[Gt,{enable:!1}],[Rt,{enable:!1},["rotate"]],[V0,{direction:6}],[l8,{direction:6},["swipe"]],[SW],[SW,{event:"doubletap",taps:2},["tap"]],[wE]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};zX.prototype={set:function(gE){B(this.options,gE);return this},
stop:function(gE){this.session.stopped=gE?2:1},
recognize:function(gE){var nO=this.session;if(!nO.stopped){this.touchAction.preventDefaults(gE);var KO=this.recognizers,dZ=nO.curRecognizer;if(!dZ||dZ&&dZ.state&8)dZ=nO.curRecognizer=null;for(var Jd=0,XU=KO.length;Jd<XU;Jd++){var X7=KO[Jd];nO.stopped===2||dZ&&X7!=dZ&&!X7.canRecognizeWith(dZ)?X7.reset():X7.recognize(gE);!dZ&&X7.state&14&&(dZ=nO.curRecognizer=X7)}}},
get:function(gE){if(gE instanceof $L)return gE;for(var nO=this.recognizers,KO=0;KO<nO.length;KO++)if(nO[KO].options.event==gE)return nO[KO];return null},
add:function(gE){if(b(gE,"add",this))return this;var nO=this.get(gE.options.event);nO&&this.remove(nO);this.recognizers.push(gE);gE.manager=this;this.touchAction.update();return gE},
remove:function(gE){if(b(gE,"remove",this))return this;var nO=this.recognizers;gE=this.get(gE);nO.splice(a(nO,gE),1);this.touchAction.update();return this},
on:function(gE,nO){var KO=this.handlers;f(O(gE),function(dZ){KO[dZ]=KO[dZ]||[];KO[dZ].push(nO)});
return this},
off:function(gE,nO){var KO=this.handlers;f(O(gE),function(dZ){nO?KO[dZ].splice(a(KO[dZ],nO),1):delete KO[dZ]});
return this},
emit:function(gE,nO){this.options.domEvents&&EC(gE,nO);var KO=this.handlers[gE]&&this.handlers[gE].slice();if(KO&&KO.length){nO.type=gE;nO.preventDefault=function(){nO.srcEvent.preventDefault()};
gE=0;for(var dZ=KO.length;gE<dZ;gE++)KO[gE](nO)}},
destroy:function(){this.element&&zc(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
B(h3,{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:zX,Input:D,TouchAction:Q0,Recognizer:$L,AttrRecognizer:ZT,Tap:SW,Pan:l8,Swipe:V0,Pinch:Rt,Rotate:Gt,Press:wE,on:d,off:I,each:f,merge:R,extend:B,inherit:V,bindFn:Q,prefixed:L});
p[x]=h3})(window,document,"Hammer");
return window.Hammer}.call({});
E.DOCUMENT=t;t[FFf]=E}return t[FFf]};/*

 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 l20=function(t,E){if(t.length!==E.length)return!1;for(var p=0;p<t.length;++p)if(t[p]!==E[p])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var GsW=_.M(["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"]),nuT=GsW.next();!nuT.done;nuT=GsW.next()){var NI0=nuT.value,DMZ=document.createElement("link");DMZ.rel="stylesheet";DMZ.href=NI0;document.head.appendChild(DMZ)};var Pk0,oMO,$hO,DhY,TFE,sq$,nMi,NF$;Pk0={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};oMO={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:"*"};$hO={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};DhY=/[a-z0-9*]/;TFE=/U\+/;sq$=/^arrow/;nMi=/^space(bar)?/;NF$=/^escape$/;_.ou={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(t,E){this._imperativeKeyBindings[t]=E;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(t,E){E=vMJ(E);for(var p=0;p<E.length;++p)if(WS0(E[p],t))return!0;return!1},
_collectKeyBindings:function(){var t=this.behaviors.map(function(E){return E.keyBindings});
t.indexOf(this.keyBindings)===-1&&t.push(this.keyBindings);return t},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(p){for(var U in p)this._addKeyBinding(U,p[U])},this);
for(var t in this._imperativeKeyBindings)this._addKeyBinding(t,this._imperativeKeyBindings[t]);for(var E in this._keyBindings)this._keyBindings[E].sort(function(p,U){p=p[0].hasModifiers;return p===U[0].hasModifiers?0:p?-1:1})},
_addKeyBinding:function(t,E){vMJ(t).forEach(function(p){this._keyBindings[p.event]=this._keyBindings[p.event]||[];this._keyBindings[p.event].push([p,E])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(t){var E=this._onKeyBindingEvent.bind(this,this._keyBindings[t]);this._boundKeyHandlers.push([this.keyEventTarget,t,E]);this.keyEventTarget.addEventListener(t,E)},this)},
_unlistenKeyEventListeners:function(){for(var t,E,p;this._boundKeyHandlers.length;)t=this._boundKeyHandlers.pop(),E=t[0],p=t[1],t=t[2],E.removeEventListener(p,t)},
_onKeyBindingEvent:function(t,E){this.stopKeyboardEventPropagation&&E.stopPropagation();if(!E.defaultPrevented)for(var p=0;p<t.length;p++){var U=t[p][0],x=t[p][1];if(WS0(U,E)&&(this._triggerKeyHandler(U,x,E),E.defaultPrevented))break}},
_triggerKeyHandler:function(t,E,p){var U=Object.create(t);U.keyboardEvent=p;t=new CustomEvent(t.event,{detail:U,cancelable:!0});this[E].call(this,t);t.defaultPrevented&&p.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
*/
_.yx({is:"iron-a11y-keys",_template:null,behaviors:[_.ou],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(t){this.keyEventTarget=t},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(t){this.fire("keys-pressed",t.detail,{})}});_.W$={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(t){this._setFocused(t.type==="focus")},
_disabledChanged:function(t){this.setAttribute("aria-disabled",t?"true":"false");this.style.pointerEvents=t?"none":"";t?(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 $F={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(t){this._detectKeyboardFocus(t);t||this._setPressed(!1)},
_detectKeyboardFocus:function(t){this._setReceivedFocusFromKeyboard(!this.pointerDown&&t)},
_userActivate:function(t){this.active!==t&&(this.active=t,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(t){t=t.detail.keyboardEvent;var E=_.sm(t).localTarget;this.isLightDescendant(E)||(t.preventDefault(),t.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(t){t=_.sm(t.detail.keyboardEvent).localTarget;this.isLightDescendant(t)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(t,E){E&&E!=t&&this.hasAttribute(E)&&this.removeAttribute(E)},
_activeChanged:function(t){this.toggles?this.setAttribute(this.ariaActiveAttribute,t?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},s7Z=[_.ou,
$F];_.KQ={IronButtonState:s7Z,IronButtonStateImpl:$F};_.v$={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.yA=function(t){_.yA[" "](t);this.type=t&&t.type||"default";this.key=t&&t.key;t&&"value"in t&&(this.value=t.value)};
_.yA.prototype.byKey=function(t){this.key=t;return this.value};
_.aE.Object.defineProperties(_.yA.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var t=this.type,E=this.key;if(t&&E)return SE[t]&&SE[t][E]},
set:function(t){var E=this.type,p=this.key;E&&p&&(E=SE[E]=SE[E]||{},t==null?delete E[p]:E[p]=t)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var t=SE[this.type];return t?Object.keys(t).map(function(E){return SE[this.type][E]},this):[]}}});
_.yA[" "]=function(){};
var SE={};_.yx({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(t,E,p){t=new _.yA({type:t,key:E});p!==void 0&&p!==t.value?t.value=p:this.value!==t.value&&(this.value=t.value);return t},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(t){t&&(this.value=this)},
byKey:function(t){return(new _.yA({type:this.type,key:t})).value}});var LFf;LFf=null;_.c$={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){LFf=new _.yA({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return LFf&&LFf.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(t){this.invalid=t===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(t);return!this.invalid},
_getValidity:function(t){return this.hasValidator()?this._validator.validate(t):!0}};var PmW={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"}},TI4=[_.v$,
_.c$,PmW];_.yx({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 _.yA({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(t){return this.name+":"+t},this)},
applyIcon:function(t,E){this.removeIcon(t);if(E=this._cloneIcon(E,this.rtlMirroring&&this._targetIsRTL(t))){var p=_.sm(t.root||t);p.insertBefore(E,p.childNodes[0]);return t._svgIcon=E}return null},
removeIcon:function(t){t._svgIcon&&(_.sm(t.root||t).removeChild(t._svgIcon),t._svgIcon=null)},
_targetIsRTL:function(t){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(t&&t.nodeType!==Node.ELEMENT_NODE&&(t=t.host),this.__targetIsRTL=t&&window.getComputedStyle(t).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 t=Object.create(null);_.sm(this).querySelectorAll("[id]").forEach(function(E){t[E.id]=E});
return t},
_cloneIcon:function(t,E){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[t],this.size,E)},
_prepareSvgClone:function(t,E,p){if(t){t=t.cloneNode(!0);var U=document.createElementNS("http://www.w3.org/2000/svg","svg");E=t.getAttribute("viewBox")||"0 0 "+E+" "+E;var x="pointer-events: none; display: block; width: 100%; height: 100%;";p&&t.hasAttribute("mirror-in-rtl")&&(x+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");U.setAttribute("viewBox",E);U.setAttribute("preserveAspectRatio","xMidYMid meet");U.setAttribute("focusable","false");U.style&&(U.style.cssText=
x);U.appendChild(t).removeAttribute("id");return U}return null}});var oum=function(t){this.multi=!1;this.selection=[];this.selectCallback=t};
_.Y=oum.prototype;_.Y.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.Y.clear=function(t){this.selection.slice().forEach(function(E){(!t||t.indexOf(E)<0)&&this.setItemSelected(E,!1)},this)};
_.Y.isSelected=function(t){return this.selection.indexOf(t)>=0};
_.Y.setItemSelected=function(t,E){if(t!=null&&E!==this.isSelected(t)){if(E)this.selection.push(t);else{var p=this.selection.indexOf(t);p>=0&&this.selection.splice(p,1)}this.selectCallback&&this.selectCallback(t,E)}};
_.Y.select=function(t){this.multi?this.toggle(t):this.get()!==t&&(this.setItemSelected(this.get(),!1),this.setItemSelected(t,!0))};
_.Y.toggle=function(t){this.setItemSelected(t,!this.isSelected(t))};_.f4={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 oum(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.sm(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(t){return this.items?this.items.indexOf(t):-1},
select:function(t){this.selected=t},
selectPrevious:function(){var t=this.items.length,E=t-1;this.selected!==void 0&&(E=(Number(this._valueToIndex(this.selected))-1+t)%t);this.selected=this._indexToValue(E)},
selectNext:function(){var t=0;this.selected!==void 0&&(t=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(t)},
selectIndex:function(t){this.select(this._indexToValue(t))},
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(t){this.listen(this,t,"_activateHandler")},
_removeListener:function(t){this.unlisten(this,t,"_activateHandler")},
_activateEventChanged:function(t,E){this._removeListener(E);this._addListener(t)},
_updateItems:function(){var t=_.sm(this).queryDistributedElements(this.selectable||"*");t=Array.prototype.filter.call(t,this._bindFilterItem);this._setItems(t)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var t=this._valueToItem(this.selected);t?this._selection.select(t):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(t){return!this._excludedLocalNames[t.localName]},
_valueToItem:function(t){return t==null?null:this.items[this._valueToIndex(t)]},
_valueToIndex:function(t){if(this.attrForSelected)for(var E=0,p;p=this.items[E];E++){if(this._valueForItem(p)==t)return E}else return Number(t)},
_indexToValue:function(t){if(this.attrForSelected){if(t=this.items[t])return this._valueForItem(t)}else return t},
_valueForItem:function(t){if(!t)return null;if(!this.attrForSelected)return t=this.indexOf(t),t===-1?null:t;var E=t[DD(this.attrForSelected)];return E!=void 0?E:t.getAttribute(this.attrForSelected)},
_applySelection:function(t,E){this.selectedClass&&this.toggleClass(this.selectedClass,E,t);this.selectedAttribute&&this.toggleAttribute.call(t,this.selectedAttribute,E);this._selectionChange();this.fire("iron-"+(E?"select":"deselect"),{item:t})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(t){return _.sm(t).observeNodes(function(E){this._updateItems();this._updateSelected();this.fire("iron-items-changed",E,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(t){t=t.target;for(var E=this.items;t&&t!=this;){var p=E.indexOf(t);if(p>=0){E=this._indexToValue(p);this._itemActivate(E,t);break}t=t.parentNode}},
_itemActivate:function(t,E){this.fire("iron-activate",{selected:t,item:E},{cancelable:!0}).defaultPrevented||this.select(t)}};var WFr={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(t){this.multi?this._toggleSelected(t):this.selected=t},
multiChanged:function(t){this._selection.multi=t;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(t){return this._indexToValue(this.indexOf(t))},this).filter(function(t){return t!=null},this)):_.f4._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(t){t=t||[];t=(this._valuesToItems(t)||[]).filter(function(p){return p!==null&&p!==void 0});
this._selection.clear(t);for(var E=0;E<t.length;E++)this._selection.setItemSelected(t[E],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var t=this._selection.get();this.multi?(this._setSelectedItems(t),this._setSelectedItem(t.length?t[0]:null)):t!==null&&t!==void 0?(this._setSelectedItems([t]),this._setSelectedItem(t)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(t){var E=this.selectedValues.indexOf(t);E<0?this.push("selectedValues",t):this.splice("selectedValues",E,1)},
_valuesToItems:function(t){return t==null?null:t.map(function(E){return this._valueToItem(E)},this)}},$MX=[_.f4,
WFr];var KFZ;
_.tv={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(t){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var E=this._valueToItem(t);E&&E.hasAttribute("disabled")||(this._setFocusedItem(E),WFr.select.apply(this,arguments))},
_resetTabindices:function(){var t=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(E){E.setAttribute("tabindex",E===t?"0":"-1");E.setAttribute("aria-selected",this._selection.isSelected(E))},this)},
_updateMultiselectable:function(t){t?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(t){if(this._MODIFIER_KEYS.indexOf(t.key)===-1){this.cancelDebouncer("_clearSearchText");var E=this._searchText||"";E+=(t.key&&t.key.length==1?t.key:String.fromCharCode(t.keyCode)).toLocaleLowerCase();t=E.length;for(var p=0,U;U=this.items[p];p++)if(!U.hasAttribute("disabled")){var x=this.attrForItemTitle||"textContent";x=(U[x]||U.getAttribute(x)||"").trim();if(!(x.length<t)&&x.slice(0,t).toLocaleLowerCase()==E){this._setFocusedItem(U);break}}this._searchText=E;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var t=this.items.length,E=Number(this.indexOf(this.focusedItem)),p=1;p<t+1;p++){var U=this.items[(E-p+t)%t];if(!U.hasAttribute("disabled")){var x=_.sm(U).getOwnerRoot()||document;this._setFocusedItem(U);if(_.sm(x).activeElement==U)break}}},
_focusNext:function(){for(var t=this.items.length,E=Number(this.indexOf(this.focusedItem)),p=1;p<t+1;p++){var U=this.items[(E+p)%t];if(!U.hasAttribute("disabled")){var x=_.sm(U).getOwnerRoot()||document;this._setFocusedItem(U);if(_.sm(x).activeElement==U)break}}},
_applySelection:function(t,E){E?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false");_.f4._applySelection.apply(this,arguments)},
_focusedItemChanged:function(t,E){E&&E.setAttribute("tabindex","-1");!t||t.hasAttribute("disabled")||this.disabled||(t.setAttribute("tabindex","0"),t.focus())},
_onIronItemsChanged:function(t){t.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var t=this.getAttribute("tabindex");_.tv._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",t);_.tv._shiftTabPressed=!1},1)},
_onFocus:function(t){!_.tv._shiftTabPressed&&(t=_.sm(t).rootTarget,t===this||typeof t.tabIndex==="undefined"||this.isLightDescendant(t))&&(this._defaultFocusAsync=this.async(function(){var E=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);E?this._setFocusedItem(E):this.items[0]&&this._focusNext()}))},
_onUpKey:function(t){this._focusPrevious();t.detail.keyboardEvent.preventDefault()},
_onDownKey:function(t){this._focusNext();t.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var t=this.focusedItem;t&&t.blur()},
_onKeydown:function(t){this.keyboardEventMatchesKeys(t,"up down esc")||this._focusWithKeyboardEvent(t);t.stopPropagation()},
_activateHandler:function(t){_.f4._activateHandler.call(this,t);t.stopPropagation()},
_disabledChanged:function(t){t?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};KFZ=[$MX,_.ou,_.tv];_.vuo={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(t){this.focusedItem&&(this.focusedItem.click(),t.detail.keyboardEvent.preventDefault())},
_onDownKey:function(t){this.focusedItem&&(this.focusedItem.click(),t.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(t){return t.ctrlKey||t.shiftKey||t.altKey||t.metaKey},
_onLeftKey:function(t){this._isSpecialKey(t.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),t.detail.keyboardEvent.preventDefault())},
_onRightKey:function(t){this._isSpecialKey(t.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),t.detail.keyboardEvent.preventDefault())},
_onKeydown:function(t){this.keyboardEventMatchesKeys(t,"up down left right esc")||this._focusWithKeyboardEvent(t)}};
_.yNW=[KFZ,_.vuo];var SQo;SQo=new Set;_.Ev={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):(SQo.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(t){this.resizerShouldNotify(t)&&this._notifyDescendant(t)},this),this._fireResize())},
assignParentResizable:function(t){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=t)&&t._interestedResizables.indexOf(this)===-1&&(t._interestedResizables.push(this),t._subscribeIronResize(this))},
stopResizeNotificationsFor:function(t){var E=this._interestedResizables.indexOf(t);E>-1&&(this._interestedResizables.splice(E,1),this._unsubscribeIronResize(t))},
_subscribeIronResize:function(t){t.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(t){t.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(t){this._notifyingDescendant?t.stopPropagation():Co||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(t){var E=_.sm(t).rootTarget;E!==this&&(E.assignParentResizable(this),this._notifyDescendant(E),t.stopPropagation())},
_parentResizableChanged:function(t){t&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(t){this.isAttached&&(this._notifyingDescendant=!0,t.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var t=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function p(){document.removeEventListener("readystatechange",p);t()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(E){E!==this&&E._findParent()},this):(SQo.forEach(function(E){E!==this&&E._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?SQo.delete(this):SQo.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
*/
_.cNX={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(t,E){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);E&&(t==="document"?this.scrollTarget=this._doc:typeof t==="string"?this.scrollTarget=(E=this.domHost)&&E.$?E.$[t]:_.sm(this.ownerDocument).querySelector("#"+t):this._isValidScrollTarget()&&(this._oldScrollTarget=t,this._toggleScrollListener(this._shouldHaveListener,t)))},
_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(t){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,t):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
t)},set _scrollLeft(t){this.scrollTarget===this._doc?window.scrollTo(t,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=t)},scroll:function(t,E){if(typeof t==="object"){var p=t.left;E=t.top}else p=t;p=p||0;E=E||0;this.scrollTarget===this._doc?window.scrollTo(p,E):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=p,this.scrollTarget.scrollTop=E)},
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(t,E){E=E===this._doc?window:E;t?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),E.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(E.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(t){this._shouldHaveListener=t;this._toggleScrollListener(t,this.scrollTarget)}};_.yx({is:"iron-selector",_template:null,behaviors:[$MX]});var pC={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(t){if(t.timing)for(var E in t.timing)this.animationTiming[E]=t.timing[E];return this.animationTiming},
setPrefixedProperty:function(t,E,p){for(var U={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[E],x,A=0;x=U[A];A++)t.style[x]=p;t.style[E]=p},
complete:function(){}};_.yx({is:"fade-in-animation",_template:null,behaviors:[pC],configure:function(t){return this._effect=new KeyframeEffect(t.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(t))}});_.yx({is:"fade-out-animation",_template:null,behaviors:[pC],configure:function(t){return this._effect=new KeyframeEffect(t.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(t))}});var tho=[{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(t,E){for(var p in E)t[p]=E[p]},
_cloneConfig:function(t){var E={isClone:!0};this._copyProperties(E,t);return E},
_getAnimationConfigRecursive:function(t,E,p){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 U=t?this.animationConfig[t]:this.animationConfig;Array.isArray(U)||(U=[U]);if(U)for(var x,A=0;x=U[A];A++)if(x.animatable)x.animatable._getAnimationConfigRecursive(x.type||t,E,p);else if(x.id){var m=E[x.id];
m?(m.isClone||(E[x.id]=this._cloneConfig(m),m=E[x.id]),this._copyProperties(m,x)):E[x.id]=x}else p.push(x)}},
getAnimationConfig:function(t){var E={},p=[];this._getAnimationConfigRecursive(t,E,p);for(var U in E)p.push(E[U]);return p}},
{_configureAnimations:function(t){var E=[],p=[];if(t.length>0)for(var U,x=0;U=t[x];x++){var A=document.createElement(U.name);if(A.isNeonAnimation){var m=null;A.configure||(A.configure=function(){return null});
m=A.configure(U);p.push({result:m,config:U})}else console.warn(this.is+":",U.name,"not found!")}for(t=0;t<p.length;t++){m=p[t].result;U=p[t].config;try{typeof m.cancel!="function"&&(m=document.timeline.play(m))}catch(b){m=null,console.warn("Couldnt play","(",U.name,").",b)}m&&E.push({neonAnimation:A,config:U,animation:m})}return E},
_shouldComplete:function(t){for(var E=!0,p=0;p<t.length;p++)if(t[p].animation.playState!="finished"){E=!1;break}return E},
_complete:function(t){for(var E=0;E<t.length;E++)t[E].neonAnimation.complete(t[E].config);for(E=0;E<t.length;E++)t[E].animation.cancel()},
playAnimation:function(t,E){var p=this.getAnimationConfig(t);if(p){this._active=this._active||{};this._active[t]&&(this._complete(this._active[t]),delete this._active[t]);var U=this._configureAnimations(p);if(U.length==0)this.fire("neon-animation-finish",E,{bubbles:!1});else for(this._active[t]=U,p=0;p<U.length;p++)U[p].animation.onfinish=function(){this._shouldComplete(U)&&(this._complete(U),delete this._active[t],this.fire("neon-animation-finish",E,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var t in this._active){var E=this._active[t],p;for(p in E)E[p].animation&&E[p].animation.cancel&&E[p].animation.cancel()}this._active={}}}];var Um=function(t,E){t=Error.call(this,t);this.message=t.message;"stack"in t&&(this.stack=t.stack);this.arg=E;this.name=this.constructor.name;this.constructor=Um;this.__proto__=Um.prototype};
_.u(Um,Error);var EZ0=IJ(function(t){var E=function(){return t.apply(this,arguments)||this};
_.u(E,t);E.prototype._marshalArgs=function(p,U,x){U=t.prototype._marshalArgs.call(this,p,U,x);if(this._legacyUndefinedCheck&&U.length>1)for(x=0;x<U.length;x++)if(U[x]===void 0||p[x].wildcard&&U[x].base===void 0)throw p=p[x].name,new Um("Argument '"+p+"' is undefined.",p);return U};
E.prototype._addPropertyEffect=function(p,U,x){return t.prototype._addPropertyEffect.call(this,p,U,yIE(x,x&&x.info&&x.info.methodName))};
E._addTemplatePropertyEffect=function(p,U,x){return t._addTemplatePropertyEffect.call(this,p,U,yIE(x))};
return E}),pnG=_.yx.Class;
_.yx.Class=function(t,E){return pnG(t,function(p){return E?E(EZ0(p)):EZ0(p)})};
var UmG=IJ(function(t){var E=EZ0(t);t=function(){return E.apply(this,arguments)||this};
_.u(t,E);_.aE.Object.defineProperties(t.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return t}),xmm=rk.mixin;
rk.mixin=xmm?function(t){return UmG(xmm(t))}:UmG;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.Uv=_.KQ.IronButtonState;var oNK=QO;_.SkO="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");var Ux_=function(){return Math.random().toString(36).substring(7).split("").join(".")},p7L="@@redux/INIT"+Ux_(),YHK="@@redux/REPLACE"+Ux_();var MvJ=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Ayp=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var YaW="top right bottom left width height size weight".split(" "),Mhs=typeof MutationObserver!=="undefined",mmW=Ayp&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,bGs=function(){this.mutationEventsAdded_=this.JSC$12029_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=mx_(this.refresh.bind(this))},iG0=function(t,
E){var p=t.observers_;
E=p.indexOf(E);~E&&p.splice(E,1);!p.length&&t.JSC$12029_connected_&&Ayp&&t.JSC$12029_connected_&&(document.removeEventListener("transitionend",t.onTransitionEnd_),window.removeEventListener("resize",t.refresh),t.mutationsObserver_&&(t.mutationsObserver_.disconnect(),mmW&&(HTMLElement.prototype.attachShadow=mmW)),t.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",t.refresh),t.mutationsObserver_=null,t.mutationEventsAdded_=!1,t.JSC$12029_connected_=!1)};
bGs.prototype.refresh=function(){qaW(this)&&this.refresh()};
var qaW=function(t){t=t.observers_.filter(function(E){return HGs(E),E.activeObservations_.length>0});
t.forEach(function(E){return f1r(E)});
return t.length>0},BW0=function(t){if(Ayp&&!t.JSC$12029_connected_){document.addEventListener("transitionend",t.onTransitionEnd_);
window.addEventListener("resize",t.refresh);if(Mhs){t.mutationsObserver_=new MutationObserver(t.refresh);var E={attributes:!0,childList:!0,characterData:!0,subtree:!0};t.mutationsObserver_.observe(document,E);mmW&&(function x(U){var A=U.shadowRoot;A&&(t.mutationsObserver_.observe(A,E),x(A));for(U=U.firstElementChild;U;)x(U),U=U.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var U=mmW.apply(this,_.t9.apply(0,arguments));
t.mutationsObserver_.observe(U,E);return U})}else document.addEventListener("DOMSubtreeModified",t.refresh),t.mutationEventsAdded_=!0;
t.JSC$12029_connected_=!0}};
bGs.prototype.onTransitionEnd_=function(t){var E=t.propertyName===void 0?"":t.propertyName;YaW.some(function(p){return!!~E.indexOf(p)})&&this.refresh()};
var wnm=null;var R50=function(t,E){for(var p=_.M(Object.keys(E)),U=p.next();!U.done;U=p.next())U=U.value,Object.defineProperty(t,U,{value:E[U],enumerable:!1,writable:!1,configurable:!0})};var xY=function(t){var E;return(t==null?void 0:(E=t.ownerDocument)==null?void 0:E.defaultView)||globalThis};var VhW={x:0,y:0,width:0,height:0},Qef=typeof SVGGraphicsElement!=="undefined"?function(t){return t instanceof xY(t).SVGGraphicsElement}:function(t){return t instanceof xY(t).SVGElement&&typeof t.getBBox==="function"};var CfT=function(t){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=t};
CfT.prototype.isActive=function(){var t=this.target;if(Ayp)if(Qef(t)){var E=t.getBBox();E={x:0,y:0,width:E.width,height:E.height}}else{var p=t.clientWidth,U=t.clientHeight;if(p||U){var x=xY(t).getComputedStyle(t);E=Ao(x["padding-top"]);var A=Ao(x["padding-left"]),m=A+Ao(x["padding-right"]),b=E+Ao(x["padding-bottom"]),f=Ao(x.width),B=Ao(x.height);x.boxSizing==="border-box"&&(Math.round(f+m)!==p&&(f-=bJ_(x,"left","right")+m),Math.round(B+b)!==U&&(B-=bJ_(x,"top","bottom")+b));t!==xY(t).document.documentElement&&
(t=Math.round(f+m)-p,U=Math.round(B+b)-U,Math.abs(t)!==1&&(f-=t),Math.abs(U)!==1&&(B-=U));E={x:A,y:E,width:f,height:B}}else E=VhW}else E=VhW;this.contentRect_=E;return E.width!==this.broadcastWidth||E.height!==this.broadcastHeight};var jeG=function(t,E){var p=E.x;var U=E.y;var x=E.width;E=E.height;var A=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);R50(A,{x:p,y:U,width:x,height:E,top:U,right:p+x,bottom:E+U,left:p});R50(this,{target:t,contentRect:A})};var rys=function(t,E){var p=wnm;this.activeObservations_=[];this.observations_=new Map;if(typeof t!=="function")throw new TypeError("We");this.callback_=t;this.controller_=p;this.callbackCtx_=E};
rys.prototype.observe=function(t){if(t===void 0)throw new TypeError("Xe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(t instanceof xY(t).Element))throw new TypeError("Ye");var E=this.observations_;E.has(t)||(E.set(t,new CfT(t)),t=this.controller_,~t.observers_.indexOf(this)||t.observers_.push(this),t.JSC$12029_connected_||BW0(t),this.controller_.refresh())}};
rys.prototype.unobserve=function(t){if(t===void 0)throw new TypeError("Xe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(t instanceof xY(t).Element))throw new TypeError("Ye");var E=this.observations_;E.has(t)&&(E.delete(t),E.size||iG0(this.controller_,this))}};
rys.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();iG0(this.controller_,this)};
var HGs=function(t){t.activeObservations_.splice(0);t.observations_.forEach(function(E){E.isActive()&&t.activeObservations_.push(E)})},f1r=function(t){if(t.activeObservations_.length>0){var E=t.callbackCtx_,p=t.activeObservations_.map(function(U){var x=U.target,A=U.contentRect_;
U.broadcastWidth=A.width;U.broadcastHeight=A.height;return new jeG(x,A)});
t.callback_.call(E,p,E);t.activeObservations_.splice(0)}};var Av=function(t){if(!(this instanceof Av))throw new TypeError("Ze");if(!arguments.length)throw new TypeError("Xe");wnm||(wnm=new bGs);this.observer_=new rys(t,this)};
Av.prototype.observe=function(t){this.observer_.observe(t)};
Av.prototype.unobserve=function(t){this.observer_.unobserve(t)};
Av.prototype.disconnect=function(){this.observer_.disconnect()};var UP8=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:Av;var Jo={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"},Zs={"2D":0,WebGL:1,WebGL2:2};Zs[Zs["2D"]]="2D";Zs[1]="WebGL";Zs[2]="WebGL2";var qHl={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},HJ8={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},iJ0={},B0_={},w7E={},f_=function(t){return Yx("Node",t,"childNodes")},HV=function(t){return Yx("Node",t,"parentNode")},BV=function(t){return Yx("Node",t,"parentElement")},viE=function(t){return Yx("Node",t,
"textContent")},i38=function(t){return Rm_(t,"getRootNode")()},mV=function(t){return t&&"host"in t?Yx("ShadowRoot",t,"host"):null},bH=function(t){return t&&"shadowRoot"in t?Yx("Element",t,"shadowRoot"):null};var QL=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
QL.prototype.getId=function(t){if(!t)return-1;var E,p;return(p=(E=this.nodeMetaMap.get(t)||null)==null?void 0:E.id)!=null?p:-1};
QL.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())};
var km0=function(t,E){var p=t.getId(E);t.idNodeMap.delete(p);E.childNodes&&E.childNodes.forEach(function(U){return km0(t,U)})};
QL.prototype.has=function(t){return this.idNodeMap.has(t)};
QL.prototype.add=function(t,E){this.idNodeMap.set(E.id,t);this.nodeMetaMap.set(t,E)};
QL.prototype.replace=function(t,E){var p=this.idNodeMap.get(t)||null;p&&(p=this.nodeMetaMap.get(p))&&this.nodeMetaMap.set(E,p);this.idNodeMap.set(t,E)};
QL.prototype.reset=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
var JUj=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,IvO=/^(?:[a-z+]+:)?\/\//i,giO=/^www\..*/i,ZJK=/^(data:)([^,]*),(.*)/i;var hmJ=1,emJ=RegExp("[^a-z0-9-_:]"),wJ,SHK,lvi=/^[^ \t\n\r\u000c]+/,zmE=/^[, \t\n\r\u000c]+/,DxJ=new WeakMap;var Om,uH=function(t){return Om?function(){var E=_.t9.apply(0,arguments);try{return t.apply(null,_.KB(E))}catch(p){if(!Om||Om(p)!==!0)throw p;}}:t};var YY=function(t){this.generateIdFn=t;this.iframeIdToRemoteIdMap=new WeakMap;this.iframeRemoteIdToIdMap=new WeakMap};
YY.prototype.getId=function(t,E,p,U){p=p||dm4(this,t);t=U||uI4(this,t);U=p.get(E);U||(U=this.generateIdFn(),p.set(E,U),t.set(U,E));return U};
YY.prototype.getIds=function(t,E){var p=this,U=dm4(this,t),x=uI4(this,t);return E.map(function(A){return p.getId(t,A,U,x)})};
YY.prototype.reset=function(t){t?(this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)};
var dm4=function(t,E){var p=t.iframeIdToRemoteIdMap.get(E);p||(p=new Map,t.iframeIdToRemoteIdMap.set(E,p));return p},uI4=function(t,E){var p=t.iframeRemoteIdToIdMap.get(E);
p||(p=new Map,t.iframeRemoteIdToIdMap.set(E,p));return p};var cYK=function(t){this.iframes=new WeakMap;this.crossOriginIframeMap=new WeakMap;this.crossOriginIframeMirror=new YY(av8);this.crossOriginIframeRootIdMap=new WeakMap;this.mutationCb=t.mutationCb;this.wrappedEmit=t.wrappedEmit;this.stylesheetManager=t.stylesheetManager;this.recordCrossOriginIframes=t.recordCrossOriginIframes;this.crossOriginIframeStyleMirror=new YY(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror));this.mirror=t.mirror;this.recordCrossOriginIframes&&
window.addEventListener("message",this.JSC$12093_handleMessage.bind(this))},xij=function(t,E){t.iframes.set(E,!0);
E.contentWindow&&t.crossOriginIframeMap.set(E.contentWindow,E)},imE=function(t,E){t.loadListener=E},MxJ=function(t,E,p){t.mutationCb({adds:[{parentId:t.mirror.getId(E),
nextId:null,node:p}],removes:[],texts:[],attributes:[],isAttachIframe:!0});if(t.recordCrossOriginIframes){var U;(U=E.contentWindow)==null||U.addEventListener("message",t.JSC$12093_handleMessage.bind(t))}var x;(x=t.loadListener)==null||x.call(t,E);E.contentDocument&&E.contentDocument.adoptedStyleSheets&&E.contentDocument.adoptedStyleSheets.length>0&&aJi(t.stylesheetManager,E.contentDocument.adoptedStyleSheets,t.mirror.getId(E.contentDocument))};
cYK.prototype.JSC$12093_handleMessage=function(t){if(t.data.type==="rrweb"&&t.origin===t.data.origin&&t.source){var E=this.crossOriginIframeMap.get(t.source);E&&(E=Jyf(this,E,t.data.event))&&this.wrappedEmit(E,t.data.isCheckout)}};
var Jyf=function(t,E,p){switch(p.type){case 2:t.crossOriginIframeMirror.reset(E);t.crossOriginIframeStyleMirror.reset(E);I13(t,p.data.node,E);var U=p.data.node.id;t.crossOriginIframeRootIdMap.set(E,U);gZZ(t,p.data.node,U);return{timestamp:p.timestamp,type:3,data:{source:0,adds:[{parentId:t.mirror.getId(E),nextId:null,node:p.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case 6:return p;case 5:return Mw(t,p.data.payload,E,["id","parentId","previousId","nextId"]),p;case 3:switch(p.data.source){case 0:return p.data.adds.forEach(function(x){Mw(t,
x,E,["parentId","nextId","previousId"]);I13(t,x.node,E);var A=t.crossOriginIframeRootIdMap.get(E);A&&gZZ(t,x.node,A)}),p.data.removes.forEach(function(x){Mw(t,x,E,["parentId",
"id"])}),p.data.attributes.forEach(function(x){Mw(t,x,E,["id"])}),p.data.texts.forEach(function(x){Mw(t,x,E,["id"])}),p;
case 12:case 6:case 1:return p.data.positions.forEach(function(x){Mw(t,x,E,["id"])}),p;
case 7:case 2:case 3:case 9:case 5:return Mw(t,p.data,E,["id"]),p;case 8:case 13:return Mw(t,p.data,E,["id"]),ZGp(t,p.data,E,["styleId"]),p;case 10:return p;case 14:return p.data.ranges.forEach(function(x){Mw(t,x,E,["start","end"])}),p;
case 15:return Mw(t,p.data,E,["id"]),ZGp(t,p.data,E,["styleIds"]),(U=p.data.styles)==null||U.forEach(function(x){ZGp(t,x,E,["styleId"])}),p}}return!1};
cYK.prototype.replace=function(t,E,p,U){U=_.M(U);for(var x=U.next();!x.done;x=U.next())if(x=x.value,Array.isArray(E[x])||typeof E[x]==="number")Array.isArray(E[x])?E[x]=t.getIds(p,E[x]):E[x]=t.getId(p,E[x]);return E};
var Mw=function(t,E,p,U){t.replace(t.crossOriginIframeMirror,E,p,U)},ZGp=function(t,E,p,U){t.replace(t.crossOriginIframeStyleMirror,E,p,U)},I13=function(t,E,p){Mw(t,E,p,["id",
"rootId"]);"childNodes"in E&&E.childNodes.forEach(function(U){I13(t,U,p)})},gZZ=function(t,E,p){E.type===0||E.rootId||(E.rootId=p);
"childNodes"in E&&E.childNodes.forEach(function(U){gZZ(t,U,p)})};var jrL=/[1-9][0-9]{12}/.test(Date.now().toString())?Date.now:function(){return(new Date).getTime()},OGG=function(){this.id=1;
this.styleIDMap=new WeakMap;this.idStyleMap=new Map};
_.Y=OGG.prototype;_.Y.getId=function(t){var E;return(E=this.styleIDMap.get(t))!=null?E:-1};
_.Y.has=function(t){return this.styleIDMap.has(t)};
_.Y.add=function(t,E){if(this.has(t))return this.getId(t);E=E===void 0?this.id++:E;this.styleIDMap.set(t,E);this.idStyleMap.set(E,t);return E};
_.Y.getStyle=function(t){return this.idStyleMap.get(t)||null};
_.Y.reset=function(){this.styleIDMap=new WeakMap;this.idStyleMap=new Map;this.id=1};
_.Y.generateId=function(){return this.id++};var Xns=function(){this.length=0;this.tail=this.head=null};
Xns.prototype.get=function(t){if(t>=this.length)throw Error("$e");for(var E=this.head,p=0;p<t;p++){var U=void 0;E=((U=E)==null?void 0:U.next)||null}return E};
var h50=function(t,E){var p={value:E,previous:null,next:null};E.__ln=p;if(E.previousSibling&&"__ln"in E.previousSibling){var U=E.previousSibling.__ln.next;p.next=U;p.previous=E.previousSibling.__ln;E.previousSibling.__ln.next=p;U&&(U.previous=p)}else E.nextSibling&&"__ln"in E.nextSibling&&E.nextSibling.__ln.previous?(U=E.nextSibling.__ln.previous,p.previous=U,p.next=E.nextSibling.__ln,E.nextSibling.__ln.previous=p,U&&(U.next=p)):(t.head&&(t.head.previous=p),p.next=t.head,t.head=p);p.next===null&&
(t.tail=p);t.length++};
Xns.prototype.removeNode=function(t){var E=t.__ln;this.head&&(E.previous?(E.previous.next=E.next)?E.next.previous=E.previous:this.tail=E.previous:(this.head=E.next)?this.head.previous=null:this.tail=null,t.__ln&&delete t.__ln,this.length--)};
var a1W=function(t,E){return t+"@"+E},QrO=function(){var t=this;
this.locked=this.JSC$12124_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(E){E.forEach(t.JSC$12124_processMutation);t.emit()};
this.emit=function(){if(!t.JSC$12124_frozen&&!t.locked){for(var E=[],p=new Set,U=new Xns,x=function(V){for(var Q=-2;Q===-2;)Q=(V=V&&V.nextSibling)&&t.mirror.getId(V);return Q},A=function(V){var Q=HV(V);
if(Q&&H30(V)){var C=!1;if(V.nodeType===Node.TEXT_NODE){var d=Q.tagName;if(d==="TEXTAREA")return;d==="STYLE"&&t.addedSet.has(Q)&&(C=!0)}Q=iH(Q)?t.mirror.getId(q4E(V)):t.mirror.getId(Q);d=x(V);if(Q===-1||d===-1)return h50(U,V);if(C=VL(V,{doc:t.doc,mirror:t.mirror,blockClass:t.blockClass,blockSelector:t.blockSelector,maskTextClass:t.maskTextClass,maskTextSelector:t.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:t.inlineStylesheet,maskInputOptions:t.maskInputOptions,maskTextFn:t.maskTextFn,
maskInputFn:t.maskInputFn,slimDOMOptions:t.slimDOMOptions,dataURLOptions:t.dataURLOptions,recordCanvas:t.recordCanvas,inlineImages:t.inlineImages,onSerialize:function(I){I.nodeName==="IFRAME"&&t.mirror.nodeMetaMap.get(I)&&xij(t.iframeManager,I);b3j(I,t.mirror)&&ABt(t.stylesheetManager,I);V&&bH(V)&&YW0(t.shadowDomManager,bH(V),t.doc)},
onIframeLoad:function(I,O){MxJ(t.iframeManager,I,O);I.contentWindow&&I.contentDocument&&mil(t.shadowDomManager,I.contentWindow.Element,I.contentDocument)},
onStylesheetLoad:function(I,O){bmO(t.stylesheetManager,I,O)},
cssCaptured:C}))E.push({parentId:Q,nextId:d,node:C}),p.add(C.id)}};t.mapRemoves.length;)km0(t.mirror,t.mapRemoves.shift());
for(var m=_.M(t.movedSet),b=m.next();!b.done;b=m.next())b=b.value,wlj(t.removesSubTreeCache,b)&&!t.movedSet.has(HV(b))||A(b);m=_.M(t.addedSet);for(b=m.next();!b.done;b=m.next())b=b.value,VrJ(t.droppedSet,b)||wlj(t.removesSubTreeCache,b)?VrJ(t.movedSet,b)?A(b):t.droppedSet.add(b):A(b);for(b=null;U.length;){m=null;if(b){var f=t.mirror.getId(HV(b.value)),B=x(b.value);f!==-1&&B!==-1&&(m=b)}if(!m)for(b=U.tail;b;){var R=b;b=b.previous;if(R&&(f=t.mirror.getId(HV(R.value)),x(R.value)!==-1))if(f!==-1){m=R;
break}else if((f=HV(R.value))&&f.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(f=mV(f),t.mirror.getId(f)!==-1)){m=R;break}}if(!m){for(;U.head;)U.removeNode(U.head.value);break}b=m.previous;U.removeNode(m.value);A(m.value)}A={texts:t.texts.map(function(V){var Q=V.node,C=HV(Q);C&&C.tagName==="TEXTAREA"&&t.genTextAreaValueMutation(C);return{id:t.mirror.getId(Q),value:V.value}}).filter(function(V){return!p.has(V.id)}).filter(function(V){return t.mirror.has(V.id)}),
attributes:t.attributes.map(function(V){var Q=V.attributes;if(typeof Q.style==="string"){var C=JSON.stringify(V.styleDiff),d=JSON.stringify(V._unchangedStyles);C.length<Q.style.length&&(C+d).split("var(").length===Q.style.split("var(").length&&(Q.style=V.styleDiff)}return{id:t.mirror.getId(V.node),attributes:Q}}).filter(function(V){return!p.has(V.id)}).filter(function(V){return t.mirror.has(V.id)}),
removes:t.removes,adds:E};if(A.texts.length||A.attributes.length||A.removes.length||A.adds.length)t.texts=[],t.attributes=[],t.attributeMap=new WeakMap,t.removes=[],t.addedSet=new Set,t.movedSet=new Set,t.droppedSet=new Set,t.removesSubTreeCache=new Set,t.movedMap={},t.mutationCb(A)}};
this.genTextAreaValueMutation=function(E){var p=t.attributeMap.get(E);p||(p={node:E,attributes:{},styleDiff:{},_unchangedStyles:{}},t.attributes.push(p),t.attributeMap.set(E,p));var U=Array.from(f_(E),function(x){return viE(x)||""}).join("");
p.attributes.value=rUY({element:E,maskInputOptions:t.maskInputOptions,tagName:E.tagName,type:dxK(E),value:U,maskInputFn:t.maskInputFn})};
this.JSC$12124_processMutation=function(E){if(!Y40(E.target,t.mirror,t.slimDOMOptions))switch(E.type){case "characterData":var p=viE(E.target);rJ(E.target,t.blockClass,t.blockSelector,!1)||p===E.oldValue||t.texts.push({value:oiY(E.target,t.maskTextClass,t.maskTextSelector,!0)&&p?t.maskTextFn?t.maskTextFn(p,AYY(E.target)):p.replace(/[\S]/g,"*"):p,node:E.target});break;case "attributes":p=E.target;var U=E.attributeName,x=E.target.getAttribute(U);if(U==="value"){var A=dxK(p);x=rUY({element:p,maskInputOptions:t.maskInputOptions,
tagName:p.tagName,type:A,value:x,maskInputFn:t.maskInputFn})}if(rJ(E.target,t.blockClass,t.blockSelector,!1)||x===E.oldValue)break;A=t.attributeMap.get(E.target);if(p.tagName==="IFRAME"&&U==="src"&&!t.keepIframeSrcFn(x))if(p.contentDocument)break;else U="rr_src";A||(A={node:E.target,attributes:{},styleDiff:{},_unchangedStyles:{}},t.attributes.push(A),t.attributeMap.set(E.target,A));U==="type"&&p.tagName==="INPUT"&&(E.oldValue||"").toLowerCase()==="password"&&p.setAttribute("data-rr-is-password","true");
if(!Lmj(p.tagName,U))if(A.attributes[U]=sQj(t.doc,p.tagName.toLowerCase(),U.toLowerCase(),x),U==="style"){if(!t.unattachedDoc)try{t.unattachedDoc=document.implementation.createHTMLDocument()}catch(B){t.unattachedDoc=t.doc}U=t.unattachedDoc.createElement("span");E.oldValue&&U.setAttribute("style",E.oldValue);x=_.M(Array.from(p.style));for(var m=x.next();!m.done;m=x.next()){m=m.value;var b=p.style.getPropertyValue(m),f=p.style.getPropertyPriority(m);b!==U.style.getPropertyValue(m)||f!==U.style.getPropertyPriority(m)?
A.styleDiff[m]=f===""?b:[b,f]:A._unchangedStyles[m]=[b,f]}U=_.M(Array.from(U.style));for(x=U.next();!x.done;x=U.next())x=x.value,p.style.getPropertyValue(x)===""&&(A.styleDiff[x]=!1)}else U==="open"&&p.tagName==="DIALOG"&&(p.matches("dialog:modal")?A.attributes.rr_open_mode="modal":A.attributes.rr_open_mode="non-modal");break;case "childList":rJ(E.target,t.blockClass,t.blockSelector,!0)||(E.target.tagName==="TEXTAREA"?t.genTextAreaValueMutation(E.target):(E.addedNodes.forEach(function(B){return t.genAdds(B,
E.target)}),E.removedNodes.forEach(function(B){var R=t.mirror.getId(B),V=iH(E.target)?t.mirror.getId(mV(E.target)):t.mirror.getId(E.target);
rJ(E.target,t.blockClass,t.blockSelector,!1)||Y40(B,t.mirror,t.slimDOMOptions)||t.mirror.getId(B)===-1||(t.addedSet.has(B)?(fJ$(t.addedSet,B),t.droppedSet.add(B)):t.addedSet.has(E.target)&&R===-1||MrK(E.target,t.mirror)||(t.movedSet.has(B)&&t.movedMap[R+"@"+V]?fJ$(t.movedSet,B):(t.removes.push({parentId:V,id:R,isShadow:iH(E.target)&&qG(E.target)?!0:void 0}),BM8(B,t.removesSubTreeCache))),t.mapRemoves.push(B))})))}};
this.genAdds=function(E,p){if(!e5s(t.processedNodeManager,E,t)&&!t.addedSet.has(E)&&!t.movedSet.has(E)){if(t.mirror.nodeMetaMap.has(E)){if(Y40(E,t.mirror,t.slimDOMOptions))return;t.movedSet.add(E);var U=null;p&&t.mirror.nodeMetaMap.has(p)&&(U=t.mirror.getId(p));U&&U!==-1&&(t.movedMap[a1W(t.mirror.getId(E),U)]=!0)}else t.addedSet.add(E),t.droppedSet.delete(E);rJ(E,t.blockClass,t.blockSelector,!1)||(f_(E).forEach(function(x){return t.genAdds(x)}),E&&bH(E)&&f_(bH(E)).forEach(function(x){t.processedNodeManager.add(x,
t);
t.genAdds(x,E)}))}}};
_.Y=QrO.prototype;_.Y.init=function(t){var E=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(p){E[p]=t[p]})};
_.Y.freeze=function(){this.JSC$12124_frozen=!0;this.canvasManager.freeze()};
_.Y.unfreeze=function(){this.JSC$12124_frozen=!1;this.canvasManager.unfreeze();this.emit()};
_.Y.isFrozen=function(){return this.JSC$12124_frozen};
_.Y.lock=function(){this.locked=!0;this.canvasManager.lock()};
_.Y.unlock=function(){this.locked=!1;this.canvasManager.unlock();this.emit()};
_.Y.reset=function(){this.shadowDomManager.reset();this.canvasManager.reset()};var dJ=[],gJ=window.Proxy,JYt=["INPUT","TEXTAREA","SELECT"],IJ$=new WeakMap;var FbX=new Map,TM0=function(t,E,p){if(t&&(PBJ(t,E)||typeof t==="object")){E=t.constructor.name;var U=FbX.get(p);U||(U=new Map,FbX.set(p,U));U.has(E)||U.set(E,[]);p=U.get(E);E=p.indexOf(t);E===-1&&(E=p.length,p.push(t));return E}},oED=function(t,E,p){return t.map(function(U){return LCi(U,E,p)})},PBJ=function(t,E){return!!"WebGLActiveInfo WebGLBuffer WebGLFramebuffer WebGLProgram WebGLRenderbuffer WebGLShader WebGLShaderPrecisionFormat WebGLTexture WebGLUniformLocation WebGLVertexArrayObject WebGLVertexArrayObjectOES".split(" ").filter(function(p){return typeof E[p]===
"function"}).find(function(p){return t instanceof E[p]})};var z5m=QT(["\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"]),
Md_=_.HT(z5m.join(""));var pi8=function(t){var E=this;this.pendingCanvasMutations=new Map;this.rafStamps={latestId:0,invokeId:null};this.locked=this.JSC$12166_frozen=!1;this.JSC$12166_processMutation=function(f,B){if(E.rafStamps.invokeId&&E.rafStamps.latestId!==E.rafStamps.invokeId||!E.rafStamps.invokeId)E.rafStamps.invokeId=E.rafStamps.latestId;E.pendingCanvasMutations.has(f)||E.pendingCanvasMutations.set(f,[]);E.pendingCanvasMutations.get(f).push(B)};
var p=t.sampling===void 0?"all":t.sampling,U=t.win,x=t.blockClass,A=t.blockSelector,m=t.recordCanvas,b=t.dataURLOptions;this.mutationCb=t.mutationCb;this.mirror=t.mirror;m&&p==="all"&&l1m(this,U,x,A);m&&typeof p==="number"&&Gm0(this,p,U,x,A,{dataURLOptions:b})};
_.Y=pi8.prototype;_.Y.reset=function(){this.pendingCanvasMutations.clear();this.resetObservers&&this.resetObservers()};
_.Y.freeze=function(){this.JSC$12166_frozen=!0};
_.Y.unfreeze=function(){this.JSC$12166_frozen=!1};
_.Y.lock=function(){this.locked=!0};
_.Y.unlock=function(){this.locked=!1};
var Gm0=function(t,E,p,U,x,A){var m=$CD(p,U,x,!0),b=new Map,f=eX8(myj());f.onmessage=function(d){var I=d.data.id;b.set(I,!1);"base64"in d.data&&(d=d.data,t.mutationCb({id:I,type:Zs["2D"],commands:[{property:"clearRect",args:[0,0,d.width,d.height]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:d.base64}],type:d.type}]},0,0]}]}))};
var B=1E3/E,R=0,V=function(){var d=[];p.document.querySelectorAll("canvas").forEach(function(I){rJ(I,U,x,!0)||d.push(I)});
return d},Q=function(d){R&&d-R<B||(R=d,V().forEach(function(I){var O,a,F,L,D;
return _.q(function(W){if(W.nextAddress==1){O=t.mirror.getId(I);if(b.get(O)||I.width===0||I.height===0)return W.return();b.set(O,!0);["webgl","webgl2"].includes(I.__context)&&(a=I.getContext(I.__context),((F=a)==null?void 0:(L=F.getContextAttributes())==null?void 0:L.preserveDrawingBuffer)===!1&&a.clear(a.COLOR_BUFFER_BIT));return W.yield(createImageBitmap(I),2)}D=W.yieldResult;f.postMessage({id:O,bitmap:D,width:I.width,height:I.height,dataURLOptions:A.dataURLOptions},[D]);_.Do(W)})}));
C=requestAnimationFrame(Q)};
var C=requestAnimationFrame(Q);t.resetObservers=function(){m();cancelAnimationFrame(C)}},l1m=function(t,E,p,U){nZ4(t);
NW4(t);var x=$CD(E,p,U,!1),A=WCl(t.JSC$12166_processMutation.bind(t),E,p,U),m=vEO(t.JSC$12166_processMutation.bind(t),E,p,U);t.resetObservers=function(){x();A();m()}},NW4=function(t){requestAnimationFrame(function(){return Dms(t)})},nZ4=function(t){var E=function(p){t.rafStamps.latestId=p;
requestAnimationFrame(E)};
requestAnimationFrame(E)},Dms=function(t){t.pendingCanvasMutations.forEach(function(E,p){var U=t.mirror.getId(p);
seT(t,p,U)});
requestAnimationFrame(function(){return Dms(t)})},seT=function(t,E,p){if(!t.JSC$12166_frozen&&!t.locked){var U=t.pendingCanvasMutations.get(E);
if(U&&p!==-1){var x=U.map(function(A){A=Object.assign({},A);return delete A.type,A});
t.mutationCb({id:p,type:U[0].type,commands:x});t.pendingCanvasMutations.delete(E)}}};var tx_=function(){this.nodeMap=new WeakMap;this.active=!1},e5s=function(t,E,p){return(t=t.nodeMap.get(E))&&Array.from(t).some(function(U){return U!==p})};
tx_.prototype.add=function(t,E){var p=this;this.active||(this.active=!0,requestAnimationFrame(function(){p.nodeMap=new WeakMap;p.active=!1}));
this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(E))};
tx_.prototype.destroy=function(){};var Uii=function(t){this.shadowDoms=new WeakSet;this.restoreHandlers=[];this.mutationCb=t.mutationCb;this.scrollCb=t.scrollCb;this.bypassOptions=t.bypassOptions;this.mirror=t.mirror;this.init()};
Uii.prototype.init=function(){this.reset();mil(this,Element,document)};
var YW0=function(t,E,p){if(qG(E)&&!t.shadowDoms.has(E)){t.shadowDoms.add(E);var U=CBJ(Object.assign({},t.bypassOptions,{doc:p,mutationCb:t.mutationCb,mirror:t.mirror,shadowDomManager:t}),E);t.restoreHandlers.push(function(){return U.disconnect()});
t.restoreHandlers.push(dC0(Object.assign({},t.bypassOptions,{scrollCb:t.scrollCb,doc:E,mirror:t.mirror})));setTimeout(function(){E.adoptedStyleSheets&&E.adoptedStyleSheets.length>0&&aJi(t.bypassOptions.stylesheetManager,E.adoptedStyleSheets,t.mirror.getId(mV(E)));t.restoreHandlers.push(e_i({mirror:t.mirror,stylesheetManager:t.bypassOptions.stylesheetManager},E))},0)}},mil=function(t,E,p){t.restoreHandlers.push(MG(E.prototype,"attachShadow",function(U){return function(x){x=U.call(this,x);
var A=bH(this);A&&H30(this)&&YW0(t,A,p);return x}}))};
Uii.prototype.reset=function(){this.restoreHandlers.forEach(function(t){try{t()}catch(E){}});
this.restoreHandlers=[];this.shadowDoms=new WeakSet};var S40=function(t){this.trackedLinkElements=new WeakSet;this.styleMirror=new OGG;this.mutationCb=t.mutationCb;this.adoptedStyleSheetCb=t.adoptedStyleSheetCb},bmO=function(t,E,p){"_cssText"in p.attributes&&t.mutationCb({adds:[],
removes:[],texts:[],attributes:[{id:p.id,attributes:p.attributes}]});ABt(t,E)},ABt=function(t,E){t.trackedLinkElements.has(E)||t.trackedLinkElements.add(E)},aJi=function(t,E,p){if(E.length!==0){p={id:p,
styleIds:[]};var U=[];E=_.M(E);for(var x=E.next(),A={};!x.done;A={sheet$jscomp$3:void 0},x=E.next())A.sheet$jscomp$3=x.value,x=void 0,t.styleMirror.has(A.sheet$jscomp$3)?x=t.styleMirror.getId(A.sheet$jscomp$3):(x=t.styleMirror.add(A.sheet$jscomp$3),U.push({styleId:x,rules:Array.from(A.sheet$jscomp$3.rules||CSSRule,function(m){return function(b,f){return{rule:QQD(b,m.sheet$jscomp$3.href),index:f}}}(A))})),p.styleIds.push(x);
U.length>0&&(p.styles=U);t.adoptedStyleSheetCb(p)}};
S40.prototype.reset=function(){this.styleMirror.reset();this.trackedLinkElements=new WeakSet};var ho,yYl,EbL;try{if(Array.from([1],function(t){return t*2})[0]!==2){var Lbr=document.createElement("iframe");
document.body.appendChild(Lbr);var Pfm;Array.from=((Pfm=Lbr.contentWindow)==null?void 0:Pfm.Array.from)||Array.from;document.body.removeChild(Lbr)}}catch(t){console.debug("Unable to override Array.from",t)}var Xx=new QL;var CPi="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(" "),QJi={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},Vxt=null,HmJ=null;var jJ8={},rBE=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 ZmO={text:1},ubD={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var TWm=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,oZ4={CONSTANT:{isUnwrappable:function(t){return t instanceof fW},
unwrap:l_p},JAVASCRIPT:{isUnwrappable:function(t){return t instanceof _.qE},
unwrap:fB},HTML:{isUnwrappable:function(t){return t instanceof U2},
unwrap:function(t){return A9(t)}},
RESOURCE_URL:{isUnwrappable:function(t){return t instanceof nt},
unwrap:_.Dk},STRING:{isUnwrappable:function(t){return t instanceof Object},
unwrap:function(t){return String(t)}},
STYLE:{isUnwrappable:function(t){return typeof t==="string"},
unwrap:function(t){return t}},
URL:{isUnwrappable:function(t){return Ww(t)},
unwrap:_.$I}},Wbo={CONSTANT:OmL,JAVASCRIPT:OmL,HTML:function(t){t=t instanceof U2?t:xk(String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return A9(t)},
RESOURCE_URL:OmL,STRING:String,STYLE:OmL,URL:function(t,E){t=TWm.test(t)?t:void 0;return t===void 0?E:t}};var DiY=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,XiD=/[\t\n\f\r ]+/,aGl=/[\t\n\f\r ,]+/g,F$Y=function(t,E,p){return p},lH={},$mT=function(){var t=function(){var U={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",U):U}(),E=t.createHTML(""),p=t.createScript("");
t=t.createScriptURL("");return{INNOCUOUS_STRING:E,INNOCUOUS_SCRIPT:p,INNOCUOUS_URL:t}}(),zZ=$mT.INNOCUOUS_STRING,NTO=$mT.INNOCUOUS_SCRIPT,nbY=$mT.INNOCUOUS_URL;var Kbr=function(t){var E=sJO(t);return function(p,U,x,A){return A?E(A,U,x,p):zZ}}({reportHandler:function(t,E){if(t)try{throw Error(E);
}catch(p){_.bV(p)}},
safeTypesBridge:function(t,E,p){var U=oZ4[E];return U.isUnwrappable(t)&&(U=U.unwrap(t,p),U!==p)?U:(0,Wbo[E])(String(t),p)},
allowedIdentifierPrefixes:[""]});if(SJ!==void 0)throw Error("bf");SJ=Kbr;if(SJ!==Kbr)throw Error("cf");GZ("Injectable",[]);var B2_=GZ("Inject",[["token",void 0]]),RWE=GZ("Optional",[]);GZ("Injectable",[]);var VEL=GZ("Self",[]),Qu_=GZ("SkipSelf",[]);GZ("Host",[]);var vZo={},yyG=function(){};
yyG.prototype.resolve=function(){throw Error("ef");};
yyG.prototype.addProvider=function(){throw Error("ef");};var HQi=Function;var Sao=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,cyp=function(){this._reflect=window.Reflect};
_.Y=cyp.prototype;_.Y.factory=function(t){return function(){return new (Function.prototype.bind.apply(t,[null].concat(_.KB(_.t9.apply(0,arguments)))))}};
_.Y._zipTypesAndAnnotations=function(t,E){var p=typeof t==="undefined"?Array(E.length):Array(t.length);for(var U=0;U<p.length;U++)p[U]=typeof t==="undefined"?[]:t[U]!=Object?[t[U]]:[],E&&PPl(E[U])&&(p[U]=p[U].concat(E[U]));return p};
_.Y._ownParameters=function(t,E){if(Sao.exec(t.toString()))return null;if(t.parameters&&t.parameters!==E.parameters)return t.parameters;var p=t.ctorParameters;return p&&p!==E.ctorParameters?(E=typeof p==="function"?p():p,t=E.map(function(U){return U&&U.type}),E=E.map(function(U){return U&&obY(U.decorators)}),this._zipTypesAndAnnotations(t,E)):PPl(this._reflect)&&PPl(this._reflect.getOwnMetadata)&&(E=this._reflect.getOwnMetadata("parameters",t),(p=this._reflect.getOwnMetadata("design:paramtypes",t))||
E)?this._zipTypesAndAnnotations(p,E):Array(t.length).fill(void 0)};
_.Y.parameters=function(t){if(!t.prototype)return[];var E=Object.getPrototypeOf(t.prototype).constructor;(t=this._ownParameters(t,E))||E===Object||(t=this.parameters(E));return t||[]};
_.Y._ownAnnotations=function(t,E){if(t.annotations&&t.annotations!==E.annotations)return t=t.annotations,typeof t==="function"&&t.annotations&&(t=t.annotations),t;if(t.decorators&&t.decorators!==E.decorators)return obY(t.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",t)};
_.Y.annotations=function(t){var E=Object.getPrototypeOf(t.prototype).constructor;t=this._ownAnnotations(t,E)||[];return(E!==Object?this.annotations(E):[]).concat(t)};
_.Y._ownPropMetadata=function(t,E){if(t.propMetadata&&t.propMetadata!==E.propMetadata)return t=t.propMetadata,typeof t==="function"&&t.propMetadata&&(t=t.propMetadata),t;if(t.propDecorators&&t.propDecorators!==E.propDecorators){var p=t.propDecorators,U={};Object.keys(p).forEach(function(x){U[x]=obY(p[x])});
return U}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",t)};
_.Y.propMetadata=function(t){var E=Object.getPrototypeOf(t.prototype).constructor,p={};if(E!==Object){var U=this.propMetadata(E);Object.keys(U).forEach(function(A){p[A]=U[A]})}var x=this._ownPropMetadata(t,E);
x&&Object.keys(x).forEach(function(A){var m=[];p.hasOwnProperty(A)&&m.push.apply(m,_.KB(p[A]));m.push.apply(m,_.KB(x[A]));p[A]=m});
return p};
_.Y.getter=function(t){return function(E){return E[t]}};
_.Y.setter=function(t){return function(E,p){return E[t]=p}};
_.Y.method=function(t){return function(E,p){if(!E[t])throw Error("ff`"+t);return E[t].apply(E,p)}};var tM4=function(){};var ECG=function(t){this.reflectionCapabilities=t};
_.u(ECG,tM4);_.Y=ECG.prototype;_.Y.factory=function(t){return this.reflectionCapabilities.factory(t)};
_.Y.parameters=function(t){return this.reflectionCapabilities.parameters(t)};
_.Y.annotations=function(t){return this.reflectionCapabilities.annotations(t)};
_.Y.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)};
_.Y.getter=function(t){return this.reflectionCapabilities.getter(t)};
_.Y.setter=function(t){return this.reflectionCapabilities.setter(t)};
_.Y.method=function(t){return this.reflectionCapabilities.method(t)};var EFt=new ECG(new cyp);var m0=function(t,E){this.token=t;this.id=E;if(t===void 0||t===null)throw Error("lf");};
_.aE.Object.defineProperties(m0.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return n_(this.token)}}});
_.aE.Object.defineProperties(m0,{JSC$12222_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return Ds.JSC$12226_numberOfKeys}}});
var pqs=function(){this._allKeys=new Map};
pqs.prototype.get=function(t){if(t instanceof m0)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var E=new m0(t,m0.JSC$12222_numberOfKeys);this._allKeys.set(t,E);return E};
_.aE.Object.defineProperties(pqs.prototype,{JSC$12226_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var Ds=new pqs;var C9Y=function(t,E,p){this.key=t;this.optional=E;this.visibility=p},UUt=function(t){return new C9Y(t,!1,null)},Al8=[],mUi=function(t,E,p){this.key=t;
this.resolvedFactories=E;this.multiProvider=p},Ycl=function(t,E,p,U){this.factory=t;
this.dependencies=E;this.providerClass=p;this.providerValue=U};var bZ={},iZ=function(t,E){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=E===void 0?null:E;t=_.M(t);for(E=t.next();!E.done;E=t.next())this.addProvider(E.value)};
_.Y=iZ.prototype;_.Y.addProvider=function(t){this.keyIdToIndex.set(t.key.id,this.keyIds.length);this.providers.push(t);this.keyIds.push(t.key.id);this.objs.push(bZ)};
_.Y.resolve=function(t,E){E=E===void 0?vZo:E;return this._getByKey(Ds.get(NG(t)),null,E)};
_.Y._new=function(t){if(this.constructedKeyIds[t.key.id])throw SWO(this,t.key);this.constructedKeyIds[t.key.id]=!0;return this._instantiateProvider(t)};
_.Y._instantiateProvider=function(t){if(t.multiProvider){for(var E=Array(t.resolvedFactories.length),p=0;p<t.resolvedFactories.length;++p)E[p]=this._instantiate(t,t.resolvedFactories[p]);return E}return this._instantiate(t,t.resolvedFactories[0])};
_.Y._instantiate=function(t,E){var p=this,U=E.factory;try{var x=E.dependencies.map(function(m){return p._getByReflectiveDependency(m)})}catch(m){throw m.addKey&&m.addKey(this,t.key),m;
}try{var A=U.apply(null,_.KB(x))}catch(m){throw cBK(this,m,t.key);}return A};
_.Y._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:vZo)};
_.Y._getByKey=function(t,E,p){return t===Uq3?this:E instanceof VEL?this._getByKeySelf(t,p):this._getByKeyDefault(t,p,E)};
_.Y._getObjByKeyId=function(t){for(var E=0;E<this.keyIds.length;E++)if(this.keyIds[E]===t)return this.objs[E]===bZ&&(this.objs[E]=this._new(this.providers[E])),this.objs[E];return bZ};
_.Y._throwOrNull=function(t,E){if(E!==vZo)return E;throw yB_(this,t);};
_.Y._getByKeySelf=function(t,E){var p=this._getObjByKeyId(t.id);return p!==bZ?p:this._throwOrNull(t,E)};
_.Y._getByKeyDefault=function(t,E,p){for(var U=p=p instanceof Qu_?this.parent:this;p instanceof iZ;){var x=p._getObjByKeyId(t.id);if(x!==bZ)return x;p=p.parent}x=void 0;if(p!==null)try{var A=p.resolve(t.token,E);if(A!==bZ)return A}catch(m){x=m}if(!(U instanceof iZ&&rlL(t.token))){if(x)throw x;return this._throwOrNull(t,E)}for(A=U;A.parent instanceof iZ;)A=A.parent;A.addProvider(bQK({provide:t.token,useClass:t.token}));return A.resolve(t.token,E)};
_.Y.toString=function(){return this.displayName};
_.aE.Object.defineProperties(iZ.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+juJ(this,function(t){return' "'+t.key.displayName+'" '}).join(", ")+"])"}}});
var Uq3=Ds.get(NG(yyG));(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 xq3=globalThis.XRegExp;var Ah0=-1,YtZ=function(t){addEventListener("pageshow",function(E){E.persisted&&(Ah0=E.timeStamp,t(E))},!0)};var mqm=function(t,E,p){var U=MMZ,x,A;return function(m){if(E.value>=0&&(m||p)){var b;if((A=E.value-((b=x)!=null?b:0))||x===void 0)x=E.value,E.delta=A,m=E.value,E.rating=m>U[1]?"poor":m>U[0]?"needs-improvement":"good",t(E)}}};var b1X=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})};var i13=function(){var t=performance.getEntriesByType("navigation")[0];if(t&&t.responseStart>0&&t.responseStart<performance.now())return t};var qtX=function(){var t,E;return(E=(t=i13())==null?void 0:t.activationStart)!=null?E:0};var qw=-1,H1s=new Set,fyW=function(t){if(document.visibilityState==="hidden"){if(t.type==="visibilitychange")for(var E=_.M(H1s),p=E.next();!p.done;p=E.next())p=p.value,p();isFinite(qw)||(qw=t.type==="visibilitychange"?t.timeStamp:0,removeEventListener("prerenderingchange",fyW,!0))}},B9X=function(){if(qw<0){var t=qtX(),E,p;
qw=(p=document.prerendering?void 0:(E=globalThis.performance.getEntriesByType("visibility-state").filter(function(U){return U.name==="hidden"&&U.startTime>t})[0])==null?void 0:E.startTime)!=null?p:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
addEventListener("visibilitychange",fyW,!0);addEventListener("prerenderingchange",fyW,!0);YtZ(function(){setTimeout(function(){qw=document.visibilityState!=="hidden"||document.prerendering?Infinity:0})})}return{get firstHiddenTime(){return qw},
onHidden:function(U){H1s.add(U)}}};var wqG=function(){var t=t===void 0?-1:t;var E=i13(),p="navigate";Ah0>=0?p="back-forward-cache":E&&(document.prerendering||qtX()>0?p="prerender":document.wasDiscarded?p="restore":E.type&&(p=E.type.replace(/_/g,"-")));return{name:"LCP",value:t,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:p}};var dUE=new WeakMap;var Rr3=function(t){var E=E===void 0?{}:E;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var p=new PerformanceObserver(function(U){Promise.resolve().then(function(){t(U.getEntries())})});
p.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},E));return p}}catch(U){}};var VMG=function(t){var E=!1;return function(){E||(t(),E=!0)}};var Qxo=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()};var C3Z=function(t){var E=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?t():(t=VMG(t),addEventListener("visibilitychange",t,{once:!0,capture:!0}),E(function(){t();removeEventListener("visibilitychange",t,{capture:!0})}))};var koE=function(){};
koE.prototype._processEntry=function(t){var E;(E=this._onBeforeProcessingEntry)==null||E.call(this,t)};var MMZ=[2500,4E3],sML=function(t){var E=E===void 0?{}:E;Qxo(function(){var p=B9X(),U=wqG(),x=uHj(E),A=function(Q){E.reportAllChanges||(Q=Q.slice(-1));Q=_.M(Q);for(var C=Q.next();!C.done;C=Q.next())C=C.value,x._processEntry(C),C.startTime<p.firstHiddenTime&&(U.value=Math.max(C.startTime-qtX(),0),U.entries=[C],b())},m=Rr3(A);
if(m){var b=mqm(t,U,E.reportAllChanges);for(var f=VMG(function(){A(m.takeRecords());m.disconnect();b(!0)}),B=function(Q){Q.isTrusted&&(C3Z(f),removeEventListener(Q.type,B,{capture:!0}))},R=_.M(["keydown",
"click","visibilitychange"]),V=R.next();!V.done;V=R.next())addEventListener(V.value,B,{capture:!0});YtZ(function(Q){U=wqG();b=mqm(t,U,E.reportAllChanges);b1X(function(){U.value=performance.now()-Q.timeStamp;b(!0)})})}})};var jxr;var rho;_.T=function(){return rho!==void 0?rho:rho=document.createElement("template")};
document.head.appendChild(_.T().content);var kHZ;_.yx({_template:function(){if(kHZ!==void 0)return kHZ;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);
var E=t.content,p=E.insertBefore;jxr===void 0&&(jxr=document.createElement("template"));var U=jxr;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return kHZ=t},
is:"tp-yt-app-toolbar"});var dqs;var u2p;_.HU=function(){};
_.HU=_.yx({_template:function(){if(u2p!==void 0)return u2p;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;dqs===void 0&&(dqs=document.createElement("template"));var U=dqs;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return u2p=t},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.HU.instance||(_.HU.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(t){this._text===t&&(t+="\u00a0");this._text="";this.async(function(){this._text=t},this.timeout)},
_onIronAnnounce:function(t){t.detail&&t.detail.text&&this.announce(t.detail.text)}});
_.HU.instance=null;_.HU.requestAvailability=function(){_.HU.instance||(_.HU.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.HU.instance):document.addEventListener("load",function(){document.body.appendChild(_.HU.instance)})};var JhZ;var Iyr;/*

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

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 fC,erT,FAr;fC=Element.prototype;erT=fC.matches||fC.matchesSelector||fC.mozMatchesSelector||fC.msMatchesSelector||fC.oMatchesSelector||fC.webkitMatchesSelector;FAr=function(){};
_.lym=function(t){var E=zr4,p=[];return E._collectTabbableNodes(t,p)?E._sortByTabIndex(p):p};
_.Y=FAr.prototype;_.Y.isFocusable=function(t){return erT.call(t,"input, select, textarea, button, object")?erT.call(t,":not([disabled])"):erT.call(t,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.Y._normalizedTabIndex=function(t){return this.isFocusable(t)?(t=t.getAttribute("tabindex")||0,Number(t)):-1};
_.Y._collectTabbableNodes=function(t,E){if(t.nodeType!==Node.ELEMENT_NODE||!this._isVisible(t))return!1;var p=this._normalizedTabIndex(t),U=p>0;p>=0&&E.push(t);if(t.localName==="content"||t.localName==="slot")p=_.sm(t).getDistributedNodes();else{var x;p=((x=_.sm(t).shadowRoot)!=null?x:_.sm(t.root||t)).children}for(t=0;t<p.length;t++)U=this._collectTabbableNodes(p[t],E)||U;return U};
_.Y._isVisible=function(t){var E=t.style;return E.visibility!=="hidden"&&E.display!=="none"?(E=window.getComputedStyle(t),E.visibility!=="hidden"&&E.display!=="none"):!1};
_.Y._sortByTabIndex=function(t){var E=t.length;if(E<2)return t;var p=Math.ceil(E/2);E=this._sortByTabIndex(t.slice(0,p));t=this._sortByTabIndex(t.slice(p));return this._mergeSortByTabIndex(E,t)};
_.Y._mergeSortByTabIndex=function(t,E){for(var p=[];t.length>0&&E.length>0;)this._hasLowerTabOrder(t[0],E[0])?p.push(E.shift()):p.push(t.shift());return p.concat(t,E)};
_.Y._hasLowerTabOrder=function(t,E){t=Math.max(t.tabIndex,0);E=Math.max(E.tabIndex,0);return t===0||E===0?E>t:t>E};
var zr4=new FAr;var GHs;var nCr;_.yx({_template:function(){if(nCr!==void 0)return nCr;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;GHs===void 0&&(GHs=document.createElement("template"));var U=GHs;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return nCr=t},
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&&_.sm(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.sm(this.parentNode).removeChild(this)},
_onTransitionend:function(t){t&&t.target===this&&this.complete()},
_openedChanged:function(t){t?this.prepare():(t=window.getComputedStyle(this),t.transitionDuration!=="0s"&&t.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 BU=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;fo(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)};
BU.prototype._bringOverlayAtIndexToFront=function(t){var E=this._overlays[t];if(E){var p=this._overlays.length-1,U=this._overlays[p];U&&this._shouldBeBehindOverlay(E,U)&&p--;if(!(t>=p)){U=Math.max(this._getZ(_.N9s(this)),this._minimumZ);for(this._getZ(E)<=U&&this._applyOverlayZ(E,U);t<p;)this._overlays[t]=this._overlays[t+1],t++;this._overlays[p]=E}}};
BU.prototype.addOverlay=function(t){var E=this._overlays.indexOf(t);if(E>=0)this._bringOverlayAtIndexToFront(E);else{E=this._overlays.length;var p=this._overlays[E-1],U=Math.max(this._getZ(p),this._minimumZ),x=this._getZ(t);p&&this._shouldBeBehindOverlay(t,p)&&(this._applyOverlayZ(p,U),E--,U=Math.max(this._getZ(this._overlays[E-1]),this._minimumZ));x<=U&&this._applyOverlayZ(t,U);this._overlays.splice(E,0,t)}this.trackBackdrop()};
BU.prototype.removeOverlay=function(t){t=this._overlays.indexOf(t);t!==-1&&(this._overlays.splice(t,1),this.trackBackdrop())};
_.N9s=function(t){return t._overlays[t._overlays.length-1]};
_.Y=BU.prototype;_.Y.trackBackdrop=function(){var t=this._overlayWithBackdrop();if(t||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(t)-1,this.backdropElement.opened=!!t,this.backdropElement.prepare()};
_.Y._overlayWithBackdrop=function(){for(var t=this._overlays.length-1;t>=0;t--)if(this._overlays[t].withBackdrop)return this._overlays[t]};
_.Y._getZ=function(t){var E=this._minimumZ;if(t){var p,U,x=Number(((p=t.hostElement)!=null?p:t).style.zIndex||window.getComputedStyle((U=t.hostElement)!=null?U:t).zIndex);x===x&&(E=x)}return E};
_.Y._setZ=function(t,E){var p;((p=t.hostElement)!=null?p:t).style.zIndex=E};
_.Y._applyOverlayZ=function(t,E){this._setZ(t,E+2)};
_.Y._overlayInPath=function(t){t=t||[];for(var E=0;E<t.length;E++){var p=void 0;if(((p=t[E].polymerController)!=null?p:t[E])._manager===this)return t[E]}};
_.Y._onCaptureClick=function(t){var E=this._overlays.length-1;if(E!==-1)for(var p=_.sm(t).path,U,x;(U=this._overlays[E])&&this._overlayInPath(p)!==((x=U.hostElement)!=null?x:U);)if(U._onCaptureClick(t),U.allowClickThrough)E--;else break};
_.Y._onCaptureFocus=function(t){var E=_.N9s(this);E&&E._onCaptureFocus(t)};
_.Y._onCaptureKeyDown=function(t){var E=_.N9s(this);E&&(_.ou.keyboardEventMatchesKeys(t,"esc")?E._onCaptureEsc(t):_.ou.keyboardEventMatchesKeys(t,"tab")&&E._onCaptureTab(t))};
_.Y._shouldBeBehindOverlay=function(t,E){return!t.alwaysOnTop&&E.alwaysOnTop&&!E.contains(t)};
_.aE.Object.defineProperties(BU.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 t=document.activeElement;t&&t instanceof Element!==!1||(t=document.body);for(;t.root&&_.sm(t.root).activeElement;)t=_.sm(t.root).activeElement;return t}}});
_.wa=new BU;var Jl0=0,IxL=0,gFl=null,ZQO=[],L_=["wheel","mousewheel","DOMMouseScroll"],OQ0;_.r("web_no_lock_on_touchstart_killswitch")&&(L_.push("touchstart"),L_.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;_.RL={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:_.wa},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var t;return this._focusedChild||_.sm((t=this.hostElement)!=null?t:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var t;return _.lym((t=this.hostElement)!=null?t: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 t;this._observer=_.sm((t=this.hostElement)!=null?t:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var t;_.sm((t=this.hostElement)!=null?t:this).unobserveNodes(this._observer)}this._observer=null;for(var E in this.__rafs)this.__rafs[E]!==null&&cancelAnimationFrame(this.__rafs[E]);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(t){this.fire("iron-overlay-canceled",t,{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 t;((t=this.hostElement)!=null?t:this).style.outline="none";var E;((E=this.hostElement)!=null?E:this).style.display="none"}},
_openedChanged:function(t){if(t){var E;((E=this.hostElement)!=null?E:this).removeAttribute("aria-hidden")}else{var p;((p=this.hostElement)!=null?p: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 t;if(this.withBackdrop&&!((t=this.hostElement)!=null?t:this).hasAttribute("tabindex")){var E;((E=this.hostElement)!=null?E:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var p;((p=this.hostElement)!=null?p: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 t;((t=this.hostElement)!=null?t:this).style.display="none";var E;((E=this.hostElement)!=null?E:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var t,E;((t=this.hostElement)!=null?t:this).style.transition=((E=this.hostElement)!=null?E:this).style.webkitTransition="none";var p,U;((p=this.hostElement)!=null?p:this).style.transform=((U=this.hostElement)!=null?U:this).style.webkitTransform="none";var x;((x=this.hostElement)!=null?x:this).style.display=""},
_finishPositioning:function(){var t;((t=this.hostElement)!=null?t:this).style.display="none";this.scrollTop=this.scrollTop;var E,p;((E=this.hostElement)!=null?E:this).style.transition=((p=this.hostElement)!=null?p:this).style.webkitTransition="";var U,x;((U=this.hostElement)!=null?U:this).style.transform=((x=this.hostElement)!=null?x:this).style.webkitTransform="";var A;((A=this.hostElement)!=null?A:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var t=this._manager.deepActiveElement,E;if(!(E=t===document.body))a:{for(;t;t=t.assignedSlot||t.parentNode||t.host)if(t===this){E=!0;break a}E=!1}E&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(t){this.noCancelOnOutsideClick||this.cancel(t)},
_onCaptureFocus:function(t){if(this.withBackdrop){var E=_.sm(t).path;E.indexOf(this)===-1?(t.stopPropagation(),this._applyFocus()):this._focusedChild=E[0]}},
_onCaptureEsc:function(t){this.noCancelOnEscKey||this.cancel(t)},
_onCaptureTab:function(t){if(this.withBackdrop){this.__ensureFirstLastFocusables();var E=t.shiftKey,p=E?this.__firstFocusableNode:this.__lastFocusableNode;E=E?this.__lastFocusableNode:this.__firstFocusableNode;if(p===E)p=!0;else{var U=this._manager.deepActiveElement;p=U===p||U===this}p&&(t.preventDefault(),this._focusedChild=E,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 t=this._focusableNodes;this.__firstFocusableNode=t[0];this.__lastFocusableNode=t[t.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(t,E){var p=this.__rafs;p[t]!==null&&cancelAnimationFrame(p[t]);p[t]=requestAnimationFrame(function(){p[t]=null;E.call(this)}.bind(this))},
__updateScrollObservers:function(t,E,p){t&&E&&this.__isValidScrollAction(p)?(p==="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),OQ0=_._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()):(t=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),t!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(t,1),OQ0=_._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(Co)for(var t=this;t;)t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host&&this.__rootNodes.push(t),t=t.host||t.assignedSlot||t.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(E){E.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(t){t.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(t){return t==="lock"||t==="refit"||t==="cancel"},
__onCaptureScroll:function(t){if(!(this.__isAnimating||_.sm(t).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(t)}},
__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)}};
_.VV=[ayp,_.Ev,_.RL];_.yx({_template:function(){if(Xqm!==void 0)return Xqm;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;O13===void 0&&(O13=document.createElement("template"));var U=O13;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return Xqm=t},
is:"tp-yt-iron-dropdown",behaviors:[_.W$,_.ou,_.VV,tho],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 t=_.sm(this.$.content).getDistributedNodes(),E=0,p=t.length;E<p;E++)if(t[E].nodeType===Node.ELEMENT_NODE)return t[E]},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(),_.RL._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.RL._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.RL._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var t=this.containedElement,E=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),p=0;p<E.length;p++)E[p].node=t;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(t){this._readied&&(t?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var t=this.focusTarget||this.containedElement;t&&this.opened&&!this.noAutoFocus?t.focus():_.RL._applyFocus.apply(this,arguments)}});var Dqs;var sxZ;/*

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 LAp=new _.yA({type:"iconset"});
_.yx({_template:function(){if(sxZ!==void 0)return sxZ;var t=document.createElement("template");_.J(t,"\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");t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;Dqs===void 0&&(Dqs=document.createElement("template"));
var U=Dqs;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return sxZ=t},
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(t){t=(t||"").split(":");this._iconName=t.pop();this._iconsetName=t.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&&_.sm(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=LAp.byKey(this._iconsetName)){var t=this._iconset.applyIcon(this,this._iconName,this.theme);t&&t.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,_.sm(this.root).appendChild(this._img)}});var P3T;var T9r;_.yx({_template:function(){if(T9r!==void 0)return T9r;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);
var E=t.content,p=E.insertBefore;P3T===void 0&&(P3T=document.createElement("template"));var U=P3T;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return T9r=t},
is:"tp-yt-iron-input",behaviors:[_.c$],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(){_.HU.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.sm(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.sm(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 t=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":t=/[0-9.,e-]/}return t},_bindValueChanged:function(t,E){E&&(t===void 0?E.value=null:t!==E.value&&(this.inputElement.value=t),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:t}))},
_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(t){var E=t.keyCode==19||t.keyCode==20||t.keyCode==45||t.keyCode==46||t.keyCode==144||t.keyCode==145||t.keyCode>32&&t.keyCode<41||t.keyCode>111&&t.keyCode<124;return!(t.keyCode==8||t.keyCode==9||t.keyCode==13||t.keyCode==27)&&!(t.charCode==0&&E)},
_onKeypress:function(t){if(this.allowedPattern||this.inputElement.type==="number"){var E=this._patternRegExp;if(E&&!(t.metaKey||t.ctrlKey||t.altKey)){this._patternAlreadyChecked=!0;var p=String.fromCharCode(t.charCode);this._isPrintable(t)&&!E.test(p)&&(t.preventDefault(),this._announceInvalidCharacter("Invalid character "+p+" not entered."))}}},
_checkPatternValidity:function(){var t=this._patternRegExp;if(!t)return!0;for(var E=0;E<this.inputElement.value.length;E++)if(!t.test(this.inputElement.value[E]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var t=this.inputElement.checkValidity();t&&(this.required&&this.bindValue===""?t=!1:this.hasValidator()&&(t=_.c$.validate.call(this,this.bindValue)));this.invalid=!t;this.fire("iron-input-validate");return t},
_announceInvalidCharacter:function(t){this.fire("iron-announce",{text:t})},
_computeValue:function(t){return t}});var oCm;var WAX;var $qW=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),KAf=$qW&&$qW[1]>=8;
_.yx({_template:function(){if(WAX!==void 0)return WAX;var t=document.createElement("template");_.J(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div aria-label="[[listAriaLabel]]" id="items" role="list" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;oCm===void 0&&(oCm=document.createElement("template"));var U=oCm;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return WAX=t},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0},listAriaLabel:{type:String}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[WvE,_.Ev,_.cNX,Tnf],_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 _.sm(_.sm(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var t=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,t-this._physicalCount)},set _virtualStart(t){t=this._clamp(t,0,this._maxVirtualStart);this.grid&&(t-=t%this._itemsPerRow);this._virtualStartVal=t},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(t){t%=this._physicalCount;t<0&&(t=this._physicalCount+t);this.grid&&(t-=t%this._itemsPerRow);this._physicalStartVal=t},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(t){this._physicalCountVal=t},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 t=this._firstVisibleIndexVal;if(t==null){var E=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
t=this._iterateItems(function(p,U){E+=this._getPhysicalSizeIncrement(p);if(E>this._scrollPosition)return this.grid?U-U%this._itemsPerRow:U;if(this.grid&&this._virtualCount-1===U)return U-U%this._itemsPerRow})||0}return t},
get lastVisibleIndex(){var t=this._lastVisibleIndexVal;if(t==null){if(this.grid)t=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var E=this._physicalTop+this._scrollOffset;this._iterateItems(function(p,U){E<this._scrollBottom&&(t=U);E+=this._getPhysicalSizeIncrement(p)})}this._lastVisibleIndexVal=t}return t},
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,_.yl);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(t){this.style.webkitOverflowScrolling=t===this?"touch":"";this.style.overflowY=t===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.yl)},
updateViewportBoundaries:function(){var t=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10);this._isRTL=t.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var t=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),E=t-this._scrollPosition,p=E>=0;this._scrollPosition=t;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(E)>this._physicalSize&&this._physicalSize>0?(E-=this._scrollOffset,p=Math.round(E/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=p,this._physicalStart+=p,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(t=this._getReusables(p),p?(this._physicalTop=t.physicalTop,this._virtualStart+=t.indexes.length,this._physicalStart+=t.indexes.length):(this._virtualStart=this._virtualStart-t.indexes.length,this._physicalStart=this._physicalStart-t.indexes.length),this._update(t.indexes,p?null:t.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),RE))},
_getReusables:function(t){var E=[],p=this._hiddenContentSize*this._ratio,U=this._virtualStart,x=this._virtualEnd,A=this._physicalCount,m=this._physicalTop+this._scrollOffset;var b=this._physicalBottom+this._scrollOffset;var f=this._scrollPosition,B=this._scrollBottom;if(t){var R=this._physicalStart;b=f-m}else R=this._physicalEnd,b-=B;for(;;){var V=this._getPhysicalSizeIncrement(R);b-=V;if(E.length>=A||b<=p)break;if(t){if(x+E.length+1>=this._virtualCount)break;if(m+V>=f-this._scrollOffset)break;E.push(R);
m+=V;R=(R+1)%A}else{if(U-E.length<=0)break;if(m+this._physicalSize-V<=B)break;E.push(R);m-=V;R=R===0?A-1:R-1}}return{indexes:E,physicalTop:m-this._scrollOffset}},
_update:function(t,E){if(!(t&&t.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(t);this._updateMetrics(t);if(E)for(;E.length;)t=E.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(t);this._positionItems();this._updateScrollerSize()}},
_createPool:function(t){this._ensureTemplatized();var E,p=Array(t);for(E=0;E<t;E++){var U=this.stamp(null);p[E]=U.root.querySelector("*");this._itemsParent.appendChild(U.root)}return p},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(t){t=this._clamp(this._physicalCount+t,3,this._virtualCount-this._virtualStart);t=this._convertIndexToCompleteRow(t);if(this.grid){var E=t%this._itemsPerRow;E&&t-E<=this._physicalCount&&(t+=this._itemsPerRow);t-=E}t-=this._physicalCount;E=Math.round(this._physicalCount*.5);if(!(t<0)){if(t>0){E=window.performance.now();[].push.apply(this._physicalItems,this._createPool(t));for(var p=0;p<t;p++)this._physicalSizes.push(0);this._physicalCount+=t;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=t);this._update();this._templateCost=(window.performance.now()-E)/t;E=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||E===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,E)),INr):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,E),RE))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var t=this._getReusables(!0);this._physicalTop=t.physicalTop;this._virtualStart+=t.indexes.length;this._physicalStart+=t.indexes.length;this._update(t.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 t={__key__:!0};t[this.as]=!0;t[this.indexAs]=!0;t[this.selectedAs]=!0;t.tabIndex=!0;this._instanceProps=t;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(t,E){typeof E!=="undefined"&&(this.notifyResize(),_.Lm(),t&&this._updateGridMetrics())},
_itemsChanged:function(t){if(t.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,
_.yl);else if(t.path==="items.splices"){this._adjustVirtualIndex(t.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(t.value.indexSplices.some(function(p){return p.addedCount>0||p.removed.length>0})){var E=this._getActiveElement();
this.contains(E)&&E.blur()}t=t.value.indexSplices.some(function(p){return p.index+p.addedCount>=this._virtualStart&&p.index<=this._virtualEnd},this);
this._isClientFull()&&!t||this._debounce("_render",this._render,_.yl)}else t.path!=="items.length"&&this._forwardItemPath(t.path,t.value)},
_forwardItemPath:function(t,E){t=t.slice(6);var p=t.indexOf(".");p===-1&&(p=t.length);var U,x=this.modelForElement(this._offscreenFocusedItem),A=parseInt(t.substring(0,p),10);if(U=this._isIndexRendered(A)){var m=this._getPhysicalIndex(A);var b=this.modelForElement(this._physicalItems[m])}else x&&(b=x);b&&b[this.indexAs]===A&&(t=t.substring(p+1),t=this.as+(t?"."+t:""),b._setPendingPropertyOrPath(t,E,!1,!0),b._flushProperties&&b._flushProperties(),U&&(this._updateMetrics([m]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(t){t.forEach(function(E){E.removed.forEach(this._removeItem,this);E.index<this._virtualStart&&(E=Math.max(E.addedCount-E.removed.length,E.index-this._virtualStart),this._virtualStart+=E,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=E))},this)},
_removeItem:function(t){this.$.selector.deselect(t);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===t&&this._removeFocusedItem()},
_iterateItems:function(t,E){var p,U;if(arguments.length===2&&E)for(U=0;U<E.length;U++){var x=E[U];var A=this._computeVidx(x);if((p=t.call(this,x,A))!=null)return p}else{x=this._physicalStart;for(A=this._virtualStart;x<this._physicalCount;x++,A++)if((p=t.call(this,x,A))!=null)return p;for(x=0;x<this._physicalStart;x++,A++)if((p=t.call(this,x,A))!=null)return p}},
_computeVidx:function(t){return t>=this._physicalStart?this._virtualStart+(t-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+t},
_assignModels:function(t){this._iterateItems(function(E,p){var U=this._physicalItems[E],x=this.items&&this.items[p];if(x!=null){var A=this.modelForElement(U);A.__key__=null;this._forwardProperty(A,this.as,x);this._forwardProperty(A,this.selectedAs,this.$.selector.isSelected(x));this._forwardProperty(A,this.indexAs,p);this._forwardProperty(A,"tabIndex",this._focusedVirtualIndex===p?0:-1);this._physicalIndexForKey[A.__key__]=E;A._flushProperties&&A._flushProperties(!0);U.removeAttribute("hidden")}else U.setAttribute("hidden",
"")},t)},
_updateMetrics:function(t){_.Lm();var E=0,p=0,U=this._physicalAverageCount,x=this._physicalAverage;this._iterateItems(function(A){p+=this._physicalSizes[A];this._physicalSizes[A]=this._physicalItems[A].offsetHeight;E+=this._physicalSizes[A];this._physicalAverageCount+=this._physicalSizes[A]?1:0},t);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(p=this._itemsPerRow===1?p:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+E-p,this._itemsPerRow=1);this._physicalAverageCount!==U&&(this._physicalAverage=Math.round((x*U+E)/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 t=this._physicalTop;if(this.grid){var E=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(p,U){var x=Math.floor(U%this._itemsPerRow*this._itemWidth+E);this._isRTL&&(x*=-1);this.translate3d(x+"px",t+"px",0,this._physicalItems[p]);this._shouldRenderNextRow(U)&&(t+=this._rowHeight)})}else this._iterateItems(function(p){this.translate3d(0,t+"px",0,this._physicalItems[p]);
t+=this._physicalSizes[p]})},
_getPhysicalSizeIncrement:function(t){return this.grid?this._computeVidx(t)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[t]},
_shouldRenderNextRow:function(t){return t%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var t=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(t!==0){this._physicalTop=this._physicalTop-t;var E=this._scrollPosition;!KAf&&E>0&&this._resetScrollPosition(E-t)}},
_resetScrollPosition:function(t){this.scrollTarget&&t>=0&&(this._scrollPosition=this._scrollTop=t)},
_updateScrollerSize:function(t){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((t=(t=(t=t||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(t){return this.scrollToIndex(this.items.indexOf(t))},
scrollToIndex:function(t){if(!(typeof t!=="number"||t<0||t>this.items.length-1)&&(_.Lm(),this._physicalCount!==0)){t=this._clamp(t,0,this._virtualCount-1);if(!this._isIndexRendered(t)||t>=this._maxVirtualStart)this._virtualStart=this.grid?t-this._itemsPerRow*2:t-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var E=this._physicalStart,p=this._virtualStart,U=0,x=this._hiddenContentSize;p<t&&
U<=x;)U+=this._getPhysicalSizeIncrement(E),E=(E+1)%this._physicalCount,p++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+U);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)},_.yl)},
selectItem:function(t){return this.selectIndex(this.items.indexOf(t))},
selectIndex:function(t){if(!(t<0||t>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(t)){var E=this.modelForElement(this._physicalItems[this._getPhysicalIndex(t)]);E&&(E[this.selectedAs]=!0);this.updateSizeForIndex(t)}this.$.selector.selectIndex(t)}},
deselectItem:function(t){return this.deselectIndex(this.items.indexOf(t))},
deselectIndex:function(t){t<0||t>=this._virtualCount||(this._isIndexRendered(t)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(t)])[this.selectedAs]=!1,this.updateSizeForIndex(t)),this.$.selector.deselectIndex(t))},
toggleSelectionForItem:function(t){return this.toggleSelectionForIndex(this.items.indexOf(t))},
toggleSelectionForIndex:function(t){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(t):this.$.selector.isSelected(this.items[t]))?this.deselectIndex(t):this.selectIndex(t)},
clearSelection:function(){this._iterateItems(function(t){this.modelForElement(this._physicalItems[t])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(t){(t?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(t){var E=this.modelForElement(t.target);if(E){var p=_.sm(t).path[0];t=this._getActiveElement();var U=this._physicalItems[this._getPhysicalIndex(E[this.indexAs])];if(p.localName!=="input"&&p.localName!=="button"&&p.localName!=="select"){p=E.tabIndex;E.tabIndex=-100;var x=t?t.tabIndex:-1;E.tabIndex=p;t&&U!==t&&U.contains(t)&&x!==-100||this.toggleSelectionForItem(E[this.as])}}},
_multiSelectionChanged:function(t){this.clearSelection();this.$.selector.multi=t},
updateSizeForItem:function(t){return this.updateSizeForIndex(this.items.indexOf(t))},
updateSizeForIndex:function(t){if(!this._isIndexRendered(t))return null;this._updateMetrics([this._getPhysicalIndex(t)]);this._positionItems();return null},
_manageFocus:function(){var t=this._focusedVirtualIndex;t>=0&&t<this._virtualCount?this._isIndexRendered(t)?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(t){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(t/this._itemsPerRow)*this._itemsPerRow:t},
_isIndexRendered:function(t){return t>=this._virtualStart&&t<=this._virtualEnd},
_isIndexVisible:function(t){return t>=this.firstVisibleIndex&&t<=this.lastVisibleIndex},
_getPhysicalIndex:function(t){return(this._physicalStart+(t-this._virtualStart))%this._physicalCount},
focusItem:function(t){this._focusPhysicalItem(t)},
_focusPhysicalItem:function(t){if(!(t<0||t>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(t)||this.scrollToIndex(t);var E=this._physicalItems[this._getPhysicalIndex(t)],p=this.modelForElement(E),U;p.tabIndex=-100;E.tabIndex===-100&&(U=E);U||(U=_.sm(E).querySelector('[tabindex="-100"]'));p.tabIndex=0;this._focusedVirtualIndex=t;U&&U.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 t=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var E=this.stamp(null);this._focusBackfillItem=E.root.querySelector("*");this._itemsParent.appendChild(E.root)}this._offscreenFocusedItem=this._physicalItems[t];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[t]=this._focusBackfillItem;this._focusedPhysicalIndex=t;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var t=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),E=this._physicalItems[t];if(E){var p=this.modelForElement(E),U=this.modelForElement(this._offscreenFocusedItem);p[this.as]===U[this.as]?(this._focusBackfillItem=E,p.tabIndex=-1,this._physicalItems[t]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(t){t=this.modelForElement(t.target);var E=this.modelForElement(this._focusedItem),p=this._offscreenFocusedItem!==null,U=this._focusedVirtualIndex;t&&(E===t?this._isIndexVisible(U)||this.scrollToIndex(U):(this._restoreFocusedItem(),E&&(E.tabIndex=-1),t.tabIndex=0,this._focusedVirtualIndex=U=t[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(U),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],p&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(t){switch(t.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&t.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&&t.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(t)}},
_clamp:function(t,E,p){return Math.min(p,Math.max(E,t))},
_debounce:function(t,E,p){this._debouncers=this._debouncers||{};this._debouncers[t]=_.G9(this._debouncers[t],p,E.bind(this));_.nm(this._debouncers[t])},
_forwardProperty:function(t,E,p){t._setPendingProperty(E,p)},
_forwardHostPropV2:function(t,E){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(p){p&&this.modelForElement(p).forwardHostProp(t,E)},this)},
_notifyInstancePropV2:function(t,E,p){dMO(this.as,E)&&(t=t[this.indexAs],E==this.as&&(this.items[t]=p),this.notifyPath(oz(this.as,"items."+t,E),p))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(t,E,p){E.indexOf(this.as+".")===0&&this.notifyPath("items."+t.__key__+"."+E.slice(this.as.length+1),p)},
_forwardParentPath:function(t,E){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(p){p&&this.modelForElement(p).notifyPath(t,E)},this)},
_forwardParentProp:function(t,E){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(p){p&&(this.modelForElement(p)[t]=E)},this)},
_getActiveElement:function(){var t=this._itemsParent.node.domHost;return _.sm(t?t.root:document).activeElement},
_scrollTargetChanged:function(t,E){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(E)if(t==="document")this.scrollTarget=this._doc;else if(typeof t==="string"){var p,U;this.scrollTarget=(E=(U=(p=this.domHost)==null?void 0:p.polymerController)!=null?U:this.domHost)&&E.$?E.$[t]:_.sm(this.ownerDocument).querySelector("#"+t)}else this._isValidScrollTarget()&&(this._oldScrollTarget=t,this._toggleScrollListener(this._shouldHaveListener,t))}});var vCr;var yh3;var Sto=function(t,E,p,U){t-=p;E-=U;return Math.sqrt(t*t+E*E)},ch3=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
X$L.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var hWt=function(t){t.maxRadius=0;t.mouseDownStart=0;t.mouseUpStart=0;t.xStart=0;t.yStart=0;t.xEnd=0;t.yEnd=0;t.containerMetrics=new X$L(t.element)};
ax_.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var t=ch3()-this.mouseDownStart;this.mouseUpStart&&(t-=this.mouseUpElapsed);return t},get mouseUpElapsed(){return this.mouseUpStart?ch3()-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 t=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(t*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-t/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 t=this.radius/(this.containerMetrics.size/2);var E=this.xNow-this.containerMetrics.width/2;var p=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+E+"px, "+p+"px)";this.waveContainer.style.transform="translate3d("+E+"px, "+p+"px, 0)";this.wave.style.webkitTransform="scale("+t+","+t+")";this.wave.style.transform="scale3d("+t+","+t+",1)"},
downAction:function(t){var E=this.containerMetrics.width/2,p=this.containerMetrics.height/2;hWt(this);this.mouseDownStart=ch3();this.center?(this.xStart=E,this.yStart=p):(this.xStart=t?t.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=t?t.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=E,this.yEnd=p);t=this.containerMetrics;E=this.xStart;p=this.yStart;this.maxRadius=Math.max(Sto(E,p,0,0),Sto(E,p,
t.width,0),Sto(E,p,0,t.height),Sto(E,p,t.width,t.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=ch3())},
remove:function(){_.sm(_.sm(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.yx({_template:function(){if(yh3!==void 0)return yh3;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;vCr===void 0&&(vCr=document.createElement("template"));var U=vCr;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return yh3=t},
is:"tp-yt-paper-ripple",behaviors:[_.ou],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(){_.sm(this).parentNode.nodeType==11?this.keyEventTarget=_.sm(this).getOwnerRoot().host:this.keyEventTarget=_.sm(this).parentNode;var t=this.keyEventTarget;this.listen(t,"up","uiUpAction");this.listen(t,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(t){t.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var t=0;t<this.ripples.length;++t)if(!this.ripples[t].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(t){this.noink||this.downAction(t)},
downAction:function(t){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(t),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(t){this.noink||this.upAction(t)},
upAction:function(t){this.holdDown||(this.ripples.forEach(function(E){E.upAction(t)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var t=0;t<this.ripples.length;++t){var E=this.ripples[t];E.isOpacityFullyDecayed&&!E.isRestingAtMaxRadius&&this.removeRipple(E)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var t=new ax_(this);_.sm(this.$.waves).appendChild(t.waveContainer);this.$.background.style.backgroundColor=t.color;this.ripples.push(t);this._setAnimating(!0);return t},
removeRipple:function(t){var E=this.ripples.indexOf(t);E<0||(this.ripples.splice(E,1),t.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var t;for(t=0;t<this.ripples.length;++t){var E=this.ripples[t];E.draw();this.$.background.style.opacity=E.outerOpacity;E.isOpacityFullyDecayed&&!E.isRestingAtMaxRadius&&this.removeRipple(E)}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(t,E){E!==void 0&&(t?this.downAction():this.upAction())}});var QV={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(t){$F._downHandler.call(this,t);this.pressed&&this.ensureRipple(t)},
ensureRipple:function(t){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var E=this._rippleContainer||this.root;E&&_.sm(E).appendChild(this._ripple);if(t){E=_.sm(this._rippleContainer||this);var p=_.sm(t).rootTarget;E.deepContains(p)&&this._ripple.uiDownAction(t)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(t){this.hasRipple()&&(this._ripple.noink=t)}};var tIs={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 t=1;this.disabled?t=0:this.active||this.pressed?t=4:this.receivedFocusFromKeyboard&&(t=3);this._setElevation(t)},
_computeKeyboardClass:function(t){this.toggleClass("keyboard-focus",t)},
_spaceKeyDownHandler:function(t){$F._spaceKeyDownHandler.call(this,t);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(t){$F._spaceKeyUpHandler.call(this,t);this.hasRipple()&&this._ripple.uiUpAction()}},EMo=[s7Z,
_.W$,QV,tIs];_.pfs={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(t){t&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=t)},
_createRipple:function(){var t=QV._createRipple();t.id="ink";t.setAttribute("center","");t.classList.add("circle");return t}};
_.Uh0=[s7Z,_.W$,QV,_.pfs];_.xhX=[_.Uh0,TI4,{_checkedChanged:function(){PmW._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){QV._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var AIo;var Ykr;var MIG=function(){};
_.Y=MIG.prototype;_.Y.registered=function(){};
_.Y.addOwnKeyBinding=function(){};
_.Y.removeOwnKeyBindings=function(){};
_.Y.keyboardEventMatchesKeys=function(){};
_.Y._collectKeyBindings=function(){};
_.Y._prepKeyBindings=function(){};
_.Y._addKeyBinding=function(){};
_.Y._resetKeyEventListeners=function(){};
_.Y._listenKeyEventListeners=function(){};
_.Y._unlistenKeyEventListeners=function(){};
_.Y._onKeyBindingEvent=function(){};
_.Y._triggerKeyHandler=function(){};
_.Y._tapHandler=function(){};
_.Y._focusChanged=function(){};
_.Y._detectKeyboardFocus=function(){};
_.Y._userActivate=function(){};
_.Y._upHandler=function(){};
_.Y._asyncClick=function(){};
_.Y._pressedChanged=function(){};
_.Y._ariaActiveAttributeChanged=function(){};
_.Y._activeChanged=function(){};
_.Y._controlStateChanged=function(){};
_.Y._changedButtonState=function(){};
_.Y._focusBlurHandler=function(){};
_.Y._disabledChanged=function(){};
_.Y._changedControlState=function(){};
_.Y._buttonStateChanged=function(){};
_.Y._downHandler=function(){};
_.Y.ensureRipple=function(){};
_.Y.getRipple=function(){};
_.Y.hasRipple=function(){};
_.Y._createRipple=function(){};
_.Y._noinkChanged=function(){};
_.Y._computeKeyboardClass=function(){};
_.Y._spaceKeyDownHandler=function(){};
_.Y._spaceKeyUpHandler=function(){};
_.Y._setPressed=function(){};
_.Y._setPointerDown=function(){};
_.Y._setReceivedFocusFromKeyboard=function(){};
_.Y._setFocused=function(){};
_.Y._setElevation=function(){};
MIG=_.yx({_template:function(){if(Ykr!==void 0)return Ykr;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);
var E=t.content,p=E.insertBefore;AIo===void 0&&(AIo=document.createElement("template"));var U=AIo;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return Ykr=t},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[EMo],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?tIs._calculateElevation.apply(this):this._setElevation(0)}});var mhr;var bu0;var iuX={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(t){_.r("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(t)},
_onDialogClickWrapped:function(t){_.r("dialog_behavior_no_tap_killswitch")||this._onDialogClick(t)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(t,E){E&&(t?(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(t){if(t){var E;((E=this.hostElement)!=null?E:this).setAttribute("aria-modal","true")}else{var p;((p=this.hostElement)!=null?p:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(t){this.closingReason=this.closingReason||{};this.closingReason.confirmed=t},
_onDialogClick:function(t){for(var E=_.sm(t).path,p=0,U,x=E.indexOf((U=this.hostElement)!=null?U:this);p<x;p++)if(U=E[p],U.hasAttribute&&(U.hasAttribute("dialog-dismiss")||U.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(U.hasAttribute("dialog-confirm"));this.close();t.stopPropagation();break}}},qkZ=[_.VV,
iuX];var HuX=document.createElement("template");_.J(HuX,'<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(HuX.content);var fST=document.createElement("template");_.J(fST,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(fST.content);_.yx({_template:function(){if(bu0!==void 0)return bu0;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);
var E=t.content,p=E.insertBefore;mhr===void 0&&(mhr=document.createElement("template"));var U=mhr;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return bu0=t},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[qkZ,tho],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 BFs;var wfm;_.yx({_template:function(){if(wfm!==void 0)return wfm;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;BFs===void 0&&(BFs=document.createElement("template"));var U=BFs;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return wfm=t},
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 t,E,p;if(((t=window.ShadyDOM)==null?void 0:t.noPatch)!==!0&&((E=window.ShadyDOM)==null?void 0:E.noPatch)!=="on-demand"||((p=this.__shady_parentNode)==null?void 0:p.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(iuX)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var Rar=_.CG(['<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>']),VI0=_.vRr(Rar);VI0.setAttribute("style","display: none;");document.head.appendChild(VI0.content);var Qqo;var CkG;var jqp;var rIT;_.yx({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[pC],configure:function(t){var E=t.node,p=E.getBoundingClientRect().height;return this._effect=new KeyframeEffect(E,[{height:p/2+"px"},{height:p+"px"}],this.timingFromConfig(t))}});
_.yx({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[pC],configure:function(t){var E=t.node,p=E.getBoundingClientRect().width;return this._effect=new KeyframeEffect(E,[{width:p/2+"px"},{width:p+"px"}],this.timingFromConfig(t))}});
_.yx({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[pC],configure:function(t){var E=t.node,p=E.getBoundingClientRect().width;return this._effect=new KeyframeEffect(E,[{width:p+"px"},{width:p-p/20+"px"}],this.timingFromConfig(t))}});
_.yx({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[pC],configure:function(t){var E=t.node,p=E.getBoundingClientRect().height;this.setPrefixedProperty(E,"transformOrigin","0 0");return this._effect=new KeyframeEffect(E,[{height:p+"px",transform:"translateY(0)"},{height:p/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(t))}});var CC={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},kG4=function(){};
_.Y=kG4.prototype;_.Y.registered=function(){};
_.Y.addOwnKeyBinding=function(){};
_.Y.removeOwnKeyBindings=function(){};
_.Y.keyboardEventMatchesKeys=function(){};
_.Y._collectKeyBindings=function(){};
_.Y._prepKeyBindings=function(){};
_.Y._addKeyBinding=function(){};
_.Y._resetKeyEventListeners=function(){};
_.Y._listenKeyEventListeners=function(){};
_.Y._unlistenKeyEventListeners=function(){};
_.Y._onKeyBindingEvent=function(){};
_.Y._triggerKeyHandler=function(){};
_.Y._focusBlurHandler=function(){};
_.Y._changedControlState=function(){};
_.Y._setFocused=function(){};
kG4=_.yx({_template:function(){if(rIT!==void 0)return rIT;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;jqp===void 0&&(jqp=document.createElement("template"));var U=jqp;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return rIT=t},
is:"tp-yt-paper-menu-button",behaviors:[_.ou,_.W$],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:CC.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:CC.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:CC.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 t=_.sm(this.$.content).getDistributedNodes(),E=0,p=t.length;E<p;E++)if(t[E].nodeType===Node.ELEMENT_NODE)return t[E]},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(t,E){t?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):E!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(t){_.W$._disabledChanged.apply(this,arguments);t&&this.opened&&this.close()},
__onIronOverlayCanceled:function(t){var E=this.$.trigger;_.sm(t.detail).path.indexOf(E)>-1&&t.preventDefault()}});
Object.keys(CC).forEach(function(t){kG4[t]=CC[t]});var dhp=_.KQ.IronButtonState,u9W=(0,_.Sx)(HTMLElement);
_.yx({_template:function(){if(CkG!==void 0)return CkG;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;Qqo===void 0&&(Qqo=document.createElement("template"));var U=Qqo;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return CkG=t},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[dhp,_.W$,QV,_.v$,_.c$],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(t){var E=(0,_.yB)(this);E.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:t});E.shadowRoot.appendChild(t);return u9W.prototype._attachDom.call(this,t)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var t=this.contentElement;t&&t.selectedItem&&this._setSelectedItem(t.selectedItem)},
get contentElement(){for(var t=_.sm(this.$.content).getDistributedNodes(),E=0,p=t.length;E<p;E++)if(t[E].nodeType===Node.ELEMENT_NODE)return t[E]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(t){this._setSelectedItem(t.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(t){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t)===this&&this.open()},
_selectedItemChanged:function(t){var E="";t?E=t.label||t.getAttribute("label")||t.textContent.trim():E="";this.value=E;this._setSelectedItemLabel(E)},
_computeMenuVerticalOffset:function(t,E){return E?E:t?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var t=this.opened?"true":"false",E=this.contentElement;E&&E.setAttribute("aria-expanded",t)},
_computeLabelClass:function(t,E,p){var U="label";if(t)p&&(U+=" label-is-hidden");else if(p||E)U+=" label-is-floating";return U},
_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 JIX;var ISm;_.yx({is:"tp-yt-paper-icon-button",_template:function(){if(ISm!==void 0)return ISm;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;JIX===void 0&&(JIX=document.createElement("template"));var U=JIX;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return ISm=t},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.Uh0],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(t,E){var p=this.getAttribute("aria-label");p&&E!=p||this.setAttribute("aria-label",t)}});var gMG;var Zus;_.jl=[s7Z,_.W$,{hostAttributes:{role:"option",tabindex:"0"}}];_.yx({_template:function(){if(Zus!==void 0)return Zus;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;gMG===void 0&&(gMG=document.createElement("template"));var U=gMG;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return Zus=t},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.jl]});var OuZ;var Xfr;var har={attached:function(){this.fire("addon-attached")},
update:function(){}};var aSo=1,eaW=1,FSm=1,za3=[_.W$,_.ou,{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();!Xb&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(t,E){t?t=t+" "+E:t=E;return t},
_onAddonAttached:function(t){t=_.sm(t).rootTarget;if(t.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,t.id);else{var E="paper-input-add-on-"+eaW++;t.id=E;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,E)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(t){_.W$._focusBlurHandler.call(this,t);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var t=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",t);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(t){try{var E=this.inputElement.selectionStart;this.value=t;this.inputElement.selectionStart=E;this.inputElement.selectionEnd=E}catch(p){this.value=t}},
_computeAlwaysFloatLabel:function(t,E){return E||t},
_updateAriaLabelledBy:function(){var t=_.sm(this.root).querySelector("label");if(t){if(t.id)var E=t.id;else E="paper-input-label-"+aSo++,t.id=E;this._ariaLabelledBy=E}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+FSm++)},
_onChange:function(t){this.shadowRoot&&this.fire(t.type,{sourceEvent:t},{node:this,bubbles:t.bubbles,cancelable:t.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var t=document.activeElement;t instanceof HTMLElement&&t!==document.body&&t!==document.documentElement||this._focusableElement.focus()}}}];var lS3;var GGG;_.yx({_template:function(){if(GGG!==void 0)return GGG;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;lS3===void 0&&(lS3=document.createElement("template"));var U=lS3;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return GGG=t},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[har],properties:{_charCounterStr:{type:String,value:"0"}},update:function(t){if(t.inputElement){t.value=t.value||"";var E=t.value.toString().length.toString();t.inputElement.hasAttribute("maxlength")&&(E+="/"+t.inputElement.getAttribute("maxlength"));this._charCounterStr=E}}});var nMr;var NFW;_.yx({_template:function(){if(NFW!==void 0)return NFW;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;nMr===void 0&&(nMr=document.createElement("template"));var U=nMr;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return NFW=t},
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 DD(this.attrForValue)},get _inputElement(){return _.sm(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(t){this._addons||(this._addons=[]);t=t.target;this._addons.indexOf(t)===-1&&(this._addons.push(t),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(t){this._handleValueAndAutoValidate(t.target)},
_onValueChanged:function(t){var E=t.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,E.value===void 0||E.value===""))return;this._handleValueAndAutoValidate(t.target)},
_handleValue:function(t){var E=this._inputElementValue;E||E===0||t.type==="number"&&!t.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:t,value:E,invalid:this.invalid})},
_handleValueAndAutoValidate:function(t){this.autoValidate&&t&&(this.invalid=!(t.validate?t.validate(this._inputElementValue):t.checkValidity()));this._handleValue(t)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(t){if(this._addons)for(var E,p=0;E=this._addons[p];p++)E.update(t)},
_computeInputContentClass:function(t,E,p,U,x){var A="input-content";t?(x&&(A+=" label-is-hidden"),U&&!this.noUnfloatedLabelError&&(A+=" is-invalid")):(t=this.querySelector("label"),E||x?(A+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",U?A+=" is-invalid":p&&(A+=" label-is-highlighted")):(t&&(this.$.labelAndInputContainer.style.position="relative"),U&&!this.noUnfloatedLabelError&&(A+=" is-invalid")));p&&(A+=" focused");return A},
_computeUnderlineClass:function(t,E){var p="underline";E?p+=" is-invalid":t&&(p+=" is-highlighted");return p},
_computeAddOnContentClass:function(t,E){var p="add-on-content";E?p+=" is-invalid":t&&(p+=" is-highlighted");return p}});var DhG;var sqW;_.yx({_template:function(){if(sqW!==void 0)return sqW;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;DhG===void 0&&(DhG=document.createElement("template"));var U=DhG;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return sqW=t},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[har],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(t){this._setInvalid(t.invalid)}});_.yx({is:"tp-yt-paper-input",_template:function(){if(Xfr!==void 0)return Xfr;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;OuZ===void 0&&(OuZ=document.createElement("template"));var U=OuZ;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return Xfr=t},
behaviors:[za3,_.v$],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 LST;var Pks;_.yx({_template:function(){if(Pks!==void 0)return Pks;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=
t.content,p=E.insertBefore;LST===void 0&&(LST=document.createElement("template"));var U=LST;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return Pks=t},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.jl]});var TFZ;var oM4;_.yx({_template:function(){if(oM4!==void 0)return oM4;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);
var E=t.content,p=E.insertBefore;TFZ===void 0&&(TFZ=document.createElement("template"));var U=TFZ;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return oM4=t},
is:"tp-yt-paper-item-body"});var WSs;var $h4;var KST=function(){};
_.Y=KST.prototype;_.Y.indexOf=function(){};
_.Y.selectPrevious=function(){};
_.Y.selectNext=function(){};
_.Y.selectIndex=function(){};
_.Y.forceSynchronousItemUpdate=function(){};
_.Y._checkFallback=function(){};
_.Y._addListener=function(){};
_.Y._removeListener=function(){};
_.Y._activateEventChanged=function(){};
_.Y._updateItems=function(){};
_.Y._selectSelected=function(){};
_.Y._filterItem=function(){};
_.Y._valueToItem=function(){};
_.Y._valueToIndex=function(){};
_.Y._indexToValue=function(){};
_.Y._valueForItem=function(){};
_.Y._observeItems=function(){};
_.Y._itemActivate=function(){};
_.Y.multiChanged=function(){};
_.Y._updateAttrForSelected=function(){};
_.Y._updateSelected=function(){};
_.Y._selectMulti=function(){};
_.Y._selectionChange=function(){};
_.Y._toggleSelected=function(){};
_.Y._valuesToItems=function(){};
_.Y.registered=function(){};
_.Y.addOwnKeyBinding=function(){};
_.Y.removeOwnKeyBindings=function(){};
_.Y.keyboardEventMatchesKeys=function(){};
_.Y._collectKeyBindings=function(){};
_.Y._prepKeyBindings=function(){};
_.Y._addKeyBinding=function(){};
_.Y._resetKeyEventListeners=function(){};
_.Y._listenKeyEventListeners=function(){};
_.Y._unlistenKeyEventListeners=function(){};
_.Y._onKeyBindingEvent=function(){};
_.Y._triggerKeyHandler=function(){};
_.Y.select=function(){};
_.Y._resetTabindices=function(){};
_.Y._updateMultiselectable=function(){};
_.Y._focusWithKeyboardEvent=function(){};
_.Y._clearSearchText=function(){};
_.Y._focusPrevious=function(){};
_.Y._focusNext=function(){};
_.Y._applySelection=function(){};
_.Y._focusedItemChanged=function(){};
_.Y._onIronItemsChanged=function(){};
_.Y._onShiftTabDown=function(){};
_.Y._onFocus=function(){};
_.Y._onUpKey=function(){};
_.Y._onDownKey=function(){};
_.Y._onEscKey=function(){};
_.Y._onKeydown=function(){};
_.Y._activateHandler=function(){};
_.Y._disabledChanged=function(){};
_.Y._setSelectedItem=function(){};
_.Y._setItems=function(){};
_.Y._setSelectedItems=function(){};
_.Y._setFocusedItem=function(){};
KST=_.yx({_template:function(){if($h4!==void 0)return $h4;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);
var E=t.content,p=E.insertBefore;WSs===void 0&&(WSs=document.createElement("template"));var U=WSs;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return $h4=t},
is:"tp-yt-paper-listbox",behaviors:[KFZ],hostAttributes:{role:"listbox"}});var vMr;var yIZ;var Sks={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(t,E){return[t||E?"active":"",E?"cooldown":""].join(" ")},
__activeChanged:function(t,E){this.__setAriaHidden(!t);this.__coolingDown=!t&&E},
__altChanged:function(t){this.setAttribute("aria-label",t||"loading")},
__setAriaHidden:function(t){t?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.yx({_template:function(){if(yIZ!==void 0)return yIZ;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;vMr===void 0&&(vMr=document.createElement("template"));var U=vMr;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return yIZ=t},
is:"tp-yt-paper-spinner",behaviors:[Sks]});var cI0;var tv3;_.yx({_template:function(){if(tv3!==void 0)return tv3;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;cI0===void 0&&(cI0=document.createElement("template"));var U=cI0;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return tv3=t},
is:"tp-yt-paper-spinner-lite",behaviors:[Sks]});var Eip;var p7m;_.yx({_template:function(){if(p7m!==void 0)return p7m;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;Eip===void 0&&(Eip=document.createElement("template"));var U=Eip;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return p7m=t},
is:"tp-yt-paper-tab",behaviors:[_.W$,_.KQ.IronButtonState,QV],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 t=_.sm(this).parentNode;return!!t&&!!t.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(t){if(this.link){var E=this.queryEffectiveChildren("a");E&&t.target!==E&&E.click()}}});var Ux0;var xx0;var AUm=_.CG(['<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>']),YHf=_.vRr(AUm);document.head.appendChild(YHf.content);_.yx({_template:function(){if(xx0!==void 0)return xx0;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;Ux0===void 0&&(Ux0=document.createElement("template"));var U=Ux0;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return xx0=t},
is:"tp-yt-paper-tabs",behaviors:[_.Ev,_.yNW],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(t){_.sm(this).querySelectorAll("tp-yt-paper-tab").forEach(t?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(t){t.setAttribute("noink","")},
_removeNoinkAttribute:function(t){t.removeAttribute("noink")},
_computeScrollButtonClass:function(t,E,p,U){return!E||p?"hidden":t?U?"hidden":"not-visible":""},
_computeTabsContentClass:function(t,E){var p="tabs-content";t&&(p+=" scrollable");if(!t||E)p+=" fit-container";return p},
_computeSelectionBarClass:function(t,E){var p="selection-bar";t?p+=" hidden":E&&(p+=" align-bottom");return p},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(t){return""+t},
_onIronSelect:function(t){this._tabChanged(t.detail.item,this._previousTab);this._previousTab=t.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();_.tv._activateHandler.apply(this,arguments)},
_scheduleActivation:function(t,E){this._pendingActivationItem=t;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,E)},
_delayedActivationHandler:function(){var t=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;t.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(t){t.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(t,E){this.scrollable&&this._affectScroll(E&&-E.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(t){this.$.tabsContainer.scrollLeft+=t;t=this.$.tabsContainer.scrollLeft;this._leftHidden=t===0||this.hideScrollButtons;this._rightHidden=t===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(t,E){if(t){var p=this.$.tabsContent.getBoundingClientRect(),U=p.width,x=t.getBoundingClientRect();p=x.left-p.left;this._pos={width:this._calcPercent(x.width,U),left:this._calcPercent(p,U)};if(this.noSlide||E==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var A=E.getBoundingClientRect();E=this.items.indexOf(E);t=this.items.indexOf(t);this.$.selectionBar.classList.add("expand");
t=E<t;this._isRTL&&(t=!t);t?this._positionBar(this._calcPercent(x.left+x.width-A.left,U)-5,this._left):this._positionBar(this._calcPercent(A.left+A.width-x.left,U)-5,this._calcPercent(p,U)+5);this.scrollable&&this._scrollToSelectedIfNeeded(x.width,p)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(t,E){E-=this.$.tabsContainer.scrollLeft;E<0?this.$.tabsContainer.scrollLeft+=E:(E+=t-this.$.tabsContainer.offsetWidth,E>0&&(this.$.tabsContainer.scrollLeft+=E))},
_calcPercent:function(t,E){return 100*t/E},
_positionBar:function(t,E){t=t||0;E=E||0;this._width=t;this._left=E;this.transform("translateX("+E+"%) scaleX("+t/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var t=this.$.selectionBar.classList;t.contains("expand")?(t.remove("expand"),t.add("contract"),this._positionBar(this._pos.width,this._pos.left)):t.contains("contract")&&t.remove("contract")}});var Mvr;var mx0;_.yx({_template:function(){if(mx0!==void 0)return mx0;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;Mvr===void 0&&(Mvr=document.createElement("template"));var U=Mvr;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return mx0=t},
is:"tp-yt-paper-textarea",behaviors:[za3,_.v$],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(t){this.$.input.textarea.selectionStart=t},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(t){this.$.input.textarea.selectionEnd=t},_ariaLabelledByChanged:function(t){this._focusableElement.setAttribute("aria-labelledby",t)},
_ariaDescribedByChanged:function(t){this._focusableElement.setAttribute("aria-describedby",t)},
get _focusableElement(){return this.inputElement.textarea}});var bJ0;var iJs;/*

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 qHT=function(){};
_.Y=qHT.prototype;_.Y.addOwnKeyBinding=function(){};
_.Y.removeOwnKeyBindings=function(){};
_.Y.keyboardEventMatchesKeys=function(){};
_.Y._collectKeyBindings=function(){};
_.Y._prepKeyBindings=function(){};
_.Y._addKeyBinding=function(){};
_.Y._resetKeyEventListeners=function(){};
_.Y._listenKeyEventListeners=function(){};
_.Y._unlistenKeyEventListeners=function(){};
_.Y._onKeyBindingEvent=function(){};
_.Y._triggerKeyHandler=function(){};
_.Y._tapHandler=function(){};
_.Y._focusChanged=function(){};
_.Y._detectKeyboardFocus=function(){};
_.Y._userActivate=function(){};
_.Y._upHandler=function(){};
_.Y._spaceKeyDownHandler=function(){};
_.Y._spaceKeyUpHandler=function(){};
_.Y._asyncClick=function(){};
_.Y._pressedChanged=function(){};
_.Y._ariaActiveAttributeChanged=function(){};
_.Y._activeChanged=function(){};
_.Y._controlStateChanged=function(){};
_.Y._changedButtonState=function(){};
_.Y._focusBlurHandler=function(){};
_.Y._disabledChanged=function(){};
_.Y._changedControlState=function(){};
_.Y._downHandler=function(){};
_.Y.ensureRipple=function(){};
_.Y.getRipple=function(){};
_.Y.hasRipple=function(){};
_.Y._noinkChanged=function(){};
_.Y._focusedChanged=function(){};
_.Y.registered=function(){};
_.Y._invalidChanged=function(){};
_.Y.hasValidator=function(){};
_.Y.validate=function(){};
_.Y._getValidity=function(){};
_.Y._requiredChanged=function(){};
_.Y._valueChanged=function(){};
_.Y._checkedChanged=function(){};
_.Y._buttonStateChanged=function(){};
_.Y._setPressed=function(){};
_.Y._setPointerDown=function(){};
_.Y._setReceivedFocusFromKeyboard=function(){};
_.Y._setFocused=function(){};
qHT=_.yx({is:"tp-yt-paper-toggle-button",_template:function(){if(iJs!==void 0)return iJs;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;bJ0===void 0&&(bJ0=document.createElement("template"));var U=bJ0;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return iJs=t},
behaviors:[_.xhX],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");_.XE(this,function(){_.wk(this,"pan-y")})},
_ontrack:function(t){t=t.detail;t.state==="start"?this._trackStart(t):t.state==="track"?this._trackMove(t):t.state==="end"&&this._trackEnd(t)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(t){t=t.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+t:t)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+t:t));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 t=QV._createRipple();t.id="ink";t.setAttribute("recenters","");t.classList.add("circle","toggle-ink");return t}});var HJp;var fv3;_.yx({_template:function(){if(fv3!==void 0)return fv3;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;HJp===void 0&&(HJp=document.createElement("template"));var U=HJp;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return fv3=t},
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 t=_.sm(this).parentNode,E=_.sm(this).getOwnerRoot(),p;this.for?p=_.sm(E).querySelector("#"+this.for):p=t.nodeType==Node.DOCUMENT_FRAGMENT_NODE?E.host:t;return p},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(t){t==="entry"?this.show():t==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.sm(this).textContent.trim()===""){for(var t=!0,E=_.sm(this).getEffectiveChildNodes(),p=0;p<E.length;p++)if(E[p].textContent.trim()!==""){t=!1;break}if(t)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 t=this.offset;this.marginTop!=14&&this.offset==14&&(t=this.marginTop);var E=this.offsetParent.getBoundingClientRect(),p=this._target.getBoundingClientRect(),U=this.getBoundingClientRect(),x=(p.width-U.width)/2,A=(p.height-U.height)/2,m=p.left-E.left,b=p.top-E.top;switch(this.position){case "top":var f=m+x;var B=b-U.height-t;break;case "bottom":f=m+x;B=b+p.height+t;break;case "left":f=m-U.width-t;B=b+A;break;case "right":f=m+p.width+
t,B=b+A}this.fitToVisibleBounds?(E.left+f+U.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,f)+"px",this.style.right="auto"),E.top+B+U.height>window.innerHeight?(this.style.bottom=E.height+"px",this.style.top="auto"):(this.style.top=Math.max(-E.top,B)+"px",this.style.bottom="auto")):(this.style.left=f+"px",this.style.top=B+"px")}},
_addListeners:function(){this._target&&(this.listen(this._target,"mouseenter","show"),this.listen(this._target,"focus","show"),this.listen(this._target,"mouseleave","hide"),this.listen(this._target,"blur","hide"),this.listen(this._target,"tap","hide"));this.listen(this.$.tooltip,"animationend","_onAnimationEnd");this.listen(this,"mouseenter","hide")},
_findTarget:function(){this.manualMode||this._removeListeners();this._target=this.target;this.manualMode||this._addListeners()},
_delayChange:function(t){t!==500&&this.updateStyles({"--paper-tooltip-delay-in":t+"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(t){if(t==="entry"&&this.animationEntry!=="")return this.animationEntry;if(t==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[t]&&typeof this.animationConfig[t][0].name==="string"){if(this.animationConfig[t][0].timing&&this.animationConfig[t][0].timing.delay&&this.animationConfig[t][0].timing.delay!==0){var E=this.animationConfig[t][0].timing.delay;t==="entry"?this.updateStyles({"--paper-tooltip-delay-in":E+"ms"}):t==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":E+
"ms"})}return this.animationConfig[t][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 B00=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(B00,_.w6);var w7Z=_.g6(B00,[0,_.Ot]);var ra=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(ra,_.w6);var Rm0=[3,4],Vvs=[5,6];var QQ3=[0,Rm0,Vvs,_.hI,-1,_.Ix,_.aq,-1,pws,U2f];var Cd0=_.g6(ra,QQ3),jQX=_.OS(QQ3);var rUG=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(rUG,_.w6);var klX=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(klX,_.w6);var dxf=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(dxf,_.w6);var uB3=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(uB3,_.w6);var JUo=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(JUo,_.w6);var kY=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(kY,_.w6);kY.prototype.getSource=function(){return _.Et(this,1)};
kY.prototype.getMessage=function(){return _.th(this,4)};
kY.prototype.getData=function(){return _.lJ(this,JUo,8)};var Iv4=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Iv4,_.w6);var da=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(da,_.w6);var uZ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(uZ,_.w6);var Jv=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Jv,_.w6);Jv.prototype.getUrl=function(){return _.th(this,1)};
Jv.prototype.setUrl=function(t){return _.Lq(this,1,t)};
Jv.prototype.hasUrl=function(){return _.hd(_.sa(this,1))!=null};var gis=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(gis,_.w6);var ZJf=[3];var OJm=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(OJm,_.w6);var IL=function(t){var E=new OJm;return _.GM(E,2,t)};
OJm.prototype.getLanguage=function(){return Ut(this,4,Za)};
var X7r=function(t){var E=IL(1);return _.zC(E,6,Za,t)},Za=[3,
4,5,6];var hmr=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(hmr,_.w6);var Ov=function(t){var E=new hmr;return _.GM(E,1,t)},Xq=function(t,E){return _.zC(t,2,avp,E)},avp=[2,
3,4,5];var emr=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(emr,_.w6);var hv=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(hv,_.w6);var Fmr=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Fmr,_.w6);var zmZ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(zmZ,_.w6);var lvr=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(lvr,_.w6);var Gls=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Gls,_.w6);var nis=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(nis,_.w6);var N0r=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(N0r,_.w6);var aL=function(t){return _.lJ(t,uZ,5)};var Dxr=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Dxr,_.w6);Dxr.prototype.getValue=function(){return Sh(this,1)};var sQo=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(sQo,_.w6);var el=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(el,_.w6);el.prototype.getMetadata=function(){return _.xC(this,Gls,7,Fq)};
el.prototype.hasMetadata=function(){return _.Tm(this,Gls,7,Fq)};
var Lmo=_.mEi(el),Fq=[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];var zN=function(t){this.JSC$12448_name_=t;this.files_=[];this.directories_=[];this.directoryMap_={}};
zN.prototype.getName=function(){return this.JSC$12448_name_};var GN=function(t,E){this.callback_=E;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new zN("");Pdp(this,t,this.rootDirectory_);lZ(this)},Pdp=function(t,E,p){for(var U=0;U<E.length;U++){var x=E[U];
x.isFile?(t.fileOps_++,x.file((0,_.Tg)(t.handleFileSuccess_,t,p),(0,_.Tg)(t.handleFileError_,t))):t.unscannedDirectories_.push(new T0W(x,p))}},lZ=function(t){if(t.unscannedDirectories_.length>0&&t.directoryOps_<5&&!t.hasError_){t.directoryOps_++;
var E=t.unscannedDirectories_.shift(),p=E.entry,U=new zN(p.name);E=E.parent;E.directoryMap_[U.getName()]=U;E.directories_.push(U);p=p.createReader();p.readEntries((0,_.Tg)(t.handleDirectorySuccess_,t,p,U),(0,_.Tg)(t.handleDirectoryError_,t))}t.directoryOps_!=0||t.fileOps_!=0||t.unscannedDirectories_.length!=0&&!t.hasError_||t.callback_(t.rootDirectory_.files_,t.rootDirectory_.directories_,t.hasError_)};
GN.prototype.handleDirectorySuccess_=function(t,E,p){Pdp(this,p,E);p.length==0?(this.directoryOps_--,lZ(this)):t.readEntries((0,_.Tg)(this.handleDirectorySuccess_,this,t,E),(0,_.Tg)(this.handleDirectoryError_,this))};
GN.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;lZ(this)};
GN.prototype.handleFileSuccess_=function(t,E){t.files_.push(E);this.fileOps_--;lZ(this)};
GN.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;lZ(this)};
var T0W=function(t,E){this.entry=t;this.parent=E};var nC=function(t){_.UH.call(this);_.vu(t,"drop",this.onObjectsDropped_,!1,this);_.vu(t,"dragenter",this.onFilesDragged_,!1,this);_.vu(t,"dragover",this.onFilesDragged_,!1,this);_.vu(t,"dragleave",this.onDragLeave_,!1,this);_.vu(t,"dragend",this.onDragLeave_,!1,this)};
_.Oa(nC,_.UH);var oiG=function(t,E){_.dV.call(this,"f");this.files=t;this.directories=E};
_.Oa(oiG,_.dV);var Wmr=function(){_.dV.call(this,"h")};
_.Oa(Wmr,_.dV);var $x4=function(){_.dV.call(this,"i")};
_.Oa($x4,_.dV);var KmT=function(){_.dV.call(this,"g")};
_.Oa(KmT,_.dV);nC.prototype.onObjectsDropped_=function(t){var E=this;t.preventDefault();var p=t.event_.dataTransfer;if((t=p&&p.items)&&t.length>0&&t[0].webkitGetAsEntry){p=[];for(var U=[],x=0;x<t.length;x++){var A=t[x].webkitGetAsEntry();A?p.push(A):U.push(t[x])}new GN(p,function(m,b,f){f?E.dispatchEvent(new KmT("Error occurred while reading from the file system.")):E.dispatchEvent(new oiG(m,b,U))})}else(t=p&&p.files)&&this.dispatchEvent(new oiG(Array.from(t),[]))};
nC.prototype.onFilesDragged_=function(t){t.type==="dragenter"&&this.dispatchEvent(new Wmr);t.preventDefault()};
nC.prototype.onDragLeave_=function(){this.dispatchEvent(new $x4)};var viZ=function(t,E){this.JSC$12471_name_=t;this.inputElement_=E};
viZ.prototype.getName=function(){return this.JSC$12471_name_};
viZ.prototype.getInputElement=function(){return this.inputElement_};var Nw=function(t,E,p){E=E===void 0?"single_file":E;p=p===void 0?[]:p;_.UH.call(this);this.overlayTarget_=t;this.parentOverlay_=t!=null?t.parentNode:_.Gg("scotty-overlay-parent");this.selectorType_=E;this.acceptTypes_=p;this.overlay_=yUX(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.u(Nw,_.UH);
var yUX=function(t,E,p,U){var x=document.createElement("input");x.setAttribute("type","file");x.setAttribute("name","Filedata");_.vu(x,"change",t.onFilesSelected_,!1,t);p==="multiple_file"&&(x.multiple="true");p==="single_directory"&&(x.webkitdirectory="true");U.length>0&&x.setAttribute("accept",U.join(","));x.style.position="absolute";x.style.overflow="hidden";x.style.height="0px";x.style.width="0px";x.style.opacity="0";x.setAttribute("aria-hidden","true");x.setAttribute("tabIndex",-1);if(t.overlayTarget_!=
null)return x.style.height=E.offsetHeight+"px",x.style.width=E.offsetWidth+"px",t.parentOverlay_&&(t.parentOverlay_.style.position="relative"),_.qh(x,E),Rq(x,new _.gg(E.offsetLeft,E.offsetTop)),x;t.parentOverlay_.appendChild(x);return x};
Nw.prototype.click=function(){this.overlay_.click()};
Nw.prototype.onFilesSelected_=function(t){a:{try{var E=(new XMLHttpRequest).upload!==void 0;break a}catch(B){}E=!1}if(E){var p;t=Array.from((p=t.target.files)!=null?p:[]);p=[];if(this.selectorType_==="single_directory"&&(_.no||g7||_.Ne)){p=new zN("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(E=0;E<t.length;E++)for(var U=t[E],x=U.webkitRelativePath.split("/"),A=p,m=0;m<x.length;m++){var b=x[m];if(m==x.length-1){b!="."&&A.files_.push(U);break}var f=A.directoryMap_[b];f==void 0&&(b=
f=new zN(b),A.directoryMap_[b.getName()]=b,A.directories_.push(b));A=f}p=p.directories_}this.dispatchEvent(new SHf(t,p,null))}else t=t.target.value,t.match(/^c:\\fakepath\\/i)&&(t=t.substring(12)),this.dispatchEvent(new SHf([],[],new viZ(t,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=yUX(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var SHf=function(t,E){_.dV.call(this,"j");this.files=t;this.directories=E};
_.u(SHf,_.dV);var cUX=function(t){this.uploadUrl_=t};var trs=function(){_.UH.call(this)};
_.Oa(trs,_.UH);var Da=function(t){_.dV.call(this,t)};
_.Oa(Da,_.dV);var sv=function(t){_.dV.call(this,t)};
_.Oa(sv,_.dV);var EEp=function(t,E,p,U,x){_.UH.call(this);p=document.createElement("form");p.setAttribute("method",E);p.setAttribute("enctype","multipart/form-data");p.setAttribute("encoding","multipart/form-data");E=document.createElement("input");E.setAttribute("type","hidden");E.setAttribute("name","metadata");E.setAttribute("value",x);p.appendChild(E);p.appendChild(U);this.JSC$12488_form_=p;t=new _.fF(t);_.jK(t,"upload_protocol","multipart");this.JSC$12488_url_=t.toString();this.JSC$12488_request_=new Iu;this.state_=
"Ready";this.JSC$12488_errorDescription_=null;this.JSC$12488_eventHandler_=new _.Kg(this);_.ed(this,this.JSC$12488_eventHandler_);this.JSC$12488_eventHandler_.listen(this.JSC$12488_request_,"success",this.onTransferSuccess_);this.JSC$12488_eventHandler_.listen(this.JSC$12488_request_,"error",this.onTransferError_)};
_.u(EEp,trs);_.Y=EEp.prototype;_.Y.run=function(){this.state_="Transferring";var t=this.JSC$12488_request_,E=this.JSC$12488_form_;if(t.JSC$11755_active_)throw Error("ue");var p=new _.fF(this.JSC$12488_url_||E.action);t.JSC$11755_form_=E;E=t.JSC$11755_form_;p=_.E2(p.toString());p!==void 0&&(E.action=p);qXr(t)};
_.Y.getResponseCode=function(){return null};
_.Y.getResponseText=function(){return this.JSC$12488_request_&&this.JSC$12488_request_.getResponseText()||null};
_.Y.JSC$30409_getErrorDescription=function(){return this.JSC$12488_errorDescription_};
_.Y.cancel=function(){this.JSC$12488_request_&&this.JSC$12488_request_.abort();this.state_="Cancelled";this.dispatchEvent(new Da("o"))};
_.Y.pause=function(){};
_.Y.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new Da("l"))};
_.Y.onTransferError_=function(){this.JSC$12488_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new Da("n"))};var LC=function(){_.qx.call(this)};
_.u(LC,_.qx);LC.prototype.createXhr=function(){var t=_.qx.prototype.createXhr.call(this);t.upload&&(t.upload.onprogress=(0,_.Tg)(this.onProgress_,this));return t};
LC.prototype.onProgress_=function(t){this.dispatchEvent(t)};var plf=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},xCG=function(t,E){var p=t.attempt_+1;
if(t.maxAttempts_>0&&p>t.maxAttempts_)return!1;p==0?E():t.delayCallId_=mm(function(){t.delayCallId_=null;E()},UCs(t),t);
t.attempt_=p;return!0};
plf.prototype.reset=function(){this.delayCallId_&&_.Ui.clearTimeout(this.delayCallId_);this.attempt_=-1};
var UCs=function(t){var E=250*Math.pow(2,t.attempt_);t.maxDelayMs_>=0&&(E=Math.min(E,t.maxDelayMs_));return E};var F5D=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var PU=function(){_.UH.call(this);this.JSC$12498_request_=this.state_=null;this.JSC$12498_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12498_bytesTransferred_=0;this.retryIterator_=new plf;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12498_errorDescription_=null;this.JSC$12498_eventHandler_=new _.Kg(this);_.ed(this,this.JSC$12498_eventHandler_);this.JSC$12498_url_=this.blob_=null;this.JSC$12498_method_=void 0;this.chunkSize_=this.JSC$12498_metadata_=
this.JSC$12498_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12498_responseText_=this.JSC$12498_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.Oa(PU,trs);_.Y=PU.prototype;_.Y.run=function(){TN(this)};
_.Y.getResponseCode=function(){return this.JSC$12498_responseCode_};
_.Y.getResponseText=function(){return this.JSC$12498_responseText_};
_.Y.JSC$30409_getErrorDescription=function(){return this.JSC$12498_errorDescription_};
_.Y.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12498_eventHandler_.removeAll();this.JSC$12498_request_&&this.JSC$12498_request_.abort();this.retryIterator_.reset();var t=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(t==="Upload"||t==="Query")t=new LC,t.JSC$10072_withCredentials_=this.JSC$12498_withCredentials_,t.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12498_bytesTransferred_=
0;this.dispatchEvent(new Da("o"))}};
_.Y.pause=function(){this.pauseRequested_=!0};
var TN=function(t){var E=t.state_;t.pauseRequested_?(t.pauseRequested_=!1,t.stateAfterUnpausing_=E,t.state_="Paused"):xCG(t.retryIterator_,function(){switch(t.state_){case "Start":t.JSC$12498_request_=new LC;var p=_.Kq.clone(t.JSC$12498_headers_);t.blob_.size!=null&&(p["Content-Length"]=t.blob_.size);p=zWl(p);p["X-Goog-Upload-Protocol"]="resumable";p["X-Goog-Upload-Command"]="start";t.JSC$12498_eventHandler_.removeAll();t.JSC$12498_eventHandler_.listen(t.JSC$12498_request_,"complete",t.onStartComplete_);
t.JSC$12498_request_.JSC$10072_withCredentials_=t.JSC$12498_withCredentials_;t.JSC$12498_request_.send(t.JSC$12498_url_,t.JSC$12498_method_,t.JSC$12498_metadata_,p);t.lastCommandResponseCode_=null;t.dispatchEvent(new sv("q"));break;case "Upload":p=t.transferHandle_.uploadUrl_;var U=t.blob_.size;if(vxG()){var x=t.chunkSize_;var A=t.offset_+x>=U;U=KV0(t.blob_,t.offset_,A?U:t.offset_+x)}else t.offset_=0,U=t.blob_,A=!0;t.JSC$12498_request_=new LC;t.JSC$12498_request_.JSC$10072_withCredentials_=t.JSC$12498_withCredentials_;
t.JSC$12498_eventHandler_.removeAll();t.JSC$12498_eventHandler_.listen(t.JSC$12498_request_,"progress",t.onUploadProgress_);x=(0,_.Tg)(t.JSC$12500_onUploadComplete_,t,t.offset_+U.size,A);t.JSC$12498_eventHandler_.listen(t.JSC$12498_request_,"complete",x);t.lastCommandResponseCode_=null;t.dispatchEvent(new sv("q"));A=Object.assign({},t.JSC$12498_headers_||{},{"X-Goog-Upload-Command":"upload"+(A?", finalize":""),"X-Goog-Upload-Offset":t.offset_});t.JSC$12498_request_.send(p,"POST",U,A);break;case "Query":t.JSC$12498_request_=
new LC;t.JSC$12498_eventHandler_.removeAll();t.JSC$12498_eventHandler_.listen(t.JSC$12498_request_,"complete",t.onQueryComplete_);p=Object.assign({},t.JSC$12498_headers_||{},{"X-Goog-Upload-Command":"query"});t.JSC$12498_request_.send(t.transferHandle_.uploadUrl_,"POST","",p);t.lastCommandResponseCode_=null;t.dispatchEvent(new sv("q"));break;default:throw Error("mf");}})||oL(t,"Transfer encountered too many consecutive failures.")},oL=function(t,E){t.state_="Error";
t.JSC$12498_errorDescription_=E;t.dispatchEvent(new Da("n"))};
PU.prototype.onStartComplete_=function(t){var E=t.target;this.lastCommandResponseCode_=E.getStatus();this.dispatchEvent(new sv("r"));if(AYG(E))Y4s(this,E);else if(Mrf(E)){t=JW(t.target.getAllResponseHeaders());for(var p in t)_.AD(p.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new Da("m"));p=PV(t,"X-Goog-Upload-URL");t=(t=PV(t,"X-Goog-Upload-Chunk-Granularity"))?parseInt(t,10):1;p===void 0||isNaN(t)||t<=0?oL(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
t)*t,this.transferHandle_=new cUX(p),this.dispatchEvent(new Da("p")),this.state_="Upload",this.retryIterator_.reset(),TN(this))}else TN(this)};
PU.prototype.onUploadProgress_=function(t){this.JSC$12498_bytesTransferred_=this.offset_+t.loaded;this.dispatchEvent(new Da("k"))};
PU.prototype.JSC$12500_onUploadComplete_=function(t,E,p){var U=this,x,A;return _.q(function(m){switch(m.nextAddress){case 1:x=p.target;U.lastCommandResponseCode_=x.getStatus();U.dispatchEvent(new sv("r"));if(mCf(x)||x.getStatus()==404)return U.JSC$12498_bytesTransferred_=t,Y4s(U,x),m.return();if(Mrf(x)){m.jumpTo(2);break}if(!(A=U.detectCorruptedBlobEnabled_)){m.jumpTo(3);break}return m.yield(b3o(U),4);case 4:A=m.yieldResult;case 3:if(A)return oL(U,"Blob has been modified or corrupted."),m.return();
U.requireUploadRequestModification_=x.getStatus()==400;U.state_="Query";TN(U);return m.return();case 2:if(E)return oL(U,"Got a non-final success response after issuing a finalize command."),m.return();U.JSC$12498_bytesTransferred_=t;U.offset_=t;U.retryIterator_.reset();TN(U);return m.return()}})};
PU.prototype.onQueryComplete_=function(t){var E=t.target;this.lastCommandResponseCode_=E.getStatus();this.dispatchEvent(new sv("r"));AYG(E)?(E.getStatus()===200&&(this.JSC$12498_bytesTransferred_=this.blob_.size),Y4s(this,E)):Mrf(E)?(t=JW(t.target.getAllResponseHeaders()),t=parseInt(PV(t,"X-Goog-Upload-Size-Received"),10),isNaN(t)?oL(this,"Server did not respond with current offset."):t<this.offset_?oL(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
t+"."):this.requireUploadRequestModification_&&this.offset_===t?oL(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<t&&this.retryIterator_.reset(),this.offset_=this.JSC$12498_bytesTransferred_=t,this.state_="Upload",TN(this))):TN(this)};
var Y4s=function(t,E){t.JSC$12498_responseCode_=E.getStatus();var p=JW(E.getAllResponseHeaders());lx_(p);t.JSC$12498_responseText_=E.getResponseText();t.state_="Response received";t.dispatchEvent(new Da("l"))},Mrf=function(t){var E=t.getStatus();
t=JW(t.getAllResponseHeaders());t=PV(t,"X-Goog-Upload-Status");return E===200&&t==="active"},mCf=function(t){t=JW(t.getAllResponseHeaders());
return PV(t,"X-Goog-Upload-Status")==="final"},AYG=function(t){if(mCf(t))return!0;
t=t.getStatus();return t>=400&&t<500},b3o=function(t){var E;
return _.q(function(p){if(p.nextAddress==1){if(!t.blob_||t.originalBlobSize_<=0)return p.return(!1);if(t.blob_.size!==t.originalBlobSize_)return p.return(!0);_.aR(p,2);if(E=KV0(t.blob_,0,1)){var U=p.yield,x=new b9,A=dA4(x);x.reader_.readAsBinaryString(E);p=U.call(p,A,4)}else p=p.return(!0);return p}if(p.nextAddress!=2)return p.return(t.blob_.size!==t.originalBlobSize_);_.nB(p);return p.return(!0)})};var i3p=function(t,E,p,U,x,A){_.UH.call(this);this.payload_=U;this.JSC$12501_url_=t;this.JSC$12501_method_=E;this.JSC$12501_headers_=p;this.JSC$12501_metadata_=x;this.encoding_=A||"binary";t=new _.tl;this.boundary_="uploader-"+VC()+"-"+t.JSC$11604_toIsoString();this.JSC$12501_responseText_=this.JSC$12501_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12501_errorDescription_=null;this.JSC$12501_eventHandler_=new _.Kg(this);_.ed(this,this.JSC$12501_eventHandler_)};
_.u(i3p,trs);_.Y=i3p.prototype;
_.Y.run=function(){var t=_.Kq.clone(this.JSC$12501_headers_);this.payload_.length!=null&&(t["Content-Length"]=this.payload_.length);t=zWl(t);t["X-Goog-Upload-Protocol"]="multipart";t["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new LC;this.JSC$12501_eventHandler_.removeAll();this.JSC$12501_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12501_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12501_url_,this.JSC$12501_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12501_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",t)};
_.Y.getResponseCode=function(){return this.JSC$12501_responseCode_};
_.Y.getResponseText=function(){return this.JSC$12501_responseText_};
_.Y.JSC$30409_getErrorDescription=function(){return this.JSC$12501_errorDescription_};
_.Y.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12501_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new Da("o")))};
_.Y.pause=function(){};
_.Y.onTransferProgress_=function(){this.dispatchEvent(new Da("k"))};
_.Y.onTransferComplete_=function(t){var E=t.target.getStatus();E===void 0||E===-1?(this.JSC$12501_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new Da("n"))):(this.JSC$12501_responseCode_=E,t=t.target,E=JW(t.getAllResponseHeaders()),lx_(E),this.JSC$12501_responseText_=t.getResponseText(),this.state_="Complete",this.dispatchEvent(new Da("l")))};_.q4Z=function(t,E,p,U){U=U===void 0?!1:U;if(p instanceof viZ)return new EEp(t,"POST",E,p.getInputElement(),"");if(typeof p==="string"||p instanceof String)return new i3p(t,"POST",E,p,"");var x=new PU(void 0);x.JSC$12498_url_=t;x.JSC$12498_method_="POST";x.JSC$12498_headers_=E;x.blob_=p;x.originalBlobSize_=p.size;x.JSC$12498_metadata_="";U&&(x.JSC$12498_withCredentials_=U);x.state_="Start";return x};var WU=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(WU,_.w6);_.Y=WU.prototype;_.Y.getEnableSsEngine=function(){return _.yT(this,2)};
_.Y.getEnableAwr=function(){return _.yT(this,3)};
_.Y.getAlohaAutoGaRollout=function(){return _.yT(this,5)};
_.Y.getEnableConfigurator=function(){return _.yT(this,6)};
_.Y.getEnableMweb=function(){return _.yT(this,7)};
var fJW=function(){var t=H3s();return _.WV(t,7,!0)};
WU.prototype.getEnableCtlConsentCheckbox=function(){return _.yT(this,8)};
WU.prototype.getEnableIframe=function(){return _.yT(this,9)};
var H3s=function(){var t=new WU;t=_.WV(t,5,!0);t=_.WV(t,2,!0);t=_.WV(t,4,!1);t=_.WV(t,8,!0);return _.WV(t,9,!0)};
WU.prototype.getEnableScreenshotNudge=function(){return _.yT(this,10)};
var BMp=function(){var t=fJW();return _.WV(t,10,!0)};
WU.prototype.getEnableWebStartupConfigEndpoint=function(){return _.yT(this,11)};
WU.prototype.getEnableJunkNudge=function(){return _.yT(this,12)};
var pU_=function(){var t=BMp();return _.WV(t,12,!0)};
_.Y=WU.prototype;_.Y.getEnableConfiguratorLocale=function(){return _.yT(this,13)};
_.Y.getEnableTinyNoPointer=function(){return _.yT(this,14)};
_.Y.getEnableSupportSessionLogging=function(){return _.yT(this,15)};
_.Y.getEnableFileUploadForScreenshot=function(){return _.yT(this,16)};
_.Y.getEnableDirectDeflectionForSingleCategory=function(){return _.yT(this,17)};
_.Y.getEnableImageSanitization=function(){return _.yT(this,18)};
_.Y.getEnableAlohaBinarySplit=function(){return _.yT(this,19)};
_.Y.getEnableDbFeedbackIntents=function(){return _.yT(this,20)};
_.Y.getEnableMarkMandatoryFieldsWithRequired=function(){return _.yT(this,21)};
_.Y.getEnableFeedbackCategoryCustomUi=function(){return _.yT(this,22)};
_.Y.getEnableRealtimeCtl=function(){return _.yT(this,23)};var EYl=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(EYl,_.w6);var Goj=[/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 N2J="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 DUD=_.CG(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),su0=_.CG(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var TZ=function(){var t=Error.call(this,"Form is either loading or already opened");this.message=t.message;"stack"in t&&(this.stack=t.stack);this.name="DuplicateFormError"};
_.u(TZ,Error);var P9$,W5l,T2E,$Uj;var $Y,wlo;
$Y=function(t,E,p){t.timeOfStartCall=(new Date).getTime();var U=p||_.Ui,x=U.document,A=t.nonce||_.i0(U.document);A&&!t.nonce&&(t.nonce=A);if(t.flow=="help"){var m=_.ws("document.location.href",U);!t.helpCenterContext&&m&&(t.helpCenterContext=m.substring(0,1200));m=!0;if(E&&JSON&&JSON.stringify){var b=JSON.stringify(E);(m=b.length<=1200)&&(t.psdJson=b)}m||(E={invalidPsd:!0})}E=[t,E,p];U.GOOGLE_FEEDBACK_START_ARGUMENTS=E;p=t.feedbackServerUri||"//www.google.com/tools/feedback";if(m=U.GOOGLE_FEEDBACK_START)m.apply(U,E);
else{U=p+"/load.js?";for(var f in t)E=t[f],E==null||_.o0(E)||(U+=encodeURIComponent(f)+"="+encodeURIComponent(E)+"&");t=s8(x).createElement("SCRIPT");A&&t.setAttribute("nonce",A);_.w3(t,_.N2(U));x.body.appendChild(t)}};
wlo=function(t,E,p,U){var x,A;return _.q(function(m){x=p||_.Ui;var b=t.serverEnvironment==="DEV",f=p||_.Ui;f=t.nonce||_.i0(f.document);b={integrationKeys:{productId:t.productId,feedbackBucket:t.bucket,triggerId:t.triggerId},callbacks:{onClose:t.callback,onLoad:t.onLoadCallback},formContent:{locale:t.locale,disableScreenshot:t.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:t.abuseLink,additionalDataConsent:t.additionalDataConsent},initializationData:{isLocalServer:b,nonce:f,useNightlyRelease:b,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:t.feedbackServerUri,colorScheme:t.colorScheme},extraData:{productVersion:t.productVersion,authUser:t.authuser,configuratorId:t.configuratorId,customZIndex:t.customZIndex,tinyNoPointer:t.tinyNoPointer,
allowNonLoggedInFeedback:t.allowNonLoggedInFeedback,enableAnonymousFeedback:t.enableAnonymousFeedback}};E&&(f=new Map(Object.entries(E)),b.extraData.productSpecificData=f);A=b;return m.yield(ScO(A,U,x),0)})};
_.R_o=function(t,E,p){try{if(t.flow==="help"){var U=t.helpCenterPath.replace(/^\//,"");_.b0(p||window,"https://support.google.com/"+U)}else t.flow==="submit"?$Y(t,E,p):Uwt(t.productId,t.feedbackServerUri).then(function(x){x=_.lJ(x,WU,1);var A=!jsp||(x==null?void 0:x.getEnableMweb()),m=!t.tinyNoPointer||(x==null?void 0:x.getEnableTinyNoPointer());!x||x.getAlohaAutoGaRollout()&&A&&m?wlo(t,E,p,x).catch(function(b){!b||b instanceof TZ||$Y(t,E,p)}):$Y(t,E,p)},function(x){!x||x instanceof TZ||$Y(t,E,p)})}catch(x){wlo(t,
E,p,null).catch(function(A){!A||A instanceof TZ||$Y(t,E,p)})}};
_.Oy("userfeedback.api.startFeedback",_.R_o);var xwL=/https?:\/\/\S+\.\S+/,Av_=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],YvO=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var BeJ=function(t){var E=t.split(""),p=[-263237435,15,E,function(U,x,A){var m=x.length;A.forEach(function(b,f,B){this.push(B[f]=x[(x.indexOf(b)-x.indexOf(this[f])+f+m--)%x.length])},U.split(""))},
function(U,x){U=(U%x.length+x.length)%x.length;x.splice(-U).reverse().forEach(function(A){x.unshift(A)})},
"response",function(){for(var U=64,x=[];++U-x.length-32;){switch(U){case 58:U-=14;case 91:case 92:case 93:continue;case 123:U=47;case 94:case 95:case 96:continue;case 46:U=95}x.push(String.fromCharCode(U))}return x},
null,12,1540023973,65941107,null,E,function(U,x){for(U=(U%x.length+x.length)%x.length;U--;)x.unshift(x.pop())},
695603893,function(U){for(var x=U.length;x;)U.push(U.splice(--x,1)[0])},
"'[;'[(",function(U,x){U.push(x)},
null,function(U,x,A,m,b){return x(A,m,b)},
"continuation",E,function(U,x){if(U.length!=0){x=(x%U.length+U.length)%U.length;var A=U[0];U[0]=U[x];U[x]=A}},
function(){for(var U=64,x=[];++U-x.length-32;){switch(U){case 91:U=44;continue;case 123:U=65;break;case 65:U-=18;continue;case 58:U=96;continue;case 46:U=95}x.push(String.fromCharCode(U))}return x},
'"),/]];'];p[7]=p;p[11]=p;p[18]=p;try{(((0,p[15])(p[21]),p[22])(p[11],p[9]),p[22])(p[new Date("1970-01-01T04:30:12.000+04:30")/1E3],p[1]),((0,p[22])(p[11],p[23]),p[4])(p[10],p[18]),(0,p[20])(p[21],p[14])<<(0,p[17])(p[18],p[1]),(0,p[4])(p[8],p[21]),(0,p[19])((0,p[19])((0,p[17])(p[7],p[9]),p[3],p[20],(0,p[6])(),p[2]),p[3],p[5],(0,p[15])(),p[2])}catch(U){return"aTlOUOubTO4AP____8P_"+t}return E.join("")};_.Vrr=new _.Ir("runAttestationCommand");var Qr4=new _.Ir("verifyCommand");_.PY=new _.Ir("accessibilityContext");var CBr=new _.Ir("accessibilityData");var jrm=new _.Ir("profileCardCommand");var bnL=new _.Ir("signInEndpoint");var m5_=new _.Ir("signOutEndpoint");var k4m;_.rYZ=new _.Ir("accountItemSectionRenderer");k4m=new _.Ir("accountItemRenderer");_.dCs=new _.Ir("saveCommandToSessionStorageAction");var ucs=new _.Ir("crossAccountChannelTransferEndpoint");var EG0=new _.Ir("getAccountMenuEndpoint");_.pzO=new _.Ir("getAccountSwitcherEndpoint");var tX$=new _.Ir("getAccountsListEndpoint");var JYX=new _.Ir("getAccountsListInnertubeEndpoint");_.IJW=new _.Ir("addToToastAction");var gEr=new _.Ir("hideEnclosingAction");_.KC=new _.Ir("replaceEnclosingAction");var Z33=new _.Ir("buttonRefreshAction");var O3o=new _.Ir("adsControlFlowOpportunityReceivedCommand");var Xlr=new _.Ir("openAdAllowlistInstructionCommand");var h_G=new _.Ir("videoMastheadAdPrimaryVideoRenderer");var aJr=new _.Ir("displayAdRenderer");_.e_r=new _.Ir("inFeedAdLayoutRenderer");var FCf=new _.Ir("sequenceItemInPlayerAdLayoutRenderer");_.z_s=new _.Ir("adSlotRenderer");var lJm=new _.Ir("adAvatarViewModel");var G4r=new _.Ir("adBadgeViewModel");var nEr=new _.Ir("adButtonViewModel");var NMW=new _.Ir("adImageViewModel");var dtl=new _.Ir("reelsAdCardButtonedViewModel");var DC4=new _.Ir("reelsPlayerOverlayLayoutViewModel");var srm=new _.Ir("formDataDecoratorCommand");var LCr=new _.Ir("updateConversationIdCommand");var PBr=new _.Ir("showSchedulingPanelCommand");var TMs=new _.Ir("backstageCommentsRenderer");var oE3=new _.Ir("backstageImageRenderer");var WCT=new _.Ir("backstagePostRenderer");var $C3=new _.Ir("backstageZeroStateRenderer");var KCT=new _.Ir("postRenderer");var vE4=new _.Ir("sharedPostRenderer");var yYT=new _.Ir("createBackstagePostEndpoint");var S4s=new _.Ir("getPostVideoPreviewEndpoint");var cYf=new _.Ir("updateBackstagePostEndpoint");var tx0=new _.Ir("filterChipTransformCommand");var Ebm=new _.Ir("insertRichSectionCommand");var ooY=new _.Ir("talkToRecsDeselectCommand");var pip=new _.Ir("talkToRecsNextCommand");var TBY=new _.Ir("talkToRecsSelectCommand");var Uir=new _.Ir("talkToRecsUpdateTextCommand");_.lC=new _.Ir("browseEndpoint");_.xio=new _.Ir("confirmDialogEndpoint");var ABX=new _.Ir("expandOnHoverCardRenderer");var YWs=new _.Ir("lumiereShelfDetailsRenderer");var Mxr=new _.Ir("revealBusinessEmailCommand");var miT=new _.Ir("validateChannelHandleCommand");var bm4=new _.Ir("channelCreationFormEndpoint");var imZ=new _.Ir("aboutChannelViewModel");var qWW=new _.Ir("channelThumbnailWithLinkRenderer");var Hmr=new _.Ir("channelCreationServiceEndpoint");var fGr=new _.Ir("updateChannelPageSettingsEndpoint");var vU=function(t){this.delegate=t},yV=function(){vU.apply(this,arguments)};
_.u(yV,vU);_.aE.Object.defineProperties(yV.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(t){this.delegate.entityMetadata=t}}});var BTs=function(){yV.apply(this,arguments)};
_.u(BTs,yV);BTs.prototype.getAssociations=function(){return[]};
BTs.prototype.getTypeName=function(){return"channelHandle"};var wim=new _.Ir("webResponseContextExtensionData");var YxE=new _.Ir("webThumbnailDetailsExtensionData");_.p$=new _.Ir("commandContext");var RSs=new _.Ir("addVideoLinkAction");var VxX=new _.Ir("banAuthorAction");var QJr=new _.Ir("createCommentAction");var CPr=new _.Ir("createCommentReplyAction");var jJp=new _.Ir("createPollAction");var rBZ=new _.Ir("hideIdentityChipAction");var k93=new _.Ir("openUpdateCommentDialogAction");var diW=new _.Ir("pinCommentAction");var ub3=new _.Ir("removeCommentAction");var JBs=new _.Ir("unpinCommentAction");var Sl=new _.Ir("updateBackstagePollAction");var IGr=new _.Ir("updateCommentVoteAction");var gbW=new _.Ir("commentThreadRenderer");var Zm4=function(){yV.apply(this,arguments)};
_.u(Zm4,yV);Zm4.prototype.getAssociations=function(){return[]};
Zm4.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var Omm=function(){yV.apply(this,arguments)};
_.u(Omm,yV);Omm.prototype.getAssociations=function(){return[]};
Omm.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.Xi3=new _.Ir("commentDialogRenderer");var hST=new _.Ir("reloadCommentsCommand");var aGT=new _.Ir("updateCommentsSettingsEndpoint");var eS0=new _.Ir("commentViewModel");var F$G=new _.Ir("triStateButtonViewModel");var zSm=new _.Ir("voiceReplyContainerViewModel");_.ZU=new _.Ir("commandExecutorCommand");var py=new _.Ir("emoji");var lGr=new _.Ir("updateCreatorChannelInnertubeCommand");_.G9r=new _.Ir("appendContinuationItemsAction");_.nbG=new _.Ir("changeEngagementPanelVisibilityAction");_.x1=new _.Ir("continuationCommand");var NTs=new _.Ir("hideReportedCommentAction");var DiG=new _.Ir("listMutationCommand");_.cU=new _.Ir("openPopupAction");var sJ4=new _.Ir("persistSubscriptionsDisplayPreferencesCommand");var vb3;_.L$m=new _.Ir("playlistRemoveVideosAction");_.PPT=new _.Ir("updatePlaylistAction");_.TTZ=new _.Ir("addToPlaylistCommand");_.obG=new _.Ir("endPlaylistCommand");_.W$0=new _.Ir("recoverPlaylistCommand");_.$iG=new _.Ir("refreshPlaylistCommand");_.K$0=new _.Ir("refreshFormCommand");vb3=new _.Ir("openOnePickAddVideoModalCommand");var b8t=new _.Ir("reloadContinuationItemsCommand");_.yB0=new _.Ir("scrollToEngagementPanelCommand");var SW4=new _.Ir("selectCountryCommand");var cBf=new _.Ir("showReloadUiCommand");var tEG=new _.Ir("undoFeedbackAction");var EFX=new _.Ir("updateButtonAction");var p$W=new _.Ir("updateSubscribeButtonAction");var UUX=new _.Ir("updateToggleAction");var xU0=new _.Ir("webNativeShareCommand");_.hZ=new _.Ir("webCommandMetadata");_.t1=new _.Ir("webHandleServiceEndpointExtension");var wIl=new _.Ir("webNavigationEndpointData");var Alp=new _.Ir("backgroundAudioPlaybackCommand");var YcT=new _.Ir("copyLinkCommand");var MEr=new _.Ir("playlistVotingRefreshPopupCommand");var mUr=new _.Ir("selectChipCommand");var bQf=new _.Ir("setCookieCommand");var iQm=new _.Ir("setLocalStorageCommand");var qcW=new _.Ir("setPrefStorageEntryCommand");var w$X;_.HQr=new _.Ir("settingsUpdateCheckboxCommand");_.fx4=new _.Ir("settingsUpdateTextCommand");_.B20=new _.Ir("settingsUpdateOptionsCommand");w$X=new _.Ir("settingsUpdateSwitchCommand");_.RWZ=new _.Ir("settingsUpdateConnectedAppRendererCommand");var VEm=new _.Ir("showCreatorChatbotEngagementPanelCommand");var Qu0=new _.Ir("updateTextInputFormFieldRendererCommand");var C9G=new _.Ir("updateToggleButtonStateCommand");var jur=new _.Ir("updateUrlParamCommand");var rlm=new _.Ir("webSubmitFormCommand");var koZ=new _.Ir("channelSwitcherPageRenderer"),dUZ=new _.Ir("updateChannelSwitcherPageAction");_.um=new _.Ir("continuationItemRenderer");_.Eu=new _.Ir("richItemRenderer");var uHo=new _.Ir("richSectionRenderer");_.Jls=new _.Ir("richShelfRenderer");_.Ixm=new _.Ir("metadataBadgeRenderer");_.gFT=new _.Ir("multiPageMenuNotificationSectionRenderer");_.ZQs=new _.Ir("playlistLoopButtonStateRenderer");var OQs=new _.Ir("claimLegacyYoutubeChannelEndpoint");var X$m=new _.Ir("getNotificationMenuEndpoint");var hWX=new _.Ir("getSearchInVideoCommand");_.ax0=new _.Ir("getTranscriptEndpoint");_.XJ=new _.Ir("signalServiceEndpoint");var eWr=new _.Ir("verifyAgeEndpoint");var RnD=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(RnD,_.w6);RnD.prototype.getPath=function(){return _.th(this,1)};
RnD.prototype.getValue=function(){return _.th(this,2)};var F53=[0,_.kC,-1];var zWT=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(zWT,_.w6);var w0t=_.g6(zWT,[0,_.Jh,F53]);var lx0=new _.Ir("dismissalEndpoint");var Goo=new _.Ir("elementsCommand");_.x2=new _.Ir("innertubeCommand");var nFr=new _.Ir("multipleInlinePlaybackCommand");var cOi=new _.Ir("loggingDirectives");var N2r=new _.Ir("acknowledgeChannelTouStrikeCommand");var DU3=function(){yV.apply(this,arguments)};
_.u(DU3,yV);DU3.prototype.getAssociations=function(){return[]};
DU3.prototype.getTypeName=function(){return"booleanEntity"};var sus=function(){yV.apply(this,arguments)};
_.u(sus,yV);sus.prototype.getAssociations=function(){return[]};
sus.prototype.getTypeName=function(){return"stringEntity"};var B9=new _.Ir("entityBatchUpdate");_.L5r=new _.Ir("entityUpdateCommand");var P9W=function(){yV.apply(this,arguments)};
_.u(P9W,yV);P9W.prototype.getAssociations=function(){var t=[];this.delegate.alternateChannel&&t.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&t.push.apply(t,_.KB(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&t.push(this.delegate.oneofChannelEntity);return[].concat(_.KB(new Set(t)))};
P9W.prototype.getTypeName=function(){return"fakeChannel"};var T2Z=function(){yV.apply(this,arguments)};
_.u(T2Z,yV);T2Z.prototype.getAssociations=function(){var t=[];this.delegate.entryCollection&&t.push(this.delegate.entryCollection);return[].concat(_.KB(new Set(t)))};
T2Z.prototype.getTypeName=function(){return"fakePlaylist"};
var oFp=function(){yV.apply(this,arguments)};
_.u(oFp,yV);oFp.prototype.getAssociations=function(){var t=[];this.delegate.parentPlaylist&&t.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var E=_.M(this.delegate.entries),p=E.next();!p.done;p=E.next())t.push.apply(t,_.KB((new W5T(p.value)).getAssociations()));return[].concat(_.KB(new Set(t)))};
oFp.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var W5T=function(){vU.apply(this,arguments)};
_.u(W5T,vU);W5T.prototype.getAssociations=function(){var t=[];this.delegate.video&&t.push(this.delegate.video);return[].concat(_.KB(new Set(t)))};var $Uo=function(){yV.apply(this,arguments)};
_.u($Uo,yV);$Uo.prototype.getAssociations=function(){var t=[];this.delegate.descriptionEntity&&t.push(this.delegate.descriptionEntity);this.delegate.creators&&t.push.apply(t,_.KB(this.delegate.creators));this.delegate.theBiggestFan&&t.push(this.delegate.theBiggestFan);return[].concat(_.KB(new Set(t)))};
$Uo.prototype.getTypeName=function(){return"fakeVideo"};
var K5W=function(){yV.apply(this,arguments)};
_.u(K5W,yV);K5W.prototype.getAssociations=function(){return[]};
K5W.prototype.getTypeName=function(){return"fakeVideoDescription"};var vFo=new _.Ir("fantasyRosterViewModel");var yl3=new _.Ir("addFollowUpSurveyCommand");var Scs=new _.Ir("getSurveyCommand");var cl0=new _.Ir("ratingSurveyOptionRenderer");_.xZ=new _.Ir("feedbackEndpoint");var tlT=new _.Ir("reportHistoryTableCellRenderer"),EYT=new _.Ir("reportHistoryTableTextCellRenderer"),pU0=new _.Ir("reportHistoryTableReasonCellRenderer");_.UwX=new _.Ir("flagEndpoint");var xwm=new _.Ir("deleteFlowStepsCommand");_.Av0=new _.Ir("flowNextStepCommand");_.Yvs=new _.Ir("flowPrevStepCommand");var Ml4=new _.Ir("getFlowCommand");var mwZ=new _.Ir("submitFormWithValidationFlowCommand");_.bCf=new _.Ir("updateFlowCommand");var iCZ=function(){yV.apply(this,arguments)};
_.u(iCZ,yV);iCZ.prototype.getAssociations=function(){return[]};
iCZ.prototype.getTypeName=function(){return"flowStateEntity"};var qvs=new _.Ir("flowFormState");_.pz=new _.Ir("flowStepRenderer");var HCm=new _.Ir("gameCardRenderer");var fa3=new _.Ir("accountLinkingStateChangedCommand");var Baf=function(){yV.apply(this,arguments)};
_.u(Baf,yV);Baf.prototype.getAssociations=function(){return[]};
Baf.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var wUo=new _.Ir("changeMiniAppPlayStateCommand");var Rzr=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Rzr,_.w6);var Uu=[1,2,3];var VlW=[0,Uu,cdG,_.u3,Tt3];var QL3=_.g6(Rzr,VlW),CZ4=_.OS(VlW);var jL0=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(jL0,_.w6);var rv4=[0,_.Rx,_.kC];var kN0=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(kN0,_.w6);var dws=[0,_.kC,_.Rx,-1];var x3=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(x3,_.w6);var uqs=_.OS([0,1,rv4,_.Ot,dws,_.kC]);var Jvp=new _.Ir("miniAppScoreChallengeViewModel");var Iam=new _.Ir("miniGameCardViewModel");var gYp=new _.Ir("teaserCardViewModel");var ZCr=function(){yV.apply(this,arguments)};
_.u(ZCr,yV);ZCr.prototype.getAssociations=function(){return[]};
ZCr.prototype.getTypeName=function(){return"logoEntity"};var OCo=new _.Ir("feedbackItemRenderer");var XUr=function(){yV.apply(this,arguments)};
_.u(XUr,yV);XUr.prototype.getAssociations=function(){return[]};
XUr.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.hz0=new _.Ir("playerInterstitialRenderer");var aaG=new _.Ir("getKidsBlocklistPickerCommand");_.ezr=new _.Ir("updateKidsBlacklistEndpoint");_.A1=new _.Ir("likeEndpoint");var F0o,zz3,lar;F0o=new _.Ir("addChatItemAction");zz3=new _.Ir("removeChatItemAction");lar=new _.Ir("markChatItemAsDeletedAction");_.GN4=new _.Ir("setLiveChatCollapsedStateAction");var nYs=function(){yV.apply(this,arguments)};
_.u(nYs,yV);nYs.prototype.getAssociations=function(){return[]};
nYs.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var NaX=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(NaX,_.w6);NaX.prototype.getPayloadCase=function(){return _.Wn(this,DwW)};
var DwW=[3,4];var sLX=[0,_.Jh,[0,[1,2],_.u3,_.Ix,[0,_.d9,1,_.d9]]];var L03=[0,_.kC,-1];var PZ4=[0,[1],_.u3];var Y3=[0,[1,2],_.u3,_.Ix,[0,_.Ot]];var Mj=[0,_.kC];var TaG=[0,[0,_.jM,_.C1,[0,_.d9,_.X2,_.d9]],1,[0,_.jM]];var oYo=[0,Vg];var W0T=[0,Vg];var $w0=[0,W0T,oYo];var K0Z=[0,_.Jh,[0,[1,2],_.u3,-1],_.jM];var vY0=[0,[2],1,_.Ix,[0,_.d9,-1,K0Z]];var yvr=[0,[1],_.Ix,[0,_.d9,_.kC,_.X2,1,K0Z]];var Svp=[0,_.C1,-1,P8r,_.Ot];var cv4=[0,[0,w9,-3],-4];var mq=[0,_.jM,-3,_.kC,_.jM,_.hI,_.jM,sLX,_.jM,-2];var bh=[0,_.Jh,[0,[1,2],_.u3,-1],_.jM,_.kC];var t3s=[0,[3],Y3,[0,[2,3,4],x2r,_.u3,-2],_.Ix,[0,_.kC],_.Rx];var E3s=[0,[3,5],_.kC,_.Qg,_.Ix,[0,1,_.Rx,_.Ot],_.Ot,_.Ix,[0,_.Ot,_.Rx]];var pHZ=[0,2,_.Qg,_.kC,-1];var Ujr=[0,ydX];var xj0=[0,[3,4],2,Wo4,_.u3,_.kC];var A1T=[0,_.Ot,-2,1,_.kC];var Yu4=[0,_.kC,-1,_.Ot];var M3G=[0,Mj,function(){return ih},
Mj,_.kC],mjs=[0,_.Ot,Mj,Y3,function(){return ih},
_.kC],ih=[-161,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160],Mj,_.Qg,[0,_.jM,1,_.jM,1,_.jM,1,_.Ot,-1,Mj],[0,1,_.jM,2,_.jM,_.Ot,_.jM],1,_.Qg,-1,_.kC,_.Qg,2,w9,[0,w9,_.Qg],_.kC,1,TaG,1,Y3,_.hI,1,[0,[0,_.Jh,[0,_.kC,_.jM,_.Ot]]],[0,_.jM,[0,_.Rx,[0,_.X2]],_.Rx,1,[0,KoW,-1]],_.kC,[0,1,_.kC],76,_.Ix,[0,Y3,bh,TaG,1,[0,_.Jh,bh]],1,_.Ix,[0,Y3,_.kC,
_.jM],_.Ix,[0,Y3,PZ4],_.Ix,[0,Y3,PZ4,_.Qg],_.Ix,[0,Y3,PZ4],_.Ix,[0,Y3,_.Jh,Mj,Y3,t84],_.Ix,[0,Y3,Mj,_.kC],_.Ix,[0,Y3,_.jM,mq,-1,_.jM],4,_.Ix,[0,Y3,_.jM,_.Qg,mq,_.jM],_.Ix,[0,[4,9],Y3,_.Ot,_.Qg,_.u3,bh,1,TaG,_.kC,_.u3,A1T],_.Ix,[0,Y3,Mj,Y3,_.Ot,_.kC],_.Ix,[0,_.jM,Y3,mq,_.jM,_.kC],_.Ix,[0,Y3,Mj,Y3,_.Ot,_.kC],1,_.Ix,[0,Y3,_.Ot,_.kC,mq],_.Ix,[0,Y3,_.Ot,[0,_.kC,_.Qg],_.kC,_.Qg,_.kC,_.Zy,-2,3,Yu4,_.Jh,Yu4,Yu4,A1T],_.Ix,[0,Y3,_.Ot,yvr,_.Jh,[0,W0T,vY0],Mj,_.Jh,$w0,_.kC,1,_.Ot,Svp,cv4,Lor,-1],_.Ix,[0,Y3,[0,
_.X2,-1,yvr,_.Jh,[0,W0T,vY0,oYo],[0,_.aq],1,_.d9],Mj,_.kC],_.Ix,[0,Y3,bh,_.kC,[0,_.C1]],_.Ix,function(){return mjs},
_.Ix,[0,Y3,_.Qg,_.kC,-1,_.jM],_.Ix,[0,[6,7],Y3,_.Jh,pHZ,_.Ot,bh,1,_.Ix,xj0,_.Ix,Ujr],_.Ix,[0,_.Jh,pHZ,_.Ot,_.jM],_.Ix,[0,_.kC,v6r,-1],_.Ix,[0,Mj,_.Jh,$w0,_.kC],_.Ix,[0,Y3,Mj,_.kC],_.Ix,[0,_.Zy,_.kC],_.Ix,[0,L03],_.Ix,[0,L03],_.Ix,[0,bh],_.Ix,[0,Mj,bh],_.Ix,function(){return M3G},
_.Ix,[0,Mj,_.kC],_.Ix,[0,Mj,_.kC],1,_.Ix,[0,_.jM,Y3,mq,_.jM,mq],_.Ix,[0,_.aq],1,_.Ix,[0],1,_.Ix,[0,Mj,_.Ot,Y3,_.Ot],_.Ix,[0,[1,2],_.Ix,xj0,_.Ix,Ujr,_.Qg],_.Ix,[0,_.aq,bh,E3s,_.kC,_.Qg],_.Ix,[0,E3s,_.kC,_.Qg],_.Ix,[0,Svp,bh,_.jM,cv4],_.Ix,t3s,_.Ix,[0],_.Ix,[0,_.kC,-1,_.Rx],_.Ix,[0,Mj,_.kC],_.Ix,[0,t3s,_.Rx,_.kC],_.Ix,[0,Y3,mq,_.jM],_.Ix,[0,Y3,mq,_.jM],_.Ix,[0,Svp,cv4,bh,_.hI,_.jM,Lor,-1],_.Ix,[0,Y3,mq,_.jM],_.Ix,[0,_.Qg]];var bzs=[0,_.Jh,ih];var izr=_.g6(NaX,[0,DwW,1,_.Rx,_.Ix,[0,[18,22,24],bzs,3,[0,bzs],1,_.Rx,[0,_.Jh,[0,_.Qg,w9],_.Qg],1,ih,-1,[0,_.r9,-2,_.hI,_.r9,-1,_.hI,_.r9,sLX,_.r9,-2],DLX,[!0,_.kC,[0,PZ4,2,_.kC,_.Qg,_.jM,2,_.kC,_.Zy]],[0,[1,2,3],[5,6],_.Ix,[0,_.d9],_.Ix,[0,_.d9,-1],_.Ix,[0,_.d9],1,_.Ix,L03,_.Ix,[0,_.kC]],[0,ih,-1],_.aq,ih,_.Ix,ih,[0,bzs],_.Rx,ih,_.Ix,ih,_.kC,_.Ix,ih,ih],_.Ix,cXs,_.Rx]);var qu0=new _.Ir("liveChatEndpoint");var Hz3=new _.Ir("liveChatItemContextMenuEndpoint");var fmG=new _.Ir("liveChatReplayEndpoint");_.BcT=new _.Ir("emojiPickerRenderer");var wHs=new _.Ir("liveChatAuthorBadgeViewModel");var R8s=new _.Ir("deleteLiveChatMessageCommand");var V30=new _.Ir("liveChatActionEndpoint");var QyW=new _.Ir("createLiveChatPollEndpoint");var ChT=new _.Ir("manageLiveChatUserEndpoint");var jyX=new _.Ir("moderateLiveChatEndpoint");_.r1Z=new _.Ir("sendLiveChatMessageEndpoint");var kwr=new _.Ir("sendLiveChatVoteEndpoint");var djZ=new _.Ir("clearLocationCommand");var uop=new _.Ir("resolveLocationCommand");var J1p=new _.Ir("interactionLoggingCommandMetadata");var Imf=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Imf,_.w6);var g3W=function(t,E){return _.gi(t,1,E)};var Zzf=[0,_.jM];var Oz3=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Oz3,_.w6);var XHr=function(t,E){return KT(t,1,Imf,E)};Oz3.prototype.JSC$12597_serializeBinary=Ms0([0,_.Jh,Zzf]);var ZCi={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 h8o={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"},
amZ={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 mfJ={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_RECONNECT_WITH_RETRY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_RECONNECT_WITH_RETRY"};_.DBK=new _.Ir("logFlowLoggingEventCommand");_.Th=new _.Ir("loggingContext");var e8r=new _.Ir("audioTrackSelectActionCommand");var Fqo=new _.Ir("captionLanguageSelectActionCommand");var z8m=new _.Ir("showAudioTrackPickerActionCommand");var lmW=new _.Ir("showCaptionLanguageSelectActionCommand");var GwW=new _.Ir("dismissDialogEndpoint");var n3m=new _.Ir("dismissPlayerOverlayCommand");var Nco=new _.Ir("hideItemSectionVideosByIdCommand");var Djm=new _.Ir("showMiniplayerCommand");var syZ=function(){yV.apply(this,arguments)};
_.u(syZ,yV);syZ.prototype.getAssociations=function(){return[]};
syZ.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var Lqs=function(){yV.apply(this,arguments)};
_.u(Lqs,yV);Lqs.prototype.getAssociations=function(){return[]};
Lqs.prototype.getTypeName=function(){return"downloadStatusEntity"};var Ph0=function(){yV.apply(this,arguments)};
_.u(Ph0,yV);Ph0.prototype.getAssociations=function(){return[]};
Ph0.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var Tc3=function(){yV.apply(this,arguments)};
_.u(Tc3,yV);Tc3.prototype.getAssociations=function(){var t=[];this.delegate.downloadsList&&t.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&t.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&t.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&t.push(this.delegate.refresh);return[].concat(_.KB(new Set(t)))};
Tc3.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var o3X=function(){yV.apply(this,arguments)};
_.u(o3X,yV);o3X.prototype.getAssociations=function(){var t=[];this.delegate.refresh&&t.push(this.delegate.refresh);if(this.delegate.downloads)for(var E=_.M(this.delegate.downloads),p=E.next();!p.done;p=E.next())t.push.apply(t,_.KB((new WqG(p.value)).getAssociations()));return[].concat(_.KB(new Set(t)))};
o3X.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var WqG=function(){vU.apply(this,arguments)};
_.u(WqG,vU);WqG.prototype.getAssociations=function(){var t=[];this.delegate.video&&t.push(this.delegate.video);this.delegate.playlist&&t.push(this.delegate.playlist);this.delegate.videoItem&&t.push(this.delegate.videoItem);this.delegate.playlistItem&&t.push(this.delegate.playlistItem);return[].concat(_.KB(new Set(t)))};var $jp=function(){yV.apply(this,arguments)};
_.u($jp,yV);$jp.prototype.getAssociations=function(){var t=[];this.delegate.localImageEntities&&t.push.apply(t,_.KB(this.delegate.localImageEntities));return[].concat(_.KB(new Set(t)))};
$jp.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var KqZ=function(){yV.apply(this,arguments)};
_.u(KqZ,yV);KqZ.prototype.getAssociations=function(){var t=[];this.delegate.playbackData&&t.push(this.delegate.playbackData);this.delegate.localImageEntities&&t.push.apply(t,_.KB(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&t.push(this.delegate.videoDownloadContextEntity);return[].concat(_.KB(new Set(t)))};
KqZ.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var v33=function(){yV.apply(this,arguments)};
_.u(v33,yV);v33.prototype.getAssociations=function(){return[]};
v33.prototype.getTypeName=function(){return"offlineabilityEntity"};var y14=function(){yV.apply(this,arguments)};
_.u(y14,yV);y14.prototype.getAssociations=function(){var t=[];this.delegate.fakeChildren&&t.push.apply(t,_.KB(this.delegate.fakeChildren));return[].concat(_.KB(new Set(t)))};
y14.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var SuG=function(){yV.apply(this,arguments)};
_.u(SuG,yV);SuG.prototype.getAssociations=function(){var t=[];this.delegate.video&&t.push(this.delegate.video);this.delegate.playbackData&&t.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&t.push(this.delegate.offlineVideoPolicy);return[].concat(_.KB(new Set(t)))};
SuG.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var c1s=function(){yV.apply(this,arguments)};
_.u(c1s,yV);c1s.prototype.getAssociations=function(){return[]};
c1s.prototype.getTypeName=function(){return"continuationTokenEntity"};var tVo=function(){yV.apply(this,arguments)};
_.u(tVo,yV);tVo.prototype.getAssociations=function(){var t=[];this.delegate.channelOwner&&t.push(this.delegate.channelOwner);this.delegate.videos&&t.push.apply(t,_.KB(this.delegate.videos));this.delegate.collaboratorChannels&&t.push.apply(t,_.KB(this.delegate.collaboratorChannels));this.delegate.downloadState&&t.push(this.delegate.downloadState);this.delegate.refresh&&t.push(this.delegate.refresh);return[].concat(_.KB(new Set(t)))};
tVo.prototype.getTypeName=function(){return"mainPlaylistEntity"};var EAs=function(){yV.apply(this,arguments)};
_.u(EAs,yV);EAs.prototype.getAssociations=function(){var t=[];this.delegate.video&&t.push(this.delegate.video);this.delegate.channelContributor&&t.push(this.delegate.channelContributor);return[].concat(_.KB(new Set(t)))};
EAs.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var p5r=function(){vU.apply(this,arguments)};
_.u(p5r,vU);p5r.prototype.getAssociations=function(){var t=[];this.delegate.recommendedVideoMetadata&&t.push.apply(t,_.KB((new UF4(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.KB(new Set(t)))};
var UF4=function(){vU.apply(this,arguments)};
_.u(UF4,vU);UF4.prototype.getAssociations=function(){var t=[];this.delegate.localImageEntities&&t.push.apply(t,_.KB(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&t.push(this.delegate.videoDownloadContextEntity);return[].concat(_.KB(new Set(t)))};var xFG=function(){vU.apply(this,arguments)};
_.u(xFG,vU);xFG.prototype.getAssociations=function(){var t=[];this.delegate.playbackPosition&&t.push(this.delegate.playbackPosition);return[].concat(_.KB(new Set(t)))};var ALs=function(){yV.apply(this,arguments)};
_.u(ALs,yV);ALs.prototype.getAssociations=function(){var t=[];this.delegate.owner&&t.push(this.delegate.owner);this.delegate.downloadState&&t.push(this.delegate.downloadState);this.delegate.userState&&t.push.apply(t,_.KB((new xFG(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&t.push.apply(t,_.KB((new p5r(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.KB(new Set(t)))};
ALs.prototype.getTypeName=function(){return"mainVideoEntity"};var YAT=function(){yV.apply(this,arguments)};
_.u(YAT,yV);YAT.prototype.getAssociations=function(){var t=[];this.delegate.userChannelDetails&&t.push(this.delegate.userChannelDetails);return[].concat(_.KB(new Set(t)))};
YAT.prototype.getTypeName=function(){return"ytMainChannelEntity"};var MV4=function(){yV.apply(this,arguments)};
_.u(MV4,yV);MV4.prototype.getAssociations=function(){var t=[];this.delegate.channelOwner&&t.push(this.delegate.channelOwner);this.delegate.playbackPosition&&t.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&t.push.apply(t,_.KB(this.delegate.localImageEntities));this.delegate.downloadStatus&&t.push(this.delegate.downloadStatus);return[].concat(_.KB(new Set(t)))};
MV4.prototype.getTypeName=function(){return"ytMainVideoEntity"};var kWl=new _.Ir("downloadsPageSmartDownloadsOptInBannerParams");var IFi=new _.Ir("downloadsPageUpsellBannerParams");var mFZ=function(){yV.apply(this,arguments)};
_.u(mFZ,yV);mFZ.prototype.getAssociations=function(){return[]};
mFZ.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var biW=function(){yV.apply(this,arguments)};
_.u(biW,yV);biW.prototype.getAssociations=function(){return[]};
biW.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var iiG=function(){yV.apply(this,arguments)};
_.u(iiG,yV);iiG.prototype.getAssociations=function(){return[]};
iiG.prototype.getTypeName=function(){return"macroMarkerEntity"};var qAs=function(){yV.apply(this,arguments)};
_.u(qAs,yV);qAs.prototype.getAssociations=function(){return[]};
qAs.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var Hir=function(){yV.apply(this,arguments)};
_.u(Hir,yV);Hir.prototype.getAssociations=function(){return[]};
Hir.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var fZX=function(){yV.apply(this,arguments)};
_.u(fZX,yV);fZX.prototype.getAssociations=function(){return[]};
fZX.prototype.getTypeName=function(){return"playerStateEntity"};var BYf=function(){yV.apply(this,arguments)};
_.u(BYf,yV);BYf.prototype.getAssociations=function(){return[]};
BYf.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var w5r=function(){yV.apply(this,arguments)};
_.u(w5r,yV);w5r.prototype.getAssociations=function(){return[]};
w5r.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var RT4=function(){yV.apply(this,arguments)};
_.u(RT4,yV);RT4.prototype.getAssociations=function(){return[]};
RT4.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.Hn=new _.Ir("dislikeButtonViewModel");_.qm=new _.Ir("likeButtonViewModel");var VV4=new _.Ir("videoSummaryContentViewModel");var QSG=new _.Ir("videoSummaryParagraphViewModel");var Ct0=new _.Ir("changeTimelyActionVisibilityCommand");var jSp=new _.Ir("hideEngagementPanelEndpoint");var rLr=new _.Ir("refreshPanelEndpoint");var k00=new _.Ir("scrollToSectionEndpoint");var dF0=new _.Ir("seekToVideoTimestampCommand");_.Ua=new _.Ir("showEngagementPanelEndpoint");var unW=new _.Ir("showTransientPlayerScrimOverlayCommand");var JLr=new _.Ir("toggleEngagementPanelCommand");var IZX=new _.Ir("aiResponseBoxViewModel");_.gAf=new _.Ir("createBroadcastCommand");var ZiG=new _.Ir("metadataUpdateCommand");var OiG=function(){yV.apply(this,arguments)};
_.u(OiG,yV);OiG.prototype.getAssociations=function(){return[]};
OiG.prototype.getTypeName=function(){return"featuredProductsEntity"};var X54=function(){yV.apply(this,arguments)};
_.u(X54,yV);X54.prototype.getAssociations=function(){return[]};
X54.prototype.getTypeName=function(){return"pinnedProductEntity"};var hTr=function(){yV.apply(this,arguments)};
_.u(hTr,yV);hTr.prototype.getAssociations=function(){return[]};
hTr.prototype.getTypeName=function(){return"trendingOfferEntity"};_.aZG=new _.Ir("merchandiseShelfRenderer");var eT4=new _.Ir("shoppingContentLineItemViewModel");var FPp=new _.Ir("gridMovieRenderer");_.zT0=new _.Ir("movieRenderer");var lZ3=function(){yV.apply(this,arguments)};
_.u(lZ3,yV);lZ3.prototype.getAssociations=function(){return[]};
lZ3.prototype.getTypeName=function(){return"compositeSourceEntity"};var G00=function(){yV.apply(this,arguments)};
_.u(G00,yV);G00.prototype.getAssociations=function(){var t=[];this.delegate.compositeSourceKeys&&t.push.apply(t,_.KB(this.delegate.compositeSourceKeys));return[].concat(_.KB(new Set(t)))};
G00.prototype.getTypeName=function(){return"multiviewStagingEntity"};var nAG=function(){yV.apply(this,arguments)};
_.u(nAG,yV);nAG.prototype.getAssociations=function(){var t=[];this.delegate.trackDownloadMetadatas&&t.push.apply(t,_.KB(this.delegate.trackDownloadMetadatas));return[].concat(_.KB(new Set(t)))};
nAG.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var NYm=function(){yV.apply(this,arguments)};
_.u(NYm,yV);
NYm.prototype.getAssociations=function(){var t=[];this.delegate.downloadedTracks&&t.push.apply(t,_.KB(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&t.push.apply(t,_.KB(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&t.push.apply(t,_.KB(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&t.push.apply(t,_.KB(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&t.push.apply(t,_.KB(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
t.push.apply(t,_.KB(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&t.push.apply(t,_.KB(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&t.push.apply(t,_.KB(this.delegate.metadataOnlyTracks));return[].concat(_.KB(new Set(t)))};
NYm.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var DFG=function(){yV.apply(this,arguments)};
_.u(DFG,yV);DFG.prototype.getAssociations=function(){var t=[];this.delegate.trackDownloadMetadatas&&t.push.apply(t,_.KB(this.delegate.trackDownloadMetadatas));return[].concat(_.KB(new Set(t)))};
DFG.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var sSr=function(){yV.apply(this,arguments)};
_.u(sSr,yV);sSr.prototype.getAssociations=function(){var t=[];this.delegate.playbackData&&t.push(this.delegate.playbackData);this.delegate.localImageEntities&&t.push.apply(t,_.KB(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&t.push(this.delegate.videoDownloadContextEntity);return[].concat(_.KB(new Set(t)))};
sSr.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var LPp=function(){yV.apply(this,arguments)};
_.u(LPp,yV);
LPp.prototype.getAssociations=function(){var t=[];this.delegate.musicLibraryStatusEntity&&t.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&t.push.apply(t,_.KB(this.delegate.primaryArtists));this.delegate.details&&t.push(this.delegate.details);this.delegate.userDetails&&t.push(this.delegate.userDetails);this.delegate.tracks&&t.push.apply(t,_.KB(this.delegate.tracks));this.delegate.share&&t.push(this.delegate.share);this.delegate.downloadMetadata&&t.push(this.delegate.downloadMetadata);this.delegate.refresh&&
t.push(this.delegate.refresh);return[].concat(_.KB(new Set(t)))};
LPp.prototype.getTypeName=function(){return"musicAlbumRelease"};
var Ptr=function(){yV.apply(this,arguments)};
_.u(Ptr,yV);Ptr.prototype.getAssociations=function(){var t=[];this.delegate.albumRelease&&t.push(this.delegate.albumRelease);this.delegate.tracks&&t.push.apply(t,_.KB(this.delegate.tracks));return[].concat(_.KB(new Set(t)))};
Ptr.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var TY3=function(){yV.apply(this,arguments)};
_.u(TY3,yV);TY3.prototype.getAssociations=function(){var t=[];this.delegate.albumRelease&&t.push(this.delegate.albumRelease);return[].concat(_.KB(new Set(t)))};
TY3.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var oAs=function(){yV.apply(this,arguments)};
_.u(oAs,yV);oAs.prototype.getAssociations=function(){var t=[];this.delegate.details&&t.push(this.delegate.details);this.delegate.userDetails&&t.push(this.delegate.userDetails);return[].concat(_.KB(new Set(t)))};
oAs.prototype.getTypeName=function(){return"musicArtist"};
var WPs=function(){yV.apply(this,arguments)};
_.u(WPs,yV);WPs.prototype.getAssociations=function(){var t=[];this.delegate.parentArtist&&t.push(this.delegate.parentArtist);return[].concat(_.KB(new Set(t)))};
WPs.prototype.getTypeName=function(){return"musicArtistDetail"};
var $Fm=function(){yV.apply(this,arguments)};
_.u($Fm,yV);$Fm.prototype.getAssociations=function(){var t=[];this.delegate.parentArtist&&t.push(this.delegate.parentArtist);return[].concat(_.KB(new Set(t)))};
$Fm.prototype.getTypeName=function(){return"musicArtistUserDetail"};var KPr=function(){yV.apply(this,arguments)};
_.u(KPr,yV);KPr.prototype.getAssociations=function(){return[]};
KPr.prototype.getTypeName=function(){return"musicLibraryEdit"};var vA0=function(){yV.apply(this,arguments)};
_.u(vA0,yV);vA0.prototype.getAssociations=function(){return[]};
vA0.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var yLT=function(){yV.apply(this,arguments)};
_.u(yLT,yV);
yLT.prototype.getAssociations=function(){var t=[];this.delegate.tracks&&t.push.apply(t,_.KB(this.delegate.tracks));this.delegate.refresh&&t.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&t.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&t.push(this.delegate.details);this.delegate.downloadMetadata&&t.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&t.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&t.push(this.delegate.userDetails);this.delegate.entryCollection&&
t.push(this.delegate.entryCollection);this.delegate.share&&t.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&t.push.apply(t,_.KB((new SAT(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.KB(new Set(t)))};
yLT.prototype.getTypeName=function(){return"musicPlaylist"};
var SAT=function(){vU.apply(this,arguments)};
_.u(SAT,vU);SAT.prototype.getAssociations=function(){var t=[];this.delegate.creatorEntity&&t.push(this.delegate.creatorEntity);return[].concat(_.KB(new Set(t)))};var cLf=function(){yV.apply(this,arguments)};
_.u(cLf,yV);cLf.prototype.getAssociations=function(){return[]};
cLf.prototype.getTypeName=function(){return"musicShare"};var t4o=function(){yV.apply(this,arguments)};
_.u(t4o,yV);
t4o.prototype.getAssociations=function(){var t=[];this.delegate.musicLibraryStatusEntity&&t.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&t.push.apply(t,_.KB(this.delegate.artists));this.delegate.audioModeVersion&&t.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&t.push(this.delegate.videoModeVersion);this.delegate.userDetails&&t.push(this.delegate.userDetails);this.delegate.details&&t.push(this.delegate.details);this.delegate.albumRelease&&t.push(this.delegate.albumRelease);this.delegate.share&&
t.push(this.delegate.share);this.delegate.libraryEdit&&t.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&t.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&t.push(this.delegate.playbackPosition);this.delegate.lyrics&&t.push(this.delegate.lyrics);return[].concat(_.KB(new Set(t)))};
t4o.prototype.getTypeName=function(){return"musicTrack"};
var E9X=function(){yV.apply(this,arguments)};
_.u(E9X,yV);E9X.prototype.getAssociations=function(){var t=[];this.delegate.parentTrack&&t.push(this.delegate.parentTrack);return[].concat(_.KB(new Set(t)))};
E9X.prototype.getTypeName=function(){return"musicTrackDetail"};
var pgs=function(){yV.apply(this,arguments)};
_.u(pgs,yV);pgs.prototype.getAssociations=function(){var t=[];this.delegate.parentTrack&&t.push(this.delegate.parentTrack);return[].concat(_.KB(new Set(t)))};
pgs.prototype.getTypeName=function(){return"musicTrackUserDetail"};var rI=new _.Ir("musicResponsiveListItemRenderer");var H8E=new _.Ir("addToPlaylistEndpoint");var U7r=new _.Ir("captionPickerEndpoint");var x7s=new _.Ir("suggestStats");var ASG=new _.Ir("backstageImageUploadEndpoint");var Y0W=new _.Ir("createBackstagePostDialogEndpoint");_.M4r=new _.Ir("createCommentReplyDialogEndpoint");_.m7s=new _.Ir("updateCommentDialogEndpoint");_.bSr=new _.Ir("updateCommentReplyDialogEndpoint");var iS3=new _.Ir("menuEndpoint");var HKD=new _.Ir("modalEndpoint");var q0X=new _.Ir("playlistEditorEndpoint");var HSs=new _.Ir("copyTextEndpoint");var f5G,B8f;f5G=new _.Ir("shareEndpoint");B8f=new _.Ir("shareEntityEndpoint");_.wgo=new _.Ir("shareEntityServiceEndpoint");_.UoK=new _.Ir("userFeedbackEndpoint");_.HD=new _.Ir("watchEndpoint");var MFY=new _.Ir("watchPlaylistEndpoint");var Rkp=new _.Ir("addUpcomingEventReminderEndpoint");_.qj=new _.Ir("getCommentsFromInboxCommand");var V4f=new _.Ir("notificationOptOutEndpoint");var QOG=new _.Ir("recordNotificationInteractionsEndpoint");var Cur=new _.Ir("removeUpcomingEventReminderEndpoint");_.Vb=new _.Ir("getDownloadActionCommand");_.jO3=new _.Ir("offlineOrchestrationActionCommand");var rS4=function(){yV.apply(this,arguments)};
_.u(rS4,yV);rS4.prototype.getAssociations=function(){return[]};
rS4.prototype.getTypeName=function(){return"captionTrack"};var knZ=function(){yV.apply(this,arguments)};
_.u(knZ,yV);knZ.prototype.getAssociations=function(){return[]};
knZ.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var d7G=function(){yV.apply(this,arguments)};
_.u(d7G,yV);d7G.prototype.getAssociations=function(){return[]};
d7G.prototype.getTypeName=function(){return"offlineVideoPolicy"};var uAs=function(){yV.apply(this,arguments)};
_.u(uAs,yV);uAs.prototype.getAssociations=function(){return[]};
uAs.prototype.getTypeName=function(){return"offlineVideoStreams"};var JSZ=function(){yV.apply(this,arguments)};
_.u(JSZ,yV);JSZ.prototype.getAssociations=function(){var t=[];this.delegate.transfer&&t.push(this.delegate.transfer);this.delegate.adsPlaybackData&&t.push.apply(t,_.KB(this.delegate.adsPlaybackData));this.delegate.drmLicense&&t.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&t.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&t.push(this.delegate.videoDownloadContextEntity);return[].concat(_.KB(new Set(t)))};
JSZ.prototype.getTypeName=function(){return"playbackData"};var I5m=function(){yV.apply(this,arguments)};
_.u(I5m,yV);I5m.prototype.getAssociations=function(){return[]};
I5m.prototype.getTypeName=function(){return"refresh"};var g93=function(){yV.apply(this,arguments)};
_.u(g93,yV);g93.prototype.getAssociations=function(){var t=[];this.delegate.offlineVideoStreams&&t.push.apply(t,_.KB(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&t.push.apply(t,_.KB(this.delegate.captionTrack));return[].concat(_.KB(new Set(t)))};
g93.prototype.getTypeName=function(){return"transfer"};var ZSX=function(){yV.apply(this,arguments)};
_.u(ZSX,yV);ZSX.prototype.getAssociations=function(){return[]};
ZSX.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var OSr=new _.Ir("showMoreDrawerCommand");var Xg4=new _.Ir("updateEngagementPanelContentCommand");var hkm=new _.Ir("getPdgBuyFlowCommand");var a5Z=new _.Ir("liveChatPurchaseMessageEndpoint");var eks=new _.Ir("openSuperStickerBuyFlowCommand");var FIT=new _.Ir("updatePdgFeatureEnablementCommand");var zkW=function(){yV.apply(this,arguments)};
_.u(zkW,yV);zkW.prototype.getAssociations=function(){return[]};
zkW.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var l5W=function(){yV.apply(this,arguments)};
_.u(l5W,yV);l5W.prototype.getAssociations=function(){return[]};
l5W.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.Gnr=new _.Ir("pdgCommentChipRenderer");_.n9r=new _.Ir("permissionRoleBottomBarRenderer");_.N8p=new _.Ir("updatePermissionRoleCommand");var D7f=new _.Ir("prefetchWatchCommand");var sOo=new _.Ir("updatePlayerErrorMessageCommand");var UI8=new _.Ir("toggleCaptionsVisibilityCommand");var LIs=new _.Ir("playerDisclosureViewModel");_.Pus=new _.Ir("quickActionsViewModel");var T84=new _.Ir("playerResponse");var o90=new _.Ir("playlistRenderer");_.WIo=new _.Ir("playlistVideoListRenderer");_.HH=new _.Ir("playlistEditEndpoint");var $7f=new _.Ir("createImagePollCommand");var KIT=new _.Ir("createQuizCommand");var v9m=new _.Ir("quizRenderer");var yS4=new _.Ir("uploadedVideoRenderer");var S0r=new _.Ir("decorateMessageEndpoint");var cSm=new _.Ir("lpOfferCardOptionViewModel");var tZo=new _.Ir("sfvAudioItemPlaybackCommand");var Et0=function(){yV.apply(this,arguments)};
_.u(Et0,yV);Et0.prototype.getAssociations=function(){return[]};
Et0.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.fz=new _.Ir("reelNonVideoContentEndpoint");_.DK=new _.Ir("reelWatchEndpoint");var pdr=new _.Ir("reelActionBarViewModel");_.BH=new _.Ir("reelItemRenderer");var UY4=new _.Ir("reelMetapanelViewModel");_.wc=new _.Ir("reelNonVideoContentRenderer");_.xYX=new _.Ir("reelPlayerOverlayRenderer");var A4G=new _.Ir("shortsLockupViewModel");var Y7f=new _.Ir("sponsorButtonViewModel");var MZT=new _.Ir("reelItemWatchResponse");var mYr=new _.Ir("textBadgeRenderer");_.Ry=new _.Ir("buttonRenderer");_.Vs=new _.Ir("toggleButtonRenderer");var fWj=new _.Ir("switchButtonViewModel");_.bH3=new _.Ir("confirmDialogRenderer");var iH3;iH3=new _.Ir("menuRenderer");_.q7X=new _.Ir("menuFlexibleItemRenderer");var HHX=new _.Ir("pollRenderer");_.fFf=new _.Ir("backgroundPromoRenderer");var wdT;_.Bws=new _.Ir("chipCloudRenderer");wdT=new _.Ir("chipCloudChipRenderer");var ROT=new _.Ir("dropdownRenderer");var VZ3=new _.Ir("gridVideoRenderer");_.QUp=new _.Ir("itemSectionRenderer");_.CIp=new _.Ir("messageRenderer");var jUW=new _.Ir("sortFilterHeaderRenderer");_.r4m=new _.Ir("videoRenderer");var kWT=new _.Ir("resolveUrlCommandMetadata");var dYo=function(){yV.apply(this,arguments)};
_.u(dYo,yV);dYo.prototype.getAssociations=function(){return[]};
dYo.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.uh4=new _.Ir("getAnswerCommand");_.G2=new _.Ir("searchEndpoint");var J4Z=new _.Ir("genAiRichTextViewModel");var i8$=new _.Ir("overviewAnswerViewModel");var IFr=new _.Ir("videoOverviewViewModel");var gt0=new _.Ir("addToPlaylistServiceEndpoint");var ZHX=new _.Ir("clearSearchHistoryEndpoint");var OHr=new _.Ir("clearWatchHistoryEndpoint");var Xdm=new _.Ir("webSerializedServiceEndpointExtension");_.hOs=new _.Ir("createCommentEndpoint");var aFX=new _.Ir("createCommentReplyEndpoint");var eOZ=new _.Ir("performCommentActionEndpoint");var F3X=new _.Ir("updateCommentEndpoint");var zOr=new _.Ir("updateCommentReplyEndpoint");_.Qs=new _.Ir("createPlaylistServiceEndpoint");var lF0=new _.Ir("deletePlaylistEndpoint");var GWX=new _.Ir("deleteVideoEndpoint");var q38=new _.Ir("getReportFormEndpoint");var ntm=new _.Ir("modifyChannelNotificationPreferenceEndpoint");var k7E;_.GE=new _.Ir("offlinePlaylistEndpoint");k7E={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 d5i;_.lA=new _.Ir("offlineVideoEndpoint");d5i={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 Nw0=new _.Ir("pingingEndpoint");_.DYZ=new _.Ir("selectActiveIdentityEndpoint");var sUr=new _.Ir("setSettingEndpoint");var WGD=new _.Ir("undoFeedbackEndpoint");var L3G=new _.Ir("unsubscribeEndpoint");_.PIs=new _.Ir("updatedMetadataEndpoint");var Twf=function(){yV.apply(this,arguments)};
_.u(Twf,yV);Twf.prototype.getAssociations=function(){return[]};
Twf.prototype.getTypeName=function(){return"settingEntity"};_.ots=new _.Ir("updateLocalAppSettingCommand");var W3p=new _.Ir("saveImageToDeviceEndpoint");var $Y0=new _.Ir("shareImageCommand");var K3W=new _.Ir("sharingProviderDataCommand");var vts=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(vts,_.w6);var y4m=[0,_.kC,-1];vts.prototype.JSC$12804_serializeBinary=Ms0(y4m);var S70=_.OS(y4m);var c4W=new _.Ir("userMentionSuggestionRenderer");var tpX=new _.Ir("liveChatTunnelCommand");var Epo=new _.Ir("showSponsorshipsGiftOfferDialogCommand");var peW=new _.Ir("sponsorshipsScrollableShelfViewModel");var UTr=new _.Ir("updateUpcomingEventReminderButtonStateCommand");var xTZ=new _.Ir("upcomingEventReminderButtonStateRenderer");var ATp=new _.Ir("subscribeEndpoint");var Y9r=new _.Ir("registerTasksCommand");var Mps=new _.Ir("hideSheetCommand");var mTs=new _.Ir("hideSnackbarCommand");var bET=new _.Ir("showDialogCommand");_.TE=new _.Ir("showSheetCommand");var iEs=new _.Ir("showSnackbarCommand");var q9T=function(){yV.apply(this,arguments)};
_.u(q9T,yV);q9T.prototype.getAssociations=function(){return[]};
q9T.prototype.getTypeName=function(){return"chipEntity"};var HE0=function(){yV.apply(this,arguments)};
_.u(HE0,yV);HE0.prototype.getAssociations=function(){return[]};
HE0.prototype.getTypeName=function(){return"dismissState"};_.UX=new _.Ir("avatarViewModel");var fHX=new _.Ir("badgeViewModel");_.Cz=new _.Ir("buttonViewModel");_.j3=new _.Ir("chipViewModel");var By3=new _.Ir("contentPreviewImageViewModel");var weW=new _.Ir("decoratedAvatarViewModel");_.abJ=new _.Ir("engagementBarViewModel");_.Rho=new _.Ir("imageBannerViewModel");var Vps=new _.Ir("lockupContentMetadataRowExtension");_.Qlr=new _.Ir("lockupMetadataViewModel");var CeW=new _.Ir("lockupViewModel");var jls=new _.Ir("avatarStackViewModel");_.rT0=new _.Ir("contentMetadataViewModel");var kpf=function(){yV.apply(this,arguments)};
_.u(kpf,yV);kpf.prototype.getAssociations=function(){return[]};
kpf.prototype.getTypeName=function(){return"pageHeaderEntity"};_.dTG=new _.Ir("pageHeaderViewModel");var u_s=new _.Ir("snackbarViewModel");var JTG=new _.Ir("thumbnailHoverOverlayToggleActionsViewModel");_.rc=new _.Ir("toggleButtonViewModel");var IH3=function(){yV.apply(this,arguments)};
_.u(IH3,yV);IH3.prototype.getAssociations=function(){return[]};
IH3.prototype.getTypeName=function(){return"votingEntity"};_.enD=new _.Ir("votingViewModel");var gpr=new _.Ir("sectionHeaderViewModel");var ZET=new _.Ir("notifyDropdownOptionSelectedCommand");var TOi=new _.Ir("listViewModel");_.on=new _.Ir("listItemViewModel");var OEZ=new _.Ir("dialogHeaderViewModel");var Xe0=function(){yV.apply(this,arguments)};
_.u(Xe0,yV);Xe0.prototype.getAssociations=function(){return[]};
Xe0.prototype.getTypeName=function(){return"dataFreshnessEntity"};var SoJ=new _.Ir("suspenseViewModel");var hhX=new _.Ir("tooltipViewModel");var aHW=function(){yV.apply(this,arguments)};
_.u(aHW,yV);aHW.prototype.getAssociations=function(){return[]};
aHW.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var ehf=function(){yV.apply(this,arguments)};
_.u(ehf,yV);ehf.prototype.getAssociations=function(){return[]};
ehf.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var FgX=function(){yV.apply(this,arguments)};
_.u(FgX,yV);FgX.prototype.getAssociations=function(){return[]};
FgX.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.zh3=new _.Ir("transcriptSubmitCaptionCorrectionCommand");var lH4=function(){yV.apply(this,arguments)};
_.u(lH4,yV);lH4.prototype.getAssociations=function(){return[]};
lH4.prototype.getTypeName=function(){return"buttonEntity"};var tyL=new _.Ir("unpluggedStringRunImage");var GpX=new _.Ir("tabViewModel");var npm=new _.Ir("tabbedViewModel");var NyT=function(){yV.apply(this,arguments)};
_.u(NyT,yV);NyT.prototype.getAssociations=function(){return[]};
NyT.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.DTm=new _.Ir("updateDescriptionAction");var slm=new _.Ir("updateToggleButtonTextAction");var Lgr=new _.Ir("showFullscreenPlayerControlsCommand");var Peo=new _.Ir("updateVideoMetadataCommand");_.Tyr=new _.Ir("autoplaySwitchButtonRenderer");var YZ;_.opW=new _.Ir("multiMarkersPlayerBarRenderer");YZ=new _.Ir("chapterRenderer");var Wgm=new _.Ir("heatMarkerRenderer");var An_=new _.Ir("heatmapRenderer");var $TX=new _.Ir("smartSkipPlayerScrimOverlayRenderer");var KgG=new _.Ir("timedMarkerDecorationRenderer");var jP0=new _.Ir("postWebToNativeMessageCommand");var xu=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(xu,_.w6);xu.prototype.getMethodName=function(){return _.th(this,1)};var vp0=[0,_.kC,-2];xu.prototype.JSC$12826_serializeBinary=Ms0(vp0);var yTm=_.g6(xu,vp0);var tmo=new _.Ir("whitelistEditEndpoint");var El3=new _.Ir("clearUrlParamCommand");var pMG=new _.Ir("commerceActionCommand");_.UkZ=new _.Ir("getPaymentInstrumentsParamsCommand");var xks=new _.Ir("getPaymentsClientTokenCommand");var Acp=new _.Ir("googlePaymentBillingCommand");var YMG=new _.Ir("googlePaymentPurchaseManagerCommand");_.Mms=new _.Ir("logGtmCommand");var mk4=new _.Ir("updateCardItemOnClickCommand");_.bk3=new _.Ir("ypcPauseSubscriptionCommand");_.ikp=new _.Ir("ypcResumeSubscriptionCommand");var qMo=function(){yV.apply(this,arguments)};
_.u(qMo,yV);qMo.prototype.getAssociations=function(){return[]};
qMo.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var Hks=function(){yV.apply(this,arguments)};
_.u(Hks,yV);Hks.prototype.getAssociations=function(){return[]};
Hks.prototype.getTypeName=function(){return"commerceCartListEntity"};var f7G=function(){yV.apply(this,arguments)};
_.u(f7G,yV);f7G.prototype.getAssociations=function(){return[]};
f7G.prototype.getTypeName=function(){return"iconBadgeEntity"};var Bps=function(){yV.apply(this,arguments)};
_.u(Bps,yV);Bps.prototype.getAssociations=function(){return[]};
Bps.prototype.getTypeName=function(){return"pdpStateEntity"};var wMr=function(){yV.apply(this,arguments)};
_.u(wMr,yV);wMr.prototype.getAssociations=function(){return[]};
wMr.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var y$_=new _.Ir("ypcOffersEndpoint");var RH3=new _.Ir("cardItemRenderer"),Vms=new _.Ir("cardItemTextRenderer");var QIr=new _.Ir("commerceCartItemQuantityPickerRenderer");var CS0=new _.Ir("linkCardRenderer");var fh8=new _.Ir("quantityIncrementerButtonViewModel");var jI0=new _.Ir("quantityIncrementerViewModel");var rcm=new _.Ir("themedImageViewModel");_.kRr=new _.Ir("ypcCancelRecurrenceEndpoint");var dks=new _.Ir("ypcCompleteTransactionEndpoint");_.uNX=new _.Ir("ypcGetCartEndpoint");_.RF=new _.Ir("ypcGetOffersEndpoint");_.k3=new _.Ir("ypcHandleTransactionEndpoint");var JcX=new _.Ir("ypcLogWalletAnalyticDataEndpoint");_.I7m=new _.Ir("ypcRedeemCodeEndpoint");var gl4=new _.Ir("ypcUpdateFopEndpoint");Xq(Ov(1),IL(4));akZ((new MessageChannel).port2);var ZkX=function(){this.register=new Map},XUJ=function(t,E,p){t=t+"_"+E;
dc.register.has(t)?p=dc.register.get(t):(p=p(),dc.register.set(t,p));return p},OkW=function(t){t=_.M(t.register.values());
for(var E=t.next();!E.done;E=t.next())_.nr(E.value,"ABORTED")};
ZkX.prototype.clear=function(){OkW(this);this.register.clear()};
var dc=new ZkX;var iCE=Date.now().toString();var faD=HCL();var rvO={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 XM3;XM3=1;_.K_=function(t){this.veData=t};
_.$8=function(t){return new _.K_({trackingParams:t})};
_.h8=function(t,E,p,U,x,A){var m=XM3++;return new _.K_({veType:t,veCounter:m,elementIndex:p,dataElement:E,youtubeData:U,jspbYoutubeData:x,loggingDirectives:A})};
_.Y=_.K_.prototype;
_.Y.getAsJson=function(){var t={};this.veData.trackingParams!==void 0?t.trackingParams=this.veData.trackingParams:(t.veType=this.veData.veType,this.veData.veCounter!==void 0&&(t.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(t.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(t.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(t.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(t.isCounterfactual=!0);
return t};
_.Y.getAsJspb=function(){var t=new XDf;this.veData.trackingParams!==void 0?t.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.Ah(t,2,this.veData.veType),this.veData.veCounter!==void 0&&_.Ah(t,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.Ah(t,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.gi(t,5,!0));if(this.veData.dataElement!==void 0){var E=this.veData.dataElement.getAsJspb();_.FU(t,7,E)}this.veData.youtubeData!==void 0&&_.FU(t,8,this.veData.jspbYoutubeData);
return t};
_.Y.toString=function(){return JSON.stringify(this.getAsJson())};
_.Y.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.Y.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.Oy("yt_logging_screen.getRootVeType",QLD);_.Oy("yt_logging_screen.getCurrentCsn",_.yL);_.Oy("yt_logging_screen.getCttAuthInfo",SQ);_.Oy("yt_logging_screen.setCurrentScreen",_.cV);var hHr=function(){this.events=new Map},a7s=function(t){var E=[];
t=_.M(t.events.values());for(var p=t.next();!p.done;p=t.next())E.push(p.value);return E};
hHr.prototype.clear=function(){this.events.clear()};var FwW=function(){this.logTransport=new eH4;this.loggedEventRegister=new hHr;this.unloggedEventRegister=new hHr;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12863_flushTimer=new _.vQ(this.flushInterval);this.JSC$12863_flushTimer.listen("tick",this.flush,!1,this)};
FwW.prototype.flush=function(){if(this.eventsCount){var t={loggedEvents:a7s(this.loggedEventRegister),unloggedEvents:a7s(this.unloggedEventRegister)};if(_.r("export_player_version_to_ytconfig")){var E;(E=_.qO("PLAYER_CLIENT_VERSION"))?(E=E.split("-")[0].replace(/\./g,""),E=isNaN(Number(E))?"0":E):E="";var p=_.qO("PLAYER_CLIENT_VERSION");if(p){p=p.split("-");var U="";p.length>1&&(U=p[p.length-1]);p=bCK(U.startsWith("canary_experiment")?"canary":U.startsWith("canary_control")?"control":"none")}else p=
"CLIENT_CANARY_STATE_UNKNOWN";t.dimensions={playerClientVersion:E,playerCanaryState:p}}this.logTransport.flush(t);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12863_flushTimer.enabled&&this.JSC$12863_flushTimer.stop()}};
var zH3=function(t){uh==null&&(uh=new FwW);var E=uh;var p=E.loggedEventRegister;t.dimensions=t.dimensions||{};t.dimensions.csn=_.yL()||"";var U=uqO(t.dimensions).join(";");if(t.records!=null)if(p.events.has(U)){var x;(x=p.events.get(U).records)==null||x.push.apply(x,_.KB(t.records))}else p.events.set(U,t);E.JSC$12863_flushTimer.enabled||E.JSC$12863_flushTimer.start();E.eventsCount++;E.eventsCount>=100&&E.flush()};var eH4=function(){};
eH4.prototype.flush=function(t,E){_.r("enable_client_sli_logging")&&_.MW("sliEventBatch",t,{sendIsolatedPayload:!!E})};var uh;var GRs;GRs=function(t){var E=l7Z;t=t===void 0?{}:t;E=E.name;var p=OCj("SUCCESS");zH3({dimensions:t,records:[{name:E,state:"SLI_STATE_END",status:p}]})};
_.hz_=function(t,E,p,U){this.name=t;this.sliId=E;this.timeoutMs=p;this.statusOnTimeout=U;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.hz_.prototype.getId=function(){return this.sliId};
_.Gs=function(t,E){E=E===void 0?{}:E;t.ongoing||(t.ongoing=!0,t.dimensions=E,t.logSliId=cI_(),zH3({dimensions:t.dimensions,records:[{name:t.name,state:"SLI_STATE_START",sliId:t.logSliId}]}),t.timeoutMs>0&&(t.timeoutHandle=setTimeout(function(){_.nr(t,t.statusOnTimeout)},t.timeoutMs)))};
_.nr=function(t,E){t.ongoing&&(t.timeoutMs>0&&clearTimeout(t.timeoutHandle),t.ongoing=!1,E={dimensions:t.dimensions,records:[{name:t.name,status:OCj(E),state:"SLI_STATE_END",sliId:t.logSliId}]},dc.register.delete(t.name+"_"+t.sliId),zH3(E))};var l7Z=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var nlT=function(){yV.apply(this,arguments)};
_.u(nlT,yV);nlT.prototype.getAssociations=function(){return[]};
nlT.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var Np0=new _.Ir("highlightTextDecoratorColorMapExtension");var Dkp=new _.Ir("styleRunColorMapExtension");var nY0=_.CG(["data-"]),sLt={};var PZO={};var J1=function(t){this.wrappedPromise_=t===void 0?null:t;this.state_=0;this.JSC$12894_value_=null};
J1.prototype.then=function(t,E,p){return this.wrappedPromise_?this.wrappedPromise_.then(t,E,p):this.state_===1&&t?(t=t.call(p,this.JSC$12894_value_))&&typeof t.then==="function"?t:_.Iy(t):this.state_===2&&E?(t=E.call(p,this.JSC$12894_value_))&&typeof t.then==="function"?t:_.sIo(t):this};
J1.prototype.getValue=function(){return this.JSC$12894_value_};
J1.prototype.isRejected=function(){return this.state_==2};
D$Z(J1);_.sIo=function(t){var E=new J1;t=t===void 0?null:t;E.state_=2;E.JSC$12894_value_=t===void 0?null:t;return E};
_.Iy=function(t){var E=new J1;t=t===void 0?null:t;E.state_=1;E.JSC$12894_value_=t===void 0?null:t;return E};var A1l="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var Lwp=["load","abort","error"],Zm=function(t,E,p){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12914_maxAspectRatio_=t;this.disableAnimation_=E===void 0?!1:E;this.disableExifRotation_=p===void 0?!1:p;this.JSC$12914_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12914_reject_=this.resolve_=null};
Zm.prototype.transform=function(t){var E=this;this.mime_=t.type;g0(JJT(t),this.dataUrlRead_,this.readError_,this);g0(u5s(t.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(p,U){E.resolve_=p;E.JSC$12914_reject_=U})};
Zm.prototype.dataUrlRead_=function(t){this.dataUrl_=t;this.angle_!=null&&PSm(this)};
Zm.prototype.exifRead_=function(t){if(this.disableExifRotation_)this.angle_=0;else{a:if(t=new DataView(t),t.byteLength<2||t.getUint16(0)!==65496)t=-2;else{for(var E=2,p=t.byteLength;E<p;){var U=t.getUint16(E),x=t.getUint16(E+2);if(U===65505){E+=4;U=t.getUint32(E);x=t.getUint16(E+4);if(U!==1165519206||x!==0)break;E+=6;U=t.getUint16(E)===18761;E+=t.getUint32(E+4,U);x=t.getUint16(E,U);E+=2;for(var A=0;A<x;A++){if(t.getUint16(E,U)===274){E+=8;t=t.getUint16(E,U);break a}E+=12}}else if(U>>8!==255)break;
else E+=x+2}t=-1}switch(t){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&&PSm(this)};
Zm.prototype.readError_=function(){this.JSC$12914_reject_()};
var PSm=function(t){pN(t.JSC$12914_image_,Lwp,t.completeTransform_,!1,t);t.JSC$12914_image_.src=_.S8(t.dataUrl_).toString();t.JSC$12914_image_.src!=y$.toString()&&t.JSC$12914_image_.src.substr(0,11)==="data:image/"||t.JSC$12914_reject_()};
Zm.prototype.completeTransform_=function(){if(this.JSC$12914_image_.src!=y$.toString()){var t=_.S8(this.dataUrl_),E=this.JSC$12914_image_.naturalHeight?this.JSC$12914_image_.naturalWidth/this.JSC$12914_image_.naturalHeight:null;this.invalidAspectRatio=E>this.JSC$12914_maxAspectRatio_||E<1/this.JSC$12914_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var p=this.JSC$12914_image_.naturalWidth,U=this.JSC$12914_image_.naturalHeight,x=E=0,A=this.JSC$12914_image_.naturalHeight?this.JSC$12914_image_.naturalWidth/
this.JSC$12914_image_.naturalHeight:null;A>this.JSC$12914_maxAspectRatio_?(p=this.JSC$12914_maxAspectRatio_*U,E=(p-this.JSC$12914_image_.naturalWidth)/2,this.cropped=!0):A<1/this.JSC$12914_maxAspectRatio_?(U=this.JSC$12914_maxAspectRatio_*p,x=(U-this.JSC$12914_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)A=p,p=U,U=A,A=E,E=x,x=A;switch(this.angle_){case 90:x-=p;break;case 180:E-=p;x-=U;break;case 270:E-=
U}this.cropped||this.angle_%360!==0?(t=document.createElement("canvas"),t.width=p||1,t.height=U||1,this.JSC$12914_image_.naturalWidth&&this.JSC$12914_image_.naturalHeight&&(p=t.getContext("2d"),p.rotate(Math.PI/180*this.angle_),p.drawImage(this.JSC$12914_image_,E,x,this.JSC$12914_image_.naturalWidth,this.JSC$12914_image_.naturalHeight)),this.transformedData=_.S8(t.toDataURL(this.mime_))):this.transformedData=t}else this.transformedData=t;this.resolve_(this)}};var Ou=function(t,E){_.dV.call(this,t);this.value=E};
_.u(Ou,_.dV);
var Xo=function(t,E,p,U,x,A,m){m=m===void 0?!1:m;_.UH.call(this);var b=this;this.JSC$12919_url_=t;this.channelId_=E;this.maxFileSizeMb_=p;this.JSC$12919_maxAspectRatio_=U;this.dropZoneEl_=x;this.rejectInvalidAspectRatio_=m;this.selectButtonEl_=A;this.JSC$12919_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new nC(this.dropZoneEl_);this.selectOverlay_=new Nw(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12919_image_=this.transfer_=null;this.handler_=new _.Kg(this);_.ed(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(A,"click",function(){b.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.u(Xo,_.UH);Xo.prototype.disposeInternal=function(){for(var t=this.selectButtonEl_.nextSibling;t&&t.parentNode&&t.tagName=="INPUT";)t.parentNode.removeChild(t),t=this.selectButtonEl_.nextSibling;this.cancel();_.UH.prototype.disposeInternal.call(this)};
Xo.prototype.uploadPromise=function(){if(this.JSC$12919_image_==null)return null;this.uploadPromise_||TpX(this);return this.uploadPromise_};
Xo.prototype.cancel=function(){olr(this);this.JSC$12919_image_=null};
var olr=function(t){t.transfer_&&t.transfer_.cancel();t.transfer_=null;t.uploadPromise_=null;t.resolve_=null;t.JSC$12919_reject_=null},TpX=function(t){olr(t);
t.transfer_=_.q4Z(t.JSC$12919_url_,{"X-YouTube-ChannelId":t.channelId_},t.JSC$12919_image_);t.handler_.listenOnce(t.transfer_,"l",t.JSC$12921_onUploadComplete_);t.handler_.listenOnce(t.transfer_,"n",t.onUploadError_);t.transfer_.run();t.uploadPromise_=new Promise(function(E,p){t.resolve_=E;t.JSC$12919_reject_=p})};
_.Y=Xo.prototype;_.Y.onChange_=function(t){t.files.length&&(this.JSC$12919_image_=t.files[0],this.JSC$12919_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12919_image_=null,this.dispatchEvent(new Ou("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(TpX(this),(new Zm(this.JSC$12919_maxAspectRatio_)).transform(this.JSC$12919_image_).then((0,_.Tg)(this.onPreview_,this),(0,_.Tg)(this.onPreviewError_,this))))};
_.Y.onPreview_=function(t){if(t.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12919_image_=null),this.dispatchEvent(new Ou("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;t.cropped&&this.dispatchEvent(new Ou("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new Ou("yt.comments.ImageUploadOverlay.CHANGE_EVENT",t.transformedData))};
_.Y.onPreviewError_=function(){this.JSC$12919_image_=null;this.dispatchEvent(new Ou("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.Y.onHover_=function(t){t.stopPropagation();t.preventDefault();if(t.type==="dragover")t=!0;else if(t.type==="dragleave")t=!1;else return;this.dispatchEvent(new Ou("yt.comments.ImageUploadOverlay.HOVER_EVENT",t))};
_.Y.JSC$12921_onUploadComplete_=function(){var t=(0,_.qB3)(this.transfer_.getResponseText());this.resolve_(t.encryptedBlobId)};
_.Y.onUploadError_=function(){this.JSC$12919_reject_();olr(this)};var WwT=function(t){t=t||{};var E={},p={};this.url=t.url||"";this.args=t.args||_.Kq.clone(E);this.assets=t.assets||{};this.attrs=t.attrs||_.Kq.clone(p);this.fallback=t.fallback||null;this.fallbackMessage=t.fallbackMessage||null;this.html5=!!t.html5;this.disable=t.disable||{};this.loaded=!!t.loaded;this.messages=t.messages||{}};
WwT.prototype.clone=function(){var t=new WwT,E;for(E in this)if(this.hasOwnProperty(E)){var p=this[E];_.Ye(p)=="object"?t[E]=_.Kq.clone(p):t[E]=p}return t};var $kX,Kwr,vlZ,jc,SMr,ccp,tFG,Efr,pOf,Uvm,xvW,A00,Yg0,MFG,mv0,bLr,iLG,qgr,HLr,fOm,BjW,wOp,RAr,VFr,Q6r,Css,j6G,r0m,keG,Z6_,dvf,uSs,J0s,IOr,gfp,ZLZ,OLs,XOX,hAf,aOT,gBE,eAp,FBW,zAm,lOo,Gem,nfG,Njs,Dv3,s6m,LBW,Pso,Tjs,ofr,WB0,$vT,h1,KBo,vfs,y04,Sgm,c0X,tSm,EgX,pBG,U9r,x90,Aur,YL0,MSo,m9G,bPr,iPr,qLr,HPX,fzs,J5t,BPr,wBG,RRZ,VS4,Qdr,Co3,jdG,ruf,kvo,d9s,uzG,JuG,IzX,ggT,ZP0,OPm,XBr,hR0,azs,eRp,Fk0,zRm,lzX,GvW,ng4;$kX=["account/accounts_list"];Kwr=["acknowledge_channel_tou_strike"];vlZ=["notification/add_upcoming_event_reminder"];
_.ycm=["att/get"];jc=["browse","music/browse","streaming_browse","unplugged/browse"];SMr=["channel/claim_legacy_youtube_channel"];ccp=["history/clear_search_history"];tFG=["history/clear_watch_history"];Efr=["comment/perform_comment_action"];pOf=["comment/get_comment_replies"];Uvm=["ypc/commerce_action"];xvW=["backstage/create_post"];A00=["live/create_broadcast"];Yg0=["channel/create_channel"];MFG=["comment/create_comment_reply"];mv0=["comment/create_comment"];bLr=["live_chat/create_poll"];iLG=["playlist/create"];
qgr=["decorate_message"];HLr=["live_chat/delete_message"];fOm=["playlist/delete"];BjW=["video/delete"];wOp=["like/dislike"];RAr=["dismissal/dismiss"];VFr=["flag/flag"];Q6r=["flow"];Css=["account/account_menu"];j6G=["playlist/get_add_to_playlist"];r0m=["get_answer"];keG=["channel/get_channel_creation_form"];Z6_=["offline/get_download_action"];dvf=["kids/get_kids_blocklist_picker"];uSs=["live_chat/get_item_context_menu"];J0s=["live_chat/get_live_chat_message_buy_flow"];IOr=["live_chat/get_live_chat_replay"];
gfp=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];ZLZ=["live_chat/get_live_chat_super_sticker_buy_flow"];OLs=["notification/get_notification_menu"];XOX=["playlist/get_settings_editor"];hAf=["backstage/get_post_video_preview"];aOT=["account/get_profile_card"];gBE=["share/get_share_panel"];eAp=["share/get_sharing_provider_data"];FBW=["get_survey"];zAm=["notification/get_unseen_count"];lOo=["get_user_mention_suggestions"];Gem=["get_watch"];nfG=["guide"];
Njs=["feedback"];Dv3=["kids/update_blacklist"];s6m=["like/like"];LBW=["live_chat/live_chat_action"];Pso=["live_chat/manage_user"];Tjs=["video_manager/metadata_update"];ofr=["live_chat/moderate"];WB0=["notification/modify_channel_preference"];$vT=["notification/opt_out"];h1=["get_panel","get_posts_by_host_panel"];KBo=["player"];vfs=["browse/edit_playlist"];y04=["notification/record_interactions"];Sgm=["reel/reel_item_watch"];c0X=["reel/reel_watch_sequence"];tSm=["like/removelike"];EgX=["notification/remove_upcoming_event_reminder"];
pBG=["flag/get_form"];U9r=["miniapp/report_value"];x90=["navigation/resolve_url"];Aur=["channel/reveal_business_email"];YL0=["in_video/search"];MSo=["search","sfv/search","unplugged/search"];m9G=["live_chat/send_message"];bPr=["live_chat/send_live_chat_vote"];iPr=["account/set_setting"];qLr=["submit_caption_correction"];HPX=["submit_form"];fzs=["subscription/subscribe"];J5t=["get_transcript"];BPr=["resolve_location","unplugged/resolve_location"];wBG=["subscription/unsubscribe"];RRZ=["backstage/update_post"];
VS4=["channel_edit/update_channel_page_settings"];Qdr=["comment/update_comment_reply"];Co3=["comment/update_comment"];jdG=["comment/update_comments_settings"];ruf=["creator/update_creator_channel"];kvo=["pdg/update_enablement"];d9s=["updated_metadata"];uzG=["channel_edit/validate_channel_handle"];JuG=["verify_age"];IzX=["next","unplugged/watch_next"];ggT=["whitelist/edit"];ZP0=["ypc/cancel_recurrence"];OPm=["ypc/complete_transaction"];XBr=["ypc/get_cart"];hR0=["ypc/get_fix_instrument_params"];
azs=["ypc/get_offers"];eRp=["ypc/get_payment_instruments_params"];Fk0=["ypc/handle_transaction"];zRm=["ypc/log_payment_server_analytics"];lzX=["ypc/pause_subscription"];GvW=["ypc/redeem_code"];ng4=["ypc/resume_subscription"];var NPm=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,106531,257234,252598,252597,252600,252599,252596,225031,
177843,27259,27262,27263,21759,283670,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,
180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,
162711,235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,
197891,156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,282159,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,
221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,281332,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,293324,32633,74858,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,282181,278926,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,283898,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,
36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,279531,50663,36387,14908,37533,105443,61635,62274,161670,
133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,281480,233634,265810,194770,195350,195349,194771,293041,293042,293043,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,
198313,59149,181013,278306,282472,277848,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,294119,257268,63349,281127,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,282218,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,
11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,282111,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,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,282208,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,281302,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,279755,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,
262799,262802,267580,262798,267695,267581,273232,82039];var FJ=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.Oy("yt.msgs_",FJ);var ay=new _.gM("ACTION_ROUTER_TOKEN");_.e3=function(){this.autonavState_=_.r("kevlar_is_pupi_enabled")?2:V3_()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.e3.prototype.getState=function(){return this.autonavState_};
_.e3.prototype.pause=function(t){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=t):this.autonavState_==1&&(this.disabledAutonavPauseReason_=t)};
_.e3.prototype.setState=function(t,E,p){E&&(this.autoplayChangedByUser=!0);E=this.autonavState_===3||t===3;this.autonavState_!=t&&(this.autonavState_=t,t!=3&&_.Qy$(t==2),t=_.r("kevlar_is_pupi_enabled")?p||E:!0,_.d1.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,t,p))};
_.e3.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.gW(_.e3);var Fo=function(){this.pN=!1};var zw={},OzD=(zw.auto_search="LATENCY_ACTION_AUTO_SEARCH",zw.ad_to_ad="LATENCY_ACTION_AD_TO_AD",zw.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",zw.app_startup="LATENCY_ACTION_APP_STARTUP",zw.browse="LATENCY_ACTION_BROWSE",zw.cast_splash="LATENCY_ACTION_CAST_SPLASH",zw.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",zw.channels="LATENCY_ACTION_CHANNELS",zw.chips="LATENCY_ACTION_CHIPS",zw.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",zw.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
zw.editor="LATENCY_ACTION_EDITOR",zw.embed="LATENCY_ACTION_EMBED",zw.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",zw.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",zw.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",zw.explore="LATENCY_ACTION_EXPLORE",zw.favorites="LATENCY_ACTION_FAVORITES",zw.home="LATENCY_ACTION_HOME",zw.inboarding="LATENCY_ACTION_INBOARDING",zw.landing="LATENCY_ACTION_LANDING",zw.learning="LATENCY_ACTION_LEARNING",
zw.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",zw.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",zw.library="LATENCY_ACTION_LIBRARY",zw.live="LATENCY_ACTION_LIVE",zw.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",zw.management="LATENCY_ACTION_MANAGEMENT",zw.mini_app="LATENCY_ACTION_MINI_APP_PLAY",zw.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",zw.onboarding="LATENCY_ACTION_ONBOARDING",zw.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
zw.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",zw.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",zw.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",zw.prebuffer="LATENCY_ACTION_PREBUFFER",zw.prefetch="LATENCY_ACTION_PREFETCH",zw.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",zw.profile_switcher="LATENCY_ACTION_LOGIN",zw.projects="LATENCY_ACTION_PROJECTS",zw.reel_watch="LATENCY_ACTION_REEL_WATCH",zw.results="LATENCY_ACTION_RESULTS",zw.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
zw.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",zw.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",zw.review="LATENCY_ACTION_REVIEW",zw.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",zw.search_ui="LATENCY_ACTION_SEARCH_UI",zw.search_suggest="LATENCY_ACTION_SUGGEST",zw.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",zw.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",zw.seek="LATENCY_ACTION_PLAYER_SEEK",zw.settings="LATENCY_ACTION_SETTINGS",zw.store="LATENCY_ACTION_STORE",
zw.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",zw.tenx="LATENCY_ACTION_TENX",zw.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",zw.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",zw.watch="LATENCY_ACTION_WATCH",zw.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",zw["watch,watch7"]="LATENCY_ACTION_WATCH",zw["watch,watch7_html5"]="LATENCY_ACTION_WATCH",zw["watch,watch7ad"]="LATENCY_ACTION_WATCH",zw["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",zw.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
zw.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",zw.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",zw.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",zw.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",zw.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",zw.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",zw.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",zw),D9r=0;var $j8=function(t,E){cl.call(this,1,arguments);this.timer=E};
_.u($j8,cl);var WqY=new NzE("aft-recorded",$j8);var e8i=_.Ui.ytLoggingGelSequenceIdObj_||{};_.Oy("ytLoggingGelSequenceIdObj_",e8i);var lh=_.Ui.ytLoggingLatencyUsageStats_||{};_.Oy("ytLoggingLatencyUsageStats_",lh);var Gw=function(){this.cleanupJob=0},lm$=function(){Gw.instance||(Gw.instance=new Gw);
return Gw.instance};
_.Y=Gw.prototype;_.Y.baseline=function(t,E,p){nz(this,"baseline_"+t)||_.MW("latencyActionBaselined",{clientActionNonce:t},{timestamp:E,cttAuthInfo:p})};
_.Y.tick=function(t,E,p,U){nz(this,"tick_"+t+"_"+E)||_.MW("latencyActionTicked",{tickName:t,clientActionNonce:E},{timestamp:p,cttAuthInfo:U})};
_.Y.info=function(t,E,p){var U=Object.keys(t).join("");nz(this,"info_"+U+"_"+E)||(t=Object.assign({},t),t.clientActionNonce=E,_.MW("latencyActionInfo",t,{cttAuthInfo:p}))};
_.Y.jspbInfo=function(t,E,p){for(var U="",x=0;x<D9(t).length;x++)D9(t)[x]!==void 0&&(U=x===0?U.concat(""+x):U.concat("_"+x));nz(this,"info_"+U+"_"+E)||(_.Lq(t,2,E),E={cttAuthInfo:p},p=_.r("jspb_sparse_encoded_pivot")?new tH([{}]):new tH,_.zC(p,7,Wup,t),Fqj("latencyActionInfo",p,E))};
_.Y.span=function(t,E,p){var U=Object.keys(t).join("");nz(this,"span_"+U+"_"+E)||(t.clientActionNonce=E,_.MW("latencyActionSpan",t,{cttAuthInfo:p}))};
var nz=function(t,E){lh[E]=lh[E]||{count:0};var p=lh[E];p.count++;p.time=(0,_.eu)();t.cleanupJob||(t.cleanupJob=_.E_(_.ir,function(){var U=(0,_.eu)(),x;for(x in lh)lh[x]&&U-lh[x].time>6E4&&delete lh[x];t&&(t.cleanupJob=0)},5E3));
return p.count>5?(p.count===6&&Math.random()*1E5<1&&(p=new _.cC("CSI data exceeded logging limit with key",E.split("_")),E.indexOf("plev")>=0||_.qW(p)),!0):!1};var sd3,Lks;sd3=window;Lks=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.oK=sd3.performance||sd3.mozPerformance||sd3.msPerformance||sd3.webkitPerformance||new Lks;var o3t=!1,n3L=!1,KqE=(0,_.Tg)(_.oK.clearResourceTimings||_.oK.webkitClearResourceTimings||_.oK.mozClearResourceTimings||_.oK.msClearResourceTimings||_.oK.oClearResourceTimings||_.SM,_.oK);var OhE=_.BC(function(t,E,p,U,x,A,m){if(!_.r("web_csi_action_sampling_enabled")||!_.DU(A).actionDisabled){var b=m==null?void 0:m.spanStatus;m=m==null?void 0:m.rootSpanNonce;var f=_.sT(A);if(f.gelSpans)f.gelSpans[t]=!0;else{var B={};f.gelSpans=(B[t]=!0,B)}D9r++;t={spanName:t,spanLengthUsec:String(Math.round(E*1E3)),spanNonce:D9r};m&&(t.rootSpanNonce=m);b&&(t.spanStatus=b);U&&(t.spanInfo=U);x&&(t.parentSpanNonce=x);p&&(t.spanStartTimeUsec=String(Math.round(p*1E3)));_.LF(A||"").span[String(t.spanName)]=
t;p=_.sT(A);p.gelSpans||(p.gelSpans={});_.ET(p.gelSpans,t);p=J18(A);A=_.DU(A).cttAuthInfo;lm$().span(t,p,A);return t.spanNonce}}),Po4=window;
Po4.ytcsi&&(Po4.ytcsi.infoGel=_.KF,Po4.ytcsi.tick=_.SR);var YAl=function(t){cl.call(this,1,arguments);this.csn=t};
_.u(YAl,cl);var TzE=new NzE("screen-created",YAl),k0_=[],AL0=rLi,dF_=0,UF=new Map,MVO=new Map,mFE=new Map;var uut=Symbol("Df"),BA=new WeakMap;var Nj=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},oo=function(){Nj.instance||(Nj.instance=new Nj);
return Nj.instance};
_.Y=Nj.prototype;_.Y.setClient=function(t){this.client=t};
_.Y.JSC$13003_newScreen=function(){this.clear();this.csn=_.yL()};
_.Y.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.Y.reportShown=function(t,E,p,U){var x=this.JSC$13003_getTrackingParams(t),A=t.visualElement?t.visualElement:x;E=this.shownElements.has(A);var m=this.visibleState.get(A);this.shownElements.add(A);this.visibleState.set(A,!0);t.impressionLog&&!E&&t.impressionLog();if(x||t.visualElement)if(p=TPW(this,t,p))if(A=ogm(this,t),Dm(this,t)||A){x=t.visualElement?t.visualElement:_.$8(x);var b=t.interactionLoggingClientData;A||E?Dm(this,t)&4?m||RTO(this.client,p,x,b):Dm(this,t)&1&&!E&&fZt(this.client,p,x,b,U):
fZt(this.client,p,x,b,U)}};
_.Y.reportHidden=function(t,E,p,U){var x=this.JSC$13003_getTrackingParams(t),A=t.visualElement?t.visualElement:x;E=this.hiddenElements.has(A);var m=this.visibleState.get(A);this.hiddenElements.add(A);this.visibleState.set(A,!1);if(m===!1)return!0;if(!x&&!t.visualElement)return!1;p=TPW(this,t,p);if(!p||!Dm(this,t)&&ogm(this,t))return!1;x=t.visualElement?t.visualElement:_.$8(x);Dm(this,t)&8?VVO(this.client,p,x,void 0,void 0,U):Dm(this,t)&2&&!E&&(t=this.client,U=pb({cttAuthInfo:SQ(p)||void 0,automatedLogEventSource:U},
p),E={csn:p,ve:x.getAsJson(),eventType:2},p==="UNDEFINED_CSN"?Aj("visualElementHidden",U,E):t?AH("visualElementHidden",E,t,U):_.MW("visualElementHidden",E,U));return!0};
_.Y.JSC$13003_getTrackingParams=function(t){var E=this.getData(t),p,U;if(_.r("il_use_view_model_logging_context")&&(E==null?0:(p=E.context)==null?0:(U=p.loggingContext)==null?0:U.loggingDirectives))return E.context.loggingContext.loggingDirectives.trackingParams||"";var x,A;if(E==null?0:(x=E.rendererContext)==null?0:(A=x.loggingContext)==null?0:A.loggingDirectives)return E.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(E==null?0:E.loggingDirectives)return E.loggingDirectives.trackingParams||
"";var m;return((m=t.veContainer)==null?0:m.trackingParams)?t.veContainer.trackingParams:(E==null?void 0:E.trackingParams)||""};
_.Y.JSC$13003_elementShouldLogGesture=function(t,E){t=this.getData(t);return!!((Math.floor(Number(t&&t.loggingDirectives&&t.loggingDirectives.gestures&&t.loggingDirectives.gestures.types||""))||0)&E)};
_.Y.JSC$13003_getNearestParentVe=function(t){var E=this.JSC$13003_getTrackingParams(t);return t.visualElement?t.visualElement:E?_.$8(E):t.parentElement?this.JSC$13003_getNearestParentVe(t.parentElement):null};
var TPW=function(t,E,p){var U=_.yL(p);return t.csn===null||U===t.csn||p?U:(t=new _.cC("VisibilityLogger called before newScreen",{caller:E.tagName,previous_csn:t.csn,current_csn:U}),_.qW(t),null)};
Nj.prototype.getData=function(t){var E,p=t.data||((E=t.props)==null?void 0:E.data);if(!p||t.isWebComponentWrapper){var U;p=(U=BA.get(t))==null?void 0:U[uut]}return p};
var ogm=function(t,E){var p;return!((p=t.getData(E))==null||!p.loggingDirectives)},Dm=function(t,E){t=t.getData(E);
return Math.floor(Number(t&&t.loggingDirectives&&t.loggingDirectives.visibility&&t.loggingDirectives.visibility.types||""))||1};var su;su=function(){};
_.sl=function(){su.instance||(su.instance=new su);return su.instance};
su.prototype.setClient=function(t){_.BC(oo().setClient).bind(oo())(t)};
_.Wks=function(){_.sl();_.BC(oo().JSC$13003_newScreen).bind(oo())()};
su.prototype.clear=function(){_.BC(oo().clear).bind(oo())()};
su.prototype.reportShown=function(t,E,p,U){_.BC(oo().reportShown).bind(oo())(t,E,p,U)};
su.prototype.reportHidden=function(t,E,p,U){return _.BC(oo().reportHidden).bind(oo())(t,E,p,U)};
var ljO=function(t,E){return _.BC(oo().JSC$13003_getTrackingParams).bind(oo())(E)},JK_=function(t,E){return _.BC(oo().JSC$13003_getNearestParentVe).bind(oo())(E)};var Lz,$90;Lz=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};
_.Pu=function(){Lz.instance||(Lz.instance=new Lz);return Lz.instance};
Lz.prototype.setClient=function(t){this.client=t};
$90=function(t,E,p){p=p===void 0?{}:p;_.BC(function(){var U,x,A,m=((U=_.k(E==null?void 0:E.commandMetadata,_.hZ))==null?void 0:U.rootVe)||((x=_.k(E==null?void 0:E.commandMetadata,J1p))==null?void 0:(A=x.screenVisualElement)==null?void 0:A.uiType);if(m){U=_.k(E==null?void 0:E.commandMetadata,kWT);if(U==null?0:U.parentTrackingParams){var b=_.$8(U.parentTrackingParams);if(U.parentCsn)var f=U.parentCsn}else p.clickedVisualElement?b=p.clickedVisualElement:E.clickTrackingParams&&(b=_.$8(E.clickTrackingParams));
a:{U=_.k(E,_.HD);x=_.k(E,MFY);if(U){if(x=Chl(U,"VIDEO")){U={token:x,videoId:U.videoId};break a}}else if(x&&(U=Chl(x,"PLAYLIST"))){U={token:U,playlistId:x.playlistId};break a}U=void 0}p=Object.assign({},{cttAuthInfo:U,parentCsn:f},p);if(_.r("expectation_logging")){var B;p.loggingExpectations=((B=_.k(E==null?void 0:E.commandMetadata,J1p))==null?void 0:B.loggingExpectations)||void 0}_.PH(t,m,b,p)}else _.qW(new _.cC("Error: Trying to create a new screen without a rootVeType",E))})()};
_.PH=function(t,E,p,U){U=U===void 0?{}:U;_.BC(function(){NPm.includes(E)||(_.qW(new _.cC("createClientScreen() called with a non-page VE",E)),E=83769);U.isHistoryNavigation||(t.forwardHistoryStack=[],t.backHistoryStack.push({rootVe:E,key:U.key||""}));t.graftQueue=[];t.stateChangedQueue=[];U.dataPromises?Kk3(t,E,p,U):vgr(t,E,p,U)})()};
_.yu3=function(t,E,p){p=p===void 0?0:p;_.BC(function(){E.then(function(U){t.pendingScreenCreation.has(p)&&t.pendingScreenFn&&t.pendingScreenFn();var x=_.yL(p),A=_.vV(p);if(x&&A){var m={automatedLogEventSource:3},b;(U==null?0:(b=U.response)==null?0:b.trackingParams)&&xh(t.client,x,A,_.$8(U.response.trackingParams),!1,m);var f;(U==null?0:(f=U.playerResponse)==null?0:f.trackingParams)&&xh(t.client,x,A,_.$8(U.playerResponse.trackingParams),!1,m)}})})()};
Lz.prototype.graftServerVe=function(t,E,p){var U=this;return _.BC(function(){var x=_.$8(t);_.Tw(U,x,E,p);return x})()};
_.Iit=function(t,E,p,U){return _.r("enable_client_ve_spec")&&E.clientVeSpec?(E=_.h8(E.clientVeSpec.uiType,void 0,E.clientVeSpec.elementIndex,E.clientVeSpec.clientYoutubeData,void 0,E),_.Tw(t,E,p,U)?E:null):E.trackingParams?t.graftServerVe(E.trackingParams,p,U):null};
_.L4=function(t,E,p,U){return _.BC(function(){if(!E.veType)return _.iV(new _.cC("Error: Trying to graft a client VE without a veType.")),null;if(E.visibilityTypes){var x=E.visibilityTypes.reduce(function(A,m){return A|m});
x={visibility:{types:String(x)}}}x=_.h8(E.veType,E.visualElement,E.elementIndex,E.clientYouTubeData,void 0,x);return _.Tw(t,x,p,U)?x:null})()};
_.Tw=function(t,E,p,U){U=U===void 0?0:U;return _.BC(function(){if(t.pendingScreenCreation.has(U))return t.graftQueue.push([E,p]),!0;var x=_.yL(U),A=p||_.vV(U);if(x&&A){if(_.r("combine_ve_grafts")){var m=t.cachedVisualElements.get(A.toString());m?m.push(E):(t.cachedRootVisualElements.set(A.toString(),A),t.cachedVisualElements.set(A.toString(),[E]));t.attachTimeout||(t.attachTimeout=_.E_(_.ir,function(){SL0(t,x)},1200))}else xh(t.client,x,A,E);
return!0}return!1})()};
_.oy=function(t,E,p){p=p===void 0?0:p;var U=t.recurringGrafts.get(p)||new Map;if(_.r("smarter_ve_dedupping"))for(var x=Array.from(U.keys()),A=0;A<x.length;A++){var m=void 0,b=void 0;var f=E;var B=x[A];B.isClientVe()&&f.isClientVe()?(m=f.getAsJson(),b=B.getAsJson(),f=m.veType!==b.veType||m.elementIndex!==b.elementIndex||m.dataElement!==b.dataElement||f.getLoggingDirectives()!==B.getLoggingDirectives()?!1:!0):f=B.veData.trackingParams!==void 0&&f.veData.trackingParams!==void 0?((b=f.veData)==null?void 0:
b.trackingParams)===((m=B.veData)==null?void 0:m.trackingParams):!1;if(f)return}else if(U.has(E))return;U.set(E,void 0);t.recurringGrafts.set(p,U);_.yL(p)==="UNDEFINED_CSN"||t.pendingScreenCreation.has(p)||_.Tw(t,E,void 0,p)};
_.WH=function(t,E,p,U){U=_.yL(U===void 0?0:U);if(!U)return!1;Ct_(t.client,U,E,p);return!0};
_.$3=function(t,E,p,U){if(!E)return!1;U=_.yL(U===void 0?0:U);if(!U)return!1;Ct_(t.client,U,_.$8(E),p);return!0};
_.bA=function(t,E){var p=E.getScreenLayer&&E.getScreenLayer();if(E.visualElement)return _.WH(t,E.visualElement,void 0,p);E=ljO(_.sl(),E);return _.$3(t,E,void 0,p)};
Lz.prototype.clickCommand=function(t,E,p){return _.$3(this,t.clickTrackingParams,E,p===void 0?0:p)};
Lz.prototype.stateChanged=function(t,E,p){this.visualElementStateChanged(_.$8(t),E,p===void 0?0:p)};
Lz.prototype.visualElementStateChanged=function(t,E,p){p=p===void 0?0:p;p===0&&this.pendingScreenCreation.has(p)?this.stateChangedQueue.push([t,E]):this.logStateChanged(t,E,p)};
Lz.prototype.logStateChanged=function(t,E,p){p=p===void 0?0:p;var U=_.yL(p);t=t||_.vV(p);return U&&t?(jS8(this.client,U,t,E),!0):!1};
var Kk3=function(t,E,p,U){U=U===void 0?{}:U;t.pendingScreenCreation.add(U.layer||0);t.pendingScreenFn=function(){vgr(t,E,p,U);var m=_.vV(U.layer);if(m){for(var b=_.M(t.graftQueue),f=b.next();!f.done;f=b.next())f=f.value,_.Tw(t,f[0],f[1]||m,U.layer);m=_.M(t.stateChangedQueue);for(b=m.next();!b.done;b=m.next())b=b.value,t.logStateChanged(b[0],b[1])}};
p||_.yL(U.layer)||t.pendingScreenFn();if(U.dataPromises)for(var x=_.M(U.dataPromises),A=x.next();!A.done;A=x.next())_.yu3(t,A.value,U.layer);else _.bV(Error("Ef"))},vgr=function(t,E,p,U){U=U===void 0?{}:U;
var x=void 0;U.layer||(U.layer=0);x=U.parentLayer!==void 0?U.parentLayer:U.layer;var A=_.yL(x);x=_.vV(x);var m=p||x,b;m&&(U.parentCsn!==void 0?b={clientScreenNonce:U.parentCsn,visualElement:m}:A&&A!=="UNDEFINED_CSN"&&(b={clientScreenNonce:A,visualElement:m}));var f,B=_.qO("EVENT_ID");A==="UNDEFINED_CSN"&&B&&(f={servletData:{serializedServletEventId:B}});_.r("combine_ve_grafts")&&A&&SL0(t,A);_.r("no_client_ve_attach_unless_shown")&&m&&A&&Hii(m,A);try{var R=_.bi$(t.client,E,b,U.csnToClone,U.cttAuthInfo,
f,U.implicitGestureType,void 0,U.loggingExpectations,U.automatedLogEventSource)}catch(C){_.HX(C,{rootVeType:E,rootVe:x,parentVisualElement:p,currentCsn:A,parentEl:b,csnToClone:U.csnToClone});_.bV(C);return}_.cV(R,E,U.layer,U.cttAuthInfo);A&&A!=="UNDEFINED_CSN"&&x&&!kN_(A)&&VVO(t.client,A,x,!0);t.backHistoryStack[t.backHistoryStack.length-1]&&!t.backHistoryStack[t.backHistoryStack.length-1].csn&&(t.backHistoryStack[t.backHistoryStack.length-1].csn=R||"");_.KF({clientScreenNonce:R});_.Wks();var V=_.vV(U.layer);
A&&A!=="UNDEFINED_CSN"&&V&&_.r("music_web_mark_root_visible")&&_.mu(R,V);t.pendingScreenCreation.delete(U.layer||0);t.pendingScreenFn=void 0;var Q;(Q=t.recurringGrafts.get(U.layer))==null||Q.forEach(function(C,d){C?_.Tw(t,d,C,U.layer):V&&_.Tw(t,d,V,U.layer)});
cuG(t)},cuG=function(t){for(var E=0;E<t.afterNewScreenOneOffJobs.length;E++){var p=t.afterNewScreenOneOffJobs[E];
try{p()}catch(U){_.bV(U)}}for(E=t.afterNewScreenOneOffJobs.length=0;E<t.afterNewScreenRecurringJobs.length;E++){p=t.afterNewScreenRecurringJobs[E];try{p()}catch(U){_.bV(U)}}},SL0=function(t,E){if(E===void 0)for(var p=jL_(),U=0;U<p.length;U++)p[U]!==void 0&&SL0(t,p[U]);
else t.cachedVisualElements.forEach(function(x,A){(A=t.cachedRootVisualElements.get(A))&&iiY(t.client,E,A,x)}),t.cachedVisualElements.clear(),t.cachedRootVisualElements.clear(),t.attachTimeout=void 0};var Kz=function(t){t=t===void 0?{layer:0}:t;this.pN=!1;this.createScreenConfig=t;t={};this.fuO=(t.response=!1,t.playerResponse=!1,t)};
_.u(Kz,Fo);Kz.prototype.validate=function(t){return!(!t.data||!t.data.response&&!t.data.playerResponse)};
Kz.prototype.handle=function(t){var E=_.Pu(),p=this.createScreenConfig.layer;t.data.response&&t.data.response.trackingParams&&!this.fuO.response&&(E.graftServerVe(t.data.response.trackingParams,void 0,p),this.fuO.response=!0);t.data.playerResponse&&t.data.playerResponse.trackingParams&&!this.fuO.playerResponse&&(E.graftServerVe(t.data.playerResponse.trackingParams,void 0,p),this.fuO.playerResponse=!0)};var vH=function(){this.ju=_.fd();this.gv=[];this.jng=0};
vH.prototype.processChunk=function(t){if(t){for(var E=_.M(this.gv),p=E.next();!p.done;p=E.next())p=p.value,p.validate(t)&&(p.handle(t),p.pN=!0);_.SR("np"+this.jng);this.jng++}};var ZiY=function(t,E,p){p=p===void 0?{}:p;this.name=t;this.id=wm.nextSpanId++;this.sessionId=wm.sessionId;this.attributes=E;this.status="SPAN_STATUS_UNSET";var U;this.startTime=(U=p.startTime)!=null?U:(0,_.eu)();this.isActiveSpan=p.active;if(t=wm.stack[wm.stack.length-1])this.parentId=t.id,t.children||(t.children=[]),t.children.push(this);t=_.M(wm.processors);for(E=t.next();!E.done;E=t.next()){E=E.value;try{var x=U=void 0;(x=(U=E).onSpanStart)==null||x.call(U,this)}catch(A){_.qW(A)}}p.endTime!=null&&
(this.isActiveSpan=!1,this.end("SPAN_STATUS_OK",p.endTime))};
ZiY.prototype.end=function(t,E){t=t===void 0?"SPAN_STATUS_OK":t;this.endTime=E=E===void 0?(0,_.eu)():E;this.duration=this.endTime-this.startTime;this.status=t;this.isActiveSpan!==!1&&(wm.stack[wm.stack.length-1]===this?wm.stack.pop():_.qW(Error("Ff`"+String(this.name))));t=_.M(wm.processors);for(E=t.next();!E.done;E=t.next()){E=E.value;try{var p=void 0,U=void 0;(U=(p=E).onSpanEnd)==null||U.call(p,this)}catch(x){_.qW(x)}}};
ZiY.prototype.addAttributes=function(t){Object.assign(this.attributes,t)};
var OiY={end:function(){},
addAttributes:function(){}},wm={initialized:!1,
nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},gAK={rootSpan:function(){return wm.stack[0]}};var QR={};var Fj_=function(t){this.observers=[];this.value=t};
_.Y=Fj_.prototype;_.Y.subscribe=function(t){var E=this;if(t.idx!=null)throw Error("Hf");t.idx=this.observers.length;this.observers.push(t);try{t(this.value)}catch(p){}return function(){var p=E.observers[E.observers.length-1];E.observers[t.idx]=p;p.idx=t.idx;E.observers.pop()}};
_.Y.update=function(t){this.value=t(this.value);this.notify()};
_.Y.mutate=function(t){t(this.value);this.notify()};
_.Y.set=function(t){this.value=t;this.notify()};
_.Y.notify=function(){for(var t=_.M(this.observers),E=t.next();!E.done;E=t.next()){E=E.value;try{E(this.value)}catch(p){}}};var $g0,ENG,xSW;_.Gh=function(t,E,p,U,x,A,m,b){m=m===void 0?[]:m;b=b===void 0?[]:b;this.buildCommandPayload=t;this.navigate=E;this.handleServiceRequest=p;this.sendAction=U;this.JSC$13052_screenManager=x;this.commandResolverMap=A;this.autoLogResolverAllowlist=m;this.metaCommandClickLoggingDenylist=b;this.pendingCommands=new Set;this.isTracingEnabled=!1;ENG(this)};
$g0=function(t,E,p){var U=[_.L5r,pip],x=e$Y,A=FGY,m=_.Pu(),b=pZr;p=p===void 0?[]:p;U=U===void 0?[]:U;_.Gh.instance=new _.Gh(t,E,x,A,m,b,p,U)};
ENG=function(t){if(!t.isTracingEnabled&&Rp("command")){var E=t.resolveCommand;t.resolveCommand=function(p,U){a:{for(x in p)if(Object.prototype.hasOwnProperty.call(p,x)){var x={commandType:x};break a}x={}}return VR("command",x,E.bind(this,p,U))};
t.isTracingEnabled=!0}};
xSW=function(t,E,p){if(!t.commandResolverMap)return!1;var U=lZD(E,t.commandResolverMap);return U?((t.autoLogResolverAllowlist.some(function(x){return!!_.k(E,x)})||(p==null?0:p.forceClickLogging))&&US4(t,E,p),U instanceof Promise?U.then(function(x){x.resolve(E,p)}):U.resolve(E,p),!0):!1};
_.Gh.prototype.resolveCommand=function(t,E){var p=this,U=AxW(t);if(xSW(this,t,E))return!0;if(U)return YVr(this,t,E);if(!this.buildCommandPayload)return eTO(t,"Unhandled command by buildCommandPayload"),!1;var x=this.buildCommandPayload(t,E);if(E==null?0:E.commandController)x.commandController=E.commandController;if(x.type===0){if(!this.navigate)return FP8(t,"navigate"),!1;if(!Moo(x.command))return eTO(t,"Page requests need to specify a url"),!1;_.r("logging_avoid_blocking_during_navigation")&&_.Iq_().transition("application_navigating");
t=this.navigate(x)||[];$$m(t).then(function(){p.pendingCommands.delete(x.command)});
return!0}if(x.type===1){if(!this.handleServiceRequest)return FP8(t,"handleServiceRequest"),!1;(E==null?0:E.forceClickLogging)&&US4(this,x.command,E);t=this.handleServiceRequest(x);$$m(t).then(function(){p.pendingCommands.delete(x.command)});
return!0}if(x.type===2){if(!this.sendAction)return FP8(t,"sendAction"),!1;US4(this,x.command,E);this.sendAction(x);return!0}return!1};
var US4=function(t,E,p){if((p==null||!p.disableClickTracking)&&t.JSC$13052_screenManager)if(E.clickTrackingParams&&_.r("log_click_with_layer_from_element_in_command_handler")){var U;p=p==null?void 0:(U=p.form)==null?void 0:U.element;t.JSC$13052_screenManager.clickCommand(E,null,p&&p.getScreenLayer&&p.getScreenLayer())}else E.clickTrackingParams?t.JSC$13052_screenManager.clickCommand(E):!_.r("disable_clicked_visual_element_in_command_handler")&&(p==null?0:p.clickedVisualElement)&&_.WH(t.JSC$13052_screenManager,
p.clickedVisualElement)},AxW=function(t){var E=!!_.k(t,_.ZU),p;
t=((p=_.k(t,_.XJ))==null?void 0:p.signal)==="CLIENT_SIGNAL";return E||t},YVr=function(t,E,p){var U=_.k(E,_.ZU);
if(U)var x=(U==null?void 0:U.commands)||[];else{var A;if(((A=_.k(E,_.XJ))==null?void 0:A.signal)==="CLIENT_SIGNAL"){var m;x=((m=_.k(E,_.XJ))==null?void 0:m.actions)||[]}}if(x){(U=mSf(t,x))&&US4(t,E,p);E=_.M(x);for(x=E.next();!x.done;x=E.next()){x=x.value;try{var b=Object.assign({},p);U&&(b.disableClickTracking=!0);t.resolveCommand(x,b)}catch(f){f instanceof Error&&_.bV(f)}}return!0}eTO(E,"Could not handle the meta command");return!1},mSf=function(t,E){return E.every(function(p){return t.metaCommandClickLoggingDenylist.some(function(U){return!!_.k(p,
U)})})},Moo=function(t){var E;
return!((E=_.k(t==null?void 0:t.commandMetadata,_.hZ))==null||!E.url)};var ys=function(){Fo.apply(this,arguments)};
_.u(ys,Fo);ys.prototype.validate=function(t){var E,p;return!this.pN&&!!((E=t.data.response)==null?0:(p=E.onResponseReceivedEndpoints)==null?0:p.length)};
ys.prototype.handle=function(t){var E=_.Gh.instance;t=_.M(t.data.response.onResponseReceivedEndpoints);for(var p=t.next();!p.done;p=t.next())E.resolveCommand(p.value)};var b7f,i7s,cH;
b7f=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=_.gu();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.S3=function(){i7s||(i7s=new b7f);return i7s};
cH=function(){var t=_.S3();t.miniplayerButtonActivation=!1;t.userActivation=!1;t.playlistWatchPageActivation=!1;t.productDetailsPageActivation=!1;t.miniAppPageActivation=!1;t.playablesDestPageActivation=!1;t.lockupActivation=!1;t.showMiniplayerCommandActivation=!1;t.playlistSuggestionsShelfActivation=!1;t.mediaSessionPipActivation=!1;t.watchPipActivation=!1;t.watchWhileActivation=!1;t.shortsPipActivation=!1;t.companionCanvasActivation=!1};
_.qVp=function(){var t=_.S3(),E=t.mediaSessionPipActivation,p=t.watchPipActivation,U=t.watchWhileActivation,x=t.playlistWatchPageActivation,A=t.lockupActivation,m=t.showMiniplayerCommandActivation,b=t.navigatingAwayFromWatchDeletedVideo,f=t.shortsPipActivation,B=t.playlistSuggestionsShelfActivation,R=t.productDetailsPageActivation,V=t.miniAppPageActivation,Q=t.playablesDestPageActivation,C=t.companionCanvasActivation;return!t.miniplayerButtonActivation&&!x&&!B&&!R&&!V&&!Q&&!A&&!m&&!E&&!p&&!U&&!f&&
!C||b};var ufj;_.tL=_.j1("FEwhat_to_watch","/",3854);_.JEt=_.j1("FEdownloads","/feed/downloads",42352);ufj=_.j1("FEmusic_offline","browse/FEmusic_offline",42352);var VM=function(t,E){E=E===void 0?[]:E;var p=p===void 0?[]:p;E=tvD.apply(null,[Ei8.apply(null,_.KB(E))].concat(_.KB(p)));this.store=AUL(t,void 0,E)};
VM.prototype.getState=function(){return this.store.getState()};
VM.prototype.dispatch=function(t){return this.store.dispatch(t)};
VM.prototype.subscribe=function(t){return this.store.subscribe(t)};
VM.prototype.replaceReducer=function(t){return this.store.replaceReducer(t)};
VM.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.EA=function(t,E,p){var U=E(t.getState());return t.subscribe(function(){var x=E(t.getState());if(x!==U){var A=U;U=x;p(x,A)}})};var g9D;_.P9=function(t,E,p){return _.Jj({type:"REPLACE_ENTITY",payload:{entityPayload:p,entityType:t,key:E}})};
g9D=function(t){return _.Jj({type:"REPLACE_ENTITIES",payload:t})};
_.pr=function(t,E,p,U){return _.Jj({type:"UPDATE_ENTITY",payload:{entityPayload:p,entityType:t,key:E,mergeOption:U}})};var vA_=function(t){var E=this;t=t===void 0?[]:t;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;t.forEach(function(p){E.append(p)})};
_.Y=vA_.prototype;_.Y.getLength=function(){return this.totalLength};
_.Y.append=function(t){var E=this.arrays.length===0?!1:(E=this.arrays[this.arrays.length-1])&&E.buffer===t.buffer&&E.byteOffset+E.length===t.byteOffset;E?(E=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(E.buffer,E.byteOffset,E.length+t.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(t);this.totalLength+=t.length};
_.Y.split=function(t){for(var E=new vA_,p=new vA_,U=_.M(this.arrays),x=U.next();!x.done;x=U.next())x=x.value,t>=x.length?(E.append(x),t-=x.length):t?(E.append(new Uint8Array(x.buffer,x.byteOffset,t)),p.append(new Uint8Array(x.buffer,x.byteOffset+t,x.length-t)),t=0):p.append(x);return{headView:E,tailView:p}};
_.Y.isFocused=function(t){return t>=this.arrayPos&&t<this.arrayPos+this.arrays[this.arrayIdx].length};
_.Y.focus=function(t){if(!this.isFocused(t))for(t<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=t&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var H70=function(t,E){t.focus(E);return t.arrays[t.arrayIdx][E-t.arrayPos]};(function(){var t=function(U){return new Uint8Array(U)},E=function(U){for(var x=new Uint8Array(U.length),A=0;A<U.length;A++)x[A]=U[A];
return x},p=new Uint8Array([1]);
return p.length===1&&p[0]===1?t:E})();
var PtJ=Array(1024),LP8=window.TextDecoder?new TextDecoder:void 0,oAO=window.TextEncoder?new TextEncoder:void 0;var KPi=function(t){this.arrayView=t;this.pos=0;this.pendingTagAndType=-1},Ip=function(t){var E=H70(t.arrayView,t.pos);
++t.pos;if(E<128)return E;for(var p=E&127,U=1;E>=128;)E=H70(t.arrayView,t.pos),++t.pos,U*=128,p+=(E&127)*U;return p},yLl=function(t,E){var p=t.pendingTagAndType;
for(t.pendingTagAndType=-1;t.pos+1<=t.arrayView.totalLength;){p<0&&(p=Ip(t));var U=p>>3,x=p&7;if(U===E)return!0;if(U>E){t.pendingTagAndType=p;break}p=-1;switch(x){case 0:Ip(t);break;case 1:t.pos+=8;break;case 2:U=Ip(t);t.pos+=U;break;case 5:t.pos+=4}}return!1};var cLK=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=$FL(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},OF=function(t,E){E=t.pos+E;
if(!(t.buf.length>=E)){for(var p=t.buf.length*2;p<E;)p*=2;t.buf=$FL(p,t.wasm,t.buf.subarray(0,t.pos));t.view=new DataView(t.buf.buffer,t.buf.byteOffset,t.buf.byteLength)}},ZB=function(t,E){if(E>268435455){OF(t,4);
for(var p=E&1073741823,U=0;U<4;U++)t.view.setUint8(t.pos,p&127|128),p>>=7,t.pos+=1;E=Math.floor(E/268435456)}for(OF(t,4);E>127;)t.view.setUint8(t.pos,E&127|128),E>>=7,t.pos+=1;t.view.setUint8(t.pos,E);t.pos+=1};for(var t4j={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},SAl={},fCr=_.M(Object.entries(t4j)),Bos=fCr.next();!Bos.done;Bos=fCr.next()){var wZs=_.M(Bos.value),RpW=wZs.next().value,Vor=wZs.next().value,QAW=RpW,ClT=Vor;ClT&&(SAl[ClT]=QAW)};var pg0=function(t,E){t=t===void 0?{}:t;switch(E.type){case "ENTITY_LOADED":return E.payload.reduce(function(U,x){var A,m=(A=x.options)==null?void 0:A.persistenceOption;if(m&&m!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&m!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return U;if(!x.entityKey)return _.bV(Error("Jf")),U;if(x.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!x.payload)return x=new _.cC("REPLACE entity mutation is missing a payload",{entityKey:x.entityKey}),_.bV(x),U;var b=(0,_.Kq.getAnyKey)(x.payload);
return x7O(U,b,x.entityKey,x.payload[b])}if(x.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{x=x.entityKey;try{var f=_.gm(x).entityType;b=x7O(U,f,x);break a}catch(V){if(V instanceof Error){x=new _.cC("Failed to deserialize entity key",{entityKey:x,originalMessage:V.message});_.bV(x);b=U;break a}throw V;}b=void 0}return b}if(x.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!x.payload)return x=new _.cC("UPDATE entity mutation is missing a payload",{entityKey:x.entityKey}),_.bV(x),U;b=(0,_.Kq.getAnyKey)(x.payload);
var B,R;return ASY(U,b,x.entityKey,x.payload[b],(B=x.fieldMask)==null?void 0:(R=B.mergeOptions)==null?void 0:R.repeatedFieldsMergeOption)}return U},t);
case "REPLACE_ENTITY":var p=E.payload;return x7O(t,p.entityType,p.key,p.entityPayload);case "REPLACE_ENTITIES":return Object.keys(E.payload).reduce(function(U,x){var A=E.payload[x];return Object.keys(A).reduce(function(m,b){return x7O(m,x,b,A[b])},U)},t);
case "UPDATE_ENTITY":return p=E.payload,ASY(t,p.entityType,p.key,p.entityPayload,p.mergeOption);default:return t}};var Y0$;var jAr=!1,pi,UA,xA,AL,YA,rxm=function(t){_.PQ.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!jAr){var E,p=new Uint8Array(256),U=new Uint8Array(256);var x=1;for(E=0;E<256;E++)p[x]=E,U[E]=x,x^=x<<1^(x>>7&&283);pi=new Uint8Array(256);UA=ap(256);xA=ap(256);AL=ap(256);YA=ap(256);for(var A=0;A<256;A++){x=A?U[255^p[A]]:0;x^=x<<1^x<<2^x<<3^x<<4;x=x&255^x>>>8^99;pi[A]=x;E=x<<1^(x>>7&&283);var m=E^x;UA[A]=E<<24|x<<16|x<<8|m;xA[A]=m<<24|UA[A]>>>8;AL[A]=x<<24|xA[A]>>>
8;YA[A]=x<<24|AL[A]>>>8}jAr=!0}x=ap(44);for(p=0;p<4;p++)x[p]=t[4*p]<<24|t[4*p+1]<<16|t[4*p+2]<<8|t[4*p+3];for(U=1;p<44;p++)t=x[p-1],p%4||(t=(pi[t>>16&255]^U)<<24|pi[t>>8&255]<<16|pi[t&255]<<8|pi[t>>>24],U=U<<1^(U>>7&&283)),x[p]=x[p-4]^t;this.key=x};
_.u(rxm,_.PQ);
rxm.prototype.encrypt=function(t){var E=t.length;t=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+E));for(var p=this.cipherBlock,U=0;U<E&&this.blockOffset<16;)t[U++]^=p[this.blockOffset++];for(var x=E-(E-U)%16;U<x;)kbs(this),t[U++]^=p[0],t[U++]^=p[1],t[U++]^=p[2],t[U++]^=p[3],t[U++]^=p[4],t[U++]^=p[5],t[U++]^=p[6],t[U++]^=p[7],t[U++]^=p[8],t[U++]^=p[9],t[U++]^=p[10],t[U++]^=p[11],t[U++]^=p[12],t[U++]^=p[13],t[U++]^=p[14],t[U++]^=p[15];if(U<E)for(kbs(this),this.blockOffset=0;U<E;)t[U++]^=
p[this.blockOffset++];return t};
var kbs=function(t){for(var E=t.key,p=t.counter[0]^E[0],U=t.counter[1]^E[1],x=t.counter[2]^E[2],A=t.counter[3]^E[3],m=3;m>=0&&!(t.counter[m]=-~t.counter[m]);m--);for(var b,f,B=4;B<40;)m=UA[p>>>24]^xA[U>>16&255]^AL[x>>8&255]^YA[A&255]^E[B++],b=UA[U>>>24]^xA[x>>16&255]^AL[A>>8&255]^YA[p&255]^E[B++],f=UA[x>>>24]^xA[A>>16&255]^AL[p>>8&255]^YA[U&255]^E[B++],A=UA[A>>>24]^xA[p>>16&255]^AL[U>>8&255]^YA[x&255]^E[B++],p=m,U=b,x=f;t=t.cipherBlock;m=E[40];t[0]=pi[p>>>24]^m>>>24;t[1]=pi[U>>16&255]^m>>16&255;t[2]=
pi[x>>8&255]^m>>8&255;t[3]=pi[A&255]^m&255;m=E[41];t[4]=pi[U>>>24]^m>>>24;t[5]=pi[x>>16&255]^m>>16&255;t[6]=pi[A>>8&255]^m>>8&255;t[7]=pi[p&255]^m&255;m=E[42];t[8]=pi[x>>>24]^m>>>24;t[9]=pi[A>>16&255]^m>>16&255;t[10]=pi[p>>8&255]^m>>8&255;t[11]=pi[U&255]^m&255;m=E[43];t[12]=pi[A>>>24]^m>>>24;t[13]=pi[p>>16&255]^m>>16&255;t[14]=pi[U>>8&255]^m>>8&255;t[15]=pi[x&255]^m&255};var dSs=!1;(function(){var t=function(U){return new Uint8Array(U)},E=function(U){for(var x=new Uint8Array(U.length),A=0;A<U.length;A++)x[A]=U[A];
return x},p=new Uint8Array([1]);
return p.length===1&&p[0]===1?t:E})();
var MF;var IC4=function(t){a:{if(!dSs&&!g7){if(MF){var E=MF;break a}MF=(E=window.crypto)==null?void 0:E.subtle;var p,U,x;if(((p=MF)==null?0:p.importKey)&&((U=MF)==null?0:U.sign)&&((x=MF)==null?0:x.encrypt)){E=MF;break a}MF=void 0}E=void 0}E&&(this.nativeEncryptor=new uk4(t,E));this.encryptorPolyfill=new JxX(t)};
IC4.prototype.encrypt=function(t,E){var p=this,U;return _.q(function(x){switch(x.nextAddress){case 1:if(!p.nativeEncryptor){x.jumpTo(2);break}_.aR(x,3);return x.yield(p.nativeEncryptor.encrypt(t,E),5);case 5:return x.return(x.yieldResult);case 3:U=_.nB(x),_.qW(U),dSs=!0,p.nativeEncryptor=void 0;case 2:return x.return(p.encryptorPolyfill.encrypt(t,E))}})};
IC4.prototype.decrypt=function(t,E){return this.encrypt(t,E)};
var uk4=function(t,E){this.JSC$13125_aesKey=t;this.subtleCrypto=E};
uk4.prototype.encrypt=function(t,E){var p=this,U;return _.q(function(x){if(x.nextAddress==1)return _.aR(x,2),x.yield(gNZ(p,t,E),4);if(x.nextAddress!=2)return x.return(x.yieldResult);U=_.nB(x);_.qW(U);dSs=!0;throw U;})};
var gNZ=function(t,E,p){var U,x;return _.q(function(A){switch(A.nextAddress){case 1:if(t.cryptoKey){A.jumpTo(2);break}return A.yield(t.subtleCrypto.importKey("raw",t.JSC$13125_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:t.cryptoKey=A.yieldResult;case 2:return U={name:"AES-CTR",counter:p,length:128},A.yield(t.subtleCrypto.encrypt(U,t.cryptoKey,E),4);case 4:return x=A.yieldResult,A.return(new Uint8Array(x))}})},JxX=function(t){this.JSC$13128_aesKey=t};
JxX.prototype.encrypt=function(t,E){this.encryptor||(this.encryptor=new rxm(this.JSC$13128_aesKey));for(var p=this.encryptor,U=0;U<4;U++)p.counter[U]=E[U*4]<<24|E[U*4+1]<<16|E[U*4+2]<<8|E[U*4+3];p.blockOffset=16;return this.encryptor.encrypt(t)};
JxX.prototype.decrypt=function(t,E){return this.encrypt(t,E)};var Z7W={},bSJ=aD("yt-idb-pref-storage",{objectStores:(Z7W.prefs={addedAtVersion:1},Z7W),shared:!1,upgrade:function(t,E){E(1)&&QK(VK(t,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.mP=function(t){this.token=t};
_.mP.getInstance=function(){return _.q(function(t){return t.return(new Promise(function(E){_.hF().then(function(p){p?(_.mP.instance||(_.mP.instance=new _.mP(p)),E(_.mP.instance)):E(void 0)})}))})};
_.mP.prototype.get=function(t){var E=this,p,U,x;return _.q(function(A){if(A.nextAddress==1)return A.yield(iSD(E.token),2);if(A.nextAddress!=3)return p=A.yieldResult,A.yield(p.get("prefs",t),3);U=A.yieldResult;if(!U)return A.return();x=(0,_.eu)();return U.expirationTimestampMs<=x?A.return():A.return(U.value)})};
_.mP.prototype.set=function(t,E,p){p=p===void 0?31536E3:p;var U=this,x,A,m;return _.q(function(b){if(b.nextAddress==1)return x=(0,_.eu)(),A={key:t,value:E,expirationTimestampMs:x+p*1E3},b.yield(iSD(U.token),2);m=b.yieldResult;return b.yield(m.put("prefs",A),0)})};
_.mP.prototype.remove=function(t){var E=this,p;return _.q(function(U){if(U.nextAddress==1)return U.yield(iSD(E.token),2);p=U.yieldResult;return U.yield(p.delete("prefs",t),0)})};var bt={},O7T=(bt.INVALID_ENCODER_VERSION="Invalid encoder version",bt.KEY_CREATION_FAILED="Failed to create encoder key",bt.UNKNOWN_DECODE_ERROR="Failed to decode PES data",bt.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",bt.WRONG_DATA_TYPE="Encoder cannot process the data type",bt),e1=function(t,E){E=E===void 0?{}:E;_.cC.call(this,O7T[t],Object.assign({},{name:"PESEncoderError",type:t},E));this.type=t;this.level="WARNING";Object.setPrototypeOf(this,e1.prototype)};
_.u(e1,_.cC);var qF=function(){};
qF.prototype.encode=function(t,E){try{return this.encodeImpl(t,E)}catch(p){B8K(p,HS0)}};
qF.prototype.decode=function(t,E){try{return this.decodeImpl(t,E)}catch(p){B8K(p,f5Y)}};
var XZG=function(t,E,p){var U;return _.q(function(x){if(x.nextAddress==1)return _.aR(x,2),x.yield(t.decodeAsyncImpl(E,p),4);if(x.nextAddress!=2)return x.return(x.yieldResult);U=_.nB(x);B8K(U,f5Y);_.Do(x)})};
qF.prototype.decodeAsyncImpl=function(t,E){return Promise.resolve(this.decodeImpl(t,E))};var H5=function(t,E){this.aesEncryptor=t;this.aesEncryptorAsync=E};
_.u(H5,qF);H5.prototype.encodeImpl=function(t,E){E=wgj(E);t=(new TextEncoder).encode(JSON.stringify(t));return this.aesEncryptor.encrypt(t,E)};
H5.prototype.decodeImpl=function(t,E){if(!(t instanceof Uint8Array))throw q0t(1);var p=new TextDecoder;E=wgj(E);t=this.aesEncryptor.decrypt(t,E);return JSON.parse(p.decode(t))};
H5.prototype.decodeAsyncImpl=function(t,E){var p=this,U,x,A;return _.q(function(m){if(m.nextAddress==1){if(!(t instanceof Uint8Array))throw q0t(1);U=new TextDecoder;x=wgj(E);return m.yield(p.aesEncryptorAsync.decrypt(t,x),2)}A=m.yieldResult;return m.return(JSON.parse(U.decode(A)))})};var Rk8={accountLinkStatusEntity:Baf,booleanEntity:DU3,buttonEntity:lH4,captionTrack:rS4,channelHandle:BTs,chipEntity:q9T,commerceAcquisitionClientPayloadEntity:qMo,commerceCartListEntity:Hks,compositeSourceEntity:lZ3,multiviewStagingEntity:G00,contextNoteFeedEntityPayload:Zm4,contextNoteUserRatingEntityPayload:Omm,continuationTokenEntity:c1s,downloadQualityPickerEntity:syZ,downloadsPageRefreshTokenEntity:Ph0,downloadsPageViewConfigurationEntity:mFZ,downloadStatusEntity:Lqs,dismissState:HE0,sfvAudioItemCurrentlyPlayingEntity:Et0,
emojiFountainDataEntity:ehf,emojiCustomizationSetEntity:aHW,fakeChannel:P9W,fakePlaylist:T2Z,fakePlaylistEntryCollection:oFp,fakeVideo:$Uo,fakeVideoDescription:K5W,featuredProductsEntity:OiG,flowStateEntity:iCZ,iconBadgeEntity:f7G,interstitialInteractionStateEntity:XUr,likeButtonAnimationEntity:biW,liveChatPollStateEntity:nYs,dataFreshnessEntity:Xe0,liveViewerLeaderboardChatEntryPointStateEntity:zkW,liveViewerLeaderboardPointsEntity:l5W,liveReactionsDataEntity:FgX,logoEntity:ZCr,macroMarkerEntity:iiG,
mainDownloadsLibraryEntity:Tc3,mainDownloadsListEntity:o3X,mainPlaylistDownloadStateEntity:$jp,mainPlaylistEntity:tVo,mainPlaylistVideoEntity:EAs,mainVideoDownloadStateEntity:KqZ,mainVideoEntity:ALs,markersEngagementPanelSyncEntity:qAs,markersVisibilityOverrideEntity:Hir,musicAlbumReleaseDetail:Ptr,musicAlbumReleaseDownloadMetadataEntity:nAG,musicAlbumRelease:LPp,musicAlbumReleaseUserDetail:TY3,musicArtistDetail:WPs,musicArtist:oAs,musicArtistUserDetail:$Fm,musicDownloadsLibraryEntity:NYm,musicLibraryEdit:KPr,
musicLibraryStatusEntity:vA0,musicPlaylist:yLT,musicPlaylistDownloadMetadataEntity:DFG,musicShare:cLf,musicTrackDetail:E9X,musicTrackDownloadMetadataEntity:sSr,musicTrack:t4o,musicTrackUserDetail:pgs,offlineOrchestrationActionWrapperEntity:knZ,offlineVideoPolicy:d7G,offlineVideoStreams:uAs,offlineabilityEntity:v33,orchestrationWebSamplingEntity:y14,pageHeaderEntity:kpf,pdpStateEntity:Bps,pinnedProductEntity:X54,playbackData:JSZ,playerStateEntity:fZX,quantityIncrementerEntity:wMr,refresh:I5m,saveToPlaylistListEntity:dYo,
selectedChipIndexEntityPayload:BYf,settingEntity:Twf,stringEntity:sus,suggestedFeedbackChipStateEntity:w5r,transfer:g93,trendingOfferEntity:hTr,videoDownloadContextEntity:ZSX,videoOverviewAsyncDataEntity:nlT,videoPlaybackPositionEntity:NyT,votingEntity:IH3,ytMainChannelEntity:YAT,youchatPendingResponseEntity:RT4,ytMainDownloadedVideoEntity:SuG,ytMainVideoEntity:MV4};var hpr,epp,nb,uAO,JSE,lCW,nNm,Gb3,zp3;hpr=function(t,E){this.JSC$13147_wrapped=t;this.JSC$13147_encoderRegistry=E;this.changedKeys={}};
epp=function(t,E){return aC0(t.JSC$13147_encoderRegistry,E.version).decode(E.data,E.key)};
_.FvG=function(t,E,p){return t.JSC$13147_wrapped.objectStore("EntityStore").get(E).then(function(U){if(U){if(p&&U.entityType!==p)throw Error("Kf");return epp(t,U)}})};
nb=function(t,E,p){return p?(p=p.map(function(U){return _.FvG(t,U,E)}),RD.all(p)):t.JSC$13147_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(E)).then(function(U){return U.map(function(x){return epp(t,x)})})};
_.d7Y=function(t,E,p){var U=E9t(E),x=aC0(t.JSC$13147_encoderRegistry,1),A=Object.assign({},E);return t.JSC$13147_wrapped.objectStore("EntityStore").get(U).then(function(m){if(m){if(m.entityType!==p)throw Error("Kf");A.entityMetadata||(m=epp(t,m),A.entityMetadata=m.entityMetadata)}}).then(function(){var m={key:U,
entityType:p,data:x.encode(A,U),version:1};return RD.all([t.JSC$13147_wrapped.objectStore("EntityStore").put(m),zp3(t,A,p)])}).then(function(){lCW(t,U,p);
return U})};
uAO=function(t,E){var p=_.gm(E).entityType;return RD.all([t.JSC$13147_wrapped.objectStore("EntityStore").delete(E),Gb3(t,E)]).then(function(){lCW(t,E,p)})};
JSE=function(t,E,p,U){var x=aC0(t.JSC$13147_encoderRegistry,1);return _.FvG(t,E,U).then(function(A){if(A){A=sSi(A,p);var m={key:E,entityType:U,data:x.encode(A,E),version:1};return RD.all([t.JSC$13147_wrapped.objectStore("EntityStore").put(m),zp3(t,A,U)])}}).then(function(){lCW(t,E,U);
return E})};
lCW=function(t,E,p){var U=t.changedKeys[p];U||(U=new Set,t.changedKeys[p]=U);U.add(E)};
nNm=function(t,E,p){var U=E9t(E);p=V4K(p);if(!p)return RD.resolve([]);p=new p(E);t=t.JSC$13147_wrapped.objectStore("EntityAssociationStore");E=[];p=_.M(p.getAssociations());for(var x=p.next();!x.done;x=p.next())E.push(t.put({parentEntityKey:U,childEntityKey:x.value}));return RD.all(E).then(function(A){return A.map(function(m){return m[1]})})};
Gb3=function(t,E){return t.JSC$13147_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(E))};
zp3=function(t,E,p){var U=E9t(E);return Gb3(t,U).then(function(){return nNm(t,E,p)})};var Nos=function(){};
_.u(Nos,qF);Nos.prototype.encodeImpl=function(t){return t};
Nos.prototype.decodeImpl=function(t){if(t instanceof Uint8Array)throw q0t(0);return t};var jOD=function(){this.cacheMap={};this.cacheMap[0]=new Nos;if(!_.r("aes_pes_encoder_killswitch")){var t=this.cacheMap;try{var E=_.yE();var p=wgj(E);var U=new H5(new JxX(p),new IC4(p))}catch(x){throw t=x instanceof Error?new e1("KEY_CREATION_FAILED",{originalMessage:x.message}):new e1("KEY_CREATION_FAILED"),_.bV(t),t;}t[1]=U}},aC0=function(t,E){E=E===void 0?0:E;
t=t.cacheMap[E];if(!t)throw E=new e1("INVALID_ENCODER_VERSION",{encoderVersion:E}),_.bV(E),E;return t};var zV=function(t,E){_.PQ.call(this);this.token=t;this.JSC$13161_encoderRegistry=E;this.observers=[];t=new _.Ui.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.yE());t.onmessage=this.JSC$13161_handleMessage.bind(this);this.channel=t};
_.u(zV,_.PQ);_.GV=function(t,E,p){var U,x,A,m;return _.q(function(b){if(b.nextAddress==1)return b.yield(m70(t.token),2);if(b.nextAddress!=3)return U=b.yieldResult,b.yield(_.uJ(U,["EntityStore","EntityAssociationStore"],E,function(f){x=new hpr(f,t.JSC$13161_encoderRegistry);return p(x)}),3);
A=b.yieldResult;x&&(m=x.changedKeys,Object.keys(m).length>0&&(t.channel.postMessage(m),DSf(t,m)));return b.return(A)})};
zV.prototype.observe=function(t){var E=this;this.observers.push(t);return function(){var p=E.observers.indexOf(t);p>=0&&E.observers.splice(p,1)}};
var W2i=function(t){var E;return _.q(function(p){if(p.nextAddress==1)return p.yield(_.GV(t,{mode:"readonly",enableRetries:!0},function(U){return U.JSC$13147_wrapped.objectStore("EntityStore").getAll()}),2);
E=p.yieldResult;return p.return(Promise.all(E.filter(function(U){return!!U}).map(function(U){var x,A;
return _.q(function(m){if(m.nextAddress==1){x=U.key;A=U.entityType;var b=m.yield;var f=XZG(aC0(t.JSC$13161_encoderRegistry,U.version),U.data,U.key);return b.call(m,f,2)}return m.return({key:x,entityType:A,data:m.yieldResult})})})))})};
zV.prototype.JSC$13161_handleMessage=function(t){DSf(this,t.data)};
var DSf=function(t,E){t=_.M(t.observers);for(var p=t.next();!p.done;p=t.next())p=p.value,p(E)};
zV.prototype.disposeInternal=function(){this.channel.close()};
var QOY;var fi,Lvo,T8O;fi={};_.sAT=(fi.mainVideoEntity="mainVideoEntityActionMetadata",fi.mainPlaylistEntity="mainPlaylistEntityActionMetadata",fi.musicTrack="musicTrackEntityActionMetadata",fi.musicPlaylist="musicPlaylistEntityActionMetadata",fi);Lvo=new _.gM("DOWNLOADS_ENTITY_TYPE_MAP");_.Kb=_.X1("","downloadsPageViewConfigurationEntity");T8O=_.X1("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.uhO=_.X1("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.X1("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.X1("SMART_DOWNLOADS_ENABLED","settingEntity");_.X1("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var XgO=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var Gni=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var PlX={isLeaderTab:!0};var HHt={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var B5=window,mD=B5.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",q9l=B5.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||bC,Pej=B5.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||zd,x6r=B5.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||U6s,Ejp=B5.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||w90,LlL=B5.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||r8s;var iE0;ff({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 U4Y=Tyi(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(t){return t}}}),i9Y=Tyi(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(t){return t}}}),KgY=new Map;var As$=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],tA0;var To3=function(t){return _.Jj({type:"SET_EPHEMERAL_ACTION",payload:t})};var oNf={ephemeralAction:null};var WvZ=xx({ephemeralAction:function(t,E){t=t===void 0?oNf.ephemeralAction:t;switch(E.type){case "SET_EPHEMERAL_ACTION":return E.payload;default:return t}}});var $Ss=function(t){return _.Jj({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:t})};var KvG={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var vNs={sharedUi:KvG,a11y:oNf,entities:{}},XJD={sharedUi:function(t,E){t=t===void 0?KvG:t;switch(E.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},t,{animatedThumbnailEnabled:E.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},t,{inlinePreviewEnabled:E.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},t,{currentPageType:E.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},t,{currentPageSubType:E.payload});
case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},t,{persistentPanelVisible:E.payload});default:return t}},
a11y:WvZ,entities:U7J};var q$L={playlistId:"",inviteLinkURL:""};var yx4={continuationCommand:{}};var kki=xx({continuationCommand:function(t,E){t=t===void 0?yx4.continuationCommand:t;switch(E.type){case "SET_CONTINUATION_COMMAND":return E.payload.continuationCommand;default:return t}}});var ff$={currentFormId:"",commandsMap:{}};var d4O=xx({isLeaderTab:function(t,E){t=t===void 0?PlX.isLeaderTab:t;switch(E.type){case "SET_IS_LEADER_TAB":var p,U;return(U=E==null?void 0:(p=E.payload)==null?void 0:p.isLeaderTab)!=null?U:t;default:return t}}});var cxo;_.SVT=function(t){return _.Jj({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:t}})};
cxo=function(t){return _.Jj({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:t}})};var wY={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var OZ_=xx({isDesktopSmallWidth:function(t,E){t=t===void 0?wY.isDesktopSmallWidth:t;switch(E.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return E.payload.isDesktopSmallWidth;default:return t}},
isShortsActive:function(t,E){t=t===void 0?wY.isShortsActive:t;switch(E.type){case "SET_IS_SHORTS_ACTIVE":return E.payload.isShortsActive;default:return t}},
isWatchWhileMode:function(t,E){t=t===void 0?wY.isWatchWhileMode:t;switch(E.type){case "SET_IS_WATCH_WHILE_MODE":return E.payload.isWatchWhileMode;default:return t}},
playerState:function(t,E){t=t===void 0?wY.playerState:t;switch(E.type){case "SET_PLAYER_STATE":return E.payload.playerState;default:return t}},
isFullscreen:function(t,E){t=t===void 0?wY.isFullscreen:t;switch(E.type){case "SET_IS_FULLSCREEN":return E.payload.isFullscreen;default:return t}},
isSmallScreenSqueezeback:function(t,E){t=t===void 0?wY.isSmallScreenSqueezeback:t;switch(E.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return E.payload.isSmallScreenSqueezeback;default:return t}},
isShortsPipActive:function(t,E){t=t===void 0?wY.isShortsPipActive:t;switch(E.type){case "SET_IS_SHORTS_PIP_ACTIVE":return E.payload.isShortsPipActive;default:return t}},
isPlaybackStarted:function(t,E){t=t===void 0?wY.isPlaybackStarted:t;switch(E.type){case "SET_IS_PLAYBACK_STARTED":return E.payload.isPlaybackStarted;default:return t}}});var wJY={currentMode:"canvas-hidden"};var afO=function(){return function(t){return function(E){var p=t(E);_.du(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[E],!0);return p}}};var tkT,BqE;tkT=new _.hf;_.gG=new _.gM("WATCH_PLAYER_PROMISE_TOKEN");_.E4X=new _.hf;_.p_Z=new _.gM("SHORTS_PLAYER_PROMISE_TOKEN");BqE=new _.gM("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var eIO=function(){return function(t){return function(E){E.type==="ENTITY_LOADED"&&_.X3().resolve(_.gG).then(function(p){var U;(U=p.dispatchReduxAction)==null||U.call(p,E)});
return t(E)}}};var UVs={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var uGt=xx({additionalContext:function(t,E){t=t===void 0?UVs.additionalContext:t;switch(E.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var p;return(p=E.payload)!=null?p:"";default:return t}},
impersonatedChannelUrl:function(t,E){t=t===void 0?UVs.impersonatedChannelUrl:t;switch(E.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var p;return(p=E.payload)!=null?p:"";default:return t}},
selectedVideoIds:function(t,E){t=t===void 0?UVs.selectedVideoIds:t;switch(E.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var p={};return Object.assign({},t,(p[E.payload]=!0,p));case "VIDEO_UNSELECTED":return E=E.payload,t=Object.assign({},t),delete t[E],t;default:return t}}});var xV3={parentClickTrackingParams:""};var Js_=xx({parentClickTrackingParams:function(t,E){t=t===void 0?xV3.parentClickTrackingParams:t;switch(E.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return E.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return t}}});var Abr=function(t){return _.Jj({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:t})},Yq0=function(t){return _.Jj({type:"TALK_TO_RECS_UPDATE_USER_QUERY",
payload:t})};var Mko={stepStates:{}};var If$=xx({stepStates:function(t,E){t=t===void 0?Mko.stepStates:t;switch(E.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var p=t,U=E.payload,x,A,m;t={};E={selectionStates:Object.assign({},(m=(x=p[U.stepId])==null?void 0:x.selectionStates)!=null?m:{},(t[U.token]={isSelected:U.isSelected},t)),userQuery:(A=p[U.stepId])==null?void 0:A.userQuery};x={};return Object.assign({},p,(x[U.stepId]=E,x));case "TALK_TO_RECS_UPDATE_USER_QUERY":return x=t,A=E.payload,m=
{selectionStates:Object.assign({},(U=(p=x[A.stepId])==null?void 0:p.selectionStates)!=null?U:{}),userQuery:{userQuery:A.userQuery,token:A.userQueryToken}},p={},Object.assign({},x,(p[A.stepId]=m,p));default:return t}}});var mVr,bUW,qqp;mVr=function(t){return _.Jj({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:t})};
bUW=function(t){return _.Jj({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:t})};
_.Ea=function(t){return _.Jj({type:"SET_CURRENT_PAGE_TYPE",payload:t})};
_.iUs=function(t){return _.Jj({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:t})};
qqp=function(t){return _.Jj({type:"SET_CHIP_BAR_IS_STICKY",payload:t})};var VAJ={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"};_.HU3=function(t){return _.Jj({type:"SET_PLAYER_STATE",payload:{playerState:t}})};var RS={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:CLK(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var gcO=xx({isTheaterMode:function(t,E){t=t===void 0?CLK():t;switch(E.type){case "SET_IS_THEATER_MODE":return E.payload.isTheaterMode;default:return t}},
isWatchActive:function(t,E){t=t===void 0?RS.isWatchActive:t;switch(E.type){case "SET_IS_WATCH_ACTIVE":return E.payload.isWatchActive;default:return t}},
isLearningJourneyActive:function(t,E){t=t===void 0?RS.isLearningJourneyActive:t;switch(E.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return E.payload.isLearningJourneyActive;default:return t}},
isWatchFullscreen:function(t,E){t=t===void 0?RS.isWatchFullscreen:t;switch(E.type){case "SET_IS_WATCH_FULLSCREEN":return E.payload.isWatchFullscreen;default:return t}},
isWatchNarrowWidth:function(t,E){t=t===void 0?RS.isWatchNarrowWidth:t;switch(E.type){case "SET_IS_WATCH_NARROW_WIDTH":return E.payload.isWatchNarrowWidth;default:return t}},
isSwatcherooActive:function(t,E){t=t===void 0?RS.isSwatcherooActive:t;switch(E.type){case "SET_IS_SWATCHEROO_ACTIVE":return E.payload.isSwatcherooActive;default:return t}},
isWatchRetroMode:function(t,E){t=t===void 0?RS.isWatchRetroMode:t;switch(E.type){case "SET_IS_WATCH_RETRO_MODE":return E.payload.isWatchRetroMode;default:return t}},
isLiveChatCollapsed:function(t,E){t=t===void 0?RS.isLiveChatCollapsed:t;switch(E.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return E.payload.isLiveChatCollapsed;default:return t}},
openEngagementPanels:function(t,E){t=t===void 0?RS.openEngagementPanels:t;var p=[].concat(_.KB(t));switch(E.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return p.push(E.payload.panelToAdd),p;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return p.splice(p.indexOf(E.payload.panelToRemove),1),p;default:return t}},
playerState:function(t,E){t=t===void 0?RS.playerState:t;switch(E.type){case "SET_PLAYER_STATE":return E.payload.playerState;default:return t}},
watchScrollTop:function(t,E){t=t===void 0?RS.watchScrollTop:t;switch(E.type){case "SET_WATCH_SCROLL_TOP":return E.payload.watchScrollTop;default:return t}},
watchWindowSize:function(t,E){t=t===void 0?RS.watchWindowSize:t;switch(E.type){case "SET_WATCH_WINDOW_SIZE":return E.payload.watchWindowSize;default:return t}}});var feX={surveyFeedbackData:{feedbackTokens:[]}};var ZZE=xx({surveyFeedbackData:function(t,E){t=t===void 0?feX.surveyFeedbackData:t;switch(E.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return E.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},t,E.payload);default:return t}}});var j28={};var zIK=void 0;_.r("web_enable_redux_store_on_demand")||(zIK=FpO());var BST=function(t,E,p){var U=this;this.listId=t;this.JSC$13305_updateCallback=E;this.isOfflineVideoCallback=p;_.QM().subscribe(function(){U.handleUpdate()})};
BST.prototype.getPlaylistData=function(){var t=_.QM().getState().entities;if(this.listId&&this.listId!=="PPSV"){var E=Et_(t,this.listId,!0),p=_.X1(this.listId,"mainPlaylistEntity"),U,x;t=t==null?void 0:(U=t.mainPlaylistEntity)==null?void 0:(x=U[p])==null?void 0:x.title;return lfL(E,t,this.listId)}E=_.n9i(XdL(t));t=_.n9i(_.vA(t));t=E.concat(t);return lfL(t)};
BST.prototype.getPlaylistId=function(){return this.listId};
BST.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13305_updateCallback(this.listId,this.getPlaylistData(),{})};var V8=function(t,E,p,U){U=U===void 0?[]:U;this.JSC$13308_playlistNetworkManager=t;this.listId=E;this.JSC$13308_updateCallback=p;this.videoIds=U;this.pendingUpdates=[];this.currentIndex=0};
V8.prototype.JSC$13308_setCurrentIndex=function(t){this.currentIndex=t};
V8.prototype.setListId=function(t){this.listId=t};
var w_o=function(t,E){t.currentCreateRequest&&t.currentCreateRequest.cancel(E);t.currentUpdateRequest&&t.currentUpdateRequest.cancel(E);t.currentRefreshRequest&&t.currentRefreshRequest.cancel(E)};
V8.prototype.delete=function(){w_o(this,"PROXY DELETED")};
V8.prototype.addVideos=function(t,E,p){var U=this;p!==void 0?this.videoIds.splice.apply(this.videoIds,[p,0].concat(_.KB(t))):this.videoIds.push.apply(this.videoIds,_.KB(t));this.listId||this.currentCreateRequest?(t.forEach(function(x,A){x={addedVideoId:x,action:"ACTION_ADD_VIDEO"};p&&(x.addedVideoPosition=p+A);U.pendingUpdates.push(x)}),Q8(this)):RdX(this,E.onCreateListCommand)};
var Vkr=function(t,E,p,U,x){GtK(t.videoIds,E,p);E>t.currentIndex&&p<=t.currentIndex?t.JSC$13308_setCurrentIndex(t.currentIndex+1):E===t.currentIndex?t.JSC$13308_setCurrentIndex(p):E<t.currentIndex&&p>=t.currentIndex&&t.JSC$13308_setCurrentIndex(t.currentIndex-1);t.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:U,movedSetVideoIdPredecessor:x});Q8(t)},RdX=function(t,E){w_o(t,"OBSOLETE");
t.currentCreateRequest=Q8G(t.JSC$13308_playlistNetworkManager,E,t.videoIds);_.Mx(t.currentCreateRequest,function(){t.currentCreateRequest=void 0}).then(function(p){t.setListId(p.playlistId);
t.pendingUpdates.length>0?Q8(t):Cbs(t)})},Q8=function(t){if(t.pendingUpdates.length!==0&&(t.currentRefreshRequest&&t.currentRefreshRequest.cancel("OBSOLETE"),!t.currentUpdateRequest&&!t.currentCreateRequest)){var E=t.pendingUpdates.splice(0,t.pendingUpdates.length);
t.currentUpdateRequest=t.JSC$13308_playlistNetworkManager.updatePlaylist(t.listId,E);_.Mx(t.currentUpdateRequest,function(){t.currentUpdateRequest=void 0}).then(function(){t.pendingUpdates.length>0?Q8(t):Cbs(t)}).thenCatch(function(){t.pendingUpdates.unshift.apply(t.pendingUpdates,_.KB(E))})}},Cbs=function(t){t.currentRefreshRequest=_.j8m(t.JSC$13308_playlistNetworkManager,t.listId,t.currentIndex,t.videoIds[t.currentIndex]);
_.Mx(t.currentRefreshRequest,function(){t.currentRefreshRequest=void 0}).then(function(E){t.JSC$13308_updateCallback(E.playlistId,E.playlistPanelRenderer,E.autoplayRenderer)})};
V8.prototype.size=function(){return this.videoIds.length};var rbf=function(t,E,p,U){U=U===void 0?[]:U;V8.call(this,t,E,p,U);this.JSC$13308_playlistNetworkManager=t;this.listId=E;this.JSC$13308_updateCallback=p;this.videoIds=U};
_.u(rbf,V8);_.Ci=function(t,E,p,U,x,A,m){x=x===void 0?[]:x;m=m===void 0?Iv:m;V8.call(this,t,E,p,x);this.JSC$13308_playlistNetworkManager=t;this.listId=E;this.JSC$13308_updateCallback=p;this.onAuthChange=U;this.videoIds=x;this.storage=A;this.cookieReader=m;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.g4(_.ir,this.checkLoggedInStatusChange.bind(this),1E3)};
_.u(_.Ci,V8);_.Y=_.Ci.prototype;_.Y.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.g4(_.ir,this.checkLoggedInStatusChange.bind(this),1E3)};
_.Y.JSC$13308_setCurrentIndex=function(t){V8.prototype.JSC$13308_setCurrentIndex.call(this,t);this.store()};
_.Y.delete=function(){_.ir.cancelJob(this.queueSapisIdJob);V8.prototype.delete.call(this)};
_.Y.setListId=function(t){V8.prototype.setListId.call(this,t);this.store()};
_.Y.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var kAZ=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],dVr=["playerResponse","videoDetails"],uyf=["response","currentVideoEndpoint","watchEndpoint","videoId"],JbG=["response","currentVideoEndpoint","watchEndpoint","playlistId"],Ier=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],g40=["response","contents","twoColumnWatchNextResults","playlist","playlist"],ZUZ=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
OU4=["response","contents","twoColumnWatchNextResults"];var jV={},s2i=(jV.WEB_UNPLUGGED="^unplugged/",jV.WEB_UNPLUGGED_ONBOARDING="^unplugged/",jV.WEB_UNPLUGGED_OPS="^unplugged/",jV.WEB_UNPLUGGED_PUBLIC="^unplugged/",jV.WEB_CREATOR="^creator/",jV.WEB_KIDS="^kids/",jV.WEB_EXPERIMENTS="^experiments/",jV.WEB_MUSIC="^music/",jV.WEB_REMIX="^music/",jV.WEB_MUSIC_EMBEDDED_PLAYER="^music/",jV.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",jV);var HLi,Q8G;HLi=function(t,E){this.networkManager=t;this.innertubeTransportService=E};
Q8G=function(t,E,p){if(!_.k(E,_.Qs))return _.S5(Error("Of"));_.k(E,_.Qs).videoIds=p;p={create_playlist_title:_.zF("QUEUE",void 0,"Queue")};return NlO(_.H9(t.innertubeTransportService,E,p),GkK)};
_.j8m=function(t,E,p,U){E={videoId:U,playlistId:E,playlistIndex:p};p=_.Cf(IzX);return NlO(_.rY(t.innertubeTransportService,E,p),D4D)};
HLi.prototype.updatePlaylist=function(t,E){return NlO(_.H9(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:t,actions:E}}),nc_)};var X_r=function(t){this.storage=t},hdT;
X_r.prototype.store=function(t,E){E=E===void 0?0:E;if(this.storage&&t.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",t),this.storage.set("TLPQindex",String(E)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(p){}};
X_r.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
X_r.prototype.getPlaylistId=function(){if(!this.storage)return null;var t=null;try{t=this.storage.get("TLPQplaylist")}catch(E){}return t};var oc$=["navigationEndpoint","watchEndpoint","videoId"],TlD=["nextButtonVideo","watchEndpoint","videoId"];_.Lf=new _.gM("NETWORK_TOKEN");_.jw=new _.gM("PAGE_TOKEN");_.kA=new _.gM("PLAYLIST_TOKEN");var ae4;ae4=new _.gM("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.PL=new _.gM("INNERTUBE_TRANSPORT_TOKEN");var edr,dY,zdW,ler,n4s,NSo;edr=new Set(["ci","cr","carml"]);dY=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13355_parkedJobs=new Map;this.parkedProcessors=new Map};
_.ut=function(){dY.instance||(dY.instance=new dY);return dY.instance};
dY.prototype.onAny=function(t){return _.Ffs(this,t,2)};
dY.prototype.parkOrScheduleJob=function(t,E,p,U,x){_.JL(this,p)?_.ty().addJob(t,E,U):(x&&(t=zdW(t),ler(this,t,E,p,x)),x=this.JSC$13355_parkedJobs.get(p),x||(this.JSC$13355_parkedJobs.set(p,[]),x=this.JSC$13355_parkedJobs.get(p)),x.push({job:t,priority:E,delay:U}))};
dY.prototype.addListener=function(t,E,p){p&&(E=zdW(E),ler(this,E,0,t,p));p=this.parkedProcessors.get(t);p||(this.parkedProcessors.set(t,[]),p=this.parkedProcessors.get(t));p.push(E)};
dY.prototype.processSignal=function(t){if(!_.JL(this,t)){this.inProgressSignals.add(t);var E=this.JSC$13355_parkedJobs.get(t);if(E){E=_.M(E);for(var p=E.next();!p.done;p=E.next())p=p.value,_.ty().addJob(p.job,p.priority,p.delay);this.JSC$13355_parkedJobs.delete(t)}if(E=this.parkedProcessors.get(t)){E=_.M(E);for(p=E.next();!p.done;p=E.next())p=p.value,p();this.parkedProcessors.delete(t)}this.signals.push(t);this.inProgressSignals.delete(t)}};
_.JL=function(t,E){return edr.has(E)||_.HC("IS_HOMEPAGE_COLD")||_.HC("IS_RESULTS_PAGE_COLD")||_.HC("IS_WATCH_PAGE_COLD")?t.signals.indexOf(E)>=0:!0};
zdW=function(t){var E=!1;return function(){E||(E=!0,t())}};
ler=function(t,E,p,U,x){if(GAr.has(U))_.ty().addJob(E,p,x);else{var A=t.compoundSignals.get(U);A&&_.ty().addJob(function(){_.JL(t,U)||(A.isTimeoutConditionSatisfied?_.ty().addJob(E,p):A.timeoutConditionObservers.push(function(){_.ty().addJob(E,p)}))},p,x)}};
_.Ffs=function(t,E,p){if(E.length>1){var U=[],x=Object.create(null);E=_.M(E);for(var A=E.next();!A.done;A=E.next())A=A.value,x[A]||(U.push(A),x[A]=!0);E=U}if(E.length===1)return E[0];A=E;U="";x=p===2?"|":"&";A.sort();A=_.M(A);for(var m=A.next();!m.done;m=A.next())U+=m.value+x;if(!t.compoundSignals.get(U)){x=0;A=[];m=_.M(E);for(var b=m.next();!b.done;b=m.next())b=b.value,x++,_.JL(t,b)||A.push(b);(p=p===2)&&x>A.length||!p&&!A.length?t.signals.push(U):n4s(t,U,p,E,A)}return U};
n4s=function(t,E,p,U,x){var A=x.length,m=function(){p||--A===0?t.processSignal(E):NSo(t,E)};
x=_.M(x);for(var b=x.next();!b.done;b=x.next())t.addListener(b.value,m);t.compoundSignals.set(E,{signals:U,isOnAny:p,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});NSo(t,E)};
NSo=function(t,E){if(!_.JL(t,E)){var p=t.compoundSignals.get(E);if(p&&!p.isTimeoutConditionSatisfied){for(var U=!1,x=0,A=0,m=_.M(p.signals),b=m.next();!b.done;b=m.next()){var f=b.value;b=!_.JL(t,f);GAr.has(f)?U=!0:(f=t.compoundSignals.get(f))?b&&!f.isTimeoutConditionSatisfied&&(A++,p.isInitialized||f.timeoutConditionObservers.push(function(){NSo(t,E)})):b&&x++}p.isInitialized=!0;
p.isOnAny?U&&(p.isTimeoutConditionSatisfied=!0):x===0&&A===0&&(p.isTimeoutConditionSatisfied=!0);if(p.isTimeoutConditionSatisfied)for(p=_.M(p.timeoutConditionObservers),U=p.next();!U.done;U=p.next())U=U.value,U()}}};
dY.prototype.processSignal=dY.prototype.processSignal;dY.prototype.parkOrScheduleJob=dY.prototype.parkOrScheduleJob;dY.prototype.onAny=dY.prototype.onAny;_.Oy("ytsignals.getInstance",_.ut);dY.prototype.onAny=dY.prototype.onAny;dY.prototype.parkOrScheduleJob=dY.prototype.parkOrScheduleJob;dY.prototype.processSignal=dY.prototype.processSignal;var GAr=new Set(["eop","eocs","dl","pcl"]);_.bf=new _.gM("MINIPLAYER_SERVICE");var IS,DVf,s8Z;IS=function(t,E,p){var U=_.d1.getInstance();if(!hdT){var x=new oht;var A=void 0,m=_.qO("ID_TOKEN");m&&x.isAvailable()&&(A=new x6(x,"yt-queue"+m));hdT=new X_r(A)}x=hdT;A=_.ut();this.JSC$13362_actionRouter=U;this.JSC$13362_pageManager=t;this.playlistManager=E;this.JSC$13362_playlistNetworkManager=p;this.storage=x;this.signals=A;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.gY=function(){if(!DVf){var t=_.X3(),E=t.resolve(_.OB(_.jw)),p=t.resolve(_.OB(_.Lf)),U=t.resolve(_.OB(_.kA));t=t.resolve(_.PL);DVf=new IS(E,U,new HLi(p,t))}return DVf};
s8Z=function(t,E,p){if(p){var U;if(((U=t.responsePlaylistData)==null?void 0:U.playlistId)!==p)return}t.responsePlaylistData&&(p=S$O(E,t.responsePlaylistData),t.responsePlaylistData=(0,_.Kq.unsafeClone)(t.responsePlaylistData),tmj(t.responsePlaylistData,p));p=t.temporaryItems.findIndex(function(x){return x.videoId===E});
p>-1&&t.temporaryItems.splice(p,1);_.ZZ(t,_.OA(t,t.response?t.response.autoplayRenderer:void 0))};
_.LfG=function(t,E){if(t.responsePlaylistData){var p=csE(E,t.responsePlaylistData);tmj(t.responsePlaylistData,p);if(t.queueProxy){var U=t.queueProxy;p<0||(U.videoIds.splice(p,1),p<U.currentIndex&&U.JSC$13308_setCurrentIndex(U.currentIndex-1),U.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:E}),Q8(U))}}_.ZZ(t,_.OA(t,t.response?t.response.autoplayRenderer:void 0))};
IS.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.ZZ(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
IS.prototype.setPlaylistData=function(t,E,p){this.temporaryItems=[];this.listId=t;this.responsePlaylistData=E;_.ZZ(this,_.OA(this,p))};
var PbW=function(t){return(t==null?0:t.playlistId)?t.playlistId:"PPSV"},TSr=function(t){return t&&t.playlistId?t.playlistId==="PPSV"?!0:cSL(_.QM().getState().entities,t.playlistId):!1};
IS.prototype.isPlayingOfflineVideo=function(){return this.response?TSr(this.response):!1};
IS.prototype.closeMiniplayer=function(t){var E=this.queueProxy&&this.queueProxy.size()<=1,p=_.X3().resolve(_.bf);if(!this.queueProxy||E)this.queueProxy&&this.clearQueue(),p.close(!0);else{p.pipController.getWindow()&&window.focus();E=this.responsePlaylistData;var U=this.temporaryItems.length+(E&&E.contents?E.contents.length:0);E=_.zF("QUEUE_CLEARED_UNPLURALIZED")||_.lO("QUEUE_CLEARED",U);E=_.rN(E);p=_.zF("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");U=_.zF("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.lO("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",U);var x=_.zF("MINIPLAYER_CLOSE",void 0,"Close"),A=_.zF("CANCEL",void 0,"Cancel");_.bP(this.JSC$13362_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.wN(p),dialogMessages:[_.wN(U)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.wN(x),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
E]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.wN(A)}}}}}}],t)}};
_.OA=function(t,E){var p={},U=t.response;p.autoplayRenderer=E;if(!t.responsePlaylistData&&!t.temporaryItems.length)return!U||!U.hasRelatedVideoData&&_.r("kevlar_prefetch_data_augments_network_data")||(p.playerData={rvs:U.relatedVideoArgs,endScreenRenderer:U.endScreenRenderer}),p;p.playerData={};if(t.index===void 0)return _.bV(Error("Qf")),p;p.panel=t.responsePlaylistData?(0,_.Kq.unsafeClone)(t.responsePlaylistData):{titleText:_.wN(_.zF("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
E=p.panel;if(E.contents)for(var x=_.M(t.temporaryItems),A=x.next();!A.done;A=x.next())E.contents.push({playlistPanelVideoRenderer:A.value});t.queueProxy&&U&&U.playingVideo&&U.playingVideoId&&!ysY(U.playingVideoId,p.panel)&&(E=U.playingVideo,x=p.panel,A=t.index,x.contents&&x.contents.splice(A===void 0?0:A,0,{playlistPanelVideoRenderer:E}));U&&U.playingVideoId&&(E=t.index,x=p.panel,E=!x.contents||E>=x.contents.length?void 0:x.contents[E].playlistPanelVideoRenderer,E&&E.videoId===U.playingVideoId||(E=
S$O(U.playingVideoId,p.panel),t.index=E!==-1?E:t.index?t.index-1:0));E=vcJ(t.index+1,p.panel);x=void 0;t.index>0&&(x=vcJ(t.index-1,p.panel));if(x||E)p.autoplayRenderer=WpY(E,x,p.autoplayRenderer);!E&&(U==null?0:U.relatedVideoArgs)&&(p.playerData.rvs=U.relatedVideoArgs);U=U?U.playlistIndexOffset:0;t.queueProxy?UkE(p.panel,t.index,U,KpD,!0,!0,!0):UkE(p.panel,t.index,U);p.playerData.playlistPanelRenderer=p.panel;return p};
IS.prototype.isMiniplayerActive=function(){return _.X3().resolve(_.bf).isMiniplayerActive()};
_.ZZ=function(t,E){t.playlistManager.setAutoplayRenderer(E.autoplayRenderer||null);t.playlistManager.setPlaylistData(E.panel||null);E.playerData&&t.playlistManager.setPlayerPlaybackControlData(E.playerData)};var xkO="#";var o4r={},Wfr={},$Vo={},Kfo={},v4G={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:(o4r.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",o4r),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:(Wfr.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",Wfr),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:($Vo.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",$Vo),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:(Kfo.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",Kfo),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 Dk8=[{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:v4G},{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:v4G}}];var XMD;_.X$=[[["I2JtaDhocDh6M28yZWtpbmQ=","I3B6bDlweWxxYTQ4MHZhbHVl"],"I3E0MDQ3OXZ5Z3FibEFEX1BMQUNFTUVOVF9LSU5EX1NUQVJU"]];
XMD=[[["I3hpcDh2cm1kdHhybnByaW1hcnk=",null,null],[null,["I2s3Z2NuejJvaGFicnl0ZC10d28tY29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVy","I3M5cGE1M2Fjcmx0aXN0eWxlLXNjb3Bl"],null],["IzE5M2poMmoycTR4YW1hc3RoZWFkLWFk",["ciNqZjlscHdqaWx6OHl0ZC1yaWNoLWdyaWQtcmVuZGVyZQ=="],null],[null,["I2ppYWF3cjh0cW83MXl0ZC1yaWNoLWdyaWQtcmVuZGVyZXI=","I3d2bGJ3aGN4aXZ4bXN0eWxlLXNjb3Bl"],null],[null,["I3NxZG95b3E0d3lvYXl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXI=","IzM2aGV3cnk3Y3YwOHN0eWxlLXNjb3Bl"],null],[null,["I3QwdmlscjZrb2EwY3l0ZC1hZC1zbG90LXJlbmRlcmVy"],
null]],[["I2ZhN2Zkdm13dnVwYXBsYXllci1hZHM=",null,null]]];_.O5=["I3J6amJwNWFybDdxb2dsb2JhbENhbGxiYWNrcw==","I3VqdmU2ZWxxMnVtaW9uQWJub3JtYWxpdHlEZXRlY3RlZA==","I3ZobnI3Z3VsbG8ydG9uQWRTa2lw","I3JmZDZ3NWg0enQyZHJhd19wbGF5ZXJfcmVzcG9uc2U=","IzIzMGw5aHZsb3FhbGFkU2xvdHM="];_.Xn="I3J6amJwNWFybDdxb2dsb2JhbENhbGxiYWNrcw== I3VqdmU2ZWxxMnVtaW9uQWJub3JtYWxpdHlEZXRlY3RlZA== I3ZobnI3Z3VsbG8ydG9uQWRTa2lw I3JmZDZ3NWg0enQyZHJhd19wbGF5ZXJfcmVzcG9uc2U= I2I0OWw0Z3Zsam96endlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcw== ZiNiZGp6amdkbzZqNGFiX3NhX2U= IzIzMGw5aHZsb3FhbGFkU2xvdHM=".split(" ");var hL;hL=function(t,E,p){this.lOI=t;this.rCP=E;this.pDV=p};
_.cc8=[new hL("b.f_",!1,0),new hL("j.s_",!1,2),new hL("r.s_",!1,4),new hL("e.h_",!1,6),new hL("i.s_",!0,8),new hL("s.t_",!1,10),new hL("p.h_",!1,12),new hL("s.i_",!1,14),new hL("f.i_",!1,16),new hL("a.b_",!1,18),new hL("a.o_",!1),new hL("g.o_",!1,22),new hL("p.i_",!1,24),new hL("p.m_",!1),new hL("n.k_",!0,20),new hL("i.f_",!1),new hL("a.s_",!0),new hL("m.c_",!1),new hL("n.h_",!1,26),new hL("o.p_",!1),new hL("m.p_",!0,28),new hL("o.a_",!1),new hL("d.p_",!1),new hL("e.i_",!1)].reduce(function(t,E){t[E.lOI]=
E;return t},{});var ybr=function(){};
ybr.prototype.flush=function(t,E){t=t===void 0?[]:t;E=E===void 0?!1:E;if(_.r("enable_client_streamz_web")){t=_.M(t);for(var p=t.next();!p.done;p=t.next())p=nOo(p.value),this.rootSpec&&_.FU(p,2,this.rootSpec),p={serializedIncrementBatch:_.S$(p.JSC$9883_serializeBinary())},_.MW("streamzIncremented",p,{sendIsolatedPayload:E})}};
var bkD=function(){};
_.u(bkD,ybr);var Sqo=function(t){var E=new h2r;var p=new ZNW;p=_.Lq(p,1,"botguard");t=_.Lq(p,2,t);this.rootSpec=_.zC(E,1,a8m,t)};
_.u(Sqo,ybr);var I4,cbp=new Map;var Fw$,qMj,jI_,BpO,VmO,Zkt,l7E,I7L;Fw$=2;qMj=2;jI_=2;BpO=2;VmO=2;Zkt=2;l7E=2;I7L=new ees;var Eq4,prW;Eq4=function(){this.ongoingFlowNonces=new Map};
_.eL=function(){prW||(prW=new Eq4);return prW};
_.a4=function(t,E,p){return{eventType:{flowEventNamespace:t,flowEventType:E},metadata:p,statusCode:void 0,csn:void 0,can:void 0}};
_.Efi=function(t,E){var p=_.eL(),U=U3s(p,E,!0);p.logFlowEvent(t,E,U,void 0)};
Eq4.prototype.logFlowEvent=function(t,E,p,U){E={flowNonce:p||U3s(this,E),flowType:E,flowEventType:t.eventType};t.metadata&&(E.flowMetadata=t.metadata);t.statusCode!==void 0&&(E.flowEventStatus=t.statusCode);t.csn&&(E.csn=t.csn);t.can&&(E.can=t.can);_.MW("flowEvent",E,U)};
var U3s=function(t,E,p){p=p===void 0?!1:p;var U=t.ongoingFlowNonces.get(E);if(!U||p)U=$x(16),t.ongoingFlowNonces.set(E,U);return U};_.x3X=new aRr;var Yg_={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 aS=function(t,E,p,U,x,A,m){p=p===void 0?!1:p;U=U===void 0?!1:U;A=A===void 0?_.gY():A;this.pN=!1;this.lzT=t;this.hhF=E;this.p39=p;this.fromHistory=U;this.previousVideoId=x;this.eXV=A;this.tempData=m;this.orR=new _.Fnp};
_.u(aS,Fo);aS.prototype.validate=function(t){return!(!t.data.playerResponse||t.data.page!=="watch"&&t.data.page!=="learning_journey_watch"&&t.data.page!=="shorts"||this.pN)};
aS.prototype.handle=function(t){var E=this,p=_.k(t.endpoint,_.HD),U=_.k(t.endpoint,_.DK);if(_.r("kevlar_continue_playback_without_player_response")&&(p==null?0:p.videoId)&&this.previousVideoId&&(p==null?void 0:p.videoId)===this.previousVideoId&&(p==null?0:p.continuePlayback)&&!this.fromHistory)this.lzT.resolve();else{var x={};p?x.watch_endpoint=p:U&&(x.watch_endpoint=U,U.endTimeSeconds&&(x.end=U.endTimeSeconds));t.data.page==="watch"?(t.data.filler||this.p39||(_.cD("cfg"),_.d1.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(x,A7G(this,t.endpoint)),_.r("enable_masthead_quartile_ping_fix")&&Object.assign(x,YZT(this)),Object.assign(x,void 0),t.data.forceExternalPlaylist&&(x.external_list=!0)):t.data.page==="shorts"?_.d1.getInstance().triggerAction("yt-start-loading-shorts"):t.data.page==="learning_journey_watch"&&_.d1.getInstance().triggerAction("yt-start-loading-learning-journey");if(p=this.hhF()){try{p.loadVideoWithPlayerResponse(t.data.playerResponse,x),p.getPlayerPromise().then(this.lzT.resolve)}catch(A){_.bV(A),
this.lzT.resolve()}this.pN=!0;p.getPlayerPromise().then(function(A){A.addEventListener("onAbnormalityDetected",function(){var m=t.data.playerResponse,b=A.getVideoData().cpn;l7E=0;_.tBZ=b;if(b=SMJ(m))E.orR.increment("IN_PLAYER"),_.F$(5),_.r("ab_st_vid_ks")?A.pauseVideo(!0):A.stopVideo(),m.playabilityStatus=Object.assign({},m.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:b}}),m.videoDetails=void 0,_.d1.getInstance().triggerOptionalAction("yt-updated-playability-status",
m.playabilityStatus)})})}else _.qW(Error("Tf"))}};
var A7G=function(t,E){var p=_.k(E,_.HD);if(E&&p&&p.playlistId&&p.videoId&&(t=t.eXV,t.queueProxy?(t=t.queueProxy,p=t.listId===p.playlistId?t.attributionData.get(p.videoId):void 0):p=void 0,p))return{queue_info:p}},YZT=function(t){var E;
if((E=t.tempData)==null?0:E.adpings)return{adpings:t.tempData.adpings}};var eV=function(t,E,p){this.pN=!1;this.c6V=t;this.mp5=E;this.r60=p};
_.u(eV,Fo);eV.prototype.validate=function(t){return!!_.Kq.getValueByKeys.apply(null,[t.data].concat(_.KB(OU4)))};
eV.prototype.handle=function(t){var E=this;this.c6V.promise.then(function(){var p=t.data;var U=_.Kq.getValueByKeys.apply(null,[p].concat(_.KB(kAZ))),x=_.Kq.getValueByKeys.apply(null,[p].concat(_.KB(g40))),A=_.Kq.getValueByKeys.apply(null,[p].concat(_.KB(uyf)));var m=(m=_.Kq.getValueByKeys.apply(null,[p].concat(_.KB(dVr))))?{videoId:m.videoId,thumbnail:m.thumbnail,title:m.title?_.wN(m.title):void 0,shortBylineText:m.author?_.wN(m.author):void 0}:void 0;var b=void 0;_.r("web_get_playlist_id_from_current_endpoint_ks")||
(b=_.Kq.getValueByKeys.apply(null,[p].concat(_.KB(JbG))));var f=_.Kq.getValueByKeys.apply(null,[p].concat(_.KB(ZUZ))),B=_.Kq.getValueByKeys.apply(null,[p].concat(_.KB(Ier))),R=!!f||!!B&&!!B.results&&B.results.length>0,V=0;x&&x.currentIndex&&x.localCurrentIndex&&(V=x.currentIndex-x.localCurrentIndex);x&&x.playlistId&&(b=x.playlistId);p={rawResponse:p,autoplayRenderer:U,hasRelatedVideoData:R,playingVideo:m,playingVideoId:A,playlistPanelRenderer:x,playlistId:b,playlistIndex:x&&x.currentIndex,relatedVideoArgs:f,
endScreenRenderer:B,playlistIndexOffset:V};a:{U=E.r60;x=E.mp5;U.response=p;if(TSr(p))U.downloadPlaylistProxy&&U.downloadPlaylistProxy.getPlaylistId()===PbW(p)||(U.downloadPlaylistProxy=new BST(PbW(p),U.setPlaylistData.bind(U),U.isPlayingOfflineVideo.bind(U))),U.responsePlaylistData=U.downloadPlaylistProxy.getPlaylistData(),U.listId=PbW(p),U.index=0;else if(p.playlistPanelRenderer&&p.playlistId&&p.autoplayRenderer)p.playlistId.startsWith("TLPQ")?U.queueProxy?U.listId===p.playlistId?(U.index=p.playlistIndex,
U.responsePlaylistData=p.playlistPanelRenderer,U.queueProxy.JSC$13308_setCurrentIndex(U.index)):p.playingVideoId&&U.index!==void 0&&x.clientParams.autoSaveToQueue&&(U.index+=1,U.queueProxy.JSC$13308_setCurrentIndex(U.index),U.queueProxy.addVideos([p.playingVideoId],{},U.index)):(U.queueProxy=new _.Ci(U.JSC$13362_playlistNetworkManager,p.playlistId,U.setPlaylistData.bind(U),U.clearQueue.bind(U),_.ElD(p.playlistPanelRenderer),U.storage),U.responsePlaylistData=p.playlistPanelRenderer,U.listId=p.playlistId,
U.index=p.playlistIndex):(U.index=p.playlistIndex,U.listId!==p.playlistId&&U.clearQueue(),U.responsePlaylistData=p.playlistPanelRenderer,U.listId=p.playlistId,U.playlistProxy=new rbf(U.JSC$13362_playlistNetworkManager,p.playlistId,U.setPlaylistData.bind(U),_.ElD(p.playlistPanelRenderer)));else if(!U.queueProxy)U.responsePlaylistData=void 0;else if(p.playingVideoId&&x.clientParams.autoSaveToQueue){if(U.index===void 0){_.bV(Error("Pf"));U.clearQueue();break a}U.queueProxy.videoIds.includes(p.playingVideoId)||
(U.index+=1,U.queueProxy.JSC$13308_setCurrentIndex(U.index),U.queueProxy.addVideos([p.playingVideoId],{},U.index))}_.ZZ(U,_.OA(U,U.response.autoplayRenderer))}})};var MBr=function(t,E){E=E===void 0?_.gY():E;vH.call(this);this.gv.push(new eV(this.ju,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},E));this.gv.push(new aS(this.ju,t,!1,!1));_.r("web_response_commands_chunk_processor")&&this.gv.push(new ys)};
_.u(MBr,vH);MBr.prototype.processChunk=function(t){t&&t.data.player===void 0&&this.ju.resolve();vH.prototype.processChunk.call(this,t)};var Fn=function(t,E){t=t===void 0?{layer:0}:t;this.pN=!1;this.createScreenConfig=t;this.xsb=E};
_.u(Fn,Fo);Fn.prototype.validate=function(t){return!(this.pN||!t.endpoint)};
Fn.prototype.handle=function(t){var E=_.Pu(),p,U,x=(U=_.k((p=t.endpoint)==null?void 0:p.commandMetadata,_.hZ))==null?void 0:U.rootVe;this.xsb&&x?_.PH(E,x,this.xsb,this.createScreenConfig):$90(E,t.endpoint,this.createScreenConfig);this.pN=!0};var z0=function(t,E){this.pN=!1;this.jrJ=t;this.previousVideoId=E};
_.u(z0,Fo);z0.prototype.validate=function(t){return _.r("kevlar_continue_playback_without_player_response")&&(t=_.k(t.endpoint,_.HD),(t==null?0:t.videoId)&&this.previousVideoId&&(t==null?void 0:t.videoId)===this.previousVideoId&&(t==null?0:t.continuePlayback))?!1:this.jrJ.jng===0};
z0.prototype.handle=function(t){_.d1.getInstance().triggerAction("yt-stop-old-player",t.data,!0)};var m3r=function(t){t=t===void 0?{layer:0}:t;vH.call(this);this.gv.push(new z0(this));this.gv.push(new Fn(t));this.gv.push(new Kz(t))};
_.u(m3r,vH);var lt=function(){Fo.apply(this,arguments)};
_.u(lt,Fo);lt.prototype.validate=function(t){return!!t.data.preconnect};
lt.prototype.handle=function(t){_.SR("bc");t=_.M(t.data.preconnect);for(var E=t.next();!E.done;E=t.next())E=E.value,(new Image).src=E};var bv0=function(t,E,p,U,x,A,m){p=p===void 0?{layer:0}:p;A=A===void 0?_.gY():A;vH.call(this);if(U)if(x){x=A;this.gv.push(new eV(this.ju,E,x));this.gv.push(new lt);var b,f;this.gv.push(new aS(this.ju,t,!1,!((b=E.clientParams)==null||!b.fromHistory),(f=E.clientParams)==null?void 0:f.previousVideoId,x,E.tempData));var B;this.gv.push(new z0(this,(B=E.clientParams)==null?void 0:B.previousVideoId));var R;(R=E.clientParams)!=null&&R.fromHistory||(p.layer||(p=Object.assign({},p,{layer:0})),this.gv.push(new Fn(p,
m)),this.gv.push(new Kz(p)))}else this.gv.push(new eV(this.ju,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},A)),this.gv.push(new aS(this.ju,t,!1,!1));else this.gv.push(new z0(this)),this.gv.push(new Fn(p)),this.gv.push(new Kz(p));_.r("web_response_commands_chunk_processor")&&U&&this.gv.push(new ys)};
_.u(bv0,vH);bv0.prototype.processChunk=function(t){t&&t.data.player===void 0&&this.ju.resolve();vH.prototype.processChunk.call(this,t)};var ivT=function(){this.pN=this.pN=!1};
_.u(ivT,Fo);ivT.prototype.validate=function(t){return!this.pN&&!(!t.data.csn||!t.data.rootVe)};
ivT.prototype.handle=function(t){this.pN=!0;_.cV(t.data.csn,t.data.rootVe,3)};var qZs=function(t,E,p){p=p===void 0?{layer:0}:p;vH.call(this);this.gv.push(new aS(this.ju,t));this.gv.push(new Fn(p));this.gv.push(new Kz(p))};
_.u(qZs,vH);var HvT=function(t,E,p,U,x){p=p===void 0?{layer:0}:p;U=U===void 0?_.gY():U;vH.call(this);var A=!!E&&!!E.clientParams&&!!E.clientParams.miniplayer;A&&this.gv.push(new ivT);this.gv.push(new eV(this.ju,E,U));this.gv.push(new lt);var m,b;this.gv.push(new aS(this.ju,t,A,!((m=E.clientParams)==null||!m.fromHistory),(b=E.clientParams)==null?void 0:b.previousVideoId,U,E.tempData));var f;this.gv.push(new z0(this,(f=E.clientParams)==null?void 0:f.previousVideoId));var B;(B=E.clientParams)!=null&&B.fromHistory||
(p.layer||(p=Object.assign({},p,{layer:A?3:0})),this.gv.push(new Fn(p,x)),this.gv.push(new Kz(p)));_.r("web_response_commands_chunk_processor")&&this.gv.push(new ys)};
_.u(HvT,vH);var G0,wrr;G0={};
_.fcs=(G0["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},G0["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},G0["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},G0["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},G0["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},G0["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},G0["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},G0);_.ni=new _.wx("yt-edu");_.B$G=function(){this.JSC$13460_eduDisplayedThisLoad_={}};
wrr=function(t){var E=_.B$G.getInstance();var p=_.z3("kevlar_tooltip_impression_cap");E=p&&parseInt(_.ni.get(t+"-impression")||0,10)>=p||_.ni.get(t+"-dismissed")?!1:(p=_.fcs[t])&&!E.JSC$13460_eduDisplayedThisLoad_[p.setKey||t]&&(p.titleText&&_.zF(p.titleText)||p.bodyText&&_.zF(p.bodyText))?!0:!1;if(!E)return null;E=_.fcs[t];if(!E)return null;p=E.bodyText?_.zF(E.bodyText):void 0;var U=E.titleText?_.zF(E.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:E.position,popup:{bubbleHintRenderer:{text:U?
_.wN(U):void 0,detailsText:p?_.wN(p):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.wN(_.zF("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:t}}]}}}}}}}},{eduImpressionAction:{key:t}}]};
_.gW(_.B$G);var pOK=!1;for(var RCW="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),VB0=[],NF=6;NF>=1;NF--)VB0.push({columnCount:NF,query:NF==1?0:NF*2*107-4+32,className:"grid-"+NF+"-columns",width:NF*2*107+"px"});_.DZ=function(t){this.actionRouter_=t=t===void 0?_.d1.getInstance():t;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.QNs(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.QNs=function(t){var E=t.documentWidth_-(t.miniGuideVisible_?72:0)-(t.guidePersistentAndVisible_?240:0)-(t.persistentPanelVisible_?400:0);return VB0.find(function(p){return E>p.query})};
_.gW(_.DZ);var C2T=function(){var t=this;this.JSC$13472_keyboardInUse=!1;document.addEventListener("keydown",function(){t.onKeydown()});
document.addEventListener("mousedown",function(){t.JSC$13472_keyboardInUse=!1})},jN0;
C2T.prototype.isKeyBoardInUse=function(){return this.JSC$13472_keyboardInUse};
C2T.prototype.onKeydown=function(){this.JSC$13472_keyboardInUse=!0};var r74,P5;_.sA=new _.wx("yt-mentions");_.Li=function(){};
r74=function(t,E){return P5(E,"drag-to-reorder-edu-displayed")};
P5=function(t,E,p,U,x,A){p=p===void 0?"OPEN_POPUP_POSITION_TOP":p;if(E){if(_.sA.get(E))return;_.sA.set(E,!0,U)}if(x&&A!==void 0){E=Number(_.sA.get(x)||0);if(E>=A)return;_.sA.set(x,E+1)}return[{openPopupAction:{popupType:"HINT",position:p,popup:{bubbleHintRenderer:{detailsText:t,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.gW(_.Li);var k6r,d30,ujG;k6r=function(t,E,p,U){this.JSC$13482_taskManager_=t;this.onFulfilled_=typeof E==="function"?E:null;this.onRejected_=typeof p==="function"?p:null;this.JSC$13482_context_=U};
d30=function(t,E){t.onFulfilled_&&_.W9(t.JSC$13482_taskManager_,function(){t.onFulfilled_.call(t.JSC$13482_context_,E)})};
ujG=function(t,E){t.onRejected_&&_.W9(t.JSC$13482_taskManager_,function(){t.onRejected_.call(t.JSC$13482_context_,E)})};
_.T0=function(t){this.JSC$13485_taskManager_=t;this.callbacks_=[]};
_.T0.prototype.then=function(t,E,p){this.callbacks_.push(new k6r(this.JSC$13485_taskManager_,t,E,p));return this};
_.T0.prototype.onSuccess=function(t){this.callbacks_.forEach(function(E){d30(E,t)})};
_.T0.prototype.onFailure=function(t){this.callbacks_.forEach(function(E){ujG(E,t)})};
_.T0.prototype.cancel=function(){this.callbacks_.length=0};
D$Z(_.T0);_.mv_=null;_.Ly=new _.gM("ACTIVITY_TOKEN");var J7f;_.yc=new _.gM("PAGE_REQUEST_TOKEN");J7f=new _.gM("FETCH_PBJ_TOKEN");_.Ic3=function(t){if(t.validatedFragments_.length==0)return null;if(!t.mergedPrefetchedData_){for(var E=[],p=_.M(t.validatedFragments_),U=p.next();!U.done;U=p.next()){U=_.M(t.fragmentConfiguration_[U.value].graftedKeys);for(var x=U.next();!x.done;x=U.next())(x=t.prefetchedData_[x.value].trackingParams)&&E.push(x)}t.mergedPrefetchedData_={};Object.assign(t.mergedPrefetchedData_,t.prefetchedData_,{clientSideGrafts:E})}return t.mergedPrefetchedData_};var gqp;_.oS=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
gqp=function(t,E,p){if(_.bLJ(E))return t.prefetchCache_.get(_.iLY(E,p))};_.W5=new _.gM("NAVIGATION_TOKEN");var Zv4=function(t){var E=this;var p=p===void 0?fOL():p;var U=U===void 0?_.X3().resolve(_.W5):U;this.onePickCommand=t;this.JSC$13557_playlistNetworkManager=p;this.navigationManager=U;this.videoPickerBuilder=_.qgi("yt-addtoplaylist");_.xeZ(PH0(TJX(LV4(this.videoPickerBuilder.setTitle(t.modalTitle).setSize(1E3).addView(tff()).addView(cH0())).addView("youtube"),t.selectButtonLabel)),function(x){E.handleAction(x)})};
Zv4.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
Zv4.prototype.handleAction=function(t){var E=this;if(t&&this.onePickCommand.listId&&t.action==="picked"&&t.docs){var p=[];t.docs.forEach(function(U){p.push({addedVideoId:U.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13557_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,p).then(function(){_.r("playlist_add_video_hard_reload_killswitch")?E.navigationManager.reload():Ov0(E.navigationManager)})}};var Xrs=function(){if(this.constructor===Xrs)throw new TypeError("Vf");};
_.Y=Xrs.prototype;_.Y.dispose=function(){};
_.Y.disconnect=function(){};
_.Y.reconnect=function(){};
_.Y.observe=function(t,E,p){return{element:t,option:p}};
_.Y.unobserveByKey=function(){};var Bj$=function(t,E){E=E===void 0?0:E;Xrs.call(this);this.viewroot=t;this.defaultPrescanHeight=E;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),t?{root:t,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.u(Bj$,Xrs);_.Y=Bj$.prototype;_.Y.dispose=function(){this.disconnect();this.handlers.clear()};
_.Y.disconnect=function(t){this.isConnected=!1;this.pauseObservingUntilReconnect=t===void 0?!1:t;this.observer.disconnect();t=_.M(this.prescanObservers.values());for(var E=t.next();!E.done;E=t.next())E.value.disconnect()};
_.Y.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var t=_.M(this.handlers),E=t.next();!E.done;E=t.next()){var p=_.M(E.value);E=p.next().value;var U=p.next().value;p=!1;U=_.M(U.keys());for(var x=U.next();!x.done;x=U.next())if((x=x.value)&&x.state==="prescan"){p=!0;break}p&&hCG(this,E).observe(E);this.observer.observe(E)}}};
_.Y.handleObserveEvent=function(t){t=_.M(t);for(var E=t.next();!E.done;E=t.next()){E=E.value;var p=this.handlers.get(E.target);if(p){var U=E.isIntersecting;p=_.M(p);for(var x=p.next();!x.done;x=p.next()){var A=_.M(x.value);x=A.next().value;A=A.next().value;x&&(x.state==="visible"&&U||x.state==="hidden"&&!U)&&(A(E.target,x.state),x.calledOnce&&this.unobserveByKey({element:E.target,option:x}))}}}};
_.Y.handlePrescanEvent=function(t){t=_.M(t);for(var E=t.next();!E.done;E=t.next()){E=E.value;var p=this.handlers.get(E.target);if(p&&E.isIntersecting){p=_.M(p);for(var U=p.next();!U.done;U=p.next()){var x=_.M(U.value);U=x.next().value;x=x.next().value;U&&U.state==="prescan"&&(x(E.target,U.state),U.calledOnce&&this.unobserveByKey({element:E.target,option:U}))}}}};
_.Y.observe=function(t,E,p){var U=(U=this.handlers.get(t))&&U.has(p)?{element:t,option:p}:void 0;if(U)return U;U={element:t,option:p};this.handlers.has(t)||this.handlers.set(t,new Map);var x=this.handlers.get(t);x&&!x.has(p)&&x.set(p,E);this.pauseObservingUntilReconnect||(p.state==="prescan"&&hCG(this,t).observe(t),this.observer.observe(t));return U};
_.Y.unobserveByKey=function(t){var E=this.handlers.get(t.element);if(E&&E.has(t.option)){E.delete(t.option);if(t&&t.option.state==="prescan")for(var p=_.M(this.prescanObservers.values()),U=p.next();!U.done;U=p.next())U.value.unobserve(t.element);E.size===0&&(this.handlers.delete(t.element),this.observer.unobserve(t.element))}};
var hCG=function(t,E){var p=t.defaultPrescanHeight;E.hasAttribute("prescan-height")&&(E=Number(E.getAttribute("prescan-height")),isNaN(E)||(p=E));if(t.prescanObservers.has(p))return t.prescanObservers.get(p);E="-0.1px -0.1px "+p+"px -0.1px";E=new IntersectionObserver(t.handlePrescanEvent.bind(t),t.viewroot?{root:t.viewroot,rootMargin:E}:{rootMargin:E});t.prescanObservers.set(p,E);return E};var acs=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],eCW=function(){var t,E=this;this.JSC$13574_actionRouter=t=t===void 0?_.d1.getInstance():t;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return E.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return E.visibilityObservedElementHandlerKeys}}},FRf,v5,G6m;
eCW.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.r("kevlar_use_vimio_behavior")&&_.qO("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=wO8())};
eCW.prototype.dispose=function(){this.visibilityMonitor&&_.pJ(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
eCW.prototype.handleVisibilityRefreshed=function(){for(var t=_.M(this.targetMap.entries()),E=t.next();!E.done;E=t.next()){var p=_.M(E.value);E=p.next().value;p=p.next().value;_.zCr(this,E,p)}};
_.y8=function(t,E,p){v5(t,p);var U=_.lcZ(t,E);U.element=p;t.targetedElements.set(p,E);_.zCr(t,E,U)};
v5=function(t,E){var p=t.targetedElements.get(E);if(p){var U=t.targetMap.get(p);U&&(delete U.element,t.targetMap.set(p,U));t.targetedElements.delete(E);t.visibilityObserver&&t.visibilityObservedElementHandlerKeys&&(p=t.visibilityObservedElementHandlerKeys.get(E))&&(t.visibilityObserver.unobserveByKey(p),t.visibilityObservedElementHandlerKeys.delete(E))}};
_.zCr=function(t,E,p){var U=p.action,x=p.element;x&&U&&(acs.includes(E)||_.qO("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||t.visibilityMonitor&&t.visibilityMonitor.isNodeVisible(x)?G6m(t,E,p):t.visibilityObserver&&(t.visibilityObservedElementHandlerKeys||(t.visibilityObservedElementHandlerKeys=new WeakMap),U=t.visibilityObserver.observe(x,function(){G6m(t,E,p);t.visibilityObservedElementHandlerKeys.delete(x)},{calledOnce:!0,
state:"visible"}),t.visibilityObservedElementHandlerKeys.set(x,U)))};
G6m=function(t,E,p){var U=p.action;(p=p.element)&&U&&(_.bP(t.JSC$13574_actionRouter,[U],p),t.targetMap.delete(E),t.targetedElements.delete(p),t.triggeredTargets.add(E))};
_.lcZ=function(t,E){var p=t.targetMap.get(E);p||(p={},t.targetMap.set(E,p));return p};
_.SV=function(){FRf||(FRf=new eCW);return FRf};var nqo=document.createElement("div");nqo.style.touchAction="pan-down";var RAJ=nqo.style.touchAction==="pan-down";var N$r,D3T;N$r=function(){this.hammerFn=zQr();this.JSC$13582_screenManager=_.Pu();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.h8(83615);_.oy(this.JSC$13582_screenManager,this.ve);VFJ()};
_.c5=function(){D3T||(D3T=new N$r);return D3T};
N$r.prototype.registerTouchEvents=function(t,E,p){var U=_.t9.apply(3,arguments),x=this.hammerFn(t,{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}]]});p&&x.set({touchAction:p});this.nodeManagerMapping.set(t,x);var A=
Q6J(E);U=_.M(U);for(var m=U.next();!m.done;m=U.next()){m=m.value;if(m.includes("swipe")||m.includes("pinch")||m.includes("pan"))m.includes("swipe")?x.get("swipe").set({enable:!0,direction:A,velocity:.2}):m.includes("pinch")?x.get("pinch").set({enable:!0}):m.includes("pan")&&(x.get("pan").set({enable:!0,direction:A}),x.get("swipe").set({enable:!0,direction:A,velocity:.2}),x.get("swipe").recognizeWith("pan"));sNp(this,t,x,m)}};
var sNp=function(t,E,p,U){p.on(U,function(x){if(U.includes("pinch"))t.lastPinchTime=Date.now();else if(U.includes("swipe")&&Date.now()-t.lastPinchTime<400)return;x.pointerType!=="mouse"&&(x=U==="doubletap"?{coordinates:x.center}:U.includes("pan")?x:U.includes("swipe")?{target:x.target}:{},E.dispatchEvent(new CustomEvent(U,{bubbles:!0,composed:!0,detail:x})))})};
N$r.prototype.unregisterTouchEvents=function(t){var E=_.t9.apply(1,arguments),p=this.nodeManagerMapping.get(t);if(p){E=_.M(E);for(var U=E.next();!U.done;U=E.next())p.off(U.value);this.nodeManagerMapping.delete(t);t.style.touchAction="unset"}};var LRm=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;_.T2={getLocalStorage:_.cq(function(){try{var t=new TmE;var E=t.isAvailable()?t:null}catch(p){return null}return E?new _.Ko(E):null}),
getSessionStorage:_.cq(function(){var t=new oht;return t.isAvailable()?new _.Ko(t):null})};var P2s=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},FB$=function(){P2s.instance||(P2s.instance=new P2s);
return P2s.instance},zAL=function(t){var E=t.networkEvents;
t.networkEvents=[];return E};var T$X;T$X={};_.oqT=aD("yt-serviceworker-metadata",{objectStores:(T$X.auth={addedAtVersion:1},T$X["resource-manifest-assets"]={addedAtVersion:2},T$X),shared:!0,upgrade:function(t,E){E(1)&&VK(t,"resource-manifest-assets");E(2)&&VK(t,"auth")},
version:2});var keY=self.location.origin+"/";dvK([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);dvK([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);dvK([/\.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\//]);dvK([/purge_shell=1/]);var WRG=void 0;WRG=WRG===void 0?[]:WRG;
for(var $3G=[],KRs=_.M(uJZ),vqs=KRs.next();!vqs.done;vqs=KRs.next())$3G.push({key:vqs.value});for(var y73=_.M(WRG),SZr=y73.next();!SZr.done;SZr=y73.next())$3G.push(SZr.value);var c7Z,Kf=_.Ui==null?void 0:(c7Z=_.Ui.performance)==null?void 0:c7Z.memory,IOi=!1,lOj={},OLO={},vL={},yM=navigator;var tS=function(t){this.JSC$13627_expiringStorage=new Ey(t)};
tS.prototype.set=function(t,E,p){p=p!==void 0?Date.now()+p:void 0;this.JSC$13627_expiringStorage.set(t,E,p)};
tS.prototype.get=function(t){return this.JSC$13627_expiringStorage.get(t)};
tS.prototype.remove=function(t){this.JSC$13627_expiringStorage.remove(t)};var Tj0=_.CG(["https://www.youtube.com/",""]),ofJ=_.CG(["https://studio.youtube.com/",""]),y0O="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",$vl=null,pBY;var t_4=_.CG(["https://www.youtube.com/iframe_api"]),E0=function(){this.playerResolver_=_.fd();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.SM;this.playbackDurationSeconds_=0},ED0=function(t){var E=function(){return window.YT&&typeof window.YT.ready==="function"};
if(E())return _.gu(window.YT);var p=_.fd(),U=_.Gg("SCRIPT");U.onload=U.onreadystatechange=function(){U.readyState&&U.readyState!="loaded"&&U.readyState!="complete"||(U.onload=_.SM,U.onreadystatechange=_.SM,U.onerror=_.SM,E()?p.resolve(window.YT):p.reject(new _.cC("Failed to load the iframe player library","script.onload",U.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
U.onerror=function(x){U.onload=_.SM;U.onreadystatechange=_.SM;U.onerror=_.SM;p.reject(new _.cC("Failed to load the iframe player library","script.onerror",x&&x.target&&x.target.src))};
_.w3(U,_.JC(t_4));t.insertBefore(U,t.firstChild);return p.promise},p20=function(t,E,p){var U,x;
_.q(function(A){switch(A.nextAddress){case 1:return t.playbackEndedCallback_=p,_.aR(A,2),A.yield(ED0(E.parentElement||null),4);case 4:U=A.yieldResult;_.r7(A,3);break;case 2:return x=_.nB(A),x instanceof _.cC&&x.args&&x.args[0]=="script.onerror"?_.qW(x):_.bV(x),A.return();case 3:U.ready(function(){return new U.Player(E,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:t.onPlayerReady_.bind(t),onStateChange:t.onPlayerStateChange_.bind(t),
onCueRangeExit:t.onCueRangeExit_.bind(t)}})}),_.Do(A)}})};
_.Y=E0.prototype;_.Y.getPlayerPromise=function(){return this.playerPromise_};
_.Y.onPlayerReady_=function(t){this.playerResolver_.resolve(t.target)};
_.Y.onPlayerStateChange_=function(t){if(t.data==YT.PlayerState.PLAYING){t=t.target;var E=t.getCurrentTime();t.addCueRange("playback",E,E+this.playbackDurationSeconds_)}};
_.Y.onCueRangeExit_=function(t){t.data=="playback"&&(t.target.stopVideo(),this.playbackEndedCallback_())};
_.Y.stopVideo=function(){this.playerPromise_.then(function(t){t.stopVideo()})};
var Upp=function(t){t.playerVars_&&t.playerPromise_.then(function(E){typeof E.cueVideoByPlayerVars!="function"?_.qW(new _.cC("vmh: player API not ready","cueVideoByPlayerVars",typeof E.cueVideoByPlayerVars)):E.cueVideoByPlayerVars(t.playerVars_)})};
E0.prototype.playVideo=function(){var t=this;this.playerVars_&&this.playerPromise_.then(function(E){typeof E.loadVideoByPlayerVars!="function"?(E=new _.cC("vmh: player API not ready","loadVideoByPlayerVars",typeof E.loadVideoByPlayerVars),_.bV(E)):E.loadVideoByPlayerVars(t.playerVars_)})};
var xpr=function(t,E,p,U,x){E&&(p===void 0&&(p=0),U===void 0&&(U=0),t.playbackDurationSeconds_=U/1E3,t.playerVars_={adformat:"17_8",videoId:E,suggestedQuality:"hd720",startSeconds:p/1E3,player_params:x})};
E0.prototype.mute=function(){this.playerPromise_.then(function(t){t.mute()})};
E0.prototype.unMute=function(){this.playerPromise_.then(function(t){t.unMute()})};var bPJ=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var pS;pS=function(){this.tokenJars={};if(this.cookiesEnabled=_.vC()){var t=_.$a.get("CONSISTENCY",void 0);t&&AQ3(this,{encryptedTokenJarContents:t})}};
_.qLi=function(){pS.instance||(pS.instance=new pS);return pS.instance};
pS.prototype.handleResponse=function(t,E){if(!E)throw Error("$f");var p,U;E=((p=E.innerTubeRequest.context)==null?void 0:(U=p.request)==null?void 0:U.consistencyTokenJars)||[];var x;(t=(x=t.responseContext)==null?void 0:x.consistencyTokenJar)&&this.replace(E,t)};
pS.prototype.replace=function(t,E){t=_.M(t);for(var p=t.next();!p.done;p=t.next())delete this.tokenJars[p.value.encryptedTokenJarContents];AQ3(this,E)};
var AQ3=function(t,E){if(E.encryptedTokenJarContents&&(t.tokenJars[E.encryptedTokenJarContents]=E,typeof E.expirationSeconds==="string")){var p=Number(E.expirationSeconds);setTimeout(function(){delete t.tokenJars[E.encryptedTokenJarContents]},p*1E3);
t.cookiesEnabled&&_.KR("CONSISTENCY",E.encryptedTokenJarContents,p,void 0,!0)}};var Y1W,U0;Y1W=window.location.hostname.split(".").slice(-2).join(".");_.ql=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var t=_.qO("LOCATION_PLAYABILITY_TOKEN");_.qO("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=M_r(this))&&(t=this.localStorage.get("yt-location-playability-token"));t&&(this.locationPlayabilityToken=t,this.mostRecentPosition=void 0)};
_.ql.getInstance=function(){U0=_.ws("yt.clientLocationService.instance");U0||(U0=new _.ql,_.Oy("yt.clientLocationService.instance",U0));return U0};
_.ql.prototype.setLocationOnInnerTubeContext=function(t){t.client||(t.client={});if(this.mostRecentPosition)t.client.locationInfo||(t.client.locationInfo={}),t.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),t.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),t.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),t.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)t.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.ql.prototype.handleResponse=function(t){var E;t=(E=t.responseContext)==null?void 0:E.locationPlayabilityToken;t!==void 0&&(this.locationPlayabilityToken=t,this.mostRecentPosition=void 0,_.qO("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=M_r(this))&&this.localStorage.set("yt-location-playability-token",t,15552E3):_.KR("YT_CL",JSON.stringify({loctok:t}),15552E3,Y1W,!0))};
var M_r=function(t){return t.localStorage===void 0?new _.wx("yt-client-location"):t.localStorage};
_.ql.prototype.clearLocationPlayabilityToken=function(t){t==="TVHTML5"?(this.localStorage=M_r(this))&&this.localStorage.remove("yt-location-playability-token"):_.GVK("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.ql.prototype.getCurrentPositionFromGeolocation=function(){var t=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("ag"));var E=!1,p=1E4;_.qO("INNERTUBE_CLIENT_NAME")==="MWEB"&&(E=!0,p=15E3);return new Promise(function(U,x){navigator.geolocation.getCurrentPosition(function(A){t.mostRecentPosition=A;U(A)},function(A){x(A)},{enableHighAccuracy:E,
maximumAge:0,timeout:p})})};
_.ql.prototype.createUnpluggedLocationInfo=function(t){var E={};t=t.coords;if(t==null?0:t.latitude)E.latitudeE7=Math.floor(t.latitude*1E7);if(t==null?0:t.longitude)E.longitudeE7=Math.floor(t.longitude*1E7);if(t==null?0:t.accuracy)E.locationRadiusMeters=Math.round(t.accuracy);return E};
_.ql.prototype.createLocationInfo=function(t){var E={};t=t.coords;if(t==null?0:t.latitude)E.latitudeE7=Math.floor(t.latitude*1E7);if(t==null?0:t.longitude)E.longitudeE7=Math.floor(t.longitude*1E7);return E};var mp0=function(t,E){var p=UT();t||(t="unknown");E||(E="unknown");t="MAIN_APP_WEB_PAGE_TYPE_"+t.toUpperCase();t in h8o||(t="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");E="MAIN_APP_WEB_REQUEST_TYPE_"+E.toUpperCase();E in amZ||(E="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.Gs(p,{mainAppWeb:{pageType:t,requestType:E,isShellLoad:_.HC("IS_SHELL_LOAD",!1)}})},bVf={start:function(){_.Gs(ezi(),{mainAppWeb:_.f0()})},
success:function(){_.nr(ezi(),"SUCCESS")},
failure:function(){_.nr(ezi(),"FAILURE")},
cancelled:function(){_.nr(ezi(),"CANCELLED")}};var iVm,q1W,wBY;iVm=_.CG(["/sw.js"]);q1W=_.CG(["/sw.js?0"]);_.HVG=_.JC(iVm);wBY=_.JC(q1W);var fY4=function(){var t=Error.apply(this,arguments);this.message=t.message;"stack"in t&&(this.stack=t.stack)};
_.u(fY4,Error);_.RG.prototype.load=function(t){this.megabloxUrl_=_.qO("YPC_MB_URL");_.xT(this.megabloxUrl_,(0,_.Tg)(function(){t&&t()},this))};
_.V9D=function(t,E,p,U,x,A,m,b,f,B,R){_.VSO(f);t.load((0,_.Tg)(function(){try{var V=A?A:_.qO("HL"),Q=_.qO("SESSION_INDEX");_.HzD("client",function(){Wnr("59",{helpCenterPath:"/youtube",locale:V,window:window}).JSC$10251_loadChatSupport({authuser:String(Q)})})}catch(C){throw B3(10,R,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),x&&x(C),_.bV(C),C;
}B5r(this,E,p,U,x,A,m,b,f,B,R)},t))};
_.RG.prototype.openFixFlowDialog=function(t,E,p,U){this.load((0,_.Tg)(function(){try{w2m(this,_.ws("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(t).withIntegratorCallback(E).load(p,U)}catch(x){throw _.bV(x),x;}},this))};
var w2m=function(t,E,p,U){var x=E.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.r("enable_window_constrained_buy_flow_dialog")&&(x=x.usingPopupStyle(_.ws("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));U&&(x=x.usingCloseCallback(U));E.bootstrap.fromPaymentsUrl(t.megabloxUrl_);t=E.bootstrap.asMashupMode(x);p=p?p:_.qO("HL");t.usingGaiaIndex(_.qO("SESSION_INDEX")).usingLocale(p).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.r("enable_google_payments_buyflow_material2_style_web")?
t.usingStyle(":m2;pc=#444;ac=#065fd4"):t.usingStyle(":md;pc=#444;ac=#065fd4");return t},B5r=function(t,E,p,U,x,A,m,b,f,B,R){try{var V=_.ws("payments.business.integration");
if(!V)throw new fY4("payments.business.integration is undefined");var Q=V.standaloneContextAuthId.forUserId(),C=w2m(t,V,A,function(){CoD(!1);b&&b()});
m&&C.usingServerAnalyticsEventHandler(m);var d=C.inStandaloneContext(Q).buyFlow(function(I){if(I&&(!I.integratorData||I.integratorData===""||I.error))if(I.error!=null)if(String(I.error)==="-1")_.QdJ(f);else{var O=String(I.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";B3(10,R,O,I.debugCode);_.wz(O,f,I.debugCode);O=new _.cC("PAYMENT_ERROR_MESSAGE::"+I.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+I.internalErrorDetails);
_.bV(O)}else B3(10,R,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.wz("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",f,"EMPTY_INTEGRATOR_DATA"),_.bV(Error("cg"));p&&(CoD(!1),p(I))}).withEncryptedParameters(E);
B&&d.withClientParameters(yDs(_.LJj(B)));d.load(function(){B3(24,R);_.tj("ttc",void 0,"commerce_transaction");vD("commerce_transaction");U&&(U(),CoD(!0))},function(I){if(I==null?0:I.debugCode)var O=I==null?void 0:I.debugCode;
else if(!I||(I==null?0:I.debugCode))O="EMPTY_LOAD_FAILURE_ERROR",_.bV(Error(O));else{O="EMPTY_LOAD_FAILURE_DEBUG_CODE";var a=new _.cC("LOAD_FAILURE:"+I.message," DEBUG_CODE:"+O);_.bV(a)}B3(10,R,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",O);_.wz("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",f,O);_.bV(I);x&&x(I)})}catch(I){throw I instanceof fY4&&(B3(10,R,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),x&&x(I)),_.bV(I),I;
}};var Rwf;Rwf=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.BK0=function(t,E){E=E===void 0?!1:E;t=Rwf.test(t)?_.N2(t):null;!E&&window.payments||!t?(t=_.fd(),E=t.promise,t.resolve()):E=_.Zo4(t,{attributes:{"data-payments-main":"",id:"payment-lib"}});return E};var V_m;V_m=_.CG(["//www.googletagmanager.com/gtm.js?id=",""]);_.x9=function(t,E){_.uA(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:E}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.qO("GL")}),E=_.Gg("SCRIPT"),E.async=!0,_.w3(E,_.JC(V_m,t)),E.id="gtm",t=document.getElementsByTagName("script"),t.length==0?document.head.appendChild(E):(t=t[0],t.parentNode.insertBefore(E,t)))};
_.AS=function(t){if(t=JSON.parse(t))window.dataLayer=window.dataLayer||[],window.dataLayer.push(t)};var Q_T,CW3;Q_T=_.CG(["https://clients2.google.com/gr/gr_sync.js"]);_.H5Y=function(){};
_.H5Y.prototype.init=function(){if(CW3()){var t=_.fd();t.resolve();return t.promise}return _.Zo4(_.JC(Q_T)).then(function(){if(!CW3())throw Error("dg");},function(){throw Error("eg");
})};
_.fXL=function(){if(!CW3())return"";var t=window.google.gr;t.init({async:{schedule:"sync"},merchantId:"youtube"});t.start();t=t.finish();return t==null?"":t};
CW3=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.z=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.u(_.z,PolymerFakeBaseClassWithoutHtml);_.sU=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.u(_.sU,PolymerFakeBaseClassWithoutHtml);var jdY=window.ShadyDOM;var xS$,pZi,YVJ,Moj,b7K,i70,Y9,gz;xS$=_.r("enable_shadydom_free_scoped_query_methods");pZi=_.r("enable_shadydom_free_scoped_node_methods");YVJ=_.r("enable_shadydom_free_scoped_readonly_properties_batch_one");Moj=_.r("enable_shadydom_free_parent_node");b7K=_.r("enable_shadydom_free_children");i70=_.r("enable_shadydom_free_last_child");Y9=window.ShadyDOM;_.aG=Y9&&Y9.noPatch&&Y9.wrap?Y9.wrap:Y9?function(t){return Y9.patch(t)}:function(t){return t};
gz=function(t){if(t instanceof ShadowRoot)this.host=(0,_.aG)(t.host),this.root=t;else if(t.$$){this.host=(0,_.aG)(t);var E;this.root=(E=t.root)!=null?E:this.host}else if(t.polymerController){this.host=(0,_.aG)(t);var p;this.root=(p=this.host.shadowRoot)!=null?p:this.host}else this.root=this.host=(0,_.aG)(t)};
USO();Ax$();qV8();H7_();mSK();var j_W={querySelector:function(t,E){E=eR8(E,rz(t));return _.r("sunnydom_native_scoped_query_selectors")?kvj(t,E):kvj(_.kR(t),E)},
querySelectorAll:function(t,E){E=eR8(E,rz(t));return _.r("sunnydom_native_scoped_query_selectors")?Array.from(d9O(t,E)):d9O(_.kR(t),E)}},rQW={appendChild:function(t,E){var p=rz(t),U=_.jU(E);
return _.to8(_.kR(t),p?_.J2(E,p,U):E)},
cloneNode:function(t,E){var p=_.jU(t);t=_.kR(t);E=C0(t).prototype.cloneNode.call(t,E);return p?IG(E,p):E},
contains:function(t,E){var p=rz(t),U=_.jU(E);return p!==U?!1:ENY(t,E)},
insertBefore:function(t,E,p){var U=rz(t),x=_.jU(E);t=_.kR(t);E=U?_.J2(E,U,x):E;return C0(t).prototype.insertBefore.call(t,E,p)},
removeChild:function(t,E){var p=rz(t);t=_.kR(t);E=p?IG(E,p):E;return C0(t).prototype.removeChild.call(t,E)},
replaceChild:function(t,E,p){var U=rz(t),x=_.jU(E);E=U?_.J2(E,U,x):x?IG(E,x):E;p=U?IG(p,U):p;t=_.kR(t);return C0(t).prototype.replaceChild.call(t,E,p)},
getRootNode:function(t,E){E=E===void 0?{composed:!0}:E;var p;if(((p=E)!=null?p:{}).composed)t=cuY(t);else{E=t;for(t=JuY(t);t;)E=t,t=zRL(t);t=E}return t}},BoO=YVJ?{firstChild:WkO,
nextSibling:PoO,previousSibling:ogL,firstElementChild:$9_,lastElementChild:vgi,nextElementSibling:Lk0,previousElementSibling:TP$,childNodes:yuD}:{};Moj&&(BoO.parentNode=sdD);b7K&&(BoO.children=SL_);i70&&(BoO.lastChild=KkD);xS$&&fCi(j_W);pZi&&fCi(rQW);wZ0();var Rp$=function(t){this.node=t instanceof ShadowRoot?t.host:t};
VoJ();QA$();var rxL=new WeakMap;var dSO=Symbol("Cd");var Z7$=new Set(["tap","track","down","up"]),O7l=_.r("pbcm_fi_query_decorators");var M7=function(){return _.sU.apply(this,arguments)||this};
_.u(M7,_.sU);_.Y=M7.prototype;_.Y.getState=function(){return this.store.getState()};
_.Y.dispatch=function(t){this.store.dispatch(t)};
_.Y.beforeRegister=function(){if(this&&typeof this==="object"){var t;var E=!!this.useSignals||!((t=this.polymerController)==null||!t.useSignals)}else E=!1;if(!E&&this.properties)for(E=_.M(Object.keys(this.properties)),t=E.next();!t.done;t=E.next()){var p=t.value;t=this.properties[p];if(t.selector){if(t.computed)throw Error("lg");p=["reduxPropertiesRecomputeTrigger",'"'+p+'"'].concat(_.KB(t.selectorArgs||[])).join(",");t.computed="recomputeReduxSelector("+p+")"}}};
_.Y.attached=function(){var t=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){t.reduxPropertiesRecomputeTrigger++}));
_.r("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.Y.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.Y.recomputeReduxSelector=function(t,E){var p=_.t9.apply(2,arguments),U=this.properties[E].selector;if(!U)throw Error("jg`"+E);return U.apply(null,[this.store.getState()].concat(_.KB(p)))};
_.Y.select=function(t){var E=_.t9.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return t.apply(null,[this.store.getState()].concat(_.KB(E)))};
_.aE.Object.defineProperties(M7.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("kg");}}});
M7.prototype.recomputeReduxSelector=M7.prototype.recomputeReduxSelector;_.N([_.e(),_.P("design:type",Number)],M7.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.N([_.L0()],M7);var mI=[],ep8={},El=function(){return FE.apply(this,arguments)||this};
_.u(El,FE);El.prototype._addPropertyEffect=function(t,E,p){if(E==="__observeEffects"&&p){var U,x=(U=p.info.method)!=null?U:p.info.methodName;if(x){var A=this[x];this[x]=function(){mI.push(x);try{A==null||A.apply(this,arguments)}finally{mI.pop()}}}}_.ci._addPropertyEffect.apply(this,[t,
E,p])};
El.prototype._setPendingProperty=function(t,E,p){if(mI.length){var U=mI[mI.length-1],x;(x=ep8[this.is])!=null&&x.has(U)||(FvY(this.is,U),_.MW("polymerPropertyChangedInObserver",{componentName:this.is,observerName:U}))}return _.ci._setPendingProperty.apply(this,[t,E,p])};
_.N([EMj()],El);var zpD=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),GbD,oG={};_.r("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=oG);var K0=function(){return _.sU.apply(this,arguments)||this};
_.u(K0,_.sU);K0.prototype._setUnmanagedPropertyToNode=function(t,E,p){t.loggingStatus&&(t.loggingStatus.isDeclarativeExternal=!0);if(p!==t[E]||typeof p==="object")t[E]=p;t.is&&t.polymerController&&t.polymerController!==t&&W3(t.is,E,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");t.loggingStatus&&(t.loggingStatus.isDeclarativeExternal=!1)};
_.N([_.L0()],K0);lC$()&&(jf.prototype._setUnmanagedPropertyToNode=(new K0)._setUnmanagedPropertyToNode);_.SVl={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(t){},set polymerController(t){}}]};var tX=function(){var t=FE.apply(this,arguments)||this;t.json=function(){};
return t};
_.u(tX,FE);tX.prototype.equals=function(t,E){return t===E};
tX.prototype.isEmpty=function(t){var E;(E=!t)||(E=_.LO(t)&&t.length===0);return E};
_.N([EMj()],tX);var kS0=function(t){t=qc$(t);iZ.call(this,t)};
_.u(kS0,iZ);kS0.prototype.addProvider=function(t){t=t.key?t:qc$([t])[0];var E=this.keyIdToIndex.get(t.key.id);if(E){if(Lvj(t,this.providers[E]))throw Error("mg`"+t.key.displayName);}else iZ.prototype.addProvider.call(this,t)};
var dp0=new kS0([]);var uPZ=!1;var KvY={};uPZ||($S0(),uPZ=!0);
KvY.InjectBehavior={initializeInjection:function(){var t=this.provide;try{if((t=t!=null?t:[])&&t.length>0)for(var E=qc$(t),p=_.M(E),U=p.next();!U.done;U=p.next())dp0.addProvider(U.value);var x=new Set;Plt(this.behaviors||[],x);E={};for(var A=_.M(x),m=A.next();!m.done;m=A.next()){var b=m.value;b.inject&&Object.assign(E,b.inject)}this.inject&&Object.assign(E,this.inject);for(var f=_.M(Object.keys(E)),B=f.next();!B.done;B=f.next()){var R=B.value,V=E[R];try{this[R]=dp0.resolve(V)}catch(Q){throw Q;}}}catch(Q){throw Error(Q.message);
}}};var yxO;var cxj=/\bclass\b/.test(function(){}.toString()),p_E=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var JQT=function(t){this.wasDefined=!0;Array.isArray(t)||t instanceof Array?(this.JSC$13785_getImpl=t[0],this.JSC$13785_setImpl=t[1]):this.JSC$13785_getImpl=t};
_.Y=JQT.prototype;_.Y.getWithPath=function(t){return AbJ(this.JSC$13785_getImpl(),t)};
_.Y.setWithPath=function(t,E){var p=this;if(t.length)throw Error("ng");if(!this.JSC$13785_setImpl)throw Error("og");vy(function(){p.JSC$13785_setImpl(E)})};
_.Y.notifyPath=function(){throw Error("pg");};
_.Y.notifySplices=function(){throw Error("qg");};
_.Y.getChangeRecordSignal=function(t,E){var p=this;if(t.length)throw Error("rg");return function(){var U=p.getWithPath(t);return{path:E!=null?E:"",base:U,value:U}}};
_.Y.getSplicesSignal=function(){throw Error("sg");};
_.Y.getPathMutationSignal=function(){throw Error("tg");};
_.Y.pop=function(){throw Error("ug");};
_.Y.push=function(){throw Error("vg");};
_.Y.splice=function(){throw Error("wg");};
_.Y.unshift=function(){throw Error("xg");};var bu=function(t){var E=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(t)||t instanceof Array?(this.JSC$13790_getImpl=t[0],this.JSC$13790_setImpl=t[1]):this.JSC$13790_getImpl=t;this.wasDefined=!1;_.sJ(function(){E.wasDefined=E.JSC$13790_getImpl()!==void 0})};
bu.prototype.getWithPath=function(t){return AbJ(this.JSC$13790_getImpl(),t)};
bu.prototype.setWithPath=function(t,E){var p=this;if(t[t.length-1]!=="*"&&t[t.length-1]!=="splices"){var U=_.sJ(function(){return p.getWithPath([])});
if(t.length===0){if(!this.JSC$13790_setImpl)throw Error("yg");if(U===E)return;this.wasDefined||(this.wasDefined=E!==void 0);vy(function(){p.JSC$13790_setImpl(E)})}else{for(var x=0;x<t.length-1;x++){if(!U)return;
U=U[t[x]]}x=t[t.length-1];U&&(U[x]=E);this.wasDefined||(this.wasDefined=t.length>1||E!==void 0)}IY3(this,t,{pathComponents:t,value:E})}};
bu.prototype.notifyPath=function(t,E){t.length===0?E&&this.setWithPath(t,E.value):IY3(this,t,{pathComponents:t,value:E==null?void 0:E.value,fallbackWhenUndefined:E==null?void 0:E.value})};
var IY3=function(t,E,p,U){if(t.setMutationSignal){var x=++t.mutationIndex,A=[t.observedPath],m=t.observedPath,b;E.length===0&&(b=m);for(var f=0;f<E.length;f++){var B=m.subPaths[E[f]];if(!B)break;A.push(B);m=B;f===E.length-1&&(b=B)}for(E=!1;A.length;)m=A.shift(),m.data={index:x,mutation:p,spliceMutationIndex:U},E||(E=m===b),E&&A.push.apply(A,_.KB(Object.values(m.subPaths)));vy(function(){t.setMutationSignal(x)})}};
bu.prototype.notifySplices=function(t,E){var p=this,U=_.sJ(function(){return p.getWithPath(t)}),x=[].concat(_.KB(t),["splices"]);
IY3(this,x,{pathComponents:x,value:{indexSplices:E}});if(U==null?0:U.length)E=this.mutationIndex,x=[].concat(_.KB(t),["length"]),IY3(this,x,{pathComponents:x,value:U.length},E)};
var gDG=function(t,E,p,U,x,A){t.notifySplices(p,[{index:U,addedCount:x,removed:A,object:E,type:"splice"}])},ZV3=function(t,E){t=t.observedPath;
for(var p=0;p<E.length;p++){var U=E[p],x=t.subPaths[U];x||(x={pathComponents:E.slice(0,p+1),subPaths:{}},t.subPaths[U]=x);t=x}},X2Z=function(t,E,p){ZV3(t,E);
if(!t.getMutationSignal){var U=_.M(_.Py(t.mutationIndex,void 0,"sNBMCd"));t.getMutationSignal=U.next().value;t.setMutationSignal=U.next().value}var x=t.getMutationSignal;return _.KN(function(){x();return p(OVG(t,E))},void 0,"zvsXEd")};
bu.prototype.getChangeRecordSignal=function(t,E){var p=this,U=this.mutationIndex,x;return X2Z(this,t,function(A){if(A&&A.index>U){var m=A.mutation;U=A.index;x=void 0}A=_.sJ(function(){return p.getWithPath(t)});
if(m){var b=m.pathComponents[m.pathComponents.length-1],f=[].concat(_.KB(m.pathComponents));if(b==="splices"||b==="length")return{base:A,path:(E?[E].concat(_.KB(f)):f).join("."),value:m.value};var B=t.length>f.length?t:f,R;return{base:A!=null?A:m.fallbackWhenUndefined,path:(E?[E].concat(_.KB(B)):B).join("."),value:(R=_.sJ(function(){return p.getWithPath(B)}))!=null?R:m.fallbackWhenUndefined}}x||(x={base:A,
path:(E?[E].concat(_.KB(t)):t).join("."),value:A});return x})};
bu.prototype.getSplicesSignal=function(t){var E=this.mutationIndex,p;return X2Z(this,t,function(U){if(U&&U.index>E&&U.spliceMutationIndex!==E){var x=U.mutation;E=U.index;p=void 0}return x&&x.pathComponents[x.pathComponents.length-1]==="splices"?p=U=x.value:p})};
bu.prototype.getPathMutationSignal=function(t){var E=this;ZV3(this,t);if(!this.getMutationSignal){var p=_.M(_.Py(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=p.next().value;this.setMutationSignal=p.next().value}var U=this.getMutationSignal,x=this.mutationIndex,A;return _.KN(function(){U();var m=OVG(E,t);if(m&&m.index>x&&m.mutation&&Yq_(m.mutation.pathComponents,t)){var b=m.mutation;x=m.index}if(!A||x!==A.index){var f,B;m=(B=_.sJ(function(){return E.getWithPath(t)}))!=null?B:(f=b)==null?
void 0:f.fallbackWhenUndefined;
A={index:x,value:m}}return A},void 0,"RXYC9b")};
var OVG=function(t,E){t=t.observedPath;E=_.M(E);for(var p=E.next();!p.done;p=E.next())t=t.subPaths[p.value];return t.data};
bu.prototype.pop=function(t){var E=this,p=_.sJ(function(){return E.getWithPath(t)});
if(!(p instanceof Array))throw Error("zg");var U=p.length>0,x=p.pop();U&&gDG(this,p,t,p.length,0,[x]);return x};
bu.prototype.push=function(t){var E=_.t9.apply(1,arguments),p=this,U=_.sJ(function(){return p.getWithPath(t)});
if(!(U instanceof Array))throw Error("Ag");var x=U.length,A=U.push.apply(U,_.KB(E));E.length&&gDG(this,U,t,x,E.length,[]);return A};
bu.prototype.splice=function(t,E,p){var U=_.t9.apply(3,arguments),x=this,A=_.sJ(function(){return x.getWithPath(t)});
if(!(A instanceof Array))throw Error("Bg");E<0?E=A.length-Math.floor(-E):E&&(E=Math.floor(E));var m=A.splice.apply(A,[E,p].concat(_.KB(U)));(U.length||m.length)&&gDG(this,A,t,E,U.length,m);return m};
bu.prototype.unshift=function(t){var E=_.t9.apply(1,arguments),p=this,U=_.sJ(function(){return p.getWithPath(t)});
if(!(U instanceof Array))throw Error("Cg");var x=U.unshift.apply(U,_.KB(E));E.length&&gDG(this,U,t,0,E.length,[]);return x};var iu=function(t,E,p){this.model=t;this.unknownSignalResolver=E;this.options=p;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];E=_.M(w_j());t=E.next().value;E=E.next().value;this.owner=t;this.disposeImpl=E};
iu.prototype.dispose=function(){if(!this.isDisposed){for(var t=_.M(this.childSignalProxies),E=t.next();!E.done;E=t.next())E.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var hwr=function(t,E){t=Z8(t.owner);try{E()}finally{Z8(t)}};
iu.prototype.effect=function(t){hwr(this,function(){_.Yw(t,"j")})};
var aYG=function(t,E){t.options!=null||(t.options={});var p;(p=t.options).immutableProps!=null||(p.immutableProps=new Set);t.options.immutableProps.add(E)},DVK=function(t,E){E=""+E;
ews(t,E);var p,U;if((p=t.options)==null?0:(U=p.immutableProps)==null?0:U.has(E))return!0;var x;if((x=t.model.__signalCache)==null?0:x.has(E))p=t.model.__signalCache.get(E),Array.isArray(p)&&aYG(t,E);var A,m,b;return(b=(A=t.options)==null?void 0:(m=A.immutableProps)==null?void 0:m.has(E))!=null?b:!1},FzZ=function(t,E){var p;
t.unknownSignalResolver&&(p=t.unknownSignalResolver(E));var U,x;((U=t.options)==null?0:(x=U.immutableProps)==null?0:x.has(E))?p!=null||(p=new JQT(_.Py(t.model[E],void 0,"By5iP"))):p!=null||(p=new bu(_.Py(t.model[E],void 0,"CXghNc")));var A=t.model.hostElement;Object.defineProperty(t.model,E,{get:function(){No0(A,E);return p.getWithPath([])},
set:function(m){$R(A,E);t.setWithPath([E],m)},
configurable:!0});return p},ews=function(t,E){var p,U,x;
((p=t.model.__signalCache)==null||!p.has(E))&&((U=t.options)==null?0:(x=U.externalSignalProps)==null?0:x.has(E))&&t.model[E]},Y8=function(t,E){E=""+E;
var p=t.signalCache[E];if(p!==void 0)return p;p=!1;ews(t,E);var U;if((U=t.model.__signalCache)==null?0:U.has(E))if(p=t.model.__signalCache.get(E),Array.isArray(p))p=!0,aYG(t,E);else return t.signalCache[E]=t.model.__signalCache.get(E).signal,t.signalCache[E];var x,A;U=(A=(x=t.options)==null?void 0:x.reactivityMode)!=null?A:0;var m,b;if(!((m=t.options)==null?0:(b=m.reactiveProps)==null?0:b.has(E))&&!p&&U===1)throw Error("Dg`"+E);x=p?zwo(t,E):FzZ(t,E);return t.signalCache[E]=x},zwo=function(t,E){var p=
Object.getOwnPropertyDescriptor(t.model.constructor.prototype,E),U=function(){return t.model[E]};
return new JQT(p&&p.get&&!p.set?U:[U,function(x){t.model[E]=x}])};
iu.prototype.getWithPath=function(t){var E=_.M(t);t=E.next().value;E=uQ(E);No0(this.model.hostElement,""+t);return Y8(this,t).getWithPath(E)};
iu.prototype.setWithPath=function(t,E){if(t.length){$R(this.model.hostElement,t.join("."));var p=_.M(t);t=p.next().value;p=uQ(p);Y8(this,t).setWithPath(p,E)}};
iu.prototype.getPathMutationSignal=function(t){var E=_.M(t);t=E.next().value;E=uQ(E);return Y8(this,t).getPathMutationSignal(E)};
iu.prototype.notifyPath=function(t,E){var p=_.M(t);t=p.next().value;p=uQ(p);Y8(this,t).notifyPath(p,E)};
var lY4=function(t,E){if(E.type==="literal")return function(){return{rootWasDefined:!0,value:E.value}};
var p=x8(E.path),U=_.M(p),x=U.next().value;U=uQ(U);var A,m;if(E.type==="path"&&(p.length===1||((A=t.options)==null?0:(m=A.immutableProps)==null?0:m.has(x))))return function(){var V=t.getWithPath(p.slice(0,1));V=AbJ(V,p.slice(1));return{rootWasDefined:Y8(t,p[0]).wasDefined,value:V}};
var b=Y8(t,x);if(E.type==="path"){var f=b.getPathMutationSignal(U);return function(){var V,Q=(V=f())==null?void 0:V.value;return{rootWasDefined:b.wasDefined,value:Q}}}if(E.type==="splices"){var B=b.getSplicesSignal(U);
return function(){var V=B();return{rootWasDefined:b.wasDefined,value:V}}}var R=b.getChangeRecordSignal(U,""+x);
return function(){var V=R();return{rootWasDefined:b.wasDefined,value:V}}},HUD=function(t,E,p){var U=p.map(function(b){return lY4(t,b)}),x=p.length===0,A=[],m=p.length!==1||p[0].type!=="path"?!1:!0;
t.effect(function(){for(var b=U.length,f=[],B=!!A.length,R=0;R<b;R++){var V=U[R](),Q=V.rootWasDefined;V=V.value;x||(x=Q);f[R]=V;m&&(f[R+b]=B?A[R]:f[R],A[R]=V)}x&&fw(t.owner,function(){return void E.apply(null,_.KB(f))})})},Mkj=function(t,E,p,U,x){var A=Y8(t,E);
x!==void 0&&A.setWithPath([],x);HUD(t,function(){var m=_.t9.apply(0,arguments);$R(t.model.hostElement,E,!0);A.setWithPath([],p.apply(null,_.KB(m)))},U)};
iu.prototype.arrayPush=function(t){var E=_.t9.apply(1,arguments),p=_.M(t),U=p.next().value;p=uQ(p);U=Y8(this,U);return U.push.apply(U,[p].concat(_.KB(E)))};
iu.prototype.arraySplice=function(t,E,p){var U=_.t9.apply(3,arguments),x=_.M(t),A=x.next().value;x=uQ(x);A=Y8(this,A);return A.splice.apply(A,[x,E,p].concat(_.KB(U)))};
iu.prototype.arrayUnshift=function(t){var E=_.t9.apply(1,arguments),p=_.M(t),U=p.next().value;p=uQ(p);U=Y8(this,U);return U.unshift.apply(U,[p].concat(_.KB(E)))};
iu.prototype.notifySplices=function(t,E){var p=_.M(t);t=p.next().value;p=uQ(p);Y8(this,t).notifySplices(p,E)};var GSr=!0,nD0=!1,sN8=!1,N5s=!1,DpX=0;N5s=!1;DpX=0;GSr=!0;nD0=sN8=!1;var rbK=/([^\s]+?)\(([\s\S]*)\)/,Q8Y=/\.([^.]+)$/,dVJ=/\\,/g,Rdt=/&comma;/g,Vki=/\\(.)/g,kAE=[],CbO={"*":"wildcard",splices:"splices"};var edJ=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"),OUO=/[A-Z]/,s_m=["class","hidden","id","on-dom-change"],zd$=new Set([].concat(_.KB(s_m),
["if","notify-dom-change","restamp"])),leJ=new Set([].concat(_.KB(s_m),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),GAJ=new Set(["restamp"]);var zwj=new Set(["className","id"]);var LfY=Symbol(),v4Y=window;var x3t=window;var qZO=0,MBi=0,Md=[],ivl=0,YZl=!1,bv_=document.createTextNode("");(new window.MutationObserver(m3i)).observe(bv_,{characterData:!0});var bR=new Map,md=0,Lzf=function(t){this.mappedHandleId=t},fcO=function(t,E,p,U){this.mappedHandleId=t;
var x=this;this.mappedHandleId=t;this.callback=E;this.waitTime=p;this.schedulerPriority=U;this.handleId=_.ir.addJob(function(){x.callback();bR.delete(x.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.u(fcO,Lzf);fcO.prototype.cancel=function(){_.ir.cancelJob(this.handleId);bR.delete(this.mappedHandleId)};
var B$Y=function(t,E){this.mappedHandleId=t;var p=this;this.mappedHandleId=t;this.callback=E;this.handleId=Hvl(function(){p.callback();bR.delete(p.mappedHandleId)})};
_.u(B$Y,Lzf);B$Y.prototype.cancel=function(){var t=this.handleId-MBi;t<0||Md.length<=t||(Md[t]=null);bR.delete(this.mappedHandleId)};var QN0=function(){};
QN0.prototype.cancel=function(){this.jobHandle!==void 0&&(wrJ(this.jobHandle),this.jobHandle=void 0)};
QN0.prototype.run=function(t,E,p){var U=this;this.cancel();this.callback=t;this.jobHandle=_.iR(function(){t();U.callback=void 0},E,p)};
QN0.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var RC$=new WeakMap;var PWT=IJ(function(t){for(var E=t,p=0;p<3;p++)E=Object.getPrototypeOf(E);delete E.prototype.connectedCallback;var U=function(){return t.apply(this,arguments)||this};
_.u(U,t);U.prototype._attachDom=function(x){if(!x)return null;var A=(0,_.aG)(this.hostElement);A.attachShadow({mode:"open",shadyUpgradeFragment:x});A.shadowRoot.appendChild(x);return A.shadowRoot};
U.prototype._takeAttributes=function(){for(var x=this.hostElement.attributes,A=0;A<x.length;A++){var m=x[A],b=void 0,f=void 0;(f=(b=this).__attributeReaction)==null||f.call(b,m.name,null,m.value)}};
U.prototype._readyClients=function(){t.prototype._readyClients.call(this);this.root=this};
U.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);t.prototype.connectedCallback.call(this)};
_.aE.Object.defineProperties(U,{template:{configurable:!0,enumerable:!0,get:function(){return U.prototype._template}}});
return U}),T50=IJ(function(t){var E=function(){return t.apply(this,arguments)||this};
_.u(E,t);E.prototype.created=function(){if(this.__notifyEffects)for(var p=_.M(Object.values(this.__notifyEffects)),U=p.next();!U.done;U=p.next()){U=_.M(U.value);for(var x=U.next();!x.done;x=U.next())x.value.fn=k6i}if(this.__reflectEffects)for(p=_.M(Object.values(this.__reflectEffects)),U=p.next();!U.done;U=p.next())for(U=_.M(U.value),x=U.next();!x.done;x=U.next())x.value.fn=d3_};
E.prototype._addEventListenerToNode=function(p,U,x){p=Hu(p);fo(p,U,x)||t.prototype._addEventListenerToNode.call(this,p,U,x)};
E.prototype._removeEventListenerFromNode=function(p,U,x){p=Hu(p);B6(p,U,x)||t.prototype._removeEventListenerFromNode.call(this,p,U,x)};
E.prototype._propertiesChanged=function(p,U,x){if(this.__dataToNotify&&this.__notifyEffects)for(var A=_.M(Object.keys(this.__dataToNotify)),m=A.next();!m.done;m=A.next()){m=m.value;var b=r7O(m);this.__notifyEffects[b]||delete this.__dataToNotify[m]}else this.__dataToNotify=null;t.prototype._propertiesChanged.call(this,p,U,x)};
E.prototype.fire=function(p,U,x){U=U===void 0?{}:U;var A;return _.kT(Hu((A=x==null?void 0:x.node)!=null?A:this),p,U,x)};
E.prototype._ensureAttribute=function(p,U){var x=Hu(this);x.hasAttribute(p)||AX(x,U,p)};
E.prototype.isLightDescendant=function(p){var U=Hu(this);return Hu(U)!==p&&_.ZN(U).contains(p)&&_.ZN(U).getRootNode()===_.ZN(p).getRootNode()};
return E});
_.W$.ready=function(){var t;((t=this.hostElement)!=null?t:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var E;((E=this.hostElement)!=null?E:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Ev._subscribeIronResize=function(t){var E;((E=t.hostElement)!=null?E:t).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Ev._unsubscribeIronResize=function(t){var E;((E=t.hostElement)!=null?E:t).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var IcD=[Array,Boolean,Date,Number,Object,String],Bu=function(t,E,p,U){this.polySiInfo=t;this.polySiParams=E;this.polySiContext=p;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;U||this instanceof HTMLElement&&(U=this);if(!U)throw Error("Kg");this.allowedProps=E.allowedProps;this.hostElement=U;this.is=t.is;this.upgradeDisabled=!!E.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");t=new Set(E.reactiveSchemas.filter(function(x){return x.type!==
"observe"}).map(function(x){return x.propertyKey}));
this.signalProxy=new iu(this,void 0,{reactiveProps:t,reactivityMode:E.reactivityMode});this.__dataHasAccessor={};E=_.M(E.reactiveSchemas);for(t=E.next();!t.done;t=E.next())t=t.value,t.type==="signal"&&(this.__dataHasAccessor[t.propertyKey]=!0);this.upgradeDisabled||oDX(this)};
Bu.prototype.getExtraMethodsToForward=function(){return[]};
var oDX=function(t){t.polySiContext.didRegister||(t.registered(),t.polySiContext.didRegister=!0);t.polySiContext.finalizedTemplate||(t.polySiContext.finalizedTemplate={},t.polySiParams.templateGetter&&(t.polySiContext.finalizedTemplate.processedTemplate=A7Y(t.polySiParams.templateGetter,t.polySiParams.is)));WzX(t);var E=t.hostElement;E.loggingStatus!=null||(E.loggingStatus={});E.loggingStatus.isInitializing=!0;_.sJ(function(){return void t.created()});
E.loggingStatus.isInitializing=!1;t.isPolySiElementConnected&&$pG(t)},$pG=function(t){t.didCallReady||(_.sJ(function(){return void t.ready()}),t.didCallReady=!0);
t.isAttached=!0;t.attached()};
_.Y=Bu.prototype;_.Y.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||$pG(this)};
_.Y.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.Y.attributeChangedCallback=function(t,E,p){if(this.upgradeDisabled)t==="disable-upgrade"&&p===null&&(this.upgradeDisabled=!1,oDX(this));else if(E!==p){var U=_.Fx(t),x=this.polySiContext.typesForSignals[U];if(x&&(!this.reflecting||_.r("polysi_attribute_changed_serializing_killswitch"))){switch(x){case Object:try{var A=JSON.parse(p)}catch(b){A=p}break;case Array:try{A=JSON.parse(p)}catch(b){A=null}break;case Date:A=isNaN(p)?String(p):Number(p);A=new Date(A);break;case Boolean:A=p!==null;break;case Number:A=
Number(p);break;default:A=p}this[U]=A}U=_.M(this.polySiParams.behaviors);for(x=U.next();!x.done;x=U.next())A=void 0,(A=x.value.attributeChanged)==null||A.call(this,t,E,p);var m;(m=this.attributeChanged)==null||m.call(this,t,E,p)}};
_.Y.attributeChangedCallbackWrapper=function(t,E,p){this.attributeChangedCallback(t,E,p)};
_.Y.setPropertiesFromInitialAttributeValues=function(){for(var t=0;t<this.hostElement.attributes.length;t++){var E=this.hostElement.attributes[t];(E.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(E.name))&&this.attributeChangedCallback(E.name,null,E.value)}};
_.Y.created=function(){this.provide=this.polySiParams.provide;var t;(t=this.initializeInjection)==null||t.call(this);t=_.M(this.polySiParams.reactiveSchemas);for(var E=t.next();!E.done;E=t.next())E=E.value,E.type==="signal"&&(this.mutablePropNames.add(E.propertyKey),Y8(this.signalProxy,E.propertyKey));J7K(this,this.polySiInfo,this.polySiParams.behaviors);t=_.M(this.polySiParams.reactiveSchemas);for(E=t.next();!E.done;E=t.next())E=E.value,E.type==="signal"&&E.value!==void 0&&(this.signalProxy.model[E.propertyKey]=
typeof E.value==="function"?E.value.call(this):E.value);if(this.polySiParams.signalProperties)for(t=_.M(this.polySiParams.signalProperties),E=t.next();!E.done;E=t.next()){E=E.value;var p=void 0;((p=this.__signalCache)==null?0:p.has(E))||(this.signalProxy.model[E]=void 0)}N5s||Kzs(this);ujY(this);t=_.M(this.polySiParams.behaviors);for(E=t.next();!E.done;E=t.next())p=void 0,(p=E.value.created)==null||p.call(this);var U;(U=this.polySiInfo.created)==null||U.call(this)};
_.Y.registered=function(){var t=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var E=Object.getPrototypeOf(this);E.addReactiveSchema=function(b){t.polySiParams.reactiveSchemas.push(b)};
for(var p=_.M(this.polySiParams.behaviors),U=p.next();!U.done;U=p.next()){var x=void 0;(x=U.value.beforeRegister)==null||x.call(E)}var A;(A=this.polySiInfo.beforeRegister)==null||A.call(E);E.addReactiveSchema=ZvO;p=_.M(this.polySiParams.behaviors);for(U=p.next();!U.done;U=p.next())x=void 0,(x=U.value.registered)==null||x.call(E);var m;(m=this.polySiInfo.registered)==null||m.call(E)};
_.Y.ready=function(){var t;(t=this.beforeReady)==null||t.call(this);N5s&&Kzs(this);var E;if(t=(E=this.polySiContext.finalizedTemplate)==null?void 0:E.processedTemplate){t=U3O(t.template,t.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:t.hasInsertionPoint,thisCtx:this});E=t.nodesById;t=t.root;var p=this.hostElement;var U=U===void 0?!1:U;p=(0,_.aG)(p);if(!p.attachShadow)throw Error("Id");if(!p.shadowRoot||U)p.attachShadow({mode:"open",shadyUpgradeFragment:t}),p.shadowRoot.appendChild(t);
this.root=p.shadowRoot;this.$=E}vDT(this);U=_.M(this.polySiParams.behaviors);for(E=U.next();!E.done;E=U.next())t=void 0,(t=E.value.ready)==null||t.call(this);var x;(x=this.polySiInfo.ready)==null||x.call(this)};
_.Y.attached=function(){for(var t=_.M(this.polySiParams.behaviors),E=t.next();!E.done;E=t.next()){var p=void 0;(p=E.value.attached)==null||p.call(this)}var U;(U=this.polySiInfo.attached)==null||U.call(this)};
_.Y.detached=function(){for(var t=_.M(this.polySiParams.behaviors),E=t.next();!E.done;E=t.next()){var p=void 0;(p=E.value.detached)==null||p.call(this)}var U;(U=this.polySiInfo.detached)==null||U.call(this)};
var WzX=function(t){for(var E=_.M(t.polySiParams.behaviors),p=E.next();!p.done;p=E.next())if(p=p.value,p.listeners)for(var U in p.listeners)pr$(t,t.hostElement,U,p.listeners[U]);if(t.polySiInfo.listeners)for(var x in t.polySiInfo.listeners)pr$(t,t.hostElement,x,t.polySiInfo.listeners[x])},pr$=function(t,E,p,U,x){t=xVD(t,U,x);
fo(E,p,t)||E.addEventListener(p,t);return t},Kzs=function(t){for(var E=_.M(t.polySiParams.reactiveSchemas),p=E.next();!p.done;p=E.next())p=p.value,p.type==="compute"||p.type==="computeWithMethod"?mVJ(t.signalProxy,p,t):p.type==="redux"?qq8(t.signalProxy,p,t.store):p.type==="signal"&&p.readOnly&&iUO(t.signalProxy,p)},vDT=function(t){for(var E=_.M(t.polySiParams.reactiveSchemas),p=E.next(),U={};!p.done;U={schema$jscomp$12:void 0},p=E.next())U.schema$jscomp$12=p.value,U.schema$jscomp$12.type==="notify"?
fet(t.signalProxy,U.schema$jscomp$12,t.hostElement):U.schema$jscomp$12.type==="observe"?BSl(t.signalProxy,U.schema$jscomp$12,t):U.schema$jscomp$12.type==="reflect"&&t.signalProxy.effect(function(A){return function(){var m=t.signalProxy.getWithPath([A.schema$jscomp$12.propertyKey]);
t.reflecting=!0;JbY(t.hostElement,A.schema$jscomp$12.propertyKey,m,!0);t.reflecting=!1}}(U));
if(t.reflectedAttributes)for(E=_.M(Object.entries(t.reflectedAttributes)),U=E.next(),p={};!U.done;p={key$jscomp$938:void 0,value$jscomp$10289:void 0},U=E.next()){var x=_.M(U.value);U=x.next().value;x=x.next().value;p.key$jscomp$938=U;p.value$jscomp$10289=x;t.signalProxy.effect(function(A){return function(){t.reflecting=!0;JbY(t.hostElement,A.key$jscomp$938,(0,A.value$jscomp$10289)(),!0);t.reflecting=!1}}(p))}};
_.Y=Bu.prototype;_.Y._setPendingProperty=function(t,E){this.set(t,E);return!1};
_.Y._enableProperties=function(){};
_.Y._setPendingPropertyOrPath=function(t,E){this.notifyPath(t,E);return!1};
_.Y._addPropertyEffect=function(){};
_.Y._stampTemplate=function(){throw Error("Lg");};
_.Y.fire=function(t,E,p){E=E===void 0?{}:E;p=p===void 0?{}:p;var U,x,A={bubbles:(U=p.bubbles)!=null?U:!0,cancelable:!!p.cancelable,composed:(x=p.composed)!=null?x:!0},m;return _.kT(Ov_((m=p.node)!=null?m:this.hostElement),t,E,A)};
_.Y.get=function(t,E){var p=x8(t);return E?AbJ(E,p):t==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(p)};
_.Y.linkPaths=function(){};
_.Y.listen=function(t,E,p){t=Ov_(t);this.boundListeners!=null||(this.boundListeners=new WeakMap);var U=this.boundListeners.get(t);U||(U={},this.boundListeners.set(t,U));var x=E+p;U[x]||(U[x]=pr$(this,t,E,p))};
_.Y.notifyPath=function(t,E){this.signalProxy.notifyPath(x8(t),arguments.length===2?{value:E}:void 0)};
_.Y.canNotifyPath=function(t){return this.mutablePropNames.has(t)&&!DVK(this.signalProxy,t)};
_.Y.notifySplices=function(t,E){this.signalProxy.notifySplices(x8(t),E)};
_.Y.pop=function(t){var E=this.signalProxy;t=x8(t);var p=_.M(t);t=p.next().value;p=uQ(p);return Y8(E,t).pop(p)};
_.Y.push=function(t){var E=_.t9.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[x8(t)].concat(_.KB(E)))};
_.Y.set=function(t,E,p){if(p)throw Error("Mg");t==="hidden"?this.hostElement.hidden=!!E:this.signalProxy.setWithPath(x8(t),E)};
_.Y.setProperties=function(t){t=_.M(Object.entries(t));for(var E=t.next();!E.done;E=t.next()){var p=_.M(E.value);E=p.next().value;p=p.next().value;this[E]=p}};
_.Y.splice=function(t,E,p){var U=_.t9.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[x8(t),E,p].concat(_.KB(U)))};
_.Y.unlinkPaths=function(){};
_.Y.unlisten=function(t,E,p){t=Ov_(t);if(this.boundListeners){var U=this.boundListeners.get(t);if(U){p=E+p;var x=U[p];x&&(B6(t,E,x)||t.removeEventListener(E,x),delete U[p])}}};
_.Y.unshift=function(t){var E=_.t9.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[x8(t)].concat(_.KB(E)))};
_.aE.Object.defineProperties(Bu.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 D3l=[Array,Boolean,Date,Number,Object,String];var P2O=!1;var q7=function(){var t=HTMLElement.apply(this,arguments)||this;t.restamp=!1;t.notifyDomChange=!1;t.JSC$13898_didCallConnected=!1;t.JSC$13898_renderDebouncer=null;t.disableTemplateUpdateSignalImpl=wn()?void 0:_.Py(!1,void 0,"OUmlUc");var E;t.getDisableTemplateUpdate=(E=t.disableTemplateUpdateSignalImpl)==null?void 0:E[0];var p;t.setDisableTemplateUpdate=(p=t.disableTemplateUpdateSignalImpl)==null?void 0:p[1];return t};
_.u(q7,HTMLElement);var yQT=function(t){t.conditionSignalImpl!=null||(t.conditionSignalImpl=new bu(_.Py(!1,void 0,"Mh1Uwb")));return t.conditionSignalImpl};
_.Y=q7.prototype;_.Y.showHideChildren=function(t){S1o(this,t,this.if)};
_.Y.attributeChangedCallback=function(t,E,p){if(this.JSC$13898_didCallConnected)throw Error("Qg`"+t);t==="notify-dom-change"?this.notifyDomChange=p!==null:t==="restamp"&&(this.restamp=p!==null)};
_.Y.debounceRender=function(){this.JSC$13898_renderDebouncer=_.G9(this.JSC$13898_renderDebouncer,RE,this.JSC$13898_renderImpl.bind(this));_.nm(this.JSC$13898_renderDebouncer)};
_.Y.disconnectedCallback=function(){var t=(0,_.aG)(this).parentNode;(!t||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t&&!t.host)&&cQ4(this)};
_.Y.connectedCallback=function(){var t=this;if(_.r("ps_dom_if_require_parent_signal_proxy_killswitch")||this.parentSignalProxy)this.JSC$13898_didCallConnected=!0,GSr?T$t():this.style.display="none",this.parentSignalProxy.isDisposed&&!_.r("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){yQT(t).getWithPath([]);t.debounceRender()});
else{var E=(0,_.aG)(this).parentNode,p={parentNode:E==null?void 0:E.nodeName};E instanceof Element&&(p.parentClassName=E.className);_.qW(new _.cC("PsDomIf connected with undefined parentSignalProxy",p))}};
_.Y.render=function(){_.Lm()};
_.Y.JSC$13898_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var t=this.if,E=!1;if(t){this.hasInstance()||(ttr(this),E=!0);a:{var p=(0,_.aG)(this).parentNode;if(this.hasInstance()){var U=this.instance.children;if((U==null?0:U.length)&&(0,_.aG)(this).previousSibling!==U[U.length-1])for(var x=0;x<U.length;x++)(0,_.aG)(p).insertBefore(U[x],this)}else{if(!p){p=!1;break a}Ed3(this,p)}p=!0}if(!p)return}else this.restamp&&cQ4(this);S1o(this,!1,t);t&&!E&&ttr(this);nD0&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.Y.hasInstance=function(){return!!this.instance};
var Ed3=function(t,E){var p=t.parentSignalProxy;if(wn()){var U=_.M(_.Py(!0,void 0,"QhELFb"));var x=U.next().value;U=U.next().value;p=t.parentSignalProxy}else{var A;var m=new iu((A=p43(t))!=null?A:{},function(f){var B=Y8(t.parentSignalProxy,f).getChangeRecordSignal([]);f=_.Py(void 0,void 0,"RUDHfc");var R=new bu(f);m.effect(function(){if(t.getDisableTemplateUpdate&&!t.getDisableTemplateUpdate()){var V=B();R.notifyPath(x8(V.path),{value:V.value})}});
return R});
t.parentSignalProxy.childSignalProxies.push(m);var b=p=m}p=U3O(t.templateInfo,t.templateInfo.nodeInfoList,p,{eventListenerHost:t.eventListenerHost,hasInsertionPoint:t.templateInfo.hasInsertionPoint,thisCtx:t.eventListenerHost,enabledSignal:wn()?x:void 0,getModel:function(){return p43(t)}}).root;
t.instance={root:p,children:[],hidden:!1,signalProxy:b,getTemplateUpdatesEnabled:x,setTemplateUpdatesEnabled:U};b=_.M(p.childNodes);for(x=b.next();!x.done;x=b.next())t.instance.children.push(x.value);(0,_.aG)(E).insertBefore(t.instance.root,t)},p43=function(t){if((t=t.parentSignalProxy.model)&&!t.hostElement){var E={},p;
for(p in t)t.hasOwnProperty(p)&&(E[p]=t[p]);return E}},cQ4=function(t){if(t.instance){var E=t.instance.children;
if(E.length){var p=(0,_.aG)(E[0]).parentNode;if(p){p=(0,_.aG)(p);for(var U=0;U<E.length;U++)p.removeChild(E[U])}}wn()?t.instance.setTemplateUpdatesEnabled(!1):t.instance.signalProxy.dispose();t.instance=void 0}},S1o=function(t,E,p){E=E||!p;
t.instance&&t.instance.hidden!==E&&(t.instance.hidden=E,LRL(E,t.instance.children))},ttr=function(t){if(wn()){var E=t.instance;
E&&fw(t.parentSignalProxy.owner,function(){return!E.getTemplateUpdatesEnabled()})&&E.setTemplateUpdatesEnabled(!0)}else t.setDisableTemplateUpdate(!1)};
_.aE.Object.defineProperties(q7.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var t=this;return fw(this.parentSignalProxy.owner,function(){return yQT(t).getWithPath([])})},
set:function(t){t||(wn()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));yQT(this).setWithPath([],!!t)}}});
_.aE.Object.defineProperties(q7,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",q7);var UBX=[],Hg=function(){var t=HTMLElement.apply(this,arguments)||this;t.as="item";t.indexAs="index";t.itemsIndexAs="itemsIndex";t.targetFramerate=20;t.notifyDomChange=!1;t.isDetached=!1;t.JSC$13905_renderDebouncer=null;t.instances=[];t.chunkingId=null;t.chunkCount=null;t.shouldMeasureChunk=!1;t.shouldContinueChunking=!1;t.renderStartTime=null;t.JSC$13905_didCallConnected=!1;return t};
_.u(Hg,HTMLElement);var xB4=function(t){t.itemSignalImpl!=null||(t.itemSignalImpl=new bu(_.Py(UBX,void 0,"sOVFgf")));return t.itemSignalImpl},AOo=function(t,E){Array.isArray(E)||(E=UBX);
xB4(t).setWithPath([],E)};
_.Y=Hg.prototype;_.Y.showHideChildren=function(t){for(var E=_.M(this.instances),p=E.next();!p.done;p=E.next())LRL(t,p.value.children)};
_.Y.notifyPath=function(t,E){t=x8(t);t[0]==="items"&&(t.length===1?AOo(this,E):xB4(this).setWithPath(t.slice(1),E))};
_.Y.canNotifyPath=function(t){return t==="items"};
_.Y.attributeChangedCallback=function(t,E,p){if(this.JSC$13905_didCallConnected)throw Error("Rg`"+t);t==="as"?this.as=p:t==="index-as"?this.indexAs=p:t==="items-index-as"?this.itemsIndexAs=p:t==="initial-count"?this.initialCount=Number(p):t==="notify-dom-change"?this.notifyDomChange=p!==null:t==="target-framerate"&&(this.targetFramerate=Number(p))};
_.Y.disconnectedCallback=function(){this.isDetached=!0;for(var t=0;t<this.instances.length;t++)Ydr(this,t);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.Y.connectedCallback=function(){var t=this;if(_.r("ps_dom_repeat_require_parent_signal_proxy_killswitch")||this.parentSignalProxy){var E=xB4(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var x=E(),A=x8(x.path);if(A[0]===void 0||A[0]==="splices"||A[0]==="length")t.debounceRender();else{var m=A[0];if(m=t.instances[typeof m==="string"?Math.floor(Number(m)):m])A=[t.as].concat(_.KB(A.slice(1))),m.signalProxy.notifyPath(A,x)}});
this.JSC$13905_didCallConnected=!0;GSr?T$t():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var p=(0,_.aG)((0,_.aG)(this).parentNode),U=0;U<this.instances.length;U++)p.insertBefore(this.instances[U].root,this);this.chunkingId&&this.render()}}else p=(0,_.aG)(this).parentNode,U={parentNode:p==null?void 0:p.nodeName},p instanceof Element&&(U.parentClassName=p.className),_.qW(new _.cC("PsDomRepeat connected with undefined parentSignalProxy",U))};
_.Y.debounceRender=function(){this.JSC$13905_renderDebouncer=_.G9(this.JSC$13905_renderDebouncer,RE,this.JSC$13905_renderImpl.bind(this));_.nm(this.JSC$13905_renderDebouncer)};
_.Y.render=function(){this.debounceRender();_.Lm()};
_.Y.JSC$13905_renderImpl=function(){var t=this;if(!this.parentSignalProxy.isDisposed){var E=this.items,p=MtT(this,E.length);mBX(this,E,p);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){t.chunkingId=null;if(t.shouldMeasureChunk){var U=performance.now()-t.renderStartTime;t.chunkCount=Math.round(Math.ceil(1E3/t.targetFramerate)/U*t.chunkCount)||1}t.shouldContinueChunking&&t.debounceRender()}));
nD0&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var MtT=function(t,E){var p=E,U=t.instances.length;if(t.initialCount){if(t.chunkCount){var x=Math.min(Math.max(E-U,0),t.chunkCount);p=Math.min(U+x,E)}else p=Math.min(E,t.initialCount),x=Math.max(p-U,0),t.chunkCount=x||1;t.shouldMeasureChunk=x===t.chunkCount;t.shouldContinueChunking=p<E;t.renderStartTime=performance.now()}return p},mBX=function(t,E,p){for(var U=0;U<p;U++){var x=t.instances[U],A=E[U];
x?(x.signalProxy.setWithPath([t.as],A),x.signalProxy.setWithPath([t.indexAs],U)):bar(t,A,U)}for(E=t.instances.length-1;E>=U;E--)p=t,x=E,Ydr(p,x),_.M(p.instances.splice(x,1)).next().value.signalProxy.dispose()},Ydr=function(t,E){t=t.instances[E];
E=(0,_.aG)(t.root);for(var p=0;p<t.children.length;p++)E.appendChild(t.children[p])},bar=function(t,E,p){var U={};
E=Object.assign({},iaZ(t),(U[t.as]=E,U[t.indexAs]=p,U[t.itemsIndexAs]=p,U));var x=new iu(E,function(m){if(m!==t.as&&m!==t.indexAs){if(m===t.itemsIndexAs)return Y8(x,t.indexAs);var b=Y8(t.parentSignalProxy,m).getChangeRecordSignal([]);m=_.Py(void 0,void 0,"DS4mcc");var f=new bu(m);x.effect(function(){var B=b();f.notifyPath(x8(B.path),{value:B.value})});
return f}});
t.parentSignalProxy.childSignalProxies.push(x);U=U3O(t.templateInfo,t.templateInfo.nodeInfoList,x,{eventListenerHost:t.eventListenerHost,getModel:function(){var m={};return Object.assign({},iaZ(t),(m[t.as]=x.model[t.as],m[t.indexAs]=x.model[t.indexAs],m[t.itemsIndexAs]=x.model[t.indexAs],m))},
hasInsertionPoint:t.templateInfo.hasInsertionPoint,thisCtx:t.eventListenerHost,methodInvocationRequirement:DpX,enabledSignal:t.stampingEnabled}).root;E={root:U,children:[],signalProxy:x};U=_.M(U.childNodes);for(var A=U.next();!A.done;A=U.next())E.children.push(A.value);U=(U=t.instances[p+1])?U.children[0]:t;(0,_.aG)((0,_.aG)(t).parentNode).insertBefore(E.root,U);t.instances[p]=E},iaZ=function(t){if((t=t.parentSignalProxy.model)&&!t.hostElement){var E={},p;
for(p in t)t.hasOwnProperty(p)&&(E[p]=t[p]);return E}};
Hg.prototype.itemForElement=function(t){var E=this,p=this.instances.find(function(U){return U.children.includes(t)});
if(p)return fw(this.parentSignalProxy.owner,function(){return p.signalProxy.getWithPath([E.as])})};
Hg.prototype.indexForElement=function(t){var E=this.instances.findIndex(function(p){return p.children.includes(t)});
return E>=0?E:void 0};
_.aE.Object.defineProperties(Hg.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var t=this;return fw(this.parentSignalProxy.owner,function(){return xB4(t).getWithPath([])})},
set:function(t){AOo(this,t)}},
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}}});
_.aE.Object.defineProperties(Hg,{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",Hg);var qds,HaG;_.fS=new _.gM("STATE_STORE_TOKEN");qds=new _.gM("SELECT_TOKEN");HaG=new _.gM("DISPATCH_TOKEN");var y7D={getSelectFn:function(){var t;return(t=_.X3().resolve(_.OB(qds)))!=null?t:oql},
getDispatchFn:function(){var t;return(t=_.X3().resolve(_.OB(HaG)))!=null?t:_.Ro().dispatch.bind(_.Ro())},
getAppStore:function(){return _.X3().resolve(_.fS)}},WRY,vqO=!1;var xpi=function(){};var ED_=void 0;var fj4=function(){};
fj4.prototype.hasAttribute=function(t){if(t==="dir")return!1;if(t==="disable-upgrade"){var E,p;return(p=(E=this.hostElement)==null?void 0:E.hasAttribute("disable-upgrade"))!=null?p:!1}throw Error("Sg`"+t);};
fj4.prototype.attributeChangedCallbackWrapper=function(t,E,p){if(t==="disable-upgrade"&&this.__isUpgradeDisabled&&p===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var U;((U=this.hostElement)!=null?U:this).isConnected&&this.connectedCallback()}else E===p||this.__isReflecting||this.attributeChangedCallback(t,E,p)};
fj4.prototype.getExtraMethodsToForward=function(){for(var t=this,E=[],p=_.M(BD0),U=p.next(),x={};!U.done;x={tagName$jscomp$67:void 0,name$jscomp$630:void 0},U=p.next())x.name$jscomp$630=U.value,U=void 0,x.name$jscomp$630==="_setPendingProperty"?(x.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),U=function(A){return function(m,b,f){W3(A.tagName$jscomp$67,m,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return t._setPendingProperty(m,b,f)}}(x)):U=function(A){return function(){return t[A.name$jscomp$630].apply(t,
_.KB(_.t9.apply(0,arguments)))}}(x),E.push([x.name$jscomp$630,
U]);return E};
for(var M_i=T50(PWT((0,_.Sx)(fj4))),q1$=["disabled","disable-upgrade"],w4Z=(0,_.Sx)(function(){}),RiW=new Set(Object.getOwnPropertyNames(w4Z.prototype)),RwK=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.KB(RiW))),fYO=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),BD0=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),Vtf=new Set([].concat(_.KB(fYO),_.KB(BD0),_.KB(RiW))),QT4=_.M(Vtf),CwW=QT4.next();!CwW.done;CwW=QT4.next())zpD.add(CwW.value);var w2L={created:function(){ujY(this);this.initializeInjection()}};var JQl=!1,gn=window.ShadyDOM,ewO=["appendChild","insertBefore","removeChild","replaceChild"],aYY=[Node];gn&&aYY.push(gn.Wrapper);var Dpt,s_L,T5_={};var Zw,vDl=new WeakMap,Wzt=new Set;var EdD=new Set("context didCallReady is info params signalProxy".split(" ")),UBt="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),xBO="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var jTr=xx({entities:U7J}),rO4=new VM(jTr);var kPZ=function(){return _.sU.apply(this,arguments)||this};
_.u(kPZ,_.sU);_.aE.Object.defineProperties(kPZ.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return rO4}}});
_.N([_.L0()],kPZ);_.Bg=[M7.prototype,kPZ.prototype];_.w8={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var t=this,E={};setTimeout(function(){var p;return _.kT((p=t.hostElement)!=null?p:t,"yt-live-chat-add-tooltip-target",E)},0);
this.handler_=E.handler},
detached:function(){if(this.handler_){var t;this.handler_.removeElementFromSupportingTooltips((t=this.hostElement)!=null?t:this)}this.handler_=null}}};_.lR=new _.gM("ICON_MANAGER_TOKEN");var dB4=[48,20,18,16,15,13,12],uCJ=new Map,jTJ=new Set,VtK=new Set,Cw$=new Set,Ri$=new Set,QTO=new Set,kPE=new Promise(function(t){var E=!1,p=!1,U=!1,x=[],A=function(m){if("detail"in m)if(m=m.detail,m.name==="yt-icons")rOO(m),E=!0;else if(m.name==="yt-sys-icons")rOO(m),p=!0;else{var b;((b=m.name)==null?0:b.includes("yt-sys-icons"))&&m.size!==24&&(rOO(m,!0),x.push(m.size),x.length===dB4.length&&(U=!0))}E&&p&&U&&(window.removeEventListener("iron-iconset-added",A),t())};
window.addEventListener("iron-iconset-added",A)}),uCr=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"]]);_.RO={};_.RO.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.R4,computeHref_:function(t,E){E=E===void 0?!1:E;if(!t||t.commandExecutorCommand)return null;var p=H$O(t,E);return E||p!==null?p?_.r("enable_polymer_resin")?_.S8(p).toString():p:null:(_.qW(new _.cC("computeHref was null",this.is,t)),null)},
computeOptionalHref_:function(t){return this.computeHref_(t,!0)},
computeNofollow_:function(t){return t?U60(t)?"nofollow":null:null},
computeIcon_:function(t){return t&&t.iconType?_.zh(t.iconType):""},
resolveCommand:function(t,E,p){E=E===void 0?{}:E;return _.n4(t,this.hostElement,E,p===void 0?!1:p)}};var Ij3,Vu;_.JOr={};Ij3=null;
Vu={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_=wO8(this.viewroot));_.iR(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var t=this;this.unobserve_();if(_.r("kevlar_vimio_use_shared_monitor"))Dw(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 E=[];this.visibilityOptionVisible_&&E.push(this.visibilityObserver.observe(this.hostElement,function(){return t.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&E.push(this.visibilityObserver.observe(this.hostElement,function(){return t.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&E.push(this.visibilityObserver.observe(this.hostElement,function(){return t.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=E}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){JOi(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 t=_.tg(this.parentNode,function(p){var U,x=(U=p.polymerController)!=null?U:p;return!!x.getVisibilityObserverForChild&&x.getVisibilityObserverForChild()},!0);
if(t){var E;this.localVisibilityObserver_=((E=t.polymerController)!=null?E:t).getVisibilityObserverForChild()}else Ij3||(Ij3=wO8()),this.localVisibilityObserver_=Ij3;return this.localVisibilityObserver_},visibilityCallback:function(t){t?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.r("kevlar_use_vimio_behavior")||(Vu={});Vu&&!_.r("kevlar_use_vimio_behavior")&&(delete Vu.attached,delete Vu.detached);_.JOr.YtVisibilityObserverBehavior=[Vu];var gds={};gds.YtVisualElementBehavior=[_.JOr.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.r("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.r("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var t=this.getScreenLayer&&this.getScreenLayer(),E=this.getVisibilityLogger();E&&E.reportShown(this,void 0,t)}},
onHidden:function(){if(_.r("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.r("kevlar_vimio_use_shared_monitor")){var t=this.getScreenLayer&&this.getScreenLayer(),E=this.getVisibilityLogger();E&&E.reportHidden(this,void 0,t)}},
getVisibilityLogger:function(){return _.r("kevlar_use_vimio_behavior")?_.sl():null},
shouldSkipLogging:function(){if(_.qO("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var t=this.getParentRenderer&&this.getParentRenderer();if(!t)return!1;var E,p=(E=t.polymerController)!=null?E:t;if(!p.data)return!1;t=this.data.trackingParams;t=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:t;var U;E=(U=p.data)==null?void 0:U.trackingParams;var x,A;E=((x=p.data)==null?0:x.loggingDirectives)?(A=p.data)==null?void 0:A.loggingDirectives.trackingParams:E;return t&&E&&t===
E}}];var hiE=new Map,K4;var dgi=function(t){this.layer=t},NM=function(t){return t.layer!==void 0?t.layer:t.parent?NM(t.parent):t.layer=0};var GPj;_.y={};GPj=0;_.y.YtRendererBehavior=[_.RO.YtComponentBehavior,gds.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_:_.r("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var t,E;(E=(t=this.monitorScrollElement)!=null?t:this.hostElement)==null||E.removeEventListener("scroll",_.zI(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();OaO(this.hostElement);v5(_.SV(),this.hostElement);BA.delete(this.hostElement)},
registerRenderer:function(t){var E;((E=t.polymerController)!=null?E:t).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(t),this.markDirty())},
unregisterRenderer_:function(t){this.useVimio_||(this.childCache_.delete(t),this.markDirty())},
attached:function(){var t=this,E=this.getParentRenderer();if(E){var p,U,x;(U=(p=(x=E.polymerController)!=null?x:E).registerRenderer)==null||U.call(p,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var A,m;(m=(A=this.monitorScrollElement)!=null?A:this.hostElement)==null||m.addEventListener("scroll",_.zI(this,this.onScroll))}_.ir.addJob(function(){ajj(t.hostElement)},8);
p=new dgi(this.screenLayer||void 0);(E=BA.get(E))&&E.layerNode&&(p.parent=E.layerNode);E={};un$(this.hostElement,(E.isRenderer=!0,E.layerNode=p,E[uut]=this.data,E))},
getParentRenderer:function(){for(var t=this.hostElement.parentNode,E,p;t&&((E=BA.get(t))==null||!E.isRenderer)&&!((p=t.polymerController)!=null?p:t).isRenderer_;)t=t.parentNode||t.host;return t},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.r("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.HC("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.r("debug_web_ve_data")&&this.data.trackingParams){var t="";try{t=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(p){_.bV(p)}if(t){var E=eql(t,1);E!==void 0&&(this.hostElement.dataset.veIndex=String(E));t=eql(t,2);
t!==void 0&&(this.hostElement.dataset.ve=String(t))}}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,_.r("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.$8(this.data.loggingDirectives.trackingParams)),this.visualElement=_.L4(_.Pu(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var t=this.data.targetId;_.y8(_.SV(),t,this.hostElement)}else v5(_.SV(),this.hostElement)},
onScroll:function(){var t=Date.now();t-this.lastHandledScroll_<50||(this.lastHandledScroll_=t,this.markDirty())},
markDirty:function(){_.r("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():ndj(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var t=this.getParentRenderer();if(t&&(t=BA.get(t))&&t.layerNode)return NM(t.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.KB(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var t=0;t<this.data.impressionEndpoints.length;t++)this.sendImpression(this.data.impressionEndpoints[t]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(t){t.clickTrackingParams&&delete t.clickTrackingParams;var E,p;(t==null?0:(E=t.commandMetadata)==null?0:(p=E.webCommandMetadata)==null?0:p.sendPost)?_.JZ(this.hostElement,[t,{impression:!0}]):_.IK(this.hostElement,[t],this.hostElement)},
logExplicitClick:function(t){var E=_.yL(this.getScreenLayer());if(E){var p,U=(p=t.polymerController)!=null?p:t;t=U.visualElement;U=U.trackingParams||U.clickTrackingParams;!t&&U&&(t=_.$8(U));t&&_.qc(E,t)}}}];var ZaZ={},Qu=function(){return _.sU.apply(this,arguments)||this};
_.u(Qu,_.sU);Qu.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Qu.prototype.onPdgItemBehaviorClick=Qu.prototype.onPdgItemBehaviorClick;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Qu.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Qu.prototype,"data",void 0);_.N([_.lc("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Qu.prototype,"onPdgItemBehaviorClick",null);_.N([_.L0()],Qu);ZaZ.YtPdgLiveChatItemBehavior=[Qu.prototype,_.y.YtRendererBehavior];var Oas;var X4p;_.CS={};_.CS.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var j4=function(){var t=FE.apply(this,arguments)||this;t.switchTemplateAtRegistration=!1;return t};
_.u(j4,FE);j4.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||LTt(this),_.C2l(this,"doRender"),this.doRender())};
j4.prototype.debounceRender=function(){this.templatingFn&&_.qd(this,"doRender",this.doRender)};
j4.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.bV(Error("bh"))};
j4.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.N([EMj()],j4);var hiZ=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,r8={},WTO=(r8[1]={filterString:null,isUnwrappable:null,unwrap:null},r8[2]={filterString:function(t,E,p){return X0(p)},
isUnwrappable:function(t){return t instanceof U2},
unwrap:function(t){return A9(t)}},r8[3]={filterString:function(t,E,p){return hiZ.test(p)?p:y$.toString()},
isUnwrappable:function(t){return Ww(t)},
unwrap:function(t){return _.$I(t)}},r8[4]={filterString:function(){return y$.toString()},
isUnwrappable:function(t){return t instanceof nt},
unwrap:function(t){return _.Dk(t).toString()}},r8[5]={filterString:function(t,E,p){return p},
isUnwrappable:function(t){return typeof t==="string"},
unwrap:function(t){return t.toString()}},r8[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(t){return t instanceof _.qE},
unwrap:function(t){return fB(t)}},r8[8]={filterString:function(t,E,p){p=String(p).toLowerCase();
return deY(t,E,p)?p:"zClosurez"},
isUnwrappable:null,unwrap:null},r8[10]={filterString:null,isUnwrappable:null,unwrap:null},r8);ZD[Rm["default"]]=KTK;var vdt=[];(function(){var t=uK;uK=function(E){t==null||t(E);cu(function(){for(var p=0;p<E.length;p++)yO8(E[p])})}})();var ajo=function(){var t=_.sU.apply(this,arguments)||this;t.hasUnmounted=!1;return t};
_.u(ajo,_.sU);_.Y=ajo.prototype;_.Y.beforeRegister=function(){var t=this.doIdomRender;this.templatingFn?_.bV(Error("ah")):(this.templatingFn=t,this.switchTemplateAtRegistration=!0,od8(this))};
_.Y.attached=function(){};
_.Y.detached=function(){yO8(this.hostElement)};
_.Y.renderIdom=function(){throw Error("dh");};
_.Y.doIdomRender=function(){var t=this;kd$(this.hostElement,function(){t.renderIdom()})};
_.N([_.L0()],ajo);var eis=[j4.prototype,ajo.prototype];var FTs,zis=function(){return FTs!==void 0?FTs:FTs=document.createElement("template")};
document.head.appendChild(zis().content);var lj4;var GPo,ndo=function(){return GPo!==void 0?GPo:GPo=document.createElement("template")};
document.head.appendChild(ndo().content);var NDr;var DBf=document.head,sTX=DBf.appendChild,LTX;if(NDr===void 0){var PwG=document.createElement("template");_.J(PwG,"\x3c!--css-build:shady--\x3e");PwG.content.insertBefore(ndo().content.cloneNode(!0),PwG.content.firstChild);NDr=PwG}LTX=NDr;sTX.call(DBf,LTX.content);var TDT,odp=function(){return TDT!==void 0?TDT:TDT=document.createElement("template")};
document.head.appendChild(odp().content);var WT4;var $B3=document.head,KTf=$B3.appendChild,vdX;if(WT4===void 0){var yOp=document.createElement("template");_.J(yOp,"\x3c!--css-build:shady--\x3e");yOp.content.insertBefore(odp().content.cloneNode(!0),yOp.content.firstChild);WT4=yOp}vdX=WT4;KTf.call($B3,vdX.content);var SdZ=document.head,cOr=SdZ.appendChild,tym;if(lj4===void 0){var EVX=document.createElement("template");_.J(EVX,"\x3c!--css-build:shady--\x3e");EVX.content.insertBefore(zis().content.cloneNode(!0),EVX.content.firstChild);lj4=EVX}tym=lj4;cOr.call(SdZ,tym.content);var pIm,Ubr=function(){return pIm!==void 0?pIm:pIm=document.createElement("template")};
document.head.appendChild(Ubr().content);var xb0;_.Ld=new _.gM("DARK_THEME_TOKEN");var Ap0=new _.Ir("accessibilityProperties");var Ye3=new _.Ir("layoutProperties");var MyG=new _.Ir("imageType");var mbo={};if("ytAttributedStringLinkHoverColor"in mbo)throw Error("gh`ytAttributedStringLinkHoverColor");(function(t,E){mbo[t]="value"in E&&"unit"in E?pIL(t,E):function(p){try{return E(p)}catch(U){throw Error("eh`"+t+"`"+U.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var bKp=function(t){var E=this;this.holdTime=t===void 0?500:t;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(p){var U=new CustomEvent("LONG_PRESS"),x;(x=p.changedTouches[0].target)==null||x.dispatchEvent(U)};
this.ontouchstart=function(p){E.longPressTimeout=_.D2(_.ir,function(){E.onlongpress(p);E.longPressOccurred=!0},E.holdTime)};
this.ontouchmove=function(){_.ir.cancelJob(E.longPressTimeout);E.longPressTimeout=NaN;E.longPressOccurred=!1;E.moveOccurred=!0};
this.ontouchend=function(p){if(E.longPressTimeout&&!E.longPressOccurred&&!E.moveOccurred){var U;(U=p.changedTouches[0].target)==null||U.dispatchEvent(new Event("click"))}_.ir.cancelJob(E.longPressTimeout);E.longPressTimeout=NaN;E.longPressOccurred=!1;E.moveOccurred=!1}};var jgO=function(t,E){bKp.call(this,E);var p=this;this.callback=t;this.onlongpress=function(U){var x;(x=p.callback)==null||x.call(p,U)}};
_.u(jgO,bKp);var rpO=function(t,E){var p=Object.assign({},E);t=_.M(new Map([["ontouchstart",t.ontouchstart],["ontouchend",t.ontouchend],["ontouchmove",t.ontouchmove]]));for(var U=t.next(),x={};!U.done;x={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},U=t.next()){var A=_.M(U.value);U=A.next().value;A=A.next().value;x.eventName$jscomp$103=U;x.eventHandler$jscomp$2=A;E[x.eventName$jscomp$103]=function(m){return function(b){var f;(f=p[m.eventName$jscomp$103])==null||f.call(p,b);(0,m.eventHandler$jscomp$2)(b)}}(x)}};_.ei=new _.gM("COMMAND_HANDLER_TOKEN");var xb_=new _.Ir("parallelCommand");var MyY=new _.Ir("performOnceCommand");var YeD=new _.Ir("serialCommand");var mbj=void 0;var iKW=function(){this.data=[];this.consumer=null};
iKW.prototype.push=function(t){this.consumer?this.consumer(t):this.data.push(t)};var wX={};_.Py(wX,void 0,"sgPmTd");_.Py(null,void 0,"jypsq");_.Py(null,void 0,"mWiOof");var Vqj=new iKW;var RYi=[r9r,kc4,dEm,J9X,uQ4,jRp,IoX,gko];var qef=new _.Ir("bracketTextDecorator");var Hs=new _.Ir("highlightTextDecorator");_.q6=new _.gM("APP_DIRECTION_TOKEN");var XI8={calledOnce:!1,state:"visible"},OKO={calledOnce:!1,state:"hidden"};var HK3=new _.gM("ICON_WIZ_COMPONENT_TOKEN");_.lz=_.l(function(t){var E=t.icon;var p=t.active;var U=t.className;var x=t.style;var A=t.dataSelected;var m=t.dataDisabled;var b=t.role;var f=t.animateIcon;var B=t.themeOverride;var R=t.ariaHidden;var V=t.ariaExpanded;var Q=t.ariaLabel;var C=t.tabindex;var d=t.id;var I=t.size;var O=t.iconFilter;var a=t.gradientColor;var F=t.onKeydown;var L=t.title;return _.H(_.w,{cond:E,then:function(){var D=_.X3().resolve(HK3);return _.H(D,{icon:E,dataSelected:A,dataDisabled:m,animateIcon:f,themeOverride:B,ariaExpanded:V,
tabindex:C,id:d,active:p,size:I,role:b,className:U,ariaHidden:R,ariaLabel:Q,style:function(){return x!=null&&x()||I==null||!I()?x==null?void 0:x():"width: "+(I==null?void 0:I())+"px;height: "+((I==null?void 0:I())+"px;")},
title:L,iconFilter:O,gradientColor:a,onKeydown:F})}})},"p");
_.lz.idomCompat={callbacks:{onKeydown:!0}};var Db_=new _.Ir("borderImageProcessor");var Ppl=window.devicePixelRatio||1;var $b8=new Map([["yt_outline_bag_black_24","bag"]]);var k9=function(t){var E=this;this.margin=.1;this.whenInViewportWithMargin=t;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){E.requestScan()});
window.addEventListener("touchend",function(){E.requestScan()});
window.addEventListener("updateui",function(){E.requestScan()});
var p=new _.F5((0,_.Tg)(this.requestScan,this),100);window.addEventListener("scroll",function(){p.fire()},!0);
window.addEventListener("resize",(0,_.Tg)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){E.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.Tg)(this.requestScan,this))};
k9.prototype.observe=function(t){this.observationTargets.includes(t)||this.observationTargets.push(t)};
k9.prototype.unobserve=function(t){this.observationTargets=this.observationTargets.filter(function(E){return E!==t})};
k9.prototype.requestScan=function(){var t=this;this.scanRequested||(cu(function(){frs(t)}),this.scanRequested=!0)};
var frs=function(t){var E=(1+t.margin)*(document.documentElement.clientHeight||window.innerHeight);t.observationTargets=t.observationTargets.filter(function(p){var U=p.getBoundingClientRect();(U=E>U.top&&!!U.height)&&t.whenInViewportWithMargin(p);return!U&&p.parentNode});
t.scanRequested=!1};
k9.prototype.disconnect=function(){this.observationTargets=[]};var Bvs,RYr;Bvs=_.M(_.Py(cpO(),void 0,"O3X2wd"));_.wIT=Bvs.next().value;RYr=Bvs.next().value;window.addEventListener("resize",function(){RYr(cpO())});var VyW={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},Qgf=void 0,Cpo=window.innerWidth,jg4=window.innerHeight;window.addEventListener("resize",function(){Qgf=void 0});var rps;if("IntersectionObserver"in window)rps=pNO();else{if(Qgf===void 0){var kY0;kY0="matchMedia"in window?window.matchMedia(VyW.landscape+","+VyW.portrait).matches:void 0;Qgf=kY0!==void 0?kY0:Cpo>=930&&jg4>=550||Cpo>=550&&jg4>=930}rps=Qgf?{observe:function(t){cu(function(){var E;(E=t.onViewportEntered)==null||E.call(t)})},
unobserve:function(){}}:new k9(function(t){cu(function(){var E;
(E=t.onViewportEntered)==null||E.call(t)})})}var tHO=rps;var dbr=_.l(function(t){var E=!1,p=_.EB("img",function(U){_.iK(function(){E=!0;U.onload=null})});
_.M$(function(){var U,x=(U=t.data)==null?void 0:U.call(t),A,m=(A=t.getSrc)==null?void 0:A.call(t).cb,b;U=(b=t.config)==null?void 0:b.call(t);if(b=p.value)if(A=function(B,R){if(!E)return m?m(B,R):B},AMY(b,U),_.r("web_image_dont_reload_same_src")&&x1$(b,x,A))_.r("web_image_dont_reload_same_src_simulate_load")&&b.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var f;U1K(b,x||null,A,U,(f=t.lazy)==null?void 0:f.call(t))}},"zS0jKb");
return _.H("img",{el:p})},"r");
dbr.idomCompat=!0;_.Q9=_.l(function(t){var E=function(){var p,U=t.data(),x,A,m,b,f,B,R,V,Q,C,d,I,O,a,F,L,D,W,K,v,YL,bY,kL,R0,j$,lY,Tt,si,Q0;var ps={contentMode:(x=t.contentMode)==null?void 0:x.call(t),loadedClass:(A=t.loadedClass)==null?void 0:A.call(t),isPreloaded:(m=t.isPreloaded)==null?void 0:m.call(t),notifyOnLoaded:(b=t.notifyOnLoaded)==null?void 0:b.call(t),notifyOnUnloaded:(f=t.notifyOnUnloaded)==null?void 0:f.call(t),preferredThumbnail:(B=t.preferredThumbnail)==null?void 0:B.call(t),preserveHeight:(R=t.preserveHeight)==
null?void 0:R.call(t),preserveWidth:(V=t.preserveWidth)==null?void 0:V.call(t),objectPosition:(Q=t.objectPosition)==null?void 0:Q.call(t),targetWidth:(C=t.targetWidth)==null?void 0:C.call(t),targetHeight:(d=t.targetHeight)==null?void 0:d.call(t),shouldShowPlaceholder:(I=t.shouldShowPlaceholder)==null?void 0:I.call(t),useWidth:(O=t.useWidth)==null?void 0:O.call(t),isToggled:(a=t.isToggled)==null?void 0:a.call(t),alt:(F=t.alt)==null?void 0:F.call(t),className:(L=t.className)==null?void 0:L.call(t),
onerror:t.onerror,onload:t.onload,style$:((D=t.style$)==null?void 0:D.call(t))||((W=t.style)==null?void 0:W.call(t)),color:(K=t.color)==null?void 0:K.call(t),width:(v=t.width)==null?void 0:v.call(t),height:(YL=t.height)==null?void 0:YL.call(t),"aria-hidden$":(si=(bY=t["aria-hidden$"])==null?void 0:bY.call(t))!=null?si:(kL=t.ariaHidden)==null?void 0:kL.call(t),draggable:(R0=t.draggable)==null?void 0:R0.call(t),"data-disabled$":(Q0=(j$=t["data-disabled$"])==null?void 0:j$.call(t))!=null?Q0:(lY=t.dataDisabled)==
null?void 0:lY.call(t),size:(Tt=t.size)==null?void 0:Tt.call(t)};return MH8(U,ps,(p=t.hideOn404)==null?void 0:p.call(t))};
return _.H(_.SC,null,_.H(_.Kw,{when:function(){var p;return((p=E())==null?void 0:p.type)==="image"}},function(){return _.H(dbr,{data:function(){return E().image},
getSrc:{cb:function(p,U){var x=E().image.sources,A=E().config.isPreloaded,m=E().config.useWidth,b=E().config.targetWidth,f=E().config.targetHeight,B=E().config.preferredThumbnail;return _.TvY(U,x,A,m,b,f,B)||""}},
config:function(){var p=E().config,U;for(U in p)p[U]===void 0&&delete p[U];return p},
lazy:t.renderLazy})}),_.H(_.Kw,{when:function(){var p;
return((p=E())==null?void 0:p.type)==="icon"}},function(){return _.H(_.lz,{icon:function(){return E().iconName},
role:function(){return E().config.role},
className:function(){return E().config.className},
style:function(){return E().config.style$+";width: "+(E().config.width+"px;height: ")+(E().config.height+"px;color: ")+(E().config.color+";")},
ariaLabel:function(){return E().config["aria-label$"]},
ariaHidden:function(){return E().config["aria-hidden$"]},
dataDisabled:function(){return E().config["data-disabled$"]},
active:function(){return E().config.isToggled},
size:function(){return E().config.size}})}))},"s");
_.Q9.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var uwo=_.l(function(t){var E=function(x){var A,m,b=_.V9(function(C){A=x();m=q$(function(){for(var d=_.M(V()),I=d.next();!I.done;I=d.next()){I=qxO(I.value);I=typeof I==="string"?document.createTextNode(I):I;if(!(I instanceof Node)){d=new _.cC("Part is not a node",I,typeof I);_.bV(d);break}C.appendChild(I)}})}),f=_.Ql(t.config),B=function(){var C,d=x();
return!((C=f())==null||!C.ariaLabel)||!(d.commandRuns&&d.commandRuns.length!==0||d.paragraphStyleRuns&&d.paragraphStyleRuns.length!==0)},R=bcJ(f,{isEqual:fg8}),V=function(){var C=x(),d=R(),I=[],O=C.content.length,a,F=(a=_.X3().resolve(_.OB(_.Ld)))==null?void 0:a();
if(C.paragraphStyleRuns)for(var L=_.M(C.paragraphStyleRuns),D=L.next();!D.done;D=L.next()){var W=I.push,K=W.apply;var v=void 0,YL=D.value;if((v=YL.listGroup)!=null&&v.listItems){var bY=[];b:switch(YL.listGroup.listType){case "LIST_TYPE_BULLET":var kL="ul";break b;default:kL="span"}bY.push(iz({run:YL,textLength:O,tag:kL,config:{className:"yt-core-attributed-string__list-group"},startIndex:YL.startIndex,length:YL.length}));for(var R0=_.M(YL.listGroup.listItems),j$=R0.next();!j$.done;j$=R0.next()){var lY=
j$.value;b:switch(YL.listGroup.listType){case "LIST_TYPE_BULLET":var Tt="li";break b;default:Tt="span"}bY.push(iz({run:YL,textLength:O,tag:Tt,startIndex:lY.startIndex,length:lY.length}))}var si=bY}else si=[];K.call(W,I,_.KB(si))}if(C.styleRuns&&(d==null||!d.noStyleRuns))for(var Q0=_.M(C.styleRuns),ps=Q0.next();!ps.done;ps=Q0.next()){var $L=ps.value,Cs=$L,km=F,ZT=d,l8=uwj({extension:_.k(Cs.styleRunExtensions,Dkp),isDarkTheme:km===void 0?!1:km,runColor:Cs.fontColor}),Rt=void 0,wE=Cs,Gt=[];l8&&Gt.push("yt-core-attributed-string--link-inherit-color");
wE.italic&&Gt.push("yt-core-attributed-string--italicized");wE.underline&&wE.strikethrough?Gt.push("yt-core-attributed-string--underline-strikethrough",Irt(wE.underline)):wE.underline?Gt.push("yt-core-attributed-string--underlined",Irt(wE.underline)):wE.strikethrough&&Gt.push("yt-core-attributed-string--strikethrough",Irt(wE.strikethrough));if(wE.baselineOffset){a:switch(wE.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":Rt="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":Rt=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:Rt="yt-core-attributed-string--baseline-offset-unknown"}Gt.push(Rt)}var V0=Gt.join(" ");var SW=Cs,h3=l8,zX={};if(SW.weight||SW.weightLabel)zX.fontWeight=Jp$(SW,ZT==null?void 0:ZT.isHeadline).toString();h3&&(zX.color=h3);I.push(iz({run:$L,textLength:O,tag:"span",config:{className:V0,style:zX},startIndex:$L.startIndex,length:$L.length}))}if(C.decorationRuns)for(var zc=_.M(C.decorationRuns),EC=zc.next();!EC.done;EC=zc.next()){var VJ=
EC.value,$m={};if(VJ.textDecorator){var Kl=VJ.textDecorator,iG=F===void 0?!1:F,QJ=[],Rs=_.k(Kl,Hs),vp=_.k(Kl,qef);if(Rs){var DT=QJ,qL=DT.concat,TC=[],Wp=uwj({extension:_.k(Rs.highlightTextDecoratorExtensions,Np0),isDarkTheme:iG,runColor:Rs.backgroundColor});Wp&&TC.push("background-color: "+Wp+";");Rs.backgroundCornerRadius!==void 0&&TC.push("border-radius: "+Rs.backgroundCornerRadius+"px;");Rs.leftPadding!==void 0&&TC.push("padding-left: "+Rs.leftPadding+"px;");Rs.rightPadding!==void 0&&TC.push("padding-right: "+
Rs.rightPadding+"px;");Rs.topPadding!==void 0&&TC.push("padding-top: "+Rs.topPadding+"px;");Rs.bottomPadding!==void 0&&TC.push("padding-bottom: "+Rs.bottomPadding+"px;");QJ=qL.call(DT,TC)}else if(vp){var jg=QJ,ES=jg.concat,m6=iG?"#2ba640":"#107516",Ia=vp.color?dbJ(vp.color):m6;QJ=ES.call(jg,["padding: 2px;","border-top: solid "+Ia+" 2px;","border-bottom: solid "+Ia+" 2px;","background: linear-gradient(135deg, "+Ia+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+Ia+" 3px, rgba(0, 0, 0, 0) 3px);"])}var mi=
QJ.join(" ");$m.style$=mi;var t6=VJ.textDecorator,EJ=[],h9=_.k(t6,qef);_.k(t6,Hs)?EJ.push("yt-core-attributed-string--highlight-text-decorator"):h9&&EJ.push("yt-core-attributed-string--bracket-text-decorator");var Xa=EJ.join(" ");$m.className=Xa;$m.dir="auto"}var gE=_.k(VJ.textDecorator,Hs),nO=_.k(VJ.textDecorator,qef),KO=_.k(VJ.textDecorator,Hs),dZ=_.k(VJ.textDecorator,qef);I.push(iz({run:VJ,textLength:O,tag:"span",config:$m,startIndex:(gE==null?void 0:gE.startIndex)||(nO==null?void 0:nO.startIndex)||
0,length:(KO==null?void 0:KO.length)||(dZ==null?void 0:dZ.length)||0}))}if(C.commandRuns&&(d==null||!d.noEndpoints))for(var Jd=_.M(C.commandRuns),XU=Jd.next();!XU.done;XU=Jd.next()){var X7=XU.value,gZ=kY_(X7,d);I.push(iz({run:X7,textLength:O,tag:"a",config:gZ,startIndex:X7.startIndex,length:X7.length}))}if(C.attachmentRuns)for(var J3=_.M(C.attachmentRuns),T5=J3.next();!T5.done;T5=J3.next()){var iF=T5.value,jW=void 0,zJ=void 0,Rv={className:"yt-core-attributed-string--inline-block-mod"};if((zJ=iF.element)==
null?0:zJ.properties){var o$=(jW=iF.element)==null?void 0:jW.properties,Vy=[],pM=_.k(o$,Ye3);if(pM==null?0:pM.margin){var w1=pM.margin;w1.left&&Vy.push("margin-left: "+Un(w1.left)+";");w1.right&&Vy.push("margin-right: "+Un(w1.right)+";");w1.top&&Vy.push("margin-top: "+Un(w1.top)+";");w1.bottom&&Vy.push("margin-bottom: "+Un(w1.bottom)+";")}var ZP=Vy.length!==0?Vy.join(" "):void 0;Rv.style$=ZP}var rn=Rv,$A=void 0,ck={alt:"",preserveHeight:!0,preserveWidth:!0},Wf=["yt-core-attributed-string__image-element"];
if(iF.alignment){a:switch(iF.alignment){case "ALIGNMENT_BASELINE":var k8="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":k8="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:k8="yt-core-attributed-string__image-element--image-alignment-bottom"}Wf.push(k8)}if(($A=iF.element)==null?0:$A.properties){var J9=[],dn=_.k(iF.element.properties,Ye3);(dn==null?0:dn.height)&&J9.push("height: "+Un(dn.height)+
";");(dn==null?0:dn.width)&&J9.push("width: "+Un(dn.width)+";");var Td=J9.length!==0?J9.join(" "):void 0;ck.style$=Td;var oF=void 0;var Ki=((oF=_.k(iF.element.properties,Ap0))==null?void 0:oF.label)||"";ck.alt=Ki}ck.className=Wf.join(" ");var LG=ck,$M=void 0;var Ku=void 0,cX=void 0;var vf=((cX=iF.element)==null?0:cX.type)?(Ku=_.k(iF.element.type,MyG))==null?void 0:Ku.image:void 0;I.push(iz({run:iF,textLength:O,tag:"img",image:vf,imageConfig:LG,imageWrapperConfig:rn,startIndex:iF.startIndex,length:($M=
iF.length)!=null?$M:0}))}if(d==null?0:d.headerRuns)for(var vg=_.M(d.headerRuns),Er=vg.next();!Er.done;Er=vg.next()){var i8=Er.value;if(i8.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(i8.headerMapping)){a:{switch(i8.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":var OC="yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":OC=
"yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":OC="yt-core-attributed-string--heading-3";break a}OC=void 0}I.push(iz({run:i8,textLength:O,tag:"span",config:OC?{className:OC}:void 0,startIndex:i8.startIndex,length:i8.length}))}}var M2=R();if(M2==null?0:M2.userInput)for(var XW=_.M(I),pg=XW.next();!pg.done;pg=XW.next()){var UJ=pg.value;if(UJ.tag!=="a"&&UJ.tag!=="li"){var DB=void 0;(DB=UJ).config||(DB.config={});UJ.config.dir=UJ.tag==="ul"?_.X3().resolve(_.q6):
"auto"}}if(x().content){var i3=x().content;zYD(I);for(var QH={data:null,start:0,end:i3.length,parts:[]},bW8=_.M(I),C6=bW8.next();!C6.done;C6=bW8.next()){var jb=C6.value;eYK(QH,jb.startIndex,jb.endIndex,jb)}FU_(i3,QH);var iWJ=QH.parts}else iWJ=[];return iWJ},Q=!0;
_.M$(function(){x();R();if(Q&&(Q=!1,icE(x(),A)))return;var C=V();Promise.resolve().then(function(){var d=b.value;if(d){d.innerText="";var I;(I=m)==null||I();m=_.UB(d,function(){return _.H(HcO,{parts:C})},"t")}})},"Dfzccf");
return _.H("span",{el:b,class:function(){var C;if(C=x()){C=x();var d=f(),I=[];I.push("yt-core-attributed-string");(d==null?0:d.className)&&I.push(d==null?void 0:d.className);(d==null?0:d.ellipsisTruncate)?I.push("yt-core-attributed-string--ellipsis-truncate"):(d==null?0:d.noWrap)?I.push("yt-core-attributed-string--white-space-no-wrap"):(d==null?0:d.noPreWrap)||I.push("yt-core-attributed-string--white-space-pre-wrap");(d==null?0:d.linkInheritColor)&&I.push("yt-core-attributed-string--link-inherit-color");
C.alignment&&I.push(gVO(C.alignment));C.lineBreakMode&&I.push("yt-core-attributed-string--word-wrapping");C=I.join(" ")}return C},
dir:function(){var C;return((C=f())==null?0:C.userInput)?"auto":void 0},
"aria-label":function(){var C;return B()?(C=f())==null?void 0:C.ariaLabel:void 0},
role:function(){return B()?"text":void 0}})},p=bcJ(function(){var x,A=(x=t.text)==null?void 0:x.call(t);
if(A)return x=_.Bs(A)?A:_.En(A),(x==null?0:x.content)?x:void 0},{isEqual:icE}),U;
return((U=t.config)==null?0:U.contentAsserted)?E(p):_.H(_.w,{cond:p,then:E})},"v");
uwo.idomCompat=!0;_.d8=_.l(function(t){var E=_.Ql(t.text),p=BCl(t);t.contentAsserted!==void 0&&(p.contentAsserted=!0);return _.H(uwo,{text:E,config:p})},"w");
_.d8.idomCompat=!0;var wNL=function(t,E,p){E=E===void 0?"unknown":E;p=p===void 0?{}:p;_.cC.call(this,t+" ("+E+")",Object.assign({},{name:"YtWcwError",tagName:E},p));Object.setPrototypeOf(this,this.constructor.prototype)};
_.u(wNL,_.cC);_.r4=new WeakMap;_.je=!1;var jVl,rMl,C5E;_.uu=Symbol("ih");_.Cy=Symbol("jh");jVl=Symbol("kh");rMl=new Set(Object.getOwnPropertyNames(Element.prototype));C5E=Symbol("lh");var JpW=_.l(function(t){return _.H("yt-attributed-string",{"aria-label":t.ariaLabel,hidden:t.hidden,id:t.id,class:t.className,"force-default-style":t.forceDefaultStyle},_.H(_.d8,{text:t.data,ariaLabel:t.ariaLabel,ellipsisTruncate:t.ellipsisTruncate,isOverlay:t.isOverlay,linkInheritColor:t.linkInheritColor,noPreWrap:t.noPreWrap,noWrap:t.noWrap,userInput:t.userInput,noEndpoints:t.noEndpoints,headerRuns:t.headerRuns,isHeadline:t.isHeadline}))},"x");
_.r("web_wiz_attributed_string")&&_.k2(JpW,"yt-attributed-string",{props:{ariaHidden:_.uu,ariaLabel:_.uu,className:_.uu,ellipsisTruncate:_.uu,isOverlay:_.uu,linkInheritColor:_.uu,noEndpoints:_.uu,noStyleRuns:_.uu,noLinkColor:_.uu,noPreWrap:_.uu,noWrap:_.uu,skipOnClick:_.uu,userInput:_.uu,headerRuns:_.uu,isHeadline:_.uu,id:_.uu,data:_.uu,hidden:_.uu,forceDefaultStyle:_.uu,text:_.Cy,disableUpgrade:_.Cy,disable:_.Cy,slot:_.Cy}});var JS=function(){return _.z.apply(this,arguments)||this};
_.u(JS,_.z);JS.prototype.renderIdom=function(){if(this.data&&!this.disable){this.config={ariaLabel:this.hostElement.ariaLabel,ellipsisTruncate:this.ellipsisTruncate,isOverlay:this.isOverlay,linkInheritColor:this.linkInheritColor,noPreWrap:this.noPreWrap,noWrap:this.noWrap,userInput:this.userInput,noEndpoints:this.noEndpoints,headerRuns:this.headerRuns};var t=this.data,E=this.config;t&&(t=_.Bs(t)?t:_.En(t),t!=null&&t.content&&(E=E||{},E.contentAsserted=!0,Sel(uwo)({text:t,config:E})))}};
_.N([_.g(eis),_.P("design:type",Object)],JS.prototype,"ytIdomTemplatingBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],JS.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],JS.prototype,"ariaLabel",void 0);_.N([_.e(),_.P("design:type",Boolean)],JS.prototype,"disable",void 0);_.N([_.e(),_.P("design:type",Boolean)],JS.prototype,"ellipsisTruncate",void 0);_.N([_.e(),_.P("design:type",Boolean)],JS.prototype,"isOverlay",void 0);
_.N([_.e(),_.P("design:type",Boolean)],JS.prototype,"linkInheritColor",void 0);_.N([_.e(),_.P("design:type",Boolean)],JS.prototype,"noPreWrap",void 0);_.N([_.e(),_.P("design:type",Boolean)],JS.prototype,"noWrap",void 0);_.N([_.e(),_.P("design:type",Boolean)],JS.prototype,"userInput",void 0);_.N([_.e(),_.P("design:type",Boolean)],JS.prototype,"noEndpoints",void 0);_.N([_.e(),_.P("design:type",Array)],JS.prototype,"headerRuns",void 0);
_.N([_.p4({is:"yt-attributed-string",disableElementRegistration:!0})],JS);
_.r("web_wiz_attributed_string")||_.G(JS,"yt-attributed-string",function(){if(xb0===void 0){var t=document.createElement("template");_.J(t,"\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");t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);
t.content.insertBefore(Ubr().content.cloneNode(!0),t.content.firstChild);xb0=t}t=xb0;return t},{mode:2});var IrX,gV4,ZcE;IrX=function(){this.firstThumbnailLoaded=!1};
_.ZKp=function(){gV4||(gV4=new IrX);return gV4};
ZcE=function(t){var E=_.ZKp();E.firstThumbnailLoaded||(E.firstThumbnailLoaded=!0,_.SR("ftl",t))};
IrX.prototype.reset=function(){this.firstThumbnailLoaded=!1};var d1L=0,gr0=new WeakMap,JML=0,JJ=new Set;var OKs,XIp=function(){return OKs!==void 0?OKs:OKs=document.createElement("template")};
document.head.appendChild(XIp().content);var hYp;var agL,Fxl,IO;_.Z4=_.Ui.caches;IO=function(){};
IO.prototype.open=function(t){return _.Z4.open(arG(t))};
IO.prototype.has=function(t){return _.Z4.has(arG(t))};
IO.prototype.delete=function(t){return _.Z4.delete(arG(t))};
IO.prototype.match=function(t,E){var p=this,U,x,A,m,b,f;return _.q(function(B){switch(B.nextAddress){case 1:return B.yield(p.keys(),2);case 2:U=B.yieldResult,x=_.M(U),A=x.next();case 3:if(A.done){B.jumpTo(5);break}m=A.value;return B.yield(p.open(m),6);case 6:return b=B.yieldResult,B.yield(b.match(t,E),7);case 7:if(f=B.yieldResult)return B.return(f);A=x.next();B.jumpTo(3);break;case 5:return B.return()}})};
var zxJ=function(){};
_.u(zxJ,IO);var arG=function(t){if(t.includes(":"))throw Error("oh`"+t);return t+":"+_.yE("CacheStorage get")};
zxJ.prototype.keys=function(){var t,E,p,U,x,A,m,b,f;return _.q(function(B){if(B.nextAddress==1)return t=[],E=_.yE("CacheStorage keys"),B.yield(_.Z4.keys(),2);p=B.yieldResult;U=_.M(p);for(x=U.next();!x.done;x=U.next())A=x.value,m=_.hxi(A),b=m.originalName,f=m.datasyncId,f===E&&t.push(b);return B.return(t)})};var g8=function(){var t=_.z.apply(this,arguments)||this;t.objectURL=null;t.loadTime=Infinity;return t};
_.u(g8,_.z);_.Y=g8.prototype;
_.Y.renderIdom=function(){XND(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("rh");this.setConfig();if(this.config){var t=this.config,E=this.shouldRenderLazy;Sel(_.Q9)({contentMode:t.contentMode,loadedClass:t.loadedClass,isPreloaded:t.isPreloaded,notifyOnLoaded:t.notifyOnLoaded,notifyOnUnloaded:t.notifyOnUnloaded,preferredThumbnail:t.preferredThumbnail,preserveHeight:t.preserveHeight,preserveWidth:t.preserveWidth,objectPosition:t.objectPosition,targetWidth:t.targetWidth,
targetHeight:t.targetHeight,shouldShowPlaceholder:t.shouldShowPlaceholder,useWidth:t.useWidth,isToggled:t.isToggled,alt:t.alt,className:t.className,onerror:t.onerror,onload:t.onload,style$:t.style$,color:t.color,width:t.width,height:t.height,"aria-hidden$":t["aria-hidden$"],draggable:t.draggable,"data-disabled$":t["data-disabled$"],data:this.data,callback:void 0,renderLazy:E===void 0?!0:E,hideOn404:!1})}}};
_.Y.objectFitToContentMode=function(t){switch(t){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.Y.logThumbnailFailureVe=function(){var t=_.h8(197497);_.Tw(_.Pu(),t);var E=_.yL();E&&t&&E&&_.bU(E,[t])};
_.Y.loadImageFromCacheIfExists=function(t){var E=this,p=t.target;(p==null?0:p.src)&&GzO(p.src).then(function(U){E.objectURL=_.cw(U).toString();E.setSrc(p,E.objectURL)}).catch(function(){})};
_.Y.onError=function(t){var E=this;if(_.r("web_use_cache_for_image_fallback")){var p=t.target;p&&GzO(p.src).then(function(U){E.objectURL=_.cw(U).toString();E.setSrc(p,E.objectURL)}).catch(function(){_.r("kevlar_woffle_log_thumbnail_failure_ve")&&E.logThumbnailFailureVe();
_.r("kevlar_woffle_fallback_image")&&E.setSrc(p,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.Y.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.Y.setConfig=function(){var t=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(E){t.loadImageFromCacheIfExists(E);t.revokeObjectURL();Oct(t.hostElement)},
onerror:function(E){t.onError(E)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.r("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.Y.setSrc=function(t,E){E&&(t.src=E)};
_.N([_.g(eis),_.P("design:type",Object)],g8.prototype,"ytIdomTemplatingBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],g8.prototype,"data",void 0);_.N([_.e(),_.P("design:type",String)],g8.prototype,"alt",void 0);_.N([_.e(),_.P("design:type",Boolean)],g8.prototype,"ftlEligible",void 0);_.N([_.e(),_.P("design:type",Number)],g8.prototype,"height",void 0);_.N([_.e(),_.P("design:type",Boolean)],g8.prototype,"notifyOnLoaded",void 0);
_.N([_.e(),_.P("design:type",Boolean)],g8.prototype,"notifyOnUnloaded",void 0);_.N([_.e(),_.P("design:type",String)],g8.prototype,"objectFit",void 0);_.N([_.e(),_.P("design:type",String)],g8.prototype,"objectPosition",void 0);_.N([_.e(),_.P("design:type",String)],g8.prototype,"preferredThumbnail",void 0);_.N([_.e(),_.P("design:type",Boolean)],g8.prototype,"preserveHeight",void 0);_.N([_.e(),_.P("design:type",Boolean)],g8.prototype,"preserveWidth",void 0);
_.N([_.e({value:!0}),_.P("design:type",Boolean)],g8.prototype,"useWidth",void 0);_.N([_.e({value:function(){return!_.HC("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.P("design:type",Boolean)],g8.prototype,"shouldRenderLazy",void 0);_.N([_.e(),_.P("design:type",Number)],g8.prototype,"width",void 0);_.N([_.p4({is:"yt-image",disableElementRegistration:!0})],g8);
_.G(g8,"yt-image",function(){if(hYp===void 0){var t=document.createElement("template");_.J(t,"\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");t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);t.content.insertBefore(XIp().content.cloneNode(!0),t.content.firstChild);
hYp=t}t=hYp;return t},{mode:2});var Z5=function(){return _.z.apply(this,arguments)||this};
_.u(Z5,_.z);Z5.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var t=_.AJ(this.data.onVisibleCommand);t&&this.ytComponentBehavior.resolveCommand(t)}};
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Z5.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Z5.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.CS.YtVisibilityBehavior),_.P("design:type",Object)],Z5.prototype,"ytVisibilityBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Z5.prototype,"data",void 0);_.N([_.p4({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],Z5);
_.G(Z5,"yt-bumper-user-edu-content-view-model",function(){if(X4p===void 0){var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;Oas===void 0&&(Oas=document.createElement("template"));var U=Oas;p.call(E,U.content.cloneNode(!0),t.content.firstChild);X4p=t}t=X4p;return t},{mode:0});var eYf;var FU0,zY3=function(){if(FU0!==void 0)return FU0;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;eYf===void 0&&(eYf=document.createElement("template"));var U=eYf;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return FU0=t};var lrm;_.O0={};lrm=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"]);_.O0.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var t=this.getContext_();return t?t.getTaskManager():_.ir},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var t=_.kT(this.hostElement,"yt-get-context-provider",{});t.detail&&t.detail.contextProvider?this.cachedProviderNode_=t.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return lrm.has(this.hostElement.localName)},
getNetworkManager:function(){var t=this.getContext_();if(t)return t.getNetworkManager()}};var P5Y,GYT,NvT,nVZ;_.XA=function(t){var E=GYT.get(t);if(E&&(E=E.pop()))return nVZ++,E;NvT++;try{var p=document.createElement(t)}catch(U){throw new _.cC("ElementPool failed to create element",t,U.message);}return p};
P5Y=function(t){var E=t.is;if(E){var p=GYT.get(E);p||(p=[],GYT.set(E,p));var U=_.qO("ELEMENT_POOL_CONFIG")||{};p.length>=(U[E]!==void 0?U[E]:_.qO("ELEMENT_POOL_DEFAULT_CAP",0))||p.push(t)}else _.qW(new _.cC("Element pool should only handle custom elements:",t.nodeName))};
GYT=new Map;NvT=0;nVZ=0;var On=new WeakMap,LxK=new WeakMap;var sgr;_.hS=function(t,E,p){p=p===void 0?_.ty():p;this.JSC$14171_defaultPriority=t;this.signal=E;this.scheduler=p;this.nextJobDescriptor=0;this.JSC$14171_parkedJobs=[];this.scheduledJobs=new Map};
_.aO=function(t,E){if(E){var p=_.ut();t.signal&&!_.JL(p,t.signal)?(p.addListener(t.signal,function(){t.processSignal()}),t.JSC$14171_parkedJobs.push({job:E,
priority:void 0})):Db0(t,E)}};
sgr=function(t,E){if(E!==t.JSC$14171_defaultPriority){t.JSC$14171_defaultPriority=E;for(var p=_.M(t.scheduledJobs.values()),U=p.next();!U.done;U=p.next())U=U.value,t.scheduler.cancelJob(U.jobId),U.jobId=t.scheduler.addJob(U.jobWrapper,E)}};
_.hS.prototype.flushJobs=function(){sgr(this,10);this.processSignal()};
_.hS.prototype.cancel=function(){for(var t=_.M(this.scheduledJobs),E=t.next();!E.done;E=t.next()){var p=_.M(E.value);E=p.next().value;p=p.next().value;this.scheduler.cancelJob(p.jobId);this.scheduledJobs.delete(E)}this.JSC$14171_parkedJobs=[]};
_.hS.prototype.processSignal=function(){for(var t=_.M(this.JSC$14171_parkedJobs),E=t.next();!E.done;E=t.next())E=E.value,Db0(this,E.job,E.priority);this.JSC$14171_parkedJobs=[]};
var Db0=function(t,E,p){p=p||t.JSC$14171_defaultPriority;if(p===10)IC(E);else{var U=t.nextJobDescriptor++,x=function(){E();t.scheduledJobs.delete(U)},A=t.scheduler.addJob(x,p);
t.scheduledJobs.set(U,{jobWrapper:x,jobId:A,priority:p})}};var LUZ;_.e4={};LUZ={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.e4.YtRendererstamperBehavior=[_.O0.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 t in this.stampDom){var E=this.stampDom[t];E&&E.id&&this.addReactiveSchema({type:"observe",method:{methodName:NCO(E.id),args:[{type:"wildcard",path:t}]}})}else{(t=(this.constructor.generatedFrom||this).observers)||(t=[]);for(E in this.stampDom){var p=this.stampDom[E];p&&p.id&&t.push(NCO(p.id)+"("+E+".*)")}this.constructor.generatedFrom.observers=t}},
addStampDomObserverFns_:function(){for(var t in this.stampDom){var E=this.stampDom[t];E.id?(this[NCO(E.id)]=this.rendererStamperObserver_.bind(this,t,E.id),this.hasDataPath_[t]=!1):(E=new _.cC("Bad rendererstamper config",this.is+":"+t),_.bV(E))}},
rendererStamperObserver_:function(t,E,p){if(p.path==t){if(p.value===void 0&&!this.hasDataPath_[t])return;this.hasDataPath_[t]=p.value!==void 0}this.rendererStamperApplyChangeRecord_(t,E,p)},
rendererStamperApplyChangeRecord_:function(t,E,p){var U=this.renderJobsMap_[E],x=null;t==p.path?(p=p.value,_.LO(p)||(p=p===void 0||p===null?[]:[p]),t=this.stampDom[t],t.mapping&&(x=this.stampDomArray_.bind(this,p,E,t.mapping,t.reuseComponents,t.events,t.stamperStableList)),U&&U.cancel(),p=t.usePageScheduler?this.getTaskManager():void 0,U||t.initialRenderPriority==void 0)?t.renderPriority==void 0||U||(U=new _.hS(t.renderPriority,t.waitForSignal,p),this.renderJobsMap_[E]=U):(U=new _.hS(t.initialRenderPriority,
t.waitForSignal,p),this.renderJobsMap_[E]=U,x=function(A,m){A();sgr(m,10)}.bind(this,x,U)):x=t+".splices"==p.path?this.stampDomArraySplices_.bind(this,t,E,p.value):this.forwardRendererStamperChanges_.bind(this,t,E,p);
U?_.aO(U,x):x()},
forwardRendererStamperChanges_:function(t,E,p){var U=p.path.slice(t.length+1),x=this.getStampContainer_(E),A=U.indexOf("."),m=U.substring(0,A),b=!1,f=0,B=parseInt(m,0);if(m[0]=="#"){b=parseInt(m.substring(1),0);B=this.get(t);var R=this.get([t,m]);B[b]==R?f=b:f=B.indexOf(R);b=!0}else isNaN(B)||(f=B,b=!0);b&&(U=U.substring(m.length+1),A=U.indexOf("."));m=this.polymerDom(x).children[f];var V;if(x=(V=m==null?void 0:m.polymerController)!=null?V:m)U="data"+U.slice(A),typeof x.notifyPath!=="function"?_.qW(new _.cC("notifyPath missing",
this.is+": "+t+", "+E)):p.value?x.notifyPath(U,p.value):x.notifyPath(U)},
stampDomArraySplices_:function(t,E,p){if(p&&p.indexSplices){var U=this.getStampContainer_(E);if(U){for(var x=this.polymerDom(U),A=sV8(this.stampDom[t].reuseComponents),m=p.indexSplices.length,b=0;b<m;b++){for(var f=p.indexSplices[b],B=x.children[f.index],R=f.removed.length;R>0;R--)B&&B.parentElement&&(this.polymerDom(B.parentElement).removeChild(B),A&&P5Y(B),B=x.children[f.index]);R=this.stampDom[t].mapping;for(var V=f.index+f.addedCount,Q=document.createDocumentFragment(),C=A,d=f.index;d<V;d++){var I=
f.object[d],O=nr0(R,I);if(O){var a=R[O];I=I[O];O=this.getComponentName_(a,I);var F=B?On.has(B):!1;C&&B&&B.is==O&&F?(O=B,this.telemetry_.reuse++,B=B.nextElementSibling):C&&B&&F?(O=this.createComponent_(a,I,A),F=this.polymerDom(B).nextElementSibling,x.insertBefore(O,F),orE(this.is,x,B,A),B=F):(C=!1,O=this.createComponent_(a,I,A),Q.appendChild(O));this.deferRenderStamperBinding_(O,a,I)}else a=new _.cC("Unimplemented type",t,E,U.tagName,Object.keys(I)[0]),_.bV(a)}x.insertBefore(Q,B)}this.flushRenderStamperComponentBindings_();
this.stampDom[t].events&&_.kT(this.hostElement,"yt-rendererstamper-finished",{container:U})}else t=new _.cC("Container object not found",E,this.hostElement?this.hostElement.is:""),_.bV(t)}},
stampDomArray_:function(t,E,p,U,x,A){var m=this.getStampContainer_(E);if(m)if(E=this.polymerDom(m),U=sV8(U),t){var b=0,f=0,B;if(A=A===void 0?_.HC("STAMPER_STABLE_LIST",!1):A||!1)for(B=E.firstElementChild;B&&!On.has(B)&&t.length>f;){A=t[f];var R=nr0(p,A);if(R){if(this.getComponentName_(p[R],A[R])!=B.is){var V=this.createComponent_(p[R],A[R],U),Q=this.polymerDom(B).nextElementSibling;Q?E.insertBefore(V,Q):E.appendChild(V);orE(this.is,E,B,U);B=V}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(B,
p[R],A[R]);b++;f++;B=this.polymerDom(B).nextElementSibling}else f++}WxO(this.is,E,b,U);b=B;if(t.length>f){A=document.createDocumentFragment();for(R=t.length;f<R;f++)if(V=t[f],Q=nr0(p,V))B=this.createComponent_(p[Q],V[Q],U),this.deferRenderStamperBinding_(B,p[Q],V[Q]),A.appendChild(B);b&&this.polymerDom(b).parentNode&&B&&!On.has(B)?E.insertBefore(A,b):E.appendChild(A)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();x&&_.kT(this.hostElement,"yt-rendererstamper-finished",
{container:m})}else WxO(this.is,E,0,U);else t=new _.cC("Container object not found",E,this.hostElement?this.hostElement.is:""),_.bV(t)},
polymerDom:function(t){return this.minimizePipBreakages?t:_.sm(t)},
getStampContainer_:function(t){return this.$&&this.$[t]||_.ZN(this.hostElement).querySelector("#"+t)},
getComponentName_:function(t,E){return typeof t==="string"?t:t.matcher?t.matcher.call(this,E):t.component},
createComponent_:function(t,E,p){t=this.getComponentName_(t,E);try{var U=Wzt.has(t);if(p&&!U){var x=_.XA(t);try{_.eU(x)}catch(A){p="Failed to clear styles for "+t+".",A.message&&(p+=" Original error: "+A.message),_.qW(new _.cC(p))}}else x=document.createElement(t)}catch(A){return x="YtRendererStamperBehavior failed to create "+t+".",A.message&&(x+=" Original description: "+A.message),A.message="YtRendererStamperBehavior failed to create element",_.HX(A,x),LUZ.hasOwnProperty(t)?_.qW(A):_.bV(A),document.createElement("SPAN")}this.telemetry_.create++;
return x},
deferRenderStamperBinding_:function(t,E,p){this.deferredBindingTasks_.push({component:t,typeOrConfig:E,data:p})},
flushRenderStamperComponentBindings_:function(){for(var t=0,E=this.deferredBindingTasks_.length;t<E;t++){var p=this.deferredBindingTasks_[t];if(!p)break;var U=void 0,x=void 0,A=void 0,m=void 0,b=p.component,f=p.typeOrConfig;p=p.data;var B=(m=b.polymerController)!=null?m:b;m=b.loggingStatus;try{m&&(m.isRendererStamper=!0);if(typeof f!=="string"){for(A in f.attributes)f.attributes[A]===!0?b.setAttribute(A,""):f.attributes[A]===!1?b.removeAttribute(A):b.setAttribute(A,f.attributes[A]);for(x in f.params)B[x]=
f.params[x],b!==B&&W3(b.localName,x,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(U in f.properties){var R=f.properties[U];if(R){var V=D1O(R);B[U]=this.get(V);b!==B&&W3(b.localName,U,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(U==="on-tap"||U==="on-click"){var Q=this.get(V);b.addEventListener("click",Q);LxK.set(b,{property:U,listener:{type:"element",eventName:"click",handler:Q}})}}else{var C=new _.cC("Undefined property binding",U);_.bV(C)}}}if(f.classListBinding){var d=D1O(f.classListBinding),
I=d?this[d]:null;if(I)for(U=0;U<I.length;U++)_.XM(b,I[U],!0)}B.data=p}finally{m&&(m.isRendererStamper=!1)}if(U=On.get(b))b.hidden=!1,On.delete(b),_.ir.cancelJob(U)}this.deferredBindingTasks_.length=0}}];_.k2(_.l(function(t){function E(){p().seconds&&A(Mp0({seconds:Number(p().seconds)-Date.now()/1E3}))}
var p=t.targetTimestamp;t=t.className;var U=_.M(_.Py("",void 0,"U1Q8Ae")),x=U.next().value,A=U.next().value;_.xa(function(){E();var m=setInterval(function(){E()},1E3);
_.iK(function(){clearInterval(m)})});
return _.H("yt-countdown",{class:_.X5("ytCountDownHost",t)},_.H("div",null,x))},"z"),"yt-countdown",{props:{targetTimestamp:_.uu,
className:_.Cy}});_.FA=new _.gM("KEY_MANAGER_TOKEN");var EHO={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"};_.zn=_.l(function(t){var E=_.EB("a",t.ref),p=t.aTagConfig?t.aTagConfig:_.KN(function(){var U,x,A,m,b;var f=(b=_.AJ((A=t.command)==null?void 0:A.call(t)))!=null?b:(m=t.command)==null?void 0:m.call(t);return _.MA({innertubeCommand:f,skipOnClick:(U=t.skipOnClick)==null?void 0:U.call(t),defaultTarget:(x=t.target)==null?void 0:x.call(t)})||{}},void 0,"TAvz0");
_.M$(function(){_.r("mweb_get_endpoint_from_atag_command")||(E.value._data=p()._data,E.value.params=p().params)},"dcjvAe");
return _.H("a",{el:E,href:function(){return p().href$},
rel:function(){return p().rel$},
class:function(){var U,x;return(x=p().className)!=null?x:(U=t.className)==null?void 0:U.call(t)},
style:function(){var U;if((U=t.style)==null?0:U.call(t))return t.style();var x;return((x=t.disabled)==null?0:x.call(t))?"pointer-events:none":""},
"aria-haspopup":function(){return!!p()["aria-haspopup$"]},
"force-new-state":ee(function(){return p()["force-new-state$"]}),
title:ee(function(){var U,x;return(x=p().title$)!=null?x:(U=t.title)==null?void 0:U.call(t)}),
role:ee(function(){var U;return((U=t.role)==null?void 0:U.call(t))||p().role$}),
target:ee(function(){return p().target$}),
dir:ee(function(){var U;return((U=t.dir)==null?void 0:U.call(t))||p().dir}),
tabindex:function(){var U;return p().tabindex$?Number(p().tabindex$):(U=t.tabIndex)==null?void 0:U.call(t)},
"aria-hidden":function(){var U,x;return(x=p()["aria-hidden$"])!=null?x:(U=t.ariaHidden)==null?void 0:U.call(t)},
"aria-label":function(){var U,x;return(x=p()["aria-label$"])!=null?x:(U=t.ariaLabel)==null?void 0:U.call(t)},
"aria-current":t.ariaCurrent,"aria-disabled":t.disabled,"aria-labelledby":t.ariaLabelledby,"aria-describedby":t.ariaDescribedby,"aria-selected":t.ariaSelected,"tab-identifier":t.tabIdentifier,"on:pointerdown":_.aC(function(U){var x,A;return void((A=(x=p()).onpointerdown)==null?void 0:A.call(x,U))}),
"on:click":_.aC(function(U){var x,A;(A=(x=p()).onclick)==null||A.call(x,U);var m;(m=t.onClick)==null||m.call(t,U)}),
"on:focusin":_.aC(function(U){var x;(x=t.onFocusin)==null||x.call(t,U)}),
"on:focusout":_.aC(function(U){var x;(x=t.onFocusout)==null||x.call(t,U)})},t.children)},"B");var bxJ={duration:1E3,easing:"ease",fill:"forwards"};m8O.componentType=SK;var HxE={duration:1E3,easing:"ease",fill:"forwards"},oVm=_.l(function(t){var E=_.EB("animated-rolling-character"),p=void 0,U=function(){var b,f;return BD((b=t.character)==null?void 0:b.call(t))||BD((f=t.previousCharacter)==null?void 0:f.call(t))},x=_.M(_.Py(0,void 0,"CYT8Ob")),A=x.next().value,m=x.next().value;
_.xa(function(){if(window.ResizeObserver&&_.r("web_fix_rolling_numbers_zoom_safari")){var b=new _.F5(function(){var B,R,V=Math.round(((R=(B=E.value.querySelector("div"))==null?void 0:B.getBoundingClientRect().height)!=null?R:0)*100)/100;V&&m(V)},500),f=new ResizeObserver(function(){b.fire()});
f.observe(E.value);_.iK(function(){f.disconnect();b.dispose()})}});
_.M$(function(){var b=_.r("web_fix_rolling_numbers_zoom_safari")?A:t.marginMultiplier;if(b()){var f;(f=p)==null||f.cancel();if(U()){var B;f=((B=t.previousCharacter)==null?0:B.call(t))?Number(t.previousCharacter())+10:t.rollUp()?0:30;var R;if((R=t.shouldAnimate)==null||!R.call(t)){var V,Q;f-=q6Y((V=t.character)==null?void 0:V.call(t),(Q=t.previousCharacter)==null?void 0:Q.call(t),t.rollUp(),f)}}else{f=t.rollUp()?0:2;var C;(C=t.shouldAnimate)!=null&&C.call(t)||(B=f,R=t.rollUp()?-1:1,f=B-R)}E.value.style.marginTop=
"-"+f*b()+"px";var d;if((d=t.shouldAnimate)==null?0:d.call(t)){var I,O;p=fn_(E.value,(I=t.character)==null?void 0:I.call(t),(O=t.previousCharacter)==null?void 0:O.call(t),t.rollUp(),f,U(),b())}else{var a;E.value.style.display=((a=t.character)==null?0:a.call(t))?"":"none"}}},"CA6Pmf");
return _.H("animated-rolling-character",{el:E,class:"animatedRollingCharacterHost"},_.H(_.w,{cond:U,then:function(){return _.H(PpT,null)},
else:function(){return _.H(TvG,{character:t.character})}}))},"E");
oVm.idomCompat=!0;var B_0=_.r("web_enable_sink_animated_rolling_character_and_number")?oVm:m8O,WUp=_.r("web_enable_sink_animated_rolling_character_and_number")?oVm:ixE(m8O),PpT=_.l(function(){for(var t=[],E=1;E<30;E++)t.push(_.H("div",null,E%10));return _.H(_.Oj,null,_.H("div",null,"\u00a0"),t,_.H("div",null,"\u00a0"))},"F"),TvG=_.l(function(t){var E=t.character;
return _.H(_.Oj,null,_.H("div",null,"\u00a0"),_.H(_.w,{cond:function(){return!(E==null?0:E())||_.mJ(E==null?void 0:E())},
then:function(){return _.H("div",null,"\u00a0")},
else:function(){return _.H("div",null,E)}}),_.H("div",null,"\u00a0"))},"G");wF8.componentType=SK;var $bp=_.l(function(t){var E=void 0,p=void 0,U=function(){var A;return((A=t.fontSizeMultiplier)==null?0:A.call(t))?t.heightPx()*t.fontSizeMultiplier():t.heightPx()},x=_.KN(function(){if(!t.numberText())return[];
var A,m,b=((A=t.forceRollUp)==null?void 0:A.call(t))||!p||!((m=t.numberValue)==null?0:m.call(t))||p<t.numberValue(),f,B=t.numberText();A=U();m=!((f=t.shouldAnimate)==null||!f.call(t));f=[];var R=0,V=0,Q=(E?E.replace(/\D/g,"").length:0)-(B?B.replace(/\D/g,"").length:0),C=E?E.split(/(\d)/).filter(Boolean):[];for(B=B.split(/(\d)/).filter(Boolean);Q<0;){var d=B[V];f.push({character:d,rollUp:b,marginMultiplier:A,shouldAnimate:m});V++;BD(d)&&Q++}for(;R<Q;)d=C[R],f.push({previousCharacter:d,rollUp:b,marginMultiplier:A,
shouldAnimate:m}),R++,BD(d)||Q++;for(;V<B.length;)Q=B[V],d=C[R],BD(Q)===BD(d)?(V++,R++):BD(Q)?(R++,Q=void 0):BD(d)&&(V++,d=void 0),f.push({character:Q,previousCharacter:d,rollUp:b,marginMultiplier:A,shouldAnimate:m});E=t.numberText();var I;p=(I=t.numberValue)==null?void 0:I.call(t);return f},void 0,"kWiBv");
return _.H("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return t.numberText()?["height: "+U()+"px;","line-height: "+t.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.H(_.yG,{each:x,keyBy:"INDEX"},function(A){return _.H(WUp,{character:function(){return A().character},
previousCharacter:function(){return A().previousCharacter},
marginMultiplier:function(){return A().marginMultiplier},
rollUp:function(){return A().rollUp},
shouldAnimate:function(){return A().shouldAnimate}})}))},"H");
$bp.idomCompat=!0;_.KUs=_.r("web_enable_sink_animated_rolling_character_and_number")?$bp:ixE(wF8);var vVm=function(t,E){this.fillAnimation=new Animation(CXO(t),document.timeline);this.strokeAnimation=new Animation(jZ_(E),document.timeline)};
vVm.prototype.play=function(){var t,E;(E=(t=this.fillAnimation).play)==null||E.call(t);var p,U;(U=(p=this.strokeAnimation).play)==null||U.call(p)};
vVm.prototype.cancel=function(){var t,E;(E=(t=this.fillAnimation).cancel)==null||E.call(t);var p,U;(U=(p=this.strokeAnimation).cancel)==null||U.call(p)};_.lu=_.l(function(t){var E=t.model;var p=t.pointerDownEvent;var U=t.pointerUpEvent;var x=t.pointerLeaveEvent;var A=t.hovered;t=_.EB("yt-touch-feedback-shape");var m=_.EB("div"),b=_.EB("div"),f=_.M(_.j5(function(){return(U==null?0:U())||(x==null?0:x())?!1:!(p==null||!p())||!1})),B=f.next().value,R=f.next().value,V=void 0,Q=function(){!V&&b.value&&m.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(V=new vVm(b.value,m.value));
var F;(F=V)==null||F.play()},C=function(){var F;
(F=V)==null||F.cancel()},d=function(){var F;
(F=V)==null||F.cancel()};
_.M$(function(){(U==null?0:U())&&Q()},"bg756c");
_.M$(function(){(p==null?0:p())&&C()},"QAes8c");
_.M$(function(){(x==null?0:x())&&d()},"YaFbrc");
f=_.aC(function(){Q();R(!1)});
var I=_.aC(function(){C();R(!0)}),O=_.aC(function(){d();
R(!1)});
_.iK(function(){if(V){var F;(F=V)==null||F.cancel();V=void 0}});
var a={};B=_.X5("yt-spec-touch-feedback-shape",function(){return rVi(E().color)},function(){return k8K(E().thumbnailSize,!!E().isExtended)},(a["yt-spec-touch-feedback-shape--focused"]=function(){return!!E().focused&&!E().disabled},a["yt-spec-touch-feedback-shape--circular"]=function(){return!!E().circular},a["yt-spec-touch-feedback-shape--down"]=B,a["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!E().triggerEvents},a["yt-spec-touch-feedback-shape--hovered"]=function(){return A==
null?void 0:A()},a));
return _.H("yt-touch-feedback-shape",{el:t,class:B,style:_.zO({"margin-top":function(){return E().customTopExtend?"-"+E().customTopExtend+"px":void 0}}),
"on:mousedown":I,"on:mouseup":f,"on:pointerleave":O,"on:touchstart":I,"on:touchend":f,"aria-hidden":!0},_.H(_.w,{cond:function(){return!!E().hoverEffect},
then:function(){return _.H("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.zO({"border-radius":function(){return E().borderRadius},
background:function(){var F;if(F=E().hoverEffect){for(var L=[],D=_.M((F==null?void 0:F.lightingTechniques)||[]),W=D.next();!W.done;W=D.next())switch(W.value){case 2:var K=W=void 0,v=void 0,YL=void 0;L.push("linear-gradient(180deg, "+((W=F)==null?void 0:(K=W.palette)==null?void 0:K.keyLight)+", "+((v=F)==null?void 0:(YL=v.palette)==null?void 0:YL.background)+")")}var bY,kL;L.push((bY=E().hoverEffect)==null?void 0:(kL=bY.palette)==null?void 0:kL.background);F=L.join(", ")}else F=void 0;return F}})})}}),
_.H("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.zO({"border-radius":function(){return E().borderRadius},
"border-color":function(){var F,L;return(F=E().touchEffect)==null?void 0:(L=F.palette)==null?void 0:L.background}}),
el:m}),_.H("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.zO({"border-radius":function(){return E().borderRadius},
"background-color":function(){var F,L;return(F=E().touchEffect)==null?void 0:(L=F.palette)==null?void 0:L.background}}),
el:b}))},"L");
_.lu.idomCompat=!0;var ypX={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 Gn=_.V_();Gn=Gn.toLowerCase();if(_.iY(Gn,"android")){var SeT=Gn.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);SeT&&parseFloat(SeT[1])<100||Gn.match("("+Object.keys(ypX).join("|")+")")};var cps=_.l(function(t){return _.H(_.w,{cond:t.aTagConfig,then:function(E){return _.H(_.zn,{aTagConfig:E,disabled:t.disabled,className:t.className,style:t.style,title:t.title,ariaLabel:t.ariaLabel,ariaCurrent:function(){var p,U;return((p=t.toggleable)==null?void 0:p.call(t))&&((U=t.toggled)==null?void 0:U.call(t))},
ref:t.ref},t.children)},
else:function(){return _.H("button",{el:_.V9(t.ref),"on:click":_.aC(function(E){var p;return(p=t.onClick)==null?void 0:p.call(t,E)}),
class:t.className,title:t.title,style:t.style,disabled:t.disabled,"aria-pressed":function(){var E,p;return((E=t.toggleable)==null?0:E.call(t))?!((p=t.toggled)==null||!p.call(t)):void 0},
"aria-label":t.ariaLabel,"aria-disabled":t.visiblyDisabled,"aria-hidden":t.ariaHidden,tabindex:t.tabIndex},t.children)}})},"M"),Er3=_.l(function(t){var E=t.data;
var p=t.hasIconLeading;var U=t.hasIconLeadingTrailing;var x=t.hasIconTrailing;var A=t.iconButton;var m=t.iconClassName;var b=t.secondaryIconClassName;var f=t.icon;var B=t.secondaryIcon;var R=t.textContentClassName;return _.H(nS,{className:"",style:"display: inherit; justify-content: center"},_.H(_.w,{debugInstance:"V4z1Uc",cond:function(){return f&&(p()||U()||(A==null?void 0:A()))},
then:function(){return _.H(nS,null,_.H("div",{class:m,"aria-hidden":"true"},f==null?void 0:f()))}}),_.H(_.w,{debugInstance:"ok3btb",
cond:function(){return(E().buttonText||E().animatedTextProps||E().formattedButtonText)&&!(A==null?0:A())},
then:function(){return _.H(nS,null,_.H(tH4,{className:R,iconPosition:function(){return E().iconPosition},
text:function(){return E().buttonText},
oneOffCustomTextWrap:function(){return E().oneOffCustomTextWrap},
formattedButtonText:function(){return E().formattedButtonText},
animatedTextProps:function(){return E().animatedTextProps}}))}}),_.H(_.w,{debugInstance:"DO5Rz",
cond:x,then:function(){return _.H(nS,null,_.H("div",{class:m},f==null?void 0:f()))}}),_.H(_.w,{debugInstance:"bnojSc",
cond:U,then:function(){return _.H(nS,null,_.H("div",{class:b},B==null?void 0:B()))}}),_.H(_.w,{debugInstance:"HN3kad",
cond:function(){return!E().disabled&&!0},
then:function(){return _.H(_.lu,{model:function(){var V=E();return{color:V.style==="overlay-dark"?4:V.style==="overlay"?V.type==="filled"?4:3:V.type==="filled"||V.style==="call-to-action-inverse"||V.style==="mono-inverse"?2:1}}})}}))},"N"),tH4=_.l(function(t){var E=function(){var p,U;
return((p=t.iconPosition)==null?void 0:p.call(t))==="icon-with-label"||((U=t.oneOffCustomTextWrap)==null?void 0:U.call(t))};
return _.H("div",{class:t.className,"aria-hidden":function(){var p,U,x;return((p=t.ariaHidden)==null?void 0:p.call(t))&&(!((U=t.animatedTextProps)==null||!U.call(t))||!((x=t.formattedButtonText)==null||!x.call(t)))}},_.H(_.SC,null,_.H(_.Kw,{when:function(){var p;
return(p=t.animatedTextProps)==null?void 0:p.call(t)}},function(){return _.H(_.KUs,{numberText:function(){return t.animatedTextProps().numberText},
numberValue:function(){return t.animatedTextProps().numberValue},
heightPx:function(){return t.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return t.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return t.animatedTextProps().shouldAnimate},
forceRollUp:function(){return t.animatedTextProps().forceRollUp}})}),_.H(_.Kw,{when:function(){var p;
return(p=t.formattedButtonText)==null?void 0:p.call(t)}},function(){return _.H(_.d8,{text:function(){return Object.assign({},t.formattedButtonText(),{lineBreakMode:E()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":t.formattedButtonText().lineBreakMode,
alignment:E()?"TEXT_ALIGNMENT_CENTER":t.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!E()}})}),_.H(_.Kw,{when:function(){var p,U;
return((p=t.iconPosition)==null?void 0:p.call(t))==="icon-with-label"&&((U=t.text)==null?void 0:U.call(t))}},function(){return _.H(_.d8,{text:function(){return{content:t.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.H(_.vv,null,function(){return t.text})))},"O"),pNs=_.l(function(t){return _.H(_.w,{debugInstance:"kM7Sgc",
cond:t.hasLabel,then:function(){var E;return _.H("label",{class:t.className},t.children,(E=t.textContent)==null?void 0:E.call(t))},
else:function(){return t.children}})},"P"),nS=_.l(function(t){return t.children},"Q");var U1f=_.l(function(t){function E(){A(void 0);b(void 0);B(void 0)}
var p=_.V9(),U=_.M(_.Py(void 0,void 0,"Ug77pc")),x=U.next().value,A=U.next().value;U=_.M(_.Py(void 0,void 0,"XGf7Zb"));var m=U.next().value,b=U.next().value,f=_.M(_.Py(void 0,void 0,"w55oqd"));U=f.next().value;var B=f.next().value;f=_.M(_.Py(0,void 0,"rBgpzc"));var R=f.next().value,V=f.next().value;f=_.aC(function(){switch(R()){case 1:V(2);break;case 3:var C,d;(d=(C=p.value).hidePopover)==null||d.call(C);V(0);E()}});
_.M$(function(){if(t.show()){var C;A((C=t.children)==null?void 0:C.call(t));var d;b((d=t.location)==null?void 0:d.call(t));var I;B((I=t.classNames)==null?void 0:I.call(t));switch(R()){case 0:var O,a;(a=(O=p.value).showPopover)==null||a.call(O);V(1);break;case 3:V(1);var F,L;(L=(F=p.value).hidePopover)==null||L.call(F);var D,W;(W=(D=p.value).showPopover)==null||W.call(D)}}else switch(R()){case 2:V(3);break;case 1:var K,v;(v=(K=p.value).hidePopover)==null||v.call(K);E();V(0)}},"Z8V4Qb");
_.A6(function(){});
var Q={};return _.H("yt-popover",{popover:"manual",el:p,style:_.zO({left:function(){var C;return(C=m())==null?void 0:C.left},
top:function(){var C;return(C=m())==null?void 0:C.top},
bottom:function(){var C;return(C=m())==null?void 0:C.bottom},
right:function(){var C;return(C=m())==null?void 0:C.right}}),
class:_.X5("ytPopoverComponentHost",U,(Q.ytPopoverComponentHostClosing=function(){return R()===3},Q.ytPopoverComponentHostSeeThrough=function(){var C;
return((C=t.seeThrough)==null?void 0:C.call(t))===!0},Q)),
"on:animationend":f},x)},"S");var x1W={left:"0px",right:"auto",top:"0px",bottom:"auto"},AMG=function(){var t=this;this.registerTooltipElement=function(p){var U;t.tooltipElement=(U=p.querySelector("yt-popover"))!=null?U:void 0};
var E=_.M(_.Py(void 0,void 0,"EIh5sc"));this.state=E.next().value;this.setState=E.next().value;E=_.M(_.Py(void 0,void 0,"PC1M0b"));this.schedulerJobID=E.next().value;this.setSchedulerJobID=E.next().value},hlD=function(t,E){var p=ny,U=_.ir.addJob(function(){var x=YxZ(p,t,E);
p.currentConfig=E;p.setState({text:E.text,location:_.r("web_tooltip_location_fix")?void 0:x,anchor:t,offset:E.offset,style:E.style})},4,E.delay);
p.setSchedulerJobID(U)},anK=function(){var t=ny,E=t.schedulerJobID();
E&&(_.ir.cancelJob(E),t.setSchedulerJobID(void 0));t.setState(void 0);t.currentConfig=void 0};
AMG.prototype.notify=function(t,E){var p;((p=this.state())==null?void 0:p.anchor)===t&&(p=YxZ(this,t,E),this.currentConfig=E,this.setState({text:E.text,location:_.r("web_tooltip_location_fix")?void 0:p,anchor:t,offset:E.offset,style:E.style}))};
var YxZ=function(t,E,p){var U=E.getBoundingClientRect();E=window.innerWidth;var x=window.innerHeight,A=p.location,m=p.offset;p=p.text;if(t=t.tooltipElement){var b=getComputedStyle(t);t=b.font;var f=GO(b.lineHeight),B=GO(b.paddingLeft),R=GO(b.paddingRight),V=GO(b.paddingTop);b=GO(b.paddingBottom);var Q=document.createElement("canvas").getContext("2d");Q.font=t;p={width:Q.measureText(p).width+B+R,height:f+V+b}}else p=void 0;t=p;if(!t)return x1W;p=t.width;t=t.height;B=m+t;V=m+p;f=U.top>=B;B=x-U.bottom>=
B;R=U.left>=V;V=E-U.right>=V;b=A;switch(A){case "top":!f&&B&&(b="bottom");break;case "bottom":!B&&f&&(b="top");break;case "left":!R&&V&&(b="right");break;case "right":!V&&R&&(b="left")}switch(b){case "top":A=U.left+U.width/2-p/2;U=U.top-t-m;break;case "bottom":A=U.left+U.width/2-p/2;U=U.bottom+m;break;case "left":A=U.left-p-m;U=U.top+U.height/2-t/2;break;case "right":A=U.right+m;U=U.top+U.height/2-t/2;break;default:A=U.left+U.width/2-p/2,U=U.bottom+m}m=Object.assign({},x1W);A+p>E?(m.right="0px",m.left=
"auto"):(m.left=Math.round(Math.max(0,A)+window.scrollX)+"px",m.right="auto");U+t>x?(m.bottom="0px",m.top="auto"):(m.top=Math.round(Math.max(0,U)+window.scrollY)+"px",m.bottom="auto");return m};var ny;ny=new AMG;_.MHp=_.l(function(){var t=_.KN(function(){var x;return(x=ny.state())==null?void 0:x.anchor},void 0,"tiGUn"),E=_.KN(function(){var x;
return(x=ny.state())==null?void 0:x.text},void 0,"TA2GQe"),p=_.KN(function(){var x;
return(x=ny.state())==null?void 0:x.style},void 0,"ucvFsf"),U=_.r("web_tooltip_location_fix")?_.KN(function(){var x=t();
var A=ny.currentConfig;if(x&&A)return YxZ(ny,x,A)},void 0,"EpDz6"):_.KN(function(){var x;
return(x=ny.state())==null?void 0:x.location},void 0,"aRJtfd");
return _.H("yt-tooltip",{class:"ytTooltipContainerHost",el:_.V9(ny.registerTooltipElement),"aria-hidden":"true"},_.H(U1f,{classNames:function(){switch(p()){case "TOOLTIP_VIEW_MODEL_STYLE_PLAYER":return"ytTooltipContainerPlayerTooltipContent";default:return"ytTooltipContainerDefaultTooltipContent"}},
location:U,show:function(){return!!E()&&!!U()},
seeThrough:!0},E))},"T");var zuY=X8("stamper-context");_.N7=_.l(function(t){var E=t.data;var p=t.icon;var U=t.iconName;var x=t.animateIcon;var A=t.secondaryIcon;var m=t.secondaryIconName;var b=t.focusedOverride;var f=t.clientOnlyWizTooltipsEnabled;Faj();var B=d8D(E),R=B.size,V=B.style;t=B.disabled;var Q=B.onTap,C=B.alignByText,d=B.aTagConfig,I=B.customColors,O=B.segmentedPosition,a=B.toggled,F=B.toggleable,L=B.accessibilityLabel,D=B.onToggle,W=B.iconPosition,K=B.oneOffCustomTextWrap,v=B.disableTextEllipsis,YL=B.disableBackdropFilter,bY=B.tooltipText,
kL=B.ariaHidden,R0=B.tabIndex,j$=B.buttonText,lY=B.formattedButtonText,Tt=B.animatedTextProps,si=B.onClickRateLimitMs,Q0=gHO(E,p,A,U,m,b,x),ps=Q0.type;p=Q0.shouldFocus;U=Q0.hasIconLeading;x=Q0.hasIconTrailing;var $L=Q0.hasIconLeadingTrailing,Cs=Q0.hasIconOnly;A=Q0.hasIconOnly40;var km=Q0.hasIconWithLabel;m=Q0.iconButton;var ZT=Q0.visiblyDisabled;b=Q0.overrideSmallSizeIcon;var l8=Q0.iconToRender;Q0=Q0.secondaryIconToRender;var Rt=_.M(el_(bY,B.tooltipShape)).next().value,wE=function(h3){Q==null||Q(h3);
F()&&(D==null||D(h3))},Gt=_.KN(function(){return si==null?void 0:si()},void 0,"siKywb"),V0=_.KN(function(){return Gt()?BgZ(wE,Gt()):wE},void 0,"wDTcN");
B={};var SW={};return _.H(pNs,{className:_.X5("yt-spec-button-shape-with-label",(B["yt-spec-button-shape-with-label--is-overlay"]=function(){return V()==="overlay"||V()==="overlay-dark"},B)),
hasLabel:km,textContent:function(){return _.H(tH4,{text:j$,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:K,iconPosition:W,formattedButtonText:lY,animatedTextProps:Tt})}},_.H(cps,{aTagConfig:d,
className:_.X5("yt-spec-button-shape-next",function(){return Zx_(ps())},function(){return ZT()?void 0:Oxt(V())},function(){return XFO(R())},(SW["yt-spec-button-shape-next--disabled"]=ZT,SW["yt-spec-button-shape-next--focused"]=p,SW["yt-spec-button-shape-next--icon-trailing"]=x,SW["yt-spec-button-shape-next--icon-leading"]=U,SW["yt-spec-button-shape-next--icon-leading-trailing"]=$L,SW["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return $L()&&!(j$()||lY())},SW["yt-spec-button-shape-next--icon-button"]=
function(){return Cs()||km()},SW["yt-spec-button-shape-next--icon-only-default"]=A,SW["yt-spec-button-shape-next--align-by-text"]=C,SW["yt-spec-button-shape-next--segmented-start"]=function(){return O()==="start"},SW["yt-spec-button-shape-next--segmented-end"]=function(){return O()==="end"},SW["yt-spec-button-shape-next--override-small-size-icon"]=b,SW["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=K,SW["yt-spec-button-shape-next--disable-text-ellipsis"]=v,SW["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!YL()&&!_.r("web_disable_backdrop_filter")},SW)),
style:function(){var h3=I();if(h3){var zX=h3.color;var zc=h3.backgroundColor;h3=h3.borderColor;var EC="";zX&&(EC+="color: "+zX+";");zc&&(EC+="background-color: "+zc+";");h3&&(EC+="border-color: "+h3+";");zX={style:EC}}else zX={};return zX.style},
onClick:function(h3){V0()(h3)},
disabled:t,ariaLabel:L,toggleable:F,toggled:a,title:function(){return(f==null?0:f())||!bY()?"":bY()},
visiblyDisabled:ZT,ariaHidden:kL,tabIndex:R0,ref:function(h3){(f==null?0:f())&&Rt(h3)}},_.H(Er3,{data:E,
hasIconLeading:U,hasIconLeadingTrailing:$L,hasIconTrailing:x,iconButton:m,icon:l8,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:Q0})))},"V");
_.N7.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.D5=_.l(function(t){var E=t.data;var p=t.className;var U=t.style;var x=t.useOutlinedIcon;var A=t.buttonOverrides;var m=t.animatedTextProps;var b=t.onClick;var f=t.target;var B=_.EB("button-view-model",function(D){D.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var W=E().targetId;W&&_.y8(_.SV(),W,D);return function(){v5(_.SV(),D)}}),R=function(){return E().iconName},V=_.D4(function(D){a:{var W=E().entityKey,K=E().buttonEntitySelectorType;
if(K&&W)switch(K){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":D=(D=_.hJ(D,W))?{isHidden:D.adsState==="ADS_STATE_NONE"||D.adsState==="ADS_STATE_UNKNOWN"}:{isHidden:!0};break a;default:D={isHidden:!1};break a}D=void 0}return D}),Q,C=(Q=_.X3().resolve(_.OB(_.Ld)))==null?void 0:Q(),d=function(){var D=E();
var W=A==null?void 0:A(),K=m==null?void 0:m(),v=f==null?void 0:f();if(D){var YL=LaY(D.type);var bY=!!D.title||!!D.titleFormatted;var kL=!(!D.iconName&&!D.iconImage);bY=kL&&!bY?"icon-only":kL?D.iconTrailing||D.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;bY==="icon-only-40"&&(YL="text");var R0;kL=(R0=W==null?void 0:W.state)!=null?R0:PXi(D.state);var j$,lY=(j$=W==null?void 0:W.disabled)!=null?j$:D.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||D.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.r("web_button_vm_refactor_disabled")){var Tt;lY=(Tt=W==null?void 0:W.disabled)!=null?Tt:kL==="disabled"}K=K&&K.numberText&&!isNaN(Number(K.numberValue))?K:void 0;j$=Object;Tt=j$.assign;R0=D.title;var si=D.titleFormatted,Q0=D.accessibilityText,ps=sZY(D.style),$L=T_0(D.buttonSize);v=D8L(D,B,lY,b,v);lY=lY&&!D.onDisabledTap;var Cs=nHY(D,B),km=D.customFontColor,ZT=D.customBackgroundColor;var l8=D.customBorderColor;var Rt=D.customDarkThemeFontColor,wE=D.customDarkThemeBackgroundColor,Gt=D.customDarkThemeBorderColor;
km=C&&Rt?Rt:km;ZT=C&&wE?wE:ZT;l8=C&&Gt?Gt:l8;l8={color:km?_.cL(km):void 0,backgroundColor:ZT?_.cL(ZT):void 0,borderColor:l8?_.cL(l8):void 0};if(Gt=_.k(D.tooltipData,hhX)){var V0;ZT={text:(V0=Gt.tooltipText)!=null?V0:"",location:lnO(Gt.placement),style:Gt.style}}else ZT=void 0;D=Tt.call(j$,{},{buttonText:R0,formattedButtonText:si,animatedTextProps:K,accessibilityLabel:Q0,style:ps,type:YL,state:kL,size:$L,iconPosition:bY,onTap:v,disabled:lY,aTagConfig:Cs,customColors:l8,tooltipText:D.tooltip,tooltipShape:ZT},
W)}else D={style:"mono",type:"text",state:"active",size:"M"};D.focused=a();return D},I=function(){return JVi(d(),!!E().iconName)};
t=_.M(_.Py(!1,void 0,"yZ8hab"));Q=t.next().value;var O=t.next().value,a=Q;t=_.aC(function(){var D=_.X3().resolve(_.OB(_.FA));D&&O(D.isKeyBoardInUse());return!0});
Q=_.aC(function(){O(!1);return!0});
_.M$(function(){var D,W=_.k(E==null?void 0:(D=E())==null?void 0:D.onVisible,_.x2);W&&_.Y2(W,{disableClickTracking:!0})},"G9MlKd");
var F=function(){var D;return(E==null?0:(D=E())==null?0:D.iconImage)?{sources:[E().iconImage]}:void 0},L=_.r("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.H("button-view-model",{el:B,class:_.X5("ytSpecButtonViewModelHost",p),"on:focusin":t,"on:focusout":Q},_.H(_.w,{cond:function(){var D,W;return!((W=E().entityKey&&E().buttonEntitySelectorType&&((D=V())==null?void 0:D.isHidden))!=null&&W)},
then:function(){return _.H(_.w,{cond:F,then:function(D){return _.H(_.N7,{data:d,icon:function(){return _.H(_.Q9,{data:D,alt:"",targetWidth:I,targetHeight:I,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:L})},
else:function(){return _.H(_.N7,{data:d,icon:function(){return _.H(_.lz,{icon:R,active:function(){return(x==null?0:x())?!1:d().toggled},
animateIcon:function(){var D;return!!(U==null?0:(D=U())==null?0:D.animateIcon)},
size:I})},
clientOnlyWizTooltipsEnabled:L})}})}}))},"X");
_.D5.idomCompat={callbacks:{onClick:!0}};_.k2(_.l(function(t){return _.H("yt-button-view-model",{id:t.id,class:_.X5(t.scopingClassName,t.classes),icon:function(){var E;return(E=t.icon)==null?void 0:E.call(t)},
"dialog-dismiss":function(){var E;return((E=t.dialogDismiss)==null?0:E.call(t))?"":void 0}},_.H(_.D5,{data:function(){var E;
return(E=t.data)==null?void 0:E.call(t)},
className:function(){var E;return(E=t.className)==null?void 0:E.call(t)},
style:function(){var E;return(E=t.style)==null?void 0:E.call(t)},
useOutlinedIcon:function(){var E;return(E=t.useOutlinedIcon)==null?void 0:E.call(t)},
buttonOverrides:function(){var E;return(E=t.buttonOverrides)==null?void 0:E.call(t)},
animatedTextProps:function(){var E;return(E=t.animatedTextProps)==null?void 0:E.call(t)},
onClick:function(E){var p;return(p=t.onClick)==null?void 0:p.call(t,E)}}))},"Y"),"yt-button-view-model",{props:{data:_.uu,
className:_.uu,style:_.uu,useOutlinedIcon:_.uu,buttonOverrides:_.uu,animatedTextProps:_.uu,onClick:_.Cy,scopingClassName:_.uu,id:_.uu,icon:_.uu,dialogDismiss:_.uu,classes:_.uu,target:_.Cy}});_.k2(_.l(function(t){var E=t.data;var p=t.id;var U=t.className;var x=t.iconName;var A=t.animateIcon;var m=t.secondaryIconName;t=_.M(_.Py(!1,void 0,"TtJl8"));var b=t.next().value,f=t.next().value,B=function(){var V=_.X3().resolve(_.OB(_.FA));V&&f(V.isKeyBoardInUse())},R=function(){f(!1)};
t=_.EB("yt-button-shape",function(V){if(_.X3().resolve(_.OB(_.FA)))return V.addEventListener("focusin",B),V.addEventListener("focusout",R),function(){V.removeEventListener("focusin",B);V.removeEventListener("focusout",R)}});
return _.H("yt-button-shape",{el:t,id:p,class:U},_.H(_.w,{cond:E,then:function(){return _.H(_.N7,{data:E,iconName:x,secondaryIconName:m,focusedOverride:b,animateIcon:A})}}))},"Z"),"yt-button-shape",{props:{data:_.uu,
id:_.uu,className:_.uu,iconName:_.uu,animateIcon:_.uu,secondaryIconName:_.uu,clientOnlyWizTooltipsEnabled:_.uu,disableUpgrade:_.uu},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var s0=function(){var t=_.z.apply(this,arguments)||this;t.isGoalActive=!0;return t};
_.u(s0,_.z);s0.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
s0.prototype.progressBarChanged=function(){var t=_.ZN(this.hostElement).querySelector("#progress-bar-progress"),E,p,U,x=(U=Number((E=this.creatorGoalState)==null?void 0:E.currentGoalCount)/Number((p=this.creatorGoalState)==null?void 0:p.totalGoalCount)*100)!=null?U:0,A;t.style.width=((A=Math.min(x,100))!=null?A:0)+"%"};
s0.prototype.goalStateChanged=function(){var t;this.isGoalActive=((t=this.creatorGoalState)==null?void 0:t.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var E;t={"--yt-progress-bar-color":NDJ((E=this.creatorGoalState)==null?void 0:E.progressBarColor)};_.eU(this.hostElement,t)};
s0.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.aE.Object.defineProperties(s0.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var t;return this.isGoalActive&&!((t=this.creatorGoalState)==null||!t.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.creatorGoalState)==null?0:t.endTimestampMs){var E;t=Number((E=this.creatorGoalState)==null?void 0:E.endTimestampMs)/1E3;return{seconds:String(t)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.creatorGoalState)==null?0:t.themedTargetImage){var E;t=_.k((E=this.creatorGoalState)==null?void 0:E.themedTargetImage,rcm);return this.isAppDarkTheme()?t==null?void 0:t.imageDark:t==null?void 0:t.imageLight}}}});
_.aE.Object.defineProperties(s0,{template:{configurable:!0,enumerable:!0,get:function(){return zY3()}}});
s0.prototype.goalStateChanged=s0.prototype.goalStateChanged;s0.prototype.progressBarChanged=s0.prototype.progressBarChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],s0.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Bg),_.P("design:type",Object)],s0.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],s0.prototype,"ytRendererBehavior",void 0);
_.N([_.e({selectorArgs:["data.creatorGoalEntityKey"],selector:function(t,E){return _.hj(t.entities,"creatorGoalEntity",E)}}),
_.P("design:type",Object)],s0.prototype,"creatorGoalState",void 0);_.N([_.e(),_.P("design:type",Object)],s0.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],s0.prototype,"isGoalActive",void 0);_.N([_.Z("creatorGoalState","isGoalActive"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],s0.prototype,"shouldShowCountdown",null);_.N([_.Z("creatorGoalState"),_.P("design:type",Object),_.P("design:paramtypes",[])],s0.prototype,"endTimestamp",null);
_.N([_.Z("creatorGoalState"),_.P("design:type",Object),_.P("design:paramtypes",[])],s0.prototype,"targetIconThemedImage",null);_.N([_.GI("creatorGoalState.currentGoalCount"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],s0.prototype,"progressBarChanged",null);_.N([_.GI("creatorGoalState.creatorGoalState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],s0.prototype,"goalStateChanged",null);
_.N([_.p4({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],s0);_.G(s0,"yt-creator-goal-progress-flow-view-model",function(){return zY3()},{mode:0});var m1W;var bcr;var LS=function(){return _.z.apply(this,arguments)||this};
_.u(LS,_.z);LS.prototype.attached=function(){var t,E,p;if(this==null?0:(t=this.data)==null?0:(E=t.pdgPurchasedBumperLoggingDirectives)==null?0:(p=E.loggingDirectives)==null?0:p.trackingParams){var U,x,A;$8Y(this==null?void 0:(U=this.data)==null?void 0:(x=U.pdgPurchasedBumperLoggingDirectives)==null?void 0:(A=x.loggingDirectives)==null?void 0:A.trackingParams)}};
LS.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],LS.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],LS.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],LS.prototype,"data",void 0);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],LS);
_.G(LS,"yt-live-chat-item-bumper-view-model",function(){if(bcr===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;m1W===void 0&&(m1W=document.createElement("template"));var U=m1W;p.call(E,U.content.cloneNode(!0),t.content.firstChild);bcr=t}t=bcr;return t},{mode:0});var icZ;var qx4;_.Rn=function(t,E){this.data=t;this.actions=E;this.data=t;this.actions=E};
_.m8=function(){};_.Pg={};_.Pg.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(t,E){KaL(this.hostElement,t,E)},
getNavigationEndpointPopupAction:function(t){return vHt(t,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(t,E){yVO(this.hostElement,t,E,this.openPopupConfig)}};var Mj8=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.Tn={};
_.Tn.YtEndpointBehavior=[_.Pg.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.qO("openPopupConfig");(this.useClickHandler=_.HC("useClickHandler",!1))?this.hostElement.addEventListener("click",FM(this,this.onEndpointClick_)):(fo(this.hostElement,"tap",FM(this,this.onEndpointTap_)),fo(this.hostElement,"touchend",FM(this,this.onEndpointTouchEnd_)));fo(this.hostElement,"touchstart",FM(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
FM(this,this.onEndpointTapStart_))},
onEndpointClick_:function(t){tj$(this.hostElement,t,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(t){var E=this.hostElement,p=this.openPopupConfig,U=this.disableCommandHandlerOverride;U=U===void 0?!1:U;var x=S6$(t);if(x){x.href&&UU(x.href);var A=t.detail;var m=A.sourceEvent;A=A.preventer;m=m.button!==void 0?m.button===0&&!sn(m):A?!sn(A):!0;x.data&&m&&cVE(E,x,t,p,U)}},
onEndpointTouchEnd_:function(t){sn(t)||S6$(t)&&t.preventDefault()},
onEndpointTapStart_:function(t){AzJ(t)}}];_.oO={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(t){for(var E=_.d1.getInstance(),p=_.M(Object.keys(t)),U=p.next();!U.done;U=p.next()){var x=U.value;U=t[x];if(this&&this[U]){var A=E.actionRoutingMap.get(x);A||(A=new Map,E.actionRoutingMap.set(x,A));E.registerActionHandler(this,x,this[U].bind(this),A)}else x=Error("nd"),x.params=U,_.fR(x)}},
unregisterActionMap:function(t){_.JH(_.d1.getInstance(),t,this)}}]};var TO=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_"+(_.r("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.r("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.r("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:_.r("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:_.r("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:_.r("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var Ps;var oC=new Map;var fdt=window.matchMedia("(forced-colors: active)").matches;var Hcs;var fgp;var BCT=new _.gM("LOTTIE_LOADER_TOKEN");_.Wg=_.l(function(t){var E=t.data;var p=t.className;var U=t.animationName;var x=t.animationRef;var A=t.elRefForInterop;var m=_.pR("lottie-component"),b;_.iK(function(){var B;return void((B=b)==null?void 0:B.destroy())});
var f;_.M$(function(){var B=_.Hv(U);if(B!==f){f=B;var R=Object.assign({},{animationName:B,animationRef:_.Hv(x)},_.Hv(E));try{_.X3().resolve(BCT)().then(function(C){var d;(d=b)==null||d.destroy();var I,O;d=(O=A==null?void 0:(I=A())==null?void 0:I.value)!=null?O:m.value;I=R.animationRef;O=R.listeners;C=C.loadAnimation(Object.assign({},{container:d},R.animationConfig));I&&(I.lottieEl=C);if(O)for(d=_.M(Object.entries(O)),I=d.next();!I.done;I=d.next())O=_.M(I.value),I=O.next().value,(O=O.next().value)&&
C.addEventListener(I,O);b=C})}catch(C){B=C;
var V="LottieComponent error.";B.message&&(V+=" Original description: "+B.message);_.HX(B,V);_.qW(B);var Q;((Q=R.listeners)==null?0:Q.error)&&R.listeners.error(B)}}},"nrJISd");
return _.H(AZ8,{cond:function(){return!(A==null?0:A())},
then:function(){return _.H("lottie-component",{class:_.X5("ytLottieComponentHost",p),el:m})}})},"aa");_.k2(_.l(function(t){return _.H("ytd-lottie-player",{id:t.id,hidden:t.hidden,class:t.className,"aria-label":t.ariaLabel,style:"display: block;"},_.H(_.Wg,{data:t.data,animationName:function(){var E;return((E=t.data().animationConfig)==null?void 0:E.name)||""},
animationRef:function(){return t.data().animationRef}}))},"ba"),"ytd-lottie-player",{props:{data:_.uu,
id:_.uu,hidden:_.uu,className:_.uu,ariaLabel:_.uu}});var $9=function(){var t=_.z.apply(this,arguments)||this;t.animationRef={};t.delhiIconsEnabled=_.r("enable_web_delhi_icons");return t};
_.u($9,_.z);_.Y=$9.prototype;
_.Y.handlePropertyChange=function(){var t=this.animatedIcon,E=this.active,p=this.isDarkTheme;if(t){var U=this.previousActive!==E;this.previousActive=E;this.animationRef.lottieEl?U?this.toggleAnimation(E,t.totalFrames):_.r("web_enable_animated_icon_active_state_fix")&&this.setAnimationState(E,t.totalFrames):E?this.initializeAnimationAsToggled(t.lottiePlayerProps,t.totalFrames):this.initializeAnimationAsUntoggled(t.lottiePlayerProps);t.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=
t.type;this.lottiePlayerProps=this.computeLottiePlayerProps(t,p)}};
_.Y.computeLottiePlayerProps=function(t,E){var p=this.deepCloneLottiePlayerProps(t);E?(E=t.nameDarkTheme,t=t.pathDarkTheme):(E=t.name,t=t.path);p.animationConfig.name=E;(E=oC.get(t))?p.animationConfig.animationData=E:p.animationConfig.path=t;return p};
_.Y.initializeAnimationAsToggled=function(t,E){t.animationConfig.initialSegment=[E-1,E]};
_.Y.initializeAnimationAsUntoggled=function(t){t.animationConfig.initialSegment=void 0};
_.Y.toggleAnimation=function(t,E){if(t){var p;(p=this.animationRef.lottieEl)==null||p.playSegments([0,E],!0)}else{var U;(U=this.animationRef.lottieEl)==null||U.playSegments([0,1],!0)}};
_.Y.setAnimationState=function(t,E){this.animationRef.lottieEl&&this.animationRef.lottieEl.goToAndStop(t?E-1:0,!0)};
_.Y.deepCloneLottiePlayerProps=function(t){var E=Object.assign({},t.lottiePlayerProps.animationConfig);t=Object.assign({},t.lottiePlayerProps);t.animationConfig=E;return t};
$9.prototype.handlePropertyChange=$9.prototype.handlePropertyChange;_.N([_.e(),_.P("design:type",Object)],$9.prototype,"animatedIcon",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],$9.prototype,"active",void 0);_.N([_.e(),_.P("design:type",Boolean)],$9.prototype,"isDarkTheme",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],$9.prototype,"animatedIconType",void 0);_.N([_.e(),_.P("design:type",Boolean)],$9.prototype,"previousActive",void 0);
_.N([_.e(),_.P("design:type",Object)],$9.prototype,"lottiePlayerProps",void 0);_.N([_.e(),_.P("design:type",Object)],$9.prototype,"animationRef",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],$9.prototype,"delhiIconsEnabled",void 0);_.N([_.GI("animatedIcon","active","isDarkTheme"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$9.prototype,"handlePropertyChange",null);_.N([_.p4({is:"yt-animated-icon",disableElementRegistration:!0})],$9);
_.G($9,"yt-animated-icon",function(){if(fgp===void 0){var t=document.createElement("template");_.J(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class="lottie-player style-scope yt-animated-icon" data="[[lottiePlayerProps]]"></ytd-lottie-player>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;Hcs===void 0&&(Hcs=document.createElement("template"));var U=Hcs;p.call(E,U.content.cloneNode(!0),t.content.firstChild);fgp=t}t=fgp;return t},{mode:2});var wNm;var Rx0;_.Ws=_.l(function(t){var E={value:null,cancelled:!1};_.iK(function(){E.cancelled=!0});
var p=_.KN(t.data,{equals:function(U,x){return U.iconName===x.iconName&&U.iconStyle===x.iconStyle&&U.iconSize===x.iconSize&&U.iconSetName===x.iconSetName&&U.iconSelected===x.iconSelected}},"ck24jb");
return _.H("span",{class:"yt-icon-shape",el:_.V9(function(U){_.M$(function(){var x,A=(x=t.options)==null?void 0:x.call(t);x=p();QXJ(U,E,x,A)},"v878Je")})})},"da");
_.Ws.idomCompat=!0;var lbJ=["youtube_fill","youtube_outline"];var VHG=new _.yA({type:"iconset",value:void 0}),KS=function(){var t=_.z.apply(this,arguments)||this;t.isDarkTheme=document.documentElement.hasAttribute("dark");t.iconName="";t.iconsetName="yt-icons";t.iconset=null;t.missingIconSet=!1;t.iconType=null;t.iconShapeDataSignal=_.Py(void 0,void 0,"TaEgXd");t.renderingOptionsSignal=_.Py({iconWidth:"100%",iconHeight:"100%",iconFilter:t.iconFilter,iconColor:t.gradientColor},void 0,"a1vqYe");t.wizHasRendered=!1;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return t};
_.u(KS,_.z);KS.prototype.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&(this.isDarkTheme=t)};
KS.prototype.handlePropertyChange=function(){var t=this,E,p,U,x,A,m,b,f,B,R,V,Q,C,d,I,O,a;return _.q(function(F){switch(F.nextAddress){case 1:if(E=!t.icon&&!t.iconName||!t.isAttached)return F.return();p=t;U=p.icon;x=p.size;A=p.defaultToFilled;m=p.active;b=p.targetContainer;t.toggleContainerClass(b);_.r("kevlar_use_wil_icons")&&U&&(f=w4E(U),t.iconType=f.length?f[1]:null);if(U){F.jumpTo(2);break}t.iconsetName="";t.iconName="";return F.yield(t.renderIcon(b,U),3);case 3:return F.return();case 2:B=QV4(U);
R=w4E(B);R.length&&(t.iconsetName=R[0],t.iconName=R[1]);if(!_.r("kevlar_use_wil_icons")){F.jumpTo(4);break}V=KS;Q=C5Z;C=t.iconType;d=t.active;I=t.defaultToFilled;O=t.size;a=t.iconsetName;return F.yield(jVT(),6);case 6:return F.yield(Q.call(V,C,d,I,O,a,F.yieldResult),5);case 5:t.iconShapeData=F.yieldResult;case 4:if(t.shouldRenderIconShape(b)){F.jumpTo(7);break}return F.yield(t.determineIconSet(B,m,A,x,b),7);case 7:return F.yield(t.renderIcon(b,U),0)}})};
KS.prototype.toggleContainerClass=function(t){t?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var QV4=function(t){return!_.r("default_to_innertube_icon")||t.indexOf(":")>0?t:_.zh(t)};
_.Y=KS.prototype;_.Y.determineIconSet=function(t,E,p,U){var x=this;return _.q(function(A){return A.nextAddress==1?_.r("kevlar_system_icons")||_.qO("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.qO("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?A.yield(x.switchToYtSysIconset(t,E,p,U),3):A.jumpTo(2):A.nextAddress!=2?A.return():A.yield(x.useYtSysIconsetForMissingIcons(t,E,p,U),0)})};
_.Y.switchToYtSysIconset=function(t,E,p,U){var x=this,A,m,b,f,B,R,V;return _.q(function(Q){switch(Q.nextAddress){case 1:if(!t||x.iconsetName!=="yt-icons"&&x.iconsetName!=="yt-sys-icons"){Q.jumpTo(0);break}A=w4E(t);m=A[1];var C=m;if(dBO(C))m=C;else{var d=C=C.toLowerCase();(C=uCr.get(C))&&(d=C);m=d}_.r("enable_polymer_icons_replace_underscores_dash")&&m.includes("_filled")&&(m=m.replace(/_filled/g,"-filled"));return Q.yield(FR(m,!0),3);case 3:return b=Q.yieldResult,Q.yield(FR(m,!1),4);case 4:if((f=
Q.yieldResult)||E&&b)x.iconsetName="yt-sys-icons";x.iconName=x.getIconName(m,E,p,f,b);if(U===24){Q.jumpTo(0);break}B="yt-sys-icons"+U+":"+x.iconName;return Q.yield(FR(B,!1,!0),6);case 6:return R=Q.yieldResult,Q.yield(FR(B,!0,!0),7);case 7:V=Q.yieldResult;x.iconName=x.getIconName(m,E,p,R,V);if(!E&&R||E&&V)x.iconsetName="yt-sys-icons"+U;_.Do(Q)}})};
_.Y.getIconName=function(t,E,p,U,x){t.includes("-filled")&&(t=t.replace("-filled",""));return x&&(E||p)?t+"-filled":t};
_.Y.useYtSysIconsetForMissingIcons=function(t,E,p,U){var x=this,A,m;return _.q(function(b){if(b.nextAddress==1)return x.iconsetName!=="yt-icons"?b.jumpTo(0):b.yield(FR(x.iconName,!1,!1,!0),3);if(b.nextAddress!=4)return A=b.yieldResult,b.yield(FR(x.iconName,!1),4);m=b.yieldResult;if(A||!m)return b.jumpTo(0);x.iconsetName="yt-sys-icons";return b.yield(x.switchToYtSysIconset(t,E,p,U),0)})};
_.Y.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var jVT=function(){return _.q(function(t){try{return t.return(_.X3().resolve(_.lR))}catch(E){return t.return(new Promise(function(p){_.ut().parkOrScheduleJob(function(){p(_.X3().resolve(_.lR))},2,"ci")}))}})},C5Z=function(t,E,p,U,x,A){U=U===void 0?24:U;
if(t){t=t.toLowerCase();var m=t.endsWith("_filled")||t.endsWith("-filled");E={iconName:t,iconStyle:(E===void 0?0:E)||(p===void 0?0:p)||m?"youtube_fill":"youtube_outline",iconSize:U,iconSetName:x===void 0?"yt-icons":x};p=!!A.resolveIcon(E);p||(E.iconSize=void 0,p=!!A.resolveIcon(E));!p&&m&&(E.iconName=t.substring(0,t.length-7),E.iconSize=U,p=!!A.resolveIcon(E),p||(E.iconSize=void 0,p=!!A.resolveIcon(E)));p||(E.iconStyle=void 0,p=!!A.resolveIcon(E));p||_.qW(new _.cC("Icon not supported",{iconName:E.iconName,
iconStyle:E.iconStyle,iconSize:E.iconSize,iconType:t}));return p?E:void 0}};
_.Y=KS.prototype;_.Y.shouldRenderIconShape=function(t){if(!_.r("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;t=this.getContainer(t);return!BfL(t,this.icon)};
_.Y.renderIcon=function(t,E){var p=this,U,x,A,m,b,f,B,R;return _.q(function(V){switch(V.nextAddress){case 1:if(E&&p.icon!==E)return V.return();U=p.getContainer(t);x=BfL(U,p.icon);if(p.shouldRenderIconShape(t)&&p.iconType)return p.applyIconShape(x,U),V.return();p.removeIconShape();if(!U)return V.return();p.iconName===""&&p.iconset&&U&&(p.removeStaticIcon(p.iconset,U),x&&p.removeAnimatedIcon(U));if(p.iconName===""&&p.iconset||!p.iconsetName||!VHG)return V.return();p.iconset=VHG.byKey(p.iconsetName);
if(!p.iconset)return p.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.zI(p,p.onIconsetAdded)),V.return();p.missingIconSet&&(p.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.zI(p,p.onIconsetAdded)));m=(A=x||p.isAnimatedIcon?qN8(p.icon):void 0)&&!A.lazyLoad;f=A&&((b=A)==null?void 0:b.lazyLoad)&&(A.lottiePlayerProps.animationConfig.animationData?!0:oC.get(p.isDarkTheme?A.pathDarkTheme:A.path)?!0:!1);if(m||f)return p.applyAnimatedIcon(U,A,p.iconset),V.return();if(f||
(B=A)==null||!B.lazyLoad){V.jumpTo(2);break}R=RED(A,p.isDarkTheme);p.applyStaticIcon(p.iconset,U,p.iconName,t,x);return V.yield(R,3);case 3:return V.yield(p.renderIcon(p.targetContainer,p.icon),4);case 4:return V.return();case 2:p.applyStaticIcon(p.iconset,U,p.iconName,t,x),_.Do(V)}})};
_.Y.getContainer=function(t){var E,p=(E=cuY(this.hostElement))==null?void 0:E.host;E=!!p&&!!p.polymerController;if(!t||E)return t?this.getTargetContainer(t,p):this.hostElement};
_.Y.getTargetContainer=function(t,E){var p=_.ZN(E).querySelector("#"+t);p||(t=new _.cC("yt-icon container missing",E.is,t),_.bV(t));return p};
_.Y.applyStaticIcon=function(t,E,p,U,x){x&&this.removeAnimatedIcon(E);this.removeIconShape();x=x&&!!this.iconType&&!!this.iconShapeData&&_.r("kevlar_use_wil_icons");try{x?this.applyIconShape(!1,E):t.applyIcon(E,p)}catch(A){this.handleError(A,U,E)}};
_.Y.applyIconShape=function(t,E){this.iconset&&E&&(this.removeStaticIcon(this.iconset,E),t&&this.removeAnimatedIcon(E));t={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var p=_.M(this.iconShapeDataSignal);E=p.next().value;p=p.next().value;var U=_.M(this.renderingOptionsSignal),x=U.next().value;U=U.next().value;p(this.iconShapeData);U(t);if(!this.wizHasRendered)for(this.wizHasRendered=!0,t=_.M(Cit(E,x)).next().value;t.firstChild;)_.ZN(this.hostElement).appendChild(t.firstChild)};
_.Y.removeIconShape=function(){if(_.r("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.Y.removeStaticIcon=function(t,E){t.removeIcon(E)};
_.Y.applyAnimatedIcon=function(t,E,p){this.removeStaticIcon(p,t);this.removeIconShape();var U;p=this.animatedIconElement&&((U=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:U.type)===E.type;if(this.animatedIconElement&&p){this.animatedIconElement.polymerController.animatedIcon=E;var x;((x=this.animatedIconElement)==null?void 0:x.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(t),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=E,this.animatedIconElement.polymerController.active=this.active,_.r("delhi_modern_web_player_icons")?(E=HXL(t,this.icon)&&t.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=E?E.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.r("kevlar_use_wil_icons")?
t.insertBefore(this.animatedIconElement,t.childNodes[0]):(t=_.ZN(t),t.insertBefore(this.animatedIconElement,t.childNodes[0]))};
_.Y.removeAnimatedIcon=function(t){_.r("kevlar_use_wil_icons")?this.animatedIconElement&&t.contains(this.animatedIconElement)&&t.removeChild(this.animatedIconElement):(t=_.ZN(t),this.animatedIconElement&&t.contains(this.animatedIconElement)&&t.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.Y.handleError=function(t,E,p){_.HX(t,this.iconName,E,p);E=BfL(p,this.icon);var U=!1;window.location.href.includes("JpymaW6Lh2w")?U=!0:p._svgIcon&&(p=(p=p._svgIcon.parentNode)?p.tagName:"unknown",_.HX(t,p),p==="YT-ICON"&&t.name==="NotFoundError"?U=!0:t.name==="NotFoundError"&&E&&(U=!0));U?_.qW(t):_.bV(t)};
_.aE.Object.defineProperties(KS,{template:{configurable:!0,enumerable:!0,get:function(){if(Rx0===void 0){var t=document.createElement("template");_.J(t,"\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");t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;
wNm===void 0&&(wNm=document.createElement("template"));var U=wNm;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Rx0=t}t=Rx0;return t}}});
KS.prototype.handlePropertyChange=KS.prototype.handlePropertyChange;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],KS.prototype,"actionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",String)],KS.prototype,"icon",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],KS.prototype,"active",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],KS.prototype,"defaultToFilled",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],KS.prototype,"isAnimatedIcon",void 0);
_.N([_.e({value:24}),_.P("design:type",Number)],KS.prototype,"size",void 0);_.N([_.e({value:""}),_.P("design:type",String)],KS.prototype,"targetContainer",void 0);_.N([_.e(),_.P("design:type",Object)],KS.prototype,"animatedIconElement",void 0);_.N([_.e(),_.P("design:type",Object)],KS.prototype,"isDarkTheme",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],KS.prototype,"ariaHidden",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],KS.prototype,"ariaLabel",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],KS.prototype,"role",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],KS.prototype,"tabindex",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],KS.prototype,"title",void 0);_.N([_.e(),_.P("design:type",String)],KS.prototype,"style",void 0);_.N([_.e(),_.P("design:type",String)],KS.prototype,"iconFilter",void 0);_.N([_.e(),_.P("design:type",String)],KS.prototype,"gradientColor",void 0);
_.N([_.GI("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],KS.prototype,"handlePropertyChange",null);_.N([_.p4({is:"yt-icon",noInjection:!0})],KS);var jX0="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),kUD=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var rMT={};rMT.YtPlaintextBehavior=[_.ou,{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(t){t.preventDefault();t=t.clipboardData.getData("text/plain");document.execCommand("insertText",!1,t)},
preventRichTextFormatting_:function(t){_.Gm&&(t=t.detail.keyboardEvent,t.stopImmediatePropagation(),t.preventDefault())}}];var kz3;var d1m;var cg=function(){var t=_.z.apply(this,arguments)||this;t.ignoreShadyDom=!1;t.hasChange_=!1;t.hasSetTitle_=!1;t.useIOObserverForVisibilityLogging_=_.r("kevlar_use_vimio_behavior")&&_.qO("INNERTUBE_CLIENT_NAME")==="WEB";t.ytFormattedStringObserverHandlerKeys_=void 0;return t};
_.u(cg,_.z);_.Y=cg.prototype;_.Y.created=function(){this.useIOObserverForVisibilityLogging_=_.r("kevlar_use_vimio_behavior")&&_.qO("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.Y.ready=function(){_.qO("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_()};
_.Y.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.Y.detached=function(){this.unobserveIOObservers_()};
_.Y.clearContents_=function(){for(var t=this.getRoot(),E=t.lastChild;E&&E.tagName!=="STYLE";){try{t.removeChild(E)}catch(p){break}E=t.lastChild}};
_.Y.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var t=_.M(this.ytFormattedStringObserverHandlerKeys_),E=t.next();!E.done;E=t.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(E.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.Y.resetForAttributedString=function(){var t=this.getRoot();!t.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),t.appendChild(this.ytAttributedStringElementRef))};
_.Y.resetForFormattedString=function(){var t=this.getRoot(),E=t.querySelector("yt-attributed-string");E&&(this.ytAttributedStringElementRef=t.removeChild(E))};
_.Y.textChanged=function(){this.textChanged_(this.text)};
_.Y.textChanged_=function(t){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!t||!t.runs&&!t.simpleText;if(_.r("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var E=this.hostElement.firstChild;E&&E.nodeName==="FONT";){var p=E;E=E.nextSibling;this.hostElement.removeChild(p)}E=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
p=t.simpleText;var U;!p&&((U=t.runs)==null?void 0:U.length)===1&&this.isSimpleString_(t.runs[0])&&(p=t.runs[0].text);p!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.qO("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(p!==void 0){try{E.textContent=p}catch(x){}E.textContent||(this.isEmpty=!0)}else t=t.runs,p!==void 0&&(t=[{text:p}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),t&&this.updateText_(t),
E.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.Y.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)};
_.Y.computeAriaLabel_=function(t){return t};
_.Y.computeEllipsisTruncateStyling=function(t,E){return t&&!E};
_.Y.computeUseAttributedString=function(t){return _.r("web_replace_formatted_with_attributed_string")&&EVt(t)&&!this.disableAttributedString&&!this.enableContentEditable};
_.Y.setNodeStyle_=function(t,E){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.r("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?E.removeAttribute("dir"):E.setAttribute("dir","auto");E.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");E.style.color="";var p=null;this.noStyles||(t.bold&&(E.classList.add("bold"),p="bold"),t.deemphasize&&(E.classList.add("deemphasize"),p="deemphasize"),t.italics&&E.classList.add("italic"),
t.strikethrough&&E.classList.add("strikethrough"),t.errorUnderline&&(E.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),t.bracket&&E.classList.add("bracket"),t.textColor&&(E.style.color=_.SL(t.textColor)));p!==E.getAttribute("style-target")&&(p?E.setAttribute("style-target",p):E.removeAttribute("style-target"))};
_.Y.setUpVisibilityLogging_=function(t,E){var p=this;this.setNodeTrackingParams_(t,E);var U;((U=E.data)==null?0:U.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(t=this.ytRendererBehavior.visibilityObserver.observe(E,function(x){var A=p.ytRendererBehavior.getVisibilityLogger();A&&A.reportShown(x)},this.ytRendererBehavior.visibilityOptionVisible_),E=this.ytRendererBehavior.visibilityObserver.observe(E,function(x){var A=p.ytRendererBehavior.getVisibilityLogger();
A&&A.reportHidden(x)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(t),this.ytFormattedStringObserverHandlerKeys_.push(E))};
_.Y.setNodeTrackingParams_=function(t,E){E.data||(E.data={});if((t=t.loggingDirectives?t.loggingDirectives.trackingParams:null)||E.data.trackingParams)E.data.trackingParams=t};
_.Y.computeHasLinkOnly_=function(t){return!(!t||t.length!==1||this.noEndpoints||!t[0].navigationEndpoint)};
_.Y.getRoot=function(){var t=this.buildScopeDomOptions();return this.enableContentEditable?_.ZN(_.ZN(this.hostElement,t).querySelector("[contenteditable]")):_.ZN(this.hostElement,t)};
_.Y.fixContenteditableScope=function(){var t=function(E){E&&(E.nodeType===1&&E.classList&&(E.classList.add("style-scope"),E.classList.add("yt-formatted-string")),E.childNodes&&E.childNodes.forEach(function(p){t(p)}))};
t(this.getRoot())};
_.Y.updateText_=function(t){for(var E=t.length,p=this.getRoot(),U=p.firstChild;U&&U.nodeName==="STYLE";)U=U.nextSibling;for(var x=0;x<E&&U;){var A=t[x],m=_.r("remove_cr_char")&&A.text?A.text.replace("\r",""):A.text;if(this.isSimpleString_(A)&&!this.useMixedDirectionFormattedStrings)if(U.nodeName==="#text"){U.textContent!=m&&(U.textContent=m);x++;U=U.nextSibling;continue}else break;if(_.k(A,py))break;else if(!this.noEndpoints&&A.navigationEndpoint){if(U.nodeName!=="A")break;this.setDataOnAnchor_(U,
A.navigationEndpoint)}else if(U.nodeName!=="SPAN")break;this.setNodeStyle_(A,U);this.setUpVisibilityLogging_(A,U);U.textContent!=m&&(U.textContent=m);x++;U=U.nextSibling}if(U)for(A=p.lastChild,U=x?U.previousSibling:null;A&&A!=U;){try{p.removeChild(A)}catch(b){break}A=p.lastChild}x!==E&&this.addTextNodes_(t,x)};
_.Y.addTextNodes_=function(t,E){for(var p=document.createDocumentFragment(),U=t.length;E<U;E++){var x=t[E],A=_.r("remove_cr_char")&&x.text?x.text.replace("\r",""):x.text;if(this.isSimpleString_(x)&&!this.useMixedDirectionFormattedStrings)p.appendChild(document.createTextNode(A));else{var m=_.k(x,py);if(m){if(m.image){var b=document.createElement("img");m.isCustomEmoji||b.classList.add("small-emoji");b.classList.add("emoji");m.isCustomEmoji&&(b.dataset.emojiId=m.emojiId);b.src=_.d4(m.image.thumbnails,
this.emojiSize);(x=this.get("image.accessibility.accessibilityData.label",m))?b.alt=x:m.shortcuts&&m.shortcuts.length>0?b.alt=m.shortcuts[0]:m.emojiId&&(b.alt=m.emojiId);p.appendChild(b);this.hasEmoji=!0}}else!this.noEndpoints&&x.navigationEndpoint?(b=document.createElement("a"),b.classList.add("yt-simple-endpoint"),b.setAttribute("spellcheck","false"),this.setDataOnAnchor_(b,x.navigationEndpoint)):b=document.createElement("span"),this.setNodeStyle_(x,b),this.setUpVisibilityLogging_(x,b),b.appendChild(document.createTextNode(A)),
p.appendChild(b)}}this.getRoot().appendChild(p)};
_.Y.isSimpleString_=function(t){return(this.noEndpoints||!t.navigationEndpoint)&&!_.k(t,py)&&(this.noStyles||!(t.bold||t.deemphasize||t.italics||t.strikethrough||t.errorUnderline||t.bracket||t.textColor))&&!t.loggingDirectives};
_.Y.getRawText=function(){return _.R4(this.text)};
_.Y.getFirstRunText=function(){var t;if(((t=this.text)==null?0:t.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.Y.setFirstRunText=function(t){var E;((E=this.text)==null?0:E.runs)&&this.text.runs[0]&&(this.text.runs[0].text=t,this.textChanged_(this.text))};
_.Y.setDataOnAnchor_=function(t,E){var p=this;!_.r("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(E)||this.isSignalServiceEndpoint_(E)?(t.onclick=this.serviceEndpointHandler_(E),pB(t,"#")):Ej8({text:this.text,command:E},function(){fVj(t,E,p.target)})};
_.Y.isServiceEndpoint_=function(t){var E;return!((E=_.k(t==null?void 0:t.commandMetadata,_.hZ))==null||!E.sendPost)};
_.Y.isSignalServiceEndpoint_=function(t){return!!_.k(t,_.XJ)};
_.Y.serviceEndpointHandler_=function(t){var E=this;return function(p){_.JZ(E.hostElement,[t]);p.preventDefault()}};
_.Y.overrideAriaLabelChanged_=function(){var t=this.getRoot();this.enableContentEditable&&t&&t.setAttribute("aria-label",this.overrideAriaLabel)};
_.Y.enableContentEditableChanged_=function(){var t=this,E=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),E=_.ZN(this.hostElement,E),!E.lastChild||E.lastChild instanceof HTMLElement&&E.lastChild.id!=="contenteditable-root"){var p=document.createElement("div");p.id="contenteditable-root";p.setAttribute("contenteditable","true");p.setAttribute("dir","auto");p.onfocus=function(){t.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
E.appendChild(p);this.overrideAriaLabel&&p.setAttribute("aria-label",this.overrideAriaLabel)}}else p=_.OU(this.hostElement).firstChild,p instanceof HTMLElement&&p.id==="contenteditable-root"&&_.ZN(this.hostElement,E).removeChild(p)};
_.Y.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.Y.getNodesForVisibilityLogging_=function(){return _.ae(this.getRoot().childNodes,function(t){var E;return!((E=t.data)==null||!E.trackingParams)})};
_.Y.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.Y.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var t=this.ytRendererBehavior.getVisibilityLogger();t&&this.getNodesForVisibilityLogging_().forEach(function(E){t.reportShown(E)})}};
_.Y.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var t=this.ytRendererBehavior.getVisibilityLogger();t&&this.getNodesForVisibilityLogging_().forEach(function(E){t.reportHidden(E)})}};
_.aE.Object.defineProperties(cg.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.r("enable_mixed_direction_formatted_strings")}}});
cg.prototype.enableContentEditableChanged_=cg.prototype.enableContentEditableChanged_;cg.prototype.overrideAriaLabelChanged_=cg.prototype.overrideAriaLabelChanged_;cg.prototype.ellipsisTruncateChanged_=cg.prototype.ellipsisTruncateChanged_;cg.prototype.textChanged=cg.prototype.textChanged;_.N([_.g(rMT.YtPlaintextBehavior),_.P("design:type",Object)],cg.prototype,"ytPlaintextBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],cg.prototype,"ytComponentBehavior",void 0);
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],cg.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],cg.prototype,"text",void 0);_.N([_.e(),_.P("design:type",Boolean)],cg.prototype,"noEndpoints",void 0);_.N([_.e(),_.P("design:type",Boolean)],cg.prototype,"noStyles",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],cg.prototype,"isDarkTheme",void 0);
_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],cg.prototype,"splitLines",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],cg.prototype,"forceDefaultStyle",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],cg.prototype,"ellipsisTruncate",void 0);_.N([_.e(),_.P("design:type",Object)],cg.prototype,"ignoreShadyDom",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.P("design:type",Boolean)],cg.prototype,"ellipsisTruncateStyling",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.P("design:type",String)],cg.prototype,"ariaLabel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],cg.prototype,"isEmpty",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.P("design:type",Boolean)],cg.prototype,"hasLinkOnly_",void 0);_.N([_.e(),_.P("design:type",Boolean)],cg.prototype,"hasEmoji",void 0);_.N([_.e(),_.P("design:type",Boolean)],cg.prototype,"disableAttributedString",void 0);_.N([_.e(),_.P("design:type",Boolean)],cg.prototype,"isOverlay",void 0);_.N([_.e(),_.P("design:type",Boolean)],cg.prototype,"linkInheritColor",void 0);
_.N([_.e(),_.P("design:type",Boolean)],cg.prototype,"noPreWrap",void 0);_.N([_.e(),_.P("design:type",Boolean)],cg.prototype,"userInput",void 0);_.N([_.e({value:16}),_.P("design:type",Number)],cg.prototype,"emojiSize",void 0);_.N([_.e(),_.P("design:type",String)],cg.prototype,"target",void 0);_.N([_.e(),_.P("design:type",Boolean)],cg.prototype,"enableContentEditable",void 0);_.N([_.e(),_.P("design:type",String)],cg.prototype,"overrideAriaLabel",void 0);
_.N([_.e(),_.P("design:type",Boolean)],cg.prototype,"respectHtmlDir",void 0);_.N([_.e(),_.P("design:type",Boolean)],cg.prototype,"respectLangDir",void 0);_.N([_.Z("plaintextOnly"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],cg.prototype,"useMixedDirectionFormattedStrings",null);_.N([_.e({computed:"computeUseAttributedString(text)"}),_.P("design:type",Boolean)],cg.prototype,"useYtAttributedString",void 0);
_.N([_.GI("text"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cg.prototype,"textChanged",null);_.N([_.GI("ellipsisTruncate"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cg.prototype,"ellipsisTruncateChanged_",null);_.N([_.GI("overrideAriaLabel"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cg.prototype,"overrideAriaLabelChanged_",null);
_.N([_.GI("enableContentEditable"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cg.prototype,"enableContentEditableChanged_",null);_.N([_.p4({is:"yt-formatted-string",disableElementRegistration:!0})],cg);
_.G(cg,"yt-formatted-string",function(){if(d1m===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;kz3===void 0&&(kz3=document.createElement("template"));var U=kz3;p.call(E,U.content.cloneNode(!0),t.content.firstChild);d1m=t}t=d1m;return t});var u6r;var JMm;var IgT;var grs;var t4=function(){var t=_.z.apply(this,arguments)||this;t.focused=!1;t.disabled=!1;t.isOverlay=!1;return t};
_.u(t4,_.z);t4.prototype.triggerDown=function(){if(!this.disabled){_.XM(this.hostElement,"down",!0);var t;(t=this.currentAnimation)==null||t.cancel()}};
t4.prototype.triggerUp=function(){if(!this.disabled){_.XM(this.hostElement,"down",!1);var t=this.fillElement;var E=this.strokeElement;typeof GroupEffect==="function"?(t=new GroupEffect([CXO(t),jZ_(E)]),t=new Animation(t,document.timeline)):t=new vVm(t,E);this.currentAnimation=t;var p;(p=this.currentAnimation)==null||p.play()}};
_.N([_.Nl(".stroke"),_.P("design:type",HTMLElement)],t4.prototype,"strokeElement",void 0);_.N([_.Nl(".fill"),_.P("design:type",HTMLElement)],t4.prototype,"fillElement",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],t4.prototype,"focused",void 0);_.N([_.e(),_.P("design:type",Object)],t4.prototype,"disabled",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],t4.prototype,"isOverlay",void 0);_.N([_.p4({is:"yt-interaction",disableElementRegistration:!0})],t4);
_.G(t4,"yt-interaction",function(){if(grs===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;IgT===void 0&&(IgT=document.createElement("template"));var U=IgT;p.call(E,U.content.cloneNode(!0),t.content.firstChild);grs=t}t=grs;return t},{mode:2});var E7=function(){return _.z.apply(this,arguments)||this};
_.u(E7,_.z);_.Y=E7.prototype;_.Y.ready=function(){var t=this,E=_.ZN(this.hostElement).querySelector("#button");E.addEventListener("focus",function(){jN0||(jN0=new C2T);t.keyboardFocused=jN0.isKeyBoardInUse()});
E.addEventListener("blur",function(){t.keyboardFocused=!1;t.rippleUp_()})};
_.Y.computeTabIndex_=function(t){return t?-1:0};
_.Y.computeButtonAriaPressed_=function(t){if(this.toggleable)return t?"true":"false"};
_.Y.rippleDown_=function(){_.ZN(this.hostElement).querySelector("#interaction").triggerDown()};
_.Y.rippleUp_=function(){_.ZN(this.hostElement).querySelector("#interaction").triggerUp()};
_.Y.onPressedChanged_=function(){var t=_.OU(_.ZN(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.OU(_.ZN(this.hostElement).querySelector("#button")).children[0];t&&(t.active=this.pressed)};
E7.prototype.onPressedChanged_=E7.prototype.onPressedChanged_;E7.prototype.rippleUp_=E7.prototype.rippleUp_;E7.prototype.rippleDown_=E7.prototype.rippleDown_;_.N([_.e(),_.P("design:type",String)],E7.prototype,"label",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],E7.prototype,"disabled",void 0);_.N([_.e(),_.P("design:type",Boolean)],E7.prototype,"pressed",void 0);_.N([_.e(),_.P("design:type",Object)],E7.prototype,"toggleable",void 0);
_.N([_.e(),_.P("design:type",Boolean)],E7.prototype,"untabbable",void 0);_.N([_.e(),_.P("design:type",Boolean)],E7.prototype,"keyboardFocused",void 0);_.N([_.lc("down"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E7.prototype,"rippleDown_",null);_.N([_.lc("up"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E7.prototype,"rippleUp_",null);
_.N([_.GI("pressed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E7.prototype,"onPressedChanged_",null);_.N([_.p4({is:"yt-icon-button",disableElementRegistration:!0})],E7);
_.G(E7,"yt-icon-button",function(){if(JMm===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;u6r===void 0&&(u6r=document.createElement("template"));var U=u6r;p.call(E,U.content.cloneNode(!0),t.content.firstChild);JMm=t}t=JMm;return t},{mode:2});var ZcZ;var OcX=function(){var t=document.body,E=t.appendChild;if(ZcZ===void 0){var p=document.createElement("template");_.J(p,'\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>');
ZcZ=p}p=ZcZ;E.call(t,p.content)};
document.body?OcX():window.addEventListener("DOMContentLoaded",OcX);var XN3=_.CG(["aria-"]),pH={};pH.YtRenderButtonBehavior=[_.y.YtRendererBehavior,_.Tn.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!!_.X3().resolve(_.OB(_.FA))&&_.r("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 t=this.computeHref_(this.endpoint,!0);t?pB(this.elements_.endpoint,t):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){t=this.buttonClass.split(" ");t=_.M(t);for(var E=t.next();!E.done;E=t.next())E=E.value,_.XM(this.hostElement,E,!0),this.elements_.button&&_.XM(this.elements_.button,E,!0),this.elements_.text&&_.XM(this.elements_.text,E,!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&&(t=null,this.buttonAccessibility&&(t=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=t:t?_.VU([_.ks(XN3)],this.elements_.button,"aria-label",t):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var t=_.X3().resolve(_.OB(_.FA));t&&(this.keyboardFocused=t.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.XA("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,_.sm(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.sm(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(t,E){if(E)for(t=E.split(" "),t=_.M(t),E=t.next();!E.done;E=t.next())E=E.value,_.XM(this.hostElement,E,!1),this.elements_.button&&_.XM(this.elements_.button,E,!1),this.elements_.text&&_.XM(this.elements_.text,E,!1)},
buttonIconChanged_:function(t){this.elements_.icon?t?(this.elements_.icon.icon=t,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.sm(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.h2(this.hostElement,"is-paper-button-with-icon",!1)):t&&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"&&_.sm(this.elements_.button).appendChild(this.elements_.icon):_.sm(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.h2(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(t){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,t){var E=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(t){case "yt_icon_button_with_label":E=!0;_.XM(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();t=_.sm(this.elements_.button).firstElementChild;
this.elements_.icon=t;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.sm(this.elements_.endpoint).appendChild(this.elements_.button);_.sm(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.XA("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;_.sm(this.elements_.button).appendChild(this.elements_.text);_.sm(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":E=!0,this.elements_.button=this.getYtIconButton_(),t=_.sm(this.elements_.button).firstElementChild,this.elements_.icon=t,this.setIconActive_(this.elements_.icon),
_.sm(this.elements_.endpoint).appendChild(this.elements_.button)}_.h2(this.hostElement,"is-icon-button",E);_.h2(this.hostElement,"is-paper-button",!E);_.h2(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 p;_.ZN((p=this.container.hostElement)!=null?p:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.sm(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(t){if(t!=void 0||this.disabled)this.disabled=t,this.elements_.button&&(this.elements_.button.disabled=t)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(t){_.r("kevlar_system_icons")&&t&&this.data&&(this.data.isSelected!==void 0?t.active=this.data.isSelected:this.data.isToggled!==void 0&&(t.active=this.data.isToggled))},
observeBasicPalette_:function(t){_.$2(this.hostElement,t)},
disabledChanged_:function(t){this.data&&this.set("data.isDisabled",t)},
onYtButtonTap_:function(t){if(this.disabled)t.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.JZ(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(t=this.disableCommandHandlerOverride,!this.data||!this.data.command||t||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.r("handle_service_request_actions")||_.JZ(this.hostElement,[this.serviceEndpoint]),
_.kT(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.r("handle_service_request_actions")?(t=[],this.serviceEndpoint&&t.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&t.push(this.data.command),t.length&&_.IK(this.hostElement,t,this.hostElement)):this.data&&this.data.command&&(t=this.data.command,t.accountUnlinkCommand||t.accountLinkCommand||t.insertAdCommand||t.insertHighlightMarkerCommand||
t.createLivestreamHighlightClipCommand||t.getVideoUploadFeedbackCommand||t.musicDeletePrivatelyOwnedEntityCommand||t.ypcCancelRecurrenceEndpoint||t.getMultiSelectCommandEndpoint?_.JZ(this.hostElement,[t]):_.IK(this.hostElement,[t],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 t,E=_.ZN((t=this.container.hostElement)!=null?t:this.container);E.lastChild&&E.lastChild.tagName!="STYLE";)try{E.removeChild(E.lastChild)}catch(p){break}},
getYtIconButton_:function(){var t=this.reuseEnabled_()?_.XA("yt-icon-button"):document.createElement("yt-icon-button"),E=_.sm(t).firstElementChild;if(E&&E.is!="yt-icon"){for(E=_.sm(t);E.lastChild;)E.removeChild(E.lastChild);E=null}E||(E=this.getIcon_(),this.setIconActive_(E),_.sm(t).appendChild(E));return t},
reuseEnabled_:function(){return _.r("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.XA("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.XA("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.hxr={};
_.hxr.YtButtonBehavior=[pH.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var t=this.data;t&&(this._setEndpoint(this.computeEndpoint_(t)),this._setServiceEndpoint(this.computeServiceEndpoint_(t)),this._setCommand(this.computeCommand_(t)),this._setButtonIcon(this.computeButtonIcon_(t)),this._setButtonText(this.computeButtonText_(t,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(t)),this._setButtonTooltip(this.computeTooltip_(t)),this._setButtonClass(this.computeButtonClass_(t)),this._setIconPositionType(this.computeIconPositionType_(t)),this.updateRenderedElements())},
setPressedState:function(t){var E;if((E=this.elements_)==null?0:E.button)this.elements_.button.pressed=!!t},
computeIconPositionType_:function(t){return t&&t.iconPosition||null},
computeEndpoint_:function(t){var E=t&&t.navigationEndpoint,p=this.get("data.command.commandMetadata.webCommandMetadata.url"),U=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return E?E:t&&t.command&&t.command.modalEndpoint?t.command:p&&!U&&t.command?t.command:null},
computeServiceEndpoint_:function(t){var E=t&&t.serviceEndpoint,p=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return E?E:p&&t.command?t.command:null},
computeCommand_:function(t){return t&&t.command||null},
computeButtonIcon_:function(t){return t&&t.icon&&t.icon.iconType?_.zh(t.icon.iconType):null},
computeButtonText_:function(t,E){return!E&&t&&t.text||null},
computeAccessibility_:function(t){return this.get("accessibilityData.accessibilityData",t)||t&&t.accessibility||(t&&t.text?{label:this.getSimpleString(t.text)}:null)},
computeTooltip_:function(t){return t?t.isDisabled&&t.disabledTooltip||t.tooltip||null:null},
computeButtonClass_:function(t){var E=t&&t.style?t.style.toLowerCase().replace(/_/g,"-")+" ":"";E+=t&&t.size?t.size.toLowerCase().replace(/_/g,"-")+" ":"";t.colorData&&t.colorData.basicColorPaletteData&&t.colorData.basicColorPaletteData.borderColor&&(E+="palette-with-border");return E.trim()}}];var Ky={};var agm;var exG;var FxT,zxr=function(){return FxT!==void 0?FxT:FxT=document.createElement("template")};
document.head.appendChild(zxr().content);var lgX;var Gz4,nrs=function(){return Gz4!==void 0?Gz4:Gz4=document.createElement("template")};
document.head.appendChild(nrs().content);var NCs;var D1s,sVp=function(){return D1s!==void 0?D1s:D1s=document.createElement("template")};
document.head.appendChild(sVp().content);var Lxf;var P5G=document.head,TCZ=P5G.appendChild,orZ;if(Lxf===void 0){var Wx4=document.createElement("template");_.J(Wx4,"\x3c!--css-build:shady--\x3e");Wx4.content.insertBefore(sVp().content.cloneNode(!0),Wx4.content.firstChild);Lxf=Wx4}orZ=Lxf;TCZ.call(P5G,orZ.content);var $1s=document.head,KxW=$1s.appendChild,vrr;if(NCs===void 0){var yMr=document.createElement("template");_.J(yMr,"\x3c!--css-build:shady--\x3e");yMr.content.insertBefore(nrs().content.cloneNode(!0),yMr.content.firstChild);NCs=yMr}vrr=NCs;KxW.call($1s,vrr.content);var Sxf=document.head,cMT=Sxf.appendChild,tOp;if(lgX===void 0){var EH4=document.createElement("template");_.J(EH4,"\x3c!--css-build:shady--\x3e");EH4.content.insertBefore(zxr().content.cloneNode(!0),EH4.content.firstChild);lgX=EH4}tOp=lgX;cMT.call(Sxf,tOp.content);var pF3;_.vs("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");pF3=_.r("web_button_rework")&&_.HC("BUTTON_REWORK")||_.r("web_button_rework_with_live");_.U7=function(){return _.z.apply(this,arguments)||this};
_.u(_.U7,_.z);_.U7.prototype.created=function(){this.openPopupConfig=_.qO("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.U7.prototype.onYtNavigate_=function(t){var E=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(t.detail.endpoint);E&&(this.ytOpenPopupBehavior.openPopup(E),t.stopPropagation(),t.preventDefault())};
_.aE.Object.defineProperties(_.U7,{template:{configurable:!0,enumerable:!0,get:function(){if(exG===void 0){var t=document.createElement("template");_.J(t,"\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");t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);
var E=t.content,p=E.insertBefore;agm===void 0&&(agm=document.createElement("template"));var U=agm;p.call(E,U.content.cloneNode(!0),t.content.firstChild);exG=t}t=exG;return t}}});
_.U7.prototype.onYtNavigate_=_.U7.prototype.onYtNavigate_;_.N([_.g(_.Pg.YtOpenPopupBehavior),_.P("design:type",Object)],_.U7.prototype,"ytOpenPopupBehavior",void 0);_.N([_.g(_.hxr.YtButtonBehavior),_.P("design:type",Object)],_.U7.prototype,"ytButtonBehavior",void 0);_.N([_.lc("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],_.U7.prototype,"onYtNavigate_",null);
_.N([_.p4({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:pF3})],_.U7);var U8p;var x80=_.r("web_button_rework")&&_.HC("BUTTON_REWORK")||_.r("web_button_rework_with_live"),xt=function(){var t=_.z.apply(this,arguments)||this;t.isPressed=!1;t.forceIconButton=!1;t.forceIconOnly=!1;t.forceModernIconButton=!1;t.skipCommandHandling=!1;t.alignByText=!1;t.fitToVisibleBounds=!0;t.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};t.onTap=function(E){_.kT(t.hostElement,"yt-service-request-sent-button-renderer",E)};
return t};
_.u(xt,_.z);_.Y=xt.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.Y.onClick=function(t){var E,p=this.disabled||((E=this.data)==null?void 0:E.isDisabled);E=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");p&&E&&t.stopPropagation()};
_.Y.computeIcon=function(){var t,E,p=(t=this.data)==null?void 0:(E=t.icon)==null?void 0:E.iconType;if(p)return _.zh(p)};
_.Y.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.Y.handleUpdateButtonAction=function(t){t=_.k(t,EFX);var E=_.k(t==null?void 0:t.updatedButton,_.Ry);if(this.data&&t&&E){var p=this.data;p.targetId&&t.targetId&&p.targetId===t.targetId&&(this.data=E)}};
_.aE.Object.defineProperties(xt.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var t=this;if(this.data){var E=ZXO({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.kT(t.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.kT(t.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});E.alignByText=this.alignByText;return E}}}});
_.aE.Object.defineProperties(xt,{template:{configurable:!0,enumerable:!0,get:function(){if(U8p===void 0){var t=document.createElement("template");_.J(t,'\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>');U8p=t}t=U8p;return t}}});
xt.prototype.onClick=xt.prototype.onClick;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],xt.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],xt.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],xt.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],xt.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],xt.prototype,"isPressed",void 0);
_.N([_.e(),_.P("design:type",Object)],xt.prototype,"forceIconButton",void 0);_.N([_.e(),_.P("design:type",Object)],xt.prototype,"forceIconOnly",void 0);_.N([_.e(),_.P("design:type",Object)],xt.prototype,"forceModernIconButton",void 0);_.N([_.e(),_.P("design:type",Object)],xt.prototype,"skipCommandHandling",void 0);_.N([_.e(),_.P("design:type",Object)],xt.prototype,"alignByText",void 0);_.N([_.e(),_.P("design:type",Object)],xt.prototype,"buttonTooltipPosition",void 0);
_.N([_.e(),_.P("design:type",Object)],xt.prototype,"fitToVisibleBounds",void 0);_.N([_.e({computed:"computeTooltip(data)"}),_.P("design:type",Object)],xt.prototype,"tooltip",void 0);_.N([_.e(),_.P("design:type",Object)],xt.prototype,"overrides",void 0);_.N([_.e(),_.P("design:type",Boolean)],xt.prototype,"disabled",void 0);_.N([_.lc("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],xt.prototype,"onClick",null);
_.N([_.Z("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.P("design:type",Object),_.P("design:paramtypes",[])],xt.prototype,"computedButtonShape",null);_.N([_.p4({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!x80,cssBuildOptOut:!0}),_.p4({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!x80,cssBuildOptOut:!0})],xt);var AVX;var Y6m;var A4=function(){var t=_.z.apply(this,arguments)||this;t.empty_=!0;t.loadTime=Infinity;t.pendingPaint=!1;t.hasChange_=!1;t.oldThumbnail_=null;t.oldDelayedSrc_="";t.objectURL_=null;return t};
_.u(A4,_.z);_.Y=A4.prototype;_.Y.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.Y.ready=function(){var t=this.shouldShowPlaceholder_();_.XM(this.hostElement,"no-transition",!0);t&&this.hostElement.classList.add("with-placeholder")};
_.Y.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.Y.isThumbPreloaded_=function(t){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",t)};
_.Y.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||MOf};
_.Y.computeThumbnailSrc_=function(t){return t&&t.thumbnails?_.d4(t.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.Y.computeAlt_=function(){var t=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&t||""};
_.Y.thumbnailChanged_=function(){var t=_.M([this.thumbnail,this.oldThumbnail_]),E=t.next().value;t=t.next().value;this.oldThumbnail_=E;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(t=this.computeThumbnailSrc_(t),this.computeThumbnailSrc_(E)===t))return;_.r("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(E)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):E&&_.HC("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.XE(this,this.onReload_):_.XE(this,this.onShow_):this.resetImage_();E&&(this.hostElement.style.opacity=""+E.opacity)}};
_.Y.delayedSrcChanged_=function(){var t=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===t||this.resetImage_()};
_.Y.setSrc_=function(t){t?(_.ZN(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.ZN(this.hostElement).querySelector("#img").src=t):(_.ZN(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.Y.resetImage_=function(){XND(this.hostElement);this.empty_=!0;this.setSrc_(MOf);this.ytRendererBehavior.invalidate(!1)};
_.Y.observePlaceholderColor_=function(){var t=this.thumbnail&&this.thumbnail.placeholderColor;t?this.hostElement.style.backgroundColor=_.SL(t):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.Y.onLoad_=function(){_.ZN(this.hostElement).querySelector("#img").src&&_.ZN(this.hostElement).querySelector("#img").src!==MOf&&(Oct(this.hostElement),this.notifyOnLoaded&&_.kT(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.Y.onError_=function(){var t=this;if(_.r("web_use_cache_for_image_fallback"))GzO(_.ZN(this.hostElement).querySelector("#img").src).then(function(E){t.objectURL_=_.cw(E).toString();t.setSrc_(t.objectURL_)}).catch(function(){_.r("kevlar_woffle_fallback_image")&&t.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.Y.onPrescanVisible=function(){this.onShow_()};
_.Y.onVisible=function(){if(_.r("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.Y.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var t=this.computeSrc_();t!==_.ZN(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(t))}};
_.Y.onReload_=function(){this.empty_=!1;var t=this.computeSrc_();t!==_.ZN(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(t))};
_.Y.shouldShowPlaceholder_=function(){return _.r("kevlar_thumbnail_bg")};
A4.prototype.observePlaceholderColor_=A4.prototype.observePlaceholderColor_;A4.prototype.delayedSrcChanged_=A4.prototype.delayedSrcChanged_;A4.prototype.thumbnailChanged_=A4.prototype.thumbnailChanged_;_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],A4.prototype,"alt",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],A4.prototype,"ariaHidden",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],A4.prototype,"ariaLabel",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],A4.prototype,"hidden",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],A4.prototype,"id",void 0);_.N([_.g(_.CS.YtVisibilityBehavior),_.P("design:type",Object)],A4.prototype,"ytVisibilityBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],A4.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",String)],A4.prototype,"delayedSrc",void 0);
_.N([_.e(),_.P("design:type",Object)],A4.prototype,"thumbnail",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],A4.prototype,"loaded",void 0);_.N([_.e(),_.P("design:type",Boolean)],A4.prototype,"notifyOnLoaded",void 0);_.N([_.e(),_.P("design:type",Number)],A4.prototype,"height",void 0);_.N([_.e(),_.P("design:type",Number)],A4.prototype,"width",void 0);_.N([_.e({value:function(){return"width"}}),
_.P("design:type",String)],A4.prototype,"dimension",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],A4.prototype,"fit",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],A4.prototype,"fitHeight",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],A4.prototype,"fitWidth",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],A4.prototype,"objectFit",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],A4.prototype,"objectPosition",void 0);_.N([_.e(),_.P("design:type",String)],A4.prototype,"preferredThumbnail",void 0);_.N([_.e({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.P("design:type",String)],A4.prototype,"alt_",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],A4.prototype,"sharedTooltipText",void 0);
_.N([_.e(),_.P("design:type",Boolean)],A4.prototype,"ftlEligible",void 0);_.N([_.e({value:void 0}),_.P("design:type",String)],A4.prototype,"observeHiddenOption",void 0);_.N([_.e({value:"observe_once"}),_.P("design:type",String)],A4.prototype,"observePrescanOption",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],A4.prototype,"roundedContainer",void 0);
_.N([_.P3("thumbnail"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A4.prototype,"thumbnailChanged_",null);_.N([_.P3("delayedSrc"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A4.prototype,"delayedSrcChanged_",null);_.N([_.GI("thumbnail.placeholderColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A4.prototype,"observePlaceholderColor_",null);
_.N([_.p4({is:"yt-img-shadow",disableElementRegistration:!0})],A4);var MOf=_.HC("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.Ol()(A4,"yt-img-shadow",function(){if(Y6m===void 0){var t=document.createElement("template");_.J(t,'\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">');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;AVX===void 0&&(AVX=document.createElement("template"));var U=AVX;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Y6m=t}t=Y6m;return t},{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 NBO;_.Yt=new _.gM("SCREEN_MANAGER_TOKEN");NBO=new _.gM("LOG_INITIAL_SCREEN_TOKEN");var m8s=Se({entities:{}});_.MY=cs(m8s)(m8s.entities,{selectSfvAudioItemPlaybackState:function(t,E){var p,U;t=(U=_.hj(t,"sfvAudioItemCurrentlyPlayingEntity",E))!=null?U:void 0;return(p=t==null?void 0:t.sfvAudioItemPlaybackState)!=null?p:void 0},
playlistLoopStateEntitySelector:hEJ,toggleMenuServiceItemEntitySelector:adl});_.m3=_.l(function(t){function E(v){return _.k(v,_.Cz)}
function p(){var v=U().isTogglingDisabled||I()&&U().toggledIsTogglingDisabled,YL=v||Q()?I():!I();O(YL);F(!1);if(!v){var bY;(bY=m)==null||bY(!!YL)}var kL;((kL=A)==null?0:kL())||_.$3(_.X3().resolve(_.Yt),U().trackingParams);var R0;if(!YL||!E(U().defaultButtonViewModel)||(R0=A)!=null&&R0()){var j$;!E(U().toggledButtonViewModel)||((j$=A)==null?0:j$())||_.$3(_.X3().resolve(_.Yt),E(U().toggledButtonViewModel).trackingParams)}else _.$3(_.X3().resolve(_.Yt),E(U().defaultButtonViewModel).trackingParams)}
var U=t.data,x=t.buttonShapeOverrides,A=t.disableExplicitClickLogging,m=t.onToggle,b=t.style,f=t.useOutlinedIcon,B=t.className,R=function(){var v,YL;return I()?(v=t.animatedTextPropsToggled)==null?void 0:v.call(t):(YL=t.animatedTextPropsDefault)==null?void 0:YL.call(t)},V=_.KN(function(){return R()?Object.assign({},R(),{shouldAnimate:a()}):void 0},void 0,"Zp4uoe"),Q=function(){var v;
return((v=W())==null?void 0:v.isToggled)!==void 0},C=_.M(_.j5(function(){var v,YL,bY;
return Q()?(v=W())==null?void 0:v.isToggled:(bY=x==null?void 0:(YL=x())==null?void 0:YL.toggled)!=null?bY:U().isToggled})),d=C.next().value;
C=C.next().value;var I=d,O=C;C=_.M(_.j5(function(){var v,YL;return(v=t.animatedTextPropsToggled)==null?void 0:(YL=v.call(t))==null?void 0:YL.shouldAnimate}));
d=C.next().value;C=C.next().value;var a=d,F=C;d=_.M(_.Py(!1,void 0,"mq3Zfe"));var L=d.next().value,D=d.next().value,W=_.D4(function(v){a:{var YL=U().entityKey,bY=U().toggledStateEntitySelectorType;if(bY)switch(bY){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!YL)break;v=_.MY.selectSfvAudioItemPlaybackState(v,YL);if(v==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){v={isToggled:!0};break a}if(v){v={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":v={isToggled:_.ldt(v).includes("engagement-panel-comments-section")};
break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":v={isToggled:_.ldt(v).includes("engagement-panel-live-chat-item-section")};break a;default:_.qW(new _.cC("Error: entitySelectorType defined but not matched in selector.",v,bY))}v=void 0}return v}),K=function(){return Object.assign({},x==null?void 0:x(),{onToggle:p,
toggleable:!0,toggled:I(),focused:L()})};
return _.H("toggle-button-view-model",{"on:focusin":_.aC(function(){var v=_.X3().resolve(_.OB(_.FA));v&&D(v.isKeyBoardInUse());return!1}),
"on:focusout":_.aC(function(){D(!1);return!1})},_.H(_.w,{cond:function(){return I()?E(U().toggledButtonViewModel):E(U().defaultButtonViewModel)},
then:function(v){return _.H(_.D5,{data:v,className:B,style:b,useOutlinedIcon:f,buttonOverrides:K,animatedTextProps:V})}}))},"fa");
_.m3.idomCompat={callbacks:{onToggle:!0}};_.k2(_.l(function(t){return _.H("yt-toggle-button-view-model",{class:function(){var E;return(E=t.scopingClassName)==null?void 0:E.call(t)}},_.H(_.m3,{data:function(){var E;
return(E=t.data)==null?void 0:E.call(t)},
buttonShapeOverrides:function(){var E;return(E=t.overrides)==null?void 0:E.call(t)},
animatedTextPropsDefault:function(){var E;return(E=t.animatedTextPropsDefault)==null?void 0:E.call(t)},
animatedTextPropsToggled:function(){var E;return(E=t.animatedTextPropsToggled)==null?void 0:E.call(t)},
disableExplicitClickLogging:function(){var E;return(E=t.disableExplicitClickLogging)==null?void 0:E.call(t)},
onToggle:function(E){var p;return(p=t.onToggle)==null?void 0:p.call(t,E)},
style:function(){var E;return(E=t.style)==null?void 0:E.call(t)},
useOutlinedIcon:function(){var E;return(E=t.useOutlinedIcon)==null?void 0:E.call(t)},
className:function(){var E;return(E=t.className)==null?void 0:E.call(t)}}))},"ga"),"yt-toggle-button-view-model",{props:{data:_.uu,
buttonShapeOverrides:_.uu,overrides:_.uu,animatedTextPropsDefault:_.uu,animatedTextPropsToggled:_.uu,disableExplicitClickLogging:_.uu,onToggle:_.Cy,style:_.uu,useOutlinedIcon:_.uu,className:_.uu,scopingClassName:_.uu}});var bI=function(){return _.z.apply(this,arguments)||this};
_.u(bI,_.z);bI.prototype.onTap=function(t){t.stopPropagation();t=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.pr("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:t})):this.ytLiveChatReduxBehavior.dispatch(_.P9("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:t}))};
_.aE.Object.defineProperties(bI.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.engagementState)==null?void 0:t.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var t=_.k(this.data.toggleButton,_.rc),E;if(Number(((E=this.likeCountState)==null?void 0:E.likeCountIfIndifferentNumber)||"0")===0){var p;E=((p=this.data.likeCountPlaceholder)==null?void 0:p.content)||""}else{var U,x,A;E=((U=this.likeCountState)==null?void 0:(x=U.likeCountIfIndifferent)==null?void 0:x.content)||((A=this.data.likeCountPlaceholder)==null?void 0:A.content)||""}var m,b;p=((m=this.likeCountState)==null?void 0:(b=
m.likeCountIfLiked)==null?void 0:b.content)||"1";m=_.k(t.toggledButtonViewModel,_.Cz);return Object.assign({},t,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.k(t.defaultButtonViewModel,_.Cz),{title:E})},toggledButtonViewModel:{buttonViewModel:Object.assign({},m,{title:p})}})}}}});
bI.prototype.onTap=bI.prototype.onTap;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],bI.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],bI.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Bg),_.P("design:type",Object)],bI.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],bI.prototype,"data",void 0);
_.N([_.e({selectorArgs:["data.likeCountEntityKey"],selector:GUl}),_.P("design:type",Object)],bI.prototype,"likeCountState",void 0);_.N([_.e({selectorArgs:["data.engagementStateKey"],selector:oH8}),_.P("design:type",Object)],bI.prototype,"engagementState",void 0);_.N([_.Z("data","engagementState"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],bI.prototype,"isLiked",null);
_.N([_.Z("data","likeCountState","isLiked"),_.P("design:type",Object),_.P("design:paramtypes",[])],bI.prototype,"toggleButton",null);_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],bI.prototype,"onTap",null);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],bI);
_.G(bI,"yt-live-chat-like-button-view-model",function(){if(qx4===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;icZ===void 0&&(icZ=document.createElement("template"));var U=icZ;p.call(E,U.content.cloneNode(!0),t.content.firstChild);qx4=t}t=qx4;return t},{mode:0});var bxr;var ixZ;var iI=function(){return _.z.apply(this,arguments)||this};
_.u(iI,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],iI.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],iI.prototype,"data",void 0);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],iI);
_.G(iI,"yt-live-chat-paid-message-footer-renderer",function(){if(ixZ===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;bxr===void 0&&(bxr=document.createElement("template"));var U=bxr;p.call(E,U.content.cloneNode(!0),t.content.firstChild);ixZ=t}t=ixZ;return t},{mode:0});var q6G;var HxZ;var fn0;var B_s,wFp=function(){if(B_s!==void 0)return B_s;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;fn0===void 0&&(fn0=document.createElement("template"));var U=fn0;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return B_s=t};var qY=function(){return _.z.apply(this,arguments)||this};
_.u(qY,_.z);qY.prototype.onTap=function(t){t.stopPropagation()};
_.aE.Object.defineProperties(qY.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var t=_.k(this.data.replyButton,_.Cz),E,p,U,x,A,m,b,f=Number(((E=this.replyCountState)==null?void 0:E.replyCountNumber)||"0")===0?(p=this.data)==null?void 0:(U=p.replyCountPlaceholder)==null?void 0:U.content:((x=this.replyCountState)==null?void 0:(A=x.replyCount)==null?void 0:A.content)||((m=this.data)==null?void 0:(b=m.replyCountPlaceholder)==null?void 0:b.content)||"",B;return Object.assign({},
t,{title:f,accessibilityText:(B=this.replyCountState)==null?void 0:B.replyButtonAccessibilityText})}}}});
_.aE.Object.defineProperties(qY,{template:{configurable:!0,enumerable:!0,get:function(){return wFp()}}});
qY.prototype.onTap=qY.prototype.onTap;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],qY.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],qY.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Bg),_.P("design:type",Object)],qY.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],qY.prototype,"data",void 0);
_.N([_.e({selectorArgs:["data.replyCountEntityKey"],selector:function(t,E){return _.hj(t.entities,"replyCountEntity",E)}}),
_.P("design:type",Object)],qY.prototype,"replyCountState",void 0);_.N([_.Z("data","replyCountState"),_.P("design:type",Object),_.P("design:paramtypes",[])],qY.prototype,"buttonViewModel",null);_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],qY.prototype,"onTap",null);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],qY);_.G(qY,"yt-live-chat-reply-button-view-model",function(){return wFp()},{mode:0});var Rl3;var VOZ;var Hd=function(){var t=_.z.apply(this,arguments)||this;t.ariaLabel="";return t};
_.u(Hd,_.z);
Hd.prototype.dataChanged=function(){for(var t=(0,_.aG)(_.ZN(this.hostElement).querySelector("#image"));t.firstChild;)t.removeChild(t.firstChild);if(this.data)if(this.data.icon){var E=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(E.polymerController.icon="yt-sys-icons:shield_empty",E.polymerController.defaultToFilled=!0):E.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();t.appendChild(E)}else if(this.data.customThumbnail){E=document.createElement("img");
var p=_.kzD(this.data.customThumbnail.thumbnails,16);p?(E.src=p,t.appendChild(E),E.setAttribute("alt",this.hostElement.ariaLabel||"")):_.qW(new _.cC("Could not compute URL for thumbnail",this.data.customThumbnail))}};
Hd.prototype.identity=function(t){return t};
Hd.prototype.computeType=function(t){return ao(t||void 0)};
Hd.prototype.dataChanged=Hd.prototype.dataChanged;_.N([_.e(),_.P("design:type",Object)],Hd.prototype,"data",void 0);_.N([_.e({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.P("design:type",Object)],Hd.prototype,"ariaLabel",void 0);_.N([_.e({computed:"computeType(data)",reflectToAttribute:!0}),_.P("design:type",String)],Hd.prototype,"type",void 0);
_.N([_.e({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.P("design:type",String)],Hd.prototype,"sharedTooltipText",void 0);_.N([_.e({reflectToAttribute:!0,value:function(){return _.r("enable_new_shield_moderator_badge")}}),
_.P("design:type",Boolean)],Hd.prototype,"enableNewModeratorBadge",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Hd.prototype,"dataChanged",null);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],Hd);
_.G(Hd,"yt-live-chat-author-badge-renderer",function(){if(VOZ===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;Rl3===void 0&&(Rl3=document.createElement("template"));var U=Rl3;p.call(E,U.content.cloneNode(!0),t.content.firstChild);VOZ=t}t=VOZ;return t},{mode:0});var QZ4;var CX4;var fH=function(){return _.z.apply(this,arguments)||this};
_.u(fH,_.z);_.Y=fH.prototype;_.Y.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"}}}}};
_.Y.computeBadgesInsideChip=function(t){return t?t.filter(function(E){return ao(E.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.Y.computeBadgesOutsideChip=function(t){return this.prependChatBadges||!t?[]:t.filter(function(E){E=ao(E.liveChatAuthorBadgeRenderer);return E!=="verified"&&E!=="owner"})};
_.Y.computeBadgesBeforeChip=function(t){return this.prependChatBadges&&t?t.filter(function(E){E=ao(E.liveChatAuthorBadgeRenderer);return E!=="verified"&&E!=="owner"}):[]};
_.Y.computeIsHighlighted=function(t,E){var p=!!Mtl(t,"owner"),U=!!Mtl(t,"verified");t=!!Mtl(t,"moderator");return(p||U&&!t)&&!E};
_.Y.computeAuthorType=function(t){return Ydi(t)};
_.Y.computeAuthorClass=function(t,E){return E?(t?t+" ":"")+"single-line":t};
_.Y.onSeedColorChanged=function(){_.r("live_chat_author_name_color_usernames")||_.r("live_chat_seed_color_usernames")||_.r("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):_.r("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
fH.prototype.onSeedColorChanged=fH.prototype.onSeedColorChanged;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],fH.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],fH.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],fH.prototype,"authorName",void 0);_.N([_.e(),_.P("design:type",Array)],fH.prototype,"authorBadges",void 0);
_.N([_.e({computed:"computeAuthorType(authorBadges)"}),_.P("design:type",String)],fH.prototype,"authorType",void 0);_.N([_.e({computed:"computeAuthorClass(authorType, singleLine)"}),_.P("design:type",String)],fH.prototype,"authorClass",void 0);_.N([_.e({computed:"computeBadgesInsideChip(authorBadges)"}),_.P("design:type",Array)],fH.prototype,"badgesInsideChip",void 0);_.N([_.e({computed:"computeBadgesOutsideChip(authorBadges)"}),_.P("design:type",Array)],fH.prototype,"badgesOutsideChip",void 0);
_.N([_.e({computed:"computeBadgesBeforeChip(authorBadges)"}),_.P("design:type",Array)],fH.prototype,"badgesBeforeChip",void 0);_.N([_.e({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.P("design:type",Boolean)],fH.prototype,"isHighlighted",void 0);_.N([_.e({reflectToAttribute:!0,value:function(){return _.r("enable_new_shield_moderator_badge")}}),
_.P("design:type",Boolean)],fH.prototype,"enableNewModeratorTextColor",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],fH.prototype,"singleLine",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],fH.prototype,"disableHighlighting",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],fH.prototype,"dashboardMoneyFeed",void 0);_.N([_.e({value:_.r("live_chat_prepend_badges"),reflectToAttribute:!0}),_.P("design:type",Boolean)],fH.prototype,"prependChatBadges",void 0);
_.N([_.e(),_.P("design:type",String)],fH.prototype,"authorNameColor",void 0);_.N([_.Nl("#author-name"),_.P("design:type",HTMLDivElement)],fH.prototype,"username",void 0);_.N([_.GI("authorNameColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fH.prototype,"onSeedColorChanged",null);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],fH);
_.G(fH,"yt-live-chat-author-chip",function(){if(CX4===void 0){var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;QZ4===void 0&&(QZ4=document.createElement("template"));var U=QZ4;p.call(E,U.content.cloneNode(!0),t.content.firstChild);CX4=t}t=CX4;return t},{mode:0});var jZ0;var rVr;var Bd=function(){var t=_.z.apply(this,arguments)||this;t.debounceCommand=_.tI(function(E){t.ytComponentBehavior.resolveCommand(E)},1500);
return t};
_.u(Bd,_.z);Bd.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var t=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",E,p,U=this.isHearted?(E=this.data)==null?void 0:E.unheartCommand:(p=this.data)==null?void 0:p.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.pr("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:t}));(t=_.AJ(U))&&this.debounceCommand(t)}};
_.aE.Object.defineProperties(Bd.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var t,E;if(!((t=this.data)==null?0:(E=t.creatorThumbnail)==null?0:E.sources))return{};t={thumbnails:[]};E={};E.url=this.data.creatorThumbnail.sources[0].url;t.thumbnails.push(E);return t}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.engagementState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((E=this.engagementState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.engagementState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((E=this.engagementState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.engagementState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return((t=this.engagementState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((E=this.engagementState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((p=this.engagementState)==null?void 0:p.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}}});
Bd.prototype.onTap=Bd.prototype.onTap;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Bd.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Bd.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Bg),_.P("design:type",Object)],Bd.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Bd.prototype,"data",void 0);
_.N([_.e({selectorArgs:["data.engagementStateKey"],selector:oH8}),_.P("design:type",Object)],Bd.prototype,"engagementState",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Bd.prototype,"thumbnailDetails",null);_.N([_.Z("data","engagementState"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Bd.prototype,"isHearted",null);_.N([_.Z("data","engagementState"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Bd.prototype,"isEditable",null);
_.N([_.Z("data","engagementState"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Bd.prototype,"showCreatorView",null);_.N([_.Z("data","engagementState"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Bd.prototype,"showButton",null);_.N([_.Z("data","isHearted"),_.P("design:type",String),_.P("design:paramtypes",[])],Bd.prototype,"label",null);_.N([_.Z("data","isHearted"),_.P("design:type",Object),_.P("design:paramtypes",[])],Bd.prototype,"heartHoverText",null);
_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Bd.prototype,"onTap",null);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],Bd);
_.G(Bd,"yt-live-chat-creator-heart-view-model",function(){if(rVr===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;jZ0===void 0&&(jZ0=document.createElement("template"));var U=jZ0;p.call(E,U.content.cloneNode(!0),t.content.firstChild);rVr=t}t=rVr;return t},{mode:0});var k8f=function(){this.internalMap={}};
_.Y=k8f.prototype;_.Y.contains=function(t){return Object.prototype.hasOwnProperty.call(this.internalMap,t)};
_.Y.get=function(t){if(this.contains(t))return this.internalMap[t]};
_.Y.set=function(t,E){this.internalMap[t]=E};
_.Y.getKeys=function(){return Object.keys(this.internalMap)};
_.Y.remove=function(t){delete this.internalMap[t]};var ww=function(){this.mappings=new k8f;this.errorCallbacks=new Set};
ww.prototype.getModuleId=function(t){return t.serviceId.getModuleId()};
ww.prototype.get=function(t){a:{var E=this.mappings.get(t.toString());switch(E.type){case "mapping":t=E.value;break a;case "factory":E=E.value();this.mappings.set(t.toString(),{type:"mapping",value:E});t=E;break a;default:t=_.UC(E)}}return t};
ww.prototype.registerService=function(t,E){this.mappings.set(t.toString(),{type:"mapping",value:E});return t};
ww.prototype.onLoadError=function(t){var E=this;this.errorCallbacks.add(t);return function(){E.errorCallbacks.delete(t)}};
new ww;var d83=function(){};
_.Y=d83.prototype;
_.Y.JSC$14445_getRequest=function(t,E,p){E=E===void 0?{}:E;p=p===void 0?hBr:p;var U=E;if(this.isNavigationCommand()){var x,A=(x=_.k(t==null?void 0:t.commandMetadata,_.hZ))==null?void 0:x.url;U=_.H3(t.clickTrackingParams,!0,!1,A,this.JSC$14445_getClientScreen(U))}else U=_.H3(t.clickTrackingParams,!1,this.includeCsn);U={context:U};if(x=this.getExtension(t))return this.JSC$14445_buildRequest(U,x,E),x=this.getApiUrl(t),A=Object.assign({},{command:t},this.getRequestConfig(t,E)),U={input:x,requestShell:iO(x),
innerTubeRequest:U,config:A},U.config.authStrategy?U.config.authStrategy.identity=p:U.config.authStrategy={identity:p},(t=this.JSC$14445_getRequestKey(t,E))&&!U.config.requestKey&&(U.config.requestKey=t),U;t=new _.cC("Error: Failed to create Request from Command.",t);_.bV(t)};
_.Y.getApiUrl=function(t){var E=_.Cf(this.getApiPaths(t)),p;(t=(p=_.k(t.commandMetadata,_.hZ))==null?void 0:p.apiUrl)&&(E=t);return K0E($w_(E))};
_.Y.isNavigationCommand=function(){return!1};
_.Y.JSC$14445_getClientScreen=function(){};
_.Y.JSC$14445_getRequestKey=function(){};
_.Y.getRequestConfig=function(){};
_.aE.Object.defineProperties(d83.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var RU=function(){};
_.u(RU,d83);RU.prototype.JSC$14452_getStoreKey=function(){};
RU.prototype.JSC$14445_getRequestKey=function(t,E){E=E===void 0?{}:E;return this.JSC$14452_getStoreKey(t,E)};var Vd=function(){};
_.u(Vd,RU);Vd.prototype.JSC$14445_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:iO("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
Vd.prototype.getApiPaths=function(){return[]};
Vd.prototype.getExtension=function(){};
Vd.prototype.JSC$14445_buildRequest=function(){};var ui0={},JVr=(ui0.GET_DATASYNC_IDS=A8(Vd),ui0);var Ins,gHs,Zx0,Fao,Qd,anf,OxX,hl3,XFs;Ins="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");gHs=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PanelResponse"];
_.iA=function(t,E,p,U,x,A,m,b,f){this.endpointMap=t;this.networkManager=E;this.authService=p;this.responseProcessorMap=U;this.innertubeResponseStore=x;this.contextProcessors=A;this.asyncContextProcessors=m;this.localInnertubeRouter=b;this.requestSequencer=f;this.inflightRequests=new Map;t.signalEndpointMap||(t.signalEndpointMap={});t.signalEndpointMap=Object.assign({},JVr,t.signalEndpointMap)};
Zx0=function(t,E,p,U,x,A,m,b,f){if(_.iA.instance!==void 0){if(U=_.iA.instance,t=[t!==U.endpointMap,E!==U.networkManager,p!==U.authService,x!==U.innertubeResponseStore,A!==U.contextProcessors,m!==U.asyncContextProcessors,b!==U.localInnertubeRouter],t.some(function(B){return B}))throw new _.cC("InnerTubeTransportService is already initialized",t);
}else _.iA.instance=new _.iA(t,E,p,U,x,A,m,b,f)};
_.H9=function(t,E,p){var U=U===void 0?hBr:U;var x=OxX(t,E);return x?new _.PE(function(A,m){var b,f,B,R,V;return _.q(function(Q){switch(Q.nextAddress){case 1:return Q.yield(x,2);case 2:b=Q.yieldResult;f=b.JSC$14445_getRequest(E,p,U);if(!f){m(new _.cC("Error: Failed to build request for command.",E));Q.jumpTo(0);break}UU(f.input);R=((B=f.requestShell)==null?void 0:B.mode)==="cors"?"cors":void 0;if(t.authService.syncHeaders){V=XFs(f.config,R);Q.jumpTo(4);break}return Q.yield(hl3(f.config,R),5);case 5:V=
Q.yieldResult;case 4:A(anf(t,f,V)),_.Do(Q)}})}):_.S5(new _.cC("Error: No request builder found for command.",E))};
Fao=function(t,E,p,U){var x=x===void 0?hBr:x;var A,m,b,f,B,R,V,Q,C,d,I,O,a,F,L,D,W,K;return _.q(function(v){switch(v.nextAddress){case 1:A=sXi(E,t.endpointMap);if(!A)throw new _.cC("Error: No streaming request builder found for command",E);m=A.JSC$14445_getRequest(E,p,x);if(!m)throw new _.cC("Failed to build YtRequest for streaming Command",E);if((b=t.localInnertubeRouter)==null||!b.shouldPreferLocalResponse(m.input,m.innerTubeRequest)){v.jumpTo(2);break}return v.yield(t.localInnertubeRouter.localInnertubeResponse(m.input,
m.innerTubeRequest),3);case 3:return f=v.yieldResult,B={},f.playerResponse&&(Qd(t,f.playerResponse,m),B.player=f.playerResponse,(R=U)==null||R(B,f)),f.watchNextResponse&&(Qd(t,f.watchNextResponse,m),B.content=f.watchNextResponse,(V=U)==null||V(B,f)),v.return(B);case 2:C=((Q=m.requestShell)==null?void 0:Q.mode)==="cors"?"cors":void 0;if(t.authService.syncHeaders){d=XFs(m.config,C);v.jumpTo(4);break}return v.yield(hl3(m.config,C),5);case 5:d=v.yieldResult;case 4:return a=(O=(I=m.requestShell)==null?
void 0:I.headers)!=null?O:{},m.requestShell=Object.assign({},m.requestShell,{headers:Object.assign({},a,d)}),F=Object.assign({},m.requestShell),L=JSON.stringify(m.innerTubeRequest),m.requestShell.method==="POST"&&(F=Object.assign({},F,{body:L})),D=function(YL,bY){Qd(t,bY.playerResponse||bY.watchNextResponse||bY.reelItemWatchResponse||bY.reelWatchSequenceResponse,m);U==null||U(YL,bY);_.r("web_watch_stop_scheduler_on_player_response")&&bY.playerResponse&&lUZ()},W={},v.yield(el0(t.networkManager,m.input,
F,D),6);
case 6:return W=v.yieldResult,((K=m.config)==null?0:K.responseTick)&&_.SR(m.config.responseTick),v.return(W)}})};
_.rY=function(t,E,p,U,x){x=x===void 0?{authStrategy:{identity:hBr}}:x;var A=A===void 0?!0:A;var m=function(){};
m=xFY(p5i(p));E.context||(E.context=_.H3(U,A));return new _.PE(function(b){var f,B,R,V,Q;return _.q(function(C){if(C.nextAddress==1)return f=$w_(p),B=_.bO(f),t.authService.syncHeaders?(R=XFs(x,B),C.jumpTo(2)):C.yield(hl3(x,B),3);C.nextAddress!=2&&(R=C.yieldResult);V=K0E($w_(p));Q={input:V,requestShell:iO(V),innerTubeRequest:E,config:x};b(anf(t,Q,R,m));_.Do(C)})})};
Qd=function(t,E,p){var U;if(E&&!(E==null?0:(U=E.sequenceMetaData)==null?0:U.skipProcessing)&&t.responseProcessorMap){U=_.M(Ins);for(var x=U.next();!x.done;x=U.next())x=x.value,t.responseProcessorMap[x]&&t.responseProcessorMap[x].handleResponse(E,p)}};
anf=function(t,E,p,U){U=U===void 0?function(){}:U;
var x,A,m,b,f,B,R,V,Q,C,d,I,O,a,F,L,D,W,K,v,YL,bY,kL,R0,j$,lY,Tt,si,Q0,ps,$L,Cs,km,ZT,l8,Rt,wE,Gt,V0,SW,h3;return _.q(function(zX){switch(zX.nextAddress){case 1:m=(x=E.config)==null?void 0:(A=x.storeStrategy)==null?void 0:A.storeKey;if(!(m&&t.innertubeResponseStore&&t.innertubeResponseStore.has(m))||((b=E.config)==null?0:(f=b.storeStrategy)==null?0:f.disableCache)){zX.jumpTo(2);break}return zX.yield(t.innertubeResponseStore.get(m),3);case 3:B=zX.yieldResult;if(!B||B.isExpired()){zX.jumpTo(2);break}R=
_.Z2(B);if(!_.r("web_process_response_store_responses")||B.isProcessed()){zX.jumpTo(5);break}Qd(t,R,E);return zX.yield(t.innertubeResponseStore.markAsProcessed(m),5);case 5:return zX.return(Promise.resolve(R));case 2:if(!((V=E)==null?0:(Q=V.innerTubeRequest)==null?0:Q.context)){zX.jumpTo(7);break}C=E.innerTubeRequest.context;if(!(t.asyncContextProcessors&&t.asyncContextProcessors.length>0)){zX.jumpTo(8);break}d=[];I=_.M(t.asyncContextProcessors);for(O=I.next();!O.done;O=I.next())a=O.value,F=a.processContext(E),
F.wrappedPromise_&&d.push(F.wrappedPromise_);if(!(d.length>0)){zX.jumpTo(8);break}return zX.yield(Promise.all(d),8);case 8:L=_.M(t.contextProcessors||[]),D=L.next();case 11:if(D.done){zX.jumpTo(7);break}W=D.value;return zX.yield(W.processContext(C),12);case 12:D=L.next();zX.jumpTo(11);break;case 7:if((K=t.localInnertubeRouter)==null||!K.shouldPreferLocalResponse(E.input,E.innerTubeRequest)){zX.jumpTo(15);break}return zX.yield(t.localInnertubeRouter.localInnertubeResponse(E.input,E.innerTubeRequest),
16);case 16:return v=zX.yieldResult,Qd(t,v,E),zX.return(v);case 15:return(kL=(bY=E.config)==null?void 0:bY.requestKey)&&t.inflightRequests.has(kL)?YL=t.inflightRequests.get(kL):(R0=JSON.stringify(E.innerTubeRequest),Tt=(lY=(j$=E.requestShell)==null?void 0:j$.headers)!=null?lY:{},E.requestShell=Object.assign({},E.requestShell,{headers:Object.assign({},Tt,p)}),si=Object.assign({},E.requestShell),E.requestShell.method==="POST"&&(si=Object.assign({},si,{body:R0})),((Q0=E.config)==null?0:Q0.requestTick)&&
_.SR(E.config.requestTick),ps=function(){return t.networkManager.fetch(E.input,si,E.config)},YL=t.requestSequencer?zlZ(t.requestSequencer,E,ps):ps(),kL&&t.inflightRequests.set(kL,YL)),zX.yield(YL,17);
case 17:($L=zX.yieldResult)&&_.r("web_streaming_player")&&Array.isArray($L)&&($L=$L[0].playerResponse);if($L&&"error"in $L&&((Cs=$L)==null?0:(km=Cs.error)==null?0:km.details))for(ZT=$L.error.details,l8=_.M(ZT),Rt=l8.next();!Rt.done;Rt=l8.next())wE=Rt.value,(Gt=wE["@type"])&&gHs.indexOf(Gt)>-1&&(delete wE["@type"],$L=wE);kL&&t.inflightRequests.has(kL)&&t.inflightRequests.delete(kL);((V0=E.config)==null?0:V0.responseTick)&&_.SR(E.config.responseTick);if($L||(SW=t.localInnertubeRouter)==null||!SW.canProvideFallbackResponse(E.input,
E.innerTubeRequest)){zX.jumpTo(18);break}return zX.yield(t.localInnertubeRouter.localFallbackInnertubeResponse(E.input,E.innerTubeRequest),19);case 19:$L=zX.yieldResult;case 18:return Qd(t,$L,E),((h3=E.config)==null?0:h3.processorTick)&&_.SR(E.config.processorTick),U(),zX.return($L||void 0)}})};
_.qn=function(t,E){return DoL(E,t.endpointMap)};
OxX=function(t,E){t=LO$(E,t.endpointMap);if(t!==void 0)return Promise.resolve(t)};
hl3=function(t,E){var p,U,x,A;return _.q(function(m){if(m.nextAddress==1){x=(p=t)==null?void 0:(U=p.authStrategy)==null?void 0:U.sessionIndex;var b=m.yield;var f=_.gu(yfO({sessionIndex:x}));return b.call(m,f,2)}A=m.yieldResult;return m.return(Promise.resolve(Object.assign({},Pil(E),A)))})};
XFs=function(t,E){var p;t=t==null?void 0:(p=t.authStrategy)==null?void 0:p.sessionIndex;p=yfO({sessionIndex:t});return Object.assign({},Pil(E),p)};var lns,G84,nHG,N_4,D8m,sZG,T_s,oHp,rw,War,$8G,PXr,Kam;lns=0;G84=/tone[1-5]/;nHG=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");N_4="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
D8m=Number.MAX_SAFE_INTEGER;sZG=RegExp("\ufe0f","g");_.CH=function(t){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;t&&_.LaG(this,t)};
_.LaG=function(t,E){try{_.PC(E,{context:t,onSuccess:function(U,x){Array.isArray(x)?t.load(x):(U=new _.cC("Emoji manager JSON response was not an array!",{response:x}),_.bV(U))},
onError:function(U){U=new _.cC("Failed to retrieve emoji manager initial JSON data!",{url:E,statusCode:_.nR(U).toString()});_.qW(U)}})}catch(U){var p=new _.cC("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:E});
_.qW(p)}};
_.CH.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.CH.prototype.load=function(t,E){if(E)if(t.length)t=t.concat(E.emojis);else{this.emojis=E.emojis;this.emojiMap=E.emojiMap;this.emojiShortcutMap=E.emojiShortcutMap;this.emojiShortcutCharMap=PXr(E);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=E.emojiRegex;return}this.emojis=[].concat(_.KB(new Set(this.emojis.concat(t))));this.hasInitializedShortcutCharMap=!1;t=Array(this.emojis.length);for(E=0;E<this.emojis.length;E++){var p=this.emojis[E];if(p.emojiId){this.emojiMap[p.emojiId]=p;this.emojiMap[p.emojiId].index=
E;for(var U=0;p.shortcuts&&U<p.shortcuts.length;U++)this.emojiShortcutMap[p.shortcuts[U].toLocaleLowerCase()]=p;t[E]=p.isCustomEmoji&&p.shortcuts?p.shortcuts[0]:p.emojiId}}t.sort(function(x,A){return A.length-x.length});
if(t.length)try{this.emojiRegex=new RegExp(t.join("|").replace("*","\\*"),"gi")}catch(x){this.emojiRegex=/$./}else this.emojiRegex=/$./};
T_s=function(t,E){E=_.M(E);for(var p=E.next();!p.done;p=E.next()){var U=p.value;if(U.emojiId&&t.emojiMap[U.emojiId]){p=Object.assign({},t.emojiMap[U.emojiId],U);t.emojiMap[U.emojiId]=p;var x=void 0;p.index&&((x=t.emojis[p.index])==null?void 0:x.emojiId)===U.emojiId&&(t.emojis[p.index]=p);U=void 0;if((U=p.shortcuts)==null?0:U.length)for(t.hasInitializedShortcutCharMap=!1,U=_.M(p.shortcuts),x=U.next();!x.done;x=U.next())t.emojiShortcutMap[x.value.toLocaleLowerCase()]=p}}};
oHp=function(t){var E,p;_.q(function(U){if(U.nextAddress==1)return U.yield(_.mP.getInstance(),2);if(U.nextAddress!=3)return(E=U.yieldResult)?U.yield(E.get("ytlc-emoji-pref"),3):U.return();(p=U.yieldResult)&&T_s(t,Object.keys(p).map(function(x){return{emojiId:x,stickyPrefId:p[x]}}).filter(function(x){return!!x.emojiId&&!!x.stickyPrefId}));
_.Do(U)})};
_.jZ=function(t,E,p){return(t=t.emojiMap[E])&&(!t.isLocked||p!==void 0&&p)?t:void 0};
rw=function(t,E,p){p=_.jZ(t,E,p===void 0?!1:p);var U=E.match("\u200d");p&&t.skinTone!==0&&(t=(U==null?void 0:U.length)===1?_.jZ(t,E.replace("\u200d",nHG[t.skinTone]+"\u200d")):_.jZ(t,E+nHG[t.skinTone]))&&(p=t);return p};
War=function(t,E){var p=t.emojiMap[E];return(p==null?0:p.stickyPrefId)?t.emojiMap[p.stickyPrefId]:rw(t,E)};
_.OX=function(t,E){t=t.emojiShortcutMap[E.toLocaleLowerCase()];return!t||t.isLocked?null:t};
$8G=function(t,E,p){return PXr(t,p===void 0?!1:p)[E]||{}};
PXr=function(t,E){E=E===void 0?!1:E;if(!t.hasInitializedShortcutCharMap){t.hasInitializedShortcutCharMap=!0;for(var p=0;p<t.emojis.length;p++){var U=t.emojis[p];if(!(U.isLocked||E&&U.isCustomEmoji&&U.emojiId&&!t.pickerCustomEmojiIds.includes(U.emojiId)))for(var x=0;U.shortcuts&&x<U.shortcuts.length;x++){var A=U.shortcuts[x];A.startsWith(":_")&&U.isCustomEmoji&&(t.emojiShortcutCharMap[":_"]==null&&(t.emojiShortcutCharMap[":_"]=Object.create(null)),t.emojiShortcutCharMap[":_"][A]=U);if(!(A.length<3||
!U.isCustomEmoji&&G84.test(A))){var m=A.substr(0,3).toLocaleLowerCase();t.emojiShortcutCharMap[m]==null&&(t.emojiShortcutCharMap[m]=Object.create(null));t.emojiShortcutCharMap[m][A]=U}}}}return t.emojiShortcutCharMap};
_.CH.prototype.createEmoji=function(t,E){E=E===void 0?!0:E;var p=document.createElement("img");t.isCustomEmoji||p.classList.add("small-emoji");p.classList.add("emoji");p.classList.add("yt-formatted-string");p.src=t.image?_.d4(t.image.thumbnails,this.emojiSize)||"":"";var U=void 0;t.image&&t.image.accessibility&&t.image.accessibility.accessibilityData&&(U=t.image.accessibility.accessibilityData.label);p.alt=U?U:(t.isCustomEmoji&&t.shortcuts?t.shortcuts[0]:t.emojiId)||"";t.isCustomEmoji&&(p.dataset.emojiId=
t.emojiId);_.FI&&(p.setAttribute("contenteditable","false"),p.setAttribute("unselectable","on"));E&&(t.shortcuts&&t.shortcuts.length&&p.setAttribute("shared-tooltip-text",t.shortcuts[0]),p.id="emoji-"+lns++);return p};
_.CH.prototype.createDocumentFragment=function(t,E,p,U){E=E===void 0?!1:E;p=p===void 0?!0:p;U=U===void 0?!1:U;t=t.replace(sZG,"");for(var x=document.createDocumentFragment(),A=0,m,b=0;(m=this.emojiRegex.exec(t))!=null;){var f=_.jZ(this,m[0])||_.OX(this,m[0]);!f||f.isCustomEmoji&&!E||(f=this.createEmoji(f,p),A!==m.index&&x.appendChild(document.createTextNode(t.substring(A,m.index))),x.appendChild(f),A=m.index+m[0].length,b++)}if(!U||b)return x.appendChild(document.createTextNode(t.substr(A))),x};
Kam=function(t,E,p){var U,x,A,m,b,f,B,R,V;return _.q(function(Q){if(Q.nextAddress==1){if(!E.emojiId||!t.emojiMap[E.emojiId])return Q.return();U=Object.assign({},t.emojiMap[E.emojiId],{stickyPrefId:p});t.emojiMap[E.emojiId]=U;E.index&&((x=t.emojis[E.index])==null?void 0:x.emojiId)===E.emojiId&&(t.emojis[E.index]=U);if((A=E.shortcuts)==null?0:A.length)for(t.hasInitializedShortcutCharMap=!1,m=_.M(E.shortcuts),b=m.next();!b.done;b=m.next())f=b.value,t.emojiShortcutMap[f.toLocaleLowerCase()]=U;return Q.yield(_.mP.getInstance(),
2)}if(Q.nextAddress!=4)return(B=Q.yieldResult)?Q.yield(B.get("ytlc-emoji-pref"),4):Q.jumpTo(0);V=(R=Q.yieldResult)!=null?R:{};V[E.emojiId]=p;return Q.yield(B.set("ytlc-emoji-pref",V,D8m),0)})};
_.kt=new _.CH;var S6W;_.dw={};
S6W={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.r("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:_.r("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 BL(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 t=_.ZN(this.hostElement||this).querySelector("#inline-action-button-container");t&&t.setAttribute("aria-hidden","true");this.menuButton=_.ZN(this.hostElement).querySelector("#menu-button")},
attached:function(){var t=this.menuButton;t&&(t.addEventListener("focusin",_.zI(this,this.onMenuButtonFocus_)),t.addEventListener("focusout",_.zI(this,this.onMenuButtonBlur_)))},
detached:function(){var t=this.menuButton;t&&(t.removeEventListener("focusin",_.zI(this,this.onMenuButtonFocus_)),t.removeEventListener("focusout",_.zI(this,this.onMenuButtonBlur_)))},
identity:_.a0,truthy:function(t){return!!t},
computeTimestampString:function(t){return t?t.timestampText?this.getSimpleString(t.timestampText):this.TIME_FORMATTER.format(new Date(t.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(t){return t},
computeMenuVisible_:function(t,E){return t||E},
computeHasInlineActionButtons:function(t){if(!t)return!1;var E,p;return!((E=t.inlineActionButtons)==null||!E.length)||!((p=t.additionalInlineActionButtons)==null||!p.length)},
createDocumentFragmentFromString:function(t){var E=_.kt.createDocumentFragment.bind(_.kt),p;if((p=this.participantsManager)==null||!p.viewerRegex)return E(t);p=document.createDocumentFragment();for(var U=0,x;(x=this.participantsManager.viewerRegex.exec(t))!=null;){if(x.index>0){var A=":"+x[0]+":";if((_.jZ(_.kt,A)||_.OX(_.kt,A))&&t.indexOf(A)===x.index-1)continue}p.appendChild(E(t.substring(U,x.index)));U=document.createElement("span");U.appendChild(E(x[0]));U.classList.add("mention");p.appendChild(U);
U=x.index+x[0].length}p.appendChild(E(t.substring(U)));return p},
createDocumentFragment:function(t){var E=document.createDocumentFragment();if(t.simpleText)return E.appendChild(this.createDocumentFragmentFromString(t.simpleText)),E;if(!t.runs)return E;for(var p=0;p<t.runs.length;p++){var U=t.runs[p];if(U.emoji)E.appendChild(_.kt.createEmoji(U.emoji));else if(U.text)if(U.navigationEndpoint){var x=document.createElement("a");x.classList.add("yt-simple-endpoint");fVj(x,U.navigationEndpoint);_.ZN(x).appendChild(this.createDocumentFragmentFromString(U.text));E.appendChild(x)}else E.appendChild(this.createDocumentFragmentFromString(U.text))}return E},
hasModerationOverlayVisible:function(){var t;return((t=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:t.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(t){t.composedPath().some(function(E){return(E=E instanceof Element?E:null)?E.tagName&&(E.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||E.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.r("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(t)},
colorFromDecimal:function(t){return NDJ(t)},
markAsDeleted:function(t,E){this.set("data.deletedStateMessage",t);this.set("data.showOriginalContentMessage",E)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(t){if(this.data.contextMenuEndpoint){var E=_.X3().resolve(_.Lf),p=this.data.contextMenuEndpoint,U;(U=_.iA.instance)&&_.qn(U,p)?(E=vHX(E,p),U=_.rY(U,{},E)):U=_.yVs(E,p);U.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);t&&t.stopPropagation()}},
handleGetContextMenuResponse_:function(t){var E=_.iA.instance;E&&_.qn(E,{liveChatEndpoint:{}})||(t=t.response);t.liveChatItemContextMenuSupportedRenderers&&t.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(t.liveChatItemContextMenuSupportedRenderers.menuRenderer);t.actions&&_.du(this.hostElement,"yt-live-chat-actions",[t.actions])},
handleGetContextMenuError:function(t){if(t instanceof Error||t instanceof Object||t instanceof String)var E=t;_.bV(new _.cC("Error encountered calling GetLiveChatItemContextMenu",E))},
showContextMenu_:function(t){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:t}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.kT(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.kT(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.dw.YtLiveChatItemBehavior=[S6W,_.RO.YtComponentBehavior,_.Pg.YtOpenPopupBehavior];_.uI=function(){};var cVZ;var tjW;var E_W;var pWo;var J4=function(){var t=_.z.apply(this,arguments)||this;t.active=!1;t.identity=_.a0;return t};
_.u(J4,_.z);J4.prototype.dataChanged=function(){this.active=!1};
J4.prototype.onClick=function(){_.kT(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
J4.prototype.dataChanged=J4.prototype.dataChanged;_.N([_.e(),_.P("design:type",Object)],J4.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],J4.prototype,"active",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],J4.prototype,"dataChanged",null);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],J4);
_.G(J4,"yt-live-chat-text-input-field-suggestion",function(){if(pWo===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;E_W===void 0&&(E_W=document.createElement("template"));var U=E_W;p.call(E,U.content.cloneNode(!0),t.content.firstChild);pWo=t}t=pWo;return t},{mode:0});_.IU=function(t,E,p){return CustomEvent.call(this,t,{detail:{value:E,path:p}})||this};
_.u(_.IU,CustomEvent);_.gw=function(){var t=_.z.apply(this,arguments)||this;t.viewerName=null;t.actionMap={"yt-live-chat-actions":"onChatMessage_"};t.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];t.PARTICIPANT_TIME_USEC_=3E8;return t};
_.u(_.gw,_.z);_.Y=_.gw.prototype;_.Y.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.Y.addParticipant=function(t){var E=_.zjl(this.participants,t,function(U,x){U=U[Object.keys(U)[0]];x=x[Object.keys(x)[0]];U=String(_.R4(U.authorName)).toLowerCase();x=String(_.R4(x.authorName)).toLowerCase();return U<x?-1:U==x?0:1}.bind(this));
if(E>=0){var p=this.participants[E];p[Object.keys(p)[0]].timestampUsec&&this.splice("participants",E,1,t)}else this.splice("participants",-E-1,0,t);t=t[Object.keys(t)[0]];E=_.R4(t.authorName).toLocaleLowerCase();p=E.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(p)||(this.allParticipantsCharMap_[p]={});this.allParticipantsCharMap_[p][E]=t};
_.Y.getAuthorsFromPrefix=function(t){return this.allParticipantsCharMap_.hasOwnProperty(t)?this.allParticipantsCharMap_[t]:null};
_.Y.computeViewerRegex_=function(t){if(!t)return null;t=t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var E=t.indexOf("@")===0&&_.r("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(E+t.replace(/ /g,"\\s*")+"|^"+t.replace(/ /g,"\\s*")+"$|^"+t.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+t.replace(/ /g,"\\s*")+"$|(?<=\\s)"+t.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.Y.checkForStaleParticipants_=function(){var t=this;this.trimOldParticipants_();this.asyncHandle_&&wrJ(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.iR(function(){t.checkForStaleParticipants_()},3E4))};
_.Y.onChatMessage_=function(t){var E=this,p=Date.now()*1E3;t.forEach(function(U){if(U=_.k(U,F0o)){U=U.item;var x=Object.keys(U)[0];E.SUPPORTED_ITEM_TYPES_.indexOf(x)!=-1&&U[x].timestampUsec>=p-E.PARTICIPANT_TIME_USEC_&&E.addParticipant(U)}},this);
this.checkForStaleParticipants_()};
_.Y.trimOldParticipants_=function(){for(var t=Date.now()*1E3,E=this.participants.length-1;E>=0;E--){var p=this.participants[E];p=p[Object.keys(p)[0]];p.timestampUsec&&p.timestampUsec<t-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",E,1)}};
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],_.gw.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],_.gw.prototype,"viewerName",void 0);_.N([_.e({computed:"computeViewerRegex_(viewerName)"}),_.P("design:type",Object)],_.gw.prototype,"viewerRegex",void 0);_.N([_.e({value:function(){return[]},
notify:!0}),_.P("design:type",Array)],_.gw.prototype,"participants",void 0);_.N([_.p4({is:"yt-live-chat-participants-manager",noInjection:!0})],_.gw);var Uof=/.*([:@#].*?)$/,ZF=/\u00a0/g,xor=String.fromCharCode(160),Azr={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"},O7=function(){var t=_.z.apply(this,arguments)||this;t.disabled=!1;t.liveChatRichMessageInput=null;t.messageInput=null;t.isValidWithNoInputText=!1;t.suggestions=[];t.emojiManager=_.kt;t.inputMethodEditorActive=
!1;t.suggestionIndex=-1;t.JSC$14503_lastSuggestionRange=null;return t};
_.u(O7,_.z);_.Y=O7.prototype;_.Y.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.Y.attached=function(){_.Ne&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.Y.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.Y.dataChanged=function(){if(!this.ignoreColorMapping){var t=!1,E={},p;for(p in Azr)this.data&&this.data.hasOwnProperty(p)&&(E[Azr[p]]=this.colorFromDecimal(this.data[p]),t=!0);t&&_.eU(this.hostElement,E)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.Y.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.Y.colorFromDecimal=function(t){t=Math.floor(Number(t));return"rgba("+[t>>16&255,t>>8&255,t&255,(t>>24&255)/255].join()+")"};
_.Y.preventDrag=function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="none");t.preventDefault()};
_.Y.preventResize=function(t){t.returnValue=!1};
_.Y.onInputChange=function(){var t=this.characterCount,E=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&E&&E.remove();if(!E&&this.characterCount>this.maxCharacterLimit){var p=window.getSelection();if(p){var U=p.getRangeAt(0);p.removeAllRanges();p.addRange(U)}}if(p=this.getCurrentRange())U=this.calculateTextBeforeRange(p),this.completeEmojisInRange(p,U,!0)||this.updateSuggestions(p,U);U=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(U);
_.kT(this.hostElement,"yt-live-chat-message-input-change",U);E&&this.characterCount===0&&E.remove();p&&p.commonAncestorContainer.parentElement.id==="input"&&p.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>t):p&&!p.collapsed&&p.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(t=this.input.childNodes.length-1;t>=0;t--)this.input.childNodes[t].nodeName==="BR"&&this.input.childNodes[t].remove()};
_.Y.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.Y.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var t=this.getCurrentRange();t&&t.commonAncestorContainer.parentElement.id==="input"&&t.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.Y.mergeOverflowText=function(t){if(t){var E=document.createRange();E.selectNodeContents(t);E=E.extractContents();this.input.insertBefore(E,t)}};
_.Y.checkRangeAtEndOfInput=function(){var t=this.getCurrentRange();if(t){var E=_.ZN(this.hostElement).querySelector("#overflow-text"),p=document.createRange();E&&E.previousSibling?E.previousSibling instanceof HTMLImageElement?p.selectNode(E.previousSibling):p.selectNodeContents(E.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?p.selectNode(this.input.lastChild):p.selectNodeContents(this.input.lastChild));p.collapse(!1);return p.isPointInRange(t.startContainer,
t.startOffset)}return!1};
_.Y.handleOverflowText=function(t){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var E=_.ZN(this.hostElement).querySelector("#overflow-text"),p=this.getCurrentRange();this.input.normalize();t=this.checkRangeAtEndOfInput()&&t;this.mergeOverflowText(E);for(var U,x=0,A=0,m,b=this.input.childNodes,f=0;f<b.length;f++){var B=b[f];B instanceof Text?(A+=B.textContent.length,A>this.maxCharacterLimit&&(U=B,x=this.maxCharacterLimit+B.textContent.length-A)):B instanceof HTMLImageElement&&
(U=void 0,A=B.dataset.emojiId&&((U=this.data)==null?0:U.emojiCharacterCount)?A+this.data.emojiCharacterCount:A+B.alt.length,U=this.input,x=f);if(A>this.maxCharacterLimit&&U){m=document.createRange();m.collapse(!1);E?(A=this.input.lastChild.previousSibling,A instanceof Text?m.setEnd(this.input.lastChild.previousSibling,A.textContent.length):A instanceof HTMLImageElement&&m.setEnd(this.input,this.input.childNodes.length-1)):m.selectNodeContents(this.input);m.setStart(U,x);break}}m&&(U=!1,p&&(t=m.isPointInRange(p.startContainer,
p.startOffset-1)),E||(E=document.createElement("span"),E.id="overflow-text",E.textContent="",E.setAttribute("contenteditable","true"),_.ZN(_.ZN(this.hostElement).querySelector("#input")).appendChild(E),U=!0),E&&(p=m.extractContents(),E.insertBefore(p,E.firstChild),t&&E.firstChild&&(p=document.createRange(),U?p.setStartAfter(E.lastChild):p.setStartAfter(E.firstChild),p.collapse(!0),E=window.getSelection(),E.removeAllRanges(),E.addRange(p))))}};
_.Y.checkForDuplicateSpans=function(){for(var t=0;t<this.input.childNodes.length;t++){var E=this.input.childNodes[t];if(E.nodeName==="SPAN"){var p=document.createRange();p.selectNodeContents(E);p=p.extractContents();this.input.insertBefore(p,E);E.remove()}}this.handleOverflowText(!0)};
_.Y.getCurrentRange=function(){var t=window.getSelection();return t&&t.rangeCount?t.getRangeAt(0).cloneRange():null};
_.Y.getInputRange=function(){var t=this.getCurrentRange();if(t){for(var E=t.commonAncestorContainer,p=!1,U=_.ZN(this.hostElement).querySelector("#input");E;){if(E===U){p=!0;break}E=E.parentNode}p||(t=null)}t||(t=this.getRangeAtEnd());return t};
_.Y.getRangeAtEnd=function(){var t=document.createRange(),E=_.ZN(this.hostElement).querySelector("#input").lastChild;!E||E.nodeName!=="#text"&&E.nodeName!=="SPAN"?(t.selectNodeContents(_.ZN(this.hostElement).querySelector("#input")),t.collapse(!1)):E.nodeName==="#text"?t.setStart(E,E.textContent.length):t.setStart(E,E.childNodes.length);return t};
_.Y.getChatParticipantSuggestions=function(t,E,p,U){var x=_.r("live_chat_enable_handles_web_text_input_update");if(E)for(var A in E)if(A.indexOf(t)===0||x&&A.indexOf(p+t)===0){var m=E[A],b=_.R4(m.authorName);U.push({suggestion:{author:!0,authorType:p,image:m.authorPhoto,alt:b,text:b}});if(U.length>=64)break}};
_.Y.getSuggestions=function(t){var E=[],p=t.substring(0,3),U=$8G(_.kt,p,!0);if(U)for(var x in U)if(x.toLocaleLowerCase().indexOf(t)===0){var A=U[x];if(A&&A.emojiId){if(A=War(_.kt,A.emojiId)){var m=void 0,b=void 0,f=void 0,B=void 0,R=((m=A.image)==null?0:(b=m.accessibility)==null?0:(f=b.accessibilityData)==null?0:f.label)||A.isCustomEmoji?(B=A.shortcuts)==null?void 0:B[0]:A.emojiId;E.push({suggestion:{emoji:!0,image:A.image,alt:R,text:x,textToInsertWhenSelected:A.isCustomEmoji?x:R}})}if(E.length>=
64)break}}if(!this.participantsManager)return null;if(p.indexOf("@")===0||p.indexOf("#")===0)U=p.charAt(0),t=t.substring(1),x=_.r("live_chat_enable_handles_web_text_input_update"),p.indexOf("@")===0&&x&&(x=this.participantsManager.getAuthorsFromPrefix(p.substring(0,2)),this.getChatParticipantSuggestions(t,x,U,E)),p=p.substring(1),p=this.participantsManager.getAuthorsFromPrefix(p),this.getChatParticipantSuggestions(t,p,U,E);return E?E.sort(function(V,Q){return Q.suggestion.text<V.suggestion.text?-1:
Q.suggestion.text===V.suggestion.text?0:1}):null};
_.Y.insertSuggestion=function(t){var E=_.r("live_chat_enable_handles_web_text_input_update"),p=t.authorType;E=t.text.indexOf(p)===0&&E?t.text+xor:p+t.text+xor;t.emoji?this.insertTextAtRange(this.JSC$14503_lastSuggestionRange,t.textToInsertWhenSelected||""):t.author&&this.insertTextAtRange(this.JSC$14503_lastSuggestionRange,E)};
_.Y.updateSuggestionsAtCaret=function(){var t=this.getCurrentRange();t&&this.updateSuggestions(t,this.calculateTextBeforeRange(t))};
_.Y.offsetStartOfRangeBy=function(t,E){for(;E>0;)if(t.startOffset-E>=0){t.setStart(t.startContainer,t.startOffset-E);break}else{E=t.startContainer instanceof HTMLImageElement?E-t.startContainer.alt.length:E-t.startOffset;var p=t.startContainer.previousSibling;if(!p){t.setStart(t.startContainer,0);break}if(_.r("live_chat_require_space_for_autocomplete_emoji")){var U=void 0,x=void 0;t.setStart(p,((U=p)==null?void 0:(x=U.textContent)==null?void 0:x.length)||0)}else t.setStart(p,p.childNodes.length||
0)}};
_.Y.updateSuggestions=function(t,E){var p=this;this.JSC$14503_lastSuggestionRange&&(this.JSC$14503_lastSuggestionRange.detach(),this.JSC$14503_lastSuggestionRange=null);if((E=Uof.exec(E))&&E.length&&(E=E[E.length-1].toLocaleLowerCase(),E.length>2&&(this.offsetStartOfRangeBy(t,E.length),this.JSC$14503_lastSuggestionRange=t,(t=this.getSuggestions(E))&&t.length))){this.suggestions=t;_.XE(this,function(){_.ZN(p.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(t.length-1);return}this.dropdown.opened=!1};
_.Y.completeEmojisInRange=function(t,E,p){var U=E.replace(/[\s\xa0]+$/,"");E=E.length-U.length;U=U.split(" ");U=U[U.length-1].trim().toLocaleLowerCase();var x=U.lastIndexOf(":");if(p&&!E&&x!==U.length-1)return!1;x!==-1&&(p=U.lastIndexOf(":",x-1),p!==-1&&(U=U.substring(p)));if((p=_.OX(_.kt,U))&&p.emojiId){p=War(_.kt,p.emojiId)||null;this.offsetStartOfRangeBy(t,U.length+E);var A,m,b,f;U=(((A=p)==null?0:A.isCustomEmoji)?(m=p)==null?void 0:(b=m.shortcuts)==null?void 0:b[0]:(f=p)==null?void 0:f.emojiId)||
"";E&&(U+=xor);this.insertTextAtRange(t,U);this.dropdown.opened=!1;return!0}return!1};
_.Y.onSuggestion=function(t){this.insertSuggestion(t.detail);this.dropdown.opened=!1};
_.Y.onKeyPress=function(t){t.keyCode===13&&(t.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.kT(this.hostElement,"yt-live-chat-send-message"))};
_.Y.completeEmojis=function(){var t=document.createRange(),E=_.ZN(this.hostElement).querySelector("#input").lastChild;E?t.setStart(E,E.childNodes.length):(t.selectNodeContents(_.ZN(this.hostElement).querySelector("#input")),t.collapse(!1));this.completeEmojisInRange(t,this.calculateTextBeforeRange(t),_.r("live_chat_require_space_for_autocomplete_emoji"))};
_.Y.maybePreventTextFormatting=function(t){!_.Gm||!t.ctrlKey&&!t.metaKey||t.keyCode!==66&&t.keyCode!==73||(t.stopImmediatePropagation(),t.preventDefault())};
_.Y.onKeyDown=function(t){this.maybePreventTextFormatting(t);if(this.dropdown.opened)switch(t.keyCode){case 27:this.dropdown.opened=!1;t.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;t.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);t.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),t.preventDefault()}};
_.Y.onKeyUp=function(t){switch(t.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.FI)this.onInputChange()};
_.Y.changeSuggestionIndex=function(t){if(this.dropdown.opened){var E=_.ZN(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<E.children.length&&(E.children[this.suggestionIndex].active=!1);var p=this.suggestions.length;this.suggestionIndex=(t+p)%p;t=E.children[this.suggestionIndex];t.active=!0;E.scrollTop=t.offsetTop}};
_.Y.onInputPaste=function(t){t.preventDefault();(t=t.clipboardData)&&t.types&&(t=t.getData("text/plain")||"",t=t.replace(/\n/g,""),this.insertText(t));(t=this.getCurrentRange())&&t.commonAncestorContainer.parentElement.id==="input"&&t.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.Y.onFocus=function(){this._setFocused(!0)};
_.Y.onBlur=function(){this._setFocused(!1)};
_.Y.insertText=function(t){this.insertTextAtRange(this.getInputRange(),t)};
_.Y.insertTextAtRange=function(t,E){if(t&&(t.collapsed||t.deleteContents(),E=_.kt.createDocumentFragment(E,!0,!1))){for(var p=_.M((E==null?void 0:E.childNodes)||[]),U=p.next();!U.done;U=p.next()){U=U.value;var x=void 0,A=void 0,m=void 0,b=void 0,f=void 0;(m=(x=window)==null?void 0:(A=x.ShadyCSS)==null?void 0:A.ScopingShim)==null||(f=(b=m).scopeNode)==null||f.call(b,U,this.hostElement.localName)}p=E.lastChild;t.insertNode(E);this.focused||this.input.focus();if(this.focused){t=t.cloneRange();t.selectNodeContents(p);
t.collapse(!1);if(E=window.getSelection())E.removeAllRanges(),E.addRange(t);t.commonAncestorContainer.parentElement.id==="input"&&t.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}t=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(t);_.kT(this.hostElement,"yt-live-chat-message-input-change",t)}};
_.Y.setLiveChatRichMessageInput=function(t){_.ZN(_.ZN(this.hostElement).querySelector("#input")).textContent="";if(t&&t.textSegments){for(var E=0;E<t.textSegments.length;E++){var p=t.textSegments[E];p.text?_.ZN(_.ZN(this.hostElement).querySelector("#input")).appendChild(_.kt.createDocumentFragment(p.text,!0,!1)):p.emojiId&&(p=_.jZ(_.kt,p.emojiId))&&_.ZN(_.ZN(this.hostElement).querySelector("#input")).appendChild(_.kt.createEmoji(p,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.Y.setText=function(t){this.setLiveChatRichMessageInput(t?{textSegments:[{text:t}]}:null)};
_.Y.calculateTextBeforeRange=function(t){var E="",p=t.startContainer;if(p&&p instanceof Text){var U;E=((U=p.textContent)==null?void 0:U.substring(0,t.startOffset))||"";p=p.previousSibling}for(;p&&p instanceof Text;)E=p.textContent+E,p=p.previousSibling;return E.replace(ZF," ")};
_.Y.calculateLiveChatRichMessageInput=function(){for(var t=[],E="",p=_.ZN(_.ZN(this.hostElement).querySelector("#input")).childNodes,U=0;U<p.length;U++){var x=p[U];x instanceof Text?E+=x.textContent:x instanceof HTMLImageElement&&(x.dataset.emojiId?(E&&(t.push({text:E.replace(ZF," ")}),E=""),t.push({emojiId:x.dataset.emojiId})):E+=x.alt)}E&&t.push({text:E.replace(ZF," ")});if(p=_.ZN(this.hostElement).querySelector("#overflow-text")){E="";p=p.childNodes;for(U=0;U<p.length;U++)x=p[U],x instanceof Text?
E+=x.textContent:x instanceof HTMLImageElement&&(x.dataset.emojiId?(E&&(t.push({text:E.replace(ZF," ")}),E=""),t.push({emojiId:x.dataset.emojiId})):E+=x.alt);E&&t.push({text:E.replace(ZF," ")})}return{textSegments:t}};
_.Y.computeCharacterCount=function(t){if(!t||!t.textSegments)return 0;for(var E=0,p=0;p<t.textSegments.length;p++){var U=t.textSegments[p];if(U.text)E+=U.text.length;else if(U.emojiId){var x=void 0;if((x=this.data)==null?0:x.emojiCharacterCount)E+=this.data.emojiCharacterCount;else{var A=x=void 0,m=void 0;E+=((A=_.jZ(_.kt,(x=U)==null?void 0:x.emojiId))==null?void 0:(m=A.shortcuts)==null?void 0:m[0].length)||0}}}return E};
_.Y.characterCountChanged=function(){_.kT(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.Y.focusedChanged=function(){this.hostElement.dispatchEvent(new _.IU("focused-changed",this.focused))};
_.Y.focus=function(){this.setFocus(!1)};
_.Y.focusAtEnd=function(){this.setFocus(!0)};
_.Y.setFocus=function(t){t=t?this.getRangeAtEnd():this.getInputRange();_.ZN(this.hostElement).querySelector("#input").focus();var E=window.getSelection();E&&(E.removeAllRanges(),E.addRange(t))};
_.Y.insertEmoji=function(t){var E,p=((t==null?0:t.isCustomEmoji)?(E=t.shortcuts)==null?void 0:E[0]:t==null?void 0:t.emojiId)||"";this.insertText(p)};
_.Y.computeText=function(t){if(!t||!t.textSegments)return"";for(var E="",p=0;p<t.textSegments.length;p++){var U=t.textSegments[p];if(U.text)E+=U.text;else if(U.emojiId){var x=void 0,A=void 0,m=void 0;E+=((A=_.jZ(_.kt,(x=U)==null?void 0:x.emojiId))==null?void 0:(m=A.shortcuts)==null?void 0:m[0])||""}}return E};
_.Y.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.aE.Object.defineProperties(O7.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.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}}});
O7.prototype.focusedChanged=O7.prototype.focusedChanged;O7.prototype.characterCountChanged=O7.prototype.characterCountChanged;O7.prototype.onSuggestion=O7.prototype.onSuggestion;O7.prototype.onMessageSet=O7.prototype.onMessageSet;O7.prototype.dataChanged=O7.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],O7.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],O7.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],O7.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],O7.prototype,"disabled",void 0);_.N([_.Z("disabled"),_.P("design:type",Number),_.P("design:paramtypes",[])],O7.prototype,"inputTabIndex",null);_.N([_.Z("data.maxCharacterLimit"),_.e({readOnly:!0,notify:!0}),_.P("design:type",Number),_.P("design:paramtypes",[])],O7.prototype,"maxCharacterLimit",null);
_.N([_.Z("liveChatRichMessageInput"),_.e({readOnly:!0,notify:!0}),_.P("design:type",Number),_.P("design:paramtypes",[])],O7.prototype,"characterCount",null);_.N([_.Z("maxCharacterLimit, characterCount"),_.e({readOnly:!0,notify:!0}),_.P("design:type",Number),_.P("design:paramtypes",[])],O7.prototype,"remainingCharacterCount",null);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],O7.prototype,"isChatMessageInput",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],O7.prototype,"inputExpanded",void 0);_.N([_.e({readOnly:!0,notify:!0}),_.P("design:type",Object)],O7.prototype,"liveChatRichMessageInput",void 0);_.N([_.e(),_.P("design:type",Object)],O7.prototype,"messageInput",void 0);_.N([_.e(),_.P("design:type",Boolean)],O7.prototype,"ignoreColorMapping",void 0);_.N([_.Z("characterCount"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],O7.prototype,"hasText",null);
_.N([_.e(),_.P("design:type",Object)],O7.prototype,"isValidWithNoInputText",void 0);_.N([_.Z("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.e(),_.P("design:type",Boolean),_.P("design:paramtypes",[])],O7.prototype,"isInputValid",null);_.N([_.e({readOnly:!0,value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],O7.prototype,"focused",void 0);_.N([_.e(),_.P("design:type",Array)],O7.prototype,"suggestions",void 0);
_.N([_.e(),_.P("design:type",_.CH)],O7.prototype,"emojiManager",void 0);_.N([_.e(),_.P("design:type",_.gw)],O7.prototype,"participantsManager",void 0);_.N([_.e(),_.P("design:type",Boolean)],O7.prototype,"noUnderline",void 0);_.N([_.e(),_.P("design:type",Object)],O7.prototype,"inputMethodEditorActive",void 0);_.N([_.Nl("#dropdown"),_.P("design:type",Object)],O7.prototype,"dropdown",void 0);_.N([_.Nl("#input"),_.P("design:type",HTMLElement)],O7.prototype,"input",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],O7.prototype,"dataChanged",null);_.N([_.GI("messageInput"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],O7.prototype,"onMessageSet",null);_.N([_.lc("yt-live-chat-select-suggestion"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],O7.prototype,"onSuggestion",null);
_.N([_.GI("characterCount"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],O7.prototype,"characterCountChanged",null);_.N([_.GI("focused"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],O7.prototype,"focusedChanged",null);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],O7);
_.YNp=_.G(O7,"yt-live-chat-text-input-field-renderer",function(){if(tjW===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;cVZ===void 0&&(cVZ=document.createElement("template"));var U=cVZ;p.call(E,U.content.cloneNode(!0),t.content.firstChild);tjW=t}t=tjW;return t},{mode:0});var Xh=function(){var t=_.z.apply(this,arguments)||this;t.buttonOverrides={style:"overlay",type:"filled"};t.allowAnimations=!1;t.modern=_.r("web_button_rework_with_live");t.noPadding=!1;return t};
_.u(Xh,_.z);_.Y=Xh.prototype;_.Y.shouldSupportInlineActionButtons=function(){return!0};
_.Y.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"}}}}};
_.Y.ready=function(){var t=document.querySelector("yt-live-chat-app");t&&t.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.Y.attached=function(){this.allowAnimations=!1};
_.Y.dataChanged=function(){if(this.data){var t={"--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)};_.eU(this.hostElement,t);this.allowAnimations=!0}};
_.Y.messageChanged=function(){var t,E=(t=this.data)==null?void 0:t.message;t=_.ZN(_.ZN(this.hostElement).querySelector("#message"));t.textContent="";E&&t.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(E))};
_.Y.computeShowOnlyHeader=function(t,E){return!t||t.pdgLikeButton||t.replyButton||t.buyFlowButton?!1:this.isEmpty(t,E)&&!t.footer};
_.Y.computeShowFooterDivider=function(t,E,p){return t?!!t.footer&&!this.isEmpty(t,E)&&!p:!1};
_.Y.computeIsUserEditable=function(t){return!!t.inputField};
_.Y.computeHasHeartButton=function(t){return(t==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(t==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(t==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.Y.computeNoveltyImage=function(t){if(t.headerOverlayImage&&t.headerOverlayImage.thumbnails.length){var E=t.headerOverlayImage.thumbnails[0],p,U;if((p=t.pdgPurchasedNoveltyLoggingDirectives)==null?0:(U=p.loggingDirectives)==null?0:U.trackingParams){var x,A;$8Y((x=t.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(A=x.loggingDirectives)==null?void 0:A.trackingParams)}return E.width||0}return 0};
_.Y.computeAuthorPhotoSize=function(t){return(t==null?0:t.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.Y.inputFocus=function(){var t=_.ZN(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");t&&t.focus()};
_.Y.inputInsertEmoji=function(t){var E=_.ZN(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");E&&E.insertEmoji(t)};
_.Y.inputMessage=function(){var t=_.ZN(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),E;return t&&((E=this.data)==null?0:E.inputField)?(t.completeEmojis(),_.Mn(t.liveChatRichMessageInput)):null};
_.Y.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.Y.isEmpty=function(t,E){return t?t.empty||!(t.message||t.inputField||E):!0};
_.Y.onLowerBuyButtonClick=function(){var t,E=_.k((t=this.data)==null?void 0:t.buyButton,_.Ry);E&&E.trackingParams&&!sTt(E.command)&&(t=_.$8(E.trackingParams))&&(E=_.yL())&&_.qc(E,t)};
_.Y.shouldSupportWholeItemClick=function(){return!0};
_.aE.Object.defineProperties(Xh.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?0:t.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Xh.prototype.isDeletedChanged=Xh.prototype.isDeletedChanged;Xh.prototype.messageChanged=Xh.prototype.messageChanged;Xh.prototype.dataChanged=Xh.prototype.dataChanged;_.N([_.g(ZaZ.YtPdgLiveChatItemBehavior),_.P("design:type",Object)],Xh.prototype,"ytPdgLiveChatItemBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Xh.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Bg),_.P("design:type",Object)],Xh.prototype,"ytLiveChatReduxBehavior",void 0);
_.N([_.g(_.dw.YtLiveChatItemBehavior),_.P("design:type",_.uI)],Xh.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Xh.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Xh.prototype,"data",void 0);_.N([_.e({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:oH8}),_.P("design:type",Object)],Xh.prototype,"engagementState",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.P("design:type",Boolean)],Xh.prototype,"isUserEditable",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.P("design:type",Boolean)],Xh.prototype,"hasHeartButton",void 0);_.N([_.e({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Xh.prototype,"showOnlyHeader",void 0);
_.N([_.e({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Xh.prototype,"showFooterDivider",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Object)],Xh.prototype,"allowAnimations",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],Xh.prototype,"dashboardMoneyFeed",void 0);_.N([_.e({computed:"computeNoveltyImage(data)"}),_.P("design:type",Number)],Xh.prototype,"noveltyWidth",void 0);
_.N([_.e({computed:"computeAuthorPhotoSize(data)"}),_.P("design:type",Number)],Xh.prototype,"authorPhotoSize",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Xh.prototype,"modern",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Xh.prototype,"noPadding",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Xh.prototype,"dataChanged",null);
_.N([_.GI("data.message"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Xh.prototype,"messageChanged",null);_.N([_.Z("data","dashboardMoneyFeed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Xh.prototype,"hideLowerBumper",null);_.N([_.GI("isDeleted"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Xh.prototype,"isDeletedChanged",null);
_.N([_.Ul({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],Xh);
_.G(Xh,"yt-live-chat-paid-message-renderer",function(){if(HxZ===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;q6G===void 0&&(q6G=document.createElement("template"));var U=q6G;p.call(E,U.content.cloneNode(!0),t.content.firstChild);HxZ=t}t=HxZ;return t},{mode:0});var Mjp;var mos;var h4=function(){var t=_.sU.apply(this,arguments)||this;t._noAccessors=!0;return t};
_.u(h4,_.sU);h4.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.qO("openPopupConfig")};
_.N([_.g(_.Pg.YtOpenPopupBehavior),_.P("design:type",Object)],h4.prototype,"ytOpenPopupBehavior",void 0);_.N([_.L0()],h4);_.aU=[_.Pg.YtOpenPopupBehavior,h4.prototype];var bXs;var MXJ=[_.lC,bm4,_.xZ,_.uh4,_.Vb,_.ax0,_.HH,_.DK,_.G2,_.PIs,_.HD];_.r("web_show_ep_endpoint_response_received")&&MXJ.push(_.Ua);var xKT=new _.gM("RESPONSE_RECEIVED_COMMANDS"),Y30=new _.gM("RESPONSE_RECEIVED_COMMANDS");var czY="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),SNY=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],yzt=["GET_UNSEEN_NOTIFICATION_COUNT"];var eZ=function(){var t=_.sU.apply(this,arguments)||this;t._noAccessors=!0;t.serviceEndpointHandlers=[];return t};
_.u(eZ,_.sU);eZ.prototype.created=function(){var t=this;this.endpointHandlerActionMap={"yt-service-request":function(E,p,U,x){var A;return v_l(t.hostElement,E,p,U,x,t.serviceEndpointHandlers,(A=t.onEntitiesUpdated)==null?void 0:A.bind(t))}}};
eZ.prototype.attached=function(){_.uV(_.d1.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
eZ.prototype.detached=function(){_.JH(_.d1.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.N([_.L0()],eZ);_.iXr=[eZ.prototype];var qNp,HXm=function(){return qNp!==void 0?qNp:qNp=document.createElement("template")};
document.head.appendChild(HXm().content);var fdX;var Bfm=document.head,wW0=Bfm.appendChild,RE3;if(fdX===void 0){var Vjs=document.createElement("template");_.J(Vjs,"\x3c!--css-build:shady--\x3e");Vjs.content.insertBefore(HXm().content.cloneNode(!0),Vjs.content.firstChild);fdX=Vjs}RE3=fdX;wW0.call(Bfm,RE3.content);var QXr,CiX=function(){return QXr!==void 0?QXr:QXr=document.createElement("template")};
document.head.appendChild(CiX().content);var jXs;var rzr=document.head,kU3=rzr.appendChild,doX;if(jXs===void 0){var ugo=document.createElement("template");_.J(ugo,"\x3c!--css-build:shady--\x3e");ugo.content.insertBefore(CiX().content.cloneNode(!0),ugo.content.firstChild);jXs=ugo}doX=jXs;kU3.call(rzr,doX.content);var Jzs;_.vs("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.vs("sharingRendererButtons","buttonRenderer","ytd-button-renderer");Jzs=_.r("web_button_rework")&&_.HC("BUTTON_REWORK")||_.r("web_button_rework_with_live");_.Fh=function(){var t=_.z.apply(this,arguments)||this;t.isPressed=!1;t.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return t};
_.u(_.Fh,_.z);_.Y=_.Fh.prototype;_.Y.created=function(){this.showTooltips=!0};
_.Y.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.Y.onHintIdChanged=function(){var t=this,E,p,U=(E=this.ytButtonBehavior.data)==null?void 0:(p=E.hint)==null?void 0:p.hintRenderer;if(U&&U.hintId){E=_.uO(this.hostElement,"yt-get-opened-popups-action");E=(E&&E.length===1?E[0]:[]).length>0;var x=null;U.hintId!=="sponsor-pre-purchase"||E?U.hintId.startsWith("sponsor-post-purchase")&&!E?x=wrr("membership-manage"):U.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!E&&(x=wrr("membership-freebie-join")):x=wrr("membership-join");x&&_.ir.addLowPriorityJob(function(){for(var A=
_.M(x),m=A.next();!m.done;m=A.next())t.ytComponentBehavior.resolveCommand(m.value)})}};
_.Y.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.Y.onYtNavigate=function(t){var E=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(t.detail.endpoint);E&&(t.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(E))};
_.Y.onYtServiceRequestSent=function(t,E){this.handleServiceRequestActions(E);_.kT(this.hostElement,"yt-service-request-sent-button-renderer")};
_.Y.onServiceRequestCompleted=function(t,E){this.handleServiceRequestActions(E);_.kT(this.hostElement,"yt-service-request-completed-button-renderer")};
_.Y.updateButton=function(t){var E;if(t=(E=_.k(t,EFX))==null?void 0:E.updatedButton)this.ytButtonBehavior.data=_.k(t,_.Ry)};
_.Y.handleUpdateButtonAction=function(t){var E=this.ytButtonBehavior.data;E.targetId&&t.updateButtonAction.targetId&&E.targetId===t.updateButtonAction.targetId&&this.updateButton(t)};
_.Y.handleServiceRequestActions=function(t){if(t=t.actions)for(var E=0;E<t.length;E++)this.updateButton(t[E])};
_.aE.Object.defineProperties(_.Fh,{template:{configurable:!0,enumerable:!0,get:function(){if(bXs===void 0){var t=document.createElement("template");_.J(t,"\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");t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);bXs=t}t=bXs;return t}}});
_.Fh.prototype.onServiceRequestCompleted=_.Fh.prototype.onServiceRequestCompleted;_.Fh.prototype.onYtServiceRequestSent=_.Fh.prototype.onYtServiceRequestSent;_.Fh.prototype.onYtNavigate=_.Fh.prototype.onYtNavigate;_.Fh.prototype.onPressedStateChanged=_.Fh.prototype.onPressedStateChanged;_.Fh.prototype.onHintIdChanged=_.Fh.prototype.onHintIdChanged;_.N([_.e(),_.P("design:type",Object)],_.Fh.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],_.Fh.prototype,"isPressed",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],_.Fh.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.hxr.YtButtonBehavior),_.P("design:type",Object)],_.Fh.prototype,"ytButtonBehavior",void 0);_.N([_.g(_.aU),_.P("design:type",Object)],_.Fh.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],_.Fh.prototype,"ytComponentBehavior",void 0);
_.N([_.g(pH.YtRenderButtonBehavior),_.P("design:type",Object)],_.Fh.prototype,"ytRenderButtonBehavior",void 0);_.N([_.GI("data.hint.hintRenderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],_.Fh.prototype,"onHintIdChanged",null);_.N([_.GI("isPressed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],_.Fh.prototype,"onPressedStateChanged",null);
_.N([_.lc("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],_.Fh.prototype,"onYtNavigate",null);_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.m8]),_.P("design:returntype")],_.Fh.prototype,"onYtServiceRequestSent",null);
_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Rn]),_.P("design:returntype")],_.Fh.prototype,"onServiceRequestCompleted",null);_.N([_.Ul({is:"ytd-button-renderer",disableElementRegistration:Jzs})],_.Fh);var zW=function(){var t=_.z.apply(this,arguments)||this;t.modern=_.r("web_button_rework_with_live");t.buttonOverrides={style:"overlay",type:"filled"};return t};
_.u(zW,_.z);_.Y=zW.prototype;_.Y.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"}}}}};
_.Y.ready=function(){var t=document.querySelector("yt-live-chat-app");t&&t.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.Y.dataChanged=function(){if(this.data&&this.data.sticker){var t=_.d4(this.data.sticker.thumbnails,this.stickerWidth);t||_.fLj(t).thenCatch(function(){_.qW(new _.cC("Failed to load Super Sticker with url",t))})}};
_.Y.computeAuthorPhotoSize=function(t){return(t==null?0:t.isV2Style)?32:40};
_.Y.computeIsV2Style=function(t){return(t==null?0:t.isV2Style)?!0:!1};
_.Y.onStickerLoaded=function(t){var E,p,U;(E=_.Qx(t))==null||(p=E.parentNode)==null||(U=p.classList)==null||U.add("sticker-loaded")};
_.Y.computeNoveltyImageWidth=function(t){var E,p;if(t==null?0:(E=t.headerOverlayImage)==null?0:(p=E.thumbnails)==null?0:p.length){E=t.headerOverlayImage.thumbnails[0];var U,x;if((U=t.pdgPurchasedNoveltyLoggingDirectives)==null?0:(x=U.loggingDirectives)==null?0:x.trackingParams){var A,m;$8Y((A=t.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(m=A.loggingDirectives)==null?void 0:m.trackingParams)}return E.width||0}return 0};
_.Y.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.Y.updateStickerStyles=function(){var t=this.data;t&&(t={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(t.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(t.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(t.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(t.authorNameTextColor)},
_.eU(this.hostElement,t))};
_.Y.onBuyButtonClick=function(){var t,E=_.k((t=this.data)==null?void 0:t.buyButton,_.Ry);E&&!sTt(E.command)&&this.ytRendererBehavior.logExplicitClick(E)};
_.Y.shouldSupportWholeItemClick=function(){return!0};
_.aE.Object.defineProperties(zW.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 t;return((t=this.data)==null?0:t.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
zW.prototype.updateStickerStyles=zW.prototype.updateStickerStyles;zW.prototype.isDeletedChanged=zW.prototype.isDeletedChanged;zW.prototype.onStickerLoaded=zW.prototype.onStickerLoaded;zW.prototype.dataChanged=zW.prototype.dataChanged;_.N([_.g(ZaZ.YtPdgLiveChatItemBehavior),_.P("design:type",Object)],zW.prototype,"ytPdgLiveChatItemBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],zW.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],zW.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.dw.YtLiveChatItemBehavior),_.P("design:type",_.uI)],zW.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],zW.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],zW.prototype,"data",void 0);
_.N([_.e({computed:"computeAuthorPhotoSize(data)"}),_.P("design:type",Number)],zW.prototype,"authorPhotoSize",void 0);_.N([_.e(),_.P("design:type",Boolean)],zW.prototype,"isDeleted",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],zW.prototype,"dashboardMoneyFeed",void 0);_.N([_.e({computed:"computeNoveltyImageWidth(data)"}),_.P("design:type",Number)],zW.prototype,"noveltyWidth",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],zW.prototype,"modern",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.P("design:type",Boolean)],zW.prototype,"isV2Style",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zW.prototype,"dataChanged",null);_.N([_.lc("yt-img-shadow-loaded"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],zW.prototype,"onStickerLoaded",null);
_.N([_.Z("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],zW.prototype,"stickerWidth",null);_.N([_.Z("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],zW.prototype,"stickerHeight",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],zW.prototype,"hasHeartButton",null);_.N([_.Z("data","dashboardMoneyFeed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],zW.prototype,"hideLowerBumper",null);
_.N([_.GI("isDeleted"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zW.prototype,"isDeletedChanged",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zW.prototype,"updateStickerStyles",null);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],zW);
_.G(zW,"yt-live-chat-paid-sticker-renderer",function(){if(mos===void 0){var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;Mjp===void 0&&(Mjp=document.createElement("template"));var U=Mjp;p.call(E,U.content.cloneNode(!0),t.content.firstChild);mos=t}t=mos;return t},{mode:0});var Idm;var g_4;var ZX4,OXm=function(){return ZX4!==void 0?ZX4:ZX4=document.createElement("template")};
document.head.appendChild(OXm().content);var XW0,hEr=function(){return XW0!==void 0?XW0:XW0=document.createElement("template")};
document.head.appendChild(hEr().content);var adT;var eEf,FOs=function(){return eEf!==void 0?eEf:eEf=document.createElement("template")};
document.head.appendChild(FOs().content);var zEX;var ldX=document.head,GUT=ldX.appendChild,n_0;if(zEX===void 0){var Nf3=document.createElement("template");_.J(Nf3,"\x3c!--css-build:shady--\x3e");Nf3.content.insertBefore(FOs().content.cloneNode(!0),Nf3.content.firstChild);zEX=Nf3}n_0=zEX;GUT.call(ldX,n_0.content);var Dom=document.head,sXr=Dom.appendChild,LOW;if(adT===void 0){var lI=document.createElement("template");_.J(lI,"\x3c!--css-build:shady--\x3e");lI.content.insertBefore(hEr().content.cloneNode(!0),lI.content.firstChild);lI.content.insertBefore(OXm().content.cloneNode(!0),lI.content.firstChild);adT=lI}LOW=adT;sXr.call(Dom,LOW.content);var GW=function(){var t=_.sU.apply(this,arguments)||this;t.focusedIndex=0;t.verticalOffset=0;t.verticalAlign="top";t.dynamicAlign=!0;return t};
_.u(GW,_.sU);GW.prototype.emojiUrl=function(t){t=_.jZ(this.emojiManager,t);if(!t)return"";var E;t=(E=t.image)==null?void 0:E.thumbnails;return _.d4(t,24)||""};
var PiT=function(t){var E;t.emojiVariants&&(E=t.data)!=null&&E.target&&_.XE(t,function(){t.set("verticalOffset",-1*t.hostElement.clientHeight);var p=_.ZN(t.hostElement).querySelector("img");p&&p.focus()})};
_.Y=GW.prototype;_.Y.onKeyboardEnter=function(){};
_.Y.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.Y.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.Y.onKeyDown=function(t){switch(t.keyCode){case 13:this.onKeyboardEnter();t.preventDefault();break;case 40:this.changeFocus(1);t.preventDefault();break;case 38:this.changeFocus(-1);t.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.Y.onYtEmojiSelect=function(t){var E=this,p,U,x,A,m,b,f,B;return _.q(function(R){if(R.nextAddress==1)return U=(p=E.data)==null?void 0:p.emoji,m=((x=U)==null?void 0:x.stickyPrefId)||((A=U)==null?void 0:A.emojiId),f=(b=t.detail)==null?void 0:b.emojiId,m&&f&&m!==f?R.yield((B=E.emojiManager)==null?void 0:Kam(B,U,f),2):R.return();_.du(E.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[U,f]);_.Do(R)})};
_.Y.changeFocus=function(t){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+t+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(t=_.ZN(this.hostElement).querySelector("#variants"))&&t.children[this.focusedIndex].focus())};
_.aE.Object.defineProperties(GW.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
GW.prototype.onYtEmojiSelect=GW.prototype.onYtEmojiSelect;GW.prototype.onKeyDown=GW.prototype.onKeyDown;GW.prototype.onEmojiVariantsChanged=GW.prototype.onEmojiVariantsChanged;GW.prototype.onVerticalOffsetOrPositionTargetChanged=GW.prototype.onVerticalOffsetOrPositionTargetChanged;_.N([_.g(_.VV),_.P("design:type",Object)],GW.prototype,"ironOverlayBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],GW.prototype,"data",void 0);_.N([_.e(),_.P("design:type",_.CH)],GW.prototype,"emojiManager",void 0);
_.N([_.e(),_.P("design:type",Object)],GW.prototype,"emojiVariants",void 0);_.N([_.e(),_.P("design:type",Object)],GW.prototype,"focusedIndex",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],GW.prototype,"positionTarget",null);_.N([_.e({reflectToAttribute:!0}),_.Z("verticalOffset","data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],GW.prototype,"isPositioned",null);_.N([_.e(),_.P("design:type",Object)],GW.prototype,"verticalOffset",void 0);
_.N([_.e(),_.P("design:type",Object)],GW.prototype,"verticalAlign",void 0);_.N([_.e(),_.P("design:type",Object)],GW.prototype,"dynamicAlign",void 0);_.N([_.GI("verticalOffset","positionTarget"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],GW.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.N([_.GI("emojiVariants"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],GW.prototype,"onEmojiVariantsChanged",null);
_.N([_.lc("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[KeyboardEvent]),_.P("design:returntype")],GW.prototype,"onKeyDown",null);_.N([_.lc("yt-emoji-select"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype",Promise)],GW.prototype,"onYtEmojiSelect",null);_.N([_.L0()],GW);var Tfs=[GW.prototype];var o_4;var WOo;var $os=/medium-light|medium-dark|light|medium|dark/,KOp=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,v_T=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),nH=function(){var t=_.z.apply(this,arguments)||this;t.userSelection={left:null,right:null};t.scrollAction="lock";t.isEmojiDraftInProgress=!1;return t};
_.u(nH,_.z);_.Y=nH.prototype;_.Y.onClick=function(t){t=_.Qx(t);t instanceof HTMLImageElement&&this.selectOrUpdateEmoji(t)};
_.Y.selectOrUpdateEmoji=function(t){var E=t.getAttribute("selection");E&&(E==="default"?_.kT(this.hostElement,"yt-emoji-select",_.jZ(this.emojiManager,t.id)):E==="left"?this.userSelection=Object.assign({},this.userSelection,{left:t.src}):E==="right"?this.userSelection=Object.assign({},this.userSelection,{right:t.src}):E==="user"&&this.userSelection.left&&this.userSelection.right&&_.kT(this.hostElement,"yt-emoji-select",_.jZ(this.emojiManager,t.id)))};
_.Y.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.Y.onMultiSelectorThumbnailRowChanged=function(){var t,E,p;((t=this.data)==null?0:(E=t.emoji)==null?0:(p=E.multiSelectorThumbnailRow)==null?0:p.length)&&this.openSelector()};
_.Y.getThumbnailFromEmojiRow=function(t){var E,p;return(t==null?void 0:(E=t.thumbnails)==null?void 0:(p=E[0])==null?void 0:p.url)||""};
_.Y.getEmojiAltTextForPartialSelector=function(t){var E;return((E=this.getThumbnailFromEmojiRow(t).match(KOp))==null?void 0:E[0])||""};
_.Y.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.Y.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.Y.getRowSelection=function(t){return["left","right"][t]};
_.Y.getIdFromComposedEmoji=function(t){return(t==null?void 0:t.emojiId)||""};
_.Y.getEmojiFromPartialSelections=function(t,E){if(!t&&!E)return null;var p,U,x=(p=this.data)==null?void 0:(U=p.emoji)==null?void 0:U.variantIds;if(!x||!x.length)return null;var A;t=(A=t.match($os))==null?void 0:A[0];var m;E=(m=E.match($os))==null?void 0:m[0];if(!t||!E)return null;var b=v_T.get(t);m=v_T.get(E);if(b===m){m=Array.from(v_T.values()).filter(function(B){return B!==b}).join("|");
var f=new RegExp("^((?!("+m+")).)*"+b+"$")}else f=new RegExp(b+".*"+m);return(x=x.find(function(B){return f.test(B)}))&&_.jZ(this.emojiManager,x)||null};
_.Y.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var t,E=this.ytEmojiSelectorBehavior.emojiUrl(((t=this.data.emoji)==null?void 0:t.emojiId)||"");_.ZN(this.hostElement).querySelector('[selection="user"]').src.includes(E)||(this.isEmojiDraftInProgress=!0)}};
_.Y.onDomChange=function(){PiT(this.ytEmojiSelectorBehavior)};
_.Y.getFocusableElements=function(){return _.ZN(this.hostElement).querySelectorAll("img").filter(function(t){return t.getAttribute("role")==="option"})};
_.Y.changeFocus=function(t){var E=this.getFocusableElements();E!=null&&E.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+t+E.length)%E.length,this.ytEmojiSelectorBehavior.focusedIndex<E.length&&(t=E[this.ytEmojiSelectorBehavior.focusedIndex])&&t.focus())};
_.Y.onKeyboardEnter=function(){var t=this.getFocusableElements();t!=null&&t.length&&(t=t[this.ytEmojiSelectorBehavior.focusedIndex])&&t instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(t),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.aE.Object.defineProperties(nH.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var t=this,E,p,U;return this.emojiManager&&((E=this.data)==null?0:(p=E.emoji)==null?0:(U=p.variantIds)==null?0:U.length)?this.data.emoji.variantIds.map(function(x){return!!x&&_.jZ(t.emojiManager,x)}).filter(function(x){return!!x}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var t,E=(t=this.userSelection)==null?void 0:t.left,p;t=(p=this.userSelection)==null?void 0:p.right;return E&&t?this.getEmojiFromPartialSelections(E,t):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.composedEmojiSelection)==null?0:t.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var E;t=(E=this.userSelection)==null?void 0:E.left;var p;E=(p=this.userSelection)==null?void 0:p.right;if(!t&&!E){var U;return this.ytEmojiSelectorBehavior.emojiUrl(((U=this.data.emoji)==null?void 0:U.emojiId)||"")}return t&&!E?t:!t&&E?E:""}}});
nH.prototype.onMultiSelectorThumbnailRowChanged=nH.prototype.onMultiSelectorThumbnailRowChanged;nH.prototype.onClick=nH.prototype.onClick;_.N([_.g(_.VV),_.P("design:type",Object)],nH.prototype,"ironOverlayBehavior",void 0);_.N([_.g(Tfs),_.P("design:type",Object)],nH.prototype,"ytEmojiSelectorBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],nH.prototype,"data",void 0);_.N([_.e(),_.P("design:type",_.CH)],nH.prototype,"emojiManager",void 0);
_.N([_.e(),_.P("design:type",Object)],nH.prototype,"userSelection",void 0);_.N([_.e(),_.P("design:type",Object)],nH.prototype,"scrollAction",void 0);_.N([_.e(),_.P("design:type",Object)],nH.prototype,"isEmojiDraftInProgress",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],nH.prototype,"emojiVariants",null);_.N([_.Z("data","userSelection"),_.P("design:type",Object),_.P("design:paramtypes",[])],nH.prototype,"composedEmojiSelection",null);
_.N([_.lc("click"),_.P("design:type",Function),_.P("design:paramtypes",[MouseEvent]),_.P("design:returntype")],nH.prototype,"onClick",null);_.N([_.GI("data.emoji.multiSelectorThumbnailRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nH.prototype,"onMultiSelectorThumbnailRowChanged",null);_.N([_.Z("data","userSelection","composedEmojiSelection"),_.P("design:type",String),_.P("design:paramtypes",[])],nH.prototype,"draftEmojiUrl",null);
_.N([_.p4({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],nH);
_.G(nH,"yt-emoji-multi-person-selector",function(){if(WOo===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;o_4===void 0&&(o_4=document.createElement("template"));var U=o_4;p.call(E,U.content.cloneNode(!0),t.content.firstChild);WOo=t}t=WOo;return t},{mode:2});var yzX;var SNG;var NY=function(){var t=_.z.apply(this,arguments)||this;t.tooltip_=null;return t};
_.u(NY,_.z);_.Y=NY.prototype;_.Y.dataChanged_=function(){var t;if((t=this.data)==null?0:t.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.ZN(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.aG)(this.tooltip_).textContent=this.data.tooltip};
_.Y.computeTargetId=function(){var t;return((t=this.data)==null?void 0:t.targetId)||""};
_.Y.computeId_=function(t){return t};
_.Y.computeIcon_=function(t){return _.zh(t)};
_.Y.onTap_=function(){this.active=!this.active;_.kT(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.Y.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IU("active-changed",this.active))};
_.aE.Object.defineProperties(NY.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var t,E;if((t=this.data)==null?0:(E=t.icon)==null?0:E.iconType)return this.data.icon.iconType==="SUPER_STICKER";var p,U;return((p=this.data)==null?void 0:(U=p.icon)==null?void 0:U.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
NY.prototype.activeChangedForBinding=NY.prototype.activeChangedForBinding;NY.prototype.dataChanged_=NY.prototype.dataChanged_;_.N([_.g(_.w8.YtLiveChatTooltipTargetingBehavior),_.P("design:type",Object)],NY.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],NY.prototype,"data",void 0);_.N([_.e({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.P("design:type",String)],NY.prototype,"id",void 0);
_.N([_.e({computed:"computeTargetId(data.targetId)"}),_.P("design:type",String)],NY.prototype,"targetId",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],NY.prototype,"active",void 0);_.N([_.e({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.P("design:type",String)],NY.prototype,"icon",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],NY.prototype,"dataChanged_",null);
_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],NY.prototype,"iconFilled",null);_.N([_.GI("active"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],NY.prototype,"activeChangedForBinding",null);_.N([_.p4({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],NY);
_.G(NY,"yt-emoji-picker-category-button-renderer",function(){if(SNG===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;yzX===void 0&&(yzX=document.createElement("template"));var U=yzX;p.call(E,U.content.cloneNode(!0),t.content.firstChild);SNG=t}t=SNG;return t},{mode:2});var czG;var tXW;var DF=function(){var t=_.z.apply(this,arguments)||this;t.ariaLabel=null;t.ariaActivedescendant=null;t.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};t.JSC$14568_ignoreNextFocus_=!1;t.longPressTimeoutId=-1;return t};
_.u(DF,_.z);_.Y=DF.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.Y.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.Y.emojiChanged_=function(){this.changeFocus_(0,!1);for(var t=_.Pu(),E=0;E<this.emoji.length;E++){var p={veType:88013,elementIndex:E},U=this.emoji[E];U.isCustomEmoji&&(U=document.querySelector(("#"+U.emojiId).replace("/","\\/")))&&(p=_.L4(t,p))&&(U.visualElement=p)}};
_.Y.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.Y.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.Y.emojiSkinToneChanged_=function(t){this.skinTone=t};
_.Y.dataChanged=function(){this.data&&this.data.emojiData&&T_s(this.emojiManager,this.data.emojiData)};
_.Y.emojiUrl=function(t){t=this.getEmoji(t);if(!t)return"";var E;t=(E=t.image)==null?void 0:E.thumbnails;return _.d4(t,24)||""};
_.Y.emojiAlt=function(t){var E=this.get("image.accessibility.accessibilityData.label",t);return E?E:t.isCustomEmoji?t.shortcuts[0]:t.emojiId};
_.Y.emojiAriaLabel=function(t){return t.shortcuts?t.shortcuts[0]:""};
_.Y.emojiAriaSelected=function(t,E,p){return t&&p==E?"true":"false"};
_.Y.getEmoji=function(t){if(this.emojiManager)return this.shouldUseStickyPreferences?War(this.emojiManager,t):rw(this.emojiManager,t)};
_.Y.computeId_=function(t){return t.categoryId||""};
_.Y.computeEmoji=function(t){var E=this;return this.emojiManager?t.emojiIds?t.emojiIds.map(function(p){return p?_.jZ(E.emojiManager,p):null}).filter(BrO):t.emojiData?t.emojiData.map(function(p){var U=!!p.emojiId&&_.jZ(E.emojiManager,p.emojiId);
return U?Object.assign({},U,p):null}).filter(BrO):[]:[]};
_.Y.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.Y.computeAriaLabel_=function(t){return _.R4(t)};
_.Y.computeAriaActivedescendant_=function(t,E){return t&&t[E]?t[E].emojiId||"":""};
_.Y.handleLongPressEmojiWithVariants=function(t,E){this.changeFocusToEmoji(t.emojiId,!1);this.openVariantSelector(t,E)};
_.Y.onMouseDown=function(t){var E=this;this.hostElement!==document.activeElement&&(this.JSC$14568_ignoreNextFocus_=!0);if(t.button===0){var p=_.Qx(t);if(p instanceof HTMLImageElement){var U=_.ZN(this.hostElement).querySelector("#repeat").itemForElement(p);this.emojiContainsVariants(U)&&(this.longPressTimeoutId=setTimeout(function(){E.handleLongPressEmojiWithVariants(U,p)},500))}}};
_.Y.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.Y.onFocus=function(){this.JSC$14568_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14568_ignoreNextFocus_=!1};
_.Y.onBlur_=function(){this.showFocus=!1};
_.Y.emojiContainsVariants=function(t){return!!(t&&t.variantIds&&t.variantIds.length)};
_.Y.onClick=function(t){clearTimeout(this.longPressTimeoutId);t=_.Qx(t);if(t instanceof HTMLImageElement){var E=t.id;this.changeFocusToEmoji(E,!1);var p=this.getEmoji(E),U;if(U=this.shouldUseStickyPreferences&&this.emojiContainsVariants(p)){var x;U=!((x=this.emojiManager.emojiMap[E])!=null&&x.stickyPrefId)}U?(x=_.ZN(this.hostElement).querySelector("#repeat").itemForElement(t),this.openVariantSelector(x,t)):_.kT(this.hostElement,"yt-emoji-select",p)}};
_.Y.isActiveEmojiWithVariants=function(t,E){return t&&E?E.stickyPrefId?t===E.stickyPrefId:t===E.emojiId:!1};
_.Y.onCloseEmojiVariantSelector=function(t){this.activeEmojiWithVariantsId===t&&(this.activeEmojiWithVariantsId="")};
_.Y.onMouseOver_=function(t){t=_.Qx(t);t instanceof HTMLImageElement&&_.kT(this.hostElement,"yt-emoji-hover",_.jZ(this.emojiManager,t.id))};
_.Y.changeFocus_=function(t,E){this.focusedIndex=(this.focusedIndex+t+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(t=this.emoji[this.focusedIndex],E&&(this.showFocus=!0,_.ZN(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.kT(this.hostElement,"yt-emoji-hover",t)))};
_.Y.changeFocusToEmoji=function(t,E){if(t){var p=this.emoji.findIndex(function(U){return U.emojiId===t});
p!==-1&&this.changeFocus_(p-this.focusedIndex,E)}};
_.Y.onKeyDown_=function(t){switch(t.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var E=this.emoji[this.focusedIndex];if(E&&E.emojiId){if(this.emojiContainsVariants(E)){var p=_.ZN(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(E,p)}else _.kT(this.hostElement,"yt-emoji-select",rw(this.emojiManager,E.emojiId)),this.hostElement.focus();t.preventDefault()}}break;case 40:this.changeFocus_(1,!0);t.preventDefault();break;case 38:this.changeFocus_(-1,!0),
t.preventDefault()}};
_.Y.onEmojiStickyPreferenceChanged=function(t,E){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&t.emojiId&&t.variantIds&&t.variantIds.includes(E)&&this.activeEmojiWithVariantsId!==E&&this.setStickyEmojiPreference(t.emojiId,E)};
_.Y.openVariantSelector=function(t,E){this.activeEmojiWithVariantsId=t.stickyPrefId||t.emojiId||"";_.kT(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:t,target:E})};
_.Y.setStickyEmojiPreference=function(t,E){if(this.data){var p=this.emoji.findIndex(function(x){return x.emojiId===t});
if(p!==-1){var U=this.emoji[p];U.stickyPrefId=E;this.set("emoji."+p,Object.assign({},U));this.activeEmojiWithVariantsId=E}}};
DF.prototype.onKeyDown_=DF.prototype.onKeyDown_;DF.prototype.onMouseOver_=DF.prototype.onMouseOver_;DF.prototype.onClick=DF.prototype.onClick;DF.prototype.onBlur_=DF.prototype.onBlur_;DF.prototype.onFocus=DF.prototype.onFocus;DF.prototype.onMouseUp=DF.prototype.onMouseUp;DF.prototype.onMouseDown=DF.prototype.onMouseDown;DF.prototype.dataChanged=DF.prototype.dataChanged;DF.prototype.disableIncrementalLoadingChanged_=DF.prototype.disableIncrementalLoadingChanged_;DF.prototype.emojiManagerChanged_=DF.prototype.emojiManagerChanged_;
DF.prototype.emojiChanged_=DF.prototype.emojiChanged_;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],DF.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],DF.prototype,"data",void 0);_.N([_.e({computed:"computeId_(data)"}),_.P("design:type",String)],DF.prototype,"id",void 0);_.N([_.e({computed:"computeEmoji(data)"}),_.P("design:type",Array)],DF.prototype,"emoji",void 0);_.N([_.e(),_.P("design:type",Number)],DF.prototype,"skinTone",void 0);
_.N([_.e(),_.P("design:type",_.CH)],DF.prototype,"emojiManager",void 0);_.N([_.e(),_.P("design:type",Boolean)],DF.prototype,"disableIncrementalLoading",void 0);_.N([_.e({value:0}),_.P("design:type",Number)],DF.prototype,"focusedIndex",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],DF.prototype,"showFocus",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.P("design:type",Object)],DF.prototype,"ariaLabel",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.P("design:type",Object)],DF.prototype,"ariaActivedescendant",void 0);_.N([_.e({value:60}),_.P("design:type",Number)],DF.prototype,"domRepeatTargetFramerate",void 0);_.N([_.e({value:1}),_.P("design:type",Number)],DF.prototype,"domRepeatInitialCount",void 0);_.N([_.e({value:""}),_.P("design:type",String)],DF.prototype,"activeEmojiWithVariantsId",void 0);
_.N([_.e({value:!1}),_.P("design:type",Boolean)],DF.prototype,"shouldUseStickyPreferences",void 0);_.N([_.GI("emoji"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],DF.prototype,"emojiChanged_",null);_.N([_.GI("emojiManager"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],DF.prototype,"emojiManagerChanged_",null);
_.N([_.GI("disableIncrementalLoading"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],DF.prototype,"disableIncrementalLoadingChanged_",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],DF.prototype,"dataChanged",null);_.N([_.lc("mousedown"),_.P("design:type",Function),_.P("design:paramtypes",[Object]),_.P("design:returntype")],DF.prototype,"onMouseDown",null);
_.N([_.lc("mouseup"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],DF.prototype,"onMouseUp",null);_.N([_.lc("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],DF.prototype,"onFocus",null);_.N([_.lc("blur"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],DF.prototype,"onBlur_",null);
_.N([_.lc("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],DF.prototype,"onClick",null);_.N([_.lc("mouseover"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],DF.prototype,"onMouseOver_",null);_.N([_.lc("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],DF.prototype,"onKeyDown_",null);
_.N([_.p4({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],DF);
_.G(DF,"yt-emoji-picker-category-renderer",function(){if(tXW===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;czG===void 0&&(czG=document.createElement("template"));var U=czG;p.call(E,U.content.cloneNode(!0),t.content.firstChild);tXW=t}t=tXW;return t},{mode:2});var EGs;var pz4;var UIp;var xIp;var s7=function(){var t=_.z.apply(this,arguments)||this;t.ariaLabel=null;t.ariaActivedescendant=null;t.getFormattedStringRawText=_.R4;t.JSC$14574_ignoreNextFocus_=!1;return t};
_.u(s7,_.z);_.Y=s7.prototype;_.Y.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")};
_.Y.emojiUrl=function(t){var E,p;t=(E=rw(this.emojiManager,t,!0))==null?void 0:(p=E.image)==null?void 0:p.thumbnails;return _.d4(t,24)||""};
_.Y.emojiAlt=function(t){var E=this.get("image.accessibility.accessibilityData.label",t);return E?E:t.isCustomEmoji?t.shortcuts[0]:t.emojiId};
_.Y.emojiId=function(t){return"emoji"+t};
_.Y.computeId_=function(t){return t.categoryId||""};
_.Y.computeAriaActivedescendant_=function(t){return this.emoji&&t<this.emoji.length?this.emojiId(t):""};
_.Y.emojiChanged_=function(){this.changeFocus_(0,!1);for(var t=_.Pu(),E=0;E<this.emoji.length;E++){var p={veType:88013,elementIndex:E},U=this.emoji[E];U.isCustomEmoji&&(U=document.querySelector(("#"+U.emojiId).replace("/","\\/")))&&(p=_.L4(t,p))&&(U.visualElement=p)}};
_.Y.computeEmoji_=function(t){var E=this;return this.emojiManager?t.emojiIds.map(function(p){return _.jZ(E.emojiManager,p,!0)}).filter(wzE):[]};
_.Y.titleOffsetChanged_=function(){var t=this.hostElement.getBoundingClientRect(),E=_.ZN(this.hostElement).querySelector("#title").getBoundingClientRect();t=Math.max(0,Math.min(this.titleOffset,t.height-E.height));_.ZN(this.hostElement).querySelector("#title").style.top=t+"px"};
_.Y.onEmojiMouseOver_=function(t){_.kT(this.hostElement,"yt-emoji-hover",t.model.item)};
_.Y.onEmojiTap_=function(t){this.data.command&&(t=pWj(_.X3().resolve(_.OB(r1)),this.data.command,t),_.kT(this.hostElement,"yt-navigate",t))};
_.Y.emojiAriaLabel=function(t){return t.shortcuts[0]};
_.Y.emojiAriaSelected=function(t,E,p){return t&&p==E?"true":"false"};
_.Y.changeFocus_=function(t,E){var p=this.emoji.length;this.focusedIndex=(this.focusedIndex+t+p)%p;t=this.emoji[this.focusedIndex];if(E){var U;(U=_.ZN(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||U.scrollIntoView(!1);_.kT(this.hostElement,"yt-emoji-hover",t)}};
_.Y.onMouseDown_=function(){this.JSC$14574_ignoreNextFocus_=!0};
_.Y.onFocus_=function(){this.JSC$14574_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14574_ignoreNextFocus_=!1};
_.Y.onBlur_=function(){this.showFocus=!1};
_.Y.onKeyDown_=function(t){switch(t.keyCode){case 13:this.onEmojiTap_(t);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);t.preventDefault();break;case 38:this.changeFocus_(-1,!0),t.preventDefault()}};
s7.prototype.onKeyDown_=s7.prototype.onKeyDown_;s7.prototype.onBlur_=s7.prototype.onBlur_;s7.prototype.onFocus_=s7.prototype.onFocus_;s7.prototype.onMouseDown_=s7.prototype.onMouseDown_;s7.prototype.onEmojiTap_=s7.prototype.onEmojiTap_;s7.prototype.titleOffsetChanged_=s7.prototype.titleOffsetChanged_;s7.prototype.emojiChanged_=s7.prototype.emojiChanged_;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],s7.prototype,"ytComponentBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],s7.prototype,"data",void 0);_.N([_.e({computed:"computeId_(data)"}),_.P("design:type",String)],s7.prototype,"id",void 0);_.N([_.e({computed:"computeEmoji_(data)"}),_.P("design:type",Array)],s7.prototype,"emoji",void 0);_.N([_.e({value:0}),_.P("design:type",Number)],s7.prototype,"titleOffset",void 0);_.N([_.e({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.P("design:type",Object)],s7.prototype,"ariaLabel",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.P("design:type",Object)],s7.prototype,"ariaActivedescendant",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],s7.prototype,"showFocus",void 0);_.N([_.e({value:0}),_.P("design:type",Number)],s7.prototype,"focusedIndex",void 0);_.N([_.e(),_.P("design:type",_.CH)],s7.prototype,"emojiManager",void 0);
_.N([_.GI("emoji"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],s7.prototype,"emojiChanged_",null);_.N([_.GI("titleOffset"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],s7.prototype,"titleOffsetChanged_",null);_.N([_.lc("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],s7.prototype,"onEmojiTap_",null);
_.N([_.lc("mousedown"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],s7.prototype,"onMouseDown_",null);_.N([_.lc("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],s7.prototype,"onFocus_",null);_.N([_.lc("blur"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],s7.prototype,"onBlur_",null);
_.N([_.lc("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],s7.prototype,"onKeyDown_",null);_.N([_.p4({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],s7);
_.G(s7,"yt-emoji-picker-upsell-category-renderer",function(){if(xIp===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;UIp===void 0&&(UIp=document.createElement("template"));var U=UIp;p.call(E,U.content.cloneNode(!0),t.content.firstChild);xIp=t}t=xIp;return t},{mode:2});var A_Z;var Y3s;var LH=function(){var t=_.z.apply(this,arguments)||this;t.scrollAction="lock";t.verticalAlign="top";return t};
_.u(LH,_.z);_.Y=LH.prototype;_.Y.onClick=function(t){t=_.Qx(t);t instanceof HTMLImageElement&&_.kT(this.hostElement,"yt-emoji-select",_.jZ(this.emojiManager,t.id))};
_.Y.openSelector=function(){this.ironOverlayBehavior.open()};
_.Y.onDomChange=function(){PiT(this.ytEmojiSelectorBehavior)};
_.Y.computeIsFamilySelector=function(t){var E;return(t==null?void 0:(E=t.emoji)==null?void 0:E.emojiId)==="\ud83d\udc6a"};
_.Y.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var t=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];t&&t.emojiId&&(_.kT(this.hostElement,"yt-emoji-select",_.jZ(this.emojiManager,t.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.aE.Object.defineProperties(LH.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var t=this,E,p,U;return this.emojiManager&&((E=this.data)==null?0:(p=E.emoji)==null?0:(U=p.variantIds)==null?0:U.length)?this.data.emoji.variantIds.map(function(x){return!!x&&_.jZ(t.emojiManager,x)}).filter(function(x){return!!x}):[]}}});
LH.prototype.onClick=LH.prototype.onClick;_.N([_.g(_.VV),_.P("design:type",Object)],LH.prototype,"ironOverlayBehavior",void 0);_.N([_.g(Tfs),_.P("design:type",Object)],LH.prototype,"ytEmojiSelectorBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],LH.prototype,"data",void 0);_.N([_.e(),_.P("design:type",_.CH)],LH.prototype,"emojiManager",void 0);_.N([_.e(),_.P("design:type",Object)],LH.prototype,"scrollAction",void 0);_.N([_.e(),_.P("design:type",Object)],LH.prototype,"verticalAlign",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.P("design:type",Boolean)],LH.prototype,"isFamilySelector",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],LH.prototype,"emojiVariants",null);_.N([_.lc("click"),_.P("design:type",Function),_.P("design:paramtypes",[MouseEvent]),_.P("design:returntype")],LH.prototype,"onClick",null);_.N([_.p4({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],LH);
_.G(LH,"yt-emoji-variant-selector",function(){if(Y3s===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;A_Z===void 0&&(A_Z=document.createElement("template"));var U=A_Z;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Y3s=t}t=Y3s;return t},{mode:2});var MXr=/:/g,mIX=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],Pd=function(){var t=_.z.apply(this,arguments)||this;t.emojiVariantSelector=null;t.emojiMultiPersonSelector=null;t.identity=_.a0;t.lastAnimationTime_=0;t.animationStart_=null;t.animationEnd_=null;return t};
_.u(Pd,_.z);_.Y=Pd.prototype;
_.Y.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}}};
_.Y.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.kt)};
_.Y.attached=function(){_.FI&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&oHp(this.emojiManager)};
_.Y.dataChanged=function(){var t;if((t=this.data)==null?0:t.categories){t=this.emojiManager;var E=this.getCustomEmojiIds();t.pickerCustomEmojiIds=[].concat(_.KB(N_4),_.KB(E))}};
_.Y.getCustomEmojiIds=function(){var t,E=(t=this.data.categories)==null?void 0:t.find(function(A){var m;return((m=A.emojiPickerCategoryRenderer)==null?void 0:m.categoryId)&&mIX.includes(A.emojiPickerCategoryRenderer.categoryId)}),p;
t=(p=this.data.categories)==null?void 0:p.find(function(A){return A.emojiPickerUpsellCategoryRenderer});
var U,x;return[E==null?void 0:(U=E.emojiPickerCategoryRenderer)==null?void 0:U.emojiIds,t==null?void 0:(x=t.emojiPickerUpsellCategoryRenderer)==null?void 0:x.emojiIds].flat().filter(function(A){return!!A})};
_.Y.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.Y.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.Y.updateCategoriesAndPlaceholderInternal=function(t,E){var p=this;t&&E&&(this.categories=t.categories||[],this.categoryButtons=t.categoryButtons||[],this.resetPlaceholder(),this.search="",_.iR(function(){p.updateButtons_()}))};
_.Y.computeId_=function(t){return t.id||""};
_.Y.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(t){return t.emojiPickerCategoryRenderer&&t.emojiPickerCategoryRenderer.emojiData}):!1};
_.Y.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.Y.onShowEmojiVariantSelector=function(t){var E=t.detail.emojiData;E.variantIds&&E.variantIds.length&&(E.multiSelectorThumbnailRow&&E.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:E,target:t.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:E,target:t.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.Y.onIronOverlayClosed=function(t){var E=War(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");E&&t.composedPath&&(t.composedPath().includes(_.ZN(this.hostElement).querySelector("#emoji-variant-selector"))||t.composedPath().includes(_.ZN(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.du(this.hostElement,"yt-close-emoji-variant-selector",[E.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.Y.onEmojiVariantSelectorMouseup=function(t){var E=t.target.firstChild;this.variantSelectorOpened&&E&&_.iR(function(){E.noCancelOnOutsideClick=!1},100)};
_.Y.onEmojiVariantSelectorMousedown=function(t){t=t.target.firstChild;this.variantSelectorOpened&&t&&(t.noCancelOnOutsideClick=!1)};
_.Y.onSelectCategory_=function(t){var E=this.search!="";this.search="";for(var p=_.ZN(this.hostElement).querySelector("#categories").children,U=0;U<p.length;U++){var x=p[U];if(x.id==t.detail.categoryId){E?(_.ZN(this.hostElement).querySelector("#categories").scrollTop=x.offsetTop,this.updateButtons_()):(this.animationStart_=_.ZN(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=x.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.Y.onEmojiHover_=function(t){this.placeholder=t.detail.shortcuts?t.detail.shortcuts[0]:""};
_.Y.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.Y.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.Y.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.Y.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.Y.computeSearchCategory_=function(t){t=t.replace(MXr,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();t=t.split(" ");for(var E=[],p=this.emojiManager.emojis,U=0;U<p.length;U++){var x=p[U];if(x.searchTerms)for(var A=0;A<x.searchTerms.length;A++){for(var m=x.searchTerms[A].toLocaleLowerCase(),b=!1,f=0;f<t.length;f++)if(m.indexOf(t[f])!=-1){b=!0;break}if(b&&(!x.isCustomEmoji||!x.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(x.emojiId))){E.push(x.emojiId);
break}}}return{categoryId:-1,emojiIds:E}};
_.Y.computeSearchEmptyMessage_=function(t,E){return t&&E&&E.emojiIds&&E.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.Y.computeSearching_=function(t){return this.emojiManager&&t.replace(MXr,"").length>1};
_.Y.computeSkinToneHidden=function(){var t;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((t=this.data)==null||!t.hideSkinTonePicker)};
_.Y.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.Y.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.Y.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.Y.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.Y.selectSkinTone_=function(t){t=Number(t.target.getAttribute("tone"));this.set("emojiManager.skinTone",t);_.du(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[t]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.Y.skinToneChanged_=function(){_.ZN(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var t=_.ZN(this.hostElement).querySelector("#dropdown-content").children,E=0;E<t.length;E++)E===this.skinTone?t[E].setAttribute("selected",""):t[E].removeAttribute("selected")};
_.Y.animateScroll_=function(t){this.lastAnimationTime_||(this.lastAnimationTime_=t);t-=this.lastAnimationTime_;t<200?(_.ZN(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*t/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.ZN(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.Y.searchChanged_=function(){this.updateButtons_()};
_.Y.updateButtons_=function(){var t=null;if(!this.search)for(var E=_.ZN(this.hostElement).querySelector("#categories").scrollTop,p=_.ZN(this.hostElement).querySelector("#categories").children,U=0;U<p.length;U++){var x=p[U];x.offsetTop<=E&&(t=x.id)}E=_.ZN(this.hostElement).querySelector("#category-buttons").children;for(p=0;p<E.length;p++)U=E[p],U.active=U.id===t};
Pd.prototype.searchChanged_=Pd.prototype.searchChanged_;Pd.prototype.skinToneChanged_=Pd.prototype.skinToneChanged_;Pd.prototype.onEmojiHover_=Pd.prototype.onEmojiHover_;Pd.prototype.onSelectCategory_=Pd.prototype.onSelectCategory_;Pd.prototype.onShowEmojiVariantSelector=Pd.prototype.onShowEmojiVariantSelector;Pd.prototype.updateCategoriesAndPlaceholder_=Pd.prototype.updateCategoriesAndPlaceholder_;Pd.prototype.dataChanged=Pd.prototype.dataChanged;
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Pd.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Pd.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Pd.prototype,"data",void 0);_.N([_.e({value:function(){return[]}}),
_.P("design:type",Array)],Pd.prototype,"categories",void 0);_.N([_.e({value:function(){return[]}}),
_.P("design:type",Array)],Pd.prototype,"categoryButtons",void 0);_.N([_.e({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Pd.prototype,"disableScroll",void 0);_.N([_.e({computed:"computeId_(data)",reflectToAttribute:!0}),_.P("design:type",String)],Pd.prototype,"id",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],Pd.prototype,"selected",void 0);
_.N([_.e({value:!1}),_.P("design:type",Boolean)],Pd.prototype,"disableIncrementalLoading",void 0);_.N([_.e(),_.P("design:type",String)],Pd.prototype,"placeholder",void 0);_.N([_.e({value:""}),_.P("design:type",String)],Pd.prototype,"search",void 0);_.N([_.e({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Pd.prototype,"searching",void 0);_.N([_.e({computed:"computeSearchCategory_(search)"}),_.P("design:type",Object)],Pd.prototype,"searchCategory",void 0);
_.N([_.e({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.P("design:type",Object)],Pd.prototype,"searchEmptyMessage",void 0);_.N([_.e({computed:"identity(emojiManager.skinTone)"}),_.P("design:type",Number)],Pd.prototype,"skinTone",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],Pd.prototype,"skinToneOpened",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],Pd.prototype,"variantSelectorOpened",void 0);
_.N([_.e({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.P("design:type",Boolean)],Pd.prototype,"skinToneHidden",void 0);_.N([_.e(),_.P("design:type",_.CH)],Pd.prototype,"emojiManager",void 0);_.N([_.e(),_.P("design:type",Object)],Pd.prototype,"emojiVariantSelector",void 0);_.N([_.e(),_.P("design:type",Object)],Pd.prototype,"emojiMultiPersonSelector",void 0);
_.N([_.e({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.P("design:type",Boolean)],Pd.prototype,"shouldUseStickyPreferences",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Pd.prototype,"dataChanged",null);_.N([_.GI("data","selected"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Pd.prototype,"updateCategoriesAndPlaceholder_",null);
_.N([_.lc("yt-show-emoji-variant-selector"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Pd.prototype,"onShowEmojiVariantSelector",null);_.N([_.lc("yt-emoji-picker-select-category"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Pd.prototype,"onSelectCategory_",null);_.N([_.lc("yt-emoji-hover"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Pd.prototype,"onEmojiHover_",null);
_.N([_.GI("skinTone"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Pd.prototype,"skinToneChanged_",null);_.N([_.GI("search"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Pd.prototype,"searchChanged_",null);_.N([_.p4({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],Pd);
_.G(Pd,"yt-emoji-picker-renderer",function(){if(pz4===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;EGs===void 0&&(EGs=document.createElement("template"));var U=EGs;p.call(E,U.content.cloneNode(!0),t.content.firstChild);pz4=t}t=pz4;return t},{mode:2});var TW=function(){var t=_.z.apply(this,arguments)||this;t.emojiManager=_.kt;t.isDarkTheme=document.documentElement.hasAttribute("dark");t.selectedIndex=1;t.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return t};
_.u(TW,_.z);_.Y=TW.prototype;_.Y.handleEmojiCustomizationVisible=function(t){this.emojiPickerRenderer.selected=t;this.selectedIndex=1;t?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.Y.emojiCustomizationSetChanged=function(){var t;(t=this.data)!=null&&t.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.y_(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.Y.updateSaveButtonState=function(t){var E;(E=this.data)!=null&&E.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.P9("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:t}))};
_.Y.emojiUrl=function(t){t=_.jZ(this.emojiManager,t);if(!t)return"";var E;t=(E=t.image)==null?void 0:E.thumbnails;return _.d4(t,24)||""};
_.Y.emojiAlt=function(t){var E=_.jZ(this.emojiManager,t);if(!E)return t;var p,U,x,A=(E==null?void 0:(p=E.image)==null?void 0:(U=p.accessibility)==null?void 0:(x=U.accessibilityData)==null?void 0:x.label)||"";return A?A:E.isCustomEmoji?E.shortcuts[0]:E.emojiId||t};
_.Y.emojiAriaLabel=function(t){var E,p;return((E=_.jZ(this.emojiManager,t))==null?void 0:(p=E.shortcuts)==null?void 0:p[0])||t};
_.Y.onEmojiClick=function(t){t.model.index!==0&&(this.selectedIndex=t.model.index)};
_.Y.onEmojiSelect=function(t){t=t.detail;var E,p;((E=this.data)==null?0:E.emojiCustomizationSetEntityKey)&&((p=this.emojiCustomizationSet)==null?0:p.emojiId)&&t.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,t.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.P9("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,t.emojiId,this.selectedIndex)}))};
_.Y.canEditEmoji=function(t,E,p){t=t.indexOf(E);return t===p||t===0||p===0?!1:!0};
_.Y.getUpdatedEmojiIdList=function(t,E,p){var U=t.indexOf(E);t=[].concat(_.KB(t));U>=0&&(t[U]=t[p]);t[p]=E;return t};
_.aE.Object.defineProperties(TW,{template:{configurable:!0,enumerable:!0,get:function(){if(g_4===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;Idm===void 0&&(Idm=document.createElement("template"));var U=Idm;p.call(E,U.content.cloneNode(!0),t.content.firstChild);g_4=t}t=g_4;return t}}});
TW.prototype.onEmojiSelect=TW.prototype.onEmojiSelect;_.N([_.g(_.Bg),_.P("design:type",Object)],TW.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],TW.prototype,"ytActionHandlerBehavior",void 0);_.N([_.Nl("yt-emoji-picker-renderer"),_.P("design:type",Object)],TW.prototype,"emojiPickerRenderer",void 0);
_.N([_.e({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(t,E){return _.hj(t.entities,"emojiCustomizationSetEntity",E)},
observer:"emojiCustomizationSetChanged"}),_.P("design:type",Object)],TW.prototype,"emojiCustomizationSet",void 0);_.N([_.e(),_.P("design:type",Object)],TW.prototype,"originalEmojiSet",void 0);_.N([_.e(),_.P("design:type",_.CH)],TW.prototype,"emojiManager",void 0);_.N([_.e(),_.P("design:type",Object)],TW.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],TW.prototype,"isDarkTheme",void 0);_.N([_.e(),_.P("design:type",Object)],TW.prototype,"selectedIndex",void 0);
_.N([_.lc("yt-emoji-select"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],TW.prototype,"onEmojiSelect",null);_.N([_.p4({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],TW);var b8X;var i8W;var q3p;var H8Z;var oU=function(){var t=_.z.apply(this,arguments)||this;t.authorBadges=[];return t};
_.u(oU,_.z);_.Y=oU.prototype;_.Y.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.Y.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]]"}}}}}};
_.Y.dataChanged=function(){var t=Ydi(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",t)};
_.Y.updateMessage=function(){var t=this.data.message,E=_.ZN(_.ZN(this.hostElement).querySelector("#message"));E.textContent="";t&&E.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(t))};
_.Y.shouldSupportWholeItemClick=function(){return!0};
_.Y.onShowOriginalClick=function(t){t.preventDefault();this.showOriginal=!0};
_.Y.computeShowBar=function(t,E,p){return t&&E||p};
_.Y.computeAuthorBadges=function(t){return t.authorBadges||[]};
_.Y.computeAuthorIsOwner=function(t){return!!Mtl(t.authorBadges,"owner")};
_.Y.computeAuthorNameColor=function(t){var E;if(_.r("live_chat_author_name_color_usernames")&&(t==null?0:(E=t.authorName)==null?0:E.simpleText))return _.fjO(_.BD_(t.authorName.simpleText));if(_.r("live_chat_seed_color_usernames")&&(t==null?0:t.authorSeedColorArgb))return _.fjO(_.e5(t.authorSeedColorArgb));if(_.r("live_chat_colored_usernames"))return"#cc0000";var p;return _.r("live_chat_simple_color_usernames")&&(t==null?0:(p=t.authorName)==null?0:p.simpleText)&&(t==null?0:t.authorUsernameColorLight)&&
(t==null?0:t.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.e5(t.authorUsernameColorDark):_.e5(t.authorUsernameColorLight):""};
oU.prototype.updateMessage=oU.prototype.updateMessage;oU.prototype.dataChanged=oU.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],oU.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.dw.YtLiveChatItemBehavior),_.P("design:type",_.uI)],oU.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],oU.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],oU.prototype,"data",void 0);
_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],oU.prototype,"showOriginal",void 0);_.N([_.e({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.P("design:type",Boolean)],oU.prototype,"isDimmed",void 0);_.N([_.e({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.P("design:type",Boolean)],oU.prototype,"showBar",void 0);
_.N([_.e({computed:"computeAuthorBadges(data)"}),_.P("design:type",Array)],oU.prototype,"authorBadges",void 0);_.N([_.e({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],oU.prototype,"authorIsOwner",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],oU.prototype,"inCollapsedBanner",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],oU.prototype,"inBanner",void 0);
_.N([_.e({value:_.r("live_chat_hide_avatars"),reflectToAttribute:!0}),_.P("design:type",Boolean)],oU.prototype,"avatarHidden",void 0);_.N([_.e({computed:"computeAuthorNameColor(data)"}),_.P("design:type",String)],oU.prototype,"authorNameColor",void 0);_.N([_.e(),_.P("design:type",_.gw)],oU.prototype,"participantsManager",void 0);_.N([_.e({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.P("design:type",Object)],oU.prototype,"filledButtonOverrides",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oU.prototype,"dataChanged",null);_.N([_.GI("data.message"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oU.prototype,"updateMessage",null);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],oU);
_.G(oU,"yt-live-chat-text-message-renderer",function(){if(H8Z===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;q3p===void 0&&(q3p=document.createElement("template"));var U=q3p;p.call(E,U.content.cloneNode(!0),t.content.firstChild);H8Z=t}t=H8Z;return t},{mode:0});var Wd=function(){var t=_.z.apply(this,arguments)||this;t.tonalButtonOverrides={type:"tonal",style:"overlay"};return t};
_.u(Wd,_.z);
Wd.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]]"}}}}}};
Wd.prototype.shouldSupportInlineActionButtons=function(){return!0};
Wd.prototype.shouldSupportWholeItemClick=function(){return!0};
_.aE.Object.defineProperties(Wd.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Wd.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.dw.YtLiveChatItemBehavior),_.P("design:type",_.uI)],Wd.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Wd.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Wd.prototype,"data",void 0);_.N([_.e(),_.P("design:type",_.gw)],Wd.prototype,"participantsManager",void 0);
_.N([_.e(),_.P("design:type",Object)],Wd.prototype,"tonalButtonOverrides",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("data.infoDialogButton"),_.P("design:type",Object),_.P("design:paramtypes",[])],Wd.prototype,"hasInfoDialogButton",null);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],Wd);
_.G(Wd,"yt-live-chat-auto-mod-message-renderer",function(){if(i8W===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;b8X===void 0&&(b8X=document.createElement("template"));var U=b8X;p.call(E,U.content.cloneNode(!0),t.content.firstChild);i8W=t}t=i8W;return t},{mode:0});var fLo;var Br4;var wzZ;var R4f=function(){return _.z.apply(this,arguments)||this};
_.u(R4f,_.z);_.N([_.e(),_.P("design:type",Object)],R4f.prototype,"data",void 0);_.N([_.Ul({is:"ytd-factoid-renderer",disableElementRegistration:!0})],R4f);
_.G(R4f,"ytd-factoid-renderer",function(){if(wzZ!==void 0)return wzZ;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return wzZ=t},{mode:1});var $t=function(){return _.z.apply(this,arguments)||this};
_.u($t,_.z);$t.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.N([_.e(),_.P("design:type",Object)],$t.prototype,"data",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],$t.prototype,"ytRendererstamperBehavior",void 0);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],$t);
_.G($t,"yt-live-chat-channel-activity-reputation-renderer",function(){if(Br4===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;fLo===void 0&&(fLo=document.createElement("template"));var U=fLo;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Br4=t}t=Br4;return t},{mode:0});var VXm;var Qwf;var KH=function(){return _.z.apply(this,arguments)||this};
_.u(KH,_.z);KH.prototype.ready=function(){var t=document.querySelector("yt-live-chat-app");t&&t.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],KH.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Boolean)],KH.prototype,"menuFocused",void 0);_.N([_.e(),_.P("design:type",Object)],KH.prototype,"data",void 0);_.N([_.g(_.dw.YtLiveChatItemBehavior),_.P("design:type",_.uI)],KH.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],KH);
_.G(KH,"yt-live-chat-donation-announcement-renderer",function(){if(Qwf===void 0){var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;VXm===void 0&&(VXm=document.createElement("template"));var U=VXm;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Qwf=t}t=Qwf;return t},{mode:0});var CTr;var jw0,r_0=function(){if(jw0!==void 0)return jw0;var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;CTr===void 0&&(CTr=document.createElement("template"));var U=CTr;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return jw0=t};var vd=function(){return _.z.apply(this,arguments)||this};
_.u(vd,_.z);_.aE.Object.defineProperties(vd,{template:{configurable:!0,enumerable:!0,get:function(){return r_0()}}});
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],vd.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],vd.prototype,"data",void 0);_.N([_.p4({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],vd);_.G(vd,"yt-live-chat-empty-feed-view-model",function(){return r_0()},{mode:0});var k_3;var dIG;var yd=function(){return _.z.apply(this,arguments)||this};
_.u(yd,_.z);yd.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"}}}}}};
_.aE.Object.defineProperties(yd.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var t,E;return{runs:[{text:(t=this.data)==null?void 0:(E=t.channelName)==null?void 0:E.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var t=[],E;if((E=this.data)==null||!E.channelBadges)return t;var p;E=_.M((p=this.data)==null?void 0:p.channelBadges);for(p=E.next();!p.done;p=E.next()){p=_.k(p.value,wHs);var U=void 0,x=void 0;if((U=p)==null?0:(x=U.badgeImage)==null?0:x.sources)U=void 0,x={liveChatAuthorBadgeRenderer:{tooltip:p.tooltip,accessibility:{accessibilityData:{label:(U=_.k(p.rendererContext,_.PY))==null?void 0:U.label}}}},p.badgeImage.sources[0].clientResource?x.liveChatAuthorBadgeRenderer.icon=
{iconType:p.badgeImage.sources[0].clientResource.imageName}:x.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:p.badgeImage.sources},t.push(x)}return t}}});
_.N([_.e(),_.P("design:type",Object)],yd.prototype,"data",void 0);_.N([_.Z("data.channelName"),_.P("design:type",Object),_.P("design:paramtypes",[])],yd.prototype,"channelName",null);_.N([_.Z("data.channelBadges"),_.P("design:type",Array),_.P("design:paramtypes",[])],yd.prototype,"channelBadges",null);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],yd.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],yd);
_.G(yd,"yt-live-chat-identity-view-model",function(){if(dIG===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;k_3===void 0&&(k_3=document.createElement("template"));var U=k_3;p.call(E,U.content.cloneNode(!0),t.content.firstChild);dIG=t}t=dIG;return t},{mode:0});var uls;var J_m;var ILf;var gGZ;var SZ=function(){var t=_.z.apply(this,arguments)||this;t.hidden=!1;t.supportsInlineActionButtons=!0;return t};
_.u(SZ,_.z);SZ.prototype.ready=function(){var t;((t=document.querySelector("yt-live-chat-app"))==null?0:t.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
SZ.prototype.dataChanged=function(t){var E=(0,_.aG)(_.ZN(this.hostElement).querySelector("#detail-text"));E.textContent="";(t==null?0:t.detailText)&&E.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(t.detailText))};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],SZ.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.dw.YtLiveChatItemBehavior),_.P("design:type",_.uI)],SZ.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],SZ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e({observer:"dataChanged"}),_.P("design:type",Object)],SZ.prototype,"data",void 0);
_.N([_.e({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.P("design:type",Object)],SZ.prototype,"hidden",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],SZ);
_.G(SZ,"yt-live-chat-legacy-paid-message-renderer",function(){if(gGZ===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;ILf===void 0&&(ILf=document.createElement("template"));var U=ILf;p.call(E,U.content.cloneNode(!0),t.content.firstChild);gGZ=t}t=gGZ;return t},{mode:0});var Z8T;var O8o;var Xz4={},cd=function(){return _.sU.apply(this,arguments)||this};
_.u(cd,_.sU);cd.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
cd.prototype.onLiveChatMembershipItemBehaviorClick=cd.prototype.onLiveChatMembershipItemBehaviorClick;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],cd.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],cd.prototype,"data",void 0);_.N([_.lc("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],cd.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.N([_.L0()],cd);
Xz4.YtLiveChatMembershipItemBehavior=[cd.prototype,_.y.YtRendererBehavior];var tT=function(){var t=_.z.apply(this,arguments)||this;t.supportsInlineActionButtons=!0;t.hasPrimaryHeaderText=!1;t.showOnlyHeader=!1;t.authorBadges=[];t.modern=_.r("web_button_rework_with_live");t.buttonOverrides={style:"overlay",type:"filled"};return t};
_.u(tT,_.z);_.Y=tT.prototype;_.Y.shouldSupportInlineActionButtons=function(){return!0};
_.Y.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.Y.ready=function(){var t=document.querySelector("yt-live-chat-app");t&&t.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.Y.messageChanged=function(){var t=this.data.message,E=(0,_.aG)(_.ZN(this.hostElement).querySelector("#message"));E.textContent="";t&&E.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(t))};
_.Y.computeHasPrimaryHeaderText=function(t){return!(!t||!t.headerPrimaryText)};
_.Y.computeShowOnlyHeader=function(t,E){return this.isMessageEmpty(t,E)};
_.Y.computeAuthorBadges=function(t){return t.authorBadges||[]};
_.Y.isMessageEmpty=function(t,E){return!t||t.empty?!0:!t.message&&!t.inputField&&!E};
_.Y.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.Y.getInputElement=function(){return _.ZN(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.Y.inputFocus=function(){var t=this.getInputElement();t&&t.focus()};
_.Y.inputInsertEmoji=function(t){var E=this.getInputElement();E&&E.insertEmoji(t)};
_.Y.inputMessage=function(){var t=this.getInputElement();return t&&this.data.inputField?(t.completeEmojis(),_.Mn(t.liveChatRichMessageInput)):null};
_.Y.onFooterButtonClick=function(){this.data.footerButton&&_.kT(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.Y.shouldSupportWholeItemClick=function(){return!0};
tT.prototype.isDeletedChanged=tT.prototype.isDeletedChanged;tT.prototype.messageChanged=tT.prototype.messageChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],tT.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.dw.YtLiveChatItemBehavior),_.P("design:type",_.uI)],tT.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.g(Xz4.YtLiveChatMembershipItemBehavior),_.P("design:type",Object)],tT.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],tT.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],tT.prototype,"data",void 0);_.N([_.e({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.P("design:type",Object)],tT.prototype,"hasPrimaryHeaderText",void 0);_.N([_.e({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.P("design:type",Object)],tT.prototype,"showOnlyHeader",void 0);
_.N([_.e({computed:"computeAuthorBadges(data)"}),_.P("design:type",Array)],tT.prototype,"authorBadges",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],tT.prototype,"modern",void 0);_.N([_.GI("data.message"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tT.prototype,"messageChanged",null);_.N([_.GI("isDeleted"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tT.prototype,"isDeletedChanged",null);
_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],tT);
_.G(tT,"yt-live-chat-membership-item-renderer",function(){if(O8o===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;Z8T===void 0&&(Z8T=document.createElement("template"));var U=Z8T;p.call(E,U.content.cloneNode(!0),t.content.firstChild);O8o=t}t=O8o;return t},{mode:0});var h40;var aLr;var E9=function(){return _.z.apply(this,arguments)||this};
_.u(E9,_.z);E9.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],E9.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],E9.prototype,"data",void 0);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],E9);
_.G(E9,"yt-live-chat-mode-change-message-renderer",function(){if(aLr===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;h40===void 0&&(h40=document.createElement("template"));var U=h40;p.call(E,U.content.cloneNode(!0),t.content.firstChild);aLr=t}t=aLr;return t},{mode:0});var e4r;var F1r;var pE=function(){return _.z.apply(this,arguments)||this};
_.u(pE,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],pE.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.dw.YtLiveChatItemBehavior),_.P("design:type",_.uI)],pE.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],pE.prototype,"data",void 0);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],pE);
_.G(pE,"yt-live-chat-moderation-message-renderer",function(){if(F1r===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;e4r===void 0&&(e4r=document.createElement("template"));var U=e4r;p.call(E,U.content.cloneNode(!0),t.content.firstChild);F1r=t}t=F1r;return t},{mode:0});var z4r;var lL4;var U9=function(){return _.z.apply(this,arguments)||this};
_.u(U9,_.z);U9.prototype.onClick=function(){var t;if((t=this.data)!=null&&t.onClickCommand){var E;_.Gh.instance.resolveCommand((E=this.data)==null?void 0:E.onClickCommand)}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],U9.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Bg),_.P("design:type",Object)],U9.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.g(_.dw.YtLiveChatItemBehavior),_.P("design:type",_.uI)],U9.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],U9.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],U9.prototype,"data",void 0);
_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],U9);
_.G(U9,"yt-live-chat-offer-click-count-message-renderer",function(){if(lL4===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;z4r===void 0&&(z4r=document.createElement("template"));var U=z4r;p.call(E,U.content.cloneNode(!0),t.content.firstChild);lL4=t}t=lL4;return t},{mode:0});var G_Z;var nGr=function(){return _.z.apply(this,arguments)||this};
_.u(nGr,_.z);_.N([_.e(),_.P("design:type",Object)],nGr.prototype,"data",void 0);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],nGr);
_.G(nGr,"yt-live-chat-placeholder-item-renderer",function(){if(G_Z===void 0){var t=document.createElement("template");_.J(t,"\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");t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);G_Z=t}t=G_Z;return t},{mode:0});var Nr4;var DIT;var swf=new BL(7),xp=function(){var t=_.z.apply(this,arguments)||this;t.data={};return t};
_.u(xp,_.z);xp.prototype.dataChanged=function(){var t;((t=this.data)==null?0:t.class)&&_.XM(this.hostElement,this.data.class,!0);var E;((E=this.oldData)==null?0:E.class)&&_.XM(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
xp.prototype.computeTimestampString=function(t){return swf.format(new Date(t/1E3))};
xp.prototype.dataChanged=xp.prototype.dataChanged;_.N([_.e(),_.P("design:type",Object)],xp.prototype,"data",void 0);_.N([_.e({computed:"computeTimestampString(data.timestampUsec)"}),_.P("design:type",String)],xp.prototype,"timestampString",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xp.prototype,"dataChanged",null);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],xp);
_.G(xp,"yt-live-chat-server-error-message",function(){if(DIT===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;Nr4===void 0&&(Nr4=document.createElement("template"));var U=Nr4;p.call(E,U.content.cloneNode(!0),t.content.firstChild);DIT=t}t=DIT;return t},{mode:0});var L1X;var PTG;var AT=function(){var t=_.z.apply(this,arguments)||this;t.defaultToFilledIcon=!1;return t};
_.u(AT,_.z);AT.prototype.computeHasPrimaryColorIcon=function(t){return t==="SPARK"||t==="SPONSORSHIP_STAR"};
AT.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],AT.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.dw.YtLiveChatItemBehavior),_.P("design:type",_.uI)],AT.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],AT.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],AT.prototype,"defaultToFilledIcon",void 0);_.N([_.e(),_.P("design:type",Object)],AT.prototype,"data",void 0);
_.N([_.e({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.P("design:type",Boolean)],AT.prototype,"hasPrimaryColorIcon",void 0);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],AT);
_.G(AT,"yt-live-chat-viewer-engagement-message-renderer",function(){if(PTG===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;L1X===void 0&&(L1X=document.createElement("template"));var U=L1X;p.call(E,U.content.cloneNode(!0),t.content.firstChild);PTG=t}t=PTG;return t},{mode:0});var Trr;var Yp=function(){var t=_.z.apply(this,arguments)||this;t.modernUpdate=!1;t.buttonStyle="overlay";t.buttonType="filled";return t};
_.u(Yp,_.z);Yp.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
Yp.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Yp.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Yp.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Yp.prototype,"modernUpdate",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],Yp.prototype,"buttonStyle",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],Yp.prototype,"buttonType",void 0);
_.N([_.Ul({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],Yp);
_.G(Yp,"ytd-ad-hover-text-button-renderer",function(){if(Trr!==void 0)return Trr;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Trr=t},{mode:1});var oGr;var MT=function(){var t=_.z.apply(this,arguments)||this;t.buttonOverrides={size:"XS"};return t};
_.u(MT,_.z);MT.prototype.onHelpTap=function(t){this.data&&this.data.informationDialog&&(_.kT(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),t.preventDefault(),t.stopPropagation())};
_.N([_.e(),_.P("design:type",Object)],MT.prototype,"buttonOverrides",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],MT.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],MT.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],MT);
_.G(MT,"ytd-live-chat-purchased-product-message-renderer",function(){if(oGr!==void 0)return oGr;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return oGr=t},{mode:1});var W13;var $Io;var mg=function(){var t=_.z.apply(this,arguments)||this;t.isContainerDeleted=!1;return t};
_.u(mg,_.z);mg.prototype.onContextMenuClick=function(t){this.ytLiveChatItemBehavior.showContextMenu(t)};
mg.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))};
mg.prototype.isContainerDeletedChanged=mg.prototype.isContainerDeletedChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],mg.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.dw.YtLiveChatItemBehavior),_.P("design:type",_.uI)],mg.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],mg.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],mg.prototype,"isContainerDeleted",void 0);
_.N([_.e(),_.P("design:type",String)],mg.prototype,"deletedStateMessage",void 0);_.N([_.GI("isContainerDeleted"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mg.prototype,"isContainerDeletedChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],mg);
_.G(mg,"ytd-sponsorships-live-chat-header-renderer",function(){if($Io!==void 0)return $Io;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return $Io=t},{mode:1});var be=function(){var t=_.z.apply(this,arguments)||this;t.modern=_.r("web_button_rework_with_live");t.buttonOverrides={style:"overlay",type:"filled"};return t};
_.u(be,_.z);be.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]]"}}}}}};
be.prototype.onCtaButtonClick=function(){var t,E=_.k((t=this.data)==null?void 0:t.optInPrompt,_.Ry);if(t=this.maybeGetButtonCommand(E)){var p;(p=_.Pu())==null||p.clickCommand(t)}};
be.prototype.maybeGetButtonCommand=function(t){return!t||!t.command||_.k(t.command,Epo)===void 0&&_.k(t.command,tpX)===void 0?null:t.command};
be.prototype.shouldHideOptinPrompt=function(t,E){return!t||E};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],be.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.dw.YtLiveChatItemBehavior),_.P("design:type",_.uI)],be.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],be.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],be.prototype,"modern",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],be);
_.G(be,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(W13!==void 0)return W13;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return W13=t},{mode:1});var K1W;var ie=function(){return _.z.apply(this,arguments)||this};
_.u(ie,_.z);ie.prototype.onContextMenuClick=function(t){this.ytLiveChatItemBehavior.showContextMenu(t)};
ie.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))};
ie.prototype.isDeletedChanged=ie.prototype.isDeletedChanged;_.N([_.g(_.dw.YtLiveChatItemBehavior),_.P("design:type",_.uI)],ie.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],ie.prototype,"data",void 0);_.N([_.GI("isDeleted"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ie.prototype,"isDeletedChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],ie);
_.G(ie,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(K1W!==void 0)return K1W;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return K1W=t},{mode:1});var qT=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return t};
_.u(qT,_.z);_.Y=qT.prototype;
_.Y.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"}}}};
_.Y.handleLiveChatAction=function(t){_.k(t,lar)?this.handleMarkChatItemAsDeletedAction(_.k(t,lar)):_.k(t,zz3)&&this.handleRemoveChatItemAction(_.k(t,zz3))};
_.Y.handleLiveChatActions=function(t){t.forEach(this.handleLiveChatAction,this)};
_.Y.handleMarkChatItemAsDeletedAction=function(t){var E=this,p;((p=this.data)==null?0:p.items)&&this.data.items.forEach(function(U,x){var A=Object.keys(U)[0];Object.values(U)[0].id===t.targetItemId&&E.markAsDeleted("data.items",x,A,t.deletedStateMessage,t.showOriginalContentMessage)})};
_.Y.handleRemoveChatItemAction=function(t){var E=this,p;((p=this.data)==null?0:p.items)&&this.data.items.forEach(function(U,x){Object.values(U)[0].id===t.targetItemId&&E.splice("data.items",x,1)})};
_.Y.markAsDeleted=function(t,E,p,U,x){t=[t,E,p].join(".");this.set(t+".deletedStateMessage",U);this.set(t+".showOriginalContentMessage",x)};
_.N([_.e(),_.P("design:type",Object)],qT.prototype,"data",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],qT.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],qT.prototype,"ytActionHandlerBehavior",void 0);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],qT);
_.G(qT,"yt-live-chat-item-display-list-renderer",function(){if(J_m===void 0){var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;uls===void 0&&(uls=document.createElement("template"));var U=uls;p.call(E,U.content.cloneNode(!0),t.content.firstChild);J_m=t}t=J_m;return t},{mode:0});var vGW;var y_Z,S3T=function(){if(y_Z!==void 0)return y_Z;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;vGW===void 0&&(vGW=document.createElement("template"));var U=vGW;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return y_Z=t};var He=function(){var t=_.z.apply(this,arguments)||this;t.isHeader=!1;return t};
_.u(He,_.z);He.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.aE.Object.defineProperties(He,{template:{configurable:!0,enumerable:!0,get:function(){return S3T()}}});
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],He.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],He.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],He.prototype,"isHeader",void 0);_.N([_.p4({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],He);_.G(He,"yt-live-chat-item-display-renderer",function(){return S3T()},{mode:0});var c_p,t6s,ARo,x5Z;
c_p={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}};t6s={home:"eohps",search:"eosps",watch:"eowps"};_.ES0=["watch","search","home"];
_.fE=function(){this.JSC$14685_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14685_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.qO("PRECONSTRUCTION_DELAY",0);this.signals_=_.ut();this.targetPage_=""};
_.fE.prototype.init=function(t,E){t=t===void 0?"":t;E=E===void 0?null:E;if(this.JSC$14685_isInitialized_)this.abort();else if(this.JSC$14685_isInitialized_=!0,t&&_.pbo(this,t),E){var p=_.JL(this.signals_,"pcl")?0:10,U=function(){for(var x=0,A;A=_.ES0[x++];)A!=t&&A!=E&&this.pendingPages_.push(A);_.U5p(this)}.bind(this);
this.signals_.parkOrScheduleJob(U,p,"pcl")}};
_.fE.prototype.abort=function(){this.fragmentJobId_&&(_.ir.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);x5Z(this)};
_.pbo=function(t,E){t.JSC$14685_isInitialized_&&!t.targetPage_&&(t.targetPage_=E,ARo(t,E),t.isInitialPass_=!1,ARo(t,E),t.signals_.processSignal(t6s[t.targetPage_]),x5Z(t),_.U5p(t))};
_.U5p=function(t){t.pendingPages_.length&&!t.pagePreparerJobId_&&(t.pagePreparerJobId_=_.E_(_.ir,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.pbo(this,this.pendingPages_.shift())}.bind(t),t.DEFAULT_DELAY_))};
ARo=function(t,E){if(E=c_p[E])for(var p in E){var U=!1,x=p;p.charAt(0)=="~"&&(U=!0,x=p.substring(1));var A=E[p];A=typeof A=="object"?A:{count:A};E[p]=A;A.componentName=x;A.count>0&&(t.isInitialPass_?U||t.isSeenDuringInitialPass_[x]||(t.JSC$14685_queue_.push({componentName:x,count:1,signals:A.signals}),t.isSeenDuringInitialPass_[x]=!0,A.count--):t.JSC$14685_queue_.push(A))}};
x5Z=function(t){t.JSC$14685_queue_.length=0;t.targetPage_="";t.isInitialPass_=!0;t.signals_.processSignal("eop")};
_.fE.getInstance=function(){return _.I7(_.fE)};var Ypr=function(){this.signals=_.ut();this.init()};
Ypr.prototype.startPreconstruction=function(){_.fE.getInstance().init(_.HC("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
Ypr.prototype.init=function(){M6W(this);window.Polymer&&RBX&&UvL();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var t=_.Ui.ytcsi;if(t&&t.gt&&(t=t.gt())&&t.tick&&(t.tick.aft>0||t.tick.pbs>0)&&(_.HC("IS_HOMEPAGE_COLD")||_.HC("IS_RESULTS_PAGE_COLD")||_.HC("IS_WATCH_PAGE_COLD"))){m50(this);break a}Le$(WqY,this.onNotifications,this)}};
var M6W=function(t){var E=function(){t.signals.processSignal("dl")};
document.readyState==="complete"?(_.Ra(Error("uh"),"WARNING"),E()):_.Vei(window,"load",E)};
Ypr.prototype.onNotifications=function(t){t.timer||(_.HC("IS_HOMEPAGE_COLD")||_.HC("IS_RESULTS_PAGE_COLD")||_.HC("IS_WATCH_PAGE_COLD"))&&m50(this)};
var m50=function(t){t.signals.parkOrScheduleJob(function(){t.signals.processSignal("eocs")},10,"eor")};
new Ypr;var bnm=function(){return _.sU.apply(this,arguments)||this};
_.u(bnm,_.sU);_.aE.Object.defineProperties(bnm.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_entity_store_from_dependency_injection")?_.Ro():_.QM()}}});
_.N([_.L0()],bnm);_.Be=[M7.prototype,bnm.prototype];var inr=["ytd-rich-shelf-renderer"],wy=function(){var t=_.sU.apply(this,arguments)||this;t._noAccessors=!0;t.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";t.followUpDialogPromise=null;t.followUpDialogPromiseResolve=null;t.followUpDialogPromiseReject=null;return t};
_.u(wy,_.sU);_.Y=wy.prototype;_.Y.dismissibleItemIsDismissedChanged_=function(t){_.r("kevlar_fluid_dismiss")&&(t?_.kT(this.hostElement,"yt-dismissible-item-dismissed"):_.kT(this.hostElement,"yt-dismissible-item-undismissed"))};
_.Y.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.Y.dismissibleItemReset_=function(){var t=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 _.PE(function(E,p){t.followUpDialogPromiseResolve=E;t.followUpDialogPromiseReject=p});
_.kT(this.hostElement,"yt-enable-lockup-interaction")};
_.Y.dismissibleItemOnYtServiceRequestSent_=function(t,E){E.actions&&this.dismissibleItemProcessActions(E.actions,t)};
_.Y.dismissibleItemOnRequestSent=function(t){for(var E=_.M(t.detail),p=E.next();!p.done;p=E.next()){var U=void 0;(p=(U=_.k(p.value,_.XJ))==null?void 0:U.actions)&&this.dismissibleItemProcessActions(p,t)}};
_.Y.dismissibleItemOnCommandSent=function(t,E){E&&this.dismissibleItemProcessActions(E,t)};
_.Y.setAndGetDismissedContentId=function(t){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+t};
_.Y.replayDismissAction=function(t){this.dismissibleItemProcessActions([t])};
_.Y.dismissibleItemProcessActions=function(t,E){for(var p=0;p<t.length;p++){var U=t[p],x=void 0;((x=_.k(U,_.ZU))==null?0:x.commands)&&this.dismissibleItemProcessActions(_.k(U,_.ZU).commands,E);if(_.k(U,_.KC)){if(x=_.k(U,_.KC),!x.replaceParentSection||inr.includes(this.hostElement.nodeName.toLowerCase()))x.groupDismissal&&R4K(this,x.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(x),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.P9("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:U})),U=void 0,(U=E)==null||U.stopPropagation()}else if(_.k(U,gEr))this.dismissibleItemHandleHideEnclosingAction_(),U=void 0,(U=E)==null||U.stopPropagation();else if(_.k(U,tEG))U=_.k(U,tEG),x=void 0,((x=U)==null?0:x.targetGroupId)&&R4K(this,{targetGroupId:U.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.P9("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
U=void 0,(U=E)==null||U.stopPropagation();else if(_.k(U,_.XJ))(U=_.k(U,_.XJ).actions)&&_.IK(this.hostElement,U,this.hostElement),U=void 0,(U=E)==null||U.stopPropagation();else{var A=x=void 0;((x=_.k(U,_.QB))==null?void 0:x.signal)!=="TELL_US_WHY"||((A=_.k(U,_.QB))==null?0:A.targetId)&&_.r("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),U=void 0,(U=E)==null||U.stopPropagation())}}};
_.Y.dismissibleItemOnYtServiceRequestCompleted_=function(t,E){var p=this.get("feedbackResponses.0.followUpDialog",E.data);p?this.followUpDialogPromiseResolve(p):E.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(E.actions,t)};
_.Y.dismissibleItemHandleReplaceEnclosingAction_=function(t){this.dismissedRenderer=t.item;this.isDismissed=!0;var E=null;(E=_.ZN(this.hostElement).querySelector("#dismissed"))&&_.XE(this,function(){_.If(E)});
_.kT(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.Y.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.Y.dismissibleItemHandleUndoFeedbackAction_=function(){_.kT(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.Y.dismissibleItemHandleTellUsWhySignalAction_=function(){var t=this;this.followUpDialogPromise.then(function(E){t.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:E}})})};
wy.prototype.dismissibleItemOnYtServiceRequestCompleted_=wy.prototype.dismissibleItemOnYtServiceRequestCompleted_;wy.prototype.dismissibleItemOnCommandSent=wy.prototype.dismissibleItemOnCommandSent;wy.prototype.dismissibleItemOnRequestSent=wy.prototype.dismissibleItemOnRequestSent;wy.prototype.dismissibleItemOnYtServiceRequestSent_=wy.prototype.dismissibleItemOnYtServiceRequestSent_;wy.prototype.dismissibleItemDataChanged_=wy.prototype.dismissibleItemDataChanged_;
wy.prototype.dismissibleItemIsDismissedChanged_=wy.prototype.dismissibleItemIsDismissedChanged_;_.N([_.g(_.aU),_.P("design:type",Object)],wy.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],wy.prototype,"ytdReduxBehavior",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],wy.prototype,"isDismissed",void 0);_.N([_.e(),_.P("design:type",Object)],wy.prototype,"dismissedRenderer",void 0);
_.N([_.GI("isDismissed"),_.P("design:type",Function),_.P("design:paramtypes",[Boolean]),_.P("design:returntype")],wy.prototype,"dismissibleItemIsDismissedChanged_",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wy.prototype,"dismissibleItemDataChanged_",null);
_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.m8]),_.P("design:returntype")],wy.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.N([_.lc("yt-service-request-sent-button-renderer"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],wy.prototype,"dismissibleItemOnRequestSent",null);
_.N([_.lc("yt-dismissible-item-action"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Array]),_.P("design:returntype")],wy.prototype,"dismissibleItemOnCommandSent",null);_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Rn]),_.P("design:returntype")],wy.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.N([_.L0()],wy);_.Rl=[_.aU,_.Be,wy.prototype];var Vo=function(){var t=_.sU.apply(this,arguments)||this;t.disableGridStateAware=!1;t.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};t.currentGridClass="";return t};
_.u(Vo,_.sU);Vo.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.XE(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var t=this.gridStateAwareGetElement();_.XM(t,"grid",!0)}};
Vo.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
Vo.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.ZN(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
Vo.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var t="grid-disabled";else{t=_.DZ.getInstance();var E=this.get("pageSubtype");t=E&&RCW.includes(E)?"grid-disabled":t.currentSnapState_?t.currentSnapState_.className:null}(E=this.gridStateAwareGetElement())&&t!==this.currentGridClass&&(t&&_.XM(E,t,!0),this.currentGridClass&&_.XM(E,this.currentGridClass,!1),this.currentGridClass=t)};
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Vo.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",String)],Vo.prototype,"gridStateAwareSizingElementSelector",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Vo.prototype,"disableGridStateAware",void 0);_.N([_.L0()],Vo);_.Qo=[Vo.prototype,_.oO.YtActionHandlerBehavior];_.CE=new _.gM("GUIDE_TOKEN");var ry;_.jp={};ry=function(){var t=_.sU.apply(this,arguments)||this;t.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 t};
_.u(ry,_.sU);_.Y=ry.prototype;_.Y.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.Y.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var t=_.X3().resolve(_.OB(_.CE));t&&(this.guidePersistentAndVisible=t.getGuidePersistentAndVisible(),this.activeEndpoint=t.getActiveEndpoint(),this.guideOpened=t.getGuideOpened(),this.miniGuideVisible=t.getMiniGuideVisible())};
_.Y.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.Y.handleGuideStateAction=function(t){this.guidePersistentAndVisible=t};
_.Y.handleMiniGuideStateAction=function(t){this.miniGuideVisible=t};
_.Y.handleGuideOpenedAction=function(t){this.guideOpened=t};
_.Y.handleActiveEndpointAction=function(t){this.activeEndpoint=t};
ry.prototype.onActiveEndpointChange=ry.prototype.onActiveEndpointChange;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],ry.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],ry.prototype,"guidePersistentAndVisible",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],ry.prototype,"miniGuideVisible",void 0);_.N([_.e(),_.P("design:type",Object)],ry.prototype,"activeEndpoint",void 0);
_.N([_.GI("activeEndpoint"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ry.prototype,"onActiveEndpointChange",null);_.N([_.e(),_.P("design:type",Boolean)],ry.prototype,"guideOpened",void 0);_.N([_.L0()],ry);_.jp.YtdGuideStateAwareBehavior=[];_.jp.YtdGuideStateAwareBehavior.push(ry.prototype,_.oO.YtActionHandlerBehavior);var qps=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],kp=function(){var t=_.sU.apply(this,arguments)||this;t.hoverJobId=0;t.JSC$14712_touched=!1;return t};
_.u(kp,_.sU);_.Y=kp.prototype;_.Y.created=function(){this.useExpandableTooltip=!qps.includes(this.is)};
_.Y.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.Y.detached=function(){this.useExpandableTooltip=!1};
_.Y.lockupOnDown=function(t){this.interactionElement&&!_.Qb(_.Vx(t),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.Y.lockupOnUp=function(t){this.interactionElement&&!_.Qb(_.Vx(t),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.Y.onTouchStart=function(){this.JSC$14712_touched=!0};
_.Y.lockupOnMouseEnter=function(){var t=this,E=_.z3("kevlar_lockup_hover_delay",-1);this.JSC$14712_touched&&E>=0?(_.ir.cancelJob(this.hoverJobId),this.hoverJobId=_.ir.addJob(function(){t.lockupIsHovered=!0},8,E),this.JSC$14712_touched=!1):this.lockupIsHovered=!0};
_.Y.lockupOnMouseLeave=function(){this.hoverJobId&&(_.ir.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.Y.lockupOnPopupClosed=function(t,E){var p;((p=E.popupRenderer)==null?void 0:p.is)==="ytd-menu-popup-renderer"&&(t=E.popupRenderer.veData,E=_.yL(),t&&E&&_.iU(E,[t]))};
_.Y.lockupOnLockupRequested=function(t){var E=t.detail.videoIds[0],p;t.detail&&E===((p=this.data)==null?void 0:p.videoId)&&(t.detail.returnValue=[this.data])};
_.Y.lockupOnYtServiceRequestSent=function(t,E){if(t=E.actions)for(var p=0;p<t.length;p++){var U=t[p];if(U.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&E.ajaxPromise){var x=void 0,A=(x=_.k(E.endpoint,_.HH))==null?void 0:x.playlistId;x=void 0;U=(x=U.removedVideoId)!=null?x:"";s8Z(_.gY(),U,A)}else U.action==="ACTION_REMOVE_VIDEO"&&E.ajaxPromise&&(A=void 0,U=(A=U.setVideoId)!=null?A:"",_.LfG(_.gY(),U))}};
_.Y.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.Y.lockupOnLockupEnabled=function(){if(!this.$){var t=_.X3().resolve(_.jw).getCurrentPage(),E=this.getParentRenderer?this.getParentRenderer():void 0;_.qW(new _.cC("component not ready",this.is,this.isAttached,t==null?void 0:t.is,E==null?void 0:E.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
kp.prototype.lockupOnLockupEnabled=kp.prototype.lockupOnLockupEnabled;kp.prototype.lockupOnLockupDisabled=kp.prototype.lockupOnLockupDisabled;kp.prototype.lockupOnYtServiceRequestSent=kp.prototype.lockupOnYtServiceRequestSent;kp.prototype.lockupOnLockupRequested=kp.prototype.lockupOnLockupRequested;kp.prototype.lockupOnPopupClosed=kp.prototype.lockupOnPopupClosed;kp.prototype.lockupOnMouseLeave=kp.prototype.lockupOnMouseLeave;kp.prototype.lockupOnMouseEnter=kp.prototype.lockupOnMouseEnter;
kp.prototype.onTouchStart=kp.prototype.onTouchStart;kp.prototype.lockupOnUp=kp.prototype.lockupOnUp;kp.prototype.lockupOnDown=kp.prototype.lockupOnDown;_.N([_.e(),_.P("design:type",Object)],kp.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Boolean)],kp.prototype,"lockupIsHovered",void 0);_.N([_.e(),_.P("design:type",Boolean)],kp.prototype,"lockupTouchTriggered",void 0);_.N([_.e(),_.P("design:type",Boolean)],kp.prototype,"useExpandableTooltip",void 0);
_.N([_.Nl("#interaction"),_.P("design:type",Object)],kp.prototype,"interactionElement",void 0);_.N([_.lc("down"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],kp.prototype,"lockupOnDown",null);_.N([_.lc("up"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],kp.prototype,"lockupOnUp",null);
_.N([_.lc("touchstart"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kp.prototype,"onTouchStart",null);_.N([_.lc("mouseenter"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kp.prototype,"lockupOnMouseEnter",null);_.N([_.lc("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kp.prototype,"lockupOnMouseLeave",null);
_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],kp.prototype,"lockupOnPopupClosed",null);_.N([_.lc("yt-lockup-requested"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],kp.prototype,"lockupOnLockupRequested",null);
_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.m8]),_.P("design:returntype")],kp.prototype,"lockupOnYtServiceRequestSent",null);_.N([_.lc("yt-disable-lockup-interaction"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kp.prototype,"lockupOnLockupDisabled",null);
_.N([_.lc("yt-enable-lockup-interaction"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kp.prototype,"lockupOnLockupEnabled",null);_.N([_.L0()],kp);_.dy=[kp.prototype];_.HnZ={YtdReduxBehavior:[]};_.HnZ.YtdReduxBehavior.push.apply(_.HnZ.YtdReduxBehavior,_.Be);var ue=function(){var t=_.sU.apply(this,arguments)||this;t._noAccessors=!0;t.disableNowPlaying=!1;t.disableTooltips=!1;t.useHoveredProperty=!1;t.hovered=!1;t.isThumbnailHovered_=!1;t.addBackground=_.r("kevlar_thumbnail_bg");t.nowPlaying=!1;t.disableRounding=!1;t.size="small";return t};
_.u(ue,_.sU);_.Y=ue.prototype;_.Y.computeThumbnailOverlaySidePanelWidth_=function(t,E){return t-E};
_.Y.computeSize=function(t,E){if(!this.disableRounding){if(!t&&!E)return"small";t=Math.max(t||0,E||0);return t>=256?"large":t>=96?"medium":"small"}};
_.Y.computeFinalHoveredState_=function(t,E,p){return this.nowPlaying?!1:_.r("kevlar_thumbnail_fluid")&&t?E:p};
_.Y.computeHoverOverlays_=function(t,E){return t&&E?E:void 0};
_.Y.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.Y.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.Y.checkMiniplayer_=function(){var t;if(((t=this.data)==null?0:t.playlistSetVideoId)&&_.r("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{t=_.S3();var E=t.currentEndpoint;!this.disableNowPlaying&&E&&_.k(E,_.HD)&&this.data?(E=_.k(E,_.HD),this.nowPlaying=this.data.playlistId?E.playlistId===this.data.playlistId:E.videoId===this.data.videoId,this.isVideoPlaying=t==null?void 0:t.isVideoPlaying):this.nowPlaying=!1}};
ue.prototype.checkMiniplayer_=ue.prototype.checkMiniplayer_;ue.prototype.onMouseLeave_=ue.prototype.onMouseLeave_;ue.prototype.onMouseEnter_=ue.prototype.onMouseEnter_;ue.prototype.computeHoverOverlays_=ue.prototype.computeHoverOverlays_;ue.prototype.computeFinalHoveredState_=ue.prototype.computeFinalHoveredState_;ue.prototype.computeSize=ue.prototype.computeSize;ue.prototype.computeThumbnailOverlaySidePanelWidth_=ue.prototype.computeThumbnailOverlaySidePanelWidth_;
_.N([_.g(_.Be),_.P("design:type",Object)],ue.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],ue.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Number)],ue.prototype,"height",void 0);_.N([_.e(),_.P("design:type",Boolean)],ue.prototype,"bottomSidePanel",void 0);_.N([_.e(),_.P("design:type",Number)],ue.prototype,"width",void 0);_.N([_.e(),_.P("design:type",Object)],ue.prototype,"disableNowPlaying",void 0);
_.N([_.e({selector:_.E5}),_.P("design:type",Boolean)],ue.prototype,"miniplayerIsActive",void 0);_.N([_.e(),_.P("design:type",Object)],ue.prototype,"disableTooltips",void 0);_.N([_.e(),_.P("design:type",Object)],ue.prototype,"useHoveredProperty",void 0);_.N([_.e(),_.P("design:type",Object)],ue.prototype,"hovered",void 0);_.N([_.e(),_.P("design:type",Object)],ue.prototype,"isThumbnailHovered_",void 0);
_.N([_.e({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.P("design:type",Boolean)],ue.prototype,"finalHoveredState_",void 0);_.N([_.e({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.P("design:type",Number)],ue.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],ue.prototype,"addBackground",void 0);
_.N([_.e({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.P("design:type",Object)],ue.prototype,"hoverOverlays_",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],ue.prototype,"nowPlaying",void 0);_.N([_.e(),_.P("design:type",Boolean)],ue.prototype,"isVideoPlaying",void 0);_.N([_.e(),_.P("design:type",Object)],ue.prototype,"disableRounding",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.P("design:type",Object)],ue.prototype,"size",void 0);_.N([_.lc("mouseenter"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ue.prototype,"onMouseEnter_",null);_.N([_.lc("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ue.prototype,"onMouseLeave_",null);
_.N([_.GI("data","disableNowPlaying","miniplayerIsActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ue.prototype,"checkMiniplayer_",null);_.N([_.L0()],ue);var fIs=[ue.prototype];_.JT={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(t,E){return t+":"+_.W8(E)},
getPlayerListener_:function(t,E,p){t=this.getPlayerListenerKey_(t,E);E=this.playerListeners_.get(t);p&&this.playerListeners_.delete(t);return E},
savePlayerListener_:function(t,E){var p=E.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(t,E),p);return p},
listenToPlayerEvent:function(t,E,p){p=this.savePlayerListener_(E,p);t.addEventListener(E,p)},
listenToPlayerEvents:function(t,E){E.forEach(function(p,U){this.listenToPlayerEvent(t,U,p)}.bind(this))},
unlistenFromPlayerEvent:function(t,E,p){p=this.getPlayerListener_(E,p,!0);t.removeEventListener(E,p)},
unlistenFromPlayerEvents:function(t,E){E.forEach(function(p,U){this.unlistenFromPlayerEvent(t,U,p)}.bind(this))}}};
_.Il=function(){};_.BqZ=new _.gM("PLAYER_API_TOKEN");var jw_=!1,ul0,k_D=!1,ILK;var J8=function(t,E,p,U,x){_.PQ.call(this);var A=this;this.playerId=E;this.webPlayerContextConfig=U;this.ug9=x;this.mpz=!1;this.api={};this.dq5=this.kFi=null;this.pq5=new _.oa;this.ak={};this.khf=this.iKJ=this.elementId=this.tj4=this.config=null;this.vmG=!1;this.mZ=this.ll2=null;this.nS2={};this.xi9=["onReady"];this.lastError=null;this.atB=NaN;this.mff={};this.nEi=0;this.cd=this.targetElement=t;_.ed(this,this.pq5);wbr(this);p?this.nEi=setTimeout(function(){A.loadNewVideoConfig(p)},0):U&&(R6G(this),
V6Z(this))};
_.u(J8,_.PQ);J8.prototype.getId=function(){return this.playerId};
J8.prototype.loadNewVideoConfig=function(t){if(!this.isDisposed()){this.nEi&&(clearTimeout(this.nEi),this.nEi=0);var E=t||{};E instanceof WwT||(E=new WwT(E));this.config=E;this.setConfig(t);V6Z(this);this.isReady()&&QBZ(this)}};
var R6G=function(t){var E;t.webPlayerContextConfig?E=t.webPlayerContextConfig.rootElementId:E=t.config.attrs.id;t.elementId=E||t.elementId;t.elementId==="video-player"&&(t.elementId=t.playerId,t.webPlayerContextConfig?t.webPlayerContextConfig.rootElementId=t.playerId:t.config.attrs.id=t.playerId);var p;((p=t.cd)==null?void 0:p.id)===t.elementId&&(t.elementId+="-player",t.webPlayerContextConfig?t.webPlayerContextConfig.rootElementId=t.elementId:t.config.attrs.id=t.elementId)};
J8.prototype.setConfig=function(t){this.tj4=t;this.config=CMG(t);R6G(this);if(!this.iKJ){var E;this.iKJ=jB3(this,((E=this.config.args)==null?void 0:E.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var p;if((p=this.config)==null?0:p.attrs)t=this.config.attrs,(E=t.width)&&this.cd&&(this.cd.style.width=wF(Number(E)||E,!0)),(t=t.height)&&this.cd&&(this.cd.style.height=wF(Number(t)||t,!0))};
J8.prototype.getConfig=function(){return this.tj4};
var QBZ=function(t){if(t.config&&t.config.loaded!==!0)if(t.config.loaded=!0,!t.config.args||t.config.args.autoplay!=="0"&&t.config.args.autoplay!==0&&t.config.args.autoplay!==!1){var E;t.api.loadVideoByPlayerVars((E=t.config.args)!=null?E:null)}else t.api.cueVideoByPlayerVars(t.config.args)},k7Z=function(t){var E=!0,p=t.getPlayerElement();
p&&t.config&&(E=p.dataset.version===rR3(t));return E&&!!_.ws("yt.player.Application.create")},V6Z=function(t){if(!t.isDisposed()&&!t.vmG){var E=k7Z(t);
if(E&&(t.getPlayerElement()?"html5":null)==="html5")t.khf="html5",t.isReady()||d5r(t);else if(ues(t),t.khf="html5",E&&t.mZ&&t.targetElement)t.targetElement.appendChild(t.mZ),d5r(t);else{t.config&&(t.config.loaded=!0);var p=!1;t.ll2=function(){p=!0;var U=JRT(t,"player_bootstrap_method")?_.ws("yt.player.Application.createAlternate")||_.ws("yt.player.Application.create"):_.ws("yt.player.Application.create");var x=t.config?CMG(t.config):void 0;U&&U(t.targetElement,x,t.webPlayerContextConfig,t.ug9);d5r(t)};
t.vmG=!0;E?t.ll2():(_.xT(rR3(t),t.ll2),(E=IIX(t))&&R80(E||""),gSr(t)&&!p&&_.Oy("yt.player.Application.create",null))}}};
J8.prototype.getPlayerElement=function(){var t=_.uA(document,this.elementId);!t&&this.cd&&this.cd.querySelector&&(t=this.cd.querySelector("#"+this.elementId));return t};
var d5r=function(t){if(!t.isDisposed()){var E=t.getPlayerElement(),p=!1;E&&E.getApiInterface&&E.getApiInterface()&&(p=!0);if(p){t.vmG=!1;if(!JRT(t,"html5_remove_not_servable_check_killswitch")){var U;if((E==null?0:E.isNotServable)&&t.config&&(E==null?0:E.isNotServable((U=t.config.args)==null?void 0:U.video_id)))return}Znf(t)}else t.atB=setTimeout(function(){d5r(t)},50)}},Znf=function(t){wbr(t);
t.mpz=!0;var E=t.getPlayerElement();if(E){t.kFi=Ons(t,E,"addEventListener");t.dq5=Ons(t,E,"removeEventListener");var p=E.getApiInterface();p=p.concat(E.getInternalApiInterface());for(var U=t.api,x=0;x<p.length;x++){var A=p[x];U[A]||(U[A]=Ons(t,E,A))}}for(var m in t.ak)t.ak.hasOwnProperty(m)&&t.kFi&&t.kFi(m,t.ak[m]);QBZ(t);t.iKJ&&t.iKJ(t.api);t.pq5.publish("onReady",t.api)},Ons=function(t,E,p){var U=E[p];
return function(){var x=_.t9.apply(0,arguments);try{return t.lastError=null,U.apply(E,x)}catch(A){if(p!=="sendAbandonmentPing")throw A.params=p,t.lastError=A,x=new _.cC("PlayerProxy error in method call",{error:A,method:p,playerId:t.playerId}),x.level="WARNING",x;}}},wbr=function(t){t.mpz=!1;
if(t.dq5)for(var E in t.ak)t.ak.hasOwnProperty(E)&&t.dq5(E,t.ak[E]);for(var p in t.mff)t.mff.hasOwnProperty(p)&&clearTimeout(Number(p));t.mff={};t.kFi=null;t.dq5=null;E=t.api;for(var U in E)E.hasOwnProperty(U)&&(E[U]=null);E.addEventListener=function(x,A){t.addEventListener(x,A)};
E.removeEventListener=function(x,A){t.removeEventListener(x,A)};
E.destroy=function(){t.dispose()};
E.getLastError=function(){return t.getLastError()};
E.getPlayerType=function(){return t.getPlayerType()};
E.getCurrentVideoConfig=function(){return t.getConfig()};
E.loadNewVideoConfig=function(x){t.loadNewVideoConfig(x)};
E.isReady=function(){return t.isReady()}};
J8.prototype.isReady=function(){return this.mpz};
J8.prototype.addEventListener=function(t,E){var p=this;this.isDisposed();var U=jB3(this,E);U&&(_.zt(this.xi9,t)||this.ak[t]||(E=Xb4(this,t),this.kFi&&this.kFi(t,E)),this.pq5.subscribe(t,U),t==="onReady"&&this.isReady()&&setTimeout(function(){U(p.api)},0))};
J8.prototype.removeEventListener=function(t,E){this.isDisposed()||(E=jB3(this,E))&&this.pq5.unsubscribe(t,E)};
var jB3=function(t,E){var p=E;if(typeof E==="string"){if(t.nS2[E])return t.nS2[E];p=function(){var U=_.t9.apply(0,arguments),x=_.ws(E);if(x)try{x.apply(_.Ui,U)}catch(A){throw U=new _.cC("PlayerProxy error when executing callback",{error:A}),U.level="ERROR",U;}};
t.nS2[E]=p}return p?p:null},Xb4=function(t,E){var p=function(U){var x=function(){t.isDisposed();
if(!t.isDisposed())try{t.pq5.publish(E,U!=null?U:void 0)}catch(b){var m=new _.cC("PlayerProxy error when creating global callback",{error:b.message,event:E,playerId:t.playerId,data:U,originalStack:b.stack,componentStack:b.componentStack});m.level="WARNING";throw m;}};
if(JRT(t,"web_player_publish_events_immediately"))x();else{var A=setTimeout(function(){x();_.Kq.remove(t.mff,String(A))},0);
_.Kq.add(t.mff,String(A),!0)}};
return t.ak[E]=p};
J8.prototype.getPlayerType=function(){return this.khf||(this.getPlayerElement()?"html5":null)};
J8.prototype.getLastError=function(){return this.lastError};
var ues=function(t){t.cancel();wbr(t);t.khf=null;t.config&&(t.config.loaded=!1);var E=t.getPlayerElement();E&&(k7Z(t)||!gSr(t)?t.mZ=E:(E&&E.destroy&&E.destroy(),t.mZ=null));t.targetElement&&_.bk(t.targetElement)};
J8.prototype.cancel=function(){this.ll2&&_.TaY(rR3(this),this.ll2);clearTimeout(this.atB);this.vmG=!1};
J8.prototype.disposeInternal=function(){ues(this);if(this.mZ&&this.config&&this.mZ.destroy)try{this.mZ.destroy()}catch(E){var t=new _.cC("PlayerProxy error during disposal",{error:E});t.level="ERROR";throw t;}this.nS2=null;for(t in this.ak)this.ak.hasOwnProperty(t)&&delete this.ak[t];this.tj4=this.config=this.api=null;delete this.targetElement;delete this.cd;_.PQ.prototype.disposeInternal.call(this)};
var gSr=function(t){var E,p;t=(E=t.config)==null?void 0:(p=E.args)==null?void 0:p.fflags;return!!t&&t.indexOf("player_destroy_old_version=true")!==-1},rR3=function(t){return t.webPlayerContextConfig?t.webPlayerContextConfig.jsUrl:(t=t.config.assets)?t.js:""},IIX=function(t){return t.webPlayerContextConfig?t.webPlayerContextConfig.cssUrl:(t=t.config.assets)?t.css:""},JRT=function(t,E){if(t.webPlayerContextConfig)var p=t.webPlayerContextConfig.serializedExperimentFlags;
else{var U;if((U=t.config)==null?0:U.args)p=t.config.args.fflags}return(p||"").split("&").includes(E+"=true")},CMG=function(t){for(var E={},p=_.M(Object.keys(t)),U=p.next();!U.done;U=p.next()){U=U.value;
var x=t[U];E[U]=typeof x==="object"?_.Kq.clone(x):x}return E};var h4_={},XzO="player_uid_"+(Math.random()*1E9>>>0);var gy=function(t,E,p,U,x,A){E=E===void 0?document.createElement("div"):E;this.webPlayerContextConfig=t;this.container=E;this.commandResolver=p;this.apiResolver=F1i();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.hf;U||A?h6G(this):aIp(this);this.pendingPlayerResponse=U;this.pendingWatchNextResponse=x;this.pendingPlayerVars=A;e6f(this)};
gy.prototype.loadVideoWithPlayerResponse=function(t,E,p){this.loadVideo(t,E,p)};
gy.prototype.loadVideoWithPlayerVars=function(t){return this.loadVideo(void 0,void 0,t)};
gy.prototype.destroy=function(t){if(t=_.uA(document,t))t=XzO+"_"+_.W8(t),(t=h4_[t])&&t.dispose()};
var z6r=function(t,E){var p;_.q(function(U){if(U.nextAddress==1)return t.pendingWatchNextResponse=E,t.synchronousApi?(p=t.synchronousApi,U.jumpTo(2)):U.yield(t.api,3);U.nextAddress!=2&&(p=U.yieldResult);if(!FNG(t,p))return U.return();t.pendingWatchNextResponse&&(p.updateVideoData({raw_watch_next_response:t.pendingWatchNextResponse}),t.pendingWatchNextResponse=void 0);_.Do(U)})},FNG=function(t,E){var p;
if(!(E==null?0:(p=E.isReady)==null?0:p.call(E))){var U;_.qW(new _.cC("playerApi is falsey",{synchronousApi:t.synchronousApi,apiResolved:t.apiResolver.resolved,playerApiUndefined:E===void 0,playerApiNull:E===null,playerApiReady:(E==null?void 0:(U=E.isReady)==null?void 0:U.call(E))===!0,playerApiMethods:E?Object.keys(E):[]}));return!1}return!0},lIX=function(t,E){if(typeof t[E]==="function")return t[E]()},G7W=function(t){var E=window,p,U=(p=E.ytplayer)==null?void 0:p.bootstrapPlayerContainer;
if((p=U==null?void 0:U.firstElementChild)&&_.ud(p,"html5-video-player")){var x,A,m=(x=E.ytplayer)==null?void 0:(A=x.bootstrapWebPlayerContextConfig)==null?void 0:A.contextId;x=t.webPlayerContextConfig.contextId;if(m&&m===x){U!==t.container&&(U=!1,lIX(p,"getPlayerState")===2&&(U=!0),t.container.appendChild(p),U||lIX(p,"playVideo"));var b;if((b=E.ytplayer)==null?0:b.bootstrapPlayerResponse)t.bootstrapPlayerResponse=E.ytplayer.bootstrapPlayerResponse}}},e6f=function(t){var E,p,U,x,A;
_.q(function(m){if(m.nextAddress==1)return t.pageReadyOrDataAvailable?m.jumpTo(2):m.yield(t.pageReadyOrDataAvailableResolver.promise,2);if(m.nextAddress!=4)return!_.r("kevlar_player_unified_player_loading")||r__()&&dIY()?m.jumpTo(4):m.yield(Z8l(),4);G7W(t);if(t.pendingPlayerResponse||t.pendingPlayerVars)E=O8j(t.pendingPlayerResponse,t.pendingWatchNextResponse,t.pendingPlayerVars),t.pendingPlayerResponse&&t.pendingPlayerResponse===t.bootstrapPlayerResponse&&(E.loaded=!0),t.bootstrapPlayerResponse=
void 0;p=e4i(t.container,E,t.webPlayerContextConfig);((U=E)==null?0:U.loaded)&&t.pendingWatchNextResponse?(z6r(t,t.pendingWatchNextResponse),t.pendingPlayerResponse=void 0,t.pendingPlayerVars=void 0):nSZ(t);x=function(b){p.removeEventListener("onReady",x);t.synchronousApi=b;t.apiResolver.resolve(b)};
p.addEventListener("onReady",x);t.commandResolver!==void 0&&(A=t.commandResolver,p.addEventListener("innertubeCommand",function(b){A(b)}));
_.Do(m)})};
gy.prototype.loadVideo=function(t,E,p){var U=this,x,A,m,b,f,B,R,V,Q;return _.q(function(C){if(C.nextAddress==1)return U.pendingPlayerResponse=t,U.pendingWatchNextResponse=E,U.pendingPlayerVars=p,h6G(U),U.synchronousApi?(x=U.synchronousApi,C.jumpTo(2)):C.yield(U.api,3);C.nextAddress!=2&&(x=C.yieldResult);if(!FNG(U,x))return C.return(new Promise(function(){}));
m=new Promise(function(d){A=d});
b=function(){var d=x.getPlayerResponse();d&&(x.removeEventListener("onVideoDataChange",b),A(d))};
x.addEventListener("onVideoDataChange",b);if(U.pendingPlayerResponse||U.pendingPlayerVars)U.pendingPlayerResponse&&U.pendingPlayerResponse===U.bootstrapPlayerResponse?(A(U.pendingPlayerResponse),U.pendingWatchNextResponse&&z6r(U,U.pendingWatchNextResponse)):(f=O8j(U.pendingPlayerResponse,U.pendingWatchNextResponse,U.pendingPlayerVars),(Q=(B=U.pendingPlayerResponse)==null?void 0:(R=B.playerConfig)==null?void 0:(V=R.playbackStartConfig)==null?void 0:V.startPaused)?x.cueVideoByPlayerVars(f.args):x.loadVideoByPlayerVars(f.args)),
nSZ(U),U.bootstrapPlayerResponse=void 0;return C.return(m)})};
var aIp=function(t){if(document.readyState==="complete"||document.readyState==="interactive")h6G(t);else{var E=function(){document.removeEventListener("DOMContentLoaded",E);h6G(t)};
document.addEventListener("DOMContentLoaded",E)}},h6G=function(t){t.pageReadyOrDataAvailable=!0;
t.pageReadyOrDataAvailableResolver.resolve()},nSZ=function(t){t.pendingPlayerResponse=void 0;
t.pendingWatchNextResponse=void 0;t.pendingPlayerVars=void 0};
_.aE.Object.defineProperties(gy.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var ZH=function(t){Mi.call(this,t===void 0?"document_active":t);var E=this;this.overridePriority=10;this.JSC$14745_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(p){E.transition("document_disposed",{event:p})});
window.addEventListener("beforeunload",function(p){E.transition("document_disposed_preventable",{event:p})});
window.addEventListener("unload",function(p){E.transition("document_disposed",{event:p});E.JSC$14745_hasRun=new Map})};
_.u(ZH,Mi);
ZH.prototype.runPreventableDispose=function(t,E){if(!this.JSC$14745_hasRun.get("document_disposed_preventable")){t(E==null?void 0:E.event);var p,U;if((E==null?0:(p=E.event)==null?0:p.defaultPrevented)||(E==null?0:(U=E.event)==null?0:U.returnValue)){E.event.returnValue||(E.event.returnValue=!0);E.event.defaultPrevented||E.event.preventDefault();this.JSC$14745_hasRun=new Map;this.transition("document_active");return}}this.JSC$14745_hasRun.set("document_disposed_preventable",!0);this.JSC$14745_hasRun.get("document_disposed")?this.transition("flush_logs"):
this.transition("document_disposed")};
ZH.prototype.runDispose=function(t,E){this.JSC$14745_hasRun.get("document_disposed")?this.transition("document_active"):(t(E==null?void 0:E.event),this.JSC$14745_hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
ZH.prototype.runFlush=function(t,E){t(E==null?void 0:E.event);this.transition("document_active")};
ZH.prototype.runActive=function(){};var O9=function(t){Mi.call(this,t===void 0?"document_visibility_unknown":t);var E=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(p){document.visibilityState==="visible"?E.transition("document_visible",{event:p}):E.transition("document_hidden",
{event:p})});
_.r("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(p){E.transition("document_backgrounded",{event:p})}),window.addEventListener("focus",function(p){E.transition("document_foregrounded",{event:p})}))};
_.u(O9,Mi);O9.prototype.runVisible=function(t,E){t(E==null?void 0:E.event);_.r("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
O9.prototype.runHidden=function(t,E){t(E==null?void 0:E.event);_.r("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
O9.prototype.runBackgrounded=function(t,E){t(E==null?void 0:E.event)};
O9.prototype.runForegrounded=function(t,E){t(E==null?void 0:E.event)};var X_=function(){this.teardownLifecycle=new ZH;this.visibilityLifecycle=new O9};
X_.prototype.install=function(){var t=_.t9.apply(0,arguments),E=this;t.forEach(function(p){E.teardownLifecycle.install(p)});
t.forEach(function(p){E.visibilityLifecycle.install(p)})};var hT=function(){X_.call(this);var t={};this.install((t.document_disposed={callback:this.abortSlisAndFlush},t));_.r("combine_ve_grafts")&&(t={},this.install((t.document_disposed={callback:this.flushInteractionLoggingAttachVes},t)));t={};this.install((t.flush_logs={callback:this.logFinalPayload},t));_.r("web_log_cfg_cee_ks")||_.E_(_.ir,Nqs)};
_.u(hT,X_);var z4i=function(){hT.loggingInstance||(hT.loggingInstance=new hT);return hT.loggingInstance};
hT.prototype.logFinalPayload=function(){if(_.r("web_fp_via_jspb")){var t=new ohX,E=_.yL();E&&_.Lq(t,1,E);E=_.r("jspb_sparse_encoded_pivot")?new tH([{}]):new tH;_.zC(E,380,Wup,t);Fqj("finalPayload",E);_.r("web_fp_via_jspb_and_json")&&_.MW("finalPayload",{csn:_.yL()})}else _.MW("finalPayload",{csn:_.yL()})};
hT.prototype.abortSlisAndFlush=function(){OkW(dc);uh!=null&&uh.flush()};
hT.prototype.flushInteractionLoggingAttachVes=function(){SL0(_.Pu())};
var Nqs=function(){var t=_.qO("CLIENT_EXPERIMENT_EVENTS");if(t){var E=bsO();t=_.M(t);for(var p=t.next();!p.done;p=t.next())p=p.value,E(p)&&_.MW("genericClientExperimentEvent",{eventType:p});delete _.ba.CLIENT_EXPERIMENT_EVENTS}};var D5W={};
D5W.YtPlayerBehavior=[_.JT.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 t=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.hf;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;lLO(function(){t.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.wk(this,"pan-down"),_.r("kevlar_pinch_fullscreen")&&_.c5().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.r("kevlar_pinch_fullscreen")&&_.c5().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(t,E,p){var U=this;In(this.useUnifiedPlayer_());if(this.mainAppPlayer_)In(!1,"MainAppPlayer already created.");else{var x=_.r("kevlar_player_container_query_killswitch")?this.$.container:_.ZN(this.hostElement).querySelector("#container");this.mainAppPlayer_=new gy(this.getWebPlayerContextConfig_(),x,function(A){return _.n4(A,U.hostElement)},t,E,p);
this.mainAppPlayer_.api.then(function(A){U.player_=A;U.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&tkT.resolve(A)})}},
loadVideoWithPlayerResponse:function(t,E){var p=this;if(this.useUnifiedPlayer_()){var U=this.watchNextData,x,A=(x=t.videoDetails)==null?void 0:x.videoId,m,b,f;(x=(m=this.watchNextData)==null?void 0:(b=m.currentVideoEndpoint)==null?void 0:(f=b.watchEndpoint)==null?void 0:f.videoId)&&A!=x&&(U=void 0,_.r("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(t,U,E):this.createMainAppPlayer_(t,U,E);this.mainAppPlayer_.api.then(function(){_.kT(p.hostElement,
"yt-player-updated")})}else this.update(VXL(t,E))},
loadVideoWithPlayerVars:function(t){var E=this;this.useUnifiedPlayer_()?(_.r("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(t):this.createMainAppPlayer_(void 0,void 0,t),this.mainAppPlayer_.api.then(function(){_.kT(E.hostElement,"yt-player-updated")})):this.update({args:t})},
update:function(t){var E=this;if(this.useUnifiedPlayer_())In(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(t);var p=t30(t.args);p&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==p&&Object.assign(t.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(t).then(function(U){_.kT(E.hostElement,"yt-player-updated",_.r("kevlar_player_updated_obsolete_player_killswitch")?
U:void 0)})}_.iV(new _.cC("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(t){var E=this,p;return _.q(function(U){if(U.nextAddress==1)return U.yield(E.getPlayerPromise(),2);p=U.yieldResult;if(!p)throw Error("wh");t&&E.updatePlayerPlaylist_(t);_.Do(U)})},
acquireApi_:function(t){var E=this;if(this.useUnifiedPlayer_())In(!1,"Invalid method call in kevlar_unified_player.");else return _.ir.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(In(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(p){E.shouldAutoplay_(t)?p.loadVideoByPlayerVars(t.args):p.cueVideoByPlayerVars(t.args)})):this.initPlayerPromise_=this.initPlayerContainer_(t),this.initPlayerPromise_},
initPlayerContainer_:function(t){var E=this;if(this.useUnifiedPlayer_())In(!1,"Invalid method call in kevlar_unified_player.");else return In(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.qW(Error("xh")),In(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.r("kevlar_player_container_query_killswitch")?this.$.container:_.ZN(this.hostElement).querySelector("#container"),Z8l().then(function(){var p=E.initPlayer_(t);E.playerResolver_.resolve(p);
return p})},
onPlayerReady_:function(t,E){this.useUnifiedPlayer_()?In(!1,"Invalid method call in kevlar_unified_player."):(t.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&tkT.resolve(t),E(t))},
maybeCallApiMethodOnElement_:function(t,E){if(typeof t[E]==="function")return t[E]()},
maybeAdoptBootstrapPlayer_:function(){var t=window,E,p=(E=t.ytplayer)==null?void 0:E.bootstrapPlayerContainer;if((E=p==null?void 0:p.firstElementChild)&&E.classList.contains("html5-video-player")){var U,x,A=(U=t.ytplayer)==null?void 0:(x=U.bootstrapWebPlayerContextConfig)==null?void 0:x.contextId;U=this.getWebPlayerContextConfig_().contextId;if(A&&A===U){p!==this.playerContainer_&&(p=!1,this.maybeCallApiMethodOnElement_(E,"getPlayerState")===2&&(p=!0),this.playerContainer_.appendChild(E),p||this.maybeCallApiMethodOnElement_(E,
"playVideo"));var m;if((m=t.ytplayer)==null?0:m.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=t.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(t){var E=this;if(this.useUnifiedPlayer_())In(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(p){E.maybeAdoptBootstrapPlayer_();var U=t?QwK(t):void 0;U&&U==E.bootstrapPlayerResponse_&&(t.loaded=!0);U=E.playerContainer_;var x=E.getWebPlayerContextConfig_();U=e4i(U,t,x);E.player_=U;E.onPlayerReadyEvent_=E.onPlayerReady_.bind(E,E.player_,p);E.player_.addEventListener("onReady",E.onPlayerReadyEvent_);E.player_.addEventListener("innertubeCommand",
E.onPlayerInnerTubeCommand_.bind(E))})},
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(t){t.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(t){t.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var t=_.X3().resolve(_.jw).getCurrentPage();t&&t.getScrollTop()<=0?_.wk(this,"pan-down"):_.wk(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(t){t.isFullscreen()||t.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(t){t.isFullscreen()&&t.toggleFullscreen()})},
updatePlayerPlaylist_:function(t){var E=this,p,U,x;return _.q(function(A){if(A.nextAddress==1)return p=_.X3().resolve(_.OB(_.kA)),U=!!(p&&p.playlistComponent&&p.playlistComponent.loopOn),A.yield(E.getPlayerPromise(),2);var m=x=A.yieldResult,b=m.updatePlaylist,f=[];if(_.r("kevlar_player_playlist_use_local_index")){var B,R;var V=(R=(B=t.localCurrentIndex)!=null?B:t.currentIndex)!=null?R:0}else{var Q;V=(Q=t.currentIndex)!=null?Q:0}if(t.contents)for(B=0;B<t.contents.length;B++)if((R=t.contents[B])&&R.playlistPanelVideoRenderer)if($4K(R)){R=
R.playlistPanelVideoRenderer;Q="";R.shortBylineText&&(Q=_.R4(R.shortBylineText));var C="";R.title?C=_.R4(R.title):R.unplayableText&&(C=_.R4(R.unplayableText));f.push({author:Q,title:C,encrypted_id:R.videoId})}else B<V&&--V;b.call(m,{index:V,list:t.playlistId?t.playlistId:"",loop:U,playlist_title:t.title,playlist_length:f.length,video:f,fetch:0,external_list:"1",title:t.title?t.title:"",playlist_author:t.ownerName?_.R4(t.ownerName):void 0});_.Do(A)})},
focusOnPlayer:function(){_.XE(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var t=this.playerContainer_.querySelector(".html5-video-player");t&&(_.al(_.X3().resolve(_.Ly)),t.focus())}})},
preparePlayer:function(){var t=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(E){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")E();else{var p=function(){document.removeEventListener("DOMContentLoaded",p);E()};
document.addEventListener("DOMContentLoaded",p)}})).then(function(){return Z8l()}).then(function(){t.initPlayerPromise_||t.preparePlayerJobId_||(t.preparePlayerJobId_=_.E_(_.ir,function(){t.initPlayerPromise_||(t.initPlayerPromise_=t.initPlayerContainer_())}))}):_.iV(new _.cC("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(t){this.useUnifiedPlayer_()?In(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(t)||(t.args.autoplay="0")},
shouldAutoplay_:function(t){if(this.useUnifiedPlayer_())In(!1,"Invalid method call in kevlar_unified_player.");else{var E=this.get("args.el",t);return E&&E!="detailpage"&&this.isMiniplayerActive_()||E&&(E=="sponsorshipsoffer"||E=="handlesclaiming")&&this.get("args.autoplay",t)=="0"?!1:(t=QwK(t))&&this.get("playerConfig.playbackStartConfig.startPaused",t)?!1:!0}},
isMiniplayerActive_:function(){return _.X3().resolve(_.bf).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var t=this.getPlayer();if(t){var E=t.getPlayerState();_.r("kevlar_player_check_ad_state_on_stop")&&(E=t.getPlayerState(t.getPresentingPlayerType()));E!=5&&t.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(t,E,p){p=p===void 0?!1:p;var U=this,x,A,m,b;return _.q(function(f){if(f.nextAddress==1)return E||(E=U.hostElement),x=U.useUnifiedPlayer_()?!!U.mainAppPlayer_:!!U.initPlayerPromise_,x?f.yield(U.getPlayerPromise(),2):(p?t.insertBefore(E,t.firstChild):t.appendChild(E),f.return());A=f.yieldResult;m=A.getPlayerState(A.getPresentingPlayerType());b=!1;if(m==-1||m==1||m==3)b=!0;p?t.insertBefore(E,t.firstChild):t.appendChild(E);b&&A.playVideo();A.setSize(NaN,NaN);_.Do(f)})},
watchNextDataChanged_:function(t){var E=this;t&&(this.useUnifiedPlayer_()&&_.r("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&z6r(this.mainAppPlayer_,t):this.getPlayerPromise().then(function(p){p.updateVideoData(E.computeWatchNextPlayerVars_(t))}))},
computeWatchNextPlayerVars_:function(t){if(this.useUnifiedPlayer_()&&_.r("kevlar_unified_player_update_watch_next_killswitch"))In(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:t}},
maybeSendAbandonmentPing_:function(){var t=this.getPlayer();t&&t.getPlayerState()!=5&&t.getPlayerState()!=0&&t.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var t=_.qO("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(t=Object.assign({},t),t.rootElementId=this.playerId);t.serializedExperimentIds&&t.serializedExperimentFlags||_.qW(Error("yh"));return t},
hasWebPlayerContextConfig_:function(){return!!_.qO("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(t){this.useUnifiedPlayer_()?In(!1,"Invalid method call in kevlar_unified_player."):_.n4(t,this.hostElement)},
useUnifiedPlayer_:function(){var t=_.r("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.r("kevlar_unified_player")||t}}];var sBG={};sBG.YtPlaylistPanelBehavior=[_.y.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(t){t=t.detail;if(t.actions.loop!=void 0||t.actions["yt-icons:loop"]!=void 0)this.loopOn=t.actions.loop||t.actions["yt-icons:loop"];if(t.actions.shuffle!=void 0||t.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=t.actions.shuffle||t.actions["yt-icons:shuffle"]},
setMenuData_:function(t){if(!t||!t.playlistButtons||t.isInfinite)return null;for(var E=t.playlistButtons.menuRenderer.topLevelButtons,p=E.length,U=0;U<p;U++)if(E[U].toggleButtonRenderer){var x=E[U].toggleButtonRenderer;x.defaultIcon.iconType=="LOOP"&&this.loopOn?x.isToggled=this.loopOn:x.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(x.isToggled=this.shuffleOn)}return t.playlistButtons}}];_.ep={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(t,E,p){var U=this.getClickTarget_(E);if(U&&this.isClickAllowed_(U)){E.preventDefault();t=(0,_.Kq.unsafeClone)(t);var x=this.getContainerBoundingRect();E=this.getRelativeClickXy_(E,x);this.expandEndpointUrlMacros_(t,{NX:E[0],NY:E[1],NB:U.code});p&&this.truncateWebCommendMetadataUrl_(t);_.kT(this.hostElement,"yt-navigate",{endpoint:t})}},
getClickTarget_:function(t){if(!this.clickTargetMap)return null;t=_.Vx(t)||[];t=_.M(t);for(var E=t.next();!E.done;E=t.next()){E=E.value;if(E===_.ZN(this.hostElement).querySelector("#menu"))break;if(E=this.clickTargetMap.get(E.id))return E}return null},
getRelativeClickXy_:function(t,E){var p=Math.round(t.detail.x-E.left);t=Math.round(t.detail.y-E.top);return p<0||t<0?[null,null]:[p,t]},
getContainerBoundingRect:function(){return _.ZN(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(t,E){for(var p=_.M(t.loggingUrls||[]),U=p.next();!U.done;U=p.next())U=U.value,U.baseUrl&&(U.baseUrl=ZN$(U.baseUrl,E));t.urlEndpoint&&t.urlEndpoint.url&&(t.urlEndpoint.url=ZN$(t.urlEndpoint.url,E));t.commandMetadata&&t.commandMetadata.webCommandMetadata&&t.commandMetadata.webCommandMetadata.url&&(t.commandMetadata.webCommandMetadata.url=ZN$(t.commandMetadata.webCommandMetadata.url,E))},
truncateWebCommendMetadataUrl_:function(t){if(t.commandMetadata&&t.commandMetadata.webCommandMetadata&&t.commandMetadata.webCommandMetadata.url){var E=t.commandMetadata.webCommandMetadata.url,p=E.indexOf("&pp=");if(p>0){var U=E.indexOf("&",p+1);t.commandMetadata.webCommandMetadata.url=U>p&&U<E.length?E.slice(0,p)+E.slice(U):E.slice(0,p)}}},
configureClickTargets:function(t,E,p){this.containerId=t;this.clickTargetMap=new Map;t=_.M(E);for(E=t.next();!E.done;E=t.next())if(E=E.value,E.location){var U=p.get(E.location);U&&(_.XM(_.ZN(this.hostElement).querySelector("#"+U),"yt-simple-endpoint",this.isClickAllowed_(E)),this.clickTargetMap.set(U,E))}},
isClickAllowed_:function(t){return t.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||t.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||t.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||t.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.F_={};
_.F_.YtLazyListBehavior=[_.O0.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 t=(this.constructor.generatedFrom||this).observers;t||(t=[]);t.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
t}},
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 t=this.renderElementsOutsideVisibleArea_;t&&(sgr(t,4),t.processSignal())},
deepLazyListObserver_:function(t){var E=this;if(t){var p=t.value||[];if(this.itemsPath==t.path){var U=this.nonDeferredItemCount;t=0;U>-1&&p.length>U&&(t=_.qO("REMAINING_DOVA_DEFERRED_CHUNKS",-1));t>0?(U>0&&(U=p.slice(0,U),this.setInitialItemsOnDataChanged(U)),(U=this.renderElementsOutsideVisibleArea_)?U.cancel():(U=this.renderElementsOutsideVisibleArea_=new _.hS(2,"eocs"),_.Vei(window,"scroll",function(){return E.renderDeferredElements()})),_.aO(U,function(){E.setInitialItemsOnDataChanged(p)}),_.ia("REMAINING_DOVA_DEFERRED_CHUNKS",
t-1)):this.setInitialItemsOnDataChanged(p)}else if(this.itemsPath+".splices"==t.path)this.onItemsUpdated_(p);
else U="shownItems"+t.path.substr(this.itemsPath.length),this.useSignals&&U==="shownItems.length"||this.notifyPath(U,t.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(t){t&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(t),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(t){t=t.indexSplices;for(var E=0,p=t.length;E<p;E++){var U=t[E];if(U.index<this.shownCount&&(U.removed&&this.splice("shownItems",U.index,U.removed.length),U.addedCount)){var x=U.object.slice(U.index,U.index+U.addedCount);U=["shownItems",U.index,0];U.push.apply(U,x);this.splice.apply(this,U)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(t){this.cancelPendingTasks_();t||(t=[]);this.items_=t;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&&(_.HC("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.XE(this,this.tryRenderChunk_)))},
fillRange_:function(t,E){this.canShowMore&&this.items_&&(t=this.items_.slice(t,E),t.unshift("shownItems"),this.push.apply(this,t),this.shownCount=E,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var t=this;this.canShowMore&&_.qd(this,"renderChunk",function(){t.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.HC("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.W9(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var t=this.renderElementsOutsideVisibleArea_;t&&(t.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var t=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(t-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=t;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(t){return Math.ceil(1E3/t)},
onCanShowMoreUpdated_:function(t){this.data&&this.items_!==null&&(t?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(t){!this.shouldUseTaskManager()&&this.data&&(!t&&this.canShowMore?(_.C2l(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):t&&this.partiallyRenderedItems_.has(this.items_)&&(_.r("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var Gp;_.zp={};
Gp=function(){var t=_.sU.apply(this,arguments)||this;t.atStart=!0;t.atEnd=!0;t.startIndex=0;t.endIndex=0;t.scrollCount=0;t.initialStartIndex=0;t.disableScrollEventListener=!1;t.useFloorScrolling=!1;t.isSearch=!1;t.dragging=!1;t.dragMouseStart=0;t.dragOffsetStart=0;t.disableWheelScroll=!1;t.centerListItems=!1;t.offset=0;t.minComponentWidth=0;t.marginWidthRight=0;t.marginWidthLeft=0;t.setButtonsStateRequested=!1;t.itemsVisibilityObserver=null;t.fullyVisibleItemsIndices=[];t.JSC$14774_onWheelScroll=function(E){if(t.isSearch&&
!t.disableWheelScroll&&_.r("desktop_enable_dmpanel_wheel_scroll")){var p=E.shiftKey?Math.abs(E.deltaY)>Math.abs(E.deltaX)?E.deltaY:E.deltaX:E.deltaX;p!==0&&(E.preventDefault(),t.ytLazyListBehavior.fillRemainingListItems(),t.offset+=p,le(t),t.reposition_())}};
t.onPointerDown=function(E){LNs(t)&&(t.dragMouseStart=E.clientX,t.dragOffsetStart=t.offset,t.dragging=!0)};
t.onPointerMove=function(E){LNs(t)&&t.dragging&&(t.ytLazyListBehavior.fillRemainingListItems(),t.offset=t.dragOffsetStart-(E.clientX-t.dragMouseStart),le(t),t.reposition_())};
t.onPointerUp=function(){LNs(t)&&(t.dragging=!1)};
return t};
_.u(Gp,_.sU);var PM0=function(t){var E=_.ZN(t.hostElement).querySelector("#items").children;if(!E)return 0;var p=0;t=_.M(t.fullyVisibleItemsIndices);for(var U=t.next();!U.done;U=t.next())p+=E[U.value].clientWidth;return p},LNs=function(t){return t.isSearch&&_.r("desktop_enable_dmpanel_click_drag_scroll")};
Gp.prototype.created=function(){this.cachedViewportWidth=_.qO("initialInnerWidth")||window.innerWidth;this.JSC$14774_cachedViewportHeight=_.qO("initialInnerHeight")||window.innerHeight;_.qO("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.ia("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
Gp.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.r("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();Tqp(this)};
Gp.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.r("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var t;(t=this.itemsVisibilityObserver)==null||t.disconnect();this.itemsVisibilityObserver=null;var E;(E=this.itemsObserver)==null||E.disconnect()};
var Tqp=function(t){var E=_.ZN(t.hostElement).querySelector("#scroll-container");if(E){if(!t.itemsVisibilityObserver){var p=window.getComputedStyle(E).marginRight;t.itemsVisibilityObserver=new IntersectionObserver(function(U){oS4(t,U)},{root:E,
rootMargin:p,threshold:.98})}if(E=_.ZN(t.hostElement).querySelector("#items"))t.itemsObserver=new CR3(E,function(U){WNW(t,U)})}},WNW=function(t,E){$5Z(t)&&(Array.from(E.addedNodes).filter(function(p){return p.nodeType===Node.ELEMENT_NODE}).forEach(function(p){t.itemsVisibilityObserver&&t.itemsVisibilityObserver.observe(p)}),Array.from(E.removedNodes).filter(function(p){return p.nodeType===Node.ELEMENT_NODE}).forEach(function(p){t.itemsVisibilityObserver&&t.itemsVisibilityObserver.unobserve(p)}))},
oS4=function(t,E){var p=new Set(t.fullyVisibleItemsIndices);
E=_.M(E);for(var U=E.next();!U.done;U=E.next()){U=U.value;var x=U.target.parentElement;x?(x=Array.from(x.children).indexOf(U.target),U.isIntersecting?p.add(x):p.has(x)&&p.delete(x)):_.qW(new _.cC("Parent element not found",U.target.nodeName))}t.fullyVisibleItemsIndices=Array.from(p).sort(function(A,m){return A-m});
p.size===0?_.qW(new _.cC("No visible entries in horizontal list")):(t.startIndex=t.fullyVisibleItemsIndices[0],t.endIndex=t.fullyVisibleItemsIndices[t.fullyVisibleItemsIndices.length-1])},$5Z=function(t){t.data?t=(t=t.data)&&t.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===t.itemSizeConstraint:!1:t=!1;
return t};
_.Y=Gp.prototype;_.Y.addScrollEventListeners=function(){var t=_.ZN(this.hostElement).querySelector("#scroll-container");t.style.touchAction="pan-y";t.addEventListener("wheel",this.JSC$14774_onWheelScroll);t.addEventListener("pointerdown",this.onPointerDown);t.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.Y.removeScrollEventListeners=function(){var t=_.ZN(this.hostElement).querySelector("#scroll-container");t.removeEventListener("wheel",this.JSC$14774_onWheelScroll);t.removeEventListener("pointerdown",this.onPointerDown);t.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.Y.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.XE(this,this.setStartIndex,[this.initialStartIndex])};
_.Y.reposition_=function(){var t=_.qO("HTML_DIR")=="rtl"?"":"-",E=_.ZN(this.hostElement).querySelector("#items");E&&(E.style.transform="translateX("+t+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.Y.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.XE(this,this.setButtonsState_))};
_.Y.setButtonsState_=function(){this.setButtonsStateRequested=!1;var t=_.ZN(this.hostElement).querySelector("#items").firstElementChild;if(t){this.minComponentWidth||(this.minComponentWidth=KNs(this,t));t=_.ZN(this.hostElement).querySelector("#scroll-container").clientWidth;var E=_.ZN(this.hostElement).querySelector("#items");E=_.r("kevlar_horizontal_list_scroll_width_killswitch")?E.clientWidth:E.scrollWidth;var p=this.get(this.ytLazyListBehavior.itemsPath,this);if(p){var U=Math.round(t/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+U,p.length)-1)}this.ytLazyListBehavior.canShowMore?E+this.minComponentWidth>=this.offset+t&&(this.atEnd=!1):this.atEnd=this.offset+t>=E-20?!0:!1;this.atStart=this.offset<=20}};
_.Y.setStartIndex=function(t){if(!this.minComponentWidth){var E=_.ZN(this.hostElement).querySelector("#items").firstElementChild;if(!E)return;this.minComponentWidth=KNs(this,E)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*t;le(this);this.reposition_()};
_.Y.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Lm();var t=_.ZN(this.hostElement).querySelector("#scroll-container").clientWidth;_.r("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=KNs(this,_.ZN(this.hostElement).querySelector("#items").firstElementChild));t=this.useFloorScrolling?Math.floor(t/this.minComponentWidth)||1:Math.round(t/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&vSs(this);this.offset+=$5Z(this)?
PM0(this):t*this.minComponentWidth;le(this);this.reposition_();this.scrollCount++};
_.Y.prevClick_=function(){var t=_.ZN(this.hostElement).querySelector("#scroll-container").clientWidth;t=this.useFloorScrolling?Math.floor(t/this.minComponentWidth)||1:Math.round(t/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=$5Z(this)?PM0(this):this.minComponentWidth*this.scrollCount-1):this.offset-=$5Z(this)?PM0(this):t*this.minComponentWidth;this.centerListItems&&vSs(this);le(this);this.reposition_()};
_.Y.onIronResize_=function(){this.resizeSupportEnabled&&_.XE(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.Y.onItemsTransitionEnd_=function(t){_.Qx(t)===_.ZN(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.Y.onChildElementFocus_=function(t){t=t.target.closest("#items > *");var E=_.ZN(this.hostElement).querySelector("#scroll-container");if(E.contains(t)){if(_.r("web_horizontal_list_behavior_focus_killswitch"))if(t.offsetLeft<this.offset)this.offset=Math.abs(t.offsetLeft)<t.clientWidth?0:t.offsetLeft;else if(t.offsetLeft+t.clientWidth>this.offset+E.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Lm(),this.offset=t.offsetLeft+t.clientWidth-E.clientWidth;else return;else{var p=_.ZN(this.hostElement).querySelector("#items"),
U=_.qO("HTML_DIR")==="rtl",x=U?p.clientWidth-t.offsetLeft:t.offsetLeft;p=U?p.clientWidth-(t.offsetLeft+t.clientWidth):t.offsetLeft+t.clientWidth;var A=U?x>this.offset+E.clientWidth:x<this.offset,m=U?p<this.offset:p>this.offset+E.clientWidth,b=U?A:m;if(U?m:A)E=U?p:x,this.offset=Math.abs(E)<t.clientWidth?0:E;else if(b)this.ytLazyListBehavior.fillRemainingListItems(),_.Lm(),this.offset=(U?x:p)-E.clientWidth;else return}le(this);this.reposition_()}};
_.Y.observeShownItems_=function(){this.reset()};
_.Y.checkComponentWidthResize=function(){var t=_.ZN(this.hostElement).querySelector("#items").firstElementChild;t&&(t=KNs(this,t),this.centerListItems||t!==this.minComponentWidth)&&(this.minComponentWidth=t,this.offset=t*this.scrollCount,this.centerListItems&&vSs(this),le(this),this.reposition_())};
var KNs=function(t,E){var p=window.getComputedStyle(E).marginRight;p=Math.floor(Number(p.replace("px","")));var U=window.getComputedStyle(E).marginLeft;U=Math.floor(Number(U.replace("px","")));t.centerListItems&&!t.marginWidthRight&&(t.marginWidthRight=p,t.marginWidthLeft=U);return t.resizeSupportEnabled?E.getBoundingClientRect().width+p:E.offsetWidth+p},le=function(t){var E=_.ZN(t.hostElement).querySelector("#scroll-container").clientWidth,p=_.ZN(t.hostElement).querySelector("#items").clientWidth;
t.offset<0?t.offset=0:t.offset+E>=p&&(t.offset=p-E)},vSs=function(t){t.offset-=(_.ZN(t.hostElement).querySelector("#scroll-container").clientWidth+t.marginWidthRight-t.minComponentWidth)/2-t.marginWidthLeft};
_.aE.Object.defineProperties(Gp.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var t=_.qO("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(t==-1)t=this.JSC$14774_cachedViewportHeight,t=t>1320?5:t>1020?4:t>730?3:t>430?2:1;else if(t==0)return 0;_.ia("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",t-1);t=_.qO("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(t>-1)return t;t=this.cachedViewportWidth;t=t>1600?6:t>1400?5:t>1300?4:t>1090?5:t>870?4:t>660?3:2;_.ia("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
t);return t},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.r("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
Gp.prototype.observeShownItems_=Gp.prototype.observeShownItems_;Gp.prototype.onChildElementFocus_=Gp.prototype.onChildElementFocus_;Gp.prototype.onItemsTransitionEnd_=Gp.prototype.onItemsTransitionEnd_;Gp.prototype.onIronResize_=Gp.prototype.onIronResize_;Gp.prototype.prevClick_=Gp.prototype.prevClick_;Gp.prototype.nextClick_=Gp.prototype.nextClick_;Gp.prototype.setButtonsState_=Gp.prototype.setButtonsState_;Gp.prototype.requestButtonsStateUpdate_=Gp.prototype.requestButtonsStateUpdate_;
Gp.prototype.reposition_=Gp.prototype.reposition_;Gp.prototype.reset=Gp.prototype.reset;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Gp.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.F_.YtLazyListBehavior),_.P("design:type",Object)],Gp.prototype,"ytLazyListBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Gp.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Gp.prototype,"atStart",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Gp.prototype,"atEnd",void 0);_.N([_.e(),_.P("design:type",Object)],Gp.prototype,"startIndex",void 0);_.N([_.e(),_.P("design:type",Object)],Gp.prototype,"endIndex",void 0);_.N([_.e({value:6}),_.P("design:type",Number)],Gp.prototype,"initialCount",void 0);_.N([_.e(),_.P("design:type",Object)],Gp.prototype,"scrollCount",void 0);_.N([_.e(),_.P("design:type",Object)],Gp.prototype,"initialStartIndex",void 0);
_.N([_.e(),_.P("design:type",Object)],Gp.prototype,"disableScrollEventListener",void 0);_.N([_.e(),_.P("design:type",Object)],Gp.prototype,"supportComponentResize",void 0);_.N([_.e({value:function(){var t=this;return function(){return t.prevClick_()}}}),
_.P("design:type",Function)],Gp.prototype,"boundPrevClick",void 0);_.N([_.e({value:function(){var t=this;return function(){return t.nextClick_()}}}),
_.P("design:type",Function)],Gp.prototype,"boundNextClick",void 0);_.N([_.e(),_.P("design:type",Object)],Gp.prototype,"useFloorScrolling",void 0);_.N([_.e(),_.P("design:type",Object)],Gp.prototype,"isSearch",void 0);_.N([_.e(),_.P("design:type",Object)],Gp.prototype,"dragging",void 0);_.N([_.e(),_.P("design:type",Object)],Gp.prototype,"dragMouseStart",void 0);_.N([_.e(),_.P("design:type",Object)],Gp.prototype,"dragOffsetStart",void 0);
_.N([_.e(),_.P("design:type",Object)],Gp.prototype,"disableWheelScroll",void 0);_.N([_.e(),_.P("design:type",Object)],Gp.prototype,"centerListItems",void 0);_.N([_.lc("iron-resize"),_.GI("guideOpened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Gp.prototype,"onIronResize_",null);_.N([_.lc("transitionend"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Gp.prototype,"onItemsTransitionEnd_",null);
_.N([_.lc("focusin"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Gp.prototype,"onChildElementFocus_",null);_.N([_.GI("shownItems"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Gp.prototype,"observeShownItems_",null);_.N([_.L0()],Gp);_.zp.YtdHorizontalListBehavior=[];_.zp.YtdHorizontalListBehavior.push(_.Ev,_.y.YtRendererBehavior,_.F_.YtLazyListBehavior,_.jp.YtdGuideStateAwareBehavior,Gp.prototype);var nGJ=["APP_STATE","PI"];var nE,NT=function(t){this.hostElement=t},DH=function(t,E){if(E&&(L1t(E.viewableCommands)||L1t(E.endOfSessionCommands))){var p=Tri(E.viewableCommands);
E=Tri(E.endOfSessionCommands);if(!nE){var U=_.z3("custom_active_view_tos_timeout_ms");nE=U>0&&U!==36E5?new fuL(PTY(),U):new fuL(PTY())}wPl(nE,t.hostElement);RPD(nE,t.hostElement,p,E)}},s9=function(t){nE&&wPl(nE,t.hostElement)};var yRT=_.CG(["about:blank"]),Sp0={pushState:window.history.pushState,replaceState:window.history.replaceState};var LE=function(t){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=t;this.internalPushState=t.pushState.bind(t);this.internalReplaceState=t.replaceState.bind(t)};
LE.prototype.init=function(){this.initialized=!0};
LE.prototype.pushState=function(t,E){this.initialized||this.init();this.internalPushState&&this.internalPushState(t,"",E)};
LE.prototype.replaceState=function(t,E){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(t,"",E)};
LE.prototype.getState=function(){return this.history&&this.history.state};var cRX=function(t){var E=function(){var p=t.apply(this,arguments)||this;p.boundHistoryPushState=!1;p.boundHistoryReplaceState=!1;p.debugInfo={};return p};
_.u(E,t);E.prototype.init=function(){var p=_.Gg("IFRAME");_.Yk(p,_.JC(yRT));p.sandbox="allow-same-origin";p.style.display="none";this.iframe=p;document.body.appendChild(p);this.bindHistoryStateFunctions();t.prototype.init.call(this)};
E.prototype.bindHistoryStateFunctions=function(){var p=this,U=[],x;this.iframe&&((x=this.iframe.contentWindow)==null?0:x.history)&&(x=this.iframe.contentWindow.history)&&(U.push(x),Object.getPrototypeOf(x)&&U.push(Object.getPrototypeOf(x)));window.history&&U.push(window.history);x=window.history;Object.getPrototypeOf(x)&&U.push(Object.getPrototypeOf(x));U.push(Sp0);x=function(m){for(var b=null,f=0;f<U.length;f++){var B=U[f][m];if(typeof B==="function"){b=B.bind(window.history);p.debugInfo[m]=f;break}}return b};
if(!this.boundHistoryReplaceState){var A=x("replaceState");A&&(this.internalReplaceState=A,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(x=x("pushState"))&&(this.internalPushState=x,this.boundHistoryPushState=!0)};
return E}(LE),tPW=function(){return cRX.call(this,window.history)||this};
_.u(tPW,cRX);tPW.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var Pe=function(t){this.browserHistory=t;this.initialized=!1};
Pe.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
Pe.prototype.pushState=function(t,E){this.initialized||this.init();this.browserHistory.pushState(t,E)};
Pe.prototype.replaceState=function(t,E){this.initialized||this.init();this.browserHistory.replaceState(t,E)};
Pe.prototype.handlePopstate=function(t){return t.state};_.E04=function(t,E,p,U,x){this.endpoint=t;this.forward=E;this.historyEntry=p;this.JSC$31106_savedComponentState=U;this.legacyBorder=x===void 0?!1:x};var ptm=function(t,E){this.rootData=t;this.scrollTop=E};_.Tp=new _.gM("EPHEMERAL_STORE_TOKEN");_.ol=function(t){this.data=Object.assign({},t);var E;(E=this.data.innertubeResponse)==null||delete E.frameworkUpdates};
_.ol.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.eu)()};
_.ol.prototype.isProcessed=function(){return!!this.data.isProcessed};
_.Z2=function(t){return Object.assign({},t.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var UDm=function(){this.maxSize=100;this.timeToDataCache=new Map};
UDm.prototype.get=function(t){var E=this.timeToDataCache.get(t);E&&(this.timeToDataCache.delete(t),this.timeToDataCache.set(t,E));if(E&&E.rootData&&(_.r("web_use_response_store_for_history_cache")||_.r("mweb_use_new_history_manager"))){var p=_.X3().resolve(_.Tp),U=xDp(E),x=!!U;if(U){if(U.content){var A=We(p,U.content);x&&A?E.rootData.response=_.Z2(A):x=!1}U.player&&(A=We(p,U.player),x&&A?E.rootData.playerResponse=_.Z2(A):x=!1);U.reelSequence&&(p=We(p,U.reelSequence),x&&p?E.rootData.reelWatchSequenceResponse=
_.Z2(p):x=!1)}x||(this.timeToDataCache.delete(t),E=void 0)}return E};
UDm.prototype.set=function(t,E){if(E.rootData&&(_.r("web_use_response_store_for_history_cache")||_.r("mweb_use_new_history_manager"))){var p=xDp(E),U=Object.assign({},E.rootData);p&&(p.content&&E.rootData.response&&(APm(this,p.content,E.rootData.response),U.response=null),p.player&&E.rootData.playerResponse&&(APm(this,p.player,E.rootData.playerResponse),U.playerResponse=null),p.reelSequence&&E.rootData.reelWatchSequenceResponse&&(APm(this,p.reelSequence,E.rootData.reelWatchSequenceResponse),U.reelWatchSequenceResponse=
null));E=new ptm(U,E.scrollTop)}this.timeToDataCache.has(t)?this.timeToDataCache.delete(t):this.timeToDataCache.size>=this.maxSize&&(p=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(p.value));this.maxSize!==0&&this.timeToDataCache.set(t,E)};
UDm.prototype.clear=function(){this.timeToDataCache.clear()};
var xDp=function(t){var E=_.X3().resolve(_.OB(_.yc)),p;if((p=t.rootData)==null?0:p.endpoint)return E==null?void 0:ynE(E,t.rootData.endpoint);var U;_.qW(new _.cC("History snapshot response data does not contain endpoint",(U=t.rootData)==null?void 0:U.url));return null},APm=function(t,E,p){if(t.maxSize>0){var U;
(t=(U=p.responseContext)==null?void 0:U.maxAgeSeconds)&&Number(t)>0&&(U=_.X3().resolve(_.Tp),p=OY(p,t),U.put(E,new _.ol(p)))}};var Yf3=function(t,E,p){this.endpoint=E;this.JSC$31112_savedComponentState=p===void 0?null:p;this.entryTime=t};var $Ij=1;var $p=function(t){var E=function(){var p=t.apply(this,[].concat(_.KB(_.t9.apply(0,arguments))))||this;p.historyEntryTime=0;p.historySnapshotCache=p.createHistoryCache();return p};
_.u(E,t);E.prototype.createHistoryCache=function(){return new UDm};
E.prototype.saveAndReplace=function(p,U,x){var A=window.location.href;var m=m===void 0?{}:m;var b=(b=this.browserHistory.getState())&&b.entryTime?b.entryTime:K1$();p=this.createNewHistoryEntry(p,m,b);this.saveSnapshot(b,U,x);this.replaceState(p,A||window.location.href)};
E.prototype.saveAndPush=function(p,U,x,A,m){m=m===void 0?{}:m;this.saveSnapshot(this.historyEntryTime,x,A);x=this.historySnapshotCache;A=this.historyEntryTime;var b=x.timeToDataCache.keys();b=_.M(b);for(var f=b.next();!f.done;f=b.next())f=f.value,f>A&&x.timeToDataCache.delete(f);U=this.createNewHistoryEntry(U,m);this.pushState(U,p)};
E.prototype.saveSnapshot=function(p,U,x){this.historySnapshotCache.set(p,new ptm(U,x))};
E.prototype.createNewHistoryEntry=function(p,U,x){x=x===void 0?K1$():x;return new Yf3(x,p,U)};
E.prototype.handlePopstate=function(p){var U=t.prototype.handlePopstate.call(this,p),x=null,A=null,m=!1,b=null;U&&U.entryTime&&(b=this.historySnapshotCache.get(U.entryTime)||null,m=U.entryTime>this.historyEntryTime,this.historyEntryTime=U.entryTime,x=U.endpoint,A=U.JSC$31112_savedComponentState);this.handleHistoryCacheLoad(new _.E04(x,m,b,A),p);return U};
E.prototype.pushState=function(p,U){Number(p==null?void 0:p.entryTime)>=0&&(this.historyEntryTime=p.entryTime);t.prototype.pushState.call(this,p,U)};
E.prototype.replaceState=function(p,U){Number(p==null?void 0:p.entryTime)>=0&&(this.historyEntryTime=p.entryTime);t.prototype.replaceState.call(this,p,U)};
E.prototype.handleHistoryCacheLoad=function(){};
return E}(Pe),MPr=function(){var t=$p.call(this,new tPW)||this;
t.dispatchElement=null;t.entryIndex=0;return t};
_.u(MPr,$p);_.Y=MPr.prototype;_.Y.init=function(t){t=t===void 0?!0:t;$p.prototype.init.call(this);this.initialized||(t||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.Y.handlePopstate=function(t){var E=null;t.state||(E="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return $p.prototype.handlePopstate.call(this,t);var p=new CustomEvent("yt-history-pop",{cancelable:!0});_.du(this.dispatchElement,"yt-history-pop",[p,{errorMsg:E}]);_.uO(this.dispatchElement,"yt-close-all-popups-action");if(!p.defaultPrevented){p=_.X3().resolve(_.jw);E=p.getCurrentData();var U=p.getCurrentPage();p=0;U?(U=_.du(this.dispatchElement,"yt-get-page-offset",
[U]),U.length>0&&(p=U[0])):_.qW(new _.cC("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:E?E.page:"undefined"}));E&&(E.csn=_.yL());this.saveSnapshot(this.historyEntryTime,E,p)}return $p.prototype.handlePopstate.call(this,t)};
_.Y.handleHistoryCacheLoad=function(t,E){t.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.M(_.uO(this.dispatchElement,"yt-history-will-navigate",[E])).next().value||_.du(this.dispatchElement,"yt-history-load",[E,t]))};
_.Y.pushState=function(t,E){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var p=new _.cC("history.pushState is not a function",this.getDebugString());_.bV(p)}$p.prototype.pushState.call(this,t,E)};
_.Y.replaceState=function(t,E){if(!this.browserHistory.boundHistoryReplaceState){var p=new _.cC("history.replaceState is not a function",this.getDebugString());_.bV(p)}$p.prototype.replaceState.call(this,t,E)};
_.Y.saveAndPush=function(t,E,p,U,x){x=x===void 0?{}:x;p&&(p.csn=_.yL());$p.prototype.saveAndPush.call(this,t,E,p,U,x)};
_.Y.getDebugString=function(){var t=[];this.initialized&&t.push("i");this.browserHistory.boundHistoryReplaceState&&t.push("bhr");this.browserHistory.boundHistoryPushState&&t.push("bhs");"replaceState"in this.browserHistory.debugInfo&&t.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&t.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&t.push("ei:"+String(this.entryIndex));return t.join(",")};
_.KE=function(t,E){t.init(!0);var p=t.browserHistory.getState();t.replaceState(p,Zq(E))};
MPr.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.ve=new _.gM("DESKTOP_HISTORY_MANAGER_TOKEN");var mD4=[10,20,30,40,50,60],yo=function(){this.currentPartitionIndex=0},bpo=function(t){GRs({mainAppWeb:_.f0(),
survivalSli:{partitionMinute:t,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},ipZ=function(t){GRs({mainAppWeb:_.f0(),
survivalSli:{partitionMinute:t,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},qfr=function(t){return t.currentPartitionIndex>=0&&t.currentPartitionIndex<mD4.length?mD4[t.currentPartitionIndex]:-1},Hp3=function(t){return t.currentPartitionIndex>0&&t.currentPartitionIndex-1<mD4.length?mD4[t.currentPartitionIndex-1]:-1};
yo.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var t=Hp3(this);t>0&&ipZ(t);t=qfr(this);t>0&&bpo(t);fEr(this)}};
var fEr=function(t){var E=qfr(t);if(E>0){var p=Hp3(t);p<0&&(p=0);t.intervalId=_.ir.addJob(function(){var U=Hp3(t);U>0&&ipZ(U);U=qfr(t);U>0&&bpo(U);fEr(t)},3,(E-p)*6E4);
t.currentPartitionIndex+=1}else t.currentPartitionIndex=-1};var BOZ=function(t){W6.call(this,t,132);this.isDocument=t===document.documentElement};
_.u(BOZ,W6);BOZ.prototype.calculateScrollDelta=function(t,E,p){var U=0;t<E?U=t<E-100?-48:-8:t>E+p&&(U=t>E+p+100?48:8);return U};
BOZ.prototype.JSC$11669_onMouseMove=function(t){this.isDocument||(t.clientX=t.event_.pageX,t.clientY=t.event_.pageY);W6.prototype.JSC$11669_onMouseMove.call(this,t)};_.wtX=function(t,E){var p=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14828_dragListGroup=null;this.onDraggerCreated=function(U){var x=U.JSC$11665_dragger;x.scrollTarget_=p.scrollElement;U=U.draggerEl;x&&U.menuOpened&&x.setEnabled(!1)};
this.onDragStart=function(U){var x=U.draggerEl;U=U.currDragItem;var A=Object.assign({},U==null?void 0:U.data);A.trackingParams=void 0;x.data=A;x.style.position="absolute";x.style.width=(U==null?void 0:U.clientWidth)+"px";x.style.zIndex="2030";x.onDrag&&x.onDrag();U=_.S2(x);(A=U.querySelector("ytd-app"))?_.ZN(A).appendChild(x):U.body.appendChild(x);p.dragScrollSupport=new BOZ(p.scrollElement);p.dragScrollSupport.horizontalScrolling_=!1;x=p.dragScrollSupport;x.constrainScroll_=!!x.margin_&&!1};
this.onDrop=function(U){p.handleDrop(U);p.dragScrollSupport&&(_.wi(p.dragScrollSupport),p.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(p.JSC$14828_dragListGroup){var U=p.JSC$14828_dragListGroup;GOX(U,U.currDragItem_)}};
this.handleDrop=E};
_.Sp=function(t){t.JSC$14828_dragListGroup&&(_.pJ(t.JSC$14828_dragListGroup,Zyr,t.onDragStart),_.pJ(t.JSC$14828_dragListGroup,a40,t.onDragStart),t.JSC$14828_dragListGroup.dispose(),t.JSC$14828_dragListGroup=null);t.dragScrollSupport&&(_.wi(t.dragScrollSupport),t.dragScrollSupport=null);t.scrollElement.removeEventListener("scroll",t.onReorderableScroll)};
_.RVr=function(t,E,p,U){U=U===void 0?"":U;_.Sp(t);p&&(t.scrollElement=p);t.JSC$14828_dragListGroup=new i9;t.JSC$14828_dragListGroup.hysteresisDistance_=2;Fhf(t.JSC$14828_dragListGroup,E);t.JSC$14828_dragListGroup.draggerElClasses_=fO("dragging").split(" ");U&&zU4(t.JSC$14828_dragListGroup,function(x){var A=x||document,m=null;A.getElementsByClassName?m=A.getElementsByClassName(U)[0]:m=GJf("*",U,x);return m||x});
_.vu(t.JSC$14828_dragListGroup,I4r,t.onDraggerCreated);_.vu(t.JSC$14828_dragListGroup,Zyr,t.onDragStart);_.vu(t.JSC$14828_dragListGroup,a40,t.onDrop);t.JSC$14828_dragListGroup.init();t.scrollElement.addEventListener("scroll",t.onReorderableScroll,{passive:!0})};
_.aE.Object.defineProperties(_.wtX.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var VPW=function(){this.skipNextNavigation=!1},QkX=function(t,E,p){if(!E)return!1;
if(t.skipNextNavigation)return t.skipNextNavigation=!1;if(_.k(p,_.kX))return!1;var U,x,A;if((U=_.k(p,_.lC))==null?0:(x=U.browseEndpointContextSupportedConfigs)==null?0:(A=x.browseEndpointContextMainConfig)==null?0:A.skipConfirmation)return!1;var m;return((m=_.k(E.commandMetadata,_.hZ))==null?void 0:m.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
VPW.prototype.showConfirmationDialog=function(t,E){this.navigateParams=E;this.customConfirmationCommand?_.X3().resolve(_.ei).resolveCommand(this.customConfirmationCommand):(E={openPopupAction:{popup:{confirmDialogRenderer:{title:_.wN(_.zF("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.wN(_.zF("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.wN(_.zF("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.wN(_.zF("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.d1.getInstance().triggerAction("yt-open-popup-action",E,t))};
VPW.prototype.cancelPendingNavigation=function(){var t;((t=this.navigateParams)==null?void 0:t.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var Cq4=function(){},rP4=function(t,E,p,U,x,A,m){p=p===void 0?{}:p;
m=m===void 0?{}:m;var b=_.X3().resolve(_.yc),f,B=(f=_.k(E,_.kX))==null?void 0:f.url;return B?Grl(b,B,p,window.location.href,function(R,V){jk4(t,R,V,!1,!0,p,A,U)},function(){return!1}):fG(b,E,p,window.location.href,nf(E),function(R,V){jk4(t,R,V,!1,!0,p,A,U)},x,m)},jk4=function(t,E,p,U,x,A,m,b){if(!t.JSC$14843_chunkHandler)if(p.page==="learning_journey_watch"&&_.r("web_enable_canvas_on_learning_journey")){var f=!_.k(b,_.lC);
x=x||U;if(f)if(x){if(_.r("kevlar_continue_playback_without_player_response")){var B;var R=(B=_.k(b,_.HD))==null?void 0:B.videoId}U={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:U,previousVideoId:R},tempData:A}}else U={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else U={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};t.JSC$14843_chunkHandler=new bv0(_.k1,U,m,f,x)}else if(p.page==="watch"||p.page==="learning_journey_watch")if(x||U){if(_.r("kevlar_continue_playback_without_player_response")){var V;
f=(V=_.k(b,_.HD))==null?void 0:V.videoId}t.JSC$14843_chunkHandler=new HvT(_.k1,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:U,previousVideoId:f},tempData:A},m)}else t.JSC$14843_chunkHandler=new MBr(_.k1);else p.page==="shorts"&&x&&!U?t.JSC$14843_chunkHandler=new qZs(_.k1,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:A},m):t.JSC$14843_chunkHandler=new m3r(m);t.JSC$14843_chunkHandler.processChunk({endpoint:E,data:p});return t.JSC$14843_chunkHandler.ju.promise},
kKG=function(t,E,p,U,x){(p=_.Ic3(p))&&jk4(t,E,p,!1,!0,U,void 0,x)};_.dDX=new _.gM("NAVIGATION_SERVICE_TOKEN");var uZX=function(){this.pendingNavigationPromise=null};
_.Y=uZX.prototype;_.Y.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.Y.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.Y.addEventListener=function(){throw Error("zh");};
_.Y.dispatchEvent=function(){throw Error("zh");};
_.Y.removeEventListener=function(){throw Error("zh");};var JPo=new _.gM("APP_ROOT");var y_E=null;var IEo=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],ce=function(){_.UH.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];g04(this)};
_.u(ce,_.UH);ce.prototype.verifyUser=function(){var t=g04(this),E=t.logout;if(!t.sessionChange)return!0;this.dispatchEvent("ytsessionchange");E&&this.dispatchEvent("ytuserinvalid");return!1};
var g04=function(t){var E=IEo.map(function(x){var A;return(A=_.$a.get(x))!=null?A:""}),p=E.some(function(x,A){return t.sessionCookies&&t.sessionCookies[A]!==""&&x===""}),U=E.some(function(x,A){return t.sessionCookies&&t.sessionCookies[A]!==x});
t.sessionCookies=E;return{logout:p,sessionChange:U}};
ce.prototype.clearTimeout=function(){this.scheduledJobId&&(_.ir.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var U58=new _.gM("POSTMESSAGE_TUNNEL_TOKEN");var t60=["/parent_tools","/file_download","/artist_roster"],Ypi=[r9r,kc4,dEm,J9X,uQ4,jRp,IoX,gko];var ts=new _.gM("NAVIGATION_CONFIRMATION_SERVICE");var Zps="/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(" "),Opf=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],E$=function(t,E){this.pendingNavigationPromise=null;this.JSC$14866_clientRoot=t;this.historyManager=E;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 Cq4;this.debugString=t.is;t={"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};_.uV(_.d1.getInstance(),t,this.JSC$14866_clientRoot)},FZT,zVf,lEX,GKs,eVW;
_.u(E$,uZX);E$.prototype.reload=function(){_.xR(window.location.href)};
var Ov0=function(t){t.currentEndpoint&&_.k(t.currentEndpoint,_.DK)?t.reload():t.currentEndpoint&&t.navigate(t.currentEndpoint,!0,void 0,{disableCache:!0})};
E$.prototype.navigate=function(t,E,p,U,x,A,m,b){E=E===void 0?!1:E;p=p===void 0?{}:p;U=U===void 0?{}:U;var f=_.X3().resolve(ts),B;if(!m&&QkX(f,(B=this.currentEndpoint)!=null?B:void 0,t))return f.showConfirmationDialog(this.JSC$14866_clientRoot.parentElement,{endpoint:t,reload:E,params:p,tempData:U,requestType:x,createScreenConfig:A}),!1;var R=_.ut();_.JL(R,"eocs")||R.parkOrScheduleJob(function(){R.processSignal("eocs")},10,"eor");
S3l();m=nf(t);f=U.autonav==="1";B=_.yL();ce.instance||(ce.instance=new ce);var V=ce.instance.verifyUser(),Q;if(_.r("enable_dark_theme_only_on_shorts")){var C=document.documentElement.hasAttribute("dark"),d=_.me(!0)==="USER_INTERFACE_THEME_DARK";if(m==="shorts"){if(!C)if(_.r("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var I;_.xR((I=_.k(t==null?void 0:t.commandMetadata,_.hZ))==null?void 0:I.url,void 0,void 0,window.top)}}else{var O;_.xR(_.rs((O=_.k(t==
null?void 0:t.commandMetadata,_.hZ))==null?void 0:O.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.r("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!C){var a;_.xR(_.rs((a=_.k(t==null?void 0:t.commandMetadata,_.hZ))==null?void 0:a.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(d!==C){var F;_.xR(_.rs((F=_.k(t==null?void 0:t.commandMetadata,_.hZ))==null?void 0:F.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(m==="watch"){if(XtW(_.X3().resolve(_.bf),
t)&&(V||_.r("fix_miniplayer_navigation_killswitch")))return!1;_.r("block_all_player_prefetch_requests")||(Q=gqp(_.I7(_.oS),t,f))}else{var L,D=(L=_.k(this.currentEndpoint,_.HD))==null?void 0:L.videoId;D&&_.mP.getInstance().then(function(lY){lY&&lY.set("yt-miniplayer-shown-video-id",D)})}Q&&(p.frags=Q.missingFragments_.join(","));
I=null;var W;O=(W=_.k(t==null?void 0:t.commandMetadata,_.hZ))==null?void 0:W.ignoreNavigation;if(!O)if(_.r("kevlar_command_url")){var K;I=(K=_.k(t==null?void 0:t.commandMetadata,_.hZ))==null?void 0:K.url}else I=_.pY8(t,p);if(I&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&I==this.lastNavigationUrl)return _.KF({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.nr(UT(),"CANCELLED")}I&&(this.lastNavigationUrl=I);tFY();_.ia("IS_HOMEPAGE_COLD",
!1);_.ia("IS_RESULTS_PAGE_COLD",!1);_.ia("IS_WATCH_PAGE_COLD",!1);t.loggingUrls&&t.loggingUrls.forEach(function(lY){lY.baseUrl&&_.jT(lY.baseUrl)});
_.ini(t,A?A.layer:0)&&_.r("kevlar_flush_logs_on_away_navigation")&&_.mL();if(M6$(t))return!1;mp0(m,x);if(!I)return O||_.qW(new _.cC("Can't construct url for endpoint",t)),_.nr(UT(),"FAILURE"),!1;_.c_8();W=t&&_.k(t,_.lC)&&_.k(t,_.lC).browseId.startsWith("UC");p=(K=_.r("enable_dark_theme_only_on_shorts")&&m==="shorts"?!1:_.bc()&&document.documentElement.hasAttribute("dark")!==_.Ml())?{themeRefresh:1}:{};K&&!_.vC()&&_.me()==="USER_INTERFACE_THEME_DARK"&&(p.theme="dark");W=K||hVs(I)&&!W&&!_.r("kevlar_disable_url_allowlist");
V||(W=!0);if(W||_.qO("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var v;var YL=(v=window.top)==null?void 0:v.location.href}catch(lY){var bY;YL=(bY=lY)==null?void 0:bY.message}_.qW(new _.cC("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:YL}))}t=_.r("kevlar_redirect_on_window_killswitch")?window.top:window;UU(I);_.xR(_.rs(I,p),void 0,void 0,t);_.nr(UT(),"ABORTED");return!1}_.r("kevlar_early_popup_close")&&_.du(this.JSC$14866_clientRoot,"yt-close-all-popups-action",
[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14843_chunkHandler=void 0;var kL;YL=nf((kL=this.currentEndpoint)!=null?kL:void 0);(kL=m==="shorts"&&YL==="shorts")||_.y1O();_.BC(Ncj)("nr",void 0);f&&_.KF({webInfo:{navigationReason:"an"}});t.clickTrackingParams&&(U.itct=t.clickTrackingParams,U.csn=B);vfO(U);U.endpoint=JSON.stringify(t);_.r("enable_unknown_lact_fix_on_html5")&&(_.X3().resolve(_.Ly),U.lact=_.af());_.Kq.isEmpty(U)||_.RK(I,U);!_.r("disable_miniplayer_expansion_log")&&this.isMiniplayerExpansion&&
(A=Object.assign({},{layer:0},A,{parentLayer:3}));this.pendingNavigationPromise=A=rP4(this.pageFetcher,t,U,this.currentEndpoint,this.JSC$14866_isNetworkPromiseStale.bind(this),A,b);A=A.then(this.handleNavigateSuccess.bind(this,A,t,Q,U),this.handleNavigateFail.bind(this,A,t));_.S3().navigationFinishPromise=A;E={endpoint:t,pageType:m,url:Zq(I),reload:!!E,noProgressBar:kL};x&&(E.type=x);var R0;x=_.z2((R0=this.currentEndpoint)!=null?R0:null);R0=_.z2(t!=null?t:null);this.fireEvent("yt-navigate-start",
E);var j$;(j$=_.X3().resolve(_.OB(_.dDX)))==null||j$.publish("navigation-start",{sourcePageSubtype:x,destinationPageSubtype:R0});Q&&kKG(this.pageFetcher,t,Q,U,this.currentEndpoint);return!0};
E$.prototype.JSC$14866_isNetworkPromiseStale=function(t){return t!=this.pendingNavigationPromise};
var aEr=function(t,E,p,U,x){var A=nf(E);E={endpoint:E,pageType:A};x&&(E.errorMessage=x);_.qW(p);E.navigationDoneMs=_.SR("nd");E.navigationErrorReason=U;t.fireEvent("yt-navigate-error",E)};
E$.prototype.handleNavigateFail=function(t,E,p){var U=void 0;p instanceof _.mF&&(U=p,tYD(p));if(this.JSC$14866_isNetworkPromiseStale(t))return _.S5(U);_.nr(UT(),"FAILURE");aEr(this,E,p,"101");return _.S5(p)};
E$.prototype.handleNavigateSuccess=function(t,E,p,U,x){if(this.JSC$14866_isNetworkPromiseStale(t))return _.gu();this.pendingNavigationPromise=null;if(!x)return E=new _.cC("Missing data in response for navigation endpoint",E),_.S5(E);if(x.reload)return window.location.reload(!0),_.gu();p&&(t={},_.Kq.extend(t,_.Ic3(p),x),x=t);var A,m;p=(A=x)==null?void 0:(m=A.timing)==null?void 0:m.responseStart;p!=null&&_.SR("srt",p);_.SR("pdc");var b,f;A=(b=x)==null?void 0:(f=b.timing)==null?void 0:f.info;A!=null&&
(b=_.BC(_.Lq0)(A),_.KF(b));_.nr(UT(),"SUCCESS");eVW(this,E,x,1,U);return _.gu()};
var hVs=function(t){var E=t;_.r("kevlar_no_redirect_to_classic_2_ks")||(E=(new _.fF(t)).getPath());if(E==="/"||E==="/red")return!1;var p=!0;Zps.forEach(function(U){t.indexOf(U)===0&&(p=!1)});
Opf.forEach(function(U){var x=U.url;_.r(U.expFlag)&&t.indexOf(x)===0&&(p=!1)});
return p};
E$.prototype.publishPageData=function(t){this.fireEvent("yt-page-data-fetched",{pageData:t})};
FZT=function(t,E,p,U,x,A){var m=null;E.page!=="watch"&&E.page!=="learning_journey_watch"||U?E.filler||_.du(t.JSC$14866_clientRoot,"yt-stop-old-player",[E]):m=jk4(t.pageFetcher,x,E,p,!1,A,void 0,t.currentEndpoint);if(m)return m.then(t.publishPageData.bind(t,E));t.publishPageData(E);return _.gu()};
zVf=function(t,E,p){var U=null;if(!p)return U=new _.cC("Empty data",t.debugString,E);var x=p.response;if(!x)return U;var A={endpointType:nf(E)||"unknown"};x.responseContext?(x=x.responseContext.errors)&&(U=new _.cC("Errors in response context",t.debugString,E,x,A)):U=x.error||x.errorMetadata?new _.cC("Errors in response",t.debugString,E,x.error,x.errorMetadata,A):new _.cC("responseContext missing",t.debugString,E,Object.keys(x).sort().join(","),A);var m,b,f,B;if(t=p==null?void 0:(m=p.response)==null?
void 0:(b=m.responseContext)==null?void 0:(f=b.webResponseContextExtensionData)==null?void 0:(B=f.webResponseContextDebugData)==null?void 0:B.debugErrorMessages)for(m=0;m<t.length;m++);return U};
lEX=function(t){var E,p,U,x;return t==null?void 0:(E=t.response)==null?void 0:(p=E.responseContext)==null?void 0:(U=p.errors)==null?void 0:(x=U.error)==null?void 0:x["0"]};
GKs=function(t,E){var p;if(p=E.url&&!E.url.startsWith("/clip"))p=E.url,p=!_.r("webfe_parse_debug_param_in_resolveurl_service")&&t.searchDebugUrlMatcher.test(p)||HbJ(p)?!0:!1;if(p)HbJ(E.url)&&_.ji(window.location.href).themeRefresh?(E=_.VS(E.url,"themeRefresh"),_.KE(t.historyManager,E)):E.url&&!oGi(E.url)&&_.KE(t.historyManager,E.url);else if(E.endpoint){var U,x,A;(p=(U=E.endpoint)==null?void 0:(x=U.commandMetadata)==null?void 0:(A=x.webCommandMetadata)==null?void 0:A.url)&&!oGi(p)&&_.KE(t.historyManager,
p);p&&E.url&&p!=E.url&&!E.url.match("playnext=1")&&new _.cC("Response url mismatch in response data",t.debugString,p,E.url)}};
_.n0G=function(t,E,p,U,x,A,m,b){A=A===void 0?!1:A;var f=_.X3().resolve(ts),B;if(!b&&QkX(f,(B=t.currentEndpoint)!=null?B:void 0,E))return f.showConfirmationDialog(t.JSC$14866_clientRoot.parentElement,{endpoint:E,data:p,navigationType:U,tempData:x,isMiniplayer:A,isForwardHistoryNavigation:m==null?void 0:m.forward}),_.gu();t.pageFetcher.JSC$14843_chunkHandler=void 0;return eVW(t,E,p,U,x,A)};
eVW=function(t,E,p,U,x,A){A=A===void 0?!1:A;t.isMiniplayerExpansion=A;var m=U===2;t.currentEndpoint=E;t.numNavigations++;t.numNavigations&&(lOj.navigationCount=t.numNavigations);_.ia("NUM_NAV",t.numNavigations);var b=zVf(t,E,p);if(b)return aEr(t,E,b,"102",lEX(p)),_.S5(b);var f,B,R,V;b=p.rootVe||(p==null?void 0:(f=p.response)==null?void 0:(B=f.responseContext)==null?void 0:(R=B.webResponseContextExtensionData)==null?void 0:(V=R.ytConfigData)==null?void 0:V.rootVisualElementType);!m&&p&&GKs(t,p);var Q,
C;f=p==null?void 0:(Q=p.response)==null?void 0:(C=Q.responseContext)==null?void 0:C.maxAgeSeconds;if(!m&&!isNaN(f)){var d;_.r("kevlar_use_response_ttl_to_invalidate_cache")?d=(0,_.eu)()+1E3*f:_.r("kevlar_always_invalidate_cache")&&(d=0);isNaN(d)||(p.expirationTime=d)}_.I7(_.oS).prefetchCache_.clear();m||p.page!=="watch"||U!==1?U=FZT(t,p,m,!!A,E,x):(t.publishPageData(p),U=_.gu());x=U.then(function(){var I=nf(E);I={endpoint:E,pageType:I,fromHistory:m,response:p};I.navigationDoneMs=_.SR("nd");t.fireEvent("yt-navigate-finish",
I);var O;(O=_.X3().resolve(_.OB(_.dDX)))==null||O.publish("navigation-end")});
p.csn&&b&&p.clientSideGrafts&&U.then(t.attachClientSideGrafts.bind(t,p,_.vV()));return x};
_.Y=E$.prototype;_.Y.attachClientSideGrafts=function(t,E){t.clientSideGrafts&&E&&t.clientSideGrafts.forEach(function(p){if(E&&p){var U=_.$8(p);_.r("combine_ve_grafts")?_.Pu().graftServerVe(p,E):_.Yh(t.csn,E,U)}})};
_.Y.handleSignalActionHistoryBack=function(){window.history.back()};
_.Y.handleSignalActionCloseWindow=function(){window.close()};
_.Y.handleSignalActionReloadPage=function(){this.reload()};
_.Y.handleSignalActionSoftReloadPage=function(){Ov0(this)};
_.Y.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.Y.fireEvent=function(t,E){t=new CustomEvent(t,{bubbles:!0,cancelable:!1,composed:!0,detail:E});this.dispatchEvent(t)};
_.Y.addEventListener=function(t,E){this.JSC$14866_clientRoot.addEventListener(t,E)};
_.Y.dispatchEvent=function(t){return this.JSC$14866_clientRoot.dispatchEvent(t)};
_.Y.removeEventListener=function(t,E){this.JSC$14866_clientRoot.removeEventListener(t,E)};
E$[aa]=[JPo,_.ve];var NOm;var DDp=function(){return _.z.apply(this,arguments)||this};
_.u(DDp,_.z);_.aE.Object.defineProperties(DDp,{template:{configurable:!0,enumerable:!0,get:function(){if(NOm===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);NOm=t}t=NOm;return t}}});
_.N([_.g(D5W.YtPlayerBehavior),_.P("design:type",Object)],DDp.prototype,"ytPlayerBehavior",void 0);_.N([_.Ul({is:"ytd-player"})],DDp);var skr;var LZX;var Pq4;var pZ=function(){var t=_.z.apply(this,arguments)||this;t.forceModernIconButton=!1;t.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return t};
_.u(pZ,_.z);pZ.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]]"}}}}}};
pZ.prototype.handleAccountLinkingStateChangedCommand=function(t){if(t=_.k(t,fa3)){var E,p=(E=this.data)==null?void 0:E.providerKey;E=t.providerKey;p&&E&&p.id===E.id&&p.subject===E.subject&&(t=t.linked,t!==void 0&&(this.set("data.linked",t),this.notifyPath("data.linked"),_.r("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(t)))}};
pZ.prototype.setPlayerAccountLinkState=function(t){var E=new Oz3;XHr(E,g3W(new Imf,t));var p=_.k1();p&&p.getPlayerPromise().then(function(U){U.setAccountLinkState(_.S$(E.JSC$12597_serializeBinary(),4));U.updateAccountLinkingConfig(t)})};
pZ.prototype.handleShowAccountLinkDialog=function(){var t=this.get("button.buttonRenderer.command");t&&_.OT([t],this.hostElement)};
_.aE.Object.defineProperties(pZ.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}}}});
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],pZ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],pZ.prototype,"ytRendererBehavior",void 0);_.N([_.g([_.oO.YtActionHandlerBehavior]),_.P("design:type",Object)],pZ.prototype,"actionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],pZ.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],pZ.prototype,"overrides",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],pZ.prototype,"forceModernIconButton",void 0);_.N([_.e({value:"bottom"}),_.P("design:type",String)],pZ.prototype,"buttonTooltipPosition",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],pZ.prototype,"forceIconButton",void 0);_.N([_.e(),_.P("design:type",Boolean)],pZ.prototype,"disableTextTransform",void 0);
_.N([_.Z("data","data.linked","data.isWarning"),_.P("design:type",Object),_.P("design:paramtypes",[])],pZ.prototype,"button",null);_.N([_.Ul({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],pZ);
_.G(pZ,"ytd-account-link-button-renderer",function(){if(Pq4!==void 0)return Pq4;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Pq4=t},{mode:1});var TOr;var o03=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],U$=function(){return _.z.apply(this,arguments)||this};
_.u(U$,_.z);U$.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
U$.prototype.updateButtonActiveState=function(){var t=this,E=!!o03.find(function(p){return t.currentState===p});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.r("enable_web_delhi_icons")&&(E=!1);this.button&&(this.button.isPressed=E)};
_.aE.Object.defineProperties(U$.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.playlistLoopStateEntity)==null?void 0:t.state)||((E=this.data)==null?void 0:E.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var t=void 0,E;if(this.currentState&&((E=this.data)==null?0:E.states)){E=_.M(this.data.states);for(var p=E.next();!p.done;p=E.next()){p=_.k(p.value,_.ZQs);var U=void 0;if(((U=p)==null?void 0:U.state)===this.currentState){t=p;break}}}return t}}});
U$.prototype.updateButtonActiveState=U$.prototype.updateButtonActiveState;_.N([_.g(_.Be),_.P("design:type",Object)],U$.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],U$.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],U$.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.e({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.MY.playlistLoopStateEntitySelector}),_.P("design:type",Object)],U$.prototype,"playlistLoopStateEntity",void 0);_.N([_.e(),_.P("design:type",Object)],U$.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Boolean)],U$.prototype,"forceIconOnly",void 0);_.N([_.Nl("ytd-button-renderer"),_.P("design:type",_.Fh)],U$.prototype,"button",void 0);
_.N([_.Z("data","playlistLoopStateEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],U$.prototype,"currentState",null);_.N([_.GI("currentButtonStateRenderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],U$.prototype,"updateButtonActiveState",null);_.N([_.Z("currentState"),_.P("design:type",Object),_.P("design:paramtypes",[])],U$.prototype,"currentButtonStateRenderer",null);
_.N([_.Ul({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],U$);
_.G(U$,"ytd-playlist-loop-button-renderer",function(){if(TOr!==void 0)return TOr;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return TOr=t},
{mode:1});var WZo;var $DT=_.zF("DOWNLOAD",{},"Download"),KZr=_.zF("DOWNLOADING",{},"Downloading"),v0T=_.zF("DOWNLOADED",{},"Downloaded"),yP0=_.zF("RETRY",{},"Retry"),xc=function(){var t=_.z.apply(this,arguments)||this;t.forceIconButton=!1;t.forceIconOnly=!1;t.overrides=!1;t.buttonTooltipPosition=!1;t.styleActionButton=!1;t.disableTextTransform=!1;t.downloadProgress=0;t.isDownloadComplete=!1;t.isHidden=!0;t.transferState="TRANSFER_STATE_UNKNOWN";t.isVideoDeletedByUser=!1;t.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return t};
_.u(xc,_.z);_.Y=xc.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.Y.dataChanged=function(){var t;(t=this.data)!=null&&t.text||(t=_.xz(_.QM().getState(),this.videoId),this.updateButtonState(t))};
_.Y.computeVideoId=function(t){return t};
_.Y.computePlayerStateEntityKey=function(t){return t};
_.Y.showHideButton=function(){this.updateButtonVisibility()};
_.Y.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var t;((t=this.playerStateEntity)==null?void 0:t.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};
_.Y.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.Y.updateButtonState=function(t){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==KZr||!_.Lb(t))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(t){case "TRANSFER_STATE_UNKNOWN":t=$DT;var E="OFFLINE_DOWNLOAD";var p="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":t=yP0;E="OFFLINE_DOWNLOAD";p="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":t=v0T;E="OFFLINE_PIN";p="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":t=
KZr;E="OFFLINE_DOWNLOADING_ZERO";p="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":t=yP0;E="OFFLINE_DOWNLOAD";p="ACTION_RETRY";break;default:t=$DT,E="OFFLINE_DOWNLOAD",p="ACTION_ADD"}this.isVideoDeletedByUser&&(t=$DT,E="OFFLINE_DOWNLOAD",p="ACTION_ADD");var U=Object.assign({},this.data);U.text=_.wN(t);U.tooltip=t;U.icon={iconType:E};U.size="SIZE_DEFAULT";U.style="STYLE_DEFAULT";_.k(U.command,_.lA)&&(_.k(U.command,_.lA).action=p);this.set("data",U)}};
_.Y.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var t="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?t="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?t="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?t="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?t="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?t="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(t="OFFLINE_PIN",this.isDownloadComplete=!0);var E;t!==((E=this.data.icon)==null?void 0:E.iconType)&&(E=Object.assign({},this.data),E.text=_.wN(KZr),E.tooltip=KZr,E.icon={iconType:t},_.k(E.command,_.lA)&&(_.k(E.command,_.lA).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",E))}};
xc.prototype.updateProgress=xc.prototype.updateProgress;xc.prototype.onTransferStateChanged=xc.prototype.onTransferStateChanged;xc.prototype.showHideButton=xc.prototype.showHideButton;xc.prototype.dataChanged=xc.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],xc.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],xc.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],xc.prototype,"forceIconButton",void 0);
_.N([_.e(),_.P("design:type",Object)],xc.prototype,"forceIconOnly",void 0);_.N([_.e(),_.P("design:type",Object)],xc.prototype,"overrides",void 0);_.N([_.e(),_.P("design:type",Object)],xc.prototype,"buttonTooltipPosition",void 0);_.N([_.e(),_.P("design:type",Object)],xc.prototype,"styleActionButton",void 0);_.N([_.e(),_.P("design:type",Object)],xc.prototype,"disableTextTransform",void 0);
_.N([_.e({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.P("design:type",String)],xc.prototype,"videoId",void 0);_.N([_.e({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.P("design:type",String)],xc.prototype,"playerStateEntityKey",void 0);_.N([_.e(),_.P("design:type",Object)],xc.prototype,"data",void 0);_.N([_.e({selector:Yz,selectorArgs:["videoId"]}),_.P("design:type",Object)],xc.prototype,"downloadProgress",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],xc.prototype,"isDownloadComplete",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],xc.prototype,"isHidden",void 0);_.N([_.e({selector:_.xz,selectorArgs:["videoId"]}),_.P("design:type",String)],xc.prototype,"transferState",void 0);_.N([_.e({selector:_.pe$,selectorArgs:["videoId"]}),_.P("design:type",Object)],xc.prototype,"isVideoDeletedByUser",void 0);
_.N([_.e({selector:vt0,selectorArgs:["videoId"]}),_.P("design:type",Object)],xc.prototype,"offlineabilityState",void 0);_.N([_.e({selector:_.hJ,selectorArgs:["playerStateEntityKey"]}),_.P("design:type",Object)],xc.prototype,"playerStateEntity",void 0);_.N([_.e({value:!0}),_.P("design:type",Boolean)],xc.prototype,"showTooltips",void 0);_.N([_.e({value:!0}),_.P("design:type",Boolean)],xc.prototype,"sendCommandWhenDisabled",void 0);
_.N([_.e({value:!1}),_.P("design:type",Boolean)],xc.prototype,"disabled",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xc.prototype,"dataChanged",null);_.N([_.P3("offlineabilityState","playerStateEntity"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xc.prototype,"showHideButton",null);
_.N([_.P3("transferState","isVideoDeletedByUser"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xc.prototype,"onTransferStateChanged",null);_.N([_.P3("downloadProgress"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xc.prototype,"updateProgress",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],xc);
_.G(xc,"ytd-download-button-renderer",function(){if(WZo!==void 0)return WZo;var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return WZo=t},{mode:2});var Sf0;var cPX,tDo=function(){if(cPX!==void 0)return cPX;var t=document.createElement("template");_.J(t,'\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 cPX=t};var EQo=_.r("web_button_rework")&&_.HC("BUTTON_REWORK")||_.r("web_button_rework_with_live"),phs=_.z3("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,As=function(){var t=_.z.apply(this,arguments)||this;t.isPressed=!1;t.forceIconButton=!1;t.forceIconOnly=!1;t.forceModernIconButton=!1;t.alignByText=!1;t.isShorts=!1;t.animatedText=!1;t.shouldAnimate=!1;t.JSC$14904_browserSupportsAnimation=_.r("web_supports_animations_api");t.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};t.onTap=function(){var E;if((E=t.data)==null||!E.defaultNavigationEndpoint){var p;E=!((p=t.data)==null?0:p.isToggled);var U;if((U=t.data)==null||!U.preventAutoToggle){t.shouldAnimate=!1;t.disableTextUpdateJobId&&_.ir.cancelJob(t.disableTextUpdateJobId);t.disableTextUpdateJobId=_.ir.addLowPriorityJob(function(){t.disableTextUpdateJobId=void 0},phs);
var x;t.set("data.isToggled",!((x=t.data)==null?0:x.isToggled));p=t.getInnertubeIcon();U={toggled:E,actions:{}};p&&(U.actions[p.toLowerCase()]=E);_.kT(t.hostElement,"yt-toggle-button",U)}}};
return t};
_.u(As,_.z);_.Y=As.prototype;_.Y.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.ir.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.Y.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.Y.toggle=function(t){var E;this.set("data.isToggled",t!==void 0?t:!((E=this.data)==null?0:E.isToggled))};
_.Y.handleUpdateToggleButtonStateCommand=function(t){if(this.data){t=_.k(t,C9G);var E,p,U,x=(E=this.data)==null?void 0:(p=E.toggleButtonSupportedData)==null?void 0:(U=p.toggleButtonIdData)==null?void 0:U.id;x&&t&&x===(t==null?void 0:t.buttonId)&&this.set("data.isToggled",t.toggled)}};
_.Y.handleUpdateToggleButtonTextAction=function(t){if(this.data){t=_.k(t,slm);var E,p,U,x=(E=this.data)==null?void 0:(p=E.toggleButtonSupportedData)==null?void 0:(U=p.toggleButtonIdData)==null?void 0:U.id;x&&t&&x===(t==null?void 0:t.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=t.defaultNumericalValue,this.set("data.defaultText",t.defaultText),this.set("data.toggledText",t.toggledText),this.shouldAnimate=!1)}};
_.Y.getInnertubeIcon=function(){var t=this.data;if(t){var E,p,U=((E=t.defaultIcon)==null?0:E.iconType)?(p=t.defaultIcon)==null?void 0:p.iconType:null,x,A;E=((x=t.toggledIcon)==null?0:x.iconType)?(A=t.toggledIcon)==null?void 0:A.iconType:U;return t.isToggled?E:U}};
_.Y.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.aE.Object.defineProperties(As.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var t={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$14904_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var E=t.renderer;var p=t.element;var U=t.toggled;var x=t.onTapCallback;var A=t.commandClientArgs;var m=t.overrides;var b=t.forceIcon;var f=t.forceModernIconButton;var B=t.forceDisabled;var R=t.useAnimatedText;var V=t.animatedTextProps;t=fIO(E,U);b=!E.defaultIcon||!b&&E.defaultText?E.defaultIcon?"leading":void 0:f?"icon-only":"icon-only-40";b==="icon-only-40"&&(t.type="text");var Q;f=Object;var C=f.assign,d;a:switch((d=
E.style)==null?void 0:d.styleType){case "STYLE_COMPACT_GRAY":d={size:"S"};break a;default:d={size:"M"}}var I=!!U;var O=(O=U&&E.toggledText||E.defaultText)?_.En(O):void 0;R?(R=_.R4(U&&E.toggledText||E.defaultText))&&V&&!isNaN(Number(V.numberValue))?(V.numberText=R,U&&(V.numberValue+=1),R=V):R=void 0:R=void 0;var a,F,L,D;var W=(V=((F=U?E.toggledAccessibilityData||((W=E.toggledText)==null?void 0:W.accessibility):E.accessibilityData||((a=E.defaultText)==null?void 0:a.accessibility))==null?void 0:(L=F.accessibilityData)==
null?void 0:L.label)||((D=E.accessibility)==null?void 0:D.label))?V:_.R4(U&&E.toggledText||E.defaultText);B=B===void 0?E.isDisabled:B;p=HnE(E,U,x,p,A);U=qp0(E,U);U!=null&&U.length?(U=_.MA({innertubeCommand:BvO(U),forceNewState:!0}),U=mh(U)?U:void 0):U=void 0;E=C.call(f,{},t,d,{iconPosition:b},m,{focused:!1,toggled:I,toggleable:!0,formattedButtonText:O,animatedTextProps:R,accessibilityLabel:W,disabled:B,onTap:p,aTagConfig:U},dot((Q=E.colorData)==null?void 0:Q.basicColorPaletteData));E.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(E.type="filled");return E}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var t=this.getInnertubeIcon();if(t)return _.zh(t)}}});
As.prototype.resetAnimation=As.prototype.resetAnimation;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],As.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],As.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],As.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],As.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",Object)],As.prototype,"isPressed",void 0);_.N([_.e(),_.P("design:type",Object)],As.prototype,"forceIconButton",void 0);_.N([_.e(),_.P("design:type",Object)],As.prototype,"forceIconOnly",void 0);_.N([_.e(),_.P("design:type",Object)],As.prototype,"forceModernIconButton",void 0);_.N([_.e(),_.P("design:type",Object)],As.prototype,"alignByText",void 0);_.N([_.e(),_.P("design:type",Object)],As.prototype,"overrides",void 0);
_.N([_.e(),_.P("design:type",Boolean)],As.prototype,"disabled",void 0);_.N([_.e(),_.P("design:type",Object)],As.prototype,"isShorts",void 0);_.N([_.e(),_.P("design:type",Object)],As.prototype,"buttonTooltipPosition",void 0);_.N([_.e(),_.P("design:type",Object)],As.prototype,"animatedText",void 0);_.N([_.e(),_.P("design:type",String)],As.prototype,"textNumberValue",void 0);_.N([_.e({computed:"computeTooltip(data, data.isToggled)"}),_.P("design:type",Object)],As.prototype,"tooltip",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],As.prototype,"resetAnimation",null);_.N([_.Z("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.P("design:type",Object),_.P("design:paramtypes",[])],As.prototype,"computedButtonShape",null);_.N([_.Z("data.*"),_.P("design:type",Object),_.P("design:paramtypes",[])],As.prototype,"computedIcon",null);
_.N([_.Ul({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],As);EQo&&_.G(As,"ytd-toggle-button-renderer",tDo,{mode:_.hX("kevlar_poly_si_batch_j081")?1:2});var UN4=_.l(function(t){function E(B){var R;return _.q(function(V){if(V.nextAddress==1)return(R=!wbJ(B,b())||!b().enabled)?V.jumpTo(2):V.yield(jBD(),3);V.nextAddress!=2&&(R=V.yieldResult);if(R)return V.return();p();setTimeout(function(){m(!1)},1500);
_.Do(V)})}
function p(){setTimeout(function(){m(!0);var B;(B=U.lottieEl)==null||B.goToAndPlay(0)},150)}
var U=_.F0(),x=_.M(_.Py(!1,void 0,"UfUosc")),A=x.next().value,m=x.next().value,b=_.Ql(t.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.A6(function(){var B,R;((B=t.settings)==null?void 0:(R=B.call(t))==null?void 0:R.uniqueId)==="this is not intended behavior"&&_.qW(new _.cC("Smartimation Settings is undefined"))});
_.M$(function(){b().experimentEnabled&&(b().enabled?R6Y(E):(m(!1),V6E(E)),_.iK(function(){V6E(E)}))},"IHhVmc");
_.M$(function(){b().timings.join("");b().experimentEnabled&&(QBE(b()),_.iK(function(){CMY(b())}))},"fsfhOe");
var f=_.KN(function(){var B=U,R=b().uniqueId+"-border",V,Q;var C="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((Q=(V=_.X3().resolve(_.OB(_.Ld)))==null?void 0:V())!=null&&Q?"dark":"light")+"_v2.json";return{animationRef:B,animationConfig:{name:R,autoplay:!1,loop:!1,path:C}}},void 0,"UWvUGe");
x={};return _.H("yt-smartimation",{class:_.X5(t.className,"smartimation",(x["smartimation--experiment-enabled"]=function(){return b().experimentEnabled},x["smartimation--active-border"]=A,x["smartimation--enable-masking"]=rRD(),x))},_.H(_.w,{cond:function(){return b().experimentEnabled},
then:function(){return _.H("div",{class:"smartimation__border"},_.H(_.Wg,{className:"smartimation__border-gradient",data:f,animationName:function(){return f().animationConfig.name}}))}}),_.H("div",{class:"smartimation__content"},t.children))},"ja");
UN4.idomCompat=!0;_.k2(UN4,"yt-smartimation",{props:{className:_.uu,settings:_.uu}});var Yc=function(){var t=_.z.apply(this,arguments)||this;t.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};t.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};t.shouldEnableSmartimation=!1;return t};
_.u(Yc,_.z);Yc.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Yc.prototype.onDataChanged=function(){var t,E;this.shouldEnableSmartimation=(((t=this.data)==null?void 0:(E=t.timedAnimationData)==null?void 0:E.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
Yc.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var t=_.k(this.data.likeButton,_.Vs),E=_.k(this.data.dislikeButton,_.Vs);return!!((t==null?0:t.isToggled)||(E==null?0:E.isToggled))};
Yc.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]]"}}}}}};
_.aE.Object.defineProperties(Yc.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var t,E,p=((t=this.data)==null?void 0:(E=t.timedAnimationData)==null?void 0:E.animationTiming)||[];return{uniqueId:"like-dislike",timings:p,enabled:this.shouldEnableSmartimation,experimentEnabled:p.length>0}}}});
Yc.prototype.onDataChanged=Yc.prototype.onDataChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Yc.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Yc.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Yc.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Yc.prototype,"likeButtonOverride",void 0);_.N([_.e(),_.P("design:type",Object)],Yc.prototype,"dislikeButtonOverride",void 0);
_.N([_.Z("shouldEnableSmartimation"),_.P("design:type",Object),_.P("design:paramtypes",[])],Yc.prototype,"smartimationSettings",null);_.N([_.GI("data"),_.lc("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yc.prototype,"onDataChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],Yc);
_.G(Yc,"ytd-segmented-like-dislike-button-renderer",function(){if(Sf0!==void 0)return Sf0;var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Sf0=t},{mode:1});var xNs;var Ams;(Ams=document.body)==null||Ams.setAttribute("rounded-container","");var Yso={};Yso.YtToggleButtonBehavior=[_.oO.YtActionHandlerBehavior,pH.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 t=this.data.isToggled;if(!this.isModal_(t)){if(!this.data.preventAutoToggle){this.toggle();var E={toggled:this.data.isToggled,actions:{}};E.actions[this.buttonIcon]=this.data.isToggled;_.kT(this.hostElement,"yt-toggle-button",E)}E=this.data.defaultServiceEndpoint||null;var p=this.data.toggledServiceEndpoint||null;if(E&&p||E&&this.data.preventAutoToggle)t=t?p:E,E=this.disableCommandHandlerOverride,_.r("killswitch_toggle_button_behavior_resolve_command")||E?_.JZ(this.hostElement,
[t]):_.n4(t,this.hostElement),_.kT(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:t})}},
stateChanged_:function(){var t=this.data;if(t){var E=t.isToggled;this._setEndpoint(this.computeEndpoint_(t));this._setServiceEndpoint(this.computeServiceEndpoint_(t));this._setButtonIcon(this.computeButtonIcon_(t,E));this._setButtonText(this.computeButtonText_(t,E));this._setButtonAccessibility(this.computeAccessibility_(t,E));this._setButtonTooltip(this.computeTooltip_(t,E));this._setButtonClass(this.computeButtonClass_(t,E));this._setIconPositionType(this.computeIconPositionType_(t));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=E):this.elements_.button.setAttribute("aria-pressed",E));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=E)}},
shouldSetIconActiveState_:function(){return _.r("kevlar_system_icons")},
toggle:function(t){this.set("data.isToggled",t!==void 0?t:!this.data.isToggled);_.r("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(t){if(t){var E,p;return!!((E=this.data)==null?0:(p=E.toggledServiceEndpoint)==null?0:p.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(t){return t&&t.defaultNavigationEndpoint||null},
computeButtonIcon_:function(t,E){var p=t&&t.defaultIcon?_.zh(t.defaultIcon.iconType):null;t=t&&t.toggledIcon?_.zh(t.toggledIcon.iconType):p;return E?t:p},
handleUpdateToggleButtonStateCommand_:function(t){t=t.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==t.buttonId&&this.toggle(t.toggled)},
computeButtonText_:function(t,E){return t?E&&t.toggledText||t.defaultText||null:null},
computeAccessibility_:function(t,E){return t?(E?this.get("toggledAccessibilityData.accessibilityData",t):this.get("accessibilityData.accessibilityData",t))||t.accessibility||null:null},
computeTooltip_:function(t,E){return t?E&&t.toggledTooltip||t.defaultTooltip||null:null},
computeButtonClass_:function(t,E){if(!t)return"";var p="",U=t.toggledStyle||t.style;if(E=E?U:t.style){E.styleType&&(E=E.styleType);try{p+=E.toLowerCase().replace(/_/g,"-")+" "}catch(x){_.HX(x,E,typeof E),_.qW(x)}}if(t=t.size){t.sizeType&&(t=t.sizeType);try{p+=t.toLowerCase().replace(/_/g,"-")+" "}catch(x){_.HX(x,t,typeof t),_.qW(x)}}return p.trim()},
computeIconPositionType_:function(t){return t&&t.iconPosition||null},
computeServiceEndpoint_:function(t){var E=t&&t.serviceEndpoint,p=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return E?E:p&&t.command?t.command:null},
handleUpdateToggleButtonTextAction_:function(t){t=t.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==t.buttonId&&(this.set("data.defaultText",t.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",t.toggledText),this.notifyPath("data.toggledText"))}}];_.vs("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var MD0=_.r("web_button_rework")&&_.HC("BUTTON_REWORK")||_.r("web_button_rework_with_live"),M4=function(){var t=_.z.apply(this,arguments)||this;t.systemIcons=_.r("kevlar_system_icons");t.roundedContainer=!0;return t};
_.u(M4,_.z);M4.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
M4.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var t=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var E={toggled:!!this.data.isToggled,actions:{}};E.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var p,U;E.actions.playlistId=(p=this.data.defaultServiceEndpoint)==null?void 0:(U=p.playlistEditEndpoint)==null?void 0:U.playlistId;_.kT(this.hostElement,"yt-toggle-button",E)}(t=t?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(t)}};
M4.prototype.onYtNavigate=function(t){var E=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(t.detail.endpoint);E&&(t.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(E))};
_.aE.Object.defineProperties(M4,{template:{configurable:!0,enumerable:!0,get:function(){if(xNs===void 0){var t=document.createElement("template");_.J(t,"\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");t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);xNs=t}t=xNs;return t}}});
M4.prototype.onYtNavigate=M4.prototype.onYtNavigate;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],M4.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.aU),_.P("design:type",Object)],M4.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.g(Yso.YtToggleButtonBehavior),_.P("design:type",Object)],M4.prototype,"ytToggleButtonBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],M4.prototype,"data",void 0);_.N([_.e({value:!0}),_.P("design:type",Boolean)],M4.prototype,"showTooltips",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],M4.prototype,"systemIcons",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],M4.prototype,"roundedContainer",void 0);_.N([_.lc("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],M4.prototype,"onYtNavigate",null);
_.N([_.Ul({is:"ytd-toggle-button-renderer",disableElementRegistration:MD0})],M4);var mNZ,b9m;_.mp=new _.gM("PANEL_CONTROLLER_TOKEN");_.bL=new _.gM("SHEET_CONTROLLER_TOKEN");_.iL=new _.gM("DIALOG_CONTROLLER_TOKEN");mNZ=new _.gM("DIALOG_CONTAINER_TOKEN");b9m=new _.gM("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.q4=new _.gM("PERSISTENT_PANEL_CONTROLLER_TOKEN");var XbO=_.zF("DOWNLOAD",{},"Download"),h6Y=_.zF("DOWNLOADING",{},"Downloading"),aI8=_.zF("DOWNLOADED",{},"Downloaded"),e6K=_.zF("RETRY",{},"Retry");var i9G=_.l(function(t){var E=nSE,p=function(){return""},U=FNY(t.data),x=z6i(t.data),A=lIt(t.data),m=G7$(t.data);
E=function(){var b=t.data(),f=ZnK(b,U(),x(),A(),m()),B=!!b.videoId,R=f.text;return{title:B?R:void 0,tooltip:B?void 0:R,accessibilityText:R,onTap:f.onTap,iconName:f.iconType,style:b.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:f.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:b.buttonSize}};
p={};p=_.X5("ytDownloadButtonViewModelHost",(p.ytDownloadButtonViewModelIsHidden=function(){var b=t.data(),f=m();return b.playlistId||f()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||f()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},p));
return _.H("download-button-view-model",{class:p},_.H(_.D5,{data:E}))},"ka");
i9G.idomCompat=!0;var $5E=new _.gM("SUBMIT_API_SERVICE_TOKEN");var Tq8,oSO,KNO={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var fEJ=new _.gM("RENDERER_LOGGER_TOKEN");var bpj=new _.gM("RENDERER_STAMPER_OPTIONS_TOKEN");var yRl;_.Dq=new dh8;yRl=new Map;var ipE="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),HpD=["notificationTextRenderer","notificationMultiActionRenderer"],
qfJ="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),mDO=Sp_(function(t){return _.Hv(t==null?void 0:t.targetId)}).useUpdatableData;var MPi=0,APL=new Set;_.sY.debugName="EjJbCe";var qsW=_.l(function(t){var E=t.data;t=t.className;_.xa(function(){E().formId||_.bV(Error("Dh"))});
var p=_.PM_(function(){return E().formId},function(){return E().beforeSubmitCommand},function(){return E().afterSubmitCommand}),U=p.submitForm,x=p.isValid,A=p.isSubmitting,m=function(){return{state:E().isDisabled||!x()||A()?"disabled":"active"}};
return _.H("yt-submit-button-view-model",{class:_.X5("ytSubmitButtonViewModelHost",t)},_.H(_.sY,{data:function(){return E().button}},{buttonViewModel:function(b){return _.H(_.D5,{data:b.data,
buttonOverrides:m,onClick:U})}}))},"na");var fAs=_.l(function(t){var E=t.backgroundLottieRef;var p=t.foregroundLottieRef;var U=t.children;var x=t.wrapperClass;var A=t.disableAnimation;t=function(){return(_.r("web_animated_actions")||_.r("web_animated_actions_v2"))&&!(A==null?0:A())};
return _.H("yt-animated-action",{class:_.X5("ytAnimatedActionHost",x)},_.H("div",{class:"ytAnimatedActionContentWithBackground"},_.H(_.w,{cond:t,then:function(){return _.H(H9s,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:E==null?void 0:E(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(BOE()?"dark":"light")+"_v5.json"}}}})}}),U),_.H(_.w,{cond:t,
then:function(){return _.H(H9s,{lottiePlayerProps:function(){return{animationRef:p==null?void 0:p(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(BOE()?"dark":"light")+"_v4.json"}}}})}}))},"oa");
fAs.idomCompat=!0;var H9s=_.l(function(t){var E=t.wrapperClass;var p=t.lottieClass;var U=t.lottiePlayerProps;return _.H("div",{class:_.X5("ytAnimatedActionLottie",E),"aria-hidden":"true"},_.H(_.Wg,{className:p,data:U,animationName:function(){return U().animationConfig.name}}))},"pa");var wtt={isOpen:!1};var VP$={isAllowed:!1};var CqO={errorMessage:"",title:"",privacy:"",isDisabled:!0};var rPO={isOpen:!1};var dDt={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var BRf={response:void 0};var JPj=function(t,E){t=t===void 0?BRf:t;switch(E.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},t,{response:E.payload});default:return t}};var whW={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var IEj=function(t,E){t=t===void 0?whW:t;switch(E.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},t,{nextDisabled:E.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},t,{nextCommand:E.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},t,{footerSubmissionData:E.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},t,{isImpersonationValid:E.payload});default:return t}};var R0f={reportFormData:void 0,reportDetailsFormData:void 0};var g0O=function(t,E){t=t===void 0?R0f:t;switch(E.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},t,{reportFormData:E.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},t,{reportDetailsFormData:E.payload});default:return t}};var VDo=void 0;_.r("mweb_enable_redux_store_on_demand")||(VDo=new VM(ZpO()));var HJ=_.r("enable_web_delhi_icons");var Q3T=_.l(function(t){t=_.C4(t,{themeOverride:void 0,animationRef:{}});var E=t.animatedIconType,p=t.active,U=t.themeOverride,x=t.animationRef;t=t.staticIconFn;var A=_.M(_.Py(void 0,void 0,"l48agc")),m=A.next().value,b=A.next().value,f=function(){a:{var O=E();var a=U==null?void 0:U();var F;a=(a==null?void 0:a.useDarkTheme)||((F=_.X3().resolve(_.OB(_.Ld)))==null?void 0:F());switch(O){case "LIKE":VDo||(VDo=new VM(ZpO()));O=(O=tO8(VDo.getState()))&&O.animationLightUrl&&O.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:a?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:a?O.animationDarkUrl:O.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(O){a=O;break a}a="animated_like_icon_"+(a?"dark":"light")+"_"+(HJ?"v5":"v4");a={lottiePlayerProps:{animationConfig:{name:a,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+a+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(HJ?" animated-like-icon-delhi":"")}}},totalFrames:HJ?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":a={lottiePlayerProps:{animationConfig:{name:a?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(a?"dark":"light")+(HJ?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(HJ?" animated-subscribe-icon-delhi":"")}}},totalFrames:HJ?120:79,lazyLoad:!1};break a}a=
void 0}return a},B=function(){var O,a;
return(a=(O=f())==null?void 0:O.lottiePlayerProps.animationConfig.name)!=null?a:""},R=function(){if(f()){var O=f().lottiePlayerProps.animationConfig.path;
return oC.get(O)||m()}};
A=_.M(_.Py(!1,void 0,"sDrGId"));var V=A.next().value;A=A.next().value;var Q=Xt$(A),C=function(){var O=f(),a,F,L;return(L=O==null?void 0:(a=O.lottiePlayerProps.animationConfig)==null?void 0:(F=a.rendererSettings)==null?void 0:F.className)!=null?L:""},d=void 0,I=void 0;
_.M$(function(){var O=f(),a=B(),F=R(),L=V(),D=p();if(O&&(I!==a&&(I=a,d=D,a=x(),Q.animationConfig=O.lottiePlayerProps.animationConfig,Q.animationRef=a,F&&(Q.animationConfig.animationData=F,Q.animationConfig.path=void 0),a=O.lottiePlayerProps.animationConfig.path,!oC.get(a)&&O.lazyLoad&&a&&OpK(a,b)),!(L||O.lazyLoad&&!F))){if(F=!x().lottieEl)D?(L=O.totalFrames,Q.animationConfig.initialSegment=[L-1,L]):Q.animationConfig.initialSegment=void 0;if(d!==D&&!F)if(F=x(),D){var W;(W=F.lottieEl)==null||W.playSegments([0,
O.totalFrames],!0)}else{var K;(K=F.lottieEl)==null||K.playSegments([0,1],!0)}d=D}},"RQVZ1d");
return _.H("animated-icon",{class:"ytAnimatedIconHost"},_.H(_.w,{cond:function(){var O,a;return!((O=f())==null||!O.lottiePlayerProps.animationConfig.path||((a=f())==null?0:a.lazyLoad)&&!R()||V())},
then:function(){return _.H(_.Wg,{data:Q,animationName:B,className:C,animationRef:x})},
else:t}))},"ra");_.fZ=_.l(function(t){var E=_.EB("yt-subscribe-button-view-model"),p=_.EB("div"),U=_.EB("div"),x=_.F0(),A=_.F0(),m=_.F0(),b=_.nd(FZl,function(){return t.data().stateEntityStoreKey}),f=_.nd(zVK,function(){var $L,Cs;
return(Cs=($L=t.data().notificationStateEntityStoreKeys)==null?void 0:$L.subsNotificationStateKey)!=null?Cs:""}),B=function(){return!t.data().enableSubscribeButtonPostClickAnimation},R=_.M(_.Py(0,void 0,"YtsSKb")),V=R.next().value,Q=R.next().value;
R=_.M(_.Py(0,void 0,"V6JxRe"));var C=R.next().value,d=R.next().value;R=_.M(_.Py(!1,void 0,"JUCSZ"));var I=R.next().value,O=R.next().value;R=_.M(_.Py(!1,void 0,"oV6jwf"));var a=R.next().value,F=R.next().value;R=_.M(_.Py(!1,void 0,"hK1Whe"));var L=R.next().value,D=R.next().value,W;R=_.M(_.Py(!1,void 0,"Asaolf"));var K=R.next().value,v=R.next().value,YL=function(){F(!0);_.W9(_.ir,function(){F(!1)},1500)};
_.M$(function(){var $L=a();_.sJ(function(){$L&&!B()&&b()&&KZi(x,A,m)})},"Qq6Hsf");
_.M$(function(){var $L=b();_.sJ(function(){if(!B()&&$L){var Cs;((Cs=t.animateWidth)==null?0:Cs.call(t))&&$Dl(E.value,!!$L.subscribed,V(),C());var km,ZT;((km=W)==null?0:km.subscribed)||!$L.subscribed||$L.key!==((ZT=W)==null?void 0:ZT.key)||YL();W=$L}})},"hog8te");
R=_.KN(function(){var $L,Cs,km,ZT=t.data(),l8=!(($L=b())==null||!$L.subscribed);$L=!((Cs=t.isOverlay)==null||!Cs.call(t));Cs=I()?E:void 0;var Rt=(km=f())==null?void 0:km.state;km=K();WZj(ZT,Rt);return eV$({model:ZT,subscribed:l8,isOverlay:$L,element:Cs,notificationState:Rt,disableTextEllipsis:!0,focused:km})},void 0,"hc1PRd");
var bY=function(){var $L;if(!B()&&(($L=t.animateWidth)==null?0:$L.call(t))&&(p==null?0:p.value)&&(U==null?0:U.value)&&!L()){$L=b();var Cs=_.M(($L==null?0:$L.subscribed)?[p,U]:[U,p]),km=Cs.next().value;Cs=Cs.next().value;km=Math.ceil(km.value.getBoundingClientRect().width);Cs=Math.ceil(Cs.value.getBoundingClientRect().width);Q(km);d(Cs);$Dl(E.value,!($L==null||!$L.subscribed),km,Cs);D(!0)}},kL=_.aC(function($L){bY();
var Cs=b();Cs&&($L.detail.endpoint.subscribeEndpoint||$L.detail.endpoint.unsubscribeEndpoint)&&PqO(E.value,!Cs.subscribed,Cs)}),R0=function(){var $L=_.X3().resolve(_.OB(_.FA));
$L&&v($L.isKeyBoardInUse())},j$=function(){v(!1)};
_.Iz("yt-player-subscribe",function($L){var Cs=b();Cs&&$L===t.data().channelId&&PqO(E.value,!0,Cs)});
_.Iz("yt-player-unsubscribe",function($L){var Cs=b();Cs&&$L===t.data().channelId&&PqO(E.value,!1,Cs)});
_.Iz("yt-update-subscribe-button-action",function($L){$L=_.k($L,p$W);var Cs=b();Cs&&$L&&$L.channelId===t.data().channelId&&PqO(E.value,!!$L.subscribed,Cs)});
_.A6(function(){E.value&&(E.value.addEventListener("focusin",R0),E.value.addEventListener("focusout",j$));var $L=_.E_(_.ir,function(){bY()});
O(!0);_.iK(function(){_.ir.cancelJob($L);E.value&&(E.value.removeEventListener("focusin",R0),E.value.removeEventListener("focusout",j$))})});
var lY=function(){var $L,Cs,km;if(km=!(($L=b())==null||!$L.subscribed))$L=!!t.data().disableNotificationBell,km=(Cs=f())==null?void 0:Cs.state,km=!$L&&!!km;return km},Tt=function(){var $L;
return!(($L=b())==null?0:$L.subscribed)},si=function(){var $L,Cs;
if(Cs=Tt()){Cs=!!t.data().disableNotificationBell;var km=($L=f())==null?void 0:$L.state;Cs=!Cs&&!!km}return Cs},Q0={},ps={};
return _.H("yt-subscribe-button-view-model",{class:_.X5(t.className,"ytSubscribeButtonViewModelHost",(Q0.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var $L,Cs;return!(($L=b())==null||!$L.subscribed)&&((Cs=t.animateWidth)==null?void 0:Cs.call(t))&&a()},Q0.ytSubscribeButtonViewModelHostHidden=function(){var $L;
return!(($L=b())==null?0:$L.subscribed)&&t.data().hideWhenUnsubscribed},Q0)),
el:E,"on:yt-service-request-sent":kL},_.H(fAs,{backgroundLottieRef:x,foregroundLottieRef:A,wrapperClass:_.X5("ytSubscribeButtonViewModelAnimatedActionWrapper",(ps.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var $L;return(($L=t.animateWidth)==null?void 0:$L.call(t))&&a()},ps.ytSubscribeButtonViewModelStaticWidth=function(){var $L;
return!(($L=t.animateWidth)==null?0:$L.call(t))},ps)),
disableAnimation:B},_.H("div",{el:p,class:"ytSubscribeButtonViewModelContainer"},_.H(_.N7,{data:R,icon:function(){return _.H(_.w,{cond:lY,then:function(){var $L=function(){var Cs;return LZt((Cs=f())==null?void 0:Cs.state)};
return _.H(_.w,{cond:function(){return B()||$L()!=="NOTIFICATIONS_NONE"},
then:function(){return _.H(_.lz,{icon:$L})},
else:function(){return _.H(Q3T,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:m})}})}})},
secondaryIconName:function(){return lY()?"EXPAND":void 0}}))),_.H("div",{el:U,
class:"ytSubscribeButtonViewModelInvisible"},_.H(_.w,{cond:function(){var $L;return(($L=t.animateWidth)==null?void 0:$L.call(t))&&!B()&&!L()},
then:function(){return _.H(_.N7,{data:_.KN(function(){var $L;return eV$({model:t.data(),subscribed:Tt(),isOverlay:!(($L=t.isOverlay)==null||!$L.call(t)),element:E,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var $L;return si()?LZt(($L=f())==null?void 0:$L.state):void 0},
secondaryIconName:function(){return si()?"EXPAND":void 0}})}})))},"ua");
_.fZ.idomCompat=!0;var Cyp=_.l(function(t){var E=t.data;var p=_.nd(FZl,function(){return E().subscriptionStateEntityKey});
return _.H(_.w,{cond:function(){var U=E(),x=p();return!U.hideWhenUnsubscribed||(x==null?0:x.subscribed)?_.k(E().button,_.Cz):void 0},
then:function(U){return _.H("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.H(_.D5,{data:U,buttonOverrides:function(){return{toggled:!0}}}))}})},"va");
Cyp.idomCompat=!0;var j3Z,BJ;j3Z=_.l(function(t){return _.H(_.sY,{data:function(){return t.actionRow().actions}},{buttonViewModel:function(E){var p=E.data;
return _.H(BJ,{isRow:t.isRow,isIconOnlyButton:function(){return v0l(p())},
useIntrinsicWidth:t.useIntrinsicWidth},_.H(_.D5,{data:p}))},
subscribeButtonViewModel:function(E){return _.H(BJ,{isRow:t.isRow},_.H(_.fZ,{data:E.data,isOverlay:!1,animateWidth:function(){return!t.isRow()}}))},
downloadButtonViewModel:function(E){var p=E.data;return _.H(BJ,{isRow:t.isRow,isIconOnlyButton:function(){return!!p().playlistId}},_.H(i9G,{data:p}))},
submitButtonViewModel:function(E){var p=E.data;return _.H(BJ,{isRow:t.isRow,isIconOnlyButton:function(){var U=p();return v0l(_.k(U==null?void 0:U.button,_.Cz))}},_.H(qsW,{data:p}))},
toggleButtonViewModel:function(E){var p=E.data;return _.H(BJ,{isRow:t.isRow,isIconOnlyButton:function(){var U=p();return v0l(_.k(U.isToggled?U.toggledButtonViewModel:U.defaultButtonViewModel,_.Cz))}},_.H(_.m3,{data:p}))},
subscribePlusButtonViewModel:function(E){return _.H(BJ,{isRow:t.isRow},_.H(Cyp,{data:E.data}))}})},"wa");
BJ=_.l(function(t){var E={};return _.H("div",{class:_.X5("ytFlexibleActionsViewModelAction",(E.ytFlexibleActionsViewModelActionRowAction=t.isRow,E.ytFlexibleActionsViewModelActionIntrinsicWidth=t.useIntrinsicWidth,E.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,E.ytFlexibleActionsViewModelActionIconOnlyButton=t.isIconOnlyButton,E))},t.children)},"xa");
_.wl=_.l(function(t){var E=function(){var U;return((U=t.layout)==null?void 0:U.call(t))===1},p={};
return _.H("yt-flexible-actions-view-model",{class:_.X5("ytFlexibleActionsViewModelHost",t.className,(p.ytFlexibleActionsViewModelInline=function(){return!E()},p.ytFlexibleActionsViewModelScrollable=function(){return t.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},p))},_.H(_.yG,{each:function(){return t.data().actionsRows||[]}},function(U){return _.H(_.w,{cond:E,
then:function(){return _.H("div",{class:"ytFlexibleActionsViewModelActionRow"},_.H(j3Z,{actionRow:U,isRow:E,useIntrinsicWidth:function(){return!!t.data().respectActionIntrinsicWidth}}))},
else:function(){return _.H(j3Z,{actionRow:U,isRow:E})}})}))},"ya");_.k2(_.wl,"yt-flexible-actions-view-model",{props:{data:_.uu,layout:_.uu,justifyContentOverride:_.uu,className:_.uu}});_.R2=_.l(function(t){var E=_.nd(_.UY,function(){var x;return(x=t.data().dislikeEntityKey)!=null?x:""}),p=_.KN(function(){var x=E();
return x?x.likeStatus==="DISLIKE":_.k(t.data().toggleButtonViewModel,_.rc).isToggled},void 0,"fNr9he"),U=_.KN(function(){return Object.assign({},_.k(t.data().toggleButtonViewModel,_.rc),{isToggled:p()})},void 0,"AezoCc");
return _.H("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.H(_.m3,{data:U,buttonShapeOverrides:t.buttonShapeOverrideables,onToggle:function(x){var A=E();A&&x!==(A.likeStatus==="DISLIKE")&&A.key&&_.Vl(_.pr("likeStatusEntity",A.key,{likeStatus:x?"DISLIKE":"INDIFFERENT",hadUserInteraction:x}))}}))},"za");
_.R2.idomCompat=!0;_.Vf=_.l(function(t){var E=_.r("web_supports_animations_api"),p=bcJ(function(Q){var C=B();if(!Q){var d,I;return{numberText:(I=C==null?void 0:(d=C.likeCountIfIndifferent)==null?void 0:d.content)!=null?I:"",numberValue:Number(C==null?void 0:C.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var O;d=(C==null?void 0:(O=C.likeCountIfIndifferent)==null?void 0:O.content)!==Q.numberText;if(b()||!d)return Q;var a;return{numberText:(C==null?void 0:(a=C.likeCountIfIndifferent)==null?void 0:a.content)||
"",numberValue:Number(C==null?void 0:C.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!C}}),U=bcJ(function(Q){var C=B();
if(!Q){var d,I;return{numberText:(I=C==null?void 0:(d=C.likeCountIfLiked)==null?void 0:d.content)!=null?I:"",numberValue:Number(C==null?void 0:C.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var O;d=(C==null?void 0:(O=C.likeCountIfIndifferent)==null?void 0:O.content)!==Q.numberText;if(b()||!d)return Q;var a;return{numberText:(C==null?void 0:(a=C.likeCountIfLiked)==null?void 0:a.content)||"",numberValue:Number(C==null?void 0:C.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!C}}),x=_.M(_.Py(void 0,
void 0,"xYSlUe")),A=x.next().value,m=x.next().value,b=A,f=_.nd(_.UY,function(){var Q,C;
return(C=(Q=t.data())==null?void 0:Q.likeStatusEntityKey)!=null?C:""}),B=_.nd(GUl,function(){var Q,C;
return((Q=t.likeCountEntity)==null?void 0:(C=Q.call(t))==null?void 0:C.key)||""}),R=_.KN(function(){var Q;
return((Q=f())==null?void 0:Q.likeStatus)==="LIKE"},void 0,"DG5Osd"),V=function(){var Q;
return E&&!((Q=t.likeCountEntity)==null||!Q.call(t))};
return _.H("like-button-view-model",{class:_.X5("ytLikeButtonViewModelHost",t.className)},_.H(_.m3,{data:function(){var Q=Object,C=Q.assign,d;var I=_.k((d=t.data())==null?void 0:d.toggleButtonViewModel,_.rc);return C.call(Q,{},I||{},{isToggled:R()})},
buttonShapeOverrides:t.buttonShapeOverrideables,animatedTextPropsDefault:function(){return V()?p():void 0},
animatedTextPropsToggled:function(){return V()?U():void 0},
onToggle:function(Q){yP_(Q,f(),b(),m)},
style:function(){var Q;return((Q=t.disableIconAnimation)==null?0:Q.call(t))?void 0:{animateIcon:"true"}}}))},"Aa");
_.Vf.idomCompat=!0;var rmo=_.l(function(t){var E=function(){return _.k(t.data().likeButtonViewModel,_.qm)},p=function(){var x;
return((x=E())==null?void 0:x.likeStatusEntityKey)||""},U=_.KN(function(){var x,A;
var m=(A=_.nd(_.UY,p)())!=null?A:(x=E())==null?void 0:x.likeStatusEntity;x=t.data();var b;x=(x==null?void 0:(b=x.timedAnimationData)==null?void 0:b.animationTiming)||[];return{uniqueId:"like-dislike",timings:x,enabled:(m==null?void 0:m.likeStatus)==="INDIFFERENT"&&x.length>0,experimentEnabled:x.length>0}},void 0,"zZ3GQb");
return _.H("segmented-like-dislike-button-view-model",{class:_.X5("ytSegmentedLikeDislikeButtonViewModelHost",t.className),"button-renderer":!0},_.H(UN4,{settings:U},_.H("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.H(_.w,{cond:E,then:function(x){return _.H(_.Vf,{data:x,likeCountEntity:function(){return t.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.r("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.H(_.w,{cond:function(){return _.k(t.data().dislikeButtonViewModel,_.Hn)},
then:function(x){return _.H(_.R2,{data:x,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"Ba");
rmo.idomCompat=!0;_.k2(rmo,"segmented-like-dislike-button-view-model",{props:{data:_.uu,className:_.uu}});var kjo=_.l(function(t){var E=t.data;var p=t.className;var U=t.setMinWidth;var x=t.forceIconOnly;var A=_.EB("account-link-button-view-model"),m=_.nd(_.Sf_,function(){var Q;return(Q=E().accountLinkStatusEntityKey)!=null?Q:""}),b=_.nd(_.Sf_,function(){var Q;
return(Q=E().accountLinkStatusSecondaryEntityKey)!=null?Q:""}),f=function(){if(!_.r("web_account_link_secondary_killswitch")){var Q,C;
return((Q=m())==null?void 0:Q.linked)||((C=b())==null?void 0:C.linked)}var d;return(d=m())==null?void 0:d.linked};
_.M$(function(){var Q=m();if(Q){var C=XHr(new Oz3,g3W(new Imf,!!Q.linked));_.an().then(function(d){d&&(d.setAccountLinkState(_.S$(C.JSC$12597_serializeBinary(),4)),d.updateAccountLinkingConfig(!!Q.linked))})}},"IvZF7");
var B=function(){return _.k(E().toggleButtonViewModel,_.rc)};
_.Iz("yt-signal-action-show-account-link-dialog",function(){if(B()){var Q=f()?B().toggledButtonViewModel:B().defaultButtonViewModel;Q=_.k(Q,_.Cz);var C;if((C=m())==null?0:C.isWarning){C=_.k(E().warningButtonViewModel,_.Cz);if(!C){_.Ra(Error("Eh"));return}Q=C}var d;(C=_.AJ((d=Q)==null?void 0:d.onTap))&&_.OT([C],A.value)}else _.Ra(Error("Fh"))});
var R=function(){var Q=B();return Object.assign({},Q,{isToggled:f()})},V=function(){return(x==null?0:x())?{iconPosition:"icon-only"}:{}};
return _.H("account-link-button-view-model",{class:_.X5("ytwAccountLinkButtonViewModelHost",p,function(){return(U==null?0:U())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:A,"button-renderer":!0},_.H("div",null,_.H(_.w,{cond:function(){var Q;if((Q=m())==null?0:Q.isWarning)return(Q=_.k(E().warningButtonViewModel,_.Cz))||_.Ra(Error("Eh")),Q},
then:function(Q){return _.H(_.D5,{data:Q,buttonOverrides:V})},
else:function(){return _.H(_.m3,{data:R,buttonShapeOverrides:V})}})))},"Da");_.k2(kjo,"account-link-button-view-model",{props:{data:_.uu,className:_.Cy,setMinWidth:_.Cy,forceIconOnly:_.Cy}});_.vs("menuRenderer","menuRenderer","ytd-menu-renderer");
var dN4={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"}},
ums=_.r("web_fix_missing_action_buttons")?100:200,Qf=function(){var t=_.z.apply(this,arguments)||this;t.safeArea=!_.r("kevlar_flex_menu_safe_area_killswitch");t.tonalOverride=!1;t.threeDotSize="M";t.isOverlay=!1;t.useOverlayDark=!1;t.topLevelIconsOnly=!1;t.JSC$15038_lastWidth=0;t.maybeUpdateFlexibleMenu=function(){_.r("web_fix_missing_action_buttons")?requestAnimationFrame(t.maybeUpdateFlexibleMenuImpl):t.maybeUpdateFlexibleMenuImpl()};
t.maybeUpdateFlexibleMenuImpl=function(){var E;if((E=t.data)!=null&&E.flexibleItems){t.maybeFlushDebouncer();E=t.hostElement.clientWidth;var p=E>t.JSC$15038_lastWidth,U,x=((U=t.topLevelButtonsContainer)==null?void 0:U.scrollHeight)||0,A;U=((A=t.flexibleItemButtonsContainer)==null?void 0:A.scrollHeight)||0;A=t.hostElement.scrollHeight>Math.max(x,U)+8;p?(t.resetFlexibleItems(),t.JSC$15038_lastWidth=t.hostElement.clientWidth,t.maybeUpdateFlexibleMenu()):A&&(t.shrinkFlexibleMenu(),t.JSC$15038_lastWidth=
E)}};
t.computeThreeDotButtonShape=function(){if(t.tonalOverride)return Object.assign({},{onTap:function(){t.onOverflowTap()},
iconPosition:"icon-only",style:t.isOverlay?t.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:t.threeDotSize,state:"active",accessibilityLabel:t.computeAccessibilityLabel(t.data)},t.threeDotButtonOverride)};
t.onOverflowTap=function(){var E,p,U,x,A,m;_.q(function(b){switch(b.nextAddress){case 1:if(t.data.fetchMenuCommand)return E=_.X3().resolve(_.ei),E.resolveCommand(t.data.fetchMenuCommand,{form:{element:t.hostElement}}),b.return();if(t.data.isDisabled&&t.data.disabledCommand)return _.n4(t.data.disabledCommand,t.hostElement),b.return();p=t.createMenuRendererVe();U={items:t.items};t.data.menuPopupAccessibility&&(U.menuPopupAccessibility=t.data.menuPopupAccessibility);t.data.footer&&(U.footer=t.data.footer);
x={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:U},veData:p}};A=_.X3().resolve(_.bL);if(!_.r("ytd-menu-singleton-sheet-killswitch")){b.jumpTo(2);break}return b.yield(A.openSheet({openPopupActionCommand:x},t.hostElement),3);case 3:return b.return();case 2:return b.yield(A.isSheetOpen(),4);case 4:return(m=b.yieldResult)?b.yield(A.closeSheet(),0):b.yield(A.openSheet({openPopupActionCommand:x},t.hostElement),0)}})};
return t};
_.u(Qf,_.z);_.Y=Qf.prototype;_.Y.updateButtonOverrides=function(){if(!_.r("menu_renderer_label_update_upkillswitch")){var t=_.ZN(this.hostElement).querySelector("yt-button-view-model");t&&(t.buttonOverrides=this.buttonOverrides)}};
_.Y.computeHasItems=function(){var t;return((t=this.topLevelButtonData)==null?void 0:t.length)||this.hasFlexibleItems};
_.Y.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.Y.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.eU(this.hostElement,{"--ytd-menu-renderer-button-color":_.SL(this.data.iconColor)}))};
_.Y.onStamperFinished=function(){this.JSC$15038_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.Y.setupFlexibleMenu=function(){var t=this,E;(E=this.data)!=null&&E.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.F5(this.maybeUpdateFlexibleMenu,ums,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){t.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))};
_.Y.maybeFlushDebouncer=function(){if(_.r("web_replace_formatted_with_attributed_string")){var t;(t=this.topLevelButtons)==null||t.forEach(function(p){var U;(p=(U=p.getElementsByTagName("yt-attributed-string"))==null?void 0:U[0])&&jN_(p)});
var E;(E=this.flexibleItemButtons)==null||E.forEach(function(p){var U;(p=(U=p.getElementsByTagName("yt-attributed-string"))==null?void 0:U[0])&&jN_(p)})}};
_.Y.resetFlexibleItems=function(){var t;if((t=this.data)!=null&&t.flexibleItems){_.r("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var E;this.flexAsTopLevelButtons=(E=this.data.flexibleItems)==null?void 0:E.map(function(p){return _.k(p,_.q7X).topLevelButton});
_.r("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.Y.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.Y.shrinkFlexibleMenu=function(){var t;(t=this.flexAsTopLevelButtons)!=null&&t.length&&(this.flexAsTopLevelButtons=[].concat(_.KB(this.flexAsTopLevelButtons.slice(0,-1))))};
_.Y.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:dN4,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:dN4,events:!0}}};
_.Y.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.Y.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.Y.detached=function(){this.icon="MORE_VERT"};
_.Y.computeTopLevelButtonData=function(t){if(!t)return[];var E;t=(E=t==null?void 0:t.topLevelButtons)!=null?E:[];return _.Kq.unsafeClone([].concat(_.KB(t)))};
_.Y.computeItems=function(t,E){if(!t)return[];var p=[];if(E){var U=(t.flexibleItems||[]).map(function(m){return _.k(m,_.q7X)});
U=_.M(U);for(var x=U.next();!x.done;x=U.next())x=x.value,E.includes(x.topLevelButton)||(x=x.menuItem)&&p.push(x)}var A;t=(A=t==null?void 0:t.items)!=null?A:[];return[].concat(_.KB(p),_.KB(t))};
_.Y.computeMenuActive=function(t,E){return t||E};
_.Y.onPopupOpened=function(){this.overlayOpen=!0;_.kT(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.Y.onPopupClosed=function(){this.overlayOpen=!1;_.kT(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.Y.onPopupCanceled=function(){this.overlayOpen=!1;_.kT(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.Y.computeAccessibilityLabel=function(t){return this.get("accessibility.accessibilityData.label",t)};
_.Y.isHidden=function(t,E){return this.tonalOverride||!t?!0:t.fetchMenuCommand||t.isDisabled&&t.disabledCommand?!1:!(E==null?0:E.length)};
_.Y.isModernOverflowHidden=function(t,E){return this.tonalOverride&&t?t.fetchMenuCommand?!1:!(E==null?0:E.length):!0};
_.Y.createMenuRendererVe=function(){var t=this.data.trackingParams,E=_.yL(),p=_.vV();return t&&E&&p?(t=_.$8(t),p=_.h8(7591),_.r("combine_ve_grafts")?_.Tw(_.Pu(),p,t):_.Yh(E,t,p),p):null};
_.aE.Object.defineProperties(Qf.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.flexAsTopLevelButtons)==null||!t.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
Qf.prototype.onPopupCanceled=Qf.prototype.onPopupCanceled;Qf.prototype.onPopupClosed=Qf.prototype.onPopupClosed;Qf.prototype.onPopupOpened=Qf.prototype.onPopupOpened;Qf.prototype.tonalOverrideChanged=Qf.prototype.tonalOverrideChanged;Qf.prototype.resetFlexibleItems=Qf.prototype.resetFlexibleItems;Qf.prototype.setupFlexibleMenu=Qf.prototype.setupFlexibleMenu;Qf.prototype.iconButtonColorChanged=Qf.prototype.iconButtonColorChanged;Qf.prototype.updateButtonOverrides=Qf.prototype.updateButtonOverrides;
_.N([_.g(_.aU),_.P("design:type",Object)],Qf.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Qf.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Qf.prototype,"ytRendererstamperBehavior",void 0);_.N([_.Nl("#button-shape"),_.P("design:type",HTMLElement)],Qf.prototype,"buttonShape",void 0);_.N([_.Nl("#button"),_.P("design:type",Object)],Qf.prototype,"button",void 0);
_.N([_.e(),_.P("design:type",Object)],Qf.prototype,"data",void 0);_.N([_.e({computed:"computeTopLevelButtonData(data)"}),_.P("design:type",Array)],Qf.prototype,"topLevelButtonData",void 0);_.N([_.e(),_.P("design:type",Array)],Qf.prototype,"flexAsTopLevelButtons",void 0);_.N([_.e({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.P("design:type",Array)],Qf.prototype,"items",void 0);_.N([_.e({value:"MORE_VERT"}),_.P("design:type",String)],Qf.prototype,"icon",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Qf.prototype,"safeArea",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.P("design:type",Boolean)],Qf.prototype,"menuActive",void 0);_.N([_.e(),_.P("design:type",Boolean)],Qf.prototype,"menuFocused",void 0);_.N([_.e({value:"bottom"}),_.P("design:type",String)],Qf.prototype,"buttonTooltipPosition",void 0);_.N([_.e(),_.P("design:type",Boolean)],Qf.prototype,"overlayOpen",void 0);
_.N([_.e({value:!0}),_.P("design:type",Boolean)],Qf.prototype,"forceIconButton",void 0);_.N([_.e(),_.P("design:type",Boolean)],Qf.prototype,"styleActionButton",void 0);_.N([_.e(),_.P("design:type",Boolean)],Qf.prototype,"disableTextTransformOnButtons",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Qf.prototype,"tonalOverride",void 0);_.N([_.e(),_.P("design:type",Object)],Qf.prototype,"threeDotSize",void 0);
_.N([_.e(),_.P("design:type",Object)],Qf.prototype,"threeDotButtonOverride",void 0);_.N([_.e(),_.P("design:type",Object)],Qf.prototype,"isOverlay",void 0);_.N([_.e(),_.P("design:type",Object)],Qf.prototype,"useOverlayDark",void 0);_.N([_.e({computed:"computeButtonOverride(tonalOverride)"}),_.P("design:type",Object)],Qf.prototype,"buttonOverride",void 0);_.N([_.e(),_.P("design:type",Boolean)],Qf.prototype,"minimizePipBreakages",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],Qf.prototype,"hasCustomIconColor",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("flexAsTopLevelButtons"),_.P("design:type",Object),_.P("design:paramtypes",[])],Qf.prototype,"hasFlexibleItems",null);_.N([_.e({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.P("design:type",Boolean)],Qf.prototype,"hasItems",void 0);_.N([_.e(),_.P("design:type",Object)],Qf.prototype,"topLevelIconsOnly",void 0);
_.N([_.GI("topLevelIconsOnly"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Qf.prototype,"updateButtonOverrides",null);_.N([_.Z("topLevelIconsOnly"),_.P("design:type",Object),_.P("design:paramtypes",[])],Qf.prototype,"buttonOverrides",null);_.N([_.Nl("#top-level-buttons-computed"),_.P("design:type",HTMLElement)],Qf.prototype,"topLevelButtonsContainer",void 0);_.N([_.DN(".top-level-buttons > *"),_.P("design:type",Array)],Qf.prototype,"topLevelButtons",void 0);
_.N([_.Nl("#flexible-item-buttons"),_.P("design:type",HTMLElement)],Qf.prototype,"flexibleItemButtonsContainer",void 0);_.N([_.DN("#flexible-item-buttons > *"),_.P("design:type",Array)],Qf.prototype,"flexibleItemButtons",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Qf.prototype,"iconButtonColorChanged",null);
_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Qf.prototype,"setupFlexibleMenu",null);_.N([_.P3("topLevelIconsOnly"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Qf.prototype,"resetFlexibleItems",null);_.N([_.GI("tonalOverride"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Qf.prototype,"tonalOverrideChanged",null);
_.N([_.lc("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Qf.prototype,"onPopupOpened",null);_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Qf.prototype,"onPopupClosed",null);_.N([_.lc("yt-popup-canceled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Qf.prototype,"onPopupCanceled",null);
_.G(Qf,"ytd-menu-renderer",function(){if(LZX===void 0){var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);LZX=t}t=LZX;return t},{mode:2});var JmG;var IA4;_.CZ=_.l(function(t){var E=t.data;var p=function(){if(E().icon)a:{var x={iconName:E().icon};for(var A=_.X3().resolve(_.lR),m=_.M([12,24]),b=m.next();!b.done;b=m.next()){var f=b.value;b=Object.assign({},x,{iconStyle:"youtube_fill",iconSize:f});f=Object.assign({},x,{iconStyle:"youtube_outline",iconSize:f});if(A.resolveIcon(b)){x=b;break a}if(A.resolveIcon(f)){x=f;break a}}x=void 0}else x=void 0;return x};
t={};var U={};return _.H("badge-shape",{class:_.X5("yt-badge-shape",function(){return xNO(E().type)},(t["yt-badge-shape--overlay"]=function(){return E().isOverlay},t["yt-badge-shape--ads-include-dot"]=function(){return E().adsIncludeDot},t["yt-badge-shape--thumbnail-badge"]=function(){a:switch(E().type){case 17:case 18:case 19:var x=!0;
break a;default:x=!1}return x},t["yt-badge-shape--status-badge"]=function(){a:switch(E().type){case 12:case 13:case 14:case 15:case 16:var x=!0;
break a;default:x=!1}return x},t["yt-badge-shape--no-text"]=function(){return!E().text},t["yt-badge-shape--modern"]=function(){return E().modern||_.r("web_modern_badge_shape")},t["yt-badge-shape--typography"]=function(){a:{var x=E();
if(x.shouldInheritTypography)switch(x.type){case 0:case 1:case 9:x=!0;break a;default:x=!1}else x=!1}return!x},t)),
style:_.zO({"background-color":function(){var x;return(x=E().customColors)==null?void 0:x.backgroundColor}}),
role:function(){return E().accessibilityText?"img":void 0},
"aria-label":function(){return E().accessibilityText}},_.H(_.w,{cond:function(){return E().animation},
then:function(x){return _.H(_.Wg,{className:"yt-badge-shape__icon",data:x,animationName:function(){return x().animationConfig.name||""}})}}),_.H(_.w,{cond:function(){var x;
return p()&&!((x=E())==null?0:x.animation)},
then:function(){return _.H("div",{class:"yt-badge-shape__icon"},_.H(_.Ws,{data:function(){return p()}}))}}),_.H("div",{class:_.X5("yt-badge-shape__text",(U["yt-badge-shape__text--clip-text-overflow"]=function(){return E().clipTextOverflow},U["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(E().numBadgesInRow||0)>1},U))},function(){var x;
return(x=E())==null?void 0:x.text}))},"Ea");
_.CZ.idomCompat=!0;_.k2(_.CZ,"badge-shape",{props:{data:_.uu}});var jA=function(){var t=_.z.apply(this,arguments)||this;t.systemIcons=_.r("kevlar_system_icons");t.animated=_.r("animated_live_badge_icon");t.useBadgeShape=_.r("web_badge_shape_defrag");return t};
_.u(jA,_.z);_.Y=jA.prototype;_.Y.addTooltips=function(){for(var t=_.ZN(this.hostElement).querySelectorAll(".badge"),E=0,p;p=t[E++];){var U=this.repeatElement.itemForElement(p);p=_.ZN(p);p.lastChild&&p.lastChild.is==="tp-yt-paper-tooltip"&&p.removeChild(p.lastChild);if(U=U.metadataBadgeRenderer&&U.metadataBadgeRenderer.tooltip){var x=_.XA("tp-yt-paper-tooltip");(0,_.aG)(x).textContent=U;x.setAttribute("position","top");x.setAttribute("aria-hidden","true");p.appendChild(x)}}};
_.Y.badgesChanged=function(){var t=this;_.ut().parkOrScheduleJob(function(){t.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.Y.standaloneRoundedBadgeChanged=function(){var t=this.useRoundedBadge?this.useRoundedBadge:void 0;t&&(this.useRoundedBadge=t)};
_.Y.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.Y.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.Y.computeStyle=function(t){_.r("kevlar_ytb_live_badges")&&t==="BADGE_STYLE_TYPE_LIVE_NOW"&&(t="badge-style-type-live-now-alternate");return t?t.toLowerCase().replace(/_/g,"-"):""};
_.Y.computeRole=function(t){return this.computeAriaLabel(t)?"img":"status"};
_.Y.computeAriaLabel=function(t){var E;return(t==null?void 0:(E=t.accessibilityData)==null?void 0:E.label)||(t==null?void 0:t.label)};
_.Y.computeBadgeShape=function(t){if(t){var E,p;var U=phO(t.style);var x=UNO(t.style),A=t.label,m=((E=t.accessibilityData)==null?void 0:E.label)||t.label;a:switch(t.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":E=!0;break a;default:E=!1}var b=(p=t.icon)==null?void 0:p.iconType;a:switch(t.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":t=!0;break a;default:t=!1}U={type:U,brNzRatingBadgeType:x,text:A,accessibilityText:m,
isOverlay:E,icon:b!=="PREMIUM"?b:void 0,modern:_.r("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:t}}else U={};return U};
_.Y.updateComputedBadges=function(t,E,p){var U=this;(E=E?[E]:p?[p]:void 0)?this.computedBadges=E:this.computedBadges=t==null?void 0:t.filter(function(x){var A;if((A=x.metadataBadgeRenderer)==null?0:A.groups){A=!1;x=_.M(x.metadataBadgeRenderer.groups);for(var m=x.next();!m.done;m=x.next()){m=m.value;var b=void 0;A=A||((b=U.hiddenBadgeGroups)==null?void 0:b.includes(m))}return!A}return!0})};
_.Y.useFilledIcons=function(t){return _.r("kevlar_system_icons")&&(t==="AUDIO_BADGE"||t==="CHECK_CIRCLE_THICK"||t==="OFFICIAL_ARTIST_BADGE"||t==="SPONSORSHIP_STAR"||t==="PERSON_RADAR_FILLED"||t==="PERSON_RADAR")};
_.Y.computeBadgeShapeStyle=function(t){return this.useBadgeShape?t==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||t==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":t==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.Y.computeIcon=function(t){var E,p;t=t==null?void 0:(E=t.metadataBadgeRenderer)==null?void 0:(p=E.icon)==null?void 0:p.iconType;if(t!=="PREMIUM"&&t)return _.zh(t)};
_.Y.computeStandaloneBadge=function(t){var E;t=t==null?void 0:(E=t.icon)==null?void 0:E.iconType;return t==="PREMIUM_STANDALONE"||t==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
jA.prototype.hiddenBadgeGroupsChanged=jA.prototype.hiddenBadgeGroupsChanged;jA.prototype.standaloneBadgeChanged=jA.prototype.standaloneBadgeChanged;jA.prototype.standaloneRoundedBadgeChanged=jA.prototype.standaloneRoundedBadgeChanged;jA.prototype.badgesChanged=jA.prototype.badgesChanged;_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],jA.prototype,"hidden",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],jA.prototype,"componentBehavior",void 0);
_.N([_.e(),_.P("design:type",Array)],jA.prototype,"badges",void 0);_.N([_.e(),_.P("design:type",Object)],jA.prototype,"topStandaloneBadge",void 0);_.N([_.e(),_.P("design:type",Object)],jA.prototype,"bottomStandaloneBadge",void 0);_.N([_.e(),_.P("design:type",Object)],jA.prototype,"computedBadges",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],jA.prototype,"mediumFontAdBadge",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],jA.prototype,"useRoundedBadge",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],jA.prototype,"largeFontAdBadge",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],jA.prototype,"overlayAd",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],jA.prototype,"overlayPremium",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],jA.prototype,"noDotAdBadge",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],jA.prototype,"collectionTruncate",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],jA.prototype,"isThumbnailBadge",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],jA.prototype,"wrapBadges",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Number)],jA.prototype,"numBadgesInRow",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],jA.prototype,"systemIcons",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],jA.prototype,"animated",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],jA.prototype,"useBadgeShape",void 0);_.N([_.e({value:[]}),_.P("design:type",Array)],jA.prototype,"hiddenBadgeGroups",void 0);_.N([_.Nl("#repeat"),_.P("design:type",SU)],jA.prototype,"repeatElement",void 0);_.N([_.P3("badges"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jA.prototype,"badgesChanged",null);
_.N([_.P3("useRoundedBadge"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jA.prototype,"standaloneRoundedBadgeChanged",null);_.N([_.P3("topStandaloneBadge","bottomStandaloneBadge"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jA.prototype,"standaloneBadgeChanged",null);_.N([_.P3("hiddenBadgeGroups"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jA.prototype,"hiddenBadgeGroupsChanged",null);
_.N([_.Ul({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],jA);
var gQr=_.Ol()(jA,"ytd-badge-supported-renderer",function(){if(IA4===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);IA4=t}t=IA4;return t},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.hX("kevlar_poly_si_batch_j053")?1:2});var rl=function(){var t=_.z.apply(this,arguments)||this;t.iconType="STAR";t.plaMedium=_.r("enable_pla_resizing_for_desktop_medium");t.plaLarge=_.r("enable_pla_resizing_for_desktop_large");t.plaExtraLarge=_.r("enable_pla_resizing_for_desktop_extra_large");t.standardizeIconSize=_.r("kevlar_system_icons");t.mediaHoverOverlayInitialVisibility=_.r("enable_top_landscape_image_button_command_web");t.noBottomMargin=!1;t.thumbnailObjectFit="CONTAIN";t.thumbnailFitHeight=!0;t.actionMap={"yt-mute-ad-action":"handleMuteAd"};
return t};
_.u(rl,_.z);_.Y=rl.prototype;_.Y.created=function(){this.activeView=new NT(this.hostElement)};
_.Y.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"}}}};
_.Y.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",rl.JSC$15051_DEFAULT_CLICK_LOCATION_BEHAVIOR,rl.JSC$15051_CLICK_LOCATION_ID_MAP))};
_.Y.onTap=function(t){this.onTapOrClick(t)};
_.Y.onTapOrClick=function(t){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,t,!1)};
_.Y.updateMediaBackgroundImage=function(){var t=this.get("data.image.thumbnail.thumbnails");t&&(t=_.d4(t,0))&&_.eU(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+t+")"})};
_.Y.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var t=0;t<this.data.impressionEndpoints.length;t++){var E=this.data.impressionEndpoints[t];E.clickTrackingParams&&delete E.clickTrackingParams;_.X3().resolve(_.ei).resolveCommand(E,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var p;((p=this.data)==null?0:p.activeView)&&DH(this.activeView,this.data.activeView)}};
_.Y.handleMuteAd=function(){};
_.Y.attached=function(){var t=this;_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&s9(t.activeView)})};
_.Y.detached=function(){_.r("stop_av_measurement_on_detach")&&s9(this.activeView)};
_.aE.Object.defineProperties(rl.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null||!t.titleText)return"";var E;return _.zF("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((E=this.data)==null?void 0:E.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?0:t.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?0:t.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?0:t.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?0:t.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?0:t.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 t;return!((t=this.data)==null||!t.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"}}});
rl.prototype.onTap=rl.prototype.onTap;rl.prototype.dataChanged=rl.prototype.dataChanged;
rl.JSC$15051_CLICK_LOCATION_ID_MAP=_.r("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"]]);
rl.JSC$15051_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.r("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"}];_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],rl.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],rl.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(_.Rl),_.P("design:type",Object)],rl.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],rl.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.ep.YtSparklesClickLocationBehavior),_.P("design:type",Object)],rl.prototype,"ytSparklesClickLocationBehavior",void 0);_.N([_.g([_.oO.YtActionHandlerBehavior]),_.P("design:type",Object)],rl.prototype,"actionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],rl.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",Object)],rl.prototype,"clickCommand",void 0);_.N([_.e({reflectToAttribute:!0,selector:_.cA}),_.P("design:type",Boolean)],rl.prototype,"miniMode",void 0);_.N([_.e(),_.P("design:type",String)],rl.prototype,"iconType",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],rl.prototype,"plaMedium",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],rl.prototype,"plaLarge",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],rl.prototype,"plaExtraLarge",void 0);_.N([_.Z("data.titleText"),_.P("design:type",String),_.P("design:paramtypes",[])],rl.prototype,"titleAriaLabel",null);_.N([_.Z("data.rating"),_.P("design:type",Object),_.P("design:paramtypes",[])],rl.prototype,"getRating",null);_.N([_.Z("data.price"),_.P("design:type",Object),_.P("design:paramtypes",[])],rl.prototype,"getPrice",null);
_.N([_.Z("data.thirdLine"),_.P("design:type",Object),_.P("design:paramtypes",[])],rl.prototype,"getThirdLine",null);_.N([_.Z("data.fourthLine"),_.P("design:type",Object),_.P("design:paramtypes",[])],rl.prototype,"getFourthLine",null);_.N([_.Z("data.fifthLine"),_.P("design:type",Object),_.P("design:paramtypes",[])],rl.prototype,"getFifthLine",null);_.N([_.Z("getRating"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],rl.prototype,"computeRatingHidden",null);
_.N([_.Z("getPrice"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],rl.prototype,"computePriceHidden",null);_.N([_.Z("getThirdLine"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],rl.prototype,"computeThirdLineHidden",null);_.N([_.Z("getFourthLine"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],rl.prototype,"computeFourthLineHidden",null);_.N([_.Z("getFifthLine"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],rl.prototype,"computeFifthLineHidden",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("data.energyIcon"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],rl.prototype,"hasEnergyIcon",null);_.N([_.Z("computePriceHidden","computeRatingHidden"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],rl.prototype,"computeSecondaryTextHidden",null);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],rl.prototype,"standardizeIconSize",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],rl.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],rl.prototype,"noBottomMargin",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("data.layout"),_.P("design:type",String),_.P("design:paramtypes",[])],rl.prototype,"layout",null);_.N([_.Z("data.layout"),_.P("design:type",Object),_.P("design:paramtypes",[])],rl.prototype,"mediaThumbnailWidth",null);
_.N([_.Z("layout"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],rl.prototype,"useRoundedBadge",null);_.N([_.e(),_.P("design:type",String)],rl.prototype,"thumbnailObjectFit",void 0);_.N([_.e(),_.P("design:type",Object)],rl.prototype,"thumbnailFitHeight",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rl.prototype,"dataChanged",null);
_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],rl.prototype,"onTap",null);_.N([_.Ul({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],rl);
_.G(rl,"ytd-display-ad-renderer",function(){if(JmG!==void 0)return JmG;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return JmG=t},{mode:1});var Z9r;var O90;var Xhr;var AmO=new Map;var h0p=!1;var kc=function(){var t=_.z.apply(this,arguments)||this;t.DEFAULT_TOOLTIP_OFFSET="10";t.TOOLTIP_OFFSET_NO_BANNER="-8";t.badges=null;t.noEndpoints=!1;t.wrapText=!1;t.forceVerified=!1;t.tooltipPosition="top";t.compactStyle=!1;t.height=0;t.lineHeight=0;return t};
_.u(kc,_.z);_.Y=kc.prototype;_.Y.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.Y.attached=function(){var t=this;this.observer=new MutationObserver(function(E,p){t.handleResized();p.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.Y.detached=function(){this.observer&&this.observer.disconnect()};
_.Y.logTooltipEvent=function(){_.r("kevlar_wiz_tooltip_event_killswitch")||h0p||(_.Ysj("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),h0p=!0)};
_.Y.handleWindowResized=function(){this.handleResized()};
_.Y.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")))};
_.Y.onHeightChanged=function(){if(this.verified){var t=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.qO("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=t:this.textContainerEl.style.marginRight=t}};
_.Y.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.qO("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.Y.handleResized=function(){var t=this;this.verified&&_.ir.addLowPriorityJob(function(){t.fitBackgroundToText();var E=getComputedStyle(t.hostElement).lineHeight;E&&(E=E.match(/\d+/))&&E.length&&(t.lineHeight=Number(E[0]));t.height=t.lineHeight&&!t.wrapText?t.lineHeight:t.textEl.offsetHeight})};
_.Y.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var t=document.createRange(),E=_.ZN(this.textEl).children;E.length>0?t.selectNodeContents(E[0]):t.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(t.getBoundingClientRect().width)+"px"}};
_.Y.computeChannelBadgeStyle=function(t){var E;if((t==null?0:(E=t.runs)==null?0:E.length)&&t.runs[0].textColor)return"--ytd-badge-icon-color:"+_.SL(t.runs[0].textColor)+";"};
_.aE.Object.defineProperties(kc.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"?_.wN(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var t=this.get("badges.0.metadataBadgeRenderer.tooltip");if(t)return t}return _.R4(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
kc.prototype.onLineHeightChanged=kc.prototype.onLineHeightChanged;kc.prototype.onHeightChanged=kc.prototype.onHeightChanged;kc.prototype.onChannelNameChanged=kc.prototype.onChannelNameChanged;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],kc.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],kc.prototype,"badges",void 0);_.N([_.e(),_.P("design:type",Object)],kc.prototype,"channelName",void 0);
_.N([_.e(),_.P("design:type",Object)],kc.prototype,"noEndpoints",void 0);_.N([_.e(),_.P("design:type",Object)],kc.prototype,"wrapText",void 0);_.N([_.e(),_.P("design:type",Object)],kc.prototype,"forceVerified",void 0);_.N([_.e(),_.P("design:type",Object)],kc.prototype,"tooltipPosition",void 0);_.N([_.e(),_.P("design:type",String)],kc.prototype,"tooltip",void 0);_.N([_.e(),_.P("design:type",Boolean)],kc.prototype,"hasChannelArt",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],kc.prototype,"compactStyle",void 0);_.N([_.Nl("#text-container"),_.P("design:type",HTMLElement)],kc.prototype,"textContainerEl",void 0);_.N([_.Nl("#text"),_.P("design:type",Object)],kc.prototype,"textEl",void 0);_.N([_.Nl("#verified-tooltip"),_.P("design:type",HTMLElement)],kc.prototype,"verifiedTooltip",void 0);_.N([_.e(),_.P("design:type",Object)],kc.prototype,"height",void 0);
_.N([_.e(),_.P("design:type",Object)],kc.prototype,"lineHeight",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("badges","forceVerified"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],kc.prototype,"verified",null);_.N([_.Z("badges","verified"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],kc.prototype,"hideBadges",null);_.N([_.Z("channelName"),_.P("design:type",Object),_.P("design:paramtypes",[])],kc.prototype,"formattedName",null);
_.N([_.Z("badges","verified","formattedName"),_.P("design:type",String),_.P("design:paramtypes",[])],kc.prototype,"tooltipText",null);_.N([_.Z("hasChannelArt"),_.P("design:type",String),_.P("design:paramtypes",[])],kc.prototype,"tooltipOffset",null);_.N([_.GI("channelName"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kc.prototype,"onChannelNameChanged",null);
_.N([_.GI("height"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kc.prototype,"onHeightChanged",null);_.N([_.GI("lineHeight","height"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kc.prototype,"onLineHeightChanged",null);_.N([_.Ul({is:"ytd-channel-name",disableElementRegistration:!0})],kc);
_.G(kc,"ytd-channel-name",function(){if(Xhr!==void 0)return Xhr;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Xhr=t},{mode:_.hX("kevlar_poly_si_batch_j036")?1:2});var dl=function(){var t=_.z.apply(this,arguments)||this;t.standardizeIconSize=_.r("kevlar_system_icons");return t};
_.u(dl,_.z);dl.prototype.basicPaletteChanged=function(){var t;(t=this.data.color)!=null&&t.basicColorPaletteData&&_.$2(this.hostElement,this.data.color.basicColorPaletteData)};
dl.prototype.useFilledIcons=function(t){return _.r("kevlar_system_icons")&&(t==="CHECK_CIRCLE_THICK"||t==="OFFICIAL_ARTIST_BADGE")};
_.aE.Object.defineProperties(dl.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return this.data.authorCreator||((t=this.data)==null?void 0:(E=t.color)==null?void 0:(p=E.basicColorPaletteData)==null?void 0:p.backgroundColor)}}});
dl.prototype.basicPaletteChanged=dl.prototype.basicPaletteChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],dl.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],dl.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],dl.prototype,"standardizeIconSize",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("data.authorUnifiedVerified"),_.P("design:type",Object),_.P("design:paramtypes",[])],dl.prototype,"verified",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],dl.prototype,"creator",null);_.N([_.GI("data.color.basicColorPaletteData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dl.prototype,"basicPaletteChanged",null);_.N([_.Ul({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],dl);
_.G(dl,"ytd-author-comment-badge-renderer",function(){if(O90!==void 0)return O90;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return O90=t},{mode:1});var aAr;var uL=function(){return _.z.apply(this,arguments)||this};
_.u(uL,_.z);uL.prototype.computeThumbnailWidth=function(t){if(t==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],uL.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],uL.prototype,"data",void 0);_.N([_.e({computed:"computeIcon_(data.icon)"}),_.P("design:type",String)],uL.prototype,"icon",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],uL.prototype,"surface",void 0);
_.N([_.e({reflectToAttribute:!0,value:_.r("enable_shrink_image_size_on_web_posts_singleton")}),_.P("design:type",Boolean)],uL.prototype,"searchSxsUx",void 0);_.N([_.e({reflectToAttribute:!0,value:_.r("enable_community_page_on_desktop")}),_.P("design:type",Boolean)],uL.prototype,"useSmallerPostImageAttachments",void 0);_.N([_.Ul({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],uL);
_.G(uL,"ytd-backstage-image-renderer",function(){if(aAr!==void 0)return aAr;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return aAr=t},{mode:1});var e0s;var Js=function(){var t=_.z.apply(this,arguments)||this;t.isLoading=!1;t.selectedItemIndex=-1;return t};
_.u(Js,_.z);_.Y=Js.prototype;_.Y.computeIsChannelOwner=function(t){if(!t)return!0;t=t[0];return!(t&&(t.signinEndpoint||t.selectServiceEndpoint))};
_.Y.computeIsImagePoll=function(t){return(t==null?void 0:t.type)==="POLL_TYPE_IMAGE"};
_.Y.computeIsTotalVotesDisabled=function(t){return!(t==null?0:t.totalVotes)};
_.Y.thumbnailSrc=function(t){var E,p,U,x;return(t==null?0:(E=t.thumbnails)==null?0:(p=E[0])==null?0:p.url)?_.S8((U=t.thumbnails)==null?void 0:(x=U[0])==null?void 0:x.url):void 0};
_.Y.progressWidth=function(t){return"width:"+(t?t*100:0)+"%;"};
_.Y.textAreaWidth=function(t){return this.isImagePoll?null:"width:"+(t?t*100:0)+"%;"};
_.Y.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.Y.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var t=this.data.choices,E=0;E<t.length;E++)if(t[E].selected){this.selectedItemIndex=E;break}};
_.Y.onPopupClosed=function(t,E){t=Number(this.pollVotes.selected);E.confirmed&&(this.selectChoice(t,!1),_.du(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.Y.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.Y.onYtCommentPollRevert=function(t,E){E&&(this.selectChoice(E.selectedChoiceIndex,!0),this.set("data.totalVotes",E.totalVotes))};
_.Y.onYtServiceRequestSent=function(t,E){if(E.actions)for(t=0;t<E.actions.length;t++){var p=E.actions[t];_.k(p,Sl)&&this.set("data.totalVotes",_.k(p,Sl).totalVotes)}};
_.Y.onYtServiceRequestCompleted=function(t){var E=this.get("detail.data.actionResults.0.feedback",t);t=this.get("detail.data.actionResults.0.status",t);if(E==="FEEDBACK_DESELECT"||E==="FEEDBACK_SELECT")this.isLoading=!1,t==="STATUS_FAILED"?_.kT(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.Y.getEndpoint=function(t,E){return E===t?this.data.choices[E].deselectServiceEndpoint||null:this.data.choices[t].selectServiceEndpoint||null};
_.Y.selectChoice=function(t,E){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var p=0;p<this.data.choices.length;p++){var U;if(t===this.selectedItemIndex){var x=!1;var A=U=null}else U=(x=p===t)?this.data.choices[p].voteRatioIfSelected:this.data.choices[p].voteRatioIfNotSelected,A=x?this.data.choices[p].votePercentageIfSelected:this.data.choices[p].votePercentageIfNotSelected;this.set("data.choices."+p+".voteRatio",U);
this.set("data.choices."+p+".votePercentage",A);this.set("data.choices."+p+".selected",x)}E||(this.isLoading=!0,(E=this.getEndpoint(t,this.selectedItemIndex))&&_.X3().resolve(_.ei).resolveCommand(E,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===t?-1:t};
_.aE.Object.defineProperties(Js.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
Js.prototype.onYtServiceRequestCompleted=Js.prototype.onYtServiceRequestCompleted;Js.prototype.onYtServiceRequestSent=Js.prototype.onYtServiceRequestSent;Js.prototype.onYtCommentPollRevert=Js.prototype.onYtCommentPollRevert;Js.prototype.onPopupClosed=Js.prototype.onPopupClosed;Js.prototype.dataChanged=Js.prototype.dataChanged;_.N([_.g(_.jl),_.P("design:type",Object)],Js.prototype,"paperItemBehavior",void 0);
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Js.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.aU),_.P("design:type",Object)],Js.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Js.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Js.prototype,"isLoading",void 0);_.N([_.e({computed:"computeIsChannelOwner(data.choices)"}),_.P("design:type",Boolean)],Js.prototype,"isChannelOwner",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.P("design:type",Boolean)],Js.prototype,"isImagePoll",void 0);_.N([_.e({computed:"computeIsTotalVotesDisabled(data)"}),_.P("design:type",Boolean)],Js.prototype,"isTotalVotesDisabled",void 0);_.N([_.e(),_.P("design:type",Object)],Js.prototype,"previousPollInfo",void 0);_.N([_.e(),_.P("design:type",Object)],Js.prototype,"selectedItemIndex",void 0);_.N([_.Nl("#poll-votes"),_.P("design:type",Object)],Js.prototype,"pollVotes",void 0);
_.N([_.Z("isChannelOwner"),_.P("design:type",Object),_.P("design:paramtypes",[])],Js.prototype,"endpointStyle",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Js.prototype,"dataChanged",null);_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],Js.prototype,"onPopupClosed",null);
_.N([_.lc("yt-comment-poll-revert"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],Js.prototype,"onYtCommentPollRevert",null);_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.m8]),_.P("design:returntype")],Js.prototype,"onYtServiceRequestSent",null);
_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Js.prototype,"onYtServiceRequestCompleted",null);_.N([_.Ul({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],Js);
_.G(Js,"ytd-backstage-poll-renderer",function(){if(e0s!==void 0)return e0s;var t=document.createElement("template");_.J(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option" aria-selected$="[[item.selected]]">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return e0s=t},{mode:2});var Fy4;var z0f={autoplay:!1,loop:!1},lAs={simpleText:""},I2=function(){var t=_.z.apply(this,arguments)||this;t.isLoading=!1;t.usesPanelLockup=!1;t.selectedItemIndex=-1;t.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},z0f,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});t.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},z0f,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});t.correctnessAnimationProps=[];t.correctnessAnimationRefs=[];return t};
_.u(I2,_.z);_.Y=I2.prototype;_.Y.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.Y.computeIsChannelOwner=function(t){if(!t)return!0;t=t[0];return!(t&&(t.signinEndpoint||t.selectServiceEndpoint))};
_.Y.computeIsTotalVotesDisabled=function(t){return!(t==null?0:t.totalVotes)};
_.Y.computeIsImageQuiz=function(t){return(t==null?void 0:t.type)==="POLL_TYPE_IMAGE"};
_.Y.onExplanationChanged=function(){this.expander.reset()};
_.Y.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var t=this.data.choices;if(t){this.maybeInitializeQuizLotties(t);for(var E=0;E<t.length;E++)if(t[E].isSelected||this.isChannelOwner&&t[E].isCorrect){this.selectedItemIndex=E;return}this.selectedItemIndex=-1}}};
_.Y.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var t=this.selectedItemIndex,E=Number(this.quizVotes.selected);this.selectChoice(E);this.sendVoteAction(E,t);this.quizVotes.selected=-1;var p;t=!((p=this.data)==null?0:p.enableAnimation);this.maybePlayAnswerAnimations(t)}};
_.Y.onYtCommentPollRevert=function(t,E){E&&(this.selectChoice(E.selectedChoiceIndex),this.set("data.totalVotes",E.totalVotes))};
_.Y.onYtServiceRequestSent=function(t,E){if(E.actions)for(t=_.M(E.actions),E=t.next();!E.done;E=t.next())(E=_.k(E.value,Sl))&&this.set("data.totalVotes",E.totalVotes)};
_.Y.onYtServiceRequestCompleted=function(t){var E=this.get("detail.data.actionResults.0.feedback",t);t=this.get("detail.data.actionResults.0.status",t);if(E==="FEEDBACK_DESELECT"||E==="FEEDBACK_SELECT")this.isLoading=!1,t==="STATUS_FAILED"?_.kT(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.Y.getAnimationPropsForChoiceIndex=function(t,E){return E[t]};
_.Y.maybePlayAnswerAnimations=function(t){t=t===void 0?!1:t;var E;if((E=this.data)!=null&&E.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){E=_.M(this.correctnessAnimationRefs);for(var p=E.next();!p.done;p=E.next()){var U=void 0,x=void 0;(U=p.value)==null||(x=U.lottieEl)==null||x.stop()}if(!(this.selectedItemIndex<0)){E=0;t&&(E=this.isCorrect?37:25);var A,m;(A=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(m=A.lottieEl)==null||m.goToAndPlay(t?E:0,!0);if(!(this.isCorrect||
(A=this.data.choices.findIndex(function(R){return R.isCorrect}),A<0))){var b,f;
(f=(b=this.correctnessAnimationRefs[A])==null?void 0:b.lottieEl)==null||f.goToAndPlay(37,!0);var B;b=(B=this.fadeContainers)==null?void 0:B.item(A);!t&&b&&this.fadeIn(b)}}}};
_.Y.thumbnailSrc=function(t){var E,p,U,x;return(t==null?0:(E=t.thumbnails)==null?0:(p=E[0])==null?0:p.url)?_.S8((U=t.thumbnails)==null?void 0:(x=U[0])==null?void 0:x.url):void 0};
_.Y.a11yVotedText=function(t,E){var p,U,x=((p=this.data)==null?void 0:(U=p.correctVotedText)==null?void 0:U.simpleText)||"",A,m;p=((A=this.data)==null?void 0:(m=A.votedText)==null?void 0:m.simpleText)||"";if(!E)return"";var b,f;if((b=this.data)==null?0:(f=b.choices)==null?0:f[t].isCorrect)return x;var B,R;return((B=this.data)==null?0:(R=B.choices)==null?0:R[t].isSelected)?p:""};
_.Y.getEndpoint=function(t,E){return E===t?this.data.choices[t].deselectServiceEndpoint||null:this.data.choices[t].selectServiceEndpoint||null};
_.Y.sendVoteAction=function(t,E){if(t=this.getEndpoint(t,E))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(t)};
_.Y.selectChoice=function(t){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var E=0;E<this.data.choices.length;E++)this.set("data.choices."+E+".isSelected",t===this.selectedItemIndex?!1:E===t);this.selectedItemIndex=this.selectedItemIndex===t?-1:t};
_.Y.maybeInitializeQuizLotties=function(t){var E=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=t.map(function(p){return{animationConfig:p.isCorrect?E.baseCorrectLottiePlayerAnimationConfig:E.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){E.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(p){return p.animationRef||{}})};
_.Y.fadeIn=function(t){t.classList.add("fade-in");_.g4(_.ir,function(){t.classList.remove("fade-in")},900)};
_.aE.Object.defineProperties(I2.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.R4(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 t,E;return((t=this.data)==null?void 0:(E=t.choices)==null?void 0:E.some(function(p){return p.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null||!t.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?lAs:this.data.choices[this.selectedItemIndex].explanation||lAs}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null||!t.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
I2.prototype.onYtServiceRequestCompleted=I2.prototype.onYtServiceRequestCompleted;I2.prototype.onYtServiceRequestSent=I2.prototype.onYtServiceRequestSent;I2.prototype.onYtCommentPollRevert=I2.prototype.onYtCommentPollRevert;I2.prototype.dataChanged=I2.prototype.dataChanged;I2.prototype.onExplanationChanged=I2.prototype.onExplanationChanged;_.N([_.g(_.jl),_.P("design:type",Object)],I2.prototype,"paperItemBehavior",void 0);
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],I2.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],I2.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.O0.YtTaskEmitterBehavior),_.P("design:type",Object)],I2.prototype,"ytTaskEmitterBehavior",void 0);_.N([_.g(_.aU),_.P("design:type",Object)],I2.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],I2.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",Object)],I2.prototype,"isLoading",void 0);_.N([_.e(),_.P("design:type",Object)],I2.prototype,"usesPanelLockup",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.P("design:type",Boolean)],I2.prototype,"isChannelOwner",void 0);_.N([_.e({computed:"computeIsTotalVotesDisabled(data)"}),_.P("design:type",Boolean)],I2.prototype,"isTotalVotesDisabled",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.P("design:type",Boolean)],I2.prototype,"isImageQuiz",void 0);_.N([_.e(),_.P("design:type",Object)],I2.prototype,"previousQuizInfo",void 0);_.N([_.e(),_.P("design:type",Object)],I2.prototype,"selectedItemIndex",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("data","usesPanelLockup"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],I2.prototype,"shouldUseModernUi",null);
_.N([_.DN(".fade-container"),_.P("design:type",Object)],I2.prototype,"fadeContainers",void 0);_.N([_.e(),_.P("design:type",Array)],I2.prototype,"correctnessAnimationProps",void 0);_.N([_.Z("explanation","showCorrectAnswer"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],I2.prototype,"showExplanation",null);_.N([_.Z("isChannelOwner","isAttempted"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],I2.prototype,"showCorrectAnswer",null);
_.N([_.Z("isChannelOwner","isAttempted","data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],I2.prototype,"isQuizAnsweringDisabled",null);_.N([_.Z("isQuizAnsweringDisabled"),_.P("design:type",Object),_.P("design:paramtypes",[])],I2.prototype,"endpointStyle",null);_.N([_.Z("data","selectedItemIndex"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],I2.prototype,"isAttempted",null);
_.N([_.Z("data","selectedItemIndex"),_.P("design:type",Object),_.P("design:paramtypes",[])],I2.prototype,"explanation",null);_.N([_.Z("data","selectedItemIndex"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],I2.prototype,"isCorrect",null);_.N([_.Nl("ytd-expander"),_.P("design:type",Object)],I2.prototype,"expander",void 0);_.N([_.Nl("#quiz-votes"),_.P("design:type",Object)],I2.prototype,"quizVotes",void 0);
_.N([_.GI("explanation"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],I2.prototype,"onExplanationChanged",null);_.N([_.GI("data","isChannelOwner"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],I2.prototype,"dataChanged",null);_.N([_.lc("yt-comment-quiz-revert"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],I2.prototype,"onYtCommentPollRevert",null);
_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.m8]),_.P("design:returntype")],I2.prototype,"onYtServiceRequestSent",null);_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],I2.prototype,"onYtServiceRequestCompleted",null);_.N([_.Ul({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],I2);
_.G(I2,"ytd-backstage-quiz-renderer",function(){if(Fy4!==void 0)return Fy4;var t=document.createElement("template");_.J(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class="correctness-lottie style-scope ytd-backstage-quiz-renderer" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]">\n                </ytd-lottie-player>\n              </div>\n            </div>\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n<div class="explanation-box style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" hidden="[[!showExplanation]]">\n  <yt-formatted-string class="explanation-header style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" text="[[data.explanationHeaderText]]">\n  </yt-formatted-string>\n  <ytd-expander id="expander" max-number-of-lines="3" class="style-scope ytd-backstage-quiz-renderer">\n    <yt-formatted-string class="choice-explanation style-scope ytd-backstage-quiz-renderer" slot="content" force-default-style="" text="[[explanation]]">\n    </yt-formatted-string>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="more-button">[[getSimpleString(data.explanationExpandText)]]</span>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="less-button">[[getSimpleString(data.explanationCollapseText)]]</span>\n  </ytd-expander>\n</div>\n');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Fy4=t},{mode:1});var GjT;var gl=function(){return _.z.apply(this,arguments)||this};
_.u(gl,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],gl.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],gl.prototype,"data",void 0);_.N([_.Ul({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],gl);
_.G(gl,"ytd-post-uploaded-video-renderer",function(){if(GjT!==void 0)return GjT;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return GjT=t},{mode:1});var nQr;var Zf=function(){return _.z.apply(this,arguments)||this};
_.u(Zf,_.z);Zf.prototype.useFilledIcons=function(t){return t==="SPONSORSHIP_STAR"};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Zf.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Zf.prototype,"data",void 0);_.N([_.Ul({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],Zf);
var NRT=_.Ol()(Zf,"ytd-sponsors-only-badge-renderer",function(){if(nQr===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);nQr=t}t=nQr;return t},{allowedProps:["data"],
mode:1});var DNT;var O$=function(){return _.z.apply(this,arguments)||this};
_.u(O$,_.z);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],O$.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],O$.prototype,"data",void 0);_.N([_.Ul({is:"ytd-child-video-renderer",disableElementRegistration:!0})],O$);
_.G(O$,"ytd-child-video-renderer",function(){if(DNT!==void 0)return DNT;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return DNT=t},{mode:1});var s3s;var Ly3;var XG=function(){var t=_.z.apply(this,arguments)||this;t.size=0;t.fallbackImageSize={height:void 0,width:9999};t.webModernCollections=!1;return t};
_.u(XG,_.z);_.Y=XG.prototype;_.Y.computeBlurredImageSize=function(t){return t?{height:t*2,width:t*2}:this.fallbackImageSize};
_.Y.computeImageSize=function(t){return t?{height:t,width:t}:this.fallbackImageSize};
_.Y.computeObjectFit=function(t){return t?"FILL":"CONTAIN"};
_.Y.computePreserve=function(t){return t?!0:!1};
_.Y.setBackground=function(){var t,E;if((t=this.data)==null?0:(E=t.thumbnail)==null?0:E.sampledThumbnailColor)t=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+t.red+","+t.green+","+t.blue+",1)"};
XG.prototype.setBackground=XG.prototype.setBackground;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],XG.prototype,"ytRendererBehavior",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],XG.prototype,"watchFeedThumbnail",void 0);_.N([_.e(),_.P("design:type",Object)],XG.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],XG.prototype,"size",void 0);
_.N([_.e({computed:"computeBlurredImageSize(size)"}),_.P("design:type",Object)],XG.prototype,"blurredImageSize",void 0);_.N([_.e({computed:"computeImageSize(size)"}),_.P("design:type",Object)],XG.prototype,"imageSize",void 0);_.N([_.e({computed:"computePreserve(size)"}),_.P("design:type",String)],XG.prototype,"preserve",void 0);_.N([_.e({computed:"computeObjectFit(size)"}),_.P("design:type",String)],XG.prototype,"objectFit",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],XG.prototype,"webModernCollections",void 0);_.N([_.GI("data.thumbnail.sampledThumbnailColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],XG.prototype,"setBackground",null);_.N([_.Ul({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],XG);
_.G(XG,"ytd-playlist-custom-thumbnail-renderer",function(){if(Ly3!==void 0)return Ly3;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Ly3=t},{mode:1});var Pys;var hs=function(){return _.z.apply(this,arguments)||this};
_.u(hs,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],hs.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],hs.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Number)],hs.prototype,"width",void 0);_.N([_.Ul({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],hs);
_.G(hs,"ytd-playlist-video-thumbnail-renderer",function(){if(Pys!==void 0)return Pys;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Pys=t},{mode:1});var TRs;var a2=function(){return _.z.apply(this,arguments)||this};
_.u(a2,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],a2.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],a2.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Number)],a2.prototype,"width",void 0);_.N([_.Ul({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],a2);
_.G(a2,"ytd-show-custom-thumbnail-renderer",function(){if(TRs!==void 0)return TRs;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return TRs=t},{mode:1});var oQm;var eA=function(){return _.z.apply(this,arguments)||this};
_.u(eA,_.z);eA.prototype.useFilledIcons=function(t){return t==="MUSIC"||t==="COURSE"};
eA.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=t2(this.overlayColor,"0.8");else if(this.overlayColor){var t=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+t.red+","+t.green+","+t.blue+",0.8)"}};
_.aE.Object.defineProperties(eA.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)}}});
eA.prototype.overlayColorChanged=eA.prototype.overlayColorChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],eA.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],eA.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],eA.prototype,"overlayColor",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("data.icon","data.text"),_.P("design:type",Object),_.P("design:paramtypes",[])],eA.prototype,"overlayStyle",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("data.icon","data.text"),_.P("design:type",Object),_.P("design:paramtypes",[])],eA.prototype,"overlayTextStyle",null);_.N([_.GI("overlayColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],eA.prototype,"overlayColorChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],eA);
_.G(eA,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(oQm!==void 0)return oQm;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return oQm=t},{mode:1});var Wy0;var FG=function(){var t=_.z.apply(this,arguments)||this;t.active=!1;return t};
_.u(FG,_.z);FG.prototype.computeIsSpinnerHidden=function(t){return(t==null?void 0:t.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
FG.prototype.computeOverlayIcon=function(t){return(t==null?void 0:t.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(t==null?void 0:t.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],FG.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],FG.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],FG.prototype,"active",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],FG);
_.G(FG,"ytd-thumbnail-overlay-downloading-renderer",function(){if(Wy0!==void 0)return Wy0;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Wy0=t},{mode:1});var $N0;var zk=function(){return _.z.apply(this,arguments)||this};
_.u(zk,_.z);_.aE.Object.defineProperties(zk.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],zk.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],zk.prototype,"data",void 0);_.N([_.Z("data.text"),_.P("design:type",Object),_.P("design:paramtypes",[])],zk.prototype,"text",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],zk);
_.G(zk,"ytd-thumbnail-overlay-hover-text-renderer",function(){if($N0!==void 0)return $N0;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return $N0=t},{mode:1});var KyZ,vQs=function(){if(KyZ!==void 0)return KyZ;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return KyZ=t};var lL=function(){return _.z.apply(this,arguments)||this};
_.u(lL,_.z);_.aE.Object.defineProperties(lL,{template:{configurable:!0,enumerable:!0,get:function(){return vQs()}}});
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],lL.prototype,"animateEqualizer",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],lL);_.Ol()(lL,"ytd-thumbnail-overlay-equalizer",function(){return vQs()},{allowedProps:["animateEqualizer"],
mode:1});var ymf;var Gk=function(){var t=_.z.apply(this,arguments)||this;t.nowPlayingBadge=_.r("web_now_playing_badge");t.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return t};
_.u(Gk,_.z);Gk.prototype.activeChanged=function(){var t=this;_.r("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.XE(this,function(){_.kT(t.hostElement,"yt-playlist-lockup-now-playing-active",t)})};
Gk.prototype.onMiniplayerPlayStateChanged=function(t){var E,p=(E=_.k(_.S3().currentEndpoint,_.HD))==null?void 0:E.videoId;this.isVideoPlaying=t&&(_.r("web_limit_now_playing_animation_killswitch")||this.videoId===p)};
Gk.prototype.activeChanged=Gk.prototype.activeChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Gk.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Gk.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Gk.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Boolean)],Gk.prototype,"isVideoPlaying",void 0);_.N([_.e(),_.P("design:type",String)],Gk.prototype,"videoId",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],Gk.prototype,"equalizerOnly",void 0);_.N([_.e(),_.P("design:type",Boolean)],Gk.prototype,"isActive",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Gk.prototype,"nowPlayingBadge",void 0);_.N([_.GI("isActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Gk.prototype,"activeChanged",null);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],Gk);
_.G(Gk,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(ymf!==void 0)return ymf;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return ymf=t},{mode:1});var Ssp;var nZ=function(){return _.z.apply(this,arguments)||this};
_.u(nZ,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],nZ.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],nZ.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],nZ);
_.G(nZ,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(Ssp!==void 0)return Ssp;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Ssp=t},{mode:_.hX("kevlar_poly_si_batch_j025")?1:2});var cmX;var N4=function(){return _.z.apply(this,arguments)||this};
_.u(N4,_.z);N4.prototype.onDurationChanged=function(){var t,E;_.ZN(this.hostElement).querySelector("#progress").style.width=((E=(t=this.data)==null?void 0:t.percentDurationWatched)!=null?E:0)+"%"};
N4.prototype.onDurationChanged=N4.prototype.onDurationChanged;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],N4.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],N4.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],N4.prototype,"isLive",void 0);_.N([_.GI("data.percentDurationWatched"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],N4.prototype,"onDurationChanged",null);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],N4);
_.G(N4,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(cmX!==void 0)return cmX;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return cmX=t},{mode:1});var tnZ;var Df=function(){var t=_.z.apply(this,arguments)||this;t.bottomPanel=!1;t.richGridOverlay=!1;t.watchFeedOverlay=!1;t.isCompact=!1;return t};
_.u(Df,_.z);Df.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.aE.Object.defineProperties(Df.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.data)==null?void 0:(E=t.icon)==null?void 0:E.iconType)==="PLAY_ALL"&&_.r("kevlar_system_icons")}}});
Df.prototype.widthChanged=Df.prototype.widthChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Df.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Df.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Number)],Df.prototype,"width",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Df.prototype,"bottomPanel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Df.prototype,"richGridOverlay",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Df.prototype,"watchFeedOverlay",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Df.prototype,"isCompact",void 0);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Df.prototype,"isIconFilled",null);_.N([_.GI("width","watchFeedOverlay"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Df.prototype,"widthChanged",null);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],Df);
_.G(Df,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(tnZ!==void 0)return tnZ;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return tnZ=t},{mode:1});var EKs;var pof=["CLIP","SHORTS"],s$=function(){var t=_.z.apply(this,arguments)||this;t.animated=_.r("animated_live_badge_icon");t.hasIcon=!1;t.updateTimerIntervalId=0;t.timeSinceLive=0;return t};
_.u(s$,_.z);_.Y=s$.prototype;_.Y.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.Y.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.Y.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.Y.hasIconOrText=function(){var t,E;return!!(((t=this.data)==null?0:t.icon)||((E=this.data)==null?0:E.text))};
_.Y.initializeLiveBadgeTimer=function(){var t=this,E,p=(E=this.liveBadgeData)==null?void 0:E.startTimestampSec;if(p&&this.canShowLiveBadgeTimer()){var U;E=Number((U=this.liveBadgeData)==null?void 0:U.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(p);this.updateTimerIntervalId=_.D3(function(){t.canShowLiveBadgeTimer()?t.timeSinceLive++:(t.timeSinceLive=0,window.clearInterval(t.updateTimerIntervalId))},E)}else this.timeSinceLive=0};
_.Y.canShowLiveBadgeTimer=function(){var t=Date.now(),E,p;return t<(Number((E=this.liveBadgeData)==null?void 0:E.endTimestampSec)-1)*1E3&&t>Number((p=this.liveBadgeData)==null?void 0:p.startTimestampSec)*1E3};
_.aE.Object.defineProperties(s$.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.MD_(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 t;return(t=this.data)==null?void 0:t.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 pof.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
s$.prototype.initializeLiveBadgeTimer=s$.prototype.initializeLiveBadgeTimer;s$.prototype.dataChanged=s$.prototype.dataChanged;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],s$.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],s$.prototype,"data",void 0);_.N([_.e({computed:"computeIcon_(data.icon)"}),_.P("design:type",String)],s$.prototype,"icon",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],s$.prototype,"animated",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.P("design:type",Boolean)],s$.prototype,"hideTimeStatus",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],s$.prototype,"hasIcon",void 0);_.N([_.e(),_.P("design:type",Object)],s$.prototype,"timeSinceLive",void 0);_.N([_.Z("data","timeSinceLive"),_.P("design:type",Object),_.P("design:paramtypes",[])],s$.prototype,"badgeShapeData",null);
_.N([_.Z("data","overlayType"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],s$.prototype,"hideBadgeShape",null);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],s$.prototype,"dataChanged",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data.style"),_.P("design:type",Object),_.P("design:paramtypes",[])],s$.prototype,"overlayStyle",null);
_.N([_.Z("data.liveBadgeData"),_.P("design:type",Object),_.P("design:paramtypes",[])],s$.prototype,"liveBadgeData",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data.type"),_.P("design:type",Object),_.P("design:paramtypes",[])],s$.prototype,"overlayType",null);_.N([_.Z("overlayType","overlayStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],s$.prototype,"useFilledIcon",null);
_.N([_.P3("liveBadgeData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],s$.prototype,"initializeLiveBadgeTimer",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],s$);
_.G(s$,"ytd-thumbnail-overlay-time-status-renderer",function(){if(EKs!==void 0)return EKs;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return EKs=t},{mode:_.hX("kevlar_poly_si_batch_j035")?1:2});var Urr;var LZ=function(){return _.z.apply(this,arguments)||this};
_.u(LZ,_.z);LZ.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"}}}}};
LZ.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(t){if(this.hasPlaybackProgressBar)return{percentDurationWatched:t.percentDurationWatched}};
LZ.prototype.computeHasPlaybackProgressBar=function(t){return!!t.percentDurationWatched&&t.percentDurationWatched>0};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],LZ.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],LZ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],LZ.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.P("design:type",Boolean)],LZ.prototype,"hasPlaybackProgressBar",void 0);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],LZ);
_.G(LZ,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(Urr!==void 0)return Urr;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Urr=t},{mode:1});var xrs;var A$f=_.l(function(t){var E=t.data;var p=t.children;var U=function(){return!!E().doubleStack},x=function(){return!!E().includeStackHeight};
return _.H("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!E().experimentEnabled}},_.H(_.w,{cond:E,
then:function(){var A={};return _.H(_.Oj,null,_.H(_.w,{cond:x,then:function(){var m={};return _.H("div",{class:_.X5("ytCollectionsStackSpacer",(m.ytCollectionsStackSpacerDoubleStack=U,m))})}}),_.H("div",{class:_.X5((A.ytCollectionsStackRelativeStack=x,A))},_.H(_.w,{cond:U,
then:function(){var m={};return _.H("div",{class:_.X5("ytCollectionsStackCollectionStack2",function(){return E().customClassName2ndStack},(m.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return E().enableResponsiveMode},m)),
style:_.zO({"background-color":function(){return b9L(E())}})})}}),_.H("div",{class:_.X5("ytCollectionsStackCollectionStack1",function(){return E().customClassName1stStack},function(){return mNE(E().thumbnailSize?E().thumbnailSize:"medium")}),
style:_.zO({"background-color":function(){return b9L(E())}})}),p))}}))},"Fa");_.k2(A$f,"yt-collections-stack",{props:{data:_.uu}});var PJ=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};t.webModernCollections=!1;t.isSearch=!1;t.isDoubleStack=!1;t.thumbnailSize="medium";return t};
_.u(PJ,_.z);_.Y=PJ.prototype;
_.Y.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]]"}}}}}};
_.Y.getThumbnailDetails=function(t){if(t!=null&&t.thumbnailRenderer){var E=t.thumbnailRenderer,p;if((p=E.playlistVideoThumbnailRenderer)==null?0:p.thumbnail)return E.playlistVideoThumbnailRenderer.thumbnail;var U;if((U=E.playlistCustomThumbnailRenderer)==null?0:U.thumbnail)return E.playlistCustomThumbnailRenderer.thumbnail;t=t.thumbnailRenderer;var x;if((x=t.showCustomThumbnailRenderer)==null?0:x.thumbnail)return t.showCustomThumbnailRenderer.thumbnail}};
_.Y.computeOverlayColor=function(t){var E,p;if((E=this.getThumbnailDetails(t))==null?0:(p=E.darkColorPalette)==null?0:p.section2Color)return this.getThumbnailDetails(t).darkColorPalette.section2Color;var U;return(U=this.getThumbnailDetails(t))==null?void 0:U.sampledThumbnailColor};
_.Y.computeWebModernCollections=function(t){if(t==null||!t.thumbnailOverlays)return!1;t=_.M(t.thumbnailOverlays);for(var E=t.next();!E.done;E=t.next()){var p=void 0;if((p=E.value)==null?0:p.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.Y.computeNavigationEndpoint=function(t){return NYL(t==null?void 0:t.navigationEndpoint)};
_.aE.Object.defineProperties(PJ.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var t=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:t==null?void 0:t.sampledThumbnailColor,vibrantColorPalette:t==null?void 0:t.vibrantColorPalette,darkColorPalette:t==null?void 0:t.darkColorPalette,experimentEnabled:!0}}}});
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],PJ.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],PJ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(fIs),_.P("design:type",Object)],PJ.prototype,"ytdThumbnailBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],PJ.prototype,"componentBehavior",void 0);
_.N([_.e({value:!1}),_.P("design:type",Boolean)],PJ.prototype,"watchFeedThumbnail",void 0);_.N([_.e(),_.P("design:type",Number)],PJ.prototype,"customThumbnailSize",void 0);_.N([_.e({value:!0}),_.P("design:type",Boolean)],PJ.prototype,"hideAria",void 0);_.N([_.e(),_.P("design:type",Object)],PJ.prototype,"data",void 0);_.N([_.e({computed:"computeOverlayColor(data)"}),_.P("design:type",Object)],PJ.prototype,"overlayColor",void 0);
_.N([_.e({computed:"computeWebModernCollections(data)"}),_.P("design:type",Object)],PJ.prototype,"webModernCollections",void 0);_.N([_.e({computed:"computeNavigationEndpoint(data)"}),_.P("design:type",Object)],PJ.prototype,"computedNavigationEndpoint",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],PJ.prototype,"isSearch",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],PJ.prototype,"isDoubleStack",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],PJ.prototype,"thumbnailSize",void 0);_.N([_.Z("data","isDoubleStack","thumbnailSize"),_.P("design:type",Object),_.P("design:paramtypes",[])],PJ.prototype,"collectionStack",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],PJ);
_.G(PJ,"ytd-playlist-thumbnail",function(){if(xrs!==void 0)return xrs;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return xrs=t},{mode:_.hX("kevlar_poly_si_batch_j025")?1:2});var Yos;_.k2(_.l(function(t){return _.H("yt-text-view-model",{class:_.X5("ytTextViewModelHost")},_.H(_.d8,{text:function(){return t.data().text}}))},"Ga"),"yt-text-view-model",{props:{data:_.uu}});var Tk=function(){var t=_.z.apply(this,arguments)||this;t.noEndpoints=!1;t.amsterdamPostMvp=_.r("web_amsterdam_post_mvp_playlists");t.badges=[];t.transferState="TRANSFER_STATE_UNKNOWN";return t};
_.u(Tk,_.z);_.Y=Tk.prototype;_.Y.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.Y.getMetadata=function(t){if(!t)return[];var E=[],p=t.shortViewCountText||t.viewCountText;p&&E.push(_.R4(p));t.publishedTimeText&&E.push(_.R4(t.publishedTimeText));t.upcomingEventData&&t.upcomingEventData.upcomingEventText&&E.push(_.$1(_.R4(t.upcomingEventData.upcomingEventText),Number(t.upcomingEventData.startTime)));return E};
_.Y.observeDataForBylineSeparator=function(){this.data&&_.XM(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.Y.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.SL(this.metadataColor)};
_.Y.getSimpleString=function(t){return _.R4(t)};
_.Y.isBylineHidden=function(t){return this.noByline||!((t==null?0:t.longBylineText)||(t==null?0:t.shortBylineText))};
_.Y.isMetadataHidden=function(t){var E;return((E=this.getMetadata(t))==null?void 0:E.length)===0};
_.Y.isBylineMetadataSeparatorHidden=function(t){return this.isMetadataHidden(t)||!this.shouldShowVideoInfo};
_.Y.isLongByline=function(t,E){return E&&!(t==null||!t.longBylineText)};
_.aE.Object.defineProperties(Tk.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var t;return this.amsterdamPostMvp&&!((t=this.data)==null||!t.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 t;return!((t=this.data)==null||!t.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
Tk.prototype.metadataColorChanged=Tk.prototype.metadataColorChanged;Tk.prototype.observeDataForBylineSeparator=Tk.prototype.observeDataForBylineSeparator;_.N([_.g(_.Be),_.P("design:type",Object)],Tk.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Tk.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Tk.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Tk.prototype,"noEndpoints",void 0);
_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Tk.prototype,"isSlimShort",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Tk.prototype,"radioMeta",void 0);_.N([_.e({selector:_.pd}),_.P("design:type",Object)],Tk.prototype,"isGridViewEnabled",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Tk.prototype,"richMeta",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Tk.prototype,"amsterdamPostMvp",void 0);
_.N([_.e(),_.P("design:type",Boolean)],Tk.prototype,"noByline",void 0);_.N([_.e({computed:"isLongByline(data, radioMeta)"}),_.P("design:type",Boolean)],Tk.prototype,"longByline",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Tk.prototype,"truncateMetadataLine",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Tk.prototype,"miniMode",void 0);_.N([_.e(),_.P("design:type",Number)],Tk.prototype,"metadataColor",void 0);
_.N([_.e(),_.P("design:type",Array)],Tk.prototype,"badges",void 0);_.N([_.e({selector:_.xz,selectorArgs:["data.videoId"]}),_.P("design:type",String)],Tk.prototype,"transferState",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Tk.prototype,"isDownloading",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Tk.prototype,"typographyBump",void 0);_.N([_.Nl("#metadata-line"),_.P("design:type",HTMLElement)],Tk.prototype,"metadataLine",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Tk.prototype,"observeDataForBylineSeparator",null);_.N([_.GI("metadataColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Tk.prototype,"metadataColorChanged",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Tk.prototype,"shouldShowVideoInfo",null);
_.N([_.Z("badges"),_.P("design:type",String),_.P("design:paramtypes",[])],Tk.prototype,"inlineBadgeClass",null);_.N([_.Z("longByline"),_.P("design:type",String),_.P("design:paramtypes",[])],Tk.prototype,"longBylineClass",null);_.N([_.Z("data","longByline"),_.P("design:type",Object),_.P("design:paramtypes",[])],Tk.prototype,"bylineText",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Tk.prototype,"hasAttributedBylineText",null);
_.N([_.Z("isGridViewEnabled","data"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Tk.prototype,"watchFeedBigThumbs",null);_.N([_.Ul({is:"ytd-video-meta-block",disableElementRegistration:!0})],Tk);
_.G(Tk,"ytd-video-meta-block",function(){if(Yos!==void 0)return Yos;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Yos=t},{mode:_.hX("kevlar_poly_si_batch_j080")?1:2});_.vs("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var o2=function(){var t=_.z.apply(this,arguments)||this;t.displayItemCount=2;t.isBackstagePlaylist=!1;t.isPostCompactPlaylist=!1;t.shouldShowChannelThumbnail=!1;return t};
_.u(o2,_.z);_.Y=o2.prototype;_.Y.computeFirstVideos=function(t,E){return t===void 0||E===void 0?[]:t.slice(0,E)};
_.Y.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var t=this.data.thumbnailRenderer;t.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",t.playlistVideoThumbnailRenderer.thumbnail);t.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",t.playlistCustomThumbnailRenderer.thumbnail)}};
_.Y.computeThumbnailHeight=function(t,E,p,U,x){return U?x==="BIG"?280:x==="MASSIVE"?337:234:p?240:E?72:t?118:138};
_.Y.computeThumbnailWidth=function(t,E,p,U,x){return U?x==="MEDIUM"?450:x==="BIG"?500:x==="MASSIVE"?600:420:p?360:E?128:t?210:246};
_.Y.computeUseBiggerThumbs=function(t){return t&&_.r("enable_desktop_search_bigger_thumbs")};
_.Y.computeShouldShowChannelThumbnail=function(t,E){return t&&!(E==null||!E.channelThumbnail)};
_.aE.Object.defineProperties(o2.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
o2.prototype.dataChanged=o2.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],o2.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.dy),_.P("design:type",Object)],o2.prototype,"ytdLockupBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],o2.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],o2.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],o2.prototype,"displayItemCount",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],o2.prototype,"isBackstagePlaylist",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],o2.prototype,"isPostCompactPlaylist",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],o2.prototype,"isSearch",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.P("design:type",Boolean)],o2.prototype,"useBiggerThumbs",void 0);_.N([_.e({reflectToAttribute:!0,value:function(){return _.la("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],o2.prototype,"biggerThumbsStyle",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],o2.prototype,"isDownloads",void 0);_.N([_.e({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.P("design:type",Object)],o2.prototype,"shouldShowChannelThumbnail",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],o2.prototype,"dataChanged",null);
_.N([_.Z("isSearch"),_.P("design:type",String),_.P("design:paramtypes",[])],o2.prototype,"stackThumbnailSize",null);_.N([_.Ul({is:"ytd-playlist-renderer",disableElementRegistration:!0})],o2);
_.G(o2,"ytd-playlist-renderer",function(){if(s3s===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);s3s=t}t=s3s;return t},{mode:1});var Mn4;var mr0;var WJ=function(){var t=_.z.apply(this,arguments)||this;t.startX=0;return t};
_.u(WJ,_.z);WJ.prototype.onEndpointMouseDown=function(t){this.startX=t.clientX};
WJ.prototype.onEndpointClick=function(t){this.startX!==t.clientX&&(t.preventDefault(),t.stopPropagation())};
WJ.prototype.computeObjectFit=function(t){return t==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||t==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||t==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
WJ.prototype.computeCardStyle=function(t){return t?t.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.aE.Object.defineProperties(WJ.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.data)==null?void 0:(E=t.searchRefinementCardRendererStyle)==null?void 0:E.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}}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],WJ.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],WJ.prototype,"data",void 0);_.N([_.e({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.P("design:type",Number)],WJ.prototype,"objectFit",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.P("design:type",String)],WJ.prototype,"cardStyle",void 0);
_.N([_.e({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],WJ.prototype,"roundContainer",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],WJ.prototype,"isAlbumCard",null);_.N([_.Z("data","isAlbumCard"),_.P("design:type",Object),_.P("design:paramtypes",[])],WJ.prototype,"collectionStack",null);_.N([_.Ul({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],WJ);
_.G(WJ,"ytd-search-refinement-card-renderer",function(){if(mr0!==void 0)return mr0;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return mr0=t},{mode:1});var bAs;var $c=function(){var t=_.z.apply(this,arguments)||this;t.isRichGrid=!1;return t};
_.u($c,_.z);_.N([_.e(),_.P("design:type",Object)],$c.prototype,"data",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],$c.prototype,"componentBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],$c.prototype,"ytdReduxBehavior",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],$c.prototype,"isRichGrid",void 0);_.N([_.e({reflectToAttribute:!0,selector:_.cA}),_.P("design:type",Boolean)],$c.prototype,"miniMode",void 0);
_.N([_.Ul({is:"ytd-game-details-renderer",disableElementRegistration:!0})],$c);
_.G($c,"ytd-game-details-renderer",function(){if(bAs!==void 0)return bAs;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return bAs=t},{mode:1});var iAr;var qom;var KZ=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return t};
_.u(KZ,_.z);_.Y=KZ.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.Y.currentStateData=function(t){var E=t||this.data;return E&&E.states&&E.currentStateId!=null?E.states.find(function(p){return p.stateId===E.currentStateId})||null:null};
_.Y.currentStateRendererData=function(t){return(t=this.currentStateData(t))&&t.state&&t.state.buttonRenderer?t.state.buttonRenderer:null};
_.Y.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())};
_.Y.computeButtonIcon=function(t){t=this.currentStateRendererData(t);var E;return(t==null?0:(E=t.icon)==null?0:E.iconType)?t.icon.iconType.toLowerCase():null};
_.Y.computeAccessibility=function(t){return(t=this.currentStateRendererData(t))&&t.accessibilityData?t.accessibilityData.accessibilityData||null:null};
_.Y.computeButtonClass=function(t){var E=this.currentStateRendererData(t);if(!E)return"";t="";var p=E.style;p&&(t+=p.toLowerCase().replace(/_/g,"-")+" ");(E=E.size)&&(t+=E.toLowerCase().replace(/_/g,"-")+" ");return t.trim()};
_.Y.computeServiceEndpoint=function(t){if(!t)return null;var E=t&&t.serviceEndpoint,p=this.get("command.commandMetadata.webCommandMetadata.sendPost",t);return E?E:p&&t.command?t.command:null};
_.Y.computeBellMenuItemParams=function(t){var E;t=(E=_.k(t==null?void 0:t.command,_.ZU))==null?void 0:E.commands;if(!t||t.length===0)return null;E=_.k(t[0],_.cU);var p,U;return(E==null?0:(p=E.popup)==null?0:(U=p.menuPopupRenderer)==null?0:U.items)?E.popup.menuPopupRenderer.items.map(function(x){return x.menuServiceItemRenderer.trackingParams}):null};
_.Y.handleBellMenuOpenSelectedAction=function(t){var E=t.trackingParams,p=this.computeBellMenuItemParams(this.data);this.data&&E&&p&&p.includes(E)&&this.ytRenderButtonBehavior._setButtonIcon(t.icon.iconType.toLowerCase())};
_.Y.onYtServiceRequestCompleted=function(t,E){(t=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",E))&&this.set("data",t)};
_.Y.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.Y.resetState=function(){this.set("data.currentStateId",3)};
_.Y.onYtButtonTapHandler=function(){if(this.data){var t=this.currentStateRendererData(this.data);t&&this.ytRendererBehavior.logExplicitClick(t)}};
KZ.prototype.onYtServiceRequestError=KZ.prototype.onYtServiceRequestError;KZ.prototype.onYtServiceRequestCompleted=KZ.prototype.onYtServiceRequestCompleted;KZ.prototype.stateChanged=KZ.prototype.stateChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],KZ.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],KZ.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.g(pH.YtRenderButtonBehavior),_.P("design:type",Object)],KZ.prototype,"ytRenderButtonBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],KZ.prototype,"data",void 0);_.N([_.P3("data","data.currentStateId"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],KZ.prototype,"stateChanged",null);
_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Rn]),_.P("design:returntype")],KZ.prototype,"onYtServiceRequestCompleted",null);_.N([_.lc("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],KZ.prototype,"onYtServiceRequestError",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],KZ);
_.G(KZ,"ytd-subscription-notification-toggle-button-renderer",function(){if(qom!==void 0)return qom;var t=document.createElement("template");_.J(t,"\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");t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return qom=t},{mode:1});var HAs;var vJ=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};t.tapHandler=function(){if(t.data){var E=t.currentStateRendererData();E&&t.ytRendererBehavior.logExplicitClick(E)}};
return t};
_.u(vJ,_.z);_.Y=vJ.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.Y.currentStateData=function(){var t=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(E){return E.stateId===t.data.currentStateId})||null:null};
_.Y.currentStateRendererData=function(){var t=this.currentStateData();return t&&t.state&&t.state.buttonRenderer?t.state.buttonRenderer:null};
_.Y.computeAccessibilityLabel=function(){var t,E,p;return(t=this.currentStateRendererData())==null?void 0:(E=t.accessibilityData)==null?void 0:(p=E.accessibilityData)==null?void 0:p.label};
_.Y.computeBellMenuItemParams=function(){var t,E,p=(E=_.k((t=this.data)==null?void 0:t.command,_.ZU))==null?void 0:E.commands;if(!p||p.length===0)return null;t=_.k(p[0],_.cU);var U,x;return(t==null?0:(U=t.popup)==null?0:(x=U.menuPopupRenderer)==null?0:x.items)?t.popup.menuPopupRenderer.items.map(function(A){return A.menuServiceItemRenderer.trackingParams}):null};
_.Y.handleBellMenuOpenSelectedAction=function(t){var E=t.trackingParams,p=this.computeBellMenuItemParams();if(this.data&&E&&p&&p.includes(E)&&(t==null||!t.isDisabled)){var U;((U=_.k(t.serviceEndpoint,_.XJ))==null?void 0:U.signal)!=="CLIENT_SIGNAL"&&(this.icon=t.icon.iconType)}};
_.Y.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.Y.onYtServiceRequestCompleted=function(t,E){if(t=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",E))this.icon=void 0,this.set("data",t)};
_.Y.onYtServiceRequestError=function(){this.icon=void 0};
_.aE.Object.defineProperties(vJ.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var t=this.data,E=this.textLabel,p=this.hostElement,U=this.computeAccessibilityLabel(),x=this.tapHandler,A=this.isOverlay?"overlay":"mono",m=(t==null?0:t.disableButton)?"disabled":"active";E=E?_.En(E):void 0;return{style:A,type:"tonal",state:m,size:"M",focused:!1,formattedButtonText:E,iconPosition:"leading-trailing",onTap:qs$(t,x,p),accessibilityLabel:U}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var t=this.currentStateRendererData(),E,p,U=(p=this.icon)!=null?p:t==null?void 0:(E=t.icon)==null?void 0:E.iconType;if(U)return _.zh(U)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var t,E,p=(t=this.data)==null?void 0:(E=t.secondaryIcon)==null?void 0:E.iconType;if(p)return _.zh(p)}}});
vJ.prototype.onYtServiceRequestError=vJ.prototype.onYtServiceRequestError;vJ.prototype.onYtServiceRequestCompleted=vJ.prototype.onYtServiceRequestCompleted;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],vJ.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],vJ.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],vJ.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],vJ.prototype,"textLabel",void 0);
_.N([_.e(),_.P("design:type",String)],vJ.prototype,"icon",void 0);_.N([_.e(),_.P("design:type",Boolean)],vJ.prototype,"isOverlay",void 0);_.N([_.Z("data.*","textLabel"),_.P("design:type",Object),_.P("design:paramtypes",[])],vJ.prototype,"computedButtonShape",null);_.N([_.Z("data.*","icon"),_.P("design:type",Object),_.P("design:paramtypes",[])],vJ.prototype,"computedIcon",null);_.N([_.Z("computedIcon"),_.P("design:type",Object),_.P("design:paramtypes",[])],vJ.prototype,"computedAnimateIcon",null);
_.N([_.Z("data.*"),_.P("design:type",Object),_.P("design:paramtypes",[])],vJ.prototype,"computedSecondaryIcon",null);_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Rn]),_.P("design:returntype")],vJ.prototype,"onYtServiceRequestCompleted",null);_.N([_.lc("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],vJ.prototype,"onYtServiceRequestError",null);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],vJ);
_.G(vJ,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(HAs!==void 0)return HAs;var t=document.createElement("template");_.J(t,'\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 HAs=t},{mode:_.hX("kevlar_poly_si_batch_j081")?1:2});var f$Z;_.k2(fAs,"yt-animated-action",{props:{backgroundLottieRef:_.uu,foregroundLottieRef:_.uu,wrapperClass:_.uu,disableAnimation:_.uu},unsafeExternallySettableAttributes:new Set(["key"])});var yf=function(){var t=_.z.apply(this,arguments)||this;t.animatedActionEnabled=_.r("web_animated_actions");t.foregroundLottieRef={};t.backgroundLottieRef={};t.forceIconOnly=!1;t.showTextWhileAnimating=!1;t.keyboardFocused=!1;t.isAnimating=!1;t.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return t};
_.u(yf,_.z);_.Y=yf.prototype;_.Y.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.Y.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]]"}}}}}};
_.Y.attached=function(){this.keyboardFocused=!1};
_.Y.onYtServiceRequestSent=function(t,E){(this.get("endpoint.subscribeEndpoint",E)||this.get("endpoint.unsubscribeEndpoint",E))&&this.updateSubscriptionState(!this.subscribed)};
_.Y.onYtServiceRequestCompleted=function(t,E){(t=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",E.data))&&this.bellButton&&(this.bellButton.data=t)};
_.Y.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.eU(this.hostElement)};
_.Y.onPlayerSubscribe=function(t){this.isCompactRed()||t!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.Y.onPlayerUnsubscribe=function(t){this.isCompactRed()||t!==this.data.channelId||this.updateSubscriptionState(!1)};
_.Y.handleUpdateSubscribeButtonAction=function(t){t=_.k(t,p$W);var E;t&&t.channelId===((E=this.data)==null?void 0:E.channelId)&&this.updateSubscriptionState(!!t.subscribed)};
_.Y.computeButtonStyle=function(t){return this.get("style.styleType",t)||null};
_.Y.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.Y.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.Y.updateSubscriptionState=function(t){if(t!==this.subscribed){this.set("data.subscribed",t);var E,p=(E=this.data)==null?void 0:E.subscribedEntityKey;p&&this.ytdReduxBehavior.dispatch(_.P9("subscriptionStateEntity",p,{key:p,subscribed:t}));this.isCompactRed()||_.kT(this.hostElement,"yt-subscription-changed",t);t||(_.du(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!t),t&&this.hasBellButton&&this.startAnimation())}};
_.Y.startAnimation=function(){var t=this;if(!this.isAnimating){var E=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var p;(p=this.backgroundLottieRef.lottieEl)==null||p.goToAndPlay(0);var U;(U=this.foregroundLottieRef.lottieEl)==null||U.goToAndPlay(0);_.ir.addJob(function(){t.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.ir.addJob(function(){t.updateContainerToFitContent(!!t.subscribed,!0)},2,1500);
_.ir.addJob(function(){t.isAnimating=!1},2,E)}};
_.Y.maybeAnimateBellIcon=function(){var t=_.OU(this.hostElement).querySelector("yt-animated-icon");if(t){var E;(E=t.animationRef.lottieEl)==null||E.goToAndPlay(0)}};
_.Y.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.Y.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.Y.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var t;this.unsubscribedWidth=(t=this.subscribeButtonShape)==null?void 0:t.getBoundingClientRect().width}var E;this.subscribedWidth=(E=this.bellButton)==null?void 0:E.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.Y.updateContainerToFitContent=function(t,E){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(t?(t=this.subscribedWidth,E=this.isAnimating&&!E,this.subscribedIconOnlyWidth===void 0||E||(t=this.subscribedIconOnlyWidth),this.hostElement.style.width=t+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.Y.clearContainerSize=function(){this.hostElement.style.width=""};
_.Y.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.Y.maybeSetSubscribedButtonIconOnlyWidth=function(){var t=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 E;t.subscribedIconOnlyWidth=(E=t.bellButton)==null?void 0:E.getBoundingClientRect().width;requestAnimationFrame(function(){if(t.bellButton){var p;t.bellButton.textLabel=
(p=t.data)==null?void 0:p.subscribedButtonText}})})))};
_.aE.Object.defineProperties(yf.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 t;return(t=this.data)==null?void 0:t.subscribedButtonText}var E;return this.forceIconOnly?void 0:(E=this.data)==null?void 0:E.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var t,E,p=((t=this.data)==null?void 0:(E=t.timedAnimationData)==null?void 0:E.animationTiming)||[];return{uniqueId:"subscribe",timings:p,enabled:p.length>0&&!this.subscribed,experimentEnabled:p.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var t;return!this.subscribed&&((t=this.data)==null?void 0:t.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 t={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var E=t.renderer;var p=t.element;var U=t.subscribed;var x=t.commandController;var A=t.isOverlay;t=t.stopPropagation;var m=wh$(E,U);A&&(m.style="overlay");A=Object;var b=A.assign,f;a:switch((f=E.style)==null?void 0:f.styleType){case "COMPACT_GRAY":case "COMPACT_RED":f={size:"S"};break a;default:f={size:"M"}}var B=BRK(E,
U);var R=(R=U?E.subscribedButtonText:E.unsubscribedButtonText)?_.En(R):void 0;return b.call(A,{},m,f,{focused:!1,toggled:U,accessibilityLabel:B,formattedButtonText:R,onTap:fAO(E,U,p,x,t)})}}}});
yf.prototype.onMouseDown=yf.prototype.onMouseDown;yf.prototype.onDataChanged=yf.prototype.onDataChanged;yf.prototype.observedSubscribed=yf.prototype.observedSubscribed;yf.prototype.onYtServiceRequestCompleted=yf.prototype.onYtServiceRequestCompleted;yf.prototype.onYtServiceRequestSent=yf.prototype.onYtServiceRequestSent;yf.prototype.maybeUpdateBellButtonText=yf.prototype.maybeUpdateBellButtonText;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],yf.prototype,"ytComponentBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],yf.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],yf.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],yf.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],yf.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],yf.prototype,"data",void 0);
_.N([_.e({selectorArgs:["data.subscribedEntityKey"],selector:FZl}),_.P("design:type",Object)],yf.prototype,"subscriptionStateEntity",void 0);_.N([_.e({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.P("design:type",Boolean)],yf.prototype,"subscribed",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],yf.prototype,"branded",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],yf.prototype,"animatedActionEnabled",void 0);
_.N([_.e(),_.P("design:type",Object)],yf.prototype,"foregroundLottieRef",void 0);_.N([_.e(),_.P("design:type",Object)],yf.prototype,"backgroundLottieRef",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],yf.prototype,"overlayButton",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.P("design:type",Object)],yf.prototype,"buttonStyle",void 0);_.N([_.e(),_.P("design:type",Object)],yf.prototype,"forceIconOnly",void 0);
_.N([_.e(),_.P("design:type",Object)],yf.prototype,"showTextWhileAnimating",void 0);_.N([_.e({value:function(){return!!_.X3().resolve(_.OB(_.FA))&&_.r("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.P("design:type",Boolean)],yf.prototype,"useKeyboardFocused",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],yf.prototype,"keyboardFocused",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],yf.prototype,"isAnimating",void 0);_.N([_.Z("data.notificationPreferenceButton.*"),_.P("design:type",Object),_.P("design:paramtypes",[])],yf.prototype,"hasBellButton",null);
_.N([_.GI("subscribedButtonText"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yf.prototype,"maybeUpdateBellButtonText",null);_.N([_.Z("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.P("design:type",Object),_.P("design:paramtypes",[])],yf.prototype,"subscribedButtonText",null);_.N([_.Z("data.timedAnimationData.animationTiming","subscribed"),_.P("design:type",Object),_.P("design:paramtypes",[])],yf.prototype,"smartimationSettings",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.P("design:type",Object),_.P("design:paramtypes",[])],yf.prototype,"subscribeButtonHidden",null);_.N([_.e({reflectToAttribute:!0}),_.Z("subscribed","hasBellButton"),_.P("design:type",Object),_.P("design:paramtypes",[])],yf.prototype,"subscribeButtonInvisible",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("subscribed"),_.P("design:type",Object),_.P("design:paramtypes",[])],yf.prototype,"unsubscribeButtonHidden",null);_.N([_.Nl("ytd-subscription-notification-toggle-button-renderer-next"),_.P("design:type",Object)],yf.prototype,"bellButton",void 0);_.N([_.Nl("#subscribe-button-shape"),_.P("design:type",HTMLElement)],yf.prototype,"subscribeButtonShape",void 0);
_.N([_.Z("overlayButton","subscribed","data"),_.P("design:type",Object),_.P("design:paramtypes",[])],yf.prototype,"buttonShape",null);_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.m8]),_.P("design:returntype")],yf.prototype,"onYtServiceRequestSent",null);_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Rn]),_.P("design:returntype")],yf.prototype,"onYtServiceRequestCompleted",null);
_.N([_.GI("subscribed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yf.prototype,"observedSubscribed",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yf.prototype,"onDataChanged",null);_.N([_.lc("mousedown"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],yf.prototype,"onMouseDown",null);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],yf);
_.G(yf,"ytd-subscribe-button-renderer",function(){if(f$Z!==void 0)return f$Z;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return f$Z=t},{mode:1});var SA=function(){var t=_.z.apply(this,arguments)||this;t.isRichGrid=!1;return t};
_.u(SA,_.z);SA.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"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],SA.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],SA.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],SA.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],SA.prototype,"isRichGrid",void 0);_.N([_.Ul({is:"ytd-game-card-renderer",disableElementRegistration:!0})],SA);
_.G(SA,"ytd-game-card-renderer",function(){if(iAr!==void 0)return iAr;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return iAr=t},{mode:1});var cJ={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.r("defer_menus")&&!LRm?0:void 0,waitForSignal:"eocs"};var BUZ;var woZ;var tc=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return t};
_.u(tc,_.z);_.Y=tc.prototype;_.Y.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.Y.onSeriesReminderStateEntityChange=function(){var t,E,p;((t=this.eventReminderStateEntity)==null?0:t.key)&&((E=this.seriesReminderStateEntity)==null?void 0:E.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((p=this.eventReminderStateEntity)==null?void 0:p.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.P9("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.Y.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.Y.onYtServiceRequestError=function(){var t;this.updateReminderStateEntitiesFromButtonState((t=this.data)==null?void 0:t.currentState)};
_.Y.handleUpdateUpcomingEventReminderButtonStateCommand=function(t){if(t=_.k(t,UTr)){var E,p=(E=this.data)==null?void 0:E.targetId;p&&t.targetId===p&&_.iR(this.updateReminderStateEntitiesFromButtonState.bind(this,t.state))}};
_.Y.getButtonStateFromReminderState=function(){var t;if(((t=this.seriesReminderStateEntity)==null?void 0:t.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var E;if(((E=this.eventReminderStateEntity)==null?void 0:E.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var p,U;if(((p=this.seriesReminderStateEntity)==null?void 0:p.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((U=this.eventReminderStateEntity)==
null?void 0:U.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var x;return(x=this.data)==null?void 0:x.currentState};
_.Y.updateReminderStateEntitiesFromButtonState=function(t){if(t){switch(t){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":t="UPCOMING_EVENT_REMINDER_STATE_NONE";var E="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":t="UPCOMING_EVENT_REMINDER_STATE_SINGLE";E="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":t="UPCOMING_EVENT_REMINDER_STATE_NONE";E="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var p;
((p=this.eventReminderStateEntity)==null?0:p.key)&&this.ytdReduxBehavior.dispatch(_.P9("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:t})));var U;((U=this.seriesReminderStateEntity)==null?0:U.key)&&this.ytdReduxBehavior.dispatch(_.P9("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:E})))}};
_.aE.Object.defineProperties(tc.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var t=this.getButtonStateFromReminderState(),E,p;if(t&&((E=this.data)==null?0:(p=E.states)==null?0:p.length))for(E=_.M(this.data.states),p=E.next();!p.done;p=E.next()){p=p.value;var U=void 0;if(((U=_.k(p,xTZ))==null?void 0:U.state)===t)return _.k(p,xTZ)}}}});
tc.prototype.onYtServiceRequestError=tc.prototype.onYtServiceRequestError;tc.prototype.onYtServiceRequestCompleted=tc.prototype.onYtServiceRequestCompleted;tc.prototype.onSeriesReminderStateEntityChange=tc.prototype.onSeriesReminderStateEntityChange;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],tc.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],tc.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],tc.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],tc.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],tc.prototype,"data",void 0);_.N([_.e({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:lEt}),_.P("design:type",Object)],tc.prototype,"eventReminderStateEntity",void 0);
_.N([_.e({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(t,E){return _.hj(t.entities,"sportsSeriesReminderStateEntity",E)}}),
_.P("design:type",Object)],tc.prototype,"seriesReminderStateEntity",void 0);_.N([_.Z("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],tc.prototype,"currentButtonStateRenderer",null);_.N([_.GI("seriesReminderStateEntity"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tc.prototype,"onSeriesReminderStateEntityChange",null);
_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tc.prototype,"onYtServiceRequestCompleted",null);_.N([_.lc("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tc.prototype,"onYtServiceRequestError",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],tc);
_.G(tc,"ytd-upcoming-event-reminder-button-renderer",function(){if(woZ!==void 0)return woZ;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);
return woZ=t},{mode:1});var R3X;var EM=function(){return _.z.apply(this,arguments)||this};
_.u(EM,_.z);EM.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.aE.Object.defineProperties(EM.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(_.r("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],EM.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],EM.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],EM.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],EM.prototype,"shelfDismissal",void 0);_.N([_.Z("data.responseText"),_.P("design:type",Object),_.P("design:paramtypes",[])],EM.prototype,"text",null);
_.N([_.Z("data.responseText"),_.P("design:type",Object),_.P("design:paramtypes",[])],EM.prototype,"textAriaLabel",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],EM);
_.G(EM,"ytd-notification-multi-action-renderer",function(){if(R3X!==void 0)return R3X;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return R3X=t},{mode:1});var Vnf;var pk=function(){return _.z.apply(this,arguments)||this};
_.u(pk,_.z);pk.prototype.ready=function(){var t=this;_.ZN(this.hostElement).querySelector("#undo").addEventListener("tap",function(){t.onUndoTap()})};
pk.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.X3().resolve(_.ei).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],pk.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],pk.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],pk);
_.G(pk,"ytd-notification-text-renderer",function(){if(Vnf!==void 0)return Vnf;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Vnf=t},{mode:1});var QH4;var UM=function(){var t=_.z.apply(this,arguments)||this;t.mouseOverDelayJobId=0;t.fadeInImageDelayJobId=0;t.startTimeMs=-1;t.loadingStartTimeMs=-1;t.loadingEndTimeMs=-1;t.hasVideoPreview=!1;return t};
_.u(UM,_.z);_.Y=UM.prototype;_.Y.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.Y.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.Y.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.Y.showThumbnail=function(){var t=this;this.csn=_.yL();_.cD("fmth");_.ir.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.g4(_.ir,function(){t.loadingStartTimeMs=(0,_.eu)();var E=_.ZN(t.hostElement).querySelector("#thumbnail");E.complete?t.displayMouseOverImage():E.addEventListener("load",_.zI(t,t.displayMouseOverImage))},150):_.XM(_.ZN(this.hostElement).querySelector("#play"),"show",!0)};
_.Y.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.Y.onTap=function(){this.removeVideoPreview()};
_.Y.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var t=this.videoId,E=this.csn,p=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,U=this.startTimeMs,x=this.hasVideoPreview,A=_.$8(this.trackingParams),m={isMovingThumbnail:x};x&&U>0&&(p>0&&(m.movingThumbnailLoadingDurationMs=Math.round(p)),m.durationHoveredMs=Math.round((0,_.eu)()-U));t&&(m.videoId=t);_.HA(E,A,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:m});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.Y.removeVideoPreview=function(){_.ir.cancelJob(this.mouseOverDelayJobId);_.ir.cancelJob(this.fadeInImageDelayJobId);var t=_.ZN(this.hostElement).querySelector("#thumbnail");_.XM(t,"fade-in",!1);t.removeEventListener("load",_.zI(this,this.displayMouseOverImage));t=_.ZN(this.hostElement).querySelector("#play");_.XM(t,"fade-in",!1);_.XM(t,"show",!1)};
_.Y.displayMouseOverImage=function(){var t=_.ZN(this.hostElement).querySelector("#thumbnail"),E=_.ZN(this.hostElement).querySelector("#play");this.isImageAvailable(t)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.eu)(),this.startTimeMs=(0,_.eu)(),this.fadeInImageDelayJobId=_.g4(_.ir,function(){_.XM(t,"fade-in",!0)},50)):_.XM(E,"fade-in",!0)};
_.Y.computeThumbnail=function(t,E){var p;t&&t.movingThumbnailDetails&&t.movingThumbnailDetails.thumbnails&&E?p=_.d4(t.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):p=E?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(p)return _.S8(p)};
_.Y.isImageAvailable=function(t){return!(!t.src||t.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||t.naturalWidth===120)};
UM.prototype.onTap=UM.prototype.onTap;UM.prototype.dataChanged=UM.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],UM.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],UM.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],UM.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],UM.prototype,"csn",void 0);_.N([_.e(),_.P("design:type",Object)],UM.prototype,"trackingParams",void 0);
_.N([_.e(),_.P("design:type",String)],UM.prototype,"videoId",void 0);_.N([_.e(),_.P("design:type",Boolean)],UM.prototype,"isAttachedAndDataSet",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],UM.prototype,"dataChanged",null);_.N([_.lc("click"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],UM.prototype,"onTap",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],UM);
_.G(UM,"ytd-moving-thumbnail-renderer",function(){if(QH4!==void 0)return QH4;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return QH4=t},{mode:1});var C_T;_.FY=function(t){this.hostElement=t;this.eventSink=null;this.eventList=[]};
_.FY.prototype.shouldForward=function(){var t,E;return(E=(t=this.eventSink)==null?void 0:t.isConnected)!=null?E:document.body.contains(this.eventSink)};
_.FY.prototype.start=function(t,E){this.eventSink&&this.stop();for(var p=0;p<t.length;p++)this.hostElement.addEventListener(t[p],_.zI(this,this.forwardEvent));var U;this.eventSink=(U=E.hostElement)!=null?U:E;this.eventList=t};
_.FY.prototype.stop=function(){for(var t=0;t<this.eventList.length;t++)this.hostElement.removeEventListener(this.eventList[t],_.zI(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.FY.prototype.forwardEvent=function(t,E){this.shouldForward()&&(t.stopPropagation(),this.eventSink instanceof Element?_.kT(this.eventSink,t.type,E):_.qW(new _.cC("eventSink is not an element")))};_.xl={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.FY(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(t,E){this.forwarder_.start(t,E)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var Ac=function(){return _.z.apply(this,arguments)||this};
_.u(Ac,_.z);_.Y=Ac.prototype;_.Y.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=_.qO("HTML_DIR")==="rtl"?"right":"left"};
_.Y.dataChanged=function(){this.popupOpen=!1};
_.Y.computeAriaLabel=function(t){return _.k(t,CBr).label};
_.Y.onTap=function(t){t.stopPropagation();t.preventDefault();this.data.command&&_.X3().resolve(_.ei).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.Y.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.Y.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
Ac.prototype.onPopupClosed=Ac.prototype.onPopupClosed;Ac.prototype.onPopupOpened=Ac.prototype.onPopupOpened;Ac.prototype.onTap=Ac.prototype.onTap;Ac.prototype.dataChanged=Ac.prototype.dataChanged;_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],Ac.prototype,"eventForwardingBehavior",void 0);_.N([_.g(_.Uv),_.P("design:type",Object)],Ac.prototype,"ironButtonState",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Ac.prototype,"componentBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],Ac.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,value:-1}),_.P("design:type",Number)],Ac.prototype,"tabindex",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.P("design:type",Object)],Ac.prototype,"ariaLabel",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],Ac.prototype,"disableTooltips",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],Ac.prototype,"popupOpen",void 0);
_.N([_.e(),_.P("design:type",Element)],Ac.prototype,"eventSink",void 0);_.N([_.Nl("#tooltip"),_.P("design:type",Object)],Ac.prototype,"tooltip",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ac.prototype,"dataChanged",null);_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Ac.prototype,"onTap",null);
_.N([_.lc("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ac.prototype,"onPopupOpened",null);_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ac.prototype,"onPopupClosed",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],Ac);
_.G(Ac,"ytd-thumbnail-overlay-button-renderer",function(){if(C_T!==void 0)return C_T;var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return C_T=t},{mode:1});var jH3;var Yl=function(){return _.z.apply(this,arguments)||this};
_.u(Yl,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Yl.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Yl.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],Yl.prototype,"disableAnimation",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],Yl.prototype,"rounded",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],Yl.prototype,"transparentBackground",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],Yl.prototype,"noPadding",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],Yl);
_.G(Yl,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(jH3!==void 0)return jH3;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return jH3=t},{mode:1});var r$G;var Mk=function(){return _.z.apply(this,arguments)||this};
_.u(Mk,_.z);Mk.prototype.computeIconPosition=function(t){return this.get("iconPosition",t)||null};
Mk.prototype.computeIconStyle=function(t){return this.get("iconStyle",t)||null};
Mk.prototype.computeIsIconStyleFilled=function(t){if(!t)return!1;var E;return t.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((E=t.icon)==null?void 0:E.iconType)==="ERROR_BLACK"};
_.N([_.e(),_.P("design:type",Object)],Mk.prototype,"data",void 0);_.N([_.e({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.P("design:type",Object)],Mk.prototype,"iconPosition",void 0);_.N([_.e({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.P("design:type",Object)],Mk.prototype,"iconStyle",void 0);_.N([_.e({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Mk.prototype,"iconStyleFilled",void 0);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],Mk);
_.G(Mk,"ytd-thumbnail-overlay-icon-renderer",function(){if(r$G!==void 0)return r$G;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return r$G=t},{mode:1});var kyW;var mw=function(){return _.z.apply(this,arguments)||this};
_.u(mw,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],mw.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],mw.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],mw);
_.G(mw,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(kyW!==void 0)return kyW;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return kyW=t},{mode:1});var dro;var bS=function(){var t=_.z.apply(this,arguments)||this;t.isPreviewLoading=!1;return t};
_.u(bS,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],bS.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],bS.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],bS.prototype,"isPreviewLoading",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],bS);
_.G(bS,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(dro!==void 0)return dro;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return dro=t},{mode:1});var uT3;var iS=function(){return _.z.apply(this,arguments)||this};
_.u(iS,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],iS.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],iS.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],iS);
_.G(iS,"ytd-thumbnail-overlay-pinking-renderer",function(){if(uT3!==void 0)return uT3;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return uT3=t},{mode:1});var J$W;var qk=function(){var t=_.z.apply(this,arguments)||this;t.disableTooltips=!1;t.isLoading=!1;t.useExpandableTooltip=!1;t.toggled=!1;t.hovered=!1;t.mouseoverDelayJobId=0;t.toggleDelayJobId=0;t.expandAnimationDelayJobId=0;return t};
_.u(qk,_.z);_.Y=qk.prototype;_.Y.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");_.ZN(this.hostElement).querySelector("#tooltip").position=_.qO("HTML_DIR")==="rtl"?"right":"left"};
_.Y.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.ir.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.ir.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.ir.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.Y.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.ir.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.ir.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.ir.cancelJob(this.expandAnimationDelayJobId)};
_.Y.computeIcon=function(t,E,p){return(t=p?E:t)&&t.iconType?_.zh(t.iconType):void 0};
_.Y.computeAriaLabel=function(t,E,p){return _.k(p?E:t,CBr).label};
_.Y.computeTooltip=function(t,E,p){return p?E:t};
_.Y.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.Y.computeIconOnHover=function(t,E){if((t==null?0:t.iconType)&&!E)return _.zh(t.iconType)};
_.Y.onTap=function(t){var E=this;t.stopPropagation();t.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(t=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(t),this.useExpandableTooltip&&(this.toggleDelayJobId=_.g4(_.ir,function(){E.hovered=!1;E.data&&!E.data.toggledServiceEndpoint&&(E.expandAnimationDelayJobId=_.g4(_.ir,function(){E.set("data.isToggled",
!1)},200))},2E3))};
_.Y.onMouseenter=function(){var t=this;this.mouseoverDelayJobId=_.g4(_.ir,function(){t.hovered=!0},300)};
_.Y.onMouseleave=function(){_.ir.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.Y.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.Y.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.Y.onServiceRequestCompleted=function(t,E){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(E)||this.set("data.isToggled",!this.data.isToggled)};
_.Y.serviceRequestWasSuccessful=function(t){return _.k(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.HH)?t.data.status==="STATUS_SUCCEEDED":!0};
qk.prototype.onServiceRequestCompleted=qk.prototype.onServiceRequestCompleted;qk.prototype.onPopupClosed=qk.prototype.onPopupClosed;qk.prototype.onPopupOpened=qk.prototype.onPopupOpened;qk.prototype.onMouseleave=qk.prototype.onMouseleave;qk.prototype.dataChanged=qk.prototype.dataChanged;_.N([_.g(_.Uv),_.P("design:type",Object)],qk.prototype,"ironButtonState",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],qk.prototype,"ytComponentBehavior",void 0);
_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],qk.prototype,"ytEventForwardingBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],qk.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.P("design:type",Object)],qk.prototype,"ariaLabel",void 0);_.N([_.e(),_.P("design:type",Object)],qk.prototype,"disableTooltips",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],qk.prototype,"popupOpen",void 0);_.N([_.e(),_.P("design:type",Object)],qk.prototype,"isLoading",void 0);_.N([_.e(),_.P("design:type",Element)],qk.prototype,"eventSink",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],qk.prototype,"useExpandableTooltip",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.P("design:type",Object)],qk.prototype,"toggled",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],qk.prototype,"hovered",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.P("design:type",Object)],qk.prototype,"iconOnHover",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qk.prototype,"dataChanged",null);
_.N([_.lc("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qk.prototype,"onMouseleave",null);_.N([_.lc("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qk.prototype,"onPopupOpened",null);_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qk.prototype,"onPopupClosed",null);
_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Rn]),_.P("design:returntype")],qk.prototype,"onServiceRequestCompleted",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],qk);
_.G(qk,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(J$W!==void 0)return J$W;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return J$W=t},{mode:_.hX("kevlar_poly_si_batch_j053")?1:2});var I$r;var gKs=_.l(function(t){var E=t.data;var p=t.thumbnailSize;var U=function(){return E().enableSegmentView};
return _.H("yt-thumbnail-overlay-progress-bar-view-model",{class:_.X5("ytThumbnailOverlayProgressBarHost",function(){return R0K(p==null?void 0:p())})},_.H(_.w,{cond:U,
then:function(){return _.H("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.H("div",{class:_.v9("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+E().startPercent+"%"}}),_.H("div",{class:_.v9("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+E().segmentDurationPercent+"%"}},_.H("div",{class:_.v9("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.H("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.H("div",null," ",function(){return E().segmentLabel})),_.H("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.H("div",{class:_.v9("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.H(_.w,{cond:function(){return!U()&&E().startPercent},
then:function(){var x={};return _.H("div",{class:_.v9("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(x.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.r("web_enable_modern_progress_bar_overlay"),x))},_.H("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+E().startPercent+"%"}}))}}))},"Ha");
gKs.idomCompat=!0;_.ZA4=_.l(function(t){var E=_.F0(),p=_.D4(function(x){var A,m,b;a:{var f=(A=t.data())==null?void 0:A.animationActivationTargetId;A=((m=t.data())==null?void 0:m.animationActivationEntityKey)||"";m=(b=t.data())==null?void 0:b.animationActivationEntitySelectorType;if(A&&f)switch(m){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":x=_.hJ(x,A);b=_.X3().resolve(_.OB(_.bf));f=!!(x&&x.videoId===f&&(b==null?0:b.isMiniplayerActive()));f={activated:f,playAnimation:f&&x.playerState==="PLAYER_STATE_PLAYING"};
break a}f=void 0}return f});
_.M$(function(){var x;if((x=p())==null?0:x.activated){var A;if((A=p())==null?0:A.playAnimation){var m;(m=E.lottieEl)==null||m.goToAndPlay(0)}else{var b;(b=E.lottieEl)==null||b.goToAndStop(0)}}},"DbQiXd");
var U=function(){var x,A=!((x=p())==null||!x.activated);if(t.data()){x=t.data();var m=void 0;x.icon&&(m=_.Nvl(x.icon),m=KU0(m));var b=void 0,f;if((f=x.backgroundColor)==null?0:f.lightTheme){var B;b={backgroundColor:t2((B=x.backgroundColor)==null?void 0:B.lightTheme,"0.8")}}if(x.text||m||A){if(A&&x.lottieData&&E){B=x.lottieData;var R,V,Q;f={animationConfig:{name:B.url,path:B.url,autoplay:(R=B.settings)==null?void 0:R.autoplay,loop:(Q=(V=B.settings)==null?void 0:V.loop)!=null?Q:!0},animationRef:E}}else f=
void 0;if(A)R=17;else b:switch(x.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":R=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":R=19;break b;default:R=17}A={type:R,text:A&&x.animatedText?x.animatedText:x.text,icon:m,customColors:b,animation:f}}else A=void 0}else A=void 0;return A};
return _.H("yt-thumbnail-badge-view-model",{class:_.X5("ytThumbnailBadgeViewModelHost",t.class)},_.H(_.w,{cond:U,then:function(){return _.H(_.CZ,{data:function(){return U()}})}}))},"Ja");var OA0=_.l(function(t){var E={},p={};return _.H("yt-thumbnail-bottom-overlay-view-model",{class:_.X5("ytThumbnailBottomOverlayViewModelHost",(E.ytThumbnailBottomOverlayViewModelHostBackground=function(){return t.data().enableGradientBackground},E))},_.H(_.sY,{data:function(){return t.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(U){return _.H(gKs,{data:U.data,
thumbnailSize:t.thumbnailSize})}}),_.H("div",{class:_.X5("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var U;
return VDj((U=t.thumbnailSize)==null?void 0:U.call(t))},(p.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var U;
return(U=t.isClip)==null?void 0:U.call(t)},p.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var U;
return!_.r("web_enable_modern_progress_bar_overlay")&&((U=t.thumbnailSize)==null?void 0:U.call(t))==="small"},p))},_.H(_.sY,{data:function(){return t.data().badge}},{thumbnailBadgeViewModel:function(U){return _.H(_.ZA4,{data:U.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.H(_.sY,{data:function(){return t.data().badges}},{thumbnailBadgeViewModel:function(U){return _.H(_.ZA4,{data:U.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ka");
OA0.idomCompat=!0;_.k2(OA0,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.Cy,thumbnailSize:_.Cy,isClip:_.Cy}});var HM=_.l(function(t){var E=t.data;var p=t.className;t=t.alwaysShow;var U=_.j3E(),x={};return _.H("thumbnail-hover-overlay-view-model",{el:_.V9(_.EX(function(){return E().rendererContext})),
class:_.X5("ytThumbnailHoverOverlayViewModelHost",p,(x.ytThumbnailHoverOverlayViewModelHostForceHover=t,x)),"aria-label":function(){var A;return(A=_.k(E().rendererContext,_.PY))==null?void 0:A.label},
role:function(){return _.c9(E().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.c9(E().rendererContext)!==void 0?0:void 0},
"on:keypress":U},_.H("div",{class:_.X5("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(E().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var A="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:A="ytThumbnailHoverOverlayViewModelStyleCover"}return A})},_.H(_.w,{cond:function(){return E().icon},
then:function(A){return _.H(_.Q9,{data:A,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.H(_.w,{cond:function(){return E().text},
then:function(A){return _.H(_.d8,{text:A,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ma");
HM.idomCompat=!0;var XoX=_.l(function(t){var E=t.data;return _.H(_.sY,{data:function(){return E==null?void 0:E().overlays}},{thumbnailHoverOverlayViewModel:HM})},"Na");
XoX.idomCompat=!0;var h30={};var a$f=_.l(function(t){var E=t.data;var p=t.image;var U=t.state;var x=t.iconType;var A=t.overlays;var m=t.isOverlay;var b=_.pR("div");t=_.M(_.Py(!0,void 0,"AA4e7b"));var f=t.next().value,B=t.next().value,R=function(){return!!E().onTap},V=_.Ql(x,"LIVE");
_.M$(function(){var C=E();requestAnimationFrame(function(){if(b.value===null)var d=!0;else{var I=b.value;d=C.badgeText;var O=Z9J(C.size);d in h30?I=h30[d]:(I=I.clientWidth,h30[d]=I);(d=I>O)?b.value.style.display="none":b.value.style.visibility="visible"}B(d)})},"vNdN8b");
var Q=function(){var C={};return C["yt-spec-avatar-shape__image"]=!0,C["yt-spec-avatar-shape__image--ads-app"]=E().type===1,C["yt-spec-avatar-shape__image--inscribed-square"]=E().type===2,C};
return _.H("yt-avatar-shape",null,_.H("div",{el:_.V9(XhJ(R,{keydown:function(C){if(C.key==="Enter"){var d;(d=C.currentTarget)==null||d.click()}},
click:function(C){var d,I;return void((I=(d=E()).onTap)==null?void 0:I.call(d,C))}})),
class:function(){var C={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},d=E();C=(C[d.clusterLayoutConfig?e00(d.clusterLayoutConfig):FyO(d.size)]=!0,C["yt-spec-avatar-shape__button--tappable"]=R(),C);(d=E().avatarButtonCustomClassName)&&(C[d]=!0);return _.v9(C)},
"aria-label":function(){return R()?E().accessibilityText:""},
role:function(){return R()?"button":void 0},
tabindex:function(){return R()?0:void 0}},_.H("div",{class:function(){var C,d=E(),I=U==null?void 0:U(),O=m==null?void 0:m(),a=!((C=d.decorations)==null||!C.includes(2)||d.size!=="medium"&&d.size!=="large"),F=d.size==="tiny"||d.size==="extra-small",L,D,W,K,v={};
C=(v["yt-spec-avatar-shape--live-ring"]=!!(((L=d.decorations)==null?0:L.includes(0))&&lAO(d.size)),v["yt-spec-avatar-shape--stories-watched"]=a&&!(I==null||!I.storiesWatched),v["yt-spec-avatar-shape--stories-unwatched"]=a&&!(I==null?0:I.storiesWatched),v["yt-spec-avatar-shape--background-border"]=Gjl(d.decorations)&&!F,v["yt-spec-avatar-shape--background-border-thin"]=Gjl(d.decorations)&&F,v["yt-spec-avatar-shape__on-select-border"]=!((D=d.decorations)==null||!D.includes(4)),v["yt-spec-avatar-shape__white-border"]=
!((W=d.decorations)==null||!W.includes(5)),v["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((K=d.decorations)==null?0:K.includes(5))&&F),v["yt-spec-avatar-shape--is-overlay"]=!!O,v);return _.v9(C)},
style:function(){a:{var C=E().clusterLayoutConfig;if(C){b:{var d=C.numAvatarsInCluster;var I=C.avatarIndex;if(I!==d-1){switch(C.clusterSize){case "small":C="32";break;case "medium":C="36";break;case "40":C="40";break;default:d=void 0;break b}d="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+C+"x"+C+"_avatars_"+d+"_index_"+I+".svg"}else d=void 0}if(d){d=_.zO({"-webkit-mask-image":"url("+d+")","mask-image":"url("+d+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}d=void 0}return d}},_.H("div",{class:function(){var C={};
var d=E();C=(C[d.clusterLayoutConfig?h08(d.clusterLayoutConfig):aAi(d.size)]=!0,C["yt-spec-avatar-shape--no-margin"]=Gjl(E().decorations),C["yt-spec-avatar-shape--square"]=E().type===2,C);return _.v9(C)}},_.H(_.Q9,{data:p,
alt:function(){return!R()&&E().accessibilityText?E().accessibilityText:""},
targetWidth:function(){return z0K(E().size)},
targetHeight:function(){return z0K(E().size)},
className:function(){return _.v9(Q())}}),_.H(_.w,{cond:function(){var C;
return((C=E().decorations)==null?void 0:C.includes(0))&&lAO(E().size)},
then:function(){return _.H("div",{class:function(){var C={};C=(C["yt-spec-avatar-shape__live-badge"]=!0,C["yt-spec-avatar-shape__live-badge--badge-small"]=E().size==="small",C["yt-spec-avatar-shape__live-badge--badge-medium"]=E().size==="medium"||E().size==="48",C["yt-spec-avatar-shape__live-badge--badge-large"]=E().size==="large",C["yt-spec-avatar-shape__live-badge--badge-extra-large"]=E().size==="extra-large"||E().size==="extra-extra-large"||E().size==="giant",C);return _.v9(C)}},_.H(_.w,{cond:function(){return E().badgeText},
then:function(C){return _.H("div",{class:"yt-spec-avatar-shape__badge-text",el:b},C)}}),_.H(_.w,{cond:f,
then:function(){return _.H("div",{class:"yt-spec-avatar-shape__badge-icon"},_.H(_.lz,{icon:V,size:function(){a:switch(E().size){case "extra-large":var C=16;break a;default:C=13}return C}}))}}))}}),_.H(_.w,{cond:function(){var C,d;
return((C=E().decorations)==null?void 0:C.includes(1))||((d=E().decorations)==null?void 0:d.includes(0))&&!lAO(E().size)},
then:function(){return _.H("div",{class:function(){var C=E(),d,I,O={};var a=(O["yt-spec-avatar-shape__live-dot"]=!((d=C.decorations)==null||!d.includes(0)||lAO(C.size)),O["yt-spec-avatar-shape__new-content"]=!((I=C.decorations)==null||!I.includes(1)),O);return _.v9(a)}})}}),_.H(_.w,{cond:function(){return!!A},
then:function(){return _.H("div",{class:function(){var C={};C=Object.assign((C["yt-spec-avatar-shape__image-overlays"]=!0,C),Q());return _.v9(C)}},A==null?void 0:A())}})))))},"Qa");
a$f.idomCompat={callbacks:{overlays:!0}};_.fk=_.l(function(t){function E(){p().endpoint&&_.bz(p().endpoint)}
var p=t.data;var U=t.decorations;var x=t.avatarButtonCustomClassName;var A=t.isOverlay;var m=t.clusterLayoutConfig;return _.H("avatar-view-model",null,_.H(_.w,{cond:function(){return p().image},
then:function(b){return _.H(a$f,{data:function(){return NRl({data:p(),onTap:p().endpoint?E:void 0,decorations:U==null?void 0:U(),badgeText:void 0,accessibilityText:p().accessibilityText,avatarButtonCustomClassName:x==null?void 0:x(),clusterLayoutConfig:m==null?void 0:m()})},
image:b,iconType:"RADAR_LIVE",overlays:function(){return _.H(XoX,{data:p})},
isOverlay:A})}}))},"Ra");
_.fk.idomCompat=!0;_.BM=_.l(function(t){var E=t.data;t=t.className;var p=_.pR("yt-decorated-avatar-view-model"),U=function(){return _.k(E().avatar,_.UX)},x=_.KN(function(){var A,m=E(),b=U(),f=_.c9(E().rendererContext),B=(A=p.value)!=null?A:void 0,R;
if(b){B={data:m,avatar:b,onTap:f,element:B};A=B.data;m=B.avatar;b=B.onTap;f=B.element;B=B.commandController;b=b?Py0(b,f,B):void 0;f=[];A.liveData&&f.push(0);var V;B=(V=A.liveData)==null?void 0:V.liveBadgeText;V=(R=_.k(A.rendererContext,_.PY))==null?void 0:R.label;R=NRl({data:m,onTap:b,decorations:f,badgeText:B,accessibilityText:V?V:A.a11yLabel})}else R={size:"medium"};return R},void 0,"c00kWd");
return _.H("yt-decorated-avatar-view-model",{class:_.X5("ytDecoratedAvatarViewModelHost",t),el:p},_.H(_.w,{cond:function(){var A;return(A=U())==null?void 0:A.image},
then:function(A){return _.H(a$f,{data:x,image:A,iconType:"RADAR_LIVE",overlays:function(){return _.H(XoX,{data:U})}})}}))},"Sa");
_.BM.idomCompat=!0;_.wp=_.l(function(t){var E=function(){var b;return Object.assign({},t.data(),(b=t.overrides)==null?void 0:b.call(t))},p=function(){return _.te(E().rendererContext)},U=function(){var b=E().avatars,f,B;
return(B=(f=(b==null?0:b[0])?_.k(b[0],_.UX):void 0)==null?void 0:f.avatarImageSize)!=null?B:"AVATAR_SIZE_UNKNOWN"},x=function(){return LyD(E())},A=function(){if(E().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var b=void 0;
else if((b=t.decorations)==null?0:b.call(t))b=t.decorations();else{b=E();var f=0;b.avatars&&(f+=b.avatars.length);b.decoratedText&&(f+=1);b=f>1?[3]:[]}return b},m={};
return _.H("yt-avatar-stack-view-model",{el:_.V9(_.EX(function(){return E().rendererContext})),
class:_.X5("yt-avatar-stack-view-model",t.className,(m["yt-avatar-stack-view-model--tappable"]=p,m["yt-avatar-stack-view-model--is-overlay"]=t.isOverlay,m["yt-avatar-stack-view-model--medium-text"]=t.useMediumText,m)),tabindex:function(){return p()?0:void 0},
role:function(){return p()?"link":void 0},
"aria-label":function(){var b,f;return(f=(b=_.k(E().rendererContext,_.PY))==null?void 0:b.label)!=null?f:""}},_.H(_.w,{cond:function(){var b;
return E().avatars&&!((b=t.hideAvatar)==null?0:b.call(t))},
then:function(){return _.H("div",{class:"yt-avatar-stack-view-model__avatars"},_.H(_.w,{cond:function(){return E().decoratedText},
then:function(b){var f={};return _.H("div",{class:_.X5("yt-avatar-stack-view-model__text-container",(f["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return U()==="AVATAR_SIZE_XXS"||U()==="AVATAR_SIZE_XS"},f["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var B;
return((B=t.isOverlay)==null?void 0:B.call(t))&&(U()==="AVATAR_SIZE_XXS"||U()==="AVATAR_SIZE_XS")},f)),
style:_.zO({width:function(){return x().avatarSizeInPx+"px"},
height:function(){return x().avatarSizeInPx+"px"}})},_.H(_.d8,{text:b,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.H("div",{style:function(){return _.zO(x().avatarStackStyle)()},
class:function(){return x().avatarStackClass}},_.H(_.sY,{data:function(){return x().avatars.reverse()}},{avatarViewModel:function(b,f){return _.H("div",{style:function(){var B,R;
return _.zO((R=(B=x()).avatarStyle)==null?void 0:R.call(B,f()))()},
class:function(){return x().avatarClass}},_.H(_.fk,{data:b.data,
decorations:A,avatarButtonCustomClassName:function(){return x().avatarButtonCustomClassName},
isOverlay:t.isOverlay,clusterLayoutConfig:function(){var B,R;return(R=(B=x()).clusterLayoutConfig)==null?void 0:R.call(B,f())}}))},
decoratedAvatarViewModel:function(b,f){return _.H("div",{style:function(){var B,R;return _.zO((R=(B=x()).avatarStyle)==null?void 0:R.call(B,f()))()},
class:function(){return x().avatarClass}},_.H(_.BM,{data:b.data}))}})))}}),_.H(_.w,{cond:function(){return E().text},
then:function(b){return _.H(_.d8,{text:b,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Ta");
_.wp.idomCompat=!0;_.k2(_.l(function(t){var E=t.data;var p=t.thumbnailSize;return _.H("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.H("div",{class:_.X5("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return TRO(p==null?void 0:p())})},_.H(_.sY,{data:function(){return E().avatarStack}},{avatarStackViewModel:function(U){return _.H(_.wp,{data:U.data,
decorations:[5]})}})))},"Ua"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.uu,
thumbnailSize:_.uu}});var e3Z=_.l(function(t){t=_.C4(t,{hidden:!1});var E=t.data;t=t.hidden;return _.H("yt-thumbnail-overlay-title-view-model",{class:_.X5("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(E().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var p="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:p="ytThumbnailOverlayTitleViewModelPositionTop"}return p}),
hidden:t},_.H(_.w,{cond:function(){return E().leadingContent},
then:function(p){return _.H("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.H(_.sY,{data:p},{decoratedAvatarViewModel:_.BM}))}}),_.H("div",null,_.H(_.d8,{text:function(){return E().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.H(_.w,{cond:function(){return E().subtitle},
then:function(){return _.H(_.d8,{text:function(){return E().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Va");
e3Z.idomCompat=!0;_.k2(e3Z,"yt-thumbnail-overlay-title-view-model",{props:{data:_.uu,hidden:_.uu}});_.FcX=_.l(function(t){t=_.C4(t,{isClip:!1});var E=t.data,p=t.thumbnailSize,U={};return _.H("yt-thumbnail-overlay-badge-view-model",{class:_.X5("yt-thumbnail-overlay-badge-view-model",function(){a:switch(E().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var x="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:x="yt-thumbnail-overlay-badge-view-model--bottom-end"}return x},function(){return oQL(p==null?void 0:p())},(U["yt-thumbnail-overlay-badge-view-model--clip"]=t.isClip,
U))},_.H(_.sY,{data:function(){return E().thumbnailBadges}},{thumbnailBadgeViewModel:function(x){return _.H(_.ZA4,{data:x.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Wa");
_.FcX.idomCompat=!0;_.k2(_.FcX,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.uu,thumbnailSize:_.uu,isClip:_.uu}});var z3s=_.l(function(t){var E=t.data;t=t.hidden;var p=_.KN(function(){return E().indicatorCount||0},void 0,"AbKnMc"),U={};
return _.H("yt-page-indicator-view-model",{class:_.X5("ytPageIndicatorViewModelHost",(U.ytPageIndicatorViewModelIndicatorHidden=function(){return!E().indicatorCount},U)),
hidden:t},_.H(_.yG,{each:function(){return Array(p())}},function(x,A){var m={};
return _.H("div",{class:_.X5("ytPageIndicatorViewModelIndicator",(m.ytPageIndicatorViewModelIndicatorSelected=function(){return E().selectedIndex===A()},m))})}))},"Xa");
z3s.idomCompat=!0;_.k2(z3s,"yt-page-indicator-view-model",{props:{data:_.uu,hidden:_.uu}});var RI=function(){var t=_.z.apply(this,arguments)||this;t.eventSink=function(){return t};
t.disableInteraction=!1;t.noRoundedCorners=!1;t.isPreviewLoading=!1;t.isOriginalAspectRatio=!1;t.computedObjectFit=!1;t.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return t};
_.u(RI,_.z);_.Y=RI.prototype;
_.Y.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:_.r("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"}}};
_.Y.onImageLoaded=function(){this.loaded=!0};
_.Y.onImageUnloaded=function(){this.loaded=!1};
_.Y.computeRichThumbnail=function(t,E,p,U){if(t&&E&&!U&&!_.r("disable_moving_thumbs_handling")&&!p)return E};
_.Y.computeImageWidth=function(t,E){return E||9999};
_.Y.computeIsOriginalAspectRatio=function(t){return t};
_.Y.computeIsLive=function(t){if(t==null?0:t.badges)for(var E=0;E<t.badges.length;E++){var p=t.badges[E];if(p.metadataBadgeRenderer&&p.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(t==null?0:t.thumbnailOverlays)for(E=0;E<t.thumbnailOverlays.length;E++)if(p=t.thumbnailOverlays[E],p.thumbnailOverlayTimeStatusRenderer&&p.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.Y.computeObjectFit=function(t,E){return E||(t?"CONTAIN":"")};
_.Y.computeNavigationEndpoint=function(t,E,p){return t?E:p};
_.Y.computeHasClip=function(t){t=_.M(t||[]);for(var E=t.next();!E.done;E=t.next())if(E.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.Y.computeOverlayColor=function(t){var E;return(t==null?0:(E=t.darkColorPalette)==null?0:E.section2Color)?t.darkColorPalette.section2Color:t==null?void 0:t.sampledThumbnailColor};
_.aE.Object.defineProperties(RI.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.VOE(this.width)}}});
RI.prototype.onImageUnloaded=RI.prototype.onImageUnloaded;RI.prototype.onImageLoaded=RI.prototype.onImageLoaded;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],RI.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],RI.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(fIs),_.P("design:type",Object)],RI.prototype,"ytdThumbnailBehavior",void 0);
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],RI.prototype,"componentBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],RI.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],RI.prototype,"data",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],RI.prototype,"circular",void 0);
_.N([_.e({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.P("design:type",Object)],RI.prototype,"richThumbnail",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.P("design:type",Boolean)],RI.prototype,"hasClip",void 0);_.N([_.e(),_.P("design:type",Object)],RI.prototype,"eventSink",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],RI.prototype,"queued",void 0);
_.N([_.e({value:!1}),_.P("design:type",Boolean)],RI.prototype,"richGridThumbnail",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],RI.prototype,"useExpandableTooltip",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],RI.prototype,"useUntranslatedNavigationEndpoint",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],RI.prototype,"disableInteraction",void 0);
_.N([_.e({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.P("design:type",Object)],RI.prototype,"computedNavigationEndpoint",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],RI.prototype,"nowPlayingEqualizerOnly",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],RI.prototype,"hidePlaybackStatus",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],RI.prototype,"objectFit",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],RI.prototype,"noRoundedCorners",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],RI.prototype,"watchFeedThumbnail",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],RI.prototype,"isPreviewLoading",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.P("design:type",Object)],RI.prototype,"isOriginalAspectRatio",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.P("design:type",Object)],RI.prototype,"computedObjectFit",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.P("design:type",Boolean)],RI.prototype,"isLiveVideo",void 0);
_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],RI.prototype,"loaded",void 0);_.N([_.e({computed:"computeOverlayColor(data.thumbnail)"}),_.P("design:type",Object)],RI.prototype,"overlayColor",void 0);_.N([_.e(),_.P("design:type",Boolean)],RI.prototype,"minimizePipBreakages",void 0);_.N([_.e({selector:_.ntL}),_.P("design:type",Boolean)],RI.prototype,"inlinePreviewIsEnabled",void 0);_.N([_.e(),_.P("design:type",Number)],RI.prototype,"width",void 0);
_.N([_.Z("inlinePreviewIsEnabled"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],RI.prototype,"isPreviewDisabled",null);_.N([_.Z("width"),_.P("design:type",String),_.P("design:paramtypes",[])],RI.prototype,"thumbnailSize",null);_.N([_.lc("image-loaded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],RI.prototype,"onImageLoaded",null);
_.N([_.lc("image-unloaded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],RI.prototype,"onImageUnloaded",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-thumbnail"})],RI);
_.Ol()(RI,"ytd-thumbnail",function(){if(I$r===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);I$r=t}t=I$r;return t},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying minimizePipBreakages".split(" "),mode:2});var KyE=function(t){var E=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15311_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15311_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(p){l$W(E,p)};
this.onLockupMouseLeaveFn=function(p){p=p.relatedTarget;var U,x;((U=document.getElementsByTagName("ytd-video-preview"))==null?0:(x=U.item(0))==null?0:x.contains(p))||(E.terminateVideoPreview(),V5(E))};
this.onThumbnailMouseDownFn=function(){E.terminateVideoPreview();V5(E)};
this.onTouchStart=function(){E.JSC$15311_touched=!0};
this.mediaRenderer=t.mediaRenderer;this.thumbnailElement=t.thumbnailElement;this.lockupElement=t.lockupElement;this.videoPreviewOptsInput=t.videoPreviewOpts;Gys(this);Q5(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)):
_.qW(Error("Gh")):_.qW(Error("Hh")):nKf(this)},dI=function(t){nKf(t);
var E;(E=t.lockupElement)==null||E.removeEventListener("mouseenter",t.onMouseMoveFn);var p;(p=t.lockupElement)==null||p.removeEventListener("mouseleave",t.onLockupMouseLeaveFn);var U;(U=t.lockupElement)==null||U.removeEventListener("touchstart",t.onTouchStart);var x;(x=t.thumbnailElement)==null||x.removeEventListener("mousedown",t.onThumbnailMouseDownFn);V5(t)},Gys=function(t){t.inlinePreviewIsEnabledForUser=_.QM().getState().ui.inlinePreviewIsEnabled;
t.unsubscribeFromInlinePreviewIsEnabled=_.EA(_.QM(),_.ntL,function(E){(t.inlinePreviewIsEnabledForUser=E)||V5(t)});
t.JSC$15311_unsubscribeFromInlinePreviewIsActive=_.EA(_.QM(),_.GWt,function(E){(t.inlinePreviewIsActive=E)||V5(t)})},nKf=function(t){t.unsubscribeFromInlinePreviewIsEnabled();
t.unsubscribeFromInlinePreviewIsEnabled=function(){};
t.JSC$15311_unsubscribeFromInlinePreviewIsActive();t.JSC$15311_unsubscribeFromInlinePreviewIsActive=function(){}},l$W=function(t,E){E.buttons>0||(E=_.z3("kevlar_lockup_hover_delay",-1),t.JSC$15311_touched&&E>=0?(_.ir.cancelJob(t.videoPreviewJobId),t.videoPreviewJobId=_.g4(_.ir,function(){NUW(t)},E),t.JSC$15311_touched=!1):NUW(t))},PxJ=function(t){t.videoPreviewJobId=_.g4(_.ir,function(){return _.q(function(E){return E.yield(Drp(t,{isAutoplay:!0}),0)})})},NUW=function(t){!t.previewTriggered&&Q5(t)&&
(t.inlinePreviewIsActive&&t.terminateVideoPreview(),t.previewTriggered=!0,t.mediaRenderer.isInlinePreviewTriggered=!0,_.ir.cancelJob(t.videoPreviewJobId),t.videoPreviewJobId=_.g4(_.ir,function(){return _.q(function(E){return E.yield(Drp(t),0)})}))},Drp=function(t,E){E=E===void 0?{}:E;
var p=E.isAutoplay===void 0?!1:E.isAutoplay;var U,x,A,m;return _.q(function(b){if(b.nextAddress==1){if(!Q5(t))return b.return();U=t.getVideoPreviewOpts();if(!U)return b.return();p&&(U.isAutoplay=!0);return(A=(x=_.uO(t.mediaRenderer.hostElement,"yt-open-video-preview-action",[U]))&&x[0])?b.yield(x[0],3):b.jumpTo(2)}b.nextAddress!=2&&(A=b.yieldResult===1);if(A){var f=(m=t.mediaRenderer)==null?void 0:m.data;f&&($N_(f)?delete f.inlinePlayerData:"inlinePlaybackEndpoint"in f&&delete f.inlinePlaybackEndpoint)}_.Do(b)})};
KyE.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var t,E;if((E=(t=this.videoPreviewOptsInput)==null?void 0:t.videoPreviewData)!=null)t=E;else if(t=this.mediaRenderer.data)if($N_(t))t={inlinePlaybackEndpoint:_.AJ(t.inlinePlayerData.onVisible),navigationEndpoint:_.AJ(t.onTap),thumbnail:"image"in t?t.image:t.thumbnail,thumbnailOverlays:void 0,accessibilityText:Wy_(t)};else if("multipleInlinePlaybackEndpoint"in t){var p=_.k(_.k(t.multipleInlinePlaybackEndpoint,Goo),nFr);if(p!=
null&&p.playerDescriptors){E=[];p=_.M(p.playerDescriptors);for(var U=p.next();!U.done;U=p.next())U=U.value,E.push({inlinePlaybackEndpoint:U.inlinePlaybackEndpoint,navigationEndpoint:U.navigationEndpoint,thumbnail:U.thumbnail,thumbnailOverlays:U.thumbnailOverlays,accessibilityText:Wy_(t)});t=E}else t=void 0}else t={inlinePlaybackEndpoint:t.inlinePlaybackEndpoint,navigationEndpoint:t.navigationEndpoint,thumbnail:t.thumbnail,thumbnailOverlays:t.thumbnailOverlays,accessibilityText:Wy_(t)};else t=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:t,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var Q5=function(t){var E;if(E=t.inlinePreviewIsEnabledForUser)E=(t=t.mediaRenderer.data)?"inlinePlaybackEndpoint"in t&&t.inlinePlaybackEndpoint||$N_(t)&&t.inlinePlayerData||"multipleInlinePlaybackEndpoint"in t&&t.multipleInlinePlaybackEndpoint?!0:!1:!1;return E};
KyE.prototype.terminateVideoPreview=function(){_.du(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var V5=function(t){_.ir.cancelJob(t.videoPreviewJobId);t.inlinePreviewIsActive=!1;t.previewTriggered=!1;t.mediaRenderer.isInlinePreviewTriggered=!1};var sH4=_.CG(["#"]),Ck=function(){var t=_.z.apply(this,arguments)||this;t.isDisabled=!1;return t};
_.u(Ck,_.z);_.Y=Ck.prototype;
_.Y.configureRendererStamper=function(){return{"data.menu":cJ,"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"}}}};
_.Y.attached=function(){this.updateInlinePreviewHoverListeners()};
_.Y.detached=function(){this.clearInlinePreviewHoverListeners()};
_.Y.getMetadata=function(t){var E=[];if(t.metadataText&&Object.keys(t.metadataText).length>0){var p=this.ytRendererBehavior.getSimpleString(t.metadataText);t.upcomingEventData&&t.upcomingEventData.upcomingEventText&&(p=_.$1(p,Number(t.upcomingEventData.startTime)));E.push(p)}else t.shortViewCountText&&E.push(this.ytRendererBehavior.getSimpleString(t.shortViewCountText)),t.publishedTimeText&&E.push(this.ytRendererBehavior.getSimpleString(t.publishedTimeText)),t.upcomingEventData&&t.upcomingEventData.upcomingEventText&&
(p=this.ytRendererBehavior.getSimpleString(t.upcomingEventData.upcomingEventText),E.push(_.$1(p,Number(t.upcomingEventData.startTime))));return E};
_.Y.calculateBylineText=function(t){return t.shortBylineText?t.shortBylineText:t.bylineText?t.bylineText:null};
_.Y.calculateIsDisabled=function(t){return!!t.isDisabled};
_.Y.computeHrefWithDefault=function(t){return this.ytComponentBehavior.computeHref_(t)||_.kcO(sH4)};
_.Y.onDetailsTap=function(t){var E=this.data&&this.data.navigationEndpoint;E&&!_.Qb(_.Vx(t)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.r("kevlar_grid_video_renderer_killswitch")?_.kT(this.hostElement,"yt-navigate",{endpoint:E}):this.ytComponentBehavior.resolveCommand(E))};
_.Y.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.Y.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15318_inlinePreviewHoverListener=xj({mediaRenderer:this,lockupElement:_.ZN(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.ZN(this.hostElement).querySelector("ytd-thumbnail")})};
_.Y.clearInlinePreviewHoverListeners=function(){var t;(t=this.JSC$15318_inlinePreviewHoverListener)==null||dI(t)};
_.Y.computeThumbnailWidth=function(t,E){return E&&E>0?E:t?360:210};
_.Y.computeNumBadgesInRow=function(t){var E;return((E=t.badges)==null?void 0:E.length)||0};
_.Y.computeShowChannelThumbnail=function(t,E){var p;return E&&!!(t==null?0:(p=t.channelThumbnailSupportedRenderers)==null?0:p.channelThumbnailWithLinkRenderer)};
_.aE.Object.defineProperties(Ck.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.JSC$15318_inlinePreviewHoverListener)==null?0:Q5(t))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
Ck.prototype.dataChanged=Ck.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ck.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Ck.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Ck.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],Ck.prototype,"ytdDismissibleItemBehavior",void 0);
_.N([_.g(_.dy),_.P("design:type",Object)],Ck.prototype,"ytdLockupBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],Ck.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Ck.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Boolean)],Ck.prototype,"noEndpoints",void 0);_.N([_.e({computed:"calculateBylineText(data)"}),_.P("design:type",Object)],Ck.prototype,"bylineText",void 0);
_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Ck.prototype,"isSearch",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Ck.prototype,"isDownloading",void 0);_.N([_.e({reflectToAttribute:!0,value:0}),_.P("design:type",Number)],Ck.prototype,"width",void 0);_.N([_.e({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.P("design:type",Object)],Ck.prototype,"isDisabled",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ck.prototype,"dataChanged",null);_.N([_.Z("lockupIsHovered"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Ck.prototype,"isHovered",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Ck.prototype,"hasAttributedBylineText",null);
_.N([_.Z("bylineText","hasAttributedBylineText"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Ck.prototype,"showBylineText",null);_.N([_.Ul({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],Ck);
_.G(Ck,"ytd-grid-video-renderer",function(){if(BUZ!==void 0)return BUZ;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return BUZ=t},{mode:_.hX("kevlar_poly_si_batch_j047")?1:2});var Lcs;var jm=function(){var t=_.z.apply(this,arguments)||this;t.roundedContainer=!0;t.skipRoundingTop=!1;t.disableTopPadding=!1;t.amsterdamEnabled=_.r("enable_desktop_amsterdam_info_panels");t.extractOverlay=!1;return t};
_.u(jm,_.z);jm.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
jm.prototype.onClick=function(t){var E,p=(E=this.data)==null?void 0:E.sourceEndpoint;!_.Qb(_.Vx(t),this.hostElement,["A".toString()])&&p&&_.kT(this.hostElement,"yt-navigate",{endpoint:p})};
_.aE.Object.defineProperties(jm.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 t;return!((t=this.data)==null||!t.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var t,E;return(E=(t=this.data)==null?void 0:t.paragraphMaxLines)!=null?E:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],jm.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],jm.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],jm.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],jm.prototype,"showVerticalDividers",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],jm.prototype,"roundedContainer",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],jm.prototype,"skipRoundingTop",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],jm.prototype,"disableTopPadding",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],jm.prototype,"amsterdamEnabled",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],jm.prototype,"extractOverlay",void 0);
_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],jm.prototype,"showMetadataAtTop",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],jm.prototype,"showMetadataBelowTitle",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data.menu"),_.P("design:type",Object),_.P("design:paramtypes",[])],jm.prototype,"hasMenu",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("data.truncateParagraphs"),_.P("design:type",Object),_.P("design:paramtypes",[])],jm.prototype,"truncateParagraphs",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data.paragraphMaxLines"),_.P("design:type",Number),_.P("design:paramtypes",[])],jm.prototype,"paragraphMaxLines",null);
_.N([_.e({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Z("data.background"),_.P("design:type",Object),_.P("design:paramtypes",[])],jm.prototype,"background",null);_.N([_.Ul({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],jm);
_.G(jm,"ytd-info-panel-content-renderer",function(){if(Lcs!==void 0)return Lcs;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Lcs=t},{mode:_.hX("kevlar_poly_si_batch_j076")?1:2});var P_3;var TUW;var oKf;var WcZ;var rp=function(){return _.z.apply(this,arguments)||this};
_.u(rp,_.z);rp.prototype.computeStyle=function(t){return t};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],rp.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],rp.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.P("design:type",String)],rp.prototype,"style_",void 0);_.N([_.p4({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],rp);
_.G(rp,"yt-channel-thumbnail-with-link-renderer",function(){if(WcZ===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;oKf===void 0&&(oKf=document.createElement("template"));var U=oKf;p.call(E,U.content.cloneNode(!0),t.content.firstChild);WcZ=t}t=WcZ;return t},{mode:2});var kl=function(){return _.z.apply(this,arguments)||this};
_.u(kl,_.z);kl.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"}}}};
kl.prototype.computeTitleStyle=function(t){return t||null};
kl.prototype.computeAvatarStyle=function(t){return t||null};
kl.prototype.computeShowNavigationButton=function(t,E){return!(t==null||!t.navigationButton||E)};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],kl.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],kl.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],kl.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.P("design:type",String)],kl.prototype,"titleStyle",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.P("design:type",String)],kl.prototype,"avatarStyle",void 0);_.N([_.e(),_.P("design:type",Boolean)],kl.prototype,"hideNavigationButton",void 0);_.N([_.Ul({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],kl);
_.G(kl,"ytd-rich-list-header-renderer",function(){if(TUW!==void 0)return TUW;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return TUW=t},{mode:_.hX("kevlar_poly_si_batch_j058")?1:2});var dp=function(){return _.z.apply(this,arguments)||this};
_.u(dp,_.z);dp.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]]"}}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],dp.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],dp.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],dp.prototype,"data",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],dp.prototype,"isSearch",void 0);_.N([_.Ul({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],dp);
_.G(dp,"ytd-preview-card-renderer",function(){if(P_3!==void 0)return P_3;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return P_3=t},{mode:1});var $ro;var uS=function(){return _.z.apply(this,arguments)||this};
_.u(uS,_.z);uS.prototype.configureRendererStamper=function(){return{"data.menu":cJ}};
uS.prototype.dataChanged=function(){var t=this.get("colorExtractionPalette.section1Color",this.data);t=_.SL(t);_.eU(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":t})};
uS.prototype.computeCardStyle=function(t){return this.get("style.value",t)||null};
uS.prototype.dataChanged=uS.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],uS.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],uS.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],uS.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],uS.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.P("design:type",String)],uS.prototype,"cardStyle",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uS.prototype,"dataChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],uS);
_.G(uS,"ytd-compact-channel-recommendation-card-renderer",function(){if($ro!==void 0)return $ro;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return $ro=t},{mode:1});var Kc4;var vKX;var Jc=function(){var t=_.z.apply(this,arguments)||this;t.alignAuto=!1;t.collapsed=!0;t.isToggled=!1;t.alwaysCollapsed=!1;t.canToggle=!0;t.collapsedHeight=80;t.disableToggle=!1;t.alwaysToggleable=!1;t.reversed=!1;t.shouldUseNumberOfLines=!1;t.recomputeOnResize=!1;t.canToggleJobId=0;t.lastReversed=!1;return t};
_.u(Jc,_.z);_.Y=Jc.prototype;_.Y.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.Y.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.Y.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var t=_.ZN(this.hostElement),E=t.childNodes,p=document.createDocumentFragment(),U=t.childNodes.length-1;U>=0;U--)_.ZN(p).appendChild(E[U]);_.r("enable_shadydom_free_scoped_node_methods")?_.OU(this.hostElement).appendChild(p):t.appendChild(p)}};
_.Y.ready=function(){var t=this;_.iR(function(){t.initChildrenObserver()},1)};
_.Y.attached=function(){var t;(t=this.resizeObserver)==null||t.observe(this.content)};
_.Y.detached=function(){this.detachObserver()};
_.Y.toggle=function(t,E){this.canToggle&&(this.isToggled=E,_.kT(this.hostElement,"yt-refit"),t&&t.stopPropagation())};
_.Y.reset=function(){this.childrenChanged()};
_.Y.onIronResize=function(){this.recomputeOnResize&&!_.r("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.Y.computeIsMoreVisible=function(t,E){return t&&!E};
_.Y.computeShouldUseNumberOfLines=function(t){try{return!!t&&window.CSS.supports("-webkit-line-clamp","1")}catch(E){}return!1};
_.Y.computeIsLessVisible=function(t,E){return t&&E};
_.Y.observeCollapsedHeightAndMaxLines=function(){var t=this.collapsedHeight,E=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.eU(this.hostElement,{"--ytd-expander-max-lines":""+E,"--ytd-expander-collapsed-height":""}):_.eU(this.hostElement,{"--ytd-expander-collapsed-height":t+"px","--ytd-expander-max-lines":""})};
_.Y.handleMoreTap=function(t){this.disableToggle||(_.kT(this.hostElement,"yt-expander-more-tapped"),this.toggle(t,!0))};
_.Y.handleLessTap=function(t){_.kT(this.hostElement,"yt-expander-less-tapped");this.toggle(t,!1)};
_.Y.initChildrenObserver=function(){var t=this;this.observer=new MutationObserver(function(){t.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.r("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.F5(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var E;(E=t.resizeThrottle)==null||E.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.Y.childrenChanged=function(){var t=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){IC(function(){t.canToggleJobId=0;t.calculateCanCollapse()})}))};
_.Y.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};
_.Y.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.Y.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IU("collapsed-changed",this.collapsed))};
_.Y.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IU("is-toggled-changed",this.isToggled))};
_.Y.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IU("can-toggle-changed",this.canToggle))};
_.aE.Object.defineProperties(Jc.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
Jc.prototype.canToggleChangedForBinding=Jc.prototype.canToggleChangedForBinding;Jc.prototype.isToggledChangedForBinding=Jc.prototype.isToggledChangedForBinding;Jc.prototype.collapsedChangedForBinding=Jc.prototype.collapsedChangedForBinding;Jc.prototype.observeCollapsedHeightAndMaxLines=Jc.prototype.observeCollapsedHeightAndMaxLines;Jc.prototype.onIronResize=Jc.prototype.onIronResize;Jc.prototype.reversedChanged=Jc.prototype.reversedChanged;Jc.prototype.toggledChanged=Jc.prototype.toggledChanged;
Jc.prototype.alwaysToggleableChanged=Jc.prototype.alwaysToggleableChanged;_.N([_.g(_.Ev),_.P("design:type",Object)],Jc.prototype,"ironResizableBehavior",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Jc.prototype,"alignAuto",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Jc.prototype,"collapsed",void 0);_.N([_.e(),_.P("design:type",Object)],Jc.prototype,"isToggled",void 0);_.N([_.e(),_.P("design:type",Object)],Jc.prototype,"alwaysCollapsed",void 0);
_.N([_.e(),_.P("design:type",Object)],Jc.prototype,"canToggle",void 0);_.N([_.e(),_.P("design:type",Object)],Jc.prototype,"collapsedHeight",void 0);_.N([_.e(),_.P("design:type",Object)],Jc.prototype,"disableToggle",void 0);_.N([_.e(),_.P("design:type",Object)],Jc.prototype,"alwaysToggleable",void 0);_.N([_.e(),_.P("design:type",Object)],Jc.prototype,"reversed",void 0);_.N([_.e(),_.P("design:type",Number)],Jc.prototype,"maxNumberOfLines",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.P("design:type",Object)],Jc.prototype,"shouldUseNumberOfLines",void 0);_.N([_.e(),_.P("design:type",Object)],Jc.prototype,"recomputeOnResize",void 0);_.N([_.Nl("#content"),_.P("design:type",HTMLDivElement)],Jc.prototype,"content",void 0);_.N([_.P3("alwaysToggleable"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Jc.prototype,"alwaysToggleableChanged",null);
_.N([_.P3("isToggled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Jc.prototype,"toggledChanged",null);_.N([_.Z("canToggleJobId"),_.P("design:type",Object),_.P("design:paramtypes",[])],Jc.prototype,"isResetting",null);_.N([_.GI("reversed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Jc.prototype,"reversedChanged",null);
_.N([_.lc("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Jc.prototype,"onIronResize",null);_.N([_.GI("maxNumberOfLines","collapsedHeight"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Jc.prototype,"observeCollapsedHeightAndMaxLines",null);_.N([_.GI("collapsed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Jc.prototype,"collapsedChangedForBinding",null);
_.N([_.GI("isToggled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Jc.prototype,"isToggledChangedForBinding",null);_.N([_.GI("canToggle"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Jc.prototype,"canToggleChangedForBinding",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-expander"})],Jc);
_.G(Jc,"ytd-expander",function(){if(vKX!==void 0)return vKX;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return vKX=t},{mode:1});var II=function(){return _.z.apply(this,arguments)||this};
_.u(II,_.z);II.prototype.computeIsCarousel=function(t){return!!t.isCarousel};
II.prototype.observeLightsourcePalette=function(){var t,E=(t=this.data)==null?void 0:t.vibrantsourceColorPaletteData;E&&_.$2(this.hostElement,E)};
II.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
II.prototype.observeLightsourcePalette=II.prototype.observeLightsourcePalette;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],II.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],II.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],II.prototype,"data",void 0);_.N([_.e({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],II.prototype,"isCarousel",void 0);
_.N([_.GI("data.vibrantsourceColorPaletteData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],II.prototype,"observeLightsourcePalette",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],II);
_.G(II,"ytd-media-upsell-renderer",function(){if(Kc4!==void 0)return Kc4;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Kc4=t},{mode:2});var y$0;var gp=function(){var t=_.z.apply(this,arguments)||this;t.JSC$15345_playerEvents=new Map;t.listeningToPlayer=!1;t.startX=0;t.active=!1;t.shouldShowButtons=_.r("web_buttons_hidden_killswitch");t.isHighlighted=!1;t.useHighlightStyling=_.r("web_enable_deeper_metadata_highlight_styling");t.enableProblemWalkthrough=_.r("problem_walkthrough_sd");return t};
_.u(gp,_.z);_.Y=gp.prototype;
_.Y.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}}}}}};
_.Y.created=function(){this.JSC$15345_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.Y.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.zI(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.zI(this,this.onActiveUpdate))};
_.Y.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.zI(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.zI(this,this.onActiveUpdate))};
_.Y.onDataChanged=function(){this.removePlayerListeners()};
_.Y.onColorPaletteChange=function(){var t={},E;if(_.me()==="USER_INTERFACE_THEME_DARK"&&((E=this.data)==null?0:E.darkColorPalette)){var p=this.data.darkColorPalette;t["--ytd-macro-markers-list-item-background-color"]=_.cL(this.get("section2Color",p))}else{var U;_.me()==="USER_INTERFACE_THEME_LIGHT"&&((U=this.data)==null?0:U.lightColorPalette)&&(p=this.data.lightColorPalette,t["--ytd-macro-markers-list-item-background-color"]=_.cL(this.get("section3Color",p)))}p?(t["--ytd-macro-markers-list-item-title-color"]=
_.cL(this.get("primaryTitleColor",p)),t["--ytd-macro-markers-list-item-secondary-color"]=_.cL(this.get("secondaryTitleColor",p)),t["--ytd-macro-markers-list-item-timestamp-background-color"]=_.cL(this.get("section1Color",p)),this.customButtonProperties={customColors:{color:_.cL(this.get("primaryTitleColor",p))}},this.useColorSampling=!0):(t["--ytd-macro-markers-list-item-background-color"]="initial",t["--ytd-macro-markers-list-item-title-color"]="initial",t["--ytd-macro-markers-list-item-secondary-color"]=
"initial",t["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.eU(this.hostElement,t)};
_.Y.onEndpointMouseDown=function(t){this.startX=t.clientX};
_.Y.onEndpointClick=function(t){var E=this,p,U,x;return _.q(function(A){if(A.nextAddress==1){if(E.startX!==t.clientX)return t.preventDefault(),A.return();E.data&&E.ytRendererBehavior.logExplicitClick(E.data);if(!E.seekWithAnimationOnClick)return A.jumpTo(0);if(t.button!==0||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||_.Qb(_.Vx(t),E.hostElement,["BUTTON".toString()]))return A.return();t.stopPropagation();t.preventDefault();return E.data?A.yield(_.dG().getPlayerPromise(),3):A.return()}p=A.yieldResult;
x=(U=_.k(E.data.onTap,_.HD))==null?void 0:U.startTimeSeconds;x!==void 0&&p.seekToTimeWithAnimation(x*1E3,_.R4(E.data.title));_.Do(A)})};
_.Y.computeLayout=function(t){return t};
_.Y.computeIsHighlighted=function(t){return!!t};
_.Y.computeCarouselType=function(t){return t};
_.Y.hideCarousel=function(t){return this.hideThumbnail(t)};
_.Y.hideThumbnail=function(t){return this.enableProblemWalkthrough&&t!==null&&t==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.Y.onRepeatButtonToggle=function(t){var E=this;t.detail.toggled&&_.dG().getPlayerPromise().then(function(p){E.ytPlayerListenerBehavior.listenToPlayerEvents(p,E.JSC$15345_playerEvents);E.listeningToPlayer=!0})};
_.Y.onLoopRangeChange=function(t){var E=_.ZN(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(E){var p=E.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",E.polymerController.data);if(p){var U=Number(p.endTimeMs);if(Number(p.startTimeMs)!==(t==null?void 0:t.startTimeMs)||U!==(t==null?void 0:t.endTimeMs))E.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.Y.removePlayerListeners=function(){var t=this;this.listeningToPlayer&&_.dG().getPlayerPromise().then(function(E){t.ytPlayerListenerBehavior.unlistenFromPlayerEvents(E,t.JSC$15345_playerEvents);t.listeningToPlayer=!1})};
_.Y.onActiveUpdate=function(t){this.active=t.detail.active};
gp.prototype.onColorPaletteChange=gp.prototype.onColorPaletteChange;gp.prototype.onDataChanged=gp.prototype.onDataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],gp.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],gp.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.JT.YtPlayerListenerBehavior),_.P("design:type",_.Il)],gp.prototype,"ytPlayerListenerBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],gp.prototype,"data",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],gp.prototype,"useCustomColors",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],gp.prototype,"active",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],gp.prototype,"shouldShowButtons",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.P("design:type",String)],gp.prototype,"layout",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.P("design:type",Object)],gp.prototype,"isHighlighted",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],gp.prototype,"useHighlightStyling",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],gp.prototype,"enableProblemWalkthrough",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.P("design:type",String)],gp.prototype,"carouselType",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],gp.prototype,"useColorSampling",void 0);_.N([_.e(),_.P("design:type",Boolean)],gp.prototype,"seekWithAnimationOnClick",void 0);_.N([_.e(),_.P("design:type",Object)],gp.prototype,"customButtonProperties",void 0);
_.N([_.Nl("#repeat-button"),_.P("design:type",HTMLElement)],gp.prototype,"repeatButton",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gp.prototype,"onDataChanged",null);_.N([_.GI("data.lightColorPalette","data.darkColorPalette"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gp.prototype,"onColorPaletteChange",null);
_.N([_.Ul({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],gp);
_.G(gp,"ytd-macro-markers-list-item-renderer",function(){if(y$0!==void 0)return y$0;var t=document.createElement("template");_.J(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return y$0=t},{mode:1});var Sor;var c$s;var Z7=function(){return _.z.apply(this,arguments)||this};
_.u(Z7,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Z7.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Z7.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],Z7);
_.G(Z7,"ytd-title-and-button-list-header-renderer",function(){if(c$s!==void 0)return c$s;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return c$s=t},{mode:1});var t0r;var EUr=new _.gM("BUTTON_RENDERER_TOKEN");_.OM=_.l(function(t){var E=_.X3().resolve(EUr);return _.H(E,Object.assign({},t,{overrides:t.buttonOverrides}))},"Ya");var pP0=_.l(function(t){var E=t.data,p=_.Ql(t.useSquareAspectRatio,!1);return _.H("dismissed-mini-game-card-view-model",null,_.H(_.w,{cond:function(){var U,x;return(U=E().responseText)==null?void 0:(x=U.runs)==null?void 0:x.length},
then:function(){var U={};return _.H("div",{class:_.X5("yt-mini-game-card-view-model__dismissed-card",(U["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!p()},U["yt-mini-game-card-view-model--dismissed-portrait-card-2by3-aspect-ratio"]=function(){return!!_.r("web_game_card_force_2_by_3")},U["yt-mini-game-card-view-model--dismissed-square-card"]=p,U))},_.H("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.H(_.w,{cond:function(){return E().responseText.runs[0].text},
then:function(x){return _.H("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:x},x)}}),_.H(_.sY,{data:function(){return E().buttons}},{buttonRenderer:_.OM,
buttonViewModel:_.D5})))}}))},"Za");var Uto=_.l(function(t){var E=t.data;return _.H("br-nz-badge-shape",{class:_.X5(function(){return vQ0(E().brNzRatingBadgeType)}),
role:function(){return E().accessibilityText?"img":void 0},
"aria-label":function(){return E().accessibilityText}},function(){var p;
return(p=E())==null?void 0:p.text})},"$a");_.XN=_.l(function(t){var E=function(){var p=t.data(),U,x,A,m,b;if(p){var f=!((U=t.workaroundShortsIsThumbnailBadge)==null||!U.call(t));U=(x=t.modern)==null?void 0:x.call(t);x=(A=t.numBadgesInRow)==null?void 0:A.call(t);A=(m=t.clipTextOverflow)==null?void 0:m.call(t);m=(b=t.inheritTypography)==null?void 0:b.call(t);var B;a:switch(p.badgeStyle){case "BADGE_OVERLAY":b=!0;break a;default:b=!1}p={type:f?17:ymK(p.badgeStyle),brNzRatingBadgeType:Ss8(p.badgeStyle),text:p.badgeText,icon:p.iconName,isOverlay:b,
modern:U||_.r("web_modern_badge_view_model"),accessibilityText:p.accessibilityLabel||((B=_.k(p.rendererContext,_.PY))==null?void 0:B.label),numBadgesInRow:x,clipTextOverflow:A,shouldInheritTypography:m}}else p=void 0;return p};
return _.H("yt-badge-view-model",{class:_.X5("ytBadgeViewModelHost",t.class)},_.H(_.SC,null,_.H(_.Kw,{when:function(){var p;return!((p=E())==null||!p.brNzRatingBadgeType)}},function(){return _.H(Uto,{data:function(){return E()}})}),_.H(_.Kw,{when:function(){return!!E()&&!E().brNzRatingBadgeType}},function(){return _.H(_.CZ,{data:function(){return E()}})})))},"ab");
_.XN.idomCompat=!0;var qDr=_.l(function(t){t=_.C4(t,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var E=t.data,p=t.useFullWidth,U=t.isDesktopWeb,x=t.addSearchResultTopMargin,A=function(){return E().layout},m=function(){return E().title},b=function(){return E().metadataText?E().metadataText:E().genre},f=function(){return E().channelName},B=function(){return E().image},R=function(){return E().colorPalette},V=function(){return E().actionButton},Q=function(){return E().overflowButton},
C=function(){return E().avatar},d=function(){return E().ageRating},I=function(){var L={};
L=_.X5("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(L["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return U()},L));
return _.H("div",{class:L},_.H(xto,{imageData:B,colorPalette:R}),_.H(AqT,{onTap:function(){return E().onTap},
imageData:B,accessibilityText:function(){return E().accessibilityText},
overlayBadgeText:function(){return E().overlayBadgeText},
iconName:function(){return E().iconName},
unplayableInlinePlaybackIconName:function(){return E().unplayableInlinePlaybackIconName},
isDesktopWeb:U}),_.H(_.w,{cond:function(){return!U()},
then:function(){return _.H(_.Oj,null,_.H(YDp,{layout:A,colorPalette:R,isDesktopWeb:U,overflowButton:Q,avatar:C,onTap:function(){return E().onTap},
genre:b,title:m,channelName:f}),_.H(M0T,{actionButton:V}))}}))},O=function(){var L={};
L=_.X5((L["yt-mini-game-card-view-model--search-result-desktop"]=function(){return U()},L["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!U()},L["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return x()},L));
return _.H("div",{class:L},I(),_.H(mtG,{description:function(){return E().description},
isDesktopWeb:U,title:m,genre:b,onTap:function(){return E().onTap},
actionButton:V,overflowButton:Q,avatar:C,channelName:f}))},a=function(){var L={};
L=_.X5("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(L["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return U()},L["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return U()&&E().width===135},L["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return U()},L["yt-mini-game-card-view-model--big-metadata-font"]=function(){return E().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},L["yt-mini-game-card-view-model--use-full-width"]=
function(){return p()},L["yt-mini-game-card-view-model--portrait-card-force-2by3-aspect-ratio"]=function(){return!!_.r("web_game_card_force_2_by_3")},L));
return _.H("div",{class:L},_.H(b23,{colorPalette:R,isDesktopWeb:U,onTap:function(){return E().onTap},
accessibilityText:function(){return E().accessibilityText},
overlayBadgeText:function(){return E().overlayBadgeText},
iconName:function(){return E().iconName},
unplayableInlinePlaybackIconName:function(){return E().unplayableInlinePlaybackIconName},
actionButton:V,imageData:B}),_.H(YDp,{layout:A,colorPalette:R,isDesktopWeb:U,overflowButton:Q,avatar:C,onTap:function(){return E().onTap},
genre:b,title:m,channelName:f}),_.H(_.w,{cond:d,then:function(D){return _.H(i24,{ageRating:D})}}))},F=function(){var L={};
L=_.X5("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(L["yt-mini-game-card-view-model--square-card-desktop"]=function(){return U()},L["yt-mini-game-card-view-model--use-full-width"]=function(){return p()},L));
return _.H("div",{class:L},_.H(AqT,{onTap:function(){return E().onTap},
imageData:B,accessibilityText:function(){return E().accessibilityText},
overlayBadgeText:function(){return E().overlayBadgeText},
iconName:function(){return E().iconName},
unplayableInlinePlaybackIconName:function(){return E().unplayableInlinePlaybackIconName},
isDesktopWeb:U}),_.H(YDp,{layout:A,colorPalette:R,isDesktopWeb:U,overflowButton:Q,avatar:C,onTap:function(){return E().onTap},
genre:b,title:m,channelName:f}),_.H(_.w,{cond:d,then:function(D){return _.H(i24,{ageRating:D})}}))};
return _.H("mini-game-card-view-model",{class:t.className},_.H(_.SC,null,_.H(_.Kw,{when:function(){return A()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return a()}),_.H(_.Kw,{when:function(){return A()==="MINI_APP_LAYOUT_SQUARE"}},function(){return F()}),_.H(_.Kw,{when:function(){return A()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return O()})))},"bb");
qDr.idomCompat=!0;var M0T=_.l(function(t){var E=_.Ql(t.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.H(_.sY,{data:t.actionButton},{buttonViewModel:function(p){return _.H("div",{class:E},_.H(_.D5,{data:p.data}))}})},"cb"),AqT=_.l(function(t){var E=t.onTap;
var p=t.imageData;var U=t.accessibilityText;var x=t.overlayBadgeText;var A=t.iconName;var m=t.unplayableInlinePlaybackIconName;t=t.isDesktopWeb;return _.H(_.zn,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:E},_.H(_.Q9,{data:p,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(U==null?void 0:U())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.H(H2Z,{overlayBadgeText:x,iconName:A,unplayableInlinePlaybackIconName:m,isDesktopWeb:t}))},"db"),H2Z=_.l(function(t){var E=t.overlayBadgeText;
var p=t.iconName;var U=t.unplayableInlinePlaybackIconName;var x=t.isDesktopWeb;return _.H("div",{class:"yt-mini-game-card-view-model__badge-container"},_.H(_.w,{cond:p,then:function(A){return _.H("div",{class:"yt-mini-game-card-view-model__badge"},_.H("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.H(_.lz,{icon:A,className:"yt-mini-game-card-view-model__icon",size:12}),_.H("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},E)))}}),_.H(_.w,{cond:function(){return!p()&&
E()},
then:function(){return _.H("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},E)}}),_.H(_.w,{cond:function(){return U()&&x()},
then:function(){return _.H("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.H(_.lz,{icon:U,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"eb"),xto=_.l(function(t){var E=t.colorPalette;
var p=t.imageData;var U=function(){return E().vibrantColorPalette?E().vibrantColorPalette.section2Color:E().sectionTwoColor};
return _.H(_.Oj,null,_.H("div",{class:"yt-mini-game-card-view-model__background-base",style:_.zO({"background-color":function(){return t2(U(),"1")}})}),_.H("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.zO({"background-image":function(){return"url("+p().sources[0].url+")"}})}),_.H("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.zO({background:function(){return"linear-gradient(180deg,\n    "+t2(U(),".8")+" 0%,\n    "+t2(U(),".4")+" 25%,\n    "+t2(E().vibrantColorPalette?E().vibrantColorPalette.section4Color:E().sectionFourColor,".8")+" 100%)"}})}))},"fb"),YDp=_.l(function(t){var E=t.layout;
var p=t.colorPalette;var U=t.overflowButton;var x=t.avatar;var A=t.onTap;var m=t.title;var b=t.channelName;var f=t.genre;var B=function(){var R;return E()!=="MINI_APP_LAYOUT_SQUARE"&&((R=p())==null?0:R.textPrimaryColor)?"color: "+t2(p().textPrimaryColor,".7"):""};
return _.H("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.H(_.w,{cond:x,then:function(){return _.H("div",{class:"yt-mini-game-card-view-model__avatar"},_.H(_.sY,{data:x},{avatarViewModel:_.fk}))}}),_.H(_.zn,{command:A,
className:"yt-mini-game-card-view-model__metadata-details"},_.H("h3",{class:"yt-mini-game-card-view-model__title",title:m},m),_.H(_.w,{cond:x,then:function(){return _.H("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.H("span",{class:"yt-mini-game-card-view-model__genre",title:b,style:B},b),_.H("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:B},f))},
else:function(){return _.H("span",{class:"yt-mini-game-card-view-model__genre",title:f},f)}})),_.H("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.H(_.sY,{data:U},{buttonViewModel:function(R){var V=R.data;
return _.H(_.D5,{data:function(){return Object.assign({},V(),{customFontColor:E()==="MINI_APP_LAYOUT_SINGLETON"?V().customFontColor:void 0})}})}})))},"gb"),b23=_.l(function(t){var E=t.colorPalette;
var p=t.isDesktopWeb;var U=t.onTap;var x=t.accessibilityText;var A=t.overlayBadgeText;var m=t.iconName;var b=t.unplayableInlinePlaybackIconName;var f=t.actionButton;t=t.imageData;return _.H("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.H(xto,{imageData:t,colorPalette:E}),_.H(AqT,{onTap:U,imageData:t,accessibilityText:x,overlayBadgeText:A,iconName:m,unplayableInlinePlaybackIconName:b,isDesktopWeb:p}),_.H(_.w,{cond:function(){return f==null?void 0:f()},
then:function(){return _.H(M0T,{actionButton:f})}}))},"hb"),mtG=_.l(function(t){var E=t.description;
var p=t.isDesktopWeb;var U=t.title;var x=t.genre;var A=t.onTap;var m=t.actionButton;var b=t.overflowButton;var f=t.avatar;t=t.channelName;var B={};B=_.X5("yt-mini-game-card-view-model--search-result-metadata-wrapper",(B["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=p,B["yt-mini-game-card-view-model--show-unplayable-on-hover"]=p,B["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!p()},B));
var R={};R=_.X5("yt-mini-game-card-view-model__search-result-info-row",(R["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!p()},R));
return _.H("div",{class:B},_.H("div",{class:R},_.H(_.zn,{command:A,className:"yt-mini-game-card-view-model__metadata-details"},_.H("h3",{class:"yt-mini-game-card-view-model__title",title:U},U),_.H("span",{class:"yt-mini-game-card-view-model__genre",title:x},x)),_.H(M0T,{actionButton:m,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.H("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.H(_.sY,{data:b},{buttonViewModel:_.D5}))),_.H("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.H("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.H("div",{class:"yt-mini-game-card-view-model__avatar"},_.H(_.sY,{data:f},{avatarViewModel:function(V){var Q=V.data;return _.H(_.fk,{data:function(){return Object.assign({},Q(),{avatarImageSize:p()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.H(_.zn,{command:A,
className:"yt-mini-game-card-view-model__description"},_.H("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},t)),_.H(_.zn,{command:A,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.H("div",null)))),_.H(_.w,{cond:p,then:function(){return _.H(_.zn,{command:A,className:"yt-mini-game-card-view-model__description"},E)}}))},"ib"),i24=_.l(function(t){var E=t.ageRating;
return _.H("div",{class:"yt-mini-game-card-view-model__age-rating-wrapper"},_.H(_.Q9,{data:function(){return{sources:[{url:E().imageUrl||"",width:16,height:16}]}},
className:"yt-mini-game-card-view-model__age-rating-image",alt:"",targetHeight:16,targetWidth:16,preserveWidth:!0,preserveHeight:!0}),_.H(_.XN,{data:function(){return{badgeText:E().label||"",badgeStyle:"BADGE_MEDIA"}},
modern:!0,class:"yt-mini-game-card-view-model__age-rating-badge",clipTextOverflow:!0}))},"jb");_.k2(qDr,"mini-game-card-view-model",{props:{data:_.uu,className:_.uu,useFullWidth:_.uu,isDesktopWeb:_.uu,addSearchResultTopMargin:_.uu}});_.k2(pP0,"dismissed-mini-game-card-view-model",{props:{data:_.uu,useSquareAspectRatio:_.uu}});var hc=function(){var t=_.z.apply(this,arguments)||this;t.isSearch=!1;t.isRichGrid=!1;return t};
_.u(hc,_.z);_.Y=hc.prototype;_.Y.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.Y.dismissibleItemOnYtServiceRequestSent=function(t,E){E.actions&&this.dismissibleItemProcessActions(t,E.actions)};
_.Y.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.Y.dataChanged=function(){this.dismissibleItemReset()};
_.Y.dismissibleItemProcessActions=function(t,E){for(var p=0;p<E.length;p++){var U=E[p];_.k(U,_.KC)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.k(U,_.KC)),t.stopPropagation())}};
_.Y.dismissibleItemHandleReplaceEnclosingAction=function(t){this.dismissedRenderer=t.item;this.isDismissed=!0};
_.aE.Object.defineProperties(hc.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var t;return!!this.data&&!((t=this.dismissedRenderer)==null?0:t.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.dismissedRenderer)==null||!t.notificationMultiActionRenderer)}}});
hc.prototype.dataChanged=hc.prototype.dataChanged;hc.prototype.dismissibleItemOnRequestSent=hc.prototype.dismissibleItemOnRequestSent;hc.prototype.dismissibleItemOnYtServiceRequestSent=hc.prototype.dismissibleItemOnYtServiceRequestSent;_.N([_.e(),_.P("design:type",Object)],hc.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],hc.prototype,"isSearch",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],hc.prototype,"isDismissed",void 0);
_.N([_.e(),_.P("design:type",Object)],hc.prototype,"dismissedRenderer",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],hc.prototype,"isRichGrid",void 0);_.N([_.Z("data.layout"),_.P("design:type",Object),_.P("design:paramtypes",[])],hc.prototype,"useSquareAspectRatio",null);_.N([_.Z("data","dismissedRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],hc.prototype,"showCard",null);
_.N([_.Z("data","dismissedRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],hc.prototype,"showDismissed",null);_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.m8]),_.P("design:returntype")],hc.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.N([_.lc("yt-service-request-sent-button-renderer"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],hc.prototype,"dismissibleItemOnRequestSent",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],hc.prototype,"dataChanged",null);_.N([_.p4({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],hc);
_.G(hc,"ytd-mini-game-card-view-model",function(){if(t0r!==void 0)return t0r;var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return t0r=t},{mode:_.hX("kevlar_poly_si_batch_j081")?1:2});var fum;var BAW;var aI=function(){return _.ef.apply(this,arguments)||this};
_.u(aI,_.ef);aI.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
aI.prototype.getContinuationUrl=function(t){var E={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(E.itct=this.data.clickTrackingParams);return _.ka(t,E)};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],aI.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],aI.prototype,"data",void 0);_.N([_.p4({is:"yt-reload-continuation",noInjection:!0})],aI);var wPT;var RP3;var em=function(){var t=_.z.apply(this,arguments)||this;t.notificationData={};return t};
_.u(em,_.z);_.Y=em.prototype;_.Y.isMenuExpanded=function(t){return t&&t.length<=1?"undefined":"false"};
_.Y.dataChanged_=function(){this.selected=void 0;var t=this.computeSelectedIndex_(this.data);t>=0&&(this.selected=t);t=this.data&&this.data.length>1;_.XM(this.hostElement,"has-items",t);_.ZN(this.hostElement).querySelector("#label").tabIndex=t?0:-1};
_.Y.onDropdownOpen=function(){var t=_.yL();if(this.parentTrackingParams&&this.data){var E=_.$8(this.parentTrackingParams);this.data.forEach(function(p){t&&E&&p.trackingParams&&(p=_.$8(p.trackingParams),_.Yh(t,E,p),_.bU(t,[p]))})}else this.parentTrackingParams||_.qW(new _.cC("No parent tracking params passed in for yt-dropdown-menu."))};
_.Y.hasNotification=function(t){var E;if(t.targetId&&((E=this.notificationData)==null?0:E.targetId)){var p;return t.targetId===((p=this.notificationData)==null?void 0:p.targetId)}};
_.Y.computeSelectedIndex_=function(t){if(t)for(var E=0,p=t.length;E<p;E++)if(t[E].selected)return E;return-1};
_.Y.computeLabel_=function(t){return this.data&&t!=void 0?this.data[t].title:""};
_.Y.computeShowIcon_=function(t,E){return!E&&!!t};
_.Y.computeVerticalOffset_=function(t){return t?36:0};
_.Y.computeEndpoint_=function(t){return t.endpoint||t.navigationEndpoint};
_.Y.onLabelClick_=function(t){this.data&&this.data.length<=1?t.stopPropagation():this.menuExpanded="true"};
_.Y.onIronActivate_=function(t){t=t.detail.item;var E=_.ZN(this.hostElement).querySelector("#repeat").itemForElement(t);if(E&&E.trackingParams){var p=_.yL(),U=_.$8(E.trackingParams);p&&_.qc(p,U)}if(E&&E.serviceEndpoint)_.r("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(E.serviceEndpoint):_.JZ(this.hostElement,[E.serviceEndpoint]),_.kT(this.hostElement,"yt-playlist-reloading");else a:{if((E=t.querySelector("yt-supported-renderers"))&&
(E=E.rendererElement)&&E.is=="yt-reload-continuation"){E.trigger();break a}(t=t.querySelector("yt-reload-continuation"))&&t.trigger()}};
_.Y.onTap_=function(t){t.preventDefault()};
_.Y.onItemTap_=function(t){this.ytEndpointBehavior.onEndpointTap_(t)};
_.Y.onLinkFocus_=function(t){try{var E=t.target}catch(U){}if(E){var p=E.querySelector("tp-yt-paper-item");p&&_.qd(this,"focus",function(){p.focus()})}};
_.Y.onMenuClose_=function(){this.menuExpanded="false"};
_.Y.isLabelIconActive_=function(t){return t==="true"};
_.Y.computeHasSubtitle_=function(t){return!!t};
_.Y.computeHrefForItem_=function(t){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(t))};
_.Y.updateSelectedFromBinding=function(t){this.selected=t.detail.value};
_.aE.Object.defineProperties(em.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
em.prototype.onMenuClose_=em.prototype.onMenuClose_;em.prototype.onTap_=em.prototype.onTap_;em.prototype.onIronActivate_=em.prototype.onIronActivate_;em.prototype.onDropdownOpen=em.prototype.onDropdownOpen;em.prototype.dataChanged_=em.prototype.dataChanged_;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],em.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.Tn.YtEndpointBehavior),_.P("design:type",Object)],em.prototype,"ytEndpointBehavior",void 0);
_.N([_.e(),_.P("design:type",Array)],em.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],em.prototype,"parentTrackingParams",void 0);_.N([_.e(),_.P("design:type",Object)],em.prototype,"selected",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],em.prototype,"useLabel",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],em.prototype,"useComputedAriaLabel",void 0);_.N([_.e(),_.P("design:type",String)],em.prototype,"icon",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],em.prototype,"iconLabel",void 0);_.N([_.e(),_.P("design:type",String)],em.prototype,"ariaLabel",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],em.prototype,"disabled",void 0);_.N([_.e({computed:"isMenuExpanded(data)"}),_.P("design:type",String)],em.prototype,"menuExpanded",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],em.prototype,"closeOnActivate",void 0);
_.N([_.e({reflectToAttribute:!0,value:_.r("web_modern_buttons")}),_.P("design:type",Boolean)],em.prototype,"modernButtons",void 0);_.N([_.e(),_.P("design:type",Object)],em.prototype,"notificationData",void 0);_.N([_.Z("ariaLabel, selected"),_.e(),_.P("design:type",String),_.P("design:paramtypes",[])],em.prototype,"computedAriaLabel",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],em.prototype,"dataChanged_",null);
_.N([_.lc("paper-dropdown-open"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],em.prototype,"onDropdownOpen",null);_.N([_.lc("iron-activate"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],em.prototype,"onIronActivate_",null);_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],em.prototype,"onTap_",null);
_.N([_.lc("iron-overlay-closed"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],em.prototype,"onMenuClose_",null);_.N([_.p4({is:"yt-dropdown-menu",disableElementRegistration:!0})],em);
_.G(em,"yt-dropdown-menu",function(){if(RP3===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;wPT===void 0&&(wPT=document.createElement("template"));var U=wPT;p.call(E,U.content.cloneNode(!0),t.content.firstChild);RP3=t}t=RP3;return t},{mode:2});var FN=function(){var t=_.z.apply(this,arguments)||this;t.hasNotification=!1;return t};
_.u(FN,_.z);FN.prototype.computeId=function(t){return t};
FN.prototype.computeHorizontalAlign=function(t){return t?"right":"left"};
FN.prototype.computeAccessibilityLabel=function(t){var E,p;return((E=t.accessibility)==null?void 0:(p=E.accessibilityData)==null?void 0:p.label)||null};
FN.prototype.notificationDataChanged=function(){var t;this.hasNotification=!!this.notificationData&&!((t=this.data)==null?0:t.icon)};
FN.prototype.notificationDataChanged=FN.prototype.notificationDataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],FN.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.w8.YtLiveChatTooltipTargetingBehavior),_.P("design:type",Object)],FN.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],FN.prototype,"data",void 0);_.N([_.e({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.P("design:type",String)],FN.prototype,"id",void 0);
_.N([_.e({value:!1}),_.P("design:type",Boolean)],FN.prototype,"isRightAligned",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],FN.prototype,"disabled",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],FN.prototype,"closeOnActivate",void 0);_.N([_.e(),_.P("design:type",Object)],FN.prototype,"notificationData",void 0);_.N([_.e(),_.P("design:type",Object)],FN.prototype,"hasNotification",void 0);
_.N([_.e({value:!1}),_.P("design:type",Boolean)],FN.prototype,"useComputedAriaLabel",void 0);_.N([_.GI("notificationData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],FN.prototype,"notificationDataChanged",null);_.N([_.p4({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],FN);
_.G(FN,"yt-sort-filter-sub-menu-renderer",function(){if(BAW===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;fum===void 0&&(fum=document.createElement("template"));var U=fum;p.call(E,U.content.cloneNode(!0),t.content.firstChild);BAW=t}t=BAW;return t},{mode:2});var V0W=_.l(function(t){var E=t.data;var p=_.aC(function(){var A=E().onTap;(A=_.k(A,_.x2))&&_.X3().resolve(_.ei).resolveCommand(A);return!1}),U=function(){return{sources:[{url:E().thumbnailUrl,
width:120,height:90}]}},x=function(){return E().rating&&E().ratingA11yLabel&&E().reviewsCount&&E().reviewsCountA11yLabel};
return _.H("place-data-view-model",null,_.H(_.w,{cond:function(){return E().placeName&&E().placeCategory},
then:function(){return _.H("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":p},_.H(_.Q9,{data:U,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.H(_.zn,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return E().onTap}},_.H("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return E().placeName}},function(){return E().placeName})),_.H("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.H(_.w,{cond:x,
then:function(){return _.H("div",{class:_.X5("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.H("span",{class:"score",title:function(){return E().ratingA11yLabel}},function(){return E().rating}),_.H("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.H(_.lz,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.H("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return E().reviewsCountA11yLabel}},function(){return E().reviewsCount}))},
else:function(){return _.H("div",{class:_.X5("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.H("div",{class:_.X5("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.H("span",{class:"category",
title:function(){return E().placeCategory}},function(){return E().placeCategory}))))}}))},"kb");
V0W.idomCompat=!0;_.k2(V0W,"place-data-view-model",{props:{data:_.uu}});var Q9X=new _.gM("INLINE_PLAYBACK_HOOK_TOKEN");var C$r=Se({sharedUi:KvG});_.i7=cs(C$r)(C$r.sharedUi,{animatedThumbnailEnabledSelector:function(t){return t.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(t){return t.inlinePreviewEnabled},
currentPageTypeSelector:function(t){return t.currentPageType},
currentPageSubTypeSelector:function(t){return t.currentPageSubType},
persistentPanelVisibleSelector:function(t){return t.persistentPanelVisible}});var j9s=function(t){this.setActiveSlideIndex=t;this.jobIds=[];this.isSlideshowPlaying=!1},dtT=function(t,E){t.isSlideshowPlaying||(t.isSlideshowPlaying=!0,rqp(t),kLs(t,E,0))},rqp=function(t){_.g4(_.ir,function(){t.setActiveSlideIndex(0)},1)},kLs=function(t,E,p){t.jobIds.push(_.g4(_.ir,function(){var U=p<E-1?p+1:0;
t.setActiveSlideIndex(U);kLs(t,E,U)},1800))};var uDG,Ius;uDG=new _.gM("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");_.Jqp=new _.gM("AI_COMPANION_ATTACHMENT_VIEW_MODEL_TOKEN");Ius=new _.gM("COMMON_MARK_VIEW_MODEL_TOKEN");var gUZ=new _.gM("IMAGE_ON_LOAD_HANDLER_TOKEN");var Z2r=_.l(function(t){return _.H("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.H(_.w,{cond:function(){var E;return(E=t.data())==null?void 0:E.thumbnail},
then:function(E){return _.H(_.Q9,{data:E,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"lb");_.O2s=_.l(function(t){var E=t.data;var p=t.lockupExperiments;t={};return _.H("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.H("div",{class:_.X5("ytThumbnailOverlayButtonViewModelButton",(t.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var U;return p&&((U=p())==null?void 0:U.useLegacySizedIconButton)},t))},_.H(_.sY,{data:function(){return E().overlayButton}},{buttonViewModel:function(U){return _.H(_.D5,{data:U.data,
buttonOverrides:function(){var x;return p&&((x=p())==null?0:x.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"mb");
_.O2s.idomCompat=!0;var XP3=_.l(function(t){return _.H("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.aC(function(E){E.preventDefault();return!1})},_.H(_.sY,{data:function(){return t.data().buttons}},{toggleButtonViewModel:function(E){return _.H("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.H(_.m3,{data:E.data}))}}))},"nb");
XP3.idomCompat=!0;var hP0=_.l(function(t){var E=function(){var p;return((p=_.k(t.data().rendererContext,_.PY))==null?void 0:p.label)||""};
return _.H("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.H(_.w,{cond:function(){return t.data().image},
then:function(){return _.H("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.H(_.Q9,{data:function(){return t.data().image},
alt:E}))}}),_.H(_.w,{cond:function(){return t.data().text},
then:function(){return _.H("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return t.data().text})}}))},"ob");var auW=_.i7.animatedThumbnailEnabledSelector,zR=_.l(function(t){var E=[],p=function(){var Q,C;return _.VOE((Q=t.width)==null?void 0:Q.call(t),(C=t.height)==null?void 0:C.call(t))},U=_.X3().resolve(_.OB(gUZ)),x=_.EB("yt-thumbnail-view-model",function(){E.push("elRef.value set");
var Q;(Q=t.playbackRef)==null||Q.call(t,{thumbnailElRef:x,thumbnail:t.data().image,thumbnailOverlays:t.data().overlays,thumbnailSize:p()})});
_.A6(function(){E.push("onInit");_.iK(function(){E.push("onCleanup")})});
var A=_.D4(auW),m=function(){var Q,C;return(C=(Q=t.aspectRatio)==null?void 0:Q.call(t))!=null?C:0},b=function(){return(t.data().image?_.nVE(t.data().image):m())<=1&&m()===0},f=function(){return b()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},B=function(){x.value||_.qW(new _.cC("Thumbnail elRef.value is null",E.join("\n")));
U&&x.value&&U(x.value)},R=function(){var Q,C;
return((Q=t.hovered)==null?void 0:Q.call(t))&&p()!=="large"&&((C=t.data().overlays)==null?void 0:C.some(function(d){return _.k(d,JTG)}))},V={};
return _.H("yt-thumbnail-view-model",{class:_.X5("ytThumbnailViewModelHost",t.className,function(){return tnE(m())},function(){var Q,C;
a:{var d=p(),I=(Q=t.disableRounding)==null?void 0:Q.call(t);Q=(C=t.isClip)==null?void 0:C.call(t);if(!I&&!Q)switch(d){case "large":C="ytThumbnailViewModelLarge";break a;case "small":C="ytThumbnailViewModelSmall";break a;default:C="ytThumbnailViewModelMedium";break a}C=void 0}return C},(V.ytThumbnailViewModelCinematic=b,V)),
style:_.zO({"background-color":function(){var Q,C=b()?(Q=t.data().backgroundColor)==null?void 0:Q.lightTheme:void 0;return C?t2(C,"1"):void 0}}),
el:x},_.H(_.w,{cond:b,then:function(){return _.H("div",{class:"ytThumbnailViewModelBlurredImage"},_.H(_.Q9,{data:function(){return t.data().image},
alt:"",contentMode:f,targetWidth:t.width,onload:B}))}}),_.H("div",{class:"ytThumbnailViewModelImage"},_.H(_.Q9,{data:function(){return t.data().image},
alt:"",contentMode:f,targetWidth:t.width,onload:B}),null),_.H(_.sY,{data:function(){return R()?void 0:t.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:e3Z,thumbnailOverlayBadgeViewModel:function(Q){return _.H(_.FcX,{data:Q.data,thumbnailSize:p,isClip:t.isClip})},
thumbnailBottomOverlayViewModel:function(Q){return _.H(OA0,{data:Q.data,thumbnailSize:p,isClip:t.isClip})},
thumbnailOverlayFullViewModel:hP0,thumbnailOverlayButtonViewModel:function(Q){return _.H(_.O2s,{data:Q.data,lockupExperiments:t.lockupExperiments})},
channelDisclosureViewModel:function(Q){Q=Q.data;var C;return _.H("div",null,(C=_.X3().resolve(_.OB(uDG)))==null?void 0:C({data:Q}))}}),_.H(_.sY,{data:function(){var Q;
return((Q=t.hovered)==null?0:Q.call(t))?t.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(Q){return _.H(HM,{data:Q.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:XP3}),_.H(_.sY,{data:function(){var Q;return((Q=t.hovered)==null?0:Q.call(t))&&A()?t.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:Z2r}),_.H(_.w,{cond:t.isClip,then:function(){return _.H("div",{class:"ytPinkingNsHost"},_.H("svg",{class:"ytPinkingNsPinkingLeft"},_.H("defs",null,_.H("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.H("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.H("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.H("svg",{class:"ytPinkingNsPinkingRight"},_.H("defs",null,_.H("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.H("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.H("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"pb");
zR.idomCompat={callbacks:{playbackRef:!0}};var ePf=_.l(function(t){var E=_.M(_.Py(-1,void 0,"RW2Ole")),p=E.next().value,U=E.next().value;_.A6(function(){var x=new j9s(U);dtT(x,t.data().thumbnails.length);_.iK(function(){if(x.isSlideshowPlaying){x.isSlideshowPlaying=!1;for(var A=x.jobIds,m=0,b=A.length;m<b;m++)_.ir.cancelJob(A[m]);x.jobIds.length=0}})});
return _.H("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.H(_.sY,{data:function(){return t.data().thumbnails}},{thumbnailViewModel:function(x,A){return _.H("div",{class:function(){var m=!t.data().primaryThumbnail,b=A(),f=p(),B=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
m&&b===0&&B.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");b<=f&&B.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return B.join(" ")}},_.H(zR,{data:x.data,
disableRounding:t.disableRounding}))}}))},"qb");
ePf.idomCompat=!0;var EK0=new _.gM("DWELL_DETECTOR_REGISTRY_TOKEN");var zPW=_.l(function(t){var E=poK(t.triggeringElement),p=function(){return!!t.data().primaryThumbnail},U=function(){var A,m=(A=t.data())==null?void 0:A.maxHeight,b;
A=(b=t.maxHeight)==null?void 0:b.call(t);return m!=null&&A!=null?Math.min(m,A):A!=null?A:m},x=function(){var A=U();
if(A){var m;if(p()&&(m=t.includeStackHeight)!=null&&m.call(t)){var b;m=((b=t.doubleStack)==null?0:b.call(t))?8:4}else m=0;A=A-m-1;if(!(A<0)){b=Math;m=b.ceil;var f,B;var R=RlD((B=(f=t.aspectRatio)==null?void 0:f.call(t))!=null?B:0);return m.call(b,A*R)}}};
return _.H("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.zO({height:function(){return U()?U()+"px":void 0},
width:function(){return x()?x()+"px":void 0}})},_.H(F_W,{stackEnabled:p,
thumbnailSize:function(){var A,m;return _.VOE((A=t.width)==null?void 0:A.call(t),(m=t.height)==null?void 0:m.call(t))},
doubleStack:t.doubleStack,stackColor:function(){return t.data().stackColor},
includeStackHeight:t.includeStackHeight},_.H(_.sY,{data:function(){return t.data().primaryThumbnail}},{thumbnailViewModel:function(A){var m={};
return _.H(zR,{data:A.data,width:t.width,height:t.height,aspectRatio:t.aspectRatio,disableRounding:t.disableRounding,className:_.X5((m.ytCollectionThumbnailViewModelHostHasStacks=p,m)),hovered:t.hovered,playbackRef:t.playbackRef})}}),_.H(_.w,{cond:function(){var A;
return E()&&((A=t.data().thumbnails)==null?void 0:A.length)},
then:function(){return _.H("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.H(ePf,{data:t.data,disableRounding:function(){return!p()}}))}})))},"rb");
zPW.idomCompat={callbacks:{playbackRef:!0}};
var F_W=_.l(function(t){var E=t.children;var p=t.stackEnabled;var U=t.thumbnailSize;var x=t.doubleStack;var A=t.stackColor;var m=t.includeStackHeight;var b,f=(b=_.X3().resolve(_.OB(_.Ld)))==null?void 0:b();return _.H(_.w,{cond:p,then:function(){return _.H(A$f,{data:function(){var B,R;return{experimentEnabled:!0,thumbnailSize:U(),doubleStack:x==null?void 0:x(),color:f?A==null?void 0:(B=A())==null?void 0:B.darkTheme:A==null?void 0:(R=A())==null?void 0:R.lightTheme,enableResponsiveMode:!1,includeStackHeight:m==
null?void 0:m()}}},E)},
else:function(){return E}})},"sb");var luT=new _.gM("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var GR;_.lS={calledOnce:!0,state:"visible"};GR={calledOnce:!0,state:"hidden"};_.nk=_.l(function(t){var E=t.data;var p=t.customCommandResolver;var U=t.className;var x=t.delayedClassName;var A=t.animationEntityKey;var m=t.isCompactWidth;var b=t.isContentWidth;t=_.M(_.Py(!1,void 0,"pC3tUb"));var f=t.next().value,B=t.next().value,R=_.Ql(A,""),V=_.nd(SxK,R),Q=function(){var R0,j$;return(j$=(R0=V())==null?void 0:R0.value)!=null?j$:!1},C=function(){_.Vl(_.P9("booleanEntity",R(),{key:R(),
value:!0}));W=void 0};
A=_.M(_.j5(Q));var d=A.next().value,I=A.next().value;A=_.M(_.j5(Q));var O=A.next().value,a=A.next().value;A=_.M(_.j5(function(){var R0;return Q()?(R0=E().styleTransitionConfig)==null?void 0:R0.destinationStyle:void 0}));
var F=A.next().value,L=A.next().value,D=function(){var R0=Object.assign({},E(),F()&&{style:F()});var j$,lY,Tt=R0.label,si=(j$=R0.interaction)==null?void 0:(lY=j$.accessibility)==null?void 0:lY.label;j$=R0.iconImage?R0.label&&R0.label.content?R0.iconLeading?"leading":"trailing":"icon-only":void 0;R0={formattedButtonText:Tt,accessibilityLabel:si,style:Yo0(R0.style),type:MnO(R0.style),state:"active",size:A$K(R0.size),iconPosition:j$,disabled:!1,aTagConfig:xrO(R0,p)};_.r("enable_desktop_vdcbg_components")&&
(R0.focused=f());return R0},W;
A=_.az({visibilityCallback:function(R0){var j$,lY=(j$=E().interaction)==null?void 0:j$.onFirstVisible;R0&&lY&&_.bz(lY)},
showOption:_.lS});var K=function(){return JVi(D(),!!E().iconImage)};
t={};var v={};U=_.X5(function(){return"ytwAdButtonViewModelHost"},function(){return E().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var R0=!!E().delayedAppearanceConfig,j$=d();
return R0?j$?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var R0=!!E().delayedAppearanceConfig,j$=O();
return R0?j$?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!E().delayedAppearanceConfig||d()?x==null?void 0:x():""},(t.ytwAdButtonViewModelHostCompactWidth=function(){return m==null?void 0:m()},t),(v.ytwAdButtonViewModelHostContentWidth=function(){return b==null?void 0:b()},v),U!=null?U:"");
var YL=function(){var R0,j$=(R0=E().delayedAppearanceConfig)==null?void 0:R0.delayedInvisibleSeconds;j$&&(W=_.W9(_.ir,function(){I(!0);bY()},j$*1E3))},bY=function(){var R0,j$=(R0=E().delayedAppearanceConfig)==null?void 0:R0.delayedVisibleSeconds;
j$&&(W=_.W9(_.ir,function(){a(!0);kL()},j$*1E3))},kL=function(){var R0,j$=(R0=E().styleTransitionConfig)==null?void 0:R0.styleTransitionSeconds,lY,Tt=(lY=E().styleTransitionConfig)==null?void 0:lY.destinationStyle;
j$&&Tt?W=_.W9(_.ir,function(){L(Tt);C()},j$*1E3):C()};
_.A6(function(){YL()});
_.iK(function(){W&&_.ir.cancelJob(W)});
return _.H("ad-button-view-model",{"on:focusin":_.aC(_.r("enable_desktop_vdcbg_components")?function(){var R0=_.X3().resolve(_.OB(_.FA));R0&&B(R0.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.aC(_.r("enable_desktop_vdcbg_components")?function(){B(!1);return!1}:void 0),
class:U,el:_.V9(A),style:_.zO({"transition-duration":"0.3s"})},_.H(_.w,{cond:D,then:function(){return _.H(_.N7,{data:D,icon:function(){return _.H(_.w,{cond:function(){return E().iconImage},
then:function(R0){return _.H(_.Q9,{data:R0,alt:"",targetWidth:K,targetHeight:K,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"ub");var GLs=_.l(function(t){var E=t.data;t=function(){return E().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var p=_.az({visibilityCallback:function(A){var m,b=(m=E().interaction)==null?void 0:m.onFirstVisible;A&&b&&_.bz(b)},
showOption:_.lS}),U={},x={};return _.H("ad-button-group-view-model",{class:_.X5("ytwAdButtonGroupViewModelHost",(U.ytwAdButtonGroupViewModelHostCompactWidth=t,U)),el:_.V9(p)},_.H("div",{class:_.X5("ytwAdButtonGroupViewModelHostSecondaryButton",(x.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=t,x))},_.H(_.sY,{data:function(){return E().secondaryAdButton}},{adButtonViewModel:function(A){return _.H(_.nk,{data:A.data})}})),_.H("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.H(_.sY,
{data:function(){return E().primaryAdButton}},{adButtonViewModel:function(A){return _.H(_.nk,{data:A.data})}})))},"vb");var nUr=_.l(function(t){var E=function(){var p;return((p=t.data())==null?void 0:p.answers)||[]};
return _.H("yt-survey-icons",{class:"ytSurveyIconsHost"},_.H("div",{class:"ytSurveyIconsHeader"},_.H("div",{class:"ytSurveyIconsTitle"},function(){var p;return(p=t.data())==null?void 0:p.text}),_.H("div",null,_.H(_.N7,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var p;(p=t.onDismiss)==null||p.call(t)}}},
iconName:"DISMISSAL"}))),_.H("div",null,_.H("div",{class:"ytSurveyIconsAnswers"},_.H(_.yG,{each:function(){return E()},
keyBy:"INDEX"},function(p,U){return _.H("div",null,_.H(_.N7,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var x;(x=t.onSelect)==null||x.call(t,p(),U)}}},
icon:function(){return _.H(_.lz,{icon:function(){var x,A;return(x=p())==null?void 0:(A=x.icon)==null?void 0:A.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.H("div",{class:"ytSurveyIconsAnswersText"},_.H("div",null,function(){return E().length?E()[0].text:""}),_.H("div",null,function(){return E().length?E()[E().length-1].text:""}))))},"wb");var NAm=_.l(function(t){var E=_.V9(_.EX(function(){var f;return(f=t.data())==null?void 0:f.rendererContext},void 0,void 0,void 0,!0)),p=_.M(_.Py(!1,void 0,"GW0yjf")),U=p.next().value,x=p.next().value,A=_.nd(cPt,function(){var f;
return(f=t.data().keys)==null?void 0:f.surveyEntityKey}),m=_.nd(tDj,function(){var f;
return(f=t.data().keys)==null?void 0:f.surveyStateEntityKey});
_.Iz("ytd-slimline-survey-show-action",function(){x(!1)});
var b=function(){var f,B;var R=(f=m())==null?void 0:(B=f.questionStack)==null?void 0:B[0];if(R!==void 0){var V,Q;return(V=A())==null?void 0:(Q=V.questions)==null?void 0:Q[R]}};
p={};return _.H("yt-slimline-survey-view-model",{el:E,class:_.X5("ytSlimlineSurveyViewModelHost",(p.ytSlimlineSurveyViewModelCollapsed=function(){return U()},p))},_.H("div",{class:"ytSlimlineSurveyViewModelContainer"},_.H(_.w,{cond:function(){var f;
return((f=b())==null?void 0:f.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.H(nUr,{data:function(){return b()},
onSelect:function(f,B){var R,V;return _.q(function(Q){x(!0);if(V=(R=t.data())==null?void 0:R.onSelectRating)_.bz(V),_.Vl(mVr(B));_.Do(Q)})},
onDismiss:function(){x(!0);var f;var B=(f=A())==null?void 0:f.dismissalFeedbackToken;f=B?{feedbackEndpoint:{feedbackToken:B}}:void 0;f&&_.Y2(f,{form:{element:E.value}})}})}})))},"xb");var Dts=_.l(function(t){return _.H("yt-table-view-model",{class:_.X5("ytTableViewModelHost",t.className)},_.H(_.yG,{each:function(){return t.data().rows||[]}},function(E){var p={};
return _.H("div",{class:_.X5("ytTableViewModelRow",(p.ytTableViewModelRowBottomBorder=function(){return t.data().showSeparators},p))},_.H(_.yG,{each:function(){return(E==null?void 0:E.cells)||[]}},function(U,x){var A,m={};
return _.H("span",{class:_.X5((m.ytTableViewModelRowLabel=function(){return x()===0&&t.data().showHorizontalHeaders},m.ytTableViewModelCell=function(){return!t.data().showHorizontalHeaders||x()>0},m))},(A=U.text)==null?void 0:A.content)}))}))},"yb");var s9s=_.l(function(t){return _.H("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.H(_.sY,{data:function(){var E;return(E=t.data())==null?void 0:E.attachments}},{flexibleActionsViewModel:function(E){return _.H("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.H(_.wl,{data:E.data,
layout:function(){var p;return((p=t.lockupStyle())==null?void 0:p.arrangement)===1?0:1},
justifyContentOverride:function(){var p;return((p=t.lockupStyle())==null?void 0:p.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(E){return _.H("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.H(NAm,{data:E.data}))},
expandableMetadataViewModel:function(E){E=E.data;var p;return _.H("div",{class:_.X5("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(p=_.X3().resolve(_.OB(luT)))==null?void 0:p({data:E}))},
adButtonGroupViewModel:function(E){return _.H("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.H(GLs,{data:E.data}))},
adButtonViewModel:function(E){return _.H("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.H(_.nk,{data:E.data,isCompactWidth:!0}))},
tableViewModel:function(E){return _.H("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.H(Dts,{data:E.data}))},
aiCompanionAttachmentViewModel:function(E){E=E.data;var p;return _.H("div",{class:"ytLockupAttachmentsViewModelAttachment"},(p=_.X3().resolve(_.OB(_.Jqp)))==null?void 0:p({data:E}))}}))},"zb");var f$E=_.z3("rich_grid_min_item_width",310),qoL=_.z3("rich_grid_max_item_width",500);var ky$,r$Y;ky$=16/9;r$Y=2/3;_.Nk=_.l(function(t){var E=t.data;var p=t.className;var U=t.imageSizeConfig;var x=t.notifyOnLoaded;var A=function(){return E().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},m=function(){var Q;
return _.te((Q=E())==null?void 0:Q.rendererContext)};
t={};t=(t.ytContentPreviewImageViewModelHost=!0,t.ytContentPreviewImageViewModelCircleImage=function(){return A()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},t.ytContentPreviewImageViewModelTappable=function(){return m()},t);
var b=function(){var Q,C;return(C=(Q=_.k(E().rendererContext,_.PY))==null?void 0:Q.label)!=null?C:""},f=function(){return uTD(E())},B=function(){var Q=drj(A(),E().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",U==null?void 0:U(),J$$(f()),E().layoutWidth,E().layoutHeight),C=Object.assign({},Q);
Q.width&&(C.width=Math.round(Q.width));Q.height&&(C.height=Math.round(Q.height));Q.maxWidth&&(C.maxWidth=Math.round(Q.maxWidth));Q.maxHeight&&(C.maxHeight=Math.round(Q.maxHeight));return C},R=_.KN(function(){return B().height},void 0,"CxFlJb"),V=_.KN(function(){return B().width},void 0,"lb8Jhd");
return _.H("yt-content-preview-image-view-model",{el:_.V9(_.EX(function(){var Q;return(Q=E())==null?void 0:Q.rendererContext})),
role:function(){return m()?"link":void 0},
tabindex:function(){return m()?0:void 0},
class:_.X5(p,t,function(){var Q=A();var C=U==null?void 0:U();Q=Q==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||Q==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||Q==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||Q==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(C==null?void 0:C.size)!=null&&C.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(C==null?void 0:C.size)!=null&&C.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return Q}),
style:function(){var Q=B(),C=[];Q.width&&C.push("width: "+Q.width+"px");Q.height&&C.push("height: "+Q.height+"px");Q.maxWidth&&C.push("max-width: "+Q.maxWidth+"px");Q.maxHeight&&C.push("max-height: "+Q.maxHeight+"px");Q.fullWidth&&C.push("width: 100%");return C.join(";")}},_.H(_.w,{cond:f,
then:function(Q){return _.H(_.Q9,{data:Q,alt:b,"data-disabled$":function(){return!b()},
notifyOnLoaded:x,targetWidth:V,targetHeight:R,preserveWidth:function(){return!!V()},
preserveHeight:function(){return!!R()}})}}),_.H(_.sY,{data:function(){var Q;
return(Q=E())==null?void 0:Q.overlays}},{thumbnailHoverOverlayViewModel:HM,
thumbnailOverlayButtonViewModel:_.O2s}))},"Ab");
_.Nk.idomCompat=!0;var D7=_.l(function(t){var E=t.data;var p=t.className;var U=t.useSmallLayout;var x=t.useMediumText;var A=t.useHeavyText;var m=function(){return!(x==null||!x())||!(A==null||!A())};
t={};return _.H("yt-attribution-view-model",{el:_.V9(_.EX(function(){var b;return(b=E())==null?void 0:b.rendererContext})),
class:_.X5(p,(t.ytAttributionViewModelHost=!0,t.ytAttributionViewModelMediumText=x,t.ytAttributionViewModelHeavyText=A,t))},_.H(_.w,{cond:function(){return _.te(E().rendererContext)},
then:function(){return _.H("button",{class:"ytAttributionViewModelTappable"},_.H(L_f,{data:E,useSmallLayout:U,badgesShouldInheritTypography:m}))},
else:function(){return _.H(L_f,{data:E,useSmallLayout:U,badgesShouldInheritTypography:m})}}))},"Bb"),L_f=_.l(function(t){var E=t.data;
var p=t.useSmallLayout;var U=t.badgesShouldInheritTypography;var x=function(){return{size:(p==null?0:p())?16:24}};
return _.H(_.Oj,null,_.H(_.sY,{data:function(){return E().contentPreviewImage}},{contentPreviewImageViewModel:function(A){return _.H(_.Nk,{data:A.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:x})}}),_.H(_.sY,{data:function(){return E().badge}},{badgeViewModel:function(A){return _.H(_.XN,{data:A.data,
class:"ytAttributionViewModelBadge",modern:!0,inheritTypography:U})}}),_.H(_.w,{cond:function(){return E().text},
then:function(){return _.H(_.d8,{text:function(){return E().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.H(_.w,{cond:function(){return E().suffix},
then:function(){return _.H(_.d8,{text:function(){return E().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"Cb");
D7.idomCompat=!0;var P$s,TAT,oU0,W_s,$to;P$s=_.l(function(t){var E=t.delimiter;var p=t.max;var U=t.index;var x=t.isStandalone;return _.H(_.w,{cond:function(){return p()-1>U()},
then:function(){var A={};return _.H("span",{class:_.X5("yt-content-metadata-view-model__delimiter",(A["yt-content-metadata-view-model__delimiter--standalone"]=x,A)),"aria-hidden":!0},E)}})},"Db");
TAT=_.l(function(t){var E=t.metadataPart;var p=t.maxLines;return _.H(_.d8,{text:function(){return E().text},
linkInheritColor:!0,className:function(){return I$i(p())},
userInput:!0})},"Eb");
oU0=_.l(function(t){var E=t.metadataPart;var p=t.maxLines;return _.H(_.w,{cond:function(){return E().tooltip},
then:function(U){return _.H("span",{title:U,role:"tooltip"},_.H(TAT,{metadataPart:E,maxLines:p}))},
else:function(){return _.H(TAT,{metadataPart:E,maxLines:p})}})},"Fb");
W_s=_.l(function(t){var E=t.metadataPart;var p=t.isOverlay;var U=t.useMediumText;var x=t.hideAvatar;var A=function(){return E().maxLines!==void 0?E().maxLines:1};
return _.H(_.Oj,null,_.H(_.sY,{data:function(){return E().avatarStack}},{avatarStackViewModel:function(m){return _.H(_.wp,{data:m.data,
isOverlay:p,useMediumText:U,hideAvatar:x})},
badgeViewModel:_.XN}),_.H(_.w,{cond:function(){return E().leadingIcon},
then:function(m){return _.H(_.lz,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return m().name},
size:function(){return m().width}})}}),_.H(_.w,{cond:function(){return E().text},
then:function(){return _.H(oU0,{metadataPart:E,maxLines:A})}}),_.H(_.w,{cond:function(){return E().icon},
then:function(m){return _.H(_.lz,{className:"yt-content-metadata-view-model__icon",icon:function(){return m().name},
size:function(){return m().width}})}}))},"Gb");
$to=_.l(function(t){var E=t.metadataRow;var p=t.isInline;var U=t.delimiter;var x=t.isOverlay;var A=t.useMediumText;var m=t.extensions;var b=function(){var B,R=m==null?void 0:(B=m())==null?void 0:B.lockupMetadata;B=E();var V,Q;return!!((R==null?0:(V=R.byline)==null?0:V.hideAvatar)&&((Q=_.k(B,Vps))==null?void 0:Q.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},f=function(){return E().metadataParts||[]};
t={};return _.H("div",{class:_.X5("yt-content-metadata-view-model__metadata-row",(t["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=p,t["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var B,R=m==null?void 0:(B=m())==null?void 0:B.lockupMetadata;B=E();var V,Q;return!!((R==null?0:(V=R.byline)==null?0:V.addPadding)&&((Q=_.k(B,Vps))==null?void 0:Q.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},t["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var B;
return!!(m==null?0:(B=m())==null?0:B.lockupMetadata)&&E().badges&&!E().metadataParts},t))},_.H(_.sY,{data:function(){return E().badges}},{badgeViewModel:function(B){return _.H("div",{class:"yt-content-metadata-view-model__badge"},_.H(_.XN,{data:B.data,
numBadgesInRow:function(){var R,V;return((R=E())==null?void 0:(V=R.badges)==null?void 0:V.length)||0}}))}}),_.H(_.yG,{each:f},function(B,R){return _.H(_.Oj,null,_.H(W_s,{metadataPart:B,
isOverlay:x,useMediumText:A,hideAvatar:b}),_.H(P$s,{delimiter:U,max:function(){return f().length},
index:R,isStandalone:!1}))}),_.H(_.w,{cond:function(){return E().isSpacerRow&&!p()},
then:function(){return _.H("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Hb");
_.sM=_.l(function(t){t=_.C4(t,{layout:0,isOverlay:!1});var E=t.data,p=t.layout,U=t.isOverlay,x=t.useMediumText,A=t.extensions,m=function(){return p()===0},b=function(){var B;
return((B=E().metadataRows)==null?void 0:B.filter(function(R){var V,Q=A==null?void 0:(V=A())==null?void 0:V.lockupMetadata,C,d;V=!!((Q==null?0:(C=Q.description)==null?0:C.hideDescription)&&((d=_.k(R,Vps))==null?void 0:d.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var I,O;return!((Q==null?0:(I=Q.spacer)==null?0:I.hideSpacer)&&((O=_.k(R,Vps))==null?void 0:O.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||V)}))||[]},f={};
return _.H("yt-content-metadata-view-model",{class:_.X5(t.className,"yt-content-metadata-view-model",(f["yt-content-metadata-view-model--inline"]=m,f["yt-content-metadata-view-model--tappable"]=function(){return _.te(E().rendererContext)},f["yt-content-metadata-view-model--medium-text"]=x,f)),
el:_.V9(_.EX(function(){return E().rendererContext}))},_.H(_.yG,{each:b},function(B,R){return _.H(_.Oj,null,_.H($to,{metadataRow:B,
isInline:m,delimiter:function(){return E().delimiter},
isOverlay:U,useMediumText:x,extensions:A}),_.H(_.w,{cond:function(){return m()&&!B.isSpacerRow},
then:function(){return _.H(P$s,{delimiter:function(){return E().delimiter},
max:function(){return b().length},
index:R,isStandalone:!0})}}))}))},"Ib");
_.sM.idomCompat=!0;var K_m=_.l(function(t){var E=_.X3().resolve(_.OB(_.Ld)),p={};return _.H("yt-lockup-metadata-view-model",{class:_.X5("yt-lockup-metadata-view-model",function(){a:{var U=t.lockupStyle();if(U==null?0:U.isOverlay)U="yt-lockup-metadata-view-model--overlay";else switch(U==null?void 0:U.arrangement){case 1:U="yt-lockup-metadata-view-model--horizontal";break a;default:U="yt-lockup-metadata-view-model--vertical"}}return U},function(){a:{var U=t.lockupStyle();
switch(U==null?void 0:U.titleMaxLines){case 1:U="yt-lockup-metadata-view-model--title-max-lines-1";break a}U=void 0}return U},function(){a:{var U=t.lockupStyle();
if(U==null?0:U.isTiny)U="yt-lockup-metadata-view-model--tiny";else switch(U==null?void 0:U.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":U="yt-lockup-metadata-view-model--compact";break a;default:U="yt-lockup-metadata-view-model--standard"}}return U},(p["yt-lockup-metadata-view-model--overlay"]=function(){var U;
return(U=t.lockupStyle())==null?void 0:U.isOverlay},p["yt-lockup-metadata-view-model--card"]=function(){var U;
return(U=t.lockupStyle())==null?void 0:U.isCard},p["yt-lockup-metadata-view-model--centered"]=function(){var U;
return(U=t.lockupStyle())==null?void 0:U.isCentered},p["yt-lockup-metadata-view-model--typography-bump"]=function(){var U;
return(U=t.lockupStyle())==null?void 0:U.typographyBump},p["yt-lockup-metadata-view-model--legacy-typography"]=function(){var U;
return(U=t.lockupStyle())==null?void 0:U.useLegacyTypography},p["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var U;
return(U=t.lockupStyle())==null?void 0:U.useRichGridLegacyTypography},p))},_.H(_.sY,{data:function(){return t.data().image}},{avatarStackViewModel:function(U){return _.H("div",{class:"yt-lockup-metadata-view-model__avatar"},_.H(_.wp,{data:U.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(U){return _.H("div",{class:"yt-lockup-metadata-view-model__avatar"},_.H(_.fk,{data:U.data}))},
decoratedAvatarViewModel:function(U){return _.H("div",{class:"yt-lockup-metadata-view-model__avatar"},_.H(_.BM,{data:U.data}))}}),_.H("div",{class:"yt-lockup-metadata-view-model__text-container"},_.H("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var U;return(U=t.data().title)==null?void 0:U.content}},_.H(_.w,{cond:function(){return t.data().title},
then:function(U){return _.H(_.zn,{command:t.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.zO({color:function(){var x;a:{var A=t.lockupStyle();var m=(x=t.hovered)==null?void 0:x.call(t);x=!(E==null||!E());var b;if((A==null?0:(b=A.onFocusEffect)==null?0:b.textPrimaryColor)&&m&&(A=x?A.onFocusEffect.textPrimaryColor.darkTheme:A.onFocusEffect.textPrimaryColor.lightTheme)){A=EU(A);break a}A=void 0}return A}}),
ariaLabel:t.lockupAccessibilityLabel},_.H(_.d8,{text:U,userInput:!0}))}})),_.H("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.zO({color:function(){var U;a:{var x=t.lockupStyle();var A=(U=t.hovered)==null?void 0:U.call(t);U=!(E==null||!E());var m;if((x==null?0:(m=x.onFocusEffect)==null?0:m.textSecondaryColor)&&A&&(x=U?x.onFocusEffect.textSecondaryColor.darkTheme:x.onFocusEffect.textSecondaryColor.lightTheme)){x=EU(x);break a}x=void 0}return x}})},_.H(_.sY,{data:function(){return t.data().metadata}},{contentMetadataViewModel:function(U){return _.H(_.sM,{data:U.data,
layout:function(){var x,A;return(A=(x=t.layout)==null?void 0:x.call(t))!=null?A:1},
useMediumText:function(){var x,A;return((x=t.lockupStyle())==null?void 0:x.typographyBump)||((A=t.lockupStyle())==null?void 0:A.useRichGridLegacyTypography)},
extensions:function(){var x,A,m,b;return{lockupMetadata:{byline:{hideAvatar:((x=t.lockupStyle())==null?void 0:x.arrangement)===0,addPadding:((A=t.lockupStyle())==null?void 0:A.arrangement)===1},description:{hideDescription:!((m=t.lockupStyle())==null||!m.compactMetadata)},spacer:{hideSpacer:!((b=t.lockupStyle())==null||!b.compactMetadata)}}}}})}})),_.H(_.sY,{data:function(){return t.data().attribution}},{attributionViewModel:function(U){return _.H("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.H(D7,{data:U.data,
useSmallLayout:!0}))}})),_.H("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.H(_.sY,{data:function(){return t.data().menuButton}},{buttonViewModel:function(U){return _.H(_.D5,{data:U.data,
buttonOverrides:function(){var x;return((x=t.lockupStyle())==null?0:x.isOverlay)?{style:"overlay"}:void 0}})}})))},"Jb");
K_m.idomCompat=!0;var vUT=_.l(function(t){var E=_.EB("notification-multi-action-renderer");_.xa(function(){requestAnimationFrame(function(){_.If(E.value)})});
var p={},U={},x={};return _.H("notification-multi-action-renderer",{class:_.X5("ytNotificationMultiActionRendererHost",(p.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var A;return(A=t.useLegacyShelfStyle)==null?void 0:A.call(t)},p)),
el:E},_.H("span",{"aria-live":"polite",class:_.X5("ytNotificationMultiActionRendererTextContainer",(U.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var A;return(A=t.useLegacyShelfStyle)==null?void 0:A.call(t)},U))},_.H(_.d8,{text:function(){return t.data().responseText}})),_.H("div",{class:_.X5("ytNotificationMultiActionRendererButtonContainer",(x.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var A;
return(A=t.useLegacyShelfStyle)==null?void 0:A.call(t)},x))},_.H(_.sY,{data:function(){var A;
return(A=t.data().buttons)==null?void 0:A.map(function(m){if(m=m.buttonRenderer){var b,f=Object,B=f.assign,R=(b=m.icon)==null?void 0:b.iconType;b=(b=m.command||m.serviceEndpoint||m.navigationEndpoint)?{innertubeCommand:b}:void 0;m={buttonViewModel:B.call(f,{},{iconName:R,onTap:b,trackingParams:m.trackingParams,titleFormatted:m.text?_.En(m.text):void 0},ZAO(m))}}else m=void 0;return m}).filter(function(m){return!!m})}},{buttonViewModel:function(A,m){return _.H("div",null,_.H(_.D5,{data:A.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var b;return((b=t.useModernStyles)==null?0:b.call(t))?{type:m()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Lb");var yqT=_.l(function(t){var E=_.EB("notification-text-renderer");_.xa(function(){requestAnimationFrame(function(){_.If(E.value)})});
return _.H("notification-text-renderer",{el:E,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.H(_.d8,{text:function(){return t.data().successResponseText}}))},"Nb");_.Lk=_.l(function(t){var E=_.nd(ski,function(){var U;return OA_((U=t.contentId)==null?void 0:U.call(t))}),p=function(){var U;
return _.k((U=E())==null?void 0:U.command,_.KC)};
return _.H(_.w,{cond:function(){var U;if(!(U=p())){var x;U=_.k((x=E())==null?void 0:x.command,gEr)}return U},
then:function(){return _.H(_.w,{cond:p,then:function(){var U={};return _.H("div",{class:_.X5("ytDismissibleItemReplacedContent",function(){var x;return Xot((x=t.aspectRatio)==null?void 0:x.call(t))})},_.H("div",{class:_.X5((U.ytDismissibleItemAspectRatioContainer=function(){var x;
return((x=t.aspectRatio)==null?void 0:x.call(t))!==void 0},U))},_.H(_.sY,{data:function(){var x;
return(x=p())==null?void 0:x.item}},{notificationMultiActionRenderer:function(x){return _.H(vUT,{data:x.data,
useModernStyles:t.useModernStyle,useLegacyShelfStyle:t.useLegacyShelfStyle})},
notificationTextRenderer:yqT})))}})},
else:t.children})},"Ob");_.SDr=_.l(function(t){var E=t.data;var p=t.customCommandResolver;t=_.V9(_.az({visibilityCallback:function(A){var m,b=(m=E().interaction)==null?void 0:m.onFirstVisible;A&&b&&_.bz(b)},
showOption:_.lS}));var U=function(){var A;return((A=E().interaction)==null?0:A.onTap)?function(m){var b;Uri(m,(b=E().interaction)==null?void 0:b.onTap,p)}:void 0},x=function(){var A,m=E(),b=U(),f=(A=_.k(E().rendererContext,_.PY))==null?void 0:A.label;
a:switch(m.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":A=1;break a;default:A=0}return{size:e3E(m.size),type:A,onTap:b,accessibilityText:f}};
return _.H("ad-avatar-view-model",{class:function(){var A;return((A=E().interaction)==null?0:A.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:t},_.H(_.w,{cond:function(){return E().image},
then:function(A){return _.H(a$f,{data:x,image:A})}}))},"Pb");_.PM=_.l(function(t){var E=_.C4(t,{hasDot:!1,usedInMasthead:!1}),p=Object.assign({},E),U=E.data,x=E.hasDot;t=E.customCommandResolver;var A=E.usedInMasthead,m=(delete p.data,delete p.hasDot,delete p.customCommandResolver,delete p.usedInMasthead,p);E=function(){return U().style};
E!==void 0&&E!==null||_.Ra(Error("Ih"));t=_.Yj(function(){return U().interaction},t);
return _.H("ad-badge-view-model",{class:_.X5(function(){var b;return((b=U().interaction)==null?0:b.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var b=m.adRenderingContextType(),f=A();
U();return b!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||f?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.V9(t)},_.H(_.CZ,{data:function(){var b;U();return{type:2,text:(b=U().label)==null?void 0:b.content,adsIncludeDot:x(),isOverlay:U().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Qb");var cqG;_.TR=_.l(function(t){var E=t.data;var p=t.customCommandResolver;var U=t.adRenderingContextType;return _.H("ad-details-line-view-model",{class:function(){var x;return((x=E().interaction)==null?0:x.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.V9(_.az({visibilityCallback:function(x){var A,m=(A=E().interaction)==null?void 0:A.onFirstVisible;x&&m&&_.bz(m)},
showOption:_.lS}),_.Yj(function(){return E().interaction},p))},_.H(_.w,{cond:function(){return E().style},
then:function(x){return _.H(_.yG,{each:function(){var A;return((A=E())==null?void 0:A.attributes)||[]},
keyBy:"INDEX"},function(A){return _.H(cqG,{attribute:A,style:x,adRenderingContextType:function(){return U()}})})}}))},"Rb");
cqG=_.l(function(t){var E=t.attribute;var p=t.style;var U=t.adRenderingContextType;return _.H(_.w,{cond:function(){return E().text},
then:function(x){return _.H(_.d8,{text:x,className:function(){var A=U();p();return A==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Sb");var tzs=_.l(function(t){var E=t.data;var p=t.typographyBump;var U=function(){return E().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"},x=function(){return{size:"M"}};
t={};return _.H(_.Oj,null,_.H("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.H(_.d8,{text:function(){return E().headline},
className:_.X5((t.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineLegacy=function(){return!_.r("enable_desktop_vdc_components")},t.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline=function(){return _.r("enable_desktop_vdc_components")},t.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return U==null?void 0:U()},t.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(p==null?void 0:p())&&!(U==null?0:U())},t)),
linkInheritColor:!0}),_.H(_.w,{cond:function(){return E().description},
then:function(A){var m={};return _.H(_.d8,{text:A,className:_.X5("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(m.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return U==null?void 0:U()},m.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(p==null?void 0:p())&&!(U==null?0:U())},m)),
linkInheritColor:!0})}}),_.H(_.w,{cond:function(){return E().secondaryDescription},
then:function(A){var m={};return _.H(_.d8,{text:A,className:_.X5("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(m.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return p==null?void 0:p()},m)),
linkInheritColor:!0})}}),_.H("div",{class:function(){return U()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.H(_.w,{cond:function(){return E().adAvatar},
then:function(){return _.H("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.H(_.sY,{data:function(){return E().adAvatar}},{adAvatarViewModel:_.SDr}))}}),_.H(_.sY,{data:function(){return E().adBadge}},{adBadgeViewModel:function(A){return _.H(_.PM,{data:A.data,
hasDot:function(){return!!E().adDetailsLine},
adRenderingContextType:function(){return E().adRenderingContextType}})}}),_.H(_.sY,{data:function(){return E().adDetailsLine}},{adDetailsLineViewModel:function(A){return _.H(_.TR,{data:A.data,
adRenderingContextType:function(){return E().adRenderingContextType}})}}))),_.H("div",{class:function(){return _.r("enable_desktop_vdc_components")?"ytwFeedAdMetadataViewModelHostMenuButton":U()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.H(_.sY,{data:function(){return E().menu}},{buttonViewModel:function(A){return _.H(_.D5,{data:A.data,
buttonOverrides:_.r("enable_desktop_vdc_components")?x:function(){a:switch(E().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var m="S";break a;default:m="M"}return{size:m}}})}})))},"Tb"),Eym=_.l(function(t){var E=t.data;
var p=t.noBottomMargin;var U=t.useVideoLockupTopPadding;var x=t.typographyBump;t={};t=_.X5("ytwFeedAdMetadataViewModelHostMetadata",(t.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return p==null?void 0:p()},t.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return U==null?void 0:U()},t));
var A=function(){return E().adBadge};
A!==void 0&&A!==null||_.Ra(Error("Jh"));A={};var m={};return _.H(_.Oj,null,_.H(_.w,{cond:function(){return E().adAvatar},
then:function(){return _.H("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.H(_.sY,{data:function(){return E().adAvatar}},{adAvatarViewModel:function(b){return _.H(_.SDr,{data:b.data})}}))}}),_.H("div",{class:t},_.H("div",{class:_.X5("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(A.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return x==null?void 0:x()},A.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(x==
null?void 0:x())&&_.r("web_enable_typography_bump_v2")},A))},_.H(_.d8,{text:function(){return E().headline},
linkInheritColor:!0})),_.H(_.w,{cond:function(){return E().description},
then:function(b){return _.H(_.d8,{text:b,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.H("div",{class:function(){return E().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.r("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.H(_.sY,{data:function(){return E().adBadge}},
{adBadgeViewModel:function(b){return _.H(_.PM,{data:b.data,
hasDot:function(){return!!E().adDetailsLine},
adRenderingContextType:function(){return E().adRenderingContextType}})}}),_.H(_.sY,{data:function(){return E().adDetailsLine}},{adDetailsLineViewModel:function(b){return _.H(_.TR,{data:b.data,
adRenderingContextType:function(){return E().adRenderingContextType}})}})),_.H(_.w,{cond:function(){return E().secondaryDescription},
then:function(b){return _.H(_.d8,{text:b,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.H("div",{class:_.X5("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(m.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return U==null?void 0:U()},m))},_.H(_.sY,{data:function(){return E().menu}},{buttonViewModel:_.D5})))},"Ub"),oI=_.l(function(t){var E=t.data;
var p=t.noBottomMargin;var U=t.listenToTapEvent;var x=t.setTouchEndHandler;var A=t.useVideoLockupTopPadding;var m=t.typographyBump;t=_.az({visibilityCallback:function(V){var Q,C=(Q=E().interaction)==null?void 0:Q.onFirstVisible;V&&C&&_.bz(C)},
showOption:_.lS});var b=_.Yj(function(){return E().interaction},void 0,function(){return U==null?void 0:U()}),f=_.M(_.Py(!1,void 0,"KSFskc")),B=f.next().value,R=f.next().value;
f=_.aC(function(V){(x==null?0:x())&&!B()&&(V.currentTarget.click(),R(!0),setTimeout(function(){R(!1)},100));
return!1});
return _.H("feed-ad-metadata-view-model",{class:function(){var V;return((V=E().interaction)==null?0:V.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.V9(t,b),"on:touchend":f},_.H(_.SC,null,_.H(_.Kw,{when:function(){return E().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.H(tzs,{data:E,
typographyBump:m})}),_.H(_.Kw,{when:function(){return E().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.H(Eym,{data:E,
noBottomMargin:p,useVideoLockupTopPadding:A,typographyBump:m})})))},"Vb");var pjp,Ua4;pjp=_.i7.inlinePreviewEnabledSelector;_.WM=_.l(function(t){return _.H("yt-lockup-view-model",{class:_.X5(t.className,"yt-lockup-view-model--wrapper")},_.H(_.Lk,{contentId:function(){return t.data().contentId},
useModernStyle:!0,aspectRatio:function(){var E,p;return((E=t.containerType)==null?void 0:E.call(t))!==3?C_l(t.data().contentType,(p=t.force16By9ThumbnailAspectRatio)==null?void 0:p.call(t)):void 0}},function(){return _.H(Ua4,Object.assign({},t))}))},"Wb");
Ua4=_.l(function(t){t=_.C4(t,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0,useOverlayStyling:void 0});var E=t.data,p=t.containerLayoutConfig,U=t.containerType,x=t.sizing,A=t.protectBackground,m=t.typographyBump,b=t.force16By9ThumbnailAspectRatio,f=t.thumbnailFixedWidth,B=t.thumbnailTargetWidth,R=t.lockupExperiments,
V=t.elementsPerRow,Q=t.useOverlayStyling,C=_.X3().resolve(_.OB(_.Ld));t=_.V9(_.EX(function(){var si;return(si=E())==null?void 0:si.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0));var d=_.D4(pjp),I=_.X3().resolve(_.OB(Q9X)),O=I?{}:void 0,a=function(){var si,Q0,ps;return(ps=(Q0=_.k((si=E())==null?void 0:si.rendererContext,_.PY))==null?void 0:Q0.label)!=null?ps:void 0},F=function(){var si;
return(si=_.k(E().metadata,_.Qlr))==null?void 0:si.endorsement},L=function(){var si=p==null?void 0:p(),Q0;
if(si==null?0:si.containerType){var ps=(Q0=E())==null?void 0:Q0.contentType;Q0=R();var $L=m(),Cs=B(),km=A();si=Object.assign({},jHD(woE(si),mH(si.responsiveSize),$L,ps,si.force16By9ThumbnailAspectRatio,Cs,km,void 0,Q0),{thumbnailFixedWidth:si.contentPreviewWidth})}else si=jHD(U(),x(),m(),(ps=E())==null?void 0:ps.contentType,b(),B(),A(),Q(),R());return si};
I&&O&&I({enabled:function(){return d()},
itemPlaybackModel:function(){return E().itemPlayback},
thumbnailElRef:function(){return O.thumbnailElRef},
containerElRef:t,options:function(){var si=O.thumbnailOverlays||[],Q0=F(),ps;!Q0||((ps=R())==null?0:ps.onFocusEffect)||si.push(Q0);var $L,Cs;return{thumbnail:O.thumbnail,thumbnailOverlays:si,accessibilityText:a(),thumbnailSize:O.thumbnailSize,enableRounding:L().isCollection,containPlayerWithinThumbnail:L().isCollection,mouseleaveCallback:function(){K(!1)},
trackingParams:($L=_.k(E().rendererContext,_.Th))==null?void 0:(Cs=$L.loggingDirectives)==null?void 0:Cs.trackingParams}}});
var D=0;I=_.M(_.Py(!1,void 0,"v0iGab"));var W=I.next().value,K=I.next().value;I=_.M(_.Py(!1,void 0,"PVKcBd"));var v=I.next().value,YL=I.next().value;I=_.aC(function(){v()?(_.ir.cancelJob(D),D=_.ir.addJob(function(){K(!0)},8,32)):K(!0);
return!0});
var bY=_.aC(function(si){si=si.relatedTarget;var Q0=document.querySelector("ytd-video-preview");si&&Q0&&Q0.contains(si)||(D&&(_.ir.cancelJob(D),D=0),K(!1))});
_.iK(function(){D&&(_.ir.cancelJob(D),D=0)});
var kL=a$K(function(){YL(!0)}),R0=kL.touchFeedbackEvents,j$=kL.touchFeedbackOnPointerUp,lY=kL.touchFeedbackOnPointerDown;
kL=kL.touchFeedbackOnPointerLeave;var Tt={};return _.H(_.Oj,null,_.H("div",{el:t,class:_.X5("yt-lockup-view-model",function(){a:{var si=L();if(si.metadataOnThumbnail)si="yt-lockup-view-model--metadata-on-thumbnail";else switch(si.arrangement){case 1:si="yt-lockup-view-model--horizontal";break a;default:si="yt-lockup-view-model--vertical"}}return si},function(){a:{var si=L();
if(si.metadataOnThumbnail)si="yt-lockup-view-model--metadata-on-thumbnail";else{switch(si.collectionStackNumber){case 1:si="yt-lockup-view-model--collection-stack-1";break a;case 2:si="yt-lockup-view-model--collection-stack-2";break a}si=void 0}}return si},function(){var si;
return _.gKO((si=E())==null?void 0:si.contentId)},(Tt["yt-lockup-view-model--card"]=function(){return L().isCard},Tt["yt-lockup-view-model--compact"]=function(){return L().isTiny||L().sizing!=="STANDARD"},Tt["yt-lockup-view-model--protect-background"]=A,Tt["yt-lockup-view-model--add-margins"]=function(){return L().addMarginForFullbleed},Tt["yt-lockup-view-model--centered"]=function(){return L().isCentered},Tt["yt-lockup-view-model--fullbleed"]=function(){return L().fullbleed},Tt["yt-lockup-view-model--single-column-grid"]=
function(){return V()===1&&U()===2},Tt["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var si;
return(si=R())==null?void 0:si.useRichGridLegacyMargin},Tt["yt-lockup-view-model--flex-none"]=function(){return!_.r("lockup_flex_none_killswitch")},Tt)),
"on:mousedown":lY,"on:mouseleave":bY,"on:mouseup":j$,"on:mouseover":I,"on:touchstart":lY,"on:touchend":j$,"on:pointerleave":kL},_.H(_.lu,{model:function(){var si,Q0,ps=Object,$L=ps.assign,Cs=(O==null?void 0:O.thumbnailSize)||"small";a:{var km=L();var ZT=!!(F()&&((si=R())==null?0:si.onFocusEffect));switch((O==null?void 0:O.thumbnailSize)||"small"){case "small":si=4;break;case "large":si=12;break;default:si=8}if(ZT)km=si+12;else{switch(km.collectionStackNumber){case 1:km=si+8;break a;case 2:km=si+12;
break a}km=void 0}}Cs={thumbnailSize:Cs,triggerEvents:!0,customTopExtend:km};var l8;km=(Q0=R())==null?void 0:Q0.onFocusEffect;ZT=!(C==null||!C());if(km){var Rt,wE;Q0=ZT?(Rt=km.onFocusColor)==null?void 0:Rt.darkTheme:(wE=km.onFocusColor)==null?void 0:wE.lightTheme;var Gt,V0;Rt=ZT?(Gt=km.keyLightColor)==null?void 0:Gt.darkTheme:(V0=km.keyLightColor)==null?void 0:V0.lightTheme;var SW;Gt=ZT?(l8=km.touchResponseColor)==null?void 0:l8.darkTheme:(SW=km.touchResponseColor)==null?void 0:SW.lightTheme;l8={background:Q0!==
void 0?EU(Q0):void 0,keyLight:Rt!==void 0?EU(Rt):void 0};SW=[];V0=_.M(km.lightingTechniques||[]);for(Rt=V0.next();!Rt.done;Rt=V0.next())switch(Rt.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":SW.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":SW.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":SW.push(3)}l8={hoverEffect:{palette:l8,lightingTechniques:SW},touchEffect:{palette:{background:Gt!==void 0?EU(Gt):void 0}}}}else l8={};return $L.call(ps,{},Cs,l8)},
hovered:function(){return W()},
pointerDownEvent:R0.pointerDownEvent,pointerUpEvent:R0.pointerUpEvent,pointerLeaveEvent:R0.pointerLeaveEvent}),_.H(_.w,{cond:function(){var si;return F()&&W()&&((si=R())==null?void 0:si.onFocusEffect)},
then:function(){return _.H("div",{class:"yt-lockup-view-model__endorsement"},_.H(_.sY,{data:function(){return F()}},{attributionViewModel:function(si){return _.H(D7,{data:si.data,
useHeavyText:!0})}}))}}),_.H(_.zn,{command:function(){var si;
return _.c9((si=E())==null?void 0:si.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return(f()||L().thumbnailFixedWidth)&&L().arrangement===1?"width: "+(f()||L().thumbnailFixedWidth):""}},_.H(_.sY,{data:function(){var si;
return(si=E())==null?void 0:si.contentImage}},{thumbnailViewModel:function(si){return _.H(zR,{data:si.data,
aspectRatio:function(){return L().aspectRatio},
disableRounding:function(){return L().disableRounding},
width:B,hovered:function(){return W()&&!(d()&&E().itemPlayback)},
isClip:function(){var Q0;return((Q0=E())==null?void 0:Q0.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:cmt(O),lockupExperiments:function(){return R()}})},
collectionThumbnailViewModel:function(si){return _.H(zPW,{data:si.data,aspectRatio:function(){return L().aspectRatio},
disableRounding:function(){return L().disableRounding},
width:B,doubleStack:function(){return L().collectionStackNumber===2},
hovered:function(){return W()&&!(d()&&E().itemPlayback)},
playbackRef:cmt(O)})},
decoratedAvatarViewModel:_.BM})),_.H("div",{class:"yt-lockup-view-model__metadata"},_.H(_.sY,{data:function(){var si;return(si=E())==null?void 0:si.metadata}},{lockupMetadataViewModel:function(si){return _.H(K_m,{data:si.data,
hovered:W,lockupStyle:L,lockupCommand:function(){var Q0;return _.c9((Q0=E())==null?void 0:Q0.rendererContext)},
lockupAccessibilityLabel:function(){return a()},
layout:function(){var Q0;return((Q0=R())==null?0:Q0.useInlineContentMetadata)?0:void 0}})},
feedAdMetadataViewModel:function(si){return _.H(oI,{data:si.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:m})}}),_.H(_.sY,{data:function(){var si;
return(si=E())==null?void 0:si.attachmentSlot}},{lockupAttachmentsViewModel:function(si){return _.H(s9s,{data:si.data,
lockupStyle:L})}}))),_.H(_.sY,{data:function(){var si;
return(si=E())==null?void 0:si.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(si){return _.H(s9s,{data:si.data,
lockupStyle:L})}}))},"Xb");
_.WM.idomCompat=!0;_.k2(_.WM,"yt-lockup-view-model",{props:{data:_.uu,containerLayoutConfig:_.uu,containerType:_.uu,sizing:_.uu,protectBackground:_.uu,typographyBump:_.uu,thumbnailFixedWidth:_.uu,thumbnailTargetWidth:_.uu,force16By9ThumbnailAspectRatio:_.uu,className:_.uu,lockupExperiments:_.uu,elementsPerRow:_.uu,useOverlayStyling:_.uu}});var GyO,xa3=_.l(function(t){var E=_.C4(t,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),p=E.text,U=E.alwaysShowTruncationText;t=E.truncationText;var x=E.onTextClick,A=E.maxLines,m=E.disableTextMask,b=E.textStyle,f=E.accessibilityLabel,B=E.textSize,R=E.alwaysTruncateAtMaxLines,V=E.expandOnClick;E=_.M(_.Py(!1,void 0,"EzA1q"));var Q=E.next().value,C=E.next().value;E=_.aC(function(){V()&&C(!Q());x==null||x()});
var d=function(){a:switch(B()){case "medium":var v=2;break a;case "large":v=2.2;break a;default:v=1.8}return v},I=Dr8(p,function(){return Q()?Infinity:A()},d,m,R,Q),O=I.isTruncated;
p=I.displayText;R=I.contentRef;var a=I.hiddenRef,F=I.placeholderTruncationTextRef,L=I.hiddenTruncationTextRef;I=I.truncationTextRef;var D={},W={},K={};return _.H("truncated-text",{class:_.X5((D["yt-truncated-text"]=!0,D["yt-truncated-text--overlay"]=function(){return b()==="overlay"},D["yt-truncated-text--medium-text"]=function(){return B()==="medium"},D["yt-truncated-text--large-text"]=function(){return B()==="large"},D["yt-truncated-text--primary-text"]=function(){return b()==="primary-text"},D)),
"on:click":E,style:function(){return"line-height: "+d()+"rem;"}},_.H("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:R,style:function(){return Q()?"":"max-height: "+A()*d()+"rem;"}},_.H(_.d8,{text:p}),_.H("button",{"aria-disabled":!0,
disabled:!0,class:_.X5((W["yt-truncated-text__inline-button"]=!0,W["yt-truncated-text--hidden"]=function(){return!(!Q()&&(U!=null&&U()||O()))},W)),
el:F,style:function(){return"line-height: "+d()+"rem;"}},_.H(_.d8,{text:t}))),_.H("truncated-text-content",{class:_.X5("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:a,style:function(){return Q()?"":"max-height: "+A()*d()+"rem;"},
"aria-hidden":"true"},_.H(_.d8,{text:p}),_.H("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:L,style:function(){return"line-height: "+d()+"rem;"}},_.H(_.d8,{text:t}))),_.H("button",{"aria-label":f,
class:_.X5((K["yt-truncated-text__absolute-button"]=function(){return!m()},K["yt-truncated-text__bottom-button"]=function(){return m()},K["yt-truncated-text--hidden"]=function(){return!(!Q()&&(U!=null&&U()||O()))},K)),
el:I,style:function(){return"line-height: "+d()+"rem;"}},_.H(_.d8,{text:t})))},"Zb");
xa3.idomCompat={callbacks:{onTextClick:!0}};var Mz3=_.l(function(t){var E=t.data;t=t.className;var p=_.KN(function(){return LcO(E())},void 0,"uDhDke"),U=_.H(_.Oj,null,_.H(_.w,{cond:function(){return E().heroText||E().image},
then:function(){return _.H(AEf,{data:E})}}),_.H(YE0,{data:E,
sizeSmall:function(){return E().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.H("yt-video-attribute-view-model",{class:t},_.H("div",{class:function(){var x=E();a:switch(x.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var A="yt-video-attribute-view-model--vertical";break a;default:A="yt-video-attribute-view-model--horizontal"}a:switch(x.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var m="yt-video-attribute-view-model--image-small";break a;default:m="yt-video-attribute-view-model--image-large"}a:switch(x.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var b=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":b="yt-video-attribute-view-model--image-avatar";break a;default:b=""}a:switch(x.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var f="yt-video-attribute-view-model--metadata-header";break a;default:f=""}a:switch(x.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var B="yt-video-attribute-view-model--container-card";break a;default:B=""}return["yt-video-attribute-view-model",A,m,
b,f,B,LcO(x)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.zO({"background-color":function(){var x=E();if(x.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var A="";else{A=x.lightColorPalette;x=x.darkColorPalette;var m,b=((m=_.X3().resolve(_.OB(_.Ld)))==null?0:m())&&x?x:A;A=(A=b==null?void 0:b.section2Color)?_.cL(A):""}return A}})},_.H(_.w,{cond:p,
then:function(){return _.H(_.zn,{className:"yt-video-attribute-view-model__content-container",command:p,role:"group",ariaLabel:function(){return E().title}},U)},
else:function(){return _.H("div",{class:"yt-video-attribute-view-model__content-container"},U)}})))},"$b");
Mz3.idomCompat=!0;var AEf=_.l(function(t){var E=t.data;var p,U=(p=_.X3().resolve(_.OB(_.Ld)))==null?void 0:p(),x=function(){return U&&E().darkThemeImage?E().darkThemeImage:E().image},A=_.KN(function(){return P_D(E())},void 0,"UDqj0b");
return _.H("div",{class:"yt-video-attribute-view-model__hero-section"},_.H(_.SC,null,_.H(_.Kw,{when:x},function(){return _.H(_.Q9,{data:function(){return x()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.H(_.Kw,{when:function(){return E().heroText}},function(){return _.H("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.H("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return E().heroText}))})),_.H(_.w,{cond:function(){return E().overflowMenuOnTap},
then:function(){return _.H("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.H(_.N7,{data:A,iconName:"MORE_VERT"}))}}))},"ac");
AEf.idomCompat=!0;var YE0=_.l(function(t){var E=t.data;t=t.sizeSmall;var p=function(){return E().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},U=_.KN(function(){return mh(_.MA({innertubeCommand:LcO(E())}))?"link":LcO(E())?"button":"group"},void 0,"e2MmYe"),x={};
return _.H("div",{class:_.X5("yt-video-attribute-view-model__metadata",(x["yt-video-attribute-view-model--small-font"]=t,x)),role:U},_.H("h1",{class:"yt-video-attribute-view-model__title"},function(){return E().title}),_.H(_.w,{cond:function(){return E().subtitle},
then:function(){return _.H("h4",{class:"yt-video-attribute-view-model__subtitle"},_.H(_.w,{cond:p,then:function(){return _.H(xa3,{text:function(){return sHO(E().subtitle)},
truncationText:function(){return sHO(E().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.H("span",null,function(){return E().subtitle})}}))}}),_.H(_.w,{cond:function(){return E().secondarySubtitle},
then:function(A){return _.H("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.H(_.d8,{text:function(){var m=A();if(m!=null&&m.attachmentRuns){for(var b=[],f=_.M(m.attachmentRuns),B=f.next();!B.done;B=f.next())B=B.value,B.element&&b.push(Object.assign({},B,{element:Object.assign({},B.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));m=Object.assign({},m,{attachmentRuns:b})}return m}}))}}),_.H(_.sY,
{data:function(){return E().buttonViewModel}},{buttonViewModel:function(A){return _.H(_.D5,{data:A.data,
className:"yt-video-attribute-view-model__button"})}}))},"bc");
YE0.idomCompat=!0;_.k2(Mz3,"yt-video-attribute-view-model",{props:{data:_.uu,className:_.uu}});var $l=function(){var t=_.z.apply(this,arguments)||this;t.useHighlightStyling=_.r("web_enable_deeper_metadata_highlight_styling");t.isSearch=!1;t.JSC$15561_lastScrollContainerWidth=NaN;t.pageLoadingFromNavigation=!1;t.currentIndex=0;t.supportComponentResize=!1;return t};
_.u($l,_.z);_.Y=$l.prototype;
_.Y.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}}}}}};
_.Y.attached=function(){document.addEventListener("yt-page-type-changed",_.zI(this,this.onPageChange))};
_.Y.detached=function(){document.removeEventListener("yt-page-type-changed",_.zI(this,this.onPageChange))};
_.Y.getItemsPath=function(){return"data.cards"};
_.Y.onIronResize=function(){this.updateListStyles()};
_.Y.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var t;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(t=this.data)==null?void 0:t.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.r("problem_walkthrough_sd")&&!!this.centerItems};
_.Y.computeCardListStyle=function(t){return t||null};
_.Y.computeEmpty=function(t){return!this.get("cards.length",t)};
_.Y.computeThumbnailStyle=function(t){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",t)||null};
_.Y.computeHasSubtitle=function(t){return!!this.get("header.richListHeaderRenderer.subtitle",t)};
_.Y.computeInitialCountNumber=function(t){return this.hasSquareMiniApp&&t==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&t==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:t==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:t==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:t==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&t==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.Y.computeUseFloorScrolling=function(t){return t==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.Y.computeHasGameCard=function(t){return(t=this.get("cards",t))?t.some(function(E){return E.gameCardRenderer}):!1};
_.Y.computeCenterHeaderTitle=function(t){return!(t==null||!t.centerHeaderTitle)};
_.Y.computeHasPortraitMiniApp=function(t){return(t=t==null?void 0:t.cards)?t.some(function(E){return E.miniGameCardViewModel&&E.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.Y.computeHasSquareMiniApp=function(t){return(t=t==null?void 0:t.cards)?t.some(function(E){return E.miniGameCardViewModel&&E.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.Y.computeHasSkinnyWidthPortraitMiniApp=function(t){return(t=t==null?void 0:t.cards)?t.some(function(E){return E.miniGameCardViewModel&&E.miniGameCardViewModel.width===135}):!1};
_.Y.computeCenterItems=function(t){return!!t};
_.Y.computeHasInfoPanel=function(t){var E;return t==null?void 0:(E=t.cards)==null?void 0:E.some(function(p){return p.infoPanelContentRenderer})};
_.Y.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.Y.getItemByIndex=function(t){var E=this.items.children;return E&&E.length>t?E[t]:void 0};
_.Y.onPageChange=function(){var t=this;this.pageLoadingFromNavigation=!0;_.ir.addJob(function(){t.pageLoadingFromNavigation=!1;_.uO(t.hostElement,"yt-terminate-video-preview-action")},8)};
_.Y.updateListStyles=function(){if(_.r("problem_walkthrough_sd")&&this.JSC$15561_scrollContainer!==void 0){var t=this.JSC$15561_scrollContainer.clientWidth;t!==this.JSC$15561_lastScrollContainerWidth&&(this.JSC$15561_lastScrollContainerWidth=t,_.eU(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(t*.8,415)+"px"}),_.kT(this.hostElement,"iron-resize"))}};
_.aE.Object.defineProperties($l.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.r("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return!!((t=this.data)==null?0:(E=t.cards)==null?0:(p=E[0])==null?0:p.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return!!((t=this.data)==null?0:(E=t.cards)==null?0:(p=E[0])==null?0:p.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return _.r("enable_desktop_amsterdam_info_panels")&&!!((t=this.data)==null?0:(E=t.cards)==null?0:(p=E[0])==null?0:p.infoPanelContentRenderer)}}});
$l.prototype.dataChanged=$l.prototype.dataChanged;$l.prototype.onIronResize=$l.prototype.onIronResize;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],$l.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],$l.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.zp.YtdHorizontalListBehavior),_.P("design:type",Object)],$l.prototype,"ytdHorizontalListBehavior",void 0);
_.N([_.g(_.Rl),_.P("design:type",Object)],$l.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],$l.prototype,"data",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],$l.prototype,"useCustomColors",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],$l.prototype,"useHighlightStyling",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.P("design:type",Object)],$l.prototype,"cardListStyle",void 0);_.N([_.e({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.P("design:type",Boolean)],$l.prototype,"empty",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.P("design:type",Boolean)],$l.prototype,"hasSubtitle",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.P("design:type",Boolean)],$l.prototype,"thumbnailStyle",void 0);_.N([_.e({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.P("design:type",Boolean)],$l.prototype,"hasGameCard",void 0);_.N([_.e({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.P("design:type",Boolean)],$l.prototype,"centerHeaderTitle",void 0);
_.N([_.e({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.P("design:type",Boolean)],$l.prototype,"hasPortraitMiniApp",void 0);_.N([_.e({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.P("design:type",Boolean)],$l.prototype,"hasSquareMiniApp",void 0);_.N([_.e({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.P("design:type",Boolean)],$l.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.N([_.e({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.P("design:type",Boolean)],$l.prototype,"hasInfoPanel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],$l.prototype,"isSearch",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],$l.prototype,"inlineStructuredDescription",void 0);_.N([_.Nl("#scroll-container"),_.P("design:type",HTMLDivElement)],$l.prototype,"JSC$15561_scrollContainer",void 0);
_.N([_.e({computed:"computeInitialCountNumber(data.style.type)"}),_.P("design:type",Number)],$l.prototype,"initialCount",void 0);_.N([_.e({computed:"computeUseFloorScrolling(data.style.type)"}),_.P("design:type",Boolean)],$l.prototype,"useFloorScrolling",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.P("design:type",Boolean)],$l.prototype,"centerItems",void 0);_.N([_.e(),_.P("design:type",Object)],$l.prototype,"pageLoadingFromNavigation",void 0);
_.N([_.e(),_.P("design:type",Object)],$l.prototype,"currentIndex",void 0);_.N([_.e(),_.P("design:type",Number)],$l.prototype,"scrollCount",void 0);_.N([_.e(),_.P("design:type",Object)],$l.prototype,"supportComponentResize",void 0);_.N([_.Nl("#items"),_.P("design:type",HTMLDivElement)],$l.prototype,"items",void 0);_.N([_.lc("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$l.prototype,"onIronResize",null);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$l.prototype,"dataChanged",null);_.N([_.e({reflectToAttribute:!0}),_.Z("inlineStructuredDescription"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],$l.prototype,"hideNavigationButton",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],$l.prototype,"modernChapters",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],$l.prototype,"hasVideoAttributeViewModels",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],$l.prototype,"modernInfoPanels",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],$l);
_.G($l,"ytd-horizontal-card-list-renderer",function(){if(Sor!==void 0)return Sor;var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Sor=t},{mode:_.hX("kevlar_poly_si_batch_j072")?1:2});var maW=_.l(function(t){var E=t.data;var p={};return _.H("video-summary-content-view-model",{class:_.X5("videoSummaryContentViewModelHost",t.className,(p.videoSummaryContentViewModelHostIsSearch=t.isSearch,p))},_.H(_.yG,{each:function(){var U=[],x=E().paragraphs;if(x==null||!x.length)return[];for(var A=0;A<x.length;A++){var m=_.k(x[A],QSG),b=void 0;A>0&&(b=_.k(x[A-1],QSG));b&&!!b.marker===!!m.marker?U[U.length-1].paragraphs.push(m):U.push({isList:!!m.marker,paragraphs:[m]})}return U},
keyBy:"INDEX"},function(U){return _.H(_.w,{cond:function(){return U().isList},
then:function(){return _.H("ul",{class:"videoSummaryContentViewModelList"},_.H(_.yG,{each:function(){return U().paragraphs},
keyBy:"INDEX"},function(x){return _.H("li",{class:"videoSummaryContentViewModelListItem"},_.H(_.d8,{text:function(){return x().text}}))}))},
else:function(){return _.H("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.H(_.yG,{each:function(){return U().paragraphs},
keyBy:"INDEX"},function(x){return _.H("p",{class:"videoSummaryContentViewModelParagraph"},_.H(_.d8,{text:function(){return x().text}}))}))}})}),_.H(_.w,{cond:function(){return!!_.k(E().likeButtonViewModel,_.qm)&&!!_.k(E().dislikeButtonViewModel,_.Hn)},
then:function(){return _.H("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.H("div",{class:"videoSummaryContentViewModelLikeButton"},_.H(_.Vf,{data:function(){return _.k(E().likeButtonViewModel,_.qm)},
disableIconAnimation:!0})),_.H(_.R2,{data:function(){return _.k(E().dislikeButtonViewModel,_.Hn)}}))}}))},"cc");
maW.idomCompat=!0;_.k2(maW,"video-summary-content-view-model",{props:{data:_.uu,isSearch:_.uu,className:_.uu}});var Kk=function(){var t=_.z.apply(this,arguments)||this;var E,p;t.isExpanded=(p=(E=t.data)==null?void 0:E.isExpanded)!=null?p:!1;t.disableExpand=!1;t.showProminentLabel=!1;t.showRightSideLabel=!0;t.toggleExpandableContent=function(U){t.disableExpand||(U.stopPropagation(),_.Cd(_.Vx(U),t.hostElement,["info","expanded-subtitle"])||(t.isExpanded=!t.isExpanded,t.ytRendererBehavior.logExplicitClick(t.data),t.JSC$15572_cardList&&!_.r("expandable_metadata_a11y_fix_ks")&&_.XE(t,function(){_.Jw(t.hostElement)})))};
t.useSquareThumbnail=!1;t.startX=0;return t};
_.u(Kk,_.z);_.Y=Kk.prototype;_.Y.computeUseSquareThumbnail=function(){var t;return(t=this.data)==null?void 0:t.useSquareThumbnail};
_.Y.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"}}}}};
_.Y.dataChanged=function(){if(this.data){var t,E;this.isExpanded=(E=(t=this.data)==null?void 0:t.isExpanded)!=null?E:!1;var p,U,x,A;if(t=this.isDarkTheme()?(p=this.data)==null?void 0:(U=p.colorData)==null?void 0:U.darkColorPalette:(x=this.data)==null?void 0:(A=x.colorData)==null?void 0:A.lightColorPalette){var m,b;if((m=this.data)==null?0:(b=m.colorData)==null?0:b.vibrantColorPalette)t.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.$2(this.hostElement,t)}}};
_.Y.isExpandedChanged=function(){this.isExpanded&&this.JSC$15572_cardList&&_.kT(this.JSC$15572_cardList,"iron-resize")};
_.Y.computeIsExpanded=function(t){return!!t.isExpanded};
_.Y.computeShowProminentLabel=function(t,E){var p;return!!(t==null?0:(p=t.header)==null?0:p.showLeadingCollapsedLabel)&&!E};
_.Y.computeShowRightSideLabel=function(t,E){var p;return!(t==null?0:(p=t.header)==null?0:p.showLeadingCollapsedLabel)&&!E};
_.Y.captureContentClick=function(t){if(!this.disableExpand)if(_.r("expandable_metadata_fix_killswitch")){var E=t.target;_.Md0(E,"ytd-macro-markers-list-item-renderer")||t.stopPropagation();(E==null?void 0:E.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.Cd(_.Vx(t),this.hostElement,["items"])||_.Qb(_.Vx(t),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.Y.timestampClick=function(t){t.stopPropagation();var E,p;(t=(E=this.data)==null?void 0:(p=E.header)==null?void 0:p.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(t)};
_.Y.onDown=function(t){t.stopPropagation();this.startX=t.detail?t.detail.x:0};
_.Y.onUp=function(t){this.skipKeyInteraction(t)&&t.stopPropagation()};
_.Y.skipKeyInteraction=function(t){var E=t.target;if((E==null?void 0:E.id)==="scroll-container"||(E==null?void 0:E.id)==="items"||t.detail&&t.detail.x!==this.startX)return!0;t=_.Vx(t);t=_.M(t);for(E=t.next();!E.done;E=t.next()){E=E.value;if(E===this.hostElement)break;if(E.hasAttribute&&E.hasAttribute("skip-key-interaction"))return!0}return!1};
_.Y.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.aE.Object.defineProperties(Kk.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var t;return!!_.k((t=this.data)==null?void 0:t.expandedContent,VV4)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var t;return!!_.k((t=this.data)==null?void 0:t.expandedContent,CeW)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var t,E;return!((t=this.data)==null||!t.useCustomColors)&&!((E=this.data)==null||!E.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var t,E;return!!((t=this.data)==null?0:(E=t.header)==null?0:E.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var t,E;return!!((t=this.data)==null?0:(E=t.header)==null?0:E.expandedSubtitle)&&this.isExpanded}},
expandedSubtitleTarget:{configurable:!0,enumerable:!0,get:function(){var t,E,p=(t=this.data)==null?void 0:(E=t.header)==null?void 0:E.expandedSubtitleTapCommand;t=p&&_.k(p,_.kX);return _.r("web_open_ai_support_links_external_window")&&(t==null?void 0:t.target)==="TARGET_NEW_WINDOW"?"_blank":null}},
expandedSubtitleRel:{configurable:!0,enumerable:!0,get:function(){var t,E,p=(t=this.data)==null?void 0:(E=t.header)==null?void 0:E.expandedSubtitleTapCommand;t=p&&_.k(p,_.kX);return _.r("web_open_ai_support_links_external_window")&&(t==null?void 0:t.target)==="TARGET_NEW_WINDOW"?"noopener":null}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var t,E;return!!((t=this.data)==null?0:(E=t.header)==null?0:E.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
Kk.prototype.onUp=Kk.prototype.onUp;Kk.prototype.onDown=Kk.prototype.onDown;Kk.prototype.isExpandedChanged=Kk.prototype.isExpandedChanged;Kk.prototype.dataChanged=Kk.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Kk.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Kk.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Kk.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Kk.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Kk.prototype,"isExpanded",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Kk.prototype,"disableExpand",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],Kk.prototype,"isSearch",void 0);
_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],Kk.prototype,"isWatch",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.P("design:type",Object)],Kk.prototype,"showProminentLabel",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.P("design:type",Object)],Kk.prototype,"showRightSideLabel",void 0);
_.N([_.e({value:!1,reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Kk.prototype,"hasVideoSummary",null);_.N([_.e({value:!1,reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Kk.prototype,"hasLockupViewModel",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data","isWatch"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Kk.prototype,"useCustomColors",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("data","isExpanded"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Kk.prototype,"showInfoButton",null);_.N([_.Z("data","isExpanded"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Kk.prototype,"showTimestamp",null);_.N([_.Z("data","isExpanded"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Kk.prototype,"showExpandedSubtitle",null);
_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Kk.prototype,"expandedSubtitleTarget",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Kk.prototype,"expandedSubtitleRel",null);_.N([_.Z("data","isExpanded"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Kk.prototype,"showThumbnail",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Kk.prototype,"useVppShoppingDestinationStyle",null);
_.N([_.e(),_.P("design:type",Object)],Kk.prototype,"toggleExpandableContent",void 0);_.N([_.Nl("ytd-horizontal-card-list-renderer"),_.P("design:type",Object)],Kk.prototype,"JSC$15572_cardList",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.P("design:type",Object)],Kk.prototype,"useSquareThumbnail",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Kk.prototype,"dataChanged",null);
_.N([_.GI("isExpanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Kk.prototype,"isExpandedChanged",null);_.N([_.lc("down"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Kk.prototype,"onDown",null);_.N([_.lc("up"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Kk.prototype,"onUp",null);
_.N([_.Ul({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],Kk);
_.G(Kk,"ytd-expandable-metadata-renderer",function(){if(Mn4!==void 0)return Mn4;var t=document.createElement("template");_.J(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]" target$="[[expandedSubtitleTarget]]" rel$="[[expandedSubtitleRel]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[!isExpanded]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Mn4=t},{mode:1});var bYZ,iYp=function(){if(bYZ!==void 0)return bYZ;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return bYZ=t};_.k2(_.wp,"yt-avatar-stack-view-model",{props:{className:_.uu,data:_.uu,overrides:_.uu,isOverlay:_.uu,useMediumText:_.uu,decorations:_.uu,hideAvatar:_.uu}});_.vs("itemSectionRenderer","videoRenderer","ytd-video-renderer");var vM=function(){var t=_.z.apply(this,arguments)||this;t.disableExpand=!1;t.shouldShowChannelInfo=!1;t.hasAttributedBylineText=!1;t.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return t};
_.u(vM,_.z);_.Y=vM.prototype;_.Y.computeUseSearchUi=function(){var t,E;return this.isSearch||((t=this.data)==null?void 0:(E=t.style)==null?void 0:E.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.Y.computeUseThreeLineTitle=function(){var t;return((t=this.data)==null?void 0:t.maxTitleLines)===3};
_.Y.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.r("polymer_video_renderer_defer_menu")&&!LRm?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"}}}};
_.Y.attached=function(){_.XM(this.hostElement,"blue-links",_.r("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.Y.detached=function(){this.clearInlinePreviewHoverListeners()};
_.Y.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.h2(_.ZN(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var t=this.get("data.buttons.buttonRenderer.serviceEndpoint"),E;t&&((E=_.k(t.commandMetadata,_.t1))==null?0:E.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(t);this.updateInlinePreviewHoverListeners()};
_.Y.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15577_inlinePreviewHoverListener=xj({mediaRenderer:this,lockupElement:this.JSC$15577_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.Y.clearInlinePreviewHoverListeners=function(){var t;(t=this.JSC$15577_inlinePreviewHoverListener)==null||dI(t)};
_.Y.onTextWrapperClick=function(t){var E,p,U=this.hideTranslation?(E=this.data)==null?void 0:E.untranslatedNavigationEndpoint:(p=this.data)==null?void 0:p.navigationEndpoint;E=_.Cd(_.Vx(t),this.hostElement,["expandable-metadata"]);!U||E&&!_.r("expandable_metadata_fix_killswitch")||_.Qb(_.Vx(t),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.kT(this.hostElement,"yt-navigate",{endpoint:U})};
_.Y.computeThumbnailWidth=function(t,E,p,U,x){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:U?x==="MASSIVE"?600:x==="BIG"?500:x==="MEDIUM"?450:420:p?360:E?128:t?210:246};
_.Y.computeUseBiggerThumbs=function(t){return t&&_.r("enable_desktop_search_bigger_thumbs")};
_.Y.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.Y.computeHasAttributedBylineText=function(){var t;return!((t=this.data)==null||!t.attributedBylineText)};
_.Y.computeVideoStyle=function(){if(_.r("enable_video_style")){var t,E;return(t=this.data)==null?void 0:(E=t.style)==null?void 0:E.value}};
_.Y.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.Y.handleHideItemSectionVideosByIdCommand=function(t){var E;t=(E=_.k(t,Nco))==null?void 0:E.videoId;this.data&&this.data.videoId===t&&(this.isHidden=!0)};
_.Y.getMetadataSnippetContainerClass=function(t){return t?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.Y.computeTitleText=function(t,E,p){return t?p:E};
_.Y.computeDescriptionSnippet=function(t,E,p){return t?p:E};
_.Y.computeSnippetText=function(t,E,p){return t?p:E};
_.Y.computeNavigationEndpoint=function(t,E){return t?E==null?void 0:E.untranslatedNavigationEndpoint:E==null?void 0:E.navigationEndpoint};
_.Y.hideInlineTitleIcon=function(t,E){return t||!E};
_.aE.Object.defineProperties(vM.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 t;return(t=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?t:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return!!(this==null?0:(t=this.data)==null?0:(E=t.channelThumbnailSupportedRenderers)==null?0:(p=E.channelThumbnailWithLinkRenderer)==null?0:p.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var t;return!!_.k((t=this.data)==null?void 0:t.avatar,jls)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.JSC$15577_inlinePreviewHoverListener)==null?0:Q5(t))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.aE.Object.defineProperties(vM,{template:{configurable:!0,enumerable:!0,get:function(){return iYp()}}});
vM.prototype.dataChanged=vM.prototype.dataChanged;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],vM.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],vM.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],vM.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],vM.prototype,"ytdDismissibleItemBehavior",void 0);
_.N([_.g(_.dy),_.P("design:type",Object)],vM.prototype,"ytdLockupBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],vM.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],vM.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],vM.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],vM.prototype,"isBackstageVideo",void 0);
_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],vM.prototype,"isPostCompactVideo",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],vM.prototype,"isHistory",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],vM.prototype,"isRichGridVideoPost",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],vM.prototype,"isHidden",void 0);
_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],vM.prototype,"isSearch",void 0);_.N([_.e({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.P("design:type",Boolean)],vM.prototype,"useSearchUi",void 0);_.N([_.e({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.P("design:type",Boolean)],vM.prototype,"useThreeLineTitle",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.P("design:type",Boolean)],vM.prototype,"useBiggerThumbs",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.P("design:type",Object)],vM.prototype,"videoStyle",void 0);_.N([_.e({computed:"computeDisableExpand(videoStyle)"}),_.P("design:type",Object)],vM.prototype,"disableExpand",void 0);
_.N([_.e({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.P("design:type",Object)],vM.prototype,"shouldShowChannelInfo",void 0);_.N([_.e({computed:"computeHasAttributedBylineText(data)"}),_.P("design:type",Object)],vM.prototype,"hasAttributedBylineText",void 0);_.N([_.e({reflectToAttribute:!0,value:function(){return _.la("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],vM.prototype,"biggerThumbsStyle",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.P("design:type",String)],vM.prototype,"inlineTitleIcon",void 0);_.N([_.e({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.P("design:type",Object)],vM.prototype,"computedNavigationEndpoint",void 0);_.N([_.e({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(t,E){return _.hj(t.entities,"searchVideoResultEntity",E)}}),
_.P("design:type",Object)],vM.prototype,"searchVideoResultEntity",void 0);_.N([_.Nl("ytd-thumbnail"),_.P("design:type",HTMLElement)],vM.prototype,"thumbnail",void 0);_.N([_.Nl("#dismissible"),_.P("design:type",HTMLElement)],vM.prototype,"JSC$15577_dismissibleMedia",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vM.prototype,"dataChanged",null);
_.N([_.Z("searchVideoResultEntity"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],vM.prototype,"hideTranslation",null);_.N([_.Z("searchVideoResultEntity"),_.P("design:type",Array),_.P("design:paramtypes",[])],vM.prototype,"hiddenBadgeGroups",null);_.N([_.Z("data","useAvatar"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],vM.prototype,"shouldShowChannelThumbnail",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],vM.prototype,"useAvatar",null);
_.N([_.Z("lockupIsHovered"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],vM.prototype,"isHovered",null);_.N([_.Ul({is:"ytd-video-renderer",disableElementRegistration:!0})],vM);_.G(vM,"ytd-video-renderer",function(){return iYp()},{mode:_.hX("kevlar_poly_si_batch_j047")?1:2});var y5=function(){var t=_.z.apply(this,arguments)||this;t.editDialog=null;t.roundedContainer=!0;t.isLoading=!1;t.isRichGrid=!1;t.isRichGridRepost=!1;t.reduceSidePaddings=_.r("reduce_side_paddings_in_shelf");t.JSC$15584_spinnerEl=null;return t};
_.u(y5,_.z);_.Y=y5.prototype;
_.Y.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"}}}};
_.Y.contentTextChanged=function(){this.expander.reset()};
_.Y.dataChanged=function(){var t=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var E=0,p=this.data.actions&&this.data.actions.length;E<p;E++)this.openEditDialog(_.k(this.data.actions[E],k93));if((E=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(E=this.get("buttonRenderer.hint.hintRenderer.hintId",E))&&E.startsWith("share-post-hint")){var U=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(U){_.Li.getInstance();var x=P5(_.wN(_.zF("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.ir.addLowPriorityJob(function(){_.IK(t.hostElement,x,U)})}}}};
_.Y.updatePoll=function(t){t>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.Y.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15584_spinnerEl||(this.JSC$15584_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.ZN(this.hostElement).appendChild(this.JSC$15584_spinnerEl));this.JSC$15584_spinnerEl&&(this.JSC$15584_spinnerEl.active=this.isLoading)};
_.Y.onYtNavigate=function(t){var E=this.get("updateCommentDialogEndpoint",t.detail.endpoint);E&&(this.openEditDialog(E),t.stopPropagation())};
_.Y.onYtCommentboxDismiss=function(){this.editDialog=null};
_.Y.onYtCommentPollRevert=function(t,E){E&&this.updatePoll(E.selectedChoiceIndex)};
_.Y.onYtServiceRequestSent=function(t,E){var p;E.endpoint&&(_.k(E.endpoint,F3X)||_.k(E.endpoint,eOZ)&&((p=_.k(E.endpoint,eOZ))==null||!p.clientActions))&&(this.isLoading=!0);if(E.actions)for(t=0;t<E.actions.length;t++)p=E.actions[t],_.k(p,Sl)&&(p=this.get("updateBackstagePollAction.selectedChoiceIndex",p),p==void 0&&(p=-1),this.updatePoll(p))};
_.Y.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.Y.openEditDialog=function(t){t&&t.dialog&&(this.editDialog=t.dialog,t=this.editDialogEl.firstElementChild)&&(t.focus(),t.openDialog&&t.openDialog())};
_.Y.computeIsPostHidden=function(t,E){return!!t||E};
_.Y.computeSurfaceType=function(t){return t?t.toLowerCase().replace(/_/g,"-"):""};
_.Y.computeUsesCompactLockup=function(t){return t==="BACKSTAGE_SURFACE_TYPE_HOME"||t==="BACKSTAGE_SURFACE_TYPE_SEARCH"||t==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||t==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||t==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||t==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.Y.computeShowWithoutToolbar=function(t){return!t.actionButtons&&!t.actionMenu};
_.Y.computePostAttachment=function(t){if(t.backstageAttachment){if(_.k(t.backstageAttachment,HHX))return"poll";if(_.k(t.backstageAttachment,v9m))return"quiz";if(_.k(t.backstageAttachment,_.r4m))return"video";if(_.k(t.backstageAttachment,yS4))return"uploaded-videos";if(_.k(t.backstageAttachment,oE3))return t.contentText?"image":"image-only";if(_.k(t.backstageAttachment,o90))return"playlist"}return"none"};
_.Y.computePostTabIndex=function(t){return t?0:-1};
_.Y.computeButtonTooltipPosition=function(t){return this.computeUsesCompactLockup(t)?"top":"bottom"};
_.Y.computeHasText=function(t){return!(t==null||!t.contentText)};
_.Y.onTap=function(t){var E,p;if(((E=this.data)==null?0:E.navigationEndpoint)&&((p=this.data)==null?void 0:p.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var U;((U=this.data)==null?0:U.navigationEndpoint)&&!_.Qb(_.Vx(t)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.kT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.aE.Object.defineProperties(y5.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.voteCount)||_.wN("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.k(this.data.backstageAttachment,HHX))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.k(this.data.backstageAttachment,yS4))}}});
y5.prototype.onYtServiceRequestCompleted=y5.prototype.onYtServiceRequestCompleted;y5.prototype.onYtServiceRequestSent=y5.prototype.onYtServiceRequestSent;y5.prototype.onYtCommentPollRevert=y5.prototype.onYtCommentPollRevert;y5.prototype.onYtCommentboxDismiss=y5.prototype.onYtCommentboxDismiss;y5.prototype.onYtNavigate=y5.prototype.onYtNavigate;y5.prototype.isLoadingChanged=y5.prototype.isLoadingChanged;y5.prototype.dataChanged=y5.prototype.dataChanged;y5.prototype.contentTextChanged=y5.prototype.contentTextChanged;
_.N([_.g(_.Rl),_.P("design:type",Object)],y5.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],y5.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],y5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],y5.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],y5.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",Object)],y5.prototype,"editDialog",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],y5.prototype,"roundedContainer",void 0);_.N([_.e(),_.P("design:type",Object)],y5.prototype,"isLoading",void 0);_.N([_.e({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.P("design:type",String)],y5.prototype,"surface",void 0);
_.N([_.e({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.P("design:type",Boolean)],y5.prototype,"usesCompactLockup",void 0);_.N([_.e({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],y5.prototype,"showWithoutToolbar",void 0);_.N([_.e({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.P("design:type",String)],y5.prototype,"attachment",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],y5.prototype,"isRichGrid",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],y5.prototype,"isRichGridRepost",void 0);_.N([_.e({reflectToAttribute:!0,value:_.r("use_better_post_dismissals")}),_.P("design:type",Boolean)],y5.prototype,"useBetterPostDismissals",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],y5.prototype,"reduceSidePaddings",void 0);
_.N([_.e({computed:"computeHasText(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],y5.prototype,"hasText",void 0);_.N([_.Nl("#expander"),_.P("design:type",Object)],y5.prototype,"expander",void 0);_.N([_.Nl("#action-buttons"),_.P("design:type",Object)],y5.prototype,"actionButtons",void 0);_.N([_.Nl("#edit-dialog"),_.P("design:type",HTMLElement)],y5.prototype,"editDialogEl",void 0);
_.N([_.GI("data.contentText"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],y5.prototype,"contentTextChanged",null);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],y5.prototype,"dataChanged",null);_.N([_.GI("isLoading"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],y5.prototype,"isLoadingChanged",null);
_.N([_.lc("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],y5.prototype,"onYtNavigate",null);_.N([_.lc("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],y5.prototype,"onYtCommentboxDismiss",null);_.N([_.lc("yt-comment-poll-revert"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],y5.prototype,"onYtCommentPollRevert",null);
_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.m8]),_.P("design:returntype")],y5.prototype,"onYtServiceRequestSent",null);_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Rn]),_.P("design:returntype")],y5.prototype,"onYtServiceRequestCompleted",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],y5.prototype,"voteCount",null);
_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],y5.prototype,"commentCount",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],y5.prototype,"hasPoll",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],y5.prototype,"hasUploadedVideo",null);_.N([_.Ul({is:"ytd-post-renderer",disableElementRegistration:!0})],y5);
_.G(y5,"ytd-post-renderer",function(){if(Z9r!==void 0)return Z9r;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Z9r=t},{mode:1});var qEG;var HYG;var Sm=function(){return _.z.apply(this,arguments)||this};
_.u(Sm,_.z);Sm.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Sm.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Sm.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.zp.YtdHorizontalListBehavior),_.P("design:type",Object)],Sm.prototype,"ytdHorizontalListBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Sm.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Sm.prototype,"data",void 0);
_.N([_.e({value:"$.items.children"}),_.P("design:type",String)],Sm.prototype,"itemsPath",void 0);_.N([_.e({value:1}),_.P("design:type",Number)],Sm.prototype,"initialCount",void 0);_.N([_.e({reflectToAttribute:!0,value:_.r("enable_community_page_on_desktop")}),_.P("design:type",Boolean)],Sm.prototype,"useSmallerPostImageAttachments",void 0);_.N([_.e(),_.P("design:type",String)],Sm.prototype,"surface",void 0);_.N([_.Ul({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],Sm);
_.G(Sm,"ytd-post-multi-image-renderer",function(){if(HYG!==void 0)return HYG;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return HYG=t},{mode:_.hX("kevlar_poly_si_batch_j079")?1:2});var fQ4={"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"}}},
cM=function(){var t=_.z.apply(this,arguments)||this;t.hasInlineCommentSection=!1;t.editDialog=null;t.isLoading=!1;t.shouldHideAuthor=!1;t.shouldShowVideoTime=!1;t.isInEngagementPanel=!1;t.hideBorder=!1;t.usesFullLockup=!1;t.shouldShowMenuInCompactView=!1;t.JSC$15599_spinnerEl=null;t.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return t};
_.u(cM,_.z);_.Y=cM.prototype;_.Y.configureRendererStamper=function(){return fQ4};
_.Y.computeIsPollHeaderEnabled=function(t){return(t==null?void 0:t.pollMetadataIcon)!=null};
_.Y.getPublishTimeStampString=function(t,E){E=new Date((Number(E)-60*((new Date).getTimezoneOffset()-(new Date(Number(E)*1E3)).getTimezoneOffset()))*1E3);E=(new BL(10)).format(E);if(t&&t.runs&&t.runs.length)for(var p=0;p<t.runs.length;p++)t.runs[p].text&&(t.runs[p].text=t.runs[p].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",E));return t};
_.Y.created=function(){this.JSC$15599_spinnerEl=null};
_.Y.contentTextChanged=function(){this.expander.reset()};
_.Y.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var t;if((t=this.data)==null?0:t.actions){t=_.M(this.data.actions);for(var E=t.next();!E.done;E=t.next())this.openEditDialog(_.k(E.value,k93))}};
_.Y.handleSignalActionOpenPostCommentDialogAction=function(){_.ZN(this.hostElement).querySelector("#action-buttons").reply()};
_.Y.updatePoll=function(t,E){E&&this.set("data.pollMetadataVoteCountText",E);this.hasInlineCommentSection&&(t=t>=0,E=_.ZN(this.hostElement).querySelector("#action-buttons"),t?E.reply():E.hideReplyDialog())};
_.Y.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15599_spinnerEl||(this.JSC$15599_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.ZN(this.hostElement).appendChild(this.JSC$15599_spinnerEl));this.JSC$15599_spinnerEl&&(this.JSC$15599_spinnerEl.active=this.isLoading)};
_.Y.onYtNavigate=function(t){var E=this.get("updateCommentDialogEndpoint",t.detail.endpoint);E&&(this.openEditDialog(E),t.stopPropagation())};
_.Y.onYtCommentboxDismiss=function(){this.editDialog=null};
_.Y.onYtCommentPollRevert=function(t,E){E&&this.updatePoll(E.selectedChoiceIndex,E.totalVotes)};
_.Y.onYtServiceRequestSent=function(t,E){t.stopPropagation();t=_.k(E.endpoint,eOZ);if(_.k(E.endpoint,F3X)||t&&!t.clientActions)this.isLoading=!0;if(E.actions)for(t=0;t<E.actions.length;t++){var p=E.actions[t],U=_.k(p,Sl);U&&(p=this.get("updateBackstagePollAction.selectedChoiceIndex",p),p===void 0&&(p=-1),this.updatePoll(p,U.totalVotes))}};
_.Y.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.Y.openEditDialog=function(t){t&&t.dialog&&(this.editDialog=t.dialog,t=this.editDialogElement.firstElementChild)&&(t.focus(),t.openDialog&&t.openDialog())};
_.Y.computeIsBodyHidden=function(t,E){return!!t||E};
_.aE.Object.defineProperties(cM.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var t=this.data,E=t.showPostAuthorBackgroundHighlight,p=t.postAuthorBadgeType,U=t.authorEndpoint;if(!E&&p!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&p!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var x,A,m;t=_.wN(((x=t.authorText)==null?void 0:(A=x.runs)==null?void 0:(m=A[0])==null?void 0:m.text)||"");x=void 0;switch(p){case "POST_AUTHOR_BADGE_TYPE_ARTIST":x={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":x={iconType:E?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:t,authorEndpoint:U,authorCreator:E,icon:x}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var t,E;if((t=this.data)==null?0:(E=t.pollMetadataIcon)==null?0:E.iconType)return _.zh(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.voteCount)||_.wN("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.k(this.data.backstageAttachment,HHX))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.k(this.data.backstageAttachment,v9m))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.k(this.data.backstageAttachment,yS4))}}});
cM.prototype.onYtServiceRequestCompleted=cM.prototype.onYtServiceRequestCompleted;cM.prototype.onYtServiceRequestSent=cM.prototype.onYtServiceRequestSent;cM.prototype.onYtCommentPollRevert=cM.prototype.onYtCommentPollRevert;cM.prototype.onYtCommentboxDismiss=cM.prototype.onYtCommentboxDismiss;cM.prototype.onYtNavigate=cM.prototype.onYtNavigate;cM.prototype.isLoadingChanged=cM.prototype.isLoadingChanged;cM.prototype.dataChanged=cM.prototype.dataChanged;cM.prototype.contentTextChanged=cM.prototype.contentTextChanged;
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],cM.prototype,"actionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],cM.prototype,"rendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],cM.prototype,"rendererstamperBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],cM.prototype,"ytdDismissibleItemBehavior",void 0);
_.N([_.Nl("#contentTextExpander"),_.P("design:type",Object)],cM.prototype,"expander",void 0);_.N([_.Nl("#edit-dialog"),_.P("design:type",Element)],cM.prototype,"editDialogElement",void 0);_.N([_.e(),_.P("design:type",Object)],cM.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],cM.prototype,"hasInlineCommentSection",void 0);_.N([_.e(),_.P("design:type",Object)],cM.prototype,"editDialog",void 0);_.N([_.e(),_.P("design:type",Object)],cM.prototype,"isLoading",void 0);
_.N([_.e({computed:"computeIsPollHeaderEnabled(data)"}),_.P("design:type",Boolean)],cM.prototype,"isPollHeaderEnabled",void 0);_.N([_.e(),_.P("design:type",Object)],cM.prototype,"shouldHideAuthor",void 0);_.N([_.e(),_.P("design:type",Object)],cM.prototype,"shouldShowVideoTime",void 0);_.N([_.e(),_.P("design:type",Object)],cM.prototype,"isInEngagementPanel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],cM.prototype,"hideBorder",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],cM.prototype,"usesFullLockup",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],cM.prototype,"shouldShowMenuInCompactView",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],cM.prototype,"authorCommentBadge",null);_.N([_.Z("isInEngagementPanel"),_.P("design:type",Number),_.P("design:paramtypes",[])],cM.prototype,"postTextMaxLines",null);
_.N([_.Z("data.icon.iconType"),_.P("design:type",Object),_.P("design:paramtypes",[])],cM.prototype,"pollIcon",null);_.N([_.GI("data.contentText"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cM.prototype,"contentTextChanged",null);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cM.prototype,"dataChanged",null);
_.N([_.GI("isLoading"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cM.prototype,"isLoadingChanged",null);_.N([_.lc("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],cM.prototype,"onYtNavigate",null);_.N([_.lc("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cM.prototype,"onYtCommentboxDismiss",null);
_.N([_.lc("yt-comment-poll-revert"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],cM.prototype,"onYtCommentPollRevert",null);_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.m8]),_.P("design:returntype")],cM.prototype,"onYtServiceRequestSent",null);
_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],cM.prototype,"onYtServiceRequestCompleted",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],cM.prototype,"voteCount",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],cM.prototype,"commentCount",null);
_.N([_.Z("data.backstageAttachment"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],cM.prototype,"hasPoll",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],cM.prototype,"hasQuiz",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],cM.prototype,"hasUploadedVideo",null);_.N([_.Ul({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],cM);
_.G(cM,"ytd-backstage-post-renderer",function(){if(qEG!==void 0)return qEG;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return qEG=t},{mode:1});var BLp;var t0=function(){var t=_.z.apply(this,arguments)||this;t.editDialog=null;t.showExpandButton=!1;t.isRichGrid=!1;t.usesFullLockup=!1;return t};
_.u(t0,_.z);_.Y=t0.prototype;_.Y.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"}}}};
_.Y.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.Y.computeShowExpandButton=function(t){return this.usesCompactLockup||t&&t.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.Y.computeUsesCompactLockup=function(t){return!!t.condensedContent};
_.Y.computeShowFullContentText=function(t){return!t};
_.Y.onYtNavigate=function(t){t=this.get("updateCommentDialogEndpoint",t.detail.endpoint);this.openEditDialog(t)};
_.Y.onYtCommentboxDismiss=function(){this.editDialog=null};
_.Y.openEditDialog=function(t){t&&t.dialog&&(this.editDialog=t.dialog,t=this.repostEditDialogEl.firstElementChild)&&(t.focus(),t.openDialog&&t.openDialog())};
_.Y.onTap=function(t){if(this.data){var E=null;this.usesCompactLockup&&!_.Qb(_.Vx(t)||[],this.hostElement,["YT-IMG-SHADOW"])?E=this.get("navigationEndpoint",this.data):t.target===this.moreButtonEl&&(E=this.get("navigationEndpoint",t.target.data));E&&_.kT(this.hostElement,"yt-navigate",{endpoint:E})}};
t0.prototype.onYtCommentboxDismiss=t0.prototype.onYtCommentboxDismiss;t0.prototype.onYtNavigate=t0.prototype.onYtNavigate;t0.prototype.dataChanged=t0.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],t0.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],t0.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],t0.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",Object)],t0.prototype,"editDialog",void 0);_.N([_.e({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],t0.prototype,"usesCompactLockup",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],t0.prototype,"showExpandButton",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],t0.prototype,"isRichGrid",void 0);
_.N([_.e({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.P("design:type",Boolean)],t0.prototype,"showFullContentText",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],t0.prototype,"usesFullLockup",void 0);_.N([_.Nl("#more"),_.P("design:type",Object)],t0.prototype,"moreButtonEl",void 0);_.N([_.Nl("#repost-content-text"),_.P("design:type",HTMLElement)],t0.prototype,"repostContentTextEl",void 0);
_.N([_.Nl("#repost-edit-dialog"),_.P("design:type",HTMLElement)],t0.prototype,"repostEditDialogEl",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],t0.prototype,"dataChanged",null);_.N([_.lc("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],t0.prototype,"onYtNavigate",null);
_.N([_.lc("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],t0.prototype,"onYtCommentboxDismiss",null);_.N([_.Ul({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],t0);
_.G(t0,"ytd-shared-post-renderer",function(){if(BLp!==void 0)return BLp;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return BLp=t},{mode:1});var wjo;var RNX;var Eg=function(){return _.z.apply(this,arguments)||this};
_.u(Eg,_.z);Eg.prototype.attached=function(){var t=this;this.networkStatusManager||(this.networkStatusManager=new _.k7,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){t.onlineHandler()}))};
Eg.prototype.detached=function(){var t=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){t.onlineHandler()}),delete this.networkStatusManager)};
Eg.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Eg.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Eg.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Eg.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],Eg);
_.G(Eg,"ytd-reload-page-button-renderer",function(){if(RNX!==void 0)return RNX;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);
return RNX=t},{mode:1});var Vzr={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"},pL=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.u(pL,_.z);_.Y=pL.prototype;_.Y.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.Y.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.Y.computeHasBodyText=function(t){return!!t.bodyText};
_.Y.computeButtons=function(t){var E=[];t.ctaButton&&E.push(t.ctaButton);t.secondaryButton&&E.push(t.secondaryButton);return E};
_.Y.computeRendererStyle=function(t){return t.style?t.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():t.icon?"":"no-icon"};
_.Y.getIconName=function(t,E){E=E===void 0?!1:E;if(t===void 0)return"";t=this.get("icon.iconType",t);var p;_.r("enable_hlp_client_icon_pick")?p=this.getThemedIcon(t,E):p=t;(E=Vzr[p])||(E="yt-icons");return[E,p].join(":")};
_.Y.getThemedIcon=function(t,E){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(t)?E?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(t)?E?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":t};
_.Y.isThumbnail=function(t){return!!t.thumbnail};
_.Y.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.Y.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],pL.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],pL.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],pL.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],pL.prototype,"data",void 0);
_.N([_.e({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.P("design:type",String)],pL.prototype,"rendererStyle",void 0);_.N([_.e({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.P("design:type",String)],pL.prototype,"iconName",void 0);_.N([_.e({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],pL.prototype,"thumbnail",void 0);_.N([_.e({computed:"computeButtons(data)"}),_.P("design:type",Array)],pL.prototype,"buttons",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],pL.prototype,"isDarkTheme",void 0);_.N([_.e({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],pL.prototype,"hasBodyText",void 0);_.N([_.Ul({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],pL);
_.Ol()(pL,"ytd-background-promo-renderer",function(){if(wjo===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);wjo=t}t=wjo;return t},{allowedProps:["data"],
mode:1});var Qbr;var Ug=function(){return _.z.apply(this,arguments)||this};
_.u(Ug,_.z);_.aE.Object.defineProperties(Ug.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var t,E,p,U,x,A;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(t=this.data)==null?void 0:(E=t.thumbnail)==null?void 0:E.sampledThumbnailColor,vibrantColorPalette:(p=this.data)==null?void 0:(U=p.thumbnail)==null?void 0:U.vibrantColorPalette,darkColorPalette:(x=this.data)==null?void 0:(A=x.thumbnail)==null?void 0:A.darkColorPalette,experimentEnabled:!0}}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ug.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Ug.prototype,"data",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ug.prototype,"collectionStack",null);_.N([_.Ul({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],Ug);
_.G(Ug,"ytd-compact-station-renderer",function(){if(Qbr!==void 0)return Qbr;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Qbr=t},{mode:1});var CDZ;var xf=function(){var t=_.z.apply(this,arguments)||this;t.isRichGrid=!1;return t};
_.u(xf,_.z);xf.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]]"}}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],xf.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],xf.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],xf.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],xf.prototype,"isRichGrid",void 0);_.N([_.Ul({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],xf);
_.G(xf,"ytd-grid-channel-renderer",function(){if(CDZ!==void 0)return CDZ;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return CDZ=t},{mode:1});var jbm;var A0=function(){return _.z.apply(this,arguments)||this};
_.u(A0,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],A0.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],A0.prototype,"data",void 0);_.N([_.Ul({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],A0);
_.G(A0,"ytd-grid-movie-playlist-renderer",function(){if(jbm!==void 0)return jbm;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return jbm=t},{mode:1});var rEr;var Yf=function(){var t=_.z.apply(this,arguments)||this;t.downloadProgress=0;t.transferState="TRANSFER_STATE_UNKNOWN";t.modernButtons=_.r("web_modern_buttons");return t};
_.u(Yf,_.z);Yf.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
Yf.prototype.configureRendererStamper=function(){return{"data.menu":cJ}};
Yf.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
Yf.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.r("woffle_playlist_renderer_killswitch")){var t,E=bZi(this.entityInfo,this.transferState,this.downloadProgress,(t=this.data)==null?void 0:t.playlistId,this.isOnline);t=E.viewPlaylistText;var p=E.badges;E=E.thumbnailOverlays;this.isDownloads=!!t||!!p;this.set("data.viewPlaylistText",t);p&&p.length>0&&this.set("data.badges",p);E&&E.length>0&&this.set("data.thumbnailOverlays",
E)}};
_.aE.Object.defineProperties(Yf.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 t;return!((t=this.data)==null?0:t.menu)}}});
Yf.prototype.transferStateChanged=Yf.prototype.transferStateChanged;Yf.prototype.dataChanged=Yf.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Yf.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.dy),_.P("design:type",Object)],Yf.prototype,"ytdLockupBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],Yf.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Yf.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.e({selector:_.W38,selectorArgs:["data.playlistId"]}),_.P("design:type",Object)],Yf.prototype,"downloadProgress",void 0);_.N([_.e({selector:_.Af,selectorArgs:["data.playlistId"]}),_.P("design:type",Object)],Yf.prototype,"transferState",void 0);_.N([_.e({selector:otO,selectorArgs:["data.playlistId"]}),_.P("design:type",Object)],Yf.prototype,"entityInfo",void 0);_.N([_.e({selector:_.U5}),_.P("design:type",Boolean)],Yf.prototype,"isOnline",void 0);
_.N([_.e(),_.P("design:type",Object)],Yf.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Yf.prototype,"downloadRenderData",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],Yf.prototype,"modernButtons",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],Yf.prototype,"isDownloads",void 0);_.N([_.Z("transferState"),_.e({reflectToAttribute:!0}),_.P("design:type",String),_.P("design:paramtypes",[])],Yf.prototype,"downloadState",null);
_.N([_.Z("data"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Yf.prototype,"menuHidden",null);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yf.prototype,"dataChanged",null);_.N([_.P3("transferState","downloadProgress","isOnline"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yf.prototype,"transferStateChanged",null);
_.N([_.Ul({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],Yf);
_.G(Yf,"ytd-grid-playlist-renderer",function(){if(rEr!==void 0)return rEr;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return rEr=t},{mode:1});var kir;var Mv=function(){return _.z.apply(this,arguments)||this};
_.u(Mv,_.z);Mv.prototype.configureRendererStamper=function(){return{"data.menu":cJ,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.aE.Object.defineProperties(Mv.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var t,E,p,U,x,A;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(t=this.data)==null?void 0:(E=t.thumbnail)==null?void 0:E.sampledThumbnailColor,vibrantColorPalette:(p=this.data)==null?void 0:(U=p.thumbnail)==null?void 0:U.vibrantColorPalette,darkColorPalette:(x=this.data)==null?void 0:(A=x.thumbnail)==null?void 0:A.darkColorPalette,experimentEnabled:!0}}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Mv.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],Mv.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.g(_.dy),_.P("design:type",Object)],Mv.prototype,"ytdLockupBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Mv.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Mv.prototype,"data",void 0);
_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Mv.prototype,"collectionStack",null);_.N([_.Ul({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],Mv);
_.G(Mv,"ytd-grid-radio-renderer",function(){if(kir!==void 0)return kir;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return kir=t},{mode:1});var das;var mB=function(){return _.z.apply(this,arguments)||this};
_.u(mB,_.z);mB.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
mB.prototype.computeNavigationEndpoint=function(t){return NYL(t==null?void 0:t.navigationEndpoint)};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],mB.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],mB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.dy),_.P("design:type",Object)],mB.prototype,"ytdLockupBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],mB.prototype,"data",void 0);_.N([_.e({computed:"computeNavigationEndpoint(data)"}),_.P("design:type",Object)],mB.prototype,"computedNavigationEndpoint",void 0);
_.N([_.Ul({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],mB);
_.G(mB,"ytd-grid-show-renderer",function(){if(das!==void 0)return das;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return das=t},{mode:1});var ufo;_.bs=function(t){this.playerClient=t};
_.JEX=function(t,E,p){p=p===void 0?{}:p;return t.playerClient.setOption("ad",E,p)};
_.bs.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.bs.prototype.executeCommand=function(t,E){this.getOptions().includes("executeCommand")?_.JEX(this,"executeCommand",{command:t,layoutId:E}):_.HY("Calling executeCommand when adModule is not loaded")};var is=function(){return _.z.apply(this,arguments)||this};
_.u(is,_.z);is.prototype.getLayoutId=function(){var t=_.ws("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.layoutId:null};
is.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var t=_.k1(),E=this.getLayoutId(),p=this.data.clickthroughEndpoint;t&&E&&_.r("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?t.getPlayerPromise().then(function(U){(new _.bs(U)).executeCommand(p,E)}):_.kT(this.hostElement,"yt-navigate",{endpoint:p})}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],is.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],is.prototype,"data",void 0);_.N([_.Ul({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],is);
_.G(is,"ytd-shopping-companion-item-renderer",function(){if(ufo!==void 0)return ufo;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return ufo=t},{mode:1});var IQT;var qv=function(){var t=_.z.apply(this,arguments)||this;t.isExpandableContent=!1;return t};
_.u(qv,_.z);_.aE.Object.defineProperties(qv.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return((t=this.data)==null?void 0:t.price)||((E=this.data)==null?void 0:(p=E.dealsData)==null?void 0:p.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var t,E;if((t=this.data)!=null&&t.dealsData&&((E=this.data)==null||!E.priceReplacementText)){t=this.data.dealsData;var p,U,x;return((p=t.salesData)==null?void 0:p.originalPrice)||((U=t.priceDropData)==null?void 0:U.referencePrice)||((x=t.promotionData)==null?void 0:x.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var t,E;return(t=this.data)==null?void 0:(E=t.dealsData)==null?void 0:E.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],qv.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],qv.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],qv.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],qv.prototype,"isExpandableContent",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],qv.prototype,"showCta",null);
_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],qv.prototype,"ctaText",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],qv.prototype,"hasPriceTopPosition",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],qv.prototype,"hasPriceBottomPosition",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],qv.prototype,"useNewStyle",null);
_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],qv.prototype,"showPriceReplacementText",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],qv.prototype,"priceValue",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],qv.prototype,"showDeal",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],qv.prototype,"showAffiliateDisclaimer",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],qv.prototype,"useSaleStyle",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],qv.prototype,"useFromBrandCtaStyle",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],qv.prototype,"useFromVendorCtaStyle",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],qv.prototype,"useShoppingCollectionCtaStyle",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],qv);
_.G(qv,"ytd-vertical-product-card-renderer",function(){if(IQT!==void 0)return IQT;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return IQT=t},{mode:1});var gyT;var HO=function(){return _.z.apply(this,arguments)||this};
_.u(HO,_.z);HO.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],HO.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],HO.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.dy),_.P("design:type",Object)],HO.prototype,"ytdLockupBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],HO.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],HO);
_.G(HO,"ytd-grid-movie-renderer",function(){if(gyT!==void 0)return gyT;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return gyT=t},{mode:1});var ZYs;var fL=function(){var t=_.z.apply(this,arguments)||this;t.roundedFix=_.r("web_enable_merch_item_rounding_fix");t.itemStyle="small-item";return t};
_.u(fL,_.z);fL.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var t,E,p,U,x=(E=_.k((t=this.data)==null?void 0:t.buttonCommand,_.IJW))==null?void 0:(p=E.item)==null?void 0:(U=p.notificationTextRenderer)==null?void 0:U.successResponseText;x&&_.TU$(this.hostElement,x)}};
_.aE.Object.defineProperties(fL.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.data)==null?void 0:t.isProductPlaceholder)!==void 0&&((E=this.data)==null?void 0:E.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.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}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],fL.prototype,"ytRendererBehavior",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],fL.prototype,"roundedFix",void 0);_.N([_.e(),_.P("design:type",Object)],fL.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],fL.prototype,"itemStyle",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],fL.prototype,"hasPrice",null);
_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],fL.prototype,"hasPriceReplacementText",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],fL.prototype,"hasAdditionalFeesText",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],fL.prototype,"hasAffiliateDisclaimer",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],fL.prototype,"isProductPlaceholder",null);
_.N([_.e(),_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],fL.prototype,"hideOpenInNewIcon",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],fL.prototype,"ariaLabel",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],fL);
_.G(fL,"ytd-merch-shelf-item-renderer",function(){if(ZYs!==void 0)return ZYs;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return ZYs=t},{mode:1});_.k2(_.l(function(t){return _.H("button-card-view-model",{el:_.V9(_.EX(function(){return t.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return t.data().title},
role:"button"},_.H(_.lu,{model:{}}),_.H("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.H("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.H(_.w,{cond:function(){return t.data().image},
then:function(E){return _.H(_.Q9,{data:E,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.H("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return t.data().title})))},"dc"),"button-card-view-model",{props:{data:_.uu}});_.k2(_.l(function(t){t=_.C4(t,{className:void 0});var E=t.data;t=t.className;var p=_.KN(function(){return E().onTapCommand},void 0,"SXkP9e");
return _.H("ytd-shopping-item-card",{class:_.X5("ytdShoppingItemCardHost",t)},_.H(_.zn,{command:p,className:"ytdShoppingItemCardHostLink"},_.H("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.H(_.sY,{data:function(){return E().thumbnailViewModel}},{thumbnailViewModel:function(U){return _.H(zR,{data:U.data,
aspectRatio:3})}})),_.H("div",null,_.H("p",{class:"ytdShoppingItemCardHostItemTitle"},_.H(_.d8,{text:function(){return E().itemTitle}})),_.H("p",{class:"ytdShoppingItemCardHostPrice"},_.H(_.d8,{text:function(){return E().priceOrStatus}})))))},"ec"),"ytd-shopping-item-card",{props:{data:_.uu,
className:_.uu}});var OY0={isAdsVideo:!0},XjG={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},hNs={showPlayerControls:!1,videoPreviewDurationMs:15E3},aQr={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0},eNs={showPlayerControls:!0,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0,hideTimeDisplay:!0,hideCaptionsToggleButton:!0,hideScrubber:!0};var BY=null,oKK={};var KcO="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(" "),BO={},vKt=(BO.FEwhat_to_watch="home",BO.FEhashtag="hashtag",BO.FEtrending="trending",BO.FEhistory="history",BO.SPunlimited="premium",BO.FEmemberships_and_purchases="paid_memberships",BO.SPredeem_code="redeem",BO.SPverify_location="locate",BO.SPminor_moment="minor_moment",
BO.FEmini_app_container="mini_app",BO.FEnews_destination="news",BO.SPopen_in_app="open_in_app",BO.FEexplore="explore",BO.FEsubscriptions="subscriptions",BO.FEsfv_audio_pivot="sfv_audio_pivot",BO.FEplaylist_aggregation="playlist_aggregation",BO);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");_.gu("init");var FKs=function(){},nyr=_.l(function(t){var E=t.data;
var p=t.inlineMetadata;var U=t.aspectRatio;var x=t.scrimStyle;var A=t.className;var m=t.useDefaultStyle;var b=t.titleStyle;var f=new FKs,B=_.r("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",R=_.KN(function(){return(m==null?0:m())?B==="SHORTS_LOCKUP_STYLE_SLIM":E().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"CIGaAf"),V=_.KN(function(){return _.Hv(p)||R()||!1},void 0,"SEL6Qd"),Q=function(){return(x==null?void 0:x())!==void 0?x==null?void 0:x():1},
C=_.KN(function(){return E().belowThumbnailMetadata||!V()},void 0,"KAqk1b");
t=_.az({visibilityCallback:function(YL){var bY=E().onFirstVisible;YL&&bY&&_.bz(bY)},
showOption:{calledOnce:!0,state:"visible"}});var d=_.V9(),I={},O=_.X5(function(){return R(),"shortsLockupViewModelHostThumbnailContainer"},(I.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.Hv(U)===1},I.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.Hv(U)===2},I.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.r("web_shorts_2_by_3_lockups_study")&&!_.r("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
I)),a=_.KN(function(){if(_.Hv(U)===1)return 1;
_.Hv(U);return 2},void 0,"Bg5Es"),F,L=function(){if(f){var YL;
(YL=F)==null||dI(YL);var bY;if(f.hostElement&&((bY=f.data)==null?0:bY.inlinePlayerData)){var kL,R0;YL=((kL=f.data)==null?0:(R0=kL.inlinePlayerData)==null?0:R0.enableAudioControl)?Object.assign({},eNs):Object.assign({},aQr);var j$,lY;((j$=f.data)==null?void 0:(lY=j$.inlinePlayerData)==null?void 0:lY.maxPlaybackLengthSec)!==void 0&&(YL.videoPreviewDurationMs=f.data.inlinePlayerData.maxPlaybackLengthSec*1E3);F=xj({mediaRenderer:f,lockupElement:f.hostElement,thumbnailElement:d.value,videoPreviewOpts:YL})}}};
_.M$(function(){f&&(f.data=E(),L())},"wo9C7e");
var D=_.KN(function(){return E().thumbnail},void 0,"haijYd");
I=_.KN(function(){return E().badge},void 0,"RpDeSe");
var W=_.KN(function(){return E().onTap},void 0,"hOfuOb"),K={},v={};
return _.H("ytm-shorts-lockup-view-model",{el:_.V9(function(YL){f&&(f.hostElement=YL)},L,t),
class:_.X5("shortsLockupViewModelHost",A)},_.H(_.Oj,null,_.H(_.zn,{command:W,className:_.X5("shortsLockupViewModelHostEndpoint",(K.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!C()},K),"reel-item-endpoint",""),
ariaHidden:function(){return!V()},
tabIndex:function(){return V()?0:-1}},_.H("div",{el:d,
class:_.X5("shortsLockupViewModelHostThumbnailParentContainer",(v.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!R()},v))},_.H(_.w,{cond:D,
then:function(){return _.H("div",{class:O},_.H(_.Q9,{data:function(){var YL;return(YL=D==null?void 0:D())!=null?YL:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.H(_.sY,{data:function(){return E().thumbnailViewModel}},{thumbnailViewModel:function(YL){return _.H(zR,{data:YL.data,
aspectRatio:function(){return a()},
disableRounding:function(){return R()}})}}),null),_.H(_.w,{cond:V,
then:function(){return _.H(zNX,{data:E,scrimStyle:Q,useDefaultStyle:m,titleStyle:b})}}),_.H(_.sY,{data:I},{badgeViewModel:function(YL){return _.H(_.XN,{data:YL.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.H(_.w,{cond:function(){return V()&&E().menuOnTap},
then:function(){return _.H(lQ4,{data:E,inlineMetadata:!0})}}),_.H(_.w,{cond:C,
then:function(){return _.H(Gio,{data:E,useDefaultStyle:m,inlineMetadata:V})}})))},"gc"),zNX=_.l(function(t){var E=t.data;
var p=t.scrimStyle;var U=t.useDefaultStyle;var x=t.titleStyle;var A=_.r("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",m=U&&_.r("web_hide_primary_text_for_pivot_panel"),b=_.KN(function(){return(U==null?0:U())?A==="SHORTS_LOCKUP_STYLE_SLIM":E().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"c5smEd");
t={};t=_.X5("shortsLockupViewModelHostInlineMetadata",(t.shortsLockupViewModelHostMetadataRounded=function(){return!b()},t.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(p==null?void 0:p())===3&&!_.r("enable_shorts_lockup_new_scrim")},t.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(p==null?void 0:p())===3&&_.r("enable_shorts_lockup_new_scrim")},t.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(p==null?void 0:p())===2||(p==null?void 0:
p())===4},t.shortsLockupViewModelHostShowOverPlayer=function(){return!0},t),"image-overlay-text");
var f={};return _.H("div",{class:t},_.H("h3",{class:_.X5("shortsLockupViewModelHostMetadataTitle",(f.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(p==null?void 0:p())===4},f.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return E().belowThumbnailMetadata},f.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(x==null?void 0:x())===1},f.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(x==null?void 0:x())===2},f)),
"aria-label":function(){return E().accessibilityText}},_.H(_.w,{cond:function(){var B;
return!((B=E().overlayMetadata)==null||!B.primaryText)&&!m},
then:function(){return _.H(_.d8,{text:function(){var B;return(B=E().overlayMetadata)==null?void 0:B.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.H(_.w,{cond:function(){var B;
return(B=E().overlayMetadata)==null?void 0:B.secondaryText},
then:function(){return _.H(NLs,{data:E,scrimStyle:p,className:void 0})}}))},"hc"),Gio=_.l(function(t){var E=t.data;
var p=t.useDefaultStyle;var U=t.inlineMetadata;var x=_.r("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",A=_.KN(function(){return(p==null?0:p())?x==="SHORTS_LOCKUP_STYLE_SLIM":E().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"hn3pLe"),m=_.V9(),b;
t=_.aC(function(C){if(_.Sw(_.yb(C),m.value,["AVATAR-VIEW-MODEL"]))return!1;var d;(d=b)==null||d.click();return!1});
var f=_.KN(function(){return E().belowThumbnailMetadata||E().overlayMetadata},void 0,"GwezKf"),B=function(){return E().menuOnTap&&!U()},R=function(){var C;
return(C=f())==null?void 0:C.avatar},V={},Q={};
return _.H("div",{class:_.X5(function(){return A()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(V.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!R()},V.shortsLockupViewModelHostOutsideMetadataHasMenu=B,V)),
"on:click":t,el:m,role:"presentation"},_.H(_.sY,{data:R},{avatarViewModel:function(C){return _.H(_.fk,{data:C.data,avatarButtonCustomClassName:"shortsLockupViewModelHostOutsideMetadataAvatar"})}}),_.H("div",null,_.H("h3",{class:_.X5("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(Q.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var C,d;
return!((C=f())==null?0:(d=C.primaryText)==null?0:d.content)},Q.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=U,Q)),
role:"presentation"},_.H(_.zn,{ref:function(C){return void(b=C)},
command:function(){return E().onTap},
className:_.X5("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var C,d;return(C=f())==null?void 0:(d=C.primaryText)==null?void 0:d.content},
"aria-label":function(){return E().accessibilityText}},_.H(_.w,{cond:function(){var C;
return(C=f())==null?void 0:C.primaryText},
then:function(C){return _.H(_.d8,{text:C,noEndpoints:!0,noStyleRuns:!0})}}))),_.H(_.w,{cond:function(){var C;
return(C=f())==null?void 0:C.secondaryText},
then:function(C){return _.H("div",{class:_.X5("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.H(_.d8,{text:C,noStyleRuns:!0}))}})),_.H(_.w,{cond:B,
then:function(){return _.H(lQ4,{data:E,inlineMetadata:!1})}}))},"ic"),NLs=_.l(function(t){var E=t.data;
var p=t.scrimStyle;t=t.className;var U={};return _.H("div",{class:_.X5((U.shortsLockupViewModelHostMetadataSubhead=function(){return(p==null?void 0:p())!==4},U.shortsLockupViewModelHostMetadataSubheadNew=_.r("enable_shorts_lockup_new_scrim"),U.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(p==null?void 0:p())===4},U),t),
"aria-hidden":"true"},_.H(_.d8,{text:function(){var x;return(x=E().overlayMetadata)==null?void 0:x.secondaryText},
noStyleRuns:!0}))},"jc"),lQ4=_.l(function(t){var E=t.data;
var p=t.inlineMetadata;t={};t=_.X5((t.shortsLockupViewModelHostInlineMetadataMenu=function(){return p()},t.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!p()},t.shortsLockupViewModelHostShowOverPlayer=function(){return!0},t),"image-overlay-text");
return _.H("div",{class:t},_.H(_.N7,{data:function(){return{style:p()?"overlay":"mono",accessibilityLabel:E().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(U){U.preventDefault();U.stopPropagation();var x=_.MA({elementsCommand:E().menuOnTap,forceNewState:!0});if(x==null?0:x.onclick)x.onclick(U)}}},
iconName:"MORE_VERT"}))},"kc");var DaZ=_.l(function(t){var E=t.data;var p=t.inlineMetadata;var U=t.aspectRatio;var x=t.scrimStyle;var A=t.className;var m=t.useDefaultStyle;t=_.KN(function(){var b=E().entityId;return b?b.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.H("ytm-shorts-lockup-view-model-v2",{class:_.X5("shortsLockupViewModelHost",A)},_.H(_.Lk,{contentId:t,aspectRatio:function(){return(U==null?void 0:U())===1?1:(U==null?void 0:U())===2?2:4}},function(){return _.H(nyr,{data:E,
inlineMetadata:p,aspectRatio:U,scrimStyle:x,className:A,useDefaultStyle:m})}))},"lc");_.k2(DaZ,"ytm-shorts-lockup-view-model-v2",{props:{data:_.Cy,inlineMetadata:_.Cy,aspectRatio:_.Cy,scrimStyle:_.Cy,className:_.Cy,useDefaultStyle:_.Cy,titleStyle:_.Cy}});var sbZ=16/9*210,wj=function(){var t=_.z.apply(this,arguments)||this;t.isExpandableContent=!1;t.hideShelfHeader=!1;t.engagementPanel=!1;t.buttonClasses=["arrow"];t.isSearch=!1;t.disableScrollEventListener=!1;t.containsLockup=!1;t.overrideArrowPositionForProductCard=!1;t.overrideArrowPositionForShoppingItemCard=!1;t.overrideArrowPositionForReelItems=!1;t.overrideArrowPositionForGridMovie=!1;t.overrideArrowPositionToCenter=!1;t.isSearchPostShelf=!1;t.overrideArrowPositionForMixedShelf=!1;t.overrideArrowPositionForMixedShelfShortsOnly=
!1;t.hasBigThumbsReelItems=!1;t.shouldUseMixedListHeight=!1;t.shouldUseShortsListHeight=!1;t.gridVideoWidth=0;t.isSearchVodShelf=!1;t.disableWheelScroll=!1;t.sizing="COMPACT";t.shortsLockupAspectRatio=0;return t};
_.u(wj,_.z);_.Y=wj.prototype;
_.Y.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]]"}}}}};
_.Y.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.r("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.Y.computeInitialCountNumber=function(t){if(!t)return 6;var E=t.items.some(function(A){return!!A.topicRecommendationsChipRenderer}),p=t.items.some(function(A){return!!A.displayAdRenderer}),U=this.computeShouldListItemsHaveEqualHeight(t),x=t.items.some(function(A){return!!A.gridPlaylistRenderer});
t=t.items.some(function(A){return!!A.shoppingItemCardViewModel});
return E?9:p?8:x||U?10:t?7:6};
_.Y.computeContainsPost=function(t){return!!t&&!!t.items&&t.items.some(function(E){return!!E.postRenderer})};
_.Y.computeContainsLockup=function(){if(_.r("web_horizontal_list_lockup_arrow_killswitch"))return!1;var t,E;return(t=this.data)==null?void 0:(E=t.items)==null?void 0:E.some(function(p){return!!p.lockupViewModel})};
_.Y.maybeUpdateLockupAspectRatio=function(){var t,E;if(this.computeContainsLockup()&&((t=this.data)==null?0:(E=t.items)==null?0:E.length)){var p;t=C_l((p=this.data.items[0].lockupViewModel)==null?void 0:p.contentType,this.data.force16By9ThumbnailAspectRatio);p=QZO(t);p=this.computeLockupWidth()/p;_.eU(this.hostElement,{"--yt-horizontal-list-content-height":p+"px"})}};
_.Y.computeOverrideArrowPositionForProductCard=function(t){if(this.isExpandableContent)return!1;var E;return!!(t==null?0:(E=t.items)==null?0:E.some(function(p){return!!p.verticalProductCardRenderer}))};
_.Y.computeOverrideArrowPositionForShoppingItemCard=function(t){var E;return!!(t==null?0:(E=t.items)==null?0:E.some(function(p){return!!p.shoppingItemCardViewModel}))};
_.Y.computeOverrideArrowPositionForReelItemRenderer=function(t){return this.containsReelItemRenderer(t)};
_.Y.computeHasBigThumbsReelItems=function(t,E){return t&&this.containsReelItemRenderer(E)};
_.Y.computeShouldListItemsHaveEqualHeight=function(t){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(t==null?void 0:t.itemSizeConstraint)};
_.Y.computeShouldListItemsHaveShortsHeight=function(t){return this.computeShouldListItemsHaveEqualHeight(t)&&!this.containsGridVideoRenderer(t)};
_.Y.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.Y.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.Y.containsReelItemRenderer=function(t){var E;return!!(t==null?0:(E=t.items)==null?0:E.some(function(p){return!(!p.reelItemRenderer&&!p.shortsLockupViewModel)}))};
_.Y.containsGridVideoRenderer=function(t){var E;return!!(t==null?0:(E=t.items)==null?0:E.some(function(p){return!!p.gridVideoRenderer||!!p.lockupViewModel}))};
_.Y.computeContainsGridMovieRenderer=function(t){var E;return!!(t==null?0:(E=t.items)==null?0:E.some(function(p){return!!p.gridMovieRenderer}))};
_.Y.computeOverrideArrowPositionToCenter=function(t){return this.computeIsSearchPostShelf(t)};
_.Y.computeIsSearchPostShelf=function(t){var E;return!!(t==null?0:(E=t.items)==null?0:E.some(function(p){var U,x;return((x=(U=p.postRenderer)==null?void 0:U.surface)!=null?x:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.Y.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(t){var E;return!!(t==null?0:(E=t.items)==null?0:E.some(function(p){var U,x,A;return((A=(U=p.backgroundPromoRenderer)==null?void 0:(x=U.style)==null?void 0:x.value)!=null?A:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.Y.computeIsSearchVodShelf=function(t,E){return t&&this.containsGridVideoRenderer(E)};
_.Y.computeDisableWheelScroll=function(t,E){return this.computeIsSearchVodShelf(t,E)};
_.Y.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.Y.computeShortsLockupAspectRatio=function(){return 1};
_.Y.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.eU(this.hostElement,{"--ytd-reel-item-thumbnail-height":sbZ+"px"})};
wj.prototype.dataChanged=wj.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],wj.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.zp.YtdHorizontalListBehavior),_.P("design:type",Object)],wj.prototype,"ytdHorizontalListBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],wj.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",Object)],wj.prototype,"isExpandableContent",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],wj.prototype,"hideShelfHeader",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],wj.prototype,"engagementPanel",void 0);_.N([_.e(),_.P("design:type",Array)],wj.prototype,"buttonClasses",void 0);_.N([_.e(),_.P("design:type",Object)],wj.prototype,"isSearch",void 0);
_.N([_.e(),_.P("design:type",Object)],wj.prototype,"disableScrollEventListener",void 0);_.N([_.e({computed:"computeInitialCountNumber(data)"}),_.P("design:type",Number)],wj.prototype,"initialCount",void 0);_.N([_.e({computed:"computeContainsPost(data)"}),_.P("design:type",Boolean)],wj.prototype,"supportComponentResize",void 0);_.N([_.e({computed:"computeContainsPost(data)"}),_.P("design:type",Boolean)],wj.prototype,"containsPost",void 0);
_.N([_.e({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.P("design:type",Object)],wj.prototype,"containsLockup",void 0);_.N([_.e({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],wj.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.N([_.e({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.P("design:type",Object)],wj.prototype,"overrideArrowPositionForProductCard",void 0);_.N([_.e({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.P("design:type",Object)],wj.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.N([_.e({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.P("design:type",Object)],wj.prototype,"overrideArrowPositionForReelItems",void 0);_.N([_.e({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.P("design:type",Object)],wj.prototype,"overrideArrowPositionForGridMovie",void 0);
_.N([_.e({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.P("design:type",Object)],wj.prototype,"overrideArrowPositionToCenter",void 0);_.N([_.e({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.P("design:type",Object)],wj.prototype,"isSearchPostShelf",void 0);_.N([_.e({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.P("design:type",Object)],wj.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.N([_.e({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.P("design:type",Object)],wj.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.N([_.e({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.P("design:type",Object)],wj.prototype,"hasBigThumbsReelItems",void 0);
_.N([_.e({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.P("design:type",Object)],wj.prototype,"shouldUseMixedListHeight",void 0);_.N([_.e({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.P("design:type",Object)],wj.prototype,"shouldUseShortsListHeight",void 0);_.N([_.e({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.P("design:type",Object)],wj.prototype,"gridVideoWidth",void 0);
_.N([_.e({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.P("design:type",Object)],wj.prototype,"isSearchVodShelf",void 0);_.N([_.e({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.P("design:type",Object)],wj.prototype,"disableWheelScroll",void 0);_.N([_.e({computed:"computeSizing(isSearch)"}),_.P("design:type",Object)],wj.prototype,"sizing",void 0);
_.N([_.e({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.P("design:type",Object)],wj.prototype,"shortsLockupAspectRatio",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wj.prototype,"dataChanged",null);
_.G(wj,"yt-horizontal-list-renderer",function(){if(skr===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);skr=t}t=skr;return t},{mode:1});var LKW=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
LKW.prototype.subscribe=function(t,E){var p=this.subscriptions.get(t);if(!p)return function(){};
p.add(E);return function(){p.delete(E)}};
LKW.prototype.unsubscribe=function(t,E){(t=this.subscriptions.get(t))&&t.delete(E)};
LKW.prototype.publish=function(t,E){E=E===void 0?{}:E;(t=this.subscriptions.get(t))&&t.forEach(function(p){p(E)})};var PDf;var TLr=[10,12,14,16,18,20,24,28,32,36],oy4=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],R6=function(){var t=_.z.apply(this,arguments)||this;t.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";t.hideOverflow=!1;t.useRoboto=!1;t.fontClass="";t.overflown=!1;t.actionMap={"yt-window-resized":"resize"};return t};
_.u(R6,_.z);_.Y=R6.prototype;
_.Y.attached=function(){var t=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();_.XE(this,function(){t.resize()});
if(!_.FI){var E,p,U;(E=document)==null||(p=E.fonts)==null||(U=p.ready)==null||U.then(function(){t.resize()})}};
_.Y.dataChanged=function(){this.resize()};
_.Y.guideIsExpandedChanged=function(){this.resize()};
_.Y.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 t=this.getMaxNumLines(),E=this.getMinFont(),p=this.getMaxFont(),U=this.useRoboto?TLr:oy4;for(U=U.filter(function(A){return A<=p&&A>=E});U.length>1;){var x=Math.floor(U.length/2);
this.updateFontSize(U[x]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=t)U=U.slice(x,U.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>t)U=U.slice(0,x);else break}this.updateFontSize(U[U.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(t)}};
_.Y.handleOverflow=function(t){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>t&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",t.toString()))};
_.Y.updateFontSize=function(t){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+t;this.textNode.classList.add(this.fontClass)};
_.Y.getMaxFont=function(){var t=this.useRoboto?TLr:oy4;t=t[t.length-1];return this.maxFontSize&&this.maxFontSize<=t?this.maxFontSize:t};
_.Y.getMinFont=function(){var t=(this.useRoboto?TLr:oy4)[0];return this.minFontSize&&this.minFontSize>=t?this.minFontSize:t};
_.Y.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.Y.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.Y.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.R4(this.text).split("\n").length-1:Infinity};
_.Y.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Kh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
R6.prototype.guideIsExpandedChanged=R6.prototype.guideIsExpandedChanged;R6.prototype.dataChanged=R6.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],R6.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],R6.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],R6.prototype,"actionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],R6.prototype,"text",void 0);
_.N([_.e(),_.P("design:type",String)],R6.prototype,"fontFamily",void 0);_.N([_.e(),_.P("design:type",Number)],R6.prototype,"maxWidth",void 0);_.N([_.e(),_.P("design:type",Number)],R6.prototype,"maxHeight",void 0);_.N([_.e(),_.P("design:type",Number)],R6.prototype,"maxFontSize",void 0);_.N([_.e(),_.P("design:type",Number)],R6.prototype,"minFontSize",void 0);_.N([_.e(),_.P("design:type",Number)],R6.prototype,"maxLines",void 0);_.N([_.e(),_.P("design:type",Object)],R6.prototype,"hideOverflow",void 0);
_.N([_.e({selector:_.eOE}),_.P("design:type",Boolean)],R6.prototype,"guideIsExpanded",void 0);_.N([_.Nl("#container"),_.P("design:type",HTMLElement)],R6.prototype,"containerNode",void 0);_.N([_.Nl("#text"),_.P("design:type",HTMLElement)],R6.prototype,"textNode",void 0);_.N([_.P3("text"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],R6.prototype,"dataChanged",null);
_.N([_.P3("guideIsExpanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],R6.prototype,"guideIsExpandedChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],R6);
_.G(R6,"yt-dynamic-sizing-formatted-string",function(){if(PDf!==void 0)return PDf;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return PDf=t},{mode:1});var WKr;_.$aZ=function(t){_.tD.call(this,t)};
_.u(_.$aZ,_.tD);var KKs=function(t){_.tD.call(this,t)};
_.u(KKs,_.$aZ);var VF=function(){return _.z.apply(this,arguments)||this};
_.u(VF,_.z);VF.prototype.onTapSuspendedChannel=function(){var t;if((t=this.data)!=null&&t.serviceEndpoint){var E,p;(t=(p=_.k((E=this.data)==null?void 0:E.serviceEndpoint,_.kX))==null?void 0:p.url)?_.xR(t,void 0,void 0,window.top):(E=new KKs("Did not handle suspended account tap. No appealUrl."),_.bV(E))}else E=new KKs("Did not handle suspended account tap. No serviceEndpoint."),_.bV(E)};
VF.prototype.onTap=function(){var t=this,E=_.Pu(),p,U=(p=_.L4(E,{veType:7116}))!=null?p:void 0;_.bA(E,{visualElement:U});_.p0();this.saveRoleText();var x;if((x=this.data)==null?0:x.youtubeSuspended)this.onTapSuspendedChannel();else{var A=!1,m,b;(E=(b=_.k((m=this.data)==null?void 0:m.serviceEndpoint,_.DYZ))==null?void 0:b.supportedTokens)&&E.forEach(function(f){if(f.accountSigninToken)if(A=!0,t.onAccountItemTap)t.onAccountItemTap(f.accountSigninToken.signinUrl);else _.xR(f.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!A){if(m=this.get("serviceEndpoint",this.data))A=!0,this.ytComponentBehavior.resolveCommand(m);A||_.iV(new KKs("Did not handle account switch tap. No token."))}}};
VF.prototype.saveRoleText=function(){if(this.data){var t=this.data,E=t.channelDelegationRole;if(E){var p,U=(p=_.k(t==null?void 0:t.serviceEndpoint,_.DYZ))==null?void 0:p.supportedTokens;if(!U){var x,A,m,b;U=(x=_.k(t==null?void 0:t.serviceEndpoint,_.cU))==null?void 0:(A=x.popup)==null?void 0:(m=A.confirmDialogRenderer)==null?void 0:(b=m.confirmButton)==null?void 0:b.buttonRenderer;var f;U=(f=_.k(U==null?void 0:U.command,_.ZU))==null?void 0:f.commands;if(!U)return;var B;U=(B=_.k(U[1],_.DYZ))==null?
void 0:B.supportedTokens}if(U){f=void 0;B=_.M(U);for(U=B.next();!U.done;U=B.next())if(U=U.value,U.datasyncIdToken){f=U.datasyncIdToken.datasyncIdToken;break}if(f){var R;a:{if(_.LB$()&&(B=_.AF(f+"::pom"))){B=new tS(B);break a}B=void 0}(R=B)==null||R.set("role_text",E);if((pBY?pBY:window.location).href.indexOf("studio")!==-1&&(R=Psj())){B=R.src?(new URL(R.src)).origin:"*";var V;(V=R.contentWindow)==null||V.postMessage({action:"save_pom_role",datasyncId:f,roleText:E},B)}}}}}};
_.aE.Object.defineProperties(VF.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var t,E,p=(t=this.data)==null?void 0:(E=t.accountPhoto)==null?void 0:E.thumbnails;return p&&p.length>0&&(p[0].height===36||p[0].height===48)?p[0].height:40}}});
VF.prototype.onTap=VF.prototype.onTap;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],VF.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],VF.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],VF.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!1}),_.P("design:type",Function)],VF.prototype,"onAccountItemTap",void 0);
_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],VF.prototype,"enableRingForActiveAccount",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],VF.prototype,"thumbnailSize",null);_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],VF.prototype,"onTap",null);_.N([_.Ul({is:"ytd-account-item-renderer",disableElementRegistration:!0})],VF);
_.G(VF,"ytd-account-item-renderer",function(){if(WKr!==void 0)return WKr;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return WKr=t},{mode:1});var vyo;var QF=function(){return _.z.apply(this,arguments)||this};
_.u(QF,_.z);QF.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.X3().resolve(_.ei).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],QF.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],QF.prototype,"data",void 0);_.N([_.Ul({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],QF);
_.G(QF,"ytd-identity-chip-renderer",function(){if(vyo!==void 0)return vyo;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return vyo=t},{mode:1});var yEm;var SEr;var cEZ;var t7r;var CL=function(){var t=_.z.apply(this,arguments)||this;t.richItemMinWidth=_.z3("wn_grid_min_item_width",310);t.isShorts=!1;t.isWatchNext=!1;t.isExploreHub=!1;return t};
_.u(CL,_.z);_.aE.Object.defineProperties(CL.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var t=[],E=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.eU(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var p;if(((p=this.data)==null?0:p.rows)&&E)for(E*=this.data.rows,p=0;p<E;p++)t.push({});return t}}});
_.N([_.g(_.Be),_.P("design:type",Object)],CL.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],CL.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],CL.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,selector:_.tf,value:3}),_.P("design:type",Number)],CL.prototype,"itemsPerRow",void 0);_.N([_.e({selector:_.aFt,value:6}),_.P("design:type",Number)],CL.prototype,"slimItemsPerRow",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Number)],CL.prototype,"richItemMinWidth",void 0);_.N([_.e({reflectToAttribute:!0,selector:_.cA}),_.P("design:type",Boolean)],CL.prototype,"miniMode",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],CL.prototype,"isShorts",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],CL.prototype,"isWatchNext",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],CL.prototype,"isExploreHub",void 0);
_.N([_.Z("isExploreHub"),_.e({reflectToAttribute:!0}),_.P("design:type",Object),_.P("design:paramtypes",[])],CL.prototype,"shimmerAnimation",null);_.N([_.Z("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.P("design:type",Array),_.P("design:paramtypes",[])],CL.prototype,"cardItems",null);_.N([_.Ul({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],CL);
_.EPs=_.Ol()(CL,"ytd-ghost-grid-renderer",function(){if(t7r===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);t7r=t}t=t7r;return t},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.k2(_.l(function(t){var E=_.C4(t,{numberOfComments:3}).numberOfComments,p=_.C4(t,{isInitialLoad:!1}).isInitialLoad,U=_.C4(t,{engagementPanel:!1}).engagementPanel,x=function(){return Math.min(Number(E==null?void 0:E())||20,20)};
return _.H("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.H(_.w,{cond:function(){return!(U==null?0:U())&&(p==null?void 0:p())},
then:function(){return _.H("div",{class:"ytGhostCommentsComments"},_.H("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.H("div",{class:_.X5("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.H("div",{class:_.X5("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.H("div",{class:"ytGhostCommentsGhostCard"},_.H("div",{class:"ytGhostCommentsAvatar"},_.H("div",{class:"ytGhostCommentsCircle"})),_.H("div",{class:"ytGhostCommentsComments"},_.H("div",{class:"ytGhostCommentsMeta"},
_.H("div",{class:_.X5("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.H("div",{class:_.X5("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.H("div",{class:"ytGhostCommentsComments"},_.H(_.yG,{each:function(){return Array((x==null?void 0:x())||3)}},function(){return _.H("div",{class:"ytGhostCommentsGhostCard"},_.H("div",{class:"ytGhostCommentsAvatar"},_.H("div",{class:"ytGhostCommentsCircle"})),_.H("div",{class:"ytGhostCommentsHost"},_.H("div",{class:"ytGhostCommentsMeta"},
_.H("div",{class:_.X5("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.H("div",{class:_.X5("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.H("div",{class:_.X5("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.H("div",{class:"ytGhostCommentsGhostLikeDislike"},_.H("div",{class:_.X5("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.H("div",{class:_.X5("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"mc"),"yt-ghost-comments",{props:{numberOfComments:_.uu,
isInitialLoad:_.uu,engagementPanel:_.uu},unsafeExternallySettableAttributes:new Set(["hidden"])});_.vs("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var jF=function(){var t=_.z.apply(this,arguments)||this;t.isOverridable=!1;t.spinnerActive=!1;t.showButton=!1;t.isCommentsSection=!1;t.engagementPanel=!0;t.isShortsGrid=!1;t.isShortsPage=!1;t.isWatchPage=!1;t.originalShowButton=!1;t.endOfList=!1;return t};
_.u(jF,_.z);_.Y=jF.prototype;_.Y.resetIntersectionObserver=function(){var t;(t=this.observer)==null||t.disconnect();this.observer=void 0};
_.Y.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var t,E;((t=this.data)==null?void 0:t.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((E=this.data)==null?0:E.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.Y.initializeIntersectionObserver=function(){var t=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(E){E=_.M(E);for(var p=E.next();!p.done;p=E.next())p.value.isIntersecting&&(t.triggerContinuation(),t.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.Y.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]]"}}}}}};
_.Y.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var t;((t=this.data)==null?0:t.continuationEndpoint)&&(t=_.k(this.data.continuationEndpoint,_.x1))&&this.ytdReduxBehavior.dispatch(_.Jj({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:t}}))};
_.Y.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.Y.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.Y.onServiceRequestCompleted=function(t,E){if(!_.r("kevlar_hide_spinner_on_empty_continuation_killswitch")){var p;(p=E.actions)!=null&&p.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.Y.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.Y.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.Y.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.Y.numberOfGhostCommentsChanged=function(){var t=3;if(this.engagementPanel){var E,p,U;t=Math.floor(((((E=this.hostElement)==null?void 0:(p=E.parentElement)==null?void 0:(U=p.parentElement)==null?void 0:U.scrollHeight)||108)-108)/108);t=this.isInitialLoad?Math.max(t,3):3}E=[].concat(_.KB(this.hostElement.querySelectorAll("yt-ghost-comments")));E=_.M(E);for(p=E.next();!p.done;p=E.next())p=p.value,p.numberOfComments=t,p.isInitialLoad=this.isInitialLoad,p.engagementPanel=this.engagementPanel};
_.Y.detached=function(){this.resetIntersectionObserver()};
_.aE.Object.defineProperties(jF.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
jF.prototype.numberOfGhostCommentsChanged=jF.prototype.numberOfGhostCommentsChanged;jF.prototype.continuationTriggerOffsetChanged=jF.prototype.continuationTriggerOffsetChanged;jF.prototype.showButtonChanged=jF.prototype.showButtonChanged;jF.prototype.onYtServiceRequestCompletedForButtonRenderer=jF.prototype.onYtServiceRequestCompletedForButtonRenderer;jF.prototype.onServiceRequestCompleted=jF.prototype.onServiceRequestCompleted;jF.prototype.onYtServiceRequestSentForButtonRenderer=jF.prototype.onYtServiceRequestSentForButtonRenderer;
jF.prototype.observeData=jF.prototype.observeData;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],jF.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],jF.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.CS.YtVisibilityBehavior),_.P("design:type",Object)],jF.prototype,"ytVisibilityBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],jF.prototype,"ytComponentBehavior",void 0);
_.N([_.g(_.Be),_.P("design:type",Object)],jF.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],jF.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],jF.prototype,"isOverridable",void 0);_.N([_.e(),_.P("design:type",Object)],jF.prototype,"spinnerActive",void 0);_.N([_.e(),_.P("design:type",Object)],jF.prototype,"showButton",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],jF.prototype,"isCommentsSection",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],jF.prototype,"engagementPanel",void 0);_.N([_.e(),_.P("design:type",Object)],jF.prototype,"isShortsGrid",void 0);_.N([_.e({reflectToAttribute:!0,selector:_.lF_}),_.P("design:type",Object)],jF.prototype,"isShortsPage",void 0);_.N([_.e({reflectToAttribute:!0,selector:_.zOi}),_.P("design:type",Object)],jF.prototype,"isWatchPage",void 0);_.N([_.e(),_.P("design:type",Number)],jF.prototype,"continuationTriggerOffset",void 0);
_.N([_.e(),_.P("design:type",Object)],jF.prototype,"endOfList",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],jF.prototype,"isInitialLoad",void 0);_.N([_.Nl("ytd-button-renderer"),_.P("design:type",_.Fh)],jF.prototype,"buttonRenderer",void 0);_.N([_.e(),_.P("design:type",Object)],jF.prototype,"buttonOverrides",void 0);
_.N([_.e(),_.Z("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.P("design:type",Object),_.P("design:paramtypes",[])],jF.prototype,"showGhostCardComments",null);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jF.prototype,"observeData",null);
_.N([_.lc("yt-service-request-sent-button-renderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jF.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Rn]),_.P("design:returntype")],jF.prototype,"onServiceRequestCompleted",null);
_.N([_.lc("yt-service-request-completed-button-renderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jF.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.N([_.P3("showButton"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jF.prototype,"showButtonChanged",null);
_.N([_.P3("continuationTriggerOffset"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jF.prototype,"continuationTriggerOffsetChanged",null);_.N([_.GI("isInitialLoad","engagementPanel"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jF.prototype,"numberOfGhostCommentsChanged",null);_.N([_.Ul({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],jF);
_.G(jF,"ytd-continuation-item-renderer",function(){if(cEZ!==void 0)return cEZ;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return cEZ=t},{mode:1});var p1f;var rj=function(){var t=_.z.apply(this,arguments)||this;t.downloadProgress=0;t.transferState="TRANSFER_STATE_UNKNOWN";t.downloadState="DOWNLOAD_STATE_UNKNOWN";t.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";t.offlineVideoPolicyExpirationTimestamp=0;t.downloadedVideoPlaybackPosition=0;return t};
_.u(rj,_.z);rj.prototype.dataChanged=function(){var t;this.videoData=_.k((t=this.data)==null?void 0:t.renderer,VZ3);this.transferStateChanged()};
rj.prototype.downloadProgressChanged=function(){if(this.entityInfo){var t=Object.assign({},this.videoData),E=iZY(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),p=E.publishedTimeText,U=E.badges;t.shortViewCountText=E.shortViewCountText;t.publishedTimeText=p;t.badges=U;this.set("videoData",t)}};
rj.prototype.transferStateChanged=function(){if(this.entityInfo){var t=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",E=_.Lb(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Nc(this.entityInfo.policyEntity),p=Object.assign({},this.videoData),U=iZY(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),x=U.publishedTimeText,A=U.badges;p.shortViewCountText=
U.shortViewCountText;p.publishedTimeText=x;p.badges=A;p.isDisabled=E;p.isWatched=this.downloadedVideoPlaybackPosition>0;p.navigationEndpoint=E?void 0:G0_(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var m;t&&((m=this.videoData)==null?0:m.videoId)&&!_.r("dl_resume_click_killswitch")&&(p.isDisabled=!1,p.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});p.thumbnailOverlays=m48(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",p)}};
rj.prototype.transferStateChanged=rj.prototype.transferStateChanged;rj.prototype.downloadProgressChanged=rj.prototype.downloadProgressChanged;rj.prototype.dataChanged=rj.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],rj.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],rj.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],rj.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",Object)],rj.prototype,"videoData",void 0);_.N([_.e({selector:Yz,selectorArgs:["videoData.videoId"]}),_.P("design:type",Object)],rj.prototype,"downloadProgress",void 0);_.N([_.e(),_.P("design:type",Number)],rj.prototype,"relativeDateReference",void 0);_.N([_.e({selector:_.xz,selectorArgs:["videoData.videoId"]}),_.P("design:type",Object)],rj.prototype,"transferState",void 0);
_.N([_.e({selector:UTi,selectorArgs:["videoData.videoId"]}),_.P("design:type",Object)],rj.prototype,"downloadState",void 0);_.N([_.e({selector:sUJ,selectorArgs:["videoData.videoId"]}),_.P("design:type",Object)],rj.prototype,"offlinePolicyAction",void 0);_.N([_.e({selector:L3Y,selectorArgs:["videoData.videoId"]}),_.P("design:type",Object)],rj.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.N([_.e({selector:MJ,selectorArgs:["videoData.videoId"]}),_.P("design:type",Object)],rj.prototype,"downloadedVideoPlaybackPosition",void 0);_.N([_.e({selector:TwK,selectorArgs:["videoData.videoId"]}),_.P("design:type",Object)],rj.prototype,"entityInfo",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],rj.prototype,"isDownloading",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rj.prototype,"dataChanged",null);
_.N([_.P3("downloadProgress"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rj.prototype,"downloadProgressChanged",null);_.N([_.P3("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rj.prototype,"transferStateChanged",null);
_.N([_.Ul({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],rj);
_.G(rj,"ytd-downloaded-video-grid-video-renderer",function(){if(p1f!==void 0)return p1f;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return p1f=t},{mode:_.hX("kevlar_poly_si_batch_j025")?1:2});var UPp;var kf=function(){};
kf.prototype.resolve=function(t,E){var p=this;return _.q(function(U){return U.yield(p.resolveCommand(t,E),0)})};var xPm,dj;xPm=Sp_(function(t){return t.targetId},{shouldPersist:!1});
dj=xPm.updateData;_.Aam=xPm.useUpdatableData;var YK0,M7s;YK0=Sp_(function(t){return t.targetId});
M7s=YK0.updateData;_.mPm=YK0.useUpdatableData;var bIW=c$O.bind(null,dj),iIs=c$O.bind(null,M7s);(function(t,E,p){var U=_.k(p==null?void 0:p.updatedRenderer,_.WIo);return U?t({targetId:E},function(){return U}):!1}).bind(null,dj);var us=function(){};
_.u(us,kf);us.prototype.resolveCommand=function(t){var E;return _.q(function(p){E=_.k(t,b8t);if(!E)return p.return();bIW(E.targetId,E);_.Do(p)})};var J0=function(){var t=_.sU.apply(this,arguments)||this;t.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return t};
_.u(J0,_.sU);_.Y=J0.prototype;_.Y.configureContinuationPathMap=function(){return{}};
_.Y.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.Y.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.Y.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.Y.observeData=function(){this.data&&(this.continuationIsReloading=!1,this.reloadUiContent=void 0)};
_.Y.handleAppendContinuationItemsAction=function(t){var E=_.k(t,_.G9r);if(this.data&&this.data.targetId&&E&&this.continuationPathMap&&E.targetId===this.data.targetId){var p=YXj(t),U=p&&this.continuationPathMap[p];if(U&&p)if(t=this.get(U,this.data)){a:{for(p=0;p<t.length;p++){var x=t[p],A=void 0,m=!!_.k((A=_.k(x,uHo))==null?void 0:A.content,_.fFf);if(_.k(x,_.um)||m)break a}p=t.length}U="data."+U;E.continuationItems?p===t.length-1?(this.pop(U),this.push.apply(this,[U].concat(_.KB(E.continuationItems)))):
p===t.length?this.push.apply(this,[U].concat(_.KB(E.continuationItems))):this.splice.apply(this,[U,p,1].concat(_.KB(E.continuationItems))):this.splice(U,p,1);(_.r("web_enable_voting_animation")||_.r("enable_music_web_cairo_voting_animation"))&&_.kT(this.hostElement,"yt-append-continuation-items-action-finished");_.kT(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.qW(new _.cC("append continuation items does not exist",p));else _.qW(new _.cC("append continuation path does not exist",
p))}};
_.Y.handleReloadContinuationItemsCommand=function(t){var E=_.k(t,b8t);if(this.data&&E){if(!_.r("web_reload_continuation_items_command_resolver_killswitch")){var p=_.X3().resolve(_.OB(us));p&&p.resolveCommand(t)}if(this.data.targetId&&this.continuationPathMap&&E.targetId===this.data.targetId&&(!_.r("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||E.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var U;p=(U=E.slot)==null?void 0:U.replace("RELOAD_CONTINUATION_SLOT_",
"");U=(t=YXj(t)+"-"+(p==null?void 0:p.toLowerCase()))&&this.continuationPathMap[t];if(!U||!t||!p)_.qW(new _.cC("reload continuation path does not exist",t));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(E)){if(E.replaceWithFirstItem){var x;this.set("data."+U,((x=E.continuationItems)==null?0:x.length)?E.continuationItems[0]:{})}else this.set("data."+U,E.continuationItems?E.continuationItems:[]);this.continuationIsReloading=!1;this.reloadUiContent=void 0;
_.kT(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.Y.handleShowReloadUiCommand=function(t){t=_.k(t,cBf);var E;((E=this.data)==null?0:E.targetId)&&(t==null?0:t.targetId)&&t.targetId===this.data.targetId&&(this.continuationIsReloading=!0,t.content&&(this.reloadUiContent=t.content))};
J0.prototype.observeData=J0.prototype.observeData;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],J0.prototype,"actionHandlerBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],J0.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],J0.prototype,"data",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],J0.prototype,"continuationIsReloading",void 0);
_.N([_.e(),_.P("design:type",Object)],J0.prototype,"reloadUiContent",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],J0.prototype,"observeData",null);_.N([_.L0()],J0);_.I6=[_.RO.YtComponentBehavior,_.oO.YtActionHandlerBehavior,J0.prototype];_.gj={};_.gj.YtNextContinuationBehavior=[_.O0.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",_.zI(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.zI(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(t,E){t.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,E,{}):(t={locationRetrieved:function(p){this.makeNextContinuationRequest_(p,E,{})}.bind(this)},_.kT(this.hostElement,"yt-retrieve-location",t))},
makeNextContinuationRequest_:function(t,E,p){_.cD("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();t=E(t);var U;this.canUseContextualNetworkManager_()&&(U=this.getNetworkManager());U||(U=_.X3().resolve(_.Lf));E=_.iA.instance;if(_.qO("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&E){U=_.Cf([t.startsWith("/")?t.substr(1):t]);var x,A;p=_.rY(E,{},U,p==null?void 0:(x=p.context)==null?void 0:(A=x.clickTracking)==null?void 0:A.clickTrackingParams).then(function(m){return{response:m}})}else p=
this.nextContinuation.usePost?U.postData(t,p):U.fetchData(t);
p.then(this.updateNextContinuationData_.bind(this,t));this.pendingContinuationRequest_=p;this.startListeningForNavigate_()},
updateNextContinuationData_:function(t,E){var p=this;_.cD("ncl");this.pendingContinuationRequest_=void 0;if(E){var U={};this.nextContinuation&&(U=this.nextContinuation);if(E.response&&E.response.continuationContents&&E.response.continuationContents[U.continuationType]){t=E.response.continuationContents[U.continuationType];var x=U.header||"data.header",A=t[U.responseHeaderKey||"header"];A&&this.set(x,A);x=U.contentsArray||"data.contents";A=this.getContents_(t,U.responseContentsKey||"contents")||[];
this.pathExists_(x)?(A.unshift(x),this.push.apply(this,A)):this.set(x,A);A&&(t0J(_.Pu(),E.response,this.hostElement,function(m){_.du(p.hostElement,"yt-store-grafted-ve-action",[m])}),_.kT(this.hostElement,"yt-next-continuation-data-updated",{continuationData:E,
page:this,contentsArray:x}));this.set(U.continuationsArray||"data.continuations",t[U.responseContinuationsKey||"continuations"]||[])}else E.reload?_.qW(new _.cC("Reloading from continuation is unsupported")):E.responseContext&&E.responseContext.errors||(delete E.xsrf_token,delete E.timing,delete E.endpoint,delete E.csn,E.responseContext&&delete E.responseContext.serviceTrackingParams,x={request:_.rs(t,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(E).sort()},E.response&&(x.responseContentKeys=
Object.keys(E.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(x.continuationType=this.nextContinuation.continuationType.substr(0,256)),E=new _.cC("Malformed continuation",x),t.indexOf("/comment_service_ajax")==0?_.qW(E):_.bV(E)),this.set(U.continuationsArray||"data.continuations",[])}else _.iV(new _.cC("Missing continuation response",t))},
getContents_:function(t,E){E=E.split(".");return _.Kq.getValueByKeys(t,E)},
pathExists_:function(t){var E=this;t=t.toString().split(".");for(var p=0;p<t.length;p++)if(E=E[t[p]],E===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var qKr;var HIr;var ZO=function(){var t=_.z.apply(this,arguments)||this;t.triggered_=!1;return t};
_.u(ZO,_.z);_.Y=ZO.prototype;_.Y.attached=function(){this.maybeTriggerAutoload()};
_.Y.detached=function(){this.hasBeenTriggered_=!1};
_.Y.onPrescanVisible=function(){this.onShow()};
_.Y.onShow=function(){this.showButton||this.trigger()};
_.Y.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.kT(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.Y.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.Y.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.Y.computeLabel_=function(t,E){return t===void 0?null:t.label||!E?t.label:this.showMoreText_};
_.Y.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.Y.getContinuationUrl=function(t){var E={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(E.itct=this.data.clickTrackingParams);return _.ka(t,E)};
_.Y.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
ZO.prototype.showButtonChanged_=ZO.prototype.showButtonChanged_;ZO.prototype.observeData_=ZO.prototype.observeData_;_.N([_.g(_.CS.YtVisibilityBehavior),_.P("design:type",Object)],ZO.prototype,"ytVisibilityBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],ZO.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],ZO.prototype,"data",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],ZO.prototype,"showButton",void 0);
_.N([_.e({value:!1}),_.P("design:type",Boolean)],ZO.prototype,"showIcon",void 0);_.N([_.e({computed:"computeLabel_(data, showButton)"}),_.P("design:type",Object)],ZO.prototype,"label",void 0);_.N([_.e({value:_.wN(_.zF("SHOW_MORE",void 0,"Show More"))}),_.P("design:type",Object)],ZO.prototype,"showMoreText_",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],ZO.prototype,"spinnerActive_",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],ZO.prototype,"hasBeenTriggered_",void 0);
_.N([_.e({value:void 0}),_.P("design:type",String)],ZO.prototype,"observeVisibleOption",void 0);_.N([_.e({value:void 0}),_.P("design:type",String)],ZO.prototype,"observeHiddenOption",void 0);_.N([_.e({value:"observe_once"}),_.P("design:type",Object)],ZO.prototype,"observePrescanOption",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ZO.prototype,"observeData_",null);
_.N([_.GI("showButton"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ZO.prototype,"showButtonChanged_",null);_.N([_.p4({is:"yt-next-continuation",disableElementRegistration:!0})],ZO);
_.G(ZO,"yt-next-continuation",function(){if(HIr===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;qKr===void 0&&(qKr=document.createElement("template"));var U=qKr;p.call(E,U.content.cloneNode(!0),t.content.firstChild);HIr=t}t=HIr;return t},{mode:2});var fWo;var Bds;var Og=function(){return _.z.apply(this,arguments)||this};
_.u(Og,_.z);Og.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Og.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Og.prototype,"data",void 0);_.N([_.p4({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],Og);
_.G(Og,"yt-music-pass-small-feature-info-renderer",function(){if(Bds===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;fWo===void 0&&(fWo=document.createElement("template"));var U=fWo;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Bds=t}t=Bds;return t},{mode:2});_.vs("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var XS=function(){var t=_.z.apply(this,arguments)||this;t.isCollapsible=!1;t.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return t};
_.u(XS,_.z);_.Y=XS.prototype;_.Y.computeIsCollapsible=function(t){return!!(((t==null?0:t.showMoreText)||(t==null?0:t.visibleRowCount))&&(t==null?0:t.isCollapsible))};
_.Y.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"}}}};
_.Y.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.Y.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.Y.onIronResize=function(){var t=this;_.qd(this,"updateGridInitItems",function(){t.maybeUpdateInitialItemsDisplayed()})};
_.Y.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var t=this.getVisibleWidth();t!==0&&(t=Math.floor(t/214)*(this.data.visibleRowCount||2),t!==this.initialCount&&(this.initialCount=t,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.Y.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.Y.computeExpandVisible=function(t,E,p,U){return t&&E&&p&&!!U&&!!U.showMoreText};
_.Y.computeShowMoreButton=function(t){return{text:t,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.Y.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.Y.initCollapsed=function(){var t=this;this.ytLazyListBehavior.canShowMore=!1;var E;(this.collapsed=!((E=this.data)==null||!E.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.XE(this,function(){_.uO(t.hostElement,"yt-refit-popups-action")})};
_.Y.fillRestIfNotCollapsible=function(){var t=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!t||this.ytLazyListBehavior.fillRemainingListItems()};
_.Y.computeViewAllHidden=function(t,E){return t||!E.viewAllEndpoint};
XS.prototype.fillRestIfNotCollapsible=XS.prototype.fillRestIfNotCollapsible;XS.prototype.initCollapsed=XS.prototype.initCollapsed;XS.prototype.onIronResize=XS.prototype.onIronResize;XS.prototype.persistentGuideChanged=XS.prototype.persistentGuideChanged;_.N([_.g(_.Ev),_.P("design:type",Object)],XS.prototype,"ironResizableBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],XS.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],XS.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.F_.YtLazyListBehavior),_.P("design:type",Object)],XS.prototype,"ytLazyListBehavior",void 0);_.N([_.g(_.gj.YtNextContinuationBehavior),_.P("design:type",Object)],XS.prototype,"ytNextContinuationBehavior",void 0);_.N([_.g(_.jp.YtdGuideStateAwareBehavior),_.P("design:type",Object)],XS.prototype,"ytdGuideStateAwareBehavior",void 0);
_.N([_.g(_.I6),_.P("design:type",Object)],XS.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],XS.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Boolean)],XS.prototype,"collapsed",void 0);_.N([_.e(),_.P("design:type",Number)],XS.prototype,"initialCount",void 0);_.N([_.e({computed:"computeShowMoreButton(data.showMoreText)"}),_.P("design:type",Object)],XS.prototype,"showMoreButton",void 0);
_.N([_.e({computed:"computeIsCollapsible(data)"}),_.P("design:type",Object)],XS.prototype,"isCollapsible",void 0);_.N([_.Nl("#items"),_.P("design:type",HTMLElement)],XS.prototype,"items",void 0);_.N([_.P3("guidePersistentAndVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],XS.prototype,"persistentGuideChanged",null);_.N([_.lc("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],XS.prototype,"onIronResize",null);
_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],XS.prototype,"initCollapsed",null);_.N([_.P3("canShowMore"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],XS.prototype,"fillRestIfNotCollapsible",null);_.N([_.Ul({is:"ytd-grid-renderer",disableElementRegistration:!0})],XS);
_.G(XS,"ytd-grid-renderer",function(){if(UPp!==void 0)return UPp;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return UPp=t},{mode:_.hX("kevlar_poly_si_batch_j025")?1:2});var h0=function(){return _.z.apply(this,arguments)||this};
_.u(h0,_.z);
h0.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"}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],h0.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],h0.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],h0.prototype,"data",void 0);_.N([_.Ul({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],h0);
_.G(h0,"ytd-carousel-ad-renderer",function(){if(SEr!==void 0)return SEr;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return SEr=t},{mode:1});var w1r;var a6=function(){return _.z.apply(this,arguments)||this};
_.u(a6,_.z);_.Y=a6.prototype;_.Y.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"}}}};
_.Y.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,a6.JSC$15783_CLICK_LOCATION_ID_MAP))};
_.Y.onSitelinkTap=function(t){t.stopPropagation();var E,p,U=t==null?void 0:(E=t.model)==null?void 0:(p=E.item)==null?void 0:p.onTap;U&&this.ytSparklesClickLocationBehavior.handleClick(U,t,!1)};
_.Y.onTap=function(t){var E=this.data&&this.data.content&&this.data.content.navigationEndpoint;E&&this.ytSparklesClickLocationBehavior.handleClick(E,t,!1)};
_.Y.sendImpression=function(){if(this.data&&this.data.content)for(var t=_.M(this.data.content.impressionEndpoints||[]),E=t.next();!E.done;E=t.next()){E=_.M(E.value.loggingUrls||[]);for(var p=E.next();!p.done;p=E.next())p=p.value,p.baseUrl&&rx(p.baseUrl,p.attributionSrcMode)}};
a6.prototype.onTap=a6.prototype.onTap;a6.prototype.dataChanged=a6.prototype.dataChanged;a6.JSC$15783_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"]]);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],a6.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],a6.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.ep.YtSparklesClickLocationBehavior),_.P("design:type",Object)],a6.prototype,"ytSparklesClickLocationBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],a6.prototype,"data",void 0);
_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],a6.prototype,"dataChanged",null);_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],a6.prototype,"onTap",null);_.N([_.Ul({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],a6);
_.G(a6,"ytd-promoted-sparkles-text-search-renderer",function(){if(w1r!==void 0)return w1r;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return w1r=t},{mode:1});var Ry3;var eF=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-mute-ad-action":"handleMuteAd"};return t};
_.u(eF,_.z);_.Y=eF.prototype;_.Y.created=function(){this.activeView=new NT(this.hostElement)};
_.Y.configureRendererStamper=function(){return{"data.menu":{id:_.r("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]]"}}}}}};
_.Y.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.Y.computeHasAdBadge=function(t){return!(t==null||!t.adBadge)};
_.Y.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",eF.JSC$15792_DEFAULT_AD_BADGE_RENDERER),_.XM(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&DH(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,eF.JSC$15792_CLICK_LOCATION_ID_MAP))};
_.Y.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var t;(((t=this.data)==null?void 0:t.impressionCommands)||[]).forEach(function(E){E=_.M(E.loggingUrls||[]);for(var p=E.next();!p.done;p=E.next())p=p.value,p.baseUrl&&rx(p.baseUrl,p.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.Y.onTap=function(t){var E,p=(E=this.data)==null?void 0:E.navigationEndpoint,U;(E=(U=this.data)==null?void 0:U.thumbnailNavigationEndpoint)&&_.Cd(_.Vx(t),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(E,t,!1):p&&this.ytSparklesClickLocationBehavior.handleClick(p,t,!1)};
_.Y.handleMuteAd=function(){this.collapsed=!0};
_.Y.attached=function(){var t=this;_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&s9(t.activeView)})};
_.Y.detached=function(){_.r("stop_av_measurement_on_detach")&&s9(this.activeView)};
_.aE.Object.defineProperties(eF.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var t;return!(((t=this.data)==null?void 0:t.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var t;return!(((t=this.data)==null?void 0:t.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.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}}});
eF.prototype.dataChanged=eF.prototype.dataChanged;
eF.JSC$15792_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"]]);
eF.JSC$15792_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.zF("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],eF.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],eF.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],eF.prototype,"actionHandlerBehavior",void 0);
_.N([_.g(_.ep.YtSparklesClickLocationBehavior),_.P("design:type",Object)],eF.prototype,"ytSparklesClickLocationBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],eF.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],eF.prototype,"collapsed",void 0);_.N([_.e({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.P("design:type",Boolean)],eF.prototype,"useBiggerThumbs",void 0);_.N([_.e({reflectToAttribute:!0,value:function(){return _.la("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],eF.prototype,"biggerThumbsStyle",void 0);_.N([_.e({reflectToAttribute:!0,value:function(){return _.r("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.P("design:type",Boolean)],eF.prototype,"fixAlignmentSmallScreens",void 0);_.N([_.e({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs_square")}}),
_.P("design:type",Boolean)],eF.prototype,"useBiggerThumbsSquare",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("data.mediaHoverOverlay"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],eF.prototype,"hideHoverOverlay",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data.promotedSparklesWebStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],eF.prototype,"webSearchLayout",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],eF.prototype,"webSearchLayoutLandscape",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],eF.prototype,"webSearchLayoutSquare",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("data.promotedSparklesWebStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],eF.prototype,"sparklesCtaNoBackground",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data.actionButton"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],eF.prototype,"hideActionButton",null);_.N([_.e({computed:"computeButtonOverride(uiUpdate)"}),_.P("design:type",Object)],eF.prototype,"buttonOverride",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.P("design:type",Boolean)],eF.prototype,"hasNewAdBadge",void 0);_.N([_.Z("data.promotedSparklesWebStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],eF.prototype,"useRoundedBadge",null);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],eF.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],eF);
_.G(eF,"ytd-promoted-sparkles-web-renderer",function(){if(Ry3!==void 0)return Ry3;var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Ry3=t},{mode:1});var V7r;var FS=function(){var t=_.z.apply(this,arguments)||this;t.isInlinePreviewTriggered=!1;t.enableMonoStyle=_.r("enable_default_mono_cta_migration_web_client");return t};
_.u(FS,_.z);_.Y=FS.prototype;_.Y.created=function(){this.activeView=new NT(this.hostElement)};
_.Y.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]]"}}}}}};
_.Y.computeShowCta=function(t){return!(t==null||!t.ctaRenderer)};
_.Y.onCtaClick=function(){var t,E,p,U=(t=this.data)==null?void 0:(E=t.ctaRenderer)==null?void 0:(p=E.buttonRenderer)==null?void 0:p.command;U&&this.ytComponentBehavior.resolveCommand(U)};
_.Y.onWatchButtonClick=function(){var t,E,p,U=(t=this.data)==null?void 0:(E=t.watchButtonRenderer)==null?void 0:(p=E.buttonRenderer)==null?void 0:p.command;U&&this.ytComponentBehavior.resolveCommand(U)};
_.Y.onTap=function(){};
_.Y.dataChanged=function(){if(this.data){var t;_.r("enable_inline_muted_playback_on_web_search")&&((t=this.data)==null?0:t.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",FS.JSC$15796_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&DH(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",FS.JSC$15796_DEFAULT_CLICK_LOCATION_BEHAVIOR,FS.JSC$15796_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(t=this.thumbnail.getElementsByTagName("a"),t.length>0&&(t=t.namedItem("thumbnail"))&&t.removeAttribute("href"));var E;if(((E=this.data)==null?0:E.forceImpAutoplay)&&_.r("enable_force_imp_autoplay_on_desktop_search")){var p;(p=this.JSC$15797_inlinePreviewHoverListener)==null||PxJ(p)}}};
_.Y.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var t=_.M(this.data.impressionUrls),E=t.next();!E.done;E=t.next())E=E.value,o8Y(E,$dL(E));this.data.impressionsFired=!0}};
_.Y.maybeComputeHref=function(){return null};
_.Y.computeIsShortDR=function(t){return!(t==null||!t.watchButtonRenderer)&&!(t==null||!t.ctaRenderer)&&!!this.enableShortDR};
_.Y.computeIsNewUiOrShortDr=function(t){return!!this.enableUiUpdate||this.computeIsShortDR(t)};
_.Y.computeIsNewUiAndNotShortDr=function(t){return!!this.enableUiUpdate&&!this.computeIsShortDR(t)};
_.Y.computeHideAvatar=function(t){return!((t==null?0:t.channelThumbnail)&&this.computeIsNewUiOrShortDr(t))};
_.Y.onClick=function(t){var E,p=(E=this.data)==null?void 0:E.navigationEndpoint;if(this.enableShortDR&&p&&(_.k(p,_.HD)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(p,t,!!_.k(p,_.HD)),t.stopPropagation();else if(p&&_.k(p,_.HD))this.ytSparklesClickLocationBehavior.handleClick(p,t,!0),t.stopPropagation();else if(p){var U,x;((U=this.data)==null?0:U.navigationEndpoint)&&((x=this.data)==null?0:x.adPlaybackContextParams)&&(E=this.data.navigationEndpoint,t=this.data.adPlaybackContextParams,
E.commandMetadata&&_.k(E.commandMetadata,_.hZ)&&_.k(E.commandMetadata,_.hZ).url&&(E=_.ji(_.k(E.commandMetadata,_.hZ).url).adurl)&&_.vT8(E)&&_.RK(_.M_(E),{encoded_ad_playback_context:t}));this.ytComponentBehavior.resolveCommand(p)}};
_.Y.computeButtonOverride=function(t){if(this.computeIsNewUiOrShortDr(t))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.Y.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.Y.onThumbnailContainerClick=function(t){this.onClick(t)};
_.Y.computeThumbnailWidth=function(t,E){return t?E==="MASSIVE"?600:E==="BIG"?500:E==="MEDIUM"?450:420:360};
_.Y.attached=function(){var t=this,E;_.r("enable_inline_muted_playback_on_web_search")&&((E=this.data)==null?0:E.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&s9(t.activeView)})};
_.Y.detached=function(){var t;_.r("enable_inline_muted_playback_on_web_search")&&((t=this.data)==null?0:t.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.r("stop_av_measurement_on_detach")&&s9(this.activeView)};
_.Y.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15797_inlinePreviewHoverListener=xj({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:OY0})};
_.Y.clearInlinePreviewHoverListeners=function(){var t;(t=this.JSC$15797_inlinePreviewHoverListener)==null||dI(t)};
FS.prototype.dataChanged=FS.prototype.dataChanged;FS.prototype.onTap=FS.prototype.onTap;FS.JSC$15796_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.zF("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};FS.JSC$15796_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
FS.JSC$15796_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"}];_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],FS.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],FS.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],FS.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.ep.YtSparklesClickLocationBehavior),_.P("design:type",Object)],FS.prototype,"ytSparklesClickLocationBehavior",void 0);_.N([_.Nl("#main-container"),_.P("design:type",HTMLElement)],FS.prototype,"mainContainer",void 0);
_.N([_.e(),_.P("design:type",Object)],FS.prototype,"isInlinePreviewTriggered",void 0);_.N([_.e(),_.P("design:type",Object)],FS.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.P("design:type",Boolean)],FS.prototype,"useBiggerThumbs",void 0);_.N([_.e({reflectToAttribute:!0,value:function(){return _.r("enable_video_display_compact_button_group_for_desktop_search")}}),
_.P("design:type",Boolean)],FS.prototype,"enableShortDR",void 0);_.N([_.e({reflectToAttribute:!0,value:function(){return _.r("enable_vac_ui_update_for_desktop_search")}}),
_.P("design:type",Boolean)],FS.prototype,"enableUiUpdate",void 0);_.N([_.e({reflectToAttribute:!0,value:function(){return _.la("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],FS.prototype,"biggerThumbsStyle",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.P("design:type",Boolean)],FS.prototype,"showCta",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.P("design:type",Boolean)],FS.prototype,"isShortDr",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.P("design:type",Boolean)],FS.prototype,"isShortDrOrNewUi",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.P("design:type",Boolean)],FS.prototype,"isNewUiAndNotShortDr",void 0);_.N([_.e({computed:"computeButtonOverride(data)"}),_.P("design:type",Object)],FS.prototype,"buttonOverride",void 0);_.N([_.e({computed:"computeSecondaryButtonOverride(data)"}),_.P("design:type",Object)],FS.prototype,"secondaryButtonOverride",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],FS.prototype,"enableMonoStyle",void 0);
_.N([_.Nl("ytd-thumbnail"),_.P("design:type",HTMLElement)],FS.prototype,"thumbnail",void 0);_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],FS.prototype,"onTap",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],FS.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],FS);
_.G(FS,"ytd-promoted-video-renderer",function(){if(V7r!==void 0)return V7r;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return V7r=t},{mode:1});var Q1r;var ze=function(){var t=_.z.apply(this,arguments)||this;t.useRoundedBadge=!0;t.sitelinkIds=[];return t};
_.u(ze,_.z);_.Y=ze.prototype;
_.Y.configureRendererStamper=function(){return{"data.menu":{id:_.r("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]]"}}}}}};
_.Y.dataChanged=function(){var t;(t=this.data)!=null&&t.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,ze.JSC$15802_CLICK_LOCATION_ID_MAP)};
_.Y.onTap=function(t){var E,p=(E=this.data)==null?void 0:E.navigationCommand;p&&!_.Cd(_.Vx(t),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(p,t,!1)};
_.Y.onSitelinkTap=function(t){var E,p,U=t==null?void 0:(E=t.model)==null?void 0:(p=E.item)==null?void 0:p.onTap;U&&this.ytSparklesClickLocationBehavior.handleClick(U,t,!1)};
_.Y.configureSitelinkClickTargets=function(){var t=this,E,p,U=(E=this.data)==null?void 0:(p=E.clickLocationTargets)==null?void 0:p.find(function(x){return x.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
U&&_.ZN(this.hostElement).querySelectorAll(".sitelink").forEach(function(x){_.XM(x,"yt-simple-endpoint",!0);t.sitelinkIds.push(x.id);var A,m;(A=t.ytSparklesClickLocationBehavior)==null||(m=A.clickTargetMap)==null||m.set(x.id,U)})};
_.Y.sendImpression=function(){var t,E,p=((t=this.data)==null?void 0:(E=t.impressionCommand)==null?void 0:E.loggingUrls)||[];t=_.M(p);for(E=t.next();!E.done;E=t.next())E=E.value,E.baseUrl&&rx(E.baseUrl,E.attributionSrcMode)};
_.Y.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.aE.Object.defineProperties(ze.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
ze.prototype.onTap=ze.prototype.onTap;ze.prototype.dataChanged=ze.prototype.dataChanged;ze.JSC$15802_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"]]);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],ze.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],ze.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.ep.YtSparklesClickLocationBehavior),_.P("design:type",Object)],ze.prototype,"ytSparklesClickLocationBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],ze.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ze.prototype,"showFavicon",null);_.N([_.e({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.P("design:type",Boolean)],ze.prototype,"useBiggerThumbs",void 0);_.N([_.e({reflectToAttribute:!0,value:function(){return _.la("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],ze.prototype,"biggerThumbsStyle",void 0);_.N([_.e({reflectToAttribute:!0,value:function(){return _.r("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.P("design:type",Boolean)],ze.prototype,"enableThumbnailScalingFix",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ze.prototype,"dataChanged",null);_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],ze.prototype,"onTap",null);_.N([_.Ul({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],ze);
_.G(ze,"ytd-text-image-no-button-layout-renderer",function(){if(Q1r!==void 0)return Q1r;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Q1r=t},{mode:_.hX("kevlar_poly_si_batch_j028")?1:2});var CvG;var ls=function(){var t=_.z.apply(this,arguments)||this;t.isInlinePlaybackState=!1;t.uiUpdate=_.r("web_modern_buttons");t.hideCta=_.r("hide_cta_for_home_web_video_ads");t.noBottomMargin=!1;t.animateInTimeStamp=_.z3("hide_cta_for_home_web_video_ads_animate_in_time");t.animateInCta=!1;t.isHovered=!1;t.enableMonoStyle=_.r("enable_default_mono_cta_migration_web_client");t.player=null;t.JSC$15809_playerEvents=new Map;t.JSC$15809_preventProgressSaveTimer=null;t.delayedCtaJobId=null;return t};
_.u(ls,_.z);_.Y=ls.prototype;_.Y.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]]"}}}}}};
_.Y.attached=function(){this.JSC$15809_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15809_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.r("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.Y.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15809_playerEvents)};
_.Y.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",ls.JSC$15808_DEFAULT_CLICK_LOCATION_BEHAVIOR,ls.JSC$15808_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.Y.hoverChanged=function(){var t=this;this.delayedCtaJobId&&(_.ir.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.r("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.W9(_.ir,function(){t.buttonContainer.classList.add("show-delayed-buttons")},_.z3("delayed_cta_on_web_delay_milliseconds")))};
_.Y.setPlayer=function(){var t=this,E;return _.q(function(p){if(p.nextAddress==1)return(E=_.uO(t.hostElement,"yt-get-inline-preview-player-action"))&&E[0]?p.yield(E[0].getPlayerPromise(),3):p.jumpTo(0);t.player=p.yieldResult;t.ytPlayerListenerBehavior.listenToPlayerEvents(t.player,t.JSC$15809_playerEvents);_.Do(p)})};
_.Y.onPlaybackStart=function(){var t=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15809_preventProgressSaveTimer=_.g4(_.ir,function(){t.JSC$15809_preventProgressSaveTimer=null},1E4))};
_.Y.onVideoProgress=function(t){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&t>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.Y.resetPreventProgressSaveTimer=function(){_.ir.cancelJob(this.JSC$15809_preventProgressSaveTimer);this.JSC$15809_preventProgressSaveTimer=null};
_.Y.getSimpleString=function(t){return _.R4(t)};
_.Y.onClick=function(t){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var E,p=(E=this.data)==null?void 0:E.navigationEndpoint,U;E=(U=this.data)==null?void 0:U.channelEndpoint;var x,A;((A=_.k((x=this.data)==null?void 0:x.adCtaButton,_.Ry))==null?0:A.command)&&_.Cd(_.Vx(t),this.hostElement,["call-to-action"])||(E&&_.Cd(_.Vx(t),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(E,t,!1):!_.Cd(_.Vx(t),this.hostElement,
["secondary-button"])&&p&&(_.r("enable_short_dr_for_desktop_launchable")?(U=!!_.k(p,_.HD),this.isInlinePlaybackState&&U&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(p,t,U)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(p,t,!0))))}};
_.Y.updateWatchEndpointStartTime=function(){var t,E;this.player&&((t=this.data)==null?0:t.inlinePlaybackEndpoint)&&((E=this.data)==null?0:E.navigationEndpoint)&&!this.JSC$15809_preventProgressSaveTimer&&(t=Math.floor(this.player.getCurrentTime()),_.k(this.data.navigationEndpoint,_.HD).startTimeSeconds=t,_.k(this.data.inlinePlaybackEndpoint,_.HD).startTimeSeconds=t)};
_.Y.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.Y.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.aE.Object.defineProperties(ls.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.r("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var t,E;return!((t=this.data)==null||!t.watchButton)&&!((E=this.data)==null||!E.adCtaButton)}}});
ls.prototype.hoverChanged=ls.prototype.hoverChanged;ls.prototype.dataChanged=ls.prototype.dataChanged;
ls.JSC$15808_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"]]);
ls.JSC$15808_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"}];
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],ls.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],ls.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],ls.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.ep.YtSparklesClickLocationBehavior),_.P("design:type",Object)],ls.prototype,"ytSparklesClickLocationBehavior",void 0);
_.N([_.g(_.JT.YtPlayerListenerBehavior),_.P("design:type",_.Il)],ls.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],ls.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],ls.prototype,"isInlinePlaybackState",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],ls.prototype,"miniMode",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],ls.prototype,"uiUpdate",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],ls.prototype,"hideCta",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],ls.prototype,"noBottomMargin",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],ls.prototype,"animateInCta",void 0);_.N([_.e({computed:"computeButtonOverride(uiUpdate)"}),_.P("design:type",Object)],ls.prototype,"buttonOverride",void 0);
_.N([_.e({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.P("design:type",Object)],ls.prototype,"secondaryButtonOverride",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],ls.prototype,"isHovered",void 0);_.N([_.Nl("#button-container"),_.P("design:type",HTMLElement)],ls.prototype,"buttonContainer",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],ls.prototype,"typographyBump",void 0);
_.N([_.e({reflectToAttribute:!0}),_.Z("typographyBump"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ls.prototype,"typographyBumpV2",null);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],ls.prototype,"enableMonoStyle",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ls.prototype,"dataChanged",null);
_.N([_.GI("isHovered"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ls.prototype,"hoverChanged",null);_.N([_.Z("data"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ls.prototype,"isButtonGroup",null);_.N([_.Ul({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],ls);
_.G(ls,"ytd-ad-inline-playback-meta-block",function(){if(CvG!==void 0)return CvG;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return CvG=t},{mode:_.hX("kevlar_poly_si_batch_j065")?1:2});var j13;var Ge=function(){var t=_.z.apply(this,arguments)||this;t.noBottomMargin=!1;t.isInlinePreviewTriggered=!1;t.JSC$15814_activeViewMeasurementDataResolver=_.fd();return t};
_.u(Ge,_.z);_.Y=Ge.prototype;_.Y.created=function(){this.activeView=new NT(this.hostElement)};
_.Y.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Y.attached=function(){var t=this;this.updateInlinePreviewHoverListeners();this.JSC$15814_activeViewMeasurementDataResolver.promise.then(function(E){DH(t.activeView,E)});
_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&s9(t.activeView)})};
_.Y.detached=function(){this.clearInlinePreviewHoverListeners();_.r("stop_av_measurement_on_detach")&&s9(this.activeView)};
_.Y.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15814_inlinePreviewHoverListener=xj({mediaRenderer:this,lockupElement:this.JSC$15814_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:OY0})};
_.Y.clearInlinePreviewHoverListeners=function(){var t;(t=this.JSC$15814_inlinePreviewHoverListener)==null||dI(t)};
_.Y.onDataChanged=function(){var t;((t=this.data)==null?0:t.activeView)&&this.JSC$15814_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Ge.JSC$15813_DEFAULT_CLICK_LOCATION_BEHAVIOR,Ge.JSC$15813_CLICK_LOCATION_ID_MAP);this.thumbnail&&(t=this.thumbnail.getElementsByTagName("a"),t.length>0&&(t=t.namedItem("thumbnail"))&&t.removeAttribute("href"));var E;if((E=this.data)==
null?0:E.forceImpAutoplay){var p;(p=this.JSC$15814_inlinePreviewHoverListener)==null||PxJ(p)}};
_.Y.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.Y.onThumbnailContainerClick=function(t){if(this.data&&this.data.navigationEndpoint){var E,p=(E=this.data)==null?void 0:E.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(p,t,!!_.k(p,_.HD));t.stopPropagation()}};
_.Y.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.Y.impressionLog=function(){var t=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var E,p,U=(p=_.k((E=this.data)==null?void 0:E.onImpression,_.ZU))==null?void 0:p.commands;U&&(U.forEach(function(x){x.clickTrackingParams&&delete x.clickTrackingParams;t.ytComponentBehavior.resolveCommand(x)}),this.data.impressionsFired=!0)}};
_.aE.Object.defineProperties(Ge.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.JSC$15814_inlinePreviewHoverListener)==null?0:Q5(t))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Ge.prototype.onTypographyBumpChanged=Ge.prototype.onTypographyBumpChanged;Ge.prototype.onDataChanged=Ge.prototype.onDataChanged;Ge.JSC$15813_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Ge.JSC$15813_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"}];
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Ge.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ge.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Ge.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],Ge.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.g(_.dy),_.P("design:type",Object)],Ge.prototype,"ytdLockupBehavior",void 0);
_.N([_.g(_.Be),_.P("design:type",Object)],Ge.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.ep.YtSparklesClickLocationBehavior),_.P("design:type",Object)],Ge.prototype,"ytSparklesClickLocationBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Ge.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Ge.prototype,"noBottomMargin",void 0);_.N([_.e(),_.P("design:type",Object)],Ge.prototype,"isInlinePreviewTriggered",void 0);
_.N([_.e({reflectToAttribute:!0,selector:_.cA}),_.P("design:type",Boolean)],Ge.prototype,"miniMode",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],Ge.prototype,"typographyBump",void 0);_.N([_.Nl("ytd-thumbnail"),_.P("design:type",HTMLElement)],Ge.prototype,"thumbnail",void 0);_.N([_.Nl("#dismissible"),_.P("design:type",HTMLElement)],Ge.prototype,"JSC$15814_dismissibleMedia",void 0);
_.N([_.Nl("ytd-ad-inline-playback-meta-block"),_.P("design:type",HTMLElement)],Ge.prototype,"adInlinePlaybackMetaBlock",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ge.prototype,"onDataChanged",null);_.N([_.P3("typographyBump"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ge.prototype,"onTypographyBumpChanged",null);
_.N([_.Z("lockupIsHovered"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Ge.prototype,"isHovered",null);_.N([_.Ul({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],Ge);
_.G(Ge,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(j13!==void 0)return j13;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return j13=t},{mode:1});var raW;var nL=function(){var t=_.z.apply(this,arguments)||this;t.isInlinePreviewTriggered=!1;t.JSC$15817_activeViewMeasurementDataResolver=_.fd();return t};
_.u(nL,_.z);_.Y=nL.prototype;_.Y.created=function(){this.activeView=new NT(this.hostElement)};
_.Y.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Y.attached=function(){var t=this;this.updateInlinePreviewHoverListeners();this.JSC$15817_activeViewMeasurementDataResolver.promise.then(function(E){DH(t.activeView,E)})};
_.Y.detached=function(){this.clearInlinePreviewHoverListeners()};
_.Y.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15817_inlinePreviewHoverListener=xj({mediaRenderer:this,lockupElement:this.JSC$15817_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:OY0})};
_.Y.clearInlinePreviewHoverListeners=function(){var t;(t=this.JSC$15817_inlinePreviewHoverListener)==null||dI(t)};
_.Y.onDataChanged=function(){var t;((t=this.data)==null?0:t.activeView)&&this.JSC$15817_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",nL.JSC$15816_DEFAULT_CLICK_LOCATION_BEHAVIOR,nL.JSC$15816_CLICK_LOCATION_ID_MAP);this.thumbnail&&(t=this.thumbnail.getElementsByTagName("a"),t.length>0&&(t=t.namedItem("thumbnail"))&&t.removeAttribute("href"))};
_.Y.onThumbnailContainerClick=function(t){if(this.data&&this.data.navigationEndpoint){var E,p=(E=this.data)==null?void 0:E.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(p,t,!0);t.stopPropagation()}};
_.Y.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.Y.impressionLog=function(){var t=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var E,p,U=(p=_.k((E=this.data)==null?void 0:E.onImpression,_.ZU))==null?void 0:p.commands;U&&(U.forEach(function(x){x.clickTrackingParams&&delete x.clickTrackingParams;_.X3().resolve(_.ei).resolveCommand(x,{form:{element:t.hostElement}})}),this.data.impressionsFired=!0)}};
_.aE.Object.defineProperties(nL.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.JSC$15817_inlinePreviewHoverListener)==null?0:Q5(t))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
nL.prototype.onDataChanged=nL.prototype.onDataChanged;nL.JSC$15816_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);nL.JSC$15816_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"}];_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],nL.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],nL.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],nL.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.g(_.dy),_.P("design:type",Object)],nL.prototype,"ytdLockupBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],nL.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.ep.YtSparklesClickLocationBehavior),_.P("design:type",Object)],nL.prototype,"ytSparklesClickLocationBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],nL.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],nL.prototype,"isInlinePreviewTriggered",void 0);_.N([_.e({reflectToAttribute:!0,selector:_.cA}),_.P("design:type",Boolean)],nL.prototype,"miniMode",void 0);_.N([_.Nl("ytd-thumbnail"),_.P("design:type",HTMLElement)],nL.prototype,"thumbnail",void 0);_.N([_.Nl("#dismissible"),_.P("design:type",HTMLElement)],nL.prototype,"JSC$15817_dismissibleMedia",void 0);
_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nL.prototype,"onDataChanged",null);_.N([_.Z("lockupIsHovered"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],nL.prototype,"isHovered",null);_.N([_.Ul({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],nL);
_.G(nL,"ytd-video-display-full-buttoned-renderer",function(){if(raW!==void 0)return raW;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return raW=t},{mode:1});var kj=function(t,E,p,U){U=U===void 0?!1:U;_.tD.call(this,t);this.adsClientErrorMessage=p;this.aggressivelySample=U;this.args=[];E&&this.args.push(E)};
_.u(kj,_.tD);var jY=function(t,E,p,U){U=U===void 0?!1:U;_.tD.call(this,t);this.adsClientErrorMessage=p;this.aggressivelySample=U;this.args=[];E&&this.args.push(E)};
_.u(jY,_.tD);var kuG=function(t){_.PQ.call(this);var E=this;this.initializationFunction=t;this.instance=null;this.addOnDisposeCallback(function(){_.wi(E.instance);E.instance=null})};
_.u(kuG,_.PQ);kuG.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.HY("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var mtY=function(){var t=new Map;[].forEach(function(E){t.set(E.JSC$31419_getType(),E)});
this.getters=t};new Promise(function(){});var Utj=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"]]),EUJ=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"}]]),dPG=function(t){this.experimentApiProvider=t;t=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=t<.1};var Nv=function(t,E,p,U){_.PQ.call(this);this.adsControlFlowEventListeners=E;this.adEventLogger=p;this.experimentApiProvider=U;this.adsControlFlowManagerHelper=t(this,this,this,this,this);_.ed(this,this.adsControlFlowManagerHelper);t=_.M(E);for(E=t.next();!E.done;E=t.next())_.ed(this,E.value)};
_.u(Nv,_.PQ);var udp=function(t,E,p,U){DO(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",E,p,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,U);t=_.M(t.adsControlFlowEventListeners);for(U=t.next();!U.done;U=t.next())udp(U.value,E,p)};
_.Y=Nv.prototype;_.Y.onOpportunityProcessedExternallyManaged=function(t,E,p,U){DO(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",t,p,E,void 0,void 0,void 0,void 0,void 0,void 0,void 0,U)};
_.Y.onSlotReceivedExternallyManaged=function(t,E){sg(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",t,E)};
_.Y.onSlotEntered=function(t){if(LL(this.adsControlFlowManagerHelper,t)!=null){sg(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",t);this.adsControlFlowManagerHelper.onSlotEntered(t);for(var E=_.M(this.adsControlFlowEventListeners),p=E.next();!p.done;p=E.next())p.value.onSlotEntered(t);if(LL(this.adsControlFlowManagerHelper,t)!=null&&LL(this.adsControlFlowManagerHelper,t).isOccupyingSlotType()&&PO(this.adsControlFlowManagerHelper,t)&&!Ja3(this.adsControlFlowManagerHelper,t)){var U;Te(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",t,(U=PO(this.adsControlFlowManagerHelper,t))!=null?U:void 0);t=LL(this.adsControlFlowManagerHelper,t);t.slotLifecycleStage!=="entered"&&o6(t.slot,t.slotLifecycleStage,"enterLayoutForSlot");t.slotLifecycleStage="rendering";t.registeredLayoutRenderingAdapter.startRendering(t.layout)}}};
_.Y.onSlotExited=function(t){if(LL(this.adsControlFlowManagerHelper,t)!=null){sg(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",t);this.adsControlFlowManagerHelper.onSlotExited(t);for(var E=_.M(this.adsControlFlowEventListeners),p=E.next();!p.done;p=E.next())p.value.onSlotExited(t);LL(this.adsControlFlowManagerHelper,t)!=null&&LL(this.adsControlFlowManagerHelper,t).markedForUnscheduleAfterOutboundAdapterRequests&&IWT(this,t)}};
_.Y.onLayoutReceivedExternallyManaged=function(t,E,p){t.managerLayer!=="core"&&Te(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",t,E,p)};
var gPG=function(t,E,p){if(LL(t.adsControlFlowManagerHelper,E)!=null){Te(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",E,p);t=_.M(t.adsControlFlowEventListeners);for(var U=t.next();!U.done;U=t.next())gPG(U.value,E,p)}};
Nv.prototype.onLayoutExited=function(t,E,p){if(LL(this.adsControlFlowManagerHelper,t)!=null){Te(this.adEventLogger,pP_(p),t,E);this.adsControlFlowManagerHelper.onLayoutExited(t,E);for(var U=_.M(this.adsControlFlowEventListeners),x=U.next();!x.done;x=U.next())x.value.onLayoutExited(t,E,p);(p=PO(this.adsControlFlowManagerHelper,t))&&E.layoutId===p.layoutId&&ZIp(this,t)}};
Nv.prototype.disposeInternal=function(){var t=OI0(this.adsControlFlowManagerHelper);t=_.M(t);for(var E=t.next();!E.done;E=t.next())IWT(this,E.value);_.PQ.prototype.disposeInternal.call(this)};
var IWT=function(t,E){if(LL(t.adsControlFlowManagerHelper,E)!=null)if(LL(t.adsControlFlowManagerHelper,E).JSC$31449_isSlotExitRequested()||LL(t.adsControlFlowManagerHelper,E).JSC$31449_isLayoutExitRequested())LL(t.adsControlFlowManagerHelper,E).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(LL(t.adsControlFlowManagerHelper,E).isOccupyingSlotType())LL(t.adsControlFlowManagerHelper,E).markedForUnscheduleAfterOutboundAdapterRequests=!0,ZIp(t,E);else if(LL(t.adsControlFlowManagerHelper,E).JSC$31449_isSlotFillRequested())LL(t.adsControlFlowManagerHelper,
E).markedForUnscheduleAfterOutboundAdapterRequests=!0,LL(t.adsControlFlowManagerHelper,E)!=null&&(sg(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",E),E=LL(t.adsControlFlowManagerHelper,E),E.fulfillmentLifecycleStage="fill_cancel_requested",E.registeredFulfillmentAdapter.cancelSlotFilling());else{var p=PO(t.adsControlFlowManagerHelper,E),U;t.experimentApiProvider.get();(U=_.r("h5_enable_layout_unscheduling_events"))&&(p?X1f(t,E,p):_.HY(Error("Mh"),E,p,void 0,!1));sg(t.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",E);var x=LL(t.adsControlFlowManagerHelper,E),A=E.slotEntryTrigger,m=x.registeredSlotEntryTriggerAdapters.get(A.triggerId);m&&(m.unregisterTrigger(A),x.registeredSlotEntryTriggerAdapters.delete(A.triggerId));A=_.M(E.slotFulfillmentTriggers);for(m=A.next();!m.done;m=A.next()){m=m.value;var b=x.registeredFulfillmentTriggerAdapters.get(m.triggerId);b&&(b.unregisterTrigger(m),x.registeredFulfillmentTriggerAdapters.delete(m.triggerId))}A=_.M(E.slotExpirationTriggers);
for(m=A.next();!m.done;m=A.next())if(m=m.value,b=x.registeredExpirationTriggerAdapters.get(m.triggerId))b.unregisterTrigger(m),x.registeredExpirationTriggerAdapters.delete(m.triggerId);x.hasLayout()&&(A=x.layout,WO(x,A.layoutExitNormalTriggers),WO(x,A.layoutExitSkipTriggers),WO(x,A.layoutExitMuteTriggers),WO(x,A.layoutExitUserInputSubmittedTriggers),WO(x,A.layoutExitUserCancelledTriggers));x.registeredFulfillmentAdapter=void 0;x.registeredSlotAdapter!=null&&(x.registeredSlotAdapter.release(),x.registeredSlotAdapter=
void 0);x.registeredLayoutRenderingAdapter!=null&&(x.registeredLayoutRenderingAdapter.release(),x.registeredLayoutRenderingAdapter=void 0);x=t.adsControlFlowManagerHelper;LL(x,E)&&(x=hy3(x,E.slotType+"_"+E.slotPhysicalPosition))&&x.delete(E.slotId);sg(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",E);t=_.M(t.adsControlFlowEventListeners);for(x=t.next();!x.done;x=t.next())x=x.value,x.onSlotUnscheduled(E),p&&!U&&X1f(x,E,p)}},X1f=function(t,E,p){Te(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
E,p);
Te(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",E,p);t=_.M(t.adsControlFlowEventListeners);for(var U=t.next();!U.done;U=t.next())U=U.value,p&&X1f(U,E,p)},ZIp=function(t,E){if(LL(t.adsControlFlowManagerHelper,E)!=null&&LL(t.adsControlFlowManagerHelper,E).isOccupyingSlotType()){var p=PO(t.adsControlFlowManagerHelper,E);
if(p&&Ja3(t.adsControlFlowManagerHelper,E)){if(LL(t.adsControlFlowManagerHelper,E)!=null){var U=t.adEventLogger,x;var A=((x=EUJ.get("abandoned"))==null?void 0:x.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";Te(U,A,E,p);t=LL(t.adsControlFlowManagerHelper,E);t.slotLifecycleStage!=="rendering"&&o6(t.slot,t.slotLifecycleStage,"exitLayout");t.slotLifecycleStage="rendering_stop_requested";t.registeredLayoutRenderingAdapter.stopRendering(p,"abandoned")}}else{sg(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
E);try{U=LL(t.adsControlFlowManagerHelper,E);if(!U)throw new jY("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");U.slotLifecycleStage!=="enter_requested"&&U.slotLifecycleStage!=="entered"&&U.slotLifecycleStage!=="rendering"&&o6(U.slot,U.slotLifecycleStage,"exitSlot");U.slotLifecycleStage="exit_requested";if(U.registeredSlotAdapter===void 0)throw U.slotLifecycleStage="scheduled",new jY("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
U.registeredSlotAdapter.exit()}catch(m){m instanceof jY&&m.adsClientErrorMessage?(aWZ(t.adEventLogger,m.adsClientErrorMessage,E),_.HY(m,E,void 0,void 0,m.aggressivelySample)):(aWZ(t.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",E),_.HY(m,E))}}}};var $f=function(t,E,p,U,x,A){_.PQ.call(this);this.registry=t;this.experimentApiProvider=A;this.slotMap=new Map};
_.u($f,_.PQ);var hy3=function(t,E){return(t=t.slotMap.get(E))?t:new Map},LL=function(t,E){return hy3(t,E.slotType+"_"+E.slotPhysicalPosition).get(E.slotId)},OI0=function(t){var E=[];
t.slotMap.forEach(function(p){p=_.M(p.values());for(var U=p.next();!U.done;U=p.next())E.push(U.value.slot)});
return E};
$f.prototype.onSlotEntered=function(t){t=LL(this,t);t.slotLifecycleStage!=="enter_requested"&&o6(t.slot,t.slotLifecycleStage,"onSlotEntered");t.slotLifecycleStage="entered"};
var Ja3=function(t,E){t=LL(t,E);return t.hasLayout()&&t.isRendering()},PO=function(t,E){(t=LL(t,E))?t.hasLayout()&&!t.layout&&_.HY("Unexpected empty layout",E):_.HY("Unexpected undefined slotState",E);
return(t==null?void 0:t.layout)||null};
$f.prototype.onSlotExited=function(t){t=LL(this,t);t.slotLifecycleStage!=="exit_requested"&&o6(t.slot,t.slotLifecycleStage,"onSlotExited");t.slotLifecycleStage="scheduled"};
$f.prototype.onLayoutExited=function(t,E){t=LL(this,t);t.isPrimaryLayout(E)&&(t.slotLifecycleStage!=="rendering_stop_requested"&&o6(t.slot,t.slotLifecycleStage,"onLayoutExited"),t.slotLifecycleStage="entered")};
var WO=function(t,E){E=_.M(E);for(var p=E.next();!p.done;p=E.next()){p=p.value;var U=t.registeredLayoutExitTriggerAdapters.get(p.triggerId);U&&(U.unregisterTrigger(p),t.registeredLayoutExitTriggerAdapters.delete(p.triggerId))}},o6=function(t,E,p){_.HY("Slot stage was "+E+" when calling method "+p,t)};var Fs4=function(t){_.PQ.call(this);this.deps=t;this.JSC$15870_adsControlFlowManager=ey0(this)};
_.u(Fs4,_.PQ);var ey0=function(t){var E=new Nv(function(p,U,x,A){return new $f(t.deps.registry,p,U,x,A,t.deps.experimentApiProvider)},new Set(M0l(t.deps.registry).concat(t.deps.listeners)),t.deps.adEventLogger,t.deps.experimentApiProvider);
_.ed(t,E);return E};var Ehj=function(){};var zyT=function(t,E){_.PQ.call(this);this.experimentApiProvider=t;this.eventLoggingSettingsProvider=E;this.eventCount=0;this.premiumAdSeenEventLogger=pAO()()};
_.u(zyT,_.PQ);zyT.prototype.logEvent=function(t){DO(this,t)};
var sg=function(t,E,p,U){DO(t,E,void 0,void 0,void 0,p,void 0,void 0,void 0,p.adSlotLoggingData,void 0,void 0,U)},Te=function(t,E,p,U,x){DO(t,E,void 0,void 0,void 0,p,U?U:void 0,void 0,void 0,p.adSlotLoggingData,U?U.adLayoutLoggingData:void 0,void 0,x);
p=_.X3().resolve(_.OB(pW))==null?void 0:U_();E=p==null?void 0:p.adsSeenHotConfig;p=p==null?void 0:p.adsHotConfig;(E==null?0:E.logOnAdsSeen)&&(p==null?0:p.webEnablePremiumAdsSeenLogging)&&lWs(t,U?U:void 0,x)},aWZ=function(t,E,p){DO(t,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,p,void 0,void 0,void 0,p.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:E})},DO=function(t,E,p,U,x,A,m,b,f,B,R,V,Q){Q=Q===void 0?0:Q;
Gup(t.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+E,"slot:",A,"layout:",m,"ping:",b,"Opportunity:",{opportunityType:p,associatedSlotId:U,slotsFromOpportunity:x,triggerBundle:f,adSlotLoggingData:B,adLayoutLoggingData:R});try{var C=function(){t.experimentApiProvider.get();if(E!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){E||_.HY("Empty PACF event type",A,m);var d=t.eventLoggingSettingsProvider.get();var I;(I=d.alwaysIncludeDebugData)||(d.experimentApiProvider.get(),I=
!1);d=I;I={eventType:E,eventOrder:++t.eventCount};var O={};A&&(O.slotData=Aql(d,A));if(m){var a={type:m.layoutType,controlFlowManagerLayer:Utj.get(m.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};d&&(a.debugData={layoutId:m.layoutId});O.layoutData=a}b&&(O.pingData={pingDispatchStatus:b.dispatchStatus,serializedAdPingMetadata:b.ping.serializedAdPingMetadata,pingIndex:b.index});f&&(O.triggerData=xtj(f.trigger,f.category));p&&(O.opportunityData=YD8(d,p,U,x));I.adClientData=O;B&&(I.serializedSlotAdServingData=
B.serializedSlotAdServingDataEntry);R&&(I.serializedAdServingData=R.serializedAdServingDataEntry);V&&(I.errorInfo=V);_.MW("adsClientStateChange",{adsClientEvent:I})}};
Q&&Q>0?_.E_(_.ty(),function(){return C()},Q):C()}catch(d){Gup(t.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.E_(_.ty(),function(){_.HY(d instanceof Error?d:String(d),A,m,{pacf_message:"exception during pacf logging"})})}},lWs=function(t,E,p){if(E){var U=E.adLayoutLoggingData;
_.E_(_.ty(),function(){t.premiumAdSeenEventLogger!=null&&U&&_.MW("adsSeenClientLogging",{serializedAdServingDataEntry:U.serializedAdServingDataEntry})},p!=null?p:0)}};var nPW=function(t,E){zyT.call(this,t,E)};
_.u(nPW,zyT);var Ndr=function(){},Gup=function(t,E){return _.r(E)};var s1Z=function(){var t=new DPT;this.JSC$15895_adsControlFlowManager=(new Fs4(t)).JSC$15870_adsControlFlowManager},DPT=function(){_.PQ.call(this);
var t=this;this.experimentApiProvider=new kuG(function(){return new Ndr});
var E=new kuG(function(){return new dPG(t.experimentApiProvider)});
this.adEventLogger=new nPW(this.experimentApiProvider,E);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.u(DPT,_.PQ);var Ls4=function(){},Pvo,KL=function(){Pvo||(Pvo=new Ls4);
return Pvo},vO=function(t){if(!t.JSC$15906_externallyManagedSlotAdapterCallback){var E=(new s1Z).JSC$15895_adsControlFlowManager;
t.JSC$15906_externallyManagedSlotAdapterCallback=E}return t.JSC$15906_externallyManagedSlotAdapterCallback},Td0=function(t,E,p){var U=E.opportunityType,x=Error("Nh");
if(U!==void 0){var A=vO(t);udp(A,U,void 0,p)}else _.HY(x,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});A=[];if(E.adSlotAndLayoutMetadata!==void 0){E=_.M(E.adSlotAndLayoutMetadata);for(var m=E.next();!m.done;m=E.next()){var b=m.value;if(m=b.adSlotMetadata)if(A.push(m),t.onSlotReceivedExternallyManaged(m,p),b.adLayoutMetadata){b=_.M(b.adLayoutMetadata);for(var f=b.next();!f.done;f=b.next())t.onLayoutReceivedExternallyManaged(m,f.value,p)}else p>0&&_.HY("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
U,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else p>0&&_.HY("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+U,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else p>0&&_.HY("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+U,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(U!==void 0)t.onOpportunityProcessedExternallyManaged(U,A,void 0,p);else _.HY(x,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
Ls4.prototype.onSlotReceivedExternallyManaged=function(t,E){t=rX(t);if(t instanceof jY)_.HY(t,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else vO(this).onSlotReceivedExternallyManaged(t,E)};
Ls4.prototype.onLayoutReceivedExternallyManaged=function(t,E,p){t=rX(t);E=b2D(E);if(t instanceof jY)_.HY(t,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(E instanceof kj)_.HY(E,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else vO(this).onLayoutReceivedExternallyManaged(t,E,p)};
Ls4.prototype.onOpportunityProcessedExternallyManaged=function(t,E,p,U){var x=[];E=_.M(E);for(var A=E.next();!A.done;A=E.next())A=rX(A.value),A instanceof jY?_.HY(A,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):x.push(A);vO(this).onOpportunityProcessedExternallyManaged(t,x,p,U)};
var oP0=function(t,E){E=rX(E);if(E instanceof jY)_.HY(E,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var p=vO(t);sg(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",E);p=_.M(p.adsControlFlowEventListeners);for(var U=p.next();!U.done;U=p.next())U=LL(U.value,E),U.slotLifecycleStage!=="not_scheduled"&&o6(U.slot,U.slotLifecycleStage,"onSlotScheduled"),U.slotLifecycleStage="scheduled";t=vO(t);sg(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",E);t=_.M(t.adsControlFlowEventListeners);
for(p=t.next();!p.done;p=t.next())p.value.onSlotEntered(E)}},Wsr=function(t,E){E=rX(E);
if(E instanceof jY)_.HY(E,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var p=vO(t);sg(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",E);p=_.M(p.adsControlFlowEventListeners);for(var U=p.next();!U.done;U=p.next())U.value.onSlotExited(E);t=vO(t);sg(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",E);t=_.M(t.adsControlFlowEventListeners);for(p=t.next();!p.done;p=t.next())p.value.onSlotUnscheduled(E)}},$PZ=function(t,E,p){E=rX(E);
p=b2D(p);if(E instanceof jY)_.HY(E,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(p instanceof kj)_.HY(p,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var U=vO(t);Te(U.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",E,p);U=_.M(U.adsControlFlowEventListeners);for(var x=U.next();!x.done;x=U.next())x.value.onLayoutScheduled(E,p);t=vO(t);Te(t.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",E,p);t=_.M(t.adsControlFlowEventListeners);
for(U=t.next();!U.done;U=t.next())gPG(U.value,E,p)}},yF=function(t,E,p){E=rX(E);
p=b2D(p);if(E instanceof jY)_.HY(E,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(p instanceof kj)_.HY(p,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var U=vO(t);Te(U.adEventLogger,pP_("normal"),E,p);U=_.M(U.adsControlFlowEventListeners);for(var x=U.next();!x.done;x=U.next())x.value.onLayoutExited(E,p,"normal");t=vO(t);t=_.M(t.adsControlFlowEventListeners);for(U=t.next();!U.done;U=t.next())X1f(U.value,E,p)}};_.SF=_.l(function(t){var E=_.C4(t,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});t=Object.assign({},E);var p=E.data;E=E.customCommandResolver;var U=(delete t.data,delete t.customCommandResolver,t);t=_.az({visibilityCallback:function(b,f){var B,R=(B=p().interaction)==null?void 0:B.onFirstVisible;b&&(R&&_.bz(R),U.setOnErrorHandler()&&i2O(f))},
showOption:_.lS});E=_.Yj(function(){return p().interaction},E,function(){var b;
return(b=U.listenToTapEvent)==null?void 0:b.call(U)});
var x=_.M(_.Py(!1,void 0,"wAC0Lc")),A=x.next().value,m=x.next().value;x=_.aC(function(b){var f;((f=U.setTouchEndHandler)==null?0:f.call(U))&&!A()&&(b.currentTarget.click(),m(!0),setTimeout(function(){m(!1)},100));
return!1});
return _.H("ad-image-view-model",{class:function(){var b,f=[((b=p().interaction)==null?0:b.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],B;((B=U.isGridViewEnabled)==null?0:B.call(U))&&f.push("ytwAdImageViewModelHostInGridView");return f.join(" ")},
el:_.V9(t,E),"on:touchend":x},_.H("div",{class:"ytwAdImageViewModelHostImageContainer"},_.H(_.Q9,{data:function(){var b;return{sources:p().imageSources,contentMode:(b=p().imageProperties)==null?void 0:b.contentMode}},
alt:function(){var b,f;return((b=p().interaction)==null?void 0:(f=b.accessibility)==null?void 0:f.label)||""},
targetHeight:U.targetHeight,targetWidth:U.targetWidth,preserveHeight:U.preserveHeight,preserveWidth:U.preserveWidth,useWidth:U.useWidth,style:function(){var b,f;return"vertical-align: bottom;"+(((b=p().background)==null?0:b.color)?"background-color:"+_.SL((f=p().background)==null?void 0:f.color)+";":"")},
className:function(){return U.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var b,f;return(f=(b=U.setDraggable)==null?void 0:b.call(U))!=null?f:void 0}})))},"nc");var KsX=_.l(function(t){var E=t.data,p=t.listenToTapEvent,U=function(){};
return _.H("ad-button-hover-overlay-view-model",{"on:click":_.aC(function(x){if(_.r("enable_web_home_top_landscape_image_layout_legacy_click_command")){var A,m=(A=E().interaction)==null?void 0:A.onTap;m&&_.kT(x.currentTarget,"yt-navigate",{endpoint:_.AJ(m)})}}),
class:function(){var x;return((x=E().interaction)==null?0:x.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.V9(_.az({visibilityCallback:function(x){var A,m=(A=E().interaction)==null?void 0:A.onFirstVisible;x&&m&&_.bz(m)},
showOption:_.lS}),_.Yj(function(){return E().interaction},void 0,function(){return!_.r("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(p==null?void 0:p())}))},function(){return _.r("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.H(_.sY,{data:function(){return E().button}},{adButtonViewModel:function(x){return _.H(_.nk,{data:x.data,
customCommandResolver:U})}}):_.H(_.sY,{data:function(){return E().button}},{adButtonViewModel:_.nk})}())},"oc");var dX;_.k2(_.l(function(t){var E=t.data;t=_.az({visibilityCallback:function(b,f){if(b){var B;(b=(B=E().interaction)==null?void 0:B.onFirstVisible)&&_.bz(b);var R;if(B=(R=E().adLayoutData)==null?void 0:R.activeViewData)u7(f,B),_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Je(f)})}else _.r("stop_av_measurement_on_detach")&&Je(f)},
showOption:_.lS,hideOption:GR});var p=_.Yj(function(){return E().interaction},void 0,function(){return!0}),U=_.M(_.Py(!1,void 0,"VNDDT")),x=U.next().value,A=U.next().value;
U=_.aC(function(){A(!0)});
var m=_.aC(function(){A(!1)});
return _.H("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.V9(t,V0$,p),"on:mouseenter":U,"on:mouseleave":m},_.H("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.zO({"max-width":function(){return _.r("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.H("div",{class:function(){var b;
a:{var f;switch((b=_.k(E().thumbnailImage,NMW))==null?void 0:(f=b.imageProperties)==null?void 0:f.renderingAspect){case "RENDERING_ASPECT_SQUARE":b="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":b="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}b=void 0}return b}},_.H(_.sY,{data:function(){return E().thumbnailImage}},{adImageViewModel:function(b){return _.H(_.SF,
{data:b.data,
listenToTapEvent:!0,setTouchEndHandler:_.r("enable_top_landscape_image_experiment_dom_id_web")})}})),_.H("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.H(_.w,{cond:function(){var b,f,B;
return(b=_.k(E().thumbnailImage,NMW))==null?void 0:(f=b.imageProperties)==null?void 0:(B=f.overlayIcon)==null?void 0:B.iconImage},
then:function(b){return _.H(_.Q9,{data:b,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.H("div",{class:function(){return x()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.H(_.sY,{data:function(){return E().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(b){return _.H(KsX,
{data:b.data,
listenToTapEvent:!0})}}))),_.H("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.H(_.sY,{data:function(){return E().feedAdMetadata}},{feedAdMetadataViewModel:function(b){return _.H(oI,{data:b.data,
listenToTapEvent:!0,setTouchEndHandler:_.r("enable_top_landscape_image_experiment_dom_id_web")})}})))},"pc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.uu}});_.k2(_.l(function(t){var E=t.data;t=_.az({visibilityCallback:function(b,f){if(b){var B;(b=(B=E().interaction)==null?void 0:B.onFirstVisible)&&_.bz(b);var R;if(B=(R=E().adLayoutData)==null?void 0:R.activeViewData)u7(f,B),_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Je(f)})}else _.r("stop_av_measurement_on_detach")&&Je(f)},
showOption:_.lS,hideOption:GR});var p=_.D4(_.pd),U=_.Yj(function(){return E().interaction}),x={},A={},m={};
return _.H("square-image-layout-view-model",{class:_.X5("ytwSquareImageLayoutViewModelHost",(x.ytwSquareImageLayoutViewModelHostColumn=p,x)),el:_.V9(t,Q9t,U)},_.H("div",{class:_.X5("ytwSquareImageLayoutViewModelHostImage",(A.ytwSquareImageLayoutViewModelHostColumnImage=p,A))},function(){return _.H(_.sY,{data:function(){return E().adImage}},{adImageViewModel:function(b){return _.H(_.SF,{data:b.data,
isGridViewEnabled:p,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.H("div",{class:_.X5("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(m.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=p,m))},_.H(_.sY,{data:function(){return E().feedAdMetadata}},{feedAdMetadataViewModel:oI}),function(){return _.H(_.sY,{data:function(){return E().adButton}},{adButtonViewModel:function(b){var f={};
return _.H(_.nk,{data:b.data,className:_.X5((f.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,f.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=p,f))})}})}()))},"qc"),"square-image-layout-view-model",{props:{data:_.uu}});_.k2(_.l(function(t){var E=t.data;var p=t.noBottomMargin;var U=t.typographyBump;t=_.az({visibilityCallback:function(V,Q){if(V){var C;(V=(C=E().interaction)==null?void 0:C.onFirstVisible)&&_.bz(V);var d;if(C=(d=E().adLayoutData)==null?void 0:d.activeViewData)u7(Q,C),_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Je(Q)})}else _.r("stop_av_measurement_on_detach")&&Je(Q)},
showOption:_.lS,hideOption:GR});var x=_.Yj(function(){return E().interaction},void 0,function(){return _.r("enable_web_home_top_landscape_image_layout_level_click")}),A=function(){return E().interaction};
A!==void 0&&A!==null||_.Ra(Error("Oh"));var m=function(){var V,Q,C;return(V=_.k(E().thumbnailImage,NMW))==null?void 0:(Q=V.background)==null?void 0:(C=Q.backgroundImageSource)==null?void 0:C.imageSources};
A=_.M(_.Py(!1,void 0,"NFjwje"));var b=A.next().value,f=A.next().value;A=_.aC(function(){f(!0)});
var B=_.aC(function(){f(!1)}),R=function(){return b()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.H("top-landscape-image-layout-view-model",{class:function(){var V;return((V=E().interaction)==null?0:V.onTap)&&_.r("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.V9(t,C$i,x),"on:mouseenter":A,"on:mouseleave":B},_.H("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.H(_.w,{cond:function(){return m()&&m().length>0},
then:function(){return _.H("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.zO({top:"0","background-image":function(){return"url("+String(m()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.H(_.w,{cond:function(){return!!E().adButtonHoverOverlay},
then:function(){return _.H("div",{class:R},_.H(_.sY,{data:function(){return E().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:KsX}))}}),_.H("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.H(_.sY,{data:function(){return E().thumbnailImage}},{adImageViewModel:function(V){return _.H(_.SF,{data:V.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.r("enable_web_home_top_landscape_image_layout_level_click")})}})),_.H("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.H(_.Q9,{data:{sources:[{clientResource:{imageName:_.r("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.H("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.H(_.sY,{data:function(){return E().feedAdMetadata}},{feedAdMetadataViewModel:function(V){return _.H(oI,{data:V.data,
noBottomMargin:function(){return p==null?void 0:p()},
listenToTapEvent:function(){return _.r("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return U==null?void 0:U()}})}})))},"rc"),"top-landscape-image-layout-view-model",{props:{data:_.uu,
noBottomMargin:_.uu,typographyBump:_.uu}});var vP0=_.l(function(t){var E=t.data,p=_.az({visibilityCallback:function(x){var A,m=(A=E().interaction)==null?void 0:A.onFirstVisible;x&&m&&_.bz(m)},
showOption:_.lS});t=_.Yj(function(){return E().interaction},t.customCommandResolver);
var U={};return _.H("ad-text-image-view-model",{class:_.X5("ytwAdTextImageViewModelHost",(U.ytwAdTextImageViewModelHostDarkBackground=function(){return E().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},U)),
el:_.V9(p,t),"aria-label":function(){var x,A;return(x=E().interaction)==null?void 0:(A=x.accessibility)==null?void 0:A.label}},_.H("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.H(_.d8,{text:function(){return E().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.H(_.w,{cond:function(){return E().overlayIcon},
then:function(x){return _.H("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.H(_.Q9,{data:x,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"sc");var ya0=_.l(function(t){var E=t.data;return _.H("feed-ad-sitelink-view-model",{class:function(){var p;return((p=E().interaction)==null?0:p.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.V9(_.Yj(function(){return E().interaction},t.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var p,U;return(p=E().interaction)==null?void 0:(U=p.accessibility)==null?void 0:U.label},
role:"link",tabindex:0},_.H(_.d8,{text:function(){return E().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"tc");var SKs=_.l(function(t){var E=t.data;t={};return _.H("feed-ad-sitelinks-carousel-view-model",{el:_.V9(_.az({visibilityCallback:function(p){var U,x=(U=E().interaction)==null?void 0:U.onFirstVisible;p&&x&&_.bz(x)},
showOption:_.lS})),class:_.X5("ytwFeedAdSitelinksCarouselViewModelHost",(t.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return E().style==="FEED_AD_SITELINKS_STYLE_NONE"},t))},_.H(_.sY,{data:function(){return E().sitelinks}},{feedAdSitelinkViewModel:ya0}))},"uc");_.k2(_.l(function(t){var E=t.data;t=_.az({visibilityCallback:function(m,b){if(m){var f;(m=(f=E().interaction)==null?void 0:f.onFirstVisible)&&_.bz(m);var B;(f=(B=E().adLayoutData)==null?void 0:B.activeViewData)&&u7(b,f)}},
showOption:_.lS});var p=_.M(_.Py(!1,void 0,"BzPhl")),U=p.next().value,x=p.next().value;p=_.aC(function(){x(!0)});
var A=_.aC(function(){x(!1)});
return _.H("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.V9(t),"on:mouseenter":p,"on:mouseleave":A},_.H("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.H("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.H(_.sY,{data:function(){return E().textImage}},{adTextImageViewModel:vP0})),_.H("div",{class:function(){return U()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.H(_.sY,{data:function(){return E().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(m){return _.H(KsX,{data:m.data,
listenToTapEvent:!0})}}))),_.H("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.H(_.sY,{data:function(){return E().feedAdMetadata}},{feedAdMetadataViewModel:function(m){return _.H(oI,{data:m.data,
listenToTapEvent:!0})}}),_.H(_.sY,{data:function(){return E().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:SKs})))},"vc"),"text-image-no-button-layout-view-model",{props:{data:_.uu}});_.k2(_.l(function(t){var E=t.data;var p=t.typographyBump;return _.H("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.V9(_.az({visibilityCallback:function(U,x){if(U){var A;(U=(A=E().interaction)==null?void 0:A.onFirstVisible)&&_.bz(U);var m;(A=(m=E().adLayoutData)==null?void 0:m.activeViewData)&&u7(x,A)}},
showOption:_.lS,hideOption:GR}))},_.H("div",null,_.H(_.sY,{data:function(){return E().videoLockup}},{lockupViewModel:function(U){return _.H(_.WM,{data:U.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:p})}})))},"wc"),"video-display-button-group-layout-view-model",{props:{data:_.uu,
noBottomMargin:_.uu,typographyBump:_.uu}});_.k2(_.l(function(t){var E=t.data;var p=t.className;var U=t.typographyBump;return _.H("video-display-compact-button-group-layout-view-model",{el:_.V9(_.az({visibilityCallback:function(x,A){if(x){var m;(x=(m=E().interaction)==null?void 0:m.onFirstVisible)&&_.bz(x);var b;(m=(b=E().adLayoutData)==null?void 0:b.activeViewData)&&u7(A,m)}},
showOption:_.lS})),class:_.X5("videoDisplayCompactButtonGroupLayoutViewModelHost",p)},_.H(_.sY,{data:function(){return E().videoLockup}},{lockupViewModel:function(x){return _.H(_.WM,{data:x.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:U})}}))},"xc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.uu,
className:_.uu,typographyBump:_.uu}});_.k2(_.l(function(t){var E=t.data;var p=t.className;var U=t.typographyBump;return _.H("video-display-compact-buttoned-layout-view-model",{el:_.V9(_.az({visibilityCallback:function(x,A){if(x){var m;(x=(m=E().interaction)==null?void 0:m.onFirstVisible)&&_.bz(x);var b;(m=(b=E().adLayoutData)==null?void 0:b.activeViewData)&&u7(A,m)}},
showOption:_.lS})),class:_.X5("videoDisplayCompactButtonedLayoutViewModelHost",p)},_.H(_.sY,{data:function(){return E().videoLockup}},{lockupViewModel:function(x){return _.H(_.WM,{data:x.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:U})}}))},"yc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.uu,
className:_.uu,typographyBump:_.uu}});_.k2(_.l(function(t){var E=t.data;var p=t.className;var U=t.typographyBump;var x=function(){return E().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},A=_.D4(_.pd);
t=_.az({visibilityCallback:function(B,R){if(B){var V=E();B=V.adLayoutData;var Q;(V=(Q=V.interaction)==null?void 0:Q.onFirstVisible)&&_.bz(V);(Q=B==null?void 0:B.activeViewData)&&u7(R,Q)}},
showOption:_.lS});var m=_.KN(function(){return{containerType:x()&&A()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST",responsiveSize:x()?"RESPONSIVE_SIZE_COMPACT":void 0}},void 0,"Ikxfhe"),b=_.KN(function(){return x()&&A()?"":x()?"168px":"50%"},void 0,"Om6kNe"),f=_.KN(function(){return x()&&A()?9999:void 0},void 0,"S71lKd");
return _.H("video-display-compact-layout-view-model",{el:_.V9(t),class:_.X5("videoDisplayCompactLayoutViewModelHost",p)},_.H(_.sY,{data:function(){return E().videoLockup}},{lockupViewModel:function(B){return _.H(_.WM,{data:B.data,
containerLayoutConfig:m,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:b,thumbnailTargetWidth:f,typographyBump:U})}}))},"zc"),"video-display-compact-layout-view-model",{props:{data:_.uu,
className:_.uu,typographyBump:_.uu}});_.k2(_.l(function(t){var E=t.data;var p=t.typographyBump;return _.H("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.V9(_.az({visibilityCallback:function(U,x){if(U){var A;(U=(A=E().interaction)==null?void 0:A.onFirstVisible)&&_.bz(U);var m;(A=(m=E().adLayoutData)==null?void 0:m.activeViewData)&&u7(x,A)}},
showOption:_.lS,hideOption:GR}))},_.H("div",null,_.H(_.sY,{data:function(){return E().videoLockup}},{lockupViewModel:function(U){return _.H(_.WM,{data:U.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:p})}})))},"Ac"),"video-display-full-layout-view-model",{props:{data:_.uu,
noBottomMargin:_.uu,typographyBump:_.uu}});_.cas=_.l(function(t){var E=t.data;t=_.EB("ad-card-badge-view-model");return _.H("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:t},_.H(_.w,{cond:function(){return E().imageBadge},
then:function(p){return _.H(_.Q9,{data:p,alt:""})}}))},"Bc");var tqs=_.l(function(t){var E=t.data;var p=t.customCommandResolver;return _.H("carousel-ad-card-image-view-model",{class:function(){var U;return((U=E().interaction)==null?0:U.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.V9(_.az({visibilityCallback:function(U){var x,A=(x=E().interaction)==null?void 0:x.onFirstVisible;U&&A&&_.bz(A)},
showOption:_.lS}),_.Yj(function(){return E().interaction},p)),
"aria-label":function(){var U,x;return(U=E().interaction)==null?void 0:(x=U.accessibility)==null?void 0:x.label}},_.H(_.sY,{data:function(){return E().adImage}},{adImageViewModel:function(U){return _.H(_.SF,{data:U.data,
customCommandResolver:p})}}),_.H("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.H(_.sY,{data:function(){return E().badge}},{adCardBadgeViewModel:_.cas})),_.H(_.lu,{model:{color:4}}))},"Cc");var Evs=_.l(function(t){var E=_.M(_.Py(0,void 0,"JJ0QQc")),p=E.next().value;E.next();var U=E.next().value,x=_.M(_.Py(!1,void 0,"f6YICe"));E=x.next().value;var A=x.next().value,m;_.iK(function(){clearTimeout(m)});
x=_.aC(function(){var B;((B=t.animate)==null?0:B.call(t))?(A(!0),m=setTimeout(function(){A(!1);b()},200)):b();
return!1});
var b=function(){U(function(B){return(B+t.numShownItems())%t.data().length})},f={};
return _.H("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.H("div",{class:_.X5("ytwHorizontalCarouselCarouselWrapper")},_.H("div",{class:_.X5("ytwHorizontalCarouselCarouselInnerWrapper",(f.ytwHorizontalCarouselAnimating=E,f))},_.H(_.yG,{each:t.data,keyBy:"INDEX"},function(B,R){return _.H("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.zO({"flex-basis":function(){return"calc((100% - (8px * "+(t.numShownItems()-1)+")) / "+t.numShownItems()+")"},
order:function(){var V=R-p();V<0&&(V+=t.data().length);return V}})},t.children(B,R))}))),_.H("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":x},t.nextButton()))},"Dc");var xZ0=_.l(function(t){var E=t.data;var p=t.customCommandResolver;var U=t.expansive;var x=t.isLockupAttachment;return _.H("carousel-ad-card-collection-view-model",{el:_.V9(_.az({visibilityCallback:function(A){var m,b=(m=E().interaction)==null?void 0:m.onFirstVisible;A&&b&&_.bz(b)},
showOption:_.lS})),class:"ytwCarouselAdCardCollectionViewModelHost"},_.H(_.w,{cond:function(){return x==null?void 0:x()},
then:function(){return _.H(pGT,{data:E,customCommandResolver:p})},
else:function(){return _.H(UZs,{data:E,customCommandResolver:p,expansive:U})}}))},"Ec"),pGT=_.l(function(t){var E=t.data;
var p=t.customCommandResolver;return _.H("div",{class:"ytwCarouselAdCardCollectionViewModelMetadataAttachmentCarousel",tabindex:0},_.H(_.sY,{data:function(){return E().carouselAdCards||[]}},{carouselAdCardImageViewModel:function(U){return _.H("div",{class:"ytwCarouselAdCardCollectionViewModelMetadataAttachmentCarouselItem"},_.H(tqs,{data:U.data,
customCommandResolver:p}))}}))},"Fc"),UZs=_.l(function(t){var E=t.data;
var p=t.customCommandResolver;var U=t.expansive;return _.H(Evs,{data:function(){var x;return((x=E())==null?void 0:x.carouselAdCards)||[]},
nextButton:function(){return _.H(_.sY,{data:function(){return E().nextButton}},{buttonViewModel:function(x){var A=x.data;
return _.H(_.D5,{data:function(){return(U==null?0:U())?Object.assign({},A(),{style:"mono"}):A()},
className:_.r("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(x){return _.H(_.sY,{data:x},{carouselAdCardImageViewModel:function(A){return _.H(tqs,{data:A.data,customCommandResolver:p})}})})},"Gc");var AiZ=_.l(function(t){var E=t.data;var p=t.customCommandResolver;var U=t.className;var x=t.buttonClassName;var A=t.animationEntityKey;var m=t.expansive;return _.H("carousel-button-view-model",{class:_.X5("ytwCarouselButtonViewModelHost",U)},_.H(_.sY,{data:function(){return E().carousel}},{carouselAdCardCollectionViewModel:function(b){return _.H(xZ0,{data:b.data,
customCommandResolver:p,expansive:m})}}),_.H(_.sY,{data:function(){return E().button}},{adButtonViewModel:function(b){var f=b.data;
return _.H(_.nk,{data:function(){return(m==null?0:m())?Object.assign({},f(),{style:"AD_BUTTON_STYLE_TONAL"}):f()},
className:x,customCommandResolver:p,animationEntityKey:A})}}))},"Hc");_.YPo=_.l(function(t){var E=t.data;t=t.className;var p=_.EB("pivot-button-view-model");_.A6(function(){var U;((U=E())==null?0:U.backgroundColor)&&p.value.setAttribute("data-background-color",String(E().backgroundColor))});
return _.H("pivot-button-view-model",{el:p,class:_.X5("ytwPivotButtonViewModelHost",t)},_.H(_.zn,{command:function(){var U=E();U=U.onClickCommand?_.AJ(U.onClickCommand):U.contentDescription?_.rN(U.contentDescription):void 0;return U},
ariaLabel:function(){return E().contentDescription}},_.H(_.w,{cond:function(){return E().thumbnail},
then:function(U){return _.H(_.Q9,{data:U,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.H(_.w,{cond:function(){return E().icon},
then:function(U){return _.H(_.lz,{icon:function(){return U().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Ic");_.Mqo=_.l(function(t){var E=t.data;var p=t.buttonShapeOverrideables;return _.H("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.H(_.sY,{data:function(){return E().buttonViewModels}},{buttonViewModel:function(U){return _.H(_.D5,{data:U.data,
buttonOverrides:p})},
likeButtonViewModel:function(U){return _.H(_.Vf,{data:U.data,buttonShapeOverrideables:p})},
dislikeButtonViewModel:function(U){return _.H(_.R2,{data:U.data,buttonShapeOverrideables:p})},
toggleButtonViewModel:function(U){return _.H(_.m3,{data:U.data,buttonShapeOverrides:p})}}))},"Jc");var mZX=_.l(function(t){var E=t.avatar;var p=t.headline;var U=t.badge;var x=t.description;var A=t.expansive;t={};return _.H("yt-ad-metadata-shape",{class:_.X5("ytAdMetadataShapeHost",(t.ytAdMetadataShapeHostLarge=A,t))},_.H("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.H(_.w,{cond:E,then:function(m){return _.H(_.SDr,{data:function(){return(A==null?0:A())?Object.assign({},m(),{size:"AD_AVATAR_SIZE_M"}):m()}})}}),_.H("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.H(_.d8,{text:p,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.H(_.w,{cond:U,then:function(m){return _.H(_.PM,{data:function(){return(A==null?0:A())?Object.assign({},m(),{style:"AD_BADGE_STYLE_STARK"}):m()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.H("h2",{class:"ytAdMetadataShapeHostDescription"},_.H(_.d8,{text:x,
linkInheritColor:!0,isHeadline:function(){return A==null?void 0:A()}})))},"Kc");var bjZ=_.l(function(t){var E=t.data;var p=t.onShow;var U=t.expansive;t=_.Yj(function(){return E().interaction});
_.A6(function(){var A,m=(A=E().animatedRenderingConfig)==null?void 0:A.delayedSecondsToVisible;if(m){var b=setTimeout(p,m*1E3);_.iK(function(){clearTimeout(b)})}});
var x={};return _.H("reels-ad-card-buttoned-view-model",{class:_.X5(function(){var A;return((A=E().interaction)==null?0:A.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(x.ytwReelsAdCardButtonedViewModelHostExpansive=U,x)),
el:_.V9(t)},_.H(mZX,{avatar:function(){return _.k(E().avatar,lJm)},
headline:function(){return E().headline},
badge:function(){return _.k(E().adBadge,G4r)},
description:function(){return E().description},
expansive:U}),_.H(_.sY,{data:function(){return E().ctaButton}},{adButtonViewModel:function(A){var m=A.data;
return _.H(_.nk,{data:function(){return(U==null?0:U())?Object.assign({},m(),{style:"AD_BUTTON_STYLE_FILLED"}):m()}})}}))},"Lc");var ijs=_.l(function(t){var E=t.data;t=t.expansive;var p=_.r("web_ad_metadata_clickable")?_.Yj(function(){return E().interaction},void 0,function(){return _.r("web_ad_metadata_clickable")}):void 0,U={};
U=_.v9("ytwReelsAdMetadataViewModelHost",(U.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.r("web_ad_metadata_clickable"),U));return _.H("reels-ad-metadata-view-model",{class:U,el:_.V9(p)},_.H(mZX,{avatar:function(){return _.k(E().avatar,lJm)},
headline:function(){return E().headline},
badge:function(){return _.k(E().adBadge,G4r)},
description:function(){return E().description},
expansive:t}))},"Mc");var qPf=_.l(function(){return _.H("div",{class:"ytwVideoFilteringOverlayHost",style:_.zO({"background-color":function(){return _.cL(_.z3("exp_shorts_ads_mvp_filtering_hex_value_web"))}})})},"Nc");var Hj3={iconPosition:"icon-with-label",size:"L"},fhp=_.l(function(t){var E=t.data;var p=t.overlayDensity;var U=t.extractOverlay;var x=t.extractActionBar;t=_.EB("reels-player-overlay-layout-view-model");var A=_.Ql(p,0),m=function(){var C;return(C=E().reelsAdCardButtonedEntityKey)!=null?C:""},b=function(){return m()+"/ad_button"},f=_.nd(SxK,m),B=function(){var C,d;
return(d=(C=f())==null?void 0:C.value)!=null?d:!1},R=_.D4(j90),V=function(){var C,d=Object.assign({},Hj3,(R()||!((C=x==null?void 0:x())!=null&&C))&&{style:"overlay-dark"});
return _.r("mweb_shorts_rhs_no_background_protection")?Object.assign({},d,{type:"text",style:"overlay"}):d};
p={};var Q={};return _.H("reels-player-overlay-layout-view-model",{class:_.X5("ytwReelsPlayerOverlayLayoutViewModelHost",(p.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!E().extension},p.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},p.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return A()===1&&!(U==null?0:U())},p.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var C;
return(C=U==null?void 0:U())!=null?C:!1},p.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var C;
return(C=x==null?void 0:x())!=null?C:!1},p)),
"overlay-density":function(){return String(A())},
el:t},_.H("div",{class:_.X5("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(Q.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},Q))},_.H("div",{"aria-hidden":function(){return B()},
class:_.X5("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return B()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.zO({"transition-duration":function(){return uDY(E())}})},_.H(_.sY,{data:function(){return E().adMetadata}},{reelsAdMetadataViewModel:function(C){return _.H(ijs,{data:C.data,
expansive:function(){return A()===1}})}}),_.H(_.w,{cond:function(){return E().extension},
then:function(C){return _.H("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.H(_.sY,{data:C},{adButtonViewModel:function(d){return _.H(_.nk,{data:d.data,animationEntityKey:b,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(d){return _.H(AiZ,{data:d.data,animationEntityKey:b,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return A()===1}})}}))}})),_.H("div",{"aria-hidden":function(){return!B()},
class:_.X5("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return B()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.zO({"transition-duration":function(){return uDY(E())}})},_.H(_.sY,{data:function(){return E().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(C){return _.H(bjZ,{data:C.data,
onShow:function(){_.Vl(_.P9("booleanEntity",m(),{key:m(),value:!0}))},
expansive:function(){var d;return(d=U==null?void 0:U())!=null?d:!1}})}}))),_.H("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.H(_.sY,{data:function(){return E().actions}},{reelActionBarViewModel:function(C){return _.H(_.Mqo,{data:C.data,
buttonShapeOverrideables:V})}}),_.H(_.sY,{data:function(){return E().menu}},{buttonViewModel:function(C){return _.H(_.D5,{data:C.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},{type:"tonal"},V())}})}}),_.H(_.sY,{data:function(){return E().pivotButton}},{pivotButtonViewModel:function(C){return _.H(_.YPo,{data:C.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})),_.H(_.w,{cond:function(){return _.r("exp_shorts_ads_mvp_filtering_web")},
then:function(){return _.H(_.hBJ,{root:"ytd-reel-video-renderer[is-active] #video-filtering-overlay-container"},function(){return _.H(qPf,null)})}}))},"Oc");_.k2(fhp,"reels-player-overlay-layout-view-model",{props:{data:_.uu,overlayDensity:_.uu,extractOverlay:_.uu,extractActionBar:_.uu}});var cO=function(){var t=_.z.apply(this,arguments)||this;t.noBottomMargin=!1;t.overlayDensity=0;t.extractOverlay=!1;t.extractActionBar=!1;return t};
_.u(cO,_.z);_.Y=cO.prototype;
_.Y.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:_.r("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]]"}}}}}};
_.Y.ready=function(){var t=this;lLO(function(){t.isAttached&&Qj(t.JSC$15953_storedAdSlotMetadata,t.JSC$15953_storedAdLayoutMetadata,t.adSlotMetadata,t.adLayoutMetadata)&&yF(KL(),t.JSC$15953_storedAdSlotMetadata,t.JSC$15953_storedAdLayoutMetadata)})};
_.Y.attached=function(){Qj(this.JSC$15953_storedAdSlotMetadata,this.JSC$15953_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&$PZ(KL(),this.JSC$15953_storedAdSlotMetadata,this.JSC$15953_storedAdLayoutMetadata)};
_.Y.detached=function(){Qj(this.JSC$15953_storedAdSlotMetadata,this.JSC$15953_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&yF(KL(),this.JSC$15953_storedAdSlotMetadata,this.JSC$15953_storedAdLayoutMetadata)};
_.Y.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.Y.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15953_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15953_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15953_storedAdLayoutMetadata!==void 0&&this.JSC$15953_storedAdSlotMetadata!==void 0&&yF(KL(),this.JSC$15953_storedAdSlotMetadata,this.JSC$15953_storedAdLayoutMetadata),$PZ(KL(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15953_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15953_storedAdSlotMetadata=this.adSlotMetadata)};
_.aE.Object.defineProperties(cO.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.adLayoutMetadata}}});
cO.prototype.onAdMetadataChanged=cO.prototype.onAdMetadataChanged;cO.prototype.onTypographyBumpChanged=cO.prototype.onTypographyBumpChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],cO.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],cO.prototype,"rendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],cO.prototype,"ytComponentBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],cO.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],cO.prototype,"noBottomMargin",void 0);_.N([_.e(),_.P("design:type",Object)],cO.prototype,"overlayDensity",void 0);_.N([_.e(),_.P("design:type",Object)],cO.prototype,"extractOverlay",void 0);_.N([_.e(),_.P("design:type",Object)],cO.prototype,"extractActionBar",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],cO.prototype,"typographyBump",void 0);
_.N([_.Z("data.adLayoutMetadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],cO.prototype,"adLayoutMetadata",null);_.N([_.e(),_.P("design:type",Object)],cO.prototype,"adSlotMetadata",void 0);_.N([_.Nl("ytd-video-display-full-buttoned-and-button-group-renderer"),_.P("design:type",HTMLElement)],cO.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.N([_.GI("typographyBump"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cO.prototype,"onTypographyBumpChanged",null);_.N([_.GI("adLayoutMetadata","adSlotMetadata"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cO.prototype,"onAdMetadataChanged",null);_.N([_.Ul({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],cO);
_.G(cO,"ytd-in-feed-ad-layout-renderer",function(){if(yEm!==void 0)return yEm;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return yEm=t},
{mode:_.hX("kevlar_poly_si_batch_j028")?1:2});var Bb4;var wGT;_.k2(_.PM,"ad-badge-view-model",{props:{data:_.uu,hasDot:_.uu,customCommandResolver:_.Cy,adRenderingContextType:_.Cy,usedInMasthead:_.Cy}});_.k2(_.nk,"ad-button-view-model",{props:{data:_.uu,customCommandResolver:_.Cy,className:_.Cy,delayedClassName:_.Cy,animationEntityKey:_.Cy,isCompactWidth:_.Cy,isContentWidth:_.Cy}});var tu=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return t};
_.u(tu,_.z);_.Y=tu.prototype;_.Y.computeHasLiveDescription=function(t){return!(t==null||!t.liveDescription)};
_.Y.computeHasByline=function(t){return!(t==null||!t.byline)};
_.Y.computeUsesAdButtonViewModel=function(t){return!!_.k(t==null?void 0:t.cta,nEr)};
_.Y.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"}}}}}};
_.Y.onYtToggleButton=function(t){var E,p=(E=this.data)==null?void 0:E.videoReminderEntityKey;p&&this.ytdReduxBehavior.dispatch(_.P9("upcomingEventReminderStateEntity",p,{key:p,state:t.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.Y.attached=function(){this.updateChannelBanner()};
_.Y.dataChanged=function(){this.updateChannelBanner()};
_.Y.videoReminderStateChanged=function(){var t;this.videoReminderState&&_.k((t=this.data)==null?void 0:t.cta,_.Vs)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.Y.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var t=_.d4(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);t&&(t.startsWith("//")&&(t="https:"+t),this.hostElement.classList.add("channel-banner"),_.eU(this.hostElement,{"--ytvmh-channel-banner":"url("+t+")"}))}else _.r("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.Y.onPlayerReady=function(){this.onIronResize()};
_.Y.maybeFlushDebouncer=function(){_.r("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(t){var E;t=(E=t.getElementsByTagName("yt-attributed-string"))==null?void 0:E[0];jN_(t==null?void 0:t.polymerController)})};
_.Y.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var t=_.ZN(this.hostElement).querySelector("#live-description"),E;t&&((E=this.data)==null?0:E.shortLiveDescription)&&t.clientWidth<t.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
tu.prototype.onIronResize=tu.prototype.onIronResize;tu.prototype.videoReminderStateChanged=tu.prototype.videoReminderStateChanged;tu.prototype.dataChanged=tu.prototype.dataChanged;tu.prototype.onYtToggleButton=tu.prototype.onYtToggleButton;_.N([_.g(_.Ev),_.P("design:type",Object)],tu.prototype,"ironResizableBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],tu.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],tu.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],tu.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],tu.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],tu.prototype,"data",void 0);_.N([_.e({selectorArgs:["data.videoReminderEntityKey"],selector:lEt}),_.P("design:type",Object)],tu.prototype,"videoReminderState",void 0);
_.N([_.e({reflectToAttribute:!0,value:_.r("web_modern_buttons")}),_.P("design:type",Boolean)],tu.prototype,"rounded",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.P("design:type",Boolean)],tu.prototype,"hasLiveDescription",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.P("design:type",Boolean)],tu.prototype,"hasByline",void 0);
_.N([_.e({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.P("design:type",String)],tu.prototype,"adRenderingContextType",void 0);_.N([_.e({value:!0}),_.P("design:type",Boolean)],tu.prototype,"isMasthead",void 0);_.N([_.e({computed:"computeUsesAdButtonViewModel(data)"}),_.P("design:type",Boolean)],tu.prototype,"usesAdButtonViewModel",void 0);
_.N([_.e({reflectToAttribute:!0,value:_.r("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.P("design:type",Boolean)],tu.prototype,"resizableAdBannerSafariFix",void 0);_.N([_.DN("yt-formatted-string"),_.P("design:type",Array)],tu.prototype,"formattedStrings",void 0);_.N([_.Nl("#cta-button"),_.P("design:type",HTMLElement)],tu.prototype,"ctaButton",void 0);
_.N([_.lc("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],tu.prototype,"onYtToggleButton",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tu.prototype,"dataChanged",null);_.N([_.GI("videoReminderState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tu.prototype,"videoReminderStateChanged",null);
_.N([_.lc("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tu.prototype,"onIronResize",null);_.N([_.Ul({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],tu);
_.G(tu,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(wGT!==void 0)return wGT;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return wGT=t},{mode:1});var RKr;var EL=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};t.isLocked=!1;return t};
_.u(EL,_.z);_.Y=EL.prototype;_.Y.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.Y.onExpandedChanged=function(){this.expanded&&_.uO(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.Y.onMouseOver=function(){this.maybeExpand()};
_.Y.onTap=function(){this.maybeExpand()};
_.Y.onExpandableTileExpanding=function(t){t!==this&&(this.expanded=!1)};
_.Y.onExpandableTileLockAndCollapse=function(t){this.isLocked=!0;t!==this&&(this.expanded=!1)};
_.Y.onExpandableTileUnlock=function(){this.isLocked=!1};
EL.prototype.onTap=EL.prototype.onTap;EL.prototype.onMouseOver=EL.prototype.onMouseOver;EL.prototype.onExpandedChanged=EL.prototype.onExpandedChanged;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],EL.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],EL.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],EL.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],EL.prototype,"expanded",void 0);_.N([_.P3("expanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],EL.prototype,"onExpandedChanged",null);_.N([_.lc("mouseover"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],EL.prototype,"onMouseOver",null);_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],EL.prototype,"onTap",null);
_.N([_.Ul({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],EL);
_.G(EL,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(RKr!==void 0)return RKr;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return RKr=t},{mode:1});var Vqo;var pP=function(){var t=_.z.apply(this,arguments)||this;t.buttonOverrides={style:"overlay"};t.useYtdPlayer=_.r("use_ytd_player_for_desktop_masthead");t.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};t.playbackFinished=!1;t.JSC$15967_playerManager=null;t.JSC$15967_mastheadCounter=new XkX;return t};
_.u(pP,_.z);_.Y=pP.prototype;_.Y.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"}}}};
_.Y.created=function(){this.JSC$15967_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15967_playerManager=new E0)};
_.Y.ready=function(){var t=this;this.JSC$15967_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var E=_.ZN(this.hostElement).querySelector("#player");this.useYtdPlayer?E.style.display="none":(this.ytdPlayer.style.display="none",p20(this.JSC$15967_playerManager,E,function(){t.onPlaybackEnded()}),_.ZN(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var p;
((p=t.data)==null?0:p.navigationEndpoint)&&_.kT(t.hostElement,"yt-navigate",{endpoint:t.data.navigationEndpoint})}))};
_.Y.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15967_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.Y.attached=function(){var t=this;_.iR(function(){t.maybePlayVideo()})};
_.Y.maybePlayVideo=function(){var t=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$15967_playerManager.playVideo(),this.getPlayerPromise().then(function(){t.JSC$15967_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.Y.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15967_playerManager.stopVideo()};
_.Y.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var t,E={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((t=this.data.playbackStartMs)!=null?t:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(E);this.setupYtdPlayer()}else xpr(this.JSC$15967_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(Upp(this.JSC$15967_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.Y.getPlayerPromise=function(){return this.JSC$15967_playerManager.getPlayerPromise()};
_.Y.onYtToggleButton=function(t){this.useYtdPlayer?this.toggleMute(t.detail.toggled):t.detail.toggled?this.JSC$15967_playerManager.mute():this.JSC$15967_playerManager.unMute()};
_.Y.onYtNavigate=function(t){var E=x9_(t.detail.endpoint),p=AuJ(this.data.clickthroughReportingData);E&&p&&(t.detail.endpoint.watchEndpoint?t.detail.tempData=p:_.RK(E,p,30))};
_.Y.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.Y.onExpandedChanged=function(){this.expanded?(_.uO(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.Y.onMouseOver=function(){this.maybeExpand()};
_.Y.onTap=function(){this.maybeExpand()};
_.Y.onExpandableTileExpanding=function(t){t!==this&&(this.stopVideo(),this.expanded=!1)};
_.Y.onExpandableTileLockAndCollapse=function(t){t!==this&&(this.isLocked=!0,this.expanded=!1)};
_.Y.onExpandableTileUnlock=function(){this.isLocked=!1};
_.Y.lockAndCollapseExpandableTiles=function(){_.du(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.Y.unlockExpandableTiles=function(){_.du(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.Y.setupYtdPlayer=function(){var t=this,E;return _.q(function(p){if(p.nextAddress==1)return p.yield(t.ytdPlayer.getPlayerPromise(),2);E=p.yieldResult;E.addEventListener("onStateChange",function(U){t.onPlayerStateChange(U)});
E.addEventListener("onCueRangeExit",function(U){t.onCueRangeExit(U)});
_.Do(p)})};
_.Y.onPlayerStateChange=function(t){if(t===1&&(t=this.ytdPlayer.getPlayer())){var E=t.getCurrentTime(),p,U,x=E+((U=(p=this.data)==null?void 0:p.playbackDurationMs)!=null?U:0)/1E3;t.addCueRange("playback",E,x);this.JSC$15967_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.Y.onCueRangeExit=function(t){t==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.Y.toggleMute=function(t){var E=this,p;return _.q(function(U){if(U.nextAddress==1)return U.yield(E.ytdPlayer.getPlayerPromise(),2);p=U.yieldResult;t?p.mute():p.unMute();_.Do(U)})};
pP.prototype.onTap=pP.prototype.onTap;pP.prototype.onMouseOver=pP.prototype.onMouseOver;pP.prototype.onExpandedChanged=pP.prototype.onExpandedChanged;pP.prototype.onYtNavigate=pP.prototype.onYtNavigate;pP.prototype.onYtToggleButton=pP.prototype.onYtToggleButton;pP.prototype.dataChanged=pP.prototype.dataChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],pP.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],pP.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],pP.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],pP.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],pP.prototype,"expanded",void 0);_.N([_.e(),_.P("design:type",Object)],pP.prototype,"buttonOverrides",void 0);
_.N([_.e(),_.P("design:type",Object)],pP.prototype,"useYtdPlayer",void 0);_.N([_.Nl("#ytd-player"),_.P("design:type",Object)],pP.prototype,"ytdPlayer",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pP.prototype,"dataChanged",null);_.N([_.lc("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],pP.prototype,"onYtToggleButton",null);
_.N([_.lc("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],pP.prototype,"onYtNavigate",null);_.N([_.P3("expanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pP.prototype,"onExpandedChanged",null);_.N([_.lc("mouseover"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pP.prototype,"onMouseOver",null);
_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pP.prototype,"onTap",null);_.N([_.Ul({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],pP);
_.G(pP,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(Vqo!==void 0)return Vqo;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Vqo=t},{mode:1});var QPr;var UL=function(){return _.z.apply(this,arguments)||this};
_.u(UL,_.z);UL.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
UL.prototype.onShow=function(){var t=_.ZN(this.hostElement).querySelector("#live-description"),E;t&&((E=this.data)==null?0:E.shortLiveDescription)&&t.clientWidth<t.scrollWidth&&this.hostElement.classList.add("short-live-description")};
UL.prototype.onYtToggleButton=function(t){var E,p=(E=this.data)==null?void 0:E.videoReminderEntityKey;p&&this.ytdReduxBehavior.dispatch(_.P9("upcomingEventReminderStateEntity",p,{key:p,state:t.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
UL.prototype.videoReminderStateChanged=function(){var t;this.videoReminderState&&_.k((t=this.data)==null?void 0:t.cta,_.Vs)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
UL.prototype.videoReminderStateChanged=UL.prototype.videoReminderStateChanged;UL.prototype.onYtToggleButton=UL.prototype.onYtToggleButton;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],UL.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],UL.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],UL.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],UL.prototype,"data",void 0);
_.N([_.e({selectorArgs:["data.videoReminderEntityKey"],selector:lEt}),_.P("design:type",Object)],UL.prototype,"videoReminderState",void 0);_.N([_.lc("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],UL.prototype,"onYtToggleButton",null);_.N([_.GI("videoReminderState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],UL.prototype,"videoReminderStateChanged",null);
_.N([_.Ul({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],UL);
_.G(UL,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(QPr!==void 0)return QPr;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return QPr=t},{mode:_.hX("kevlar_poly_si_batch_j065")?1:2});var CEo;var xg=function(){var t=_.z.apply(this,arguments)||this;t.useYtdPlayer=_.r("use_ytd_player_for_desktop_masthead");t.buttonOverrides={style:"overlay"};t.JSC$15975_playerManager=null;t.JSC$15975_mastheadCounter=new XkX;t.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return t};
_.u(xg,_.z);_.Y=xg.prototype;_.Y.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"}}}};
_.Y.created=function(){this.JSC$15975_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15975_playerManager=new E0)};
_.Y.ready=function(){var t=this;this.JSC$15975_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var E;(E=this.embeddedPlayer)==null||E.remove()}else{var p;(p=this.ytdPlayer)==null||p.remove();p20(this.JSC$15975_playerManager,this.embeddedPlayer,function(){t.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){t.data&&t.data.navigationEndpoint&&_.kT(t.hostElement,"yt-navigate",{endpoint:t.data.navigationEndpoint})})}};
_.Y.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15975_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.Y.dataChanged=function(){var t=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var E=!this.data.disableAutoPlayback,p,U={autoplay:E,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((p=this.data.playbackStartMs)!=null?p:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(E?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(U);this.setupYtdPlayer()}else xpr(this.JSC$15975_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(Upp(this.JSC$15975_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15975_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.du(t.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");t.JSC$15975_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.Y.getPlayerPromise=function(){return this.JSC$15975_playerManager.getPlayerPromise()};
_.Y.onYtToggleButton=function(t){this.useYtdPlayer?this.toggleMute(t.detail.toggled):t.detail.toggled?this.JSC$15975_playerManager.mute():this.JSC$15975_playerManager.unMute()};
_.Y.onYtNavigate=function(t){var E=x9_(t.detail.endpoint),p=AuJ(this.data.clickthroughReportingData);E&&p&&(t.detail.endpoint.watchEndpoint?t.detail.tempData=p:_.RK(E,p,30))};
_.Y.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15975_playerManager.stopVideo()};
_.Y.setupYtdPlayer=function(){var t=this,E;return _.q(function(p){if(p.nextAddress==1)return p.yield(t.ytdPlayer.getPlayerPromise(),2);E=p.yieldResult;E.addEventListener("onStateChange",function(U){t.onPlayerStateChange(U)});
E.addEventListener("onCueRangeExit",function(U){t.onCueRangeExit(U)});
_.Do(p)})};
_.Y.onPlayerStateChange=function(t){if(t===1&&(t=this.ytdPlayer.getPlayer())){var E=t.getCurrentTime(),p,U,x=E+((U=(p=this.data)==null?void 0:p.playbackDurationMs)!=null?U:0)/1E3;t.addCueRange("playback",E,x);_.du(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15975_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.Y.onCueRangeExit=function(t){t==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.Y.toggleMute=function(t){var E=this,p;return _.q(function(U){if(U.nextAddress==1)return U.yield(E.ytdPlayer.getPlayerPromise(),2);p=U.yieldResult;t?p.mute():p.unMute();_.Do(U)})};
_.aE.Object.defineProperties(xg.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var t,E;if(!((t=this.data)==null?0:(E=t.accessibilityData)==null?0:E.label))return"Ad primary link";var p,U;return _.zF("AD_TITLE",{title:(p=this.data)==null?void 0:(U=p.accessibilityData)==null?void 0:U.label})}}});
xg.prototype.onYtMastheadHidden=xg.prototype.onYtMastheadHidden;xg.prototype.onYtNavigate=xg.prototype.onYtNavigate;xg.prototype.onYtToggleButton=xg.prototype.onYtToggleButton;xg.prototype.dataChanged=xg.prototype.dataChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],xg.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],xg.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],xg.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],xg.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],xg.prototype,"useYtdPlayer",void 0);_.N([_.Nl("ytd-toggle-button-renderer"),_.P("design:type",Object)],xg.prototype,"muteButton",void 0);_.N([_.e(),_.P("design:type",Object)],xg.prototype,"buttonOverrides",void 0);
_.N([_.Z("data.accessibilityData.label"),_.P("design:type",String),_.P("design:paramtypes",[])],xg.prototype,"titleAriaLabel",null);_.N([_.Nl("#replay-button"),_.P("design:type",Object)],xg.prototype,"replayButton",void 0);_.N([_.Nl("#player-container"),_.P("design:type",Object)],xg.prototype,"playerContainer",void 0);_.N([_.Nl("#player"),_.P("design:type",Object)],xg.prototype,"embeddedPlayer",void 0);_.N([_.Nl("#ytd-player"),_.P("design:type",Object)],xg.prototype,"ytdPlayer",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xg.prototype,"dataChanged",null);_.N([_.lc("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],xg.prototype,"onYtToggleButton",null);_.N([_.lc("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],xg.prototype,"onYtNavigate",null);
_.N([_.lc("yt-masthead-hidden"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xg.prototype,"onYtMastheadHidden",null);_.N([_.Ul({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],xg);
_.G(xg,"ytd-video-masthead-ad-primary-video-renderer",function(){if(CEo!==void 0)return CEo;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return CEo=t},{mode:2});var jPs;var Au=function(){var t=_.z.apply(this,arguments)||this;t.collapsed=!1;t.impressionResolver=_.fd();t.JSC$15979_activeViewMeasurementDataResolver=_.fd();t.actionMap={"yt-mute-ad-action":"handleMuteAd"};return t};
_.u(Au,_.z);_.Y=Au.prototype;_.Y.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"}}}};
_.Y.created=function(){this.activeView=new NT(this.hostElement)};
_.Y.ready=function(){var t=this;_.ZN(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){t.expandAd()});
this.hostElement.addEventListener("yt-action",function(E){if(E.detail.actionName==="yt-service-request"){var p=E.detail.args[1];p.videoMastheadAdMuteCommand&&(t.collapseAd(p.videoMastheadAdMuteCommand.encryptedMastheadId),E.stopPropagation())}})};
_.Y.attached=function(){var t=this;_.iR(function(){t.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(E){if(!t.collapsed){E=_.M(E);for(var p=E.next();!p.done;p=E.next())p=p.value,rx(p.baseUrl,p.attributionSrcMode);t.data.impressionCommand=void 0}});
this.JSC$15979_activeViewMeasurementDataResolver.promise.then(function(E){DH(t.activeView,E)});
_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&s9(t.activeView)})};
_.Y.dataChanged=function(){var t;((t=this.data.impressionCommand)==null?0:t.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var E;((E=this.data)==null?0:E.activeView)&&this.JSC$15979_activeViewMeasurementDataResolver.resolve(this.data.activeView);(t=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(t.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.Y.computeWidescreen=function(t){var E;return!!(t&&((E=_.k(t,h_G))==null?0:E.isWidescreen))};
_.Y.computeExpandable=function(t){return!!(t&&t.length>0)};
_.Y.onIronResize=function(){if(this.expandable){var t=_.ZN(this.hostElement).querySelector("#expandable-tile-container :first-child");t&&!t.expanded&&(t.expanded=!0)}};
_.Y.handleMuteAd=function(){this.collapseAd(null)};
_.Y.restoreCollapsedState=function(t){this.collapsed=_.nF().get("HIDDEN_MASTHEAD_ID")===t};
_.Y.collapseAd=function(t){if(t){var E=_.nF();E.set("HIDDEN_MASTHEAD_ID",t);E.save()}(t=_.ZN(this.hostElement).querySelector("#video"))&&_.kT(t,"yt-masthead-hidden");this.collapsed=!0};
_.Y.expandAd=function(){var t=_.nF();t.set("HIDDEN_MASTHEAD_ID",!1);t.save();location.reload()};
_.Y.detached=function(){_.r("stop_av_measurement_on_detach")&&s9(this.activeView)};
Au.prototype.onIronResize=Au.prototype.onIronResize;Au.prototype.dataChanged=Au.prototype.dataChanged;_.N([_.g(_.Ev),_.P("design:type",Object)],Au.prototype,"ironResizableBehavior",void 0);_.N([_.g(_.Qo),_.P("design:type",Object)],Au.prototype,"ytdGridStateAwareBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Au.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Au.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Au.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Au.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.P("design:type",Boolean)],Au.prototype,"widescreen",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.P("design:type",Boolean)],Au.prototype,"expandable",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Au.prototype,"collapsed",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Au.prototype,"dataChanged",null);_.N([_.lc("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Au.prototype,"onIronResize",null);_.N([_.Ul({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],Au);
_.G(Au,"ytd-video-masthead-ad-v3-renderer",function(){if(jPs!==void 0)return jPs;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return jPs=t},{mode:2});var io=function(){return _.z.apply(this,arguments)||this};
_.u(io,_.z);_.Y=io.prototype;_.Y.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.Y.ready=function(){var t=this;lLO(function(){t.isAttached&&Qj(t.JSC$15984_storedAdSlotMetadata,t.JSC$15984_storedAdLayoutMetadata,t.adSlotMetadata,t.adLayoutMetadata)&&yF(KL(),t.JSC$15984_storedAdSlotMetadata,t.JSC$15984_storedAdLayoutMetadata)})};
_.Y.attached=function(){Qj(this.JSC$15984_storedAdSlotMetadata,this.JSC$15984_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&$PZ(KL(),this.JSC$15984_storedAdSlotMetadata,this.JSC$15984_storedAdLayoutMetadata)};
_.Y.detached=function(){Qj(this.JSC$15984_storedAdSlotMetadata,this.JSC$15984_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&yF(KL(),this.JSC$15984_storedAdSlotMetadata,this.JSC$15984_storedAdLayoutMetadata)};
_.Y.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15984_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15984_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15984_storedAdLayoutMetadata!==void 0&&this.JSC$15984_storedAdSlotMetadata!==void 0&&yF(KL(),this.JSC$15984_storedAdSlotMetadata,this.JSC$15984_storedAdLayoutMetadata),$PZ(KL(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15984_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15984_storedAdSlotMetadata=this.adSlotMetadata)};
_.aE.Object.defineProperties(io.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.adLayoutMetadata}}});
io.prototype.onAdMetadataChanged=io.prototype.onAdMetadataChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],io.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],io.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],io.prototype,"data",void 0);_.N([_.Z("data.adLayoutMetadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],io.prototype,"adLayoutMetadata",null);
_.N([_.e(),_.P("design:type",Object)],io.prototype,"adSlotMetadata",void 0);_.N([_.GI("adLayoutMetadata","adSlotMetadata"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],io.prototype,"onAdMetadataChanged",null);_.N([_.Ul({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],io);
_.G(io,"ytd-page-top-ad-layout-renderer",function(){if(Bb4!==void 0)return Bb4;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Bb4=
t},{mode:_.hX("kevlar_poly_si_batch_j070")?1:2});var riX;var q9=function(){var t=_.z.apply(this,arguments)||this;t.noBottomMargin=!1;t.overlayDensity=0;t.typographyBump=!1;t.extractOverlay=!1;t.extractActionBar=!1;return t};
_.u(q9,_.z);_.Y=q9.prototype;
_.Y.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]]"}}}}}};
_.Y.ready=function(){var t=this;lLO(function(){t.isAttached&&t.adSlotMetadata&&Wsr(KL(),t.adSlotMetadata)})};
_.Y.attached=function(){if(this.adSlotMetadata){var t;if(this.adSlotMetadata===((t=this.data)==null?void 0:t.adSlotMetadata))oP0(KL(),this.adSlotMetadata);else{var E;_.qW(Error("Ph`"+this.adSlotMetadata+"`"+((E=this.data)==null?void 0:E.adSlotMetadata)))}}};
_.Y.detached=function(){this.adSlotMetadata&&Wsr(KL(),this.adSlotMetadata)};
_.Y.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.Y.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&Wsr(KL(),this.adSlotMetadata),oP0(KL(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.aE.Object.defineProperties(q9.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var t,E,p=_.k((t=this.data)==null?void 0:(E=t.fulfillmentContent)==null?void 0:E.fulfilledLayout,_.e_r),U;return(t=(U=_.k(p==null?void 0:p.renderingContent,aJr))==null?void 0:U.layout)?t.toLowerCase().replace(/_/g,"-"):""}}});
q9.prototype.onAdSlotMetadataChanged=q9.prototype.onAdSlotMetadataChanged;q9.prototype.onTypographyBumpChanged=q9.prototype.onTypographyBumpChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],q9.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],q9.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],q9.prototype,"rendererBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],q9.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],q9.prototype,"noBottomMargin",void 0);_.N([_.e(),_.P("design:type",Object)],q9.prototype,"overlayDensity",void 0);_.N([_.e(),_.P("design:type",Object)],q9.prototype,"typographyBump",void 0);_.N([_.e(),_.P("design:type",Object)],q9.prototype,"extractOverlay",void 0);_.N([_.e(),_.P("design:type",Object)],q9.prototype,"extractActionBar",void 0);
_.N([_.Nl("ytd-in-feed-ad-layout-renderer"),_.P("design:type",HTMLElement)],q9.prototype,"inFeedAdLayoutRenderer",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",String),_.P("design:paramtypes",[])],q9.prototype,"layout",null);_.N([_.GI("typographyBump"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],q9.prototype,"onTypographyBumpChanged",null);
_.N([_.GI("data.adSlotMetadata"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],q9.prototype,"onAdSlotMetadataChanged",null);_.N([_.Ul({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],q9);
_.G(q9,"ytd-ad-slot-renderer",function(){if(riX!==void 0)return riX;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return riX=t},{mode:_.hX("kevlar_poly_si_batch_j077")?
1:2});var kB4;var HB=function(){return _.z.apply(this,arguments)||this};
_.u(HB,_.z);_.Y=HB.prototype;_.Y.created=function(){this.activeView=new NT(this.hostElement)};
_.Y.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"}}}};
_.Y.maybeComputeHref=function(){return null};
_.Y.onTap=function(){};
_.Y.onThumbnailContainerClick=function(t){this.onClick(t)};
_.Y.onClick=function(t){var E,p=(E=this.data)==null?void 0:E.navigationEndpoint;p&&_.k(p,_.HD)&&(this.ytSparklesClickLocationBehavior.handleClick(p,t,!1),t.stopPropagation())};
_.Y.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var t=_.M(this.data.impressionUrls),E=t.next();!E.done;E=t.next())E=E.value,o8Y(E,$dL(E));this.data.activeView&&DH(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",HB.JSC$15992_DEFAULT_CLICK_LOCATION_BEHAVIOR,HB.JSC$15992_CLICK_LOCATION_ID_MAP);this.thumbnail&&(t=this.thumbnail.getElementsByTagName("a"),t.length>0&&(t=t.namedItem("thumbnail"))&&t.removeAttribute("href"))}};
_.Y.attached=function(){var t=this;_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&s9(t.activeView)})};
_.Y.detached=function(){_.r("stop_av_measurement_on_detach")&&s9(this.activeView)};
_.aE.Object.defineProperties(HB.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
HB.prototype.dataChanged=HB.prototype.dataChanged;HB.prototype.onTap=HB.prototype.onTap;HB.JSC$15992_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
HB.JSC$15992_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"}];_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],HB.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],HB.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],HB.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],HB.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.ep.YtSparklesClickLocationBehavior),_.P("design:type",Object)],HB.prototype,"ytSparklesClickLocationBehavior",void 0);
_.N([_.e({selector:_.pd}),_.P("design:type",Object)],HB.prototype,"isGridViewEnabled",void 0);_.N([_.Z("isGridViewEnabled"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],HB.prototype,"watchFeedBigThumbs",null);_.N([_.Z("isGridViewEnabled"),_.e({reflectToAttribute:!0}),_.P("design:type",String),_.P("design:paramtypes",[])],HB.prototype,"thumbnailWidth",null);_.N([_.e(),_.P("design:type",Object)],HB.prototype,"data",void 0);
_.N([_.Nl("ytd-thumbnail"),_.P("design:type",HTMLElement)],HB.prototype,"thumbnail",void 0);_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],HB.prototype,"onTap",null);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],HB.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],HB);
_.G(HB,"ytd-compact-promoted-video-renderer",function(){if(kB4!==void 0)return kB4;var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return kB4=t},{mode:1});var dZT;_.vs("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var fP=function(){return _.z.apply(this,arguments)||this};
_.u(fP,_.z);fP.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],fP.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],fP.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],fP.prototype,"data",void 0);_.N([_.Ul({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],fP);
_.G(fP,"ytd-search-pyv-renderer",function(){if(dZT!==void 0)return dZT;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return dZT=t},{mode:1});var uXX;_.vs("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var BB=function(){var t=_.z.apply(this,arguments)||this;t.roundedContainer=!0;t.JSC$16000_handleOpenPostCommentDialogActionAfterStamp=!1;t.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return t};
_.u(BB,_.z);_.Y=BB.prototype;
_.Y.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}}};
_.Y.onStampFinished=function(){this.JSC$16000_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.Y.handleSignalActionOpenPostCommentDialogAction=function(){var t=_.ZN(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");t?t.openDialog():this.JSC$16000_handleOpenPostCommentDialogActionAfterStamp=!0};
_.Y.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.Y.computeHideBorder=function(){return this.isInEngagementPanel};
_.Y.computeIsCompact=function(){return this.isInEngagementPanel};
_.Y.computeUsesCompactLockup=function(t){return t==="BACKSTAGE_SURFACE_TYPE_HOME"||t==="BACKSTAGE_SURFACE_TYPE_SEARCH"||t==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||t==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||t==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||t==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.Y.computeUsesFullLockup=function(){var t,E=(t=this.data)==null?void 0:t.post,p;t=(p=_.k(E,WCT))==null?void 0:p.surface;var U;p=(U=_.k(E,vE4))==null?void 0:U.originalPost;var x;if(U=t||((x=_.k(p,WCT))==null?void 0:x.surface))return!this.computeUsesCompactLockup(U)&&this.useUpdatedRepostUi;var A;return((A=_.k(E,vE4))==null?void 0:A.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.aE.Object.defineProperties(BB.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var t,E;return((E=_.k((t=this.data)==null?void 0:t.post,WCT))==null?void 0:E.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.useUpdatedRepostUi}}});
BB.prototype.onYtCommentModerationPanelEmpty=BB.prototype.onYtCommentModerationPanelEmpty;BB.prototype.onStampFinished=BB.prototype.onStampFinished;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],BB.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],BB.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],BB.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],BB.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],BB.prototype,"roundedContainer",void 0);_.N([_.e({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.P("design:type",Boolean)],BB.prototype,"hideBorder",void 0);_.N([_.e({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.P("design:type",Boolean)],BB.prototype,"isCompact",void 0);
_.N([_.e({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.P("design:type",Boolean)],BB.prototype,"usesFullLockup",void 0);_.N([_.lc("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],BB.prototype,"onStampFinished",null);
_.N([_.lc("ytd-comment-moderation-panel-empty"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],BB.prototype,"onYtCommentModerationPanelEmpty",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],BB.prototype,"isInEngagementPanel",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],BB.prototype,"useUpdatedRepostUi",null);
_.N([_.Ul({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],BB);
_.G(BB,"ytd-backstage-post-thread-renderer",function(){if(uXX!==void 0)return uXX;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return uXX=t},{mode:1});var Jip;var wP=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.u(wP,_.z);wP.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
wP.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var t=this.data.thumbnail.thumbnails;this.isDarkTheme&&(t=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(t=_.d4(t,24,void 0,"height"))?t:void 0}};
wP.prototype.onDarkModeToggledAction=function(t){this.isDarkTheme=t};
wP.prototype.computeHasText=function(){var t;return!((t=this.data)==null||!t.text)};
_.aE.Object.defineProperties(wP.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.S8(this.bannerImageUrl))+'");'}}});
wP.prototype.computeHasText=wP.prototype.computeHasText;wP.prototype.computeBannerImageUrl=wP.prototype.computeBannerImageUrl;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],wP.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],wP.prototype,"actionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],wP.prototype,"ytRendererBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],wP.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Boolean)],wP.prototype,"isDarkTheme",void 0);_.N([_.e(),_.P("design:type",String)],wP.prototype,"bannerImageUrl",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.P("design:type",Boolean)],wP.prototype,"hasText",void 0);_.N([_.GI("data","isDarkTheme"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wP.prototype,"computeBannerImageUrl",null);
_.N([_.GI("data.text"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wP.prototype,"computeHasText",null);_.N([_.Z("bannerImageUrl"),_.P("design:type",Object),_.P("design:paramtypes",[])],wP.prototype,"bannerStyle",null);_.N([_.Ul({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],wP);
_.G(wP,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(Jip!==void 0)return Jip;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Jip=t},{mode:1});var Ihr;var Rd=function(){return _.z.apply(this,arguments)||this};
_.u(Rd,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Rd.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Rd.prototype,"data",void 0);_.N([_.Ul({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],Rd);
_.G(Rd,"ytd-backstage-zero-state-renderer",function(){if(Ihr!==void 0)return Ihr;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Ihr=t},{mode:1});var gvr;var Vr=function(){return _.z.apply(this,arguments)||this};
_.u(Vr,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Vr.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Vr.prototype,"data",void 0);_.N([_.e({computed:"computeIcon_(data.icon)"}),_.P("design:type",String)],Vr.prototype,"icon",void 0);_.N([_.Ul({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],Vr);
_.G(Vr,"ytd-post-filter-zero-state-renderer",function(){if(gvr!==void 0)return gvr;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return gvr=t},{mode:1});var Zj4;var Oj3={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},Qr=function(){return _.z.apply(this,arguments)||this};
_.u(Qr,_.z);Qr.prototype.configureRendererStamper=function(){return Oj3};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Qr.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Qr.prototype,"rendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Qr.prototype,"data",void 0);_.N([_.e({computed:"computeIcon_(data.icon)"}),_.P("design:type",String)],Qr.prototype,"icon",void 0);_.N([_.Ul({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],Qr);
_.G(Qr,"ytd-post-scheduling-zero-state-renderer",function(){if(Zj4!==void 0)return Zj4;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Zj4=t},{mode:1});var XGW;var CP=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return t};
_.u(CP,_.z);CP.prototype.onTabsActivate=function(t){this.data&&this.data.tabs&&_.kT(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[t.detail.selected].navigationEndpoint})};
CP.prototype.shouldShowTotalCount=function(t){return t&&t.totalCount!==void 0};
CP.prototype.handleUpdatePostsTotalCountAction=function(t){var E=this.get(["data.tabs",1,"totalCount"]),p=this.get("updatePostsTotalCountAction.updateType",t);t=this.get("updatePostsTotalCountAction.number",t);E!==void 0&&p!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&t&&(p==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(E)+t):p==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(E)-t))};
_.aE.Object.defineProperties(CP.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var t=0,E=this.data.tabs.length;t<E;t++)if(this.data.tabs[t].selected)return t;return 0}}});
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],CP.prototype,"actionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],CP.prototype,"rendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],CP.prototype,"data",void 0);_.N([_.Z("data.tabs"),_.P("design:type",Number),_.P("design:paramtypes",[])],CP.prototype,"selected",null);_.N([_.Ul({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],CP);
_.G(CP,"ytd-post-stream-filter-renderer",function(){if(XGW!==void 0)return XGW;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return XGW=t},{mode:1});var hKZ;var jS=function(){return _.z.apply(this,arguments)||this};
_.u(jS,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],jS.prototype,"kevlarBehaviors",void 0);_.N([_.e(),_.P("design:type",Object)],jS.prototype,"data",void 0);_.N([_.Ul({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],jS);
_.G(jS,"ytd-channel-age-gate-renderer",function(){if(hKZ!==void 0)return hKZ;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return hKZ=t},{mode:1});var ahm;_.vs("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var rP=function(){var t=_.z.apply(this,arguments)||this;t.data=null;return t};
_.u(rP,_.z);rP.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.aE.Object.defineProperties(rP.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return((t=this.data)==null?0:(E=t.title)==null?0:(p=E.runs)==null?0:p.length)?147:160}}});
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],rP.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],rP.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],rP.prototype,"imageSizePx",null);_.N([_.Ul({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],rP);
_.G(rP,"ytd-channel-owner-empty-state-renderer",function(){if(ahm!==void 0)return ahm;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return ahm=t},{mode:1});var eKo;var FlG;var kg=function(){var t=_.z.apply(this,arguments)||this;t.boundSubmitSearch=function(){t.submitSearch()};
t.boundClearSearch=function(){t.clearSearch()};
return t};
_.u(kg,_.z);_.Y=kg.prototype;_.Y.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]]"}}}}}};
_.Y.toggleClearButton=function(){this.hideClearButton=CGX||!this.input.value};
_.Y.submitOnEnterKeyUp=function(t){t.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.Y.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.Y.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.Y.submit=function(){_.kT(this.hostElement,"search-query-changed",this.input.value)};
kg.prototype.toggleClearButton=kg.prototype.toggleClearButton;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],kg.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],kg.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],kg.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],kg.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],kg.prototype,"hideClearButton",void 0);_.N([_.e(),_.P("design:type",Object)],kg.prototype,"boundSubmitSearch",void 0);_.N([_.e(),_.P("design:type",Object)],kg.prototype,"boundClearSearch",void 0);_.N([_.Nl("#input"),_.P("design:type",Object)],kg.prototype,"input",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kg.prototype,"toggleClearButton",null);
_.N([_.Ul({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],kg);
_.G(kg,"ytd-channel-switcher-search-box-renderer",function(){if(FlG!==void 0)return FlG;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return FlG=t},{mode:1});var zKX;var dP=function(){var t=_.z.apply(this,arguments)||this;t.boundSubmit=function(){t.submit()};
return t};
_.u(dP,_.z);_.Y=dP.prototype;_.Y.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"}}}}};
_.Y.ready=function(){var t=this;this.form.addEventListener("submit",function(E){return t.onSubmit(E)})};
_.Y.onSubmit=function(t){t.preventDefault();return!1};
_.Y.toggleClearButton=function(){this.hideClearButton=CGX||!this.input.value};
_.Y.submitOnEnterKeyUp=function(t){t.keyCode===13&&this.submit()};
_.Y.submit=function(){var t=this.data.endpoint,E=(0,_.Kq.unsafeClone)(t);_.k(E,_.lC)?_.k(E,_.lC).query=this.input.value:_.k(E,_.G2)&&(_.k(E,_.G2).query=this.input.value);var p=_.k(E.commandMetadata,_.hZ);(p==null?0:p.url)?(p.url=_.Rz(p.url,"query",this.input.value),_.kT(this.hostElement,"yt-navigate",{endpoint:E})):_.k(E,JYX)?(_.k(E,JYX).channelSwitcherQuery=this.input.value,_.X3().resolve(_.ei).resolveCommand(E,{form:{element:this.hostElement}})):(t=Error("Qh`"+JSON.stringify(t)),_.bV(t))};
_.Y.getUrl=function(t){return this.get("commandMetadata.webCommandMetadata.url",t)};
dP.prototype.toggleClearButton=dP.prototype.toggleClearButton;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],dP.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],dP.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],dP.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],dP.prototype,"hideClearButton",void 0);
_.N([_.e(),_.P("design:type",Object)],dP.prototype,"boundSubmit",void 0);_.N([_.Nl("#form"),_.P("design:type",HTMLFormElement)],dP.prototype,"form",void 0);_.N([_.Nl("#input"),_.P("design:type",Object)],dP.prototype,"input",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dP.prototype,"toggleClearButton",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],dP);
_.G(dP,"ytd-search-box-renderer",function(){if(zKX!==void 0)return zKX;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return zKX=t},{mode:2});var uo=function(){var t=_.z.apply(this,arguments)||this;t.showSearchBox=!0;return t};
_.u(uo,_.z);uo.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],uo.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],uo.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],uo.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],uo.prototype,"showSearchBox",void 0);_.N([_.Ul({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],uo);
_.G(uo,"ytd-channel-switcher-header-renderer",function(){if(eKo!==void 0)return eKo;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return eKo=t},{mode:1});var lhZ;var GBX;var Ju=function(){var t=_.z.apply(this,arguments)||this;t.isDisplayed=!0;return t};
_.u(Ju,_.z);_.Y=Ju.prototype;_.Y.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y.dataChanged=function(){this.isDisplayed=!0};
_.Y.computeType=function(t){return t||"UNKNOWN"};
_.Y.onYtServiceRequestCompleted=function(t){t.stopPropagation();this.isDisplayed=!1};
_.Y.onClose=function(){this.isDisplayed=!1};
Ju.prototype.onYtServiceRequestCompleted=Ju.prototype.onYtServiceRequestCompleted;Ju.prototype.dataChanged=Ju.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ju.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Ju.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Ju.prototype,"data",void 0);
_.N([_.e({computed:"computeType(data.type)",reflectToAttribute:!0}),_.P("design:type",String)],Ju.prototype,"type",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Ju.prototype,"isDisplayed",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ju.prototype,"dataChanged",null);
_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Ju.prototype,"onYtServiceRequestCompleted",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],Ju);
_.G(Ju,"ytd-alert-with-button-renderer",function(){if(GBX!==void 0)return GBX;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return GBX=t},{mode:1});var Id=function(){var t=_.z.apply(this,arguments)||this;t.noResult=!1;t.enableAlertBanner=!1;t.dismissedAlertBanner=!1;t.hideCreateChannelButton=!1;t.boundDismissAlertBanner=function(){t.dismissAlertBanner()};
t.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return t};
_.u(Id,_.z);_.Y=Id.prototype;_.Y.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.Y.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.Y.updateChannelSwitcherAction=function(t){var E;t=(E=_.k(t,dUZ))==null?void 0:E.page;_.k(t,koZ)!==void 0&&(this.data=_.k(t,koZ))};
_.Y.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]]"}}}}}};
_.Y.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.Y.searchQueryChanged=function(t,E){if(this.data&&this.data.contents&&this.data.contents.length){t=[];var p=[];this.hideCreateChannelButton=this.noResult=!1;for(var U=document.querySelectorAll("ytd-account-item-renderer"),x=_.M(U),A=x.next();!A.done;A=x.next())A=A.value,p.push(A),A.style.display="block";this.resetRightBorder(p);if(E){this.hideCreateChannelButton=!0;for(p=1;p<this.data.contents.length;p++)if(A=this.data.contents[p],_.k(A,k4m)){var m=void 0,b=void 0;x=(m=_.k(A,k4m))==null?void 0:(b=
m.accountName)==null?void 0:b.simpleText;b=m=void 0;A=(m=_.k(A,k4m))==null?void 0:(b=m.channelHandle)==null?void 0:b.simpleText;(m=U[p-1])&&x&&_.H8(x,E)?t.push(m):_.r("enable_handle_search_on_channel_switcher")&&m&&A&&_.H8(A.toString(),E.toString())?t.push(m):m.style.display="none"}t.length===0&&(this.noResult=!0);this.resetRightBorder(t)}}};
_.Y.resetRightBorder=function(t){for(var E=0;E<t.length;E++)t[E].style.borderRight=!this.hideCreateChannelButton&&(E+2)%3===0||this.hideCreateChannelButton&&(E+1)%3===0?"none":"1px solid var(--yt-spec-outline)"};
_.Y.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.Y.setShowSearchBox=function(t){if(t&&t.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var E=0;E<t.contents.length;E++)_.k(t.contents[E],_.um)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.Y.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.aE.Object.defineProperties(Id.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null?0:t.contents)}}});
Id.prototype.onContinuationItemsUpdated=Id.prototype.onContinuationItemsUpdated;Id.prototype.searchQueryChanged=Id.prototype.searchQueryChanged;Id.prototype.onDataChanged=Id.prototype.onDataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Id.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Id.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Id.prototype,"actionHandlerBehavior",void 0);_.N([_.g(_.I6),_.P("design:type",Object)],Id.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Id.prototype,"data",void 0);_.N([_.Nl("ytd-channel-switcher-header-renderer"),_.P("design:type",Object)],Id.prototype,"channelSwitcherHeaderRenderer",void 0);_.N([_.e(),_.P("design:type",Object)],Id.prototype,"noResult",void 0);
_.N([_.e(),_.P("design:type",Object)],Id.prototype,"enableAlertBanner",void 0);_.N([_.e(),_.P("design:type",Object)],Id.prototype,"dismissedAlertBanner",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Id.prototype,"hideCreateChannelButton",void 0);_.N([_.Z("data.contents"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Id.prototype,"isLoading",null);_.N([_.e(),_.P("design:type",Object)],Id.prototype,"boundDismissAlertBanner",void 0);
_.N([_.e({computed:"computeButtonOverride()"}),_.P("design:type",Object)],Id.prototype,"buttonOverride",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Id.prototype,"onDataChanged",null);_.N([_.lc("search-query-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,String]),_.P("design:returntype")],Id.prototype,"searchQueryChanged",null);
_.N([_.lc("yt-next-continuation-data-updated"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Id.prototype,"onContinuationItemsUpdated",null);_.N([_.Ul({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Id);
_.G(Id,"ytd-channel-switcher-page-renderer",function(){if(lhZ!==void 0)return lhZ;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return lhZ=t},{mode:1});var nvm;var NbX;var gP=function(){var t=_.z.apply(this,arguments)||this;t.images=[];t.selectedImageIndex=0;return t};
_.u(gP,_.z);_.Y=gP.prototype;
_.Y.ready=function(){_.vu(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.vu(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.vu(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.vu(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,!1,this)};
_.Y.onThumbnailClick=function(t){if(t=t.event_.detail)this.selectedImageIndex=this.images.indexOf(t)};
_.Y.updateImageThumbnails=function(t){t=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:t.event_.detail});this.images.splice(this.selectedImageIndex,1,t);this.images=[].concat(_.KB(this.images))};
_.Y.cancelImageRepositions=function(){this.selectedImageIndex=0;_.kT(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.Y.saveImageRepositions=function(){this.selectedImageIndex=0;_.kT(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.aE.Object.defineProperties(gP.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var t=this;return(this.images||[]).map(function(E,p){return{image:E,selected:p===t.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],gP.prototype,"ytRendererstamperBehavior",void 0);_.N([_.Nl("ytd-backstage-image-preview-renderer"),_.P("design:type",Object)],gP.prototype,"imagePreviewContainer",void 0);_.N([_.Nl(".thumbnail-images-container"),_.P("design:type",HTMLElement)],gP.prototype,"thumbnailImagesContainer",void 0);_.N([_.e(),_.P("design:type",Array)],gP.prototype,"images",void 0);
_.N([_.e(),_.P("design:type",Object)],gP.prototype,"repositionInstructions",void 0);_.N([_.e(),_.P("design:type",Object)],gP.prototype,"selectedImageIndex",void 0);_.N([_.Z("images","selectedImageIndex"),_.P("design:type",Array),_.P("design:paramtypes",[])],gP.prototype,"thumbnailRendererDatas",null);_.N([_.Z("images","selectedImageIndex"),_.P("design:type",Object),_.P("design:paramtypes",[])],gP.prototype,"selectedImageData",null);
_.N([_.Ul({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],gP);
_.Ol()(gP,"ytd-backstage-multi-image-reposition-renderer",function(){if(NbX===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);NbX=t}t=NbX;return t},{allowedProps:["images",
"repositionInstructions"],mode:1});var Zz=function(t,E){_.UH.call(this);this.uploadUrl=t;this.channelId=E;this.imagesUploadData=[]};
_.u(Zz,_.UH);Zz.prototype.getAllUploadStatuses=function(){var t=this,E,p,U;return _.q(function(x){if(x.nextAddress==1)return x.yield(DZs(t),2);E=x.yieldResult;p=E.get("succeed");U=E.get("failed");return x.return(p.concat(U))})};
var Llm=function(t){var E,p;return _.q(function(U){if(U.nextAddress==1)return U.yield(DZs(t),2);E=U.yieldResult;p=E.get("failed");p.length>0&&sPm(t,p);return U.return(t.getAllUploadStatuses())})},DZs=function(t){var E,p,U,x,A,m,b;
return _.q(function(f){if(f.nextAddress==1)return E=new Map,f.yield(Promise.allSettled(t.imagesUploadData.map(function(B){return B.uploadPromise})),2);
p=f.yieldResult;U=[];x=_.M(p);for(A=x.next();!A.done;A=x.next())m=A.value,m.status==="fulfilled"&&U.push(m.value);b=t.imagesUploadData.map(function(B){return B.image}).filter(function(B){return U.every(function(R){return R.id!==B.id})});
E.set("succeed",U);E.set("failed",b);return f.return(E)})},sPm=function(t,E){E=_.M(E);
for(var p=E.next();!p.done;p=E.next()){var U=t;p=p.value;PEs(U,p.id)>=0&&U.cancel(p.id);var x=new Tbf(p),A=_.q4Z(U.uploadUrl,{"X-YouTube-ChannelId":U.channelId},p.imageBlob);x.transfer=A;x.uploadPromise=ovs(A,p);U.imagesUploadData.push(x);A.run()}};
Zz.prototype.cancel=function(t){var E=PEs(this,t);E!==-1&&((E=this.imagesUploadData[E].transfer)&&E.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(p){return p.image.id!==t}))};
var PEs=function(t,E){return t.imagesUploadData.findIndex(function(p){return p.image.id===E})},ovs=function(t,E){return new Promise(function(p,U){t.listen("l",function(){var x=t.getResponseText();
x?(x=JSON.parse(x).encryptedBlobId,E.encryptedBlobId=x,p(E)):U("upload failed")});
t.listen("n",function(){U("upload failed")})})},Tbf=function(t){this.image=t};var Jq8=function(t,E,p,U,x){this.id=t;this.imageBlob=E;this.localImageSrc=p;this.naturalWidth=U;this.naturalHeight=x;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 Wls=[".jpeg",".jpg",".png"],OL=function(){var t=_.z.apply(this,arguments)||this;t.showImagesPreview=!1;t.pollOptions=[];t.errorMessage="";t.optionPlaceholderText="";t.optionDefaultText="";t.JSC$16056_imageId=0;t.maxFileSizeMb=0;t.maxAspectRatio=0;t.invalidFileSizeError="";t.invalidAspectRatioError="";t.invalidFileTypeError="";t.imageSelector=new Nw(null,"single_file",Wls);return t};
_.u(OL,_.z);_.Y=OL.prototype;_.Y.ready=function(){_.vu(this.imageSelector,"j",this.onImageSelect,!1,this);_.vu(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.vu(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.Y.dataChanged=function(){var t,E,p=_.k((t=this.data)==null?void 0:(E=t.cellTemplate)==null?void 0:E.onEmptyCellTap,ASG);if(p&&p.uploadUrl&&p.channelId){var U;this.maxFileSizeMb=((U=p.imageValidationInfo)==null?void 0:U.maxFileSizeMb)||0;var x;this.maxAspectRatio=((x=p.imageValidationInfo)==null?void 0:x.allowedMaxAspectRatio)||0;var A;this.invalidFileSizeError=this.getSimpleString((A=this.data)==null?void 0:A.invalidFileSizeError);var m;this.invalidAspectRatioError=this.getSimpleString((m=this.data)==
null?void 0:m.invalidAspectRatioError);var b;this.invalidFileTypeError=this.getSimpleString((b=this.data)==null?void 0:b.invalidFileTypeError);this.uploadManager=new Zz(p.uploadUrl,p.channelId)}};
_.Y.onEditorInfoChange=function(){this.optionPlaceholderText=_.R4(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.R4(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.Y.observeAddImageError=function(){this.errorMessage!==""&&_.kT(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.Y.onPollOptionsChange=function(){for(var t=!1,E=[],p=0;p<this.pollOptions.length;p++){var U=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(p+1);this.pollOptions[p].placeholderText!==U?(t=!0,E.push(Object.assign({},this.pollOptions[p],{placeholderText:U}))):E.push(this.pollOptions[p])}t&&(this.pollOptions=E);this.isValid()?_.kT(this.hostElement,"yt-commentbox-post-enable"):_.kT(this.hostElement,"yt-commentbox-post-disable")};
_.Y.createPollOptions=function(t){var E=[],p;t=(p=t==null?void 0:t.minPollOptions)!=null?p:0;for(p=0;p<t;p++)E.push(this.createPollOption());return E};
_.Y.onImageSelect=function(t){var E=this,p,U,x,A,m,b;return _.q(function(f){if(f.nextAddress==1){if(E.selectedImageIndex===void 0)return f.jumpTo(0);p=t.files[0];E.errorMessage="";U=E.validateImage(p);if(U!=="")return E.errorMessage=U,f.return();x=new Zm(E.maxAspectRatio,!1,!0);return f.yield(x.transform(p),3)}if(f.nextAddress!=4)return A=f.yieldResult,A.transformedData?A.invalidAspectRatio?(E.errorMessage=E.invalidAspectRatioError,f.return()):f.yield(Iu0(E.JSC$16056_imageId,t.files[0],A.transformedData),
4):(E.errorMessage=E.invalidFileTypeError,f.return());m=f.yieldResult;E.JSC$16056_imageId++;sPm(E.uploadManager,[m]);b=Object.assign({},E.pollOptions[E.selectedImageIndex],{image:m});E.pollOptions.splice(E.selectedImageIndex,1,b);E.refreshPollOptions();_.kT(E.hostElement,"yt-backstage-poll-image-select");_.Do(f)})};
_.Y.validateImage=function(t){return t.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.Y.refreshPollOptions=function(){this.pollOptions=[].concat(_.KB(this.pollOptions))};
_.Y.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.KB(this.pollOptions),[this.createPollOption()]))};
_.Y.onRemovePollOption=function(t){var E=this.pollOptions[t.model.index];E&&E.image&&this.uploadManager.cancel(E.image.id);this.pollOptions.splice(t.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.kT(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.Y.onTextInput=function(){this.refreshPollOptions()};
_.Y.onImageButtonClick=function(t){this.selectedImageIndex=t.model.index;this.imageSelector.click()};
_.Y.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.Y.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.Y.saveImageRepositions=function(t){t=t.event_.detail;for(var E=0,p=[],U=_.M(this.pollOptions),x=U.next();!x.done;x=U.next())x=x.value,x.image!==void 0?(x=Object.assign({},x,{image:t[E]}),p.push(x),E++):p.push(x);this.showImagesPreview=!1;this.pollOptions=[].concat(_.KB(p))};
_.Y.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 t=0,E=_.M(this.pollOptions),p=E.next();!p.done;p=E.next())if(p=p.value,p.optionText.trim()!==""||p.image!==void 0){if(!p.image||this.hasCustomOptionText&&p.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;t++}return t>=Number(this.editorInfo.minPollOptions)};
_.Y.getAllUploadStatuses=function(){var t=this,E,p,U,x;return _.q(function(A){if(A.nextAddress==1)return A.yield(t.uploadManager.getAllUploadStatuses(),2);E=A.yieldResult;p=_.M(E);for(U=p.next();!U.done;U=p.next())if(x=U.value,x.encryptedBlobId===void 0)return A.return(Llm(t.uploadManager));return A.return(E)})};
_.Y.getPostCreateOptions=function(){for(var t=[],E=_.M(this.pollOptions),p=E.next();!p.done;p=E.next())p=p.value,p.image!==void 0&&t.push({text:this.hasCustomOptionText?p.optionText:p.placeholderText,image:p.image});return t};
_.Y.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.Y.createButtonRenderer=function(t,E){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:t,accessibilityData:{accessibilityData:{label:this.getSimpleString(t)}},isDisabled:E}};
_.Y.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.Y.computeThumbnailRendererData=function(t){return t?{image:t,selected:!1}:void 0};
_.Y.getSimpleString=function(t){return _.R4(t)};
_.Y.updateOptionTextFromBinding=function(t){if(t.target){var E=Array.from(_.ZN(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(t.target);if(E>=0){var p;this.pollOptions[E].optionText=(p=t.detail.value)!=null?p:""}}};
_.aE.Object.defineProperties(OL.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var t,E;return this.pollOptions.length<((E=(t=this.editorInfo)==null?void 0:t.maxPollOptions)!=null?E:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(t){return t.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(t){return t.image}).map(function(t){return t.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(t){return t.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var t,E=(t=this.data)==null?void 0:t.addOptionButtonText;return E?this.createButtonRenderer(E,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var t,E=(t=this.data)==null?void 0:t.repositionImagesButtonLabel;return E?this.createButtonRenderer(E,!this.hasImages):void 0}}});
OL.prototype.onPollOptionsChange=OL.prototype.onPollOptionsChange;OL.prototype.observeAddImageError=OL.prototype.observeAddImageError;OL.prototype.onEditorInfoChange=OL.prototype.onEditorInfoChange;OL.prototype.dataChanged=OL.prototype.dataChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],OL.prototype,"ytRendererstamperBehavior",void 0);_.N([_.Nl("ytd-backstage-multi-image-reposition-renderer"),_.P("design:type",Object)],OL.prototype,"imageRepositionContainer",void 0);
_.N([_.e(),_.P("design:type",Object)],OL.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],OL.prototype,"editorInfo",void 0);_.N([_.e(),_.P("design:type",Zz)],OL.prototype,"uploadManager",void 0);_.N([_.e(),_.P("design:type",Object)],OL.prototype,"showImagesPreview",void 0);_.N([_.e(),_.P("design:type",Array)],OL.prototype,"pollOptions",void 0);_.N([_.e(),_.P("design:type",Object)],OL.prototype,"errorMessage",void 0);
_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],OL.prototype,"dataChanged",null);_.N([_.P3("editorInfo"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],OL.prototype,"onEditorInfoChange",null);_.N([_.GI("errorMessage"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],OL.prototype,"observeAddImageError",null);
_.N([_.P3("pollOptions"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],OL.prototype,"onPollOptionsChange",null);_.N([_.Z("pollOptions","editorInfo"),_.P("design:type",Object),_.P("design:paramtypes",[])],OL.prototype,"isAllowedToAddOption",null);_.N([_.Z("pollOptions"),_.P("design:type",Object),_.P("design:paramtypes",[])],OL.prototype,"hasImages",null);
_.N([_.Z("pollOptions"),_.P("design:type",Object),_.P("design:paramtypes",[])],OL.prototype,"imagesToReposition",null);_.N([_.Z("pollOptions"),_.P("design:type",Object),_.P("design:paramtypes",[])],OL.prototype,"hasCustomOptionText",null);_.N([_.Z("data","isAllowedToAddOption"),_.P("design:type",Object),_.P("design:paramtypes",[])],OL.prototype,"addOptionButton",null);_.N([_.Z("data","hasImages"),_.P("design:type",Object),_.P("design:paramtypes",[])],OL.prototype,"repositionImagesButton",null);
_.N([_.Ul({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],OL);
_.G(OL,"ytd-backstage-image-poll-editor-renderer",function(){if(nvm!==void 0)return nvm;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return nvm=t},{mode:2});var $Zo={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 Kl3;var Xz=function(){var t=_.z.apply(this,arguments)||this;t.a11yConfig=$Zo;t.imageDisplayOffsetTop=0;t.imageDisplayOffsetLeft=0;t.pickerDisplayOffsetTop=0;t.pickerDisplayOffsetLeft=0;t.showPreviewContainer=!0;t.startPicker=!1;t.repositionOptional=!1;t.editOnlyMode=!1;t.savedImageDisplayOffsetTop=0;t.savedImageDisplayOffsetLeft=0;return t};
_.u(Xz,_.z);_.Y=Xz.prototype;_.Y.created=function(){_.HU.requestAvailability()};
_.Y.ready=function(){};
_.Y.onArrowKeysDown=function(t){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){t.detail.keyboardEvent.preventDefault();var E=0,p=0,U="";switch(t.detail.keyboardEvent.key){case "ArrowUp":gUE(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?U=this.a11yConfig.reachBottomOfImage:E=this.imageHeight*.05*-1;break;case "ArrowDown":gUE(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?U=this.a11yConfig.reachTopOfImage:
E=this.imageHeight*.05;break;case "ArrowLeft":gUE(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?U=this.a11yConfig.reachRightOfImage:p=this.imageWidth*.05*-1;break;case "ArrowRight":gUE(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?U=this.a11yConfig.reachLeftOfImage:p=this.imageWidth*.05}U&&_.zF(U)&&_.kT(this.hostElement,"iron-announce",{text:_.zF(U)});if(p||E)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+E)),t=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),t=_.zF(this.a11yConfig.imageVerticalPosition,{x_percent:""+t,y_percent:""+(100-t)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+p)),t=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),t=_.zF(this.a11yConfig.imageHorizontalPosition,{x_percent:""+t,y_percent:""+(100-t)})),t&&_.kT(this.hostElement,"iron-announce",{text:t})}};
_.Y.getPreviewPosition=function(t,E,p,U){return Math.round(100*(t+E*.5-p)/U)};
_.Y.calculateDisplayPosition=function(){var t=this.imageData.naturalWidth,E=this.imageData.naturalHeight;this.displayScale=Math.max(200/t,200/E);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var p=t*this.displayScale*this.imageData.previewCoordinates.left,U=E*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=E>t?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-p;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=t>E?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-U;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=t*this.displayScale;this.imageHeight=E*this.displayScale};
_.Y.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.Y.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.Y.getSignedPosition=function(t,E,p){return E==="X"&&_.qO("HTML_DIR")==="rtl"?p==="-"?t+"px":t*-1+"px":p==="-"?t*-1+"px":t+"px"};
_.Y.pickerMove=function(t){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var E=this.pickerOffsetX-t.clientX,p=this.pickerOffsetY-t.clientY;this.pickerOffsetX=t.clientX;this.pickerOffsetY=t.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
p)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-E))}};
_.Y.pickerMoveStart=function(t){this.startPicker=!0;this.pickerOffsetX=t.clientX;this.pickerOffsetY=t.clientY};
_.Y.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var t=this.generateCropPreview();t&&_.kT(this.hostElement,"ytd-backstage-image-preview-coordinates-update",t)};
_.Y.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.kT(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.Y.deleteImage=function(){_.kT(this.hostElement,"ytd-backstage-image-preview-delete")};
_.Y.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.Y.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var t=this.generateCropPreview();t&&_.kT(this.hostElement,"ytd-backstage-image-preview-coordinates-save",t)};
_.Y.getPreviewOffset=function(t,E,p){return E&&t?(p==="X"&&_.qO("HTML_DIR")==="rtl"?300/E*t:300/E*t*-1)+"px":"0px"};
_.Y.getSimpleText=function(t){return t?_.R4(t):""};
_.Y.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}};
_.aE.Object.defineProperties(Xz.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var t=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.zF(this.a11yConfig.imageVerticalPosition,{x_percent:""+t,y_percent:""+(100-t)})+"\n"+_.zF(this.a11yConfig.verticalRepositionInstruction)}t=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.zF(this.a11yConfig.imageHorizontalPosition,{x_percent:""+t,y_percent:""+(100-t)})+"\n"+_.zF(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 t,E,p=(t=this.instruction)==null?void 0:(E=t.previewInstruction)==null?void 0:E.editButtonLabel;return p?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:p,accessibilityData:{accessibilityData:{label:this.getSimpleText(p)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var t,E,p,U,x=this.editOnlyMode?(t=this.instruction)==null?void 0:(E=t.editInstruction)==null?void 0:E.saveImagesButtonLabel:(p=this.instruction)==null?void 0:(U=p.editInstruction)==null?void 0:U.saveButtonLabel;return x?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:x,accessibilityData:{accessibilityData:{label:this.getSimpleText(x)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var t,E,p=(t=this.instruction)==null?void 0:(E=t.previewInstruction)==null?void 0:E.deleteButtonLabel;return p?{size:"SIZE_SMALL",text:p,accessibilityData:{accessibilityData:{label:this.getSimpleText(p)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var t,E,p=(t=this.instruction)==null?void 0:(E=t.editInstruction)==null?void 0:E.cancelButtonLabel;t=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return p?{style:t,size:"SIZE_SMALL",text:p,accessibilityData:{accessibilityData:{label:this.getSimpleText(p)}}}: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"}}});
Xz.prototype.onEditOnlyModeUpdate=Xz.prototype.onEditOnlyModeUpdate;Xz.prototype.onImageChange=Xz.prototype.onImageChange;_.N([_.e(),_.P("design:type",Jq8)],Xz.prototype,"imageData",void 0);_.N([_.e(),_.P("design:type",Object)],Xz.prototype,"instruction",void 0);_.N([_.e(),_.P("design:type",Object)],Xz.prototype,"a11yConfig",void 0);_.N([_.e(),_.P("design:type",Number)],Xz.prototype,"imageWidth",void 0);_.N([_.e(),_.P("design:type",Number)],Xz.prototype,"imageHeight",void 0);
_.N([_.e(),_.P("design:type",Number)],Xz.prototype,"displayScale",void 0);_.N([_.e(),_.P("design:type",Object)],Xz.prototype,"imageDisplayOffsetTop",void 0);_.N([_.e(),_.P("design:type",Object)],Xz.prototype,"imageDisplayOffsetLeft",void 0);_.N([_.e(),_.P("design:type",Object)],Xz.prototype,"pickerDisplayOffsetTop",void 0);_.N([_.e(),_.P("design:type",Object)],Xz.prototype,"pickerDisplayOffsetLeft",void 0);_.N([_.e(),_.P("design:type",Object)],Xz.prototype,"showPreviewContainer",void 0);
_.N([_.e(),_.P("design:type",Object)],Xz.prototype,"startPicker",void 0);_.N([_.e(),_.P("design:type",Number)],Xz.prototype,"pickerOffsetX",void 0);_.N([_.e(),_.P("design:type",Number)],Xz.prototype,"pickerOffsetY",void 0);_.N([_.e(),_.P("design:type",Object)],Xz.prototype,"repositionOptional",void 0);_.N([_.e(),_.P("design:type",Object)],Xz.prototype,"editOnlyMode",void 0);_.N([_.Nl("#picker-container"),_.P("design:type",HTMLElement)],Xz.prototype,"JSC$16069_pickerContainer",void 0);
_.N([_.Nl("#picker"),_.P("design:type",HTMLElement)],Xz.prototype,"picker",void 0);_.N([_.Nl("#preview-clipper"),_.P("design:type",HTMLElement)],Xz.prototype,"previewClipper",void 0);_.N([_.Nl("#image-in-picker-background"),_.P("design:type",HTMLImageElement)],Xz.prototype,"JSC$16069_imageInBackground",void 0);_.N([_.Nl("#image-in-picker"),_.P("design:type",HTMLImageElement)],Xz.prototype,"JSC$16069_imageInPicker",void 0);
_.N([_.Nl("#image-in-preview-clipper"),_.P("design:type",HTMLImageElement)],Xz.prototype,"JSC$16069_imageInPreviewClipper",void 0);_.N([_.Z("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.P("design:type",String),_.P("design:paramtypes",[])],Xz.prototype,"altLabelForImage",null);_.N([_.Z("imageHeight","imageWidth"),_.P("design:type",Number),_.P("design:paramtypes",[])],Xz.prototype,"pickerSize",null);
_.N([_.Z("imageHeight","imageWidth"),_.P("design:type",Object),_.P("design:paramtypes",[])],Xz.prototype,"imageOrientationStyle",null);_.N([_.Z("instruction"),_.P("design:type",Object),_.P("design:paramtypes",[])],Xz.prototype,"editButton",null);_.N([_.Z("instruction","editOnlyMode"),_.P("design:type",Object),_.P("design:paramtypes",[])],Xz.prototype,"saveButton",null);_.N([_.Z("instruction"),_.P("design:type",Object),_.P("design:paramtypes",[])],Xz.prototype,"deleteButton",null);
_.N([_.Z("instruction","editOnlyMode"),_.P("design:type",Object),_.P("design:paramtypes",[])],Xz.prototype,"cancelButton",null);_.N([_.Z("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.P("design:type",Number),_.P("design:paramtypes",[])],Xz.prototype,"cropOffsetTop",null);_.N([_.Z("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.P("design:type",Number),_.P("design:paramtypes",[])],Xz.prototype,"cropOffsetLeft",null);
_.N([_.Z("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.P("design:type",String),_.P("design:paramtypes",[])],Xz.prototype,"pickerBackgroundStyle",null);_.N([_.Z("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.P("design:type",String),_.P("design:paramtypes",[])],Xz.prototype,"pickerDisplayStyle",null);_.N([_.Z("cropOffsetLeft","cropOffsetTop"),_.P("design:type",String),_.P("design:paramtypes",[])],Xz.prototype,"imageInPickerStyle",null);
_.N([_.Z("cropOffsetLeft","cropOffsetTop","pickerSize"),_.P("design:type",String),_.P("design:paramtypes",[])],Xz.prototype,"previewClipperStyle",null);_.N([_.P3("imageData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Xz.prototype,"onImageChange",null);_.N([_.P3("editOnlyMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Xz.prototype,"onEditOnlyModeUpdate",null);
_.N([_.Z("showPreviewContainer"),_.P("design:type",String),_.P("design:paramtypes",[])],Xz.prototype,"pickerModeStyle",null);_.N([_.Ul({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],Xz);
_.G(Xz,"ytd-backstage-image-preview-renderer",function(){if(Kl3!==void 0)return Kl3;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Kl3=t},{mode:1});var vv3;var yis={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 SPo;var ciW;var hu=function(){var t=_.z.apply(this,arguments)||this;t.a11yConfig=yis;t.imageDisplayOffsetTop=0;t.imageDisplayOffsetLeft=0;t.pickerDisplayOffsetTop=0;t.pickerDisplayOffsetLeft=0;t.cropCoordinatesSaved=!1;t.previewSize=0;t.startPicker=!1;t.repositionOptional=!1;return t};
_.u(hu,_.z);_.Y=hu.prototype;_.Y.created=function(){_.HU.requestAvailability()};
_.Y.ready=function(){};
_.Y.onArrowKeysDown=function(t){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){t.detail.keyboardEvent.preventDefault();var E=0,p=0,U="";switch(t.detail.keyboardEvent.key){case "ArrowUp":Z2i(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?U=this.a11yConfig.reachBottomOfImage:E=this.imageHeight*.05*-1;break;case "ArrowDown":Z2i(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?U=this.a11yConfig.reachTopOfImage:
E=this.imageHeight*.05;break;case "ArrowLeft":Z2i(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?U=this.a11yConfig.reachRightOfImage:p=this.imageWidth*.05*-1;break;case "ArrowRight":Z2i(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?U=this.a11yConfig.reachLeftOfImage:p=this.imageWidth*.05}U&&_.zF(U)&&_.kT(this.hostElement,"iron-announce",{text:_.zF(U)});if(p||E)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+E)),t=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),t=_.zF(this.a11yConfig.imageVerticalPosition,{x_percent:""+t,y_percent:""+(100-t)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+p)),t=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),t=_.zF(this.a11yConfig.imageHorizontalPosition,{x_percent:""+t,y_percent:""+(100-t)})),t&&_.kT(this.hostElement,"iron-announce",{text:t})}};
_.Y.getPreviewPosition=function(t,E,p,U){return Math.round(100*(t+E*.5-p)/U)};
_.Y.displayImage=function(){var t=this.JSC$16080_pickerContainer.getBoundingClientRect().width,E=this.JSC$16080_pickerContainer.getBoundingClientRect().height,p=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),U=this.JSC$16080_imageInBackground.naturalWidth,x=this.JSC$16080_imageInBackground.naturalHeight;this.displayScale=Math.max(p/U,p/x);this.imageWidth=U*this.displayScale;this.imageHeight=x*this.displayScale;this.pickerDisplayOffsetLeft=(t-p)/2;this.pickerDisplayOffsetTop=
(E-p)/2;this.imageDisplayOffsetLeft=x>U?this.pickerDisplayOffsetLeft:(t-this.imageWidth)/2;this.imageDisplayOffsetTop=U>x?this.pickerDisplayOffsetTop:(E-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.Y.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$16080_imageInBackground.src=this.imageData.toString(),this.JSC$16080_imageInPicker.src=this.imageData.toString(),this.JSC$16080_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.Y.getSignedPosition=function(t,E,p){return E==="X"&&_.qO("HTML_DIR")==="rtl"?p==="-"?t+"px":t*-1+"px":p==="-"?t*-1+"px":t+"px"};
_.Y.pickerMove=function(t){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var E=this.pickerOffsetX-t.clientX,p=this.pickerOffsetY-t.clientY;this.pickerOffsetX=t.clientX;this.pickerOffsetY=t.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
p)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-E))}};
_.Y.pickerMoveStart=function(t){this.startPicker=!0;this.pickerOffsetX=t.clientX;this.pickerOffsetY=t.clientY};
_.Y.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.Y.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.kT(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.Y.getPreviewOffset=function(t,E,p,U){return E&&t&&p?(U==="X"&&_.qO("HTML_DIR")==="rtl"?p/E*t:p/E*t*-1)+"px":"0px"};
_.Y.getSimpleText=function(t){return t?_.R4(t):""};
_.Y.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var t=this.cropOffsetTop/this.imageHeight,E=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,p=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,U=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.ZN(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.kT(this.hostElement,"yt-img-crop-coordinates-update",{top:t,right:E,bottom:p,left:U})}};
_.aE.Object.defineProperties(hu.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var t=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.zF(this.a11yConfig.imageVerticalPosition,{x_percent:""+t,y_percent:""+(100-t)})+"\n"+_.zF(this.a11yConfig.verticalRepositionInstruction)}t=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.zF(this.a11yConfig.imageHorizontalPosition,{x_percent:""+t,y_percent:""+(100-t)})+"\n"+_.zF(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 t,E=(t=this.learnMore.runs[0])==null?void 0:t.navigationEndpoint,p;return((p=_.k(E,_.kX))==null?void 0:p.url)||void 0}}}});
hu.prototype.onImageDataChange=hu.prototype.onImageDataChange;_.N([_.e(),_.P("design:type",Object)],hu.prototype,"imageData",void 0);_.N([_.e(),_.P("design:type",Object)],hu.prototype,"instruction",void 0);_.N([_.e(),_.P("design:type",Object)],hu.prototype,"a11yConfig",void 0);_.N([_.e(),_.P("design:type",Number)],hu.prototype,"imageWidth",void 0);_.N([_.e(),_.P("design:type",Number)],hu.prototype,"imageHeight",void 0);_.N([_.e(),_.P("design:type",Number)],hu.prototype,"displayScale",void 0);
_.N([_.e(),_.P("design:type",Object)],hu.prototype,"imageDisplayOffsetTop",void 0);_.N([_.e(),_.P("design:type",Object)],hu.prototype,"imageDisplayOffsetLeft",void 0);_.N([_.e(),_.P("design:type",Object)],hu.prototype,"pickerDisplayOffsetTop",void 0);_.N([_.e(),_.P("design:type",Object)],hu.prototype,"pickerDisplayOffsetLeft",void 0);_.N([_.e(),_.P("design:type",Object)],hu.prototype,"cropCoordinatesSaved",void 0);_.N([_.e(),_.P("design:type",Object)],hu.prototype,"previewSize",void 0);
_.N([_.e(),_.P("design:type",Object)],hu.prototype,"startPicker",void 0);_.N([_.e(),_.P("design:type",Number)],hu.prototype,"pickerOffsetX",void 0);_.N([_.e(),_.P("design:type",Number)],hu.prototype,"pickerOffsetY",void 0);_.N([_.e(),_.P("design:type",Object)],hu.prototype,"repositionOptional",void 0);_.N([_.Nl("#picker-container"),_.P("design:type",HTMLElement)],hu.prototype,"JSC$16080_pickerContainer",void 0);_.N([_.Nl("#picker"),_.P("design:type",HTMLElement)],hu.prototype,"picker",void 0);
_.N([_.Nl("#image-in-picker-background"),_.P("design:type",HTMLImageElement)],hu.prototype,"JSC$16080_imageInBackground",void 0);_.N([_.Nl("#image-in-picker"),_.P("design:type",HTMLImageElement)],hu.prototype,"JSC$16080_imageInPicker",void 0);_.N([_.Nl("#image-in-preview-clipper"),_.P("design:type",HTMLImageElement)],hu.prototype,"JSC$16080_imageInPreviewClipper",void 0);_.N([_.Nl("#full-image-as-preview"),_.P("design:type",HTMLImageElement)],hu.prototype,"imageAsPreview",void 0);
_.N([_.Z("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.P("design:type",String),_.P("design:paramtypes",[])],hu.prototype,"altLabelForImage",null);_.N([_.Z("imageHeight","imageWidth"),_.P("design:type",Number),_.P("design:paramtypes",[])],hu.prototype,"pickerSize",null);_.N([_.Z("imageHeight","imageWidth"),_.P("design:type",Object),_.P("design:paramtypes",[])],hu.prototype,"imageOrientationStyle",null);
_.N([_.Z("instruction.previewInstruction.editButtonLabel"),_.P("design:type",Object),_.P("design:paramtypes",[])],hu.prototype,"editButton",null);_.N([_.Z("instruction.editInstruction.saveButtonLabel"),_.P("design:type",Object),_.P("design:paramtypes",[])],hu.prototype,"saveButton",null);_.N([_.Z("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.P("design:type",Number),_.P("design:paramtypes",[])],hu.prototype,"cropOffsetTop",null);
_.N([_.Z("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.P("design:type",Number),_.P("design:paramtypes",[])],hu.prototype,"cropOffsetLeft",null);_.N([_.Z("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.P("design:type",String),_.P("design:paramtypes",[])],hu.prototype,"pickerBackgroundStyle",null);_.N([_.Z("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.P("design:type",String),_.P("design:paramtypes",[])],hu.prototype,"pickerDisplayStyle",null);
_.N([_.Z("cropOffsetLeft","cropOffsetTop"),_.P("design:type",String),_.P("design:paramtypes",[])],hu.prototype,"imageInPickerStyle",null);_.N([_.Z("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.P("design:type",String),_.P("design:paramtypes",[])],hu.prototype,"previewClipperStyle",null);_.N([_.GI("imageData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],hu.prototype,"onImageDataChange",null);
_.N([_.Z("cropCoordinatesSaved"),_.P("design:type",String),_.P("design:paramtypes",[])],hu.prototype,"pickerModeStyle",null);_.N([_.Z("instruction.editInstruction.learnMore"),_.P("design:type",Object),_.P("design:paramtypes",[])],hu.prototype,"learnMore",null);_.N([_.Z("learnMore"),_.P("design:type",Object),_.P("design:paramtypes",[])],hu.prototype,"learnMoreUrl",null);_.N([_.p4({is:"yt-img-crop-picker",disableElementRegistration:!0})],hu);
_.G(hu,"yt-img-crop-picker",function(){if(ciW===void 0){var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;SPo===void 0&&(SPo=document.createElement("template"));var U=SPo;p.call(E,U.content.cloneNode(!0),t.content.firstChild);ciW=t}t=ciW;return t},{mode:2});var ad=function(){var t=_.z.apply(this,arguments)||this;t.errorMessage="";t.hasPreview=!1;t.isBackstagePost=!1;t.dismissButtonOverrides={size:"XS"};return t};
_.u(ad,_.z);_.Y=ad.prototype;_.Y.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"}}}};
_.Y.detached=function(){this.removeOverlay()};
_.Y.setPreview=function(t){_.ZN(this.hostElement).querySelector("#preview-picker").imageData=t;this.hasPreview=!0;_.kT(this.hostElement,"yt-backstage-image-select-preview")};
_.Y.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var t=_.ZN(this.hostElement).querySelector("#dropzone");t.classList.remove("dragover");t.classList.remove("error");_.kT(this.hostElement,"yt-backstage-image-select-cancel")};
_.Y.setupOverlay=function(){var t=this.imageUploadEndpoint;this.removeOverlay();if(t&&t.imageValidationInfo){var E=_.ZN(this.hostElement).querySelector("#dropzone"),p=_.ZN(this.hostElement).querySelector("#select");this.overlay=new Xo(t.uploadUrl,t.channelId,t.imageValidationInfo.maxFileSizeMb,t.imageValidationInfo.allowedMaxAspectRatio,E,p,!0);_.vu(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.vu(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.vu(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.vu(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.vu(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.Y.removeOverlay=function(){this.overlay&&(_.pJ(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.pJ(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.pJ(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.pJ(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.pJ(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.Y.onDragOver=function(t){var E=_.ZN(this.hostElement).querySelector("#dropzone");_.XM(E,"dragover",t.value)};
_.Y.onPreview=function(t){this.setPreview(t.value)};
_.Y.onImageError=function(t){if(t.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var E;t=(E=this.data)==null?void 0:E.fileSizeError}else if(t.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var p;t=(p=this.data)==null?void 0:p.invalidError}else if(t.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var U;t=(U=this.data)==null?void 0:U.invalidAspectRatioError}else return;this.errorMessage=_.R4(t);_.ZN(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.Y.onImageAlert=function(t){this.onImageError(t)};
_.Y.uploadPromise=function(){var t=this,E=this.overlay&&this.overlay.uploadPromise();if(E)return E.catch(function(){throw Error(t.data?_.R4(t.data.uploadFailureError):"");})};
_.aE.Object.defineProperties(ad.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var t,E;if((t=this.data)==null?0:(E=t.icon)==null?0:E.iconType)return _.zh(this.data.icon.iconType)}}});
ad.prototype.setupOverlay=ad.prototype.setupOverlay;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],ad.prototype,"rendererStamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],ad.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],ad.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],ad.prototype,"imageUploadEndpoint",void 0);_.N([_.e(),_.P("design:type",Object)],ad.prototype,"errorMessage",void 0);
_.N([_.e(),_.P("design:type",Xo)],ad.prototype,"overlay",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],ad.prototype,"hasPreview",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],ad.prototype,"isBackstagePost",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],ad.prototype,"selectionCancel",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],ad.prototype,"previewCancel",null);
_.N([_.Z("data.icon.iconType"),_.P("design:type",Object),_.P("design:paramtypes",[])],ad.prototype,"icon",null);_.N([_.e(),_.P("design:type",Object)],ad.prototype,"dismissButtonOverrides",void 0);_.N([_.GI("imageUploadEndpoint"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ad.prototype,"setupOverlay",null);_.N([_.Ul({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],ad);
_.G(ad,"ytd-backstage-image-select-renderer",function(){if(vv3!==void 0)return vv3;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return vv3=t},{mode:1});var tbp;var EBs;var eS=function(){var t=_.z.apply(this,arguments)||this;t.selected=!1;return t};
_.u(eS,_.z);_.Y=eS.prototype;_.Y.computeSelected=function(t){return t==null?void 0:t.selected};
_.Y.computeTransform=function(t,E,p){var U,x,A=(x=(U=this.imageContainer)==null?void 0:U.getBoundingClientRect())!=null?x:{width:0,height:0};U=Math.max(A.width/E,A.height/p);p=p*U*t.top;return"translateX("+this.getSignedPosition(E*U*t.left,"X","-")+") translateY("+this.getSignedPosition(p,"Y","-")+")"};
_.Y.getSignedPosition=function(t,E,p){return E==="X"&&_.qO("HTML_DIR")==="rtl"?p==="-"?t+"px":t*-1+"px":p==="-"?t*-1+"px":t+"px"};
_.Y.onClick=function(){var t;_.kT(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(t=this.data)==null?void 0:t.image)};
_.Y.onKeyPress=function(t){if(t.keyCode===13)this.onClick()};
_.aE.Object.defineProperties(eS.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.data)==null?void 0:(E=t.image)==null?void 0:E.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)!=null&&t.image){var E;t=(E=this.data)==null?void 0:E.image;return t.previewCoordinates.top!==0||t.previewCoordinates.left!==0?(E=this.computeTransform(t.previewCoordinates,t.naturalWidth,t.naturalHeight),t.naturalHeight>=t.naturalWidth?"width:inherit;transform:"+E+";":"height:inherit;transform:"+E+";"):t.naturalHeight>=t.naturalWidth?"width:inherit;":"height:inherit;"}}}});
eS.prototype.onKeyPress=eS.prototype.onKeyPress;_.N([_.Nl(".image-container"),_.P("design:type",HTMLElement)],eS.prototype,"imageContainer",void 0);_.N([_.e(),_.P("design:type",Object)],eS.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.P("design:type",Object)],eS.prototype,"selected",void 0);_.N([_.Z("data.image"),_.P("design:type",Object),_.P("design:paramtypes",[])],eS.prototype,"thumbnailUrl",null);
_.N([_.Z("data.image","data.image.previewCoordinates"),_.P("design:type",Object),_.P("design:paramtypes",[])],eS.prototype,"thumbnailStyle",null);_.N([_.lc("keypress"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],eS.prototype,"onKeyPress",null);_.N([_.Ul({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],eS);
_.Ol()(eS,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(EBs===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);EBs=t}t=EBs;return t},{allowedProps:["data"],
mode:2});var Fz=function(t,E,p){p=p===void 0?!1:p;_.UH.call(this);var U=this;this.dropZoneOverlay=new nC(t);this.selectOverlay=p?new Nw(E,"multiple_file",["image/*"]):new Nw(E,"single_file",["image/*"]);this.handler=new _.Kg(this);_.ed(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(E,"click",function(){U.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.u(Fz,_.UH);Fz.prototype.onChange=function(t){var E;(E=t.files)!=null&&E.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:t.files}))};var zv=function(){var t=_.z.apply(this,arguments)||this;t.addImageErrorMessage="";t.errorMessage="";t.images=[];t.selectedImageIndex=0;t.modern=_.r("web_modern_buttons");t.maxNumImagesPerPost=_.z3("max_num_images_per_post_web_ui");t.JSC$16095_imageId=0;return t};
_.u(zv,_.z);_.Y=zv.prototype;_.Y.created=function(){var t=this;this.JSC$16095_ytReorderableController=new _.wtX(100,function(E){t.handleDrop(E)})};
_.Y.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.kT(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.Y.observeDragToReorder=function(){var t=this;if(this.showImagesPreview){var E,p=r74(_.Li.getInstance(),(E=this.data)==null?void 0:E.dragToReorderTooltip);_.ir.addLowPriorityJob(function(){_.IK(t.hostElement,p,t.thumbnailDragDropArea)})}};
_.Y.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}}};
_.Y.computeThumbnail=function(t){return(t==null?void 0:t.localImageSrc)||void 0};
_.Y.onRendererstamperFinished=function(){_.RVr(this.JSC$16095_ytReorderableController,_.ZN(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.ZN(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.Y.handleDrop=function(t){var E=t.currDragItem;if(E!=null&&E.data){t=this.images[this.selectedImageIndex];var p=E.data.image,U=this.images.indexOf(p)||0;E=_.FO(E.parentNode.children,E);this.images.splice(U,1);this.images.splice(E,0,p);this.images=[].concat(_.KB(this.images));this.selectedImageIndex=this.images.indexOf(t)}};
_.Y.setUpImagePicker=function(){var t=this.imageUploadEndpoint;t&&t.imageValidationInfo&&(this.uploadManager=new Zz(t.uploadUrl,t.channelId),this.initialPicker||(this.initialPicker=new Fz(this.dropzone,this.selectLink,!0),_.vu(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new Fz(this.addImageButtonContainer,this.addImageSelectButton),_.vu(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.vu(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.vu(this.imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.vu(_.ZN(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.Y.detached=function(){this.initialPicker&&(_.pJ(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.pJ(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.Sp(this.JSC$16095_ytReorderableController)};
_.Y.onInitialSelectImages=function(t){var E=this;return _.q(function(p){return p.yield(E.onSelectImages(t,!1),0)})};
_.Y.onAddImage=function(t){var E=this;return _.q(function(p){return p.yield(E.onSelectImages(t,!0),0)})};
_.Y.onSelectImages=function(t,E){var p=this,U,x,A,m,b,f,B,R,V,Q,C,d,I,O,a,F,L,D,W,K;return _.q(function(v){switch(v.nextAddress){case 1:E?p.addImageErrorMessage="":(p.images=[],p.errorMessage="");U=t.detail;x=p.validateImages([].concat(_.KB(U)));if(x!=="")return E?p.addImageErrorMessage=x:p.errorMessage=x,v.return();A=[].concat(_.KB(U)).map(function(YL){return(new Zm(p.maxAspectRatio,!1,!0)).transform(YL)});
return v.yield(Promise.allSettled(A),2);case 2:m=v.yieldResult,b=_.M(m.entries()),f=b.next();case 3:if(f.done){v.jumpTo(5);break}B=f.value;R=_.M(B);V=R.next().value;Q=R.next().value;C=V;d=Q;if(d.status!=="fulfilled"){a=O=I=void 0;E?p.addImageErrorMessage=_.R4((I=p.data)==null?void 0:I.invalidError):p.errorMessage=p.errorMessage===""?_.R4((O=p.data)==null?void 0:O.invalidError):_.R4((a=p.data)==null?void 0:a.multiFileError);v.jumpTo(4);break}F=d.value;F.cropped&&_.kT(p.hostElement,"yt-backstage-multi-image-cropped");
if(F.invalidAspectRatio){W=D=L=void 0;E?p.addImageErrorMessage=_.R4((L=p.data)==null?void 0:L.invalidAspectRatioError):p.errorMessage=p.errorMessage===""?_.R4((D=p.data)==null?void 0:D.invalidAspectRatioError):_.R4((W=p.data)==null?void 0:W.multiFileError);v.jumpTo(4);break}return v.yield(Iu0(p.JSC$16095_imageId,t.detail[C],F.transformedData),8);case 8:K=v.yieldResult,p.images.push(K),p.JSC$16095_imageId++;case 4:f=b.next();v.jumpTo(3);break;case 5:if(p.errorMessage!==""||p.addImageErrorMessage!==
"")return v.return();E?sPm(p.uploadManager,[p.images[p.images.length-1]]):sPm(p.uploadManager,p.images);p.images=[].concat(_.KB(p.images));p.selectedImageIndex=E?Math.max(p.images.length-1,0):0;_.kT(p.hostElement,"yt-backstage-multi-image-select");_.Do(v)}})};
_.Y.onThumbnailClick=function(t){if(t=t.event_.detail)this.selectedImageIndex=this.images.indexOf(t)};
_.Y.validateImages=function(t){if(t.length>this.maxNumImagesPerPost){var E;return _.R4((E=this.data)==null?void 0:E.multiImageExceedMaxImageCountError)}var p=1048576*this.maxFileSizeMb;t=t.filter(function(A){return A.size>p}).length;
if(t===0)return"";var U,x;t=t>1?(U=this.data)==null?void 0:U.multiFileError:(x=this.data)==null?void 0:x.fileSizeError;return _.R4(t)};
_.Y.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.KB(this.images));this.selectedImageIndex=0};
_.Y.repositionImage=function(t){this.images[this.selectedImageIndex].previewCoordinates=t.event_.detail;this.images=[].concat(_.KB(this.images))};
_.Y.getAllUploadStatuses=function(){var t=this,E,p,U,x;return _.q(function(A){if(A.nextAddress==1)return A.yield(t.uploadManager.getAllUploadStatuses(),2);E=A.yieldResult;p=_.M(E);for(U=p.next();!U.done;U=p.next())if(x=U.value,x.encryptedBlobId===void 0)return A.return(Llm(t.uploadManager));return A.return(E)})};
_.Y.hasImages=function(){return this.images.length>0};
_.Y.cancel=function(){for(var t=this.uploadManager,E=_.M(t.imagesUploadData),p=E.next();!p.done;p=E.next())t.cancel(p.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.kT(this.hostElement,"yt-backstage-multi-image-cancel")};
_.aE.Object.defineProperties(zv.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.imageUploadEndpoint)==null?void 0:(E=t.imageValidationInfo)==null?void 0:E.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.imageUploadEndpoint)==null?void 0:(E=t.imageValidationInfo)==null?void 0:E.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var t,E;if((t=this.data)==null?0:(E=t.icon)==null?0:E.iconType)return _.zh(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.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 t=this;return(this.images||[]).map(function(E,p){return{renderer:{image:E,selected:p===t.selectedImageIndex}}})}}});
zv.prototype.setUpImagePicker=zv.prototype.setUpImagePicker;zv.prototype.onRendererstamperFinished=zv.prototype.onRendererstamperFinished;zv.prototype.observeDragToReorder=zv.prototype.observeDragToReorder;zv.prototype.observeAddImageError=zv.prototype.observeAddImageError;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],zv.prototype,"rendererStamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],zv.prototype,"ytRendererBehavior",void 0);
_.N([_.Nl("#dropzone"),_.P("design:type",HTMLElement)],zv.prototype,"dropzone",void 0);_.N([_.Nl("#select-link"),_.P("design:type",HTMLElement)],zv.prototype,"selectLink",void 0);_.N([_.Nl("#thumbnail-drag-drop-area"),_.P("design:type",HTMLElement)],zv.prototype,"thumbnailDragDropArea",void 0);_.N([_.Nl("#add-image-button-container"),_.P("design:type",HTMLElement)],zv.prototype,"addImageButtonContainer",void 0);
_.N([_.Nl("#add-image-button"),_.P("design:type",HTMLElement)],zv.prototype,"addImageSelectButton",void 0);_.N([_.Nl("#image-preview-container"),_.P("design:type",Object)],zv.prototype,"imagePreviewContainer",void 0);_.N([_.e(),_.P("design:type",Object)],zv.prototype,"addImageErrorMessage",void 0);_.N([_.e(),_.P("design:type",Object)],zv.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],zv.prototype,"errorMessage",void 0);
_.N([_.e(),_.P("design:type",Object)],zv.prototype,"imageUploadEndpoint",void 0);_.N([_.e(),_.P("design:type",Array)],zv.prototype,"images",void 0);_.N([_.e(),_.P("design:type",Fz)],zv.prototype,"initialPicker",void 0);_.N([_.e(),_.P("design:type",Fz)],zv.prototype,"addImagePicker",void 0);_.N([_.e(),_.P("design:type",Zz)],zv.prototype,"uploadManager",void 0);_.N([_.e(),_.P("design:type",Object)],zv.prototype,"selectedImageIndex",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],zv.prototype,"modern",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],zv.prototype,"maxNumImagesPerPost",void 0);_.N([_.Z("imageUploadEndpoint"),_.P("design:type",Number),_.P("design:paramtypes",[])],zv.prototype,"maxAspectRatio",null);_.N([_.Z("imageUploadEndpoint"),_.P("design:type",Number),_.P("design:paramtypes",[])],zv.prototype,"maxFileSizeMb",null);
_.N([_.Z("data.icon.iconType"),_.P("design:type",Object),_.P("design:paramtypes",[])],zv.prototype,"dropIcon",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],zv.prototype,"selectionCancel",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],zv.prototype,"previewCancel",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],zv.prototype,"dataForAddImageButton",null);
_.N([_.Z("errorMessage"),_.P("design:type",String),_.P("design:paramtypes",[])],zv.prototype,"dropzoneClass",null);_.N([_.Z("images"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],zv.prototype,"showImagesPreview",null);_.N([_.Z("images"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],zv.prototype,"containMaxImages",null);_.N([_.GI("addImageErrorMessage"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zv.prototype,"observeAddImageError",null);
_.N([_.GI("showImagesPreview"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zv.prototype,"observeDragToReorder",null);_.N([_.Z("images","selectedImageIndex"),_.P("design:type",Object),_.P("design:paramtypes",[])],zv.prototype,"selectedImageData",null);_.N([_.Z("images","selectedImageIndex"),_.P("design:type",Array),_.P("design:paramtypes",[])],zv.prototype,"thumbnailRenderers",null);
_.N([_.lc("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zv.prototype,"onRendererstamperFinished",null);_.N([_.GI("imageUploadEndpoint"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zv.prototype,"setUpImagePicker",null);_.N([_.Ul({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],zv);
_.G(zv,"ytd-backstage-multi-image-select-renderer",function(){if(tbp!==void 0)return tbp;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return tbp=t},{mode:1});var p0X;var Usr;var xs4;var lo=function(){var t=_.z.apply(this,arguments)||this;t.boundCaptureFocus=function(E){t.onCaptureFocus(E)};
return t};
_.u(lo,_.z);_.Y=lo.prototype;_.Y.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.Y.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.Y.onCaptureFocus=function(t){_.Vx(t).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.Y.getIconType=function(t){return t?"yt-icons:"+t.toLowerCase():null};
_.Y.onSelect=function(){var t;if((t=this.data)==null?0:t.onSelectCommand)if(_.r("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var E;((E=_.k(this.data.onSelectCommand.commandMetadata,_.hZ))==null?0:E.url)?_.kT(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.X3().resolve(_.ei).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.aE.Object.defineProperties(lo.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.R4(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}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],lo.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],lo.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],lo.prototype,"data",void 0);_.N([_.Nl("#item"),_.P("design:type",HTMLElement)],lo.prototype,"item",void 0);_.N([_.Z("data.label"),_.P("design:type",String),_.P("design:paramtypes",[])],lo.prototype,"label",null);
_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],lo.prototype,"value",null);_.N([_.Ul({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],lo);
_.G(lo,"ytd-privacy-dropdown-item-renderer",function(){if(xs4!==void 0)return xs4;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return xs4=t},{mode:1});var Gv=function(){var t=_.z.apply(this,arguments)||this;t.value="";t.label="";t.disabled=!1;return t};
_.u(Gv,_.z);_.Y=Gv.prototype;_.Y.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"}}}};
_.Y.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.Y.dataChanged=function(){this.reset()};
_.Y.valueChanged=function(){var t;if(this.value&&(t=this.data)!=null&&t.entries){t=_.M(this.data.entries);for(var E=t.next();!E.done;E=t.next())if((E=this.getRendererForEntry(E.value))&&this.getItemRendererValue(E)===this.value){this.label=this.ytComponentBehavior.getSimpleString(E.label);break}}};
_.Y.setInitialLabel=function(){if(this.data&&this.data.entries)for(var t=_.M(this.data.entries),E=t.next();!E.done;E=t.next())if(E=this.getRendererForEntry(E.value)){if(E.isSelected){this.label=this.ytComponentBehavior.getSimpleString(E.label);break}this.data.label&&(this.label=this.data.label)}};
_.Y.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var t=_.M(this.data.entries),E=t.next();!E.done;E=t.next()){E=this.getRendererForEntry(E.value);var p=void 0;if((p=E)==null?0:p.isSelected)return this.getItemRendererValue(E)||-1}return-1};
_.Y.getItemRendererValue=function(t){return"stringValue"in t||"int32Value"in t?t.stringValue||t.int32Value||null:null};
_.Y.getRendererForEntry=function(t){return t.dropdownItemRenderer||t.privacyDropdownItemRenderer||t.navigationDropdownItemRenderer||null};
_.Y.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IU("value-changed",this.value))};
_.Y.updateValueFromBinding=function(t){this.value=t.detail.value};
Gv.prototype.valueChangedForBinding=Gv.prototype.valueChangedForBinding;Gv.prototype.valueChanged=Gv.prototype.valueChanged;Gv.prototype.dataChanged=Gv.prototype.dataChanged;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Gv.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Gv.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Gv.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],Gv.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Gv.prototype,"value",void 0);_.N([_.e(),_.P("design:type",Object)],Gv.prototype,"label",void 0);_.N([_.Nl("#entries"),_.P("design:type",Object)],Gv.prototype,"entries",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Gv.prototype,"disabled",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Gv.prototype,"dataChanged",null);
_.N([_.P3("value"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Gv.prototype,"valueChanged",null);_.N([_.GI("value"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Gv.prototype,"valueChangedForBinding",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],Gv);
_.G(Gv,"ytd-flat-dropdown-renderer",function(){if(Usr!==void 0)return Usr;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Usr=t},{mode:1});var A5G;var nP=function(){var t=_.z.apply(this,arguments)||this;t.quizOptions=[];t.explanationPlaceholderText="";t.optionPlaceholderText="";t.correctAnswerIndex=-1;t.isMarkAnswerTooltipShown=!1;t.timer=0;return t};
_.u(nP,_.z);_.Y=nP.prototype;_.Y.dataChanged=function(){this.optionPlaceholderText=_.R4(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.R4(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.Y.onMarkCorrectAnswer=function(t){var E,p=((E=this.quizOptions[this.correctAnswerIndex])==null?void 0:E.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[t.model.index]=Object.assign({},this.quizOptions[t.model.index],{explanationText:p,isCorrect:!0});this.correctAnswerIndex=t.model.index;this.quizOptions=[].concat(_.KB(this.quizOptions))};
_.Y.updatePlaceholderTexts=function(){for(var t=!1,E=[],p=0;p<this.quizOptions.length;p++){var U=this.optionPlaceholderText+" "+(p+1),x=void 0;((x=this.quizOptions[p])==null?void 0:x.placeholderText)!==U?(t=!0,E.push(Object.assign({},this.quizOptions[p],{placeholderText:U}))):E.push(this.quizOptions[p])}t&&(this.quizOptions=E);this.isValid()?_.kT(this.hostElement,"yt-commentbox-post-enable"):_.kT(this.hostElement,"yt-commentbox-post-disable")};
_.Y.getSimpleString=function(t){return _.R4(t)};
_.Y.createQuizOptions=function(t){var E=[],p;t=(p=t==null?void 0:t.minQuizOptions)!=null?p:0;for(p=0;p<t;p++)E.push(this.createQuizOption());return E};
_.Y.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.KB(this.quizOptions),[this.createQuizOption()]))};
_.Y.onInput=function(){this.quizOptions=[].concat(_.KB(this.quizOptions))};
_.Y.onExplanationInput=function(){_.kT(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.Y.onRemoveQuizOption=function(t){this.quizOptions.splice(t.model.index,1);t.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:t.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.KB(this.quizOptions));this.quizOptions.length===0&&_.kT(this.hostElement,"yt-quiz-attachment-dismiss")};
_.Y.updateHintRenderer=function(){var t=this;clearTimeout(this.timer);this.timer=setTimeout(function(){t.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.Y.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var t=0,E=0,p=_.M(this.quizOptions),U=p.next();!U.done;U=p.next()){U=U.value;var x=void 0;if(((x=U.optionText)==null?void 0:x.trim())!==""||U.isCorrect){U.isCorrect&&E++;x=void 0;if(this.hasCustomOptionText&&((x=U.optionText)==null?void 0:x.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;t++}}return t>=
Number(this.editorInfo.minQuizOptions)&&E===1};
_.Y.getPostCreateOptions=function(){for(var t=[],E=_.M(this.quizOptions),p=E.next();!p.done;p=E.next()){p=p.value;var U=void 0;((U=p.optionText)==null?void 0:U.trim())!==""&&t.push({pollOption:{text:p.optionText,explanation:p.explanationText},isCorrect:p.isCorrect})}return t};
_.Y.getExplanationText=function(){var t;return((t=this.quizOptions[this.correctAnswerIndex])==null?void 0:t.explanationText)||""};
_.Y.maybeDisplayMarkAnswerEduToolTip=function(){var t,E,p,U,x,A,m;this.shouldShowMarkAnswerTooltip()&&((t=this.editorInfo)==null?0:(E=t.markAnswerButton)==null?0:(p=E.buttonRenderer)==null?0:(U=p.hint)==null?0:(x=U.hintRenderer)==null?0:(A=x.content)==null?0:(m=A.bubbleHintRenderer)==null?0:m.text)&&(_.Li.getInstance(),t=P5(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,(t==null?void 0:t.length)>0&&this.optionSelectors&&_.n4(t[0],this.optionSelectors[0]))};
_.Y.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var t=0,E=_.M(this.quizOptions),p=E.next();!p.done;p=E.next()){p=p.value;var U=void 0;((U=p.optionText)==null?void 0:U.trim())!==""&&t++;if(p.isCorrect)return!1}return t<2?!1:!0};
_.Y.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.Y.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.Y.updateOptionTextFromBinding=function(t){if(t.target){var E=Array.from(_.ZN(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(t.target);if(E>=0){var p;this.quizOptions[E].optionText=(p=t.detail.value)!=null?p:""}}};
_.aE.Object.defineProperties(nP.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var t,E,p=(t=this.editorInfo)==null?void 0:(E=t.addOptionButton)==null?void 0:E.buttonRenderer;p&&(p.style="STYLE_SUGGESTIVE",p.size="SIZE_SMALL",p.isDisabled=!this.isAllowedToAddOption);return(p==null?0:p.text)?p:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var t,E;return this.quizOptions.length<((E=(t=this.editorInfo)==null?void 0:t.maxQuizOptions)!=null?E:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(t){var E;return(E=t.optionText)==null?void 0:E.trim()})}}});
nP.prototype.updatePlaceholderTexts=nP.prototype.updatePlaceholderTexts;nP.prototype.dataChanged=nP.prototype.dataChanged;_.N([_.e(),_.P("design:type",Object)],nP.prototype,"editorInfo",void 0);_.N([_.e(),_.P("design:type",Array)],nP.prototype,"quizOptions",void 0);_.N([_.e(),_.P("design:type",Object)],nP.prototype,"explanationPlaceholderText",void 0);_.N([_.DN(".option-selector-button"),_.P("design:type",Array)],nP.prototype,"optionSelectors",void 0);
_.N([_.P3("editorInfo"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nP.prototype,"dataChanged",null);_.N([_.Z("editorInfo","isAllowedToAddOption","quizOptions"),_.P("design:type",Object),_.P("design:paramtypes",[])],nP.prototype,"addAnswerButton",null);_.N([_.Z("editorInfo","quizOptions"),_.P("design:type",Object),_.P("design:paramtypes",[])],nP.prototype,"isAllowedToAddOption",null);
_.N([_.P3("quizOptions"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nP.prototype,"updatePlaceholderTexts",null);_.N([_.Z("quizOptions"),_.P("design:type",Object),_.P("design:paramtypes",[])],nP.prototype,"hasCustomOptionText",null);_.N([_.Ul({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],nP);
_.G(nP,"ytd-backstage-quiz-editor-renderer",function(){if(A5G!==void 0)return A5G;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return A5G=t},{mode:2});var Ywf;var MbW=(zd.FIRSTDAYOFWEEK+1)%7;var msp;var b6p=[],i64=0,qws=0;i64=0;qws=24;if(.25*(qws-i64)<0)msp=[];else{for(var H6s=i64;H6s<qws;H6s+=.25)b6p.push(H6s);msp=b6p}var fbr=msp.map(function(t){t=t*60*60;return{secondsSinceMidnight:t,text:(new BL(7)).format(new Date(0,0,0,0,0,t))}});var Ber;var N9=function(){var t=_.z.apply(this,arguments)||this;t.skipNextOpenDialog=!1;t.errorMessage="";t.previousMonthLabel=_.zF("PREVIOUS_MONTH_LABEL");t.nextMonthLabel=_.zF("NEXT_MONTH_LABEL");return t};
_.u(N9,_.z);_.Y=N9.prototype;_.Y.attached=function(){var t=this,E=new MutationObserver(function(){t.JSC$16137_calendarMain.scrollHeight>0&&(E.disconnect(),t.calendarConfig&&t.calendarConfig.selectedDate&&t.scrollToDate())});
E.observe(this.JSC$16137_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){E.disconnect()},1E3)};
_.Y.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.Y.onDateTextChange=function(){if(this.calendarConfig){var t=this.validateDateText();t.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(t.details)):this.textbox.setAttribute("invalid","")}};
_.Y.handleDayClick=function(t){t.model.day.date&&(this.commitDate(t.model.day.date),this.dialog.close())};
_.Y.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var t=GLO(this.calendarConfig.selectedDate,this.renderData);t!==void 0&&this.JSC$16137_calendarMain.scrollToIndex(t)}};
_.Y.scrollToNextMonth=function(){this.JSC$16137_calendarMain.scrollToIndex(this.JSC$16137_calendarMain.firstVisibleIndex+1)};
_.Y.scrollToPrevMonth=function(){this.JSC$16137_calendarMain.firstVisibleIndex===0&&this.JSC$16137_calendarMain.scrollTo(0,0);this.JSC$16137_calendarMain.scrollToIndex(this.JSC$16137_calendarMain.firstVisibleIndex-1)};
_.Y.onFormSubmit=function(t){t.preventDefault();this.calendarConfig&&(t=this.validateDateText(),t.isValid&&(this.commitDate(t.details),this.dialog.close()))};
_.Y.onEscOrClickingOutside=function(t){t=t.detail.path&&!!t.detail.path.length&&t.detail.path[0];if(t.classList.contains("ytd-calendar-date-picker")){t===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var E=0;E<this.dropdownButton.children.length;E++)this.dropdownButton.children[E]===t&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}t=this.textbox.value!==this.dateText;E=this.validateDateText();t&&E.isValid&&this.commitDate(E.details);this.dialog.close();this.textbox.value=
this.dateText};
_.Y.commitDate=function(t){this.calendarConfig&&(this.set("calendarConfig.selectedDate",t),_.kT(this.hostElement,"ytd-calendar-date-selected",t))};
_.Y.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var t=this.textbox.value;var E=new Date;t=(new UaO(2)).parse(t,E,{validate:!0})===t.length?zP$(E):void 0;if(!t)return this.errorMessage=_.zF("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};E=this.calendarConfig.start;var p=this.calendarConfig.end;if(XPD(t,E))return this.errorMessage=_.zF("ENTER_DATE_OR_LATER",{allowed_date:F_$(E)}),{isValid:!1,details:void 0};if(XPD(p,t))return this.errorMessage=
_.zF("ENTER_DATE_OR_EARLIER",{allowed_date:F_$(p)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:t}};
_.aE.Object.defineProperties(N9.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?F_$(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var t=this.calendarConfig,E=[],p=0;p<7;p++)E.push(zd.NARROWWEEKDAYS[(p+MbW)%7]);p=[];for(var U=new Date(t.start.year,t.start.month);U.getFullYear()<t.end.year||U.getFullYear()===t.end.year&&U.getMonth()<=t.end.month;){var x=p,A=x.push,m=U.getFullYear(),b=U.getMonth(),f=t,B=void 0,R=[],V=Object.freeze({extraCssClass:"invisible",debugClass:""}),Q=new Date(m,b),C=zP$(Q);Q=Q.getDay();for(var d=zP$(new Date);C.month===
b;){Q!==MbW&&B||(B=Array.from({length:7}).fill(V),R.push(B));var I={date:{year:m,month:b,day:C.day},extraCssClass:"",debugClass:""};f.selectedDate&&I.date&&O2O(I.date,f.selectedDate)&&(I.extraCssClass+=" selected");if(XPD(C,f.start)||XPD(f.end,C))I.extraCssClass+=" disabled";O2O(C,d)&&(I.extraCssClass+=" today");I.extraCssClass=I.extraCssClass.trim();B[(Q-MbW+7)%7]=I;C=au$(C);Q=(Q+1)%7}A.call(x,{weeks:R,monthLabel:zd.SHORTMONTHS[b]+" "+m,year:m,month:b,monthLabelExtraCssClass:R[0][2]===V?"shift-down-label":
""});U.setMonth(U.getMonth()+1)}return{months:p,daysOfWeekLabel:E}}}}});
N9.prototype.onEscOrClickingOutside=N9.prototype.onEscOrClickingOutside;N9.prototype.scrollToDate=N9.prototype.scrollToDate;_.N([_.e(),_.P("design:type",Object)],N9.prototype,"calendarConfig",void 0);_.N([_.e(),_.P("design:type",Object)],N9.prototype,"skipNextOpenDialog",void 0);_.N([_.e(),_.P("design:type",Object)],N9.prototype,"errorMessage",void 0);_.N([_.e(),_.P("design:type",Object)],N9.prototype,"previousMonthLabel",void 0);
_.N([_.e(),_.P("design:type",Object)],N9.prototype,"nextMonthLabel",void 0);_.N([_.Nl("#textbox"),_.P("design:type",HTMLInputElement)],N9.prototype,"textbox",void 0);_.N([_.Nl("#calendar-dialog"),_.P("design:type",Object)],N9.prototype,"dialog",void 0);_.N([_.Nl("#calendar-main"),_.P("design:type",Object)],N9.prototype,"JSC$16137_calendarMain",void 0);_.N([_.Nl("#date-picker"),_.P("design:type",HTMLElement)],N9.prototype,"dropdownButton",void 0);
_.N([_.Z("calendarConfig.selectedDate"),_.P("design:type",String),_.P("design:paramtypes",[])],N9.prototype,"dateText",null);_.N([_.Z("calendarConfig","calendarConfig.selectedDate"),_.P("design:type",Object),_.P("design:paramtypes",[])],N9.prototype,"renderData",null);_.N([_.GI("renderData","calendarConfig.selectedDate"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],N9.prototype,"scrollToDate",null);
_.N([_.lc("iron-overlay-canceled"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],N9.prototype,"onEscOrClickingOutside",null);_.N([_.p4({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],N9);
_.G(N9,"ytd-calendar-date-picker",function(){if(Ber!==void 0)return Ber;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Ber=t},{mode:2});var w0X=_.zF("UTC_OFFSET_FORMAT",{utc_offset:(new BL("Z")).format(new Date)}),Rn3=(new Date).getTimezoneOffset()*-60,Vb4=new Date,Q5Z,Cxo=ff(Vb4.getTimezoneOffset());Q5Z=Khm(yJr(Cxo,Vb4));var j5f=_.zF("LOCAL_TIME_GMT_LABEL",{gmt_text:Q5Z.replace("+0","+").replace("-0","-").replace(":00","")}),Dz=function(){var t=_.z.apply(this,arguments)||this;t.selectedTimeIndex=0;t.selectedTimezoneIndex=0;t.timeOfDayOptions=fbr;return t};
_.u(Dz,_.z);_.Y=Dz.prototype;_.Y.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var t=ePK();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=t,this.selectedTimeIndex=0;else{var E=lul(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},t,{selectedDate:E.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(p){return p.secondsSinceMidnight===E.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.Y.onDatePicked=function(t){this.selectedDate=t.detail};
_.Y.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.kT(this.hostElement,"ytd-date-time-selection-cancelled")};
_.Y.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var t=this.selectedDate;t=new Date(t.year,t.month,t.day);_.kT(this.hostElement,"ytd-date-time-selection-update",Math.floor(t.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+t.getTimezoneOffset()*60))}};
_.Y.getTimezoneFormat=function(t){return t.localizedDisplayText?t.localizedDisplayText:_.zF("TIMEZONE_FORMAT",{utc_offset_text:""+t.localizedUtcOffset,city_name:""+t.localizedName})};
_.Y.updateSelectedTimeIndexFromBinding=function(t){this.selectedTimeIndex=t.detail.value};
_.Y.updateSelectedTimezoneIndexFromBinding=function(t){this.selectedTimezoneIndex=t.detail.value};
_.aE.Object.defineProperties(Dz.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var t=this.data.timezoneOptions;var E={name:"Etc/Unknown",localizedName:_.zF("LOCAL_TIME_LABEL"),localizedUtcOffset:w0X,utcOffsetSec:""+Rn3,localizedDisplayText:j5f};t?t.length&&t[0].name!==E.name&&(t[0].localizedDisplayText||(E.localizedDisplayText=""),t.unshift(E)):t=[E];return t}}},
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]}}});
Dz.prototype.onDateTimeTimezoneChange=Dz.prototype.onDateTimeTimezoneChange;Dz.prototype.onDatePicked=Dz.prototype.onDatePicked;Dz.prototype.updateDefaultSelectedValue=Dz.prototype.updateDefaultSelectedValue;_.N([_.e(),_.P("design:type",Object)],Dz.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Dz.prototype,"calendarConfig",void 0);_.N([_.e(),_.P("design:type",Object)],Dz.prototype,"selectedDate",void 0);_.N([_.e(),_.P("design:type",Object)],Dz.prototype,"selectedTimeIndex",void 0);
_.N([_.e(),_.P("design:type",Object)],Dz.prototype,"selectedTimezoneIndex",void 0);_.N([_.Nl("#time-listbox"),_.P("design:type",Object)],Dz.prototype,"timeListBox",void 0);_.N([_.Nl("#timezone-listbox"),_.P("design:type",Object)],Dz.prototype,"timezoneListBox",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Dz.prototype,"rendererStamperBehavior",void 0);_.N([_.Z("data.timezoneOptions"),_.P("design:type",Object),_.P("design:paramtypes",[])],Dz.prototype,"timeZones",null);
_.N([_.P3("data","timeZones"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Dz.prototype,"updateDefaultSelectedValue",null);_.N([_.Z("selectedTimezoneIndex","timeZones"),_.P("design:type",Object),_.P("design:paramtypes",[])],Dz.prototype,"selectedTimezone",null);_.N([_.Z("selectedTimeIndex"),_.P("design:type",Object),_.P("design:paramtypes",[])],Dz.prototype,"selectedTime",null);
_.N([_.lc("ytd-calendar-date-selected"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Dz.prototype,"onDatePicked",null);_.N([_.GI("selectedTimezone","selectedTime","selectedDate"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Dz.prototype,"onDateTimeTimezoneChange",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],Dz);
_.G(Dz,"ytd-date-time-picker-renderer",function(){if(Ywf!==void 0)return Ywf;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Ywf=t},{mode:1});var r5G;var sL=function(){var t=_.z.apply(this,arguments)||this;t.boundOnTapDismissButton=function(){t.dismissTapHandler()};
t.dismissButtonOverrides={size:"XS"};return t};
_.u(sL,_.z);sL.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}}}}}};
sL.prototype.dismissTapHandler=function(){_.kT(this.hostElement,"yt-backstage-attachment-dismissed")};
sL.prototype.computeAttachmentType=function(t){return t?t.backstageImageRenderer?"image":t.videoRenderer?"video":"none":"none"};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],sL.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],sL.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],sL.prototype,"attachmentPreview",void 0);_.N([_.e(),_.P("design:type",Object)],sL.prototype,"dismissButton",void 0);_.N([_.e(),_.P("design:type",Object)],sL.prototype,"boundOnTapDismissButton",void 0);
_.N([_.e(),_.P("design:type",Object)],sL.prototype,"dismissButtonOverrides",void 0);_.N([_.e({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.P("design:type",String)],sL.prototype,"attachmentType",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],sL);
_.G(sL,"ytd-backstage-dismissable-attachment",function(){if(r5G!==void 0)return r5G;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return r5G=t},{mode:1});var k13;var LP=function(){var t=_.z.apply(this,arguments)||this;t.selectedVideoId=void 0;t.picker=void 0;t.dismissButtonOverrides={size:"XS"};t.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return t};
_.u(LP,_.z);_.Y=LP.prototype;_.Y.onServiceRequestCompleted=function(t){t.stopPropagation()};
_.Y.handleAddVideoPreviewAction=function(t){t=this.get("addVideoPreviewAction",t);this.onGetVideoPreviewSuccess(t)};
_.Y.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}}}}}};
_.Y.onLaunchVideoPicker=function(t){var E=this,p=_.R4(this.get("addVideoLinkAction.title",t)),U=this.get("addVideoLinkAction.onePickHostId",t);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",t);U&&(this.picker||(p=_.xeZ(_.qgi(U).setTitle(p).addView(tff()).addView(cH0()),function(x){E.onPickVideo(x)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",t)||p.addView("youtube"),this.picker=p.build()),this.picker.setVisible(!0))};
_.Y.onPickVideo=function(t){if(t)if(t.action==="cancel")_.kT(this.hostElement,"yt-video-link-button-cancel");else if(t.action==="picked"){t=t.docs;if(!t||t.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(t=(t==null?0:t.length)?t[0]:void 0)?t.id:void 0;this.setVideoPreview()}};
_.Y.setVideoPreview=function(){var t=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){t.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.Y.onGetVideoPreviewSuccess=function(t){if(t&&t.videoPreview&&t.cancelButton)this.videoPreview=t.videoPreview,this.cancelButton=t.cancelButton,_.kT(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.Y.onGetVideoPreviewError=function(){this.cancel()};
_.Y.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.kT(this.hostElement,"yt-video-link-cancel")};
_.Y.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
LP.prototype.onServiceRequestCompleted=LP.prototype.onServiceRequestCompleted;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],LP.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],LP.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],LP.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],LP.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],LP.prototype,"videoPreview",void 0);_.N([_.e(),_.P("design:type",Object)],LP.prototype,"cancelButton",void 0);_.N([_.e(),_.P("design:type",Object)],LP.prototype,"getVideoPreviewCommand",void 0);_.N([_.e(),_.P("design:type",Object)],LP.prototype,"dismissButtonOverrides",void 0);
_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],LP.prototype,"onServiceRequestCompleted",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],LP);
_.G(LP,"ytd-backstage-video-link-attachment",function(){if(k13!==void 0)return k13;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return k13=t},{mode:1});var ds0;var uVZ;var J5X;var PB=function(){return _.z.apply(this,arguments)||this};
_.u(PB,_.z);PB.prototype.dataChanged=function(){this.active=!1};
PB.prototype.onTap=function(){_.kT(this.hostElement,"yt-select-emoji-suggestion",this.data)};
PB.prototype.identity=function(t){return t};
_.aE.Object.defineProperties(PB.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var t,E,p,U;if((t=this.data)==null?0:(E=t.image)==null?0:(p=E.thumbnails)==null?0:(U=p[0])==null?0:U.url)return t=this.data.image.thumbnails[0].url,t.startsWith("data:image/svg+xml")?Pw(t):_.S8(t)}}});
PB.prototype.dataChanged=PB.prototype.dataChanged;_.N([_.e(),_.P("design:type",Object)],PB.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],PB.prototype,"active",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],PB.prototype,"dataChanged",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],PB.prototype,"imageSrc",null);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],PB);
_.G(PB,"ytd-emoji-suggestion",function(){if(J5X!==void 0)return J5X;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return J5X=t},{mode:1});var Ibs=/.*([:@#].*?)$/,Tv=function(){var t=_.z.apply(this,arguments)||this;t.suggestions=[];t.suggestionIndex=-1;t.JSC$16165_lastSuggestionRange=null;return t};
_.u(Tv,_.z);_.Y=Tv.prototype;_.Y.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.Y.getSuggestions=function(t){var E=[],p=$8G(this.emojiManager,t.substr(0,3));if(p)for(var U in p)if(U.toLocaleLowerCase().indexOf(t)===0){var x=p[U];if(x&&x.emojiId){x=rw(this.emojiManager,x.emojiId);var A=void 0,m=void 0,b=void 0,f=void 0,B=((A=x)==null?0:A.isCustomEmoji)?(m=x)==null?void 0:(b=m.shortcuts)==null?void 0:b[0]:(f=x)==null?void 0:f.emojiId;A=void 0;E.push({suggestion:{image:(A=x)==null?void 0:A.image,alt:B,text:U}});if(E.length>=64)break}}return E?E.sort(function(R,V){return V.suggestion.text<
R.suggestion.text?-1:V.suggestion.text===R.suggestion.text?0:1}):null};
_.Y.insertSuggestion=function(t){_.kT(this.hostElement,"yt-insert-suggestion",{range:this.JSC$16165_lastSuggestionRange,text:t.alt});this.dropdown.opened=!1};
_.Y.updateSuggestionsAtCaret=function(t){this.updateSuggestions(t,this.retrieveTextBeforeRange(t))};
_.Y.offsetStartOfRangeBy=function(t,E){t.startOffset>=E&&t.setStart(t.startContainer,t.startOffset-E)};
_.Y.updateSuggestions=function(t,E){var p=this;this.JSC$16165_lastSuggestionRange&&(this.JSC$16165_lastSuggestionRange.detach(),this.JSC$16165_lastSuggestionRange=null);if((E=Ibs.exec(E))&&E.length&&(E=E[E.length-1].toLocaleLowerCase(),E.length>2||E===":_")&&(this.offsetStartOfRangeBy(t,E.length),this.JSC$16165_lastSuggestionRange=t,(t=this.getSuggestions(E))&&t.length)){this.suggestions=t;_.XE(this,function(){p.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(t.length-1);return}this.dropdown.opened=!1};
_.Y.onKeyDown=function(t){if(this.dropdown.opened)switch(t.key){case "Escape":this.dropdown.opened=!1;t.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);t.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);t.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),t.preventDefault()}};
_.Y.onKeyUp=function(t,E){switch(t.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(E);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(E)}};
_.Y.onKeyPress=function(t){t.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),t.preventDefault())};
_.Y.changeSuggestionIndex=function(t){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(t+this.suggestions.length)%this.suggestions.length,t=this.dropdownContent.children[this.suggestionIndex],t.active=!0,this.dropdownContent.scrollTop=t.offsetTop)};
_.Y.retrieveTextBeforeRange=function(t){var E=t.startContainer;return E&&E.nodeType===Node.TEXT_NODE?E.textContent.substr(0,t.startOffset):""};
Tv.prototype.onKeyPress=Tv.prototype.onKeyPress;Tv.prototype.onKeyUp=Tv.prototype.onKeyUp;Tv.prototype.onKeyDown=Tv.prototype.onKeyDown;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Tv.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Array)],Tv.prototype,"suggestions",void 0);_.N([_.e(),_.P("design:type",_.CH)],Tv.prototype,"emojiManager",void 0);_.N([_.e(),_.P("design:type",Number)],Tv.prototype,"verticalSuggestionsOffset",void 0);
_.N([_.Nl("#dropdown"),_.P("design:type",Object)],Tv.prototype,"dropdown",void 0);_.N([_.Nl("#dropdown-content"),_.P("design:type",HTMLDivElement)],Tv.prototype,"dropdownContent",void 0);_.N([_.lc("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[KeyboardEvent]),_.P("design:returntype")],Tv.prototype,"onKeyDown",null);_.N([_.lc("keyup"),_.P("design:type",Function),_.P("design:paramtypes",[KeyboardEvent,Range]),_.P("design:returntype")],Tv.prototype,"onKeyUp",null);
_.N([_.lc("keypress"),_.P("design:type",Function),_.P("design:paramtypes",[KeyboardEvent]),_.P("design:returntype")],Tv.prototype,"onKeyPress",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-emoji-input"})],Tv);
_.G(Tv,"ytd-emoji-input",function(){if(uVZ!==void 0)return uVZ;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return uVZ=t},{mode:2});var gBZ;var od=function(){var t=_.z.apply(this,arguments)||this;t.hasMaxOptions=!1;return t};
_.u(od,_.z);_.Y=od.prototype;_.Y.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.Y.setPrefilledChoices=function(t){var E=this;this.set("pollOptions",[]);var p;for(p=0;p<Math.min(t.length,this.data.maxPollOptions);p++)this.push("pollOptions",t[p].substring(0,this.data.maxPollOptionChars));for(;p<this.data.minPollOptions;p++)this.push("pollOptions","");this.hasMaxOptions=p>=this.data.maxPollOptions;_.XE(this,function(){for(var U=E.pollOptions,x=_.ZN(E.hostElement).querySelectorAll(".poll-option-input"),A=0;A<x.length;A++)x[A].value=U[A]})};
_.Y.focusChanged=function(){_.eU(this.hostElement)};
_.Y.onInput=function(){var t=this;_.qd(this,"onInput",function(){t.isValid()?_.kT(t.hostElement,"yt-commentbox-post-enable"):_.kT(t.hostElement,"yt-commentbox-post-disable")},300)};
_.Y.setPollOptions=function(){var t=[],E,p=((E=this.data)==null?0:E.minPollOptions)?this.data.minPollOptions:0;for(E=0;E<p;E++)t.push("");return t};
_.Y.addPollOption=function(){var t=this;_.kT(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.ir.addLowPriorityJob(function(){var E;(E=_.ZN(t.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||E.focus()})};
_.Y.onRemovePollOption=function(t){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.kT(this.hostElement,"yt-poll-attachment-dismiss")):(t=this.repeat.indexForElement(t.target.parentNode),t!==null&&(this.splice("pollOptions",t,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.kT(this.hostElement,"yt-commentbox-post-enable"))))};
_.Y.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.Y.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var t=0,E=this.pollOptions.length;t<E;t++)if(this.pollOptions[t].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.Y.getPollOptions=function(){return this.pollOptions};
_.Y.setPollOptionsFromInputs=function(){for(var t=_.ZN(this.hostElement).querySelectorAll(".poll-option-input"),E=0;E<t.length;E++)this.pollOptions[E]=t[E].value.trim()};
_.Y.clearPollOptions=function(){var t=_.ZN(this.hostElement).querySelectorAll(".poll-option-input");t=_.M(t);for(var E=t.next();!E.done;E=t.next())E.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.Y.getSimpleString=function(t){return _.R4(t)};
_.Y.updateValueFromBinding=function(t){if(t.target&&this.pollOptions){var E=Array.from(_.ZN(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(t.target);if(E>=0){var p;this.pollOptions[E]=(p=t.detail.value)!=null?p:"";this.notifyPath("pollOptions."+E)}}};
od.prototype.dataChanged=od.prototype.dataChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],od.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],od.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Array)],od.prototype,"pollOptions",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],od.prototype,"hasMaxOptions",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],od.prototype,"enableCreationBox",void 0);
_.N([_.Nl("#repeat"),_.P("design:type",SU)],od.prototype,"repeat",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],od.prototype,"dataChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-poll-attachment"})],od);
_.G(od,"ytd-poll-attachment",function(){if(gBZ!==void 0)return gBZ;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return gBZ=t},{mode:2});var Z60;var O6G;var X0s;var hnW;var WB=function(){return _.z.apply(this,arguments)||this};
_.u(WB,_.z);_.aE.Object.defineProperties(WB.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],WB.prototype,"rendererBehaviors",void 0);_.N([_.e(),_.P("design:type",Object)],WB.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],WB.prototype,"focused",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("focused"),_.P("design:type",Object),_.P("design:paramtypes",[])],WB.prototype,"ariaSelected",null);_.N([_.p4({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],WB);
_.G(WB,"yt-user-mention-suggestion-renderer",function(){if(hnW===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;X0s===void 0&&(X0s=document.createElement("template"));var U=X0s;p.call(E,U.content.cloneNode(!0),t.content.firstChild);hnW=t}t=hnW;return t},{mode:2});var abr;var en3;var $g=function(){var t=_.z.apply(this,arguments)||this;t.focusedSuggestionIndex=-1;return t};
_.u($g,_.z);_.Y=$g.prototype;_.Y.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.Y.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.Y.setFocusedSuggestionIndex=function(t){!this.data||!this.data.suggestions||t<0||t>=this.data.suggestions.length||(this.focusedSuggestionIndex=t,t=this.getSuggestionId(t),this._setFocusedSuggestionId(t))};
_.Y.advanceSuggestion=function(t){this.focusedSuggestionIndex===-1||t!==-1&&t!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+t),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.Y.ensureSuggestionVisible=function(t){t=this.getSuggestionId(t);t=_.ZN(this.hostElement).querySelector("[id="+t+"]");t!=null&&(t.offsetTop<this.hostElement.scrollTop?t.scrollIntoView(!0):t.offsetTop+t.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&t.scrollIntoView(!1))};
_.Y.getSuggestionId=function(t){return"user-mention-suggestion-"+t};
_.Y.onSuggestionTap=function(t){var E=_.k(t.model.item,c4W);this.ytRendererBehavior.logExplicitClick(E);_.kT(this.hostElement,"yt-user-mention-suggestion-selected",{data:E,index:t.model.index})};
_.Y.onSuggestionMouseMove=function(t){t.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(t.model.index)};
_.Y.isSuggestionFocused=function(t,E){return t===E};
_.Y.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.Y.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IU("focused-suggestion-id-changed",this.focusedSuggestionId))};
$g.prototype.focusedSuggestionIdChangedForBinding=$g.prototype.focusedSuggestionIdChangedForBinding;$g.prototype.onDomChange=$g.prototype.onDomChange;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],$g.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],$g.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],$g.prototype,"focusedSuggestionIndex",void 0);_.N([_.e({readOnly:!0}),_.P("design:type",String)],$g.prototype,"focusedSuggestionId",void 0);
_.N([_.lc("dom-change"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],$g.prototype,"onDomChange",null);_.N([_.GI("focusedSuggestionId"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$g.prototype,"focusedSuggestionIdChangedForBinding",null);_.N([_.p4({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],$g);
_.G($g,"yt-user-mention-suggestions-dropdown",function(){if(en3===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;abr===void 0&&(abr=document.createElement("template"));var U=abr;p.call(E,U.content.cloneNode(!0),t.content.firstChild);en3=t}t=en3;return t},{mode:2});var KP=function(){var t=_.z.apply(this,arguments)||this;t.suggestionsResponse=null;t.activeMention=null;t.selectionChangeListener=t.onSelectionChange.bind(t);t.handlesEnabled=_.r("enable_handles_in_mention_suggest_posts");t.handlesInMentionSuggestionsEnabled=_.r("handles_in_mention_suggest_posts");t.zeroPrefixMentionSuggestionEnabled=_.r("enable_zero_prefix_mention_suggestion_web");t.pendingQuery=null;t.flowNonce=null;return t};
_.u(KP,_.z);_.Y=KP.prototype;_.Y.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.Y.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.Y.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.Y.hasSuggestions=function(t){return!!(t&&t.suggestions&&t.suggestions.length>0)};
_.Y.onInput=function(){var t=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var E=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),p=this.activeMention.JSC$11621_getText().slice(-1)===" ",U=this.activeMention.JSC$11621_getText().slice(-2,-1)===" ",x="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11621_getText().slice(-2,
-1))>=0;x=this.zeroPrefixMentionSuggestionEnabled&&x;if(this.activeMention.isCollapsed()||(E||U||x)&&p)this.cancelActiveMention();else{var A=this.activeMention.JSC$11621_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.qd(this,"requestSuggestions",function(){t.requestSuggestions(A)},100)}}}};
_.Y.onServiceRequestSent=function(t){t.stopPropagation()};
_.Y.onServiceRequestCompleted=function(t){t.stopPropagation();t=t.detail.data;t.query&&(!this.pendingQuery||this.pendingQuery!==t.query)||!this.zeroPrefixMentionSuggestionEnabled&&t.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=t,this.hasSuggestions(t)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.Y.onServiceRequestError=function(t){t.stopPropagation()};
_.Y.onUserMentionSuggestionSelected=function(t){this.selectSuggestion(t.detail.data,t.detail.index)};
_.Y.onSelectionChange=function(){if(this.activeMention){var t=_.sR(),E=this.activeMention.JSC$11621_containsRange(t);t=t&&this.containsHelper(this.dropdown,t.getContainer());E||t||this.cancelActiveMention()}};
_.Y.containsHelper=function(t,E){var p;if(((p=window.ShadyDOM)==null?void 0:p.noPatch)===!0)return t.contains(E);for(;E;){if(E===t)return!0;E=E instanceof ShadowRoot?E.host:E.parentNode}return!1};
_.Y.maybeStartSuggest=function(){var t=_.sR();if(t&&t.isCollapsed()){var E=t.JSC$11621_getStartNode(),p=t.JSC$11621_getStartOffset();if(E instanceof Text&&!(p<1)){var U=E.textContent;!(U=U&&U.charAt(p-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(U)<0||(this.activeMention=_.oE(E,p-1,t.JSC$11621_getEndNode(),t.JSC$11621_getEndOffset()),this.flowNonce=$x(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.Y.updateActiveMention=function(){if(this.activeMention){var t=_.sR();t&&t.isCollapsed()&&(this.activeMention=_.oE(this.activeMention.JSC$11621_getStartNode(),this.activeMention.JSC$11621_getStartOffset(),t.JSC$11621_getEndNode(),t.JSC$11621_getEndOffset()))}};
_.Y.requestSuggestions=function(t){if(this.activeMention){var E={suggestions_query:t};this.pendingQuery=t;_.JZ(this.hostElement,[this.suggestionsEndpoint,E])}};
_.Y.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()};
_.Y.focusPreviousSuggestion=function(t){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),t.preventDefault())};
_.Y.focusNextSuggestion=function(t){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),t.preventDefault())};
_.Y.selectFocusedSuggestion=function(t){if(this.hasSuggestions(this.suggestionsResponse)){var E=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.k(E,c4W)&&(this.selectSuggestion(_.k(E,c4W),this.dropdown.focusedSuggestionIndex),t.preventDefault())}};
_.Y.selectSuggestion=function(t,E){if(t){var p=this.activeMention;if(p){var U=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&t.handle?_.fu(U,"\u00a0\u2068@"+t.handle+"\u2069\u00a0"):this.handlesEnabled?_.fu(U,"\u00a0"+t.displayName+"\u00a0"):_.fu(U,"\u00a0@"+t.displayName+"\u00a0");pB(U,"/channel/"+t.channelId);U.classList.add("yt-formatted-string","yt-simple-endpoint");U.setAttribute("spellcheck","false");p.isCollapsed()||p.JSC$11621_removeContents();p.insertNode(U,!0);t=document.createTextNode(" ");
U.parentNode.insertBefore(t,U.nextSibling);window.getSelection().collapse(t,1);E={suggestionSelected:{suggestionIndex:E}};if(this.zeroPrefixMentionSuggestionEnabled){var x;E.suggestionSelected.isZeroPrefix=((x=this.suggestionsResponse)==null?void 0:x.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",E);this.cancelActiveMention();_.kT(this.hostElement,"yt-mention-inserted")}}};
_.Y.getPositionTarget=function(t){return t&&t.getBrowserRangeObject()};
_.Y.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.Y.onFocusedSuggestionIdChanged=function(t){var E=_.jAJ(this.hostElement)[0];E&&(t.detail.value?E.setAttribute("aria-activedescendant",t.detail.value):E.removeAttribute("aria-activedescendant"))};
_.Y.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.Y.logGELEvent=function(t,E){t={eventType:t,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};E&&(t=Object.assign(t,E));_.MW("userMentionAutoCompleteBoxEvent",t)};
KP.prototype.onDomChange=KP.prototype.onDomChange;KP.prototype.onUserMentionSuggestionSelected=KP.prototype.onUserMentionSuggestionSelected;KP.prototype.onServiceRequestError=KP.prototype.onServiceRequestError;KP.prototype.onServiceRequestCompleted=KP.prototype.onServiceRequestCompleted;KP.prototype.onServiceRequestSent=KP.prototype.onServiceRequestSent;KP.prototype.onInput=KP.prototype.onInput;_.N([_.g(_.ou),_.P("design:type",Object)],KP.prototype,"ironA11yKeysBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],KP.prototype,"suggestionsEndpoint",void 0);_.N([_.e(),_.P("design:type",Object)],KP.prototype,"suggestionsResponse",void 0);_.N([_.e(),_.P("design:type",Object)],KP.prototype,"activeMention",void 0);_.N([_.Nl("#dropdown"),_.P("design:type",Object)],KP.prototype,"dropdown",void 0);_.N([_.Nl("#iron-dropdown"),_.P("design:type",Object)],KP.prototype,"ironDropdown",void 0);
_.N([_.lc("input"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],KP.prototype,"onInput",null);_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],KP.prototype,"onServiceRequestSent",null);_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],KP.prototype,"onServiceRequestCompleted",null);
_.N([_.lc("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],KP.prototype,"onServiceRequestError",null);_.N([_.lc("yt-user-mention-suggestion-selected"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],KP.prototype,"onUserMentionSuggestionSelected",null);
_.N([_.lc("dom-change"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],KP.prototype,"onDomChange",null);_.N([_.p4({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],KP);
_.G(KP,"yt-user-mention-autosuggest-input",function(){if(O6G===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;Z60===void 0&&(Z60=document.createElement("template"));var U=Z60;p.call(E,U.content.cloneNode(!0),t.content.firstChild);O6G=t}t=O6G;return t},{mode:2});var vB=null;
_.yx({is:"ytd-commentbox",_template:function(){if(ds0!==void 0)return ds0;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return ds0=t},
behaviors:[_.SVl.YtHostElementBehavior,_.ou,_.oO.YtActionHandlerBehavior,_.RO.YtComponentBehavior,_.e4.YtRendererstamperBehavior,_.HnZ.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(t,E){return _.hj(t.entities,"aadcGuidelinesStateEntityPayload",E)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(t,E){return _.hj(t.entities,"commentboxStateEntity",E)},
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 _.kt}},
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:_.r("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.r("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",_.zI(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(t){this.fire(t?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(t){this.set("submitButtonDisabled",void 0);this.clear();t&&this.computeIsEmojiButtonDisplayed_(t)&&(t=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&t.updateEmojiCategories()},
observePrefilledImage_:function(t,E,p){this.isValidPrefilledImage_(t,E,p)&&(this.prefilledAttachment_="image",this.prefilledImageData_=E,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(t,E){this.isValidPrefilledVideo_(t,E)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(t){t&&t.pollData&&t.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(t.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Lm();this.focus()},
detached:function(){document.removeEventListener("tap",_.zI(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(t){t=t.detail;t=t.isCustomEmoji?t.shortcuts[0]:t.emojiId;var E=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(E,t);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var t=_.sR();if(t){t=t.getBrowserRangeObject();for(var E=t.commonAncestorContainer;E;){if(E===this.getEditableTextArea_())return t;E=E.parentNode}}t=this.getEditableTextArea_();t=_.Tx(t,t.childNodes.length);t.select();return t.getBrowserRangeObject()},
insertTextWithEmojis_:function(t,E,p){(E=this.emojiManager.createDocumentFragment(E,!0,!1,p===void 0?!0:p))&&E.childNodes.length!==0&&(t.collapsed||t.deleteContents(),p=E.lastChild,t.insertNode(E),_.Czp(p).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var t=_.sR();if(t){var E=t.JSC$11621_getStartNode(),p=t.JSC$11621_getEndNode();if(nUi(E)&&nUi(p)){var U=t.JSC$11621_getStartOffset(),x;if(_.lf&&E.nodeType===Node.ELEMENT_NODE&&(x=_.nsX(E)))_.Tx(x,0).select();else{x=ZV(E)?E:_.tg(E,ZV);var A=ZV(p)?p:_.tg(p,ZV);if(x||A)if(t.isCollapsed()){if(E.nodeType===Node.TEXT_NODE){t=!0;U===E.length&&(t=!1);if(vB==="end"||vB==="right")t=!1;E=E.parentNode;t=[].concat(_.KB(E.parentNode.childNodes)).indexOf(E)+(t?0:1);_.Tx(E.parentNode,
t).select()}}else x?x.previousSibling&&x.previousSibling.length>0?_.oE(p,t.JSC$11621_getEndOffset(),x.previousSibling,x.previousSibling.length-1).select():(E=document.createTextNode("\u200b"),x.parentNode.insertBefore(E,x),_.oE(p,t.JSC$11621_getEndOffset(),E,0).select()):A&&(A.nextSibling&&A.nextSibling.length>0?_.oE(E,t.JSC$11621_getStartOffset(),A.nextSibling,1).select():(p=document.createTextNode("\u200b"),A.parentNode.insertBefore(p,A.nextSibling),_.oE(E,t.JSC$11621_getStartOffset(),p,p.length).select()));
vB=null}}else vB=null}else vB=null},
leftKeyPressed_:function(){vB="left"},
rightKeyPressed_:function(){vB="right"},
endKeyPressed_:function(){vB="end"},
maybeDeleteChip_:function(){var t=TAl(!0);if(t){var E=_.sR(),p=E.JSC$11621_getStartNode();E=E.JSC$11621_getStartOffset();_.P6(p,E,t,t.childNodes.length).select()}},
maybeBackspaceChip_:function(){var t=TAl(!1);if(t){var E=_.sR(),p=E.JSC$11621_getStartNode();E=E.JSC$11621_getStartOffset();_.P6(p,E,t,0).select()}},
maybeBackspaceChipWordMode_:function(t){var E=_.sR();if(E.isCollapsed()){var p=E.JSC$11621_getStartNode();E=E.JSC$11621_getStartOffset();var U=oU_(p,E,!0);U&&(_.P6(p,E,U,0).select(),document.execCommand("delete"),t.preventDefault(),t.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(t){var E=_.sR();if(E.isCollapsed()){var p=E.JSC$11621_getStartNode();E=E.JSC$11621_getStartOffset();var U=oU_(p,E,!1);U&&(_.P6(p,E,U,U.childNodes.length).select(),document.execCommand("delete"),t.preventDefault(),t.stopImmediatePropagation())}},
onTap_:function(t){if(!t.defaultPrevented&&(t.currentTarget.tagName==="YTD-COMMENTBOX"&&ZV(t.target)&&t.preventDefault(),this.isEmojiPickerDisplayed)){var E=this.$$("#emojis"),p=this.$$("#emoji-button"),U=this.getEditableTextArea_();if((t=t.path?t.path:t.composedPath&&t.composedPath())&&!t.includes(E)&&!t.includes(U)&&!t.includes(p))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(t,E,p){return t==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&E!==void 0&&E.encryptedBlobId!==null&&E.sourceExternalVideoId!==null&&p!==void 0&&p.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(t,E){return t==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!E&&!!E.videoRenderer&&!!E.videoRenderer.videoId},
isValidPrefilledAttachment_:function(t,E,p){return this.isValidPrefilledImage_(t,E,p)||this.isValidPrefilledVideo_(t,p)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.r("enable_multi_image_post_creation")){var t=this.$$("ytd-backstage-multi-image-select-renderer");t&&t.hasImages()&&t.cancel()}else(t=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&t.cancel();(t=this.$["poll-attachment"])&&this.hasPoll_&&t.clearPollOptions();(t=this.$["image-poll-attachment"])&&this.hasImagePoll_&&t.resetPollOptions();(t=this.$["quiz-attachment"])&&this.hasQuiz_&&t.resetQuizOptions();
(t=this.$["video-link-attachment"])&&this.hasVideo_&&t.cancel();(t=this.$["access-restrictions-selector"].firstElementChild)&&t.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 _.ZN(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.ZN(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(t,E){t=Dt0(t,this.emojiManager,E).cloneNode(!0);for(E=t.firstChild;E;)if(E.nodeType!==1)E=E.nextSibling;else switch(E.tagName){case "BR":var p=_.Mh();_.Wip(p,E);E=p.nextSibling;break;case "DIV":(p=E.lastChild)&&E.nextSibling&&_.qh(_.Mh(),p);E.previousSibling&&(E.previousSibling.nodeType===1||E.previousSibling.nodeType===3&&!E.previousSibling.textContent.endsWith("\n"))&&_.ik(_.Mh(),E);p&&p.nodeName==="BR"&&_.ng(p);p=E;E.hasChildNodes()?(E=E.firstChild,
_.$XT(p)):(E=E.nextSibling,_.ng(p));break;default:E=E.nextSibling}return W_0(t)},
onAddImageError_:function(t){t.stopPropagation();this.errorMessage_=_.wN(t.detail)},
setTextAreaValue_:function(t){t||(t="");var E=this.getEditableFormattedString_();E.text="";this.getEditableTextArea_().innerText="";typeof t==="string"&&(t={runs:[{text:t}]});E.text=t},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();vB=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var t=this.getEditableTextArea_();t&&(_.Tx(t,t.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.qO("HTML_DIR")==="rtl"){var t=this.getEditableTextArea_(),E=this.getTextAreaValue()!==""?"auto":"rtl";t.setAttribute("dir",E)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var t;return MlO((t=this.$["quiz-attachment"])==null?void 0:t.getExplanationText())||MlO(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var t=null;if(this.isEmojiButtonDisplayed){var E=this.getInputRange_();E&&(t=this.emojiInput.retrieveTextBeforeRange(E))}this.insertText_(t,!0);this.updateCharCount_();this.setSubmitButton_();t=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=t.scrollHeight>t.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var t=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:t})},
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(t){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(t)},
onPasteEmoji_:function(t){t.preventDefault();t.stopImmediatePropagation();t=t.clipboardData.getData("text/plain");this.insertText_(t,!1,!1)},
insertText_:function(t,E,p){E=E===void 0?!1:E;p=p===void 0?!0:p;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&t){var U=this.getInputRange_().cloneRange();this.emojiManager&&U&&(E&&this.emojiInput.offsetStartOfRangeBy(U,t.length),this.insertTextWithEmojis_(U,t,p),NAL(this.getEditableTextArea_().lastChild)||(U=this.getInputRange_().cloneRange()),U&&(this.emojiInput.updateSuggestions(U,t),this.updateSuggestionOffset_(U)))}},
setSubmitButton_:function(){if(this.data){var t=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",E=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(t||E){var p=this.getTextAreaValue().trim();E=p===this.previousText_;p=!p||this.aboveCharLimit_;t&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(p=this.aboveCharLimit_);this.submitButtonDisabled=
E||p||!this.getTextLength();t&&_.r("enable_post_scheduling")&&(this.submitButtonDisabled=E&&!this.scheduledPublishTimeSec_||p)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.R4,computeCreationBoxClass_:function(t){return t?"focused":"not-focused"},
computeFooterMessageClass_:function(t,E){return E?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(t,E){return E?E:t},
computeFooterMessageHidden_:function(t,E){return!E&&!t},
computePlaceholderText_:function(t,E,p){return(p==="video"||p==="image")&&(t==null?0:t.prefilledPlaceholderText)?t==null?void 0:t.prefilledPlaceholderText:E==="poll"||E==="image-poll"?t==null?void 0:t.pollPostPlaceholderText:E==="quiz"?t==null?void 0:t.quizPostPlaceholderText:E==="image"?t==null?void 0:t.imagePostPlaceholderText:t==null?void 0:t.placeholderText},
computeHideAttachmentButtons_:function(t,E,p,U){return t===void 0?!1:U&&this.getSimpleString(U)===this.getSimpleString(t.rateLimitErrorMessage)?!0:E!=="none"||p!=="none"||!t.videoLinkButton&&!t.pollButton&&!t.imagePollButton&&!t.quizButton&&!t.imageButton},
computeHideDismissableAttachment_:function(t){return t!=="image"&&t!=="video"},
computeHasVideo_:function(t){return t==="video"},
computeHasImage_:function(t){return t==="image"},
computeHasPoll_:function(t){return t==="poll"},
computeHasImagePoll_:function(t){return t==="image-poll"},
computeHasQuiz_:function(t){return t==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(t){return t&&t.backstageAttachment?t.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!t.backstageAttachment.quizRenderer&&!t.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(t){if(this.isValidPrefilledAttachment_(t.purpose,t.prefilledImageData,t.backstageAttachment))return t.backstageAttachment},
computeEditAttachment_:function(t){if(this.computePrefilledContent_(t)===void 0)return t.backstageAttachment},
computeAuthorThumbnailDimension_:function(t,E){return t&&!E?24:40},
computeImageUploadEndpoint_:function(t){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",t)},
computeRateLimitErrorCommands_:function(t){var E,p;return t==null?void 0:(E=t.advancedTierFeatures)==null?void 0:(p=E.rateLimit)==null?void 0:p.rateLimitCommands},
computeIsBackstageComment_:function(t){return!(!t||t!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(t){return this.get("submitButton.buttonRenderer.serviceEndpoint",t)||this.get("replyButton.buttonRenderer.serviceEndpoint",t)||this.get("postButton.buttonRenderer.serviceEndpoint",t)},
computeSubmitButtonOverride:function(){if(_.r("web_modern_buttons")){var t,E;return{segmentedPosition:this.dropdownSchedulePanel_||!((t=this.data)==null?0:(E=t.postOptionsMenu)==null?0:E.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.r("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(t,E){t=this.get("submitButton.buttonRenderer",t)||this.get("replyButton.buttonRenderer",t)||this.get("postButton.buttonRenderer",t);E&&(t=E);t&&(t=Object.assign({},t),t.serviceEndpoint=void 0,t.isDisabled=this.submitButtonDisabled);return t},
computeHasExternalLinksAccess_:function(t){if(_.r("enable_rfa_external_links")){var E,p,U;return(U=t==null?void 0:(E=t.advancedTierFeatures)==null?void 0:(p=E.externalLinks)==null?void 0:p.allowExternalLinks)!=null?U:!0}return!0},
computeIsEmojiButtonDisplayed_:function(t){return t.emojiButton&&t.emojiPicker&&t.emojiPicker.emojiPickerRenderer&&t.emojiPicker.emojiPickerRenderer.categories?t.emojiPicker.emojiPickerRenderer.categories.find(function(E){return E.emojiPickerCategoryRenderer?E.emojiPickerCategoryRenderer.emojiIds&&E.emojiPickerCategoryRenderer.emojiIds.length>0:E.emojiPickerUpsellCategoryRenderer?E.emojiPickerUpsellCategoryRenderer.emojis&&E.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(t){return t.charLimit?t.charLimit:null},
computeDropdownSchedulingPanel_:function(t,E){if(t==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&E)return E},
computeInlineSchedulingPanel_:function(t,E){if(t==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&E)return E},
computeHideAuthorThumbnail_:function(t,E){return t||this.computeUseIdentityChip_(E)},
computeHideIdentityChipRenderer_:function(t,E){return t||!this.computeUseIdentityChip_(E)},
computeUseIdentityChip_:function(t){return!!t&&!!t.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(t){var E,p,U,x;(t==null?0:(E=t.detail)==null?0:(p=E.endpoint)==null?0:p.ypcGetOffersEndpoint)||(t==null?0:(U=t.detail)==null?0:(x=U.endpoint)==null?0:x.ypcOffersEndpoint)?(t.stopPropagation(),_.JZ(this,[t.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",t)&&(t.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(t){this.addedAttachment="video";this.selectedVideoId_=t.detail.videoId},
commentboxStateEntityChanged_:function(t){var E=this;(t==null?void 0:t.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(t==null?void 0:t.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){E.focus()})},
onYtServiceRequestSent_:function(t,E){if(E.actions)for(t=_.M(E.actions),E=t.next();!E.done;E=t.next())E.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(t){this.isLoading=!1;var E=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",t),p,U,x,A=t==null?void 0:(p=t.detail)==null?void 0:(U=p.data)==null?void 0:(x=U.actionResult)==null?void 0:x.commentboxStateEntityKey;if(E)this.errorMessage_=E;else if(A){var m;this.dismissData_=t==null?void 0:(m=t.detail)==null?void 0:m.data;this.commentboxStateKey_=A}else{this.clear();var b;this.fire("yt-commentbox-dismiss",t==null?void 0:(b=t.detail)==
null?void 0:b.data)}},
onYtServiceRequestError_:function(t){t.stopPropagation();this.isLoading=!1;var E,p;if(((E=this.data)==null?void 0:E.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((p=this.data)==null?void 0:p.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(E=this.get("detail.error.args",t)||[],E.length>1&&E[1].message){this.handlePostsServiceRequestError_(E[1].message);return}(t=this.get("detail.error.message",t))?this.errorMessage_=this.data.errorMessage||_.wN(t):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(t){if(_.r("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var E=_.M(this.rateLimitErrorCommands),p=E.next();!p.done;p=E.next())if(p=p.value,p.errorLabel===t){_.n4(p.command,this.hostElement);return}this.errorMessage_=_.wN(t)},
submitIfNotBackstagePost_:function(t){if(!this.isBackstagePost)this.onSubmit_(t)},
onSubmit_:function(t){var E=this,p,U,x,A,m,b,f,B,R,V,Q,C,d,I,O;return _.q(function(a){switch(a.nextAddress){case 1:t.stopPropagation();if(!E.serviceEndpoint||!E.isValidInput_())return a.return();if(E.shouldShowPostAadcNotice_())return E.showPostAadcNotice_(),a.return();if(E.shouldShowCommentAadcNotice_())return E.showCommentAadcNotice_(),a.return();if(!(E.$$("ytd-backstage-multi-image-select-renderer")&&E.hasImage_&&_.r("enable_multi_image_post_creation"))){a.jumpTo(2);break}p=E.$$("ytd-backstage-multi-image-select-renderer");
return a.yield(p.getAllUploadStatuses(),3);case 3:U=a.yieldResult;if(!U)return a.return();x=_.M(U);for(A=x.next();!A.done;A=x.next())if(m=A.value,m.encryptedBlobId===void 0)return E.isLoading=!1,f=b=void 0,E.errorMessage_=(f=(b=E.imageUploadEndpoint_)==null?void 0:b.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?f:null,a.return();return a.return(E.submitForm_(void 0,void 0,void 0,void 0,p.images,E.taggedVideoId_));case 2:if(!E.hasImagePoll_||!E.$["image-poll-attachment"]){a.jumpTo(4);
break}return a.yield(E.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:B=a.yieldResult;if(!B)return a.return();R=_.M(B);for(V=R.next();!V.done;V=R.next())if(Q=V.value,!Q.encryptedBlobId)return E.isLoading=!1,C=void 0,E.errorMessage_=(C=E.data.errorMessage)!=null?C:null,a.return();case 4:I=(d=E.$$("ytd-backstage-image-select-renderer"))&&d.uploadPromise(),O=E.getSharedPostId_(),I?I.then(function(){E.submitForm_.apply(E,_.KB(_.t9.apply(0,arguments)))}).catch(function(F){E.isLoading=!1;
E.errorMessage_=_.wN(F.message)}):E.selectedVideoId_?E.submitForm_(void 0,E.selectedVideoId_):E.prefilledAttachment_==="image"?E.submitForm_(E.prefilledImageData_.encryptedBlobId,void 0,void 0,E.prefilledImageData_.sourceExternalVideoId,void 0,E.taggedVideoId_):E.prefilledAttachment_==="video"?E.submitForm_(void 0,E.data.backstageAttachment.videoRenderer.videoId):O?E.submitForm_(void 0,void 0,O):E.taggedVideoId_!==void 0?E.submitForm_(void 0,void 0,void 0,void 0,void 0,E.taggedVideoId_):E.submitForm_(),
_.Do(a)}})},
openSchedulingPanel:function(t){t&&t.scheduleButton&&t.scheduleButton.buttonRenderer&&(this.scheduleButton_=t.scheduleButton.buttonRenderer);t&&t.dateTimePicker&&this.set("data.schedulingDateTimePicker",t.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(t){t.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(t){t.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(t){t.stopPropagation();t.detail.alertMessage&&(this.alertMessage_=t.detail.alertMessage)},
onImageSelected_:function(t){t.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(t){t.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(t){t.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(t.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(t){t.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(t){var E=this.$["video-link-attachment"];E&&E.onLaunchVideoPicker(t)},
onAttachmentDismiss_:function(t){t.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"&&_.r("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.r("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 t;if(this.addedAttachment==="image-poll"&&((t=this.$["image-poll-attachment"])==null||!t.isValid()))return!1;var E;if(this.addedAttachment==="quiz"&&((E=this.$["quiz-attachment"])==null||!E.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;t=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(t=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")t=!0;return t||!!this.getTextAreaValue().trim()},
submitForm_:function(t,E,p,U,x,A){var m=this.getTextAreaValue().trim(),b={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&m===this.previousText_&&(m=void 0);m!==void 0&&(b.comment_text=m);this.isLoading=!0;A!=void 0&&(b.tagged_video_id=A);t?(b.image_blob_id=t,this.imagePreviewCoordinates_&&(b.image_preview_coordinates=this.imagePreviewCoordinates_)):E?b.attached_video_id=E:p?b.shared_post_id=p:x&&x.length>0&&(b.images_data=x.map(function(f){return{encryptedBlobId:f.encryptedBlobId,
previewCoordinates:f.previewCoordinates}}));
U&&(b.source_video_id=U);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(b.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(b.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(b.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());this.addedAttachment==="quiz"&&(b.quiz_options=
this.$["quiz-attachment"].getPostCreateOptions());_.r("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(b.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.JZ(this,[this.serviceEndpoint,b])},
onIsInputFocusChanged_:function(t,E){t?this.fire("yt-autonav-pause-focus"):E!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(t){var E=this.getEditableTextArea_();[].concat(_.KB(t.dataTransfer.items)).forEach(function(p){p.kind==="string"&&p.type.match("^text/plain")&&p.getAsString(function(U){E.appendChild(document.createTextNode(U))})});
t.preventDefault()},
preventDefault_:function(t){t.preventDefault()},
onSuggestionInsert_:function(t){this.insertTextWithEmojis_(t.detail.range,t.detail.text)},
onEmojiSuggestionClick_:function(t){this.emojiInput.insertSuggestion(t.detail)},
computeSubmitButtonClass_:function(t,E){return!E||t?"":"with-options"},
updateSuggestionOffset_:function(t){if(this.emojiInput&&_.ZN(this.emojiInput).querySelector("#dropdown")){var E=this.getEditableTextArea_().getBoundingClientRect().bottom,p=t.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(E-p)+5;E=this.getEditableTextArea_().getBoundingClientRect().left;t=t.getBoundingClientRect().left-E;_.ZN(this.emojiInput).querySelector("#dropdown").style.marginLeft=t+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(t){if(_.r("enable_post_scheduling")&&this.data&&this.data.purpose){t=t.detail;if(Math.floor(Date.now()/1E3)>=t)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var E=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(E)||E!==t?this.scheduledPublishTimeSec_=t:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=t;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var t=["image-button","image-poll-button","poll-button","quiz-button"];_.r("auto_convert_posts_video_tag")||t.push("video-link-button");return t},
getButtonRenderer:function(t,E){if(t)switch(E){case "video-link-button":var p;return((p=t.videoLinkButton)==null?void 0:p.buttonRenderer)||void 0;case "image-button":var U;return((U=t.imageButton)==null?void 0:U.buttonRenderer)||void 0;case "poll-button":var x;return((x=t.pollButton)==null?void 0:x.buttonRenderer)||void 0;case "image-poll-button":var A;return((A=t.imagePollButton)==null?void 0:A.buttonRenderer)||void 0;case "quiz-button":var m;return((m=t.quizButton)==null?void 0:m.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var t;return(t=this.data)==null||!t.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var t,E;return!((t=this.data)==null||!t.openAadcDialog)&&!((E=this.aadcGuidelinesState_)==null||!E.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.qO("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var t;((t=this.data)==null?0:t.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.wx("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(t){t.clickTrackingParams&&_.Pu().clickCommand(t);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.du(this,"yt-close-popup-action")},
onHideIdentityChip:function(t){var E;this.set("data.placeholderText",(E=t.hideIdentityChipAction)==null?void 0:E.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var yr=function(){var t=_.z.apply(this,arguments)||this;t.isOpen=!1;t.modern=_.r("web_modern_buttons");t.roundedContainer=!0;t.dropdownButtonOverride=_.r("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;t.inPopupContainer=!1;t.isCommentboxLoading=!1;var E=["image-button","image-poll-button","poll-button"];_.r("enable_quiz_creation")&&E.push("quiz-button");_.r("auto_convert_posts_video_tag")||E.push("video-link-button");t.attachmentButtonIds=E;t.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 t};
_.u(yr,_.z);_.Y=yr.prototype;_.Y.computeButtonOverride=function(){var t;return((t=this.data)==null?0:t.postOptionsMenu)&&_.r("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.Y.configureRendererStamper=function(){var t={"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]]"}}}}};_.r("auto_convert_posts_video_tag")||(t["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return t};
_.Y.ready=function(){var t=this,E=_.ZN(this.hostElement).querySelector("#placeholder-area"),p=function(U){t.onOpen(U)};
E.addEventListener("tap",p);E.addEventListener("keypress",p)};
_.Y.showButtonEduTooltip=function(){var t,E,p,U,x,A,m;if(_.r("enable_quiz_creation")&&((t=this.data)==null?0:(E=t.quizButton)==null?0:(p=E.buttonRenderer)==null?0:(U=p.hint)==null?0:(x=U.hintRenderer)==null?0:(A=x.content)==null?0:(m=A.bubbleHintRenderer)==null?0:m.text)&&(_.Li.getInstance(),t=P5(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(t==null?void 0:
t.length)>0)){this.ytComponentBehavior.resolveCommand(t[0],{form:{element:this.quizButton}});return}var b;if((b=this.data)==null?0:b.imagePollButtonTooltip)if(_.Li.getInstance(),b=P5(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(b==null?void 0:b.length)>0){this.ytComponentBehavior.resolveCommand(b[0],{form:{element:this.imagePollButton}});return}var f;_.r("enable_multi_image_post_creation")&&
((f=this.data)==null?0:f.multiImageButtonTooltip)&&(_.Li.getInstance(),f=P5(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(f==null?void 0:f.length)>0&&this.ytComponentBehavior.resolveCommand(f[0],{form:{element:this.imageButton}}))};
_.Y.onCreatePollAction=function(t){_.k(t,jJp)&&(this.JSC$16220_commentbox.addedAttachment="poll",this.openDialog())};
_.Y.onAddVideoLinkAction=function(t){if(_.k(t,RSs))this.JSC$16220_commentbox.onAddVideoLink(t)};
_.Y.onShowSchedulingPanelCommand=function(t){(t=_.k(t,PBr))&&this.openSchedulingPanel(t)};
_.Y.onCreateImagePollCommand=function(t){_.k(t,$7f)&&(this.JSC$16220_commentbox.openImagePollComponent(),this.openDialog())};
_.Y.onCreateQuizCommand=function(t){_.k(t,KIT)&&(this.JSC$16220_commentbox.openQuizComponent(),this.openDialog())};
_.Y.openSchedulingPanel=function(t){_.r("enable_post_scheduling")&&(this.openDialog(),this.JSC$16220_commentbox.openSchedulingPanel(t))};
_.Y.onCreateCommentAction=function(t){this.get("createCommentAction.contents",t)&&(this.JSC$16220_commentbox.clear(),this.closeDialog())};
_.Y.onOpen=function(t){t instanceof KeyboardEvent&&t.type==="keypress"&&t.keyCode!==13&&t.keyCode!==32||(this.data.prepareAccountEndpoint?_.kT(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.Y.onYtCommentboxDismiss=function(){this.closeDialog()};
_.Y.onYtCommentboxLoadingStart=function(t){t.stopPropagation();this.isCommentboxLoading=!0};
_.Y.onYtCommentboxLoadingEnd=function(t){t.stopPropagation();this.isCommentboxLoading=!1};
_.Y.onYtVideoLinkButtonCancel=function(t){t.stopPropagation();this.onOpen(t)};
_.Y.onYtVideoLinkSelected=function(t){t.stopPropagation();this.onOpen(t)};
_.Y.onIronSelect=function(t){t.stopPropagation();t.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=t.detail.item.value&&(this.accessRestriction?(this.accessRestriction=t.detail.item.value,this.onOpen(t)):this.accessRestriction=t.detail.item.value)};
_.Y.onYtNavigate=function(t){this.get("detail.endpoint.backstageImageUploadEndpoint",t)&&(this.JSC$16220_commentbox.addedAttachment="image",this.JSC$16220_commentbox.submitButtonDisabled=!0,this.onOpen(t))};
_.Y.onRequestSent=function(t){for(var E=_.M(t.detail),p=E.next();!p.done;p=E.next())_.k(p.value,ASG)&&(this.JSC$16220_commentbox.addedAttachment="image",this.JSC$16220_commentbox.submitButtonDisabled=!0,this.onOpen(t))};
_.Y.openDialog=function(){var t;(t=this.data)!=null&&t.isIneligibleForCommunityPagePostCreation||(this.JSC$16220_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$16220_commentbox.focus())};
_.Y.onPopupClosed=function(){_.Li.getInstance()};
_.Y.computeCreationDisabled=function(t){return!!t};
_.Y.computeIsCreationDialog=function(t){return!!t&&t==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.Y.computeDisabledPostButton=function(t){if(!t)return null;t.isDisabled=!0;return t};
_.Y.computeIsCreationDialogWithHeader=function(t){return!this.inPopupContainer&&!!t&&!!t.authorText&&t.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.Y.computeIsHeaderHidden=function(t,E){return!t||E};
_.Y.computeDropdownRendererClasses=function(t){return t?["text-secondary-style"]:[]};
_.Y.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var t=_.ZN(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;t&&t.reset()};
yr.prototype.onPopupClosed=yr.prototype.onPopupClosed;yr.prototype.onRequestSent=yr.prototype.onRequestSent;yr.prototype.onYtNavigate=yr.prototype.onYtNavigate;yr.prototype.onIronSelect=yr.prototype.onIronSelect;yr.prototype.onYtVideoLinkSelected=yr.prototype.onYtVideoLinkSelected;yr.prototype.onYtVideoLinkButtonCancel=yr.prototype.onYtVideoLinkButtonCancel;yr.prototype.onYtCommentboxLoadingEnd=yr.prototype.onYtCommentboxLoadingEnd;yr.prototype.onYtCommentboxLoadingStart=yr.prototype.onYtCommentboxLoadingStart;
yr.prototype.onYtCommentboxDismiss=yr.prototype.onYtCommentboxDismiss;yr.prototype.showButtonEduTooltip=yr.prototype.showButtonEduTooltip;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],yr.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],yr.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],yr.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],yr.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],yr.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],yr.prototype,"isOpen",void 0);_.N([_.e({computed:"computeButtonOverride(data)"}),_.P("design:type",Object)],yr.prototype,"buttonOverride",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],yr.prototype,"modern",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],yr.prototype,"roundedContainer",void 0);_.N([_.e(),_.P("design:type",Object)],yr.prototype,"dropdownButtonOverride",void 0);_.N([_.e({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.P("design:type",Boolean)],yr.prototype,"creationDisabled",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],yr.prototype,"enableCreationBox",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.P("design:type",Boolean)],yr.prototype,"isCreationDialog",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],yr.prototype,"inPopupContainer",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.P("design:type",Boolean)],yr.prototype,"isCreationDialogWithHeader",void 0);_.N([_.e(),_.P("design:type",Object)],yr.prototype,"accessRestriction",void 0);
_.N([_.e({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.P("design:type",Array)],yr.prototype,"dropdownRendererClasses",void 0);_.N([_.e(),_.P("design:type",Object)],yr.prototype,"isCommentboxLoading",void 0);_.N([_.e(),_.P("design:type",Array)],yr.prototype,"attachmentButtonIds",void 0);_.N([_.Nl("#image-button"),_.P("design:type",HTMLElement)],yr.prototype,"imageButton",void 0);
_.N([_.Nl("#image-poll-button"),_.P("design:type",HTMLElement)],yr.prototype,"imagePollButton",void 0);_.N([_.Nl("#quiz-button"),_.P("design:type",HTMLElement)],yr.prototype,"quizButton",void 0);_.N([_.Nl("#commentbox"),_.P("design:type",Object)],yr.prototype,"JSC$16220_commentbox",void 0);_.N([_.GI("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yr.prototype,"showButtonEduTooltip",null);
_.N([_.lc("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],yr.prototype,"onYtCommentboxDismiss",null);_.N([_.lc("yt-commentbox-loading-start"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],yr.prototype,"onYtCommentboxLoadingStart",null);
_.N([_.lc("yt-commentbox-loading-end"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],yr.prototype,"onYtCommentboxLoadingEnd",null);_.N([_.lc("yt-video-link-button-cancel"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],yr.prototype,"onYtVideoLinkButtonCancel",null);
_.N([_.lc("yt-video-link-selected"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],yr.prototype,"onYtVideoLinkSelected",null);_.N([_.lc("iron-select"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],yr.prototype,"onIronSelect",null);_.N([_.lc("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],yr.prototype,"onYtNavigate",null);
_.N([_.lc("yt-service-request-sent-button-renderer"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],yr.prototype,"onRequestSent",null);_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yr.prototype,"onPopupClosed",null);_.N([_.Ul({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],yr);
_.G(yr,"ytd-backstage-post-dialog-renderer",function(){if(p0X!==void 0)return p0X;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return p0X=t},{mode:1});var FXm;var zns;var SS=function(){return _.z.apply(this,arguments)||this};
_.u(SS,_.z);_.Y=SS.prototype;_.Y.computeHeartButtonStyle=function(t){return(t==null?0:t.styleType)?t.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.Y.onYtButtonTap=function(){if(this.data.isEnabled){var t=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(t=this.getEndpoint(t))&&_.X3().resolve(_.ei).resolveCommand(t,{form:{element:this.hostElement}})}else(t=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(t)};
_.Y.toggle=function(t){this.set("data.isHearted",t!==void 0?t:!this.data.isHearted)};
_.Y.getEndpoint=function(t){var E,p=(E=this.data)==null?void 0:E.heartEndpoint,U;E=(U=this.data)==null?void 0:U.unheartEndpoint;if(p&&E)return t?E:p};
_.Y.computeButtonAccessibility=function(t,E){var p,U,x=t==null?void 0:(p=t.heartedAccessibility)==null?void 0:(U=p.accessibilityData)==null?void 0:U.label,A,m;t=t==null?void 0:(A=t.unheartedAccessibility)==null?void 0:(m=A.accessibilityData)==null?void 0:m.label;return E?x:t};
_.aE.Object.defineProperties(SS.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 t;return _.r("kevlar_system_icons")&&!((t=this.data)==null||!t.isHearted)}}});
SS.prototype.onYtButtonTap=SS.prototype.onYtButtonTap;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],SS.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.aU),_.P("design:type",Object)],SS.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],SS.prototype,"data",void 0);_.N([_.Z("data.isHearted"),_.P("design:type",Object),_.P("design:paramtypes",[])],SS.prototype,"heartTooltip",null);
_.N([_.Z("data.isHearted"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],SS.prototype,"iconFilled",null);_.N([_.e({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.P("design:type",String)],SS.prototype,"buttonAccessibility",void 0);_.N([_.e({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.P("design:type",String)],SS.prototype,"heartButtonStyle",void 0);
_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],SS.prototype,"onYtButtonTap",null);_.N([_.Ul({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],SS);
_.G(SS,"ytd-creator-heart-renderer",function(){if(zns!==void 0)return zns;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return zns=t},{mode:1});var cB=function(){var t=_.z.apply(this,arguments)||this;t.hasCreatorReply=!1;t.buttonOverrides={size:"S",iconPosition:"icon-only"};t.replyButtonOverrides={size:"S",type:"text"};t.forceIconButton=!_.r("web_modern_buttons");t.modern=_.r("web_modern_buttons");t.buttonTooltipPosition="bottom";t.systemIcons=_.r("kevlar_system_icons");t.replyDialog=null;return t};
_.u(cB,_.z);_.Y=cB.prototype;
_.Y.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]]"}}}}}};
_.Y.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.Y.dataChange=function(){this.replyDialog&&_.ZN(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var t,E,p;this.isLiked=this.systemIcons&&!!((t=this.data)==null?0:(E=t.likeButton)==null?0:(p=E.toggleButtonRenderer)==null?0:p.isToggled)};
_.Y.computeShowVoteCountBeginning=function(t,E){return t===void 0||E===void 0?!0:t.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!E&&this.ytRendererBehavior.getSimpleString(E)!=="0"};
_.Y.computeShowVoteCountEnd=function(t,E){return t===void 0||E===void 0?!0:t.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!E&&this.ytRendererBehavior.getSimpleString(E)!=="0"};
_.Y.computeShowCommentCount=function(t,E){return t===void 0||E===void 0?!0:t.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!E&&this.ytRendererBehavior.getSimpleString(E)!=="0"};
_.Y.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.Y.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.Y.showReplyDialog=function(t){t&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.ZN(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=t,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.Y.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.Y.onRequestSent=function(t){t=_.M(t.detail);for(var E=t.next();!E.done;E=t.next())(E=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",E.value))&&this.showReplyDialog(E)};
_.Y.onYtNavigate=function(t){var E,p;(t=(E=_.k(t.detail.endpoint,_.M4r))==null?void 0:(p=E.dialog)==null?void 0:p.commentReplyDialogRenderer)&&this.showReplyDialog(t)};
_.Y.onYtServiceRequestSent=function(t,E){t.stopPropagation();if(E.actions)for(t=0;t<E.actions.length;t++){var p=_.k(E.actions[t],IGr);p&&this.handleUpdateCommentVoteAction(p)}};
_.Y.handleUpdateCommentVoteAction=function(t){this.voteCount=t.voteCount||_.wN("0");t.voteStatus==="LIKE"?this.JSC$16232_ytdDislikeToggleButtonRenderer.toggle(!1):t.voteStatus==="DISLIKE"?this.JSC$16232_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16232_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16232_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.Y.computeReplyButtonHidden=function(t){return t};
_.Y.computeReplyButtonBeginning=function(t){return(t==null?0:t.replyButton)&&t.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?t.replyButton:void 0};
_.Y.computeReplyButtonEnd=function(t){return(t==null?0:t.replyButton)&&t.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?t.replyButton:void 0};
_.Y.computeActionButtonStyle=function(t){return(t==null?0:t.style)?t.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.Y.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.Y.onYtToggleButton=function(t){var E,p;this.isLiked=this.systemIcons&&!!((E=t.detail)==null?0:(p=E.actions)==null?0:p.like)};
cB.prototype.onYtToggleButton=cB.prototype.onYtToggleButton;cB.prototype.onButtonTooltipPositionChanged=cB.prototype.onButtonTooltipPositionChanged;cB.prototype.onYtServiceRequestSent=cB.prototype.onYtServiceRequestSent;cB.prototype.onYtNavigate=cB.prototype.onYtNavigate;cB.prototype.onRequestSent=cB.prototype.onRequestSent;cB.prototype.onYtCommentboxDismiss=cB.prototype.onYtCommentboxDismiss;cB.prototype.dataChange=cB.prototype.dataChange;
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],cB.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],cB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],cB.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],cB.prototype,"voteCount",void 0);_.N([_.e(),_.P("design:type",Object)],cB.prototype,"commentCount",void 0);_.N([_.e(),_.P("design:type",Object)],cB.prototype,"replyThumbnail",void 0);
_.N([_.e(),_.P("design:type",Object)],cB.prototype,"hasCreatorReply",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],cB.prototype,"enableCreationBox",void 0);_.N([_.e({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.P("design:type",String)],cB.prototype,"actionButtonsStyle",void 0);_.N([_.e({computed:"computeReplyButtonBeginning(data)"}),_.P("design:type",Object)],cB.prototype,"replyButtonBeginning",void 0);
_.N([_.e({computed:"computeReplyButtonEnd(data)"}),_.P("design:type",Object)],cB.prototype,"replyButtonEnd",void 0);_.N([_.e(),_.P("design:type",Object)],cB.prototype,"buttonOverrides",void 0);_.N([_.e(),_.P("design:type",Object)],cB.prototype,"replyButtonOverrides",void 0);_.N([_.e(),_.P("design:type",Object)],cB.prototype,"forceIconButton",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],cB.prototype,"useCommentIcon",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],cB.prototype,"modern",void 0);_.N([_.e(),_.P("design:type",Object)],cB.prototype,"buttonTooltipPosition",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],cB.prototype,"systemIcons",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],cB.prototype,"isLiked",void 0);_.N([_.Nl("ytd-button-renderer"),_.P("design:type",Object)],cB.prototype,"ytdReplyButtonRenderer",void 0);
_.N([_.Nl("#like-button"),_.P("design:type",Object)],cB.prototype,"JSC$16232_ytdLikeToggleButtonRenderer",void 0);_.N([_.Nl("#dislike-button"),_.P("design:type",Object)],cB.prototype,"JSC$16232_ytdDislikeToggleButtonRenderer",void 0);_.N([_.Nl("#reply-dialog"),_.P("design:type",HTMLElement)],cB.prototype,"replyDialogElement",void 0);_.N([_.Nl("#reply-button"),_.P("design:type",HTMLElement)],cB.prototype,"replyButtonElement",void 0);
_.N([_.Nl("#reply-button-end"),_.P("design:type",HTMLElement)],cB.prototype,"replyButtonEndElement",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cB.prototype,"dataChange",null);_.N([_.lc("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],cB.prototype,"onYtCommentboxDismiss",null);
_.N([_.lc("yt-service-request-sent-button-renderer"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],cB.prototype,"onRequestSent",null);_.N([_.lc("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],cB.prototype,"onYtNavigate",null);
_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.m8]),_.P("design:returntype")],cB.prototype,"onYtServiceRequestSent",null);_.N([_.GI("buttonTooltipPosition"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cB.prototype,"onButtonTooltipPositionChanged",null);
_.N([_.lc("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],cB.prototype,"onYtToggleButton",null);_.N([_.Ul({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],cB);
_.G(cB,"ytd-comment-action-buttons-renderer",function(){if(FXm!==void 0)return FXm;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return FXm=t},{mode:1});var lbr;var tx=function(){return _.z.apply(this,arguments)||this};
_.u(tx,_.z);tx.prototype.focus=function(){_.ZN(this.hostElement).querySelector("#commentbox").focus()};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],tx.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],tx.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],tx.prototype,"zeroStepChannelCreationRenderer",void 0);_.N([_.Ul({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],tx);
_.G(tx,"ytd-comment-dialog-renderer",function(){if(lbr!==void 0)return lbr;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return lbr=t},{mode:1});var G1r;var EV=function(){var t=_.z.apply(this,arguments)||this;t.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.r("enable_web_delhi_icons")};t.replyButtonOverrides={size:"S",type:"text"};return t};
_.u(EV,_.z);_.Y=EV.prototype;_.Y.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.Y.detached=function(){this.replyBox&&this.replyBox.remove()};
_.Y.showReplyDialog=function(t){if(t){var E=this.replyBox;E||(E=document.createElement("ytd-comment-reply-dialog-renderer"),E.id="replybox",_.ZN(this.replyDialogDiv).appendChild(E));E.data=t;this.replyDialogDiv.hidden=!1;E.openDialog()}};
_.Y.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.Y.handleReplyButtonClick=function(){if(this.isSuperfanOnlyCommentsEligibleUser){var t,E=_.k((t=this.toolbarSurface)==null?void 0:t.superfanOnlySnackbarCommand,_.x2);E&&_.kT(this.hostElement,"yt-show-superfan-only-snackbar",{command:E})}else this.isSubsOnlyCommentsEligibleUser&&(t=_.k((E=this.toolbarSurface)==null?void 0:E.subscribersOnlyDisclaimerSnackbarCommand,_.x2))&&_.kT(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:t})};
_.Y.onYtServiceRequestSent=function(t,E){t.stopPropagation();if(E.actions)for(var p=0;p<E.actions.length;p++){var U=_.k(E.actions[p],IGr);U?this.handleUpdateCommentVoteAction(U):t.target===this.heartButton&&this.toggleHeartState()}};
_.Y.handleUpdateCommentVoteAction=function(t){var E;(E=this.toolbarState)!=null&&E.key&&this.ytdReduxBehavior.dispatch(_.pr("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:t.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":t.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.Y.toggleHeartState=function(){var t;(t=this.toolbarState)!=null&&t.key&&this.ytdReduxBehavior.dispatch(_.pr("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.aE.Object.defineProperties(EV.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return(((t=this.toolbarState)==null?void 0:t.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(E=this.toolbarData)==null?void 0:E.likeCountLiked:(p=this.toolbarData)==null?void 0:p.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.toolbarSurface)==null?void 0:t.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.toolbarSurface)==null?void 0:t.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.toolbarSurface)==null?void 0:t.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
isSuperfanOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.toolbarSurface)==null?void 0:t.superfanOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.toolbarSurface)==null?void 0:t.prepareAccountCommand)!==void 0&&!_.r("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var t,E=_.k((t=this.toolbarSurface)==null?void 0:t.prepareAccountCommand,_.x2),p,U,x,A,m,b,f,B,R;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((p=this.toolbarSharedData)==null||!p.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((U=this.toolbarState)==null?void 0:U.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:E!=null?E:_.k((x=this.toolbarSurface)==null?void 0:x.likeCommand,_.x2),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:E!=null?E:_.k((A=this.toolbarSurface)==null?void 0:A.unlikeCommand,_.x2),defaultCommand:this.isVisiblyDisabled?_.k((m=this.toolbarSurface)==null?void 0:m.commentDisabledActionCommand,_.x2):void 0,defaultTooltip:(b=this.toolbarData)==null?void 0:b.likeInactiveTooltip,toggledTooltip:(f=this.toolbarData)==null?void 0:f.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(B=this.toolbarData)==null?void 0:B.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(R=this.toolbarSharedData)==null?void 0:R.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var t,E=_.k((t=this.toolbarSurface)==null?void 0:t.prepareAccountCommand,_.x2),p,U,x,A,m,b,f,B,R,V;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((p=this.toolbarSharedData)==null||!p.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((U=this.toolbarState)==null?void 0:U.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:E!=null?E:_.k((x=this.toolbarSurface)==null?void 0:x.dislikeCommand,_.x2),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:E!=null?E:_.k((A=this.toolbarSurface)==null?void 0:A.undislikeCommand,_.x2),defaultCommand:this.isVisiblyDisabled?_.k((m=this.toolbarSurface)==null?void 0:m.commentDisabledActionCommand,_.x2):void 0,defaultTooltip:(b=this.toolbarData)==null?void 0:b.dislikeInactiveTooltip,toggledTooltip:(f=this.toolbarData)==null?void 0:
f.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(B=this.toolbarSharedData)==null?void 0:B.dislikeReplyButtonA11y:(R=this.toolbarSharedData)==null?void 0:R.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(V=this.toolbarSharedData)==null?void 0:V.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var t,E,p;if(((t=this.toolbarState)==null?void 0:t.heartState)!==void 0&&((E=this.toolbarState)==null?void 0:E.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((p=this.toolbarState)==null?void 0:p.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var U,x,A,m,b,f,B,R,V,Q,C,d,I,O;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(U=this.toolbarData)==null?void 0:U.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((x=this.toolbarState)==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((A=this.toolbarState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((m=this.toolbarState)==null?void 0:m.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((b=this.toolbarState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.k((f=this.toolbarSurface)==null?void 0:f.heartCommand,
_.x2),unheartEndpoint:this.isVisiblyDisabled?void 0:_.k((B=this.toolbarSurface)==null?void 0:B.unheartCommand,_.x2),disabledEndpoint:this.isVisiblyDisabled?_.k((R=this.toolbarSurface)==null?void 0:R.commentDisabledActionCommand,_.x2):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(V=this.toolbarData)==null?void 0:V.heartActiveTooltip,unheartedTooltip:(Q=this.toolbarData)==null?void 0:Q.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((C=
this.toolbarState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(d=this.toolbarSharedData)==null?void 0:d.unheartButtonA11y:(I=this.toolbarSharedData)==null?void 0:I.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(O=this.toolbarSharedData)==null?void 0:O.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.toolbarSurface)==null||!t.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.commentStrings)!=null&&t.replyButtonText){var E,p,U,x;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(E=this.commentStrings)==null?void 0:E.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.k((p=this.toolbarSurface)==null?void 0:p.replyCommand,_.x2),command:this.isVisiblyDisabled?
_.k((U=this.toolbarSurface)==null?void 0:U.commentDisabledActionCommand,_.x2):this.isSubsOnlyCommentsIneligibleUser?_.k((x=this.toolbarSurface)==null?void 0:x.subscribersOnlySnackbarCommand,_.x2):void 0}}}}});
EV.prototype.onYtServiceRequestSent=EV.prototype.onYtServiceRequestSent;EV.prototype.hideReplyDialogDiv=EV.prototype.hideReplyDialogDiv;_.N([_.e(),_.P("design:type",Object)],EV.prototype,"commentStrings",void 0);_.N([_.e(),_.P("design:type",Boolean)],EV.prototype,"isReply",void 0);_.N([_.e(),_.P("design:type",Object)],EV.prototype,"toolbarData",void 0);_.N([_.e(),_.P("design:type",Object)],EV.prototype,"toolbarSharedData",void 0);
_.N([_.e(),_.P("design:type",String)],EV.prototype,"toolbarStateKey",void 0);_.N([_.e(),_.P("design:type",String)],EV.prototype,"toolbarSurfaceKey",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],EV.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],EV.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],EV.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(_.aU),_.P("design:type",Object)],EV.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.Nl("#reply-dialog"),_.P("design:type",HTMLElement)],EV.prototype,"replyDialogDiv",void 0);_.N([_.Nl("#replybox"),_.P("design:type",Object)],EV.prototype,"replyBox",void 0);_.N([_.Nl("ytd-creator-heart-renderer"),_.P("design:type",Object)],EV.prototype,"heartButton",void 0);_.N([_.e({selector:function(t,E){return _.hj(t.entities,"engagementToolbarStateEntityPayload",E)},
selectorArgs:["toolbarStateKey"]}),_.P("design:type",Object)],EV.prototype,"toolbarState",void 0);_.N([_.e({selector:n0Y,selectorArgs:["toolbarSurfaceKey"]}),_.P("design:type",Object)],EV.prototype,"toolbarSurface",void 0);_.N([_.e(),_.P("design:type",Object)],EV.prototype,"buttonOverrides",void 0);_.N([_.lc("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],EV.prototype,"hideReplyDialogDiv",null);
_.N([_.Z("toolbarData","toolbarState"),_.P("design:type",String),_.P("design:paramtypes",[])],EV.prototype,"likeCount",null);_.N([_.Z("likeCount"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],EV.prototype,"showLikeCount",null);_.N([_.Z("toolbarSurface"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],EV.prototype,"isVisiblyDisabled",null);_.N([_.Z("toolbarSurface"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],EV.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.N([_.Z("toolbarSurface"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],EV.prototype,"isSubsOnlyCommentsEligibleUser",null);_.N([_.Z("toolbarSurface"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],EV.prototype,"isSuperfanOnlyCommentsEligibleUser",null);_.N([_.Z("toolbarSurface"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],EV.prototype,"hasPrepareAccountCommand",null);
_.N([_.Z("toolbarData","toolbarState","toolbarSurface"),_.P("design:type",Object),_.P("design:paramtypes",[])],EV.prototype,"likeToggleButtonRenderer",null);_.N([_.Z("isReply","toolbarData","toolbarState","toolbarSurface"),_.P("design:type",Object),_.P("design:paramtypes",[])],EV.prototype,"dislikeToggleButtonRenderer",null);_.N([_.Z("toolbarData","toolbarState","toolbarSurface"),_.P("design:type",Object),_.P("design:paramtypes",[])],EV.prototype,"creatorHeartSupportedRenderer",null);
_.N([_.Z("toolbarSurface"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],EV.prototype,"hasReplyCommand",null);_.N([_.Z("toolbarSurface","commentStrings","isVisiblyDisabled"),_.P("design:type",Object),_.P("design:paramtypes",[])],EV.prototype,"replyButtonRenderer",null);_.N([_.e(),_.P("design:type",Object)],EV.prototype,"replyButtonOverrides",void 0);
_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.m8]),_.P("design:returntype")],EV.prototype,"onYtServiceRequestSent",null);_.N([_.Ul({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],EV);
_.G(EV,"ytd-comment-engagement-bar",function(){if(G1r!==void 0)return G1r;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return G1r=t},{mode:1});var nBs;var p7=function(){return _.z.apply(this,arguments)||this};
_.u(p7,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],p7.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],p7.prototype,"data",void 0);_.N([_.Ul({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],p7);
_.G(p7,"ytd-comment-inline-thumbnail-renderer",function(){if(nBs!==void 0)return nBs;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return nBs=t},{mode:1});var Nem;var UV=function(){return _.z.apply(this,arguments)||this};
_.u(UV,_.z);UV.prototype.onMessageTap=function(){if(this.onTapCommand){var t=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);t&&this.ytdOpenPopupBehavior.openPopup(t)}};
_.aE.Object.defineProperties(UV.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return(t=this.data)==null?void 0:(E=t.button)==null?void 0:(p=E.buttonRenderer)==null?void 0:p.command}}});
_.N([_.g(_.aU),_.P("design:type",Object)],UV.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],UV.prototype,"data",void 0);_.N([_.Z("data.button.buttonRenderer.command"),_.P("design:type",Object),_.P("design:paramtypes",[])],UV.prototype,"onTapCommand",null);_.N([_.Ul({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],UV);
_.G(UV,"ytd-comment-pause-composer-renderer",function(){if(Nem!==void 0)return Nem;var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Nem=t},{mode:1});var Ds0;var s5W;var xN=function(){var t=_.z.apply(this,arguments)||this;t.isOpen=!1;return t};
_.u(xN,_.z);_.Y=xN.prototype;_.Y.dataChanged=function(){this.isOpen=!1};
_.Y.onTap=function(){this.data&&(this.data.navigationEndpoint?_.kT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.Y.focus=function(){this.JSC$16261_commentbox.focus()};
_.Y.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.Y.openDialog=function(){this.isOpen=!0;this.JSC$16261_commentbox.focus();this.JSC$16261_commentbox.maybeHeightChanged()};
xN.prototype.onYtCommentboxDismiss=xN.prototype.onYtCommentboxDismiss;xN.prototype.dataChanged=xN.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],xN.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],xN.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],xN.prototype,"isOpen",void 0);_.N([_.Nl("#commentbox"),_.P("design:type",Object)],xN.prototype,"JSC$16261_commentbox",void 0);
_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xN.prototype,"dataChanged",null);_.N([_.lc("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],xN.prototype,"onYtCommentboxDismiss",null);_.N([_.Ul({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],xN);
_.G(xN,"ytd-comment-reply-dialog-renderer",function(){if(s5W!==void 0)return s5W;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return s5W=t},{mode:1});var LXZ;var Ax=function(){return _.z.apply(this,arguments)||this};
_.u(Ax,_.z);_.aE.Object.defineProperties(Ax.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var t,E,p=(t=this.data)==null?void 0:(E=t.icon)==null?void 0:E.iconType;return p?"yt-icons:"+p.toLowerCase():null}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ax.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Ax.prototype,"data",void 0);_.N([_.e(),_.Z("data.icon"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ax.prototype,"icon",null);_.N([_.Ul({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Ax);
_.G(Ax,"ytd-pinned-comment-badge-renderer",function(){if(LXZ!==void 0)return LXZ;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return LXZ=t},{mode:1});var Pxr;var TeX={},oBZ={input:!0,meta:!0,br:!0,link:!0,img:!0},YN=null;TeX.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(){YN==null&&(YN=document.createElement("tp-yt-paper-tooltip"),YN.offset=8,YN.fitToVisibleBounds=!0)},
onMouseOver_:function(t){if(t=_.tg(t.target,function(x){return x==this||x.getAttribute&&x.getAttribute("shared-tooltip-text")}.bind(this),!0)){var E=t.getAttribute("shared-tooltip-text");
if(E){var p=this,U=null;t!=this&&(t.tagName.toLowerCase()in oBZ?p=t.parentElement:p=t,t.id&&(U=t.id));this.polymerController.createTooltipIfRequired_();if(YN.parentElement!=p||YN.for!=U)(0,_.aG)(YN).textContent=E,_.ZN(p).appendChild(YN),YN.for=U,YN.animationDelay=this.polymerController.sharedTooltipAnimationDelay,YN.position=this.polymerController.sharedTooltipPosition}}}};var MS=function(){return _.z.apply(this,arguments)||this};
_.u(MS,_.z);MS.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]]"}}}}}};
MS.prototype.attached=function(){if(!this.hostElement.hasAttribute("role")){this.hostElement.setAttribute("role","img");var t;((t=this.data)==null?0:t.tooltip)&&this.hostElement.setAttribute("alt",this.data.tooltip)}var E;((E=this.data)==null?0:E.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
MS.prototype.colorChanged=function(){var t,E,p,U=(t=this.data)==null?void 0:(E=t.color)==null?void 0:(p=E.basicColorPaletteData)==null?void 0:p.foregroundBodyColor;U&&(this.rgbBadgeColor=_.SL(U));_.ZN(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
MS.prototype.tooltipChanged=function(){var t;((t=this.data)==null?0:t.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
MS.prototype.tooltipChanged=MS.prototype.tooltipChanged;MS.prototype.colorChanged=MS.prototype.colorChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],MS.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],MS.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(TeX.YtSharedTooltipBehavior),_.P("design:type",Object)],MS.prototype,"ytSharedTooltipBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],MS.prototype,"data",void 0);
_.N([_.e({value:"#4285F4"}),_.P("design:type",String)],MS.prototype,"rgbBadgeColor",void 0);_.N([_.GI("data.color"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],MS.prototype,"colorChanged",null);_.N([_.GI("data.tooltip"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],MS.prototype,"tooltipChanged",null);_.N([_.Ul({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],MS);
_.G(MS,"ytd-sponsor-comment-badge-renderer",function(){if(Pxr!==void 0)return Pxr;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Pxr=t},{mode:1});var WX4;var $ss;var mv=function(){return _.z.apply(this,arguments)||this};
_.u(mv,_.z);mv.prototype.computeState=function(t){switch(t==null?void 0:t.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"}};
mv.prototype.updateStateIdentifier=function(t){if(this.viewModel.triStateKey){var E=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.pr("triStateButtonStateEntityPayload",E,{key:E,stateIdentifier:t}))}};
mv.prototype.onClick=function(){var t=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(){t.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){t.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.aE.Object.defineProperties(mv.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 t;return((t=this.data)==null?void 0:t.buttonText)||""}}});
_.N([_.e(),_.P("design:type",Object)],mv.prototype,"viewModel",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],mv.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],mv.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],mv.prototype,"ytRendererBehavior",void 0);_.N([_.e({selector:NOL,selectorArgs:["viewModel.triStateKey"]}),_.P("design:type",Object)],mv.prototype,"triStateButtonStateEntity",void 0);
_.N([_.e({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.P("design:type",String)],mv.prototype,"state",void 0);_.N([_.Z("viewModel","state"),_.P("design:type",Object),_.P("design:paramtypes",[])],mv.prototype,"data",null);_.N([_.Z("data"),_.P("design:type",String),_.P("design:paramtypes",[])],mv.prototype,"buttonText",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],mv);
_.G(mv,"ytd-tri-state-button-view-model",function(){if($ss!==void 0)return $ss;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return $ss=t},{mode:1});var KXp;var vBm;var bl=function(){var t=_.z.apply(this,arguments)||this;t.defaultIconToFilled=!_.r("kevlar_fill_comment_chip_icon_killswitch");return t};
_.u(bl,_.z);bl.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
bl.prototype.dataChanged=function(){if(this.data){var t,E;((t=this.data.chipColorPalette)==null?0:t.backgroundColor)&&((E=this.data.chipColorPalette)==null?0:E.foregroundTitleColor)&&_.eU(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.cL(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.cL(this.data.chipColorPalette.foregroundTitleColor)});var p;((p=this.data)==null?0:p.command)?(_.eU(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.eU(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}};
bl.prototype.onTap=function(){var t;if(this.data&&(t=this.data)!=null&&t.command){var E;this.ytComponentBehavior.resolveCommand((E=this.data)==null?void 0:E.command)}};
bl.prototype.getIconSize=function(){return _.r("kevlar_fill_comment_chip_icon_killswitch")?24:12};
bl.prototype.onTap=bl.prototype.onTap;bl.prototype.dataChanged=bl.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],bl.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],bl.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.ou),_.P("design:type",Object)],bl.prototype,"ironA11yKeysBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],bl.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",Object)],bl.prototype,"basePriceText",void 0);_.N([_.e(),_.P("design:type",Object)],bl.prototype,"chipIcon",void 0);_.N([_.e(),_.P("design:type",Object)],bl.prototype,"defaultIconToFilled",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],bl.prototype,"dataChanged",null);_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],bl.prototype,"onTap",null);
_.N([_.p4({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],bl);
_.G(bl,"yt-pdg-comment-chip-renderer",function(){if(vBm===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;KXp===void 0&&(KXp=document.createElement("template"));var U=KXp;p.call(E,U.content.cloneNode(!0),t.content.firstChild);vBm=t}t=vBm;return t},{mode:2});var il=function(){var t=_.z.apply(this,arguments)||this;t.useSmallAvatars=_.r("small_avatars_for_comments");t.commentThreadingEnabled=_.r("web_delhi_comment_threads");t.webWatchCompactComments=_.r("web_watch_compact_comments");t.editDialog=null;return t};
_.u(il,_.z);_.Y=il.prototype;_.Y.onShow=function(){_.cD("cmv",void 0,"wn_comments")};
_.Y.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"}}}};
_.Y.detached=function(){this.editDialog=null;this.expander.reset()};
_.Y.updateBackgroundColor=function(){if(this.backgroundColor){var t={"--ytd-comment-paid-background-color":_.cL(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.eU(this.hostElement,t)}else _.eU(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.Y.resetExpander=function(){var t;(t=this.expander)==null||t.reset()};
_.Y.openEditDialog=function(t){t.dialog&&(this.editDialog=t.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.Y.onYtNavigate=function(t){var E=t.detail.endpoint;if(E=_.k(E,_.m7s)||_.k(E,_.bSr))t.stopPropagation(),this.openEditDialog(E)};
_.Y.onYtCommentboxDismiss=function(){this.editDialog=null;_.eU(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.Y.onAuthorThumbnailClicked=function(){_.r("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.Y.onYtCommentboxResize=function(t){var E;(t==null?0:(E=t.detail)==null?0:E.height)&&_.eU(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":t.detail.height+"px"})};
_.aE.Object.defineProperties(il.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 t,E=(t=this.commentEntity)==null?void 0:t.author;return E&&(E.isCreator||E.isVerified||E.isArtist)?{renderer:{authorEndpoint:E.channelPageEndpoint?_.k(E.channelPageEndpoint,_.x2):_.k(E.channelCommand,_.x2),authorText:{runs:[{text:E.displayName}]},color:E.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:E.isArtist?{iconType:"AUDIO_BADGE"}:
E.isVerified?{iconType:E.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:E.isArtist||E.isVerified?E.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var t,E=(t=this.commentEntity)==null?void 0:t.author;return E!=null&&E.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:E.sponsorBadgeUrl}]},tooltip:E.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var t;return _.k((t=this.commentSurfaceEntity)==null?void 0:t.pdgCommentChip,_.Gnr)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var t;return this.voiceReplyContainerViewModel&&((t=this.voiceReplyContainerViewModel)==null?void 0:t.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var t;return _.k((t=this.commentSurfaceEntity)==null?void 0:t.voiceReplyContainerViewModel,zSm)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var t;return this.voiceReplyContainerViewModel&&(t=this.voiceReplyContainerViewModel)!=null&&t.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var t,E;return(E=(t=this.commentSurfaceEntity)==null?void 0:t.commentBackgroundColor)!=null?E:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.r("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var t,E;return(((t=this.commentEntity)==null?void 0:(E=t.properties)==null?void 0:E.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var t,E;if(_.r("enable_profile_cards_on_comments")&&((t=this.commentEntity)==null?0:(E=t.author)==null?0:E.profileCardEndpoint)&&this.viewModel.allowProfileCard){var p,U;return _.k((p=this.commentEntity)==null?void 0:(U=p.author)==null?void 0:U.profileCardEndpoint,_.x2)}var x,A;return _.k((x=this.commentEntity)==null?void 0:(A=x.avatar)==null?void 0:A.endpoint,_.x2)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var t,E;if(_.r("enable_profile_cards_on_comments")&&((t=this.commentEntity)==null?0:(E=t.author)==null?0:E.channelPageEndpoint)){var p,U;return _.k((p=this.commentEntity)==null?void 0:(U=p.author)==null?void 0:U.channelPageEndpoint,_.x2)}var x,A;return _.k((x=this.commentEntity)==null?void 0:(A=x.avatar)==null?void 0:A.endpoint,_.x2)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var t,E,p,U,x=(t=this.commentEntity)==null?void 0:(E=t.avatar)==null?void 0:(p=E.image)==null?void 0:(U=p.sources)==null?void 0:U[0];return x?{thumbnails:[{url:x.url,width:x.width,height:x.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.commentEntity)==null?0:(E=t.author)==null?0:E.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.commentEntity)==null?void 0:(E=t.author)==null?void 0:E.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.commentEntity)==null?void 0:(E=t.properties)==null?void 0:E.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var t;return _.k((t=this.commentSurfaceEntity)==null?void 0:t.publishedTimeCommand,_.x2)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var t,E;if(((t=this.commentEntity)==null?0:t.translatedContent)&&((E=this.translateButtonState)==null?void 0:E.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var p;if((p=this.voiceReplyContainerViewModel)==null?0:p.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var U,x;return((U=this.commentEntity)==null?void 0:(x=U.properties)==null?void 0:x.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.commentSharedEntity)==null?void 0:(E=t.strings)==null?void 0:E.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.commentSharedEntity)==null?void 0:(E=t.strings)==null?void 0:E.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.commentEntity)==null||!t.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var t,E,p=(E=_.k((t=this.viewModel)==null?void 0:t.translateButton,F$G))!=null?E:{},U,x,A,m,b,f,B,R,V,Q,C;return Object.assign({},p,{untoggledStateData:Object.assign({},p.untoggledStateData,{buttonText:(U=this.commentEntity)==null?void 0:(x=U.translateData)==null?void 0:x.text}),togglingStateData:Object.assign({},p.togglingStateData,{buttonText:(A=this.commentSharedEntity)==null?
void 0:(m=A.strings)==null?void 0:m.translatingText}),toggledStateData:Object.assign({},p.toggledStateData,{buttonText:(b=this.commentSharedEntity)==null?void 0:(f=b.strings)==null?void 0:f.seeOriginalText}),transitionCommand:((B=this.commentEntity)==null?0:B.translatedContent)?void 0:_.k((R=this.commentEntity)==null?void 0:(V=R.translateData)==null?void 0:V.translateComment,_.x2),triStateKey:(Q=this.commentEntity)==null?void 0:(C=Q.properties)==null?void 0:C.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return((E=_.k(_.k((t=this.toolbarSurface)==null?void 0:t.menuCommand,_.x2),iS3))==null?void 0:(p=E.menu)==null?void 0:p.menuRenderer)||null}}});
il.prototype.onYtCommentboxResize=il.prototype.onYtCommentboxResize;il.prototype.onYtCommentboxDismiss=il.prototype.onYtCommentboxDismiss;il.prototype.onYtNavigate=il.prototype.onYtNavigate;il.prototype.resetExpander=il.prototype.resetExpander;il.prototype.updateBackgroundColor=il.prototype.updateBackgroundColor;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],il.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],il.prototype,"ytdReduxBehavior",void 0);
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],il.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],il.prototype,"ytRendererstamperBehavior",void 0);_.N([_.Nl("#author-thumbnail > button"),_.P("design:type",HTMLElement)],il.prototype,"authorThumbnailAnchor",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("viewModel"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],il.prototype,"linked",null);
_.N([_.Z("viewModel","linked"),_.P("design:type",Object),_.P("design:paramtypes",[])],il.prototype,"linkedCommentBadge",null);_.N([_.e({reflectToAttribute:!0}),_.Z("viewModel"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],il.prototype,"pinned",null);_.N([_.Z("viewModel","pinned"),_.P("design:type",Object),_.P("design:paramtypes",[])],il.prototype,"pinnedCommentBadge",null);
_.N([_.Z("commentEntity","commentSharedEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],il.prototype,"authorCommentBadge",null);_.N([_.e({reflectToAttribute:!0}),_.Z("authorCommentBadge"),_.P("design:type",Object),_.P("design:paramtypes",[])],il.prototype,"hasAuthorBadge",null);_.N([_.Z("commentEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],il.prototype,"sponsorCommentBadge",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("sponsorCommentBadge"),_.P("design:type",Object),_.P("design:paramtypes",[])],il.prototype,"hasSponsorBadge",null);_.N([_.Z("commentSurfaceEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],il.prototype,"pdgCommentChipRenderer",null);_.N([_.e({reflectToAttribute:!0}),_.Z("voiceReplyContainerViewModel"),_.P("design:type",Object),_.P("design:paramtypes",[])],il.prototype,"hasVoiceReply",null);
_.N([_.Z("commentSurfaceEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],il.prototype,"voiceReplyContainerViewModel",null);_.N([_.Z("voiceReplyContainerViewModel"),_.P("design:type",Object),_.P("design:paramtypes",[])],il.prototype,"voiceReplyUnavailableText",null);_.N([_.e(),_.P("design:type",Object)],il.prototype,"data",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],il.prototype,"viewModel",null);
_.N([_.e({selector:function(t,E){return _.hj(t.entities,"commentSharedEntityPayload",E)},
selectorArgs:["viewModel.sharedKey"]}),_.P("design:type",Object)],il.prototype,"commentSharedEntity",void 0);_.N([_.e({selector:GKO,selectorArgs:["viewModel.commentKey"]}),_.P("design:type",Object)],il.prototype,"commentEntity",void 0);_.N([_.e({selector:function(t,E){return _.hj(t.entities,"commentSurfaceEntityPayload",E)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.P("design:type",Object)],il.prototype,"commentSurfaceEntity",void 0);_.N([_.e({selector:n0Y,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.P("design:type",Object)],il.prototype,"toolbarSurface",void 0);_.N([_.e({selector:NOL,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.P("design:type",Object)],il.prototype,"translateButtonState",void 0);
_.N([_.Z("commentSurfaceEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],il.prototype,"backgroundColor",null);_.N([_.e({reflectToAttribute:!0}),_.Z("viewModel"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],il.prototype,"optimalReadingWidthComments",null);_.N([_.Nl("ytd-expander"),_.P("design:type",Object)],il.prototype,"expander",void 0);
_.N([_.GI("backgroundColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],il.prototype,"updateBackgroundColor",null);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],il.prototype,"useSmallAvatars",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],il.prototype,"engagementPanel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],il.prototype,"commentThreadingEnabled",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],il.prototype,"webWatchCompactComments",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("commentEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],il.prototype,"isReply",null);_.N([_.Z("commentEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],il.prototype,"authorThumbnailEndpoint",null);_.N([_.Z("commentEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],il.prototype,"authorNameEndpoint",null);
_.N([_.Z("commentEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],il.prototype,"authorThumbnail",null);_.N([_.Z("commentEntity"),_.P("design:type",String),_.P("design:paramtypes",[])],il.prototype,"authorTextClass",null);_.N([_.Z("commentEntity"),_.P("design:type",String),_.P("design:paramtypes",[])],il.prototype,"authorChannelName",null);_.N([_.Z("commentEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],il.prototype,"publishedTime",null);
_.N([_.Z("commentSurfaceEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],il.prototype,"publishedTimeCommand",null);_.N([_.Z("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.P("design:type",Object),_.P("design:paramtypes",[])],il.prototype,"contentText",null);_.N([_.GI("contentText"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],il.prototype,"resetExpander",null);
_.N([_.Z("commentEntity"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],il.prototype,"shouldShowReadMoreInitially",null);_.N([_.Z("commentSharedEntity"),_.P("design:type",String),_.P("design:paramtypes",[])],il.prototype,"expandText",null);_.N([_.Z("commentSharedEntity"),_.P("design:type",String),_.P("design:paramtypes",[])],il.prototype,"collapseText",null);_.N([_.Z("commentEntity"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],il.prototype,"shouldShowTranslateButton",null);
_.N([_.Z("commentEntity","commentSharedEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],il.prototype,"translateButton",null);_.N([_.Z("toolbarSurface"),_.P("design:type",Object),_.P("design:paramtypes",[])],il.prototype,"overflowMenuRenderer",null);_.N([_.e(),_.P("design:type",Object)],il.prototype,"editDialog",void 0);_.N([_.Nl("ytd-comment-dialog-renderer"),_.P("design:type",Object)],il.prototype,"editCommentDialogContainer",void 0);
_.N([_.Nl("ytd-comment-reply-dialog-renderer"),_.P("design:type",Object)],il.prototype,"editReplyDialogContainer",void 0);_.N([_.lc("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],il.prototype,"onYtNavigate",null);_.N([_.lc("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],il.prototype,"onYtCommentboxDismiss",null);
_.N([_.lc("yt-commentbox-resize"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],il.prototype,"onYtCommentboxResize",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-comment-view-model"})],il);
_.G(il,"ytd-comment-view-model",function(){if(WX4!==void 0)return WX4;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return WX4=t},{mode:_.hX("kevlar_poly_si_batch_j025")?1:2});_.k2(_.l(function(t){var E={};return _.H("yt-sub-thread",{class:_.X5("ytSubThreadHost",(E.ytSubThreadHasButton=t.isButton,E.ytSubThreadHovered=t.hovered,E.ytSubThreadTopLevelThread=function(){var p,U;return((p=t.topLevelThread)==null?void 0:p.call(t))&&!(_.r("small_avatars_for_comments")&&((U=t.engagementPanel)==null?0:U.call(t)))},E))},_.H("div",{class:"ytSubThreadThreadline"},_.H(_.w,{cond:function(){var p;
return!((p=t.isTeaser)==null?0:p.call(t))},
then:function(){return _.H("div",{class:"ytSubThreadConnection"})}}),_.H("div",{class:"ytSubThreadContinuation"}),_.H("div",{class:"ytSubThreadShadow"})),_.H("div",{class:"ytSubThreadSubThreadContent"},t.children))},"Pc"),"yt-sub-thread",{props:{isButton:_.uu,
isTeaser:_.uu,hovered:_.uu,topLevelThread:_.uu,engagementPanel:_.uu}});var qS=function(){var t=_.z.apply(this,arguments)||this;t.modern=_.r("web_modern_buttons");t.commentThreadingEnabled=_.r("web_delhi_comment_threads");t.isWatchGrid=_.r("kevlar_watch_grid");t.buttonOverrides=t.commentThreadingEnabled?_.r("web_delhi_comment_threads_call_to_action")?{iconPosition:"trailing",type:"text",style:"call-to-action"}:{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};t.JSC$16307_spinnerEl=null;return t};
_.u(qS,_.z);_.Y=qS.prototype;_.Y.configureContinuationPathMap=function(){return _.r("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.Y.shouldShowLegacyTeasers=function(t,E){return t&&!E};
_.Y.shouldShowExpandedThreads=function(t,E){return this.commentThreadingEnabled&&E&&(t==null?void 0:t.length)>0};
_.Y.shouldShowCollapsedThreads=function(t,E){return this.commentThreadingEnabled&&!E&&t};
_.Y.computeCommentViewModel=function(t){return _.k(t,eS0)};
_.Y.computeThreadRenderer=function(t){return _.k(t,gbW)};
_.Y.computeIsContinuationItem=function(t){return!!this.computeContinuationItemRenderer(t)};
_.Y.computeButtonRenderer=function(t){return _.k(t,_.Ry)};
_.Y.computeContinuationItemRenderer=function(t){return _.k(t,_.um)};
_.Y.computeShowButton=function(t){var E;return!((E=this.computeContinuationItemRenderer(t))==null||!E.button)};
_.Y.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]]"}}}}}};
_.Y.attached=function(){this.isShowRepliesVisible=!0};
_.Y.dataChanged=function(){var t=this.expanderContents;t&&(t.hidden=!0);this.isLoading=!1};
_.Y.endsInContinuation=function(t){return!!t&&t.length>0&&!!this.computeContinuationItemRenderer(t[t.length-1])};
_.Y.computeShouldShowHideRepliesButton=function(t,E){return!t&&E};
_.Y.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.Y.isLoadingChanged=function(){this.isLoading&&!this.JSC$16307_spinnerEl&&(this.JSC$16307_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.ZN(this.expanderContents).appendChild(this.JSC$16307_spinnerEl));this.JSC$16307_spinnerEl&&(this.JSC$16307_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var t;(t=this.contents)==null||t.classList.remove("reloading")}};
_.Y.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var t=_.k(this.data.viewReplies,_.Ry);t&&this.ytRendererBehavior.logExplicitClick(t);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.Y.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var t=_.k(this.data.hideReplies,_.Ry);t&&this.ytRendererBehavior.logExplicitClick(t);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.Y.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var t=_.ZN(this.hostElement).querySelector("#expander-contents");t&&(t.hidden=this.isShowRepliesVisible)}};
_.Y.computeAlign=function(){if(this.modern){var t;return!((t=this.data)==null?0:t.viewRepliesCreatorThumbnail)}};
_.aE.Object.defineProperties(qS.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var t,E;return this.endsInContinuation((t=this.data)==null?void 0:t.contents)||this.commentThreadingEnabled&&this.endsInContinuation((E=this.data)==null?void 0:E.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var t;return(t=this.data)==null?void 0:t.teaserContents}}});
qS.prototype.isShowMoreChanged=qS.prototype.isShowMoreChanged;qS.prototype.isLoadingChanged=qS.prototype.isLoadingChanged;qS.prototype.triggerFirstContinuation=qS.prototype.triggerFirstContinuation;qS.prototype.dataChanged=qS.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],qS.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],qS.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(_.I6),_.P("design:type",Object)],qS.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],qS.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],qS.prototype,"modern",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],qS.prototype,"commentThreadingEnabled",void 0);_.N([_.e(),_.P("design:type",Boolean)],qS.prototype,"expanded",void 0);
_.N([_.e(),_.P("design:type",Function)],qS.prototype,"toggleExpanded",void 0);_.N([_.e(),_.P("design:type",Array)],qS.prototype,"addedReplies",void 0);_.N([_.e(),_.P("design:type",Boolean)],qS.prototype,"hovered",void 0);_.N([_.e(),_.P("design:type",Boolean)],qS.prototype,"topLevelThread",void 0);_.N([_.e(),_.P("design:type",Boolean)],qS.prototype,"isLoading",void 0);_.N([_.e({value:!0}),_.P("design:type",Boolean)],qS.prototype,"isShowRepliesVisible",void 0);
_.N([_.e({value:!1}),_.P("design:type",Boolean)],qS.prototype,"useNewFormatting",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],qS.prototype,"engagementPanel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],qS.prototype,"isWatchGrid",void 0);_.N([_.e(),_.P("design:type",Object)],qS.prototype,"buttonOverrides",void 0);_.N([_.Nl("#expander-contents"),_.P("design:type",HTMLElement)],qS.prototype,"expanderContents",void 0);
_.N([_.Nl("ytd-continuation-item-renderer"),_.P("design:type",Object)],qS.prototype,"continuationItemRenderer",void 0);_.N([_.Nl("#contents"),_.P("design:type",HTMLElement)],qS.prototype,"contents",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qS.prototype,"dataChanged",null);_.N([_.Z("data.contents","data.subThreads.*"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],qS.prototype,"hasContinuation",null);
_.N([_.Z("data.teaserContents"),_.P("design:type",Object),_.P("design:paramtypes",[])],qS.prototype,"subThreadTeasers",null);_.N([_.lc("yt-expander-more-tapped"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qS.prototype,"triggerFirstContinuation",null);_.N([_.GI("isLoading"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qS.prototype,"isLoadingChanged",null);
_.N([_.GI("isShowRepliesVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qS.prototype,"isShowMoreChanged",null);_.N([_.Ul({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],qS);
_.G(qS,"ytd-comment-replies-renderer",function(){if(Ds0!==void 0)return Ds0;var t=document.createElement("template");_.J(t,'\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 engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-teaser="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-view-model data="[[computeCommentViewModel(item)]]" class="style-scope ytd-comment-replies-renderer"> </ytd-comment-view-model>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-repeat" items="[[addedReplies]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n      </ytd-comment-thread-renderer>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies-sub-thread" aria-controls="expanded-threads" aria-expanded="[[!expanded]]" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div id="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 engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="[[computeIsContinuationItem(item)]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" 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 engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" aria-controls="collapsed-threads" aria-expanded="[[expanded]]" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </yt-sub-thread>\n  </template>\n</div>\n');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Ds0=t},{mode:1});var y5s;var HZ=function(){var t=_.z.apply(this,arguments)||this;t.isOpen=!1;t.commentDialog=null;t.useSmallAvatars=_.r("small_avatars_for_comments");t.useSmallAvatarsEngagementPanelOnly=_.r("small_avatars_for_comments_ep");t.placeholderFocusListener=null;t.hasOpenedDialog=!1;t.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return t};
_.u(HZ,_.z);_.Y=HZ.prototype;_.Y.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]]"}}}}}};
_.Y.ready=function(){var t=this,E=_.ZN(this.hostElement).querySelector("#placeholder-area"),p=_.ZN(this.hostElement).querySelector("#simplebox-placeholder"),U=function(x){x.stopPropagation();x instanceof KeyboardEvent&&x.type==="keypress"&&x.keyCode!==13&&x.keyCode!==32||t.openDialog()};
this.placeholderFocusListener=U;p.addEventListener("focus",this.placeholderFocusListener);E.addEventListener("tap",U);E.addEventListener("keypress",U)};
_.Y.maybeRemoveFocusEventListener=function(){var t;(t=this.data)!=null&&t.prepareAccountEndpoint&&!_.r("web_comments_simplebox_modal_focus_on_tap_ks")&&(t=_.ZN(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(t.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.Y.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.Y.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.r("web_comment_simplebox_resolve_polymer_command_ks")?_.Gh.instance.resolveCommand(this.data.prepareAccountEndpoint):_.n4(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.superfanOnlySnackbarCommand&&!this.hasOpenedDialog){var t=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.superfanOnlySnackbarCommand);t&&this.ytdOpenPopupBehavior.openPopup(t);this.hasOpenedDialog=!0}this.data.subscribersOnlySnackbarCommand&&
!this.hasOpenedDialog&&((t=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand))&&this.ytdOpenPopupBehavior.openPopup(t),this.hasOpenedDialog=!0);this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.ZN(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.Y.onYtCommentboxDismiss=function(t){t.stopPropagation();this.isOpen=!1};
_.Y.onCreateCommentAction=function(t){this.get("createCommentAction.contents",t)&&(this.isOpen=!1)};
_.Y.computeCommentDialog=function(t){return{placeholderText:t.placeholderText,authorThumbnail:t.authorThumbnail,submitButton:t.submitButton,imageButton:t.imageButton,cancelButton:t.cancelButton,emojiButton:t.emojiButton,emojis:t.emojis,emojiPicker:t.emojiPicker,aadcGuidelinesStateEntityKey:t.aadcGuidelinesStateEntityKey,openAadcDialog:t.openAadcDialog,unicodeEmojisUrl:t.unicodeEmojisUrl}};
_.Y.onHideIdentityChip=function(t){_.k(t,rBZ)&&this.set("data.placeholderText",_.k(t,rBZ).placeholderText)};
HZ.prototype.onYtCommentboxDismiss=HZ.prototype.onYtCommentboxDismiss;HZ.prototype.dataChanged=HZ.prototype.dataChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],HZ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.aU),_.P("design:type",Object)],HZ.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],HZ.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],HZ.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],HZ.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],HZ.prototype,"isOpen",void 0);_.N([_.e(),_.P("design:type",Object)],HZ.prototype,"commentDialog",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],HZ.prototype,"engagementPanel",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],HZ.prototype,"useSmallAvatars",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],HZ.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],HZ.prototype,"enableCreationBox",void 0);_.N([_.e(),_.P("design:type",Boolean)],HZ.prototype,"showCreateDialog",void 0);
_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],HZ.prototype,"dataChanged",null);_.N([_.lc("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],HZ.prototype,"onYtCommentboxDismiss",null);_.N([_.Ul({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],HZ);
_.G(HZ,"ytd-comment-simplebox-renderer",function(){if(y5s!==void 0)return y5s;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return y5s=t},{mode:1});var Sw4;_.vs("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var f7=function(){var t=_.z.apply(this,arguments)||this;t.addHoverEffect=_.r("swatcheroo_comments_hover_effect");t.useSmallAvatars=_.r("small_avatars_for_comments");t.scrollingEnabled=_.r("web_comment_threading_scroll_on_collapse");t.isSubThread=!1;t.threadHovered=!1;t.expanded=!1;t.removed=!1;t.addedReplies=[];t.actionMap=t.configureActionMap();t.toggleExpanded=function(){t.expanded=!t.expanded;!t.expanded&&t.scrollingEnabled&&_.du(t.hostElement,"yt-scroll-to-comment-element",[t.commentElement])};
return t};
_.u(f7,_.z);_.Y=f7.prototype;_.Y.configureActionMap=function(){return _.r("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"}:{}};
_.Y.createCommentReplyAction=function(t){t=_.k(t,CPr);if(t!=null&&t.contents){var E=t.replyToCommentId,p=t.parentCommentId,U,x=(U=this.commentViewModel)==null?void 0:U.commentId;(x===E||x===p&&!E)&&this.maybeAttachReply(t.contents)}};
_.Y.maybeAttachReply=function(t){var E,p;(((E=this.commentEntity)==null?void 0:(p=E.properties)==null?void 0:p.replyLevel)||0)>=3?_.kT(this.hostElement,"yt-pushed-create-comment-reply",t):this.attachReply(t)};
_.Y.onPushedCreateCommentReply=function(t){var E,p;(((E=this.commentEntity)==null?void 0:(p=E.properties)==null?void 0:p.replyLevel)||0)>=3||(this.attachReply(t.detail),t.stopPropagation())};
_.Y.attachReply=function(t){var E;((E=this.data)==null?0:E.replies)?(E=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+E+".continuationItemRenderer")?E===0?this.push("addedReplies",t):this.splice("data.replies.commentRepliesRenderer.subThreads",E,0,t):this.push("data.replies.commentRepliesRenderer.subThreads",t)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[t],viewReplies:{buttonRenderer:{text:_.kh(_.zF("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.Y.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.KB(this.addedReplies))),this.set("addedReplies",[]))};
_.Y.removeCommentAction=function(t){t=_.k(t,ub3);var E=t==null?void 0:t.commentId,p;E&&((p=this.commentViewModel)==null?void 0:p.commentId)===E&&this.maybeRemoveComment(t.actionResult)};
_.Y.banAuthorAction=function(t){t=_.k(t,VxX);var E=t==null?void 0:t.commentId,p;E&&((p=this.commentViewModel)==null?void 0:p.commentId)===E&&this.maybeRemoveComment(t.actionResult)};
_.Y.hideReportedCommentAction=function(t){t=_.k(t,NTs);var E=t==null?void 0:t.commentId,p;E&&((p=this.commentViewModel)==null?void 0:p.commentId)===E&&this.maybeRemoveComment(t.actionResult)};
_.Y.maybeRemoveComment=function(t){t&&t.status==="STATUS_SUCCEEDED"&&(this.feedbackText=t.feedbackText||_.kh("Reply removed"),this.removed=!0)};
_.Y.onTap=function(t){if(this.addHoverEffect&&!this.engagementPanel&&!_.Qb(_.Vx(t)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var E;((E=window.getSelection())==null?0:E.toString().length)||_.n4({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.Y.attached=function(){var t=this;this.isSubThread&&(this.expanded=!0);var E;(E=this.commentThreadHitbox)==null||E.addEventListener("mouseover",function(){t.threadHovered=!0});
var p;(p=this.commentThreadHitbox)==null||p.addEventListener("mouseout",function(){t.threadHovered=!1});
var U;(U=this.commentThreadHitbox)==null||U.addEventListener("click",function(){t.maybeToggleExpanded()})};
_.Y.onDataChanged=function(){var t=_.r("web_delhi_comment_threads")?"data.replies.commentRepliesRenderer.subThreads":"data.replies.commentRepliesRenderer.contents";this.get("data.replies.commentRepliesRenderer.teaserContents")&&!this.get(t)&&this.set(t,[{commentThreadRenderer:{commentViewModel:this.get("data.replies.commentRepliesRenderer.teaserContents")[0]}}])};
_.Y.maybeToggleExpanded=function(){var t,E,p,U=(t=this.data)==null?void 0:(E=t.replies)==null?void 0:(p=E.commentRepliesRenderer)==null?void 0:p.subThreads,x;(U==null?void 0:U.length)===1&&((x=_.k(U[0],_.um))==null?0:x.button)&&this.expanded||this.toggleExpanded()};
_.aE.Object.defineProperties(f7.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var t;return _.k((t=this.data)==null?void 0:t.commentViewModel,eS0)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return _.r("web_delhi_comment_threads")&&!!((t=this.data)==null?0:(E=t.replies)==null?0:(p=E.commentRepliesRenderer)==null?0:p.subThreads)}}});
f7.prototype.onDataChanged=f7.prototype.onDataChanged;f7.prototype.onTap=f7.prototype.onTap;f7.prototype.onAppendContinuationItemsActionFinished=f7.prototype.onAppendContinuationItemsActionFinished;f7.prototype.onPushedCreateCommentReply=f7.prototype.onPushedCreateCommentReply;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],f7.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],f7.prototype,"ytdReduxBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],f7.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],f7.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],f7.prototype,"addHoverEffect",void 0);_.N([_.e(),_.P("design:type",Object)],f7.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],f7.prototype,"useSmallAvatars",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],f7.prototype,"scrollingEnabled",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],f7.prototype,"isSubThread",void 0);_.N([_.Nl(".thread-hitbox"),_.P("design:type",HTMLElement)],f7.prototype,"commentThreadHitbox",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],f7.prototype,"threadHovered",void 0);_.N([_.Nl("#comment"),_.P("design:type",HTMLElement)],f7.prototype,"commentElement",void 0);
_.N([_.e(),_.P("design:type",Object)],f7.prototype,"expanded",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],f7.prototype,"removed",void 0);_.N([_.e(),_.P("design:type",Object)],f7.prototype,"feedbackText",void 0);_.N([_.e(),_.P("design:type",Array)],f7.prototype,"addedReplies",void 0);_.N([_.e({selector:GKO,selectorArgs:["commentViewModel.commentKey"]}),_.P("design:type",Object)],f7.prototype,"commentEntity",void 0);
_.N([_.lc("yt-pushed-create-comment-reply"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],f7.prototype,"onPushedCreateCommentReply",null);_.N([_.lc("yt-append-continuation-items-action-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],f7.prototype,"onAppendContinuationItemsActionFinished",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],f7.prototype,"commentViewModel",null);
_.N([_.Z("data.replies.commentRepliesRenderer.subThreads"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],f7.prototype,"hasSubThreading",null);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],f7.prototype,"engagementPanel",void 0);_.N([_.lc("tap"),_.lc("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],f7.prototype,"onTap",null);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],f7.prototype,"onDataChanged",null);_.N([_.Ul({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],f7);
_.G(f7,"ytd-comment-thread-renderer",function(){if(Sw4!==void 0)return Sw4;var t=document.createElement("template");_.J(t,'\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]]" engagement-panel="[[engagementPanel]]" 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]]" engagement-panel="[[engagementPanel]]" expanded="[[expanded]]" hovered="[[threadHovered]]" toggle-expanded="[[toggleExpanded]]" top-level-thread="[[!isSubThread]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Sw4=t},{mode:_.hX("kevlar_poly_si_batch_j025")?1:2});var c5p;var BZ=function(){var t=_.z.apply(this,arguments)||this;t.compactHeader=_.r("web_watch_compact_comments_header");t.hidePanelButton=!1;t.isPostSchedulingEnabled=_.r("enable_post_scheduling");t.hasFinishedStamping=!1;t.JSC$16330_handleOpenPostCommentDialogActionAfterStamp=!1;t.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return t};
_.u(BZ,_.z);_.Y=BZ.prototype;
_.Y.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"}}}};
_.Y.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.Y.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16330_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.Y.onYtServiceRequestSent=function(t,E){if(!_.r("kevlar_command_handler")&&E.actions)for(t=0;t<E.actions.length;t++){var p=E.actions[t];_.k(p,PBr)&&_.ZN(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.k(p,PBr))}};
_.Y.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var t;if(this.getPrefilledBackstagePostDialog((t=this.data)==null?void 0:t.actions)){_.ZN(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var E=_.ZN(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;E&&_.XE(this,function(){E.focus();E.openDialog&&E.openDialog()})}}else this.hasActionsChange=!0};
_.Y.computeIsBackstage=function(t){return t};
_.Y.onYtCommentboxDismiss=function(){_.ZN(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.Y.removePrefilledDialog=function(t){if(t==null?0:t.actions){for(var E=t.actions.length-1;E>=0;E--){var p=void 0;((p=_.k(t.actions[E],Y0W))==null?0:p.dialog)&&delete t.actions[E]}this.set("data",void 0);this.set("data",t)}};
_.Y.getPrefilledBackstagePostDialog=function(t){if(t)for(var E=0;E<t.length;E++){var p=t[E],U=void 0;if((U=_.k(p,Y0W))==null?0:U.dialog)return _.k(p,Y0W).dialog}return null};
_.Y.computeBackstagePostDialog=function(t){return t&&(this.getPrefilledBackstagePostDialog(t.actions)||t.createRenderer)};
_.Y.dataChanged=function(){if(this.data){var t=this.data.customEmojis,E=this.data.unicodeEmojisUrl;_.kt.clear();E&&_.LaG(_.kt,E);t&&_.kt.load(t)}};
_.Y.handleSignalActionOpenPostCommentDialogAction=function(){var t=_.ZN(this.hostElement).querySelector("ytd-comment-simplebox-renderer");t?t.openDialog():this.JSC$16330_handleOpenPostCommentDialogActionAfterStamp=!0};
_.Y.onPostHeaderTap=function(){var t;((t=this.data)==null?0:t.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.aE.Object.defineProperties(BZ.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.r("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var t,E,p,U,x,A,m;return!this.hidePanelButton&&_.r("kevlar_watch_comments_panel_button")&&((m=_.k((t=this.data)==null?void 0:(E=t.sortMenu)==null?void 0:(p=E.sortFilterSubMenuRenderer)==null?void 0:(U=p.subMenuItems)==null?void 0:(x=U[0])==null?void 0:(A=x.serviceEndpoint)==null?void 0:A.commandMetadata,_.hZ))==null?void 0:m.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.zF("MINIPLAYER_EXPAND_LABEL"),text:_.wN(_.zF("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
BZ.prototype.dataChanged=BZ.prototype.dataChanged;BZ.prototype.onYtCommentboxDismiss=BZ.prototype.onYtCommentboxDismiss;BZ.prototype.observePrefilledBackstagePostDialog=BZ.prototype.observePrefilledBackstagePostDialog;BZ.prototype.onYtServiceRequestSent=BZ.prototype.onYtServiceRequestSent;BZ.prototype.onStampFinished=BZ.prototype.onStampFinished;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],BZ.prototype,"ytComponentBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],BZ.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],BZ.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],BZ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],BZ.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],BZ.prototype,"compactHeader",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],BZ.prototype,"engagementPanel",void 0);_.N([_.e(),_.P("design:type",Object)],BZ.prototype,"hidePanelButton",void 0);_.N([_.e({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.P("design:type",Boolean)],BZ.prototype,"isBackstage",void 0);_.N([_.e({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.P("design:type",Object)],BZ.prototype,"backstagePostDialog",void 0);
_.N([_.e(),_.P("design:type",Object)],BZ.prototype,"isPostSchedulingEnabled",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("data","showCommentsPanelButton"),_.P("design:type",Object),_.P("design:paramtypes",[])],BZ.prototype,"useSpaceBetween",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data","hidePanelButton"),_.P("design:type",Object),_.P("design:paramtypes",[])],BZ.prototype,"showCommentsPanelButton",null);
_.N([_.Z("data","showCommentsPanelButton"),_.P("design:type",Object),_.P("design:paramtypes",[])],BZ.prototype,"commentsPanelButtonData",null);_.N([_.lc("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],BZ.prototype,"onStampFinished",null);_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.m8]),_.P("design:returntype")],BZ.prototype,"onYtServiceRequestSent",null);
_.N([_.GI("data.actions"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],BZ.prototype,"observePrefilledBackstagePostDialog",null);_.N([_.lc("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],BZ.prototype,"onYtCommentboxDismiss",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],BZ.prototype,"dataChanged",null);
_.N([_.Ul({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],BZ);
_.G(BZ,"ytd-comments-header-renderer",function(){if(c5p!==void 0)return c5p;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return c5p=t},{mode:1});var t94;var wo=function(){return _.z.apply(this,arguments)||this};
_.u(wo,_.z);_.N([_.e(),_.P("design:type",Object)],wo.prototype,"data",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],wo.prototype,"ytRendererBehavior",void 0);_.N([_.Ul({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],wo);
_.G(wo,"ytd-destination-button-renderer",function(){if(t94!==void 0)return t94;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return t94=t},{mode:1});var EJo;var RA=function(){var t=_.z.apply(this,arguments)||this;t.isRichGrid=!1;t.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return t};
_.u(RA,_.z);_.Y=RA.prototype;_.Y.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.Y.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.Y.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.Y.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var t;if((t=this.data)==null||!t.isExpanded){t=this.hostElement.clientWidth;var E;if(t&&(E=this.data)!=null&&E.destinationButtons){E=Math.floor((t+4)/214);t=this.data.destinationButtons.length;var p=Math.ceil(t/E);this.fullyVisibleRows=t%E===1&&p===2?1:Math.min(p,2);this.isShowMoreVisible=this.fullyVisibleRows<p}}}};
_.Y.updateRichGridDestinationButtonsVisibility=function(){var t,E;if(this.isRichGrid&&((t=this.data)==null||!t.isExpanded)&&(E=this.data)!=null&&E.destinationButtons){t=this.richGridItemsPerRow+1;E=this.data.destinationButtons.length;var p=Math.ceil(E/t);this.fullyVisibleRows=E%t===1&&p===2?1:Math.min(p,2);this.isShowMoreVisible=this.fullyVisibleRows<p}};
_.Y.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
RA.prototype.updateRichGridDestinationButtonsVisibility=RA.prototype.updateRichGridDestinationButtonsVisibility;_.N([_.e(),_.P("design:type",Object)],RA.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Number)],RA.prototype,"fullyVisibleRows",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],RA.prototype,"isShowMoreVisible",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],RA.prototype,"isRichGrid",void 0);
_.N([_.e({selector:_.tf,value:0}),_.P("design:type",Number)],RA.prototype,"richGridItemsPerRow",void 0);_.N([_.e(),_.P("design:type",Object)],RA.prototype,"gridStateActionMap",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],RA.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],RA.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],RA.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],RA.prototype,"ytdReduxBehavior",void 0);_.N([_.GI("data","richGridItemsPerRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],RA.prototype,"updateRichGridDestinationButtonsVisibility",null);_.N([_.Ul({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],RA);
_.G(RA,"ytd-destination-shelf-renderer",function(){if(EJo!==void 0)return EJo;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return EJo=t},{mode:1});var pm4;var Ve=function(){return _.z.apply(this,arguments)||this};
_.u(Ve,_.z);Ve.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"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ve.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Ve.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Ve.prototype,"data",void 0);_.N([_.Ul({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],Ve);
_.G(Ve,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(pm4!==void 0)return pm4;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return pm4=t},{mode:1});var Uu4;var Qe=function(){var t=_.z.apply(this,arguments)||this;t.disableAnimation=!1;t.isSlimlineSurvey=!1;t.isSlimlineSurveyFollowUp=!1;t.isShortsStyle=!1;return t};
_.u(Qe,_.z);Qe.prototype.onTap=function(t){t.preventDefault();this.data&&_.kT(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.aE.Object.defineProperties(Qe.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 t,E,p,U,x;return((t=this.data)==null?0:t.checked)?(E=this.data)==null?void 0:(p=E.onStateIcon)==null?void 0:p.iconType:(U=this.data)==null?void 0:(x=U.defaultStateIcon)==null?void 0:x.iconType}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Qe.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Qe.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Qe.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Qe.prototype,"disableAnimation",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Qe.prototype,"isSlimlineSurvey",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Qe.prototype,"isSlimlineSurveyFollowUp",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Qe.prototype,"isShortsStyle",void 0);_.N([_.Z("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Qe.prototype,"isAnimatedIcon",null);
_.N([_.Z("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.P("design:type",Number),_.P("design:paramtypes",[])],Qe.prototype,"iconSize",null);_.N([_.Z("isShortsStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Qe.prototype,"isDarkTheme",null);_.N([_.Z("data.checked"),_.P("design:type",Object),_.P("design:paramtypes",[])],Qe.prototype,"icon",null);_.N([_.Ul({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],Qe);
_.G(Qe,"ytd-rating-survey-option-renderer",function(){if(Uu4!==void 0)return Uu4;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Uu4=t},{mode:2});var xuf;var C7=function(){var t=_.z.apply(this,arguments)||this;t.firstResponseText=null;t.lastResponseText=null;t.selectedNonStarOption=null;t.hideOptions=!1;t.hideUndoButton=!0;t.disableAnimation=!1;t.showResponseRangeText=!1;t.selectedRatingIndex=-1;t.isSlimlineSurvey=!1;t.isSlimlineSurveyFollowUp=!1;t.isShortsStyle=!1;t.slimlineSurveyRatingSelectedIndex=-1;return t};
_.u(C7,_.z);_.Y=C7.prototype;_.Y.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.Y.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.Y.onOptionChange=function(t,E){var p=this;t=E.onStateIcon&&E.defaultStateIcon&&E.onStateIcon.iconType===E.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(m,b){m.responseText===E.responseText?p.isSlimlineSurvey?(p.selectedRatingIndex=b,p.ytdReduxBehavior.dispatch(mVr(b))):(p.setSurveyOptionValue(b,!0,"checked"),p.setSurveyOptionValue(b,!0,"selected")):(p.setSurveyOptionValue(b,!1,"checked"),p.setSurveyOptionValue(b,
!1,"selected"))});
else if(t)this.selectedNonStarOption=E,this.hideOptions=!0;else{var U=this.ytRendererBehavior.getSimpleString(E.responseText),x=!0;this.getOptionRenderers().forEach(function(m,b){p.setSurveyOptionValue(b,x,"checked");p.setSurveyOptionValue(b,!1,"selected");p.ytRendererBehavior.getSimpleString(m.responseText)===U&&(x=!1,p.setSurveyOptionValue(b,!0,"selected"))})}t=E.responseEndpoint;
var A;E.followUpCommand&&(A=_.k(E.followUpCommand,yl3));this.isSlimlineSurvey?(this.resetComponent(),_.du(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.du(this.hostElement,"ytd-inline-survey-rating-select-action",[t,A])};
_.Y.showSelectedOption=function(){var t=this;_.ir.addJob(function(){var E=t.getOptionRenderers()[t.slimlineSurveyRatingSelectedIndex];t.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),E)},8,100)};
_.Y.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(t){var E;return(E=_.k(t,cl0))!=null?E:{}}):[]};
_.Y.onUndoClick=function(){this.resetComponent();_.du(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.Y.setSurveyOptionValue=function(t,E,p){this.notifyPath("data.ratings."+t+".ratingSurveyOptionRenderer."+p);this.set("data.ratings."+t+".ratingSurveyOptionRenderer."+p,E)};
_.Y.resetComponent=function(){var t=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var E=this.getOptionRenderers(),p,U;this.firstResponseText=(U=(p=E[0])==null?void 0:p.responseText)!=null?U:null;var x,A;this.lastResponseText=(A=(x=E[E.length-1])==null?void 0:x.responseText)!=null?A:null;E.forEach(function(m,b){t.setSurveyOptionValue(b,!1,"checked");t.setSurveyOptionValue(b,!1,"selected")})};
_.aE.Object.defineProperties(C7.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
C7.prototype.onOptionChange=C7.prototype.onOptionChange;C7.prototype.dataChanged=C7.prototype.dataChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],C7.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],C7.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],C7.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],C7.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",Object)],C7.prototype,"firstResponseText",void 0);_.N([_.e(),_.P("design:type",Object)],C7.prototype,"lastResponseText",void 0);_.N([_.e(),_.P("design:type",Object)],C7.prototype,"selectedNonStarOption",void 0);_.N([_.e(),_.P("design:type",Object)],C7.prototype,"hideOptions",void 0);_.N([_.e(),_.P("design:type",Object)],C7.prototype,"hideUndoButton",void 0);_.N([_.e(),_.P("design:type",Object)],C7.prototype,"disableAnimation",void 0);
_.N([_.e(),_.P("design:type",Object)],C7.prototype,"showResponseRangeText",void 0);_.N([_.e(),_.P("design:type",Object)],C7.prototype,"selectedRatingIndex",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],C7.prototype,"isSlimlineSurvey",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],C7.prototype,"isSlimlineSurveyFollowUp",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],C7.prototype,"isShortsStyle",void 0);_.N([_.e({selector:function(t){return t.ui.slimlineSurveyRatingSelectedIndex}}),
_.P("design:type",Object)],C7.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.N([_.Z("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],C7.prototype,"isSingleSelect",null);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],C7.prototype,"dataChanged",null);
_.N([_.lc("ytd-rating-survey-option-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],C7.prototype,"onOptionChange",null);_.N([_.Ul({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],C7);
_.G(C7,"ytd-rating-survey-renderer",function(){if(xuf!==void 0)return xuf;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return xuf=t},{mode:1});var Ako;var YOG;var M9X;var tzO=(zd.FIRSTDAYOFWEEK+1)%7,mus=function(t,E,p,U){var x="";if(U.selection&&vUl(U.selection))aF(t,U.selection)&&(x+=" selected");else if(U.selection&&yql(U.selection)){var A=U.selection.selectionState||"START_DATE";aF(t,U.selection.start)&&(x+=" period-start ",A==="START_DATE"&&(x+="selected"));aF(t,U.selection.end)&&(x+=" period-end ",A==="END_DATE"&&(x+="selected"));eY(t,U.selection.start)||eY(U.selection.end,t)||(x+=" highlighted")}if(eY(E,U.start)||eY(U.end,E))x+=" disabled";U.circleToday&&
aF(E,p)&&(x+=" today");return x};var jo=function(){return _.z.apply(this,arguments)||this};
_.u(jo,_.z);_.Y=jo.prototype;_.Y.attached=function(){var t=this;_.XE(this,function(){t.JSC$16364_calendarMain.scrollHeight>0&&(t.calendarConfig.selection?t.scrollToDate(SDJ(t.calendarConfig.selection)):t.scrollToDate(t.calendarConfig.end))})};
_.Y.updateSelection=function(t){t=EyL(Object.assign({},this.calendarConfig,{selection:t}),mus);this.splice.apply(this,["renderData.months",0,t.length].concat(_.KB(t)))};
_.Y.scrollToDate=function(t){this.renderData&&(t=pj8(t,this.renderData),t!==void 0&&this.JSC$16364_calendarMain.scrollToIndex(t))};
_.Y.scrollToNextMonth=function(){this.JSC$16364_calendarMain.scrollToIndex(this.JSC$16364_calendarMain.firstVisibleIndex+1)};
_.Y.scrollToPrevMonth=function(){this.JSC$16364_calendarMain.firstVisibleIndex===0&&this.JSC$16364_calendarMain.scrollTo(0,0);this.JSC$16364_calendarMain.scrollToIndex(this.JSC$16364_calendarMain.firstVisibleIndex-1)};
_.Y.handleDayClick=function(t){_.du(this.hostElement,"ytd-calendar-date-clicked",[t.model.day.date])};
_.Y.handleDayMouseDown=function(t){t.preventDefault();_.du(this.hostElement,"ytd-calendar-date-mousedown",[t.model.day.date])};
_.Y.handleDayMouseUp=function(t){_.du(this.hostElement,"ytd-calendar-date-mouseup",[t.model.day.date])};
_.Y.handleDayMouseEnter=function(t){t.preventDefault();_.du(this.hostElement,"ytd-calendar-date-mouseenter",[t.model.day.date])};
_.Y.handleDayMouseLeave=function(t){_.du(this.hostElement,"ytd-calendar-date-mouseleave",[t.model.day.date])};
_.aE.Object.defineProperties(jo.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var t=this.calendarConfig,E=mus;E=E===void 0?mus:E;for(var p=[],U=0;U<7;U++)p.push(zd.NARROWWEEKDAYS[(U+tzO)%7]);return{months:EyL(t,E),daysOfWeekLabel:p}}}});
_.N([_.e(),_.P("design:type",Object)],jo.prototype,"calendarConfig",void 0);_.N([_.Nl("#calendar-main"),_.P("design:type",Object)],jo.prototype,"JSC$16364_calendarMain",void 0);_.N([_.Z("calendarConfig"),_.P("design:type",Object),_.P("design:paramtypes",[])],jo.prototype,"renderData",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],jo);
_.G(jo,"ytd-scrollable-calendar",function(){if(M9X!==void 0)return M9X;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return M9X=t},{mode:2});var b5s;var i54;var ro=function(){var t=_.z.apply(this,arguments)||this;t.hideCharCounter=!1;t.hideLabel=!1;t.noLabelFloat=!1;t.autoValidate=!0;t.invalid=!1;t.disabled=!1;t.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return t};
_.u(ro,_.z);_.Y=ro.prototype;_.Y.reset=function(t){this.value=t&&this.data?this.data.value=t:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.Y.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.Y.focusTextInput=function(){this.input.focus()};
_.Y.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()};
_.Y.valueChanged=function(){var t,E;if(((t=this.data)==null?0:t.value)||((E=this.data)==null?void 0:E.value)==="")this.value=this.data.value;else{var p;((p=this.data)==null?void 0:p.value)!==void 0||this.value||(this.value="")}};
_.Y.computeLabel=function(t,E){return E?"":_.R4(t)};
_.Y.computeAriaLabel=function(t,E){return E?_.R4(t):""};
_.Y.computeErrorMessage=function(t,E,p,U){!t&&E?t=p||this.strings.REQUIRED_LABEL:(t=_.R4(U),t=_.iY(t,"&")?"document"in _.Ui?FEp(t):zX4(t):t);return t};
_.Y.computeType=function(t){return t==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.Y.onTextValueChanged=function(t){this.value=t.detail.value;var E;(E=this.onValueChanged)==null||E.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.Y.handleUpdateTextInputFormFieldRendererCommand=function(t){(t=_.k(t,Qu0))&&this.data&&this.data.id===t.id&&(t.invalid!==void 0&&(this.invalid=t.invalid),t.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",t.invalidValueErrorMessage))};
_.Y.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IU("value-changed",this.value))};
_.Y.updateInvalidFromBinding=function(t){this.invalid=t.detail.value};
_.aE.Object.defineProperties(ro.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var t;return!((t=this.data)==null||!t.isMultiline)}}});
ro.prototype.valueChangedForBinding=ro.prototype.valueChangedForBinding;ro.prototype.valueChanged=ro.prototype.valueChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],ro.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],ro.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],ro.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],ro.prototype,"data",void 0);_.N([_.e(),_.P("design:type",String)],ro.prototype,"value",void 0);_.N([_.e(),_.P("design:type",String)],ro.prototype,"pattern",void 0);_.N([_.e(),_.P("design:type",String)],ro.prototype,"errorMessage",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],ro.prototype,"componentStyle",void 0);_.N([_.e(),_.P("design:type",Object)],ro.prototype,"hideCharCounter",void 0);
_.N([_.e(),_.P("design:type",Object)],ro.prototype,"hideLabel",void 0);_.N([_.e(),_.P("design:type",Object)],ro.prototype,"noLabelFloat",void 0);_.N([_.e(),_.P("design:type",Function)],ro.prototype,"onValueChanged",void 0);_.N([_.e(),_.P("design:type",Boolean)],ro.prototype,"isMultilineOverride",void 0);_.N([_.e(),_.P("design:type",Object)],ro.prototype,"autoValidate",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],ro.prototype,"invalid",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],ro.prototype,"disabled",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],ro.prototype,"enableOverlayTheme",void 0);_.N([_.e({value:{REQUIRED_LABEL:_.zF("REQUIRED_LABEL",void 0,"Required")}}),_.P("design:type",Object)],ro.prototype,"strings",void 0);_.N([_.Nl("#input"),_.P("design:type",Object)],ro.prototype,"input",void 0);
_.N([_.Z("data","isMultilineOverride"),_.P("design:type",Object),_.P("design:paramtypes",[])],ro.prototype,"isMultiline",null);_.N([_.P3("data.value"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ro.prototype,"valueChanged",null);_.N([_.GI("value"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ro.prototype,"valueChangedForBinding",null);_.N([_.p4({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],ro);
_.G(ro,"yt-text-input-form-field-renderer",function(){if(i54===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;b5s===void 0&&(b5s=document.createElement("template"));var U=b5s;p.call(E,U.content.cloneNode(!0),t.content.firstChild);i54=t}t=i54;return t},{mode:2});var kN=function(){var t=_.z.apply(this,arguments)||this;t.data=void 0;t.selectionState="START_DATE";t.isStartDateInvalid=!1;t.isEndDateInvalid=!1;t.autoapply=!1;t.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 t};
_.u(kN,_.z);_.Y=kN.prototype;_.Y.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"}}}}};
_.Y.focus=function(){this.startDateInput.focus()};
_.Y.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:Ft(this.data.selection.start),end:Ft(this.data.selection.end)})};
_.Y.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.Y.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.UC(this.selectionState)}};
_.Y.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.Y.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.Y.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.Y.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var t=this.calendar.calendarConfig,E=t.end;t=xaD({start:t.start,end:this.endDate||E},this.startDateInput.value||"");this.isStartDateInvalid=!t.isValid;t.isValid&&(t=t.value,this.selection=this.endDate?{start:t,end:this.endDate}:t,this.calendar.scrollToDate(t));this.updateInvalidState()}};
_.Y.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var t=this.calendar.calendarConfig,E=t.start;t=xaD({start:this.startDate||E,end:t.end},this.endDateInput.value||"");this.isEndDateInvalid=!t.isValid;t.isValid&&(t=t.value,this.selection={start:this.startDate,end:t},this.calendar.scrollToDate(t));this.updateInvalidState()}};
_.Y.handleCalendarDateClicked=function(t){var E=this.selection&&SDJ(this.selection),p=this.selection&&cqY(this.selection);E&&!eY(t,E)&&this.selectionState==="END_DATE"?(this.selection={start:E,end:t},this.selectionState="START_DATE"):(p&&!eY(p,t)?this.selection={start:t,end:p}:this.selection=t,this.selectionState="END_DATE")};
_.Y.handleCalendarDateMouseDown=function(t){this.selection&&!vUl(this.selection)&&(this.dragPivot=aF(t,this.selection.start)?this.selection.end:aF(t,this.selection.end)?this.selection.start:t)};
_.Y.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.Y.handleCalendarDateMouseEnter=function(t){this.dragPivot&&(this.selection={start:function(E,p){return eY(E,p)?E:p}(this.dragPivot,t),
end:function(E,p){return eY(E,p)?p:E}(this.dragPivot,t)},this.dragPivot||(this.selectionState="START_DATE"))};
_.Y.handleCalendarDateMouseLeave=function(){};
_.Y.handleCalendarSubmitDateRange=function(){this.selection&&!vUl(this.selection)&&_.du(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.Y.updateInvalidState=function(){var t=function(E,p){p?E.setAttribute("invalid",""):E.removeAttribute("invalid")};
t(this.startDateInput,this.isStartDateInvalid);t(this.endDateInput,this.isEndDateInvalid)};
_.Y.updateDateStrings=function(){this.selection&&(vUl(this.selection)?K_L(this.selection):(K_L(this.selection.start),K_L(this.selection.end)))};
_.Y.updateCalendarSelection=function(t){this.calendar.updateSelection(Object.assign({},t,{selectionState:this.selectionState}))};
_.Y.updateIsStartDateInvalidFromBinding=function(t){this.isStartDateInvalid=t.detail.value};
_.Y.updateIsEndDateInvalidFromBinding=function(t){this.isEndDateInvalid=t.detail.value};
_.Y.updateStartDateStringFromBinding=function(){};
_.Y.updateEndDateStringFromBinding=function(){};
_.aE.Object.defineProperties(kN.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:Ft(this.data.dateRangeStart),end:Ft(this.data.dateRangeEnd),selection:{start:Ft(this.data.selection.start),end:Ft(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&SDJ(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&cqY(this.selection)}}});
kN.prototype.resetTextboxes=kN.prototype.resetTextboxes;kN.prototype.observeSelection=kN.prototype.observeSelection;kN.prototype.dataChanged=kN.prototype.dataChanged;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],kN.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],kN.prototype,"ytRendererstamperBehavior",void 0);_.N([_.Nl("#calendar"),_.P("design:type",Object)],kN.prototype,"calendar",void 0);
_.N([_.Nl("#start-date"),_.P("design:type",Object)],kN.prototype,"startDateInput",void 0);_.N([_.Nl("#end-date"),_.P("design:type",Object)],kN.prototype,"endDateInput",void 0);_.N([_.e(),_.P("design:type",Object)],kN.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],kN.prototype,"selection",void 0);_.N([_.e(),_.P("design:type",String)],kN.prototype,"selectionState",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],kN.prototype,"calendarConfig",null);
_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],kN.prototype,"errorMessage",null);_.N([_.Z("selection"),_.P("design:type",Object),_.P("design:paramtypes",[])],kN.prototype,"startDate",null);_.N([_.Z("selection"),_.P("design:type",Object),_.P("design:paramtypes",[])],kN.prototype,"endDate",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kN.prototype,"dataChanged",null);
_.N([_.GI("selection","selectionState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kN.prototype,"observeSelection",null);_.N([_.GI("selectionState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kN.prototype,"resetTextboxes",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],kN);
_.G(kN,"ytd-date-period-picker-renderer",function(){if(YOG!==void 0)return YOG;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return YOG=t},{mode:1});var ul=function(){var t=_.z.apply(this,arguments)||this;var E={};t.actionMap=(E["ytd-date-period-picker-apply"]="handleDateRangeUpdated",E);return t};
_.u(ul,_.z);ul.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
ul.prototype.handleDateRangeUpdated=function(){};
_.N([_.e(),_.P("design:type",Object)],ul.prototype,"data",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],ul.prototype,"actionHandlerBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],ul.prototype,"rendererstamperBehavior",void 0);_.N([_.Ul({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],ul);
_.G(ul,"ytd-report-history-section-header-renderer",function(){if(Ako!==void 0)return Ako;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Ako=t},{mode:1});var qOf;var H5G;var fXm;var Jx=function(){return _.z.apply(this,arguments)||this};
_.u(Jx,_.z);_.aE.Object.defineProperties(Jx.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.data)==null?0:(E=t.icon)==null?0:E.iconType)?_.zh(this.data.icon.iconType):""}}});
_.N([_.e(),_.P("design:type",Object)],Jx.prototype,"data",void 0);_.N([_.Z("data"),_.P("design:type",String),_.P("design:paramtypes",[])],Jx.prototype,"icon",null);_.N([_.Ul({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],Jx);
_.G(Jx,"ytd-report-history-table-text-cell-renderer",function(){if(fXm!==void 0)return fXm;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return fXm=t},{mode:1});var IA=function(){return _.z.apply(this,arguments)||this};
_.u(IA,_.z);IA.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],IA.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],IA.prototype,"data",void 0);_.N([_.Ul({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],IA);
_.G(IA,"ytd-report-history-table-reason-cell-renderer",function(){if(H5G!==void 0)return H5G;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return H5G=t},{mode:1});var go=function(){return _.z.apply(this,arguments)||this};
_.u(go,_.z);go.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"}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],go.prototype,"rendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],go.prototype,"data",void 0);_.N([_.Ul({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],go);
_.G(go,"ytd-report-history-table-cell-renderer",function(){if(qOf!==void 0)return qOf;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);
return qOf=t},{mode:1});var BKs;var ZC=function(){var t=_.z.apply(this,arguments)||this;t.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 t};
_.u(ZC,_.z);ZC.prototype.onDataChanged=function(){var t;if((t=this.data)==null?0:t.style)this.componentStyle=this.getStyleName(this.data.style)};
ZC.prototype.getCellForColumn=function(t){return this.cells.find(function(E){var p;return((p=_.k(E==null?void 0:E.cell,pU0)||_.k(E==null?void 0:E.cell,EYT))==null?void 0:p.columnId)===t.type})};
ZC.prototype.getClassForColumn=function(t){switch(t){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
ZC.prototype.getStyleName=function(t){switch(t){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.aE.Object.defineProperties(ZC.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var t;return(((t=this.data)==null?void 0:t.cells)||[]).map(function(E){return _.k(E,tlT)})}}});
ZC.prototype.onDataChanged=ZC.prototype.onDataChanged;_.N([_.e(),_.P("design:type",Object)],ZC.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Array)],ZC.prototype,"columnRenderData",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],ZC.prototype,"componentStyle",void 0);_.N([_.Z("data"),_.P("design:type",Array),_.P("design:paramtypes",[])],ZC.prototype,"cells",null);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ZC.prototype,"onDataChanged",null);_.N([_.Ul({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],ZC);
_.G(ZC,"ytd-report-history-table-row-renderer",function(){if(BKs!==void 0)return BKs;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return BKs=t},{mode:1});var wmZ;var RGW;var AEK={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},YE_={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var OV=function(){return _.z.apply(this,arguments)||this};
_.u(OV,_.z);OV.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"}}}}}};
OV.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.aE.Object.defineProperties(OV.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?0:t.columns)?qEY(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return bYE(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var t=this.tableSpec,E=AEK;E=E===void 0?YE_:E;E=iY8(t.columnDimensions,t.columnsToShow||[],E);t=0;E=_.M(E);for(var p=E.next();!p.done;p=E.next())p=p.value,t+=p.minWidth+p.paddingLeft+p.paddingRight;return t}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.N([_.g(_.I6),_.P("design:type",Object)],OV.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],OV.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],OV.prototype,"data",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],OV.prototype,"tableSpec",null);_.N([_.Z("tableSpec"),_.P("design:type",Array),_.P("design:paramtypes",[])],OV.prototype,"columnRenderData",null);
_.N([_.Z("tableSpec"),_.P("design:type",Number),_.P("design:paramtypes",[])],OV.prototype,"totalMinWidth",null);_.N([_.Z("totalMinWidth"),_.P("design:type",String),_.P("design:paramtypes",[])],OV.prototype,"tableWidthStyle",null);_.N([_.Ul({is:"ytd-table-renderer",disableElementRegistration:!0})],OV);
_.G(OV,"ytd-table-renderer",function(){if(RGW!==void 0)return RGW;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return RGW=t},{mode:1});var Xk=function(){return _.z.apply(this,arguments)||this};
_.u(Xk,_.z);Xk.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}}}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Xk.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Xk.prototype,"data",void 0);_.N([_.Ul({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],Xk);
_.G(Xk,"ytd-report-reason-history-modal-renderer",function(){if(wmZ!==void 0)return wmZ;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return wmZ=t},{mode:1});var V93;var QYo;var Cjm;var hx=function(){return _.z.apply(this,arguments)||this};
_.u(hx,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],hx.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],hx.prototype,"data",void 0);_.N([_.Ul({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],hx);
_.G(hx,"ytd-profile-column-stats-entry-renderer",function(){if(Cjm!==void 0)return Cjm;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Cjm=t},{mode:1});var jYT;var aA=function(){return _.z.apply(this,arguments)||this};
_.u(aA,_.z);aA.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],aA.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],aA.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],aA.prototype,"data",void 0);_.N([_.Ul({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],aA);
_.G(aA,"ytd-profile-column-stats-renderer",function(){if(jYT!==void 0)return jYT;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return jYT=t},{mode:1});var rk0;var eo=function(){return _.z.apply(this,arguments)||this};
_.u(eo,_.z);_.aE.Object.defineProperties(eo.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null||!t.useThumbnailSize)return 80;var E,p;t=(E=this.data)==null?void 0:(p=E.thumbnail)==null?void 0:p.thumbnails;var U;return t&&((U=t[0])==null?void 0:U.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null||!t.useThumbnailSize)return 80;var E,p;t=(E=this.data)==null?void 0:(p=E.thumbnail)==null?void 0:p.thumbnails;var U;return t&&((U=t[0])==null?void 0:U.height)||80}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],eo.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],eo.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],eo.prototype,"componentStyle",void 0);_.N([_.Z("data.useThumbnailSize"),_.P("design:type",Object),_.P("design:paramtypes",[])],eo.prototype,"thumbnailWidth",null);
_.N([_.Z("data.useThumbnailSize"),_.P("design:type",Object),_.P("design:paramtypes",[])],eo.prototype,"thumbnailHeight",null);_.N([_.Ul({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],eo);
_.G(eo,"ytd-profile-column-user-info-renderer",function(){if(rk0!==void 0)return rk0;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return rk0=t},{mode:1});var Fk=function(){return _.z.apply(this,arguments)||this};
_.u(Fk,_.z);Fk.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]]"}}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Fk.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Fk.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Fk.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],Fk.prototype,"componentStyle",void 0);_.N([_.Ul({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],Fk);
_.G(Fk,"ytd-profile-column-renderer",function(){if(QYo!==void 0)return QYo;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return QYo=t},{mode:1});var zb=function(){var t=_.z.apply(this,arguments)||this;t.componentStyle="NON_CENTERED_PROFILE";return t};
_.u(zb,_.z);zb.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
zb.prototype.getIcon=function(t){return t?"settings:"+t.toLowerCase():null};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],zb.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],zb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],zb.prototype,"data",void 0);_.N([_.Ul({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],zb);
_.G(zb,"ytd-page-introduction-renderer",function(){if(V93!==void 0)return V93;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return V93=t},{mode:1});var kTX;var ll=function(){return _.z.apply(this,arguments)||this};
_.u(ll,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],ll.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],ll.prototype,"data",void 0);_.N([_.Ul({is:"ytd-report-description-renderer",disableElementRegistration:!0})],ll);
_.G(ll,"ytd-report-description-renderer",function(){if(kTX!==void 0)return kTX;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return kTX=t},{mode:1});var duG;var uFm;var Gb=function(){return _.z.apply(this,arguments)||this};
_.u(Gb,_.z);Gb.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Gb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Gb.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Gb.prototype,"data",void 0);_.N([_.Ul({is:"ytd-video-report-renderer",disableElementRegistration:!0})],Gb);
_.G(Gb,"ytd-video-report-renderer",function(){if(uFm!==void 0)return uFm;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return uFm=t},{mode:1});var Jks;_.vs("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.vs("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var n7=function(){return _.z.apply(this,arguments)||this};
_.u(n7,_.z);n7.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]]"}}}}}};
n7.prototype.computeMessageStyle=function(t){return t};
n7.prototype.computeButtonOverride=function(t){var E;if((t==null?0:(E=t.style)==null?0:E.value)&&t.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],n7.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],n7.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],n7.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],n7.prototype,"shelf",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],n7.prototype,"panel",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.P("design:type",Boolean)],n7.prototype,"componentStyle",void 0);_.N([_.e({computed:"computeButtonOverride(data)"}),_.P("design:type",Object)],n7.prototype,"buttonOverride",void 0);_.N([_.Ul({is:"ytd-message-renderer",disableElementRegistration:!0})],n7);
_.G(n7,"ytd-message-renderer",function(){if(Jks!==void 0)return Jks;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Jks=t},{mode:1});var NS=function(){return _.z.apply(this,arguments)||this};
_.u(NS,_.z);NS.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"}}}};
NS.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
NS.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.aE.Object.defineProperties(NS.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var t,E;return!!(((t=this.data)==null?0:t.header)&&((E=this.data)==null?0:E.table))}}});
NS.prototype.onRequestError=NS.prototype.onRequestError;_.N([_.g(_.I6),_.P("design:type",Object)],NS.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],NS.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],NS.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],NS.prototype,"data",void 0);
_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],NS.prototype,"isUnifiedReportHistory",null);_.N([_.lc("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],NS.prototype,"onRequestError",null);_.N([_.Ul({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],NS);
_.G(NS,"ytd-report-history-section-renderer",function(){if(duG!==void 0)return duG;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return duG=t},{mode:1});var IXT;var DC=function(){var t=_.z.apply(this,arguments)||this;t.answerExpanded=!1;return t};
_.u(DC,_.z);DC.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],DC.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],DC.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],DC.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],DC.prototype,"answerExpanded",void 0);_.N([_.Ul({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],DC);
_.G(DC,"ytd-handles-claiming-faq-renderer",function(){if(IXT!==void 0)return IXT;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return IXT=t},{mode:1});var gJT;var Z5s=function(){return _.z.apply(this,arguments)||this};
_.u(Z5s,_.z);_.N([_.e(),_.P("design:type",Object)],Z5s.prototype,"data",void 0);_.N([_.Ul({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],Z5s);
_.G(Z5s,"ytd-handles-claiming-faq-section-renderer",function(){if(gJT!==void 0)return gJT;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return gJT=t},{mode:1});var O5s;var sV=function(){var t=_.z.apply(this,arguments)||this;t.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";t.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";t.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";t.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";t.leftSquiggly=t.leftSquigglyLight;t.rightSquiggly=t.rightSquigglyLight;
t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};t.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return t};
_.u(sV,_.z);_.Y=sV.prototype;_.Y.updateLeftSquigglyStyle=function(){_.eU(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.Y.updateRightSquigglyStyle=function(){_.eU(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.Y.ready=function(){var t=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(t)};
_.Y.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&(this.set("isDarkTheme",t),t?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.Y.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
sV.prototype.updateRightSquigglyStyle=sV.prototype.updateRightSquigglyStyle;sV.prototype.updateLeftSquigglyStyle=sV.prototype.updateLeftSquigglyStyle;_.N([_.e(),_.P("design:type",Object)],sV.prototype,"data",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],sV.prototype,"isDarkTheme",void 0);_.N([_.e(),_.P("design:type",String)],sV.prototype,"leftSquiggly",void 0);_.N([_.e(),_.P("design:type",String)],sV.prototype,"rightSquiggly",void 0);
_.N([_.GI("leftSquiggly"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sV.prototype,"updateLeftSquigglyStyle",null);_.N([_.GI("rightSquiggly"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sV.prototype,"updateRightSquigglyStyle",null);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],sV.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],sV.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],sV.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],sV.prototype,"actionButtonOverride",void 0);_.N([_.Ul({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],sV);
_.G(sV,"ytd-handles-claiming-header-renderer",function(){if(O5s!==void 0)return O5s;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return O5s=t},{mode:1});var Xms;var L7=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};t.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";t.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";t.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";t.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
t.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";t.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";t.image0SquigglyBackground=t.image0LightSquigglyBackground;t.image1SquigglyBackground=t.image1LightSquigglyBackground;t.image3SquigglyBackground=t.image3LightSquigglyBackground;return t};
_.u(L7,_.z);_.Y=L7.prototype;_.Y.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.Y.onDataChanged=function(){this.updateTitleAndImages()};
_.Y.onThemeChanged=function(){this.updateTitleAndImages()};
_.Y.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&(this.isDarkTheme=t)};
_.Y.updateImage0SquigglyBackground=function(){_.eU(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.Y.updateImage1SquigglyBackground=function(){_.eU(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.Y.updateImage3SquigglyBackground=function(){_.eU(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.Y.updateTitleAndImages=function(){var t,E;((t=this.data)==null?void 0:(E=t.titleImages)==null?void 0:E.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))};
L7.prototype.updateImage3SquigglyBackground=L7.prototype.updateImage3SquigglyBackground;L7.prototype.updateImage1SquigglyBackground=L7.prototype.updateImage1SquigglyBackground;L7.prototype.updateImage0SquigglyBackground=L7.prototype.updateImage0SquigglyBackground;L7.prototype.onThemeChanged=L7.prototype.onThemeChanged;L7.prototype.onDataChanged=L7.prototype.onDataChanged;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],L7.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],L7.prototype,"isDarkTheme",void 0);_.N([_.e(),_.P("design:type",Object)],L7.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],L7.prototype,"title0",void 0);_.N([_.e(),_.P("design:type",Object)],L7.prototype,"title1",void 0);_.N([_.e(),_.P("design:type",Object)],L7.prototype,"title2",void 0);_.N([_.e(),_.P("design:type",Object)],L7.prototype,"title3",void 0);
_.N([_.e(),_.P("design:type",Object)],L7.prototype,"title4",void 0);_.N([_.e(),_.P("design:type",Object)],L7.prototype,"image0",void 0);_.N([_.e(),_.P("design:type",Object)],L7.prototype,"image1",void 0);_.N([_.e(),_.P("design:type",Object)],L7.prototype,"image2",void 0);_.N([_.e(),_.P("design:type",Object)],L7.prototype,"image3",void 0);_.N([_.e(),_.P("design:type",Object)],L7.prototype,"image4",void 0);_.N([_.e(),_.P("design:type",String)],L7.prototype,"image0SquigglyBackground",void 0);
_.N([_.e(),_.P("design:type",String)],L7.prototype,"image1SquigglyBackground",void 0);_.N([_.e(),_.P("design:type",String)],L7.prototype,"image3SquigglyBackground",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],L7.prototype,"onDataChanged",null);_.N([_.GI("isDarkTheme"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],L7.prototype,"onThemeChanged",null);
_.N([_.GI("image0SquigglyBackground"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],L7.prototype,"updateImage0SquigglyBackground",null);_.N([_.GI("image1SquigglyBackground"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],L7.prototype,"updateImage1SquigglyBackground",null);
_.N([_.GI("image3SquigglyBackground"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],L7.prototype,"updateImage3SquigglyBackground",null);_.N([_.Ul({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],L7);
_.G(L7,"ytd-handles-claiming-title-images-section-renderer",function(){if(Xms!==void 0)return Xms;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Xms=t},{mode:1});var hGr;var PZ=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.u(PZ,_.z);PZ.prototype.ready=function(){var t=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(t)};
PZ.prototype.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&this.set("isDarkTheme",t)};
PZ.prototype.onCopyButtonClick=function(){var t=this,E,p,U;return _.q(function(x){return(E=t.data)!=null&&E.primaryChannelUrl?x.yield(navigator.clipboard.writeText(((p=t.data)==null?0:p.encodedChannelUrl)?t.data.encodedChannelUrl:"https://"+_.R4((U=t.data)==null?void 0:U.primaryChannelUrl)),0):x.jumpTo(0)})};
_.N([_.e(),_.P("design:type",Object)],PZ.prototype,"data",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],PZ.prototype,"ytComponentBehavior",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],PZ.prototype,"isDarkTheme",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],PZ.prototype,"ytActionHandlerBehavior",void 0);_.N([_.Ul({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],PZ);
_.G(PZ,"ytd-handles-claiming-update-social-renderer",function(){if(hGr!==void 0)return hGr;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return hGr=t},{mode:1});var aXs;var Tb=function(){var t=_.z.apply(this,arguments)||this;t.JSC$16458_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";t.JSC$16458_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};t.squigglyBackground=t.JSC$16458_squigglyBackgroundLight;return t};
_.u(Tb,_.z);Tb.prototype.updateSquigglyBackgroundStyle=function(){_.eU(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
Tb.prototype.ready=function(){var t=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",t);this.squigglyBackground=t?this.JSC$16458_squigglyBackgroundDark:this.JSC$16458_squigglyBackgroundLight};
Tb.prototype.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&(this.set("isDarkTheme",t),this.squigglyBackground=t?this.JSC$16458_squigglyBackgroundDark:this.JSC$16458_squigglyBackgroundLight)};
Tb.prototype.updateSquigglyBackgroundStyle=Tb.prototype.updateSquigglyBackgroundStyle;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Tb.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Tb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Tb.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Tb.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Tb.prototype,"isDarkTheme",void 0);_.N([_.e(),_.P("design:type",String)],Tb.prototype,"squigglyBackground",void 0);_.N([_.GI("squigglyBackground"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Tb.prototype,"updateSquigglyBackgroundStyle",null);_.N([_.Ul({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],Tb);
_.G(Tb,"ytd-handles-claiming-vanity-info-renderer",function(){if(aXs!==void 0)return aXs;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return aXs=t},{mode:1});var eGG;var oA=function(){var t=_.z.apply(this,arguments)||this;t.JSC$16461_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";t.JSC$16461_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";t.squigglyBackground=t.JSC$16461_squigglyBackgroundLight;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.u(oA,_.z);_.Y=oA.prototype;_.Y.ready=function(){var t=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(t)};
_.Y.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&(this.set("isDarkTheme",t),this.squigglyBackground=t?this.JSC$16461_squigglyBackgroundDark:this.JSC$16461_squigglyBackgroundLight)};
_.Y.updateSquigglyBackgroundStyle=function(){_.eU(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.Y.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.Y.detached=function(){this.stop()};
_.Y.stop=function(){this.playerElement.stop()};
_.Y.setupVideoPlayer=function(){var t=this,E,p;return _.q(function(U){E=t.data.videoId;p="http://i1.ytimg.com/vi/"+E+"/maxresdefault.jpg";t.playerElement.loadVideoWithPlayerVars({video_id:E,iurlhq:p});_.Do(U)})};
oA.prototype.onDataChanged=oA.prototype.onDataChanged;oA.prototype.updateSquigglyBackgroundStyle=oA.prototype.updateSquigglyBackgroundStyle;_.N([_.e({value:!1}),_.P("design:type",Boolean)],oA.prototype,"isDarkTheme",void 0);_.N([_.e(),_.P("design:type",String)],oA.prototype,"squigglyBackground",void 0);_.N([_.Nl("#player"),_.P("design:type",Object)],oA.prototype,"playerElement",void 0);_.N([_.e(),_.P("design:type",Object)],oA.prototype,"data",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],oA.prototype,"ytActionHandlerBehavior",void 0);_.N([_.GI("squigglyBackground"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oA.prototype,"updateSquigglyBackgroundStyle",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oA.prototype,"onDataChanged",null);
_.N([_.Ul({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],oA);
_.G(oA,"ytd-handles-claiming-video-item-renderer",function(){if(eGG!==void 0)return eGG;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return eGG=t},{mode:1});var F2p;var $N=function(){var t=_.sU.apply(this,arguments)||this;t.dragging=!1;t.dragMouseStart=0;t.dragOffsetStart=0;t.containerWidthDiff=0;t.boundPrevClick=function(){t.set("offset",WZ(t,t.offset-(t.scrollDistance||320)))};
t.boundNextClick=function(){t.set("offset",WZ(t,t.offset+(t.scrollDistance||320)))};
t.boundScrollContainerMouseDown=function(E){t.dragMouseStart=E.clientX;t.dragOffsetStart=t.offset;t.dragging=!0};
t.boundScrollContainerDrag=function(E){t.dragging&&t.set("offset",WZ(t,t.dragOffsetStart-(E.clientX-t.dragMouseStart)))};
t.boundMouseUp=function(){t.onMouseUp()};
t.boundWheelScroll=function(E){var p=0;Math.abs(E.deltaX)>=Math.abs(E.deltaY)?p=E.deltaX:E.shiftKey&&(p=E.deltaY);p!==0&&(t.offset+=p,E.stopPropagation(),E.preventDefault())};
t.boundChipCloudChipScrollIntoView=function(E){(E=E.detail)&&t.scrollChipIntoView(E)};
return t};
_.u($N,_.sU);$N.prototype.attached=function(){var t=_.ZN(this.hostElement).querySelector("#scroll-container");t.addEventListener("wheel",this.boundWheelScroll);t.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);t.style.touchAction="pan-y";t.addEventListener("pointerdown",this.boundScrollContainerMouseDown);t.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
$N.prototype.detached=function(){var t=_.ZN(this.hostElement).querySelector("#scroll-container");t.removeEventListener("wheel",this.boundWheelScroll);t.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);t.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);t.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
$N.prototype.reset=function(){this.set("offset",0);_.XE(this,this.setContainerWidthDiff);_.XE(this,this.setButtonsState)};
var WZ=function(t,E){return Math.min(Math.max(E,0),t.containerWidthDiff)};
_.Y=$N.prototype;_.Y.onMouseUp=function(){this.dragging=!1};
_.Y.transformContainer=function(){this.offset=WZ(this,this.offset);var t=_.qO("HTML_DIR")==="rtl"?"":"-";_.ZN(this.hostElement).querySelector("#chips").style.transform="translateX("+t+this.offset+"px)";_.XE(this,this.setButtonsState)};
_.Y.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=WZ(this,this.offset));this.atStart=this.offset<=0};
_.Y.setContainerWidthDiff=function(){var t=_.ZN(this.hostElement).querySelector("#scroll-container"),E=_.ZN(this.hostElement).querySelector("#chips");t&&E&&(this.containerWidthDiff=E.clientWidth-t.clientWidth)};
_.Y.scrollChipIntoView=function(t){var E=_.ZN(this.hostElement).querySelector("#scroll-container");if(E){var p=this.atStart?0:106,U=this.atEnd?0:106;t.offsetLeft<this.offset+p?this.offset=WZ(this,t.offsetLeft-p):t.offsetLeft+t.clientWidth>this.offset+E.clientWidth-U&&(this.offset=WZ(this,t.offsetLeft+t.clientWidth+U-E.clientWidth))}};
$N.prototype.transformContainer=$N.prototype.transformContainer;_.N([_.e({value:0}),_.P("design:type",Number)],$N.prototype,"offset",void 0);_.N([_.e({value:!0,reflectToAttribute:!0}),_.P("design:type",Boolean)],$N.prototype,"atStart",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],$N.prototype,"atEnd",void 0);_.N([_.e(),_.P("design:type",Number)],$N.prototype,"scrollDistance",void 0);
_.N([_.GI("offset"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$N.prototype,"transformContainer",null);_.N([_.L0()],$N);var zGp;var lXZ;_.K7=_.l(function(t){var E=t.data;t=_.M(_.Py(!1,void 0,"bob3J"));var p=t.next().value,U=t.next().value;t=function(A){if((E==null?void 0:E().state)!==1){var m,b;(b=(m=E()).onTap)==null||b.call(m,A)}};
var x={};return _.H("chip-shape",{class:"ytChipShapeHost","on:focusin":_.aC(function(){var A=_.X3().resolve(_.OB(_.FA));if(A){U(A.isKeyBoardInUse());var m,b;(b=(m=E()).onFocusIn)==null||b.call(m)}return!1}),
"on:focusout":_.aC(function(){U(!1);return!1})},_.H(GTr,{shouldWrapInButton:function(){return E().type!==2},
selected:function(){return E().state===0},
onClick:t,isDropdown:function(){return E().type===1},
accessibilityLabel:function(){return E().type===1?void 0:E().accessibilityLabel}},_.H("div",{class:_.X5("ytChipShapeChip",function(){a:switch(E==null?void 0:E().state){case 0:var A="ytChipShapeActive";
break a;case 1:A="ytChipShapeDisabled";break a;default:A="ytChipShapeInactive"}return A},function(){var A=E().type===1||E().type===2,m=E();
return A||m!=null&&m.startIcon?m==null||!m.startIcon||m!=null&&m.text?A?"ytChipShapeEndIconPadding":(m==null?0:m.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var A=E();
if((A==null?void 0:A.style)===0&&(A==null?void 0:A.state)===0){var m;A=((m=_.X3().resolve(_.OB(_.Ld)))==null?0:m())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else A="";return A},(x.ytChipShapeFocused=function(){var A;
return p()&&((A=E())==null?void 0:A.state)!==1},x))},_.H(_.w,{cond:function(){return E().startIcon},
then:function(){return _.H(_.lz,{icon:function(){var A;return(A=E())==null?void 0:A.startIcon},
className:_.X5(function(){return E().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var A=E(),m,b=(m=_.X3().resolve(_.OB(_.Ld)))==null?void 0:m();
return(A==null?void 0:A.style)===0&&(A==null?void 0:A.state)===0&&b?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return E().text},_.H(nJ3,{shape:E,
onClick:t}),_.H(_.lu,{model:{borderRadius:"8px"}}))))},"Qc");
_.K7.idomCompat=!0;var GTr=_.l(function(t){var E=_.aC(function(p){t.onClick(p);return!1});
return _.H(_.w,{cond:t.shouldWrapInButton,then:function(){return _.H("button",{class:"ytChipShapeButtonReset","on:click":E,role:function(){return t.isDropdown()?"combobox":"tab"},
"aria-label":t.accessibilityLabel,"aria-selected":t.selected},t.children)},
else:function(){return t.children}})},"Rc"),nJ3=_.l(function(t){var E=t.shape;
var p=t.onClick;var U=_.aC(function(x){p(x);return!1});
return _.H(_.SC,null,_.H(_.Kw,{when:function(){return E().type===1}},function(){return _.H(_.lz,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.H(_.Kw,{when:function(){return E().type===2}},function(){return _.H("button",{class:"ytChipShapeButtonReset",
"on:click":U},_.H(_.lz,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.H(_.Kw,{when:function(){return E().type===0}},function(){return _.H(_.Oj,null)}))},"Sc");_.k2(_.K7,"chip-shape",{props:{data:_.uu}});var vZ=function(){var t=_.z.apply(this,arguments)||this;t.disableDeselectEvent=!1;t.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return t};
_.u(vZ,_.z);_.Y=vZ.prototype;_.Y.onSelectChipCommand=function(t){if(!this.selected&&this.data&&(t=_.k(t,mUr),t.targetId&&t.targetId===this.data.targetId))this.onTap()};
_.Y.onFilterChipTransformCommand=function(t){if(!this.selected&&this.data){var E;(t=(E=_.k(t,tx0))==null?void 0:E.chipUniqueId)&&t===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.Y.dataChanged=function(){var t=this;_.XE(this,function(){t.data&&t.data.isSelected&&!t.selected&&(t.scrollChipIntoView(),t.onTap())})};
_.Y.computeChipStyle=function(t){return t!=null?t:"STYLE_DEFAULT"};
_.Y.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint?_.du(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.du(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.Y.onFocus=function(){var t=_.X3().resolve(_.OB(_.FA));t&&t.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.Y.scrollChipIntoView=function(){_.kT(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.aE.Object.defineProperties(vZ.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.icon)}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return Qbi({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
vZ.prototype.onFocus=vZ.prototype.onFocus;vZ.prototype.onTap=vZ.prototype.onTap;vZ.prototype.dataChanged=vZ.prototype.dataChanged;_.N([_.g(_.KQ),_.P("design:type",Object)],vZ.prototype,"ironButtonState",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],vZ.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],vZ.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],vZ.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.ou),_.P("design:type",Object)],vZ.prototype,"ironA11yKeysBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],vZ.prototype,"disableDeselectEvent",void 0);_.N([_.e(),_.P("design:type",Object)],vZ.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("data.icon"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],vZ.prototype,"hasIcon",null);
_.N([_.e({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.P("design:type",String)],vZ.prototype,"chipStyle",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],vZ.prototype,"selected",void 0);_.N([_.Z("data","selected"),_.P("design:type",Object),_.P("design:paramtypes",[])],vZ.prototype,"chipShapeData",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vZ.prototype,"dataChanged",null);
_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vZ.prototype,"onTap",null);_.N([_.lc("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vZ.prototype,"onFocus",null);_.N([_.p4({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],vZ);
_.G(vZ,"yt-chip-cloud-chip-renderer",function(){if(lXZ===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;zGp===void 0&&(zGp=document.createElement("template"));var U=zGp;p.call(E,U.content.cloneNode(!0),t.content.firstChild);lXZ=t}t=lXZ;return t},{mode:2});var rEJ=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.NKG=_.l(function(t){function E(){if(rEJ.has(t.data().displayType)){var B=!U(),R;if((R=t.disableDeselection)==null||!R.call(t)||B){t.data().selected=B;R=Object.assign({},m(),{selected:B});b(R);var V;(V=t.callback)==null||V.call(t,R,B)}}}
var p=_.EB("chip-view-model",function(B){var R=t.data().tooltipTargetId,V=_.SV();R&&_.y8(V,R,B);return function(){v5(V,B)}}),U=function(){var B,R;
return!!(((B=t.selected)==null?void 0:B.call(t))!==void 0?(R=t.selected)==null?0:R.call(t):m().selected)},x=_.M(_.j5(t.data)),A=x.next().value;
x=x.next().value;var m=A,b=x,f=_.nd(jbL,function(){return t.data().chipEntityKey||""});
return _.H("chip-view-model",{class:"ytChipViewModelHost",el:p},_.H(_.K7,{data:function(){var B,R=Object.assign({},m(),{selected:U()}),V=f(),Q=(B=t.disableDeselection)==null?void 0:B.call(t);a:switch(R.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":B=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":B=3;break a;default:B=0}return{text:(V==null?void 0:V.text)||R.text,state:R.disabled?1:R.selected?0:2,type:B,onTap:kii(R,p,E,
Q),accessibilityLabel:R.accessibilityLabel||R.text}}}))},"Tc");
_.NKG.idomCompat={callbacks:{callback:!0}};_.ye=_.l(function(t){t=_.C4(t,{nextButtonStyle:0});var E=t.data,p=t.callback,U=t.selectionBehavior,x=t.disableChipsScrollAnimation,A=t.nextButtonStyle,m=_.pR("div");t=_.M(_.Py(!0,void 0,"VwW6Jc"));var b=t.next().value,f=t.next().value;t=_.M(_.Py(!1,void 0,"OIoagd"));var B=t.next().value,R=t.next().value,V=!1,Q=0,C=function(){switch(A()){case 0:return"ytChipsShelfViewModelGradientButton";case 1:return"ytChipsShelfViewModelFloatingButton";default:return"ytChipsShelfViewModelGradientButton"}};
_.xa(function(){f(O());R(a())});
t=_.M(_.j5(function(){var bY={};return E().autoselectedChipIndex!=null?(bY[E().autoselectedChipIndex]=!0,bY):{}}));
var d=t.next().value,I=t.next().value,O=function(){var bY=m.value;return bY==null||bY.scrollLeft-1<=0},a=function(){var bY=m.value;
return bY==null?!1:bY.scrollLeft+1>=(bY==null?NaN:bY.scrollWidth)-(bY==null?NaN:bY.clientWidth)},F=function(){return E().isHorizontallyScrollable},L=function(bY){m.value!=null&&(_.qO("HTML_DIR")==="rtl"&&(bY=-bY),m.value.scrollBy({left:bY,
behavior:(x==null?0:x())?"instant":"smooth"}))},D=function(){L(-320)},W=function(){L(320)},K=_.aC(function(bY){V=!0;
Q=bY.clientX}),v=_.aC(function(bY){if(V){bY=bY.clientX;
var kL=bY-Q;Q=bY;var R0;(R0=m.value)==null||R0.scrollBy({left:-kL})}}),YL=_.aC(function(){var bY=O(),kL=a();
bY!==b()&&f(bY);kL!==B()&&R(kL)});
_.Xv("pointerup",function(){V&&(V=!1)});
return _.H("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.H(_.Lk,{contentId:function(){return E().contentId},
useModernStyle:!0},function(){var bY={},kL={};return _.H("div",null,_.H(_.w,{cond:function(){return E().title},
then:function(){return _.H("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.H("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return E().title}),_.H(_.sY,{data:function(){return E().overflowButton}},{buttonViewModel:_.D5}))}}),_.H("div",{class:_.X5("ytChipsShelfViewModelChipsShelfContent",C)},_.H(_.w,{cond:function(){return E().previousButton},
then:function(){var R0={};return _.H("div",{class:_.X5("ytChipsShelfViewModelLeftArrowContainer",(R0.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return b()},R0))},_.H(_.sY,{data:function(){return E().previousButton}},{buttonViewModel:function(j$){return _.H(_.D5,{data:j$.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:D})}}))}}),_.H("div",{el:m,
"on:pointerdown":K,"on:pointermove":v,"on:scroll":YL,class:_.X5("ytChipsShelfViewModelChipsScrollContainer",(bY.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=F,bY))},_.H("div",{class:_.X5("ytChipsShelfViewModelChipsContainer",(kL.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=F,kL.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,kL)),role:"tablist"},_.H(_.sY,{data:function(){return E().contents}},{chipViewModel:function(R0,j$){return _.H("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.H(_.NKG,{data:R0.data,
callback:function(lY,Tt){var si=j$(),Q0,ps=(Q0=U==null?void 0:U())!=null?Q0:0;ps===1||ps===2?(Q0={},I((Q0[si]=Tt,Q0))):ps===0&&(Q0={},I(Object.assign({},d(),(Q0[si]=Tt,Q0))));p==null||p(lY,Tt,si)},
disableDeselection:function(){return(U==null?void 0:U())===1},
selected:function(){return!!d()[j$()]}}))}}))),_.H(_.w,{cond:function(){return E().nextButton},
then:function(){var R0={};return _.H("div",{class:_.X5("ytChipsShelfViewModelRightArrowContainer",(R0.ytChipsShelfViewModelRightArrowContainerIsHidden=B,R0))},_.H(_.sY,{data:function(){return E().nextButton}},{buttonViewModel:function(j$){return _.H(_.D5,{data:j$.data,
className:"ytChipsShelfViewModelRightArrow",onClick:W})}}))}})))}))},"Vc");
_.ye.idomCompat={callbacks:{callback:!0}};var Du4=_.l(function(t){var E=t.data;var p=t.showChips;var U=t.isUpdateInProgress;var x=t.chipClickCallback;t=_.M(_.Py(!1,void 0,"uth3se"));var A=t.next().value,m=t.next().value;t=_.M(_.Py(!1,void 0,"qED0bb"));var b=t.next().value,f=t.next().value,B=function(){var V,Q;return!((V=E())==null?0:V.responseMessage)&&!((Q=E())==null||!Q.chipsShelf)},R=void 0;
_.M$(function(){f(!0);var V=(p()||B())&&!U();requestAnimationFrame(function(){m(V)});
R&&clearTimeout(R);R=setTimeout(function(){f(!1)},300)},"OBQBmf");
_.iK(function(){R&&clearTimeout(R)});
t={};return _.H("ytd-ai-response-box-view-model",{class:_.X5("ytdAiResponseBoxViewModelHost")},_.H("div",{class:_.X5("ytdAiResponseBoxViewModelResponseMessageContainer",(t.ytdAiResponseBoxViewModelResponseMessageContainerHidden=A,t.ytdAiResponseBoxViewModelNotShown=function(){return A()&&!b()},t))},_.H(_.w,{cond:U,
then:function(){return _.H("div",null,_.H(_.d8,{text:function(){return E().responsePendingMessage}}))},
else:function(){return _.H(_.Oj,null,_.H(_.w,{cond:function(){var V;return(V=E().responseMessageIcon)==null?void 0:V.iconType},
then:function(V){return _.H("div",{class:"ytdAiResponseBoxViewModelResponseMessageIcon"},_.H(_.lz,{icon:V}))}}),_.H("div",null,_.H(_.d8,{text:function(){return E().responseMessage}})))}})),_.H(_.sY,{data:function(){return E().chipsShelf}},{chipsShelfViewModel:function(V){V=V.data;
var Q={};return _.H("div",{class:_.X5("ytdAiResponseBoxViewModelChipsShelfContainer",(Q.ytdAiResponseBoxViewModelChipsShelfContainerShown=A,Q.ytdAiResponseBoxViewModelNotShown=function(){return!A()&&!b()},Q))},_.H(_.ye,{data:V,
selectionBehavior:3,nextButtonStyle:1,callback:x}))}}))},"Xc");var sYW;sYW=Object.assign({},{continuation:yx4,download:PlX,canvas:wJY,reportChannelAbuse:UVs,ui:VAJ,share:xV3,talkToRecs:Mko,watch:RS,ypc:feX,radioButtonGroup:ff$,collabInviteLink:q$L},vNs,{voiceSearch:j28,shorts:wY});_.L2o=Se(sYW);_.PjW=cs(_.L2o);_.TKr=(0,_.PjW)(_.L2o.talkToRecs,{talkToRecsStateSelector:function(t){return t}});var W2r=_.l(function(t){var E=_.M((0,_.Aam)(t.data)).next().value,p=_.KN(function(){var Gt;a:{if(Gt=E().onUpdateText)if(Gt=_.k(Gt,_.x2)){var V0;Gt=(V0=_.k(Gt,Uir))==null?void 0:V0.stepId;break a}Gt=void 0}return Gt},void 0,"olO2Rd");
t=_.M(_.Py(!1,void 0,"QCzl5d"));var U=t.next().value,x=t.next().value;t=_.M(_.Py(!1,void 0,"cQ7jrd"));var A=t.next().value,m=t.next().value;t=_.M(CDE());var b=t.next().value;t=t.next().value;var f=_.D4(_.TKr.talkToRecsStateSelector),B=_.M(_.Py("",void 0,"ry2Eac")),R=B.next().value,V=B.next().value;B=_.M(_.Py(!1,void 0,"EwWXmb"));var Q=B.next().value,C=B.next().value,d=_.M(_.Py(!1,void 0,"hORmtb"));B=d.next().value;var I=d.next().value;d=_.M(_.Py(!1,void 0,"fBzwv"));var O=d.next().value,a=d.next().value;
d=_.M(_.Py(!1,void 0,"BCC4Zc"));var F=d.next().value,L=d.next().value,D=_.EB("div");d=_.M(_.Py(void 0,void 0,"Xvb7gd"));var W=d.next().value,K=d.next().value,v=void 0,YL=function(Gt){Gt!==U()&&(m(!0),x(Gt),v&&clearTimeout(v),v=setTimeout(function(){m(!1)},300))},bY=function(){if(W()!==void 0){var Gt=W();
YL(window.scrollY>Gt)}},kL=function(){var Gt;
K((Gt=D.value)==null?void 0:Gt.offsetHeight);b("yt-feed-filter-chip-bar-resize")},R0="";
_.M$(function(){R0=R()},"UJeAbb");
_.A6(function(){var Gt,V0,SW;V((SW=(V0=daO(p(),f()))!=null?V0:(Gt=E().textInputValue)==null?void 0:Gt.content)!=null?SW:"");C(!!E().welcomeBannerTitle&&!R());kL();document.addEventListener("scroll",bY);_.iK(function(){document.removeEventListener("scroll",bY);v&&clearTimeout(v)})});
_.M$(function(){Q();kL()},"xF8Dy");
d=_.aC(function(){a(!0);I(!0)});
var j$=_.aC(function(){I(!1)});
_.M$(function(){var Gt=E();a(!1);L(!1);var V0,SW;((SW=_.k((V0=Gt.contents)==null?void 0:V0[0],IZX))==null?0:SW.responseMessageIcon)?V(oJW.cachedUserQuery):oJW.cachedUserQuery=R0},"XQIH3b");
var lY=function(Gt){var V0=E().onUpdateText;V0&&_.bz(V0,{form:{userQuery:Gt}})},Tt=_.tI(function(Gt){lY(Gt)},150),si=_.aC(function(Gt){Gt=Gt.target.value;
V(Gt);Tt(Gt);return!1});
_.M$(function(){var Gt=daO(p(),f());Gt!==void 0&&Gt!==R0&&V(Gt)},"UIIfAc");
var Q0=function(){L(!0);C(!1)},ps=function(){var Gt=_.k(E().submitButton,_.Cz);
if(Gt==null?0:Gt.trackingParams){var V0=_.$8(Gt.trackingParams),SW=_.yL();SW&&V0&&_.HA(SW,V0,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}if(Gt=Gt==null?void 0:Gt.onTap)_.bz(Gt),Q0()},$L=_.aC(function(Gt){Gt.key==="Enter"&&(lY(Gt.target.value.trim()),ps());
return!1}),Cs=function(){ps()},km=_.aC(function(){b("yt-feed-customization-scroll-up")}),ZT={},l8={},Rt={},wE={};
return _.H("ytd-feed-customization-form-view-model",{class:_.X5("ytdFeedCustomizationFormViewModelHost",(ZT.ytdFeedCustomizationFormViewModelHostCollapsed=U,ZT)),el:_.V9(t)},_.H("div",{class:"ytdFeedCustomizationFormViewModelBodyContainer",el:D},_.H("div",{class:_.X5("ytdFeedCustomizationFormViewModelExpandedContent",(l8.ytdFeedCustomizationFormViewModelNotShown=function(){return U()&&!A()},l8))},_.H(_.w,{cond:function(){return E().disclaimer},
then:function(){return _.H("div",{class:"ytdFeedCustomizationFormViewModelDisclaimer"},_.H(_.d8,{text:function(){return E().disclaimer}}))}}),_.H(_.w,{cond:Q,
then:function(){return _.H("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerContainer"},_.H("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerTitle"},_.H(_.d8,{text:function(){return E().welcomeBannerTitle}})),_.H("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerSubtitle"},_.H(_.d8,{text:function(){return E().welcomeBannerSubtitle}})))}}),_.H("div",{class:_.X5("ytdFeedCustomizationFormViewModelInputContainer",(Rt.ytdFeedCustomizationFormViewModelInputContainerHighlighted=
B,Rt))},_.H("input",{class:"ytdFeedCustomizationFormViewModelInput",
type:"text",placeholder:function(){var Gt;return(Gt=E().textInputPlaceholder)==null?void 0:Gt.content},
"prop:value":R,"on:focus":d,"on:blur":j$,"on:input":si,"on:keyup":$L,maxlength:300,disabled:F}),_.H(_.w,{cond:function(){return!!R()&&!F()},
then:function(){return _.H(_.sY,{data:function(){return E().clearButton}},{buttonViewModel:function(Gt){return _.H("div",{class:"ytdFeedCustomizationFormViewModelClearButtonContainer"},_.H(_.D5,{data:Gt.data}))}})}}),_.H(_.w,{cond:function(){return F()},
then:function(){return _.H(_.sY,{data:function(){return E().inProgressButton}},{buttonViewModel:function(Gt){return _.H("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.H(_.D5,{data:Gt.data,
buttonOverrides:{disabled:!0}}))}})},
else:function(){return _.H(_.sY,{data:function(){return E().submitButton}},{buttonViewModel:function(Gt){return _.H("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.H(_.D5,{data:Gt.data,
onClick:Q0}))}})}}),_.H(_.sY,{data:function(){return E().menuButton}},{buttonViewModel:function(Gt){return _.H("div",{class:"ytdFeedCustomizationFormViewModelMenuButtonContainer"},_.H(_.D5,{data:Gt.data,
buttonOverrides:function(){return{disabled:F()}}}))}})),_.H(_.sY,{data:function(){return E().contents}},{aiResponseBoxViewModel:function(Gt){return _.H("div",{class:"ytdFeedCustomizationFormViewModelResponseContainer"},_.H(Du4,{data:Gt.data,
showChips:O,isUpdateInProgress:F,chipClickCallback:Cs}))}})),_.H("div",{class:_.X5("ytdFeedCustomizationFormViewModelCollapsedContent",(wE.ytdFeedCustomizationFormViewModelNotShown=function(){return!U()&&!A()},wE)),
"on:click":km},_.H("div",{class:"ytdFeedCustomizationFormViewModelCollapsedText"},function(){var Gt;return R()||((Gt=E().textInputPlaceholder)==null?void 0:Gt.content)}))))},"bd"),$u4=function(){this.cachedUserQuery=""};
$u4.prototype.reset=function(){this.cachedUserQuery=""};
var oJW=new $u4;_.k2(W2r,"ytd-feed-customization-form-view-model",{props:{data:_.uu}});var K2W=_.i7.persistentPanelVisibleSelector,So=function(){var t=_.z.apply(this,arguments)||this;t.isDarkTheme=!1;t.notSticky=!1;t.transparentBackground=!1;t.shouldHide=!1;t.disableSticky=!1;t.fluidWidth=!1;t.isClipList=!1;t.defaultChipIndex=0;t.hasSelectedChipContent=!1;t.isPlaylist=!1;t.playlistVotingAnimationEnabled=_.r("web_enable_voting_animation");t.toolbarHeight=0;t.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction",
"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.u(So,_.z);_.Y=So.prototype;
_.Y.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},selectedChipContent:{id:"selected-chip-content",mapping:{feedCustomizationFormViewModel:{component:"ytd-feed-customization-form-view-model"}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.Y.attached=function(){var t=this;document.addEventListener("scroll",_.zI(this,this.updateChipBarWidthAndTop));document.addEventListener("yt-feed-filter-chip-bar-resize",_.zI(this,this.onFeedFilterChipBarResize));this.isDarkTheme=document.documentElement.hasAttribute("dark");var E;this.toolbarHeight=((E=document.querySelector("ytd-masthead"))==null?void 0:E.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(p){t.handleIntersect(p)},{rootMargin:"-"+
(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){t.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.Y.detached=function(){var t;(t=this.intersectionObserver)==null||t.disconnect();var E;(E=this.resizeObserver)==null||E.disconnect();document.removeEventListener("scroll",_.zI(this,this.updateChipBarWidthAndTop));document.removeEventListener("yt-feed-filter-chip-bar-resize",_.zI(this,this.onFeedFilterChipBarResize))};
_.Y.dataChanged=function(){var t=this,E,p,U=(E=this.data)==null?void 0:(p=E.contents)==null?void 0:p.findIndex(function(A){var m;return!((m=_.k(A,wdT))==null?0:m.navigationEndpoint)});
U&&(this.defaultChipIndex=U);this.updating=!0;var x=this.findSelectedChipIndex();this.selectedIndex!==x&&(this.selectedIndex=-1);_.XE(this,function(){t.selectedIndex=x;t.updateSelectedChipContent(t.selectedIndex);t.updating=!1;t.ytScrollableChipCloudBehavior.reset()})};
_.Y.findSelectedChipIndex=function(){var t;if((t=this.data)==null||!t.contents)return 0;t=this.data.contents;for(var E=0;E<t.length;E++){var p=void 0;if((p=_.k(t[E],wdT))==null?0:p.isSelected)return E}return 0};
_.Y.computeStyle=function(t){return t};
_.Y.handleChipCloudChipSelectAction=function(t){t=this.JSC$16507_chipsSelector.indexOf(t);t>-1&&(this.JSC$16507_chipsSelector.selectIndex(t),this.updateSelectedChipContent(t))};
_.Y.updateSelectedChipContent=function(t){var E;if((E=this.data)==null||!E.contents||t<0||t>=this.data.contents.length)this.selectedChipContent=void 0;else{var p;this.selectedChipContent=(p=_.k(this.data.contents[t],wdT))==null?void 0:p.content}};
_.Y.handleChipCloudChipDeselectAction=function(){if(_.r("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var t,E,p,U=(p=_.k((t=this.data)==null?void 0:(E=t.contents)==null?void 0:E[this.defaultChipIndex],wdT))==null?void 0:p.navigationEndpoint;U&&_.du(this.hostElement,"yt-browse-section-list-reload-endpoint",[U]);this.JSC$16507_chipsSelector.selectIndex(this.defaultChipIndex);this.updateSelectedChipContent(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.Y.onSelectedChipContentChanged=function(){this.hasSelectedChipContent=!!this.selectedChipContent};
_.Y.onFeedFilterChipBarResize=function(){this.updateDynamicHeight()};
_.Y.updateDynamicHeight=function(){var t=this;this.hasSelectedChipContent&&!this.notSticky?_.XE(this,function(){var E=_.ZN(t.hostElement).querySelector("#chips-wrapper");E&&_.eU(t.hostElement,{"--ytd-chips-bar-dynamic-height":E.clientHeight+"px"})}):_.eU(this.hostElement,{"--ytd-chips-bar-dynamic-height":""})};
_.Y.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.Y.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.Y.onResize=function(){this.updateLayout()};
_.Y.updateLayout=function(){var t=this.ytScrollableChipCloudBehavior;_.XE(t,t.setContainerWidthDiff);t=this.ytScrollableChipCloudBehavior;_.XE(t,t.setButtonsState)};
_.Y.onDarkModeToggledAction=function(t){this.isDarkTheme=t};
_.Y.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.Y.handleIntersect=function(t){this.notSticky=this.isChannelPageGrid||this.disableSticky||t[0].intersectionRatio===1};
_.Y.updateDimensions=function(){var t=this.ytRendererBehavior.parentComponent;if(t){var E,p=(E=t.headerElement)!=null?E:t;_.eU(this.hostElement,{"--ytd-rich-grid-chips-bar-width":p.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.Y.updateSelectedIndexFromBinding=function(t){this.selectedIndex=t.detail.value};
_.Y.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var t;(t=this.sortFilterHeaderRendererElement)==null||t.setAttribute("is-playlist-page-with-filters","")}};
_.Y.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(qqp(!this.notSticky))};
_.aE.Object.defineProperties(So.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 t,E,p=(t=this.data)==null?void 0:(E=t.contents)==null?void 0:E.find(function(U){return _.k(U,jUW)});
return{sortFilterHeaderRenderer:_.k(p,jUW)}}}});
So.prototype.dispatchChipBarIsSticky=So.prototype.dispatchChipBarIsSticky;So.prototype.isPlaylistPageChanged=So.prototype.isPlaylistPageChanged;So.prototype.updateChipBarWidthAndTop=So.prototype.updateChipBarWidthAndTop;So.prototype.onResize=So.prototype.onResize;So.prototype.onPersistentPanelVisibleChanged=So.prototype.onPersistentPanelVisibleChanged;So.prototype.onGuideIsExpandedChanged=So.prototype.onGuideIsExpandedChanged;So.prototype.updateDynamicHeight=So.prototype.updateDynamicHeight;
So.prototype.onSelectedChipContentChanged=So.prototype.onSelectedChipContentChanged;So.prototype.dataChanged=So.prototype.dataChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],So.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],So.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],So.prototype,"actionHandlerBehavior",void 0);
_.N([_.g(_.Ev),_.P("design:type",Object)],So.prototype,"ironResizableBehavior",void 0);_.N([_.g(),_.P("design:type",$N)],So.prototype,"ytScrollableChipCloudBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],So.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],So.prototype,"data",void 0);_.N([_.e({value:0}),_.P("design:type",Number)],So.prototype,"selectedIndex",void 0);_.N([_.e({value:320}),_.P("design:type",Number)],So.prototype,"scrollDistance",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],So.prototype,"isDarkTheme",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],So.prototype,"notSticky",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],So.prototype,"transparentBackground",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.P("design:type",String)],So.prototype,"componentStyle",void 0);
_.N([_.e({selector:_.eOE}),_.P("design:type",Boolean)],So.prototype,"guideIsExpanded",void 0);_.N([_.e({selector:K2W}),_.P("design:type",Boolean)],So.prototype,"persistentPanelVisible",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],So.prototype,"shouldHide",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],So.prototype,"disableSticky",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],So.prototype,"fluidWidth",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],So.prototype,"isClipList",void 0);_.N([_.e(),_.P("design:type",Object)],So.prototype,"defaultChipIndex",void 0);_.N([_.e(),_.P("design:type",Object)],So.prototype,"selectedChipContent",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],So.prototype,"hasSelectedChipContent",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],So.prototype,"isPlaylist",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],So.prototype,"playlistVotingAnimationEnabled",void 0);_.N([_.Nl("#chips"),_.P("design:type",Object)],So.prototype,"JSC$16507_chipsSelector",void 0);_.N([_.Nl("ytd-sort-filter-header-renderer"),_.P("design:type",HTMLElement)],So.prototype,"sortFilterHeaderRendererElement",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],So.prototype,"updating",void 0);
_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],So.prototype,"dataChanged",null);_.N([_.GI("selectedChipContent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],So.prototype,"onSelectedChipContentChanged",null);_.N([_.GI("hasSelectedChipContent","notSticky"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],So.prototype,"updateDynamicHeight",null);
_.N([_.GI("guideIsExpanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],So.prototype,"onGuideIsExpandedChanged",null);_.N([_.GI("persistentPanelVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],So.prototype,"onPersistentPanelVisibleChanged",null);_.N([_.lc("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],So.prototype,"onResize",null);
_.N([_.P3("isChannelPageGrid","disableSticky","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],So.prototype,"updateChipBarWidthAndTop",null);_.N([_.Z("componentStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],So.prototype,"isChannelPageGrid",null);_.N([_.Z("componentStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],So.prototype,"isHashtagLandingPage",null);
_.N([_.GI("isPlaylistPage"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],So.prototype,"isPlaylistPageChanged",null);_.N([_.Z("componentStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],So.prototype,"isPlaylistPage",null);_.N([_.Z("componentStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],So.prototype,"isDisableDeselectEvent",null);
_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],So.prototype,"sortFilterHeaderRendererData",null);_.N([_.e({reflectToAttribute:!0,selector:_.DYE}),_.P("design:type",String)],So.prototype,"frostedGlassMode",void 0);_.N([_.GI("notSticky"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],So.prototype,"dispatchChipBarIsSticky",null);_.N([_.Ul({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],So);
_.G(So,"ytd-feed-filter-chip-bar-renderer",function(){if(F2p!==void 0)return F2p;var t=document.createElement("template");_.J(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n  <div id="selected-chip-content" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n</div>\n');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return F2p=t},{mode:1});var vJs;var ykZ=_.l(function(t){var E=t.data;var p=t.buttonIndex;var U=t.selectedIndex;var x=t.onSelect;var A=function(){return p()===U()},m=function(){var b,f;
return(f=(b=E().text)==null?void 0:b.content)!=null?f:""};
t=_.Cy8();return _.H("yt-toggleable-image-button-view-model",{class:function(){var b={};b=(b.toggleableImageButtonViewModelHost=!0,b[""]=!0,b.toggleableImageButtonViewModelSemiTransparent=U()!==-1&&!A(),b);return _.v9(b)},
tabindex:0,"aria-label":m,"aria-pressed":A,role:"button","on:keydown":t,"on:click":_.aC(function(){x(E().onSubmitCommand);return!1})},_.H(_.w,{cond:function(){return E().logo},
then:function(b){return _.H(_.Q9,{data:b,className:function(){var f={};f=(f.toggleableImageButtonViewModelImage=!0,f.toggleableImageButtonViewModelCircularRadius=!(!E().backgroundColor||!E().backgroundColorDarkMode),f.toggleableImageButtonViewModelGradientRing=!!(A()&&E().backgroundColor&&E().backgroundColorDarkMode),f);return _.v9(f)},
alt:m,useWidth:!1,style:function(){if(A()&&E().backgroundColor&&E().backgroundColorDarkMode){var f=t2(Number(E().backgroundColorDarkMode),"1");var B=t2(Number(E().backgroundColor),"1");f="background: linear-gradient(180deg,"+f+","+B+") border-box;"}else f="";return f}})}}),_.H(_.lu,{model:{borderRadius:"16px"}}),_.H("p",{class:function(){var b={};
b=(b.toggleableImageButtonViewModelLabel=!0,b.toggleableImageButtonViewModelBoldText=A(),b);return _.v9(b)}},_.H(_.d8,{text:function(){return E().text}})))},"cd");
ykZ.idomCompat=!0;var ck0=_.l(function(t){var E=t.data;t=_.M(_.Py({index:-1,command:{}},void 0,"GM3umb"));var p=t.next().value,U=t.next().value;return _.H("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.H("div",{class:"nudgeFormViewModelFormOptions"},_.H(_.sY,{data:function(){return E().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(x,A){return _.H(ykZ,{data:x.data,buttonIndex:A,selectedIndex:function(){return p().index},
onSelect:function(m){U({index:A(),command:m})}})}})),_.H(_.d8,{text:function(){return E().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.H("div",{class:"nudgeFormViewModelSubmit"},_.H(_.sY,{data:function(){return E().submitButton}},{buttonViewModel:function(x){return _.H(SOm,{data:x.data,
isDisabled:function(){return p().index===-1},
onClick:function(){_.bz(p().command)}})}})))},"dd");
ck0.idomCompat=!0;var SOm=_.l(function(t){var E=_.KN(function(){return Object.assign({},t.data(),{state:t.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.H(_.D5,{data:E,onClick:t.onClick})},"ed");_.k2(ck0,"yt-nudge-form-view-model",{props:{data:_.uu}});var cZ=function(){var t=_.z.apply(this,arguments)||this;t.roundedContainer=!0;t.buttonUpdate=_.r("web_modern_buttons");t.isDarkMode=!1;t.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return t};
_.u(cZ,_.z);_.Y=cZ.prototype;_.Y.computeNudgeStyle=function(t){return t?"modernized-nudge":""};
_.Y.handleDarkModeToggledAction=function(t){this.isDarkMode=t};
_.Y.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.Y.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"}}}};
_.Y.computeIsHorizontalButtons=function(t){return t?!!t.applyModernizedStyle&&!!t.enableHorizontalButtons&&!!t.secondaryButton:!1};
_.aE.Object.defineProperties(cZ.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var t,E;return(E=(t=this.data)==null?void 0:t.backgroundStyle)!=null?E:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var t,E;return(E=(t=this.data)==null?void 0:t.contentsLocation)!=null?E:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null?0:t.lightIconImage)}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],cZ.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],cZ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],cZ.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],cZ.prototype,"actionHandlerBehavior",void 0);
_.N([_.e({reflectToAttribute:!0}),_.Z("isHideEnclosingAction"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],cZ.prototype,"isHidden",null);_.N([_.e(),_.P("design:type",Object)],cZ.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],cZ.prototype,"roundedContainer",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],cZ.prototype,"buttonUpdate",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.P("design:type",String)],cZ.prototype,"nudgeStyle",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("data.trimStyle"),_.P("design:type",String),_.P("design:paramtypes",[])],cZ.prototype,"trimStyle",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data.backgroundStyle"),_.P("design:type",String),_.P("design:paramtypes",[])],cZ.prototype,"backgroundStyle",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("data.contentsLocation"),_.P("design:type",String),_.P("design:paramtypes",[])],cZ.prototype,"contentsLocation",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data.disableDropShadow"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],cZ.prototype,"noShadow",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data.lightIconImage"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],cZ.prototype,"noIcon",null);
_.N([_.e({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.P("design:type",Boolean)],cZ.prototype,"isHorizontalButtons",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Object)],cZ.prototype,"isDarkMode",void 0);_.N([_.Ul({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],cZ);
_.G(cZ,"ytd-feed-nudge-renderer",function(){if(vJs!==void 0)return vJs;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return vJs=t},{mode:_.hX("kevlar_poly_si_batch_j028")?1:2});var tGs;var E$o;var tb=function(){var t=_.z.apply(this,arguments)||this;t.collapsed=!1;t.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return t};
_.u(tb,_.z);tb.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"}}}};
tb.prototype.handleRatingSelect=function(){var t;((t=this.data)==null?0:t.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
tb.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],tb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],tb.prototype,"actionHandlerBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],tb.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],tb.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.Rl),_.P("design:type",Object)],tb.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],tb.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],tb.prototype,"collapsed",void 0);_.N([_.Ul({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],tb);
_.G(tb,"ytd-slimline-survey-renderer",function(){if(E$o!==void 0)return E$o;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return E$o=t},{mode:1});var pcZ;var Eq=function(){return _.z.apply(this,arguments)||this};
_.u(Eq,_.z);Eq.prototype.maybeGetBackgroundColor=function(t){return this.isDarkMode?t.section2Color:t.section3Color};
Eq.prototype.colorPaletteChanged=function(){var t=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;t&&(t==null?0:t.secondaryTitleColor)&&this.maybeGetBackgroundColor(t)?(this.hostElement.style.backgroundColor=_.SL(this.maybeGetBackgroundColor(t)),this.hostElement.style.color=_.SL(t.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
Eq.prototype.colorPaletteChanged=Eq.prototype.colorPaletteChanged;_.N([_.g(_.Be),_.P("design:type",Object)],Eq.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Eq.prototype,"data",void 0);_.N([_.e({selector:function(t){return t.ui.darkModeIsEnabled}}),
_.P("design:type",Boolean)],Eq.prototype,"isDarkMode",void 0);_.N([_.e(),_.P("design:type",Object)],Eq.prototype,"lightColorPalette",void 0);_.N([_.e(),_.P("design:type",Object)],Eq.prototype,"darkColorPalette",void 0);_.N([_.GI("darkColorPalette","lightColorPalette","data","isDarkMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Eq.prototype,"colorPaletteChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],Eq);
_.G(Eq,"ytd-endorsement-header-renderer",function(){if(pcZ!==void 0)return pcZ;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return pcZ=t},{mode:1});_.k2(_.BM,"yt-decorated-avatar-view-model",{props:{data:_.uu,className:_.uu}});_.pU=new _.gM("VIEW_TRANSITION_MANAGER_TOKEN");var Uq=function(){var t=_.z.apply(this,arguments)||this;t.fullHeight=_.r("web_rich_grid_media_full_height");t.showChannelAvatar=!0;t.hasPlaylistThumbnail=!1;t.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};t.registerThumbnailForPageTransition=function(){_.r("web_thumbnail_to_watch_transition")&&_.UHo(_.X3().resolve(_.pU),t.thumbnail)};
return t};
_.u(Uq,_.z);_.Y=Uq.prototype;
_.Y.configureRendererStamper=function(){return{lazyLoadMenu:cJ,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"}}}};
_.Y.attached=function(){this.updateInlinePreviewHoverListeners()};
_.Y.detached=function(){this.clearInlinePreviewHoverListeners()};
_.Y.shouldLazyLoadMenu=function(){var t=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.r("kevlar_modern_downloads_page")||!t};
_.Y.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16531_inlinePreviewHoverListener=xj({mediaRenderer:this,lockupElement:this.JSC$16531_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.Y.getVideoPreviewOpts=function(){var t={},E;if((E=this.data)==null?0:E.multipleInlinePlaybackEndpoint)t=hNs;this.isRadio&&(t=XjG);return t};
_.Y.clearInlinePreviewHoverListeners=function(){var t;(t=this.JSC$16531_inlinePreviewHoverListener)==null||dI(t)};
_.Y.getOwner=function(){var t,E,p;return((t=this.data)==null?void 0:(E=t.channelThumbnailSupportedRenderers)==null?void 0:E.channelThumbnailWithLinkRenderer)||_.k((p=this.data)==null?void 0:p.showProviderChannelThumbnail,qWW)};
_.Y.updateLockupSize=function(){var t;((t=this.getOwner())==null?0:t.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.Y.getFeedbackEndpoint=function(t){if(_.k(t,_.xZ))return t;var E,p;t=(p=(E=_.k(t,_.ZU))==null?void 0:E.commands)!=null?p:[];E=_.M(t);for(p=E.next();!p.done;p=E.next())if(p=this.getFeedbackEndpoint(p.value))return p;return null};
_.Y.computeNavigationEndpoint=function(t){return NYL(t==null?void 0:t.navigationEndpoint)};
_.Y.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var t=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(t)!==JSON.stringify(this.data)&&this.set("data",t)}};
_.Y.onDataChanged=function(){var t=this,E=this.getOwner();if(E){this.set("data.owner",E);var p,U,x,A,m,b=((p=this.data)==null?void 0:(U=p.shortBylineText)==null?void 0:(x=U.runs)==null?void 0:(A=x[0])==null?void 0:A.text)||((m=E.name)==null?void 0:m.simpleText);this.set("data.owner.title",b)}var f,B,R,V,Q,C;E=((f=this.data)==null?void 0:(B=f.thumbnailRenderer)==null?void 0:B.playlistVideoThumbnailRenderer)||((R=this.data)==null?void 0:(V=R.thumbnailRenderer)==null?void 0:V.playlistCustomThumbnailRenderer)||
((Q=this.data)==null?void 0:(C=Q.thumbnailRenderer)==null?void 0:C.showCustomThumbnailRenderer);var d;((d=this.data)==null?0:d.thumbnail)||!E||this.set("data.thumbnail",E.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){t.updateLockupSize()});
var I;if(f=((I=this.data)==null?void 0:I.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(f);var O;((O=this.dismissActionToReplayEntity)==null?0:O.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.Y.onHiddenChanged=function(){this.updateLockupSize()};
_.Y.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.du(this.hostElement,"yt-terminate-video-preview-action");else{var t;(t=this.videoTitleLink)==null||t.focus()}};
_.Y.metadataColorChanged=function(){var t;if(this.metadataColor&&((t=this.videoTitle)==null?0:t.style))this.videoTitle.style.color=_.SL(this.metadataColor);else{var E,p;!this.metadataColor&&((E=this.videoTitle)==null?0:(p=E.style)==null?0:p.color)&&(this.videoTitle.style.color="")}};
_.Y.onDetailsClick=function(t){var E=this.computedNavigationEndpoint;E&&(_.Qb(_.Vx(t),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.kT(this.hostElement,"yt-navigate",{endpoint:E}))};
_.Y.onRendererTap=function(){this.registerThumbnailForPageTransition();var t,E,p=((t=this.data)==null?void 0:t.serviceEndpoint)||this.getFeedbackEndpoint((E=this.data)==null?void 0:E.navigationEndpoint);p&&_.k(p,_.xZ)&&this.ytComponentBehavior.resolveCommand(p)};
_.Y.onMouseDown=function(t){var E=t.target,p=this.computedNavigationEndpoint,U;t=E.href||((U=_.k(p==null?void 0:p.commandMetadata,_.hZ))==null?void 0:U.url);U=E.data||p;t&&U&&YN8(t,U)};
_.Y.computeVideoTitleText=function(){var t;if((t=this.data)==null?0:t.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.Y.computeHasPlaylistThumbnail=function(t){var E,p,U,x,A;if((((E=t.thumbnailRenderer)==null?0:E.playlistVideoThumbnailRenderer)||((p=t.thumbnailRenderer)==null?0:p.playlistCustomThumbnailRenderer)||((U=t.thumbnailRenderer)==null?0:U.showCustomThumbnailRenderer)||((x=t.thumbnailRenderer)==null?0:x.playlistVideoThumbnailRenderer)||((A=t.thumbnailRenderer)==null?0:A.playlistCustomThumbnailRenderer))&&t.thumbnailOverlays)for(E=0;E<t.thumbnailOverlays.length;E++)if(p=void 0,(p=t.thumbnailOverlays[E])==
null?0:p.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.aE.Object.defineProperties(Uq.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.r("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var t;return(t=this.data)==null?void 0:t.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var t;return(t=this.data)==null?void 0:t.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.JSC$16531_inlinePreviewHoverListener)==null?0:Q5(t))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.A0_(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.data)==null?void 0:t.videoId)||((E=this.data)==null?void 0:E.playlistId)||""}}});
Uq.prototype.onMouseDown=Uq.prototype.onMouseDown;Uq.prototype.metadataColorChanged=Uq.prototype.metadataColorChanged;Uq.prototype.onIsDismissedChanged=Uq.prototype.onIsDismissedChanged;Uq.prototype.onHiddenChanged=Uq.prototype.onHiddenChanged;Uq.prototype.onDataChanged=Uq.prototype.onDataChanged;Uq.prototype.handleReloadDownloadsInfo=Uq.prototype.handleReloadDownloadsInfo;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Uq.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Uq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Uq.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],Uq.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.g(_.dy),_.P("design:type",Object)],Uq.prototype,"ytdLockupBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],Uq.prototype,"ytdReduxBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],Uq.prototype,"data",void 0);_.N([_.e(),_.P("design:type",String)],Uq.prototype,"entitySelectorType",void 0);_.N([_.e(),_.P("design:type",Boolean)],Uq.prototype,"noEndpoints",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],Uq.prototype,"isRadio",void 0);_.N([_.e({reflectToAttribute:!0,selector:_.cA}),_.P("design:type",Boolean)],Uq.prototype,"miniMode",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Uq.prototype,"fullHeight",void 0);
_.N([_.e(),_.P("design:type",Boolean)],Uq.prototype,"showDarkVideoMetadata",void 0);_.N([_.e(),_.P("design:type",Boolean)],Uq.prototype,"showLightVideoMetadata",void 0);_.N([_.e(),_.P("design:type",Number)],Uq.prototype,"metadataColor",void 0);_.N([_.e(),_.P("design:type",Object)],Uq.prototype,"showChannelAvatar",void 0);_.N([_.e(),_.P("design:type",Boolean)],Uq.prototype,"hidden",void 0);_.N([_.e({value:!0}),_.P("design:type",Boolean)],Uq.prototype,"showYtInteraction",void 0);
_.N([_.e(),_.P("design:type",String)],Uq.prototype,"dismissedContentId",void 0);_.N([_.e({selectorArgs:["dismissedContentId"],selector:ski}),_.P("design:type",Object)],Uq.prototype,"dismissActionToReplayEntity",void 0);
_.N([_.e({selectorArgs:["entitySelectorType","mediaId"],selector:function(t,E,p){if(_.r("kevlar_modern_downloads_page")&&p&&E&&E!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(E){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var U=TwK(t,p);if(U){E=_.xz(t,p);var x=Yz(t,p),A=UTi(t,p);t=MJ(t,p);var m=iZY(U,E,x,A);x=m.shortViewCountText;var b=m.publishedTimeText;m=m.badges;var f=t>0;A=m48(U,E,A,t);U=_.Lb(E)||E==="TRANSFER_STATE_FAILED"||E==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Nc(U.policyEntity)?
void 0:G0_(p,t,U.videoEntity.lengthSeconds);E==="TRANSFER_STATE_PAUSED_BY_USER"&&p&&!_.r("dl_resume_click_killswitch")&&(U={offlineVideoEndpoint:{videoId:p,action:"ACTION_RESUME"}});p={shortViewCountText:x,publishedTimeText:b,badges:m,isWatched:f,navigationEndpoint:U,thumbnailOverlays:A}}else p=void 0;return p;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(E=otO(t,p))if(U=_.Af(t,p),A=_.W38(t,p),U!=="TRANSFER_STATE_UNKNOWN"){p=bZi(E,U,A,p,_.U5(t));break a}p=void 0}return p;default:_.qW(new _.cC("Error: entitySelectorType defined but not matched in selector.",
t,E))}}}),
_.P("design:type",Object)],Uq.prototype,"entityDrivenState",void 0);_.N([_.e({computed:"computeVideoTitleText(data)"}),_.P("design:type",Object)],Uq.prototype,"videoTitleText",void 0);_.N([_.e({computed:"computeHasPlaylistThumbnail(data)"}),_.P("design:type",Object)],Uq.prototype,"hasPlaylistThumbnail",void 0);_.N([_.e({computed:"computeNavigationEndpoint(data)"}),_.P("design:type",Object)],Uq.prototype,"computedNavigationEndpoint",void 0);
_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Uq.prototype,"typographyBump",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("typographyBump"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Uq.prototype,"typographyBumpV2",null);_.N([_.Nl("#video-title"),_.P("design:type",HTMLElement)],Uq.prototype,"videoTitle",void 0);_.N([_.Nl("#video-title-link"),_.P("design:type",HTMLElement)],Uq.prototype,"videoTitleLink",void 0);
_.N([_.Nl("#thumbnail"),_.P("design:type",HTMLElement)],Uq.prototype,"thumbnail",void 0);_.N([_.Nl("#dismissible"),_.P("design:type",HTMLElement)],Uq.prototype,"JSC$16531_dismissibleMedia",void 0);_.N([_.Z("data.menu"),_.P("design:type",Object),_.P("design:paramtypes",[])],Uq.prototype,"lazyLoadMenu",null);_.N([_.Z("data.menu"),_.P("design:type",Object),_.P("design:paramtypes",[])],Uq.prototype,"immediateLoadMenu",null);
_.N([_.P3("entityDrivenState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Uq.prototype,"handleReloadDownloadsInfo",null);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Uq.prototype,"onDataChanged",null);_.N([_.P3("hidden"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Uq.prototype,"onHiddenChanged",null);
_.N([_.GI("isDismissed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Uq.prototype,"onIsDismissedChanged",null);_.N([_.GI("metadataColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Uq.prototype,"metadataColorChanged",null);_.N([_.lc("mousedown"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Uq.prototype,"onMouseDown",null);
_.N([_.Z("lockupIsHovered"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Uq.prototype,"isHovered",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Uq.prototype,"useAvatar",null);_.N([_.Z("data","entitySelectorType"),_.P("design:type",String),_.P("design:paramtypes",[])],Uq.prototype,"mediaId",null);_.N([_.Ul({is:"ytd-rich-grid-media",disableElementRegistration:!0})],Uq);
var xHo=_.Ol()(Uq,"ytd-rich-grid-media",function(){if(tGs!==void 0)return tGs;var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return tGs=t},{mode:_.hX("kevlar_poly_si_batch_j072")?1:2});var ArX;var x4=function(){var t=_.z.apply(this,arguments)||this;t.removeMaxWidth=!0;t.insetMetadata=!1;return t};
_.u(x4,_.z);_.Y=x4.prototype;_.Y.configureRendererStamper=function(){return{innerMenu:cJ,outerMenu:Object.assign({},cJ,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Y.onDataChanged=function(){var t,E=((t=this.data)==null?void 0:t.trackingParams)||"";E&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(E));var p;((p=this.dismissActionToReplayEntity)==null?0:p.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.Y.attached=function(){this.updateInlinePreviewHoverListeners()};
_.Y.detached=function(){this.clearInlinePreviewHoverListeners()};
_.Y.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16536_inlinePreviewHoverListener=xj({mediaRenderer:this,lockupElement:this.JSC$16536_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:aQr})};
_.Y.clearInlinePreviewHoverListeners=function(){var t;(t=this.JSC$16536_inlinePreviewHoverListener)==null||dI(t)};
_.Y.onRendererTap=function(){var t,E,p=(t=this.data)==null?void 0:(E=t.serviceEndpoints)==null?void 0:E[0];_.k(p,_.xZ)&&this.componentBehavior.resolveCommand(p)};
_.Y.onDetailsClick=function(t){var E,p=(E=this.data)==null?void 0:E.navigationEndpoint;p&&(_.Qb(_.Vx(t),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(p))};
_.Y.onShow=function(){var t=this.data;t.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(t.onFirstVisibleCommand),delete t.onFirstVisibleCommand)};
_.aE.Object.defineProperties(x4.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var t;return this.insetMetadata?void 0:(t=this.data)==null?void 0:t.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var t;return this.insetMetadata?(t=this.data)==null?void 0:t.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var t=this.data;if(t!=null&&t.badge&&(t=_.k(t.badge,mYr))){var E,p,U;return[{metadataBadgeRenderer:{label:((E=t.label)==null?void 0:(p=E.runs)==null?void 0:p[0].text)||((U=t.label)==null?void 0:U.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var t=this.data;return Object.assign({},t.headline,{accessibility:t.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return this.isSlimShort?(t=this.computedTitle)==null?void 0:(E=t.accessibility)==null?void 0:(p=E.accessibilityData)==null?void 0:p.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.r("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.JSC$16536_inlinePreviewHoverListener)==null?0:Q5(t))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
x4.prototype.onDataChanged=x4.prototype.onDataChanged;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],x4.prototype,"componentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],x4.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.dy),_.P("design:type",Object)],x4.prototype,"ytdLockupBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],x4.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(_.Rl),_.P("design:type",Object)],x4.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],x4.prototype,"ytdReduxBehavior",void 0);_.N([_.Nl("ytd-thumbnail"),_.P("design:type",HTMLElement)],x4.prototype,"thumbnail",void 0);_.N([_.Nl("#dismissible"),_.P("design:type",HTMLElement)],x4.prototype,"JSC$16536_dismissibleMedia",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],x4.prototype,"removeMaxWidth",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],x4.prototype,"insetMetadata",void 0);_.N([_.e(),_.P("design:type",String)],x4.prototype,"dismissedContentId",void 0);_.N([_.e({selectorArgs:["dismissedContentId"],selector:ski}),_.P("design:type",Object)],x4.prototype,"dismissActionToReplayEntity",void 0);_.N([_.Z("insetMetadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],x4.prototype,"thumbnailObjectFit",null);
_.N([_.Z("data","insetMetadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],x4.prototype,"innerMenu",null);_.N([_.Z("data","insetMetadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],x4.prototype,"outerMenu",null);_.N([_.e(),_.P("design:type",Object)],x4.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,selector:_.cA}),_.P("design:type",Boolean)],x4.prototype,"miniMode",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],x4.prototype,"onDataChanged",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],x4.prototype,"shortsBadges",null);_.N([_.Z("data"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],x4.prototype,"isShort",null);
_.N([_.Z("data"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],x4.prototype,"isSlimShort",null);_.N([_.Z("data","isShort"),_.P("design:type",Object),_.P("design:paramtypes",[])],x4.prototype,"computedTitle",null);_.N([_.Z("isSlimShort","computedTitle"),_.P("design:type",Object),_.P("design:paramtypes",[])],x4.prototype,"computedAccessibilityLabel",null);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],x4.prototype,"shouldForce2By3",null);_.N([_.Z("lockupIsHovered"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],x4.prototype,"isHovered",null);_.N([_.Ul({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],x4);
_.G(x4,"ytd-rich-grid-slim-media",function(){if(ArX!==void 0)return ArX;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return ArX=t},{mode:_.hX("kevlar_poly_si_batch_j063")?1:2});var Ybm;var MGr;var Ab=function(){return _.z.apply(this,arguments)||this};
_.u(Ab,_.z);Ab.prototype.computeIcon=function(t){return t&&t.iconType?"yt-sys-icons:"+t.iconType.toLowerCase():""};
Ab.prototype.onMouseEnter=function(){this.isHovered=!0};
Ab.prototype.onMouseLeave=function(){this.isHovered=!1};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ab.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Ab.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Ab.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Ab.prototype,"data",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],Ab.prototype,"isHovered",void 0);
_.N([_.Ul({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],Ab);
_.G(Ab,"ytd-expand-on-hover-card-renderer",function(){if(MGr!==void 0)return MGr;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return MGr=t},{mode:1});var mHT,bhT=function(){if(mHT!==void 0)return mHT;var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return mHT=t};_.vs("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var Y4=function(){var t=_.z.apply(this,arguments)||this;t.compactStyle=!1;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.u(Y4,_.z);_.Y=Y4.prototype;_.Y.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.Y.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"}}}};
_.Y.computeHideDot=function(t){return!(t&&t.subscriberCountText&&t.videoCountText)||this.compactStyle};
_.Y.hasDualButtons=function(t){return t&&t.purchaseButton&&t.subscribeButton};
_.Y.backgroundColorChanged=function(){if(this.data!==void 0){var t=this.data.backgroundColor;this.isDarkTheme&&(t=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=t!=null?_.SL(t):"transparent"}};
_.Y.onDarkModeToggledAction=function(t){this.isDarkTheme=t};
_.Y.onTap=function(t){var E,p,U=((E=this.data)==null?void 0:E.navigationEndpoint)||((p=this.data)==null?void 0:p.serviceEndpoint);_.k(U,_.RF)&&(U&&_.X3().resolve(_.ei).resolveCommand(U,{form:{element:this.hostElement}}),t.preventDefault())};
_.Y.computeChannelEndpoint=function(t){return _.k(t,_.RF)?null:t};
_.Y.computeHrefEndpoint=function(t){return _.k(t,_.RF)?null:this.componentBehavior.computeHref_(t)};
_.Y.computeChannelRendererStyle=function(t){return t};
_.Y.computeIconSize=function(t){return t?108:136};
_.aE.Object.defineProperties(Y4,{template:{configurable:!0,enumerable:!0,get:function(){return bhT()}}});
Y4.prototype.backgroundColorChanged=Y4.prototype.backgroundColorChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Y4.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Y4.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.aU),_.P("design:type",Object)],Y4.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Y4.prototype,"componentBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],Y4.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Boolean)],Y4.prototype,"isDarkTheme",void 0);_.N([_.e({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.P("design:type",String)],Y4.prototype,"channelRendererStyle",void 0);_.N([_.e({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Y4.prototype,"dualButtons",void 0);_.N([_.e({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.P("design:type",Boolean)],Y4.prototype,"useBiggerThumbs",void 0);_.N([_.e({reflectToAttribute:!0,value:function(){return _.la("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],Y4.prototype,"biggerThumbStyle",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Y4.prototype,"compactStyle",void 0);_.N([_.GI("data","isDarkTheme"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Y4.prototype,"backgroundColorChanged",null);_.N([_.Ul({is:"ytd-channel-renderer",disableElementRegistration:!0})],Y4);_.G(Y4,"ytd-channel-renderer",function(){return bhT()},{mode:1});var ihs;var qbs;_.vs("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var MV=function(){var t=_.z.apply(this,arguments)||this;t.displayItemCount=2;t.hasPlaylistThumbnail=!1;t.stackThumbnailSize="large";return t};
_.u(MV,_.z);_.Y=MV.prototype;_.Y.attached=function(){this.updateInlinePreviewHoverListeners()};
_.Y.detached=function(){this.clearInlinePreviewHoverListeners()};
_.Y.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.Y.computeFirstVideos=function(t,E){return t&&E?t.slice(0,E):[]};
_.Y.computeThumbnailWidth=function(t,E){return t?E==="BIG"?500:E==="MASSIVE"?600:E==="MEDIUM"?450:420:360};
_.Y.computeThumbnailHeight=function(t,E){return t?E==="BIG"?280:E==="MASSIVE"?337:234:202};
_.Y.clearInlinePreviewHoverListeners=function(){var t;(t=this.JSC$16549_inlinePreviewHoverListener)==null||dI(t)};
_.Y.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16549_inlinePreviewHoverListener=xj({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:hNs,thumbnailElement:this.thumbnail})};
_.Y.computeHasPlaylistThumbnail=function(t){var E,p;if((((E=t.thumbnailRenderer)==null?0:E.playlistVideoThumbnailRenderer)||((p=t.thumbnailRenderer)==null?0:p.playlistCustomThumbnailRenderer))&&t.thumbnailOverlays)for(E=0;E<t.thumbnailOverlays.length;E++)if(p=void 0,(p=t.thumbnailOverlays[E])==null?0:p.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.aE.Object.defineProperties(MV.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.JSC$16549_inlinePreviewHoverListener)==null?0:Q5(t))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
MV.prototype.dataChanged=MV.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],MV.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.dy),_.P("design:type",Object)],MV.prototype,"ytdLockupBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],MV.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],MV.prototype,"displayItemCount",void 0);_.N([_.e({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.P("design:type",Boolean)],MV.prototype,"useBiggerThumbs",void 0);_.N([_.e({reflectToAttribute:!0,value:function(){return _.la("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],MV.prototype,"biggerThumbsStyle",void 0);_.N([_.e({computed:"computeHasPlaylistThumbnail(data)"}),_.P("design:type",Object)],MV.prototype,"hasPlaylistThumbnail",void 0);_.N([_.e(),_.P("design:type",String)],MV.prototype,"stackThumbnailSize",void 0);_.N([_.Nl("ytd-thumbnail"),_.P("design:type",HTMLElement)],MV.prototype,"thumbnail",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],MV.prototype,"dataChanged",null);
_.N([_.Z("lockupIsHovered"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MV.prototype,"isHovered",null);_.N([_.Ul({is:"ytd-radio-renderer",disableElementRegistration:!0})],MV);
_.G(MV,"ytd-radio-renderer",function(){if(qbs!==void 0)return qbs;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return qbs=t},{mode:_.hX("kevlar_poly_si_batch_j058")?1:2});var Hhr;_.vs("itemSectionRenderer","showRenderer","ytd-show-renderer");var mf=function(){return _.z.apply(this,arguments)||this};
_.u(mf,_.z);mf.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
mf.prototype.computeThumbnailWidth=function(t){return t?360:246};
mf.prototype.computeUseProminentThumbs=function(t){return t};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],mf.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],mf.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],mf.prototype,"data",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],mf.prototype,"isSearch",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.P("design:type",Boolean)],mf.prototype,"useProminentThumbs",void 0);_.N([_.Ul({is:"ytd-show-renderer",disableElementRegistration:!0})],mf);
_.G(mf,"ytd-show-renderer",function(){if(Hhr!==void 0)return Hhr;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Hhr=t},{mode:1});_.vs("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var bb=function(){var t=_.z.apply(this,arguments)||this;t.isRichGrid=!1;return t};
_.u(bb,_.z);bb.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"}}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],bb.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],bb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],bb.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],bb.prototype,"isRichGrid",void 0);_.N([_.Ul({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],bb);
_.G(bb,"ytd-feed-entry-renderer",function(){if(ihs!==void 0)return ihs;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return ihs=t},{mode:1});var f64;var ib=function(){return _.z.apply(this,arguments)||this};
_.u(ib,_.z);ib.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.N([_.g(_.Be),_.P("design:type",Object)],ib.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],ib.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],ib.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],ib.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,selector:_.tf,value:3}),_.P("design:type",Number)],ib.prototype,"itemsPerRow",void 0);
_.N([_.Ul({is:"ytd-link-card-renderer",disableElementRegistration:!0})],ib);
_.G(ib,"ytd-link-card-renderer",function(){if(f64!==void 0)return f64;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return f64=t},{mode:1});var BH4;var qV=function(){return _.z.apply(this,arguments)||this};
_.u(qV,_.z);_.Y=qV.prototype;_.Y.configureRendererStamper=function(){return{"data.menu":cJ,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Y.onRendererTap=function(t){if(!this.ytdDismissibleItemBehavior.isDismissed){var E,p=(E=this.data)==null?void 0:E.navigationEndpoint;p&&!_.Qb(_.Vx(t),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(p)?_.Qb(_.Vx(t),this.hostElement,["A"])||_.kT(this.hostElement,"yt-navigate",{endpoint:p}):this.ytComponentBehavior.resolveCommand(p,{}))}};
_.Y.maybeComputeHref=function(t){return this.ytComponentBehavior.computeHref_(t,!0)};
_.Y.getNavigationCommand=function(t){return this.isNavigationCommand(t)?t:null};
_.Y.isNavigationCommand=function(t){return t?_.k(t,_.lC)||_.k(t,_.HD)||_.k(t,_.kX)?!0:!1:!1};
qV.prototype.onRendererTap=qV.prototype.onRendererTap;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],qV.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],qV.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],qV.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],qV.prototype,"ytComponentBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],qV.prototype,"data",void 0);_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],qV.prototype,"onRendererTap",null);_.N([_.Ul({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],qV);
_.G(qV,"ytd-lumiere-promo-item-image-renderer",function(){if(BH4!==void 0)return BH4;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return BH4=t},{mode:1});var wcs;var H_=function(){return _.z.apply(this,arguments)||this};
_.u(H_,_.z);H_.prototype.computeLandscapeThumbnail=function(){var t;return((t=this.data)==null?void 0:t.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],H_.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],H_.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],H_.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,selector:_.cA}),_.P("design:type",Boolean)],H_.prototype,"miniMode",void 0);_.N([_.e({reflectToAttribute:!0,selector:_.tf}),_.P("design:type",Number)],H_.prototype,"itemsPerRow",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.P("design:type",Boolean)],H_.prototype,"landscapeThumbnail",void 0);_.N([_.Ul({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],H_);
_.G(H_,"ytd-lumiere-shelf-details-renderer",function(){if(wcs!==void 0)return wcs;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return wcs=t},{mode:_.hX("kevlar_poly_si_batch_j076")?1:2});var RsG;var fU=function(){return _.z.apply(this,arguments)||this};
_.u(fU,_.z);fU.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],fU.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],fU.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],fU.prototype,"data",void 0);_.N([_.Ul({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],fU);
_.G(fU,"ytd-primetime-promo-details-renderer",function(){if(RsG!==void 0)return RsG;var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return RsG=t},{mode:1});var VG4;var B_=function(){return _.z.apply(this,arguments)||this};
_.u(B_,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],B_.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],B_.prototype,"data",void 0);_.N([_.Ul({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],B_);
_.G(B_,"ytd-panel-show-style-metadata-renderer",function(){if(VG4!==void 0)return VG4;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return VG4=t},{mode:1});var Qjp;var wS=function(){return _.z.apply(this,arguments)||this};
_.u(wS,_.z);_.Y=wS.prototype;_.Y.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.Y.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.Y.computeThumbnail=function(t){if(t)return t.smallFormFactorBackgroundThumbnail||t.largeFormFactorBackgroundThumbnail};
_.Y.maybeComputeHref=function(t){return this.ytComponentBehavior.computeHref_(t,!0)};
_.Y.isNavigationCommand=function(t){return t?_.k(t,_.lC)||_.k(t,_.HD)||_.k(t,_.kX)?!0:!1:!1};
_.Y.getNavigationCommand=function(t){return this.isNavigationCommand(t)?t:null};
wS.prototype.onPanelTap=wS.prototype.onPanelTap;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],wS.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],wS.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],wS.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],wS.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],wS.prototype,"roundedContainer",void 0);_.N([_.e({reflectToAttribute:!0,value:_.r("web_modern_buttons")}),_.P("design:type",Boolean)],wS.prototype,"modernButtons",void 0);_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wS.prototype,"onPanelTap",null);_.N([_.Ul({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],wS);
_.G(wS,"ytd-primetime-promo-panel-renderer",function(){if(Qjp!==void 0)return Qjp;var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Qjp=t},{mode:1});_.k2(_.l(function(t){t=_.C4(t,{data:{},useFullWidth:!1});var E=t.data,p=t.useFullWidth;t={};return _.H("teaser-card-view-model",{class:_.X5("ytTeaserCardViewModelHost",(t.ytTeaserCardViewModelUseFullWidth=function(){return p()},t))},_.H(_.w,{cond:function(){return E().onTap},
then:function(U){return _.H(_.zn,{className:"ytTeaserCardViewModelLink",command:U},_.H("div",{class:"ytTeaserCardViewModelImageContainer"},_.H(_.w,{cond:function(){return E().image},
then:function(x){return _.H(_.Q9,{data:x,className:"ytTeaserCardViewModelImage",alt:""})}})),_.H("p",{class:"ytTeaserCardViewModelCaption"},function(){return E().caption}))}}))},"fd"),"teaser-card-view-model",{props:{data:_.uu,
useFullWidth:_.uu}});_.k2(_.l(function(t){var E=t.data;var p=function(){var U;return _.b7((U=E())==null?void 0:U.iconThemedImage)};
return _.H("yt-edu-card-view-model",null,_.H(_.Lk,{contentId:function(){return E().nudgeId}},function(){return _.H("div",{class:_.X5("ytEduCardViewModelHost",function(){return E().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.H("div",{class:"ytEduCardViewModelTopCornerButton"},_.H(_.sY,{data:function(){return E().dismissButton}},{buttonViewModel:_.D5})),_.H("div",{class:"ytEduCardViewModelContentWrapper"},_.H("div",{class:"ytEduCardViewModelHeaderImage"},_.H(_.w,
{cond:p,
then:function(U){return _.H(_.Q9,{data:U,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.H("div",{class:"ytEduCardViewModelTextContainer"},_.H("div",{class:"ytEduCardViewModelTitle"},_.H(_.d8,{text:function(){return E().title}})),_.H("div",{class:"ytEduCardViewModelSubtitle"},_.H(_.d8,{text:function(){return E().subtitle}}))),_.H("div",{class:"ytEduCardViewModelContent"},_.H(_.sY,{data:function(){return E().form}},{nudgeFormViewModel:ck0}))),_.H("div",{class:_.X5("ytEduCardViewModelButtonWrapper",
function(){return E().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.H(_.sY,{data:function(){return E().primaryButton}},{buttonViewModel:function(U){return _.H("div",{class:"ytEduCardViewModelPrimaryButton"},_.H(_.D5,{data:U.data}))}}),_.H(_.sY,{data:function(){return E().secondaryButton}},{buttonViewModel:function(U){return _.H("div",{class:"ytEduCardViewModelSecondaryButton"},_.H(_.D5,{data:U.data}))}})))}))},"gd"),"yt-edu-card-view-model",{props:{data:_.uu}});var C4r=new _.gM("RICH_GRID_VIDEO_RENDERER_TOKEN");_.k2(_.l(function(t){var E=t.data;var p=t.showYtInteractionInContent;var U=function(){return!!E().selectableFeedback};
t=_.M(_.Py(!1,void 0,"qxtgaf"));var x=t.next().value,A=t.next().value;_.A6(function(){var Q=_.k(E().primaryButton,_.rc);(Q==null?0:Q.isToggled)&&A(Q.isToggled)});
t=_.aC(function(Q){if(!U())return!1;if(x()){var C;var d=(C=E().selectableFeedback)==null?void 0:C.onDeselect}else{var I;d=(I=E().selectableFeedback)==null?void 0:I.onSelect}d&&_.bz(d,{form:{element:Q.target}});A(!x());if(Q=_.k(E().primaryButton,_.rc))Q.isToggled=x();return!1});
var m=function(){if(!U()){var Q,C=(Q=E().loggingDirectives)==null?void 0:Q.trackingParams;C&&_.$3(_.X3().resolve(_.Yt),C)}},b=_.j3E(),f=function(){var Q;
return U()?(Q=E().selectableFeedback)==null?void 0:Q.a11yLabel:void 0},B=function(){return U()?{toggled:x()}:{}},R=_.X3().resolve(_.OB(C4r)),V={};
return _.H("yt-feedback-item-renderer",{class:_.X5("ytFeedbackItemRendererHost",(V.ytFeedbackItemRendererSelectableFeedback=U,V)),"on:click":t,"on:keydown":b,title:f,"aria-label":f,"aria-pressed":function(){return U()?x():void 0},
tabindex:function(){return U()?0:void 0},
role:function(){return U()?"button":void 0}},_.H("div",{class:"ytFeedbackItemRendererContentContainer"},_.H(_.sY,{data:function(){return E().content}},{videoRenderer:function(Q){return _.H(R,{data:Q.data,
showYtInteraction:p})},
lockupViewModel:function(Q){return _.H(_.WM,{data:Q.data,containerType:2})}})),_.H("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.H(_.sY,{data:function(){return E().primaryButton}},{toggleButtonViewModel:function(Q){return _.H(_.m3,{data:Q.data,
buttonShapeOverrides:B,disableExplicitClickLogging:!0,onToggle:m})}})))},"hd"),"yt-feedback-item-renderer",{props:{data:_.uu,
showYtInteractionInContent:_.uu}});var R8=function(){var t=_.z.apply(this,arguments)||this;t.isShortsGrid=!1;t.isCompactGrid=!1;t.isShortsPanelGrid=!1;t.renderedFromRichGrid=!1;t.isInFirstColumn=!1;t.noGutterMargins=!1;t.noBottomMargin=!1;t.halfBottomMargin=!1;t.isInlineGroupItem=!1;t.insetMetadata=!1;t.noBottomMarginInAds=!0;t.force16By9ThumbnailAspectRatio=!1;t.useCompactList=!1;t.containerType=2;t.thumbnailTargetWidth=9999;t.isResponsiveGrid=!1;t.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};t.hoverListener=
t.hover.bind(t);t.leaveListener=t.leave.bind(t);t.highlighted=!1;t.JSC$16585_unsubscribeFromInlinePreviewIsActive=function(){};
return t};
_.u(R8,_.z);_.Y=R8.prototype;_.Y.computeContainerType=function(){return this.useCompactList?3:2};
_.Y.itemWidthChanged=function(){var t;this.thumbnailTargetWidth=(t=this.itemWidth)!=null?t:9999};
_.Y.updateIsInFirstColumn=function(){var t;this.isInFirstColumn=((t=this.data)==null?void 0:t.colIndex)===0};
_.Y.observerContainerType=function(){if(this.lockup){var t=this.lockup;t.containerType=this.containerType;t.sizing=this.sizing;t.typographyBump=this.typographyBump;t.itemWidth=this.itemWidth}this.richGridMedia&&_.r("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.r("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.Y.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]]"}}}}}};
_.Y.leave=function(t){t=t.relatedTarget;var E=document.querySelector("ytd-video-preview");t&&E&&_.OU(E).contains(t)||this.removeAndCleanupHighlight()};
_.Y.hover=function(){var t;!this.highlighted&&(t=this.data)!=null&&t.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(t=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:t,boxShadow:"0 0 0 10px "+t})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.Y.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};
_.Y.registerHoverHighlightListeners=function(){var t=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16585_unsubscribeFromInlinePreviewIsActive=_.EA(_.QM(),_.GWt,function(E){t.highlighted&&!E&&t.removeAndCleanupHighlight()})};
_.Y.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16585_unsubscribeFromInlinePreviewIsActive()};
_.Y.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.Y.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.Y.getBackgroundColor=function(){var t,E,p=(t=this.data)==null?void 0:(E=t.onFocusEffect)==null?void 0:E.onFocusColor;if(p){if(document.documentElement.hasAttribute("dark")&&(p==null?0:p.darkTheme))return EU(p==null?void 0:p.darkTheme);if(p==null?0:p.lightTheme)return EU(p==null?void 0:p.lightTheme)}};
_.Y.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var t=_.yL(),E,p,U;t&&((E=this.data)==null?0:E.trackingParams)&&((p=this.data)==null?void 0:p.colIndex)!=null&&((U=this.data)==null?void 0:U.rowIndex)!=null&&_.fb(t,_.$8(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.Y.isSlimMediaRenderer=function(t){return!!_.k(t==null?void 0:t.content,_.zT0)||!!_.k(t==null?void 0:t.content,FPp)||!!_.k(t==null?void 0:t.content,_.BH)||!!_.k(t==null?void 0:t.content,A4G)};
_.Y.isPostRenderer=function(){var t,E;return!!_.k((t=this.data)==null?void 0:t.content,KCT)||!!_.k((E=this.data)==null?void 0:E.content,vE4)};
_.Y.computeIsGameCardShelf=function(){var t;return!!_.k((t=this.data)==null?void 0:t.content,HCm)};
_.Y.computeIsMiniGameCardShelf=function(){var t,E;return!!_.k((t=this.data)==null?void 0:t.content,Iam)||!!_.k((E=this.data)==null?void 0:E.content,gYp)};
_.Y.computeIsTeaserCard=function(){var t;return!!_.k((t=this.data)==null?void 0:t.content,gYp)};
_.Y.computeIsSelectableFeedbackItem=function(){var t,E;return!((E=_.k((t=this.data)==null?void 0:t.content,OCo))==null||!E.selectableFeedback)};
_.Y.computeContainsLumierePosters=function(){var t,E;return((E=_.k((t=this.data)==null?void 0:t.content,YWs))==null?void 0:E.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.Y.computeIsExpandOnHoverCardShelf=function(){var t;return!!_.k((t=this.data)==null?void 0:t.content,ABX)};
_.Y.computeIsLinkCardShelf=function(){var t;return!!_.k((t=this.data)==null?void 0:t.content,CS0)};
_.Y.computeIsReelItemStyleAvatarCircle=function(t){var E;return((E=_.k(t==null?void 0:t.content,_.BH))==null?void 0:E.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.Y.computeIsLinkCardFullWidth=function(t,E){var p;return((p=_.k(t==null?void 0:t.content,CS0))==null?void 0:p.useFullWidth)||E<=2};
_.aE.Object.defineProperties(R8.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var t;return _.r("web_hover_effect_refactor")&&_.k((t=this.data)==null?void 0:t.content,CeW)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.r("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var t;if(_.r("web_hover_effect_refactor")&&_.k((t=this.data)==null?void 0:t.content,CeW))return!1;var E;return!((E=this.data)==null||!E.onFocusEffect)||_.r("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 t;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.r("web_hover_effect_refactor")?(t=this.data)==null?void 0:t.onFocusEffect:void 0}}}});
R8.prototype.richGridHoverHighlightChanged=R8.prototype.richGridHoverHighlightChanged;R8.prototype.observerContainerType=R8.prototype.observerContainerType;R8.prototype.updateIsInFirstColumn=R8.prototype.updateIsInFirstColumn;R8.prototype.itemWidthChanged=R8.prototype.itemWidthChanged;_.N([_.g(_.Be),_.P("design:type",Object)],R8.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],R8.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],R8.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],R8.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.dy),_.P("design:type",Object)],R8.prototype,"ytdLockupBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],R8.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.P("design:type",Boolean)],R8.prototype,"isPost",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.P("design:type",Boolean)],R8.prototype,"containsLumierePosters",void 0);_.N([_.e({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.P("design:type",Boolean)],R8.prototype,"isSlimMedia",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.P("design:type",Boolean)],R8.prototype,"isGameCardShelf",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.P("design:type",Boolean)],R8.prototype,"isMiniGameCardShelf",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.P("design:type",Boolean)],R8.prototype,"isTeaserCard",void 0);_.N([_.e({computed:"computeIsSelectableFeedbackItem(data)"}),_.P("design:type",Boolean)],R8.prototype,"isSelectableFeedbackItem",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],R8.prototype,"isShortsGrid",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],R8.prototype,"isSlimGrid",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],R8.prototype,"isCompactGrid",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],R8.prototype,"isShortsPanelGrid",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.P("design:type",Boolean)],R8.prototype,"isExpandOnHoverCardShelf",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.P("design:type",Boolean)],R8.prototype,"isLinkCardShelf",void 0);_.N([_.e({reflectToAttribute:!0,selector:_.tf,value:3}),_.P("design:type",Number)],R8.prototype,"itemsPerRow",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],R8.prototype,"renderedFromRichGrid",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],R8.prototype,"isInFirstColumn",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],R8.prototype,"noGutterMargins",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],R8.prototype,"noBottomMargin",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],R8.prototype,"halfBottomMargin",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],R8.prototype,"isInlineGroupItem",void 0);_.N([_.e(),_.P("design:type",Object)],R8.prototype,"insetMetadata",void 0);_.N([_.e(),_.P("design:type",Object)],R8.prototype,"noBottomMarginInAds",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],R8.prototype,"isShelfItem",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.P("design:type",Boolean)],R8.prototype,"isReelItemStyleAvatarCircle",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.P("design:type",Boolean)],R8.prototype,"isLinkCardFullWidth",void 0);_.N([_.e(),_.P("design:type",Object)],R8.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],R8.prototype,"useCompactList",void 0);_.N([_.e(),_.P("design:type",String)],R8.prototype,"sizing",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],R8.prototype,"typographyBump",void 0);_.N([_.e(),_.P("design:type",Number)],R8.prototype,"itemWidth",void 0);_.N([_.e(),_.P("design:type",Boolean)],R8.prototype,"isHomeShelf",void 0);_.N([_.e(),_.P("design:type",Boolean)],R8.prototype,"isHomeGrid",void 0);
_.N([_.Nl("yt-lockup-view-model"),_.P("design:type",HTMLElement)],R8.prototype,"lockup",void 0);_.N([_.Nl("ytd-rich-grid-media"),_.P("design:type",HTMLElement)],R8.prototype,"richGridMedia",void 0);_.N([_.Nl("ytd-ad-slot-renderer"),_.P("design:type",HTMLElement)],R8.prototype,"adSlotRenderer",void 0);_.N([_.e({computed:"computeContainerType(useCompactList)"}),_.P("design:type",Object)],R8.prototype,"containerType",void 0);_.N([_.e(),_.P("design:type",Object)],R8.prototype,"thumbnailTargetWidth",void 0);
_.N([_.Z("showYtInteractionOnRichItem"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],R8.prototype,"showYtInteractionOnRichGridMedia",null);_.N([_.Z("isSelectableFeedbackItem","richGridHoverHighlight"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],R8.prototype,"showYtInteractionOnRichItem",null);_.N([_.Z("typographyBump","isHomeGrid"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],R8.prototype,"richTypographyBump",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("data","isShortsGrid","isCompactGrid"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],R8.prototype,"richGridHoverHighlight",null);_.N([_.Z("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.P("design:type",Number),_.P("design:paramtypes",[])],R8.prototype,"shortsLockupViewModelAspectRatio",null);_.N([_.Z("isInlineGroupItem"),_.P("design:type",Number),_.P("design:paramtypes",[])],R8.prototype,"shortsLockupViewModelScrimStyle",null);
_.N([_.GI("itemWidth"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],R8.prototype,"itemWidthChanged",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],R8.prototype,"updateIsInFirstColumn",null);_.N([_.GI("containerType","sizing","typographyBump"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],R8.prototype,"observerContainerType",null);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],R8.prototype,"isResponsiveGrid",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],R8.prototype,"lockupExperiments",null);_.N([_.GI("richGridHoverHighlight"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],R8.prototype,"richGridHoverHighlightChanged",null);_.N([_.Ul({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],R8);
_.jjG=_.Ol()(R8,"ytd-rich-item-renderer",function(){if(Ybm===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);Ybm=t}t=Ybm;return t},{mode:_.hX("kevlar_poly_si_batch_j028")?1:2});var hNO={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var TLi=_.wN(_.zF("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var eNO={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},zNt={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},lQO={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var rrp;var Vm=function(){var t=_.z.apply(this,arguments)||this;t.useResponsiveGrid=!1;t.hidden=!1;t.isShowMoreHidden=!1;t.isShowLessHidden=!0;t.hasExpansionButton=!1;t.isInnerShelf=!1;t.allVideosCount=0;t.allPlaylistCount=0;t.haveSmartDownloadsCompleted=!1;t.restrictContentsOverflow=!1;t.firstShownIndex=0;t.horizontalOffset=0;t.atEnd=!0;t.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
t.disableServiceRequestPropagation=function(E){E.stopPropagation()};
t.nextClick=function(){var E;(E=t.data)!=null&&E.contents&&(t.firstShownIndex+=t.currentElementsPerRow,t.updateHorizontalOffset(),t.updateHorizontalItemVisibility())};
t.previousClick=function(){var E;(E=t.data)!=null&&E.contents&&(t.firstShownIndex-=t.currentElementsPerRow,t.updateHorizontalOffset(),t.updateHorizontalItemVisibility())};
return t};
_.u(Vm,_.z);_.Y=Vm.prototype;
_.Y.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:_.qO("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.Y.attached=function(){this.requestElementsPerRow();_.r("disable_service_request_rich_shelf_killswitch")||this.contents.addEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)};
_.Y.detached=function(){_.r("disable_service_request_rich_shelf_killswitch")||this.contents.removeEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)};
_.Y.refreshGridLayoutNew=function(){var t;if((t=this.data)!=null&&t.contents&&this.containerWidth){var E;((E=this.data.responsiveContainerConfiguration)==null?0:E.responsiveSize)?(t=_.WKi(this.data.responsiveContainerConfiguration,this.containerWidth,2),t=_.M6(Object.assign({},t,{standardUnitMinWidth:this.standardUnitMinWidth}))):t=_.M6({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=t.typographyBump;if(this.elementsPerRow!==
t.numItems||this.gutter!==t.gutter)this.elementsPerRow=t.numItems,this.gutter=t.gutter,this.itemWidth=t.itemWidth,_.eU(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":t.gutter+"px"})}};
_.Y.computeSizing=function(){if(!this.isLumiere){var t=_.BUE(this.data);return t?t:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.Y.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.Y.computeButton=function(t){var E=_.k(t,_.Ry);t=Object.assign({},_.k(t,_.Ry));return E?(t.text||(t.text={simpleText:t.tooltip}),t.style="STYLE_MONO_OUTLINE",t.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",t):E};
_.Y.onRowIndexChange=function(){var t=_.yL(),E,p;((E=this.data)==null?0:E.trackingParams)&&((p=this.data)==null?void 0:p.rowIndex)!=null&&t&&_.fb(t,_.$8(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.Y.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var t,E=((t=this.getRichItemRenderers()[0])==null?void 0:t.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*E;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.Y.requestElementsPerRow=function(){_.kT(this.hostElement,"yt-request-elements-per-row")};
_.Y.onUpdateElementsPerRowAction=function(t,E,p,U,x,A){if(this.containerWidth!==A&&(this.containerWidth=A,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&t&&E&&p&&U&&x&&(this.elementsPerRow!==t||this.postsPerRow!==E||this.slimItemsPerRow!==p||this.gameCardsPerRow!==U||this.miniGameCardsPerRow!==x)&&(this.elementsPerRow=t,this.postsPerRow=E,this.slimItemsPerRow=p,this.gameCardsPerRow=U,this.miniGameCardsPerRow=x,this.updateItemVisibility())};
_.Y.isExpandedChanged=function(){var t=this.getRichItemRenderers(),E=this.isExpanded;t.forEach(function(p){p.halfBottomMargin=E})};
_.Y.isCollapsedChanged=function(){var t=this.getRichItemRenderers(),E=this.isCollapsed;t.forEach(function(p){p.noBottomMargin=E})};
_.Y.getRichItemRenderers=function(){return _.ZN(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.Y.updateItemVisibility=function(){var t=this;if(this.data&&this.data.contents){var E=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(U,x){var A;((A=t.data)==null?0:A.isExpanded)?(U.hidden=x>E-1,U.ytRendererBehavior.markDirty()):U.hidden=x>t.currentElementsPerRow-1||x>E-1});
var p=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||p||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||p||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.Y.setHeightToSingleRow=function(){var t=this.getRichItemRenderers(),E=Number.parseInt(getComputedStyle(t[0]).marginBottom,10)||0;t=t.slice(0,this.currentElementsPerRow).reduce(function(p,U){return Math.max(p,U.getBoundingClientRect().height+E)},0);
this.contents.style.height=t+"px"};
_.Y.focusNextExpandedItem=function(){var t;((t=this.data)==null?0:t.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.Y.focusItem=function(t,E){var p=this.getRichItemRenderers();if(p[t]&&(t=p[t].querySelector(".focus-on-expand"))){if(E){var U;(U=p[this.currentElementsPerRow])==null||U.scrollIntoView({behavior:"smooth",block:"center"})}t.focus({preventScroll:!0})}};
_.Y.onDataChange=function(){var t=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var E;if((E=this.data)==null?0:E.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.XE(this,function(){t.updateItemVisibility()});
var p;if((p=this.data)==null?0:p.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.eU(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),E=0;E<this.data.contents.length;E++)p=_.k(this.data.contents[E],_.Eu)||{},p.colIndex=E,p.rowIndex=this.data.rowIndex};
_.Y.handleRerenderDownloadsData=function(){_.r("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())};
_.Y.blockInlinePreview=function(t){var E=this,p;return _.q(function(U){(p=E.inlinePreviewIsEnabled)&&E.ytdReduxBehavior.dispatch(_.iUs(!1));return U.return(new Promise(function(x){t(function(){p&&E.ytdReduxBehavior.dispatch(_.iUs(!0));x()})}))})};
_.Y.expandShelf=function(){var t=this;if(this.data){var E,p=(E=_.k(this.data.showMoreButton,_.Ry))==null?void 0:E.trackingParams;p&&_.$3(_.Pu(),p);this.set("data.isExpanded",!0);this.blockInlinePreview(function(U){t.setHeightToSingleRow();t.updateItemVisibility();t.contents.style.height=t.contents.scrollHeight+"px";_.ir.addJob(function(){t.contents.style.height="auto";t.focusNextExpandedItem();U()},2,200)})}};
_.Y.collapseShelf=function(){var t=this;return _.q(function(E){if(E.nextAddress==1){if(!t.data)return E.return();t.set("data.isExpanded",!1);return E.yield(t.blockInlinePreview(function(p){t.contents.style.height=t.contents.scrollHeight+"px";t.setHeightToSingleRow();_.ir.addJob(function(){t.updateItemVisibility();t.contents.style.height="auto";p()},2,200)}),2)}_.kT(t.hostElement,"yt-rich-shelf-renderer-collapse",t.data.trackingParams);
t.focusItem(0,!1);_.Do(E)})};
_.Y.updateArrowButtonStatus=function(){this.getRichItemRenderers();var t,E;var p=((t=this.data)==null?void 0:(E=t.contents)==null?void 0:E.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=p};
_.Y.onChildElementFocus=function(t){this.hasChevronButtons&&(t=t.target.closest("#contents > *"),this.contents.contains(t)&&(t.offsetLeft<this.horizontalOffset?this.previousClick():t.offsetLeft+t.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.Y.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.qO("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.Y.updateHorizontalOffset=function(){var t=this.getRichItemRenderers(),E,p;var U=((E=this.data)==null?void 0:(p=E.contents)==null?void 0:p.length)||0;var x;t=((x=t[0])==null?void 0:x.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>U?this.firstShownIndex=U-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*t};
_.Y.isSlimMediaShelfRenderer=function(){var t,E,p,U=(p=_.k((t=this.data)==null?void 0:(E=t.contents)==null?void 0:E[0],_.Eu))==null?void 0:p.content;return!!(_.k(U,_.zT0)||_.k(U,FPp)||_.k(U,_.BH)||_.k(U,A4G))};
_.Y.isGameCardShelf=function(){var t,E,p,U=(p=_.k((t=this.data)==null?void 0:(E=t.contents)==null?void 0:E[0],_.Eu))==null?void 0:p.content;return!!_.k(U,HCm)};
_.Y.isMiniGameCardShelf=function(){var t,E,p,U=(p=_.k((t=this.data)==null?void 0:(E=t.contents)==null?void 0:E[0],_.Eu))==null?void 0:p.content;return!!_.k(U,Iam)||!!_.k(U,gYp)};
_.Y.hasGameBoxArtAvatarStyle=function(){var t;return((t=this.data)==null?void 0:t.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.Y.hasRoundedGameBoxArtAvatarStyle=function(){var t;return((t=this.data)==null?void 0:t.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.Y.isShortsShelf=function(){var t,E,p,U=(p=_.k((t=this.data)==null?void 0:(E=t.contents)==null?void 0:E[0],_.Eu))==null?void 0:p.content;return!!_.k(U,_.BH)||!!_.k(U,A4G)};
_.Y.isPostShelfRenderer=function(){var t,E,p,U=(p=_.k((t=this.data)==null?void 0:(E=t.contents)==null?void 0:E[0],_.Eu))==null?void 0:p.content;return!(!_.k(U,KCT)&&!_.k(U,vE4))};
_.Y.isLumiereShelf=function(){var t,E,p=_.k((t=this.data)==null?void 0:(E=t.contents)==null?void 0:E[0],_.Eu);return!!_.k(p==null?void 0:p.content,YWs)};
_.Y.isLumiereShelfWithPosters=function(){var t,E,p=_.k((t=this.data)==null?void 0:(E=t.contents)==null?void 0:E[0],_.Eu),U;return((U=_.k(p==null?void 0:p.content,YWs))==null?void 0:U.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.Y.isExpandOnHoverCardShelf=function(){var t,E,p,U=(p=_.k((t=this.data)==null?void 0:(E=t.contents)==null?void 0:E[0],_.Eu))==null?void 0:p.content;return!!_.k(U,ABX)};
_.Y.computeHasFeaturedBadge=function(){var t,E,p=_.k((t=this.data)==null?void 0:(E=t.badges)==null?void 0:E[0],_.Ixm);return p?p.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.Y.computeHasPaygatedFeaturedBadge=function(){var t,E,p=_.k((t=this.data)==null?void 0:(E=t.badges)==null?void 0:E[0],_.Ixm);return p?(p==null?void 0:p.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.Y.computeHeaderHidden=function(){var t,E,p,U,x,A;return!((t=this.data)==null?0:t.icon)&&!((E=this.data)==null?0:E.title)&&!((p=this.data)==null?0:p.subtitle)&&!((U=this.data)==null?0:U.thumbnail)&&!((x=this.data)==null?0:x.badges)&&!((A=this.data)==null?0:A.menu)};
_.Y.showCtaButton=function(){var t;return!((t=this.data)==null||!t.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.Y.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.Y.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.Y.computeForce16By9ThumbnailAspectRatio=function(){var t,E;return((t=this.data)==null?void 0:(E=t.responsiveContainerConfiguration)==null?void 0:E.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.Y.onSectionReactiveDismissal=function(t,E,p){var U,x;var A=(U=this.data)==null?void 0:(x=U.targetingContext)==null?void 0:x.targetGroupId;this&&A&&E.targetGroupId&&A.includes(E.targetGroupId)?(U=this.rowIndex,t=U===void 0?!1:!(E.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&U<=t)):t=!1;t&&(this.hidden=p)};
_.aE.Object.defineProperties(Vm.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null?0:t.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var t=this.elementsPerRow;this.isPostShelfRenderer()?t=this.postsPerRow:this.isSlimMediaShelfRenderer()?t=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?t=this.slimItemsPerRow-1:this.isGameCardShelf()?t=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(t=this.miniGameCardsPerRow);return t}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null?0:t.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var t,E;return!((t=this.data)==null||!t.previousButton)&&!((E=this.data)==null||!E.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 t;return((t=_.X3().resolve(_.jw).getCurrentPage())==null?void 0:t.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var t,E,p,U;return!((t=this.data)==null?0:(E=t.thumbnail)==null?0:(p=E.accessibility)==null?0:(U=p.accessibilityData)==null?0:U.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
Vm.prototype.onChildElementFocus=Vm.prototype.onChildElementFocus;Vm.prototype.handleRerenderDownloadsData=Vm.prototype.handleRerenderDownloadsData;Vm.prototype.onDataChange=Vm.prototype.onDataChange;Vm.prototype.isCollapsedChanged=Vm.prototype.isCollapsedChanged;Vm.prototype.isExpandedChanged=Vm.prototype.isExpandedChanged;Vm.prototype.onRowIndexChange=Vm.prototype.onRowIndexChange;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Vm.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Vm.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],Vm.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Vm.prototype,"actionHandlerBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],Vm.prototype,"ytdReduxBehavior",void 0);
_.N([_.e({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.P("design:type",Object)],Vm.prototype,"useResponsiveGrid",void 0);_.N([_.e(),_.P("design:type",Object)],Vm.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Number)],Vm.prototype,"standardUnitMinWidth",void 0);_.N([_.e({reflectToAttribute:!0,value:3}),_.P("design:type",Number)],Vm.prototype,"elementsPerRow",void 0);_.N([_.e({value:3}),_.P("design:type",Number)],Vm.prototype,"postsPerRow",void 0);
_.N([_.e({value:6}),_.P("design:type",Number)],Vm.prototype,"slimItemsPerRow",void 0);_.N([_.e({value:6}),_.P("design:type",Number)],Vm.prototype,"gameCardsPerRow",void 0);_.N([_.e({value:6}),_.P("design:type",Number)],Vm.prototype,"miniGameCardsPerRow",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Vm.prototype,"hidden",void 0);_.N([_.e(),_.P("design:type",Object)],Vm.prototype,"isShowMoreHidden",void 0);
_.N([_.e(),_.P("design:type",Object)],Vm.prototype,"isShowLessHidden",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Vm.prototype,"hasExpansionButton",void 0);_.N([_.Z("data.isExpanded"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Vm.prototype,"isExpanded",null);_.N([_.Z("data.isExpanded"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Vm.prototype,"isCollapsed",null);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Vm.prototype,"isInnerShelf",void 0);_.N([_.e({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.P("design:type",Boolean)],Vm.prototype,"isShorts",void 0);_.N([_.e({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.P("design:type",Boolean)],Vm.prototype,"isLumiere",void 0);_.N([_.e({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.P("design:type",Boolean)],Vm.prototype,"hasBoxArtThumbnailStyle",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.P("design:type",Boolean)],Vm.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.P("design:type",Boolean)],Vm.prototype,"hasFeaturedBadge",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.P("design:type",Boolean)],Vm.prototype,"hasPaygatedFeaturedBadge",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.P("design:type",Boolean)],Vm.prototype,"isHeaderHidden",void 0);_.N([_.e({selector:_.PI0}),_.P("design:type",Object)],Vm.prototype,"allVideosCount",void 0);_.N([_.e({selector:oyO}),_.P("design:type",Object)],Vm.prototype,"allPlaylistCount",void 0);_.N([_.e({selector:tpt}),_.P("design:type",Object)],Vm.prototype,"haveSmartDownloadsCompleted",void 0);
_.N([_.e({selectorArgs:["entitySelectorType"],selector:function(t,E){if(_.r("kevlar_modern_downloads_page")&&E&&E!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var p=t.entities;switch(E){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":E=_.vA(p);t=Gd(E);var U=_.PA(E);p=_.S1(p);p=_.kh(nyi(U,p,E.length));return{contents:t,subtitle:p};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return p=_.vA(p),{contents:Gd(p)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return p=
_.yR(p),{contents:Gd(p)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return p=_.jU$(p),{contents:Gd(p)};default:_.qW(new _.cC("Error: entitySelectorType defined but not matched in selector.",t,E))}}}}),
_.P("design:type",Object)],Vm.prototype,"entityDrivenRichShelfData",void 0);_.N([_.e({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.P("design:type",Boolean)],Vm.prototype,"hasTopCtaButton",void 0);_.N([_.e({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.P("design:type",Boolean)],Vm.prototype,"hasBottomCtaButton",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.P("design:type",Boolean)],Vm.prototype,"force16By9ThumbnailAspectRatio",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Vm.prototype,"restrictContentsOverflow",void 0);_.N([_.e({selector:_.ntL}),_.P("design:type",Boolean)],Vm.prototype,"inlinePreviewIsEnabled",void 0);_.N([_.e({computed:"computeSizing(data)"}),_.P("design:type",String)],Vm.prototype,"sizing",void 0);
_.N([_.e(),_.P("design:type",Boolean)],Vm.prototype,"typographyBump",void 0);_.N([_.e(),_.P("design:type",Number)],Vm.prototype,"itemWidth",void 0);_.N([_.e(),_.P("design:type",Object)],Vm.prototype,"firstShownIndex",void 0);_.N([_.e(),_.P("design:type",Object)],Vm.prototype,"horizontalOffset",void 0);_.N([_.e(),_.P("design:type",Object)],Vm.prototype,"atEnd",void 0);_.N([_.Nl("#contents"),_.P("design:type",HTMLElement)],Vm.prototype,"contents",void 0);
_.N([_.GI("data.rowIndex"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Vm.prototype,"onRowIndexChange",null);_.N([_.GI("isExpanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Vm.prototype,"isExpandedChanged",null);_.N([_.GI("isCollapsed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Vm.prototype,"isCollapsedChanged",null);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Vm.prototype,"onDataChange",null);_.N([_.GI("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Vm.prototype,"handleRerenderDownloadsData",null);_.N([_.lc("focusin"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Vm.prototype,"onChildElementFocus",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("data","isHomePage"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Vm.prototype,"isTruncated",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Vm.prototype,"showBottomDivider",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Vm.prototype,"hasChevronButtons",null);
_.N([_.Z("firstShownIndex"),_.P("design:type",Object),_.P("design:paramtypes",[])],Vm.prototype,"previousButtonOverride",null);_.N([_.Z("atEnd"),_.P("design:type",Object),_.P("design:paramtypes",[])],Vm.prototype,"nextButtonOverride",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Vm.prototype,"isHomePage",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Vm.prototype,"thumbnailAriaHidden",null);
_.N([_.Z("data"),_.P("design:type",String),_.P("design:paramtypes",[])],Vm.prototype,"entitySelectorType",null);_.N([_.Ul({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],Vm);
_.kfr=_.Ol()(Vm,"ytd-rich-shelf-renderer",function(){if(rrp===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);rrp=t}t=rrp;return t},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.hX("kevlar_poly_si_batch_j028")?1:2});var dH0;_.k2(_.XN,"yt-badge-view-model",{props:{data:_.uu,class:_.uu,workaroundShortsIsThumbnailBadge:_.uu,modern:_.uu,numBadgesInRow:_.uu,clipTextOverflow:_.uu,inheritTypography:_.uu}});_.k2(NAm,"yt-slimline-survey-view-model",{props:{data:_.uu}});var Qm=function(){var t=_.z.apply(this,arguments)||this;t.tileLottieAnimationRef={};t.backgroundLottieAnimationRef={};t.isOnHoverBehaviorForLottieEnabled=!0;t.useBiggerShowcaseImage=_.r("enable_desktop_search_bigger_thumbs");t.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return t};
_.u(Qm,_.z);_.Y=Qm.prototype;_.Y.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.Y.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",toggleButtonViewModel:"yt-toggle-button-view-model",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",
mapping:{menuRenderer:"ytd-menu-renderer"}},"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"}}}};
_.Y.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var t=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);t!==this.hasTile&&this.set("hasTile",t);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();this.maybeInitializeBackgroundLottie()}};
_.Y.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.Y.currentColorChanged=function(){this.updateButtonPalette()};
_.Y.computeBackgroundStyle=function(t){if(t&&this.data){var E=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var p=_.uz((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);p&&E.push('background-image: url("'+p+'");')}var U;((U=t.basicColorData)==null?void 0:U.backgroundColor)!==void 0&&E.push("background-color: "+_.cL(t.basicColorData.backgroundColor)+";");return E.join("")}};
_.Y.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&this.set("isDarkTheme",t)};
_.Y.getCurrentLogo=function(t,E){if(t)return E?t.darkLogoImage:t.lightLogoImage};
_.Y.getCurrentStaticTileImage=function(t,E){if(this.hasStaticTile(t))return t.darkTileImage?E?t.darkTileImage:t.tileImage:t.tileImage};
_.Y.computeTitleStyle=function(t){if(this.data&&this.data.title&&t&&t.basicColorData&&t.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.SL(t.basicColorData.foregroundTitleColor)+";"};
_.Y.computeSubtitleStyle=function(t){if(this.data&&this.data.subtitle&&t&&t.basicColorData&&t.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.SL(t.basicColorData.foregroundBodyColor)+";"};
_.Y.computeSupplementalStyle=function(t){if(this.data&&this.data.supplementalText&&t&&t.supplementalTextColor!==void 0)return t=_.SL(t.supplementalTextColor),"color:"+t+";--yt-endpoint-color:"+t+";--yt-endpoint-hover-color:"+t+";--yt-endpoint-visited-color:"+t+";--yt-formatted-string-bold-font-weight:700;"};
_.Y.computeDismissIconStyle=function(t){var E,p;if((t==null?0:(E=t.dismissButtonColorData)==null?0:E.foregroundTitleColor)&&(t==null?0:(p=t.dismissButtonColorData)==null?0:p.backgroundColor))return"--yt-button-color:"+_.cL(t.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.cL(t.dismissButtonColorData.backgroundColor)+";"};
_.Y.computeOverflowIconStyle=function(t){var E,p;if((t==null?0:(E=t.dismissButtonColorData)==null?0:E.foregroundTitleColor)&&(t==null?0:(p=t.dismissButtonColorData)==null?0:p.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.cL(t.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.cL(t.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.cL(t.dismissButtonColorData.foregroundTitleColor)+";"};
_.Y.computeBannerStyle=function(t){return t?t.toLowerCase().replace(/_/g,"-"):""};
_.Y.computeLocation=function(t){switch(t==null?void 0:t.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.Y.shouldShowTileSection=function(t,E,p){return!this.shouldExpandLogo(t,E,p)&&E};
_.Y.shouldShowExpandedLogoSection=function(t,E,p){return this.shouldExpandLogo(t,E,p)&&t!==void 0&&this.hasLogo(t)};
_.Y.shouldExpandLogo=function(t,E,p){return t&&E?!1:p>=2};
_.Y.hasStaticTile=function(t){return!(t==null||!t.tileImage)};
_.Y.hasTileLottie=function(t){var E;return!!(t==null?0:(E=t.tileLottie)==null?0:E.url)};
_.Y.hasLogo=function(t){return this.getCurrentLogo(t,this.isDarkTheme)!==void 0};
_.Y.getLogoHeight=function(t){return this.logoWithPadding(t)?"26":"20"};
_.Y.getExpandedLogoHeight=function(t){return this.logoWithPadding(t)?"31":"24"};
_.Y.getLogoImageId=function(t){return this.logoWithPadding(t)?"logo-image-with-padding":"logo-image"};
_.Y.getMaxTitleFontSize=function(t){return t.overrideTitleMaxFontSize?String(t.overrideTitleMaxFontSize):"36"};
_.Y.hasBackgroundLottie=function(t){var E;return!!(t==null?0:(E=t.backgroundLottie)==null?0:E.url)};
_.Y.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var t,E;(t=this.tileLottieAnimationRef)==null||(E=t.lottieEl)==null||E.play();var p,U;(p=this.backgroundLottieAnimationRef)==null||(U=p.lottieEl)==null||U.play()}};
_.Y.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var t,E;(t=this.tileLottieAnimationRef)==null||(E=t.lottieEl)==null||E.pause();var p,U;(p=this.backgroundLottieAnimationRef)==null||(U=p.lottieEl)==null||U.pause()}};
_.Y.pauseLottie=function(){var t,E;(t=this.tileLottieAnimationRef)==null||(E=t.lottieEl)==null||E.pause();var p,U;(p=this.backgroundLottieAnimationRef)==null||(U=p.lottieEl)==null||U.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.Y.performPrimaryButtonAction=function(){var t,E,p;((t=this.data)==null?0:(E=t.primaryButton)==null?0:(p=E.buttonRenderer)==null?0:p.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.Y.requestElementsPerRow=function(){_.kT(this.hostElement,"yt-request-elements-per-row")};
_.Y.updateButtonPalette=function(){if(this.data&&this.currentColorData){var t;((t=this.data.dismissButton)==null?0:t.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 E;if((E=this.data.primaryButton)==null?0:E.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 p;if((p=this.data.secondaryButton)==
null?0:p.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 U;((U=this.data.primaryButton)==null?0:U.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var x;((x=this.data.primaryButton)==null?0:x.toggleButtonViewModel)&&this.set("primaryButton",{toggleButtonViewModel:Object.assign({},this.data.primaryButton.toggleButtonViewModel)});var A;((A=this.data.secondaryButton)==null?0:A.toggleButtonRenderer)&&this.set("secondaryButton",
{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var m;((m=this.data.primaryButton)==null?0:m.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},this.data.primaryButton.buttonViewModel)})}};
_.Y.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var t=this.getTileLottieDataBasedOnTheme(),E,p;if(t.url!==((E=this.tileLottiePlayerProps)==null?void 0:(p=E.animationConfig)==null?void 0:p.path)){var U,x;(U=this.tileLottieAnimationRef)==null||(x=U.lottieEl)==null||x.destroy();var A;this.isOnHoverBehaviorForLottieEnabled=!((A=t.settings)==null?0:A.autoplay);var m,b;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(b=(m=t.settings)==null?void 0:m.autoplay)!=null?b:!1,loop:this.getLottieLoopValue(t.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof t.url==="string"?this.tileLottiePlayerProps.animationConfig.path=t.url:this.tileLottiePlayerProps.animationConfig.animationData=t.url}}};
_.Y.getOverflowButton=function(t){return _.k(t.overflowButton,iH3)};
_.Y.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var t=this.getBackgroundLottieDataBasedOnTheme(),E,p;if(t.url!==((E=this.backgroundLottiePlayerProps)==null?void 0:(p=E.animationConfig)==null?void 0:p.path)){var U,x;(U=this.backgroundLottieAnimationRef)==null||(x=U.lottieEl)==null||x.destroy();var A;this.isOnHoverBehaviorForLottieEnabled=!((A=t.settings)==null?0:A.autoplay);var m,b;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(b=(m=t.settings)==null?void 0:m.autoplay)!=null?b:!1,loop:this.getLottieLoopValue(t.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof t.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=t.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
t.url}}};
_.Y.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var t;((t=this.tileLottieAnimationRef)==null?void 0:t.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var E;((E=this.backgroundLottieAnimationRef)==null?void 0:E.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.Y.getTileLottieDataBasedOnTheme=function(){var t;if(this.isDarkTheme&&((t=this.data)==null?0:t.darkThemeTileLottie))return this.data.darkThemeTileLottie;var E;return((E=this.data)==null?0:E.tileLottie)?this.data.tileLottie:{}};
_.Y.getBackgroundLottieDataBasedOnTheme=function(){var t;if(this.isDarkTheme&&((t=this.data)==null?0:t.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var E;return((E=this.data)==null?0:E.backgroundLottie)?this.data.backgroundLottie:{}};
_.Y.onUpdateElementsPerRowAction=function(t){t&&this.elementsPerRow!==t&&(this.elementsPerRow=t)};
_.Y.getLottieLoopValue=function(t){return t?t.loop!==void 0?t.loop:t.loopCount?t.loopCount-1:!0:!0};
_.Y.logoWithPadding=function(t){var E,p,U;return(t=(E=this.getCurrentLogo(t,this.isDarkTheme))==null?void 0:(p=E.thumbnails)==null?void 0:(U=p[0])==null?void 0:U.height)&&t%31===0?!0:!1};
Qm.prototype.currentColorChanged=Qm.prototype.currentColorChanged;Qm.prototype.themeChanged=Qm.prototype.themeChanged;Qm.prototype.dataChanged=Qm.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Qm.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Qm.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],Qm.prototype,"ytdDismissibleItemBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Qm.prototype,"actionHandlerBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Qm.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Qm.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Qm.prototype,"primaryButton",void 0);_.N([_.e(),_.P("design:type",Object)],Qm.prototype,"secondaryButton",void 0);
_.N([_.e({reflectToAttribute:!0,value:3}),_.P("design:type",Number)],Qm.prototype,"elementsPerRow",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Qm.prototype,"isDarkTheme",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Qm.prototype,"hasTile",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Qm.prototype,"hasMetadata",void 0);
_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Qm.prototype,"showLogoImage",void 0);_.N([_.e(),_.P("design:type",Object)],Qm.prototype,"currentColorData",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.P("design:type",String)],Qm.prototype,"bannerStyle",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.P("design:type",String)],Qm.prototype,"location",void 0);
_.N([_.e(),_.P("design:type",Object)],Qm.prototype,"tileLottiePlayerProps",void 0);_.N([_.e(),_.P("design:type",Object)],Qm.prototype,"tileLottieAnimationRef",void 0);_.N([_.e(),_.P("design:type",Object)],Qm.prototype,"backgroundLottiePlayerProps",void 0);_.N([_.e(),_.P("design:type",Object)],Qm.prototype,"backgroundLottieAnimationRef",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Qm.prototype,"useBiggerShowcaseImage",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],Qm.prototype,"isHideEnclosingAction",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Qm.prototype,"dataChanged",null);_.N([_.P3("isDarkTheme"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Qm.prototype,"themeChanged",null);
_.N([_.P3("currentColorData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Qm.prototype,"currentColorChanged",null);_.N([_.Ul({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],Qm);
_.G(Qm,"ytd-statement-banner-renderer",function(){if(dH0!==void 0)return dH0;var t=document.createElement("template");_.J(t,'\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="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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return dH0=t},{mode:1});var uK3;var CU=function(){var t=_.z.apply(this,arguments)||this;t.isSearch=!1;t.hideShelfHeader=!1;t.engagementPanel=!1;t.disableMouseScroll=!0;t.useFloorScrolling=!0;return t};
_.u(CU,_.z);CU.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.zF("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.zF("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
CU.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
CU.prototype.onDataChanged=CU.prototype.onDataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],CU.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],CU.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],CU.prototype,"isSearch",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],CU.prototype,"hideShelfHeader",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],CU.prototype,"engagementPanel",void 0);_.N([_.e(),_.P("design:type",Object)],CU.prototype,"disableMouseScroll",void 0);_.N([_.e(),_.P("design:type",Object)],CU.prototype,"useFloorScrolling",void 0);_.N([_.e(),_.P("design:type",Object)],CU.prototype,"data",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],CU.prototype,"onDataChanged",null);
_.N([_.Ul({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],CU);
_.G(CU,"ytd-reel-shelf-renderer",function(){if(uK3!==void 0)return uK3;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return uK3=t},{mode:_.hX("kevlar_poly_si_batch_j028")?1:2});var Jrr;var I6p;I6p=_.CG(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.g$r=_.JC(I6p);var Zhs=_.l(function(t){var E=t.data;t=t.useSmallFont;var p={},U={};return _.H("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.H(_.w,{cond:function(){return E().favicon},
then:function(x){return _.H(_.Q9,{data:x,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.H("div",{class:"ytChannelExternalLinkViewModelContainer"},_.H(_.d8,{text:function(){return E().title},
className:_.X5("ytChannelExternalLinkViewModelTitle",(p.ytChannelExternalLinkViewModelTitleSmallFont=t,p)),ellipsisTruncate:!0,userInput:!0}),_.H(_.d8,{text:function(){return E().link},
className:_.X5("ytChannelExternalLinkViewModelLink",(U.ytChannelExternalLinkViewModelLinkSmallFont=t,U)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"id");
Zhs.idomCompat=!0;_.k2(Zhs,"yt-channel-external-link-view-model",{props:{data:_.uu,useSmallFont:_.uu}});_.vs("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var jk=function(){var t=_.z.apply(this,arguments)||this;t.revealButtonClass="button";t.businessEmailDisplayState="HIDE_SECTION";return t};
_.u(jk,_.z);_.Y=jk.prototype;_.Y.refit=function(){var t=this;_.iR(function(){_.uO(t.hostElement,"yt-refit-popups-action")});
_.XE(this,function(){_.uO(t.hostElement,"yt-refit-popups-action")})};
_.Y.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.xT(_.g$r),this.businessEmailDisplayState="CAPTCHA")};
_.Y.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"};
_.Y.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.Y.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"}}}};
_.Y.computeEmailHref=function(t){return"mailto:"+t};
_.Y.computeSafeUrl=function(t){if(t)return _.S8(t)};
_.Y.linkEndpoint=function(t){return _.k(t.onTap,_.x2)};
_.Y.linkEndpointToHref=function(t){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(t))};
_.Y.onYtServiceRequestCompleted=function(t){var E;if((E=t.detail.data)==null?0:E.businessEmail)this.businessEmail=t.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var p;if((p=t.detail.data)==null?0:p.errorMessage)this.businessEmailErrorMessage=t.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.Y.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var t=this.JSC$16699_captchaTextarea.value;if(t){t={recaptcha_response_token:t,channel_id:this.metadata.channelId};var E=_.k(this.metadata.onBusinessEmailRevealClickCommand,_.x2);E&&this.ytComponentBehavior.resolveCommand(E,{form:t})}}};
_.Y.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.aE.Object.defineProperties(jk.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var t;return _.k((t=this.data)==null?void 0:t.metadata,imZ)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.k(this.metadata.businessEmailRevealButton,_.Cz)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var t=new URL(this.metadata.canonicalChannelUrl);return t.host+t.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.k(this.metadata.learnMoreOnTap,_.x2)}}});
jk.prototype.onYtServiceRequestCompleted=jk.prototype.onYtServiceRequestCompleted;jk.prototype.businessEmailMetadataChanged=jk.prototype.businessEmailMetadataChanged;jk.prototype.refit=jk.prototype.refit;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],jk.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],jk.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],jk.prototype,"ytRendererstamperBehavior",void 0);_.N([_.Nl("#g-recaptcha-response"),_.P("design:type",HTMLTextAreaElement)],jk.prototype,"JSC$16699_captchaTextarea",void 0);_.N([_.e(),_.P("design:type",Object)],jk.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],jk.prototype,"revealButtonClass",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],jk.prototype,"metadata",null);
_.N([_.Z("metadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],jk.prototype,"revealButton",null);_.N([_.Z("metadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],jk.prototype,"channelDisplayUrl",null);_.N([_.P3("metadata"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jk.prototype,"refit",null);_.N([_.Z("metadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],jk.prototype,"formattedDescription",null);
_.N([_.Z("metadata","learnMoreCommand"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],jk.prototype,"shouldRendereVerifiedPhoneStatus",null);_.N([_.Z("metadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],jk.prototype,"learnMoreCommand",null);_.N([_.e(),_.P("design:type",String)],jk.prototype,"businessEmailDisplayState",void 0);_.N([_.e(),_.P("design:type",String)],jk.prototype,"businessEmail",void 0);
_.N([_.e(),_.P("design:type",String)],jk.prototype,"businessEmailErrorMessage",void 0);_.N([_.P3("metadata"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jk.prototype,"businessEmailMetadataChanged",null);_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],jk.prototype,"onYtServiceRequestCompleted",null);
_.N([_.Ul({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],jk);
_.G(jk,"ytd-about-channel-renderer",function(){if(Jrr!==void 0)return Jrr;var t=document.createElement("template");_.J(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden$="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden$="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden$="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank" aria-label$="[[metadata.learnMoreA11yLabel]]">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Jrr=t},{mode:1});var OhZ;var rS=function(){return _.z.apply(this,arguments)||this};
_.u(rS,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],rS.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],rS.prototype,"data",void 0);_.N([_.Ul({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],rS);
_.G(rS,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(OhZ!==void 0)return OhZ;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return OhZ=t},{mode:1});var Xco;var k4=function(){return _.z.apply(this,arguments)||this};
_.u(k4,_.z);k4.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],k4.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],k4.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],k4.prototype,"aligment",void 0);_.N([_.Ul({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],k4);
_.G(k4,"ytd-channel-list-sub-menu-renderer",function(){if(Xco!==void 0)return Xco;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Xco=
t},{mode:1});var hsr;var dS=function(){return _.z.apply(this,arguments)||this};
_.u(dS,_.z);dS.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}}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],dS.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],dS.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],dS.prototype,"data",void 0);_.N([_.Ul({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],dS);
_.G(dS,"ytd-channel-sub-menu-renderer",function(){if(hsr!==void 0)return hsr;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return hsr=t},{mode:1});var a6r;var es0;var ub=function(){var t=_.z.apply(this,arguments)||this;t.isCompact=!1;return t};
_.u(ub,_.z);_.aE.Object.defineProperties(ub.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var t,E;return((E=_.k((t=this.data)==null?void 0:t.endpoint,_.kX))==null?void 0:E.target)==="TARGET_NEW_WINDOW"}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],ub.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],ub.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],ub.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],ub.prototype,"isCompact",void 0);_.N([_.Z("isCompact"),_.P("design:type",Number),_.P("design:paramtypes",[])],ub.prototype,"thumbnailWidth",null);
_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ub.prototype,"openNewWindow",null);_.N([_.Ul({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],ub);
_.G(ub,"ytd-media-lockup-renderer",function(){if(es0!==void 0)return es0;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return es0=t},{mode:1});var Fj0;var Jb=function(){return _.z.apply(this,arguments)||this};
_.u(Jb,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Jb.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Jb.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Jb.prototype,"data",void 0);_.N([_.Ul({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],Jb);
_.G(Jb,"ytd-structured-description-channel-lockup-renderer",function(){if(Fj0!==void 0)return Fj0;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Fj0=t},{mode:1});var zsT;var I8=function(){var t=_.z.apply(this,arguments)||this;t.isCompact=!1;t.collectionsStackColor=_.r("modernize_structured_description_playlist_lockups_v2");return t};
_.u(I8,_.z);I8.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:_.r("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.aE.Object.defineProperties(I8.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var t,E,p,U,x,A;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(t=this.data)==null?void 0:(E=t.thumbnail)==null?void 0:E.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(p=this.data)==null?void 0:(U=p.thumbnail)==null?void 0:U.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(x=this.data)==null?void 0:(A=x.thumbnail)==null?
void 0:A.vibrantColorPalette:void 0}}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],I8.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],I8.prototype,"componentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],I8.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],I8.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],I8.prototype,"showSidePanelThumbnailOverlay",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],I8.prototype,"isCompact",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],I8.prototype,"collectionsStackColor",void 0);_.N([_.Z("data"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],I8.prototype,"twoLineTitle",null);_.N([_.Z("data","collectionsStackColor"),_.P("design:type",Object),_.P("design:paramtypes",[])],I8.prototype,"collectionStack",null);
_.N([_.Ul({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],I8);
_.G(I8,"ytd-structured-description-playlist-lockup-renderer",function(){if(zsT!==void 0)return zsT;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return zsT=t},{mode:1});var l6s;var gS=function(){return _.z.apply(this,arguments)||this};
_.u(gS,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],gS.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],gS.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],gS.prototype,"data",void 0);_.N([_.Ul({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],gS);
_.G(gS,"ytd-structured-description-video-lockup-renderer",function(){if(l6s!==void 0)return l6s;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return l6s=t},{mode:2});var Ze=function(){return _.z.apply(this,arguments)||this};
_.u(Ze,_.z);
Ze.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}}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ze.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Ze.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Ze.prototype,"data",void 0);_.N([_.Ul({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],Ze);
_.G(Ze,"ytd-compact-infocard-renderer",function(){if(a6r!==void 0)return a6r;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return a6r=t},{mode:1});var GfW;var Oq=function(){return _.z.apply(this,arguments)||this};
_.u(Oq,_.z);Oq.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.aE.Object.defineProperties(Oq.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Oq.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Oq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],Oq.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],Oq.prototype,"ytdReduxBehavior",void 0);_.N([_.e({selector:_.pd}),_.P("design:type",Object)],Oq.prototype,"isGridViewEnabled",void 0);
_.N([_.Z("isGridViewEnabled"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Oq.prototype,"watchFeedBigThumbs",null);_.N([_.Z("isGridViewEnabled","data"),_.e({reflectToAttribute:!0,value:"168"}),_.P("design:type",String),_.P("design:paramtypes",[])],Oq.prototype,"thumbnailWidth",null);_.N([_.Z("isGridViewEnabled","data"),_.e({reflectToAttribute:!0,value:"94"}),_.P("design:type",String),_.P("design:paramtypes",[])],Oq.prototype,"customThumbnailSize",null);
_.N([_.e(),_.P("design:type",Object)],Oq.prototype,"data",void 0);_.N([_.Ul({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],Oq);
_.G(Oq,"ytd-compact-playlist-renderer",function(){if(GfW!==void 0)return GfW;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return GfW=t},{mode:1});var n$o;var Xy=function(){var t=_.z.apply(this,arguments)||this;t.roundedContainer=!0;t.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return t};
_.u(Xy,_.z);_.Y=Xy.prototype;_.Y.attached=function(){this.requestElementsPerRow()};
_.Y.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"}}}};
_.Y.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.Y.computeViewStyle=function(t){return t.style?t.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.Y.onUpdateElementsPerRowAction=function(t){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&t===1};
_.Y.requestElementsPerRow=function(){_.kT(this.hostElement,"yt-request-elements-per-row")};
Xy.prototype.dataChanged=Xy.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Xy.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Xy.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],Xy.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Xy.prototype,"actionHandlerBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],Xy.prototype,"data",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],Xy.prototype,"hideThumbnail",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.P("design:type",String)],Xy.prototype,"viewStyle",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Xy.prototype,"roundedContainer",void 0);
_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Xy.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],Xy);
_.G(Xy,"ytd-compact-promoted-item-renderer",function(){if(n$o!==void 0)return n$o;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return n$o=t},{mode:1});var NHs;var hb=function(){return _.z.apply(this,arguments)||this};
_.u(hb,_.z);hb.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
hb.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
hb.prototype.onYtNavigate=function(t,E){var p=this;if(E.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",E)){var U=this.get("watchEndpoint.videoId",E.endpoint),x=_.uO(this.hostElement,"yt-get-current-video-id-action")[0];_.r("kevlar_mix_handle_first_endpoint_different")&&U&&x&&U!==x||(t.stopPropagation(),_.dG().getPlayerPromise().then(function(A){if(A.getPlayerState()===0&&p.data.secondaryNavigationEndpoint)var m=p.data.secondaryNavigationEndpoint;else{m=
Object.assign({},E.endpoint);var b=_.k(m.commandMetadata,_.hZ);b&&(A=Math.floor(A.getCurrentTime()),b.url=_.ka(b.url,{t:A}),!_.r("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(b=_.k(m,_.HD)))&&(b.startTimeSeconds=A)}_.kT(p.hostElement,"yt-navigate",{endpoint:m})}))}};
_.aE.Object.defineProperties(hb.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var t,E,p,U,x,A;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(t=this.data)==null?void 0:(E=t.thumbnail)==null?void 0:E.sampledThumbnailColor,vibrantColorPalette:(p=this.data)==null?void 0:(U=p.thumbnail)==null?void 0:U.vibrantColorPalette,darkColorPalette:(x=this.data)==null?void 0:(A=x.thumbnail)==null?void 0:A.darkColorPalette,experimentEnabled:!0}}}});
hb.prototype.onYtNavigate=hb.prototype.onYtNavigate;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],hb.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Tn.YtEndpointBehavior),_.P("design:type",Object)],hb.prototype,"ytEndpointBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],hb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],hb.prototype,"ytdDismissibleItemBehavior",void 0);
_.N([_.g(_.dy),_.P("design:type",Object)],hb.prototype,"ytdLockupBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],hb.prototype,"ytdReduxBehavior",void 0);_.N([_.e({selector:_.pd}),_.P("design:type",Object)],hb.prototype,"isGridViewEnabled",void 0);_.N([_.Z("isGridViewEnabled"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],hb.prototype,"watchFeedBigThumbs",null);
_.N([_.Z("isGridViewEnabled"),_.e({reflectToAttribute:!0}),_.P("design:type",String),_.P("design:paramtypes",[])],hb.prototype,"thumbnailWidth",null);_.N([_.e(),_.P("design:type",Object)],hb.prototype,"data",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],hb.prototype,"collectionStack",null);_.N([_.lc("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],hb.prototype,"onYtNavigate",null);
_.N([_.Ul({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],hb);
_.G(hb,"ytd-compact-radio-renderer",function(){if(NHs!==void 0)return NHs;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return NHs=t},{mode:1});var DHs;var a8=function(){return _.z.apply(this,arguments)||this};
_.u(a8,_.z);a8.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
a8.prototype.computeRendererStyle=function(t){return t.style?t.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.N([_.e(),_.P("design:type",Object)],a8.prototype,"data",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],a8.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],a8.prototype,"rendererBehavior",void 0);_.N([_.e({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.P("design:type",String)],a8.prototype,"rendererStyle",void 0);_.N([_.Ul({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],a8);
_.G(a8,"ytd-compact-text-promo-renderer",function(){if(DHs!==void 0)return DHs;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return DHs=t},{mode:1});var sjr;var ek=function(){var t=_.z.apply(this,arguments)||this;t.isShortsStyle=!1;return t};
_.u(ek,_.z);_.Y=ek.prototype;_.Y.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"}}}};
_.Y.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.kT(this.hostElement,"yt-disable-lockup-interaction"):_.kT(this.hostElement,"yt-enable-lockup-interaction"))};
_.Y.isMetaBlockEmpty=function(t){return!t||!t.longBylineText&&!t.shortBylineText&&!t.shortViewCountText&&!t.viewCountText};
_.Y.computeHasOneLineTitle=function(t){return this.forceOneLineTitle||!(t==null||!t.buttons)};
_.Y.computeDisableInteraction=function(){var t;return!((t=this.data)==null?0:t.navigationEndpoint)};
_.Y.hasSingularTopStandaloneBadge=function(){var t;return!((t=this.data)==null||!t.topStandaloneBadge)};
_.aE.Object.defineProperties(ek.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("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 t;return this.hasSingularTopStandaloneBadge()?[(t=this.data)==null?void 0:t.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var t;return this.shouldShowTopBadges?((t=this.data)==null?void 0:t.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
ek.prototype.disableInteractionChanged=ek.prototype.disableInteractionChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],ek.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],ek.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],ek.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.g(_.dy),_.P("design:type",Object)],ek.prototype,"ytdLockupBehavior",void 0);
_.N([_.g(_.Be),_.P("design:type",Object)],ek.prototype,"ytdReduxBehavior",void 0);_.N([_.e({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.P("design:type",Boolean)],ek.prototype,"metaBlockEmpty",void 0);_.N([_.e({selector:_.pd}),_.P("design:type",Object)],ek.prototype,"isGridViewEnabled",void 0);_.N([_.Z("isGridViewEnabled"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ek.prototype,"watchFeedBigThumbs",null);
_.N([_.Z("isGridViewEnabled"),_.e({reflectToAttribute:!0}),_.P("design:type",String),_.P("design:paramtypes",[])],ek.prototype,"thumbnailWidth",null);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],ek.prototype,"isShortsStyle",void 0);_.N([_.e(),_.P("design:type",Object)],ek.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.P("design:type",Boolean)],ek.prototype,"hasOneLineTitle",void 0);
_.N([_.e(),_.P("design:type",Boolean)],ek.prototype,"hideThumbnail",void 0);_.N([_.e(),_.P("design:type",Boolean)],ek.prototype,"forceOneLineTitle",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.P("design:type",Boolean)],ek.prototype,"disableInteraction",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],ek.prototype,"musicMetadataVideoLockup",void 0);
_.N([_.GI("disableInteraction"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ek.prototype,"disableInteractionChanged",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ek.prototype,"shouldShowTopBadges",null);_.N([_.Z("data"),_.P("design:type",Array),_.P("design:paramtypes",[])],ek.prototype,"topBadges",null);
_.N([_.Z("shouldShowTopBadges","data"),_.P("design:type",Array),_.P("design:paramtypes",[])],ek.prototype,"inlineMetadataBadges",null);_.N([_.Z("shouldShowTopBadges"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ek.prototype,"shouldShowBadgesBelowMetadata",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],ek.prototype,"compactTitleClass",null);_.N([_.Ul({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],ek);
_.G(ek,"ytd-compact-video-renderer",function(){if(sjr!==void 0)return sjr;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return sjr=t},{mode:_.hX("kevlar_poly_si_batch_j067")?1:2});var LjW;_.vs("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var Fy=function(){return _.z.apply(this,arguments)||this};
_.u(Fy,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Fy.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Fy.prototype,"data",void 0);_.N([_.Ul({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],Fy);
_.G(Fy,"ytd-counterfactual-renderer",function(){if(LjW!==void 0)return LjW;var t=document.createElement("template");_.J(t,"\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");t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return LjW=t},{mode:1});var P4o;var zA=function(){var t=_.z.apply(this,arguments)||this;t.hidden=!1;return t};
_.u(zA,_.z);zA.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.X3().resolve(_.ei).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
zA.prototype.computeHidden=function(t){return!!t};
_.aE.Object.defineProperties(zA.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}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],zA.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],zA.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.P("design:type",Object)],zA.prototype,"hidden",void 0);_.N([_.Z("data.label"),_.P("design:type",String),_.P("design:paramtypes",[])],zA.prototype,"label",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],zA.prototype,"value",null);
_.N([_.Ul({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],zA);
_.G(zA,"ytd-dropdown-item-renderer",function(){if(P4o!==void 0)return P4o;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return P4o=t},{mode:1});var THT;var o$W;var lb=function(){return _.z.apply(this,arguments)||this};
_.u(lb,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],lb.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],lb.prototype,"data",void 0);_.N([_.e({computed:"getSimpleString(data.label)"}),_.P("design:type",String)],lb.prototype,"label",void 0);_.N([_.Ul({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],lb);
_.G(lb,"ytd-navigation-dropdown-item-renderer",function(){if(o$W!==void 0)return o$W;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return o$W=t},{mode:1});var GA=function(){var t=_.z.apply(this,arguments)||this;t.disabled=!1;t.value="";t.noLabelFloat=!1;t.noUnderline=!1;t.usePrimaryColor=!1;t.hasBackground=!1;t.verticalAlign="top";t.autosize=!1;t.minAutosizeWidth=100;t.autosizeFont="14px Roboto";return t};
_.u(GA,_.z);_.Y=GA.prototype;_.Y.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"}}}};
_.Y.open=function(){this.inputEl.open()};
_.Y.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.Y.dataChanged=function(){this.reset()};
_.Y.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IU("value-changed",this.value))};
_.Y.stopPropagation=function(t){t.stopPropagation()};
_.Y.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var t=this.canvas.getContext("2d");t&&(t.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(t.measureText(this.inputEl.value).width)+24)+"px")}};
_.Y.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var t=0,E=this.data.entries.length;t<E;t++){var p=this.data.entries[t],U;for(U in p)if(p.hasOwnProperty(U)){var x=p[U];if("isSelected"in x&&x.isSelected)return"stringValue"in x?x.stringValue||"":"int32Value"in x?x.int32Value||0:0}}return null};
_.Y.updateValueFromBinding=function(t){this.value=t.detail.value};
_.aE.Object.defineProperties(GA.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 t=0,E=this.data.entries.length;t<E;t++){var p=this.data.entries[t],U;for(U in p)if(p.hasOwnProperty(U)){var x=p[U];if("isSelected"in x&&x.isSelected&&"label"in x)return this.ytRendererBehavior.getSimpleString(x.label)}}return null}}});
GA.prototype.autoSizeLabel=GA.prototype.autoSizeLabel;GA.prototype.stopPropagation=GA.prototype.stopPropagation;GA.prototype.valueChangedForBinding=GA.prototype.valueChangedForBinding;GA.prototype.dataChanged=GA.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],GA.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],GA.prototype,"ytRendererStamperBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],GA.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],GA.prototype,"disabled",void 0);_.N([_.e(),_.P("design:type",Object)],GA.prototype,"value",void 0);_.N([_.e(),_.P("design:type",Object)],GA.prototype,"noLabelFloat",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],GA.prototype,"noUnderline",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],GA.prototype,"theme",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],GA.prototype,"usePrimaryColor",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],GA.prototype,"hasBackground",void 0);_.N([_.e(),_.P("design:type",Object)],GA.prototype,"verticalAlign",void 0);_.N([_.e(),_.P("design:type",Object)],GA.prototype,"autosize",void 0);_.N([_.e(),_.P("design:type",Object)],GA.prototype,"minAutosizeWidth",void 0);_.N([_.e(),_.P("design:type",Object)],GA.prototype,"autosizeFont",void 0);
_.N([_.Nl("#entries"),_.P("design:type",Object)],GA.prototype,"entries",void 0);_.N([_.Nl("#input"),_.P("design:type",Object)],GA.prototype,"inputEl",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],GA.prototype,"dataChanged",null);_.N([_.P3("value"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],GA.prototype,"valueChangedForBinding",null);
_.N([_.lc("iron-overlay-opened"),_.lc("iron-overlay-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],GA.prototype,"stopPropagation",null);_.N([_.lc("iron-select"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],GA.prototype,"autoSizeLabel",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],GA.prototype,"label",null);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],GA);
_.G(GA,"ytd-dropdown-renderer",function(){if(THT!==void 0)return THT;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return THT=t},{mode:1});var Wjp;var nU=function(){var t=_.z.apply(this,arguments)||this;t.isConstrainedList=!1;return t};
_.u(nU,_.z);nU.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"}}}};
nU.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
nU.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
nU.prototype.computeViewAllHidden=function(t,E){return t||!E.viewAllEndpoint};
nU.prototype.fillRestIfNoShowMore=nU.prototype.fillRestIfNoShowMore;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],nU.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],nU.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.F_.YtLazyListBehavior),_.P("design:type",Object)],nU.prototype,"ytLazyListBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],nU.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],nU.prototype,"isConstrainedList",void 0);_.N([_.P3("data","canShowMore"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nU.prototype,"fillRestIfNoShowMore",null);_.N([_.Ul({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],nU);
_.G(nU,"ytd-expanded-shelf-contents-renderer",function(){if(Wjp!==void 0)return Wjp;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Wjp=t},{mode:_.hX("kevlar_poly_si_batch_j025")?1:2});var $Hs;var NV=function(){return _.z.apply(this,arguments)||this};
_.u(NV,_.z);NV.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}}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],NV.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],NV.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],NV.prototype,"data",void 0);_.N([_.Ul({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],NV);
_.G(NV,"ytd-feed-channel-filter-header-renderer",function(){if($Hs!==void 0)return $Hs;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return $Hs=t},{mode:1});var Kjf;var v$4;var yr4;var De=function(){return _.z.apply(this,arguments)||this};
_.u(De,_.z);_.Y=De.prototype;_.Y.onClick=function(t){var E,p=(E=this.data)==null?void 0:E.sectionEndpoint;!_.Qb(_.Vx(t),this.hostElement,["A".toString()])&&p&&_.kT(this.hostElement,"yt-navigate",{endpoint:p})};
_.Y.computeHasSectionEndpoint=function(t){return(t==null?void 0:t.sectionEndpoint)!==void 0};
_.Y.computeShowHeaderAsLink=function(t){return(t==null?void 0:t.header)!==void 0&&(t==null?void 0:t.sectionEndpoint)!==void 0};
_.Y.computeShowSubheaderAsLink=function(t){return(t==null?void 0:t.subheader)!==void 0&&(t==null?void 0:t.sectionEndpoint)!==void 0&&(t==null?void 0:t.header)===void 0};
_.Y.getHeaderAsLinkClass=function(t){var E=[],p;(t==null?0:(p=t.headerIcon)==null?0:p.iconType)&&E.push("header-link-active");return E.join(" ")};
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],De.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],De.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],De.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],De.prototype,"data",void 0);
_.N([_.e({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],De.prototype,"hasSectionEndpoint",void 0);_.N([_.e({computed:"computeShowHeaderAsLink(data)"}),_.P("design:type",Boolean)],De.prototype,"showHeaderAsLink",void 0);_.N([_.e({computed:"computeShowSubheaderAsLink(data)"}),_.P("design:type",Boolean)],De.prototype,"showSubheaderAsLink",void 0);_.N([_.Ul({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],De);
_.G(De,"ytd-medical-panel-section-renderer",function(){if(yr4!==void 0)return yr4;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return yr4=t},{mode:1});var sq=function(){var t=_.z.apply(this,arguments)||this;t.isExpanded=!1;t.roundedContainer=!0;t.skipRoundingTop=!1;t.toggleExpandableSection=function(){t.isExpanded=!t.isExpanded};
return t};
_.u(sq,_.z);
sq.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]]"}}}}}};
sq.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
sq.prototype.dataChanged=sq.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],sq.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],sq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],sq.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],sq.prototype,"isExpanded",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],sq.prototype,"roundedContainer",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],sq.prototype,"skipRoundingTop",void 0);_.N([_.e(),_.P("design:type",Object)],sq.prototype,"toggleExpandableSection",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sq.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],sq);
_.G(sq,"ytd-medical-panel-content-renderer",function(){if(v$4!==void 0)return v$4;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return v$4=t},{mode:1});_.vs("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var LU=function(){var t=_.z.apply(this,arguments)||this;t.roundedContainer=!0;t.extractOverlay=!1;t.amsterdamEnabled=_.r("enable_desktop_amsterdam_info_panels");t.hasTitle=!1;t.linkIcon="OPEN_IN_NEW";t.isDismissed=!1;return t};
_.u(LU,_.z);LU.prototype.onOverlayConditionsChange=function(){var t=_.ZN(this.hostElement).querySelector("ytd-info-panel-content-renderer");t&&(t.set("extractOverlay",this.extractOverlay),t.set("roundedContainer",this.roundedContainer))};
LU.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"}}}};
LU.prototype.computeHasTitle=function(t){return!(t==null||!t.title)};
LU.prototype.onClick=function(t){var E,p=(E=this.data)==null?void 0:E.headerEndpoint;!_.Qb(_.Vx(t),this.hostElement,["BUTTON".toString()])&&p&&this.ytComponentBehavior.resolveCommand(p)};
_.aE.Object.defineProperties(LU.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 t;return((t=this.data)==null?void 0:t.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.data)==null?void 0:t.disableBottomDivider)||!((E=this.data)==null?0:E.title)}}});
LU.prototype.onOverlayConditionsChange=LU.prototype.onOverlayConditionsChange;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],LU.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],LU.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],LU.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],LU.prototype,"ytdReduxBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],LU.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],LU.prototype,"roundedContainer",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],LU.prototype,"extractOverlay",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],LU.prototype,"amsterdamEnabled",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.P("design:type",Object)],LU.prototype,"hasTitle",void 0);
_.N([_.e({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Z("data.background"),_.P("design:type",Object),_.P("design:paramtypes",[])],LU.prototype,"background",null);_.N([_.e({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Z("data.titleStyle"),_.P("design:type",Object),_.P("design:paramtypes",[])],LU.prototype,"titleStyle",null);
_.N([_.e({type:_.r("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.Z("data.titleStyle"),_.P("design:type",Object),_.P("design:paramtypes",[])],LU.prototype,"showLinkIcon",null);_.N([_.e(),_.P("design:type",String)],LU.prototype,"linkIcon",void 0);_.N([_.e({type:_.r("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],LU.prototype,"hideDivider",null);
_.N([_.e({selectorArgs:["data.dismissStateEntityKey"],selector:function(t,E){t=_.hj(t.entities,"dismissState",E);return(t==null?void 0:t.isDismissed)||(t==null?void 0:t.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(t==null?void 0:t.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.P("design:type",Object)],LU.prototype,"isDismissed",void 0);_.N([_.GI("roundedContainer","extractOverlay"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],LU.prototype,"onOverlayConditionsChange",null);_.N([_.Ul({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],LU);
_.G(LU,"ytd-info-panel-container-renderer",function(){if(Kjf!==void 0)return Kjf;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Kjf=t},{mode:1});var SbT;_.vs("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var P_=function(){return _.z.apply(this,arguments)||this};
_.u(P_,_.z);P_.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
P_.prototype.computeStyle=function(t){return t?t:""};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],P_.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],P_.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],P_.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.P("design:type",String)],P_.prototype,"titleStyle",void 0);
_.N([_.Ul({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],P_);
_.Ol()(P_,"ytd-item-section-header-renderer",function(){if(SbT===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);SbT=t}t=SbT;return t},{allowedProps:["data"],
mode:1});var cr4;var tas,Eof=function(){return tas!==void 0?tas:tas=document.createElement("template")};
document.head.appendChild(Eof().content);var pao;_.TA=new _.gM("VOTING_ANIMATION_CONTROLLER_TOKEN");var xgp=_.l(function(t){var E=t.data;var p=_.EB("div"),U=_.EB("div");t=_.M(_.Py("VOTE_STATUS_NONE",void 0,"YPH5mf"));var x=t.next().value,A=t.next().value,m=_.nd($aE,function(){var Q;return(Q=E())==null?void 0:Q.entityKey}),b=_.r("web_enable_voting_animation")||_.r("enable_music_web_cairo_voting_animation");
_.A6(function(){var Q;((Q=E().initialState)==null?0:Q.status)&&A(E().initialState.status)});
var f=function(){var Q,C,d=(C=(Q=E().initialState)==null?void 0:Q.votes)!=null?C:0,I;Q=(I=E().initialState)==null?void 0:I.status;return Q==="VOTE_STATUS_UPVOTED"?d-1:Q==="VOTE_STATUS_DOWNVOTED"?d+1:d},B=function(){return x()==="VOTE_STATUS_UPVOTED"?f()+1:x()==="VOTE_STATUS_DOWNVOTED"?f()-1:f()},R=function(Q){var C=Q?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
A(C);var d=B(),I=_.X3().resolve(_.OB(_.TA)),O=m();O&&(Q&&(O==null?0:O.upvoteDefaultButtonOnTap)?_.bz(O.upvoteDefaultButtonOnTap,{form:{element:p.value},disableClickTracking:!0}):(O==null?0:O.upvoteToggledButtonOnTap)&&_.bz(O.upvoteToggledButtonOnTap,{form:{element:p.value},disableClickTracking:!0}));var a;Q=(a=O==null?void 0:O.enableOptimisticReordering)!=null?a:E().enableOptimisticReordering;b&&I&&E().itemId&&Q&&Ugm(I,E().itemId,d,C)},V=function(Q){var C=Q?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
A(C);var d=B(),I=_.X3().resolve(_.OB(_.TA)),O=m();O&&(Q&&(O==null?0:O.downvoteDefaultButtonOnTap)?_.bz(O.downvoteDefaultButtonOnTap,{form:{element:U.value},disableClickTracking:!0}):(O==null?0:O.downvoteToggledButtonOnTap)&&_.bz(O.downvoteToggledButtonOnTap,{form:{element:U.value},disableClickTracking:!0}));var a;Q=(a=O==null?void 0:O.enableOptimisticReordering)!=null?a:E().enableOptimisticReordering;b&&I&&E().itemId&&Q&&Ugm(I,E().itemId,d,C)};
t={};t=_.X5("ytVotingViewModelVoteCount",(t.ytVotingViewModelVoteCountDisabled=function(){return E().isDisabled},t));
return _.H("voting-view-model",{class:"ytVotingViewModelHost"},_.H("div",{el:p},_.H(_.sY,{data:function(){var Q=_.k(E().upvoteButton,_.rc);return{toggleButtonViewModel:Object.assign({},Q,{isToggled:x()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(Q){return _.H(_.m3,{data:Q.data,
onToggle:R})}})),_.H("div",{class:t},function(){var Q,C,d;
return x()==="VOTE_STATUS_UPVOTED"?(Q=E().initialState)==null?void 0:Q.compactVotesUpvoted:x()==="VOTE_STATUS_DOWNVOTED"?(C=E().initialState)==null?void 0:C.compactVotesDownvoted:(d=E().initialState)==null?void 0:d.compactVotes}),_.H("div",{el:U},_.H(_.sY,{data:function(){var Q=_.k(E().downvoteButton,_.rc);
return{toggleButtonViewModel:Object.assign({},Q,{isToggled:x()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(Q){return _.H(_.m3,{data:Q.data,
onToggle:V})}})))},"jd");_.k2(_.l(function(t){var E=t.data;return _.H("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.H("div",{class:_.X5("ytEngagementBarViewModelEngagementBarWrapper",t.className)},_.H(_.sY,{data:function(){return E().actions}},{votingViewModel:xgp})))},"kd"),"engagement-bar-view-model",{props:{data:_.uu,
className:_.uu}});var o8=function(){var t=_.z.apply(this,arguments)||this;t.playlistVotingAnimationEnabled=_.r("web_enable_voting_animation");t.downloadProgress=0;t.transferState="TRANSFER_STATE_UNKNOWN";t.downloadState="DOWNLOAD_STATE_UNKNOWN";t.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";t.offlineVideoPolicyExpirationTimestamp=0;return t};
_.u(o8,_.z);_.Y=o8.prototype;_.Y.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"}}}};
_.Y.canReorderChanged=function(){this.persistentDragHandle=_.r("kevlar_playlist_drag_handles")&&this.canReorder};
_.Y.onDrag=function(){if(this.thumbnail){var t=_.ZN(this.thumbnail).querySelector("yt-image");t&&(t.shouldRenderLazy=!1)}};
_.Y.onMenuOverlayChanged=function(t,E){this.menuOpened=E};
_.Y.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.Y.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.Y.onContentsTap=function(t){var E,p=(E=this.data)==null?void 0:E.serviceEndpoints;if(p&&p.length===1&&_.k(p[0],y$_)&&!_.Qb(_.Vx(t),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(p[0]);else{var U;(E=(U=this.data)==null?void 0:U.navigationEndpoint)&&_.r("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?AKZ(_.X3().resolve(_.bf),E):(_.S3().playlistSuggestionsShelfActivation=
!0,_.Yzf(_.X3().resolve(_.bf),E)):E&&!_.Qb(_.Vx(t),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.r("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.kT(this.hostElement,"yt-navigate",{endpoint:E}):this.ytComponentBehavior.resolveCommand(E))}};
_.Y.computeStyle=function(t){return t?t.toLowerCase().replace(/_/g,"-"):""};
_.Y.computeThumbnailWidth=function(t){return t==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.Y.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=iZY(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))}};
_.Y.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.Y.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.Y.dataChanged=function(){if(this.data){var t,E,p,U=((t=this.downloadRenderData)==null?void 0:t.badges)&&((E=this.downloadRenderData)==null?void 0:E.badges)!==((p=this.data)==null?void 0:p.badges),x,A,m;t=((x=this.downloadRenderData)==null?void 0:x.thumbnailOverlays)&&((A=this.downloadRenderData)==null?void 0:A.thumbnailOverlays)!==((m=this.data)==null?void 0:m.thumbnailOverlays);(!this.downloadRenderData||U||t)&&this.downloadStateChanged()}};
_.Y.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var t,E,p=(t=this.data.menu)==null?void 0:(E=t.menuRenderer)==null?void 0:E.items;if(p)for(t=_.M(p),E=t.next();!E.done;E=t.next())if(E=E.value,p=void 0,_.k((p=E.menuServiceItemRenderer)==null?void 0:p.serviceEndpoint,_.HH)){var U=p=void 0,x=void 0;E=(p=E)==null?void 0:(U=p.menuServiceItemRenderer)==null?void 0:(x=U.serviceEndpoint)==null?void 0:x.playlistEditEndpoint;x=U=void 0;if(p=(U=E)==null?void 0:(x=U.actions)==null?void 0:
x[0])U=void 0,p.setVideoId=(U=this.data)==null?void 0:U.setVideoId;x=U=p=void 0;if(E=(p=E)==null?void 0:(U=p.clientActions)==null?void 0:(x=U[0])==null?void 0:x.playlistRemoveVideosAction)p=void 0,E.setVideoIds=[(p=this.data)==null?void 0:p.setVideoId]}}};
_.aE.Object.defineProperties(o8.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
o8.prototype.setVideoIdChanged=o8.prototype.setVideoIdChanged;o8.prototype.dataChanged=o8.prototype.dataChanged;o8.prototype.downloadStateChanged=o8.prototype.downloadStateChanged;o8.prototype.onMenuOverlayChanged=o8.prototype.onMenuOverlayChanged;o8.prototype.canReorderChanged=o8.prototype.canReorderChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],o8.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],o8.prototype,"ytdReduxBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],o8.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.dy),_.P("design:type",Object)],o8.prototype,"ytdLockupBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],o8.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],o8.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],o8.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],o8.prototype,"canReorder",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],o8.prototype,"menuOpened",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],o8.prototype,"handleIsHovered",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],o8.prototype,"persistentDragHandle",void 0);_.N([_.e(),_.P("design:type",Object)],o8.prototype,"downloadRenderData",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.P("design:type",String)],o8.prototype,"styleType",void 0);_.N([_.e({computed:"computeThumbnailWidth(data.style)"}),_.P("design:type",Number)],o8.prototype,"thumbnailWidth",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],o8.prototype,"isDownloads",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],o8.prototype,"playlistVotingAnimationEnabled",void 0);
_.N([_.e({selector:Yz,selectorArgs:["data.videoId"]}),_.P("design:type",Object)],o8.prototype,"downloadProgress",void 0);_.N([_.e(),_.P("design:type",Number)],o8.prototype,"relativeDateReference",void 0);_.N([_.e({selector:_.xz,selectorArgs:["data.videoId"]}),_.P("design:type",Object)],o8.prototype,"transferState",void 0);_.N([_.e({selector:UTi,selectorArgs:["data.videoId"]}),_.P("design:type",Object)],o8.prototype,"downloadState",void 0);
_.N([_.e({selector:sUJ,selectorArgs:["data.videoId"]}),_.P("design:type",Object)],o8.prototype,"offlinePolicyAction",void 0);_.N([_.e({selector:L3Y,selectorArgs:["data.videoId"]}),_.P("design:type",Object)],o8.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.N([_.e({selector:TwK,selectorArgs:["data.videoId"]}),_.P("design:type",Object)],o8.prototype,"entityInfo",void 0);_.N([_.e({selector:_.E5}),_.P("design:type",Boolean)],o8.prototype,"miniplayerIsActive",void 0);
_.N([_.Z("data"),_.P("design:type",String),_.P("design:paramtypes",[])],o8.prototype,"playlistVideoId",null);_.N([_.Nl("#thumbnail"),_.P("design:type",Object)],o8.prototype,"thumbnail",void 0);_.N([_.P3("canReorder"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],o8.prototype,"canReorderChanged",null);
_.N([_.lc("yt-menu-overlay-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Boolean]),_.P("design:returntype")],o8.prototype,"onMenuOverlayChanged",null);_.N([_.P3("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],o8.prototype,"downloadStateChanged",null);
_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],o8.prototype,"dataChanged",null);_.N([_.P3("data.setVideoId"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],o8.prototype,"setVideoIdChanged",null);_.N([_.Ul({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],o8);
_.G(o8,"ytd-playlist-video-renderer",function(){if(pao!==void 0)return pao;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);t.content.insertBefore(Eof().content.cloneNode(!0),t.content.firstChild);return pao=t},{mode:1});var Mar;var W_=function(){return _.z.apply(this,arguments)||this};
_.u(W_,_.z);_.N([_.e(),_.P("design:type",Object)],W_.prototype,"data",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],W_.prototype,"rendererBehavior",void 0);_.N([_.Ul({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],W_);
_.G(W_,"ytd-premium-browse-footer-renderer",function(){if(Mar!==void 0)return Mar;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Mar=t},{mode:1});var mg4;var $4=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return t};
_.u($4,_.z);_.Y=$4.prototype;_.Y.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.Y.handleDarkModeToggledAction=function(t){this.isDarkTheme=t};
_.Y.computeHeaderLogoThumbnail=function(t,E){if(t)return E?t.darkLogo:t.lightLogo};
_.Y.computeHeaderLogoHeight=function(t,E){var p,U,x;return(t=(p=this.computeHeaderLogoThumbnail(t,E))==null?void 0:(U=p.thumbnails)==null?void 0:(x=U[0])==null?void 0:x.height)&&t%31===0?"31":"24"};
_.Y.computeHeaderLogoMarginBottom=function(t,E){return this.computeHeaderLogoHeight(t,E)==="24"?"0":"-7"};
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],$4.prototype,"actionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],$4.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],$4.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Boolean)],$4.prototype,"isDarkTheme",void 0);_.N([_.e({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.P("design:type",Object)],$4.prototype,"themeLogo",void 0);
_.N([_.e({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.P("design:type",String)],$4.prototype,"logoHeight",void 0);_.N([_.e({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.P("design:type",String)],$4.prototype,"logoMarginBottom",void 0);_.N([_.Ul({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],$4);
_.G($4,"ytd-primetime-promo-header-renderer",function(){if(mg4!==void 0)return mg4;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return mg4=t},{mode:1});var beZ;_.KU=_.l(function(t){var E=t.className;var p=t.data;var U=t.isOverlay;var x=t.maxLinesOverride;var A=t.useMediumText;var m=function(){return p().alwaysShowTruncationText},b=function(){return p().truncationText},f=function(){return A!==void 0&&A()?"medium":"small"},B=function(){return U!==void 0&&U()?"overlay":"default"},R=function(){var d,I;
return(I=(d=_.k(p().rendererContext,_.PY))==null?void 0:d.label)!=null?I:""};
t=_.M(_.Py(!1,void 0,"llBUm"));var V=t.next().value,Q=t.next().value;t=_.aC(function(){p().expandOnTap&&Q(!V());return!1});
var C={};return _.H("yt-description-preview-view-model",{el:_.V9(_.EX(function(){return p().rendererContext})),
class:_.X5("ytDescriptionPreviewViewModelHost",E,(C.ytDescriptionPreviewViewModelClickable=function(){var d;return!((d=_.k(p().rendererContext,_.p$))==null||!d.onTap)},C.ytDescriptionPreviewViewModelIsOverlay=U,C)),
"on:click":t},_.H(_.w,{cond:function(){return p().description},
then:function(d){return _.H(_.w,{cond:V,then:function(){var I={};return _.H("div",{class:_.X5("ytDescriptionPreviewViewModelDescription",(I.ytDescriptionPreviewViewModelDescriptionMediumText=A,I))},_.H(_.d8,{text:d}))},
else:function(){return _.H(xa3,{text:d,alwaysShowTruncationText:m,truncationText:b,maxLines:function(){var I;return(I=x==null?void 0:x())!=null?I:p().maxLines},
textStyle:B,accessibilityLabel:R,textSize:f})}})}}))},"ld");
_.KU.idomCompat=!0;var qz4=_.l(function(t){var E=_.aC(function(x){var A;(A=t.onClick)==null||A.call(t,x)}),p={},U={};
return _.H("yt-shelf-header-layout",{class:_.X5("yt-shelf-header-layout",(p["yt-shelf-header-layout--disable-horizontal-padding"]=t.disableHorizontalPadding,p["yt-shelf-header-layout--disable-vertical-padding"]=t.disableVerticalPadding,p["yt-shelf-header-layout--responsive"]=t.useResponsiveLayout,p["yt-shelf-header-layout--narrow"]=function(){var x,A;return((x=t.useResponsiveLayout)==null?void 0:x.call(t))&&((A=t.forceSmallLayout)==null?void 0:A.call(t))},p["yt-shelf-header-layout--is-overlay"]=t.isOverlay,
p["yt-shelf-header-layout--tappable"]=t.isInteractive,p["yt-shelf-header-layout--optional-medium-layout-padding"]=t.useUpdatedPadding,p)),
"on:click":E,tabindex:function(){var x;return((x=t.isInteractive)==null?0:x.call(t))?0:void 0}},_.H("div",{class:"yt-shelf-header-layout__header-row"},_.H(_.w,{cond:t.leadingIcon,
then:function(x){return _.H("div",{class:"yt-shelf-header-layout__leading-icon"},_.H(_.lz,{icon:x}))},
else:function(){return _.H(_.w,{cond:t.hasLeadingImage,then:function(){var x,A={};return _.H("div",{class:_.X5("yt-shelf-header-layout__leading-image",(A["yt-shelf-header-layout__leading-image--circular-image"]=t.circularImage,A))},(x=t.leadingImage)==null?void 0:x.call(t))}})}}),_.H("div",{class:"yt-shelf-header-layout__label-container"},_.H(_.w,{cond:t.hasSuperlabel,
then:function(){var x;return _.H("div",{class:"yt-shelf-header-layout__superlabel"},(x=t.superlabel)==null?void 0:x.call(t))}}),_.H("div",{class:"yt-shelf-header-layout__title-row"},_.H(ief,{text:t.title,
className:_.X5("yt-shelf-header-layout__title",(U["yt-shelf-header-layout__title--small-title"]=t.forceSmallLayout,U)),tagLevel:t.tagLevel}),_.H(_.w,{cond:t.hasDetail,then:function(){var x;return _.H("div",{class:"yt-shelf-header-layout__detail"},(x=t.detail)==null?void 0:x.call(t))}})),_.H(_.w,{cond:t.hasSublabel,
then:function(){var x;return _.H("div",{class:"yt-shelf-header-layout__sublabel"},(x=t.sublabel)==null?void 0:x.call(t))}})),_.H(_.w,{cond:t.hasTrailingActions,
then:function(){var x;return _.H("div",{class:"yt-shelf-header-layout__trailing-actions"},(x=t.trailingActions)==null?void 0:x.call(t))}})),_.H(_.w,{cond:t.hasBottomAccessory,
then:function(){var x;return _.H("div",{class:"yt-shelf-header-layout__bottom-accessory"},(x=t.bottomAccessory)==null?void 0:x.call(t))}}))},"md");
qz4.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var ief=_.l(function(t){var E=t.text;var p=t.className;var U=t.tagLevel;return _.H(_.SC,null,_.H(_.Kw,{when:function(){return(U==null?void 0:U())===0}},function(){return _.H("h2",{class:p},E())}),_.H(_.Kw,{when:function(){return(U==null?void 0:U())===1}},function(){return _.H("h3",{class:p},E())}),_.H(_.Kw,{when:function(){return(U==null?void 0:U())===2}},function(){return _.H("h4",{class:p},E())}),_.H(_.vv,null,function(){return _.H("h2",{class:p},E())}))},"nd");var BBs,HeW,fiG;_.v_=_.l(function(t){var E=t.className;var p=t.data;var U=t.disableHorizontalPadding;var x=t.disableVerticalPadding;var A=t.forceSmallLayout;var m=t.useResponsiveLayout;var b=t.isOverlay;t=t.useUpdatedPadding;return _.H("yt-section-header-view-model",{class:_.X5("ytSectionHeaderViewModelHost",E),style:_.zO({"background-color":function(){return n$(p().backgroundColor)?_.cL(n$(p().backgroundColor)):void 0}})},_.H(qz4,{hasDetail:!1,
title:function(){return _.H(_.d8,{text:function(){return p().headline}})},
hasTitle:!0,sublabel:function(){return _.H(HeW,{data:p})},
hasSublabel:function(){return!!p().sublabel||!!p().bottomBadge},
superlabel:function(){return _.H(fiG,{data:p})},
hasSuperlabel:function(){return!!p().superlabel||!!p().topBadge},
leadingImage:function(){return _.H(BBs,{leadingAccessory:function(){return p().leadingAccessory}})},
hasLeadingImage:function(){return!!p().leadingAccessory},
trailingActions:function(){return _.H(_.sY,{data:function(){return p().trailingActions}},{flexibleActionsViewModel:_.wl})},
hasTrailingActions:function(){return!!p().trailingActions},
disableHorizontalPadding:function(){return(U==null?void 0:U())||p().disableHorizontalPadding},
disableVerticalPadding:x,forceSmallLayout:A,useResponsiveLayout:m,isOverlay:b,isInteractive:function(){return!!_.c9(p().rendererContext)},
onClick:function(f){if(_.te(p().rendererContext)){var B=_.c9(p().rendererContext);B&&_.Y2(B,{form:{element:f.target,event:f}})}},
bottomAccessory:function(){return _.H(_.sY,{data:function(){return p().bottomAccessory}},{descriptionPreviewViewModel:function(f){return _.H(_.KU,{data:f.data,
useMediumText:!0})},
commonMarkViewModel:function(f){f=f.data;var B;return _.H(_.Oj,null,(B=_.X3().resolve(_.OB(Ius)))==null?void 0:B({data:f}))}})},
hasBottomAccessory:function(){return!!p().bottomAccessory},
useUpdatedPadding:t}))},"od");
BBs=_.l(function(t){var E=t.leadingAccessory;return _.H(_.Oj,null,_.H(_.w,{cond:function(){var p;return(p=E().image)!=null?p:_.b7(E().themedImage)},
then:function(p){return _.H(_.Q9,{data:p,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.H(_.w,{cond:function(){return _.k(E().avatar,_.UX)},
then:function(p){return _.H(_.fk,{data:p})}}))},"pd");
HeW=_.l(function(t){var E=t.data;return _.H(_.Oj,null,_.H(_.w,{cond:function(){return _.k(E().bottomBadge,fHX)},
then:function(p){var U={};return _.H(_.XN,{data:p,class:_.X5((U.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!p()&&!!E().sublabel},U))})}}),_.H(_.w,{cond:function(){return E().sublabel},
then:function(p){return _.H(_.d8,{text:p})}}))},"qd");
fiG=_.l(function(t){var E=t.data;return _.H(_.Oj,null,_.H(_.w,{cond:function(){return _.k(E().topBadge,fHX)},
then:function(p){var U={};return _.H(_.XN,{data:p,class:_.X5((U.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!p()&&!!E().superlabel},U))})}}),_.H(_.w,{cond:function(){return E().superlabel},
then:function(p){return _.H(_.d8,{text:p})}}))},"rd");_.k2(_.v_,"yt-section-header-view-model",{props:{data:_.uu,className:_.uu,disableHorizontalPadding:_.uu,disableVerticalPadding:_.uu,forceSmallLayout:_.uu,useResponsiveLayout:_.uu,isOverlay:_.uu,useUpdatedPadding:_.uu}});_.vs("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var ym=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return t};
_.u(ym,_.z);_.Y=ym.prototype;_.Y.attached=function(){this.requestElementsPerRow()};
_.Y.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"}}}};
_.Y.onDataChange=function(){var t=this;_.XE(this,function(){t.updateItemVisibility()})};
_.Y.onUpdateElementsPerRowAction=function(t){t&&this.elementsPerRow!==t&&(this.elementsPerRow=t,this.updateItemVisibility())};
_.Y.updateItemVisibility=function(){var t=this;this.data&&this.data.panels&&_.ZN(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(E,p){E.hidden=p>t.elementsPerRow-1})};
_.Y.requestElementsPerRow=function(){_.kT(this.hostElement,"yt-request-elements-per-row")};
ym.prototype.onDataChange=ym.prototype.onDataChange;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],ym.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],ym.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],ym.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],ym.prototype,"actionHandlerBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],ym.prototype,"data",void 0);_.N([_.e({value:3}),_.P("design:type",Number)],ym.prototype,"elementsPerRow",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ym.prototype,"onDataChange",null);_.N([_.Ul({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],ym);
_.G(ym,"ytd-primetime-promo-renderer",function(){if(beZ!==void 0)return beZ;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return beZ=t},{mode:1});var war;var Sk=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return t};
_.u(Sk,_.z);Sk.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
Sk.prototype.handleButtonRefreshAction=function(t){if(t=_.k(t,Z33))this.set("data.button",t.membershipButton),this.notifyPath("data.button")};
_.aE.Object.defineProperties(Sk.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.data)==null?void 0:(E=t.avatars)==null?void 0:E.slice(0,8))||[]}}});
_.N([_.e(),_.P("design:type",Object)],Sk.prototype,"data",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Sk.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Sk.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Sk.prototype,"rendererBehavior",void 0);_.N([_.Z("data"),_.P("design:type",Array),_.P("design:paramtypes",[])],Sk.prototype,"avatars",null);
_.N([_.Ul({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],Sk);
_.G(Sk,"ytd-recognition-shelf-renderer",function(){if(war!==void 0)return war;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return war=t},{mode:1});var R$s;var VaG;var c_=function(){var t=_.z.apply(this,arguments)||this;t.modernButtons=_.r("web_modern_buttons");return t};
_.u(c_,_.z);_.Y=c_.prototype;
_.Y.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]]"}}}}}};
_.Y.dataChanged=function(){this.collapsed=!0};
_.Y.computeVisibleItems=function(t,E){return t!==void 0&&t.items?E?t.items.slice(0,this.data.collapsedItemCount):t.items:[]};
_.Y.computeHideShowMore=function(t,E,p){return t>=E||!p};
_.Y.computeHideShowAll=function(t,E,p){return!(t&&E)||p};
_.Y.onMoreClick=function(){this.collapsed=!1};
_.aE.Object.defineProperties(c_.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.r("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.la("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.r("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
c_.prototype.dataChanged=c_.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],c_.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],c_.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],c_.prototype,"data",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],c_.prototype,"isSearch",void 0);
_.N([_.e({computed:"computeVisibleItems(data,collapsed)"}),_.P("design:type",Array)],c_.prototype,"visibleItems",void 0);_.N([_.e({value:!0}),_.P("design:type",Boolean)],c_.prototype,"collapsed",void 0);_.N([_.e({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.P("design:type",Boolean)],c_.prototype,"hideShowMore",void 0);
_.N([_.e({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.P("design:type",Boolean)],c_.prototype,"hideShowAll",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],c_.prototype,"modernButtons",void 0);_.N([_.Z("isSearch"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],c_.prototype,"typographyBump",null);
_.N([_.Z("isSearch"),_.P("design:type",Object),_.P("design:paramtypes",[])],c_.prototype,"lockupExperiments",null);_.N([_.Z("isSearch"),_.P("design:type",String),_.P("design:paramtypes",[])],c_.prototype,"thumbnailWidth",null);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],c_.prototype,"dataChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],c_);
_.G(c_,"ytd-vertical-list-renderer",function(){if(VaG!==void 0)return VaG;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return VaG=t},{mode:1});var QMW=_.CG(["#"]);_.vs("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var t7=function(){var t=_.z.apply(this,arguments)||this;t.isConstrainedList=!1;return t};
_.u(t7,_.z);_.Y=t7.prototype;
_.Y.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"}}}};
_.Y.computeThumbnailStyle=function(t){return t||""};
_.Y.computePlaceAnnotationUnderTitle=function(){var t;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((t=this.data)==null?void 0:t.thumbnailStyle)||"")};
_.Y.computeHrefWithDefault=function(t){return this.ytComponentBehavior.computeHref_(t)||_.kcO(QMW)};
_.Y.computeIsPromoShelf=function(t){var E;return(t=t==null?void 0:(E=t[0])==null?void 0:E.metadataBadgeRenderer)?t.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.Y.computePlaceBadgeBesideTitle=function(t){var E;return(t==null?0:(E=t[0])==null?0:E.metadataBadgeRenderer)?!this.computeIsPromoShelf(t):!1};
_.Y.computeMenuIcon=function(t){return this.computeIsPromoShelf(t)?"yt-icons:more_vert":"yt-icons:more"};
_.Y.onDataChange=function(){var t,E;((t=this.data)==null?0:(E=t.content)==null?0:E.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.Y.onLockupRequested=function(t){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&t.detail&&t.detail.videoIds){for(var E=this.data.content.gridRenderer.items,p=new Set,U=_.M(t.detail.videoIds),x=U.next();!x.done;x=U.next())p.add(x.value);t.detail.returnValue=E.filter(function(A){return A.gridVideoRenderer&&A.gridVideoRenderer.videoId&&p.has(A.gridVideoRenderer.videoId)}).map(function(A){return A.gridVideoRenderer})}};
_.Y.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
t7.prototype.onLockupRequested=t7.prototype.onLockupRequested;t7.prototype.onDataChange=t7.prototype.onDataChange;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],t7.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],t7.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],t7.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],t7.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.Ev),_.P("design:type",Object)],t7.prototype,"ironResizableBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],t7.prototype,"data",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],t7.prototype,"isSearch",void 0);_.N([_.e(),_.P("design:type",Object)],t7.prototype,"isConstrainedList",void 0);_.N([_.e({reflectToAttribute:!0,value:function(){return _.r("kevlar_fluid_dismiss")}}),
_.P("design:type",Boolean)],t7.prototype,"enableFluidDismiss",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.P("design:type",String)],t7.prototype,"thumbnailStyle",void 0);_.N([_.e({computed:"computeMenuIcon(data.badges)"}),_.P("design:type",String)],t7.prototype,"menuIcon",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.P("design:type",Boolean)],t7.prototype,"featuredPromo",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],t7.prototype,"onDataChange",null);_.N([_.lc("yt-lockup-requested"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],t7.prototype,"onLockupRequested",null);_.N([_.Ul({is:"ytd-shelf-renderer",disableElementRegistration:!0})],t7);
_.G(t7,"ytd-shelf-renderer",function(){if(R$s!==void 0)return R$s;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return R$s=t},{mode:1});var C1p;var EZ=function(){return _.z.apply(this,arguments)||this};
_.u(EZ,_.z);EZ.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.aE.Object.defineProperties(EZ.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],EZ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],EZ.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],EZ.prototype,"data",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],EZ.prototype,"isPlaylist",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],EZ.prototype,"isClipList",void 0);
_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],EZ.prototype,"isPlaylistPageWithFilters",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],EZ.prototype,"hasTitle",null);_.N([_.e(),_.Z("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.P("design:type",Object),_.P("design:paramtypes",[])],EZ.prototype,"isRightAligned",null);
_.N([_.Ul({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],EZ);
_.G(EZ,"ytd-sort-filter-header-renderer",function(){if(C1p!==void 0)return C1p;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return C1p=t},{mode:1});var jM4;var pv=function(){var t=_.z.apply(this,arguments)||this;t.enableRightArrowHidden=_.r("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return t};
_.u(pv,_.z);pv.prototype.attached=function(){var t=this;this.enableRightArrowHidden&&(this.JSC$16828_throttledOnResize=new _.F5(function(){var E;(E=t.ytdHorizontalListBehavior)==null||E.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var E;
(E=t.JSC$16828_throttledOnResize)==null||E.fire()}),this.resizeObserver.observe(this.hostElement))};
pv.prototype.detached=function(){if(this.enableRightArrowHidden){var t;(t=this.resizeObserver)==null||t.disconnect();var E;(E=this.JSC$16828_throttledOnResize)==null||E.dispose()}};
pv.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]]"}}}}}};
pv.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.aE.Object.defineProperties(pv.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.r("enable_creator_details_shelf_m2")){var t=[],E;((E=this.data)==null?0:E.creatorVideosButton)&&t.push(this.data.creatorVideosButton);var p;((p=this.data)==null?0:p.creatorAboutButton)&&t.push(this.data.creatorAboutButton);E=_.M(this.data.creatorCustomUrlButtons||[]);for(p=E.next();!p.done;p=E.next())t.push(p.value);return t}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.r("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],pv.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],pv.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.zp.YtdHorizontalListBehavior),_.P("design:type",Object)],pv.prototype,"ytdHorizontalListBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],pv.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],pv.prototype,"engagementPanel",void 0);
_.N([_.e(),_.P("design:type",Object)],pv.prototype,"enableRightArrowHidden",void 0);_.N([_.Z("enableRightArrowHidden","atEnd"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],pv.prototype,"hideRightArrow",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],pv.prototype,"creatorCustomUrlButtons",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("data","creatorCustomUrlButtons"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],pv.prototype,"showCreatorCustomUrlButtons",null);_.N([_.Z("showCreatorCustomUrlButtons"),_.P("design:type",Number),_.P("design:paramtypes",[])],pv.prototype,"channelAvatarSize",null);_.N([_.Ul({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],pv);
_.G(pv,"ytd-video-description-infocards-section-renderer",function(){if(jM4!==void 0)return jM4;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return jM4=t},{mode:_.hX("kevlar_poly_si_batch_j067")?1:2});var rKZ;var UZ=function(){return _.z.apply(this,arguments)||this};
_.u(UZ,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],UZ.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],UZ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],UZ.prototype,"data",void 0);_.N([_.e({computed:"computeIcon_(data.infoIcon)"}),_.P("design:type",Object)],UZ.prototype,"infoIcon",void 0);_.N([_.Ul({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],UZ);
_.G(UZ,"ytd-eom-settings-disclaimer-renderer",function(){if(rKZ!==void 0)return rKZ;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return rKZ=t},{mode:1});var krp;var xq=function(){return _.z.apply(this,arguments)||this};
_.u(xq,_.z);_.aE.Object.defineProperties(xq.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.suppressPaddingDisclaimer)}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],xq.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],xq.prototype,"componentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],xq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],xq.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],xq.prototype,"suppressPaddingDisclaimer",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],xq);
_.G(xq,"ytd-product-list-header-renderer",function(){if(krp!==void 0)return krp;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return krp=t},{mode:1});var dgr;var A7=function(){return _.z.apply(this,arguments)||this};
_.u(A7,_.z);A7.prototype.computeThumbnailStyle=function(t){if(t&&(t=_.SL(t)))return"background-color:"+t+";"};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],A7.prototype,"rendererBehaviors",void 0);_.N([_.e(),_.P("design:type",Object)],A7.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],A7);
_.G(A7,"ytd-hashtag-tile-renderer",function(){if(dgr!==void 0)return dgr;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return dgr=t},{mode:1});var uuX;var Yq=function(){return _.z.apply(this,arguments)||this};
_.u(Yq,_.z);Yq.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}}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Yq.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Yq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Yq.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],Yq);
_.G(Yq,"ytd-sponsorships-alert-renderer",function(){if(uuX!==void 0)return uuX;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return uuX=t},{mode:1});var JK0;var M3=function(){return _.z.apply(this,arguments)||this};
_.u(M3,_.z);M3.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.aE.Object.defineProperties(M3.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.N([_.g(_.Rl),_.P("design:type",Object)],M3.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.g(_.dy),_.P("design:type",Object)],M3.prototype,"ytdLockupBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],M3.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],M3.prototype,"ytRendererBehavior",void 0);_.N([_.e({selector:_.pd}),_.P("design:type",Object)],M3.prototype,"isGridViewEnabled",void 0);
_.N([_.Z("isGridViewEnabled"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],M3.prototype,"watchFeedBigThumbs",null);_.N([_.Z("isGridViewEnabled"),_.e({reflectToAttribute:!0}),_.P("design:type",String),_.P("design:paramtypes",[])],M3.prototype,"thumbnailWidth",null);_.N([_.e(),_.P("design:type",Object)],M3.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],M3);
_.G(M3,"ytd-compact-movie-renderer",function(){if(JK0!==void 0)return JK0;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return JK0=t},{mode:1});var IiX;var go4;var Zer=_.qO("HTML_DIR")==="rtl",mR=function(){var t=_.z.apply(this,arguments)||this;t.engagementPanel=!1;t.maxLines=2;t.expandButtonOffset=0;t.showExpandButton=!1;t.isTruncated=!1;t.isExpanded=!1;t.currentSnippetType=2;t.alwaysShowExpandButton=!1;t.JSC$16845_lastWidth=NaN;t.observer=null;t.left=0;t.right=0;t.mid=0;t.longestSnippetLength=0;t.isFinalSnippet=!1;t.isFirstMutation=!1;t.isResetMutation=!1;t.OVERFLOW_THRESHOLD=5;return t};
_.u(mR,_.z);_.Y=mR.prototype;_.Y.onClick=function(t){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.Qb(_.Vx(t)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var E;if((E=window.getSelection())==null||!E.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.Y.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.Y.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.Y.updateTextOnSnippetTypeChange=function(){_.r("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.Y.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.Y.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.qW(new _.cC("AttributedSnippet is empty when the description is not empty",this.text))};
_.Y.mutationCallback=function(){if(this.observer!=null){var t=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var E=Math.floor(t*this.maxLines/8);this.setSnippetText(this.text,E);E!==0||this.attributedTextIsEmpty()||_.qW(new _.cC("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;t=t*this.maxLines/8;this.left=0;var p;this.right=Math.min(t*2,(p=(E=this.simpleText)==null?void 0:E.length)!=null?p: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)}}};
_.Y.mutationObserve=function(t){var E=this;this.observer||(this.observer=new MutationObserver(function(){E.mutationCallback()}));
this.observer.observe(t,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.Y.attached=function(){var t=this;_.XE(this,function(){t.resize()})};
_.Y.isExpandedChanged=function(){_.kT(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.Y.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)};
_.Y.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var t="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((Zer?"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",t);this.snippetContainer.style.setProperty("mask-image",
t)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(Zer?"right":"left",this.expandButtonOffset+"px")};
_.Y.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.Y.setSnippetText=function(t,E){t||(t={});if(_.Bs(t)){var p=fy(t,E);p.attachmentRuns||p.commandRuns||p.decorationRuns||p.styleRuns||p.alignment||p.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:fy(t,E),headerRuns:ZK8(E,this.headerRuns)},this.currentSnippetType=0):_.qW(new _.cC("Tried to set snippet text when HTML element was null",t)):(this.plainSnippetText.textContent=qA(t.content||"",E),this.currentSnippetType=2)}else{a:{p=KKO(t,E);if(p.runs){p=_.M(p.runs);for(var U=
p.next();!U.done;U=p.next())if(U=U.value,U.bold||U.deemphasize||U.italics||U.strikethrough||U.textColor||U.navigationEndpoint||_.k(U,py)){p=!0;break a}}p=!1}p?this.formattedSnippetText?(this.formattedSnippetText.text=KKO(t,E),this.currentSnippetType=1):_.qW(new _.cC("Tried to set snippet text when HTML element was null",t)):(this.plainSnippetText.textContent=qA(_.R4(t),E),this.currentSnippetType=2)}};
_.Y.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.Y.attributedTextIsEmpty=function(){var t=this.text;if(!_.Bs(t))return!0;var E;return((E=t.content)==null?void 0:E.length)===0?!0:!1};
_.Y.resize=function(t){if(this.snippetText){if(t===void 0?0:t)this.JSC$16845_lastWidth=NaN;var E=this.hostElement.offsetWidth;if(E!==this.JSC$16845_lastWidth&&!this.isExpanded)if(this.JSC$16845_lastWidth=E,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;t=0;var p,U;E=Math.min(E*this.maxLines/8*2,(U=(p=this.simpleText)==null?void 0:p.length)!=null?U:0)-1;for(p=0;t<=E;)U=Math.floor(t+(E-t)/2),this.setSnippetText(this.text,U),this.isOverflowing()?E=U-1:(t=U+1,p=U);this.setSnippetText(this.text,p);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.Y.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.Y.onExpandClick=function(){var t=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.r("inline_expander_reset_focus_killswitch")||_.XE(this,function(){var E;((E=_.X3().resolve(_.OB(_.FA)))==null?0:E.isKeyBoardInUse())&&_.Jw(t.hostElement)});
_.kT(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.Y.onCollapseClick=function(){this.collapse();_.kT(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.Y.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.Y.computeExpandButtonOffset=function(){var t=this.expandSizer;return t?Zer?t.offsetParent?t.offsetParent.offsetWidth-t.offsetWidth-t.offsetLeft:0:t.offsetLeft:0};
_.aE.Object.defineProperties(mR.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.Bs(this.text)?this.text.content||"":_.R4(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 _.Bs(this.text)?!0:this.text&&_.r("web_replace_formatted_with_attributed_string")&&EVt(this.text)?(this.text=_.En(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}}});
mR.prototype.onTextChanged=mR.prototype.onTextChanged;mR.prototype.updateMaskAndExpandButtonOffset=mR.prototype.updateMaskAndExpandButtonOffset;mR.prototype.updateSnippetContainerMaxHeight=mR.prototype.updateSnippetContainerMaxHeight;mR.prototype.isExpandedChanged=mR.prototype.isExpandedChanged;mR.prototype.updateTextOnSnippetTypeChange=mR.prototype.updateTextOnSnippetTypeChange;mR.prototype.updateIsFormattedExpanded=mR.prototype.updateIsFormattedExpanded;mR.prototype.updateIsAttributedExpanded=mR.prototype.updateIsAttributedExpanded;
mR.prototype.onClick=mR.prototype.onClick;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],mR.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],mR.prototype,"text",void 0);_.N([_.e(),_.P("design:type",Array)],mR.prototype,"headerRuns",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],mR.prototype,"engagementPanel",void 0);_.N([_.e(),_.P("design:type",Object)],mR.prototype,"maxLines",void 0);
_.N([_.e(),_.P("design:type",String)],mR.prototype,"expandLabel",void 0);_.N([_.e(),_.P("design:type",String)],mR.prototype,"collapseLabel",void 0);_.N([_.e(),_.P("design:type",Object)],mR.prototype,"expandCommand",void 0);_.N([_.e(),_.P("design:type",Object)],mR.prototype,"expandButtonOffset",void 0);_.N([_.Z("text"),_.P("design:type",String),_.P("design:paramtypes",[])],mR.prototype,"simpleText",null);
_.N([_.lc("click"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],mR.prototype,"onClick",null);_.N([_.Z("text","isExpanded"),_.P("design:type",Object),_.P("design:paramtypes",[])],mR.prototype,"expandedText",null);_.N([_.Z("headerRuns","isExpanded"),_.P("design:type",Object),_.P("design:paramtypes",[])],mR.prototype,"expandedHeaderRuns",null);
_.N([_.Z("text"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],mR.prototype,"hasAttributedStringText",null);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],mR.prototype,"showExpandButton",void 0);_.N([_.Z("collapseLabel","isExpanded"),_.P("design:type",Object),_.P("design:paramtypes",[])],mR.prototype,"showCollapseButton",null);_.N([_.e(),_.P("design:type",Object)],mR.prototype,"isTruncated",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],mR.prototype,"isExpanded",void 0);_.N([_.e(),_.P("design:type",Boolean)],mR.prototype,"isAttributedExpanded",void 0);_.N([_.GI("isExpanded","hasAttributedStringText"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mR.prototype,"updateIsAttributedExpanded",null);_.N([_.e(),_.P("design:type",Boolean)],mR.prototype,"isFormattedExpanded",void 0);
_.N([_.GI("isExpanded","hasAttributedStringText"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mR.prototype,"updateIsFormattedExpanded",null);_.N([_.e(),_.P("design:type",Number)],mR.prototype,"currentSnippetType",void 0);_.N([_.Z("currentSnippetType"),_.P("design:type",Object),_.P("design:paramtypes",[])],mR.prototype,"useAttributedSnippet",null);
_.N([_.Z("currentSnippetType"),_.P("design:type",Object),_.P("design:paramtypes",[])],mR.prototype,"useFormattedSnippet",null);_.N([_.Z("currentSnippetType"),_.P("design:type",Object),_.P("design:paramtypes",[])],mR.prototype,"usePlainSnippet",null);_.N([_.e(),_.P("design:type",Object)],mR.prototype,"alwaysShowExpandButton",void 0);_.N([_.GI("currentSnippetType"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mR.prototype,"updateTextOnSnippetTypeChange",null);
_.N([_.e(),_.P("design:type",Object)],mR.prototype,"attributedSnippetText",void 0);_.N([_.Nl("#snippet"),_.P("design:type",HTMLElement)],mR.prototype,"snippetContainer",void 0);_.N([_.Nl("#snippet-text"),_.P("design:type",HTMLElement)],mR.prototype,"snippetText",void 0);_.N([_.Nl("#plain-snippet-text"),_.P("design:type",HTMLElement)],mR.prototype,"plainSnippetText",void 0);_.N([_.Nl("#formatted-snippet-text"),_.P("design:type",Object)],mR.prototype,"formattedSnippetText",void 0);
_.N([_.Nl("#attributed-snippet-text"),_.P("design:type",Object)],mR.prototype,"attributedSnippetTextEl",void 0);_.N([_.Nl("#expand"),_.P("design:type",HTMLElement)],mR.prototype,"expandButton",void 0);_.N([_.Nl("#expand-sizer"),_.P("design:type",HTMLElement)],mR.prototype,"expandSizer",void 0);_.N([_.P3("isExpanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mR.prototype,"isExpandedChanged",null);
_.N([_.GI("isExpanded","maxLines"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mR.prototype,"updateSnippetContainerMaxHeight",null);_.N([_.GI("isTruncated","showExpandButton","expandButtonOffset"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mR.prototype,"updateMaskAndExpandButtonOffset",null);
_.N([_.P3("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mR.prototype,"onTextChanged",null);_.N([_.Ul({is:"ytd-text-inline-expander",disableElementRegistration:!0})],mR);
_.G(mR,"ytd-text-inline-expander",function(){if(go4===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);go4=t}t=go4;return t},{mode:2});var b2=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return t};
_.u(b2,_.z);b2.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
b2.prototype.handleUpdateDescriptionAction=function(t){if(t=_.k(t,_.DTm))if(t.attributedDescription)this.set("data.attributedDescriptionBodyText",t.attributedDescription);else if(t.description){var E;((E=this.data)==null?0:E.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.En(t.description)):this.set("data.descriptionBodyText",t.description)}};
_.aE.Object.defineProperties(b2.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var t,E;return!((t=this.data)==null||!t.attributedDescriptionBodyText)||!((E=this.data)==null||!E.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null?0:t.collapsedLineCount){var E;return(E=this.data)==null?void 0:E.collapsedLineCount}t=_.z3("web_watch_description_collapsed_default_lines",12);if(_.r("ww_desc_line_page_size_ks"))return t;E=Math.round(_.NJ().height*_.z3("web_watch_description_screen_height_percentage",.5)/20);return Math.max(E,t)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return(p=(t=this.data)==null?void 0:t.descriptionBodyText)!=null?p:(E=this.data)==null?void 0:E.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.sourceAttributions}}});
b2.prototype.panelContentVisibleChanged=b2.prototype.panelContentVisibleChanged;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],b2.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],b2.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],b2.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],b2.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",Boolean)],b2.prototype,"panelContentVisible",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],b2.prototype,"engagementPanel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],b2.prototype,"shortsPanel",void 0);_.N([_.Nl("#inline-expander"),_.P("design:type",Object)],b2.prototype,"inlineExpander",void 0);
_.N([_.GI("panelContentVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],b2.prototype,"panelContentVisibleChanged",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],b2.prototype,"hasDescriptionText",null);_.N([_.Z("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],b2.prototype,"collapsedLines",null);
_.N([_.Z("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.P("design:type",Object),_.P("design:paramtypes",[])],b2.prototype,"descriptionText",null);_.N([_.Z("data","data.headerRuns"),_.P("design:type",Object),_.P("design:paramtypes",[])],b2.prototype,"headerRuns",null);_.N([_.Z("data","data.sourceAttributions"),_.P("design:type",Object),_.P("design:paramtypes",[])],b2.prototype,"sourceAttributions",null);
_.N([_.Ul({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],b2);
_.G(b2,"ytd-expandable-video-description-body-renderer",function(){if(IiX!==void 0)return IiX;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return IiX=t},{mode:_.hX("kevlar_poly_si_batch_j028")?1:2});var Oef;var Xar=_.l(function(t){var E=t.data;return _.H("factoid-renderer",{class:"ytwFactoidRendererHost"},_.H("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return E().accessibilityText}},_.H("span",{class:"ytwFactoidRendererValue"},_.H(_.d8,{text:function(){return E().value}})),_.H("span",{class:"ytwFactoidRendererLabel"},_.H(_.d8,{text:function(){return E().label}}))))},"sd");_.k2(Xar,"factoid-renderer",{props:{data:_.uu}});_.k2(_.l(function(t){var E=t.data;return _.H("upload-time-factoid-renderer",null,_.H(_.sY,{data:function(){return E().factoid}},{factoidRenderer:Xar}))},"td"),"upload-time-factoid-renderer",{props:{data:_.Cy}});_.k2(_.l(function(t){var E=t.data;return _.H("view-count-factoid-renderer",null,_.H(_.sY,{data:function(){return E().factoid}},{factoidRenderer:Xar}))},"ud"),"view-count-factoid-renderer",{props:{data:_.Cy}});var i2=function(){var t=_.z.apply(this,arguments)||this;t.shortsPanel=!1;t.engagementPanel=!1;t.watchWhileSdp=_.r("shorts_desktop_watch_while_sdp");return t};
_.u(i2,_.z);i2.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"}}}}};
_.aE.Object.defineProperties(i2.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var t;return(t=this.data)==null?void 0:t.channel}}});
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],i2.prototype,"componentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],i2.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],i2.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],i2.prototype,"shortsPanel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],i2.prototype,"engagementPanel",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],i2.prototype,"watchWhileSdp",void 0);_.N([_.Z("shortsPanel","engagementPanel","data.channel"),_.P("design:type",Object),_.P("design:paramtypes",[])],i2.prototype,"showChannelInfo",null);_.N([_.Ul({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],i2);
_.G(i2,"ytd-video-description-header-renderer",function(){if(Oef!==void 0)return Oef;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Oef=t},{mode:1});var h$r;var q3=function(){return _.z.apply(this,arguments)||this};
_.u(q3,_.z);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],q3.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],q3.prototype,"ytRendererBehavior",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],q3.prototype,"noPadding",void 0);_.N([_.e(),_.P("design:type",Object)],q3.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],q3);
_.G(q3,"ytd-list-item-view-model",function(){if(h$r!==void 0)return h$r;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return h$r=t},{mode:1});var aio;var e$G;var FGG;var z$r;var Hr=function(){var t=_.z.apply(this,arguments)||this;t.adaptiveFullWidth=!1;t.modernButtons=_.r("web_modern_buttons");t.buttonOverrides={style:"call-to-action",type:"filled"};t.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return t};
_.u(Hr,_.z);Hr.prototype.handleSetTimestamp_=function(t){this.data&&this.data.shortUrl&&(_.ZN(this.hostElement).querySelector("#share-url").value=t.isSet?_.jI(this.data.shortUrl,"t",t.timestamp):this.data.shortUrl)};
Hr.prototype.handleSignalActionCopyShareUrl_=function(t,E){(_.r("killswitch_copy_link_target_check")||_.ZN(this.hostElement).querySelector("#copy-button")===E)&&this.copyUrlToClipboard()};
Hr.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.ZN(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
Hr.prototype.computeStyle_=function(t){return t?t.toLowerCase().replace(/_/g,"-"):""};
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Hr.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Hr.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Hr.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.P("design:type",String)],Hr.prototype,"rendererStyle",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Hr.prototype,"adaptiveFullWidth",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Hr.prototype,"modernButtons",void 0);_.N([_.e(),_.P("design:type",Object)],Hr.prototype,"buttonOverrides",void 0);_.N([_.p4({is:"yt-copy-link-renderer",disableElementRegistration:!0})],Hr);
_.G(Hr,"yt-copy-link-renderer",function(){if(z$r===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;FGG===void 0&&(FGG=document.createElement("template"));var U=FGG;p.call(E,U.content.cloneNode(!0),t.content.firstChild);z$r=t}t=z$r;return t},{mode:2});_.vs("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var fv=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return t};
_.u(fv,_.z);_.Y=fv.prototype;_.Y.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.Y.attached=function(){this.keyboardFocused=!1};
_.Y.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var t=_.X3().resolve(_.OB(_.FA));t&&(this.keyboardFocused=t.isKeyBoardInUse())}};
_.Y.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.Y.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}};
_.Y.onChange_=function(){if(this.data){var t=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;t&&this.ytComponentBehavior.resolveCommand(t);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.Y.handleUpdateToggleAction_=function(t){(t=_.k(t,UUX))&&this.data&&t.targetId==this.data.targetId&&this.set("data.toggled",t.toggled)};
_.Y.toBoolean_=function(t){return!!t};
_.Y.reset=function(){};
_.Y.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IU("data-changed",this.data))};
_.Y.updateDataToggledFromBinding=function(t){this.set("data.toggled",t.detail.value)};
fv.prototype.dataChangedForBinding=fv.prototype.dataChangedForBinding;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],fv.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],fv.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],fv.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],fv.prototype,"ytRendererBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],fv.prototype,"data",void 0);_.N([_.e({computed:"computeDescription_(data.*)"}),_.P("design:type",Object)],fv.prototype,"description_",void 0);_.N([_.e({value:function(){return!!_.X3().resolve(_.OB(_.FA))&&_.r("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.P("design:type",Boolean)],fv.prototype,"useKeyboardFocused",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],fv.prototype,"keyboardFocused",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fv.prototype,"dataChangedForBinding",null);_.N([_.p4({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],fv);
_.G(fv,"yt-toggle-form-field-renderer",function(){if(e$G===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;aio===void 0&&(aio=document.createElement("template"));var U=aio;p.call(E,U.content.cloneNode(!0),t.content.firstChild);e$G=t}t=e$G;return t},{mode:2});var lip;var GrT;var Br=function(){var t=_.z.apply(this,arguments)||this;t.isDarkTheme=!1;t.isSearch=!1;t.noTopMargin=_.r("kevlar_watch_no_top_margin");t.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 t};
_.u(Br,_.z);_.Y=Br.prototype;_.Y.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}}}}}};
_.Y.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.Y.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.Y.dataChanged=function(){var t=this.getSelectedIndex();if(t>0)this.selected=t;else{this.selected=0;var E,p;(E=this.ytScrollableChipCloudBehavior)==null||(p=E.reset)==null||p.call(E)}};
_.Y.getSelectedIndex=function(){var t;if((t=this.data)==null||!t.chips)return-1;t=-1;for(var E,p=0;p<((E=this.data)==null?void 0:E.chips.length);p++){var U=void 0,x=void 0;if((U=this.data)==null?0:(x=U.chips[p].chipCloudChipRenderer)==null?0:x.isSelected){t=p;break}}return t};
_.Y.onResize=function(){var t=this.ytScrollableChipCloudBehavior;_.XE(t,t.setContainerWidthDiff);t=this.ytScrollableChipCloudBehavior;_.XE(t,t.setButtonsState)};
_.Y.onDarkModeToggledAction=function(t){this.isDarkTheme=t};
_.Y.handleRelatedChipCommand=function(t,E){t=this.JSC$16872_chipsSelector.indexOf(E);t!==-1&&this.JSC$16872_chipsSelector.selectIndex(t)};
_.Y.handleChipCloudChipSelectAction=function(t){t=this.JSC$16872_chipsSelector.indexOf(t);t>-1&&this.JSC$16872_chipsSelector.selectIndex(t)};
_.Y.handleChipCloudChipDeselectAction=function(){var t=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16872_chipsSelector&&((t==null?0:t.continuationCommand)?_.JZ(this.hostElement,[t]):(t==null?0:t.searchEndpoint)?this.ytComponentBehavior.resolveCommand(t):t&&_.IK(this.hostElement,[t],this.hostElement),this.JSC$16872_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.Y.updateSelectedFromBinding=function(t){this.selected=t.detail.value};
Br.prototype.onResize=Br.prototype.onResize;Br.prototype.dataChanged=Br.prototype.dataChanged;Br.prototype.isSearchChanged=Br.prototype.isSearchChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Br.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Br.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Br.prototype,"actionHandlerBehavior",void 0);
_.N([_.g(_.Ev),_.P("design:type",Object)],Br.prototype,"ironResizableBehavior",void 0);_.N([_.g(),_.P("design:type",$N)],Br.prototype,"ytScrollableChipCloudBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Br.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Br.prototype,"data",void 0);_.N([_.e({value:0}),_.P("design:type",Number)],Br.prototype,"selected",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Br.prototype,"isDarkTheme",void 0);_.N([_.e({value:160}),_.P("design:type",Number)],Br.prototype,"scrollDistance",void 0);_.N([_.e(),_.P("design:type",Object)],Br.prototype,"isSearch",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Br.prototype,"noTopMargin",void 0);_.N([_.Nl("#chips"),_.P("design:type",Object)],Br.prototype,"JSC$16872_chipsSelector",void 0);
_.N([_.GI("isSearch"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Br.prototype,"isSearchChanged",null);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Br.prototype,"dataChanged",null);_.N([_.lc("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Br.prototype,"onResize",null);_.N([_.p4({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],Br);
_.G(Br,"yt-chip-cloud-renderer",function(){if(GrT===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;lip===void 0&&(lip=document.createElement("template"));var U=lip;p.call(E,U.content.cloneNode(!0),t.content.firstChild);GrT=t}t=GrT;return t},{mode:2});var noZ,NB4=function(){return noZ!==void 0?noZ:noZ=document.createElement("template")};
document.head.appendChild(NB4().content);var Dgs;var sMm=document.head,LGT=sMm.appendChild,P1G;if(Dgs===void 0){var TBG=document.createElement("template");_.J(TBG,"");TBG.content.insertBefore(NB4().content.cloneNode(!0),TBG.content.firstChild);Dgs=TBG}P1G=Dgs;LGT.call(sMm,P1G.content);var ooG=_.l(function(t){var E=t.data;return _.H("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.H("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.H("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.H(_.w,{cond:function(){return _.b7(E().image)},
then:function(p){return _.H("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.H(_.Q9,{data:p,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.H("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.H(_.d8,{text:function(){return E().title}})),_.H("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.H(_.d8,{text:function(){return E().subtitle}})))),_.H(_.w,{cond:function(){var p;
return(p=E())==null?void 0:p.hasBottomDivider},
then:function(){return _.H("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"vd");var WG3=_.l(function(t){var E=t.data;return _.H("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.H("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.H(_.sY,{data:function(){var p;return(p=E().offerPlanDetailsItem)!=null?p:[]}},{offerPlanDetailsItemViewModel:function(p){return _.H("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.H(ooG,{data:p.data}))}})),_.H("div",null,_.H(_.w,{cond:function(){return E().hasBottomDivider},
then:function(){return _.H("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.H("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.H("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.H("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.H("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"wd");var $gs=_.l(function(t){var E=t.data;t=_.M(_.Py(!1,void 0,"MrXxy"));var p=t.next().value,U=t.next().value,x=_.aC(function(){U(!p());return!1}),A=function(){var m;
return(m=E().offerPlanDetailsContainer)!=null?m:[]};
return _.H("lp-complex-offer-card-details-view-model",null,_.H("div",null,_.H(_.w,{cond:function(){return p()},
then:function(){return _.H("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.H("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":x,"aria-expanded":p},_.H(_.d8,{text:function(){return E().expandedTitle}})),_.H("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.H(_.sY,{data:A},{offerPlanDetailsContainerViewModel:function(m){return _.H("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.H(WG3,{data:m.data}))}})),_.H("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.H(_.d8,{text:function(){return E().legalText}})))},
else:function(){return _.H("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":x,"aria-expanded":p},_.H(_.d8,{text:function(){return E().collapsedTitle}}),_.H("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.H(_.lz,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"xd");var KGs=_.l(function(t){var E=t.data;return _.H("lp-complex-offer-card-option-view-model",null,_.H("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.H(_.w,{cond:function(){return E().topDividerText},
then:function(){return _.H("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.H("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.H("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.H("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.H(_.d8,{text:function(){return E().topDividerText}}))))}}),_.H(_.w,{cond:function(){return E().description},
then:function(){return _.H("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.H(_.d8,{text:function(){return E().description}}))}}),_.H(_.w,{cond:function(){return E().planPricingPrimary},
then:function(){return _.H("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.H(_.d8,{text:function(){return E().planPricingPrimary}}))}}),_.H(_.w,{cond:function(){return E().planPricingSecondary},
then:function(){return _.H("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.H(_.d8,{text:function(){return E().planPricingSecondary}}))}}),_.H(_.w,{cond:function(){return E().primaryButton},
then:function(){return _.H("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.H(_.sY,{data:function(){return E().primaryButton}},{buttonViewModel:function(p){return _.H(_.D5,{data:p.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"yd");var vo0=_.l(function(t){var E=t.data;var p=function(){var A;return((A=E())==null?void 0:A.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
t={};var U={},x={};return _.H("ytm-lp-complex-offer-card-view-model",null,_.H("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.H("div",{class:_.X5((t.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=p,t),"ytmLpComplexOfferCardViewModelCardContainer")},_.H(_.w,{cond:function(){var A;return(A=E())==null?void 0:A.bannerText},
then:function(){return _.H("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.H("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.H(_.d8,{text:function(){return E().bannerText}})))}}),_.H(_.w,{cond:function(){return _.b7(E().logo)},
then:function(A){var m={};return _.H("div",{class:_.X5((m.ytmLpComplexOfferCardViewModelLogoAlignLeft=p,m),"ytmLpComplexOfferCardViewModelLogo")},_.H(_.Q9,{data:A,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.H("div",{class:_.X5((U.ytmLpComplexOfferCardViewModelTitleAlignLeft=p,U),"ytmLpComplexOfferCardViewModelTitle")},_.H(_.d8,{text:function(){return E().title}})),_.H(_.w,{cond:function(){var A;
return(A=E())==null?void 0:A.subtitle},
then:function(){var A={};return _.H("div",{class:_.X5((A.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=p,A),"ytmLpComplexOfferCardViewModelSubtitle")},_.H(_.d8,{text:function(){return E().subtitle}}))}}),_.H(_.w,{cond:function(){return E().planPricingPrimary},
then:function(){return _.H("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.H(_.d8,{text:function(){return E().planPricingPrimary}}))}}),_.H(_.w,{cond:function(){return E().planPricingSecondary},
then:function(){return _.H("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.H(_.d8,{text:function(){return E().planPricingSecondary}}))}}),_.H(_.w,{cond:function(){return E().purchaseButton},
then:function(){return _.H("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.H(_.sY,{data:function(){return E().purchaseButton}},{buttonViewModel:function(A){return _.H(_.D5,{data:A.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.H(_.w,{cond:function(){var A;
return(A=E())==null?void 0:A.offerOptions},
then:function(){return _.H("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.H(_.sY,{data:function(){return E().offerOptions}},{lpComplexOfferCardOptionViewModel:KGs}))}}),_.H("div",{class:_.X5((x.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=p,x),"ytmLpComplexOfferCardViewModelLegalText")},_.H(_.d8,{text:function(){return E().legalText}})),_.H(_.w,{cond:function(){var A;
return(A=E())==null?void 0:A.offerCardDetails},
then:function(){return _.H("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.H(_.sY,{data:function(){return E().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:$gs}))}}))))},"zd");var yKs=_.l(function(t){var E=t.data;var p=function(){var m;return((m=E())==null?void 0:m.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
t={};var U={},x={},A={};return _.H("ytm-lp-complex-offer-card-section-view-model",null,_.H("div",{class:_.X5("ytmLpComplexOfferCardSectionViewModelHost")},_.H("div",{class:_.X5((t.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=p,t),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.H("div",{class:_.X5((U.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=p,U),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.H("h2",{class:_.X5((x.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
p,x),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.H(_.d8,{text:function(){return E().title}}))),_.H(_.w,{cond:function(){var m;
return(m=E())==null?void 0:m.subtitle},
then:function(){var m={},b={};return _.H("div",{class:_.X5((m.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=p,m),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.H("div",{class:_.X5((b.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=p,b),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.H(_.d8,{text:function(){return E().subtitle}})))}}),_.H("div",{class:_.X5((A.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=p,A),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.H(_.sY,{data:function(){var m;
return(m=E().offerPlans)!=null?m:[]}},{lpComplexOfferCardViewModel:function(m){return _.H("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.H(vo0,{data:m.data}))}})))))},"Ad");var Szo=_.l(function(t){return _.H("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.H("div",{class:"ytLpCouponBannerViewModelIcon"},_.H(_.lz,{icon:function(){return"price_tag"}})),_.H("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.H("div",{class:"ytLpCouponBannerViewModelContent"},_.H("div",{class:"ytLpCouponBannerViewModelHeading"},_.H(_.d8,{text:function(){var E;
return(E=t.data())==null?void 0:E.title}})),_.H("div",{class:"ytLpCouponBannerViewModelBody"},_.H(_.d8,{text:function(){var E;
return(E=t.data())==null?void 0:E.subtitle}})))))},"Bd");
Szo.idomCompat=!0;_.w$=WQT.getInstance();var cKo;cKo=_.l(function(t){return _.H("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":t.shouldAriaHideContent},_.H("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:t.questionId},_.H(_.d8,{text:t.question})))},"Cd");
_.tN0=_.l(function(t){var E=t.data;var p=t.themeOverride;t=_.M(_.Py(!1,void 0,"pNli2b"));var U=t.next().value,x=t.next().value;t=_.aC(function(){x(!U());return!1});
var A=function(){return U()?"EXPAND_LESS":"EXPAND_MORE"},m=("faq-container"+_.mC(_.w$)).toString(),b="faq-question-and-answers-section-question"+_.mC(_.w$),f={},B={};
return _.H("faq-entry-view-model",null,_.H("div",{class:_.X5("ytLpFaqEntryViewModelHost",(f.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return p==null?void 0:p().useDarkTheme},f))},_.H("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":t,role:"button","aria-expanded":U,"aria-labelledby":b.toString(),"tab-index":"0"},_.H(cKo,{question:function(){return E().question},
questionId:b,shouldAriaHideContent:!0}),_.H(_.w,{cond:function(){return U()!==void 0},
then:function(){return _.H("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.H(_.lz,{icon:A,ariaHidden:!0}),_.H("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.H("div",{class:_.X5("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(B.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!U()},B))},_.H("div",{id:m},_.H(_.yG,{each:function(){return E().answers||[]}},function(R){return _.H("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.H(_.d8,
{text:R}))})))))},"Dd");
_.tN0.idomCompat=!0;var E5W=_.l(function(t){var E=t.data;var p=t.themeOverride;t={};return _.H("lp-faq-section-view-model",null,_.H("div",{class:_.X5("yt-lp-faq-section-view-model",(t["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return E().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},t["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(p==null||!p().useDarkTheme)},t))},_.H("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.H(_.w,{cond:function(){return E().header},
then:function(U){return _.H("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.H(_.d8,{text:U}))}}),_.H("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.H(_.sY,{data:function(){return E().faqs}},{faqEntryViewModel:function(U){return _.H(_.tN0,{data:U.data,
themeOverride:p})}})),_.H("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.H(_.yG,{each:function(){return E().footers||[]}},function(U){return _.H(_.d8,{text:U})})),_.H(_.w,{cond:function(){return E().legal},
then:function(U){return _.H("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.H(_.d8,{text:U}))}}))))},"Ed");
E5W.idomCompat=!0;var pRs=_.l(function(t){var E=t.data;var p=t.themeOverride;_.A6(function(){var m=E().gtmId;m&&_.x9(m,_.qO("GL",""))});
var U={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var m,b,f;return(f=(m=E().logo)==null?void 0:(b=m.accessibilityData)==null?void 0:b.label)!=null?f:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},x=_.X3().resolve(_.OB(_.Ld)),A=function(){return x&&x()||(p==null?void 0:p().useDarkTheme)};
return _.H("lp-header-section-view-model",null,_.H("div",{class:function(){var m=E().layoutType,b=E().marginType==="LP_SECTION_MARGIN_TYPE_TOP",f=p==null?void 0:p().useDarkTheme,B=["lp-header-section-view-model"];switch(m){case "LP_MODULE_LAYOUT_TYPE_PTC":B.push("lp-header-section-view-model--ptc-layout-type");break;case "LP_MODULE_LAYOUT_TYPE_NARROW_HEADER":B.push("lp-header-section-view-model--narrow-header-layout-type")}b&&B.push("lp-header-section-view-model__lp-header-section-margin");f&&B.push("lp-header-section-view-model--premium-force-dark-mode");
return B.join(" ")}},_.H(_.w,{cond:function(){return E().logo},
then:function(){return _.H("div",null,_.H(_.w,{cond:A,then:function(){return _.H(_.w,{cond:function(){var m;return(m=E().logo)==null?void 0:m.imageDark},
then:function(m){return _.H(_.Q9,Object.assign({},{data:m},U))}})},
else:function(){return _.H(_.w,{cond:function(){var m;return(m=E().logo)==null?void 0:m.imageLight},
then:function(m){return _.H(_.Q9,Object.assign({},{data:m},U))}})}}))}}),_.H(_.w,{cond:function(){return E().title},
then:function(m){return _.H("div",{class:"lp-header-section-view-model__lp-header-title"},_.H(_.d8,{text:m}))}}),_.H("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.H(_.w,{cond:function(){return E().subtitles},
then:function(m){return _.H(_.yG,{each:m},function(b){return _.H("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.H(_.d8,{text:b}))})}})),_.H(_.w,{cond:function(){return E().additionalInfo},
then:function(m){return _.H("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.H(_.d8,{text:m}))}}),_.H("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.H(_.w,{cond:function(){return E().primaryButton},
then:function(m){return _.H("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.H(_.sY,{data:m},{buttonViewModel:_.D5}))}}),_.H(_.w,{cond:function(){return E().secondaryButton},
then:function(m){return _.H("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.H(_.sY,{data:m},{buttonViewModel:_.D5}))}})),_.H(_.w,{cond:function(){return E().otherOffersInfo},
then:function(m){return _.H("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.H(_.d8,{text:m}))}}),_.H("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.H(_.w,{cond:function(){return E().billingInfo},
then:function(m){return _.H(_.yG,{each:m},function(b){return _.H("div",null,_.H(_.d8,{text:b}))})}}))))},"Fd");
pRs.idomCompat=!0;var UzG=_.l(function(t){return _.H("lp-header-upsell-banner-view-model",{class:_.X5("lpHeaderUpsellBannerViewModelHost",t.className,{})},_.H("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.H(_.lz,{icon:function(){return"CAMPAIGN"}})),_.H("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.H("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.H("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.H("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.H(_.d8,{text:function(){var E;
return(E=t.data())==null?void 0:E.description}})))),_.H(_.sY,{data:function(){var E;
return(E=t.data())==null?void 0:E.purchaseButton}},{buttonViewModel:function(E){return _.H(_.D5,{data:E.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"Gd");var xzZ=_.l(function(t){var E=t.data;var p=_.Ql(t.themeOverride,{useDarkTheme:!1});t={};t=_.X5("ytmLpHeadlineSectionViewModelHost",(t.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return p().useDarkTheme},t));
return _.H("lp-headline-section-view-model",null,_.H("div",{class:t},_.H(_.w,{cond:function(){return E().title},
then:function(U){return _.H("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.H(_.d8,{text:U}))}}),_.H(_.w,{cond:function(){return E().subtitle},
then:function(U){return _.H("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.H(_.d8,{text:U}))}})))},"Hd");var An0=_.l(function(t){var E=t.data;var p=t.themeOverride;var U=_.X3().resolve(_.OB(_.Ld)),x=function(){return U&&U()||(p==null?void 0:p().useDarkTheme)},A=function(){var B,R;
var V=x()?(B=E().textBackgroundImage)==null?void 0:B.imageDark:(R=E().textBackgroundImage)==null?void 0:R.imageLight;return GYl((V==null?void 0:V.sources)||[])},m=function(){var B,R;
return x()?(B=E().featureImage)==null?void 0:B.imageDark:(R=E().featureImage)==null?void 0:R.imageLight},b=function(){return E().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},f=function(){var B,R;
return x()?(B=E().logo)==null?void 0:B.imageDark:(R=E().logo)==null?void 0:R.imageLight};
return _.H("ytm-lp-large-feature-section-view-model",null,_.H("div",{class:function(){var B=E().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",R=E().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",V=(E().index||0)%2===1,Q=p==null?void 0:p().useDarkTheme,C=["yt-lp-large-feature-section-view-model"];B?C.push("yt-lp-large-feature-section-view-model--music-feature-type"):R?C.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):V||C.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
Q&&C.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return C.join(" ")}},_.H("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.H(_.w,{cond:m,
then:function(){return _.H(_.Q9,{data:function(){return m()},
alt:function(){var B,R,V;return(V=(B=E().featureImage)==null?void 0:(R=B.accessibilityData)==null?void 0:R.label)!=null?V:""},
contentMode:b})}})),_.H("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var B;return((B=A())==null?0:B.url)?"background-image: url("+_.S8(A().url)+");":""}},_.H("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.H(_.w,{cond:f,
then:function(){return _.H(_.Q9,{data:function(){return f()},
alt:function(){var B,R,V;return(V=(B=E().logo)==null?void 0:(R=B.accessibilityData)==null?void 0:R.label)!=null?V:""},
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"})}}),_.H(_.w,{cond:function(){return E().eyebrowText},
then:function(){return _.H("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.H(_.d8,{text:function(){return E().eyebrowText}}))}}),_.H(_.w,{cond:function(){return E().title},
then:function(){return _.H("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.H(_.d8,{text:function(){return E().title}}))}}),_.H(_.w,{cond:function(){return E().subtitles},
then:function(){return _.H("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.H(_.yG,{each:function(){return E().subtitles||[]}},function(B){return _.H(_.d8,{text:B})}))}})))))},"Id");
An0.idomCompat=!0;var YIT=_.l(function(t){return _.H("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.H("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.H(_.lz,{icon:function(){var E;return(E=t.data())==null?void 0:E.iconType},
className:function(){var E;switch((E=t.data())==null?void 0:E.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 E;return((E=t.data())==null?void 0:E.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.H("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.H(_.d8,{text:function(){var E;
return(E=t.data())==null?void 0:E.text},
className:function(){var E;return((E=t.data())==null?void 0:E.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"Jd");var MNf=_.l(function(t){t=_.C4(t,{config:void 0,themeOverride:void 0});var E=t.data,p=t.config,U=t.themeOverride;t={};t=_.X5("ytmLpOfferCardOptionViewModelHost",(t.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var b;return(b=U())==null?void 0:b.useDarkTheme},t));
var x=_.aC(function(){var b,f;(b=p())==null||(f=b.handleRadioButtonClick)==null||f.call(b,E());return!1}),A=function(){var b;
return(b=p())==null?void 0:b.shouldDisplayRadioButton},m=function(){var b;
return(b=E().featureListItems)!=null?b:[]};
return _.H("ytm-lp-offer-card-option-view-model",null,_.H("div",{class:t,"on:click":_.aC(function(){if(A()){var b,f;(b=p())==null||(f=b.handleRadioButtonClick)==null||f.call(b,E())}return!1})},_.H(_.w,{cond:A,
then:function(){return _.H("div",null,_.H("input",{type:"radio","on:click":x,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var b;return!((b=p())==null||!b.isOptionSelected)}}))}}),_.H("div",null,_.H("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.H(_.d8,{text:function(){return E().eyebrowText}})),_.H("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.H(_.d8,{text:function(){return E().title}})),_.H("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.H(_.d8,
{text:function(){return E().subtitle}})),_.H(_.w,{cond:function(){return m().length>0},
then:function(){return _.H("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.H(_.sY,{data:m},{lpFeatureListItemViewModel:YIT}))}}),_.H("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.H(_.d8,{text:function(){return E().description}})))))},"Kd");
MNf.idomCompat=!0;var mzX=_.l(function(t){var E=t.data;var p=t.themeOverride;t=_.M(_.j5(function(){var A,m=(A=E().offerOptions)==null?void 0:A[0];return _.k(m,cSm)||{}}));
var U=t.next().value,x=t.next().value;t={};return _.H("ytm-lp-offer-card-view-model",null,_.H("div",{class:_.X5("ytmLpOfferCardViewModelHost",(t.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(p==null||!p().useDarkTheme)},t))},_.H("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.H(_.w,{cond:function(){return E().titleIconType},
then:function(){return _.H("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.H(_.lz,{icon:function(){var A;return((A=E().titleIconType)==null?void 0:A.toString())||""}}))}}),_.H("div",{class:"ytmLpOfferCardViewModelTitleText"},_.H(_.d8,{text:function(){return E().title}})),_.H(_.sY,{data:function(){return E().titleBadge}},{badgeViewModel:function(A){return _.H("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.H(_.XN,{data:A.data}))}})),_.H("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.H(_.sY,{data:function(){return E().offerOptions}},{lpOfferCardOptionViewModel:function(A){var m=A.data;
return _.H(_.Oj,null,_.H("div",{class:"ytmLpOfferCardViewModelDivider"}),_.H(MNf,{data:m,config:function(){var b;return{shouldDisplayRadioButton:(E().offerOptions||[]).length>1,isOptionSelected:m().id===((b=U())==null?void 0:b.id),handleRadioButtonClick:function(f){return void x(f)}}},
themeOverride:p}))}})),_.H("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.H(_.sY,{data:function(){var A;
return(A=U())==null?void 0:A.purchaseButtonOverride}},{buttonViewModel:_.D5}))))},"Ld");
mzX.idomCompat=!0;var bDs=_.l(function(t){var E=t.data;var p=t.themeOverride;t={};t=_.X5("ytmLpOfferCardSectionViewModelHost",(t.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var U;return p==null?void 0:(U=p())==null?void 0:U.useDarkTheme},t));
return _.H("ytm-lp-offer-card-section-view-model",null,_.H("div",{class:t},_.H(_.w,{cond:function(){return E().title!==void 0},
then:function(){return _.H("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.H("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.H(_.d8,{text:function(){return E().title}})),_.H(_.w,{cond:function(){return E().subtitle},
then:function(){return _.H("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.H(_.d8,{text:function(){return E().subtitle}}))}}))}}),_.H("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.H(_.sY,{data:function(){return E().offerCards}},{lpOfferCardViewModel:function(U){return _.H("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.H(mzX,{data:U.data,
themeOverride:p}))}})),_.H(_.w,{cond:function(){return E().footer},
then:function(){return _.H("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.H(_.d8,{text:function(){return E().footer}}))}})))},"Md");var iDr=_.l(function(t){var E=t.data;return _.H("lp-offer-table-cell-content-view-model",null,_.H("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.H(_.SC,null,_.H(_.Kw,{when:function(){return E().title}},function(){return _.H(_.d8,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return E().title}})}),_.H(_.Kw,{when:function(){return E().subTitle}},function(){return _.H(_.d8,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return E().subTitle}})}),_.H(_.Kw,{when:function(){return E().featureDescription}},function(){return _.H(_.d8,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return E().featureDescription}})}),_.H(_.Kw,{when:function(){return E().description}},function(){return _.H(_.d8,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return E().description}})}),_.H(_.Kw,{when:function(){return E().iconType}},function(){return _.H("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.H(_.lz,{icon:function(){return E().iconType.toString()}}))}),_.H(_.Kw,{when:function(){return E().purchaseButton}},function(){return _.H(_.sY,{data:function(){return E().purchaseButton}},{buttonViewModel:function(p){return _.H("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.H(_.D5,
{data:p.data}))}})}),_.H(_.Kw,{when:function(){return E().note}},function(){return _.H(_.d8,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return E().note}})}),_.H(_.Kw,{when:function(){return E().featureDetail}},function(){return _.H(_.d8,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return E().featureDetail}})}),_.H(_.Kw,{when:function(){return E().badge}},function(){return _.H(_.sY,{data:function(){return E().badge}},{badgeViewModel:_.XN})}))))},"Nd");
iDr.idomCompat=!0;var qIr=_.l(function(t){var E=t.data;return _.H("lp-offer-table-cell-view-model",null,_.H("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(E().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;"}}},_.H(_.sY,{data:function(){return E().contents}},{lpOfferTableCellContentViewModel:iDr})))},
"Od");
qIr.idomCompat=!0;var HD4=_.l(function(t){var E=t.data;var p=t.lpTableIsFirstRow;var U=t.lpTableIsLastRow;var x=function(){return(p==null?0:p())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},A=function(){return(p==null?0:p())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(U==null?0:U())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.H("ytm-lp-offer-table-row-view-model",null,_.H("div",{class:"ytLpOfferTableRowViewModelHost"},_.H(_.sY,{data:function(){return E().rowHeaderCell}},{lpOfferTableCellViewModel:function(m){return _.H("div",{class:x},_.H(qIr,{data:m.data}))}}),_.H(_.sY,{data:function(){return E().contentCells}},{lpOfferTableCellViewModel:function(m){return _.H("div",{class:A},_.H(qIr,{data:m.data}))}})))},"Pd");
HD4.idomCompat=!0;var f0o=_.l(function(t){var E=t.data;var p=t.themeOverride;var U=_.X3().resolve(_.OB(_.Ld)),x=function(){return _.k(E().logo,rcm)||{}};
t={};return _.H("ytm-lp-offer-table-section-view-model",null,_.H("div",{class:"ytLpOfferTableViewModelHost"},_.H(_.w,{cond:function(){var A,m;return U&&U()||(p==null?0:p().useDarkTheme)?(A=x())==null?void 0:A.imageDark:(m=x())==null?void 0:m.imageLight},
then:function(A){return _.H(_.Q9,{data:A,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var m,b,f;return(f=(m=x())==null?void 0:(b=m.accessibilityData)==null?void 0:b.label)!=null?f:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.H("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.H(_.d8,{text:function(){return E().title}})),_.H("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.H(_.d8,{text:function(){return E().subtitle}})),_.H(_.w,{cond:function(){return E().disclaimers},
then:function(A){return _.H("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.H(_.yG,{each:A},function(m){return _.H("div",null,_.H(_.d8,{text:m}))}))}}),_.H("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.H(_.sY,{data:function(){return E().rows}},{lpOfferTableRowViewModel:function(A,m){return _.H(HD4,{data:A.data,
lpTableIsFirstRow:function(){return m()===0},
lpTableIsLastRow:function(){return m()===E().rows.length-1}})}})),_.H("div",{class:_.X5((t.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return E().hasFooterBackground},t))},_.H(_.w,{cond:function(){return E().footer},
then:function(){return _.H("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.H(_.d8,{text:function(){return E().footer}}))}}),_.H(_.w,{cond:function(){return E().footerTitle},
then:function(){return _.H("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.H(_.d8,{text:function(){return E().footerTitle}}))}}),_.H(_.w,{cond:function(){return E().footerDescription},
then:function(){return _.H("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.H(_.d8,{text:function(){return E().footerDescription}}))}}),_.H(_.w,{cond:function(){return E().footerDescriptions},
then:function(A){return _.H("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.H(_.yG,{each:A},function(m){return _.H("div",null,_.H(_.d8,{text:m}))}))}}))))},"Qd");
f0o.idomCompat=!0;var BQr=_.l(function(t){var E=t.data;var p=t.themeOverride;var U=_.X3().resolve(_.OB(_.Ld)),x=function(){var b;return p==null?void 0:(b=p())==null?void 0:b.useDarkTheme},A=function(){var b,f;
return U&&U()||x()?(b=E().image)==null?void 0:b.imageDark:(f=E().image)==null?void 0:f.imageLight};
t={};t=_.X5("ytmLpSmallFeatureSectionViewModelHost",(t.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=x,t));var m=function(){var b,f,B;return(B=(b=E().image)==null?void 0:(f=b.accessibilityData)==null?void 0:f.label)!=null?B:""};
return _.H("ytm-lp-small-feature-section-view-model",{class:t},_.H(_.w,{cond:function(){return A()&&!l$$},
then:function(){return _.H("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.H(_.Q9,{data:function(){return A()},
alt:m,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.H("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.H("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.H(_.w,{cond:function(){return E().title},
then:function(b){return _.H(_.d8,{text:b})}})),_.H("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.H(_.d8,{text:function(){return E().description}}))))},"Rd");
BQr.idomCompat=!0;var wRo=_.l(function(t){var E=t.data;var p=t.themeOverride;t={};return _.H("ytm-lp-small-feature-section-group-view-model",null,_.H("div",{class:_.X5("ytmLpSmallFeatureSectionGroupViewModelHost",(t.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(p==null||!p().useDarkTheme)},t))},_.H("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.H(_.sY,{data:function(){return E().smallFeatures}},{lpSmallFeatureSectionViewModel:function(U){return _.H("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.H(BQr,{data:U.data,
themeOverride:p}))}}))))},"Sd");
wRo.idomCompat=!0;_.k2(_.l(function(t){var E=t.data;var p=function(){return E().forcedTheme==="USER_INTERFACE_THEME_DARK"},U=function(){return E().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},x=function(){var m="",b,f;
var B=_.X3().resolve(_.OB(_.Ld));B=p()||(B==null?0:B())?(b=E().themedImageViewModel)==null?void 0:b.imageDark:(f=E().themedImageViewModel)==null?void 0:f.imageLight;(b=GYl((B==null?void 0:B.sources)||[]))&&b.url&&(m=U()?"background-image: linear-gradient(to bottom, transparent, "+(E().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"80%")+", var(--premium-yt-spec-base-background)), url("+_.S8(b.url)+");":"background-image: url("+_.S8(b.url)+");");return m},A=function(){return{useDarkTheme:p()}};
t={};return _.H("yt-section-group-view-model",null,_.H("div",{class:_.X5("yt-lp-section-group-view-model",(t["yt-lp-section-group-view-model--premium-force-dark-mode"]=p,t["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return E().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},t))},_.H(_.w,{cond:function(){return x().length},
then:function(){var m={};return _.H("div",{class:_.X5("yt-lp-section-group-view-model__bg-image",(m["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=U,m)),style:x})}}),_.H("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.H(_.sY,{data:function(){return E().sections}},{lpHeaderUpsellBannerViewModel:function(m){return _.H(UzG,{data:m.data})},
lpFaqSectionViewModel:function(m){return _.H(E5W,{data:m.data,themeOverride:A})},
lpHeaderSectionViewModel:function(m){return _.H(pRs,{data:m.data,themeOverride:A})},
lpHeadlineSectionViewModel:function(m){return _.H(xzZ,{data:m.data,themeOverride:A})},
lpLargeFeatureSectionViewModel:function(m){return _.H(An0,{data:m.data,themeOverride:A})},
lpOfferCardSectionViewModel:function(m){return _.H(bDs,{data:m.data,themeOverride:A})},
lpComplexOfferCardSectionViewModel:function(m){return _.H(yKs,{data:m.data})},
lpOfferTableSectionViewModel:function(m){return _.H(f0o,{data:m.data,themeOverride:A})},
lpSmallFeatureSectionGroupViewModel:function(m){return _.H(wRo,{data:m.data,themeOverride:A})},
lpCouponBannerViewModel:function(m){return _.H(Szo,{data:m.data})}}))))},"Td"),"yt-section-group-view-model",{props:{data:_.uu}});_.R1p=_.l(function(t){var E=_.nd(vyj,function(){var m;return(m=t.data())==null?void 0:m.chipBarStateEntityKey}),p=function(){return t.data().disableDeselection},U=_.M(_.j5(function(){var m;
if(((m=E())==null?void 0:m.selectedIndex)!=void 0)return E().selectedIndex;var b,f;m=_.M(((b=t.data())==null?void 0:(f=b.chips)==null?void 0:f.entries())||[]);for(b=m.next();!b.done;b=m.next()){b=_.M(b.value);f=b.next().value;b=b.next().value;var B=void 0;if((B=_.k(b,_.j3))==null?0:B.selected)return f}return-1})),x=U.next().value,A=U.next().value;
return _.H("chip-bar-view-model",{class:_.X5("ytChipBarViewModelHost",t.className),role:"tablist"},_.H(_.sY,{data:function(){return t.data().chips}},{chipViewModel:function(m,b){return _.H("div",{class:"ytChipBarViewModelChipWrapper"},_.H(_.NKG,{data:m.data,
selected:function(){return b()===x()},
callback:function(f,B){f=!!B;B=b();A(f?B:-1);var R,V=(R=t.data())==null?void 0:R.chipBarStateEntityKey;V&&f&&_.Vl(_.P9("chipBarStateEntity",V,{key:V,selectedIndex:B}))},
disableDeselection:t.disableDeselection||p}))}}))},"Ud");_.k2(_.R1p,"chip-bar-view-model",{props:{data:_.Cy,className:_.Cy,disableDeselection:_.Cy}});_.VNp=_.l(function(t){var E=t.data;t={};return _.H("divider-view-model",{class:_.X5("dividerViewModelHost",(t.dividerViewModelInsetThinPadding=function(){return E().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},t))},_.H("div",{class:_.X5("dividerViewModelBaseDivider",function(){return yEL(E().dividerStyle)})}))},"Vd");
_.VNp.idomCompat=!0;_.k2(_.VNp,"divider-view-model",{props:{data:_.uu}});var N6=new Map,DV=new Map,t7J=0,sX;var YK_=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],bI$={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var QWo,C6W;QWo=function(t){return function(E){return function(){return(E==null?void 0:E())!==void 0?String(E())+t:void 0}}};
_.RN=QWo("px");C6W=QWo("s");var jWr=Sp_(function(t){return t.targetGroupId}).useUpdatableData;_.Vn=_.l(function(t){function E(YL){return function(){var bY=O().numItemsPerGridRow,kL=YL()*bY;bY=kL+bY;var R0,j$;return(j$=(R0=U().contents)==null?void 0:R0.slice(kL,bY))!=null?j$:[]}}
var p=_.C4(t,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1,useUpdatedMargin:!1}),U=p.data,x=p.layoutContainerWidth,A=p.shouldUseOwnContainerSize,m=p.marginSettings,b=p.useUpdatedMargin,f=Faj(),B=_.M(jWr(function(){var YL,bY;return{targetGroupId:(YL=U().targetingContext)==null?void 0:(bY=YL.targetGroupId)==null?void 0:bY[0]}})).next().value;
p=_.M(_.Py(!0,void 0,"CC9Rdb"));var R=p.next().value,V=p.next().value,Q=function(){var YL,bY=(YL=_.k(U().showMoreButton,_.Cz))==null?void 0:YL.trackingParams;bY&&_.$3(_.Pu(),bY);V(!1)},C=function(){var YL,bY=(YL=_.k(U().showLessButton,_.Cz))==null?void 0:YL.trackingParams;
bY&&_.$3(_.Pu(),bY);V(!0)};
p=_.M(_.L$({canHaveZeroSize:!1}));var d=p.next().value;p=p.next().value;var I=function(){var YL;return(YL=U().contentAspectRatio)!=null?YL:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},O=_.KN(function(){var YL=A()&&d.width()>0?d.width()||x():x(),bY,kL=(bY=t.data())==null?void 0:bY.responsiveContainerConfiguration;
YL=_.M6({containerWidth:YL,sizing:kL?mH(kL==null?void 0:kL.responsiveSize):"EXTRA_COMPACT",marginSettings:m(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:YL.maxContainerWidth,numItemsPerGridRow:YL.numItems,contentPadding:A()?YL.margin:YL.contentMargin,itemWidth:YL.itemWidth,itemMargin:YL.gutter/2}},void 0,"YIvnde"),a=function(){if(U().enableVerticalExpansion){if(R())return F();
var YL,bY,kL=(bY=(YL=U().contents)==null?void 0:YL.length)!=null?bY:0;return Math.ceil(kL/O().numItemsPerGridRow)}return O().numItemsPerGridRow<=2?2:1},F=function(){var YL;
return Math.ceil(((YL=U().minCollapsedItemCount)!=null?YL:1)/O().numItemsPerGridRow)},L=function(){return U().enableVerticalExpansion&&U().showLessButton&&!R()&&a()>F()},D=function(){var YL,bY;
return U().enableVerticalExpansion&&U().showMoreButton&&R()&&((bY=(YL=U().contents)==null?void 0:YL.length)!=null?bY:0)>O().numItemsPerGridRow*F()},W=function(){return!L()},K=function(){return!D()},v={};
return _.H("grid-shelf-view-model",{class:_.X5("ytGridShelfViewModelHost",t.className,(v.ytGridShelfViewModelHostHasBottomButton=function(){return L()||D()},v.ytGridShelfViewModelHostIsDismissed=function(){var YL,bY=(YL=B())!=null?YL:{};
YL=bY.behavior;var kL=bY.isDismissed,R0=bY.stamperContextTargetId;bY=bY.stamperIndex;if(!(_.r("mweb_see_fewer_shorts_group_dismissal")&&kL&&YL&&R0))return!1;var j$;kL=f;for(var lY,Tt,si=((lY=kL)==null?0:lY.targetId)?_.Hv((Tt=kL)==null?void 0:Tt.targetId):void 0;((j$=kL)==null?0:j$.parent)&&si!==R0;)kL=kL.parent,Tt=lY=void 0,si=((lY=kL)==null?0:lY.targetId)?_.Hv((Tt=kL)==null?void 0:Tt.targetId):void 0;j$=si===R0?kL:void 0;if(!j$)return!1;var Q0;R0=j$==null?void 0:(Q0=j$.stamperIndex)==null?void 0:
Q0.call(j$);return YL==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||YL==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&R0!=null&&bY!=null&&R0>bY},v.ytGridShelfViewModelHostOptionalMediumLayoutMargin=b,v)),
el:_.V9(p),style:_.zO({"margin-left":(0,_.RN)(function(){return O().contentPadding}),
"margin-right":(0,_.RN)(function(){return O().contentPadding})})},_.H(_.w,{cond:function(){return _.k(U().header,gpr)},
then:function(YL){return _.H(_.v_,{data:YL,useUpdatedPadding:b,disableHorizontalPadding:!0})}}),_.H("div",null,_.H(_.yG,{each:function(){return Array(a())}},function(YL,bY){return _.H(rnr,{className:t.className,
items:E(bY),responsiveGridShelfLayout:O,contentAspectRatio:I})})),_.H("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.H(_.sY,{data:function(){return U().showMoreButton}},{buttonViewModel:function(YL){return _.H("div",{hidden:K},_.H(_.D5,{data:YL.data,
onClick:Q}))}}),_.H(_.sY,{data:function(){return U().showLessButton}},{buttonViewModel:function(YL){return _.H("div",{hidden:W},_.H(_.D5,{data:YL.data,
onClick:C}))}})))},"Xd");
_.Vn.idomCompat=!0;var rnr=_.l(function(t){var E=t.items;var p=t.responsiveGridShelfLayout;var U=t.contentAspectRatio;t=t.className;var x=(0,_.RN)(function(){return-p().itemMargin});
return _.H("div",{el:_.V9(cEE(function(A){a:{for(var m=E(),b=[],f=0;f<m.length;f++){var B=_.k(m[f],A4G);if(!B||B==null||!B.inlinePlayerData){A=null;break a}var R=A.children.item(f);if(!R){A=null;break a}b.push({thumbnailElement:R,videoData:B})}A={gridVideoPreviewData:{gridItems:b}}}return A})),
class:_.X5("ytGridShelfViewModelGridShelfRow",t),style:_.zO({"margin-left":x,"margin-right":x})},_.H(_.sY,{data:E,replacementWrapper:function(A){return _.H(kDf,{responsiveGridShelfLayout:p},A)}},{shortsLockupViewModel:function(A){return _.H(kDf,{responsiveGridShelfLayout:p},_.H(DaZ,{data:A.data,
aspectRatio:function(){return U()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.r("mweb_enable_one_line_title_on_shorts")?1:_.r("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(A){return _.H(kDf,{responsiveGridShelfLayout:p},_.H(_.WM,{data:A.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"Yd"),kDf=_.l(function(t){return _.H("div",{style:_.zO({width:(0,_.RN)(function(){return t.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+t.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},t.children)},"Zd");
_.Vn.idomCompat=!0;_.k2(_.Vn,"grid-shelf-view-model",{props:{data:_.uu,layoutContainerWidth:_.uu,shouldUseOwnContainerSize:_.uu,marginSettings:_.uu,useUpdatedMargin:_.uu,className:_.uu}});_.dz3=_.l(function(t){var E=_.M(_.Py(!1,void 0,"FVl30c")),p=E.next().value,U=E.next().value;E={};return _.H("yt-alert-banner-view-model",{class:_.X5("ytAlertBannerViewModelHost",t.className,function(){var x;a:switch((x=t.data())==null?void 0:x.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":x="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":x="ytAlertBannerViewModelWarning";break a;default:x="ytAlertBannerViewModelInformational"}return x},(E.ytAlertBannerViewModelDismissed=
p,E.ytAlertBannerViewModelFullbleed=t.fullbleed,E.ytAlertBannerViewModelNarrow=t.narrow,E.ytAlertBannerViewModelIsInRichGrid=t.isInRichGrid,E))},_.H(_.w,{cond:function(){var x;
return!((x=t.data())==null?0:x.hideIcon)},
then:function(){return _.H("div",{class:"ytAlertBannerViewModelIcon"},_.H(_.lz,{icon:function(){return"info_circle"}}))}}),_.H("div",{class:"ytAlertBannerViewModelOuterContainer"},_.H("div",{class:"ytAlertBannerViewModelContainer"},_.H("div",{class:"ytAlertBannerViewModelContent"},_.H("div",{class:"ytAlertBannerViewModelHeading"},_.H(_.d8,{text:function(){var x;
return(x=t.data())==null?void 0:x.heading}})),_.H("div",{class:"ytAlertBannerViewModelBody"},_.H(_.d8,{text:function(){var x;
return(x=t.data())==null?void 0:x.body}})))),_.H(_.sY,{data:function(){var x;
return(x=t.data())==null?void 0:x.actionButton}},{buttonViewModel:function(x){return _.H(_.D5,{data:x.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.H(_.sY,{data:function(){var x;
return(x=t.data())==null?void 0:x.dismissButton}},{buttonViewModel:function(x){return _.H(_.D5,{data:x.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var A;((A=t.data())==null?0:A.disableLocalDismissBehavior)||U(!0)}})}}))},"$d");_.k2(_.dz3,"yt-alert-banner-view-model",{props:{data:_.uu,fullbleed:_.uu,narrow:_.uu,isInRichGrid:_.uu,className:_.uu}});var upm;_.Qn=_.l(function(t){return _.H("basic-content-view-model",{class:_.X5("ytBasicContentViewModelHost",_.Ql(t.className))},_.H(_.w,{cond:function(){return t.data().headline},
then:function(E){return _.H("div",{class:"ytBasicContentViewModelHeadline"},_.H(_.d8,{text:E}))}}),_.H(_.yG,{each:function(){return t.data().paragraphs||[]},
keyBy:"INDEX"},function(E){return _.H("div",{class:"ytBasicContentViewModelParagraph"},_.H(_.w,{cond:function(){var p=E();return!!(p.header||p.customHeader||p.headline)},
then:function(){return _.H(upm,{paragraph:E})}}),_.H(_.w,{cond:function(){return E().asset||E().text},
then:function(){return _.H("div",{class:"ytBasicContentViewModelParagraphContent"},_.H(_.w,{cond:function(){return E().asset},
then:function(p){return _.H("div",{class:"ytBasicContentViewModelParagraphAsset"},_.H(_.sY,{data:p},{contentPreviewImageViewModel:_.Nk}))}}),_.H(_.w,{cond:function(){return E().text},
then:function(p){return _.H("div",{class:"ytBasicContentViewModelParagraphText"},_.H(_.d8,{text:p}))}}))}}))}))},"ae");
upm=_.l(function(t){var E=t.paragraph;return _.H(_.Oj,null,_.H(_.w,{cond:function(){return E().headline},
then:function(p){return _.H(_.d8,{text:p,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.H(_.sY,{data:function(){return E().header||E().customHeader}},{sectionHeaderViewModel:function(p){return _.H(_.v_,{data:p.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"be");_.Jnr=_.l(function(t){function E(){var C,d;f((d=(C=x)==null?void 0:C.isKeyBoardInUse())!=null?d:!1)}
function p(){f(!1)}
function U(){var C;return b()?(C=t.focusedClassName)==null?void 0:C.call(t):""}
var x=_.X3().resolve(_.OB(_.FA)),A=_.M(_.Py(!1,void 0,"SgkTXc")),m=A.next().value;A=A.next().value;var b=m,f=A,B=function(){var C,d;return((C=t.toggleable)==null?0:C.call(t))?(d=t.toggled)==null?void 0:d.call(t):void 0},R=_.aC(function(C){var d,I=(d=t.command)==null?void 0:d.call(t);
I&&_.X3().resolve(_.ei).resolveCommand(I);var O;(O=t.onClick)==null||O.call(t,C)}),V=_.aC(E),Q=_.aC(p);
return _.H(_.w,{cond:function(){var C;if(C=t.command){C=t.command();C=bK8(C);var d=C.href;C=!(!C.navigatingCommand||!d)}return C},
then:function(){return _.H(_.zn,Object.assign({},{command:t.command,style:t.style,ariaDescribedby:t.ariaDescribedby,ariaHidden:t.ariaHidden,ariaLabel:t.ariaLabel,ariaLabelledby:t.ariaLabelledby,ariaSelected:t.ariaSelected,disabled:t.disabled,dir:t.dir,tabIndex:t.tabIndex,target:t.target,title:t.title,onClick:t.onClick},{className:_.X5("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",t.className,function(){return U()}),
onFocusin:E,onFocusout:p,ariaCurrent:function(){var C,d;return(d=(C=t.ariaCurrent)==null?void 0:C.call(t))!=null?d:B()}}),t.children)},
else:function(){return _.H("button",{"on:click":R,"on:focusin":V,"on:focusout":Q,class:_.X5("ytButtonOrAnchorHost","ytButtonOrAnchorButton",t.className,function(){return U()}),
style:t.style,"aria-describedby":t.ariaDescribedby,"aria-hidden":t.ariaHidden,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabelledby,"aria-pressed":B,dir:t.dir,disabled:t.disabled,tabindex:t.tabIndex,title:t.title},t.children)}})},"ce");var I0W=_.l(function(t){t=_.C4(t,{disabled:!1});var E=t.active,p=t.disabled;t={};t=_.X5("ytSwitchShapeTrack",(t.ytSwitchShapeTrackActive=function(){return E()},t.ytSwitchShapeTrackDisabled=function(){return p()},t));
var U={};U=_.X5("ytSwitchShapeKnob",(U.ytSwitchShapeKnobActive=function(){return E()},U));
return _.H("switch-shape",{class:"ytSwitchShapeHost"},_.H("div",{class:t}),_.H("div",{class:U}))},"de");var g54=_.l(function(t){var E=_.C4(t,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),p=E.data;t=E.className;var U=E.handleOnTapEventInParent,x=E.parentActive,A=E.onTap;E=_.M(_.j5(function(){var Q;return(Q=x())!=null?Q:p().switchedOnByDefault||!1}));
var m=E.next().value,b=E.next().value,f=function(){return p().isDisabled},B=_.EB("button");
E=_.aC(function(Q){return Q.key==="Enter"?(Q.preventDefault(),B.value.click(),!1):!0});
var R=_.aC(function(Q){if(p().handleOnTapEventInParent||U())return!0;if(f())return!1;if(A)return A(Q),!0;HIJ(p(),m(),Q);b(!m());return!1}),V={};
V=_.X5("ytSwitchButtonViewModelButton",(V.ytSwitchButtonViewModelTappable=function(){return!f()},V));
return _.H("switch-button-view-model",{class:_.X5("ytSwitchButtonViewModelHost",t)},_.H("button",{el:B,class:V,"on:click":R,"on:keydown":E,"aria-label":function(){return m()?p().a11yLabelSwitchedOn:p().a11yLabelSwitchedOff},
"aria-checked":m,"aria-disabled":f,role:"switch"},_.H(I0W,{active:m,disabled:f})))},"ee");var ZDo=_.l(function(t){var E=t.data;var p=t.isLeading;var U=t.hideSelectionTextChevron;var x=t.isToggled;var A=t.shouldNotFillIcon;var m=function(){if(p())var V=E().leadingImage;else{var Q;V=(Q=E().trailingImage)!=null?Q:_.b7(E().themedTrailingImage)}return V},b=function(){a:switch(E().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var V="expand_more";
break a;default:V="chevron_right"}return V};
t={};var f=_.X5("yt-list-item-view-model__image-container",(t["yt-list-item-view-model__leading"]=p,t["yt-list-item-view-model__trailing"]=function(){return!p()},t)),B=_.X5("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
t={};var R=_.X5("yt-list-item-view-model__accessory",(t["yt-list-item-view-model__leading"]=p,t["yt-list-item-view-model__trailing"]=function(){return!p()},t));
return _.H(_.w,{cond:function(){var V=E(),Q=p();return!!(Q&&(V.leadingImage||V.leadingAccessory)||!Q&&(V.trailingImage||V.trailingButton||V.trailingButtons||V.selectionText||V.themedTrailingImage||V.trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"))},
then:function(){return _.H(_.Oj,null,_.H(_.w,{cond:m,then:function(V){return _.H("div",{class:f,"aria-hidden":"true"},_.H(_.Q9,{data:V,alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:function(){var Q=(p()?E().leadingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON":E().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON")?p()?w1J(E().leadingIconAccessorySize):w1J(E().trailingIconAccessorySize):void 0;return Q},
className:B,isToggled:function(){return!(A==null?0:A())&&(x==null?void 0:x())}}))}}),_.H(_.w,{cond:function(){return p()&&E().leadingAccessory},
then:function(){return _.H("div",{class:f},_.H(_.sY,{data:function(){return E().leadingAccessory}},{avatarViewModel:function(V){return _.H(_.fk,{data:V.data,
avatarButtonCustomClassName:B})},
collectionThumbnailViewModel:function(V){return _.H(zPW,{data:V.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.H(_.w,{cond:function(){return!p()&&E().trailingButton},
then:function(){return _.H("div",{class:"yt-list-item-view-model__button-container"},_.H(_.sY,{data:function(){return E().trailingButton}},{buttonViewModel:function(V){return _.H(_.D5,{data:V.data,
className:R})}}))}}),_.H(_.w,{cond:function(){var V;
return!p()&&((V=E().trailingButtons)==null?void 0:V.buttons)},
then:function(){return _.H("div",{class:"yt-list-item-view-model__button-container"},_.H(_.sY,{data:function(){var V;return(V=E().trailingButtons)==null?void 0:V.buttons}},{buttonViewModel:function(V){return _.H(_.D5,{data:V.data,
className:R})},
accountLinkButtonViewModel:function(V){return _.H(kjo,{data:V.data,className:R})},
switchButtonViewModel:function(V){return _.H(g54,{data:V.data,className:R})},
subscribeButtonViewModel:function(V){return _.H(_.fZ,{data:V.data,isOverlay:!1,animateWidth:!1,className:R})},
toggleButtonViewModel:function(V){return _.H(_.m3,{data:V.data,className:R})}}))}}),_.H(_.w,{cond:function(){return!p()&&!!E().selectionText},
then:function(){return _.H(_.Oj,null,_.H(_.d8,{text:function(){return E().selectionText},
className:_.X5("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.H(_.w,{cond:function(){return!(U==null?0:U())},
then:function(){return _.H(_.lz,{icon:b,className:"yt-list-item-view-model__chevron-icon"})}}))}}),_.H(_.w,{cond:function(){return!p()&&E().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"},
then:function(){return _.H("div",{class:"yt-list-item-view-model__new-content-indicator"})}}))}})},"fe");var ODG=_.l(function(t){var E=t.data;return _.H(_.w,{cond:function(){return E().title||E().subtitle},
then:function(){return _.H("div",{class:"yt-list-item-view-model__text-wrapper"},_.H(_.w,{cond:function(){return E().title},
then:function(p){return _.H("div",{class:"yt-list-item-view-model__title-wrapper"},_.H(_.d8,{text:p,className:"yt-list-item-view-model__title"}))}}),_.H(_.w,{cond:function(){return E().subtitle},
then:function(p){return _.H(_.d8,{text:p,className:"yt-list-item-view-model__subtitle"})}}))}})},"ge");var XRr=_.l(function(t){var E=t.data;var p=t.hideSelectionTextChevron;var U=t.TrailingAccessory;var x=t.isToggled;var A=t.disabled;var m=t.isSelectItem;var b=t.isCompact;var f=t.inPopup;var B=t.disableHorizontalPadding;var R=t.isTappableWithoutSelect;var V=t.useButtonOrAnchor;var Q=t.onTap;var C=t.shouldNotFillIcon;var d=function(){return _.H(ODG,{data:E,onTap:Q,useButtonOrAnchor:V,isTappableWithoutSelect:R,isToggled:x})};
t={};return _.H("div",{class:_.X5("yt-list-item-view-model__label",(t["yt-list-item-view-model__container"]=function(){return!(m==null?0:m())},t["yt-list-item-view-model__container--disabled"]=function(){return!!E().isDisabled||!(A==null||!A())},t["yt-list-item-view-model__container--has-subtitle"]=function(){return!!E().subtitle},t["yt-list-item-view-model__container--compact"]=b,t["yt-list-item-view-model__container--tappable"]=R,t["yt-list-item-view-model__container--in-popup"]=f,t["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(B==null?void 0:B())&&!(m==null?0:m())},t))},_.H(ZDo,{data:E,
isLeading:!0,hideSelectionTextChevron:p,isToggled:x,shouldNotFillIcon:C}),_.H(_.w,{cond:function(){return(V==null?void 0:V())&&(R==null?void 0:R())},
then:function(){return _.H(_.Jnr,{command:function(){return _.c9(E().rendererContext)},
onClick:Q,className:"yt-list-item-view-model__button-or-anchor",toggleable:x!==void 0,toggled:x},_.H(d,null))},
else:function(){return _.H(d,null)}}),_.H(_.w,{cond:function(){return!!U},
then:function(){return _.H("div",{class:"yt-list-item-view-model__trailing"},U&&_.H(U,null))},
else:function(){return _.H(ZDo,{data:E,isLeading:!1,hideSelectionTextChevron:p,isToggled:x,shouldNotFillIcon:C})}}))},"he");var a0r=_.l(function(t){var E=_.C4(t,{checked:!1,disabled:!1});t=E.name;var p=E.onChange,U=E.onClick,x=E.checked,A=E.labelRenderable,m=E.hasLeadingLabel,b=E.labelClass,f=E.isCompact,B=E.selectElementClass,R=E.disableHorizontalPadding;E=E.disabled;var V="checkbox"+_.mC(_.w$),Q=_.aC(function(I){U==null||U(I);return!1}),C=_.aC(function(I){p==null||p(I);
return!1}),d={};
return _.H("checkbox-shape",null,_.H("label",{class:_.X5("ytCheckboxShapeHost",b,(d.ytCheckboxShapeHostCompact=f,d.ytCheckboxShapeDisableHorizontalPadding=R,d))},_.H("input",{class:"ytCheckboxShapeInput",id:V,checked:x,name:t,type:"checkbox",disabled:E,"prop:checked":x,"on:change":C,"on:click":Q}),_.H(_.w,{cond:function(){return!(m==null?0:m())},
then:function(){return _.H(h1G,{isLeading:!0,selectElementClass:B})}}),_.H(_.w,{cond:function(){return!!A},
then:function(){return _.H("div",{class:"ytCheckboxShapeLabel"},A==null?void 0:A())}}),_.H(_.w,{cond:m,
then:function(){return _.H(h1G,{isLeading:!1,selectElementClass:B})}})))},"ie");
a0r.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var h1G=_.l(function(t){var E=t.selectElementClass;t={};return _.H("div",{class:_.X5("ytCheckboxShapeCheckbox",E,(t.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(E==null?0:E())},t)),
"aria-hidden":"true"},_.H(_.lz,{icon:_.r("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.H(_.lz,{icon:_.r("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"je");_.Cv=_.l(function(t){var E=t.name;var p=t.onChange;var U=t.onClick;var x=t.checked;var A=t.labelRenderable;var m=t.useCheckIcon;var b=t.hasLeadingLabel;var f=t.labelClass;var B=t.isCompact;var R=t.selectElementClass;var V=t.ariaLabel;var Q=t.className;t=t.disabled;var C="radio"+_.mC(_.w$),d=_.EB("input"),I=_.r("enable_ios_webview_radio_button_responsiveness"),O=_.aC(function(v){d.value.checked=!(x==null||!x());p==null||p(v);return!1}),a=_.aC(function(v){U==null||U(v);
return!1}),F=_.M(_.Py(!1,void 0,"Ucg5gd")),L=F.next().value,D=F.next().value;
F=_.aC(function(){var v;((v=_.X3().resolve(_.OB(_.FA)))==null?0:v.isKeyBoardInUse())&&D(!0)});
var W=_.aC(function(){D(!1)}),K={};
return _.H("radio-shape",{class:_.X5("yt-radio-shape",Q)},_.H("input",{el:d,class:"yt-radio-shape__input",id:C,"prop:checked":x,name:E,type:"radio",disabled:t,"on:change":O,"on:click":a,"aria-label":V,"on:focusin":F,"on:focusout":W}),_.H("label",{class:_.X5("yt-radio-shape__label-container",f,(K["yt-radio-shape--compact"]=B,K["yt-radio-shape__label-container--keyboard-focused"]=L,K)),for:C},_.H(_.w,{cond:function(){return!(b==null?0:b())},
then:function(){return _.H(e1s,{checked:x,useCheckIcon:m,isLeading:!0,selectElementClass:R,usePassthrough:I})}}),_.H(_.w,{cond:function(){return!!A},
then:function(){var v={};return _.H("div",{class:_.X5("yt-radio-shape__label",(v["yt-radio-shape--event-passthrough"]=I,v)),"aria-hidden":function(){return(V==null?0:V())?"true":"false"}},A==null?void 0:A())}}),_.H(_.w,{cond:b,
then:function(){return _.H(e1s,{checked:x,useCheckIcon:m,isLeading:!1,selectElementClass:R,usePassthrough:I})}})))},"ke");
_.Cv.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var e1s=_.l(function(t){var E=t.useCheckIcon;var p=t.selectElementClass;t=t.usePassthrough;var U=function(){return(E==null?0:E())?"CHECK":_.r("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"},x={};
return _.H("div",{class:_.X5("yt-radio-shape__radio",p,(x["yt-radio-shape__radio--check-icon"]=E,x["yt-radio-shape__radio--radio-default-style"]=function(){return!(p==null?0:p())},x["yt-radio-shape--event-passthrough"]=t,x)),
"aria-hidden":"true"},_.H(_.lz,{icon:U}),_.H(_.lz,{icon:U,active:function(){return!(E==null?0:E())}}))},"le");_.jB=_.l(function(t){var E=t.data;var p=t.isMenuItem;var U=t.isCompact;var x=t.onTap;var A=t.trailingAccessory;var m=t.hideSelectionTextChevron;var b=t.disabled;var f=t.inPopup;var B=t.disableHorizontalPadding;var R=t.isOverlay;var V=t.isToggled;var Q=t.ariaLabel;var C=t.ariaPressed;var d=t.shouldNotFillIcon;var I=!_.r("web_enable_killswitch_for_selectable_list_item_on_tap_fix");t=!_.r("web_enable_killswitch_for_skip_child_tags");var O=_.D4(function(ps){return RyD(E(),ps)}),a=function(){return(B==
null?void 0:B())||E().disableHorizontalPadding},F=function(){return _.r("enable_web_shorts_captions_language_command")||_.r("web_shorts_audio_track_picker")||E().entitySelectorType==="LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE"},L=function(){return F()?Object.assign({},E(),O().data):E()},D=function(){return!!L().isDisabled||!(b==null||!b())},W=_.Q1i(function(){return L().rendererContext}),K=function(){return!(L().isSelected===void 0||!L().selectionStyle||L().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
v=function(){return(_.te(L().rendererContext)||x)&&!K()},YL={},bY=_.X5("yt-list-item-view-model__container",(YL["yt-list-item-view-model__container--tappable"]=function(){return _.te(L().rendererContext)||K()},YL["yt-list-item-view-model__container--compact"]=U,YL["yt-list-item-view-model__container--in-popup"]=f,YL["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(a==null?void 0:a())&&K()},YL)),kL=function(){return L().leadingImage||L().leadingAccessory},R0=_.X5("yt-list-item-view-model__image-container",
function(){return kL()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
YL=_.Cy8();var j$=_.M(_.Py(!1,void 0,"D1Nwsd")),lY=j$.next().value,Tt=j$.next().value,si=function(){return _.H(XRr,{data:L,hideSelectionTextChevron:m,TrailingAccessory:A,isToggled:V,disabled:b,isSelectItem:K,isCompact:U,inPopup:f,disableHorizontalPadding:a,isTappableWithoutSelect:v,useButtonOrAnchor:Q0,onTap:x,shouldNotFillIcon:d})},Q0=_.r("web_button_or_anchor_list_item");
j$={};return _.H("yt-list-item-view-model",{el:_.V9(_.EX(function(){return D()?void 0:L().rendererContext},void 0,void 0,Q0?["A".toString(),
"BUTTON".toString()]:[]),V7J(function(ps){if(!D()){var $L;if($L=I)$L=L().selectionStyle,$L=$L==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||$L==="LIST_ITEM_SELECTION_STYLE_RADIO"||$L==="LIST_ITEM_SELECTION_STYLE_DEFAULT";$L||x==null||x(ps)}},t?["A".toString(),
"BUTTON".toString()]:[]),XhJ(function(){return v==null?void 0:v()},{focusin:function(){var ps;
((ps=_.X3().resolve(_.OB(_.FA)))==null?0:ps.isKeyBoardInUse())&&Tt(!0)},
focusout:function(){Tt(!1)}})),
class:_.X5("yt-list-item-view-model",(j$["yt-list-item-view-model--is-overlay"]=R,j$["yt-list-item-view-model--keyboard-focused"]=lY,j$["yt-list-item-view-model--hidden"]=function(){return F()?O().isHidden:!1},j$)),
role:function(){return(p==null?0:p())?"menuitem":"listitem"},
tabindex:function(){var ps=v();ps=Q0?void 0:x||ps?0:void 0;return ps},
"on:keydown":YL,"aria-label":function(){var ps;return(Q==null?void 0:Q())||((ps=W())==null?void 0:ps.label)},
"aria-pressed":C},_.H(_.w,{cond:K,then:function(){return _.H(_.SC,null,_.H(_.Kw,{when:function(){return L().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.H(a0r,{labelRenderable:si,
isCompact:U,checked:function(){return L().isSelected},
hasLeadingLabel:function(){return!!kL()},
labelClass:bY,selectElementClass:R0,disableHorizontalPadding:a,onClick:I?x:void 0,disabled:D})}),_.H(_.Kw,{when:function(){return L().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.H(_.Cv,{labelRenderable:si,
isCompact:U,checked:function(){return L().isSelected},
hasLeadingLabel:function(){return!!kL()},
labelClass:bY,selectElementClass:R0,onClick:I?x:void 0,disabled:D})}),_.H(_.Kw,{when:function(){return L().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.H(_.Cv,{labelRenderable:si,
isCompact:U,checked:function(){return L().isSelected},
hasLeadingLabel:function(){return!!kL()},
labelClass:bY,selectElementClass:R0,useCheckIcon:!0,onClick:I?x:void 0,disabled:D})}),_.H(_.vv,null,si))},
else:si}))},"me");
_.jB.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.r$=_.l(function(t){var E=_.M(_.L$({canHaveZeroSize:!1})),p=E.next().value;E=E.next().value;var U=function(){return X1K(p.width(),t.data().responsiveContainerConfiguration)||JaD(p.width(),t.data().linearLayoutContainerConfiguration)};
return _.H("yt-linear-layout-view-model",{el:_.V9(E),class:"ytLinearLayoutViewModelHost"},_.H("div",{class:_.X5("ytLinearLayoutViewModelContainer",function(){a:switch(t.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var x="ytLinearLayoutViewModelHorizontal";break a;default:x="ytLinearLayoutViewModelVertical"}return x},function(){var x=t.data().linearLayoutContainerConfiguration;
return x?[kuY(x.flexDirection),dPY(x.justifyContent),ud8(x.alignItems)].join(" "):""}),
style:function(){var x;var A=((x=U())==null?void 0:x.containerStyles)||{};return _.zO(A)()}},_.H(_.sY,{data:function(){return t.data().items},
wrapper:function(x,A,m){return _.H("div",{style:function(){var b=m(),f;if((f=U())==null)b=void 0;else{var B=f.itemStyles,R=b===0,V,Q;var C=(Q=(V=t.data().items)==null?void 0:V.length)!=null?Q:0;b=B.call(f,R,b===C-1)}return _.zO(b||{})()}},x())}},{lockupViewModel:function(x){return _.H(_.WM,{data:x.data,
containerLayoutConfig:function(){var A;return(A=U())==null?void 0:A.containerLayoutConfig}})},
basicContentViewModel:_.Qn,buttonViewModel:_.D5,linearLayoutViewModel:_.r$,thumbnailViewModel:zR,descriptionPreviewViewModel:_.KU,listItemViewModel:_.jB,sectionHeaderViewModel:_.v_})))},"ne");_.k2(_.r$,"yt-linear-layout-view-model",{props:{data:_.uu}});_.k2(_.ye,"chips-shelf-view-model",{props:{data:_.uu,callback:_.Cy,selectionBehavior:_.uu,disableChipsScrollAnimation:_.uu,nextButtonStyle:_.uu}});_.k2(_.l(function(t){return _.H("yt-comment-filter-context-view-model",{class:_.X5("ytCommentFilterContextHost",t.className)},_.H(_.d8,{text:function(){return t.data().text}}))},"oe"),"yt-comment-filter-context-view-model",{props:{data:_.uu,
className:_.Cy}});_.F4X=_.l(function(t){var E=t.data;var p=t.onTap;var U=t.onSwitch;var x=t.overrideDisabled;t=t.disableHorizontalPadding;var A=_.M(_.j5(function(){var Q;return((Q=BdO(R()))==null?void 0:Q.switchedOnByDefault)||!1})),m=A.next().value,b=A.next().value;
A=_.M(_.Py(!1,void 0,"V0hCrd"));var f=A.next().value,B=A.next().value,R=function(){var Q;if(!(Q=E().switchButton)){var C=E();Q=x==null?void 0:x();C={switchOnCommand:C.switchOnCommand,switchOffCommand:C.switchOffCommand,switchedOnByDefault:C.switchedOnByDefault,isDisabled:C.isDisabled,a11yLabelSwitchedOn:C.a11yLabelSwitchedOn,a11yLabelSwitchedOff:C.a11yLabelSwitchedOff};Q!==void 0&&(C.isDisabled=Q);Q={switchButtonViewModel:C}}return Q},V=function(Q){var C=BdO(R());
!C||C.isDisabled||E().ignoreTapUntilCommandCompletes&&f()||(p==null||p(Q),HIJ(C,m(),Q,E().ignoreTapUntilCommandCompletes,B),b(!m()),U==null||U(m()))};
return _.H("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.H(_.jB,{data:function(){return{title:E().title,subtitle:E().attributedSubtitle,leadingImage:E().leadingImage,leadingAccessory:E().leadingAccessory,isDisabled:E().isDisabled}},
onTap:V,isToggled:m,shouldNotFillIcon:!0,trailingAccessory:function(){return _.H(_.sY,{data:R},{switchButtonViewModel:function(Q){return _.H(g54,{data:Q.data,parentActive:m,onTap:V})}})},
disableHorizontalPadding:t}))},"pe");var z1s=_.l(function(t){var E=t.data;t=t.className;var p=function(){var b;return((b=U())==null?void 0:b.isToggled)!==void 0},U=_.D4(function(b){E();
var f=E().entitySelectorType;if(f)switch(f){case "TOGGLEABLE_LIST_ITEM_ENTITY_SELECTOR_TYPE_TOGGLE_MENU_SERVICE_ITEM_ENTITY":break;default:_.qW(new _.cC("Error: entitySelectorType defined but not matched in selector.",b,f))}}),x=_.M(_.j5(function(){var b,f,B;
return p()?(b=U())==null?void 0:b.isToggled:(f=E())==null?void 0:(B=f.initialState)==null?void 0:B.isToggled})),A=x.next().value,m=x.next().value;
return _.H("toggleable-list-item-view-model",{el:_.V9(_.EX(function(){return E().rendererContext},{onTap:function(b,f){f();
p()||m(!A())}})),
class:_.X5("toggleableListItemViewModelHost",t)},_.H(_.w,{cond:function(){if(A()){var b=E().toggledListItem;b=_.k(b,_.on)}else b=E().defaultListItem,b=_.k(b,_.on);return b},
then:function(b){return _.H(_.jB,{data:b,isToggled:A,ariaLabel:function(){var f=A()?E().toggledListItem:E().defaultListItem,B;f=(B=_.k(f,_.on))==null?void 0:B.rendererContext;var R;return(R=_.k(f,_.PY))==null?void 0:R.label},
ariaPressed:function(){return A()}})}}))},"qe");var l04=_.zF("DOWNLOAD",{},"Download"),GDX=_.zF("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),n50=_.zF("RETRY",{},"Retry"),NQ3=_.zF("PAUSE_DOWNLOADING",{},"Pause downloading"),DzT=_.zF("RESUME_DOWNLOAD",{},"Resume download"),hyD={text:l04,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},WY={text:GDX,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},FsO={text:n50,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
aWE={text:NQ3,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},ey_={text:DzT,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var sWX=_.l(function(t){var E=function(){var b=t.data();b=_.c9(b.rendererContext);var f;return(f=_.k(b,_.lA))==null?void 0:f.videoId},p=_.D4(function(b){var f=E(),B=Gu8(t.data());
return f?_.xz(b,f):B?_.Af(b,B):"TRANSFER_STATE_UNKNOWN"}),U=_.nd(_.pe$,E),x=_.D4(function(b){return _.K3$(b,E(),Gu8(t.data()))}),A=function(){return lWO(p(),U(),_.c9(t.data().rendererContext),!!Gu8(t.data()))},m=function(){return x()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.H("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:m},_.H(_.w,{cond:function(){return!m()},
then:function(){return _.H(_.w,{cond:A,then:function(b){return _.H(_.yG,{each:b},function(f){return _.H(_.jB,{data:f,isCompact:t.isCompact,isMenuItem:t.isMenuItem,inPopup:t.inPopup,disableHorizontalPadding:t.disableHorizontalPadding})})}})}}))},"re");
sWX.idomCompat=!0;_.L4p=_.l(function(t){var E=t.data;var p=t.isCompact;var U=t.hideSelectionTextChevron;var x=t.inPopup;var A=t.isOverlay;var m=t.disableHorizontalPadding;var b=function(){return nP$(E())&&(x==null?void 0:x())},f=_.r("web_list_view_model_listbox_killswitch")?"menu":"listbox";
t=_.aC(function(R){if(x!=null&&x()&&_.r("web_enable_arrow_key_navigation_in_dropdown")){var V=_.M$8(R.currentTarget);if(V.length!==0){var Q=Array.prototype.indexOf.call(V,document.activeElement);switch(R.key){case "ArrowDown":R.preventDefault();NdJ(V,Q);break;case "ArrowUp":R.preventDefault();DPl(V,Q);break;case "Tab":R.preventDefault(),R.shiftKey?DPl(V,Q):NdJ(V,Q)}}}});
var B={};return _.H("yt-list-view-model",{class:_.X5("ytListViewModelHost",(B.ytListViewModelHostKaiosSpatNav=l$$&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",B)),role:function(){return b()?f:"list"},
style:_.zO({"max-height":function(){var R,V=(R=E())==null?void 0:R.visibleElementCount;if(V)return(V+.5)*40+"px"}}),
"on:keydown":t},_.H(_.sY,{data:function(){return E().listItems}},{listItemViewModel:function(R){return _.H(_.jB,{data:R.data,
isMenuItem:b,isCompact:p,hideSelectionTextChevron:U,inPopup:x,isOverlay:A,disableHorizontalPadding:m})},
toggleableListItemViewModel:function(R){return _.H(z1s,{data:R.data})},
downloadListItemViewModel:function(R){return _.H(sWX,{data:R.data,isMenuItem:b,isCompact:p,inPopup:x,disableHorizontalPadding:m})},
switchListItemViewModel:function(R){return _.H(_.F4X,{data:R.data,disableHorizontalPadding:m})}}))},"se");
_.L4p.idomCompat=!0;var P6r=_.l(function(t){var E=t.data;var p=t.isOverlay;t={};return _.H("yt-course-perks-view-model",{class:_.X5("ytwCoursePerksViewModelHost",(t.ytwCoursePerksViewModelHostOverlay=p,t))},_.H("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.H(_.d8,{text:function(){return E().title}})),_.H("div",null,_.H(_.w,{cond:function(){return E().perks},
then:function(U){return _.H(_.L4p,{data:function(){return{listItems:U()}},
isCompact:!0,isOverlay:p})}})))},"te");_.k2(P6r,"yt-course-perks-view-model",{props:{data:_.Cy,isOverlay:_.Cy}});_.k2(_.l(function(t){var E=t.data;return _.H("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.H("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.H(_.d8,{text:function(){return E().title}})),_.H("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.H(_.d8,{text:function(){return E().progressSummary}})),_.H("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.H("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.zO({width:function(){return E().progressPercentage*100+"%"}})})))},"ue"),"yt-course-progress-view-model",{props:{data:_.uu}});var TQo=_.l(function(t){var E={};return _.H("yt-progress-view-model",{class:_.X5("ytwProgressViewModelHost",(E.ytwProgressViewModelHostOverlay=_.Ql(t.isOverlay,!1),E))},_.H(_.w,{cond:function(){return t.data().progressSummary},
then:function(p){return _.H("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.H(_.d8,{text:p}))}}),_.H("div",{class:"ytwProgressViewModelHostProgressContainer"},_.H(_.w,{cond:function(){return t.data().leadingLabel},
then:function(p){return _.H("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.H(_.d8,{text:p}))}}),_.H("div",{class:"ytwProgressViewModelHostProgressBar"},_.H("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(t.data().progressPercentage||0)*100+"%"}}))))},"ve");var kq=_.l(function(t){var E=t.starNumber;var p=t.data;var U=function(){var x;return((x=p())==null?void 0:x.rating)||0};
return _.H(_.w,{cond:function(){return E()},
then:function(x){return _.H(_.SC,null,_.H(_.Kw,{when:function(){return U()>=x()-.25}},function(){return _.H("div",{class:"ytStarRatingViewModelHostStar"},_.H(_.lz,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.H(_.Kw,{when:function(){return U()>=x()-.75}},function(){return _.H("div",{class:"ytStarRatingViewModelHostStar"},_.H(_.lz,{icon:"STAR_HALF",
active:!0,size:function(){return 24}}))}),_.H(_.vv,null,function(){return _.H("div",{class:"ytStarRatingViewModelHostStar"},_.H(_.lz,{icon:"STAR",
size:function(){return 24}}))}))}})},"we"),o5r=_.l(function(t){t=t.data;
return _.H("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.H(kq,{starNumber:1,data:t}),_.H(kq,{starNumber:2,data:t}),_.H(kq,{starNumber:3,data:t}),_.H(kq,{starNumber:4,data:t}),_.H(kq,{starNumber:5,data:t}))},"xe");_.k2(_.l(function(t){var E=_.C4(t,{}).data;return _.H("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.H("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.H(_.d8,{text:function(){var p;return(p=E())==null?void 0:p.title}})),_.H("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.H(_.w,{cond:function(){return E().starProgressViewModels},
then:function(p){return _.H("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.H(_.sY,{data:p},{progressViewModel:TQo}))}}),_.H("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.H("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.H(_.d8,{text:function(){var p;
return(p=E())==null?void 0:p.averageRatingLabel}})),_.H(_.w,{cond:function(){return E().zeroStateText},
then:function(p){return _.H("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.H(_.d8,{text:p}))}}),_.H(_.w,{cond:function(){return E().starRatingViewModel},
then:function(p){return _.H("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.H(_.sY,{data:p},{starRatingViewModel:o5r}))}}),_.H("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.H(_.d8,{text:function(){var p;
return(p=E())==null?void 0:p.totalRatingsCountLabel}})))))},"ye"),"yt-course-ratings-view-model",{props:{data:_.Cy}});var W4W;W4W={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"}};_.$zm=_.l(function(t){var E=_.EB("yt-learning-journey-loader-view-model"),p=_.F0();_.xa(function(){requestAnimationFrame(function(){var x;(x=p.lottieEl)==null||x.addEventListener("DOMLoaded",function(){var A;(A=t.onLottieLoaded)==null||A.call(t)})});
var U=t.data().browseEndpoint;U&&_.bz(U)});
return _.H("yt-learning-journey-loader-view-model",{class:_.X5("learningJourneyLoaderViewModelHost",t.className),"data-target-id":function(){return t.data().targetId||""},
el:E},_.H(_.Wg,{className:_.X5("learningJourneyLoaderViewModelLoader",t.className),animationName:function(){return W4W.animationConfig.name},
data:W4W,animationRef:p}))},"Ae");_.k2(_.$zm,"yt-learning-journey-loader-view-model",{props:{data:_.uu,className:_.Cy,onLottieLoaded:_.Cy}});var K43=_.l(function(t){var E=function(){return t.data()},p=function(){return!!_.yj(_.K$(E())).optionColor},U=_.M(_.Py(-1,void 0,"gXOYR")),x=U.next().value,A=U.next().value,m=function(V){return x()===V},b=function(V){return E().correctAnswerIndex===V},f=function(){return x()!==-1};
U=_.M(_.Py("",void 0,"BFwDQb"));var B=U.next().value,R=U.next().value;return _.H("learning-journey-quiz-view-model",{class:_.X5("learningQuizComponentHost","learningJourneyQuizYoututorHost",t.className),style:_.zO({background:function(){return _.yj(_.K$(E())).backgroundColor}})},_.H("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},B),_.H("div",{class:"learningQuizComponentQuizContainer"},_.H("div",{class:"learningQuizComponentQuiz"},_.H("div",{class:"learningQuizComponentQuizContent"},_.H(_.w,{cond:function(){return!!E().aiGeneratedQuizLabel},
then:function(){return _.H("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.H(_.d8,{text:function(){return E().aiGeneratedQuizLabel}}))}}),_.H("div",{class:"learningQuizComponentQuizHeader",
style:_.zO({"align-items":function(){return E().overflowMenu?"start":"center"}})},_.H("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.zO({"min-height":function(){return E().overflowMenu?"48px":"26px"}})},_.H("div",{class:"learningJourneyQuizYoututorText",
style:_.zO({color:function(){return _.yj(_.K$(E())).primaryTextColor}})},_.H(_.d8,{text:function(){return E().questionHeaderText}})))),_.H("div",{class:"learningQuizComponentQuizSubheader",
style:_.zO({color:function(){return _.yj(_.K$(E())).secondaryTextColor}})},_.H(_.d8,{text:function(){var V=E();
return f()?V.explanationText:V.questionSubheaderText}}))),_.H("div",{role:"group",
class:_.X5("learningQuizComponentQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.H(_.yG,{each:function(){return E().optionsData||[]}},function(V,Q){var C={};
return _.H("button",{class:_.X5("learningQuizComponentQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(C.learningQuizComponentQuizHover=function(){return!f()},C.learningQuizComponentQuizOptionWithCustomColor=p,C.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return f()&&b(Q())},C.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return x()!==E().correctAnswerIndex&&m(Q())},C.learningQuizComponentQuizIncorrectShake=
function(){return x()!==E().correctAnswerIndex&&m(Q())},C)),
"on:click":_.aC(function(){_.bA(_.Pu(),{data:V});if(f())return!1;A(Q());var d,I;R(b(Q())?((d=E().successTitle)==null?void 0:d.content)||"":((I=E().failureTitle)==null?void 0:I.content)||"");return!1}),
style:_.zO({background:"transparent"}),"aria-description":function(){var d,I;return f()?b(Q())?(d=E().successTitle)==null?void 0:d.content:(I=E().failureTitle)==null?void 0:I.content:""},
"aria-disabled":f},_.H("div",{class:"learningQuizComponentQuizOptionContainer"},_.H(_.d8,{text:V.optionText}),_.H(_.w,{cond:function(){var d=Q();return f()&&(m(d)||b(d))},
then:function(){var d={};return _.H(_.lz,{className:_.X5("learningJourneyQuizYoututorOptionIcon",(d.learningQuizComponentQuizPulse=function(){return x()===E().correctAnswerIndex&&b(Q())},d)),
size:24,icon:function(){return b(Q())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.H(_.w,{cond:f,
then:function(){return _.H("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.H("div",{class:"learningJourneyQuizYoututorExplanationText"},_.H(_.d8,{text:function(){return E().explanationHeaderText}})),_.H(_.d8,{text:function(){return E().optionsData[x()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"Be");
K43.idomCompat=!0;Object.freeze&&Object.freeze(Object.create(null));var Td_=function(){},v5f;
(v5f=window.requestIdleCallback)==null||v5f.bind(window);var LsO=new Set,s1E=null;var ynZ;_.SIp=_.l(function(t){var E=null,p=null,U=null,x=function(){return t.data()},A=function(){return _.yj(_.K$(x()))},m=function(){return!!A().optionColor},b=_.M(_.Py(-1,void 0,"H2gnQb")),f=b.next().value,B=b.next().value,R=function(D){return f()===D},V=function(D){return x().correctAnswerIndex===D},Q=function(){return f()!==-1},C=function(){return f()===x().correctAnswerIndex},d=function(){var D=x(),W=Q(),K=C();
return W?K?D.successTitle:D.failureTitle:D.questionHeaderText},I=function(){var D=Q(),W=C();
return D?W?264685:264684:264683},O=function(){var D=x();
return Q()?D.explanationText:D.questionSubheaderText},a=function(){return!!x().video},F=function(D){return C()&&V(D)},L=_.aC(function(){B(-1);
return!1});
return _.H(_.w,{cond:function(){return x().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.H(K43,{data:function(){return x()}})},
else:function(){return _.H("learning-journey-quiz-view-model",{class:_.X5("learningQuizComponentHost",t.className),style:_.zO({background:function(){return A().backgroundColor}})},_.H(_.w,{cond:a,
then:function(){return _.H("div",{class:"learningJourneyQuizViewModelVideoContainer",style:_.zO({background:function(){return A().videoBackgroundColor}})},_.H(_.sY,{data:function(){return x().video}},{lockupViewModel:function(D){return _.H(_.WM,{data:D.data,
containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),_.H("div",{class:"learningQuizComponentQuizContainer"},_.H("div",{class:"learningQuizComponentQuiz"},_.H("div",{class:"learningQuizComponentQuizContent"},_.H(_.w,{cond:function(){return!!x().aiGeneratedQuizLabel},
then:function(){return _.H("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.H(_.d8,{text:function(){return x().aiGeneratedQuizLabel}}))}}),_.H("div",{class:"learningQuizComponentQuizHeader",
style:_.zO({"align-items":function(){return x().overflowMenu?"start":"center"}})},_.H("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.zO({"min-height":function(){return x().overflowMenu?"48px":"26px"}})},_.H("div",{class:"learningJourneyQuizViewModelQuizHeaderText",
el:_.V9(function(D){_.SY(I(),D,E,function(W){E=W})}),
style:_.zO({color:function(){return A().primaryTextColor}}),
"client-ve-type":I},_.H(_.d8,{text:d}))),_.H("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},_.H(_.w,{cond:Q,then:function(){return _.H("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:_.V9(function(D){_.SY(264687,D,p,function(W){p=W})}),
"on:click":L,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.H("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.zO({fill:function(){return A().primaryTextColor}})},_.H("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"})))}}),
_.H(_.sY,{data:function(){return x().overflowMenu}},{buttonViewModel:function(D){return _.H(_.D5,{data:D.data})}}))),_.H("div",{class:"learningQuizComponentQuizSubheader",
el:_.V9(function(D){_.SY(264688,D,U,function(W){U=W})}),
style:_.zO({color:function(){return A().secondaryTextColor}}),
"client-ve-type":264688},_.H(_.d8,{text:O}))),_.H("div",{role:"group",class:"learningQuizComponentQuizOptionsList"},_.H(_.yG,{each:function(){return x().optionsData||[]}},function(D,W){var K={};
return _.H("button",{class:_.X5("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(K.learningQuizComponentQuizHover=function(){return!Q()},K.learningQuizComponentQuizOptionWithCustomColor=m,K.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){return F(W())},K.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!C()&&R(W())},K.learningQuizComponentQuizIncorrectShake=function(){return!C()&&
R(W())},K.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return Q()&&!R(W())},K)),
"on:click":_.aC(function(){_.bA(_.Pu(),{data:D});if(Q())return!1;B(W());return!1}),
style:_.zO({background:function(){var v=W();return Q()&&R(v)?"":m()?A().optionColor:"transparent"}}),
"aria-disabled":Q},_.H("div",{class:"learningQuizComponentQuizOptionContainer"},_.H(_.w,{cond:Q,then:function(){return _.H(ynZ,{isOptionCorrect:V,optionIndex:W,isOptionSelectedAndCorrect:F,colors:A})}}),_.H(_.d8,{text:D.optionText})))})))))}})},"Ce");
ynZ=_.l(function(t){var E={};return _.H("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var p=t.optionIndex();return t.isOptionCorrect(p)?"0 0 24 24":"0 -960 960 960"},
class:_.X5("learningJourneyQuizViewModelQuizOptionIconLeading",(E.learningQuizComponentQuizPulse=function(){return t.isOptionSelectedAndCorrect(t.optionIndex())},E)),
style:_.zO({fill:function(){return t.colors().primaryTextColor}})},_.H("path",{d:function(){var p=t.optionIndex();
return t.isOptionCorrect(p)?"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"}}))},"De");
_.SIp.idomCompat=!0;_.k2(_.SIp,"learning-journey-quiz-view-model",{props:{data:_.uu,className:_.uu}});var cnm=_.l(function(t){var E=_.M((0,_.Aam)(function(){var m;return{targetId:(m=t.data().config)==null?void 0:m.suspenseKey,contents:[t.data()]}})).next().value,p=_.X3().resolve(_.ei),U=function(){var m=E().contents.length>0?E().contents[0]:void 0;
return m==null?void 0:m.config},x=function(){var m;
return(m=U())==null?void 0:m.entityTriggerConfig},A=_.nd(NfD,function(){var m,b;
return(b=(m=x())==null?void 0:m.entityKey)!=null?b:""});
_.M$(function(){var m,b,f,B=(f=Number((m=x())==null?void 0:(b=m.invalidationTimestamp)==null?void 0:b.seconds))!=null?f:0,R,V,Q;if(((Q=Number((R=A())==null?void 0:(V=R.lastUpdated)==null?void 0:V.seconds))!=null?Q:0)>B){var C;(m=(C=U())==null?void 0:C.continuationCommand)&&p.resolveCommand(m)}},"tC8nKe");
return _.H("yt-suspense-view-model",{class:_.X5("ytSuspenseViewModelHost")},_.H(_.sY,{data:function(){var m;return(m=U())==null?void 0:m.contents}},{lockupViewModel:_.WM}))},"Fe");var t$5=_.l(function(t){var E=_.C4(t,{palette:void 0,isLastItem:!1}),p=E.palette,U=E.isLastItem,x=function(){return t.data().isHighlighted},A=function(){var f;
return oP_((f=p())==null?void 0:f.iconDisabledColor)},m=function(){var f;
return oP_((f=p())==null?void 0:f.primaryTitleColor)},b=function(){var f;
return oP_((f=p())==null?void 0:f.secondaryTitleColor)};
E={};return _.H("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.V9(_.EX(function(){return t.data().rendererContext}))},_.H(_.sY,{data:function(){return t.data().thumbnail}},{thumbnailViewModel:zR}),_.H("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.H("div",{class:_.X5("ytMacroMarkerListItemViewModelTimeDescription",(E.ytMacroMarkerListItemViewModelHighlighted=x,E)),
style:_.zO({"background-color":function(){return x()?m():A()},
color:function(){return x()?"":b()}})},_.H(_.d8,{text:function(){return t.data().timestamp}})),_.H("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.zO({"background-color":function(){return U()?"transparent":A()}})}),_.H("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(x()?m():b())}},_.H(_.d8,{text:function(){return t.data().title}}))))},"Ge");_.d$=_.l(function(t){function E(Gt){F("transform:translateX("+(_.qO("HTML_DIR")==="rtl"?"":"-")+Gt+"px)")}
function p(Gt){return Math.min(Math.max(Gt,0),a()-v())}
function U(Gt){var V0=W()+R0();if(!x())return 0;Gt===void 0&&(Gt=Math.round(v()/V0)||1);return Gt*V0}
var x=function(){return t.data().items||[]},A=function(){return t.data().previousButton},m=function(){return t.data().nextButton},b=function(){var Gt,V0;
return(V0=(Gt=t.disableArrows)==null?void 0:Gt.call(t))!=null?V0:!1},f=function(){var Gt;
return!((Gt=t.forceNarrowLayout)==null||!Gt.call(t))},B=_.KN(function(){var Gt;
return!((Gt=t.centerAlignItems)==null||!Gt.call(t))&&a()<=v()},void 0,"iGOqxd"),R=_.EB("horizontal-shelf-view-model"),V=_.EB("div"),Q=_.M(_.Py(0,void 0,"tieKmf")),C=Q.next().value,d=Q.next().value;
Q=_.M(_.Py(0,void 0,"W2lvv"));var I=Q.next().value,O=Q.next().value,a=I;I=_.M(_.Py("",void 0,"PEePkc"));Q=I.next().value;var F=I.next().value;I=_.M(_.Py(0,void 0,"c7a4W"));var L=I.next().value,D=I.next().value,W=L;I=_.M(_.Py(0,void 0,"KGhRJf"));L=I.next().value;var K=I.next().value,v=L;I=_.M(_.Py(!1,void 0,"fgWgyc"));var YL=I.next().value,bY=I.next().value;I=_.M(_.Py(0,void 0,"pe79rc"));L=I.next().value;var kL=I.next().value,R0=L;I=_.M(_.Py(0,void 0,"CTqisc"));var j$=I.next().value,lY=I.next().value;
I=_.M(_.Py(0,void 0,"S2Yf1b"));var Tt=I.next().value,si=I.next().value;I=_.M(_.Py("50%",void 0,"kjP5ke"));var Q0=I.next().value,ps=I.next().value,$L=function(){var Gt,V0=(Gt=t.data())==null?void 0:Gt.responsiveContainerConfiguration,SW,h3;return V0?mH(V0==null?void 0:V0.responsiveSize):(h3=(SW=t.sizing)==null?void 0:SW.call(t))!=null?h3:"STANDARD"},Cs=function(){var Gt,V0=(Gt=t.data())==null?void 0:Gt.responsiveContainerConfiguration;
return V0?V0.enableContentSpecificAspectRatio===!1:!1};
I=_.KN(function(){return!b()&&C()>0},void 0,"jT8Bud");
L=_.KN(function(){return!b()&&C()<a()-v()},void 0,"mt4gsb");
var km=function(){R.value!==null&&l8()},ZT;
_.A6(function(){l8();window.ResizeObserver?(ZT=new ResizeObserver(_.tI(km,0)),ZT.observe(R.value)):window.addEventListener("resize",km)});
_.iK(function(){if(window.ResizeObserver){var Gt;(Gt=ZT)==null||Gt.disconnect()}else window.removeEventListener("resize",km)});
var l8=function(){var Gt=R.value.clientWidth,V0=t.includeMargin!==void 0?t.includeMargin():!1,SW;var h3=t.hasPeek!==void 0?t.hasPeek():!((SW=t.data())==null||!SW.hasPeek);Gt=_.M6({containerWidth:Gt,hasPeek:h3,sizing:$L(),marginSettings:V0?f()?4:1:0});kL(Gt.gutter);lY(Gt.margin);D(Gt.itemWidth);bY(Gt.maxContainerWidth<528||f());K(Gt.maxContainerWidth);x()&&O((Gt.itemWidth+Gt.gutter)*x().length-Gt.gutter);if(x()){var zX;if(((zX=t.thumbnailAspectRatio)==null?void 0:zX.call(t))!==void 0){var zc;ps(W()/
RlD((zc=t.thumbnailAspectRatio)==null?void 0:zc.call(t))/2+"px")}else ps("50%")}},Rt={},wE={};
return _.H("horizontal-shelf-view-model",{class:_.X5("ytwHorizontalShelfViewModelHost",t.className),el:R},_.H(_.w,{cond:function(){var Gt;return t.data().header&&!((Gt=t.horizontalShelfExperiments)==null?0:Gt.call(t).hideHeader)},
then:function(){return _.H("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.zO({width:function(){return v()+"px"},
padding:function(){return"0 "+j$()+"px"}})},_.H(_.sY,{data:function(){return t.data().header}},{sectionHeaderViewModel:function(Gt){return _.H(_.v_,{data:Gt.data,
disableHorizontalPadding:!0,forceSmallLayout:YL,useResponsiveLayout:!0})}}))}}),_.H("div",{class:_.X5("ytwHorizontalShelfViewModelOuterContainer",(Rt.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return B()},Rt)),
style:_.zO({"margin-top":function(){var Gt,V0=t.data().header&&!((Gt=t.horizontalShelfExperiments)==null?0:Gt.call(t).hideHeader),SW;return(((SW=t.ensureMarginTop)==null?0:SW.call(t))&&!V0?12:0)+"px"}})},_.H("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.zO({width:function(){return v()+"px"},
padding:function(){return"0 "+j$()+"px"},
overflow:function(){return b()?"auto":"hidden"}})},_.H("div",{class:_.X5("ytwHorizontalShelfViewModelItems",(wE.ytwHorizontalShelfViewModelCenterAlignItems=function(){return B()},wE)),
el:V,style:Q},_.H(_.sY,{data:x},{macroMarkerListItemViewModel:function(Gt,V0){return _.H("div",{style:_.zO({width:function(){return W()+"px"},
"margin-right":function(){return(V0()===x().length-1?0:R0())+"px"}})},_.H(t$5,{data:Gt.data,
palette:_.Ql(t.palette),isLastItem:function(){return V0()===x().length-1}}))},
lockupViewModel:function(Gt,V0){var SW=Gt.data;return _.H("div",{"on:focusin":_.aC(function(){var h3=V0();h3!==Tt()&&(h3<Tt()?d(p(C()-U(1))):d(p(C()+U(1))),E(C()),si(h3));return!0}),
style:_.zO({width:function(){return W()+"px"},
"margin-right":function(){return(V0()===x().length-1?0:R0())+"px"}})},_.H(_.WM,{data:SW,
containerType:4,sizing:$L,protectBackground:t.protectBackground,thumbnailFixedWidth:function(){return WsJ(SW())+"px"},
thumbnailTargetWidth:function(){return WsJ(SW())},
force16By9ThumbnailAspectRatio:Cs}))},
suspenseViewModel:function(Gt,V0){return _.H("div",{style:_.zO({width:function(){return W()+"px"},
"margin-right":function(){return(V0()===x().length-1?0:R0())+"px"}})},_.H(cnm,{data:Gt.data}))}}))),_.H(_.w,{cond:I,
then:function(){return _.H("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.zO({top:function(){return Q0()}})},_.H(_.sY,{data:A},{buttonViewModel:function(Gt){return _.H(_.D5,{data:Gt.data,
onClick:function(){d(p(C()-U(void 0)));E(C())}})}}))}}),_.H(_.w,{cond:L,
then:function(){return _.H("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.zO({top:function(){return Q0()}})},_.H(_.sY,{data:m},{buttonViewModel:function(Gt){return _.H(_.D5,{data:Gt.data,
onClick:function(){d(p(C()+U(void 0)));E(C())}})}}))}})))},"He");
_.d$.idomCompat=!0;var EL7=_.l(function(t){var E=function(){return t.data().targetId||""},p=function(){var I;
return((I=t.data())==null?void 0:I.expansionEntityKey)||""},U=_.nd(_.n__,p),x=!0,A=function(){var I;
return((I=U())==null?void 0:I.value)===E()},m=function(I){_.Vl(_.P9("stringEntity",p(),{key:p(),
value:I?E():""}))};
_.xa(function(){x=!1;t.data().isExpanded&&m(!0)});
var b=function(){if(A()){var I=!0;t.onCollapse!==void 0&&(I=t.onCollapse());I&&m(!1)}else m(!0)},f=_.aC(b),B=function(){var I;
return(((I=t.accordionStyle)==null?void 0:I.call(t))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},R=_.EB("div"),V=function(){var I,O;
return(O=(I=_.k(t.data().rendererContext,_.PY))==null?void 0:I.label)!=null?O:""},Q=function(){var I,O;
return{disabled:(I=t.hideIfNotExpanded)==null?void 0:I.call(t),ariaHidden:(O=t.hideIfNotExpanded)==null?void 0:O.call(t)}},C={},d={};
return _.H("yt-accordion-item-view-model",{class:_.X5("ytAccordionItemViewModelHost",t.className,(C.ytAccordionItemViewModelExpanded=function(){return A()},C.ytAccordionItemViewModelHidden=function(){var I;
return(I=t.hideIfNotExpanded)==null?void 0:I.call(t)},C.ytAccordionItemViewModelMini=B,C)),
"data-target-id":E},_.H("div",{class:"ytAccordionItemViewModelContainer"},_.H("div",{class:"ytAccordionItemViewModelLeftSection","on:click":f,title:V,"aria-hidden":function(){var I;return(I=t.hideIfNotExpanded)==null?void 0:I.call(t)}},_.H(_.d8,{text:function(){return t.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:V})),_.H("div",{class:"ytAccordionItemViewModelRightSection"},_.H(_.sY,{data:function(){return A()?t.data().expandButton:t.data().collapseButton}},{buttonViewModel:function(I){return _.H(_.D5,{data:I.data,
className:"ytAccordionItemViewModelToggleButton",onClick:b,buttonOverrides:Q})}}))),_.H("div",{class:"ytAccordionItemViewModelContainer"},_.H("div",{class:_.X5("ytAccordionItemViewModelContent",(d.ytAccordionItemViewModelExpandedSubtitle=function(){return A()},d)),
el:R,style:_.zO({"max-height":function(){return x?"auto":A()?R.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!A()}},_.H(_.w,{cond:function(){return!B()},
then:function(){return _.H(_.d8,{text:function(){return t.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.H(_.sY,{data:function(){return t.data().content}},{horizontalShelfViewModel:function(I){return _.H(_.d$,{data:I.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Je");_.p8C=_.l(function(t){var E=_.M((0,_.Aam)(t.data)).next().value,p=function(){return t.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},U=function(){return p()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},x=_.M(_.Py(!0,void 0,"VFpYAb")),A=x.next().value,m=x.next().value,b=function(){return U()&&A()},f=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){m(!A())}}},B=_.aC(function(){E().onTitleTap&&_.bz(E().onTitleTap||{})});
x={};return _.H("yt-accordion-view-model",{class:_.X5("ytAccordionViewModelHost",(x.ytAccordionViewModelMinimized=function(){return b()},x)),
"data-target-id":function(){return t.data().targetId||""}},_.H(_.w,{cond:function(){return U()||!!E().title},
then:function(){return _.H("div",{class:"ytAccordionViewModelHeader"},_.H("div",{class:"ytAccordionViewModelTitleSection"},_.H("div",{class:"ytAccordionViewModelTitleWrapper"},_.H(_.w,{cond:function(){return!!t.data().headerIcon},
then:function(){return _.H(_.lz,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var R;return(R=t.data().headerIcon)==null?void 0:R.iconType}})}}),_.H("div",{class:"ytAccordionViewModelTitle",
"on:click":B},_.H(_.d8,{className:"ytAccordionViewModelTitleText",text:function(){return E().title}})))),_.H("div",{class:"ytAccordionViewModelButtonSection"},_.H(_.w,{cond:U,
then:function(){return _.H(_.N7,{data:f,iconName:function(){return b()?"chevron_down":"chevron_collapse"}})}})))}}),_.H("div",{class:"ytAccordionViewModelContent"},_.H(_.sY,{data:function(){return E().contents}},{accordionItemViewModel:function(R){return _.H(EL7,{data:R.data,
className:"ytAccordionViewModelRow",accordionStyle:p,hideIfNotExpanded:b,onCollapse:function(){return U()?(m(!0),!1):!0}})}})),_.H("div",null,_.H(_.w,{cond:function(){return!U()&&(!!E().disclaimerFooter||!!E().footer)},
then:function(){return _.H("div",{class:"ytAccordionViewModelFooter"},_.H(_.d8,{text:function(){return E().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.H(_.sY,{data:function(){return t.data().footer}},{flexibleActionsViewModel:function(R){return _.H(_.wl,{data:R.data,
layout:0})}}))}})))},"Ke");_.k2(_.p8C,"yt-accordion-view-model",{props:{data:_.uu}});_.k2(_.l(function(t){var E=null,p=null,U,x=(U=_.X3().resolve(_.OB(_.Ld)))==null?void 0:U(),A=_.M(_.Py(!1,void 0,"CmEVtc"));U=A.next().value;var m=A.next().value;A=_.M(_.Py(!0,void 0,"yo9dR"));var b=A.next().value,f=A.next().value,B=_.EB("textarea",function(O){_.SY(264503,O,E,function(a){E=a})}),R=function(O){m(!0);
O={learningJourneyFormData:{query:O}};_.bz(t.data().searchEndpoint||{},{form:{formData:O}});return!1},V=_.aC(function(O){O.target.closest("button-view-model")&&m(!0)});
A=_.aC(function(){f(B.value.value.length===0)});
var Q=_.aC(function(O){if(O.key==="Enter"&&!O.shiftKey&&!b()){var a=O.target;O.preventDefault();R(a.value)}}),C={},d={},I={};
return _.H("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.H("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.H(_.Q9,{data:function(){return t.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.H("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.H("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.H("div",{class:_.X5("ytLearningJourneyZeroStateSearchBar",(C.ytLearningJourneyZeroStateSearchBarDark=x,C))},_.H("textarea",{class:_.X5("ytLearningJourneyZeroStateTextInput",(d.ytLearningJourneyZeroStateTextInputDark=x,d)),el:B,"on:keyup":A,"on:keydown":Q,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.H("div",{class:_.X5("ytLearningJourneyZeroStateSearchButtonContainer",(I.ytLearningJourneyZeroStateSearchButtonContainerDark=x,I))},_.H(_.D5,{data:function(){return _.k(t.data().searchButton,_.Cz)},
className:"search-button",onClick:function(){return R(B.value.value)},
buttonOverrides:function(){return{disabled:b(),style:x?"mono-inverse":"mono",size:"XL"}}}))),_.H(_.w,{cond:function(){return!!t.data().errorBanner},
then:function(){return _.H("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.V9(function(O){_.SY(264617,O,p,function(a){p=a})})},_.H(_.sY,{data:function(){return t.data().errorBanner}},{alertBannerViewModel:function(O){return _.H(_.dz3,{data:O.data,
"client-ve-type":264617})}}))}})),_.H(_.w,{cond:U,
then:function(){return _.H("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.H(_.sY,{data:function(){return t.data().loader}},{learningJourneyLoaderViewModel:function(O){return _.H(_.$zm,{data:O.data})}}))},
else:function(){return _.H("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.H(_.w,{cond:function(){return!!t.data().learningJourneyShelf},
then:function(){return _.H("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.H("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return t.data().learningJourneySectionTitle}),_.H(_.sY,{data:function(){return t.data().learningJourneyShelf}},{horizontalShelfViewModel:function(O){return _.H(_.d$,{data:O.data,
centerAlignItems:!0})}}))}}),_.H("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.H("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return t.data().suggestedJourneySectionTitle}),_.H("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":V},_.H(_.sY,{data:function(){return t.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(O){return _.H(_.wl,{data:O.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"Le"),"yt-learning-journey-zero-state",{props:{data:_.uu}});var UK8=_.l(function(t){var E=t.data;return _.H("ytvl-live-leaderboard-item-action-content-view-model",{class:_.X5("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.H(_.d8,{text:function(){var p;return(p=E())==null?void 0:p.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.H(_.sY,{data:function(){return E().actionButton}},{buttonViewModel:function(p){return _.H(_.D5,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:p.data})}}))},"Me");var xK9=_.l(function(t){var E=t.data;return _.H("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.X5("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.H(_.d8,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var p;return(p=E())==null?void 0:p.displayName},
ellipsisTruncate:!0}),_.H(_.sY,{data:function(){return E().badge}},{buttonViewModel:function(p){return _.H(_.D5,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:p.data})}}))},"Ne");_.k2(_.l(function(t){var E=t.data;return _.H("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.H("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.H(_.d8,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var p;return(p=E())==null?void 0:p.rank}})),_.H("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.H(_.sY,{data:function(){return E().avatar}},{avatarViewModel:_.fk})),_.H("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.H(_.sY,{data:function(){return E().content}},{liveLeaderboardItemChannelContentViewModel:xK9,
liveLeaderboardItemActionContentViewModel:UK8})),_.H(_.d8,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var p;return(p=E())==null?void 0:p.points}}))},"Oe"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.uu}});_.k2(_.l(function(t){var E=t.data;return _.H("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.H(_.d8,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var p,U;return(p=E())==null?void 0:(U=p.ranking)==null?void 0:U.rank}}),_.H("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.H(_.sY,{data:function(){return E().avatar}},{avatarViewModel:_.fk})),_.H(_.d8,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var p,U;return(p=E())==null?void 0:(U=p.channelContent)==null?void 0:U.channelName}}),_.H(_.d8,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var p;return(p=E())==null?void 0:p.points}}))},"Pe"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.uu}});var ADt=_.l(function(t){t=_.C4(t,{wrapper:!1}).wrapper;return _.H(_.w,{cond:t,then:function(){return _.H("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.H("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.H("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Qe");
ADt.idomCompat=!0;var YiJ=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],M$K=_.l(function(t){var E=t.data;var p=_.V9(),U=_.KN(function(){return E().command},void 0,"fyYsT");
_.M$(function(){U()&&_.Y2(U(),{form:{element:p.value}})},"B0nxdb");
return _.H("div",{el:p,class:"YtQrCodeRendererHostContainer"},_.H(_.w,{cond:function(){return E().qrCodeImage},
then:function(x){return _.H(_.Q9,{data:x,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.H(_.w,{cond:function(){return E().spinner},
then:function(){return _.H(ADt,null)}})}}),_.H(_.w,{cond:function(){return E().label},
then:function(x){return _.H(_.d8,{text:x,className:"YtQrCodeRendererHostLabel"})}}),_.H(_.w,{cond:function(){return E().labels},
then:function(x){return _.H("div",{class:"YtQrCodeRendererHostLabels"},_.H(_.yG,{each:x},function(A){return _.H(_.d8,{text:A})}))}}))},"Te");_.k2(_.l(function(t){var E=t.data;var p=_.KN(function(){return E().qrEntityKey},void 0,"LmZ2xf"),U=_.KN(function(){return E().deleteEntityOnDismiss},void 0,"my0Tzb"),x=_.KN(function(){return E().command},void 0,"hzECIb"),A=_.nd(cMl,p);
t=_.KN(function(){return E().qrCodeImage},void 0,"AnD9rc");
var m=_.KN(function(){return E().style&&YiJ.includes(E().style)},void 0,"f5fZv"),b=_.az({visibilityCallback:function(f){f&&x()&&_.Y2(x())},
showOption:{calledOnce:!0,state:"visible"}});_.A6(function(){_.iK(function(){U()&&p()&&_.Ro().dispatch(_.P9("qrCodeEntity",p()))})});
return _.H("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.V9(b)},_.H(_.w,{cond:m,then:function(){return _.H(_.w,{cond:A,then:function(f){return _.H(M$K,{data:f})}})}}),_.H(_.w,{cond:t,
then:function(f){return _.H(_.Q9,{data:f,alt:""})}}))},"Re"),"yt-qr-code-renderer",{props:{data:_.uu}});var bOt=_.l(function(t){var E=function(){return _.cL(1728053247&(t.barColor!==void 0?n$(t.barColor()):4278190080))};
return _.H("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},null,_.H("div",{class:"ytVideoOverviewGhostCardDetails"},_.H(mKb,{animationDelay:0,percentWidth:100,barColor:function(){return E()}}),_.H(mKb,{animationDelay:600,
percentWidth:60,barColor:function(){return E()}})))},"Ue"),mKb=_.l(function(t){return _.H("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+t.percentWidth()+"%"}},_.H("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var E=t.animationDelay(),p=t.barColor();return"animation-delay:"+E+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+p+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Ve");var iO9;_.qi8=_.l(function(t){function E(O){A(O)}
var p=t.data;var U=_.V9();t=_.M(_.Py(-1,void 0,"RrZHOc"));var x=t.next().value,A=t.next().value;t=_.M(_.Py(0,void 0,"bSVocc"));var m=t.next().value,b=t.next().value,f={},B=_.nd($PE,function(){return p().asyncDataEntityKey}),R=function(){var O;
if((O=B())==null?0:O.videoOverviewViewModel){var a;return _.k((a=B())==null?void 0:a.videoOverviewViewModel,IFr)}return p()},V=function(O){A(O);
(U==null?0:U.value)&&U.value.children[O]&&U.value.children[O].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},Q=function(){var O;
return((O=R())==null?void 0:O.headerSubtext)!==void 0?!0:!1},C=function(){var O,a=n$((O=R())==null?void 0:O.titleColor);
return a?"color: "+_.cL(a)+";":void 0},d=function(){var O,a=n$((O=R())==null?void 0:O.subtextColor);
return a?"color: "+_.cL(a)+";":void 0},I=function(){return _.H("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.H("div",{class:"ytGenAiVideoOverviewViewModelTitle",
style:function(){return C()}},_.H(_.d8,{text:function(){var O;
return(O=R())==null?void 0:O.headerText}})),_.H(_.w,{cond:Q,
then:function(){return _.H("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.H("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return d()}},_.H(_.lz,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.H("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return d()}},_.H(_.d8,{text:function(){var O;
return(O=R())==null?void 0:O.headerSubtext}})))}}))};
t={};return _.H("yt-video-overview-view-model",{class:_.X5("ytGenAiVideoOverviewViewModelHost",(t.ytGenAiVideoOverviewViewModelMweb=!1,t.ytGenAiVideoOverviewViewModelDesktop=!0,t)),el:_.V9(cEE(function(){var O;if((O=R())==null||!O.inlinePlaybackEndpoint)return null;var a;O=f==null?void 0:(a=f.thumbnailElRef)==null?void 0:a.value;if(!O)return null;var F;a=(F=R())==null?void 0:F.inlinePlaybackEndpoint;F=_.k(a,nFr);return{multipleVideoPreviewData:{data:(F==null?0:F.playerDescriptors)&&(F==null?0:F.playerDescriptors.length)?
F.playerDescriptors:[],thumbnailElement:O,trackingParams:"test",callbacks:{onPlaybackStarted:V},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}}),function(O){_.A6(function(){b(Math.min((O.clientWidth-24)/4-8,72))})}),
style:function(){var O,a=n$((O=R())==null?void 0:O.backgroundColor);return a?"background-color: "+_.cL(a)+";":void 0}},_.H(_.w,{cond:function(){var O;
return(O=R())==null?void 0:O.isLoading},
then:function(){return _.H(bOt,{barColor:function(){var O;return(O=R())==null?void 0:O.titleColor}})},
else:function(){return _.H(_.Oj,null,null,_.H("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.H(_.sY,{data:function(){var O;return(O=R())==null?void 0:O.thumbnail}},{thumbnailViewModel:function(O){return _.H(zR,{data:O.data,
aspectRatio:0,playbackRef:cmt(f)})}})),_.H("div",{class:"ytGenAiVideoOverviewViewModelDetails"},I(),_.H(_.w,{cond:function(){var O,a,F,L;
return((O=R())==null?void 0:(a=O.listItems)==null?void 0:a.length)!==void 0&&((F=R())==null?void 0:(L=F.listItems)==null?void 0:L.length)>0?!0:!1},
then:function(){return _.H("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:U},_.H(_.yG,{each:function(){var O;return(O=R())==null?void 0:O.listItems}},function(O,a){return _.H(iO9,{image:O.image,
index:a,isSelected:function(){return a()===x()},
onClick:E,itemWidth:m})}))}}),_.H("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.H("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return C()}},_.H(_.d8,{text:function(){var O,a,F,L,D,W,K;
return(K=(O=R())==null?void 0:(a=O.listItems)==null?void 0:(F=a[x()])==null?void 0:F.headline)!=null?K:(L=R())==null?void 0:(D=L.listItems)==null?void 0:(W=D[0])==null?void 0:W.headline}})),_.H("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return d()}},_.H(_.d8,{text:function(){var O,a,F,L,D,W,K;
return(K=(O=R())==null?void 0:(a=O.listItems)==null?void 0:(F=a[x()])==null?void 0:F.subtext)!=null?K:(L=R())==null?void 0:(D=L.listItems)==null?void 0:(W=D[0])==null?void 0:W.subtext}})))))}}))},"We");
iO9=_.l(function(t){var E=t.image;var p=t.itemWidth;var U=t.index;var x=t.isSelected;var A=t.onClick;t=_.aC(function(){U!==void 0&&A!==void 0&&A(U());return!1});
var m={};return _.H("div",{class:_.X5("ytGenAiVideoOverviewViewModelCarouselItem",(m.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return x==null?void 0:x()},m)),
style:function(){return"width: "+p()+"px;"},
"on:click":t},_.H(_.Q9,{data:E,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.H(_.w,{cond:function(){return x==null?void 0:x()},
then:function(){return _.H("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.H("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Xe");
_.qi8.idomCompat=!0;_.k2(_.qi8,"yt-video-overview-view-model",{props:{data:_.uu}});_.HOt=_.l(function(t){var E=t.data;var p=t.topbarOffset;var U,x=((U=_.X3().resolve(_.OB(_.Ld)))==null?void 0:U())||!1;return _.H("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var A=E();var m,b,f=x?(m=A.config)==null?void 0:m.darkThemeBackgroundColor:(b=A.config)==null?void 0:b.lightThemeBackgroundColor;A=f?_.SL(f):void 0;A="background-color: "+A+";";p!==void 0&&(A+="top: -"+p()+"px;");return A},
"aria-hidden":!0},_.H(_.w,{cond:function(){var A,m,b;return!!((A=E().backgroundImageConfig)==null?0:(m=A.image)==null?0:(b=m.sources)==null?0:b.length)},
then:function(){return _.H(_.Q9,{data:function(){var A;return(A=E().backgroundImageConfig)==null?void 0:A.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.H("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+Kst(x,E().gradientColorConfig)+";"}}))},"Ye");
_.HOt.idomCompat=!0;var flJ=_.l(function(t){var E=t.data;var p=t.isOverlay;return _.H("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.H("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.H(_.sY,{data:function(){return E().header}},{sectionHeaderViewModel:function(U){return _.H(_.v_,{data:U.data,
isOverlay:p})}})),_.H("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.H(_.sY,{data:function(){return E().channelInfoButtons}},{flexibleActionsViewModel:_.wl})),_.H("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.H(_.sY,{data:function(){return E().description}},{descriptionPreviewViewModel:function(U){return _.H(_.KU,{data:U.data,
isOverlay:p})}})))},"Ze");
flJ.idomCompat=!0;var BE5=_.l(function(t){var E=t.data;var p={};return _.H("factoid-view-model",{class:_.X5("ytwFactoidViewModelHost",(p.ytwFactoidViewModelHostOverlay=t.isOverlay,p))},_.H(_.d8,{text:function(){return E().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.H(_.d8,{text:function(){return E().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"$e");
BE5.idomCompat=!0;var w8t=_.l(function(t){var E=t.data;var p=t.isOverlay;return _.H("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.H(_.sY,{data:function(){return E().factoids}},{factoidViewModel:function(U){return _.H(BE5,{data:U.data,
isOverlay:p})}}))},"af");
w8t.idomCompat=!0;_.Rjg=_.l(function(t){var E=t.data;var p=t.isOverlay;return _.H("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.H(_.sY,{data:function(){return E().items}},{channelInfoViewModel:function(U){return _.H("div",{class:"ytwCourseMetadataViewModelHostItem"},_.H(flJ,{data:U.data,
isOverlay:p}))},
coursePerksViewModel:function(U){return _.H("div",{class:"ytwCourseMetadataViewModelHostItem"},_.H(P6r,{data:U.data,isOverlay:p}))},
descriptionPreviewViewModel:function(U){return _.H("div",{class:"ytwCourseMetadataViewModelHostItem"},_.H(_.KU,{data:U.data,isOverlay:p}))},
factoidsRowViewModel:function(U){return _.H("div",{class:"ytwCourseMetadataViewModelHostItem"},_.H(w8t,{data:U.data,isOverlay:p}))},
progressViewModel:function(U){return _.H("div",{class:"ytwCourseMetadataViewModelHostItem"},_.H(TQo,{data:U.data,isOverlay:p}))}}))},"bf");var V$J=_.l(function(t){return _.H("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.H(_.sY,{data:function(){return t.data().content}},{courseMetadataViewModel:function(E){return _.H(_.Rjg,{data:E.data,
isOverlay:t.isOverlay})},
progressViewModel:function(E){return _.H(TQo,{data:E.data})}}))},"cf");var Q0o=_.l(function(t){var E=t.data;t=t.className;var p=function(){var x;return _.te((x=E())==null?void 0:x.rendererContext)},U={};
U=(U.dynamicTextViewModelHost=!0,U.dynamicTextViewModelHostTappable=function(){return p()},U);
return _.H("yt-dynamic-text-view-model",{el:_.V9(_.EX(function(){var x;return(x=E())==null?void 0:x.rendererContext})),
role:function(){return p()?"link":void 0},
tabindex:function(){return p()?0:void 0},
class:_.X5(t,U)},_.H("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var x,A,m;return(m=(A=_.k((x=E())==null?void 0:x.rendererContext,_.PY))==null?void 0:A.label)!=null?m:""}},_.H(_.d8,{text:function(){return E().text},
userInput:!0})))},"df");
Q0o.idomCompat=!0;_.u2=_.l(function(t){var E=t.data;var p=t.isPositionRelative;var U=_.ya_("(max-width: 527.9px)"),x=function(){var A,m;return(m=(A=E())==null?void 0:A.style)!=null?m:"IMAGE_BANNER_STYLE_FULL_BLEED"};
t={};return _.H("yt-image-banner-view-model",{el:_.V9(_.EX(function(){var A;return(A=E())==null?void 0:A.rendererContext})),
class:_.X5((t.ytImageBannerViewModelHost=!0,t.ytImageBannerViewModelInset=function(){return SK0(x())},t.ytImageBannerViewModelPositionAbsolute=function(){return _.Hv(!0)&&!(p==null?0:p())},t.ytImageBannerViewModelSmallInset=function(){return SK0(x())&&U()},t.ytImageBannerViewModelTappable=function(){var A;
return _.te((A=E())==null?void 0:A.rendererContext)},t))},_.H(_.w,{cond:function(){var A;
return(A=E())==null?void 0:A.image},
then:function(){return _.H(_.Q9,{data:function(){return E().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.H(_.sY,{data:function(){var A;
return(A=E())==null?void 0:A.overlays}},{thumbnailHoverOverlayViewModel:HM}))},"ef");
_.u2.idomCompat=!0;var CYd;CYd=_.l(function(t){var E=t.condition;var p=t.content;return _.H(_.w,{cond:E,then:function(){return _.H("div",{class:"yt-page-header-view-model__scroll-container"},p())},
else:function(){return p()}})},"ff");
_.j08=_.l(function(t){var E=t.data;var p=t.noPadding;var U=t.enableBanner;var x=t.cinematicContainerTopbarOffset;var A=t.allowCinematicContainerOverflow;var m=t.displayAsSidebar;var b=t.displayAsPanel;var f=t.alwaysUseMediumTextDescription;var B=caO(),R=function(){return!!E().image||!!E().animatedImage},V=function(){return!!E().background},Q=function(){return(m==null?0:m())||(b==null?0:b())?1:B()},C=function(){return Q()===1},d=function(){return C()||Q()===2},I=function(){return Q()===4},O=function(){var j$=
E();
var lY=!!E().heroImage;var Tt=Q(),si=tqO(E()),Q0=m==null?void 0:m(),ps=!j$.metadata,$L;if($L=lY?_.k(j$.heroImage,By3):_.k(j$.animatedImage||j$.image,By3)){j$=$L.style;var Cs=$L.layoutMode;if(Cs!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if($L=J$$(uTD($L)),lY)lY=vP_(Tt,j$,Cs,$L,Q0);else b:if(ps)lY=Tt===1?{size:48}:{size:72};else switch(Tt){case 1:lY={size:72};break b;case 2:lY={size:120};break b;default:lY=si<4?{size:120}:{size:160}}else lY=void 0}else lY={size:0};return lY};
t={};t=_.X5((t["yt-page-header-view-model"]=!0,t["yt-page-header-view-model--no-padding"]=function(){return!(p==null||!p())},t["yt-page-header-view-model--small-top-padding"]=function(){return C()&&!E().actions&&!(b==null?0:b())||Q()===2&&!(R()||E().heroImage)},t["yt-page-header-view-model--small-bottom-padding"]=function(){return d()&&!E().actions&&!(b==null?0:b())},t["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(A==null?0:A())},t["yt-page-header-view-model--display-as-sidebar"]=
m,t));
var a={},F=_.X5((a["yt-page-header-view-model__page-header-headline"]=!0,a["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var j$;return(j$=O())==null?void 0:j$.allowFullWidth},a)),L=function(){var j$;
return d()&&!((j$=O())==null?0:j$.allowFullWidth)},D=function(){return C()&&(!!E().heroImage||R())&&tqO(E())>0},W=function(){return D()&&(b==null?void 0:b())};
a={};var K=_.X5((a["yt-page-header-view-model__page-header-title"]=!0,a["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!D()},a["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return D()&&!W()},a["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=W,a["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=V,a));
a={};var v=_.X5((a["yt-page-header-view-model__page-header-headline-image"]=!0,a["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!E().heroImage&&d()},a));
a={};var YL=_.X5((a["yt-page-header-view-model__page-header-banner-container"]=U,a["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var j$;return(U==null?void 0:U())&&((j$=_.k(E().banner,_.Rho))==null?void 0:j$.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},a));
a={};var bY=_.X5((a["yt-page-header-view-model__page-header-content-metadata"]=!0,a["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=V,a));a={};var kL=_.X5((a["yt-page-header-view-model__page-header-flexible-actions"]=!0,a["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!E().metadata||d()},a["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!d()},a));
a={};var R0=_.X5((a["yt-page-header-view-model__page-header-attribution"]=!0,a["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=V,a));return _.H("yt-page-header-view-model",{class:t},_.H(_.w,{cond:V,then:function(){return _.H("div",{class:"yt-page-header-view-model__page-header-background"},_.H(_.sY,{data:function(){return E().background}},{cinematicContainerViewModel:function(j$){return _.H(_.HOt,{data:j$.data,
topbarOffset:x})}}))}}),_.H(CYd,{condition:function(){return!(m==null||!m())},
content:function(){return _.H("div",{class:"yt-page-header-view-model__page-header-content"},_.H(_.w,{cond:function(){return(U==null?void 0:U())&&E().banner},
then:function(){return _.H("div",{class:YL},_.H(_.sY,{data:function(){return E().banner}},{imageBannerViewModel:_.u2}))}}),_.H("div",{class:F},_.H(_.w,{cond:R,
then:function(){return _.H(_.sY,{data:function(){var j$;if(!(j$=E().animatedImage)){j$=E();if(R()){var lY=j$=Object.assign({},j$),Tt=Q(),si=tqO(E()),Q0=lY.image,ps=_.k(Q0,weW),$L=ps==null?void 0:ps.avatar,Cs=_.k($L,_.UX);if(Q0&&$L&&Cs){switch(Tt){case 1:Cs.avatarImageSize="AVATAR_SIZE_XL";break;case 2:Cs.avatarImageSize="AVATAR_SIZE_XXL";break;default:si<4?Cs.avatarImageSize="AVATAR_SIZE_XXL":Cs.avatarImageSize="AVATAR_SIZE_XXXL"}_.tJ($L,_.UX,Object.assign({},Cs));ps.avatar=Object.assign({},$L);_.tJ(Q0,
weW,Object.assign({},ps));lY.image=Object.assign({},Q0)}}j$=j$.image}return j$}},{contentPreviewImageViewModel:function(j$){return _.H(_.Nk,{data:j$.data,
className:v,imageSizeConfig:O})},
decoratedAvatarViewModel:function(j$){return _.H(_.BM,{data:j$.data,className:v})}})}}),_.H(_.w,{cond:function(){return!!E().heroImage&&!L()},
then:function(){return _.H(_.sY,{data:function(){return E().heroImage}},{contentPreviewImageViewModel:function(j$){return _.H(_.Nk,{data:j$.data,
className:v,imageSizeConfig:O})}})}}),_.H("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.H(_.w,{cond:function(){return!!E().heroImage&&L()},
then:function(){return _.H("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.H(_.sY,{data:function(){return E().heroImage}},{contentPreviewImageViewModel:function(j$){return _.H(_.Nk,{data:j$.data,
className:v,imageSizeConfig:O})}}))}}),_.H(_.sY,{data:function(){return E().title}},{dynamicTextViewModel:function(j$){return _.H(Q0o,{data:j$.data,
className:K})}}),_.H(_.sY,{data:function(){return E().metadata}},{contentMetadataViewModel:function(j$){return _.H(_.sM,{data:j$.data,
layout:function(){return C()?1:0},
className:bY,isOverlay:V,useMediumText:I})}}),_.H(_.w,{cond:function(){return E().description&&!C()},
then:function(){return _.H(_.sY,{data:function(){return E().description}},{descriptionPreviewViewModel:function(j$){return _.H(_.KU,{data:j$.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:V,maxLinesOverride:function(){return C()?void 0:1},
useMediumText:function(){return(f==null?void 0:f())||I()}})}})}}),_.H(_.w,{cond:function(){return E().attribution&&!d()},
then:function(){return _.H(_.sY,{data:function(){return E().attribution}},{attributionViewModel:function(j$){return _.H(D7,{data:j$.data,
className:R0,useMediumText:I})}})}}),_.H(_.w,{cond:function(){return E().actions&&!d()},
then:function(){return _.H(_.sY,{data:function(){return E().actions}},{flexibleActionsViewModel:function(j$){return _.H(_.wl,{data:j$.data,
layout:function(){return Ev0(Q())},
className:kL})}})}}))),_.H("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.H(_.w,{cond:function(){return E().description&&C()},
then:function(){return _.H(_.sY,{data:function(){return E().description}},{descriptionPreviewViewModel:function(j$){return _.H(_.KU,{data:j$.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:V,maxLinesOverride:function(){return C()?void 0:1},
useMediumText:function(){return(f==null?void 0:f())||I()}})}})}}),_.H(_.w,{cond:function(){return E().attribution&&d()},
then:function(){return _.H(_.sY,{data:function(){return E().attribution}},{attributionViewModel:function(j$){return _.H(D7,{data:j$.data,
className:R0,useMediumText:I})}})}}),_.H(_.w,{cond:function(){return E().actions&&d()},
then:function(){return _.H(_.sY,{data:function(){return E().actions}},{flexibleActionsViewModel:function(j$){return _.H(_.wl,{data:j$.data,
layout:function(){return Ev0(Q())},
className:kL})}})}})),_.H("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.H(_.sY,{data:function(){return E().bottomMetadataFlexibleContainer}},{flexibleContainer:function(j$){return _.H(V$J,{data:j$.data,
isOverlay:V})}})))}}))},"gf");
_.j08.idomCompat=!0;_.k2(_.l(function(t){var E=_.M(_.Py(!1,void 0,"qvRy4d")),p=E.next().value,U=E.next().value;return _.H("yt-official-card-view-model",{class:_.X5("ytOfficialCardViewModelHost",t.className),style:_.zO({"background-color":function(){var x,A=n$((x=t.data())==null?void 0:x.backgroundColor);return A?_.cL(A):void 0}})},_.H(_.sY,{data:function(){return t.data().header}},{pageHeaderViewModel:function(x){return _.H(_.j08,{data:x.data,
noPadding:!0})}}),_.H(_.sY,{data:function(){return t.data().contents}},{horizontalShelfViewModel:function(x){return _.H(_.d$,{data:x.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.H(_.w,{cond:p,
then:function(){return _.H("div",{class:"ytOfficialCardViewModelExpandedContent"},_.H(_.sY,{data:function(){return t.data().expandedContents}},{horizontalShelfViewModel:function(x){return _.H(_.d$,{data:x.data,
sizing:"MINI"})}}),_.H("div",{class:"ytOfficialCardViewModelCollapseButton"},_.H(_.sY,{data:function(){return t.data().collapseButton}},{buttonViewModel:function(x){return _.H(_.D5,{data:x.data,
onClick:function(){U(!p())}})}})))},
else:function(){return _.H("div",{class:"ytOfficialCardViewModelExpandButton"},_.H(_.sY,{data:function(){return t.data().expandButton}},{buttonViewModel:function(x){return _.H(_.D5,{data:x.data,
onClick:function(){U(!p())}})}}))}}))},"hf"),"yt-official-card-view-model",{props:{data:_.uu,
className:_.uu}});var rDK=_.l(function(t){var E,p=(E=_.X3().resolve(_.OB(_.Ld)))==null?void 0:E();return _.H("ytw-search-friction-view-model",{class:_.X5("ytwSearchFrictionViewModelHost",t.className)},_.H("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.H("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.H(_.w,{cond:function(){return p&&t.data().darkThemeImage?t.data().darkThemeImage:t.data().image},
then:function(U){return _.H(_.Q9,{data:U,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.H(_.sY,{data:function(){return t.data().overflowMenuButton}},{buttonViewModel:function(U){return _.H(_.D5,{data:U.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.H(_.d8,{text:function(){return t.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.H(_.yG,{each:function(){return t.data().bodyText||[]}},function(U){return _.H(_.d8,{text:U,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.H(_.sY,{data:function(){return t.data().actions}},{buttonViewModel:function(U){return _.H(_.D5,{data:U.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.H(_.d8,{text:function(){return t.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.H(_.d8,{text:function(){return t.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"jf");
rDK.idomCompat=!0;_.k2(rDK,"ytw-search-friction-view-model",{props:{data:_.uu,className:_.uu}});_.J7=_.l(function(t){var E=_.EB("markdown-div"),p,U=(p=_.X3().resolve(_.OB(_.Ld)))==null?void 0:p();_.M$(function(){var x=E.value;var A=new OqG,m=new Map(A.JSC$9574_sanitizerTable.globalAttributePolicies);m.set("style",{policyAction:4});A.JSC$9574_sanitizerTable=new Ek(A.JSC$9574_sanitizerTable.allowedElements,A.JSC$9574_sanitizerTable.elementPolicies,A.JSC$9574_sanitizerTable.allowedGlobalAttributes,m,A.JSC$9574_sanitizerTable.globallyAllowedAttributePrefixes);var b=["data-time"];if(b===void 0)m=
new Set(A.JSC$9574_sanitizerTable.globallyAllowedAttributePrefixes),m.add("data-"),A.JSC$9574_sanitizerTable=new Ek(A.JSC$9574_sanitizerTable.allowedElements,A.JSC$9574_sanitizerTable.elementPolicies,A.JSC$9574_sanitizerTable.allowedGlobalAttributes,A.JSC$9574_sanitizerTable.globalAttributePolicies,m);else{m=new Set(A.JSC$9574_sanitizerTable.allowedGlobalAttributes);b=_.M(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;if(f.indexOf("data-")!==0)throw Error("ka`"+f);m.add(f)}A.JSC$9574_sanitizerTable=
new Ek(A.JSC$9574_sanitizerTable.allowedElements,A.JSC$9574_sanitizerTable.elementPolicies,m,A.JSC$9574_sanitizerTable.globalAttributePolicies,A.JSC$9574_sanitizerTable.globallyAllowedAttributePrefixes)}m=new Set(A.JSC$9574_sanitizerTable.allowedGlobalAttributes);m.add("class");A.JSC$9574_sanitizerTable=new Ek(A.JSC$9574_sanitizerTable.allowedElements,A.JSC$9574_sanitizerTable.elementPolicies,m,A.JSC$9574_sanitizerTable.globalAttributePolicies,A.JSC$9574_sanitizerTable.globallyAllowedAttributePrefixes);
_.RR(x,_.uWZ(A.build(),UZ0(t.text())));xZ_(E.value)},"OZ439c");
p={};return _.H("div",null,_.H("markdown-div",{class:_.X5("ytwMarkdownDivHost",(p.ytwMarkdownDivDark=U,p.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var x;return((x=t.isSmallText)==null?void 0:x.call(t))||!1},p.ytwMarkdownDivHostWrapCodeBlocks=function(){var x;
return((x=t.wrapCodeBlocks)==null?void 0:x.call(t))||!1},p.ytwMarkdownDivHostEnableDefaultStyling=function(){var x;
return!((x=t.disableDefaultStyling)==null?0:x.call(t))},p)),
el:E}))},"lf");
_.J7.idomCompat=!0;var ktg=_.l(function(t){var E=t.imageData;var p=_.Ql(t.isInList,!1),U=function(){return p()?{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 _.H("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.H(_.w,{cond:function(){return E().image},
then:function(x){return _.H(_.Q9,{data:x,alt:function(){return U().alt},
contentMode:function(){return U().contentMode},
targetWidth:function(){return U().targetWidth},
targetHeight:function(){return U().targetHeight},
className:function(){return U().className}})}}),_.H("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.H("div",{class:_.X5("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.H(_.d8,{text:function(){return E().title}})),_.H(_.yG,{each:function(){var x;
return(x=E().description)!=null?x:[]}},function(x){return _.H("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.H(IN,{content:x}))})))},"mf"),dK5=_.l(function(t){var E=t.list;
var p=function(){var U;return(U=E().items)!=null?U:[]};
return _.H("div",{class:"ytwGenAiRichTextViewModelListContent"},_.H(_.w,{cond:function(){return E().title},
then:function(U){return _.H("div",{class:_.X5("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.H(_.d8,{text:U}))}}),_.H(_.w,{cond:function(){return E().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.H("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.H(_.yG,{each:p},function(U){return _.H("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.H(IN,{content:U,isInList:!0}))}))}}),_.H(_.w,{cond:function(){return E().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.H("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.H(_.yG,{each:p},function(U){return _.H("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.H(IN,{content:U,isInList:!0}))}))}}),_.H(_.w,{cond:function(){return E().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.H("div",{class:"ytwGenAiRichTextViewModelImageList"},_.H(_.yG,{each:p},function(U){return _.H("div",{class:"ytwGenAiRichTextViewModelListItem"},_.H(IN,{content:U,isInList:!0}))}))}}))},"nf"),uOe=_.l(function(t){var E=t.table;
return _.H("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.H("thead",null,_.H("tr",null,_.H(_.yG,{each:function(){var p,U;return(U=(p=E().header)==null?void 0:p.cells)!=null?U:[]}},function(p){return _.H("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.H(_.yG,{each:function(){return p.contents}},function(U){return _.H(IN,{content:U})}))}))),_.H("tbody",null,_.H(_.yG,{each:function(){var p;
return(p=E().rows)!=null?p:[]}},function(p){return _.H("tr",null,_.H(_.yG,{each:function(){return p.cells}},function(U){return _.H("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.H(_.yG,{each:function(){return U.contents}},function(x){return _.H(IN,{content:x})}))}))})))},"of"),IN=_.l(function(t){var E=t.content;
var p=_.Ql(t.isInList,!1),U=function(){var x,A;return(A=(x=E().contentBlock)==null?void 0:x.contents)!=null?A:[]};
return _.H("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.H(_.w,{cond:function(){return E().text},
then:function(x){return _.H(_.d8,{className:"ytwGenAiRichTextViewModelText",text:x})}}),_.H(_.w,{cond:function(){return E().image},
then:function(x){return _.H(ktg,{imageData:x,isInList:p})}}),_.H(_.w,{cond:function(){return E().list},
then:function(x){return _.H(dK5,{list:x})}}),_.H(_.w,{cond:function(){return E().contentBlock},
then:function(){return _.H("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.H(_.yG,{each:U},function(x){return _.H(IN,{content:x,isInList:!1})}))}}),_.H(_.w,{cond:function(){return E().table},
then:function(x){return _.H(uOe,{table:x})}}))},"pf"),JDg=_.l(function(t){var E={};
E=_.v9("ytwGenAiRichTextViewModelHost",(E.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.la("search_overview_link_style")),E));return _.H("gen-ai-rich-text-view-model",{class:E},_.H(IN,{content:function(){return t.data().content}}))},"qf");_.IlJ=_.l(function(t){var E=t.data;var p=function(){var I;return((I=E().loadingUi)!=null?I:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},U=function(){return E().isLoading&&(p()==="UNSPECIFIED"||p()==="GHOST_CARD")},x=function(){return!E().isLoading},A=function(){return!!E().content&&!E().contents},m=function(){return!!E().contents},b=function(){return!!E().nextQueryButtons},f=function(){return E().isLoading&&p()==="INVISIBLE"},B=function(){var I,O;
return(O=(I=E().headerIcon)==null?void 0:I.iconType)!=null?O:""},R=function(){var I;
return(I=E().content)!=null?I:""},V=function(){return!!E().sourcesSection},Q,C=!((Q=_.X3().resolve(_.OB(_.Ld)))==null||!Q()),d=_.KN(function(){var I=[],O=E().contents;
if(O)for(var a=0;a<O.length;a++){var F=_.k(O&&O[a],J4Z);F&&I.push(F)}return I},void 0,"gcCsZb");
_.A6(function(){E().isLoading||_.SR("so_re",void 0,"search_overview_answer")});
return _.H("ytd-overview-answer-view-model",{class:function(){var I={};I=(I.ytdOverviewAnswerViewModelHost=!0,I.ytdOverviewAnswerViewModelDarkBackground=C&&!f(),I.ytdOverviewAnswerViewModelLightBackground=!C&&!f(),I);return _.v9(I)}},_.H(_.w,{cond:function(){return!f()},
then:function(){return _.H(_.Oj,null,_.H("h2",null,_.H("div",{class:"ytdOverviewAnswerViewModelHeader"},_.H(_.w,{cond:B,then:function(I){return _.H("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.H(_.lz,{icon:I}))}}),_.H("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.H("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return E().headerText}),_.H("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.H(_.d8,{text:function(){return E().headerSubtext}}))))),_.H(_.w,{cond:U,
then:function(){return _.H(AiE,null)}}),_.H(_.w,{cond:x,
then:function(){return _.H(_.Oj,null,_.H(_.w,{cond:A,then:function(){return _.H("div",{class:"ytdOverviewAnswerViewModelText"},_.H(_.J7,{text:R,isSmallText:!0}))}}),_.H(_.w,{cond:m,
then:function(){return _.H("div",{class:"ytdOverviewAnswerViewModelRichText"},_.H(_.yG,{each:d},function(I){return _.H(JDg,{data:I})}))}}),_.H(_.w,{cond:b,
then:function(){return _.H("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.H(_.sY,{data:function(){return E().nextQueryButtons}},{buttonViewModel:function(I){return _.H(_.D5,{data:I.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.d$}))}}),_.H("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.H("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.H(_.w,{cond:function(){return!!_.k(E().likeButtonViewModel,_.qm)&&!!_.k(E().dislikeButtonViewModel,_.Hn)},
then:function(){return _.H("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.H(_.Vf,{data:function(){return _.k(E().likeButtonViewModel,_.qm)},
disableIconAnimation:!0}),_.H(_.R2,{data:function(){return _.k(E().dislikeButtonViewModel,_.Hn)}}))}})),_.H(_.w,{cond:function(){var I;
return(I=E().sourcesSection)==null?void 0:I.headerText},
then:function(I){return _.H("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.H(_.d8,{text:I}))}})),_.H(_.w,{cond:V,
then:function(){return _.H("div",{class:"ytdOverviewAnswerViewModelSources"},_.H(_.sY,{data:function(){var I;return(I=E().sourcesSection)==null?void 0:I.sourcesShelf}},{buttonViewModel:_.D5,
horizontalShelfViewModel:function(I){return _.H(_.d$,{data:I.data,includeMargin:!0,hasPeek:!0})}}))}}),_.H(_.w,{cond:function(){return E().disclaimerText},
then:function(){return _.H("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.H(_.d8,{text:function(){return E().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"rf");var gLK=_.l(function(t){var E=_.C4(t,{}).data;return _.H("yt-shopping-content-line-item-view-model",{class:_.X5("ytShoppingContentLineItemViewModelHost")},_.H(_.d8,{text:function(){var p;return(p=E().text)==null?void 0:p.attributedString}}))},"sf");_.g$=_.l(function(t){t=_.C4(t,{});var E=t.data,p={};return _.H("yt-shopping-content-line-view-model",{class:_.X5("ytShoppingContentLineViewModelHost",t.className,(p.ytShoppingContentLineViewModelTruncateText=function(){return!E().wrapContent},p)),
style:_.zO({"--shopping-content-line-gap":function(){return E().itemGap?E().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return E().lineHeight?E().lineHeight+"px":void 0}})},_.H(_.yG,{each:function(){return(E().items||[]).map(function(U){return _.k(U,eT4)}).filter(function(U){return!!U})}},function(U){return _.H(gLK,{data:U})}))},"tf");var ZO9=_.l(function(t){var E=t.data;var p=function(){var A;return((A=E().image)==null?void 0:A.height)||48},U=function(){var A;
return((A=E().image)==null?void 0:A.width)||48},x=function(){return"width: "+U()+"px; height: "+p()+"px;"};
return _.H("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var A,m,b,f=((A=_.X3().resolve(_.OB(_.Ld)))==null?0:A())?(m=E())==null?void 0:m.darkThemeBackgroundColor:(b=E())==null?void 0:b.lightThemeBackgroundColor;return"background-color: "+(f?_.cL(f):"")+";"},
el:_.V9(_.EX(function(){var A;return(A=E())==null?void 0:A.rendererContext}))},_.H(_.w,{cond:function(){var A,m;
return(m=(A=E().image)==null?void 0:A.image)!=null?m:E().thumbnail},
then:function(A){return _.H("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var m;return"background-color: "+(((m=E().image)==null?0:m.backgroundColor)?_.cL(E().image.backgroundColor):"")+";"+x()}},_.H(_.Q9,{data:A,
height:p,width:U,style:x,alt:""}))}}),_.H("div",{class:"ytShoppingDescriptionItemViewModelText"},_.H(_.sY,{data:function(){return E().line1}},{shoppingContentLineViewModel:function(A){return _.H(_.g$,{data:A.data})}}),_.H(_.sY,{data:function(){return E().line2}},{shoppingContentLineViewModel:function(A){return _.H(_.g$,{data:A.data})}}),_.H(_.sY,{data:function(){return E().line3}},{shoppingContentLineViewModel:function(A){return _.H(_.g$,{data:A.data})}})))},"uf");var OOl=_.l(function(t){var E=t.data;var p=t.active;var U=_.EB("transcript-segment-view-model");_.M$(function(){var x,A,m,b=((x=_.X3().resolve(_.OB(_.Ld)))==null?0:x())?(A=E())==null?void 0:A.darkThemeColorPalette:(m=E())==null?void 0:m.lightThemeColorPalette;b&&(b.additiveBackground&&U.value.style.setProperty("--timestamp-active-background-color",_.cL(b.additiveBackground)),b.textSecondary&&U.value.style.setProperty("--timestamp-active-color",_.SL(b.textSecondary)))},"TnVCnb");
t={};return _.H("transcript-segment-view-model",{class:_.X5("ytwTranscriptSegmentViewModelHost",(t.ytwTranscriptSegmentViewModelHostActive=p,t.ytwTranscriptSegmentViewModelHostModern=_.r("enable_timeline_view_modern_transcript")||_.r("enable_timeline_view_modern_transcript_fe"),t)),el:U},_.H(_.w,{cond:function(){var x;return(x=E())==null?void 0:x.timestamp},
then:function(x){var A={};return _.H(_.Oj,null,_.H("div",{class:_.X5("ytwTranscriptSegmentViewModelTimestamp",(A.ytwTranscriptSegmentViewModelTimestampActive=p,A)),"aria-hidden":!0},x),_.H("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var m=x().split(":").map(Number),b=_.M(m.reverse());m=b.next().value;var f=b.next().value;b=b.next().value;return _.bEl({hours:b,minutes:f,seconds:m})}))}}),_.H(_.d8,{text:function(){var x,A,m;
return(m=(x=E())==null?void 0:x.attributedText)!=null?m:{content:(A=E())==null?void 0:A.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"wf");var X8e=_.l(function(t){var E=t.data;return _.H("div",{class:"videoAttributesSectionViewModelHeader"},_.H("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.H("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return E().headerTitle}),_.H(_.w,{cond:function(){return E().headerInfoButton},
then:function(){return _.H(_.sY,{data:function(){return E().headerInfoButton}},{buttonViewModel:function(p){return _.H(_.D5,{data:p.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.H(_.w,{cond:function(){return E().headerSubtitle},
then:function(){return _.H("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return E().headerSubtitle})}}))},"xf"),hjl=_.l(function(t){function E(I){return Math.max(Math.min(I,0),B()-b())}
var p=t.data;var U;t=_.EB("div",function(I){var O=function(){R(I.clientWidth)};
O();window.ResizeObserver&&(U=new ResizeObserver(O),U.observe(I))});
var x=_.EB("div",function(I){f(I.scrollWidth)}),A=_.M(_.Py(0,void 0,"C3XQAe")),m=A.next().value;
A=A.next().value;var b=m,f=A;A=_.M(_.Py(0,void 0,"db7y3"));m=A.next().value;A=A.next().value;var B=m,R=A;m=_.M(_.Py(0,void 0,"RchC7"));var V=m.next().value,Q=m.next().value;_.iK(function(){var I;(I=U)==null||I.disconnect()});
var C=function(){Q(E(V()+B()))},d=function(){Q(E(V()-B()))};
return _.H("yt-video-attributes-section-view-model",null,_.H("div",{class:"videoAttributesSectionViewModelHost"},_.H(_.w,{cond:function(){return p().headerTitle},
then:function(){return _.H(X8e,{data:p})}}),_.H("div",{class:_.X5("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:t},_.H("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.zO({transform:function(){var I=V();_.qO("HTML_DIR")==="rtl"&&(I*=-1);return"translateX("+I+"px)"}}),
el:x},_.H(_.sY,{data:function(){return p().videoAttributeViewModels}},{videoAttributeViewModel:Mz3}))),_.H(_.sY,{data:function(){return p().footerButton}},{buttonViewModel:function(I){return _.H(_.D5,{data:I.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.H(_.w,{cond:function(){return V()<0&&p().previousButton},
then:function(){return _.H("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.H(_.sY,{data:function(){return p().previousButton}},{buttonViewModel:function(I){return _.H(_.D5,{data:I.data,
onClick:C})}}))}}),_.H(_.w,{cond:function(){return V()>B()-b()&&p().nextButton},
then:function(){return _.H("div",{class:"videoAttributesSectionViewModelRightArrow"},_.H(_.sY,{data:function(){return p().nextButton}},{buttonViewModel:function(I){return _.H(_.D5,{data:I.data,
onClick:d})}}))}})))},"yf");
hjl.idomCompat=!0;var al8=_.l(function(t){var E=t.data;var p=t.active;var U={},x={};return _.H("timeline-item-view-model",{class:_.X5("ytwTimelineItemViewModelHost",(U.ytwTimelineItemViewModelHostChapterChild=t.chapterChild,U.ytwTimelineItemViewModelModern=_.r("enable_timeline_view_modern_transcript")||_.r("enable_timeline_view_modern_transcript_fe"),U))},_.H("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.H("div",{class:_.X5("ytwTimelineItemViewModelTimestamp",(x.ytwTimelineItemViewModelTimestampActive=
p,x))},function(){return E().timestamp})),_.H("div",{class:"ytwTimelineItemViewModelContentItems"},_.H(_.sY,{data:function(){return E().contentItems}},{transcriptSegmentViewModel:function(A){return _.H(OOl,{data:A.data,
active:p})},
videoAttributesSectionViewModel:hjl})))},"zf");var ejC=_.l(function(t){var E=t.data;t={};return _.H("timeline-chapter-view-model",{class:_.X5("ytwTimelineChapterViewModelHost")},_.H("div",{class:_.X5("ytwTimelineChapterViewModelTitle",(t.ytwTimelineChapterViewModelModern=_.r("enable_timeline_view_modern_transcript")||_.r("enable_timeline_view_modern_transcript_fe"),t))},function(){return E().title}),_.H(_.sY,{data:function(){return E().contents}},{timelineItemViewModel:function(p){return _.H(al8,{data:p.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(p){return _.H(hjl,{data:p.data})}}))},"Af");var FJC=_.l(function(t){var E=t.data;var p=_.EB("macro-markers-panel-item-view-model"),U=_.nd(_.$10,function(){var A;return(A=E().markersEngagementPanelSyncEntityKey)!=null?A:""}),x=function(){var A;
return((A=U())==null?void 0:A.activeItemIndex)===E().index};
t=_.aC(function(A){var m,b,f,B,R;return _.q(function(V){if(V.nextAddress==1)return A.stopPropagation(),_.Sw(_.yb(A),p.value,["A".toString(),"BUTTON".toString()])?V.return():(m=_.AJ(E().onTap))?V.yield(_.an(),2):V.return();b=V.yieldResult;B=(f=_.k(m,_.HD))==null?void 0:f.startTimeSeconds;B===void 0||(R=b)!=null&&R.seekTo(B,!0);_.Do(V)})});
return _.H("macro-markers-panel-item-view-model",{class:_.X5("ytwMacroMarkersPanelItemViewModelHost",{"is-active":x}),el:p,"on:click":t,tabindex:0,role:"button"},_.H(_.sY,{data:function(){var A;return(A=E())==null?void 0:A.item}},{timelineChapterViewModel:function(A){return _.H(ejC,{data:A.data,
active:x})},
timelineItemViewModel:function(A){return _.H(al8,{data:A.data,active:x})},
videoAttributeViewModel:Mz3,shoppingDescriptionItemViewModel:ZO9}))},"Bf");
FJC.idomCompat=!0;_.k2(FJC,"macro-markers-panel-item-view-model",{props:{data:_.uu}});_.k2(hjl,"yt-video-attributes-section-view-model",{props:{data:_.uu}});var zj9=_.l(function(t){var E=function(){var p,U,x;return(x=(p=t.data().leadingLogoAccessibility)==null?void 0:(U=p.accessibilityData)==null?void 0:U.label)!=null?x:""};
return _.H("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.H(_.w,{cond:function(){return t.data().leadingLogo},
then:function(p){return _.H(_.Q9,{className:"ytwFantasySectionHeaderViewModelLogo",data:p,alt:E})}}),_.H("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.H(_.d8,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return t.data().title}}),_.H(_.d8,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return t.data().subtitle}})),_.H(_.sY,{data:function(){return t.data().trailingButton}},{buttonViewModel:function(p){return _.H(_.D5,{data:p.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Cf");var llt=_.l(function(t){var E={};E=_.X5("ytwFantasyTeamViewModelHost",(E.ytwFantasyTeamViewModelCompact=function(){var x;return!((x=t.compact)==null||!x.call(t))},E.ytwFantasyTeamViewModelUser=function(){return t.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},E.ytwFantasyTeamViewModelOpponent=function(){return t.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},E));
var p=function(){var x,A,m;return(m=(x=t.data().teamLogoAccessibility)==null?void 0:(A=x.accessibilityData)==null?void 0:A.label)!=null?m:""},U=_.nd(vrJ,function(){return t.data().teamEntityKey});
return _.H("ytw-fantasy-team-view-model",{class:E},_.H(_.w,{cond:function(){return t.data().teamLogo},
then:function(x){return _.H(_.Q9,{className:"ytwFantasyTeamViewModelLogo",data:x,alt:p})}}),_.H("div",{class:"ytwFantasyTeamViewModelMetadata"},_.H("div",{class:"ytwFantasyTeamViewModelHeader"},_.H(_.d8,{className:"ytwFantasyTeamViewModelScore",
text:function(){var x;return(x=U())==null?void 0:x.score}}),_.H(_.lz,{icon:function(){var x;
return(x=U())==null?void 0:x.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.H(_.d8,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var x;return(x=U())==null?void 0:x.projectedScore}})),_.H(_.d8,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return t.data().primaryText}}),_.H(_.d8,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return t.data().secondaryText}}),_.H(_.d8,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return t.data().tertiaryText}})),_.H(_.d8,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var x;return(x=U())==null?void 0:x.score}}))},"Df");_.k2(_.l(function(t){return _.H("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.H("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.H(_.sY,{data:function(){return t.data().summaryHeader}},{fantasySectionHeaderViewModel:zj9})),_.H(_.sY,{data:function(){return t.data().userTeam}},{fantasyTeamViewModel:llt}),_.H(_.sY,{data:function(){return t.data().opponentTeam}},{fantasyTeamViewModel:llt}))},"Ef"),"fantasy-league-summary-view-model",{props:{data:_.uu}});var GtL=_.l(function(t){var E=_.C4(t,{shape:{},useCustomTabRenderable:!1}),p=E.shape;E=E.useCustomTabRenderable;var U=t.customTabRenderable,x=function(){return p().disabled},A=function(){return p().selected},m=function(){return p().title},b=function(){return p().icon},f=_.EB("yt-tab-shape");
t=_.aC(function(V){var Q;if(!x()&&((Q=p().aTagConfig)==null?0:Q.onclick))p().aTagConfig.onclick(V);return!1});
var B=_.aC(function(V){if(V.key==="Enter"||V.key==="ArrowUp"||V.key==="ArrowDown")V.preventDefault(),f.value.click();return!1}),R={};
return _.H("yt-tab-shape",{class:_.X5("yt-tab-shape",function(){return p().className},(R["yt-tab-shape__tab--last-tab"]=function(){return p().isLastTab},R["yt-tab-shape--host-disabled"]=x,R["yt-tab-shape--host-clickable"]=!U,R)),
role:U?void 0:"tab","aria-selected":A!=null?A:!1,"aria-disabled":x,tabindex:U?void 0:0,"on:click":t,"on:keydown":B,el:f,"tab-identifier":function(){return p().identifier},
"tab-title":m},_.H(_.w,{cond:E,then:function(){return U()},
else:function(){var V={},Q={};return _.H(_.Oj,null,_.H("div",{class:_.X5("yt-tab-shape__tab",(V["yt-tab-shape__tab--tab-selected"]=A,V))},_.H(_.w,{cond:b,then:function(C){return _.H(_.lz,{className:"yt-tab-shape__tab-icon",icon:function(){return C().iconType}})}}),m),_.H("div",{class:_.X5("yt-tab-shape__tab-bar",(Q["yt-tab-shape__tab-bar--tab-bar-selected"]=A,Q))}))}}))},"Ff");
GtL.idomCompat={callbacks:{customTabRenderable:!0}};_.NEt=_.l(function(t){var E=t.shape;t=_.M(_.Py(48,void 0,"nDAx4"));var p=t.next().value,U=t.next().value;t=_.M(_.Py(0,void 0,"GCgjqb"));var x=t.next().value,A=t.next().value,m=function(){return E().tabs},b=_.EB("yt-tab-group-shape"),f=function(){var Q,C;
return(C=(Q=m())==null?void 0:Q.findIndex(function(d){return d.selected}))!=null?C:-1};
t=_.M(_.Py(!1,void 0,"SU01tf"));var B=t.next().value,R=t.next().value,V=function(){B()||_.ir.addJob(function(){R(!0)},0)};
_.M$(function(){var Q=f(),C=_.ir.addJob(function(){var d,I=((d=b.value)==null?void 0:d.querySelectorAll("yt-tab-shape"))||[],O;U(((O=Q>-1?I[Q]:void 0)==null?void 0:O.getBoundingClientRect().width)||0);for(O=d=0;O<Q;O++)d+=I[O].offsetWidth+24;_.qO("HTML_DIR")==="rtl"&&(d=-d);A(d);V()},8,0);
_.iK(function(){_.ir.cancelJob(C)})},"PMwgb");
t={};return _.H("yt-tab-group-shape",{class:_.X5("tabGroupShapeHost",(t.tabGroupShapeOverflowHidden=function(){return E().isOverflowHidden},t)),
el:b},_.H(_.w,{cond:m,then:function(Q){return _.H(_.Oj,null,_.H("div",{class:"tabGroupShapeTabs",role:"tablist"},_.H(_.yG,{each:Q},function(C,d){return _.H(GtL,{shape:function(){return Object.assign({},C,{isLastTab:d()===Q().length-1})},
customTabRenderable:C.customTabRenderable,useCustomTabRenderable:!!C.customTabRenderable})})),_.H(nLd,{width:p,
sliderOffset:x,enableTransition:B}))}}))},"Hf");
_.NEt.idomCompat=!0;var nLd=_.l(function(t){var E=_.Ql(t.sliderOffset,0),p=t.width,U=t.enableTransition;t={};return _.H("div",{class:_.X5("tabGroupShapeSlider",(t.tabGroupShapeSliderTransition=function(){return U()},t)),
style:_.zO({width:function(){return p()+"px"},
transform:function(){return"translateX("+E()+"px)"}})})},"If");var DKJ=_.l(function(t){var E=function(){var A,m,b;return(b=(A=t.data().playerLogoAccessibility)==null?void 0:(m=A.accessibilityData)==null?void 0:m.label)!=null?b:""},p=_.nd(yMJ,function(){return t.data().playerEntityKey}),U={};
U=_.X5("ytwFantasyPlayerViewModelHost",(U.ytwFantasyPlayerViewModelPlaying=function(){var A;return!((A=p())==null||!A.isPlayerPlaying)},U.ytwFantasyPlayerViewModelOnField=function(){var A;
return((A=p())==null?void 0:A.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},U.ytwFantasyPlayerViewModelRedZone=function(){var A;
return((A=p())==null?void 0:A.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},U));
var x=function(){var A,m,b,f=((A=_.X3().resolve(_.OB(_.Ld)))==null?0:A())?(m=t.data().playerLogoBackgroundColor)==null?void 0:m.darkTheme:(b=t.data().playerLogoBackgroundColor)==null?void 0:b.lightTheme;return f===void 0?"":_.cL(f)};
return _.H("ytw-fantasy-player-view-model",{class:U},_.H(_.w,{cond:function(){return t.data().playerLogo},
then:function(A){return _.H("div",{class:"ytwFantasyPlayerViewModelLogo"},_.H("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.H(_.Q9,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.zO({"background-color":x}),data:A,alt:E})),_.H("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.H(_.lz,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.H("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.H("div",{class:"ytwFantasyPlayerViewModelHeader"},_.H(_.d8,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var A;return(A=t.data())==null?void 0:A.playerNameText}}),_.H(_.d8,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var A;return(A=t.data())==null?void 0:A.playerDescriptionText}})),_.H("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.H(_.d8,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var A;return(A=p())==null?void 0:A.gamePeriodText}}),_.H(_.d8,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var A;return(A=t.data())==null?void 0:A.opponentTeamText}}),_.H(_.d8,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var A;return(A=p())==null?void 0:A.gameStatusText}}),_.H(_.d8,{className:_.X5("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var A;return(A=p())==null?void 0:A.playerStatusText}})),_.H("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.H(_.d8,{text:function(){var A;
return(A=p())==null?void 0:A.playerStatsText}}))),_.H(_.d8,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var A;return(A=p())==null?void 0:A.fantasyScore}}))},"Jf");var s0t=_.l(function(t){return _.H("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.H(_.w,{cond:function(){return t.data().players},
then:function(E){return _.H(_.sY,{data:E},{fantasyPlayerViewModel:DKJ})}}))},"Kf");var LJb=_.l(function(t){var E=_.M(_.j5(function(){var x;return(x=t.data().selectedTabIdentifierKey)!=null?x:""})),p=E.next().value,U=E.next().value;
_.xa(function(){var x;(x=t.setSelectedTabSignal)==null||x.call(t,p)});
return _.H("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.H("div",{class:"ytTabbedViewModelTabGroup"},_.H(_.NEt,{shape:function(){var x=t.data(),A=[],m={tabs:A};if(!x.tabs)return m;x=_.M(x.tabs);for(var b=x.next(),f={};!b.done;f={tabViewModel:void 0},b=x.next())if(f.tabViewModel=_.k(b.value,GpX),f.tabViewModel){var B=b=void 0;A.push({aTagConfig:{onclick:function(R){return function(){var V;U((V=R.tabViewModel.tabIdentifier)!=null?V:"")}}(f)},
identifier:f.tabViewModel.tabIdentifier,selected:p()===f.tabViewModel.tabIdentifier,title:(B=(b=f.tabViewModel.title)==null?void 0:b.content)!=null?B:""})}return m}})),_.H(_.sY,{data:function(){var x,A=_.M((x=t.data().tabs)!=null?x:[]);
for(x=A.next();!x.done;x=A.next())if((x=_.k(x.value,GpX))&&x.tabIdentifier===p())return x.content}},{fantasyRosterViewModel:s0t}))},"Mf");_.k2(_.l(function(t){var E=_.M(YPj()),p=E.next().value,U=E.next().value;return _.H("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.H(_.d8,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return t.data().title}}),_.H(_.w,{cond:function(){return t.data().tabbedViewModel},
then:function(x){return _.H(_.sY,{data:x},{tabbedViewModel:function(A){return _.H(LJb,{data:A.data,setSelectedTabSignal:U})}})}}),_.H(_.w,{cond:function(){var x,A=(x=_.k(t.data().tabbedViewModel,npm))==null?void 0:x.tabs;
x=_.k(A==null?void 0:A[0],GpX);A=_.k(A==null?void 0:A[1],GpX);var m=x==null?void 0:x.tabIdentifier;if(p()===m){var b,f;if(!((b=_.k(x==null?void 0:x.content,vFo))==null?0:(f=b.players)==null?0:f.length))return t.data().noUserTeamPlayersText}else{var B,R;if(!((B=_.k(A==null?void 0:A.content,vFo))==null?0:(R=B.players)==null?0:R.length))return t.data().noOpponentTeamPlayersText}},
then:function(x){return _.H(_.d8,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:x})}}))},"Nf"),"ytw-fantasy-matchup-view-model",{props:{data:_.uu}});_.k2(_.l(function(t){return _.H("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.H(_.d8,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return t.data().title}}),_.H(_.w,{cond:function(){return t.data().matchupTeamPairs},
then:function(E){return _.H(_.yG,{each:E,keyBy:"INDEX"},function(p){return _.H("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.H(_.sY,{data:function(){return[p().firstTeam,p().secondTeam]}},{fantasyTeamViewModel:function(U){return _.H(llt,{data:U.data,
compact:!0})}}))})}}))},"Of"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.uu}});_.k2(_.l(function(t){var E=function(){var x,A,m;return(m=(x=t.data().userLogoAccessibility)==null?void 0:(A=x.accessibilityData)==null?void 0:A.label)!=null?m:""},p=function(){var x,A,m;
return(m=(x=t.data().opponentLogoAccessibility)==null?void 0:(A=x.accessibilityData)==null?void 0:A.label)!=null?m:""},U=_.nd(Kx$,function(){return t.data().entityKey});
return _.H("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.H("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.H(_.w,{cond:function(){return t.data().userLogo},
then:function(x){return _.H(_.Q9,{className:"ytwFantasyWinProbabilityViewModelLogo",data:x,alt:E})}}),_.H("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.H(_.d8,{text:function(){return t.data().title}})),_.H(_.w,{cond:function(){return t.data().opponentLogo},
then:function(x){return _.H(_.Q9,{className:"ytwFantasyWinProbabilityViewModelLogo",data:x,alt:p})}})),_.H("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.H("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.H(_.d8,{text:function(){var x;
return(x=U())==null?void 0:x.userWinNumberLabel}})),_.H("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.H("div",{class:_.X5("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.zO({flex:function(){var x,A;return(A=(x=U())==null?void 0:x.userWinNumber)!=null?A:50}})}),_.H("div",{class:_.X5("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.zO({flex:function(){var x,A;return(A=(x=U())==null?void 0:x.opponentWinNumber)!=null?A:50}})})),_.H("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.H(_.d8,{text:function(){var x;
return(x=U())==null?void 0:x.opponentWinNumberLabel}}))))},"Pf"),"fantasy-win-probability-view-model",{props:{data:_.uu}});var PYg={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},TEe=_.l(function(t){return _.H(_.sY,{data:t.button},{buttonViewModel:function(E){return _.H(_.D5,{data:E.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"Qf"),oLt=_.l(function(t){return _.H("ytd-backstage-locked-post-view-model",{class:_.X5("ytdBackstageLockedPostViewModelHost",t.className)},_.H("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.H("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.H(_.sY,
{data:function(){return t.data().authorAvatar}},{decoratedAvatarViewModel:_.BM})),_.H("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.H("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.H(_.d8,{text:function(){return t.data().authorText}})),_.H("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.H(_.d8,{text:function(){return t.data().publishedTimeText}}),_.H(_.sY,{data:function(){return t.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(E){return _.H(NRT,
{data:E.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.H("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.H(_.d8,{text:function(){return t.data().contentText}})),_.H(_.SC,null,_.H(_.Kw,{when:function(){return t.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.H("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.H(_.Q9,{data:PYg,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.H(_.d8,{text:function(){return t.data().lockedText}}))}),_.H(_.Kw,{when:function(){return t.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.H("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.H("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.H(_.Q9,{data:PYg,
alt:""})),_.H(_.d8,{text:function(){return t.data().lockedText}}))})),_.H("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.H(TEe,{button:function(){return t.data().likeButton}}),_.H("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return t.data().voteCountA11y}},_.H(_.d8,{text:function(){return t.data().voteCount}})),_.H(TEe,{button:function(){return t.data().dislikeButton}}),_.H(TEe,{button:function(){return t.data().commentButton}}),_.H("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return t.data().commentCountA11y}},_.H(_.d8,{text:function(){return t.data().commentCount}}))))},"Rf");
oLt.idomCompat=!0;_.k2(oLt,"ytd-backstage-locked-post-view-model",{props:{data:_.uu,className:_.uu}});_.vs("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var Zc=function(){var t=_.z.apply(this,arguments)||this;t.darkerPanels=_.r("web_watch_darker_panels");t.commentsHidePanelButton=!1;t.isWatchGrid=!1;t.continuationShowButton=!1;t.isSearch=!1;t.isConstrainedList=!1;t.isWatch=!1;t.eligibleToSwitchToGrid=!1;t.useBigThumbs=!1;t.epRestyle=!1;t.isCarouselInFeed=!0;t.topSpacingZero=!1;t.continuationIsInitialLoad=!0;t.enableSqueezebackPanels=_.r("web_shorts_enable_squeezeback_panels");t.enableAnchoredPanel=_.r("desktop_shorts_v2_anchored_panel");t.notSticky=
!0;t.mastheadHeight=0;t.isStickyChipBarSetup=!1;t.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};t.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return t};
_.u(Zc,_.z);_.Y=Zc.prototype;_.Y.updateLockupContainerTypes=function(t){if(this.eligibleToSwitchToGrid){var E;(E=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||E.forEach(function(p){p.containerType=t})}};
_.Y.getItemsPath=function(){return"data.contents"};
_.Y.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.Y.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:_.r("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.r("kevlar_low_priority_continuation")}}};
_.Y.created=function(){};
_.Y.updateStickySetup=function(){_.r("web_fix_sticky_playlist_header_v2")&&this.pageSubtype==="playlist"?this.setupStickyChipBar():this.teardownStickyChipBar()};
_.Y.dispatchChipBarIsSticky=function(){this.isStickyChipBarSetup&&this.ytdReduxBehavior.dispatch(qqp(!this.notSticky))};
_.Y.setupStickyChipBar=function(){var t=this;if(!this.isStickyChipBarSetup&&_.r("web_fix_sticky_playlist_header_v2")){this.isStickyChipBarSetup=!0;document.addEventListener("scroll",_.zI(this,this.updateHeaderState));var E;this.mastheadHeight=((E=document.querySelector("ytd-masthead"))==null?void 0:E.clientHeight)||0;this.updateHeaderCssVariables();window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(p){t.handleIntersect(p)},{rootMargin:"-"+(this.mastheadHeight+
1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){t.updateHeaderState();t.updateHeaderCssVariables()}),this.resizeObserver.observe(this.hostElement))}};
_.Y.teardownStickyChipBar=function(){if(this.isStickyChipBarSetup){this.isStickyChipBarSetup=!1;document.removeEventListener("scroll",_.zI(this,this.updateHeaderState));var t;(t=this.intersectionObserver)==null||t.disconnect();var E;(E=this.resizeObserver)==null||E.disconnect()}};
_.Y.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.Y.handleIntersect=function(t){this.notSticky=t[0].intersectionRatio===1};
_.Y.updateHeaderCssVariables=function(){this.hostElement.style.setProperty("--ytd-item-section-header-width",this.hostElement.clientWidth+"px");this.hostElement.style.setProperty("--ytd-item-section-header-top",this.mastheadHeight+"px")};
_.Y.detached=function(){this.teardownStickyChipBar()};
_.Y.updated=function(t){t.has("data")&&this.isStickyChipBarSetup&&(this.updateHeaderState(),this.updateHeaderCssVariables())};
_.Y.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var t=_.ZN(this.hostElement).querySelector("ytd-comments-header-renderer");t&&(t.hidePanelButton=this.commentsHidePanelButton)}};
_.Y.onRetrieveLocation=function(t,E){this.containsComments()&&(this.firstCommentsLoaded=E.hasComments=!0)};
_.Y.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.Y.onLoadReloadContinuation=function(t,E){var p=this;t.stopPropagation();this.isReloading=!0;_.kT(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(U){var x=_.X3().resolve(_.Lf);U=E(U);x.postData(U).then(function(A){p.onReloadContinuationData(A)})}})};
_.Y.onReloadContinuationData=function(t){if(t=this.get("response.continuationContents.itemSectionContinuation",t)||this.get("response.contents.itemSectionRenderer",t)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",t)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",t))this.set("data.contents",t.contents||t.results),t.header&&this.set("data.header",t.header),this.set("data.continuations",
t.continuations||[]);this.isReloading=!1};
_.Y.computeContentsClass=function(t){return t?"reloading":""};
_.Y.computeSectionIdentifier=function(t){return t==null?void 0:t.sectionIdentifier};
_.Y.computeFitContainer=function(t){return(t==null?void 0:t.sectionIdentifier)==="youchat-item-section"};
_.Y.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.r("kevlar_disable_comments_auto_load")};
_.Y.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.Y.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.Y.computeHasDestinationShelfRenderer=function(t){var E,p;return!!(t==null?0:(E=t.contents)==null?0:(p=E[0])==null?0:p.destinationShelfRenderer)};
_.Y.computeHasSectionGroupViewModel=function(t){var E,p;return!!(t==null?0:(E=t.contents)==null?0:(p=E[0])==null?0:p.sectionGroupViewModel)};
_.Y.computeHasQrCodeRenderer=function(t){var E,p;return!!(t==null?0:(E=t.contents)==null?0:(p=E[0])==null?0:p.qrCodeRenderer)};
_.Y.computeStaticCommentsHeader=function(t){return t&&this.containsComments()};
_.Y.computeEpRestyle=function(t){return _.r("web_ep_restyling")&&t&&this.containsComments()};
_.Y.computeIsContinuationCommentSection=function(t){return(t==null?void 0:t.targetId)==="shorts-engagement-panel-comments-section"||(t==null?void 0:t.targetId)==="comments-section"||(t==null?void 0:t.targetId)==="engagement-panel-comments-section"};
_.Y.computeSuppressPaddingDisclaimer=function(){var t,E,p,U;return!!((t=this.data)==null?0:(E=t.contents)==null?0:(p=E[0])==null?0:(U=p.productListHeaderRenderer)==null?0:U.suppressPaddingDisclaimer)};
_.Y.computeHeaderStyle=function(t){switch(t==null?void 0:t.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.Y.dataChanged=function(){this.firstCommentsLoaded=!1};
_.Y.observeDataContentsLength=function(){var t,E;((t=this.data)==null?0:(E=t.contents)==null?0:E.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.Y.onYtDismissibleItemDismissedChange=function(t){this._setItemDismissed(t.type==="yt-dismissible-item-dismissed")};
_.Y.triggerContinuations=function(){for(var t=_.ZN(this.hostElement).querySelector("#continuations").children,E=0;E<t.length;E++)t[E].trigger()};
_.Y.triggerInitialContinuations=function(){for(var t=_.ZN(this.hostElement).querySelector("#continuations").children,E=0;E<t.length;E++)t[E].triggerIfNotPreviouslyTriggered()};
_.Y.handleYtItemSectionContinuation=function(t,E){var p;E&&((p=this.data)==null?void 0:p.sectionIdentifier)!==E||(this.set("data.continuations",[t]),this.triggerContinuations())};
_.Y.handleYtItemSectionReplace=function(t,E){var p;E&&((p=this.data)==null?void 0:p.sectionIdentifier)!==E||(this.set("data.contents",t),this.set("data.continuations",[]))};
_.Y.computeUseHeightHack=function(t){return t&&!_.r("kevlar_disable_height_hack")};
_.Y.computeTopSpacingZero=function(t){return t};
_.Y.continuationShowButtonChanged=function(){var t=_.ZN(this.hostElement).querySelector("ytd-continuation-item-renderer");t&&(t.showButton=this.continuationShowButton)};
_.Y.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IU("data-changed",this.data))};
_.aE.Object.defineProperties(Zc.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.r("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?"STANDARD":this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return!!((t=this.data)==null?0:(E=t.contents)==null?0:(p=E[0])==null?0:p.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var t,E,p,U,x,A,m;return!!((t=this.data)==null?0:(E=t.contents)==null?0:(p=E[0])==null?0:(U=p.shelfRenderer)==null?0:(x=U.content)==null?0:(A=x.gridRenderer)==null?0:(m=A.targetId)==null?0:m.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return!!((t=this.data)==null?0:(E=t.contents)==null?0:(p=E[0])==null?0:p.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return!!((t=this.data)==null?0:(E=t.contents)==null?0:(p=E[0])==null?0:p.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.la("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.r("use_modern_typography_on_search")};if(this.isWatch)return{useInlineContentMetadata:this.useBigThumbs&&_.r("web_watch_next_big_thumbs_compact_layout"),useRichGridLegacyMargin:this.useBigThumbs&&_.r("web_watch_next_big_thumbs_expanded_layout")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.r("use_modern_typography_on_search")}},
useChipBarViewModelHeader:{configurable:!0,enumerable:!0,get:function(){var t,E;return!!((t=this.data)==null?0:(E=t.header)==null?0:E.chipBarViewModel)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.r("web_fix_sticky_playlist_header")}},
expFixPlaylistHeaderV2:{configurable:!0,enumerable:!0,get:function(){return _.r("web_fix_sticky_playlist_header_v2")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
Zc.prototype.dataChangedForBinding=Zc.prototype.dataChangedForBinding;Zc.prototype.continuationShowButtonChanged=Zc.prototype.continuationShowButtonChanged;Zc.prototype.onYtDismissibleItemDismissedChange=Zc.prototype.onYtDismissibleItemDismissedChange;Zc.prototype.observeDataContentsLength=Zc.prototype.observeDataContentsLength;Zc.prototype.dataChanged=Zc.prototype.dataChanged;Zc.prototype.onServiceRequestCompleted=Zc.prototype.onServiceRequestCompleted;Zc.prototype.onLoadReloadContinuation=Zc.prototype.onLoadReloadContinuation;
Zc.prototype.onRetrieveLocation=Zc.prototype.onRetrieveLocation;Zc.prototype.commentsHidePanelButtonChanged=Zc.prototype.commentsHidePanelButtonChanged;Zc.prototype.dispatchChipBarIsSticky=Zc.prototype.dispatchChipBarIsSticky;Zc.prototype.updateStickySetup=Zc.prototype.updateStickySetup;Zc.prototype.updateLockupContainerTypes=Zc.prototype.updateLockupContainerTypes;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Zc.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Zc.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Zc.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.F_.YtLazyListBehavior),_.P("design:type",Object)],Zc.prototype,"ytLazyListBehavior",void 0);_.N([_.g(_.gj.YtNextContinuationBehavior),_.P("design:type",Object)],Zc.prototype,"ytNextContinuationBehavior",void 0);
_.N([_.g(_.I6),_.P("design:type",Object)],Zc.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Zc.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],Zc.prototype,"ytdReduxBehavior",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Zc.prototype,"darkerPanels",void 0);_.N([_.e(),_.P("design:type",Object)],Zc.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",Boolean)],Zc.prototype,"engagementPanel",void 0);_.N([_.e(),_.P("design:type",Object)],Zc.prototype,"commentsHidePanelButton",void 0);_.N([_.e(),_.P("design:type",Object)],Zc.prototype,"isWatchGrid",void 0);_.N([_.e(),_.P("design:type",Object)],Zc.prototype,"continuationShowButton",void 0);_.N([_.e({computed:"computeIsContinuationCommentSection(data)"}),_.P("design:type",Boolean)],Zc.prototype,"continuationIsCommentsSection",void 0);
_.N([_.e({value:!0}),_.P("design:type",Boolean)],Zc.prototype,"autoFill",void 0);_.N([_.e(),_.P("design:type",Boolean)],Zc.prototype,"continuationDisablePrescanVisibility",void 0);_.N([_.e(),_.P("design:type",Boolean)],Zc.prototype,"isReloading",void 0);_.N([_.e(),_.P("design:type",Object)],Zc.prototype,"isSearch",void 0);_.N([_.e(),_.P("design:type",Object)],Zc.prototype,"isConstrainedList",void 0);_.N([_.e(),_.P("design:type",Object)],Zc.prototype,"isWatch",void 0);
_.N([_.e(),_.P("design:type",Object)],Zc.prototype,"eligibleToSwitchToGrid",void 0);_.N([_.e(),_.P("design:type",Object)],Zc.prototype,"useBigThumbs",void 0);_.N([_.e({selector:_.pd,reflectToAttribute:!0}),_.P("design:type",Object)],Zc.prototype,"isGridViewEnabled",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.P("design:type",Object)],Zc.prototype,"epRestyle",void 0);
_.N([_.Z("isWatch"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Zc.prototype,"hideShortsShelfHeader",null);_.N([_.Z("isSearch","isWatch"),_.P("design:type",String),_.P("design:paramtypes",[])],Zc.prototype,"thumbnailWidth",null);_.N([_.Z("isSearch","containerWidth"),_.P("design:type",Object),_.P("design:paramtypes",[])],Zc.prototype,"thumbnailTargetWidth",null);
_.N([_.Z("isSearch","isWatch","useBigThumbs"),_.P("design:type",String),_.P("design:paramtypes",[])],Zc.prototype,"sizing",null);_.N([_.Z("isWatch","isGridViewEnabled","useBigThumbs","data"),_.e({reflectToAttribute:!0}),_.P("design:type",Number),_.P("design:paramtypes",[])],Zc.prototype,"lockupContainerType",null);_.N([_.GI("lockupContainerType","data"),_.P("design:type",Function),_.P("design:paramtypes",[Number]),_.P("design:returntype")],Zc.prototype,"updateLockupContainerTypes",null);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],Zc.prototype,"pageSubtype",void 0);_.N([_.e(),_.P("design:type",Number)],Zc.prototype,"containerWidth",void 0);_.N([_.e(),_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Zc.prototype,"isPlaylist",null);_.N([_.e(),_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Zc.prototype,"isClipList",null);_.N([_.e(),_.P("design:type",Object)],Zc.prototype,"isCarouselInFeed",void 0);
_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Zc.prototype,"isPlaylistVideoContainer",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Zc.prototype,"isSearchFrictionPage",null);_.N([_.e({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.P("design:type",Boolean)],Zc.prototype,"useHeightHack",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.P("design:type",Object)],Zc.prototype,"topSpacingZero",void 0);_.N([_.e({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.P("design:type",Boolean)],Zc.prototype,"showButton",void 0);_.N([_.e(),_.P("design:type",Boolean)],Zc.prototype,"firstCommentsLoaded",void 0);_.N([_.e(),_.P("design:type",Object)],Zc.prototype,"continuationIsInitialLoad",void 0);
_.N([_.e({reflectToAttribute:!0,readOnly:!0}),_.P("design:type",Boolean)],Zc.prototype,"itemDismissed",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.P("design:type",String)],Zc.prototype,"sectionIdentifier",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.P("design:type",String)],Zc.prototype,"fitContainer",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.P("design:type",Boolean)],Zc.prototype,"hasDestinationShelfRenderer",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.P("design:type",Boolean)],Zc.prototype,"staticCommentsHeader",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Zc.prototype,"enableSqueezebackPanels",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Zc.prototype,"enableAnchoredPanel",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.P("design:type",Boolean)],Zc.prototype,"hasSectionGroupViewModel",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.P("design:type",Boolean)],Zc.prototype,"hasQrCodeRenderer",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.P("design:type",Boolean)],Zc.prototype,"suppressDisclaimerSeparator",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.P("design:type",String)],Zc.prototype,"headerStyle",void 0);_.N([_.Z("isSearch","isWatch","useBigThumbs"),_.P("design:type",Object),_.P("design:paramtypes",[])],Zc.prototype,"lockupExperiments",null);
_.N([_.Z("isSearch"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Zc.prototype,"typographyBump",null);_.N([_.Nl("#header"),_.P("design:type",HTMLElement)],Zc.prototype,"header",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Zc.prototype,"notSticky",void 0);_.N([_.Z("data"),_.e({reflectToAttribute:!0}),_.P("design:type",Object),_.P("design:paramtypes",[])],Zc.prototype,"useChipBarViewModelHeader",null);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Zc.prototype,"expFixPlaylistHeader",null);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Zc.prototype,"expFixPlaylistHeaderV2",null);_.N([_.GI("pageSubtype"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Zc.prototype,"updateStickySetup",null);
_.N([_.GI("notSticky"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Zc.prototype,"dispatchChipBarIsSticky",null);_.N([_.GI("commentsHidePanelButton"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Zc.prototype,"commentsHidePanelButtonChanged",null);_.N([_.lc("yt-retrieve-location"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],Zc.prototype,"onRetrieveLocation",null);
_.N([_.lc("yt-load-reload-continuation"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Function]),_.P("design:returntype")],Zc.prototype,"onLoadReloadContinuation",null);_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Zc.prototype,"onServiceRequestCompleted",null);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Zc.prototype,"dataChanged",null);
_.N([_.P3("data.contents.length"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Zc.prototype,"observeDataContentsLength",null);_.N([_.lc("yt-dismissible-item-dismissed"),_.lc("yt-dismissible-item-undismissed"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Zc.prototype,"onYtDismissibleItemDismissedChange",null);
_.N([_.GI("continuationShowButton"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Zc.prototype,"continuationShowButtonChanged",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Zc.prototype,"dataChangedForBinding",null);_.N([_.Ul({is:"ytd-item-section-renderer",disableElementRegistration:!0})],Zc);
_.G(Zc,"ytd-item-section-renderer",function(){if(cr4!==void 0)return cr4;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return cr4=t},{mode:1});var WJo;var bjE=_.wN(_.zF("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var $Ke={},mZt=($Ke[0]={title:_.kh(_.zF("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.kh(_.zF("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.j1("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},$Ke[1]={title:_.kh(_.zF("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.j1("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},$Ke);_.vs("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var OZ=function(){var t=_.z.apply(this,arguments)||this;t.allVideosCount=0;t.allPlaylistCount=0;t.isOnline=!1;t.shouldRenderDownloadsBanner=!1;t.shouldRenderDownloadsBannerUpsell=!1;t.hasOptedIntoSmartDownloads=!1;t.areAllSmartDownloadsDeleted=!1;t.smartDownloadsCompleted=!1;return t};
_.u(OZ,_.z);OZ.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
OZ.prototype.attached=function(){this.downloadsToRenderChanged()};
OZ.prototype.detached=function(){this.set("renderableData",{})};
OZ.prototype.downloadsToRenderChanged=function(){var t=_.QM().getState().entities,E=_.vA(t),p=_.r("kevlar_playlist_dl_page_killswitch")?XdL(t):_.yR(t),U=_.dYj(t),x=_.gt_(t),A=_.PA(E);t=_.S1(t);this.set("renderableData",qPK(p,E,U,x,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,A,t))};
OZ.prototype.downloadsToRenderChanged=OZ.prototype.downloadsToRenderChanged;_.N([_.g(_.Be),_.P("design:type",Object)],OZ.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],OZ.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],OZ.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],OZ.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],OZ.prototype,"renderableData",void 0);_.N([_.e({selector:_.PI0}),_.P("design:type",Object)],OZ.prototype,"allVideosCount",void 0);_.N([_.e({selector:oyO}),_.P("design:type",Object)],OZ.prototype,"allPlaylistCount",void 0);_.N([_.e({selector:_.U5}),_.P("design:type",Object)],OZ.prototype,"isOnline",void 0);_.N([_.e({selector:_.y4L}),_.P("design:type",Object)],OZ.prototype,"shouldRenderDownloadsBanner",void 0);
_.N([_.e({selector:_.Epj}),_.P("design:type",Object)],OZ.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.N([_.e({selector:_.S7_}),_.P("design:type",Object)],OZ.prototype,"hasOptedIntoSmartDownloads",void 0);_.N([_.e({selector:_.c4$}),_.P("design:type",Object)],OZ.prototype,"areAllSmartDownloadsDeleted",void 0);_.N([_.e({selector:tpt}),_.P("design:type",Object)],OZ.prototype,"smartDownloadsCompleted",void 0);
_.N([_.P3("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],OZ.prototype,"downloadsToRenderChanged",null);_.N([_.Ul({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],OZ);
_.G(OZ,"ytd-offline-item-section-renderer",function(){if(WJo!==void 0)return WJo;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return WJo=t},
{mode:1});var KJ8;var vLo;var Xj=function(){return _.z.apply(this,arguments)||this};
_.u(Xj,_.z);
Xj.prototype.onDataChanged=function(){if(this.JSC$17139_lastData){var t=this.getFilterClass(this.JSC$17139_lastData.status);t&&this.hostElement.classList.remove(t)}var E;(t=this.getFilterClass((E=this.data)==null?void 0:E.status))&&this.hostElement.classList.add(t);t==="selected"?_.ZN(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.ZN(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");t==="disabled"?_.ZN(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.ZN(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$17139_lastData=this.data};
Xj.prototype.getFilterClass=function(t){switch(t){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
Xj.prototype.onDataChanged=Xj.prototype.onDataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Xj.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Xj.prototype,"data",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Xj.prototype,"onDataChanged",null);_.N([_.Ul({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],Xj);
_.G(Xj,"ytd-search-filter-renderer",function(){if(vLo!==void 0)return vLo;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return vLo=t},{mode:_.hX("kevlar_poly_si_batch_j075")?1:2});var h7=function(){return _.z.apply(this,arguments)||this};
_.u(h7,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],h7.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],h7.prototype,"data",void 0);_.N([_.Ul({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],h7);
_.G(h7,"ytd-search-filter-group-renderer",function(){if(KJ8!==void 0)return KJ8;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return KJ8=t},{mode:_.hX("kevlar_poly_si_batch_j075")?1:2});var yDl;var aN=function(){return _.z.apply(this,arguments)||this};
_.u(aN,_.z);aN.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Lm());this.isCollapsed=!this.isCollapsed};
aN.prototype.navigateToAboutTheseResultsPage=function(){var t=_.vw("https://www.youtube.com/howyoutubeworks/product-features/search/");t?_.b0(window,t,"_blank"):_.fR(Error("Vh"))};
aN.prototype.dataChanged=function(){this.isCollapsed=!0};
aN.prototype.computeShowBottomBorder=function(){var t,E,p;return!!((t=this.data)==null?0:(E=t.button)==null?0:E.toggleButtonRenderer)||!((p=this.data)==null||!p.aboutTheseResultsButton)};
aN.prototype.dataChanged=aN.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],aN.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],aN.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.P("design:type",Boolean)],aN.prototype,"showBottomBorder",void 0);_.N([_.e(),_.P("design:type",Boolean)],aN.prototype,"renderCollapsibleMenu",void 0);
_.N([_.e(),_.P("design:type",Boolean)],aN.prototype,"isCollapsed",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],aN.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],aN);
_.G(aN,"ytd-search-sub-menu-renderer",function(){if(yDl!==void 0)return yDl;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return yDl=t},{mode:1});var Si7;var cDC=new _.gM("SECTION_LIST_RENDERER_TOKEN");var tWC;var eB=function(){return _.z.apply(this,arguments)||this};
_.u(eB,_.z);eB.prototype.computeStyle=function(t){return t?t.toLowerCase().replace(/_/g,"-"):""};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],eB.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],eB.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.P("design:type",String)],eB.prototype,"headerStyle",void 0);_.N([_.Ul({is:"ytd-text-header-renderer",disableElementRegistration:!0})],eB);
_.G(eB,"ytd-text-header-renderer",function(){if(tWC!==void 0)return tWC;var t=document.createElement("template");_.J(t,"\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");t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return tWC=t},{mode:1});var Em8;var Fj=function(){return _.z.apply(this,arguments)||this};
_.u(Fj,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Fj.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Fj.prototype,"data",void 0);_.N([_.Ul({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],Fj);
_.G(Fj,"ytd-minor-moment-header-renderer",function(){if(Em8!==void 0)return Em8;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Em8=t},{mode:1});var ppo;var z6=function(){return _.z.apply(this,arguments)||this};
_.u(z6,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],z6.prototype,"data",void 0);_.N([_.Ul({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],z6);
_.G(z6,"ytd-minor-moment-setting-alert-renderer",function(){if(ppo!==void 0)return ppo;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return ppo=t},{mode:1});var UfK;var xfo;var l2=function(){var t=_.z.apply(this,arguments)||this;t.booleanSettingById=!1;t.smartDownloadsEnabledVE=_.h8(128287);t.smartDownloadsDisabledVE=_.h8(128286);t.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return t};
_.u(l2,_.z);_.Y=l2.prototype;_.Y.attachSmartDownloadsSettingVes=function(){var t;this.activeVeForLogging||((t=this.data)==null?void 0:t.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.Tw(_.Pu(),this.smartDownloadsEnabledVE),_.Tw(_.Pu(),this.smartDownloadsDisabledVE))};
_.Y.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.kT(this.hostElement,"yt-settings-switch-ready")};
_.Y.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.Y.onSwitchChange=function(t){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(t=_.Qx(t).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.r("kevlar_settings_switch_resolve_command_killswitch")?_.X3().resolve(_.ei).resolveCommand(t,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(t)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.Y.handleUpdateSettingsSwitch=function(t){(t=_.k(t,w$X))&&this.data&&this.data.id===t.id&&this.set("data.enabled",!!t.enabled)};
_.Y.onToggleSettingsSwitch=function(t,E){this.data&&this.data.id===t&&this.set("data.enabled",E!=null?E:!this.data.enabled)};
_.Y.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.e3.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.Y.maybeLogSmartDownloadsSettingVisibility=function(){var t=_.yL(),E;t&&((E=this.data)==null?void 0:E.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.bU(t,[this.smartDownloadsEnabledVE]),_.iU(t,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.bU(t,[this.smartDownloadsDisabledVE]),_.iU(t,[this.smartDownloadsEnabledVE])))};
_.Y.maybeLogSmartDownloadsSettingClick=function(){var t;((t=this.data)==null?void 0:t.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.WH(_.Pu(),this.activeVeForLogging)};
_.Y.updateDataEnabledFromBinding=function(t){this.set("data.enabled",t.detail.value)};
_.aE.Object.defineProperties(l2.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var t=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!t&&(t=this.ytRendererBehavior.getSimpleString(this.data.title));return t}}});
l2.prototype.dataChanged=l2.prototype.dataChanged;_.N([_.g(_.Be),_.P("design:type",Object)],l2.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],l2.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],l2.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],l2.prototype,"ytComponentBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],l2.prototype,"data",void 0);_.N([_.e({selector:function(t,E){if(Object.keys(t==null?void 0:t.entities).length)switch(E){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return hOO(t.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.P("design:type",Object)],l2.prototype,"booleanSettingById",void 0);_.N([_.e(),_.P("design:type",_.K_)],l2.prototype,"activeVeForLogging",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],l2.prototype,"toggleAriaLabel",null);_.N([_.P3("data"),_.P3("booleanSettingById"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l2.prototype,"dataChanged",null);
_.N([_.Ul({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],l2);
_.G(l2,"ytd-settings-switch-renderer",function(){if(xfo!==void 0)return xfo;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return xfo=t},{mode:1});var G6=function(){return _.z.apply(this,arguments)||this};
_.u(G6,_.z);G6.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}}}}};
_.aE.Object.defineProperties(G6.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var t=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(t+=" remove-left-margin");this.data.extraBottomSpace&&(t+=" extra-bottom-space");return t}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],G6.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],G6.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],G6.prototype,"data",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],G6.prototype,"contentsClassName",null);_.N([_.Ul({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],G6);
_.G(G6,"ytd-minor-moment-setting-section-renderer",function(){if(UfK!==void 0)return UfK;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return UfK=t},{mode:1});var A3J;var nv=function(){return _.z.apply(this,arguments)||this};
_.u(nv,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],nv.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],nv.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],nv.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],nv);
_.G(nv,"ytd-empty-product-details-renderer",function(){if(A3J!==void 0)return A3J;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return A3J=t},{mode:1});var Yrt;var MWC;var N3=function(){var t=_.z.apply(this,arguments)||this;t.expanded=!0;return t};
_.u(N3,_.z);N3.prototype.getBadgeRowClass=function(t,E,p){for(var U=_.M(this.hostElement.querySelectorAll("yt-img-shadow")),x=U.next();!x.done;x=U.next())x.value.onShow();t=t.selected;return p?t!==-1?t===E?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(t!==void 0?t:0)===E?"badge-line":"badge-hidden"};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],N3.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],N3.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],N3.prototype,"expanded",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],N3);
_.G(N3,"ytd-sponsorships-loyalty-badges-renderer",function(){if(MWC!==void 0)return MWC;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return MWC=t},{mode:1});var mfo;var Dc=function(){var t=_.z.apply(this,arguments)||this;t.expanded=!0;return t};
_.u(Dc,_.z);Dc.prototype.getContainerClasses=function(t,E){t=t?"expanded":"collapsed";E&&(t+=" item");return t};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Dc.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Dc.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Dc.prototype,"expanded",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Dc);
_.G(Dc,"ytd-sponsorships-perk-renderer",function(){if(mfo!==void 0)return mfo;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return mfo=t},{mode:1});var bsl;var sZ=function(){var t=_.z.apply(this,arguments)||this;t.expanded=!0;return t};
_.u(sZ,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],sZ.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],sZ.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],sZ.prototype,"expanded",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],sZ);
_.G(sZ,"ytd-sponsorships-perks-renderer",function(){if(bsl!==void 0)return bsl;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return bsl=t},{mode:1});var Lv=function(){var t=_.z.apply(this,arguments)||this;t.isCollapsed=!1;return t};
_.u(Lv,_.z);Lv.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
Lv.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
Lv.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var t;this.expandCollapseButton=_.k((t=this.data)==null?void 0:t.expandButton,_.Ry)}else{var E;this.expandCollapseButton=_.k((E=this.data)==null?void 0:E.collapseButton,_.Ry)}};
Lv.prototype.updateExpandCollapseButton=Lv.prototype.updateExpandCollapseButton;Lv.prototype.onDataChanged=Lv.prototype.onDataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Lv.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Lv.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Lv.prototype,"isCollapsed",void 0);_.N([_.e(),_.P("design:type",Object)],Lv.prototype,"expandCollapseButton",void 0);
_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Lv.prototype,"onDataChanged",null);_.N([_.P3("data","isCollapsed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Lv.prototype,"updateExpandCollapseButton",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],Lv);
_.G(Lv,"ytd-sponsorships-expandable-perks-renderer",function(){if(Yrt!==void 0)return Yrt;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Yrt=t},{mode:1});var isK;var Pr=function(){return _.z.apply(this,arguments)||this};
_.u(Pr,_.z);Pr.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Pr.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Pr.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Pr.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],Pr);
_.G(Pr,"ytd-sponsorships-actionable-message-renderer",function(){if(isK!==void 0)return isK;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return isK=t},{mode:1});var qrC;var T6=function(){return _.z.apply(this,arguments)||this};
_.u(T6,_.z);_.Y=T6.prototype;_.Y.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.Y.getExpansionIcon=function(t){return t?"COLLAPSE":"EXPAND"};
_.Y.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.Y.computeMessageContainerStyle=function(t){var E=t.expandableItems?" style-clickable":"";return t.messageContainerStyle?t.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+E:"style-unspecified"+E};
_.Y.isSinglePerk=function(t){return!!t.messageContainerStyle&&(t.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||t.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.Y.onExpandedChanged=function(){var t=this;if(this.expanded)for(var E=_.M(this.hostElement.querySelectorAll("yt-img-shadow")),p=E.next();!p.done;p=E.next())p.value.onShow();_.XE(this,function(){_.kT(t.hostElement,"yt-refit")})};
_.Y.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
T6.prototype.onDataChanged=T6.prototype.onDataChanged;T6.prototype.onExpandedChanged=T6.prototype.onExpandedChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],T6.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],T6.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],T6.prototype,"data",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],T6.prototype,"expanded",void 0);
_.N([_.GI("expanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],T6.prototype,"onExpandedChanged",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],T6.prototype,"onDataChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],T6);
_.G(T6,"ytd-sponsorships-expandable-message-renderer",function(){if(qrC!==void 0)return qrC;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return qrC=t},{mode:_.hX("kevlar_poly_si_batch_j028")?1:2});var Hs7;var oN=function(){return _.z.apply(this,arguments)||this};
_.u(oN,_.z);oN.prototype.configureRendererStamper=function(){return{"data.endButton":{id:"end-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.bottomButton":{id:"bottom-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
oN.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.k(this.data.endButton,_.Ry).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
oN.prototype.onDataChanged=oN.prototype.onDataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],oN.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],oN.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],oN.prototype,"data",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oN.prototype,"onDataChanged",null);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],oN);
_.G(oN,"ytd-sponsorships-heading-renderer",function(){if(Hs7!==void 0)return Hs7;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Hs7=t},{mode:1});var fTl;var Wr=function(){return _.z.apply(this,arguments)||this};
_.u(Wr,_.z);_.N([_.e(),_.P("design:type",Object)],Wr.prototype,"data",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Wr.prototype,"ytRendererBehavior",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],Wr);
_.G(Wr,"ytd-sponsorships-links-renderer",function(){if(fTl!==void 0)return fTl;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return fTl=t},{mode:1});var BZ7;var $q=function(){return _.z.apply(this,arguments)||this};
_.u($q,_.z);_.Y=$q.prototype;_.Y.onDataChanged=function(){if(this.data&&this.data.expandableItems){var t;(t=_.ZN(this.hostElement).querySelector("tp-yt-paper-button"))==null||t.setAttribute("role","button")}else{var E;(E=_.ZN(this.hostElement).querySelector("tp-yt-paper-button"))==null||E.removeAttribute("role")}};
_.Y.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.Y.getExpansionIcon=function(t){return t?"COLLAPSE":"EXPAND"};
_.Y.getTileClasses=function(t){return t?"tile expandable-tile":"tile"};
_.Y.getButtonDisabled=function(t){return t?void 0:""};
$q.prototype.onDataChanged=$q.prototype.onDataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],$q.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],$q.prototype,"data",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],$q.prototype,"expanded",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$q.prototype,"onDataChanged",null);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],$q);
_.G($q,"ytd-sponsorships-list-tile-renderer",function(){if(BZ7!==void 0)return BZ7;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return BZ7=t},{mode:1});var wp9;var Roo;var Kv=function(){return _.z.apply(this,arguments)||this};
_.u(Kv,_.z);Kv.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Kv.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Kv.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Kv.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],Kv);
_.G(Kv,"ytd-sponsorships-promotion-renderer",function(){if(Roo!==void 0)return Roo;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Roo=t},{mode:1});var VW8;var vr=function(){return _.z.apply(this,arguments)||this};
_.u(vr,_.z);vr.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],vr.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],vr.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],vr);
_.G(vr,"ytd-sponsorships-purchase-option-renderer",function(){if(VW8!==void 0)return VW8;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return VW8=t},{mode:1});var Qso;var CG5;var jsK=function(){return _.z.apply(this,arguments)||this};
_.u(jsK,_.z);_.N([_.e(),_.P("design:type",Object)],jsK.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],jsK);
_.G(jsK,"ytd-ypc-offer-promo-renderer",function(){if(CG5!==void 0)return CG5;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return CG5=t},{mode:1});var yn=function(){return _.z.apply(this,arguments)||this};
_.u(yn,_.z);_.Y=yn.prototype;
_.Y.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"}}}}};
_.Y.expansionCTA=function(t,E){return t&&(E?t.collapseCallToAction:t.expansionCallToAction)};
_.Y.getExpansionIcon=function(t){return t?"COLLAPSE":"EXPAND"};
_.Y.expansionCallToActionTap=function(){var t=this;this.expanded=!this.expanded;_.XE(this,function(){_.kT(t.hostElement,"yt-refit")})};
_.Y.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var t,E=(t=this.data)==null?void 0:t.onVisible;E&&this.ytComponentBehavior.resolveCommand(E)};
_.Y.computeDisplayTitle=function(t){return!(!t||this.titledisplaystatus!=="show")};
_.Y.computeDisplaySeparator=function(){return!1};
_.Y.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
yn.prototype.onDataChanged=yn.prototype.onDataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],yn.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],yn.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],yn.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],yn.prototype,"data",void 0);
_.N([_.e({value:!1}),_.P("design:type",Boolean)],yn.prototype,"expanded",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],yn.prototype,"purchaseButtonClicked",void 0);_.N([_.e({reflectToAttribute:!0,value:"show"}),_.P("design:type",String)],yn.prototype,"titledisplaystatus",void 0);_.N([_.e({computed:"computeDisplayTitle(data.title)"}),_.P("design:type",Boolean)],yn.prototype,"displayTitle",void 0);
_.N([_.e({computed:"computeDisplaySeparator(data)"}),_.P("design:type",Boolean)],yn.prototype,"displaySeparator",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yn.prototype,"onDataChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],yn);
_.G(yn,"ytd-sponsorships-tier-renderer",function(){if(Qso!==void 0)return Qso;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Qso=t},{mode:2});var SB=function(){return _.z.apply(this,arguments)||this};
_.u(SB,_.z);
SB.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"}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],SB.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],SB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],SB.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],SB);
_.G(SB,"ytd-sponsorships-management-renderer",function(){if(wp9!==void 0)return wp9;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return wp9=t},{mode:1});var r3K;var cr=function(){return _.z.apply(this,arguments)||this};
_.u(cr,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],cr.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],cr.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],cr);
_.G(cr,"ytd-open-in-native-app-view-model",function(){if(r3K!==void 0)return r3K;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return r3K=t},{mode:_.hX("kevlar_poly_si_batch_j028")?1:2});var kXK;var dfe;var u45=_.CG(["top-"]),J3d=_.CG(["bottom-"]),ITl=_.CG(["left-"]),gme=_.CG(["right-"]),Zst={},Osd=function(t,E,p){t.removeAttribute("top-"+p);t.removeAttribute("bottom-"+p);t.removeAttribute("left-"+p);t.removeAttribute("right-"+p);E&&(E.top&&_.VU([_.ks(u45)],t,"top-"+p,E.top),E.bottom&&_.VU([_.ks(J3d)],t,"bottom-"+p,E.bottom),E.left&&_.VU([_.ks(ITl)],t,"left-"+p,E.left),E.right&&_.VU([_.ks(gme)],t,"right-"+p,E.right))};
Zst.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(t){var E,p=_.ZN((E=this.hostElement)!=null?E:this),U;E=this.cardItemBoxBehaviorMarginTargetId&&p?p.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(U=this.hostElement)!=null?U:this;Osd(E,t,"margin")},
cardItemContainerPaddingChanged_:function(t){var E,p=_.ZN((E=this.hostElement)!=null?E:this),U;E=this.cardItemBoxBehaviorPaddingTargetId&&p?p.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(U=this.hostElement)!=null?U:this;Osd(E,t,"padding")}}];var tQ={CARD_ITEM_COLOR_GENERAL_BACKGROUND_A:"var(--yt-spec-general-background-a)",CARD_ITEM_COLOR_GENERAL_BACKGROUND_B:"var(--yt-spec-general-background-b)",CARD_ITEM_COLOR_BRAND_BACKGROUND_SOLID:"var(--yt-spec-brand-background-solid)",CARD_ITEM_COLOR_ERROR_BACKGROUND:"var(--yt-spec-error-background)",CARD_ITEM_COLOR_TEXT_PRIMARY:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_TEXT_SECONDARY:"var(--yt-spec-text-secondary)",CARD_ITEM_COLOR_TEXT_DISABLED:"var(--yt-spec-text-disabled)",CARD_ITEM_COLOR_CALL_TO_ACTION:"var(--yt-spec-call-to-action)",
CARD_ITEM_COLOR_ICON_INACTIVE:"var(--yt-spec-icon-inactive)",CARD_ITEM_COLOR_ICON_DISABLED:"var(--yt-spec-icon-disabled)",CARD_ITEM_COLOR_BRAND_ICON_ACTIVE:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_10_PERCENT_LAYER:"var(--yt-spec-10-percent-layer)",CARD_ITEM_COLOR_TEXT_PRIMARY_INVERSE:"var(--yt-spec-text-primary-inverse)",CARD_ITEM_COLOR_ICON_ACTIVE_OTHER:"var(--yt-spec-icon-active-other)",CARD_ITEM_COLOR_THEMED_GREEN:"var(--yt-spec-themed-green)",
CARD_ITEM_COLOR_ERROR_INDICATOR:"var(--yt-spec-error-indicator)"};var Xp7;var ho5;var E1=function(){return _.z.apply(this,arguments)||this};
_.u(E1,_.z);E1.prototype.textColorChanged_=function(){this.hostElement.style.color=tQ[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
E1.prototype.textColorChanged_=E1.prototype.textColorChanged_;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],E1.prototype,"ytRendererBehavior",void 0);_.N([_.g(Zst.YtCardItemBoxBehavior),_.P("design:type",Object)],E1.prototype,"ytCardItemBoxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],E1.prototype,"data",void 0);_.N([_.GI("data.textColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E1.prototype,"textColorChanged_",null);
_.N([_.p4({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],E1);
_.G(E1,"yt-card-item-text-renderer",function(){if(ho5===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;Xp7===void 0&&(Xp7=document.createElement("template"));var U=Xp7;p.call(E,U.content.cloneNode(!0),t.content.firstChild);ho5=t}t=ho5;return t},{mode:2});var aTe;var eo9;var pV=function(){return _.z.apply(this,arguments)||this};
_.u(pV,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],pV.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],pV.prototype,"data",void 0);_.N([_.p4({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],pV);
_.G(pV,"yt-card-item-badge-renderer",function(){if(eo9===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;aTe===void 0&&(aTe=document.createElement("template"));var U=aTe;p.call(E,U.content.cloneNode(!0),t.content.firstChild);eo9=t}t=eo9;return t},{mode:2});var Frb;var zog;var U1=function(){return _.z.apply(this,arguments)||this};
_.u(U1,_.z);U1.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],U1.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],U1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],U1.prototype,"data",void 0);_.N([_.p4({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],U1);
_.G(U1,"yt-card-item-text-collection-renderer",function(){if(zog===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;Frb===void 0&&(Frb=document.createElement("template"));var U=Frb;p.call(E,U.content.cloneNode(!0),t.content.firstChild);zog=t}t=zog;return t},{mode:2});var lTJ;var GXg;var xD=function(){return _.z.apply(this,arguments)||this};
_.u(xD,_.z);xD.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]]"}}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],xD.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],xD.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],xD.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Number)],xD.prototype,"iconSize",void 0);_.N([_.p4({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],xD);
_.G(xD,"yt-card-item-text-with-button-renderer",function(){if(GXg===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;lTJ===void 0&&(lTJ=document.createElement("template"));var U=lTJ;p.call(E,U.content.cloneNode(!0),t.content.firstChild);GXg=t}t=GXg;return t},{mode:2});var AQ=function(){return _.z.apply(this,arguments)||this};
_.u(AQ,_.z);AQ.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"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],AQ.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],AQ.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],AQ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],AQ.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],AQ);
_.G(AQ,"ytd-commerce-cart-summary-line-item-renderer",function(){if(dfe!==void 0)return dfe;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return dfe=t},{mode:1});_.vs("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var YD=function(){var t=_.z.apply(this,arguments)||this;t.hidden=!1;return t};
_.u(YD,_.z);_.Y=YD.prototype;_.Y.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"}}}}};
_.Y.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.Y.updateSummary=function(){var t=this.commerceCartCheckoutButtonEntity,E;if(((E=this.data)==null?0:E.cartButton)&&t.checkoutSummaryText){var p,U=tN((p=this.data)==null?void 0:p.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+U+".cardItemTextRenderer.text",EQ(t.checkoutSummaryText));if(t.checkoutDetailText){var x;p=tN((x=this.data)==null?void 0:x.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+p+".cardItemTextRenderer.text",EQ(t.checkoutDetailText))}if(t.checkoutAdditionalMetadataText){var A;
x=tN((A=this.data)==null?void 0:A.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+x+".cardItemTextRenderer.text",EQ(t.checkoutAdditionalMetadataText))}}else t.estimatedTotalPrice&&(A=tN((U=this.data)==null?void 0:U.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+A+".cardItemTextRenderer.text",EQ(t.estimatedTotalPrice)))};
_.Y.updateIsHidden=function(){var t,E=(t=this.commerceCartCheckoutButtonEntity)==null?void 0:t.isHidden;E!==void 0&&(this.hidden=E)};
_.Y.updateCheckoutButton=function(){var t,E=(t=this.commerceCartCheckoutButtonEntity)==null?void 0:t.isDisabled;E!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",E);var p;t=(p=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:p.innertubeCommand;t!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",t);var U;p=(U=this.commerceCartCheckoutButtonEntity)==null?void 0:U.checkoutButtonText;p!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:p})};
YD.prototype.entityChanged=YD.prototype.entityChanged;_.N([_.g(_.Be),_.P("design:type",Object)],YD.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],YD.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],YD.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],YD.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],YD.prototype,"fullWidth",void 0);_.N([_.e(),_.P("design:type",Object)],YD.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],YD.prototype,"compact",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],YD.prototype,"hidden",void 0);
_.N([_.e({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:DD8}),_.P("design:type",Object)],YD.prototype,"commerceCartCheckoutButtonEntity",void 0);_.N([_.GI("commerceCartCheckoutButtonEntity","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],YD.prototype,"entityChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],YD);
_.G(YD,"ytd-commerce-cart-checkout-button-renderer",function(){if(kXK!==void 0)return kXK;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return kXK=t},{mode:2});var nm7;_.NZd={};
_.NZd.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",_.zI(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.zI(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(t){!this.tappableItemBehaviorTapEnabled||t.keyCode!==13&&t.keyCode!==32||t.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var t=this.data.onTap;t.ypcGetCartEndpoint?(_.JZ(this.hostElement,[t]),this.tappableItemBehaviorTapEnabled=!1):t.ypcOffersEndpoint?_.JZ(this.hostElement,[t]):_.IK(this.hostElement,[t],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(t){this.tappableItemBehaviorTapEnabled=!!t},
tappableItemBehaviorOnTapEnabledChanged_:function(){var t=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(t.setAttribute("tabIndex",0),t.setAttribute("role","button")):(t.removeAttribute("tabIndex"),t.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(t){t.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var Dfo;var sst;var Mp=function(){return _.z.apply(this,arguments)||this};
_.u(Mp,_.z);Mp.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.y9("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.y9("sharingToggleButtonAndDefaultButton")}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Mp.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Mp.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Mp.prototype,"data",void 0);_.N([_.p4({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],Mp);
_.G(Mp,"yt-card-item-actions-renderer",function(){if(sst===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;Dfo===void 0&&(Dfo=document.createElement("template"));var U=Dfo;p.call(E,U.content.cloneNode(!0),t.content.firstChild);sst=t}t=sst;return t},{mode:2});var Lr9;var PG8;var TZJ;var omb;var Wr7;var $fd;var mz=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return t};
_.u(mz,_.z);mz.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
mz.prototype.handleDarkModeToggledAction_=function(t){this.isDarkTheme_=t};
mz.prototype.computeThemeImage_=function(t,E){if(!t||!t.imageLight)return!1;this.isCircular_=t.isCircular;t.imageWidth&&(this.hostElement.style.width=t.imageWidth+"px");t.imageHeight&&(this.hostElement.style.height=t.imageHeight+"px");t.borderWidth&&(this.image.style.borderWidth=t.borderWidth+"px",this.image.style.borderStyle="solid");t.borderColor&&(this.image.style.borderColor=_.cL(t.borderColor));return E&&t.imageDark?t.imageDark:t.imageLight};
mz.prototype.computeThemeIcon_=function(t){var E,p;if(!(t==null?0:(E=t.themedIcon)==null?0:(p=E.icon)==null?0:p.iconType))return!1;this.icon.style.color=tQ[t.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(t.imageWidth||18)+"px";this.icon.style.height=(t.imageHeight||18)+"px";return _.zh(t.themedIcon.icon.iconType)};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],mz.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],mz.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(Zst.YtCardItemBoxBehavior),_.P("design:type",Object)],mz.prototype,"ytCardItemBoxBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],mz.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],mz.prototype,"data",void 0);
_.N([_.e({value:!1}),_.P("design:type",Boolean)],mz.prototype,"fit",void 0);_.N([_.e(),_.P("design:type",Boolean)],mz.prototype,"isDarkTheme_",void 0);_.N([_.e({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.P("design:type",Object)],mz.prototype,"themeImage_",void 0);_.N([_.e({computed:"computeThemeIcon_(data)"}),_.P("design:type",Object)],mz.prototype,"themeIcon_",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Object)],mz.prototype,"isCircular_",void 0);
_.N([_.Nl("#image"),_.P("design:type",Object)],mz.prototype,"image",void 0);_.N([_.Nl("#icon"),_.P("design:type",Object)],mz.prototype,"icon",void 0);_.N([_.p4({is:"yt-themed-image-renderer",disableElementRegistration:!0})],mz);
_.G(mz,"yt-themed-image-renderer",function(){if($fd===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;Wr7===void 0&&(Wr7=document.createElement("template"));var U=Wr7;p.call(E,U.content.cloneNode(!0),t.content.firstChild);$fd=t}t=$fd;return t},{mode:2});var bW=function(){return _.z.apply(this,arguments)||this};
_.u(bW,_.z);bW.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"}}}}};
bW.prototype.computeImagePlacement_=function(t){return t||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],bW.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],bW.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],bW.prototype,"data",void 0);_.N([_.e({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.P("design:type",String)],bW.prototype,"imagePlacement",void 0);
_.N([_.p4({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],bW);
_.G(bW,"yt-card-item-text-with-image-renderer",function(){if(omb===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;TZJ===void 0&&(TZJ=document.createElement("template"));var U=TZJ;p.call(E,U.content.cloneNode(!0),t.content.firstChild);omb=t}t=omb;return t},{mode:2});var iW=function(){return _.z.apply(this,arguments)||this};
_.u(iW,_.z);iW.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"}}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],iW.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],iW.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],iW.prototype,"data",void 0);_.N([_.p4({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],iW);
_.G(iW,"yt-card-item-error-renderer",function(){if(PG8===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;Lr9===void 0&&(Lr9=document.createElement("template"));var U=Lr9;p.call(E,U.content.cloneNode(!0),t.content.firstChild);PG8=t}t=PG8;return t},{mode:2});var Kr5;var vmd;_.vs("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var qp=function(){return _.z.apply(this,arguments)||this};
_.u(qp,_.z);_.Y=qp.prototype;
_.Y.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"}}}}};
_.Y.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.Y.backgroundColorChanged_=function(){var t,E=(t=this.data)==null?void 0:t.backgroundColor;t=tQ[E||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.ZN(this.hostElement).querySelector("#main-content").style.backgroundColor=t};
_.Y.headerPromoBackgroundColorChanged_=function(){var t,E=(t=this.data)==null?void 0:t.headerPromoBackgroundColor;t=tQ[E||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.ZN(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=t};
_.Y.errorRendererVisibilityChanged_=function(){var t=this.isExpanded_,E;this.isErrorRendererVisible_=!((E=this.data)==null||!E.errorRenderer)&&!t};
_.Y.onYtToggleButton_=function(t,E){this.isExpanded_=E.toggled};
qp.prototype.onYtToggleButton_=qp.prototype.onYtToggleButton_;qp.prototype.errorRendererVisibilityChanged_=qp.prototype.errorRendererVisibilityChanged_;qp.prototype.headerPromoBackgroundColorChanged_=qp.prototype.headerPromoBackgroundColorChanged_;qp.prototype.backgroundColorChanged_=qp.prototype.backgroundColorChanged_;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],qp.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],qp.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(Zst.YtCardItemBoxBehavior),_.P("design:type",Object)],qp.prototype,"ytCardItemBoxBehavior",void 0);_.N([_.g(_.NZd.YtTappableItemBehavior),_.P("design:type",Object)],qp.prototype,"ytTappableItemBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],qp.prototype,"data",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],qp.prototype,"isExpanded_",void 0);
_.N([_.e({value:!1}),_.P("design:type",Boolean)],qp.prototype,"isErrorRendererVisible_",void 0);_.N([_.GI("data.backgroundColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qp.prototype,"backgroundColorChanged_",null);_.N([_.GI("data.headerPromoBackgroundColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qp.prototype,"headerPromoBackgroundColorChanged_",null);
_.N([_.GI("data.errorRenderer","isExpanded_"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qp.prototype,"errorRendererVisibilityChanged_",null);_.N([_.lc("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[Event,Object]),_.P("design:returntype")],qp.prototype,"onYtToggleButton_",null);_.N([_.p4({is:"yt-card-item-renderer",disableElementRegistration:!0})],qp);
_.G(qp,"yt-card-item-renderer",function(){if(vmd===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;Kr5===void 0&&(Kr5=document.createElement("template"));var U=Kr5;p.call(E,U.content.cloneNode(!0),t.content.firstChild);vmd=t}t=vmd;return t},{mode:2});_.vs("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var H2=function(){var t=_.z.apply(this,arguments)||this;t.hidden=!1;return t};
_.u(H2,_.z);_.Y=H2.prototype;_.Y.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.Y.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.Y.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var t,E=(t=this.commerceCartHeaderEntity)==null?void 0:t.isHidden;E!==void 0&&(this.hidden=E)}};
_.Y.updateTitle=function(){var t=this.commerceCartHeaderEntity.isDisabled,E,p,U=(p=_.k((E=this.data)==null?void 0:E.item,RH3))==null?void 0:p.headingRenderer;U&&(E=tN(U,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+E+".0.cardItemTextRenderer.textColor",t?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.Y.updateSummaryText=function(){var t=this.commerceCartHeaderEntity;if(this.compact){var E,p,U=(p=_.k((E=this.data)==null?void 0:E.item,RH3))==null?void 0:p.headingRenderer;U&&(E=tN(U,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+E+".1.cardItemTextRenderer.text",t.shortHeaderSummaryText?EQ(t.shortHeaderSummaryText):t.headerSummaryText?EQ(t.headerSummaryText):""))}else{var x;if(E=(x=_.k((U=this.data)==null?void 0:U.item,RH3))==null?void 0:x.additionalInfoRenderer)E=tN(E,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+E+".text",t.headerSummaryText?EQ(t.headerSummaryText):"")}};
_.Y.updateCheckoutButton=function(){var t=this.commerceCartHeaderEntity,E,p,U=(p=_.k((E=this.data)==null?void 0:E.item,RH3))==null?void 0:p.additionalInfoRenderer;E=tN(U,"buttonRenderer");var x;p=(x=this.commerceCartHeaderEntity)==null?void 0:x.isButtonDisabled;var A;x=(A=this.commerceCartHeaderEntity)==null?void 0:A.isButtonHidden;p!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+E+".buttonRenderer.isDisabled",p);x!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
x);var m;t=(m=t.checkoutButtonCommand)==null?void 0:m.innertubeCommand;t!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+E+".buttonRenderer.command",t)};
H2.prototype.entityChanged=H2.prototype.entityChanged;_.N([_.g(_.Be),_.P("design:type",Object)],H2.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],H2.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],H2.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],H2.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],H2.prototype,"compact",void 0);_.N([_.e({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(t,E){return _.hj(t.entities,"commerceCartHeaderEntity",E)}}),
_.P("design:type",Object)],H2.prototype,"commerceCartHeaderEntity",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],H2.prototype,"hidden",void 0);_.N([_.GI("commerceCartHeaderEntity","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],H2.prototype,"entityChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],H2);
_.G(H2,"ytd-commerce-cart-header-renderer",function(){if(nm7!==void 0)return nm7;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return nm7=t},{mode:1});var y3t;var Sro=_.tI(function(t,E){var p;return(p=t.onChangeCallback)==null?void 0:p.call(t,E)},1E3),c37=_.l(function(t){var E=t.data;
var p=t.iconMinus;t=t.iconPlus;var U=function(){return!!E().disabled},x=_.M(_.Py(0,void 0,"mKh0af")),A=x.next().value,m=x.next().value;
x=_.aC(function(){if(A()===1){var V,Q;(Q=(V=E()).onRemoveCommand)==null||Q.call(V)}V=A()>E().maxValue?E().maxValue:A()-1;m(V);Sro(E(),V);return!1});
var b=_.aC(function(){if(A()===E().maxValue)return!1;var V=A()+1;m(V);Sro(E(),V);return!1});
_.xa(function(){m(E().value)});
var f={},B={},R={};return _.H("quantity-incrementer-shape",null,_.H("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.H("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return A()===(E().onRemoveCommand?0:1)||U()},
"aria-label":function(){return A()!==1?E().minusLabel:E().minimumReachedLabel},
"on:click":x},_.H(_.lu,{model:{circular:!0}}),_.H("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.H("div",{class:_.X5("ytSpecQuantityIncrementerShapeIcon",(f.ytSpecQuantityIncrementerShapeIconDisabled=function(){return U()||A()===(E().onRemoveCommand?0:1)},f))},p()))),_.H("div",{class:_.X5("ytSpecQuantityIncrementerShapeText",(B.ytSpecQuantityIncrementerShapeTextInvalid=function(){return A()>E().maxValue},B.ytSpecQuantityIncrementerShapeTextDisabled=U,B))},A),_.H("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return A()>=E().maxValue||U()},
"aria-label":function(){return A()!==E().maxValue?E().plusLabel:E().maximumReachedLabel},
"on:click":b},_.H(_.lu,{model:{circular:!0}}),_.H("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.H("div",{class:_.X5("ytSpecQuantityIncrementerShapeIcon",(R.ytSpecQuantityIncrementerShapeIconDisabled=function(){return A()>=E().maxValue||U()},R))},t())))))},"Tf");_.k2(_.l(function(t){function E(){p().onRemoveCommand&&_.bz(p().onRemoveCommand)}
var p=t.data;var U=_.nd(EQj,function(){return p().quantityIncrementerEntityKey});
return _.H("yt-quantity-incrementer-view-model",null,_.H(c37,{data:function(){var x=p(),A;var m=U()?!((A=U())==null||!A.disabled):!1;var b;A=U()?(b=U())==null?void 0:b.quantity:p().quantity;return BbO(x,m,E,A)},
iconMinus:function(){return _.H(_.lz,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.H(_.lz,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Uf"),"yt-quantity-incrementer-view-model",{props:{data:_.uu}});var fV=function(){var t=_.z.apply(this,arguments)||this;t.compact=!1;t.hasQuantityIncrementer=!1;return t};
_.u(fV,_.z);fV.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"}}}};
fV.prototype.computeHasQuantityIncrementer=function(){var t;return!!_.k((t=this.data)==null?void 0:t.picker,jI0)};
fV.prototype.onLabelClick=function(){var t;(t=this.dropdownEl)==null||t.open()};
_.N([_.Nl("ytd-dropdown-renderer"),_.P("design:type",Object)],fV.prototype,"dropdownEl",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],fV.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],fV.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],fV.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],fV.prototype,"quantityColor",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],fV.prototype,"compact",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.P("design:type",Object)],fV.prototype,"hasQuantityIncrementer",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],fV);
_.G(fV,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(y3t!==void 0)return y3t;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return y3t=t},{mode:1});var tg7;var Eed;var B2=function(){return _.z.apply(this,arguments)||this};
_.u(B2,_.z);B2.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
B2.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
B2.prototype.updateTitle=function(){var t=this.disabledCartItemEntity;t.disableActionName&&this.set("data.title",EQ(t.disableActionName))};
B2.prototype.updateButton=function(){var t,E=(t=this.disabledCartItemEntity.undoCommand)==null?void 0:t.innertubeCommand;E!==void 0&&(this.set("data.actionButton.buttonRenderer.command",E),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
B2.prototype.entityChanged=B2.prototype.entityChanged;_.N([_.g(_.Be),_.P("design:type",Object)],B2.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],B2.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],B2.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(t,E){return _.hj(t.entities,"disabledCartItemEntity",E)}}),
_.P("design:type",Object)],B2.prototype,"disabledCartItemEntity",void 0);_.N([_.e(),_.P("design:type",Object)],B2.prototype,"data",void 0);_.N([_.GI("disabledCartItemEntity","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],B2.prototype,"entityChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],B2);
_.G(B2,"ytd-disabled-cart-item-renderer",function(){if(Eed!==void 0)return Eed;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Eed=t},{mode:1});_.vs("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var w5=function(){var t=_.z.apply(this,arguments)||this;t.compact=!1;t.hidden=!1;t.errorHidden=!1;t.noOnTap=!1;return t};
_.u(w5,_.z);_.Y=w5.prototype;
_.Y.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"}}}};
_.Y.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.Y.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var t=this.firstButtonElement;t.alignByText=!0;t.iconAlignByText=!0}};
_.Y.computeNoOnTap=function(t){return!t};
_.Y.updateQuantityColor=function(){if(this.pickerElement){var t,E=(t=this.commerceCartItemEntity)==null?void 0:t.quantityColor;this.pickerElement.quantityColor=E}};
_.Y.updateTotalPriceColor=function(){var t,E=(t=this.commerceCartItemEntity)==null?void 0:t.totalPriceColor;if(E){var p;t=_.k((p=this.data)==null?void 0:p.quantityPicker,QIr);if(p=_.k(t==null?void 0:t.price,Vms))p.textColor=E}};
_.Y.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var t,E=(t=this.commerceCartItemEntity)==null?void 0:t.isHidden;E!==void 0&&(this.hidden=E)}};
_.Y.updateHideErrorMessage=function(){var t,E=(t=this.commerceCartItemEntity)==null?void 0:t.hideErrorMessage;E!==void 0&&(this.errorHidden=E)};
_.Y.updateQuantity=function(){var t=this,E,p=(E=this.commerceCartItemEntity)==null?void 0:E.quantity,U;E=(U=this.commerceCartItemEntity)==null?void 0:U.totalPrice;if(p){this.updateTotalPriceColor();this.updateQuantityColor();var x;U=_.k((x=this.data)==null?void 0:x.quantityPicker,QIr);if(x=_.k(U==null?void 0:U.price,Vms))x.text=E?{simpleText:E.content}:void 0;if(E=_.k(U==null?void 0:U.picker,jI0))E.quantity=p;var A;if(x=(A=_.k(U==null?void 0:U.picker,ROT))==null?void 0:A.entries){A=!1;E=void 0;x=
_.M(x);for(U=x.next();!U.done;U=x.next())U=U.value,U.dropdownItemRenderer&&(E||(E=U.dropdownItemRenderer),U.dropdownItemRenderer.isSelected=!1,p===U.dropdownItemRenderer.int32Value&&(A=!0,U.dropdownItemRenderer.isSelected=!0));!A&&E&&(E.isSelected=!0)}_.XE(this,function(){var m;t.set("data.quantityPicker",_.Kq.unsafeClone((m=t.data)==null?void 0:m.quantityPicker))})}};
w5.prototype.onYtRendererstamperFinished=w5.prototype.onYtRendererstamperFinished;w5.prototype.entityChanged=w5.prototype.entityChanged;_.N([_.e(),_.P("design:type",Object)],w5.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],w5.prototype,"compact",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],w5.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],w5.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],w5.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],w5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(t,E){return _.hj(t.entities,"commerceCartItemEntity",E)}}),
_.P("design:type",Object)],w5.prototype,"commerceCartItemEntity",void 0);_.N([_.e(),_.P("design:type",Object)],w5.prototype,"quantityPicker",void 0);_.N([_.e(),_.P("design:type",Object)],w5.prototype,"compactQuantityPicker",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],w5.prototype,"hidden",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],w5.prototype,"errorHidden",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.P("design:type",Object)],w5.prototype,"noOnTap",void 0);_.N([_.Nl("ytd-commerce-cart-item-quantity-picker-renderer"),_.P("design:type",Object)],w5.prototype,"pickerElement",void 0);_.N([_.Nl("yt-button-renderer"),_.P("design:type",Element)],w5.prototype,"firstButtonElement",void 0);
_.N([_.GI("commerceCartItemEntity","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],w5.prototype,"entityChanged",null);_.N([_.lc("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],w5.prototype,"onYtRendererstamperFinished",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],w5);
_.G(w5,"ytd-commerce-cart-item-renderer",function(){if(tg7!==void 0)return tg7;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return tg7=t},{mode:_.hX("kevlar_poly_si_batch_j028")?1:2});var pKt;var ULe;var R_=function(){return _.z.apply(this,arguments)||this};
_.u(R_,_.z);R_.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}}}}}};
R_.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
R_.prototype.updateCheckoutLineItems=function(){var t,E=(t=this.commerceCartCheckoutButtonEntity)==null?void 0:t.checkoutLineItems;E&&(t=E.map(function(p){a:{var U=p.price,x=p.description;switch(p.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":p={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:EQ(x),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:EQ(U),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:p={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:EQ(x),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:EQ(U),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 p}),this.set("data.summaryLineItems",t))};
R_.prototype.updateIsHidden=function(){var t,E=(t=this.commerceCartCheckoutButtonEntity)==null?void 0:t.isHidden;E!==void 0&&(this.hostElement.hidden=E)};
R_.prototype.entityChanged=R_.prototype.entityChanged;_.N([_.g(_.Be),_.P("design:type",Object)],R_.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],R_.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],R_.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],R_.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],R_.prototype,"data",void 0);_.N([_.e({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:DD8}),_.P("design:type",Object)],R_.prototype,"commerceCartCheckoutButtonEntity",void 0);_.N([_.GI("commerceCartCheckoutButtonEntity","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],R_.prototype,"entityChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],R_);
_.G(R_,"ytd-commerce-cart-summary-renderer",function(){if(ULe!==void 0)return ULe;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return ULe=t},{mode:1});var xLl={};xLl.InjectBehavior=[KvY.InjectBehavior];var Adg;var YCC;var V2=function(){return _.z.apply(this,arguments)||this};
_.u(V2,_.z);
V2.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:_.y9("menuRenderer")}}};
V2.prototype.onMenuTap=function(t){t.stopPropagation()};
_.aE.Object.defineProperties(V2.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 t,E;return!(((t=this.data)==null||!t.sectionHeading)&&((E=this.data)==null?void 0:E.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var t,E;return!(((t=this.data)==null||!t.image)&&((E=this.data)==null?void 0:E.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var t,E;return!(((t=this.data)==null||!t.menu)&&((E=this.data)==null?void 0:E.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],V2.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.NZd.YtTappableItemBehavior),_.P("design:type",Object)],V2.prototype,"ytTappableItemBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],V2.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0}),_.Z("data.accessibilityData"),_.P("design:type",String),_.P("design:paramtypes",[])],V2.prototype,"ariaLabel",null);_.N([_.Z("data.sectionHeading","data.layout"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],V2.prototype,"sectionHeadingVisible",null);_.N([_.Z("data.image","data.layout"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],V2.prototype,"imageVisible",null);
_.N([_.Z("data.menu","data.layout"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],V2.prototype,"menuVisible",null);_.N([_.p4({is:"yt-activity-item-renderer",disableElementRegistration:!0})],V2);
_.G(V2,"yt-activity-item-renderer",function(){if(YCC===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;Adg===void 0&&(Adg=document.createElement("template"));var U=Adg;p.call(E,U.content.cloneNode(!0),t.content.firstChild);YCC=t}t=YCC;return t},{mode:2});var Mgb;var mLe;var blK;var ild;var Q2=function(){return _.z.apply(this,arguments)||this};
_.u(Q2,_.z);
Q2.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"}}}}};
Q2.prototype.backgroundColorChanged_=function(){var t,E=(t=this.data)==null?void 0:t.backgroundColor;this.hostElement.style.backgroundColor=tQ[E||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Q2.prototype.backgroundColorChanged_=Q2.prototype.backgroundColorChanged_;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Q2.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Q2.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Q2.prototype,"data",void 0);
_.N([_.GI("data.backgroundColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Q2.prototype,"backgroundColorChanged_",null);_.N([_.p4({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],Q2);
_.G(Q2,"yt-offer-item-upsell-renderer",function(){if(ild===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;blK===void 0&&(blK=document.createElement("template"));var U=blK;p.call(E,U.content.cloneNode(!0),t.content.firstChild);ild=t}t=ild;return t},{mode:2});_.vs("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var CV=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};t.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return t};
_.u(CV,_.z);_.Y=CV.prototype;
_.Y.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:_.y9("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.Y.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.Y.computeContainerStyle_=function(t){return t};
_.Y.computeContainerIsHidden_=function(t){return t&&!!t.isHidden};
_.Y.computeShowSpinner_=function(t,E){return t&&E==="in-progress"};
_.Y.computeShowMoreContentsButton_=function(t,E,p,U,x){return!(!(U&&U.length||x&&x.length&&p)||!t||E)};
_.Y.onToggleButton_=function(t){var E=this;t.stopPropagation();this.isExpanded_=t.detail&&t.detail.toggled;var p,U;this.isExpanded_&&!this.data.continuationSection.length&&((p=this.data)==null?0:(U=p.continuation)==null?0:U.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.kT(this.hostElement,"yt-load-next-continuation",function(x){return E.getContinuationUrl_(E.data.continuation.onClickContinuationData,x)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.JZ(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.Y.onShowMoreContentsButtonClicked_=function(t){var E=this;t.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.kT(this.hostElement,"yt-load-next-continuation",function(p){return E.getContinuationUrl_(E.data.continuations[0].nextContinuationData,p)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.JZ(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.Y.getContinuationUrl_=function(t,E){var p=t.continuation;t=t.clickTrackingParams;var U=_.yL();t&&U&&_.qc(U,_.$8(t));return _.ka(E,{continuation:p})};
_.Y.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var t=_.ZN(this.hostElement).querySelector("#continuation-section");t&&(t=t.querySelectorAll("ytmusic-item-section-renderer"))&&t.forEach(function(E){return E.classList.add("memberships-and-purchases")})};
_.Y.dataChanged_=function(){var t;this.isExpanded_=!((t=this.data)==null||!t.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.Y.updateCardOnClickCommand_=function(t){t=_.k(t,mk4);var E,p;this.data&&((E=this.data)==null?0:E.targetId)&&t&&t.targetId===((p=this.data)==null?void 0:p.targetId)&&t.onClickCommand&&(this.data.onClickCommand=t.onClickCommand,this.isOnClickCommand_=!0)};
_.Y.backgroundColorChanged_=function(){var t,E=(t=this.data)==null?void 0:t.backgroundColor;this.hostElement.style.backgroundColor=tQ[E||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
CV.prototype.backgroundColorChanged_=CV.prototype.backgroundColorChanged_;CV.prototype.dataChanged_=CV.prototype.dataChanged_;CV.prototype.nextContinuationDataUpdated_=CV.prototype.nextContinuationDataUpdated_;CV.prototype.onToggleButton_=CV.prototype.onToggleButton_;_.N([_.g(_.I6),_.P("design:type",Object)],CV.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],CV.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],CV.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.gj.YtNextContinuationBehavior),_.P("design:type",Object)],CV.prototype,"ytNextContinuationBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],CV.prototype,"ytRendererBehavior",void 0);_.N([_.g(xLl.InjectBehavior),_.P("design:type",Object)],CV.prototype,"injectBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],CV.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],CV.prototype,"compact",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],CV.prototype,"isExpanded_",void 0);_.N([_.e({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.P("design:type",String)],CV.prototype,"containerStyle_",void 0);_.N([_.e({value:"not-started"}),_.P("design:type",String)],CV.prototype,"continuationStatus_",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.P("design:type",Boolean)],CV.prototype,"showSpinner_",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],CV.prototype,"isOnClickCommand_",void 0);_.N([_.e({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.P("design:type",Boolean)],CV.prototype,"showMoreContentsButton_",void 0);
_.N([_.e({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(t,E){return!E||t.entities?null:_.hj(t.entities,"cardItemContainerEntity",E)}}),
_.P("design:type",Object)],CV.prototype,"cardItemContainerEntity_",void 0);_.N([_.lc("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],CV.prototype,"onToggleButton_",null);_.N([_.lc("yt-next-continuation-data-updated"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],CV.prototype,"nextContinuationDataUpdated_",null);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],CV.prototype,"dataChanged_",null);_.N([_.GI("data.backgroundColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],CV.prototype,"backgroundColorChanged_",null);_.N([_.p4({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],CV);
_.G(CV,"yt-card-item-container-renderer",function(){if(mLe===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;Mgb===void 0&&(Mgb=document.createElement("template"));var U=Mgb;p.call(E,U.content.cloneNode(!0),t.content.firstChild);mLe=t}t=mLe;return t},{mode:2});var j_=function(){return _.z.apply(this,arguments)||this};
_.u(j_,_.z);j_.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"}}}};
j_.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
j_.prototype.computeLoadingHidden=function(){var t;return!((t=this.commerceCartPageStateEntity)==null?0:t.cartActionInProgress)};
j_.prototype.updateNotification=function(){var t,E=(t=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:t.summaryText;E&&this.set("data.cartNotification",EQ(E))};
j_.prototype.notificationEntityChanged=j_.prototype.notificationEntityChanged;_.N([_.g(_.Be),_.P("design:type",Object)],j_.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],j_.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],j_.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],j_.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],j_.prototype,"data",void 0);_.N([_.e({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(t,E){return _.hj(t.entities,"commerceCartExpandableNotificationEntity",E)}}),
_.P("design:type",Object)],j_.prototype,"commerceCartExpandableNotificationEntity",void 0);_.N([_.e({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(t,E){return _.hj(t.entities,"commerceCartPageStateEntity",E)}}),
_.P("design:type",Object)],j_.prototype,"commerceCartPageStateEntity",void 0);_.N([_.Nl("#spinner"),_.P("design:type",HTMLElement)],j_.prototype,"spinner",void 0);_.N([_.GI("commerceCartExpandableNotificationEntity","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],j_.prototype,"notificationEntityChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],j_);
_.G(j_,"ytd-commerce-cart-renderer",function(){if(pKt!==void 0)return pKt;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return pKt=t},{mode:1});var qCt;var r5=function(){var t=_.z.apply(this,arguments)||this;t.bigImage=!1;return t};
_.u(r5,_.z);_.aE.Object.defineProperties(r5.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.placeholderImageUrl}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],r5.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],r5.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],r5.prototype,"bigImage",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],r5.prototype,"placeholderImageUrl",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],r5);
_.G(r5,"ytd-empty-product-shelf-renderer",function(){if(qCt!==void 0)return qCt;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return qCt=t},{mode:1});var Hlt;var kD=function(){var t=_.z.apply(this,arguments)||this;t.itemStyle="link-item";t.watchMetadataRefresh=!1;t.skinnyMode=!1;t.metaPanel=!1;t.inStructuredDescription=!1;t.detailedDescriptionOverride=!1;t.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};t.updateOnResizeDebouncer=null;return t};
_.u(kD,_.z);_.Y=kD.prototype;_.Y.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.Y.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"}}}}};
_.Y.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.Y.attachVEs=function(t){t.trackingParams&&_.Pu().graftServerVe(t.trackingParams)};
_.Y.handleUpdateMerchShelfAction=function(t){var E=this,p=_.k(t.updateMerchandiseShelfAction.merchandiseShelf,_.aZG);p&&(p.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){E.attachVEs(p);E.data=p},Number(p.renderDelayMs))):(this.attachVEs(p),this.data=p))};
_.Y.updateOnResize=function(){if(this.JSC$17307_scrollContainer!==void 0&&this.JSC$17307_scrollContainer.clientWidth!==0&&this.items!==void 0){var t=this.JSC$17307_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-t));this.ytdHorizontalListBehavior.reposition_();var E;switch((E=this.data)==null?void 0:E.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var p,
U;((p=this.data)==null?void 0:(U=p.items)==null?void 0:U.length)===1?this.itemStyle="cta-item":this.itemStyle=t>=740?"large-item":"small-item"}}};
_.Y.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.G9(this.updateOnResizeDebouncer,_.JB.after(100),this.updateOnResize)};
kD.prototype.debouncedUpdateOnResize=kD.prototype.debouncedUpdateOnResize;kD.prototype.dataChanged=kD.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],kD.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],kD.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.zp.YtdHorizontalListBehavior),_.P("design:type",Object)],kD.prototype,"ytdHorizontalListBehavior",void 0);
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],kD.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],kD.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],kD.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],kD.prototype,"itemStyle",void 0);_.N([_.e({value:6}),_.P("design:type",Number)],kD.prototype,"initialCount",void 0);
_.N([_.e({value:"data.items"}),_.P("design:type",String)],kD.prototype,"itemsPath",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],kD.prototype,"watchMetadataRefresh",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],kD.prototype,"skinnyMode",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],kD.prototype,"metaPanel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],kD.prototype,"inStructuredDescription",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],kD.prototype,"detailedDescriptionOverride",void 0);_.N([_.Nl("#items"),_.P("design:type",HTMLDivElement)],kD.prototype,"items",void 0);_.N([_.Nl("#scroll-container"),_.P("design:type",HTMLDivElement)],kD.prototype,"JSC$17307_scrollContainer",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kD.prototype,"dataChanged",null);
_.N([_.lc("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kD.prototype,"debouncedUpdateOnResize",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],kD);
_.G(kD,"ytd-merch-shelf-renderer",function(){if(Hlt!==void 0)return Hlt;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Hlt=t},{mode:2});var f9d;var d5=function(){var t=_.z.apply(this,arguments)||this;t.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 t};
_.u(d5,_.z);_.Y=d5.prototype;
_.Y.addBackstagePostAction=function(t){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(t=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",t))&&(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:t}):this.set("data.contents",[{backstagePostThreadRenderer:t}]))};
_.Y.addBackstageCommentAction=function(t){var E=this.get("addBackstageCommentAction.parentId",t);t=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",t);if(E&&t){E=this.postIdToIndices(E);for(var p=0;p<E.length;p++){var U=E[p];if(U<0)break;U="data.contents."+U+".backstagePostThreadRenderer.comments";this.get(U)&&(this.get(U+".backstageCommentsRenderer.contents")&&this.push(U+".backstageCommentsRenderer.contents",{commentThreadRenderer:t}),this.get(U+".backstageCommentsRenderer.teaserContents")?
this.push(U+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:t}):this.set(U+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:t}]))}}};
_.Y.addBackstageReplyAction=function(t){var E=this.get("addBackstageReplyAction.parentId",t);t=this.get("addBackstageReplyAction.renderer.commentRenderer",t);E&&t&&this.setCreatorReply(E,t)};
_.Y.banAuthorAction=function(t){var E=this.get("banAuthorAction.commentId",t);E&&(t=this.get("banAuthorAction.parentCommentId",t)||this.getParentPostId(E),this.removeFromStream(E,t))};
_.Y.hideReportedCommentAction=function(t){var E=this.get("hideReportedCommentAction.commentId",t);E&&((t=this.get("hideReportedCommentAction.parentCommentId",t))||(t=this.getParentPostId(E)),this.removeFromStream(E,t))};
_.Y.replaceBackstageCommentAction=function(t){var E=this.get("replaceBackstageCommentAction.commentId",t),p=this.get("replaceBackstageCommentAction.parentId",t);t=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",t);if(E&&p&&t){p=this.postIdToIndices(p);for(var U=0;U<p.length;U++){var x=p[U];if(x<0)break;var A=this.commentIdToIndex(E,x,!1);if(A>=0){var m=this.get("data.contents."+x+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+A+".commentThreadRenderer.replies.commentRepliesRenderer");
m&&(t.replies={commentRepliesRenderer:m});this.splice("data.contents."+x+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",A,1,{commentThreadRenderer:t})}A=this.commentIdToIndex(E,x,!0);if(A>=0){if(m=this.get("data.contents."+x+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(A+".commentThreadRenderer.replies.commentRepliesRenderer")))t.replies={commentRepliesRenderer:m};this.splice("data.contents."+x+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
A,1,{commentThreadRenderer:t})}}}};
_.Y.replaceBackstagePostAction=function(t){var E=this.get("replaceBackstagePostAction.itemId",t);if(E){E=this.postIdToIndices(E);for(var p=0;p<E.length;p++){var U=E[p];if(U<0)break;var x=this.getPostRendererType(U),A=this.get("replaceBackstagePostAction.renderer."+x,t);if(!A&&x!=="sharedPostRenderer")break;var m=!1;A||(m=!0,A=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",t));if(!A)break;var b={};m?(_.tJ(b,WCT,A),this.set("data.contents."+U+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
b)):(_.tJ(b,new _.Ir(x),A),this.set("data.contents."+U+".backstagePostThreadRenderer.post",b))}}};
_.Y.replaceBackstageReplyAction=function(t){var E=this.get("replaceBackstageReplyAction.replyId",t),p=this.get("replaceBackstageReplyAction.parentId",t);t=this.get("replaceBackstageReplyAction.renderer.commentRenderer",t);E&&t&&p&&this.setCreatorReply(p,t)};
_.Y.removeCommentAction=function(t){var E=this.get("removeCommentAction.commentId",t);if(E){var p=this.get("removeCommentAction.parentCommentId",t);p&&this.get("removeCommentAction.isCreatorReply",t)?this.setCreatorReply(p,void 0):(p||(p=this.getParentPostId(E)),this.removeFromStream(E,p))}};
_.Y.setCreatorReply=function(t,E){var p=this.getParentPostId(t);if(p){p=this.postIdToIndices(p);for(var U=0;U<p.length;U++){var x=p[U];if(x<0)break;var A=this.commentIdToIndex(t,x,!1);if(A>=0){var m="data.contents."+x+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+A;A=m+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";m+=".commentThreadRenderer.replies";E==void 0?(this.set(m,{}),this.set(A,!1)):(this.set(m,{commentRepliesRenderer:{teaserContents:[{commentRenderer:E}]}}),
this.set(m+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(A,!0))}A=this.commentIdToIndex(t,x,!0);A>=0&&(A="data.contents."+x+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+A,x=A+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",A+=".commentThreadRenderer.replies",E==void 0?(this.set(A,{}),this.set(x,!1)):(this.set(A,{commentRepliesRenderer:{teaserContents:[{commentRenderer:E}]}}),this.set(x,!0)))}}};
_.Y.removeFromStream=function(t,E){if(E){E=this.postIdToIndices(E);for(var p=0;p<E.length;p++){var U=E[p];if(U<0)break;var x=this.commentIdToIndex(t,U,!1);x>=0&&this.splice("data.contents."+U+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",x,1);x=this.commentIdToIndex(t,U,!0);x>=0&&this.splice("data.contents."+U+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",x,1);U="data.contents."+U+".backstagePostThreadRenderer.post.backstagePostRenderer";
x=U+".backstageAttachment.pollRenderer.votedCommentId";this.get(x)===t&&(this.set(x,null),this.set(U+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(E=this.postIdToIndices(t).reverse(),p=0;p<E.length;p++){U=E[p];if(U<0)break;x=this.getPostRendererType(U);var A=this.get("backstagePostThreadRenderer.post."+x,this.data.contents[U]);A.postId===t?this.splice("data.contents",U,1):x==="sharedPostRenderer"&&this.set("data.contents."+U+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);A.scheduledPublishTimeSec&&_.du(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.Y.postIdToIndices=function(t){for(var E=[],p=0;p<this.data.contents.length;p++){var U=this.getPostRendererType(p);this.get("backstagePostThreadRenderer.post."+U+".postId",this.data.contents[p])===t&&E.push(p);if(U==="sharedPostRenderer"){var x=this.get("backstagePostThreadRenderer.post."+U+".originalPost.backstagePostRenderer.postId",this.data.contents[p]);U=this.get("backstagePostThreadRenderer.post."+U+".originalPost.postRenderer.postId",this.data.contents[p]);x!==t&&U!==t||E.push(p)}}return E};
_.Y.commentIdToIndex=function(t,E,p){if(E<0)return-1;var U,x,A,m,b=_.k((U=this.data)==null?void 0:(x=U.contents)==null?void 0:(A=x[E])==null?void 0:(m=A.backstagePostThreadRenderer)==null?void 0:m.comments,TMs);return(E=p?b==null?void 0:b.teaserContents:b==null?void 0:b.contents)&&E.length?E.findIndex(function(f){return _.k(f,gbW).comment.commentRenderer.commentId===t}):-1};
_.Y.getParentPostId=function(t){t=t.split(".");if(t[1])return t[0]};
_.Y.getPostRendererType=function(t){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[t])?"sharedPostRenderer":"backstagePostRenderer"};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],d5.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],d5.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],d5.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,value:_.r("enable_community_page_on_desktop")}),_.P("design:type",Boolean)],d5.prototype,"useSmallerPostContainer",void 0);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-backstage-items"})],d5);
_.G(d5,"ytd-backstage-items",function(){if(f9d!==void 0)return f9d;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return f9d=
t},{mode:1});var BtL;var wKJ={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},uW=function(){var t=_.z.apply(this,arguments)||this;t.disablePrescanVisibility=!0;t.canScheduleJobs=!0;t.engagementPanel=!1;t.hidePanelButton=!1;t.isWatchGrid=
!1;t.hasShownSubscribersOnlyDisclaimer=!1;t.hasShownSuperfanOnlyDisclaimer=!1;t.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_"};t.TEST_ONLY=void 0;return t};
_.u(uW,_.z);_.Y=uW.prototype;_.Y.created=function(){this.initCommentsCsi_();_.r("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.r("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.Y.contentsChanged_=function(){var t;(t=this.data)!=null&&t.contents&&this.tickForCommentsTimer_("cml")};
_.Y.headerChanged_=function(){var t;(t=this.data)!=null&&t.header&&this.tickForCommentsTimer_("cmhl")};
_.Y.initCommentsCsi_=function(){_.yS("wn_comments");var t=_.yL();t&&_.KF({clientScreenNonce:t},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.Y.createCommentAction_=function(t){t=_.Kq.unsafeClone(t);var E,p;if(t=(E=_.k(t,QJr))==null?void 0:(p=E.contents)==null?void 0:p.commentThreadRenderer){var U,x,A,m,b,f;!this.isBackstage&&((U=this.data)==null?0:(x=U.header)==null?0:(A=x.commentsHeaderRenderer)==null?0:(m=A.createRenderer)==null?0:(b=m.commentSimpleboxRenderer)==null?0:(f=b.zeroStep)==null?0:f.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var B,
R,V;this.isBackstage&&_.k((B=this.data)==null?void 0:(R=B.header)==null?void 0:(V=R.commentsHeaderRenderer)==null?void 0:V.zeroStateMessage,$C3)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(t)}};
_.Y.doReplyInsert_=function(t,E,p,U){U?this.splice(t,U,0,E):this.push(t,E)};
_.Y.getRepliesPath_=function(t){return"data.contents."+t+".commentThreadRenderer.replies"};
_.Y.getRepliesContentsPath_=function(t,E){t=this.getRepliesPath_(t);return E?t+".commentRepliesRenderer.teaserContents":t+".commentRepliesRenderer.contents"};
_.Y.showSubscribersOnlyDisclaimer_=function(t){(t=t.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(t=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(t))&&(_.du(this.hostElement,"yt-open-popup-action",[t,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.Y.showSuperfanOnlyDisclaimer_=function(t){(t=t.detail.command)&&!this.hasShownSuperfanOnlyDisclaimer&&(t=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(t))&&(_.du(this.hostElement,"yt-open-popup-action",[t,this]),this.hasShownSuperfanOnlyDisclaimer=!0)};
_.Y.createCommentReplyAction_=function(t){t=_.Kq.unsafeClone(t);var E=_.k(t,CPr);if(t=E==null?void 0:E.contents){var p=this.commentIdToIndex_(E==null?void 0:E.parentCommentId);if(!(p<0)){var U=this.getRepliesPath_(p);if(this.get(U)){E=E.replyToCommentId;U=this.getRepliesContentsPath_(p,!1);if(this.get(U)){var x=this.get(U).length,A=U+"."+(x-1)+".continuationItemRenderer";this.get(A+".button")?(A=this.replyIdToIndex_(E,p,!1),this.doReplyInsert_(U,t,A,x-1)):this.get(A)||(x=this.replyIdToIndex_(E,p,
!1),this.doReplyInsert_(U,t,x,null))}U=this.getRepliesContentsPath_(p,!0);this.get(U)?(p=this.replyIdToIndex_(E,p,!0),(!E||p>=0)&&this.doReplyInsert_(U,t,p,null)):this.set(U,[t])}else this.set(U,{commentRepliesRenderer:{teaserContents:[t]}})}}};
_.Y.hideReportedCommentAction_=function(t){var E=_.k(t,NTs);if(t=E==null?void 0:E.commentId)(E=this.get("parentCommentId",E))||(E=this.getParentCommentId_(t)),this.remove_(t,E)};
_.Y.getParentCommentId_=function(t){t=t.split(".");if(t[1])return t[0]};
_.Y.removeCommentAction_=function(t){var E=_.k(t,ub3);if(t=E==null?void 0:E.commentId)E=(E==null?void 0:E.parentCommentId)||this.getParentCommentId_(t),this.remove_(t,E)};
_.Y.pinCommentAction_=function(t){t=_.Kq.unsafeClone(t);var E=_.k(t,diW);E!=null&&E.commentId&&(t=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",t))&&(this.remove_(E.commentId),this.insert_(t,!0))};
_.Y.unpinCommentAction_=function(t){t=_.Kq.unsafeClone(t);t=_.k(t,JBs);if(t!=null&&t.commentId){var E,p,U=(E=t.actionResult)==null?void 0:(p=E.update)==null?void 0:p.commentThreadRenderer;U&&(this.remove_(t.commentId),this.insert_(U))}};
_.Y.banAuthorAction_=function(t){var E=_.k(t,VxX);E!=null&&E.commentId&&(t=E.commentId,E=E.parentCommentId||this.getParentCommentId_(t),this.remove_(t,E))};
_.Y.handleScrollToCommentElement_=function(t){this.hostElement.contains(t)&&(this.nearestScrollParent||(this.nearestScrollParent=wGl(t)),this.isCommentVisibleInScrollParent(t)||t.scrollIntoView({behavior:"smooth",block:"start"}))};
_.Y.isCommentVisibleInScrollParent=function(t){if(!this.nearestScrollParent)return!1;t=t.getBoundingClientRect();var E=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return t.top>=E.top&&t.bottom<=E.bottom};
_.Y.commentIdToIndex_=function(t){var E;return t&&(E=this.data)!=null&&E.contents?this.data.contents.findIndex(function(p){p=p.commentThreadRenderer;var U;return t===((p==null?void 0:p.commentViewModel)&&((U=_.k(p.commentViewModel,eS0))==null?void 0:U.commentId))}):-1};
_.Y.insert_=function(t,E){E=E===void 0?!1:E;var p,U;if((p=this.data)==null?0:(U=p.contents)==null?0:U.some(function(A){return!!A.commentThreadRenderer}))for(p=0,U=this.data.contents.length;p<U;p++){var x=this.data.contents[p].commentThreadRenderer;
if(wKJ[t.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=wKJ[x.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){E&&wKJ[t.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===wKJ[x.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",p,1,{commentThreadRenderer:t}):this.splice("data.contents",p,0,{commentThreadRenderer:t});break}}else this.set("data.contents",[{commentThreadRenderer:t}])};
_.Y.doReplyRemove_=function(t,E,p){t=this.replyIdToIndex_(t,E,p);t<0||(E=this.getRepliesContentsPath_(E,p),this.splice(E,t,1))};
_.Y.remove_=function(t,E){E=this.commentIdToIndex_(E);E<0?(E=this.commentIdToIndex_(t),E<0||this.splice("data.contents",E,1)):_.r("web_delhi_comment_threads")||(this.doReplyRemove_(t,E,!1),this.doReplyRemove_(t,E,!0))};
_.Y.replyIdToIndex_=function(t,E,p){if(E<0)return-1;E=this.getRepliesContentsPath_(E,p);E=this.get(E);if(!E||!E.length)return-1;p=0;for(var U=E.length;p<U;p++){var x=void 0,A=void 0;if(((x=E[p])==null?void 0:(A=x.commentViewModel)==null?void 0:A.commentId)===t)return p}return-1};
_.Y.tickForCommentsTimer_=function(t){_.cD(t,void 0,"wn_comments")};
_.Y.reloadComments_=function(t){t=_.k(t,hST);_.k(t==null?void 0:t.command,_.x1)&&_.JZ(this.hostElement,[t==null?void 0:t.command])};
_.aE.Object.defineProperties(uW.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return!!((t=this.data)==null?0:(E=t.header)==null?0:(p=E.commentsHeaderRenderer)==null?0:p.isBackstageContent)}}});
_.aE.Object.defineProperties(uW,{template:{configurable:!0,enumerable:!0,get:function(){if(BtL===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);BtL=t}t=BtL;return t}}});
uW.prototype.showSuperfanOnlyDisclaimer_=uW.prototype.showSuperfanOnlyDisclaimer_;uW.prototype.showSubscribersOnlyDisclaimer_=uW.prototype.showSubscribersOnlyDisclaimer_;uW.prototype.headerChanged_=uW.prototype.headerChanged_;uW.prototype.contentsChanged_=uW.prototype.contentsChanged_;_.N([_.g(_.aU),_.P("design:type",Object)],uW.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.g(_.JT.YtPlayerListenerBehavior),_.P("design:type",Function)],uW.prototype,"ytPlayerListenerBehavior",void 0);
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],uW.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],uW.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],uW.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("data.header.commentsHeaderRenderer.isBackstageContent"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],uW.prototype,"isBackstage",null);
_.N([_.e(),_.P("design:type",Object)],uW.prototype,"disablePrescanVisibility",void 0);_.N([_.e(),_.P("design:type",Object)],uW.prototype,"canScheduleJobs",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],uW.prototype,"engagementPanel",void 0);_.N([_.e(),_.P("design:type",Object)],uW.prototype,"hidePanelButton",void 0);_.N([_.e(),_.P("design:type",Object)],uW.prototype,"isWatchGrid",void 0);_.N([_.e(),_.P("design:type",Object)],uW.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);
_.N([_.e(),_.P("design:type",Object)],uW.prototype,"hasShownSuperfanOnlyDisclaimer",void 0);_.N([_.GI("data.contents"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uW.prototype,"contentsChanged_",null);_.N([_.GI("data.header"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uW.prototype,"headerChanged_",null);
_.N([_.lc("yt-show-subscribers-only-disclaimer"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],uW.prototype,"showSubscribersOnlyDisclaimer_",null);_.N([_.lc("yt-show-superfan-only-snackbar"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],uW.prototype,"showSuperfanOnlyDisclaimer_",null);_.N([_.Ul({is:"ytd-comments"})],uW);var JQ=function(){return _.sU.apply(this,arguments)||this};
_.u(JQ,_.sU);_.Y=JQ.prototype;_.Y.bindIf=function(t,E,p){return t?E:p};
_.Y.bindIfDefined=function(t,E){return t!==void 0?t:E};
_.Y.booleanString=function(t){return(!!t).toString()};
_.Y.equals=function(){for(var t=_.t9.apply(0,arguments),E=t[0],p=1;p<t.length;p++)if(E!=t[p])return!1;return!0};
_.Y.isGreaterThan=function(t,E){return t>E};
_.Y.isLessThan=function(t,E){return t<E};
_.Y.logicalAND=function(){for(var t=_.t9.apply(0,arguments),E=!!t[0],p=1;p<t.length;p++)E=E&&!!t[p];return E};
_.Y.logicalOR=function(){for(var t=_.t9.apply(0,arguments),E=!!t[0],p=1;p<t.length;p++)E=E||!!t[p];return E};
_.Y.toBool=function(t){return!!t};
JQ.prototype.toBool=JQ.prototype.toBool;JQ.prototype.logicalOR=JQ.prototype.logicalOR;JQ.prototype.logicalAND=JQ.prototype.logicalAND;JQ.prototype.isLessThan=JQ.prototype.isLessThan;JQ.prototype.isGreaterThan=JQ.prototype.isGreaterThan;JQ.prototype.equals=JQ.prototype.equals;JQ.prototype.booleanString=JQ.prototype.booleanString;JQ.prototype.bindIfDefined=JQ.prototype.bindIfDefined;JQ.prototype.bindIf=JQ.prototype.bindIf;_.N([_.L0()],JQ);_.Rb8=[JQ.prototype];var VgL;var Qt5;var I_=function(){return _.z.apply(this,arguments)||this};
_.u(I_,_.z);I_.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
I_.prototype.onBackIconTap_=function(){window.history.back()};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],I_.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],I_.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],I_.prototype,"data",void 0);_.N([_.p4({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],I_);
_.G(I_,"yt-header-with-back-renderer",function(){if(Qt5===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;VgL===void 0&&(VgL=document.createElement("template"));var U=VgL;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Qt5=t}t=Qt5;return t},{mode:2});var C85;var jtL;var g5=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.u(g5,_.z);_.Y=g5.prototype;_.Y.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.Y.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&(this.isDarkTheme=t,this.setUrl())};
_.Y.dataChanged=function(){var t=this;if(this.data){var E=this.setUrl();E&&_.eM({destination:window,iframe:this.iframe,origin:_.XQG(E.toString()),channelName:"yt-iframe",onMessage:function(p){(p=t.getCommunicationCommand(p.data))&&t.ytComponentBehavior.resolveCommand(p)},
onEstablished:function(){}})}};
_.Y.setUrl=function(){if(this.data&&this.data.iframeUrl){var t=_.q0(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(t)return _.Yk(this.iframe,t),t}};
_.Y.getCommunicationCommand=function(t){var E;if((E=this.data)!=null&&E.onCommunicationCommandsMap){E=this.data.onCommunicationCommandsMap.find(function(x){return x.key===t});
if(E==null?0:E.value)return E==null?void 0:E.value;try{var p=yTm(_.c8(t)),U=this.data.onCommunicationCommandsMap.find(function(x){return x.key===(p==null?void 0:p.getMethodName())});
if(U==null?0:U.value)return U==null?void 0:U.value}catch(x){}}};
g5.prototype.dataChanged=g5.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],g5.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],g5.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],g5.prototype,"actionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],g5.prototype,"data",void 0);
_.N([_.e({value:!1}),_.P("design:type",Boolean)],g5.prototype,"isDarkTheme",void 0);_.N([_.Nl("#iframe"),_.P("design:type",HTMLIFrameElement)],g5.prototype,"iframe",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],g5.prototype,"dataChanged",null);_.N([_.p4({is:"yt-iframe-renderer",disableElementRegistration:!0})],g5);
_.G(g5,"yt-iframe-renderer",function(){if(jtL===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;C85===void 0&&(C85=document.createElement("template"));var U=C85;p.call(E,U.content.cloneNode(!0),t.content.firstChild);jtL=t}t=jtL;return t},{mode:2});_.ZY=function(t){_.PQ.call(this);this.callback=t;this.bezier=new rIl(0,0,.4,0,.2,1,1,1);this.delay=new _.zx(this.next,window,this);this.JSC$17347_animating=!1;_.ed(this,this.delay)};
_.u(_.ZY,_.PQ);_.ZY.prototype.isAnimating=function(){return this.JSC$17347_animating};
_.ZY.prototype.start=function(t,E,p){this.config={from:t,to:E,duration:p,startTime:(0,_.eu)()};this.JSC$17347_animating=!0;this.next()};
_.ZY.prototype.stop=function(){this.delay.stop();this.JSC$17347_animating=!1;this.config=void 0};
_.ZY.prototype.next=function(){if(this.config){var t=this.config,E=t.from,p=t.to,U=t.duration;t=t.startTime;var x=(0,_.eu)()-t;t=this.bezier;U=MYo(t,x/U);if(U==0)t=t.y0;else if(U==1)t=t.y3;else{x=pu(t.y0,t.y1,U);var A=pu(t.y1,t.y2,U);t=pu(t.y2,t.y3,U);x=pu(x,A,U);A=pu(A,t,U);t=pu(x,A,U)}t=_.Ay(t,0,1);this.callback(E+(p-E)*t);t<1?this.delay.start():this.JSC$17347_animating=!1}};_.O1=new _.gM("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var rdt={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},dLd=function(t,E,p,U){_.PQ.call(this);this.JSC$17358_miniAppId=t;this.localReleaseId=E;this.derivedDeviceInterface=p;this.isForeground=U;this.JSC$17358_playNonceResolver=new _.hf;this.playPingTimerId=NaN;this.playPingIntervalMs=_.z3("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.z3("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.r("enable_displaying_ppn");this.JSC$17358_miniAppClientDataProvider=_.X3().resolve(_.O1);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;k5K(this);var x=setTimeout(function(){_.qW(new _.cC("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17358_playNonceResolver.promise.then(function(){clearTimeout(x)})};
_.u(dLd,_.PQ);var Jd5=function(t,E){t.JSC$17358_playNonceResolver.resolve(E!=null?E:$x(8));t.enableDisplayingPpn&&u7l(t).then(function(p){t.JSC$17358_miniAppClientDataProvider.clientData.set("post_play_nonce",p)})},u7l=function(t){return _.q(function(E){return E.nextAddress==1?E.yield(t.JSC$17358_playNonceResolver.promise,2):E.return(E.yieldResult)})},k5K=function(t){var E,p;
_.q(function(U){if(U.nextAddress==1)return U.yield(t.JSC$17358_playNonceResolver.promise,2);E=U.yieldResult;p={miniAppInfo:{externalPostId:t.JSC$17358_miniAppId,localReleaseId:t.localReleaseId,postPlayNonce:E,derivedDeviceInterface:t.derivedDeviceInterface}};_.KF(p);_.Do(U)})},ge7=function(t){t.state!==0?_.qW(new _.cC("[MiniAppPlayLogger] recordPlayStart failed with state "+rdt[t.state])):(t.state=1,XP(t,"ma_cl"),hQ(t,"PLAY_EVENT_TYPE_PLAY_START"),I9e(t))},Zld=function(t){t.isForeground=!1;
hQ(t,"PLAY_EVENT_TYPE_PLAY_PAUSE")},Olb=function(t){t.state!==1&&t.state!==2?_.qW(new _.cC("[MiniAppPlayLogger] recordPlayEnd failed with state "+rdt[t.state])):(t.state=3,window.clearInterval(t.playPingTimerId),t.playPingTimerId=NaN,SuY(),hQ(t,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},XKe=function(t,E){t.state===2&&t.gameReady&&(t.firstClickRecorded?Date.now()-t.clickRecordedMs<t.playClickIntervalMs||(t.clickRecordedMs=Date.now(),hQ(t,"PLAY_EVENT_TYPE_PLAY_CLICK")):E&&(XP(t,"ma_fua"),hQ(t,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),t.firstClickRecorded=!0,t.clickRecordedMs=Date.now()))};
dLd.prototype.logError=function(t){var E=this,p;_.q(function(U){if(U.nextAddress==1)return t.metadata.externalPostId=E.JSC$17358_miniAppId,p=t.metadata,U.yield(Promise.race([E.JSC$17358_playNonceResolver.promise,new Promise(function(x){setTimeout(function(){x("")},3E4)})]),2);
p.postPlayNonce=U.yieldResult;t.metadata.localReleaseId=E.localReleaseId;t.loggingError.level="WARNING";_.bV(t.loggingError,t.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:t.metadata});_.Do(U)})};
var hbJ=function(t,E,p,U){var x,A,m,b,f,B;_.q(function(R){if(R.nextAddress==1)return R.yield(t.JSC$17358_playNonceResolver.promise,2);x=R.yieldResult;A={externalPostId:t.JSC$17358_miniAppId,localReleaseId:t.localReleaseId,postPlayNonce:x,sdkVersion:p,api:E};U!==void 0&&(A.networkRequestsMeasurement={networkRequests:_.kW(U,1),cachedRequests:_.kW(U,2),transferredBytes:_.kW(U,3)},(m=U)==null?0:_.Pn(m,da,6))&&(A.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((b=_.lJ(U,
da,6))==null?void 0:p1(b,1))||"0",cacheHits:((f=_.lJ(U,da,6))==null?void 0:p1(f,2))||"0",cachedBytes:((B=_.lJ(U,da,6))==null?void 0:p1(B,3))||"0"});_.MW("miniAppSdkUsage",A);_.Do(R)})},ebt=function(t,E,p){var U,x,A,m,b,f,B,R,V,Q,C,d,I,O,a,F;
_.q(function(L){if(L.nextAddress==1)return L.yield(t.JSC$17358_playNonceResolver.promise,2);U=L.yieldResult;x={externalPostId:t.JSC$17358_miniAppId,localReleaseId:t.localReleaseId,postPlayNonce:U,sdkVersion:p,measurementWindow:{startTimestampMs:String(Sh(E,1)),endTimestampMs:String(Sh(E,2))},frameRate:{averageFrameTimeDeltaMs:cn(E,3),averageFrameIdleTimeMs:cn(E,4)}};_.Pn(E,uZ,5)&&(x.networkRequests={networkRequests:(A=aL(E))==null?void 0:_.kW(A,1),cachedRequests:(m=aL(E))==null?void 0:_.kW(m,2),transferredBytes:(b=
aL(E))==null?void 0:_.kW(b,3),sameOriginStatusCodeToCounts:a9t((f=aL(E))==null?void 0:_.P8i(f,4,void 0,SrJ,SrJ)),crossOriginStatusCodeToCounts:a9t((B=aL(E))==null?void 0:_.P8i(B,5,void 0,SrJ,SrJ))},(R=aL(E))==null?0:_.Pn(R,da,6))&&(x.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((V=aL(E))==null?void 0:(Q=_.lJ(V,da,6))==null?void 0:p1(Q,1))||"0",cacheHits:((C=aL(E))==null?void 0:(d=_.lJ(C,da,6))==null?void 0:p1(d,2))||"0",cachedBytes:((I=aL(E))==null?void 0:(O=_.lJ(I,da,6))==
null?void 0:p1(O,3))||"0"});_.Pn(E,nis,7)&&(x.gameCapture={averageFrameTimeDeltaMs:(a=_.lJ(E,nis,7))==null?void 0:cn(a,1),averageFrameIdleTimeMs:(F=_.lJ(E,nis,7))==null?void 0:cn(F,2)});_.MW("miniAppPerformanceMetrics",x);_.Do(L)})},Fo8=function(t,E){var p,U;
return _.q(function(x){if(x.nextAddress==1)return x.yield(t.JSC$17358_playNonceResolver.promise,2);p=x.yieldResult;U={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:t.JSC$17358_miniAppId,postPlayNonce:p,miniAppReleaseId:t.localReleaseId},derivedDeviceInterface:t.derivedDeviceInterface,adTriggerType:E,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.MW("miniAppAdEvent",U);_.Do(x)})};
dLd.prototype.disposeInternal=function(){_.PQ.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var hQ=function(t,E,p,U){p=p===void 0?{}:p;U=U===void 0?!1:U;var x,A,m,b;_.q(function(f){if(f.nextAddress==1)return x=t.isForeground,A=t.beforeReady,f.yield(t.JSC$17358_playNonceResolver.promise,2);m=f.yieldResult;b={externalPostId:t.JSC$17358_miniAppId,localReleaseId:t.localReleaseId,derivedDeviceInterface:t.derivedDeviceInterface,postPlayNonce:m,type:E};p.sequenceGroup=m;b.playState=A?"PLAY_STATE_NOT_READY":x?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.MW("miniAppPlayEvent",b,
p);U&&_.mL();_.Do(f)})},XP=function(t,E){var p;
_.q(function(U){if(U.nextAddress==1)return p=(0,_.eu)(),U.yield(t.JSC$17358_playNonceResolver.promise,2);_.SR(E,p);_.Do(U)})},I9e=function(t){isNaN(t.playPingTimerId)&&(t.playPingTimerId=_.D3(function(){t.state!==1&&t.state!==2?_.qW(new _.cC("[MiniAppPlayLogger] reportPlayPing failed with state "+rdt[t.state])):hQ(t,"PLAY_EVENT_TYPE_PLAY_PING")},t.playPingIntervalMs))},a9t=function(t){return Array.from(t.entries()).map(function(E){var p=_.M(E);
E=p.next().value;p=p.next().value;return{key:E,value:p}})};var zbt=function(){},l9L=function(t,E){t.showMiniAppAdCommand=E.showMiniAppAdCommand;
t.isEmbeddedInWebview=E.isEmbeddedInWebview;t.playLogger=E.playLogger},neo=function(t){return _.q(function(E){return E.return(G57(t,1))})},Ntb=function(t){return _.q(function(E){return E.return(G57(t,2))})},st8=function(t,E){return _.q(function(p){return E?p.return(G57(t,3,E)):p.return(DL5(t,3))})},G57=function(t,E,p){var U;
return _.q(function(x){if(x.nextAddress==1){if(!t.showMiniAppAdCommand||!t.isEmbeddedInWebview)return x.return(DL5(t,E));t.adResolver=new _.hf;var A=new x3;A=_.GM(A,3,E);U=_.Lq(A,5,p);AN(t.showMiniAppAdCommand,uqs(U));return x.yield(t.adResolver.promise,2)}return x.return(x.yieldResult)})};
zbt.prototype.onAdFinished=function(t){t=w7Z(t);var E;(E=this.adResolver)==null||E.resolve(t)};
var DL5=function(t,E){var p;return _.q(function(U){if(U.nextAddress==1)U=U.yield((p=t.playLogger)==null?void 0:Fo8(p,dZl(E)),2);else{var x=U.return;var A=new B00;A=_.GM(A,1,2);U=x.call(U,A)}return U})};var Loo=new _.gM("INNERTUBE_MANAGER_TOKEN");var P8C=function(){this.callbacks={}};
P8C.prototype.initialize=function(t){var E=this;this.callbacks=t;window.youtubewebview?window.youtubewebview.onmessage=function(p){Ttd(E,p)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(p){Ttd(E,p)})};
var Ttd=function(t,E){if(E.data)try{var p=yTm(E.data);if(_.hd(_.sa(p,1))!=null){var U=QL3(_.th(p,2));switch(p.getMethodName()){case "yt-mini-app-load-audio-state":var x,A;(A=(x=t.callbacks).onAudioStateLoaded)==null||A.call(x,_.yT(U,yK(U,Uu,1)));break;case "yt-mute-mini-app":var m,b;(b=(m=t.callbacks).onMuteMiniApp)==null||b.call(m);break;case "yt-unmute-mini-app":var f,B;(B=(f=t.callbacks).onUnmuteMiniApp)==null||B.call(f);break;case "yt-playable-exit":var R,V;(V=(R=t.callbacks).onExit)==null||V.call(R);
break;case "yt-post-play-nonce":var Q,C;(C=(Q=t.callbacks).onPostPlayNonceReceived)==null||C.call(Q,Ut(U,2,Uu));break;case "yt-confirm-exit-mini-app":var d,I;(I=(d=t.callbacks).confirmExitMiniApp)==null||I.call(d);break;case "yt-confirm-exit-mini-app-edu":var O,a;(a=(O=t.callbacks).confirmExitMiniAppEdu)==null||a.call(O);break;case "yt-benchmarking-response":var F,L;(L=(F=t.callbacks).onNativeBenchmarkingMessageReceived)==null||L.call(F,Ut(U,2,Uu));break;case "yt-mini-app-load-3p-consent-state":var D,
W;(W=(D=t.callbacks).multiplayer3pAckStateLoaded)==null||W.call(D,_.yT(U,yK(U,Uu,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var K,v;(v=(K=t.callbacks).exitMiniAppSeenStateLoaded)==null||v.call(K,_.yT(U,yK(U,Uu,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var YL,bY;(bY=(YL=t.callbacks).onNavigateToNewMiniApp)==null||bY.call(YL);break;case "yt-game-data-available":var kL,R0;(R0=(kL=t.callbacks).onGameDataAvailable)==null||R0.call(kL,Ut(U,2,Uu));break;case "yt-pause-mini-app":var j$,
lY;(lY=(j$=t.callbacks).onPauseMiniApp)==null||lY.call(j$);break;case "yt-resume-mini-app":var Tt,si;(si=(Tt=t.callbacks).onResumeMiniApp)==null||si.call(Tt);break;case "yt-pause-playable-dialog":var Q0,ps;(ps=(Q0=t.callbacks).onPausePlayableDialog)==null||ps.call(Q0);break;case "yt-resume-playable-dialog":var $L,Cs;(Cs=($L=t.callbacks).onResumePlayableDialog)==null||Cs.call($L);break;case "yt-playable-ad-finished":var km,ZT;(ZT=(km=t.callbacks).onAdFinished)==null||ZT.call(km,Ut(U,2,Uu))}}else _.qW(Error("Wh"))}catch(l8){_.bV(Error("Xh"))}else _.qW(Error("Yh"))};var Ji8=function(t){this.rpcErrorCode=t};var a_=function(t,E,p){this.intervalMs=t;this.apiFunc=E;this.type=p;this.schedulerReady=!0};
a_.prototype.call=function(t){var E=this,p;return _.q(function(U){if(U.nextAddress==1){if(E.type!==1&&t===E.cachedValue)return U.return();E.pendingApiRequestResolver||(E.pendingApiRequestResolver=new _.hf);p=E.pendingApiRequestResolver.promise;E.cachedValue=t;return U.yield(oel(E),2)}return U.return(p)})};
a_.prototype.flush=function(t){t=t===void 0?!1:t;var E=this;return _.q(function(p){return E.cachedValue===void 0?p.return():p.yield(E.apiFunc(E.cachedValue,t),0)})};
var oel=function(t){var E,p,U;return _.q(function(x){switch(x.nextAddress){case 1:if(!t.schedulerReady||!t.pendingApiRequestResolver)return x.return();t.schedulerReady=!1;E=t.pendingApiRequestResolver;t.pendingApiRequestResolver=void 0;_.aR(x,2);if(t.cachedValue===void 0){x.jumpTo(4);break}return x.yield(t.apiFunc(t.cachedValue),5);case 5:p=x.yieldResult,E.resolve(p);case 4:_.r7(x,3);break;case 2:U=_.nB(x),E.reject(U);case 3:setTimeout(function(){return _.q(function(A){t.schedulerReady=!0;return A.yield(oel(t),
0)})},t.intervalMs),_.Do(x)}})};var ZjO=window.location.origin+"/miniapp_cloudsaves",IhJ=[400,401],Wo7=_.z3("cloud_save_game_data_rate_limit_ms",3E3),Kog=function(t){var E=this;this.JSC$17402_miniAppId=t;this.loadAttempts=0;this.cloudSaveIntervalMs=Wo7;this.initialDownloadDataSucceeded=!1;this.JSC$17402_playNonceResolver=new _.hf;this.scottyUploadRateLimiter=new a_(this.cloudSaveIntervalMs,function(p,U){return E.uploadData(p,U)},2);
this.downloadDataPromise=$Lt(this);this.downloadDataPromise.then(function(){E.initialDownloadDataSucceeded=!0}).catch(function(){})},veL=function(t,E){E.then(function(p){return t.JSC$17402_playNonceResolver.resolve(p)})},yd5=function(t){return _.q(function(E){return t.cachedData===void 0?E.return(t.downloadDataPromise):E.return(t.cachedData)})},SCg=function(t,E){return _.q(function(p){t.cachedData=E;
if(!t.initialDownloadDataSucceeded)throw Error("Zh");return p.yield(t.scottyUploadRateLimiter.call(E),0)})},cd8=function(){return new Promise(function(t){setTimeout(t,1E3,"")})},t87=function(t,E){var p,U;
return _.q(function(x){if(x.nextAddress==1)return p=t.JSC$17402_miniAppId,x.yield(Promise.race([t.JSC$17402_playNonceResolver.promise,cd8()]),2);U={"X-YouTube-MiniAppId":p,"X-YouTube-PostPlayNonce":x.yieldResult};"DELEGATED_SESSION_ID"in _.ba&&Bm_(E,U);return x.return(U)})};
Kog.prototype.uploadData=function(t,E){E=E===void 0?!1:E;var p=this;return _.q(function(U){return uXt()?_.r("enable_cloud_save_error_popup_after_retry")?U.return(new Promise(function(x,A){var m,b,f,B,R;return _.q(function(V){switch(V.nextAddress){case 1:m=0,b=!0,B=f=null;case 2:if(!(b&&m++<2)){V.jumpTo(4);break}_.aR(V,5);return V.yield(EIC(p,t,E),7);case 7:f=V.yieldResult;b=f.ok?!1:!IhJ.includes(f.status);_.r7(V,2);break;case 5:B=R=_.nB(V);b=gvi(B);V.jumpTo(2);break;case 4:f?f.ok?(e_(p,Wo7),x()):
(e_(p,p.cloudSaveIntervalMs*2),A(Error("$h`"+String(f.status),{cause:{rpcErrorCode:f.status}}))):(e_(p,p.cloudSaveIntervalMs*2),A(B||Error("ai"))),_.Do(V)}})})):U.return(new Promise(function(x,A){var m,b;
return _.q(function(f){if(f.nextAddress==1){if(p.JSC$17402_miniAppId==="")return A(Error("bi")),f.return();_.aR(f,2);return f.yield(EIC(p,t,E),4)}if(f.nextAddress!=2)return m=f.yieldResult,m.ok?(e_(p,Wo7),x()):(e_(p,p.cloudSaveIntervalMs*2),A(Error("$h`"+String(m.status),{cause:{rpcErrorCode:m.status}}))),_.r7(f,0);b=_.nB(f);e_(p,p.cloudSaveIntervalMs*2);A(b);_.Do(f)})})):U.return()})};
var EIC=function(t,E,p){p=p===void 0?!1:p;var U,x,A;return _.q(function(m){if(m.nextAddress==1)return U=_.S$((new TextEncoder).encode(E)),x=OjD(),m.yield(t87(t,x),2);A=m.yieldResult;return m.return(fetch(x,{method:"POST",body:new Blob([U]),headers:A,keepalive:p}))})},$Lt=function(t){var E,p;
return _.q(function(U){if(U.nextAddress==1){if(!uXt())return U.return("");if(t.JSC$17402_miniAppId==="")throw Error("bi");if(t.loadAttempts>2)return U.return(t.downloadDataPromise);_.aR(U,2);return U.yield(pwt(t),4)}if(U.nextAddress!=2)return E=U.yieldResult,U.return(E);p=_.nB(U);if(gvi(p)&&++t.loadAttempts<2)return U.return($Lt(t));throw p;})},pwt=function(t){var E,p,U,x,A;
return _.q(function(m){switch(m.nextAddress){case 1:return _.aR(m,2),E=OjD(),m.yield(t87(t,E),4);case 4:return p=m.yieldResult,m.yield(fetch(E,{method:"GET",headers:p}),5);case 5:return U=m.yieldResult,U.ok?m.yield(U.text(),6):m.return(Promise.reject(Error("ci`"+String(U.status),{cause:new Ji8(U.status)})));case 6:return x=m.yieldResult,m.return((new TextDecoder).decode(_.c8(x)));case 2:return A=_.nB(m),m.return(Promise.reject(A))}})},e_=function(t,E){t.cloudSaveIntervalMs=E;
t.scottyUploadRateLimiter.intervalMs=t.cloudSaveIntervalMs};
Kog.prototype.flush=function(){var t=this;return _.q(function(E){return t.initialDownloadDataSucceeded?E.yield(t.scottyUploadRateLimiter.flush(!0),0):E.return()})};var U2L=Xq(Ov(1),IL(1)),FP=Xq(Ov(1),IL(3)),zS=function(t){this.callbacks=t};
_.Y=zS.prototype;_.Y.onAudioToggled=function(t,E){(E===void 0||E)&&_.o4("yt-mini-app-is-audio-enabled",t,2592E3)};
_.Y.onPause=function(){this.onAudioToggled(!1,!1)};
_.Y.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.Y.returnNativeBenchmarkingMessage=function(){};
_.Y.sendGameData=function(){};
_.Y.sendStartGameFrameCapture=function(){};
var XG$=function(t,E,p){this.callbacks=t;var U=this;this.sdkVersion=new _.hf;this.channel=new D2p(_.eM({destination:window,iframe:E,origin:(new URL(p.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var x=lW;var A=Ov(5);var m=new uB3;m=_.Ah(m,1,1E4);A=_.zC(A,4,avp,m);x(U,A);U.onAudioToggled(U.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){U.sdkVersion.resolve("")},1E4)};
_.u(XG$,zS);_.Y=XG$.prototype;_.Y.onAudioToggled=function(t,E){zS.prototype.onAudioToggled.call(this,t,E===void 0?!0:E);E=lW;var p=Ov(2),U=new klX;t=_.gi(U,1,t);t=_.zC(p,3,avp,t);E(this,t)};
_.Y.onPause=function(){zS.prototype.onPause.call(this);lW(this,Ov(3))};
_.Y.onResume=function(){zS.prototype.onResume.call(this);lW(this,Ov(4))};
_.Y.returnNativeBenchmarkingMessage=function(t){var E=lW,p=Ov(6);var U=IL(_.Pn(t,uk,1)?1:2);t=_.Pn(t,uk,1)?t:null;U=_.zC(U,5,Za,t);E(this,Xq(p,U))};
_.Y.sendGameData=function(t){var E=lW,p=Ov(7);t=_.zC(p,5,avp,t);E(this,t)};
_.Y.sendStartGameFrameCapture=function(){lW(this,Ov(9))};
var GS=function(t,E,p){var U,x,A;return _.q(function(m){if(m.nextAddress==1)return U=t.callbacks,x=U.onSdkCalled,A=E,m.yield(t.sdkVersion.promise,2);x.call(U,A,m.yieldResult,p);_.Do(m)})};
XG$.prototype.onMessage=function(){var t=this;return PF4(el,function(E){var p,U,x,A,m,b,f,B,R,V,Q,C,d,I,O,a,F,L,D,W,K,v,YL,bY,kL,R0,j$,lY,Tt,si,Q0,ps,$L,Cs,km,ZT,l8,Rt,wE,Gt,V0,SW,h3,zX,zc,EC,VJ,$m,Kl,iG,QJ;return _.q(function(Rs){switch(Rs.nextAddress){case 1:if(!Lmo(E.data))return _.qW(Error("di")),Rs.return();p=_.Et(E.data,1);_.r("enable_iframe_message_get_type_via_fields")&&(U=E.data,p=x=_.Et(U,1));switch(p){case 8:if(E.data.hasMetadata()){var vp=t.sdkVersion,DT=vp.resolve;var qL=E.data.getMetadata();
qL=_.th(qL,1);DT.call(vp,qL);clearTimeout(t.sdkVersionTimeoutId)}break;case 6:return Rs.jumpTo(2);case 16:if(!_.Tm(E.data,zmZ,14,Fq))return Rs.return();A=_.xC(E.data,zmZ,14,Fq);(b=(m=t.callbacks).onGameFrameReceived)==null||b.call(m,A);return Rs.return();case 17:if(!_.Tm(E.data,Fmr,15,Fq))return Rs.return();(B=(f=t.callbacks).onGameAudioReceived)==null||B.call(f,_.xC(E.data,Fmr,15,Fq));return Rs.return();case 1:if(vp=_.xC(E.data,gis,2,Fq))switch(_.Et(vp,1)){case 1:t.callbacks.onFirstFrameReady();
if(_.r("enable_network_request_logging_on_game_events")&&_.Pn(vp,uZ,4)){GS(t,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.lJ(vp,uZ,4));break}GS(t,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(qL=(DT=t.callbacks).onGameReady)==null||qL.call(DT);if(_.r("enable_network_request_logging_on_game_events")&&_.Pn(vp,uZ,4)){GS(t,"MINI_APP_SDK_API_GAME_READY",_.lJ(vp,uZ,4));break}GS(t,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.Tm(vp,Jv,3,ZJf))t.callbacks.onResourceLoaded(_.xC(vp,Jv,3,ZJf))}return Rs.return();
case 3:return Rs.jumpTo(3);case 4:return Rs.jumpTo(4);case 2:return Rs.jumpTo(5);case 9:return Rs.jumpTo(6);case 10:return t.callbacks.onClick(),Rs.return();case 5:return Rs.jumpTo(7);case 11:if(!_.Tm(E.data,ra,9,Fq))return Rs.return();R=_.xC(E.data,ra,9,Fq);(Q=(V=t.callbacks).onBenchmarkingMessageReceived)==null||Q.call(V,R);vp=E.reply;DT=Ov(1);qL=IL(1);var TC=new ra;var Wp=new Uint8Array(ULm(R,yK(R,Vvs,6))|0);TC=Ta(TC,5,Vvs,_.F4(Wp,!1));qL=_.zC(qL,5,Za,TC);vp.call(E,Xq(DT,qL));return Rs.return();
case 12:return Rs.jumpTo(8);case 13:return Rs.jumpTo(9);case 15:return Rs.jumpTo(10);case 14:return Rs.jumpTo(11);case 18:return Rs.jumpTo(12);default:return Rs.return()}Rs.jumpTo(0);break;case 2:if(!_.Tm(E.data,hv,5,Fq))return Rs.return();DT=E.data;vp=yK(DT,Fq,5);DT=DT.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;C=$L0(DT,DT[_.Mf]|0,hv,vp)||hv[Krt]||(hv[Krt]=vmD(hv));vp=_.jd(C,kY,1,_.ri());d=_.M(vp);I=d.next();case 14:if(I.done){Rs.jumpTo(16);break}O=I.value;a=new _.cC;a.level=_.Et(O,2)===
1?"WARNING":"ERROR";F=ahL(O.getSource());return Rs.yield(t.sdkVersion.promise,17);case 17:L={source:F,sdkVersion:Rs.yieldResult};_.HK(_.sa(O,6))!=null?(a.message=O.getMessage(),a.stack=_.th(O,5),L.sdkErrorType=eKj(_.Et(O,6)),_.HK(_.sa(O,7))!=null&&(L.sdkApi=FlY(_.Et(O,7)))):a.stack=void 0;W=D=void 0;(W=(D=t.callbacks).onError)==null||W.call(D,{loggingError:a,metadata:L});I=d.next();Rs.jumpTo(14);break;case 16:return Rs.return();case 3:return _.aR(Rs,18),vp=Rs.yield,DT=t.callbacks,qL=DT.onSave,TC=
_.xC(E.data,dxf,4,Fq),TC=_.th(TC,1),vp.call(Rs,qL.call(DT,TC),20);case 20:E.reply(U2L);_.r7(Rs,19);break;case 18:return K=_.nB(Rs),v=Yu,YL=K,bY=t.callbacks,kL="MINI_APP_SDK_API_SAVE_DATA",Rs.yield(t.sdkVersion.promise,21);case 21:v(YL,bY,kL,Rs.yieldResult),E.reply(FP);case 19:return Rs.yield(GS(t,"MINI_APP_SDK_API_SAVE_DATA"),22);case 22:return Rs.return();case 4:return _.aR(Rs,23),Rs.yield(t.callbacks.onLoad(),25);case 25:R0=Rs.yieldResult;vp=E.reply;DT=Ov(1);qL=IL(1);TC=new dxf;TC=_.Lq(TC,1,R0);
qL=_.zC(qL,3,Za,TC);vp.call(E,Xq(DT,qL));_.r7(Rs,24);break;case 23:return j$=_.nB(Rs),lY=Yu,Tt=j$,si=t.callbacks,Q0="MINI_APP_SDK_API_LOAD_DATA",Rs.yield(t.sdkVersion.promise,26);case 26:lY(Tt,si,Q0,Rs.yieldResult),E.reply(FP);case 24:return Rs.yield(GS(t,"MINI_APP_SDK_API_LOAD_DATA"),27);case 27:return Rs.return();case 5:_.aR(Rs,28);t.callbacks.onSendHighScore(m7(_.xC(E.data,Dxr,3,Fq).getValue()));E.reply(Xq(Ov(1),IL(1)));_.r7(Rs,29);break;case 28:return ps=_.nB(Rs),$L=Yu,Cs=ps,km=t.callbacks,ZT=
"MINI_APP_SDK_API_SEND_SCORE",Rs.yield(t.sdkVersion.promise,30);case 30:$L(Cs,km,ZT,Rs.yieldResult),E.reply(FP);case 29:return Rs.yield(GS(t,"MINI_APP_SDK_API_SEND_SCORE"),31);case 31:return Rs.return();case 6:if(!_.Tm(E.data,sQo,8,Fq)){Rs.jumpTo(32);break}vp=Rs.yield;DT=_.xC(E.data,sQo,8,Fq);DT=_.Et(DT,1);return vp.call(Rs,GS(t,FlY(DT)),32);case 32:return Rs.return();case 7:return vp=E.reply,DT=Ov(1),qL=IL(1),TC=t.callbacks.getLanguage(),qL=Ta(qL,4,Za,Z9(TC)),vp.call(E,Xq(DT,qL)),Rs.yield(GS(t,"MINI_APP_SDK_API_GET_LANGUAGE"),
34);case 34:return Rs.return();case 8:if(!_.Tm(E.data,N0r,10,Fq))return Rs.return();l8=_.xC(E.data,N0r,10,Fq);Rt=t.callbacks;wE=Rt.onSdkPerformanceUpdate;return Rs.yield(t.sdkVersion.promise,35);case 35:return wE.call(Rt,l8,Rs.yieldResult),Rs.return();case 9:vp=E.data;DT=yK(vp,Fq,11);if(_.hd(_.sa(vp,DT))==null)return E.reply(Xq(Ov(1),IL(2))),Rs.return();Gt=Ut(E.data,11,Fq);t.callbacks.onShareInviteCode(Gt);E.reply(U2L);return Rs.yield(GS(t,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),36);case 36:return Rs.return();
case 10:if(!_.r("enable_open_yt_content"))return E.reply(FP),Rs.return();if(!_.Tm(E.data,emr,12,Fq))return E.reply(Xq(Ov(1),IL(2))),Rs.return();vp=_.xC(E.data,emr,12,Fq);V0=_.th(vp,1);t.callbacks.onOpenYTContent(V0);E.reply(U2L);return Rs.yield(GS(t,"MINI_APP_SDK_API_OPEN_CONTENT"),37);case 37:return Rs.return();case 11:if(_.Tm(E.data,rUG,13,Fq)){Rs.jumpTo(38);break}return Rs.yield(t.callbacks.onShowMiniAppAd(2),39);case 39:return SW=Rs.yieldResult,E.reply(Xq(Ov(1),X7r(SW))),Rs.yield(GS(t,"MINI_APP_SDK_API_REQUEST_AD"),
40);case 40:return Rs.return();case 38:vp=_.xC(E.data,rUG,13,Fq);a:switch(_.Et(vp,1)){case 1:vp={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};break a;case 2:vp={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:vp={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}h3=vp;zX=h3.adType;zc=h3.sdkApi;vp=Rs.yield;DT=t.callbacks;qL=DT.onShowMiniAppAd;TC=_.xC(E.data,rUG,13,Fq);TC=_.th(TC,2);return vp.call(Rs,qL.call(DT,zX,TC||void 0),41);case 41:return EC=Rs.yieldResult,
E.reply(Xq(Ov(1),X7r(EC))),Rs.yield(GS(t,zc),42);case 42:return Rs.return();case 12:_.aR(Rs,43);vp=t.callbacks;DT=vp.onMakeIapPurchase;qL=_.xC(E.data,lvr,16,Fq);qL=_.th(qL,1);DT.call(vp,qL);E.reply(Xq(Ov(1),IL(1)));_.r7(Rs,44);break;case 43:return VJ=_.nB(Rs),$m=Yu,Kl=VJ,iG=t.callbacks,QJ="MINI_APP_SDK_API_MAKE_IAP_PURCHASE",Rs.yield(t.sdkVersion.promise,45);case 45:$m(Kl,iG,QJ,Rs.yieldResult),E.reply(FP);case 44:return Rs.yield(GS(t,"MINI_APP_SDK_API_MAKE_IAP_PURCHASE"),46);case 46:return Rs.return()}})})};
var lW=function(t,E){_.q(function(p){t.channel.send(E);_.Do(p)})},MM=function(t,E,p){this.callbacks=t;
var U=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;t=foD(E,(new URL(p.toString())).origin);this.gameSnacks=new UEr(t);this.gameSnacks.page.onReady(function(){U.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){U.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var x,A;(A=(x=U.callbacks).onGameReady)==null||A.call(x)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(x,A){try{U.callbacks.onSendHighScore(A)}catch(m){Yu(m,U.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(x,A){var m;return _.q(function(b){if(b.nextAddress==1)return _.aR(b,2),b.yield(U.callbacks.onSave(U.decoder.decode(A)),4);if(b.nextAddress!=2)return _.r7(b,0);m=_.nB(b);Yu(m,U.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return b.return()})});
this.gameSnacks.storage.onLoad(function(){var x,A;return _.q(function(m){if(m.nextAddress==1)return _.aR(m,2),m.yield(U.callbacks.onLoad(),4);if(m.nextAddress!=2)return x=m.yieldResult,m.return(U.encoder.encode(x));A=_.nB(m);Yu(A,U.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return m.return(U.encoder.encode(""))})});
this.gameSnacks.init()};
_.u(MM,zS);MM.prototype.onAudioToggled=function(t,E){zS.prototype.onAudioToggled.call(this,t,E===void 0?!0:E);var p;(p=this.gameSnacks)==null||p.audio.update(t)};
MM.prototype.onPause=function(){zS.prototype.onPause.call(this);var t;(t=this.gameSnacks)==null||t.game.pause()};
MM.prototype.onResume=function(){zS.prototype.onResume.call(this);var t;(t=this.gameSnacks)==null||t.game.resume()};var x2C=zKt,AG7=_.l(function(t){var E=t.data;var p=t.loadingProgress;var U=t.forPaused;t=_.M(_.Py("",void 0,"LYYTdd"));var x=t.next().value,A=t.next().value;t=_.M(_.Py(!1,void 0,"K0waae"));var m=t.next().value,b=t.next().value,f=[],B=function(){return"transform: scaleX("+(_.Hv(p)||0)+")"},R=null,V=function(){return E()&&R!==null&&R!==void 0?R:R=E().showAnniversaryAnimation?6:x2C()};
_.M$(function(){var I;if(E().timeOutMessages&&((I=E().timeOutMessages)==null?0:I.length)){R=null;I=_.M(f);for(var O=I.next();!O.done;O=I.next())clearTimeout(O.value);f.length=0;lhE(E().timeOutMessages,f,A,b)}},"BNu9j");
var Q=function(){return!!E().persistentErrorMessageTitle},C=function(){return p!==void 0},d=function(){return E().title};
return _.H("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.H("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.H("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.H("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var I,O=(I=E().backgroundImage)==null?void 0:I.sources,a;return(O==null?0:O.length)?"background-image: url("+((a=O[0])==null?void 0:a.url)+")":""}}),_.H("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.H(_.w,{cond:function(){return!Q()&&!(U==null?0:U())},
then:function(){var I={};return _.H("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.H("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.H(_.Wg,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+V()},
data:function(){var O="loading_animation_"+V();return{animationConfig:{name:O,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+O+".json",loop:!0,autoplay:!0}}}})),_.H("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.H(_.w,{cond:d,
then:function(){return _.H("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},d)}}),_.H("p",{class:_.X5("miniAppSplashScreenViewModelTimeoutMessage",(I.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return m()},I)),
"aria-live":"polite"},x),_.H(_.w,{cond:C,then:function(){return _.H("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.H("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:B}))}})))}}),_.H(_.w,{cond:Q,
then:function(){return _.H("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.H("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return E().persistentErrorMessageTitle}),_.H(_.w,{cond:function(){return!!E().persistentErrorMessageDescription},
then:function(){return _.H("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return E().persistentErrorMessageDescription})}}))}}),_.H(_.w,{cond:U,
then:function(){return _.H("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.H("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.H("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},d))}})))},"Wf");var YS5=new _.gM("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var M8C=uK;uK=function(t){function E(p){if(p){var U,x;(U=p.__spec)==null||(x=U.didUnmount)==null||x.call(U);for(U=0;U<p.childNodes.length;U++)E(p.childNodes[U])}}
M8C==null||M8C(t);cu(function(){for(var p=0;p<t.length;p++)E(t[p])})};var m2L=_.l(function(t){var E=t.data;var p=t.score;var U=t.formattedScore;var x=t.onScoreChanged;var A=t.isEmbeddedInWebview;var m=_.pR("yt-mini-app-score-button-view-model"),b=function(){var C;return _.k(E==null?void 0:(C=E())==null?void 0:C.buttonViewModel,_.Cz)},f=function(){var C;
return(p==null?void 0:p())||Number(E==null?void 0:(C=E())==null?void 0:C.lastScore)||0},B=function(){var C;
return(U==null?void 0:U())||((C=b())==null?void 0:C.title)||""},R,V=1;
if(t=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))t=Number(t),V=isNaN(t)?1:t/100;_.M$(function(){x==null||x(f());var C;var d=_.AJ((C=b())==null?void 0:C.onTap);if(d){C=_.k(d,bET);var I,O,a;C=_.k(C==null?void 0:(I=C.panelLoadingStrategy)==null?void 0:(O=I.inlineContent)==null?void 0:(a=O.dialogViewModel)==null?void 0:a.customContent,Jvp)}else C=void 0;if(I=C)I.score=B()},"Aekez");
t=_.aC(function(){var C,d,I=E==null?void 0:(C=E())==null?void 0:(d=C.loggingDirectives)==null?void 0:d.trackingParams;I&&_.$3(_.X3().resolve(_.Yt),I);return!1});
_.A6(function(){if(m.value){var C=m.value.querySelector("button"),d=b();C&&d&&nvL(C,d);_.Xv("yt-share-playable-with-high-score",function(){var I=f().toString(),O=E==null?void 0:E().onShareHighScoreCommand,a=E==null?void 0:E().highScoreShareClientParamIdentifier,F=A==null?void 0:A();O&&(F?(a=new vts,I=_.Lq(a,2,I),AN(O,I.JSC$12804_serializeBinary())):a&&(_.X3().resolve(YS5).clientParams.set(a,{miniAppClientParams:{highScore:I}}),QPJ(O,!1)))})}});
var Q=function(){var C=b();C&&(p==null?0:p())&&C.accessibilityText&&(C.accessibilityText=C.accessibilityText.replace(R,B()));R=B();return{numberValue:f(),numberText:B(),heightPx:36,fontSizeMultiplier:V,shouldAnimate:!(p==null||!p())&&!0}};
return _.H("yt-mini-app-score-button-view-model",{class:function(){var C={};return _.v9("miniAppScoreButtonViewModelHost",(C.miniAppScoreButtonViewModelIsVisible=f()!==0,C))},
el:m,"on:click":t},cF8(!1,function(){return _.H("span",{style:"display:none;"},f)}),_.H(_.sY,{data:function(){var C;
return E==null?void 0:(C=E())==null?void 0:C.buttonViewModel}},{buttonViewModel:function(C){return _.H(_.D5,{data:C.data,
animatedTextProps:Q})}}))},"Yf");var fkC=_.l(function(t){var E,p=(E=_.WL("yt-mini-app-is-theater-mode-enabled"))!=null?E:!1,U=_.r("enable_playable_container_save_button"),x=_.r("enable_play_next_destination_page_in_toolbar");E={};return _.H("ytm-mini-app-top-bar-view-model",null,_.H("div",{class:_.X5("yt-mini-app-top-bar-view-model",(E["yt-mini-app-top-bar-view-model--mobile"]=!1,E["yt-mini-app-top-bar-view-model--desktop"]=!0,E))},_.H("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.H(_.w,{cond:function(){var A;return!!t.data().backButtonEdu&&
!((A=t.isExitMiniAppSeen)==null?0:A.call(t))},
then:function(){return _.H(_.sY,{data:function(){return t.data().backButtonEdu}},{buttonViewModel:_.D5})},
else:function(){return _.H(_.sY,{data:function(){return t.data().backButton}},{buttonViewModel:_.D5})}}),_.H(_.w,{cond:function(){return t.data().viewAllButton&&!0},
then:function(){return _.H(_.sY,{data:function(){return t.data().viewAllButton}},{buttonViewModel:_.D5})}}),_.H(_.w,{cond:function(){return t.data().title&&!0},
then:function(){return _.H("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return t.data().title})}})),_.H("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.H(_.w,{cond:function(){var A;
return(A=t.isDesktopPlayPage)==null?void 0:A.call(t)},
then:function(){return _.H(_.Oj,null,_.H(bto,{highScoreButton:function(){return t.data().highScoreButton},
score:t.score,formattedScore:t.formattedScore,onScoreChanged:t.onScoreChanged,isEmbeddedInWebview:t.isEmbeddedInWebview}),_.H(it8,{enableSaveButton:function(){return _.Hv(U)},
saveButton:function(){return t.data().saveButton},
isSaved:t.isSaved,onSaveToggled:function(){return t.onSaveToggled}}),_.H(qSC,{menuButton:function(){return t.data().menuButton}}))},
else:function(){return _.H(_.w,{cond:function(){return!1},
then:function(){return _.H(_.sY,{data:function(){return t.data().playPageButton}},{buttonViewModel:function(A){return _.H(_.D5,{data:A.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.H(bto,{highScoreButton:function(){return t.data().highScoreButton},
score:t.score,formattedScore:t.formattedScore,onScoreChanged:t.onScoreChanged,isEmbeddedInWebview:t.isEmbeddedInWebview})}})}})),_.H("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.H(_.sY,{data:function(){return t.data().muteButton}},{toggleButtonViewModel:function(A){var m=A.data;
return _.H(_.m3,{data:function(){var b,f;return Object.assign({},m(),{isToggled:(f=(b=t.isAudioEnabled)==null?void 0:b.call(t))!=null?f:!0})},
onToggle:t.onAudioToggled,useOutlinedIcon:!0})}}),_.H(_.sY,{data:function(){return t.data().theatreModeButton}},{toggleButtonViewModel:function(A){var m=A.data;
return _.H("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.H(_.m3,{data:function(){return Object.assign({},m(),{isToggled:p})},
useOutlinedIcon:!0}))}}),_.H(Htg,{fullscreenButton:function(){return t.data().fullscreenButton}}),_.H(_.w,{cond:function(){return _.Hv(x)&&t.data().viewAllButton&&!1},
then:function(){return _.H(_.sY,{data:function(){return t.data().viewAllButton}},{buttonViewModel:_.D5})}}),_.H(_.w,{cond:function(){var A;
return!((A=t.isDesktopPlayPage)==null?0:A.call(t))},
then:function(){return _.H(_.Oj,null,_.H(it8,{enableSaveButton:function(){return _.Hv(U)},
saveButton:function(){return t.data().saveButton},
isSaved:t.isSaved,onSaveToggled:function(){return t.onSaveToggled}}),_.H(qSC,{menuButton:function(){return t.data().menuButton}}))}}))))},"Zf");
fkC.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var qSC=_.l(function(t){return _.H(_.sY,{data:t.menuButton},{buttonViewModel:_.D5})},"$f"),it8=_.l(function(t){var E=t.enableSaveButton;
var p=t.saveButton;var U=t.isSaved;var x=t.onSaveToggled;return _.H(_.w,{cond:function(){return E()&&!(p==null||!p())},
then:function(){return _.H(_.sY,{data:function(){var A=_.k(p==null?void 0:p(),_.rc),m;return{toggleButtonViewModel:Object.assign({},A,{isToggled:(m=U==null?void 0:U())!=null?m:!(A==null||!A.isToggled)})}}},{toggleButtonViewModel:function(A){return _.H(_.m3,{data:A.data,
onToggle:x})}})}})},"ag"),bto=_.l(function(t){var E=t.highScoreButton;
var p=t.score;var U=t.formattedScore;var x=t.onScoreChanged;var A=t.isEmbeddedInWebview;return _.H(_.sY,{data:E},{miniAppScoreButtonViewModel:function(m){return _.H(m2L,{data:m.data,score:p,formattedScore:U,onScoreChanged:x,isEmbeddedInWebview:A})}})},"bg"),Htg=_.l(function(t){t=t.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.H(_.Oj,null):_.H(_.sY,{data:t},{buttonViewModel:_.D5})},"cg");_.B67=_.l(function(t){var E=t.data;var p=t.extractOverlay;t={};return _.H("player-disclosure-view-model",{class:_.X5("ytwPlayerDisclosureViewModelHost",(t.ytwPlayerDisclosureViewModelExtractOverlay=function(){return p==null?void 0:p()},t))},_.H(_.zn,{command:function(){return E().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.H(_.w,{cond:function(){return E().iconName},
then:function(U){return _.H(_.lz,{icon:U})}}),_.H(_.w,{cond:function(){return E().iconName?void 0:E().image},
then:function(U){return _.H(_.Q9,{data:U,alt:function(){return E().title||""},
className:"ytwPlayerDisclosureViewModelImage"})}}),_.H(_.w,{cond:function(){return E().title||E().secondaryText},
then:function(){return _.H("div",null,_.H("div",{class:"ytwPlayerDisclosureViewModelTitle"},function(){return E().title}),_.H("div",{class:"ytwPlayerDisclosureViewModelText"},function(){return E().text}),_.H(_.w,{cond:function(){return E().secondaryText},
then:function(U){return _.H(_.Oj,null,_.H("div",{class:"ytwPlayerDisclosureViewModelDivider"}),_.H("div",{class:"ytwPlayerDisclosureViewModelText"},U))}}))},
else:function(){return _.H("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return E().text})}}),_.H(_.w,{cond:function(){return E().showEndChevron},
then:function(){return _.H(_.lz,{icon:"CHEVRON_RIGHT"})}})))},"dg");_.wwo=new _.gM("DESKTOP_CURRENT_PAGE");var rGe=_.l(function(t){var E=t.data;var p=_.r("force_active_time_logging_webview"),U=!1,x=new P8C,A=void 0,m=void 0,b=_.X3().resolve(Loo),f=new zbt,B=void 0,R=void 0,V=[],Q=void 0,C=void 0,d=!1,I=!1,O=!1,a=!1,F=new _.hf,L=_.X3().resolve(YS5),D=_.X3().resolve(_.O1),W=_.X3().resolve(_.OB(ts)),K,v=(K=_.X3().resolve(_.OB(_.wwo)))==null?void 0:K.getCurrentPage(),YL=!1,bY=0,kL=function(Er){Er.preventDefault();return Er.returnValue=""},R0,j$=_.M(_.Py(!((R0=_.WL("yt-mini-app-is-audio-enabled"))!=null&&!R0),
void 0,"WNrYAe")),lY=j$.next().value,Tt=j$.next().value,si,Q0=_.M(_.Py(!((si=_.WL("exit-mini-app-seen-state"))==null||!si),void 0,"Ofm4dd")),ps=Q0.next().value,$L=Q0.next().value,Cs=_.M(_.Py(!1,void 0,"xMsPk")),km=Cs.next().value,ZT=Cs.next().value,l8=_.M(_.Py(void 0,void 0,"V675h")),Rt=l8.next().value,wE=l8.next().value,Gt=_.M(_.Py(void 0,void 0,"x9B2v")),V0=Gt.next().value,SW=Gt.next().value,h3=_.M(_.Py(!0,void 0,"eAgABf")),zX=h3.next().value,zc=h3.next().value,EC=_.M(_.Py(!1,void 0,"ek28lf")),
VJ=EC.next().value,$m=EC.next().value,Kl=_.M(_.Py(!1,void 0,"Q6LlPd")),iG=Kl.next().value,QJ=Kl.next().value,Rs=_.M(_.Py(void 0,void 0,"V5Rl1c")),vp=Rs.next().value,DT=Rs.next().value,qL=_.M(_.Py(0,void 0,"kN1acc")),TC=qL.next().value,Wp=qL.next().value,jg=_.EB("mini-app-container-view-model"),ES=_.M(_.Py(!1,void 0,"HzkXed")),m6=ES.next().value,Ia=ES.next().value,mi=function(){return E().isEmbeddedInWebview},t6=function(){return E().hasPlayNextShelf};
_.xa(function(){var Er,i8=(Er=_.k(E().contentDisclosure,LIs))==null?void 0:Er.animationParams;if((i8==null?0:i8.shouldHide)&&(i8==null?0:i8.hideDelaySecs)){var OC=setTimeout(function(){Ia(!0)},i8.hideDelaySecs*1E3);
_.iK(function(){clearTimeout(OC)})}});
_.Xv("yt-page-type-changed",function(Er){if(_.r("enable_is_mini_app_page_active_bugfix"))Er.detail.newPageSubtype==="mini_app"&&Er.detail.newPageType==="ytd-browse"||!zX()||Xa();else if(Er=_.Vj()==="mini_app",Er!==zX())if(zc(Er),Er){var i8;Er=(i8=E().playableId)==null?void 0:i8.toString();Er!==void 0&&window.location.href.includes(Er)&&!I&&(a=!0,EJ(),J9.value&&Td(J9.value))}else Er||Xa()});
_.Xv("yt-action",function(Er){Er.detail.actionName==="yt-engagement-panel-visible-changed"&&Er.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Er.detail.args[2]==="PAmini_app_panel"&&Xa();_.r("enable_is_mini_app_page_active_bugfix")?Er.detail.actionName==="yt-history-load"&&!zX()&&(v==null?0:v.active)?(zc(!0),EJ(),J9.value&&Td(J9.value)):Er.detail.actionName==="yt-history-load"&&zX()&&!E().isEmbeddedInWebview&&dZ():zX()&&Er.detail.actionName==="yt-history-load"&&(a?a=!1:E().isEmbeddedInWebview||
dZ())});
_.iK(function(){h9()});
_.M$(function(){EJ()},"gT8qHf");
var EJ=function(){var Er=E().playableId,i8=E().localReleaseId,OC=E().derivedDeviceInterface;if(I)_.qW(new _.cC("[MiniAppContainerViewModel] onEnter was called more than once"));else{I=!0;A=new dLd(Er,i8,OC,document.visibilityState==="visible");ge7(A);m=new Kog(Er);Rcd(b,Er);l9L(f,{showMiniAppAdCommand:E().showMiniAppAdCommand,isEmbeddedInWebview:E().isEmbeddedInWebview,playLogger:A});cjY()&&(C=document.body.style.backgroundColor,_.Bf(document.body,"background-color","black"));$M();k8();F=new _.hf;
if(E().isEmbeddedInWebview){if(Er=(new URLSearchParams(window.location.search)).get("postPlayNonce"))Jd5(A,Er),YL=!0;x.initialize({onAudioStateLoaded:function(M2){KO(M2)},
onMuteMiniApp:function(){KO(!1)},
onUnmuteMiniApp:function(){KO(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(M2){YL||(Jd5(A,M2),YL=!0)},
confirmExitMiniApp:function(){var M2,XW,pg;return _.q(function(UJ){if(UJ.nextAddress==1)return E().confirmExitMiniAppCommand?UJ.yield(Promise.race([F.promise,Promise.resolve(!1)]),2):UJ.return();(M2=UJ.yieldResult)?!E().confirmExitMiniAppCommandEdu||(pg=(XW=ps)==null?void 0:XW())!=null&&pg?cX(E().confirmExitMiniAppCommand):(cX(E().confirmExitMiniAppCommandEdu),_.o4("exit-mini-app-seen-state","true",2592E6)):cX(E().closeMiniAppCommand);_.Do(UJ)})},
onNativeBenchmarkingMessageReceived:function(M2){M2=Cd0(_.LJj(M2));if(_.Tm(M2,_.UQ,3,Rm0)){var XW=_.xC(M2,_.UQ,3,Rm0),pg=CEj();var UJ=m7(pg.getSeconds())-m7(XW.getSeconds());XW=_.kW(pg,2)-_.kW(XW,2);UJ<0&&XW>0?(UJ+=1,XW-=1E9):UJ>0&&XW<0&&(--UJ,XW+=1E9);UJ=(new uk).setSeconds(UJ);UJ=_.AG(UJ,2,_.fl(XW),0);_.FU(M2,1,UJ)}var DB;(DB=R)==null||DB.returnNativeBenchmarkingMessage(M2)},
multiplayer3pAckStateLoaded:function(M2){dZ(M2)},
exitMiniAppSeenStateLoaded:function(M2){E().confirmExitMiniAppCommandEdu&&$L(M2)},
onNavigateToNewMiniApp:function(){cX(E().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(M2){M2=new URLSearchParams(M2);var XW=void 0;M2.has("invite_code")&&(XW=new Iv4,M2=M2.get("invite_code"),XW=_.Lq(XW,1,M2));if(M2=XW){var pg;(pg=R)==null||pg.sendGameData(M2)}},
onPauseMiniApp:function(){U=!0;gE()},
onResumeMiniApp:function(){U=!0;nO()},
onPausePlayableDialog:function(){O=!0;gE()},
onResumePlayableDialog:function(){O=!1;nO()},
onAdFinished:function(M2){f.onAdFinished(M2)}});
E().showMultiplayer3pConsentDialogCommand||F.resolve(!0);cX(E().onContainerReadyCommand)}else Jd5(A),F.resolve(!0);veL(m,u7l(A));u7l(A).then(function(M2){M2={miniAppPlayData:{postPlayNonce:M2}};var XW,pg=(XW=E().loggingDirectives)==null?void 0:XW.trackingParams;pg&&_.Pu().stateChanged(pg,M2)});
Er=E().showSignInDialogCommand;!uXt()&&Er&&(_.o4("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),cX(Er));E().confirmExitMiniAppCommand&&W&&(Er=RKi(E().confirmExitMiniAppCommand))&&(W.customConfirmationCommand=Er)}},h9=function(){C&&_.Bf(document.body,"background-color",C);
d=!1;Q&&Q.release();m.flush().catch(function(Er){_.qW(Er)});
b.flush().catch(function(Er){_.qW(Er)});
Olb(A);Ku();R=void 0;V8o(L)},Xa=function(){zc(!1);
h9();ZT(!1);DT(void 0);wE(void 0);SW(void 0);bY=0;Wp(0);I=!1},gE=function(){var Er;
(Er=R)==null||Er.onPause();Q&&Q.release();m.flush().catch(function(i8){_.qW(i8)});
b.flush().catch(function(i8){_.qW(i8)});
Zld(A);$m(!0)},nO=function(){var Er;
(Er=R)==null||Er.onResume();k8();Er=A;Er.isForeground=!0;hQ(Er,"PLAY_EVENT_TYPE_PLAY_RESUME");$m(!1)},KO=function(Er){var i8;
(i8=R)==null||i8.onAudioToggled(Er);Tt(Er)},dZ=function(Er){E().showMultiplayer3pConsentDialogCommand&&(E().isEmbeddedInWebview&&Er!==void 0&&F.resolve(Er),!Er&&_.Vj()==="mini_app"&&cX(E().showMultiplayer3pConsentDialogCommand))},Jd=function(){var Er,i8,OC,M2;
return _.q(function(XW){if(XW.nextAddress==1){!E().isLivestream||E().disableVideoCapture||(Er=R)!=null&&Er.sendStartGameFrameCapture();i8=(new URL(window.location.href)).searchParams;if(i8.has("invite_code")){var pg=new Iv4,UJ=i8.get("invite_code");OC=_.Lq(pg,1,UJ);(M2=R)==null||M2.sendGameData(OC)}km()||(ZT(!0),pg=A,pg.state!==1?_.qW(new _.cC("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+rdt[pg.state])):(_.G3("mini_app_ids_without_game_ready").includes(pg.JSC$17358_miniAppId)&&(pg.gameReady=
!0),pg.state=2,pg.beforeReady=!1,XP(pg,"ma_ffr"),hQ(pg,"PLAY_EVENT_TYPE_PLAY_READY")));return XW.yield(F.promise,2)}cX(E().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();E().isEmbeddedInWebview||dZ();_.Do(XW)})},XU=function(){var Er=A;
Er.gameReady=!0;XP(Er,"ma_gr")},X7=function(Er){var i8;
return _.q(function(OC){if(OC.nextAddress==1)return _.aR(OC,2),OC.yield(SCg(m,Er),4);if(OC.nextAddress!=2)return _.r7(OC,0);i8=_.nB(OC);cX(E().showSavingErrorPopupCommand);throw i8;})},gZ=function(){var Er,i8;
return _.q(function(OC){if(OC.nextAddress==1)return _.aR(OC,2),OC.yield(yd5(m),4);if(OC.nextAddress!=2)return Er=OC.yieldResult,OC.return(Er);i8=_.nB(OC);cX(E().showLoadingErrorDialogCommand);throw i8;})},J3=function(Er){A.logError(Er)},T5=function(Er,i8,OC){hbJ(A,Er,i8,OC)},iF=function(Er,i8){ebt(A,Er,i8)},jW=function(){!p&&E().isEmbeddedInWebview||_.hw();
XKe(A,!0);d||(window.addEventListener("beforeunload",kL,{capture:!0}),d=!0)},zJ=function(Er){var i8,OC,M2,XW,pg,UJ,DB;
return _.q(function(i3){if(i3.nextAddress==1)return b&&(!B||B<Er)&&Er>0?i3.yield(Q$e(b,Er),3):i3.jumpTo(0);i8=i3.yieldResult;OC=_.M(i8);M2=OC.next().value;XW=OC.next().value;pg=M2;UJ=XW;((DB=pg)==null?0:DB.displayString)&&UJ&&(wE(UJ),SW(pg.displayString));_.Do(i3)})},Rv=function(Er){var i8=E().onBenchmarkingMessageReceivedCommand;
if(i8){var OC=CEj();_.zC(Er,3,Rm0,OC);AN(i8,jQX(Er))}},o$=function(){var Er=E().iapPurchaseCommand;
Er&&AN(Er)},Vy=function(Er){var i8=E().onGameFrameReceivedCommand;
if(i8){var OC=new x3;var M2=new jL0;var XW=Sh(Er,1);M2=_.cE(M2,1,XW);Er=_.th(Er,2);Er=_.Lq(M2,2,Er);OC=_.FU(OC,2,Er);AN(i8,uqs(OC))}},pM=function(Er){var i8=E().onGameAudioDataReceivedCommand;
if(i8){var OC=new x3;var M2=new kN0;Er=_.th(Er,1);M2=_.Lq(M2,1,Er);OC=_.FU(OC,4,M2);AN(i8,uqs(OC))}},w1=function(){var Er=new URLSearchParams(window.location.search);
if(E().isEmbeddedInWebview&&Er&&Er.get("override_hl")==="true"&&Er.get("hl"))return Er.get("hl");Er=document.documentElement.lang;return Er!==""?Er:mD},ZP=function(Er){var i8=E().onShareInviteCodeCommand;
if(i8)if(E().isEmbeddedInWebview){var OC=new vts;Er=_.Lq(OC,1,Er);AN(i8,S70(Er))}else OC=E().inviteCodeShareClientParamIdentifier,L.clientParams.set(OC,{miniAppClientParams:{inviteCode:Er}}),cX(i8)},rn=function(Er){var i8,OC,M2;
return _.q(function(XW){if(XW.nextAddress==1)return i8=E().onMiniAppOpenYtContentRequested,b&&_.r("enable_open_yt_content")&&i8?XW.yield(CFK(b,Er),3):XW.jumpTo(0);OC=XW.yieldResult;if(OC==="OK")if(E().isEmbeddedInWebview){var pg=new Rzr;M2=Ta(pg,2,Uu,Z9(Er));AN(i8,CZ4(M2))}else D.clientData.set("video_id",Er),cX(i8);_.Do(XW)})},$A=function(Er){bY+=_.kW(Er,3);
Er=Math.min(Math.log(1+bY/15E6*9)/Math.log(10),.99);Wp(Er);ck(Er)},ck=_.tI(function(Er){var i8=E().updateLoadingProgressCommand;
if(i8){var OC=new Rzr;Er=Ta(OC,3,Uu,_.xe(Er));AN(i8,CZ4(Er))}},100),Wf=function(Er,i8){switch(Er){case 1:return neo(f);
case 2:return Ntb(f);case 3:return st8(f,i8);default:return Promise.reject(Error("ei"))}},k8=function(){var Er,i8;
((Er=_.tGO())==null?void 0:(i8=Er.wakeLock)==null?void 0:i8.request)!=null&&_.tGO().wakeLock.request("screen").then(function(OC){Q=OC}).catch(function(){})},J9=_.pR("iframe");
_.M$(function(){E().isSupportedCountry&&(uXt()||_.r("enable_sign_in_promo")||!E().showSignInDialogCommand?J9.value&&Td(J9.value):cX(E().onMiniAppReadyCommand))},"EQIAIf");
var dn=function(){return _.H("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return km()?0:-1},
title:function(){return E().title},
el:J9})},Td=function(Er,i8){i8=i8===void 0?!1:i8;
var OC=oF();if(OC&&(i8||OC.toString()!==Er.getAttribute("src"))){R=hKE(E().source,{isAudioEnabled:lY,onFirstFrameReady:Jd,onGameReady:XU,onSave:X7,onLoad:gZ,onError:J3,onSdkCalled:T5,onSdkPerformanceUpdate:iF,onClick:jW,onSendHighScore:zJ,onBenchmarkingMessageReceived:Rv,getLanguage:w1,onShareInviteCode:ZP,onResourceLoaded:$A,onOpenYTContent:rn,onShowMiniAppAd:Wf,onGameFrameReceived:Vy,onGameAudioReceived:pM,onMakeIapPurchase:o$},Er,OC);pN(Er,"load",function(){XP(A,"ma_il");pN(Er,"load",function(){Td(Er,
!0)})});
var M2=_.z3("mini_app_container_iframe_src_update_delay_ms");E().isEmbeddedInWebview&&!i8&&M2>0?kBO(Er,OC,M2):_.Yk(Er,OC)}},oF=function(){var Er=E().url;
if(Er&&(Er=_.q0(Er),Er!==null)){if(E().source&&E().source==="MINI_APP_SOURCE_GAMESNACKS")Er=_.Ih(Er,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.r("enable_origin_query_parameter_bugfix")){var i8=_.cS(_.W1D(Er.toString()));i8=new URLSearchParams(i8||"");i8.set("origin",window.location.origin);i8=i8.toString();Er=_.Dk(Er).toString();Er=_.N2(Xxs.exec(Er)[0]+(i8.trim()?"#"+i8:""))}return Er}},Ki=function(){var Er={};
Er=_.X5("yt-mini-app-container-view-model__loading-screen",(Er["yt-mini-app-container-view-model__loading-screen--fade-out"]=km,Er));var i8=function(){return km()?1:TC()};
return _.H("div",{class:Er},_.H(_.sY,{data:function(){return E().splashScreen}},{miniAppSplashScreenViewModel:function(OC){return _.H(AG7,{data:OC.data,
loadingProgress:i8})}}))},LG=function(){var Er={};
return _.H("div",{class:_.X5("yt-mini-app-container-view-model__pause-interstitial",(Er["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!VJ()},Er["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=VJ,Er))},_.H(_.sY,{data:function(){return E().splashScreen}},{miniAppSplashScreenViewModel:function(i8){return _.H(AG7,{data:i8.data,
forPaused:!0})}}))},$M=function(){V=[];
V.push(_.vu(window,"visibilitychange",function(){O||U&&mi()||(document.visibilityState==="visible"?nO():gE())}));
V.push(_.vu(window,"pagehide",function(){h9()}));
V.push(_.vu(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&jg.value.dispatchEvent(new Event("tap"))},0)}));
V.push(_.vu(jg.value,"pointerdown",function(){XKe(A,!1)},!0));
V.push(_.vu(jg.value,"pause",function(){O=!0;gE()}));
V.push(_.vu(jg.value,"play",function(){O=!1;nO()}));
V.push(_.vu(jg.value,"exit",function(){h9()}));
var Er=navigator.keyboard,i8=Er&&Er.lock;V.push(_.vu(window,rJX,function(){QJ(wfL());wfL()?(E().hasPlayNextShelf&&vg("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),vf("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),i8&&Er.lock(["Escape"])):(E().hasPlayNextShelf&&vf("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),vg("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),i8&&Er.unlock())}));
E().showMultiplayer3pConsentDialogCommand&&V.push(_.vu(window,"yt-playables-ack-3p-data-usage",function(){j$8(b)}));
E().confirmExitMiniAppCommandEdu&&V.push(_.vu(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.o4("exit-mini-app-seen-state","true",2592E6)}));
E().onGameAudioDataReceivedCommand&&V.push(_.vu(window,"message",function(OC){OC=OC.event_;var M2,XW=(M2=J9.value)==null?void 0:M2.src;if(XW&&OC.origin===(new URL(XW)).origin&&OC.data&&OC.data.type==="GAME_AUDIO"&&OC.data.audio&&OC.data.audio.length>0)if(_.r("enable_sending_unwrapped_game_audio_as_serialized_metadata"))rit(E().onGameAudioDataReceivedCommand,OC.data.audio);else{var pg=new FileReader;pg.onload=function(){var UJ=new x3;var DB=new kN0;DB=_.Lq(DB,1,pg.result);UJ=_.FU(UJ,4,DB);AN(E().onGameAudioDataReceivedCommand,
uqs(UJ))};
pg.readAsDataURL(new Blob([OC.data.audio]))}}))},Ku=function(){V.forEach(function(Er){Wu(Er)});
window.removeEventListener("beforeunload",kL,{capture:!0})},cX=function(Er){Er&&QPJ(Er,E().isEmbeddedInWebview||!1)},vf=function(Er,i8){Er=_.M(jg.value.getElementsByClassName(Er));
for(var OC=Er.next();!OC.done;OC=Er.next())OC.value.classList.add(i8)},vg=function(Er,i8){Er=_.M(jg.value.getElementsByClassName(Er));
for(var OC=Er.next();!OC.done;OC=Er.next())OC.value.classList.remove(i8)};
return function(){var Er={};Er=_.X5("yt-mini-app-container-view-model",(Er["yt-mini-app-container-view-model--desktop"]=!0,Er["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return E().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Er["yt-mini-app-container-view-model--ios-web-view"]=cjY(),Er["yt-mini-app-container-view-model--no-top-bar"]=function(){return!E().topBar},Er["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return E().hasPlayNextShelf},Er["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return E().hasPlayNextShelf},Er["yt-mini-app-container-view-model--show-peek-below"]=function(){return!iG()&&E().hasPlayNextShelf},Er));
var i8={};i8=_.X5("yt-mini-app-container-view-model__content",(i8["yt-mini-app-container-view-model__content--desktop-content"]=!0,i8["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return E().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},i8["yt-mini-app-container-view-model--desktop-play-page"]=function(){return E().hasPlayNextShelf},i8));
return _.H("mini-app-container-view-model",{el:jg},_.H("div",{class:Er},_.H(_.w,{cond:function(){return E().topBar&&!iG()},
then:function(){return _.H(_.sY,{data:function(){return E().topBar}},{miniAppTopBarViewModel:function(OC){return _.H(fkC,{data:OC.data,
isAudioEnabled:lY,onAudioToggled:function(M2){KO(M2)},
score:Rt,formattedScore:V0,onScoreChanged:function(M2){B=M2},
isEmbeddedInWebview:mi,isSaved:vp,onSaveToggled:function(M2){DT(M2)},
isExitMiniAppSeen:ps,isDesktopPlayPage:t6})}})}}),_.H("div",{class:i8},_.H(_.w,{cond:zX,
then:function(){return dn()}}),_.H(_.w,{cond:function(){return E().isLivestream},
then:function(){return LG()}}),_.H(_.w,{cond:function(){return!E().isEmbeddedInWebview},
then:function(){return Ki()}}),_.H(_.sY,{data:function(){return E().contentDisclosure}},{playerDisclosureViewModel:function(OC){OC=OC.data;
var M2={};return _.H("div",{class:_.X5("yt-mini-app-container-view-model__content-disclosure-overlay",(M2["yt-mini-app-container-view-model__content-disclosure-overlay--hidden"]=m6,M2))},_.H(_.B67,{data:OC}))}}))))}()},"hg");
rGe.idomCompat=!0;_.k2(rGe,"mini-app-container-view-model",{props:{data:_.uu}});var kC8=_.l(function(t){var E=t.data;return _.H("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.H("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.aC(function(){var p=E().onTap;p&&_.bz(p)})},_.H(_.w,{cond:function(){return E().icon},
then:function(p){return _.H(_.lz,{icon:function(){return p().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.H("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return E().title})))},"ig");
kC8.idomCompat=!0;var d27=_.l(function(t){var E=_.EB("div"),p=_.M(_.Py(void 0,void 0,"dg3xff")),U=p.next().value,x=p.next().value;p=_.M(_.Py(void 0,void 0,"AgHNfc"));var A=p.next().value,m=p.next().value;p=_.M(_.Py(void 0,void 0,"fuTKCc"));var b=p.next().value,f=p.next().value,B=function(){var a=U();return a!==void 0?Math.abs(a):void 0},R=function(){var a=B();
return a===void 0||a<=3},V=function(){var a=B();
var F=A(),L=b();a=a!==void 0&&F!==void 0&&L!==void 0?F-L-a:void 0;return a===void 0||a<=3},Q=function(a){E.value&&E.value.scrollBy({top:0,
left:(_.qO("HTML_DIR")==="rtl"?-1:1)*a*E.value.clientWidth,behavior:"smooth"})},C=function(){var a;
x((a=E.value)==null?void 0:a.scrollLeft);var F;m((F=E.value)==null?void 0:F.scrollWidth);var L;f((L=E.value)==null?void 0:L.clientWidth)},d=function(){Q(-.5)},I=function(){Q(.5)};
p=_.aC(function(){C()});
_.xa(function(){C();if(E.value&&window.ResizeObserver){var a=new ResizeObserver(C);a.observe(E.value);_.iK(function(){a.disconnect()})}});
var O={};return _.H("yt-sponsorships-scrollable-shelf",{class:_.X5("ytdSponsorshipsScrollableShelfHost",t.className)},_.H("div",{class:_.X5("ytdSponsorshipsScrollableShelfContent",(O.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return t.data().previousButton&&t.data().nextButton&&!R()&&!V()},O.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return t.data().previousButton&&!R()&&V()},O.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return t.data().nextButton&&
R()&&!V()},O)),
el:E,"on:scroll":p},t.children),_.H(_.w,{cond:function(){return!R()},
then:function(){return _.H(_.sY,{data:function(){return t.data().previousButton}},{buttonViewModel:function(a){return _.H(_.D5,{data:a.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:d})}})}}),_.H(_.w,{cond:function(){return!V()},
then:function(){return _.H(_.sY,{data:function(){return t.data().nextButton}},{buttonViewModel:function(a){return _.H(_.D5,{data:a.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:I})}})}}))},"kg");
d27.idomCompat=!0;var JG8=_.l(function(t){var E=t.data;t={};return _.H("yt-sponsorships-hub",{class:_.X5("ytdSponsorshipsHubHost",(t.ytdSponsorshipsHubHostIndented=function(){return E().indented},t))},_.H("div",{class:"ytdSponsorshipsHubHeader"},_.H("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.H("div",{class:"ytdSponsorshipsHubAvatar"},_.H(_.sY,{data:function(){return E().avatar}},{avatarViewModel:_.fk})),_.H(_.w,{cond:function(){return E().badgeImage},
then:function(p){return _.H("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.H("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.H("div",{class:"ytdSponsorshipsHubBadge"},_.H(_.Q9,{data:p,targetWidth:24,targetHeight:24,alt:""}))))}})),_.H("div",{class:"ytdSponsorshipsHubDetails"},_.H("div",{class:"ytdSponsorshipsHubTierName"},function(){return E().tierName}),_.H("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return E().membershipType}),_.H("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return E().membershipDurationOrExpiry})),_.H("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.H(_.sY,{data:function(){return E().manageButton}},{buttonViewModel:function(p){return _.H(_.D5,{data:p.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.H(_.sY,{data:function(){return E().actionMenuButton}},{buttonViewModel:function(p){return _.H(_.D5,{data:p.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.H("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return E().perksTitle}),_.H(d27,{data:function(){return{previousButton:E().previousPerkButton,
nextButton:E().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.H("div",{class:"ytdSponsorshipsHubPerkCards"},_.H(_.sY,{data:function(){return E().perkCards}},{sponsorshipsHubPerkCardViewModel:kC8}),_.H(_.w,{cond:function(){return E().viewAllPerksButton},
then:function(p){return _.H(uUL,{data:p})}}))))},"lg");
JG8.idomCompat=!0;var uUL=_.l(function(t){var E=t.data;return _.H("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.H(_.sY,{data:function(){return E().button}},{buttonViewModel:_.D5}),_.H("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.H("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return E().title}),_.H("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return E().subtitle})))},"mg");
uUL.idomCompat=!0;_.k2(JG8,"yt-sponsorships-hub",{props:{data:_.uu}});_.Ike=_.l(function(t){var E=t.data;return _.H("yt-dual-avatar-view-model",{class:_.X5("ytDualAvatarViewModelHost",t.className),style:_.zO({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var p;return((p=E().badgeCutoutRadius)!=null?p:14)+"px"}})},_.H("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.H(_.sY,{data:function(){return E().startAvatar}},{avatarViewModel:_.fk}),_.H(_.sY,{data:function(){return E().endAvatar}},{avatarViewModel:_.fk})),_.H(_.sY,{data:function(){return E().badge}},
{contentPreviewImageViewModel:function(p){return _.H("div",{class:"ytDualAvatarViewModelBadge"},_.H(_.Nk,{data:p.data}))}}))},"ng");
_.Ike.idomCompat=!0;var ZtK=_.l(function(t){var E=t.data;var p,U=!((p=_.X3().resolve(_.OB(_.Ld)))==null||!p());t=_.KN(function(){var R,V,Q=U?(R=E().header)==null?void 0:R.backgroundColorDarkMode:(V=E().header)==null?void 0:V.backgroundColorLightMode;if(Q!==void 0)return _.cL(Q)},void 0,"TDdh7d");
p=_.KN(function(){var R,V;return U?(R=E().header)==null?void 0:R.backgroundImagePart1Dark:(V=E().header)==null?void 0:V.backgroundImagePart1Light},void 0,"X0peMe");
var x=_.KN(function(){var R,V;return U?(R=E().header)==null?void 0:R.backgroundImagePart2Dark:(V=E().header)==null?void 0:V.backgroundImagePart2Light},void 0,"an0Hzd"),A=_.KN(function(){return _.qO("HTML_DIR")==="rtl"},void 0,"BltEgb"),m=_.EB("yt-sponsorships-perks-list"),b=!1,f=function(){var R=m.value;
if(R&&!b){var V,Q=(V=R.parentElement)==null?void 0:V.parentElement;if(Q)for(R=R.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),V=0;V<R.length;++V){var C=R[V];if(C instanceof HTMLElement){Q.scrollTo({top:C.offsetTop+C.clientHeight/2-Q.clientHeight/2,behavior:"smooth"});b=!0;break}}}};
_.A6(function(){var R=m.value;if(R&&window.ResizeObserver){var V=new ResizeObserver(f);V.observe(R);_.iK(function(){V.disconnect()})}});
var B={};return _.H("yt-sponsorships-perks-list",{el:m,class:_.X5("ytdSponsorshipsPerksListHost",(B.ytdSponsorshipsPerksListHorizontalPadding=function(){return E().horizontalPaddingEnabled},B))},_.H("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.H("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.zO({"background-color":t})},_.H("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.H(_.w,{cond:p,then:function(R){var V={};return _.H("div",{class:_.X5((V.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=U,V.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!U,V.ytdSponsorshipsPerksListFlipped=A,V))},_.H(_.Q9,{data:R,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.H("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.H(_.w,{cond:x,
then:function(R){var V={};return _.H("div",{class:_.X5((V.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=U,V.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!U,V.ytdSponsorshipsPerksListFlipped=A,V))},_.H(_.Q9,{data:R,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.H("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.H(_.sY,{data:function(){var R;
return(R=E().header)==null?void 0:R.dualAvatar}},{dualAvatarViewModel:_.Ike})))),_.H("div",{class:"ytdSponsorshipsPerksListBody"},_.H("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return E().title}),_.H(_.w,{cond:function(){return E().perks},
then:function(R){return _.H(_.yG,{each:R},function(V,Q){var C={};return _.H("div",{class:_.X5("ytdSponsorshipsPerksListPerkContainer",(C.ytdSponsorshipsPerksListSelectedPerk=function(){var d=Q(),I=E().selectedPerkIndex;return d===I},C))},_.H(_.w,{cond:function(){return Q()>0},
then:function(){return _.H("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.H("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.H(_.w,{cond:function(){return V.icon},
then:function(d){return _.H(_.lz,{icon:function(){return d().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.H("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.H("div",{class:"ytdSponsorshipsPerksListPerkTitle"},V.title),_.H("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.H(_.d8,{text:V.description})),_.H(_.w,{cond:function(){return V.instructions},
then:function(){var d,I;return _.H("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.H("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(d=V.instructions)==null?void 0:d.title),_.H("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.H(_.d8,{text:(I=V.instructions)==null?void 0:I.text})))}}))),_.H(_.w,{cond:function(){return V.emoji},
then:function(d){return _.H("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.H(_.yG,{each:function(){return d()}},function(I){return _.H(_.Q9,{data:I,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.H(gIe,{data:V}))})}})))},"og");
ZtK.idomCompat=!0;var gIe=_.l(function(t){var E=t.data;var p=function(m,b){return m===b},U=function(){var m=E();
m=_.k(m==null?void 0:m.badgesShelf,peW);return m!==void 0&&m!==null?m:{previousButton:{},nextButton:{}}},x=_.pR("div"),A=function(){var m=x.value;
if(m){var b=m.parentElement;if(b){m=m.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var f=0;f<m.length;++f){var B=m[f];if(B instanceof HTMLElement){b.scrollTo({left:B.offsetLeft+B.clientWidth/2-b.clientWidth/2,behavior:"instant"});break}}}}};
_.A6(function(){var m=x.value;if(m){var b=new ResizeObserver(A);b.observe(m);_.iK(function(){b.disconnect()})}});
return _.H("div",null,_.H(_.w,{cond:function(){return E().badges},
then:function(m){return _.H(d27,{data:U},_.H("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:x},_.H(_.yG,{each:function(){return m()}},function(b,f){var B={},R={},V={};
return _.H("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.H(_.w,{cond:function(){return f()>0},
then:function(){return _.H("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.H("div",{class:_.X5("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(B.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return p(f(),E().currentBadgeIndex)},B.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!p(f(),E().currentBadgeIndex)},B))},_.H("div",{class:_.X5("ytdSponsorshipsPerksListLoyaltyBadge",(R.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return p(f(),
E().currentBadgeIndex)},R.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!p(f(),E().currentBadgeIndex)},R))},_.H(_.w,{cond:function(){return b.image},
then:function(Q){var C={};return _.H("div",{class:_.X5((C.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return p(f(),E().currentBadgeIndex)},C.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!p(f(),E().currentBadgeIndex)},C))},_.H(_.Q9,{data:Q,
alt:""}))}})),_.H("div",{class:_.X5("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(V.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return p(f(),E().currentBadgeIndex)},V))},b.title)))})))}}))},"pg");
gIe.idomCompat=!0;_.k2(ZtK,"yt-sponsorships-perks-list",{props:{data:_.uu}});_.k2(_.l(function(t){return _.H("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.H(_.w,{cond:function(){return t.data().image},
then:function(E){return _.H(_.Q9,{className:"ytwFantasyEmptyStateViewModelImage",data:E,ariaHidden:!0,alt:""})}}),_.H(_.d8,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return t.data().title}}),_.H(_.d8,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return t.data().subtitle}}),_.H(_.sY,{data:function(){return t.data().primaryButton}},{buttonViewModel:function(E){return _.H(_.D5,{data:E.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"qg"),"ytw-fantasy-empty-state-view-model",{props:{data:_.uu}});var OtL;var Xwg=_.l(function(t){var E=t.data;var p=t.uniqueId;var U=t.overrides;t=_.KN(function(){var x,A=((x=E().timedAnimationData)==null?void 0:x.animationTiming)||[];return{uniqueId:p(),timings:A,experimentEnabled:A.length>0,enabled:A.length>0}},void 0,"hiuXI");
return _.H("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.H(UN4,{settings:t},_.H(_.sY,{data:function(){return E().buttonRenderer}},{buttonRenderer:function(x){return _.H(_.OM,{data:x.data,
buttonOverrides:U})}})))},"rg");
Xwg.idomCompat=!0;_.k2(Xwg,"timed-animation-button-renderer",{props:{data:_.uu,uniqueId:_.uu,overrides:_.uu}});var nV=function(){var t=_.z.apply(this,arguments)||this;t.hideJoinButtonBeforeSubscribed=_.r("hide_join_button_before_subscribed");t.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return t};
_.u(nV,_.z);_.Y=nV.prototype;_.Y.hasShowDialogCommand=function(t){return!!_.k(t,bET)};
_.Y.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"}}}};
_.Y.updateJoinButtonOverrides=function(){var t,E;(t=_.ZN(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(E=t.polymerController)==null||E.set("overrides",this.joinButtonOverrides);if(t=_.ZN(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))t.overrides=this.joinButtonOverrides};
_.Y.handleButtonRefreshAction=function(t){if(t=_.k(t,Z33))this.set("data.membershipButton",t.membershipButton),this.notifyPath("data.membershipButton")};
_.Y.onYtServiceRequestError=function(t){_.f$(this.hostElement,t.detail.error.message)};
_.Y.onKeydown=function(t){if(t.key==="Enter"){var E;(E=this.data)!=null&&E.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.Y.handleUnsubscribeAction=function(){var t,E,p;((t=this.data)==null?void 0:(E=t.membershipButton)==null?void 0:(p=E.buttonRenderer)==null?void 0:p.style)==="STYLE_PRIMARY"&&_.ZN(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.aE.Object.defineProperties(nV.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.subscriptionStateEntity)==null||!t.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var t,E=(t=this.data)==null?void 0:t.membershipButton,p;t=(E==null?void 0:E.buttonRenderer)||_.k(E==null?void 0:(p=E.timedAnimationButtonRenderer)==null?void 0:p.buttonRenderer,_.Ry);return(t==null?void 0:t.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(t==null?void 0:t.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(t==null?void 0:t.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var t;if(this.hasShowDialogCommand((t=this.data)==null?void 0:t.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var t;if(this.hasShowDialogCommand((t=this.data)==null?void 0:t.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.attributedTitle)}}});
nV.prototype.onYtServiceRequestError=nV.prototype.onYtServiceRequestError;nV.prototype.updateJoinButtonOverrides=nV.prototype.updateJoinButtonOverrides;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],nV.prototype,"actionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],nV.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],nV.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(_.Be),_.P("design:type",Object)],nV.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],nV.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.Uv),_.P("design:type",Object)],nV.prototype,"ironButtonState",void 0);_.N([_.e(),_.P("design:type",Object)],nV.prototype,"data",void 0);_.N([_.Z("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.P("design:type",Object),_.P("design:paramtypes",[])],nV.prototype,"hideJoin",null);
_.N([_.e(),_.P("design:type",String)],nV.prototype,"subscribeKey",void 0);_.N([_.e({selectorArgs:["subscribeKey"],selector:FZl}),_.P("design:type",Object)],nV.prototype,"subscriptionStateEntity",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],nV.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.N([_.Z("subscriptionStateEntity"),_.e({reflectToAttribute:!0}),_.P("design:type",Object),_.P("design:paramtypes",[])],nV.prototype,"subscribed",null);
_.N([_.Z("subscribed","data.membershipButton"),_.P("design:type",Object),_.P("design:paramtypes",[])],nV.prototype,"joinButtonOverrides",null);_.N([_.Z("data.navigationEndpoint"),_.P("design:type",Object),_.P("design:paramtypes",[])],nV.prototype,"channelNameTabIndex",null);_.N([_.Z("data.navigationEndpoint"),_.P("design:type",Object),_.P("design:paramtypes",[])],nV.prototype,"channelNameRole",null);
_.N([_.Z("data.attributedTitle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],nV.prototype,"hasAttributedTitle",null);_.N([_.GI("joinButtonOverrides"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nV.prototype,"updateJoinButtonOverrides",null);_.N([_.lc("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],nV.prototype,"onYtServiceRequestError",null);
_.N([_.Ul({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],nV);
var hc5=_.Ol()(nV,"ytd-video-owner-renderer",function(){if(OtL===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);OtL=t}t=OtL;return t},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.k2(_.l(function(t){var E=t.data;var p;t=_.M(_.Py(!((p=_.WL("yt-mini-app-is-theater-mode-enabled"))==null||!p),void 0,"i2pjVd"));var U=t.next().value,x=t.next().value;p=_.M(_.Py(!1,void 0,"ga7V5c"));var A=p.next().value,m=p.next().value;_.A6(function(){var B=_.vu(window,rJX,function(){m(wfL())});
_.iK(function(){Wu(B)})});
var b;p=(b=_.X3().resolve(_.OB(cDC)))!=null?b:function(){return _.H("div",null)};
_.Iz("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){x(!0);_.o4("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.Iz("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){x(!1);_.o4("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
b={};t={};var f={};return _.H("mini-app-play-page-renderer",{class:_.X5("miniAppPlayPageRendererHost",(b.miniAppPlayPageRendererHostDetailsView=function(){return!U()},b))},_.H("div",{class:_.X5("miniAppPlayPageRendererGameContainer",(t.miniAppPlayPageRendererGameContainerDetailsView=function(){return!U()},t))},_.H(_.sY,{data:function(){return E().containerViewModel}},{miniAppContainerViewModel:rGe}),_.H(_.w,{cond:function(){return E().channel&&E().subscribeButton},
then:function(){var B={};return _.H("div",{class:_.X5("miniAppPlayPageRendererChannelContainer",(B.miniAppPlayPageRendererHideVisibility=function(){return A()},B))},_.H(_.sY,{data:function(){return E().channel}},{videoOwnerRenderer:function(R){return _.H(hc5,{data:R.data})}}),_.H(_.sY,{data:function(){return E().subscribeButton}},{subscribeButtonViewModel:function(R){return _.H(_.fZ,{data:R.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.H(_.w,{cond:function(){return!U()&&E().description},
then:function(){var B={};return _.H("div",{class:_.X5("miniAppPlayPageRendererMiniAppDescriptionWrapper",(B.miniAppPlayPageRendererHideVisibility=function(){return A()},B))},_.H("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return E().description}))}})),_.H("div",{class:_.X5("miniAppPlayPageRendererPlayNextContainer",(f.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!U()},f.miniAppPlayPageRendererHideVisibility=function(){return A()},f))},_.H(_.sY,{data:function(){return E().sectionList}},
{sectionListRenderer:p})))},"sg"),"mini-app-play-page-renderer",{props:{data:_.uu}});var Np=function(){var t=_.z.apply(this,arguments)||this;t.isSearch=!1;t.isConstrainedList=!1;t.hasChipsBar=!1;t.inReplyPanel=!1;t.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"}};t.monitorScroll=!0;t.SCROLL_ANIMATION_DURATION_MS=300;t.nextContinuation={continuationType:"sectionListContinuation"};return t};
_.u(Np,_.z);_.Y=Np.prototype;
_.Y.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(t){switch(t.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:_.r("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.r("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.Y.created=function(){var t=this;this.JSC$17500_scrollAnimation=new _.ZY(function(E){t.hostElement.scrollTop=E})};
_.Y.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.Y.getItemsPath=function(){return"data.contents"};
_.Y.replacePrimaryContent=function(t){this.set("data.contents",t)};
_.Y.computeHasSortFilter=function(t){return!!t&&!!t.sortFilterSubMenuRenderer};
_.Y.computeShouldScrollInPanel=function(t){var E;return!!(t==null?0:(E=t.scrollPaneStyle)==null?0:E.scrollable)};
_.Y.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.XM(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.Y.scrollToTop=function(){this.hostElement.scrollTop=0};
_.Y.scrollToItemSection=function(t){if(t=this.getItemByIdentifier(t))t=this.getScrollPositionForItem(t),this.hostElement.scrollTop!==t&&this.JSC$17500_scrollAnimation.start(this.hostElement.scrollTop,t,this.SCROLL_ANIMATION_DURATION_MS)};
_.Y.getItemByIdentifier=function(t){var E=this.contents.querySelectorAll("ytd-item-section-renderer");if(E&&E.length!==0){var p=Array.from(E).findIndex(function(U){return U.sectionIdentifier===t});
return E[p===-1?0:p]}};
_.Y.getScrollPositionForItem=function(t){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===t)return 0;t=_.cx(t).y+this.hostElement.scrollTop-_.cx(this.hostElement).y;return Math.min(t,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.aE.Object.defineProperties(Np.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.targetId)==="browse-feedFEclips"}}});
Np.prototype.onScroll=Np.prototype.onScroll;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Np.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Np.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.F_.YtLazyListBehavior),_.P("design:type",Object)],Np.prototype,"ytLazyListBehavior",void 0);_.N([_.g(_.gj.YtNextContinuationBehavior),_.P("design:type",Object)],Np.prototype,"ytNextContinuationBehavior",void 0);
_.N([_.g(_.Rb8),_.P("design:type",Object)],Np.prototype,"ytBooleanLogicBehavior",void 0);_.N([_.g(_.I6),_.P("design:type",Object)],Np.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Np.prototype,"data",void 0);_.N([_.e({value:2}),_.P("design:type",Number)],Np.prototype,"initialCount",void 0);_.N([_.e({value:!0}),_.P("design:type",Boolean)],Np.prototype,"autoFill",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.P("design:type",Boolean)],Np.prototype,"hasSortFilter",void 0);_.N([_.e({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.P("design:type",Boolean)],Np.prototype,"hideBottomSeparator",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.P("design:type",Boolean)],Np.prototype,"shouldScrollInPanel",void 0);
_.N([_.e(),_.P("design:type",Object)],Np.prototype,"isSearch",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Np.prototype,"isConstrainedList",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],Np.prototype,"responsiveSizing",void 0);_.N([_.e(),_.P("design:type",Object)],Np.prototype,"hasChipsBar",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],Np.prototype,"pageSubtype",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],Np.prototype,"engagementPanel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],Np.prototype,"liveChatEngagementPanel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Np.prototype,"inReplyPanel",void 0);_.N([_.Nl("#action-button"),_.P("design:type",HTMLElement)],Np.prototype,"actionButton",void 0);_.N([_.e(),_.P("design:type",Object)],Np.prototype,"scrollUpButtonData",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],Np.prototype,"engagementPanelDropdown",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],Np.prototype,"engagementPanelDialog",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Np.prototype,"isClipList",null);_.N([_.Nl("#contents"),_.P("design:type",HTMLElement)],Np.prototype,"monitorScrollElement",void 0);_.N([_.Nl("#contents"),_.P("design:type",HTMLElement)],Np.prototype,"contents",void 0);
_.N([_.lc("scroll"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Np.prototype,"onScroll",null);_.N([_.Ul({is:"ytd-section-list-renderer",disableElementRegistration:!0})],Np);
var akt=_.Ol()(Np,"ytd-section-list-renderer",function(){if(Si7===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);Si7=t}t=Si7;return t},{mode:1});var ecJ;var F67;var zcb;var lke;var DY=function(){return _.z.apply(this,arguments)||this};
_.u(DY,_.z);DY.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
DY.prototype.onLikeButtonClick=function(t){t.stopPropagation();t.preventDefault()};
_.aE.Object.defineProperties(DY.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)!=null&&t.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)})}}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],DY.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],DY.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],DY.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],DY.prototype,"ytRendererStamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],DY.prototype,"data",void 0);
_.N([_.e({selectorArgs:["data.likeStatusEntityKey"],selector:_.UY}),_.P("design:type",Object)],DY.prototype,"likeStatusEntity",void 0);_.N([_.Z("data","likeStatusEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],DY.prototype,"likeButtonRenderer",null);_.N([_.Ul({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],DY);
_.G(DY,"ytd-slim-metadata-toggle-button-renderer",function(){if(lke!==void 0)return lke;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);
return lke=t},{mode:1});var s1=function(){var t=_.z.apply(this,arguments)||this;t.showEqualizer=_.r("web_enable_playlist_video_lockup_equalizer");t.watchColorUpdate=_.r("kevlar_watch_color_update");t.actionMap={};return t};
_.u(s1,_.z);_.Y=s1.prototype;_.Y.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"},properties:{minimizePipBreakages:"[[minimizePipBreakages]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.Y.computeEditableClass=function(t){return t&&t.menu?"editable":""};
_.Y.computeSelected=function(t){return!(t==null||!t.selected)};
_.Y.computeUseColorPalette=function(t){return!!((t==null?0:t.lightColorPalette)&&(t==null?0:t.darkColorPalette))};
_.Y.computeLargerPlaylistThumbs=function(t,E){return _.r("web_enable_playlist_bigger_thumbnails")&&!E};
_.Y.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.Y.onYtServiceRequestSent=function(t,E){E.endpoint&&this.isHideEnclosingAction(E.endpoint)&&!this.selected&&s8Z(_.gY(),this.data.videoId)};
_.Y.isHideEnclosingAction=function(t){var E=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",t);t=this.get("likeEndpoint.status",t)==="INDIFFERENT";return E||t};
_.Y.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.Y.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.aE.Object.defineProperties(s1.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_web_delhi_icons")?"play":"play_arrow"}},
minimizePipBreakages:{configurable:!0,enumerable:!0,get:function(){return _.r("web_pip_minimize_breakages")&&!!this.withinMiniplayer}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var t;return!!(this.withinMiniplayer&&((t=this.data)==null?0:t.actionButtons))}}});
s1.prototype.onYtServiceRequestSent=s1.prototype.onYtServiceRequestSent;s1.prototype.canReorderChanged=s1.prototype.canReorderChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],s1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],s1.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],s1.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.dy),_.P("design:type",Object)],s1.prototype,"ytdLockupBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],s1.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],s1.prototype,"withinMiniplayer",void 0);_.N([_.e({computed:"computeSelected(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],s1.prototype,"selected",void 0);
_.N([_.e({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],s1.prototype,"useColorPalette",void 0);_.N([_.e({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.P("design:type",Boolean)],s1.prototype,"largerPlaylistThumbs",void 0);_.N([_.e(),_.P("design:type",Object)],s1.prototype,"showEqualizer",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],s1.prototype,"canReorder",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],s1.prototype,"touchPersistentDragHandle",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],s1.prototype,"handleIsHovered",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],s1.prototype,"watchColorUpdate",void 0);_.N([_.e(),_.P("design:type",String),_.P("design:paramtypes",[])],s1.prototype,"reorderIcon",null);
_.N([_.e(),_.P("design:type",String),_.P("design:paramtypes",[])],s1.prototype,"playIcon",null);_.N([_.e({reflectToAttribute:!0}),_.Z("withinMiniplayer"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],s1.prototype,"minimizePipBreakages",null);_.N([_.Z("largerPlaylistThumbs"),_.P("design:type",Number),_.P("design:paramtypes",[])],s1.prototype,"thumbnailWidth",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],s1.prototype,"showActionButtons",null);_.N([_.P3("canReorder"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],s1.prototype,"canReorderChanged",null);_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.m8]),_.P("design:returntype")],s1.prototype,"onYtServiceRequestSent",null);
_.N([_.Ul({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],s1);
_.G(s1,"ytd-playlist-panel-video-renderer",function(){if(zcb!==void 0)return zcb;var t=document.createElement("template");_.J(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n      <template is="dom-if" if="[[selected]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" minimize-pip-breakages="[[minimizePipBreakages]]" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return zcb=t},{mode:2});var LV=function(){return _.z.apply(this,arguments)||this};
_.u(LV,_.z);LV.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],LV.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],LV.prototype,"data",void 0);_.N([_.Ul({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],LV);
_.G(LV,"ytd-playlist-panel-supported-items",function(){if(F67!==void 0)return F67;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return F67=
t},{mode:1});dnr=!0;xq3("\\P{N}");var DZ0;var GCe=_.zF("END_OF_PLAYLIST",void 0,"End of playlist"),nIg=_.zF("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),P2=function(){var t=_.z.apply(this,arguments)||this;t.minimizePipBreakages=_.r("web_pip_minimize_breakages");t.hideHeaderText=!1;t.useColorPalette=!1;t.collapsed=!1;t.collapsedPreServerOverride="not_tracked";t.isHovered=!1;t.expandLabel=_.zF("MINIPLAYER_EXPAND_LABEL");t.collapseLabel=_.zF("MINIPLAYER_COLLAPSE_LABEL");t.isFloating=!1;t.metaPanel=
!1;t.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};t.currentIndex=void 0;return t};
_.u(P2,_.z);_.Y=P2.prototype;
_.Y.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"}}}};
_.Y.created=function(){var t=this;this.scrollThrottle=new _.F5(this.onThrottledScroll,1E3,this);this.JSC$17522_ytReorderableController=new _.wtX(56,function(E){t.handleDrop(E)})};
_.Y.onMouseEnter=function(){this.isHovered=!0};
_.Y.onMouseLeave=function(){this.isHovered=!1};
_.Y.computeOverflowMenuData=function(t){return t&&t.menu?t.menu:null};
_.Y.computeCollapsible=function(t){return!t};
_.Y.computeHasPlaylistButtons=function(t){return!(!t||!t.playlistButtons)};
_.Y.computeHasSeparateSaveButton=function(t){return!(!t||!t.saveButton)};
_.Y.computeHasToolbarButton=function(t,E){return!(!t||!(E||t.saveButton||t.menu))};
_.Y.computePlaylistType=function(t){if(t&&t.playlistId)return t.playlistId.substring(0,4)};
_.Y.computeCanReorder=function(t){return t?t.playlistId&&t.playlistId.startsWith("TLPQ")?!0:!!t.isEditable&&!t.isInfinite:!1};
_.Y.attached=function(){var t=this;try{_.X3().resolve(_.kA).setPlaylistComponent(this.hostElement)}catch(E){if(_.r("kevlar_park_on_playlist_token_killswitch"))throw E;_.ut().parkOrScheduleJob(function(){_.X3().resolve(_.kA).setPlaylistComponent(t.hostElement)},2,"ci")}_.jR(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.Y.detached=function(){_.ru(this.hostElement);_.Sp(this.JSC$17522_ytReorderableController)};
_.Y.computeTrailingIcon=function(t,E,p){return p?E?"yt-icons:collapse":"yt-icons:close":E?"yt-icons:expand":_.r("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.Y.computeIndexMessage=function(t,E){return PEO(t+1)+" / "+PEO(E)};
_.Y.onRenderStamperFinished=function(){if(this.scrollForStampDom){var t=!0;this.isHovered&&(t=!1);if(this.collapsed||this.hidden)t=!1;t&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.Y.collapseChanged=function(){var t=this;this.collapsed||(_.D2(this.ytTaskEmitterBehavior.getTaskManager(),function(){t.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.Y.hiddenChanged=function(){var t=this;this.hidden||_.D2(this.ytTaskEmitterBehavior.getTaskManager(),function(){t.scrollToCurrentVideo()})};
_.Y.setupReordering=function(){var t=_.ZN(this.hostElement).querySelector("#items");LRm?_.RVr(this.JSC$17522_ytReorderableController,t,t,"playlist-drag-handle"):_.RVr(this.JSC$17522_ytReorderableController,t,t)};
_.Y.scrollToCurrentVideo=function(){var t=this;_.ir.addJob(function(){var E=_.ZN(t.hostElement).querySelector("#items");if(E){E.style.setProperty("padding-bottom","");var p=_.ZN(t.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(p){E=p.parentElement||_.AI(document);var U=E||_.AI(document);var x=_.cx(p),A=_.cx(U),m=_.Qv3(U);if(U==_.AI(document)){var b=x.x-U.scrollLeft;x=x.y-U.scrollTop}else b=x.x-A.x-m.left,x=x.y-A.y-m.top;p=BiZ(p);A=U.clientHeight-
p.height;m=U.scrollLeft;var f=U.scrollTop;m+=b-(U.clientWidth-p.width)/2;U=new _.gg(m,f+(x-A/2));E.scrollLeft=U.x;E.scrollTop=U.y}}},8)};
_.Y.dataChanged=function(){var t=this;_.Sp(this.JSC$17522_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.XE(this,function(){_.E_(t.ytTaskEmitterBehavior.getTaskManager(),function(){t.ytRendererBehavior.markDirty();t.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.Y.onFullBleedPlayerChanged=function(){_.r("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.Y.onFullscreenChanged=function(){_.r("web_watch_imax_theater_mode")||_.r("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.Y.updateNowPlayingOverlay=function(){_.r("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.Y.onPlaylistLockupNowPlaying=function(t,E){E&&(this.activeNowPlayingRenderer=E);this.updateNowPlayingOverlay()};
_.Y.onScroll=function(){this.scrollThrottle.fire()};
_.Y.onThrottledScroll=function(){var t=this;_.E_(this.ytTaskEmitterBehavior.getTaskManager(),function(){t.ytRendererBehavior.markDirty()})};
_.Y.onToggleExpanded=function(t){!this.collapsible||t&&(_.Qx(t).tagName==="A"||_.Qb(_.Vx(t),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.Y.setCollapsed=function(t){this.collapsible&&(this.collapsed=t,_.uO(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.Y.handleCollapsedFromData=function(t){if(t){var E=t.playlistPanelCollapseState;E==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||E==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),E=E==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==E&&this.setCollapsed(E)):this.currentPlaylistId!==t.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(E=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==E&&this.setCollapsed(E),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=t.playlistId}};
_.Y.handleDrop=function(t){var E=t.currDragItem;t=E.data.playlistSetVideoId;var p=_.FO(E.parentNode.childNodes,E),U=void 0;p>0&&(U=E.parentNode.childNodes[p-1].data.playlistSetVideoId);E=_.gY();if(E.responsePlaylistData&&E.responsePlaylistData.contents){var x=csE(t,E.responsePlaylistData);E.responsePlaylistData=(0,_.Kq.unsafeClone)(E.responsePlaylistData);GtK(E.responsePlaylistData.contents,x,p);E.queueProxy?Vkr(E.queueProxy,x,p,t,U):E.playlistProxy&&Vkr(E.playlistProxy,x,p,t,U);_.ZZ(E,_.OA(E,E.response?
E.response.autoplayRenderer:void 0))}};
_.Y.handleDarkModeChange=function(t){t!==this.isDarkTheme&&(this.isDarkTheme=t)};
_.Y.colorPaletteChanged=function(){var t,E=((t=this.data)==null?void 0:t.contents)||[],p;t=_.M(E);for(E=t.next();!E.done;E=t.next()){E=E.value;var U=void 0;if((U=E.playlistPanelVideoRenderer)==null?0:U.selected){t=E.playlistPanelVideoRenderer;U=E=void 0;(p=this.isDarkTheme?(E=t)==null?void 0:E.darkColorPalette:(U=t)==null?void 0:U.lightColorPalette)&&_.$2(this.hostElement,p);break}}this.useColorPalette=!!p};
_.aE.Object.defineProperties(P2.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.moveThreeDotsMenuToMainHeader)&&_.r("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var t=_.X3().resolve(_.OB(_.kA)),E;if(((E=this.data)==null?0:E.contents)&&(t==null?0:t.hasAutoplayData())){var p;if(((p=this.playlistLoopStateEntity)==null?void 0:p.state)==="PLAYLIST_LOOP_STATE_ONE"){if(t=this.data.currentIndex,t!==void 0){var U,x;var A=(U=this.data.contents[t])==null?void 0:(x=U.playlistPanelVideoRenderer)==null?void 0:x.title}}else{var m,b=(m=_.k(t.getAutoplayEndpoint(),_.HD))==null?void 0:m.videoId,f,B;A=(f=this.data.contents.find(function(R){var V;
return((V=R.playlistPanelVideoRenderer)==null?void 0:V.videoId)===b}))==null?void 0:(B=f.playlistPanelVideoRenderer)==null?void 0:B.title}return A}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)!=null&&t.nextVideoLabel?this.nextVideoTitle?_.R4(this.data.nextVideoLabel)+":":GCe:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var t;if(((t=this.data)==null?0:t.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.r("web_mix_long_byline_from_data"))return _.wN(nIg);var E;return(E=this.data)==null?void 0:E.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var t,E,p,U=(t=this.data)==null?void 0:(E=t.playlistButtons)==null?void 0:(p=E.menuRenderer)==null?void 0:p.topLevelButtons;if(U)for(t=_.M(U),E=t.next();!E.done;E=t.next())if(E=E.value,E.playlistLoopButtonRenderer)return E.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var t;return!!(this.collapsed&&((t=this.data)==null?0:t.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.r("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
P2.prototype.colorPaletteChanged=P2.prototype.colorPaletteChanged;P2.prototype.onPlaylistLockupNowPlaying=P2.prototype.onPlaylistLockupNowPlaying;P2.prototype.updateNowPlayingOverlay=P2.prototype.updateNowPlayingOverlay;P2.prototype.onFullscreenChanged=P2.prototype.onFullscreenChanged;P2.prototype.onFullBleedPlayerChanged=P2.prototype.onFullBleedPlayerChanged;P2.prototype.dataChanged=P2.prototype.dataChanged;P2.prototype.hiddenChanged=P2.prototype.hiddenChanged;P2.prototype.collapseChanged=P2.prototype.collapseChanged;
P2.prototype.onRenderStamperFinished=P2.prototype.onRenderStamperFinished;P2.prototype.onMouseLeave=P2.prototype.onMouseLeave;P2.prototype.onMouseEnter=P2.prototype.onMouseEnter;_.N([_.g(_.Ev),_.P("design:type",Object)],P2.prototype,"ironResizableBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],P2.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],P2.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(sBG.YtPlaylistPanelBehavior),_.P("design:type",Object)],P2.prototype,"ytPlaylistPanelBehavior",void 0);_.N([_.g(_.O0.YtTaskEmitterBehavior),_.P("design:type",Object)],P2.prototype,"ytTaskEmitterBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],P2.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],P2.prototype,"ytdReduxBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],P2.prototype,"actionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],P2.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],P2.prototype,"autoplayData",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],P2.prototype,"withinMiniplayer",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],P2.prototype,"minimizePipBreakages",void 0);
_.N([_.e({computed:"setMenuData_(data)"}),_.P("design:type",Object)],P2.prototype,"menuRendererData",void 0);_.N([_.e({computed:"computeOverflowMenuData(data)"}),_.P("design:type",Object)],P2.prototype,"overflowMenuDataTopRow",void 0);_.N([_.e({computed:"computeOverflowMenuData(data)"}),_.P("design:type",Object)],P2.prototype,"overflowMenuData",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],P2.prototype,"hideHeaderText",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],P2.prototype,"useColorPalette",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.P("design:type",Boolean)],P2.prototype,"collapsible",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],P2.prototype,"collapsed",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],P2.prototype,"hidden",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.P("design:type",Boolean)],P2.prototype,"hasPlaylistButtons",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.P("design:type",Boolean)],P2.prototype,"hasSeparateSaveButton",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.P("design:type",Boolean)],P2.prototype,"hasToolbar",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.P("design:type",String)],P2.prototype,"playlistType",void 0);_.N([_.e(),_.P("design:type",Object)],P2.prototype,"isHovered",void 0);_.N([_.e({selectorArgs:["playlistLoopStateEntityKey"],selector:_.MY.playlistLoopStateEntitySelector}),_.P("design:type",Object)],P2.prototype,"playlistLoopStateEntity",void 0);_.N([_.e({computed:"computeCanReorder(data)"}),_.P("design:type",Boolean)],P2.prototype,"canReorder",void 0);
_.N([_.e(),_.P("design:type",Object)],P2.prototype,"expandLabel",void 0);_.N([_.e(),_.P("design:type",Object)],P2.prototype,"collapseLabel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],P2.prototype,"isFloating",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],P2.prototype,"metaPanel",void 0);_.N([_.e({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.P("design:type",String)],P2.prototype,"trailingIcon",void 0);
_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],P2.prototype,"isDarkTheme",void 0);_.N([_.e({selector:_.E5}),_.P("design:type",Boolean)],P2.prototype,"miniplayerIsActive",void 0);_.N([_.e({selector:function(t){return t.watch.playerState}}),
_.P("design:type",Number)],P2.prototype,"playerState",void 0);_.N([_.e({selector:_.EY}),_.P("design:type",Boolean)],P2.prototype,"isFullscreen",void 0);_.N([_.e({selector:_.t8}),_.P("design:type",Boolean)],P2.prototype,"isTheaterMode",void 0);_.N([_.e(),_.P("design:type",Object)],P2.prototype,"activeNowPlayingRenderer",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],P2.prototype,"moveThreeDotMenuToTopRow",null);
_.N([_.Z("data","autoplayData","playlistLoopStateEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],P2.prototype,"nextVideoTitle",null);_.N([_.Z("data","nextVideoTitle"),_.P("design:type",String),_.P("design:paramtypes",[])],P2.prototype,"nextVideoLabel",null);_.N([_.Z("collapsed"),_.P("design:type",String),_.P("design:paramtypes",[])],P2.prototype,"buttonAriaLabel",null);
_.N([_.Z("data","playlistId","longBylineText"),_.P("design:type",Object),_.P("design:paramtypes",[])],P2.prototype,"mixLongByLine",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],P2.prototype,"playlistLoopStateEntityKey",null);_.N([_.lc("mouseenter"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],P2.prototype,"onMouseEnter",null);
_.N([_.lc("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],P2.prototype,"onMouseLeave",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data","collapsed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],P2.prototype,"showNextVideoHeader",null);_.N([_.lc("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],P2.prototype,"onRenderStamperFinished",null);
_.N([_.GI("collapsed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],P2.prototype,"collapseChanged",null);_.N([_.GI("hidden"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],P2.prototype,"hiddenChanged",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],P2.prototype,"dataChanged",null);
_.N([_.Z("isTheaterMode","isFullscreen"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],P2.prototype,"isFullBleedPlayer",null);_.N([_.GI("isTheaterMode","isFullscreen"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],P2.prototype,"onFullBleedPlayerChanged",null);_.N([_.GI("isFullscreen"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],P2.prototype,"onFullscreenChanged",null);
_.N([_.GI("playerState","miniplayerIsActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],P2.prototype,"updateNowPlayingOverlay",null);_.N([_.lc("yt-playlist-lockup-now-playing-active"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],P2.prototype,"onPlaylistLockupNowPlaying",null);
_.N([_.GI("data","isDarkTheme"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],P2.prototype,"colorPaletteChanged",null);_.N([_.Ul({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],P2);
_.N6C=_.Ol()(P2,"ytd-playlist-panel-renderer",function(){if(ecJ===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);ecJ=t}t=ecJ;return t},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});_.D2K={};
_.D2K.YtConditionalRendererBehavior=[_.y.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(t,E){var p=this,U,x;return _.q(function(A){switch(A.nextAddress){case 1:if(!E)return p.hidden=!0,p.showSpinner=!1,A.return();if((U=t)==null?0:(x=U.visibilityCondition)==null?0:x.mode)switch(t.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return A.jumpTo(5);default:return A.jumpTo(6)}p.showSpinner=
!1;p.hidden=!0;return A.yield(p.shouldShow_(t),4);case 4:p.hidden=!A.yieldResult;A.jumpTo(0);break;case 5:return A.yield(p.shouldShow_(t),8);case 8:p.showSpinner=A.yieldResult;p.hidden=!1;A.jumpTo(0);break;case 6:return p.showSpinner=!1,A.yield(p.shouldShow_(t),9);case 9:p.hidden=!A.yieldResult,_.Do(A)}})},
shouldShow_:function(t){return t&&t.supportedDatas&&t.supportedDatas.rendererVisibilityConditionData&&t.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(t.supportedDatas.rendererVisibilityConditionData.showIf):t&&t.visibilityCondition&&t.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(t.visibilityCondition.showIf):t&&t.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(t.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(t){switch(t){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(t){switch(t){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var t=_.du(this.hostElement,"yt-get-mdx-status");return t.length==1&&t[0].connected},
isLocationPermissionGranted_:function(){var t;return _.q(function(E){return E.nextAddress==1?navigator.permissions?E.yield(navigator.permissions.query({name:"geolocation"}),3):E.jumpTo(2):E.nextAddress!=2?(t=E.yieldResult,E.return(Promise.resolve(t.state==="granted"))):E.return(Promise.resolve(!1))})}}];var s$e=N50("yt-icon",{callbackProps:["onKeydown"]}),L6b=_.r("kevlar_use_wil_icons")?_.l(function(t){var E=t.icon;var p=t.active;var U=t.className;var x=t.style;var A=t.title;var m=t.size;var b=t.dataSelected;var f=t.dataDisabled;var B=t.role;var R=t.themeOverride;var V=t.animateIcon;var Q=t.ariaHidden;var C=t.ariaExpanded;var d=t.ariaLabel;var I=t.tabindex;var O=t.id;var a=t.iconFilter;var F=t.gradientColor;var L=t.onKeydown;var D=function(){var v=E==null?void 0:E(),YL=null,bY=void 0;v&&(v=QV4(v),
v=w4E(v),v.length&&(YL=v[1],bY=v[0]));return{iconName:YL,iconSetName:bY}},W=function(){return C5Z(D().iconName,p==null?void 0:p(),void 0,m==null?void 0:m(),D().iconSetName,_.X3().resolve(_.lR))},K=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:a==null?void 0:a(),iconColor:F==null?void 0:F()}};
return _.H(_.w,{cond:V,then:function(){return _.H(s$e,{icon:E,active:p,className:U,style:x,title:A,dataSelected:b,dataDisabled:f,role:B,themeOverride:R,ariaHidden:Q,ariaExpanded:C,ariaLabel:d,tabindex:I,id:O,iconFilter:a,gradientColor:F,onKeydown:L})},
else:function(){return _.H(_.w,{cond:W,then:function(v){return _.H("span",{class:_.X5("ytIconWrapperHost",U),role:B,"aria-label":d,"aria-hidden":Q,tabindex:function(){return isNaN(Number(I==null?void 0:I()))?void 0:Number(I==null?void 0:I())},
id:O,style:x,title:A,"on:keydown":_.aC(function(YL){return void(L==null?void 0:L(YL))})},_.H(_.Ws,{data:v,
options:K}))}})}})},"tg"):s$e;var PF7=function(t){var E=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];jCO();_.Oy("ytglobal.ytUtilActivityCallback_",function(){_.uO(t,"yt-user-activity")});
new XL(function(){return E.JSC$17539_onMouseMove});
document.addEventListener("scroll",function(){return E.onScroll});
window.addEventListener("resize",function(){return E.onResize})},T69=function(t,E,p){E in t.eventJobIds||(p=_.ty().addLowPriorityJob(function(){_.hw();
delete t.eventJobIds[E]},p),t.eventJobIds[E]=p)};
PF7.prototype.onScroll=function(t){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):t.target===document&&T69(this,"scroll",200)};
PF7.prototype.onResize=function(){T69(this,"resize",200)};
PF7.prototype.JSC$17539_onMouseMove=function(){T69(this,"mousemove",100)};
_.al=function(t){t.scrollEventsToIgnore+=1;t.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){t.scrollEventsToIgnore--},500))};var oI8=function(t){this.element=t;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
oI8.prototype.showFeedbackDialog=function(t,E,p,U){var x=W6l();if(!x)return!1;var A=EB0();A.productId=x;E&&(A.flow="submit",A.report={description:E});p&&(W6l()==="59"?A.callback=_.BC(function(){_.MW("userFeedbackEvent",{});p()}):A.callback=_.BC(p));
A.bucket=U||_.qO("GOOGLE_FEEDBACK_BUCKET","Other");$2d(A);t=K67(this,"GFEEDBACK",t);try{_.R_o(A,t)}catch(m){return _.fR(m),!1}return!0};
oI8.prototype.showHelpDialog=function(t,E,p){var U=this,x=W6l();if(!x)return!1;var A={helpCenterPath:"/youtube",productData:K67(this,"GUIDED_HELP",p)};$2d(A);var m=EB0();m.context=t||A.productData.context||"default";m.defaultHelpArticleId=E;m.enableSendFeedback=!0;(_.ws("gapi.load")||function(b,f){return f()})("client",function(){try{var b=Wnr(x,A);
if(_.r("web_always_load_chat_support")&&!U.chatSupportLoaded)try{b.JSC$10251_loadChatSupport(m),U.chatSupportLoaded=!0}catch(f){}b.startHelp(m)}catch(f){_.fR(f)}})};
var W6l=function(){var t=_.qO("GOOGLE_FEEDBACK_PRODUCT_ID");t||_.fR(Error("ii"));return t},$2d=function(t){t&&(t.locale=_.r("kevlar_help_use_locale")?_.qO("INNERTUBE_CONTEXT_HL","en"):_.qO("HTML_LANG","en"))},K67=function(t,E,p){var U=t.productData;
delete U.origin;U.device=_.V_();var x;a:{if(x=document.createElement("canvas")){var A=x.getContext("experimental-webgl",{stencil:!0});if(A){var m=A.getExtension("WEBGL_debug_renderer_info");if(m){x=A.getParameter(m.UNMASKED_RENDERER_WEBGL);break a}}if(A=x.getContext("webgl")){x=A.getParameter(A.RENDERER);break a}}x=null}U.gpu=x;U.isSDC=!!_.qO("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(x=_.qO("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.Kq.extend(U,x);_.ci$(E,U);_.tb8(U);(t=_.uO(t.element,"yt-get-autonav-pause-debug-state"))&&
t.length&&(U.autonav_pause_state=t[0]);t=_.NX();U.browser_resolution=t.width+"\u00d7"+t.height+"@"+(window.devicePixelRatio||1)+"x";p&&_.Kq.extend(U,p);return U};
oI8.prototype.resetProductData=function(){this.productData={}};var vI5=function(t){this.feedbackManager=new oI8(t)};
vI5.prototype.showFeedbackDialog=function(t,E,p,U){return this.feedbackManager.showFeedbackDialog(t,E,p,U)};
vI5.prototype.showHelpDialog=function(t,E,p){return this.feedbackManager.showHelpDialog(t,E,p)};var yGt=function(){this.baseUrl="";this.aTag=document.createElement("a")},vHX=function(t,E,p){p=p===void 0?{}:p;
p.pbj||(p.pbj=1);p=_.pY8(E,p);t.baseUrl&&p&&!_.ds(p)[1]&&!_.ua(p)&&(E=t.baseUrl,MK(E,"/")&&(E=E.slice(0,-1)),_.AD(p,"/")&&(p=p.slice(1)),p=E+"/"+p);pB(t.aTag,_.vw(p||""));return t.aTag.href};
yGt.prototype.fetchData=function(t){return _.WlO(t)};
yGt.prototype.postData=function(t,E){var p={method:"POST"};if(E){for(var U=_.M(Object.keys(E)),x=U.next();!x.done;x=U.next()){x=x.value;var A=E[x];_.o0(A)&&(E[x]=JSON.stringify(A))}p.postParams=E}return _.WlO(t,p)};
_.yVs=function(t,E,p,U,x){t=vHX(t,E,p);if(!t)throw U=Error("ji"),Object.assign(U,{params:E}),U;return _.WlO(t,x,U)};
yGt.prototype.requestDataForServiceEndpoint=function(t,E){if(_.k(t,_.pzO))return this.fetchData("/getAccountSwitcherEndpoint");E=E||{};var p=_.k(t,Xdm);p?E.se=p.base64EncodedServiceEndpoint:E.sej=JSON.stringify(t);(p=_.yL())&&_.r("enable_service_ajax_csn")&&(E.csn=p);E.theme=_.me();_.k(t,tX$)&&_.qO("DELEGATION_CONTEXT")&&(E.delegation_context=JSON.stringify(_.qO("DELEGATION_CONTEXT")));p=null;for(var U in t)if(MK(U,"Endpoint")||MK(U,"Command")){p=U;break}if(!p){var x=Error("ki");Object.assign(x,{params:t});
_.c8J(x,"WARNING");return new _.PE(function(m,b){b(x)})}U={name:p};
var A;(p=(A=_.k(t,_.XJ))==null?void 0:A.signal)&&(U.signal=p);(A=_.ji(window.location.href))&&A.internalcountrycode&&(U.internalcountrycode=A.internalcountrycode);A="/service_ajax";_.r("debug_forward_web_query_parameters")&&(A=_.Qp$(A,window.location.search));A=_.ka(A,U);t.clickTrackingParams&&_.RK(A,{itct:t.clickTrackingParams});return this.postData(A,E)};_.SS7=new _.gM("GFEEDBACK_TOKEN");var cGb;var tsb;var Ekl;var pT7;var TS=function(){var t=_.z.apply(this,arguments)||this;t.compact=!1;t.dismissButtonDisabled=!1;t.shouldRenderReasonAsFormattedString=!_.r("web_player_error_message_reason_as_formatted_string_killswitch");return t};
_.u(TS,_.z);TS.prototype.computeHasIcon_=function(t){return!!t};
TS.prototype.isSignInIcon_=function(t){return t=="yt-icons:prompted_sign_in"};
TS.prototype.onDismissButtonClick=function(){var t=this,E=this.data.disableOnClick,p,U=(p=this.data.dismissButton)==null?void 0:p.buttonRenderer;E&&!this.dismissButtonDisabled&&U&&setTimeout(function(){t.dismissButtonDisabled=!0},0)};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],TS.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.D2K.YtConditionalRendererBehavior),_.P("design:type",Object)],TS.prototype,"ytConditionalRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],TS.prototype,"data",void 0);_.N([_.e({computed:"computeIcon_(data.icon)"}),_.P("design:type",Object)],TS.prototype,"icon_",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.P("design:type",Boolean)],TS.prototype,"hasIcon_",void 0);_.N([_.e({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.P("design:type",Boolean)],TS.prototype,"signInIcon_",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],TS.prototype,"compact",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],TS.prototype,"dismissButtonDisabled",void 0);
_.N([_.e({type:Boolean}),_.P("design:type",Object)],TS.prototype,"shouldRenderReasonAsFormattedString",void 0);_.N([_.p4({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],TS);
_.G(TS,"yt-player-error-message-renderer",function(){if(pT7===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;Ekl===void 0&&(Ekl=document.createElement("template"));var U=Ekl;p.call(E,U.content.cloneNode(!0),t.content.firstChild);pT7=t}t=pT7;return t},{mode:2});var UEC;var xEC;var o_=function(){return _.z.apply(this,arguments)||this};
_.u(o_,_.z);o_.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
o_.prototype.computeIcon_=function(t){return t?"yt-icons:"+t.iconType.toLowerCase():"error_outline"};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],o_.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],o_.prototype,"data",void 0);_.N([_.e({computed:"computeIcon_(data.icon)"}),_.P("design:type",Object)],o_.prototype,"icon_",void 0);_.N([_.p4({is:"yt-player-kav-renderer",disableElementRegistration:!0})],o_);
_.G(o_,"yt-player-kav-renderer",function(){if(xEC===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;UEC===void 0&&(UEC=document.createElement("template"));var U=UEC;p.call(E,U.content.cloneNode(!0),t.content.firstChild);xEC=t}t=xEC;return t},{mode:2});var xsO=_.CG(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.k2(_.l(function(t){var E=_.EB("div"),p=_.M(_.Py(0,void 0,"jxh75d")),U=p.next().value,x=p.next().value;p=_.M(_.Py(null,void 0,"F5Zm8"));var A=p.next().value,m=p.next().value;_.A6(function(){A5Y(E.value,x,m);E.value.scrollIntoView()});
p=YwK.bind(null,t.data,U);_.Xv("resize",function(){var b=A();if(U()===1&&b!==null){var f;(f=window.grecaptcha)==null||f.reset(b)}});
return _.H("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.H("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.H("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var b,f;return(b=t.data().accessibility)==null?void 0:(f=b.accessibilityData)==null?void 0:f.label}),_.H(_.d8,{text:p,
className:_.X5("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.H("div",{el:E,class:"ytwPlayerCaptchaViewModelGridItem"})))},"ug"),"yt-player-captcha-view-model",{props:{data:_.Cy}});var Mb$=!1;_.A9o=_.l(function(t){var E=t.data;return _.H("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.H(_.w,{cond:function(){return E().icon},
then:function(p){return _.H("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.H(_.Q9,{data:p,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.H(_.w,{cond:function(){return E().title},
then:function(p){return _.H("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.H(_.d8,{text:p}))}}),_.H(_.w,{cond:function(){return E().description},
then:function(p){return _.H("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.H(_.d8,{text:p}))}}),_.H(_.sY,{data:function(){return E().primaryButton}},{buttonViewModel:function(p){return _.H(_.D5,{data:p.data,
className:"interstitialViewModelFlexItem"})}}),_.H(_.sY,{data:function(){return E().secondaryButton}},{buttonViewModel:function(p){return _.H(_.D5,{data:p.data,
className:"interstitialViewModelFlexItem"})}}))},"vg");
_.A9o.idomCompat=!0;var Y2o=_.l(function(t){var E=t.data;_.qM();return _.H("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.H("div",{class:"playerInterstitialRendererScrim"},_.H(_.sY,{data:function(){return E().content}},{interstitialViewModel:_.A9o})))},"wg");
Y2o.idomCompat=!0;_.k2(Y2o,"yt-player-interstitial-renderer",{props:{data:_.uu}});var W2=function(){var t=_.z.apply(this,arguments)||this;t.noBackground=!1;t.compact=!1;t.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return t};
_.u(W2,_.z);W2.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"}}}};
W2.prototype.onUpdatePlayerErrorMessageCommand_=function(t){if(_.k(t,sOo)){var E;if(t=(E=_.k(t,sOo))==null?void 0:E.newPlayerErrorMessageRenderer)this.data=t}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],W2.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],W2.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],W2.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],W2.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],W2.prototype,"status",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],W2.prototype,"noBackground",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],W2.prototype,"compact",void 0);_.N([_.p4({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],W2);
var Mst=_.Ol()(W2,"yt-playability-error-supported-renderers",function(){if(tsb===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;cGb===void 0&&(cGb=document.createElement("template"));var U=cGb;p.call(E,U.content.cloneNode(!0),t.content.firstChild);tsb=t}t=tsb;return t},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var mEC=N50("ytd-button-renderer");var ms8=void 0,i6O=void 0;var fbi=new hes;var XY=new _.gM("ENTITY_STATE_TOKEN"),$D=new _.gM("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var bB8=function(t){this.store=t;this.bFz=new _.Fnp},p8r=function(t,E,p){var U,x;
if(!(x=((U=E.playabilityStatus)==null?void 0:U.status)!=="OK")){t=t.store;var A;x=E.offlineState&&((A=E.videoDetails)==null?0:A.videoId)?_.r("enable_pl_r_c_cd")?$7K(t.getState().entities,E.videoDetails.videoId):!!r4L(t.getState().entities,E.videoDetails.videoId):!1}if(x)return!0;x=VbO(E);if(x===1){if(_.r("ab_v_vid_sig")){var m,b=(m=E.videoDetails)==null?void 0:m.videoId;if(!b||!p||b!==p){var f;E=new _.cC("282054944_vid",{sfC:p,g8G:(f=E.videoDetails)==null?void 0:f.videoId});_.bV(E)}}return!0}Fw$=
0;var B,R;f=(b=E.auxiliaryUi)==null?void 0:(B=b.messageRenderers)==null?void 0:(R=B.bkaEnforcementMessageViewModel)==null?void 0:R.displayType;if(x!==3&&(f==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||f==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;f={reason:_.kh(_.zF("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.r("ks_something_wrong_learn_more")?gyl("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.kh(_.zF("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:_.kh("282054944")};iBo(E,{playerErrorMessageRenderer:f});return!1},UKG=function(t,E){if(SMJ(E)){_.F$(1,!0);
var p=(p=SMJ(E))&&_.b68()?p:void 0;p?(iBo(E,{enforcementMessageViewModel:p}),t.bFz.increment("IN_PLAYER"),_.F$(5)):(t.bFz.increment("SKIP_DISPLAY"),_.F$(2))}},iBo=function(t,E){t.playabilityStatus=Object.assign({},t.playabilityStatus,{status:"ERROR",
errorScreen:E});t.videoDetails=void 0};
bB8.prototype.handleResponse=function(t,E){if(t.playabilityStatus){var p,U,x,A=(E==null?void 0:(p=E.innerTubeRequest)==null?void 0:p.videoId)||(E==null?void 0:(U=E.innerTubeRequest)==null?void 0:(x=U.playerRequest)==null?void 0:x.videoId);p8r(this,t,A)&&UKG(this,t)}};
bB8[aa]=[XY];var t$X=new _.gM("ADBLOCK_DETECTION_SERVICE_TOKEN");var Cr=function(t){this.thG=t};
Cr.prototype.bindInnertubeChallengeFetcher=function(t){this.thG.bicf(t)};
Cr.prototype.registerChallengeFetchedCallback=function(t){this.thG.bcr(t)};
Cr.prototype.getLatestChallengeResponse=function(){return this.thG.blc()};var q2t;q2t=_.CG(["https://static.doubleclick.net/instream/ad_status.js"]);_.HBC=_.JC(q2t);var RXt;_.KV=function(t,E,p){var U=this;this.network=t;this.options=E;this.networkStatusManager=p;this.cZ=null;if(E.useBotguardEverywhere){var x=new _.hf;this.cZ=x.promise;_.Ui.ytAtRC&&_.W9(_.ir,function(){var A,m;return _.q(function(b){if(b.nextAddress==1){if(!_.Ui.ytAtRC)return b.return();A=fod(null);return b.yield(U.qT(A),2)}m=b.yieldResult;_.Ui.ytAtRC&&_.Ui.ytAtRC(JSON.stringify(m));_.Do(b)})});
ds_().then(function(A){var m,b,f,B;return _.q(function(R){if(R.nextAddress==1)return A.bindInnertubeChallengeFetcher(function(V){return U.qT(fod(V))}),R.yield(YBK(),2);
m=R.yieldResult;b=A.getLatestChallengeResponse();f=b.challenge;if(!f)throw Error("mi");B={challenge:f,ei:Vc(f),vm:m,bgChallenge:new HS};x.resolve(B);A.registerChallengeFetchedCallback(function(V){V=V.challenge;if(!V)throw Error("ni");V={challenge:V,ei:Vc(V),vm:m,bgChallenge:new HS};U.cZ=Promise.resolve(V)});
_.Do(R)})})}else E.preload&&B38(this,new Promise(function(A){_.E_(_.ir,function(){A(wT8(U))},0)}))};
RXt=function(t){var E={preload:!0,useBotguardEverywhere:!0},p=!1;if(typeof E==="boolean")var U={preload:E};else typeof E==="undefined"?U={preload:!0}:(U=E,p=!!E.o4L);E=p?void 0:new _.k7;_.KV.instance=new _.KV(t,U,E);return _.KV.instance};
_.KV.prototype.yPz=function(){var t=this;return _.q(function(E){return E.nextAddress==1?E.yield(Promise.race([t.cZ,null]),2):E.return(!!E.yieldResult)})};
_.KV.prototype.owV=function(t,E,p){var U=this,x,A,m;return _.q(function(b){U.cZ===null&&B38(U,wT8(U));x=!1;A={};m=function(){var f,B,R,V,Q;return _.q(function(C){switch(C.nextAddress){case 1:if(!U.options.kiu||!U.options.useBotguardEverywhere){C.jumpTo(2);break}return C.yield(k1D(),3);case 3:return f=C.yieldResult,C.yield((B=f)==null?void 0:B.checkForRefresh(),2);case 2:return C.yield(U.cZ,5);case 5:R=C.yieldResult;A.challenge=R.challenge;if(!R.vm){"c1a"in R.ei&&(A.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");
C.jumpTo(6);break}V=Object.assign({},{c:R.challenge,e:t},E);_.aR(C,7);x=!0;return C.yield(R.vm.snapshot({cw:V}),9);case 9:(Q=C.yieldResult)?A.webResponse=Q:A.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.r7(C,6);break;case 7:_.nB(C),A.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 6:if(t==="ENGAGEMENT_TYPE_PLAYBACK"){var d=R.ei,I={};if(d.c6a){var O=Number(_.qO("DCLKSTAT",0));I.reportingStatus=String(Number(d.c)^(isNaN(O)?0:O))}d.c6b&&(I.broadSpectrumDetectionResult=String(Number(d.c)^Number(_.qO("CATSTAT",
0))));A.adblockReporting=I}return C.return(A)}})};
return b.return(Promise.race([m(),Vst(p,function(){var f=Object.assign({},A);x&&(f.error="ATTESTATION_ERROR_VM_TIMEOUT");return f})]))})};
var fod=function(t){var E={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};t&&(E.interpreterHash=t);return E},wT8=function(t,E){E=E===void 0?0:E;
var p,U,x,A,m,b,f,B,R,V,Q,C;return _.q(function(d){switch(d.nextAddress){case 1:p=fod(eZs().lsE);if(_.r("att_fet_ks"))return _.aR(d,7),d.yield(t.qT(p),9);_.aR(d,4);return d.yield(QRb(t,p),6);case 6:m=d.yieldResult;x=m.fGL;A=m.hd2;U=m;_.r7(d,3);break;case 4:return _.nB(d),_.qW(Error("oi`"+E)),C08(t,864E5),d.return({challenge:"",ei:{},vm:void 0,bgChallenge:void 0});case 9:U=d.yieldResult;if(!U)throw Error("pi");if(!U.challenge)throw Error("qi");x=U.challenge;A=Vc(x);if("c1a"in A&&(!U.bgChallenge||!U.bgChallenge.program))throw Error("ri");
_.r7(d,3);break;case 7:b=_.nB(d);_.qW(b);E++;if(E>=5)return _.qW(Error("oi`"+E)),C08(t,864E5),d.return({challenge:"",ei:{},vm:void 0,bgChallenge:void 0});f=1E3*Math.pow(2,E-1)+Math.random()*1E3;return d.return(new Promise(function(I){_.E_(_.ir,function(){I(wT8(t,E))},f)}));
case 3:B=r5Y(A);C08(t,B*1E3);R=void 0;if(!("c1a"in A&&U.bgChallenge)){d.jumpTo(10);break}V=j5K(U.bgChallenge);_.aR(d,11);return d.yield(zZ0(eZs(),V),13);case 13:_.r7(d,12);break;case 11:return Q=_.nB(d),_.qW(Q),d.return({challenge:x,ei:A,vm:R,bgChallenge:V});case 12:return _.aR(d,14),R=new _.w0({challenge:V,bB6:{kj:"aGIf"}}),d.yield(R.gCG,16);case 16:_.r7(d,10);break;case 14:C=_.nB(d),_.qW(C),R=void 0;case 10:return d.return({challenge:x,ei:A,vm:R,bgChallenge:V})}})},jRK=function(t,E){var p;
return _.q(function(U){if(U.nextAddress==1)return Qc(2),_.aR(U,2),U.yield(t.network.qT(E),4);if(U.nextAddress!=2)return(p=U.yieldResult)?p.challenge&&!p.bgChallenge?Qc(1):Qc(4):Qc(3),U.return(p);_.nB(U);Qc(3);return U.return(void 0)})};
_.KV.prototype.qT=function(t){var E=this,p;return _.q(function(U){p=E.networkStatusManager;if(!p||p.isNetworkAvailable())return U.return(jRK(E,t));_.tj("att_pna",void 0,"attestation_challenge_fetch");return U.return(new Promise(function(x){p.listenOnce("publicytnetworkstatus-online",function(){jRK(E,t).then(x)})}))})};
var r9o=function(t){if(!t)throw Error("pi");if(!t.challenge)throw Error("qi");var E=t.challenge,p=Vc(E);if("c1a"in p&&(!t.bgChallenge||!t.bgChallenge.program))throw Error("ri");return Object.assign({},t,{fGL:E,hd2:p})},QRb=function(t,E){var p,U,x,A,m;
return _.q(function(b){switch(b.nextAddress){case 1:p=void 0,U=0,x={};case 2:if(!(U<5)){b.jumpTo(4);break}if(!(U>0)){b.jumpTo(5);break}x.nz2=1E3*Math.pow(2,U-1)+Math.random()*1E3;return b.yield(new Promise(function(f){return function(B){_.E_(_.ir,function(){B(void 0)},f.nz2)}}(x)),5);
case 5:return _.aR(b,7),b.yield(t.qT(E),9);case 9:return A=b.yieldResult,b.return(r9o(A));case 7:p=m=_.nB(b),m instanceof Error&&_.qW(m);case 8:U++;x={nz2:void 0};b.jumpTo(2);break;case 4:throw p;}})},B38=function(t,E){t.cZ=E},kc7=function(t){var E,p,U;
return _.q(function(x){if(x.nextAddress==1)return x.yield(Promise.race([t.cZ,null]),2);E=x.yieldResult;var A=wT8(t);t.cZ=A;(p=E)==null||(U=p.vm)==null||U.dispose();_.Do(x)})},C08=function(t,E){var p=Date.now()+E,U=function(){var x;
return _.q(function(A){x=p-Date.now();return x<1E3?A.yield(kc7(t),0):(_.E_(_.ir,U,Math.min(x,6E4)),A.jumpTo(0))})};
U()},Vst=function(t,E){return new Promise(function(p){_.E_(_.ir,function(){p(E())},t)})};var dEe=function(){};
dEe.prototype.processContext=function(t){var E=_.KV.instance;if(!E)return _.Iy();var p=O6Y(t);return p?new J1(E.owV(p,IbO(t),500).then(function(U){var x;(t==null?0:(x=t.innerTubeRequest)==null?0:x.context)||(t.innerTubeRequest.context={});x=t.innerTubeRequest.context;x.request||(x.request={});x.request.attestationResponseData=U})):_.Iy()};var uQ7=function(t){this.innertubeTransportService=t};
uQ7.prototype.qT=function(t){_.tj("att_fsr",void 0,"attestation_challenge_fetch");return _.rY(this.innertubeTransportService,t,_.Cf(_.ycm)).then(function(E){_.tj("att_frr",void 0,"attestation_challenge_fetch");return E})};_.J95=function(t){this.innertubeTransportService=t};var Io5=new _.gM("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var gkb=function(){},OBb=function(t,E,p,U,x){var A=_.qO("YPC_MB_URL");
_.BK0(A).then(function(){ZBJ(A,t,E,p,U,x)})},ZBJ=function(t,E,p,U,x,A){try{var m=_.JN.payments.business.integration,b=_.JN.payments.business.integration.Style.create().withMaterialDesignStyle(),f=m.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.r("enable_window_constrained_buy_flow_dialog")&&(f=f.usingPopupStyle("windowConstrained"));A&&(f=f.usingCloseCallback(A));var B=p?p:_.qO("YPC_GB_LANGUAGE"),R=_.qO("SESSION_INDEX");m.bootstrap.fromPaymentsUrl(t);m.bootstrap.asMashupMode(f).usingGaiaIndex(R).usingLocale(B).usingStyle(b).usingDefaultActivityStatusChangeHandler().inStandaloneContext(m.standaloneContextAuthId.forGaia()).purchaseManager(E,function(V){U&&U(V)}).load(void 0,x)}catch(V){throw x&&x(V),_.bV(V),V;
}};var XTe=new _.gM("PURCHASE_MANAGER_TOKEN");var hXC=function(){var t=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return t.videos},
getContinuationsPresent:function(){return t.continuationsPresent},
setVideos:function(E){t.videos=E},
getRecommendedVideos:function(){return t.recommendedVideos},
setRecommendedVideos:function(E){t.recommendedVideos=E}}};
hXC.prototype.addVideos=function(t){t&&(this.videos=t.filter(function(E){return!!_.hn$(E)}).map(function(E){var p=_.hn$(E);
a:{var U;if(E.playlistVideoRenderer&&((U=E.playlistVideoRenderer)==null?0:U.voteSortTiebreaker))var x=E.playlistVideoRenderer.voteSortTiebreaker;else{if(_.k(E,rI)){var A;if(U=(x=_.k(E,rI))==null?void 0:(A=x.playlistItemData)==null?void 0:A.voteSortTiebreaker){x=U;break a}}x=""}}return{itemId:p,videoId:_.FXL(E),voteCount:_.znO(E),voteSortTiebreaker:x}}),this.continuationsPresent=!!_.k(t[t.length-1],_.um))};
var aog=function(t,E){return t.videos.findIndex(function(p){return p.itemId===E})},eXK=function(t,E){return t.recommendedVideos.findIndex(function(p){return p.itemId===E})},FEK=function(t){t={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:t}}}}};_.X3().resolve(_.ei).resolveCommand(t)};var zX7=function(){hXC.apply(this,arguments)};
_.u(zX7,hXC);
var Ugm=function(t,E,p,U){if(!t.parentElem)throw Error("wi");var x=aog(t,E);x===-1&&(x=eXK(t,E),x=x!==-1?x+t.videos.length:-1);if(x===-1)throw Error("xi");var A=x>=t.videos.length?t.recommendedVideos[x-t.videos.length]:t.videos[x];A.voteCount=p;A.voteSortTiebreaker=Date.now().toString();x>=t.videos.length?t.recommendedVideos.splice(x-t.videos.length,1):t.videos.splice(x,1);var m=t.videos;for(var b=0,f=m.length-1;b<=f;){var B=Math.floor((b+f)/2);if(m[B].voteCount<A.voteCount)f=B-1;else if(m[B].voteCount>A.voteCount)b=
B+1;else{a:{var R=A.voteSortTiebreaker;var V=m[B].voteSortTiebreaker;if(R.length!==V.length)R=R.length>V.length;else{for(var Q=0;Q<R.length;Q++){var C=R.charCodeAt(Q),d=V.charCodeAt(Q);if(C>d){R=!0;break a}if(C<d)break}R=!1}}R?f=B-1:b=B+1}}m=b;if(m===-1)throw Error("yi");t.videos.splice(m,0,A);x!==m&&loJ(t,x,m,E,p,U)},loJ=function(t,E,p,U,x,A){var m,b=(m=t.parentElem)==null?void 0:m.children,f=Math.min(E,p),B=Math.max(E,p);
if(b)for(m=f;m<=B;m++)b[m].style.viewTransitionName="item-"+String(m);document.startViewTransition(function(){if(t.parentElem){var R=t.parentElem.children;if(!(!R||E<0||E>=R.length||p<0||p>=R.length)){var V=R[E];if(V){V.remove();t.showRefreshPill=p>=t.videos.length-1&&t.continuationsPresent;if(!t.showRefreshPill){R=R[p]||null;var Q;(Q=t.parentElem)==null||Q.insertBefore(V,R)}_.kT(t.parentElem,"yt-update-video-data-voting-animation",{toIdx:p,itemId:U,newVoteCount:x,voteStatus:A,hideItem:t.showRefreshPill})}}}}).finished.then(function(){if(b)for(var R=
f;R<=B;R++)b[R].style.viewTransitionName="";
if(t.showRefreshPill)FEK(_.zF("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var V;if(V=R=(V=t.parentElem)==null?void 0:V.children[p])V=R.getBoundingClientRect(),R=V.bottom,V=!(V.top>=0&&R<=t.clientHeight);V&&(V=_.lO(E>p?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(E-p)),FEK(V))}})};var N3t=function(t,E){var p=this;t?this.innertubeTransportServicePromise=Promise.resolve(t):E&&(this.innertubeTransportServicePromise=E(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new a_(3E3,function(U){return Gct(p,U)},0);
this.validateMiniAppVideoIdRateLimiter=new a_(3E3,function(U){return nkt(p,U)},1)},Rcd=function(t,E){t.JSC$17656_miniAppId=E;
t.reportMiniAppValueRateLimiter=new a_(3E3,function(p){return Gct(t,p)},0);
t.validateMiniAppVideoIdRateLimiter=new a_(3E3,function(p){return nkt(t,p)},1)},Q$e=function(t,E){var p;
return _.q(function(U){if(U.nextAddress==1)return U.yield(t.reportMiniAppValueRateLimiter.call(E),2);p=U.yieldResult;return U.return([p,E])})},Gct=function(t,E){var p,U,x,A,m,b,f;
return _.q(function(B){switch(B.nextAddress){case 1:return B.yield(t.innertubeTransportServicePromise,2);case 2:return p=B.yieldResult,U=_.Cf(U9r),x=Date.now(),A={externalPostId:t.JSC$17656_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(x/1E3),nanos:Math.round(x%1E3*1E6)},intValue:""+E}},_.aR(B,3),B.yield(_.rY(p,A,U),5);case 5:m=B.yieldResult;_.r7(B,4);break;case 3:throw b=_.nB(B),b;case 4:if(m){if("error"in m&&m.error)throw m.error;if(m.errorMetadata)throw Error("zi`"+
m.errorMetadata.status);if(f=m.userStatResult)return B.return(f);throw Error("Ai");}throw Error("Bi");}})},j$8=function(t){var E,p,U,x,A;
_.q(function(m){switch(m.nextAddress){case 1:return m.yield(t.innertubeTransportServicePromise,2);case 2:return E=m.yieldResult,p=_.Cf(U9r),U={externalPostId:t.JSC$17656_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.aR(m,3),m.yield(_.rY(E,U,p),5);case 5:x=m.yieldResult;_.r7(m,4);break;case 3:throw A=_.nB(m),A;case 4:if(x==null)throw Error("Bi");if("error"in x&&x.error)throw x.error;if(x.errorMetadata)throw Error("zi`"+x.errorMetadata.status);_.Do(m)}})};
N3t.prototype.flush=function(){var t=this;return _.q(function(E){return E.nextAddress==1?E.yield(t.reportMiniAppValueRateLimiter.flush(),2):E.yield(t.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var CFK=function(t,E){return _.q(function(p){return p.nextAddress==1?p.yield(t.validateMiniAppVideoIdRateLimiter.call(E),2):p.return(p.yieldResult)})},nkt=function(t,E){var p,U,x,A,m,b;
return _.q(function(f){switch(f.nextAddress){case 1:return f.yield(t.innertubeTransportServicePromise,2);case 2:return p=f.yieldResult,U=_.Cf(KBo),x={videoId:E},_.aR(f,3),f.yield(_.rY(p,x,U),5);case 5:A=f.yieldResult;_.r7(f,4);break;case 3:throw m=_.nB(f),m;case 4:if(A){if("error"in A&&A.error)throw A.error;if(A.errorMetadata)throw Error("zi`"+A.errorMetadata.status);if(b=A.playabilityStatus)return f.return(b.status);throw Error("Ci");}throw Error("Bi");}})};
N3t[aa]=[_.OB(_.PL),_.OB(ae4)];var DE8=function(){this.clientData=new Map};
DE8.prototype.getData=function(t){return this.clientData.get(t)};var sRg=function(t){this.store=t};
sRg.prototype.handleResponse=function(t){(t=_.k(t.frameworkUpdates,B9))&&_.lU(t,this.store)};
sRg[aa]=[_.fS];var LEt=new _.gM("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var P0l,T37,oke;_.v2=new _.gM("FLOW_STATE_MANAGER_TOKEN");P0l=function(){this.flowStates=new Map};
T37=function(t,E){t=_.M(t.flowStates.values());for(var p=t.next();!p.done;p=t.next())if(p=p.value,p.flowRenderer.targetId===E)return p};
oke=function(t,E){var p,U=((p=t.flowRenderer.steps)!=null?p:[]).filter(function(x){return!E.includes(_.k(x,_.pz).stepId)});
t.flowRenderer.steps=U};var WEL=function(t){this.JSC$17680_flowStateManager=t};
_.u(WEL,kf);WEL.prototype.resolveCommand=function(t){var E=this,p,U,x,A,m,b;return _.q(function(f){p=_.k(t,xwm);x=(U=p)==null?void 0:U.stepIds;m=(A=p)==null?void 0:A.targetId;if(!x||!m)return f.return();b=T37(E.JSC$17680_flowStateManager,m);if(!b)return f.return();oke(b,x);_.Do(f)})};
var y2=function(){WEL.apply(this,arguments)};
_.u(y2,WEL);y2[aa]=[_.v2];var $El=function(t,E){this.JSC$17686_reduxStore=t;this.JSC$17686_flowStateManager=E};
_.u($El,kf);
$El.prototype.resolveCommand=function(t){var E=this,p,U,x,A,m,b,f,B,R,V,Q,C,d;return _.q(function(I){p=_.k(t,_.Av0);U=p.stepId;x=p.targetId;A=T37(E.JSC$17686_flowStateManager,x);b=(m=A)==null?void 0:m.flowRenderer;f=b.flowStateEntityKey;B=_.ku(E.JSC$17686_reduxStore.getState(),f);if(!B)return I.return();R=B.currentStepId;C=(Q=(V=B)==null?void 0:V.stepIdStack)!=null?Q:[];d=R===C[C.length-1]?U:R;E.JSC$17686_reduxStore.dispatch(_.pr("flowStateEntity",f,{currentStepId:U,stepIdStack:[d]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.Do(I)})};
var S_=function(){$El.apply(this,arguments)};
_.u(S_,$El);S_[aa]=[_.fS,_.v2];var KE7=function(t,E,p){this.JSC$17693_reduxStore=t;this.JSC$17693_flowStateManager=E;this.JSC$17693_commandHandler=p};
_.u(KE7,kf);
KE7.prototype.resolveCommand=function(t,E){var p=this,U,x,A,m,b,f,B,R,V,Q,C,d,I;return _.q(function(O){U=_.k(t,_.Yvs);x=U.targetId;A=T37(p.JSC$17693_flowStateManager,x);b=(m=A)==null?void 0:m.flowRenderer;f=b.flowStateEntityKey;B=_.ku(p.JSC$17693_reduxStore.getState(),f);Q=[].concat(_.KB((V=(R=B)==null?void 0:R.stepIdStack)!=null?V:[]));C=Q.pop();((d=B)==null?void 0:d.currentStepId)===C&&(C=Q[Q.length-1]);if(!C)return(I=U.onFirstStepCommand)&&p.JSC$17693_commandHandler.resolveCommand(I,E),O.return();
p.JSC$17693_reduxStore.dispatch(_.pr("flowStateEntity",f,{currentStepId:C,stepIdStack:Q}));_.Do(O)})};
var c2=function(){KE7.apply(this,arguments)};
_.u(c2,KE7);c2[aa]=[_.fS,_.v2,_.ei];var vkC=function(t,E){this.innertubeTransportService=t;this.JSC$17698_commandHandler=E};
_.u(vkC,kf);vkC.prototype.resolveCommand=function(t,E){var p=this,U,x,A,m,b;return _.q(function(f){if(f.nextAddress==1){U=_.k(t,Ml4);if(!U)return f.return();_.aR(f,2);return f.yield(_.H9(p.innertubeTransportService,t),4)}if(f.nextAddress!=2){x=f.yieldResult;if(!x)return f.return();(A=x.updateFlowCommand)&&p.JSC$17698_commandHandler.resolveCommand(A,E);return _.r7(f,0)}_.nB(f);(b=(m=U)==null?void 0:m.onFailureCommand)&&p.JSC$17698_commandHandler.resolveCommand(b,E);_.Do(f)})};
var tO=function(){vkC.apply(this,arguments)};
_.u(tO,vkC);tO[aa]=[_.PL,_.ei];var y9l=function(t,E){this.JSC$17704_flowStateManager=t;this.JSC$17704_commandHandler=E};
_.u(y9l,kf);
y9l.prototype.resolveCommand=function(t,E){var p=this,U,x,A,m;return _.q(function(b){U=_.k(t,_.bCf);x=U.targetId;A=T37(p.JSC$17704_flowStateManager,x);if(!A)return b.return(Promise.resolve());var f=A,B=(m=U.steps)!=null?m:[],R,V=(R=f.flowRenderer.steps)!=null?R:[];B=[].concat(_.KB(V),_.KB(B));f.flowRenderer.steps=B;U.flowContinuationCommand&&(A.flowRenderer.flowContinuationCommand=U.flowContinuationCommand);U.entityUpdateCommand&&p.JSC$17704_commandHandler.resolveCommand(U.entityUpdateCommand,E);
return b.return(Promise.resolve())})};
var Ed=function(){y9l.apply(this,arguments)};
_.u(Ed,y9l);Ed[aa]=[_.v2,_.ei];var S25={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],android_messenger:[[0,1,192]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,
1,24]],countdown_to_close:[[0,1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,
1,36]],face_filled_very_happy:[[0,1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,
1,300]],hi5:[[0,1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var c9b=new _.gM("ICON_SET_TOKEN"),t27=new _.gM("ICON_URL_PROVIDER_TOKEN"),EsK=new _.gM("PREFETCH_ICONS_TOKEN"),pxL=new _.gM("ICON_MAP_FN_TOKEN");var pa={},UXK=(pa.ACCESS_TIME="clock",pa.ACCOUNT_BOX=_.qO("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",pa.ACCOUNT_BOX_CAIRO="person_account_cairo",pa.ACCOUNT_CIRCLE="person_circle",pa.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",pa.ACCOUNT_LINKED="account_link_success",pa.ACCOUNT_UNLINKED="account_link",pa.ADD_FRIEND="people",pa.ADD_MODERATOR="shield_add",pa.ADD_TO_LIBRARY="bookmark",pa.ADD_TO_PLAYLIST="add",pa.ADD_TO_QUEUE_TAIL="list_queue",pa.ADD_TO_REMOTE_QUEUE="list_music",
pa.ADD_TO_WATCH_LATER="clock",pa.ADD_VIDEO_LINK="film_strip_add",pa.ALERT_WARN_RED="alert_triangle",pa.ARROW_BACK="arrow_left",pa.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",pa.ARROW_DROP_DOWN="chevron_down",pa.ARROW_DROP_UP="chevron_up",pa.ARROW_FORWARD="arrow_right",pa.ARTIST="person_music",pa.AUDIOTRACK="audio",pa.AUTO_AWESOME="sparkle",pa.AVATAR_ANONYMOUS="person_circle",pa.AVATAR_LOGGED_OUT="person_circle",pa.BACK="arrow_left",pa.BAR_CHART="bar_graph",pa.BLOCK="slash_circle_left",
pa.BLOCK_USER="slash_circle_left",pa.BOOKMARK_BORDER="bookmark",pa.BREAKING_NEWS_ALT_1="article_alert",pa.BROADCAST_CAIRO="podcast_cairo",pa.BUG_REPORT="bug",pa.CAMERA_ALT="camera",pa.CAMPAIGN="megaphone",pa.CANCEL="x_circle",pa.CAPTIONS="closed_caption",pa.CAST_OUTLINE="chromecast",pa.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",pa.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",pa.CHAT="message_bubble_left",pa.CHAT_BUBBLE="message_bubble_empty",pa.CHAT_SPARK="spark_message_bubble_left",pa.CHECK_BOX_OUTLINE_BLANK=
"box_empty",pa.CHECK_CIRCLE_OUTLINE="check_circle",pa.CHECK_CIRCLE_THICK="check_circle",pa.CLARIFY="article_clarify",pa.CLOSED_CAPTION_SELECTED="closed_caption",pa.CLOSE="x_mark",pa.CLOUD_UPLOAD="cloud_arrow_up",pa.COLLAPSE="chevron_up",pa.COLLAPSE_CAIRO="chevron_up_cairo",pa.COLLECTION="layers",pa.COLOR_LENS="palette",pa.COMMENT="message_bubble_right",pa.CONSENT_SHIELD="person_shield",pa.CONTENT_CUT="scissors",pa.CONTENT_CUT_CAIRO="scissors_cairo",pa.COURSE=_.r("web_enable_course_icon_update")?"creator_academy":
"lightbulb",pa.COURSE_CAIRO=_.r("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",pa.CREATION_LIVE="radar_live",pa.CREATION_POST="box_pencil",pa.CREATION_UPLOAD="my_videos",pa.CREATION_UPLOAD_RED="upload",pa.CREATOR_METADATA_MONETIZATION="dollar_sign",pa.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",pa.CREATOR_STUDIO="youtube_studio",pa.DASHBOARD="grid_asymmetrical",pa.DELETE="trash_can",pa.DELETE_SWEEP="trash_can",pa.DESKTOP="laptop",pa.DISLIKE="thumb_down",pa.DISLIKE_SELECTED=
"thumb_down",pa.DISMISSAL="x_mark",pa.DISMISS_QUEUE="list_remove",pa.DONE_ALL="check_double",pa.DOWN_ARROW="arrow_down",pa.DO_NOT_DISTURB="slash_circle_left",pa.DRAFT="paper_corner_folded",pa.DRAG_HANDLE="bars_2",pa.EDIT="pencil",pa.EMOJI="face_very_happy",pa.EMOJI_FLAGS="flag",pa.EMOJI_OBJECTS="lightbulb",pa.EMOJI_PEOPLE="face_very_happy",pa.EMOJI_RECENT="clock",pa.EMPTY_HEART="heart",pa.EMPTY_LIKE="thumb_up",pa.ERROR_BLACK="alert_circle",pa.ERROR_OUTLINE="alert_circle",pa.EXIT_APP="arrow_in",pa.EXIT_TO_APP=
"arrow_in",pa.EXPAND="chevron_down",pa.EXPAND_ALL="chevron_expand",pa.EXPAND_CAIRO="chevron_down_cairo",pa.EXPAND_LESS="chevron_up",pa.EXPAND_MORE="chevron_down",pa.EXPLORE="compass",pa.EXPLORE_DESTINATION="compass",pa.EXTERNAL_LINK="open_new",pa.FAB_UPLOAD="upload",pa.FACE_HAPPY_OUTLINE="face_happy",pa.FACT_CHECK="article_check",pa.FASHION_LOGO="fashion",pa.FASHION_LOGO_CAIRO="fashion_cairo",pa.FAVORITE="heart",pa.FEEDBACK="message_bubble_alert",pa.FEEDBACK_CAIRO="message_bubble_alert_cairo",pa.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",pa.FILL_ARROW_SOLID_UP_16="arrow_solid_up",pa.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",pa.FILTER="menu_filter",pa.FIRST_PAGE="chevron_first",pa.FLAG="flag",pa.FULL_HEART="heart",pa.GAME_CONSOLE_DPAD="game_console_dpad",pa.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",pa.GAMING_LOGO="gaming",pa.GAMING_LOGO_CAIRO="gaming_cairo",pa.GO_TO_PAGE="arrow_right",pa.GROUPS="people_group",pa.HAPPY="face_happy",pa.HEALTH_AND_SAFETY="shield_plus",pa.HELP="question_circle",pa.HELP_CAIRO=
"question_circle_cairo",pa.HELP_OUTLINE="question_circle",pa.HIDE="slash_circle_left",pa.IMAGE="image",pa.INFINITY_ICON="infinity",pa.INFO="info_circle",pa.INFO_OUTLINE="info_circle",pa.INSERT_CHART="bar_graph_box_vertical",pa.INSERT_CHART_OUTLINED="bar_graph_box_vertical",pa.INSERT_PHOTO="image",pa.KEEP="pin",pa.KEEP_OFF="pin_off",pa.KEYBOARD="keyboard",pa.KEYBOARD_ARROW_DOWN="chevron_down",pa.KEYBOARD_ARROW_UP="chevron_up",pa.KIDS_BLOCK="slash_circle_left",pa.LANGUAGE="globe",pa.LAST_PAGE="chevron_last",
pa.LAUNCH="open_new",pa.LEARNING="lightbulb",pa.LEARNING_CAIRO="lightbulb_cairo",pa.LIBRARY_ADD=NeL("library_add"),pa.LIBRARY_OUTLINE="library",pa.LIBRARY_REMOVE=NeL(),pa.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",pa.LIKES_PLAYLIST="thumb_up",pa.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",pa.LIKE="thumb_up",pa.LIKE_SELECTED="thumb_up",pa.LIVE="radar_live",pa.LIVE_CAIRO="radar_live_cairo",pa.LIVE_UNLISTED="link",pa.LOCATION_ON="location_point",pa.LOCATION_PIN="location_point",pa.LOOP="arrow_repeat",pa.LOOP_ACTIVE=
"arrow_repeat",pa.LOOP_ONE="arrow_repeat_1",pa.LOOP_ONE_ACTIVE="arrow_repeat_1",pa.MEH="face_meh",pa.MEMBERS_ONLY_MODE_OFF="message_bubble_left",pa.MESSAGE="message_bubble_left",pa.MICROPHONE_ON="mic",pa.MIX="youtube_mix",pa.MONETIZATION_ON="dollar_sign_circle",pa.MONEY_FILL="dollar_sign_container",pa.MONEY_FILL_JPY="yen_sign_container",pa.MONEY_HEART="dollar_sign_heart",pa.MORE_HORIZ="overflow_horizontal",pa.MORE_VERT="overflow_vertical",pa.MUSIC="audio",pa.MUSIC_CAIRO="audio_cairo",pa.MUSIC_NOTE_SYMBOL=
"music",pa.MUSIC_SHUFFLE="arrow_shuffle",pa.MY_CHANNEL="person_circle",pa.MY_LOCATION="location_point",pa.NEWS_STORY="news",pa.NEXT="chevron_right",pa.NOTIFICATIONS="bell",pa.NOTIFICATIONS_ACTIVE="bell_on",pa.NOTIFICATIONS_CAIRO="bell_cairo",pa.NOTIFICATIONS_DONE_CHECKMARK="check",pa.NOTIFICATIONS_INBOX="bell",pa.NOTIFICATIONS_NONE="bell",pa.NOTIFICATIONS_OFF="bell_off",pa.NOT_INTERESTED="slash_circle_left",pa.OFFICIAL_ARTIST_BADGE="audio",pa.OFFLINE_CLOUD="cloud_off",pa.OFFLINE_DOWNLOAD="download",
pa.OFFLINE_DOWNLOAD_CAIRO="download_cairo",pa.OFFLINE_PAUSE="pause",pa.OPEN_IN_NEW="open_new",pa.OUTLINE_ADJUST="adjust",pa.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",pa.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",pa.OUTLINE_BAG="bag",pa.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",pa.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",pa.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",pa.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",pa.PAID="dollar_sign",pa.PAUSE_OUTLINED="pause",pa.PAYMENT=
"credit_card",pa.PERSON_RADAR_FILLED="person_radar",pa.PHONE_DOWNLOAD="mobile_download",pa.PLAYABLES_LOGO="tic_tac_toe",pa.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",pa.PLAYLISTS="list_play_arrow",pa.PLAYLISTS_CAIRO="list_play_arrow_cairo",pa.PLAYLIST_ADD=NeL("list_add"),pa.PLAYLIST_ADD_CHECK=NeL("list_check"),pa.PLAYLIST_PLAY="list_play_arrow",pa.PLAY_ALL="play_arrow",pa.PLAY_CIRCLE="play_arrow_circle",pa.PLAY_OUTLINED="play_arrow_circle",pa.PRIVACY_INFO="shield",pa.PRIVACY_PRIVATE="lock",pa.PRIVACY_PUBLIC=
"earth",pa.PRIVACY_UNLISTED="link",pa.PROMOTE="megaphone",pa.PURCHASES="price_tag",pa.PURCHASE_SUPER_CHAT="super_chat",pa.PURCHASE_SUPER_STICKER="super_sticker",pa.QUESTION_ANSWER="message_bubble_question",pa.QUEUE_PLAY_LAST="list_queue_last",pa.QUEUE_PLAY_NEXT="list_play_arrow",pa.REMIX_FILLED="youtube_shorts_remix",pa.REMOVE="bar_circle",pa.REMOVE_CIRCLE="bar_circle",pa.REMOVE_CIRCLE_OUTLINE="bar_circle",pa.REMOVE_DONE="check_double_off",pa.REMOVE_FROM_HISTORY="bar_circle",pa.REMOVE_FROM_PLAYLIST=
"bar_circle",pa.REMOVE_MODERATOR="shield_off",pa.REPLAY="arrow_circle",pa.REPLAY_10="skip_back_10",pa.REPORT_PROBLEM="alert_triangle",pa.SAD="face_sad",pa.SAVE_PLAYLIST="bookmark",pa.SCHEDULE="clock",pa.SCHOOL="creator_academy",pa.SCREEN_FULLSCREEN="screen_full",pa.SEARCH_HISTORY="arrow_time",pa.SELL="price_tag",pa.SETTINGS="gear",pa.SETTINGS_CAIRO="gear_cairo",pa.SETTINGS_LIGHT="gear",pa.SETTINGS_MATERIAL="gear",pa.SHARE_ARROW="share",pa.SHIELD_WITH_AVATAR="person_shield",pa.SHOPPING_BAG="bag",pa.SHOPPING_BAG_CAIRO=
"bag_cairo",pa.SHOPPING_CART="cart",pa.SHORTS_COMMENT="youtube_shorts_message_bubble_right",pa.SHORTS_DISLIKE="youtube_shorts_thumb_down",pa.SHORTS_LIKE="youtube_shorts_thumb_up",pa.SHORTS_SHARE="youtube_shorts_share",pa.SHUFFLE="arrow_shuffle",pa.SLOW_MODE_OFF="message_bubble_left",pa.SOCIAL="people",pa.SORT="menu_sort",pa.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",pa.SPEED_1X="1x",pa.SPEED_1_POINT_2X="1_point_2x",pa.SPEED_1_POINT_5X="1_point_5x",pa.SPEED_1_POINT_8X="1_point_8x",pa.SPEED_2X="2x",
pa.SPEED_POINT_2X="point_2x",pa.SPEED_POINT_8X="point_8x",pa.SPONSORSHIP_STAR="star_circle",pa.STAFF_PICK="spotlight",pa.START_DVR="add",pa.STAR_BORDER="star",pa.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",pa.STICKER_EMOTICON="face_happy",pa.STOP_DVR="stop",pa.SUBSCRIBE="youtube_logo_icon",pa.SUBSCRIBE_PLUS="add_cairo",pa.SUBSCRIPTION_MANAGER="gear",pa.SUPERVISOR_ACCOUNT="people",pa.SUPER_CHAT_FOR_GOOD="hands_heart",pa.SWAP_HORIZ="arrow_swap_horizontal",pa.SWITCH_ACCOUNTS="person_account",pa.TAB_ACCOUNT=
"person",pa.TAB_ACTIVITY="bell",pa.TAB_BOOKMARK="bookmark",pa.TAB_EXPLORE="compass",pa.TAB_HOME="home",pa.TAB_HOME_CAIRO="home_cairo",pa.TAB_INBOX="mail",pa.TAB_LIKED="thumb_up",pa.TAB_MUSIC_PREMIUM="youtube_music",pa.TAB_SHORTS="youtube_shorts",pa.TAB_SHORTS_CAIRO="youtube_shorts_cairo",pa.TAB_SUBSCRIPTIONS="subscriptions",pa.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",pa.TAB_TRENDING="fire",pa.TIMER="stopwatch",pa.TRAILER="youtube_originals",pa.TRENDING="fire",pa.TRENDING_CAIRO="fire_cairo",pa.TRENDING_DOWN=
"rating_down",pa.TRENDING_UP="rating_up",pa.TROPHY="trophy",pa.TROPHY_CELEBRATIONS="fireworks",pa.TUNE="adjust",pa.UNBLOCK_USER="bar_circle",pa.UNLIMITED="youtube_logo_icon",pa.UNPLUGGED_LIVE_GUIDE="radar_live",pa.UNPLUGGED_SPORTS="eye_off",pa.UPLOADS="library",pa.UP_ARROW="arrow_up",pa.VERTICAL_ALIGN_BOTTOM="download",pa.VERY_HAPPY="face_very_happy",pa.VERY_SAD="face_very_sad",pa.VIDEOGAME_ASSET="gaming",pa.VIDEOS="play_arrow_circle",pa.VIDEO_CALL="video_camera_add",pa.VIDEO_LIBRARY_WHITE="library",
pa.VIDEO_YOUTUBE="youtube_logo_icon",pa.VIEW_LIST="list_view",pa.VIEW_LIST_CAIRO="list_view_cairo",pa.VISIBILITY="eye",pa.VISIBILITY_OFF="eye_off",pa.VOLUME_MUTE="volume_off",pa.VOLUME_UP="volume_on",pa.WALLPAPER="image",pa.WARNING="alert_triangle",pa.WATCH_HISTORY="arrow_time",pa.WATCH_HISTORY_CAIRO="arrow_time_cairo",pa.WATCH_LATER="clock",pa.WATCH_LATER_CAIRO="clock_cairo",pa.WATCH_RELATED_MIX="youtube_mix",pa.WHAT_TO_WATCH="home",pa.YOUTUBE_MUSIC_MONOCHROME="youtube_music",pa.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",pa.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",pa.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",pa.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",pa.YT_OUTLINE_MUSIC_24="music",pa);var Ud={},xXt=(Ud.ACCESS_TIME="clock",Ud.ACCOUNT_BOX="person_square",Ud.ACCOUNT_BOX_CAIRO="person_square",Ud.ACCOUNT_CIRCLE="person_circle",Ud.ACCOUNT_CIRCLE_CAIRO="person_circle",Ud.ACCOUNT_LINKED="account_link",Ud.ACCOUNT_UNLINKED="account_link",Ud.ADD_CIRCLE="add_circle",Ud.ADD_CIRCLE_OUTLINE="add_circle",Ud.ADD_FRIEND="person_child",Ud.ADD_MODERATOR="shield_add",Ud.ADD_TO_LIBRARY="bookmark",Ud.ADD_TO_PLAYLIST="add",Ud.ADD_TO_QUEUE_TAIL="queue",Ud.ADD_TO_REMOTE_QUEUE="playlist_audio",Ud.ADD_TO_WATCH_LATER=
"clock",Ud.ADD_VIDEO_LINK="film_strip_add",Ud.ADMIN_PANEL_SETTINGS="person_gear",Ud.ALERT_WARN_RED="alert_triangle",Ud.ALIGN_LEFT="text_align_left",Ud.ARROWS_ALERT="arrow_split_alert",Ud.ARROW_BACK="arrow_left",Ud.ARROW_CIRCLE="arrow_counterclockwise",Ud.ARROW_CIRCLE_PLAY="replay",Ud.ARROW_CIRCLE_RIGHT="arrow_clockwise",Ud.ARROW_DIAGONAL="arrow_up_left",Ud.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",Ud.ARROW_DROP_DOWN="triangle_down",Ud.ARROW_DROP_UP="triangle_up",Ud.ARROW_FORWARD="arrow_right",Ud.ARROW_PAUSE=
"pause_history",Ud.ARROW_UNDO="undo",Ud.ARTICLE="text_page",Ud.ARTICLE_ALERT="text_page_alert",Ud.ARTICLE_CHECK="text_page_check",Ud.ARTICLE_CLARIFY="text_page_info",Ud.ARTIST="person_audio",Ud.AUDIOTRACK="audio",Ud.AUDIO_BADGE="audio_badge",Ud.AUDIO_SURROUND="surround_sound",Ud.AUTO_AWESOME="sparkles",Ud.AVATAR_ANONYMOUS="person_circle",Ud.AVATAR_LOGGED_OUT="person_circle",Ud.BACK="arrow_left",Ud.BAR_CHART="chart_bar",Ud.BAR_CIRCLE="minus_circle",Ud.BAR_HORIZONTAL="minus",Ud.BLOCK="circle_slash",
Ud.BLOCK_USER="circle_slash",Ud.BOOKMARK_BORDER="bookmark",Ud.BOX_OPEN_CHECK="quiz",Ud.BOX_PENCIL="square_pencil",Ud.BOX_STACK_3="square3_stack",Ud.BREAKING_NEWS_ALT_1="text_page_alert",Ud.BROADCAST="podcast",Ud.BROADCAST_CAIRO="podcast",Ud.BUG_REPORT="bug",Ud.CAMERA_ALT="camera",Ud.CAMPAIGN="megaphone",Ud.CANCEL="x_circle",Ud.CAPTIONS="closed_captions",Ud.CAST_ICON="chromecast",Ud.CAST_OUTLINE="chromecast",Ud.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Ud.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
Ud.CHAT="text_bubble",Ud.CHAT_BUBBLE="bubble",Ud.CHECK_BOX="check_square",Ud.CHECK_BOX_OUTLINE_BLANK="square",Ud.CHECK_CIRCLE_FILLED="check_circle",Ud.CHECK_CIRCLE_OUTLINE="check_circle",Ud.CHECK_CIRCLE_THICK="check_circle",Ud.CHECK_DOUBLE="check_done",Ud.CHECK_DOUBLE_OFF="check_done_slash",Ud.CHEVRON_LEFT="chevron_left",Ud.CHEVRON_RIGHT="chevron_right",Ud.CHEVRON_RIGHT_CAIRO="chevron_right",Ud.CIRCLES_OVERLAP="account_link",Ud.CLAPPERBOARD_CAIRO="clapperboard",Ud.CLARIFY="text_page_info",Ud.CLOCK_ARROWS=
"clock_split",Ud.CLOCK_ARROWS_ALERT="clock_split_alert",Ud.CLOSED_CAPTION="closed_captions",Ud.CLOSED_CAPTION_SELECTED="closed_captions",Ud.CLOSE="x",Ud.CLOUD_UPLOAD="cloud_arrow_up",Ud.COLLAPSE="chevron_up",Ud.COLLAPSE_CAIRO="chevron_up",Ud.COLLECTION="square3d_stack",Ud.COLOR_LENS="paint_palette",Ud.COMMENT="text_bubble",Ud.CONSENT_SHIELD="person_shield",Ud.CONTENT_CUT="scissors",Ud.CONTENT_CUT_CAIRO="scissors",Ud.COURSE="graduation_cap",Ud.COURSE_CAIRO="graduation_cap",Ud.CREATION_LIVE="live",
Ud.CREATION_POST="square_pencil",Ud.CREATION_UPLOAD="video",Ud.CREATION_UPLOAD_RED="upload",Ud.CREATOR_ACADEMY="graduation_cap",Ud.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",Ud.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",Ud.CREATOR_STUDIO="youtube_studio",Ud.DARK_THEME="theme",Ud.DELETE="trash_can",Ud.DELETE_SWEEP="trash_can",Ud.DESKTOP="laptop",Ud.DISLIKE="thumb_down",Ud.DISLIKE_SELECTED="thumb_down",Ud.DISMISSAL="x",Ud.DISMISS_QUEUE="playlist_x",Ud.DOGFOOD="pawprint",Ud.DOLLAR_SIGN=
"dollar_sign_circle",Ud.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",Ud.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",Ud.DOWN_ARROW="arrow_down",Ud.DO_NOT_DISTURB="circle_slash",Ud.DRAFT="document",Ud.DRAG_HANDLE="equal",Ud.EARTH="globe",Ud.EDIT="pencil",Ud.EMOJI="face_very_happy",Ud.EMOJI_FLAGS="flag",Ud.EMOJI_OBJECTS="lightbulb",Ud.EMOJI_PEOPLE="face_very_happy",Ud.EMOJI_RECENT="clock",Ud.EMPTY_HEART="heart",Ud.EMPTY_LIKE="thumb_up",Ud.ERROR_BLACK="alert_circle",Ud.ERROR_OUTLINE="alert_circle",Ud.ERROR_WHITE=
"alert_circle",Ud.EXIT_APP="arrow_in",Ud.EXIT_TO_APP="arrow_in",Ud.EXPAND="chevron_down",Ud.EXPAND_ALL="chevron_expand",Ud.EXPAND_CAIRO="chevron_down",Ud.EXPAND_LESS="chevron_up",Ud.EXPAND_MORE="chevron_down",Ud.EXPLORE="compass",Ud.EXPLORE_DESTINATION="compass",Ud.EXTERNAL_LINK="arrow_up_right",Ud.EYE_OFF="eye_slash",Ud.FAB_UPLOAD="upload",Ud.FACE_HAPPY_OUTLINE="face_happy",Ud.FACE_MEH="face_neutral",Ud.FACT_CHECK="text_page_check",Ud.FASHION_LOGO="fashion",Ud.FASHION_LOGO_CAIRO="fashion",Ud.FAVORITE=
"thumb_up",Ud.FEEDBACK="alert_bubble",Ud.FEEDBACK_CAIRO="alert_bubble",Ud.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",Ud.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Ud.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Ud.FIRST_PAGE="chevron_left_end",Ud.FLAG_CAIRO="flag",Ud.FLASH_OFF="flash_slash",Ud.FLASH_ON="flash",Ud.FULL_HEART="heart",Ud.GAMING_LOGO="gaming",Ud.GAMING_LOGO_CAIRO="gaming",Ud.GO_TO_PAGE="arrow_right",Ud.GRID_ASYMMETRICAL="dashboard",Ud.GROUPS="person3",Ud.HAND_SWIPE_LEFT="gesture_swipe_left",
Ud.HAND_SWIPE_RIGHT="gesture_swipe_right",Ud.HAPPY="face_happy",Ud.HEALTH_AND_SAFETY="shield_health",Ud.HEART_BOX="heart_cube",Ud.HELP="help_circle",Ud.HELP_CAIRO="help_circle",Ud.HELP_OUTLINE="help_circle",Ud.HIDE="circle_slash",Ud.INCOGNITO_CAIRO="incognito",Ud.INFINITY_ICON="infinity",Ud.INFO="info_circle",Ud.INFO_OUTLINE="info_circle",Ud.INSERT_CHART="chart_bar_square",Ud.INSERT_CHART_OUTLINED="chart_bar_square",Ud.INSERT_PHOTO="image",Ud.KEEP="pin",Ud.KEEP_OFF="pin_slash",Ud.KEYBOARD="keyboard",
Ud.KEYBOARD_ARROW_DOWN="chevron_down",Ud.KEYBOARD_ARROW_UP="chevron_up",Ud.KIDS_BLOCK="circle_slash",Ud.LANGUAGE="globe",Ud.LAST_PAGE="chevron_right_end",Ud.LAUNCH="arrow_up_right",Ud.LEARNING="lightbulb",Ud.LEARNING_CAIRO="lightbulb",Ud.LIBRARY_ADD="bookmark",Ud.LIBRARY_IMAGE="image_stack",Ud.LIBRARY_MUSIC="audio_square_stack",Ud.LIBRARY_OUTLINE="play_square_stack",Ud.LIBRARY_REMOVE="bookmark",Ud.LIBRARY_SAVED="check_square_stack",Ud.LIKES_PLAYLIST="thumb_up",Ud.LIKES_PLAYLIST_CAIRO="thumb_up",Ud.LIKE=
"thumb_up",Ud.LIKE_SELECTED="thumb_up",Ud.LIST_QUEUE="queue",Ud.LIVE_CAIRO="live",Ud.LIVE_UNLISTED="link",Ud.LOCATION_ON="location_pin",Ud.LOCATION_PIN="location_pin",Ud.LOCATION_POINT="location_pin",Ud.LOOP="repeat",Ud.LOOP_ACTIVE="repeat",Ud.LOOP_ONE="repeat1",Ud.LOOP_ONE_ACTIVE="repeat1",Ud.MEET="google_meet",Ud.MEH="face_neutral",Ud.MEMBERSHIPS="memberships",Ud.MEMBERS_ONLY_MODE_OFF="text_bubble",Ud.MENU_FILTER="filter",Ud.MESSAGE="text_bubble",Ud.MESSAGE_BUBBLE_GEAR="bubble_gear",Ud.MESSAGE_BUBBLE_LEFT=
"text_bubble",Ud.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",Ud.MESSAGE_BUBBLE_OVERLAP="bubble_stack",Ud.MESSAGE_BUBBLE_QUESTION="help_bubble",Ud.MICROPHONE_ON="mic",Ud.MONETIZATION_ON="dollar_sign_circle",Ud.MONEY_FILL="dollar_sign_rectangle",Ud.MONEY_FILL_JPY="yen_sign_rectangle",Ud.MONEY_HAND="dollar_sign_circle_hand",Ud.MONEY_HEART="dollar_sign_heart",Ud.MOON_Z="sleep_timer",Ud.MORE_HORIZ="overflow_horizontal",Ud.MORE_VERT="overflow_vertical",Ud.MUSIC="audio",Ud.MUSIC_CAIRO="audio",Ud.MUSIC_EXPLICIT_BADGE=
"explicit",Ud.MUSIC_NEW_RELEASE="audio_badge",Ud.MUSIC_NOTE_SYMBOL="audio",Ud.MUSIC_SCISSORS="audio_scissors",Ud.MUSIC_SHUFFLE="shuffle",Ud.MY_CHANNEL="person_circle",Ud.MY_LOCATION="location_pin",Ud.MY_VIDEOS="video",Ud.MY_VIDEOS_CAIRO="video",Ud.NEWS_CAIRO="news",Ud.NEWS_STORY="news",Ud.NEXT="chevron_right",Ud.NOTE_ADD="bubble_pencil",Ud.NOTIFICATIONS="bell",Ud.NOTIFICATIONS_ACTIVE="bell_waves",Ud.NOTIFICATIONS_CAIRO="bell",Ud.NOTIFICATIONS_DONE_CHECKMARK="check",Ud.NOTIFICATIONS_INBOX="bell",Ud.NOTIFICATIONS_NONE=
"bell",Ud.NOTIFICATIONS_OFF="bell_slash",Ud.NOT_INTERESTED="circle_slash",Ud.OFFICIAL_ARTIST_BADGE="audio",Ud.OFFLINE_CLOUD="cloud_slash",Ud.OFFLINE_DOWNLOAD="download",Ud.OFFLINE_DOWNLOAD_CAIRO="download",Ud.OFFLINE_PAUSE="pause",Ud.OPEN_IN_NEW="arrow_up_right",Ud.OUTLINE_ADJUST="adjust",Ud.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",Ud.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Ud.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",Ud.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Ud.OUTLINE_BAG="bag",Ud.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",Ud.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Ud.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Ud.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",Ud.PAID="dollar_sign_circle",Ud.PAUSE_OUTLINED="pause",Ud.PAYMENT="credit_card",Ud.PEOPLE="person_child",Ud.PEOPLE_2="person2_rectangle",Ud.PEOPLE_GROUP="person3",Ud.PEOPLE_NOTE="bubble_asterisk",Ud.PERSON_2="person2",Ud.PERSON_ACCOUNT="person_square_stack",Ud.PERSON_MINUS="person_x",Ud.PERSON_MUSIC="person_audio",Ud.PERSON_RADAR="person_waves",
Ud.PERSON_RADAR_FILLED="person_waves",Ud.PERSON_SETTING="person_gear",Ud.PHONE="phone",Ud.PHONE_DOWNLOAD="mobile_arrow_down",Ud.PICTURE_IN_PICTURE="picture_in_picture",Ud.PLAYABLES_LOGO="playables",Ud.PLAYABLES_LOGO_CAIRO="playables",Ud.PLAYLISTS="playlist",Ud.PLAYLISTS_CAIRO="playlist",Ud.PLAYLIST_ADD_CHECK="bookmark",Ud.PLAY_ALL="play",Ud.PLAY_ARROW="play",Ud.PLAY_ARROW_CIRCLE="play_circle",Ud.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",Ud.PLAY_CIRCLE="play_circle",Ud.PLAY_OUTLINED="play_circle",
Ud.PODCAST_ADD="podcast_add",Ud.PODCAST_CHECK="podcast_check",Ud.PRIVACY_INFO="shield_x",Ud.PRIVACY_PRIVATE="lock",Ud.PRIVACY_PUBLIC="globe",Ud.PRIVACY_UNLISTED="link",Ud.PROMOTE="megaphone",Ud.PURCHASES="price_tag",Ud.PURCHASE_SUPER_CHAT="super_chat",Ud.PURCHASE_SUPER_STICKER="super_sticker",Ud.QUESTION_ANSWER="help_bubble",Ud.QUESTION_CIRCLE="help_circle",Ud.QUEUE_PLAY_LAST="queue_last",Ud.QUEUE_PLAY_NEXT="queue_next",Ud.QUOTATION_MARK="quote",Ud.RADAR_LIVE="live",Ud.REMOVE="minus_circle",Ud.REMOVE_CIRCLE=
"minus_circle",Ud.REMOVE_CIRCLE_OUTLINE="minus_circle",Ud.REMOVE_FROM_HISTORY="minus_circle",Ud.REMOVE_FROM_PLAYLIST="minus_circle",Ud.REMOVE_MODERATOR="shield_slash",Ud.REPLAY="arrow_counterclockwise",Ud.REPLAY_10="skip10_back",Ud.REPLAY_ARROW="replay",Ud.REPORT_PROBLEM="alert_triangle",Ud.RSS_OFF="rss_slash",Ud.SAD="face_sad",Ud.SAVE_PLAYLIST="bookmark",Ud.SCHEDULE="clock",Ud.SCHOOL="graduation_cap",Ud.SCREEN_DEFAULT="player_default",Ud.SCREEN_FULLSCREEN="player_full_enter",Ud.SCREEN_LIGHT="ambient_mode",
Ud.SCREEN_ROTATION="rotate_portrait",Ud.SCREEN_SWITCH="player_switch",Ud.SCREEN_THEATRE="player_theater",Ud.SEARCH_CAIRO="search",Ud.SEARCH_HISTORY="history",Ud.SELL="price_tag",Ud.SETTINGS="gear",Ud.SETTINGS_CAIRO="gear",Ud.SETTINGS_LIGHT="gear",Ud.SETTINGS_MATERIAL="gear",Ud.SETTINGS_REMOTE="remote_waves",Ud.SHARE="share",Ud.SHARE_ARROW="share",Ud.SHARE_CAIRO="share",Ud.SHIELD="shield_x",Ud.SHIELD_EMPTY="shield",Ud.SHIELD_OFF="shield_slash",Ud.SHIELD_WITH_AVATAR="person_shield",Ud.SHOPPING_BAG=
"bag",Ud.SHOPPING_BAG_CAIRO="bag",Ud.SHOPPING_CART="cart",Ud.SHORTS_COMMENT="text_bubble",Ud.SHORTS_DISLIKE="thumb_down",Ud.SHORTS_LIKE="thumb_up",Ud.SHORTS_SHARE="share",Ud.SKIP_FORWARD_30="skip30_forward",Ud.SLASH_CIRCLE_LEFT="circle_slash",Ud.SLASH_CIRCLE_RIGHT="circle_slash",Ud.SLOW_MODE="bubble_slow",Ud.SLOW_MODE_OFF="text_bubble",Ud.SOCIAL="person_child",Ud.SPARKLE="sparkles",Ud.SPARK_IMAGE="image_spark",Ud.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",Ud.SPARK_PENCIL="pencil_spark",Ud.SPARK_RADAR=
"spark_waves",Ud.SPARK_VIDEO="video_spark",Ud.SPEAKER_GROUP="speaker_stack",Ud.SPEAKER_OFF="speaker_slash",Ud.SPEED_1X="n1x",Ud.SPEED_1_POINT_2X="n1point2x",Ud.SPEED_1_POINT_5X="n1point5x",Ud.SPEED_1_POINT_8X="n1point8x",Ud.SPEED_2X="n2x",Ud.SPONSORSHIP_STAR="star_circle",Ud.SPORTS="basketball",Ud.SPOTLIGHT="spotlight",Ud.STAFF_PICK="spotlight",Ud.START_DVR="add",Ud.STAR_BORDER="star",Ud.STAR_CIRCLE_RIBBON="memberships_gift",Ud.STAR_HALF="star_full_half",Ud.STAR_SHOOTING="hype",Ud.STICKER="sticker",
Ud.STICKER_EMOTICON="face_happy",Ud.STOP_DVR="stop",Ud.SUBSCRIBE="youtube",Ud.SUBSCRIBE_PLUS="add",Ud.SUBSCRIPTION_MANAGER="gear",Ud.SUPERSTAR="super_star",Ud.SUPERVISOR_ACCOUNT="person_child",Ud.SUPER_CHAT_FOR_GOOD="hands_heart",Ud.SWAP_HORIZ="arrow_swap_horizontal",Ud.SWITCH_ACCOUNTS="person_square_stack",Ud.TAB_ACCOUNT="person",Ud.TAB_ACTIVITY="bell",Ud.TAB_BOOKMARK="bookmark",Ud.TAB_EXPLORE="compass",Ud.TAB_HOME="home",Ud.TAB_HOME_CAIRO="home",Ud.TAB_INBOX="mail",Ud.TAB_LIKED="thumb_up",Ud.TAB_MUSIC_PREMIUM=
"youtube_music",Ud.TAB_SHORTS="shorts",Ud.TAB_SHORTS_CAIRO="shorts",Ud.TAB_SUBSCRIPTIONS="subscriptions",Ud.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",Ud.TAB_TRENDING="trending",Ud.TARGET="target",Ud.TARGET_ADD="target_add",Ud.TEMPLATE_ADD="template_add",Ud.TEXT="font",Ud.TICKET_STAR="star_ticket",Ud.TIMER="stopwatch",Ud.TRENDING_CAIRO="trending",Ud.TRENDING_DOWN="arrow_trend_down",Ud.TRENDING_UP="arrow_trend_up",Ud.TROPHY_CAIRO="trophy",Ud.TROPHY_CELEBRATIONS="fireworks",Ud.TROPHY_STAR="star_trophy",
Ud.TUNE="adjust",Ud.TV_OFF="tv_slash",Ud.UNBLOCK_USER="minus_circle",Ud.UNFAVORITE="thumb_down",Ud.UNLIMITED="youtube",Ud.UNPLUGGED_LIVE_GUIDE="live",Ud.UNPLUGGED_SPORTS="eye_slash",Ud.UPLOADS="play_square_stack",Ud.UP_ARROW="arrow_up",Ud.VERTICAL_ALIGN_BOTTOM="chevron_down_end",Ud.VERTICAL_ALIGN_TOP="chevron_up_end",Ud.VERY_HAPPY="face_very_happy",Ud.VERY_SAD="face_very_sad",Ud.VIDEOS="play_circle",Ud.VIDEO_CALL="video_camera_add",Ud.VIDEO_LIBRARY_WHITE="play_square_stack",Ud.VIDEO_QUALITY_4K="n4k",
Ud.VIDEO_QUALITY_8K="n8k",Ud.VIDEO_YOUTUBE="youtube",Ud.VIEW_LIST_CAIRO="view_list",Ud.VIEW_MODULE="view_column3_row2",Ud.VISIBILITY="eye",Ud.VISIBILITY_OFF="eye_slash",Ud.VOLUME_DOWN="volume_min",Ud.VOLUME_MUTE="volume_mute",Ud.VOLUME_OFF="volume_mute",Ud.VOLUME_STABLE="stable_volume",Ud.VOLUME_UP="volume_max",Ud.WALLPAPER="image",Ud.WARNING="alert_triangle",Ud.WATCH_HISTORY="history",Ud.WATCH_HISTORY_CAIRO="history",Ud.WATCH_LATER="clock",Ud.WATCH_LATER_CAIRO="clock",Ud.WATCH_RELATED_MIX="mix",
Ud.WHAT_TO_WATCH="home",Ud.YOUTUBE_LINKED_TV="tv_mobile",Ud.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Ud.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",Ud.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",Ud.YOUTUBE_SHORTS_ARROW_UP="arrow_up",Ud.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",Ud.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",Ud.YOUTUBE_SHORTS_OUTLINE_24="shorts",Ud.YT_OUTLINE_MUSIC_24="audio",Ud);var ACg={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,9,16],[1,9,18],[1,9,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],dot:[[0,2,12],[0,2,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,
24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],
face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],
film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,
4,16],[0,4,24],[1,4,24]],font_square_spark:[[1,1,16],[1,1,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,
1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,
2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],
[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,
3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,
5,16],[1,5,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,
1,24]],mic:[[0,14,24],[1,14,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,
3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1,
1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,10,16],[1,10,18],[1,10,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,7,12],[0,7,13],[0,7,16],[0,7,24],[0,7,48],[1,7,13],[1,7,16],[1,7,24]],person_2:[[1,
1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_square_spark:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,
2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,
9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,3,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,
2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],
screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,5,24,!0],
[1,5,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,3,24]],shadow_soft:[[0,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,
1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,
24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,16],[0,10,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,
16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0,
6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,3,12],[0,3,16],[0,3,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,5,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],
[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,
2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,4,24],[1,4,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,
24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,
1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],
volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],
youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,
2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,
8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var Y8e={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cart_spark:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,
24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,3,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,9,12],[1,9,24]],chevron_up_circle:[[0,
3,24],[1,3,24]],chevron_up_end:[[1,1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_full_half:[[0,1,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_slash:[[1,1,24]],clapperboard_sparkles:[[0,2,24],[1,2,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,
1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,2,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,
2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cube_spark:[[1,1,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],
document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,2,12],[0,2,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,
24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,
10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],
flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_spark:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_square_spark:[[1,1,18],[1,1,24]],font_strikethrough:[[1,1,24]],
font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],globe_image:[[1,3,24]],glow:[[1,2,24]],google:[[0,1,24]],
google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,
2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,
9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,
1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],
magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,14,18],[0,14,24],[0,14,36],[0,14,48],[1,14,18],[1,14,24],[1,14,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],
mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,3,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,
1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,2,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,
2,24]],pause_history:[[1,1,24]],pawprint:[[0,2,24],[1,2,24]],pdf:[[1,2,24]],pencil:[[0,10,24],[1,10,18],[1,10,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,7,24],[1,7,12],[1,7,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,
2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,18],[1,2,24]],person_square_spark:[[0,1,24],[1,1,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],
[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_pause:[[0,1,24],[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,
24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,
2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,3,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,
1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],
sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,7,18,!0],[0,7,24,!0],[1,7,18,!0],[1,7,24,!0]],shadow:[[1,1,24]],shadow_hard:[[0,3,24],[1,3,24]],shadow_soft:[[0,3,24],[1,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,
1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_add:[[1,1,18],[1,1,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],
skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],slip:[[1,1,18],[1,1,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,11,12],[0,11,24],[1,11,24]],spark_bubble_chat:[[1,1,24]],spark_lightbulb:[[0,3,24],[1,3,24]],spark_waves:[[0,
2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[0,2,24],[1,2,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,3,24],[1,3,18],[1,3,24]],stable_volume:[[0,
2,24],[1,2,24]],star:[[0,6,12],[0,6,24],[1,6,12],[1,6,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_full_half:[[0,1,12],[0,1,24]],star_half_filled:[[1,2,12],[1,2,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,6,24],[0,6,36],[1,6,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,
4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],
[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,4,24],[1,4,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,
1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,
4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],view_column2:[[1,1,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],
volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,2,24]],wifi_tethering:[[1,1,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,
24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var M2o={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"},xd=function(t){this.iconUrlProvider=t};
xd.prototype.resolveIcon=function(t,E){var p=M2o[t.iconName.toUpperCase()];p&&(t.iconName=p);var U=t.iconName;U=U.replace(/-/g,"_");t=Object.assign({},t,{iconName:this.mapIconTypeToStandardName(U,!!p)||U.toLowerCase()});if(_.r("enable_web_delhi_icons")||p){var x;return G1J(Y8e,t,((x=this.iconUrlProvider)==null?void 0:x.getYtStandardUrl)||s5$,E)}var A;return G1J(ACg,t,((A=this.iconUrlProvider)==null?void 0:A.getYtStandardUrl)||Ds_,E)};
xd.prototype.mapIconTypeToStandardName=function(t,E){return _.r("enable_web_delhi_icons")||E?xXt[t.toUpperCase()]:UXK[t.toUpperCase()]};
xd[aa]=[_.OB(t27)];var mX5=new Set("audio_badge offline_pause pause play_all play_arrow sponsorship_star youtube_music".split(" ")),bqg=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),iql=function(t){this.urlProvider=this.iconUrlProvider=t};
_.u(iql,xd);
iql.prototype.resolveIcon=function(t,E){t.iconName==="youtube_logo"&&(t.iconName="yt-logo-updated");if(t.iconName==="youtube_premium_logo"||t.iconName==="youtube_red_logo")t.iconName="yt-logo-red-updated";var p=Object.assign({},t);t.iconName==="menu"&&(_.r("enable_web_delhi_icons")||(p.iconName="bars_3"),p.iconStyle="youtube_outline");t.iconSetName==="socialNetworksRound"&&(t.iconName==="mail"&&(p.iconName="email"),t.iconName==="embed"&&(p.iconSize=60));t.iconName==="more"&&(p.iconName="overflow_horizontal");
t.iconName==="fullscreen"&&(p.iconName="screen_full");t.iconName==="premium_standalone"&&(p.iconName="premium_standalone_cairo");_.r("enable_connect_icon_update_web")&&t.iconName==="account_linked"&&(p.iconName="circles_overlap_check",p.iconStyle="youtube_fill");_.r("enable_connect_icon_update_web")&&t.iconName==="account_unlinked"&&(p.iconName="circles_overlap",p.iconStyle="youtube_outline");mX5.has(t.iconName)&&(p.iconStyle="youtube_fill");if(_.r("enable_web_delhi_icons")){t.iconName==="playlist_add"&&
(p.iconName="bookmark");t.iconName==="offline_pin"&&(p.iconName="arrow_down_circle",p.iconStyle="youtube_fill");if(t.iconName==="circles_overlap_check"||p.iconName==="circles_overlap_check")p.iconName="account_link",p.iconStyle="youtube_fill";bqg.has(t.iconName)&&(p.iconName+="_updated")}t=Object.assign({},p,{iconName:(xd.prototype.mapIconTypeToStandardName.call(this,p.iconName)||p.iconName).toLowerCase()});var U;return(t=G1J(S25,t,((U=this.urlProvider)==null?void 0:U.getUrl)||LXE,E))?t:xd.prototype.resolveIcon.call(this,
p,E)};
iql[aa]=[_.OB(t27)];_.q8t=1;var AO=function(t,E){this.JSC$17725_commandHandler=t;this.innertubeTransportService=E};
_.u(AO,kf);AO.prototype.resolveCommand=function(t,E){var p=this,U,x,A;return _.q(function(m){return(U=_.k(t,jrm))?m.return(Hq7(p,U,(x=E)==null?void 0:(A=x.form)==null?void 0:A.element)):m.return()})};
var Hq7=function(t,E,p){E={profileCardContext:E.profileCardContext,profileOwnerExternalChannelId:E.profileOwnerExternalChannelId};var U=_.Cf(aOT);return _.rY(t.innertubeTransportService,E,U).then(function(x){if(!x)throw new _.cC("GetProfileCard failed");if(x=x.popupCommand){t.JSC$17725_commandHandler.resolveCommand(x,{form:{element:p}});_.PH(_.Pu(),66557);x=x==null?void 0:x.clickTrackingParams;var A=_.vV();x&&A&&_.Pu().graftServerVe(x,A)}})};
AO[aa]=[_.ei,_.PL];var Yd=function(){};
_.u(Yd,kf);Yd.prototype.resolveCommand=function(t){var E,p;return _.q(function(U){E=_.k(t,O3o);if(!E)return U.return();p=Number(E.enableDelayedPacfLoggingTvMs);if(isNaN(p)){var x=KL();Td0(x,E,0)}else Td0(KL(),E,p);_.Do(U)})};_.MB=function(){};
_.u(_.MB,kf);
_.MB.prototype.resolveCommand=function(t,E){var p=this,U,x,A,m,b,f,B;return _.q(function(R){U=_.k(t,Xlr);A=(x=E.form)==null?void 0:x.element;b=(m=A)==null?void 0:m.closest("ytd-enforcement-message-view-model");if(!U||!b)return R.return();p.allowAdsAction||(f=U.fundingChoiceInstructionPageUrl,p.allowAdsAction=new Txs(window,_.q0(f)));var V=p.allowAdsAction;V.wallElement=b;V.allowAdsPopup.style.setProperty("display","flex","important");var Q=V.scrollManager;Q.isScrollingEnabled&&(Q.originalBodyOverflow=Q.JSC$10276_domHelper.JSC$9602_document_.body.style.overflow,
Q.JSC$10276_domHelper.JSC$9602_document_.body.style.overflow="hidden",Q.isScrollingEnabled=!1);V.wallElement.style.setProperty("display","none","important");m0o(V.accessibilityManager,V.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((B=p.allowAdsAction.allowAdsPopup)&&B instanceof HTMLElement)for(V=_.M(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),Q=V.next();!Q.done;Q=V.next()){var C=_.M(Q.value);Q=C.next().value;C=C.next().value;
B.style.setProperty(Q,C)}_.Do(R)})};
_.MB.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var mT=function(){};
_.u(mT,kf);mT.prototype.resolveCommand=function(t){var E;return _.q(function(p){E=_.k(t,Nw0);if(!E)return p.return();QgK(t);_.Do(p)})};_.bw=new _.gM("AI_CHAT_CONTROLLER_TOKEN");var iw=function(t,E,p,U){this.JSC$17740_commandHandler=t;this.store=E;this.getPlayerCb=p;this.aiChatController=U};
_.u(iw,kf);iw.prototype.pageContext=function(){var t=_.i7.currentPageSubTypeSelector(this.store.getState()),E;return(E=this.aiChatController)==null?void 0:_.f_8(E,t)};
iw.prototype.resolveCommand=function(t){var E=this,p,U,x,A,m;return _.q(function(b){p=_.k(t,srm);x=(U=p)==null?void 0:U.command;if(!x)return b.return();switch((m=p)==null?void 0:m.decorationType){case "FORM_DATA_DECORATOR_COMMAND_TYPE_AI_COMPANION_PANEL_REQUEST":var f="youchat-"+Date.now(),B;var R=String(Math.floor(((B=E.getPlayerCb())==null?void 0:B.getCurrentTime())||0)*1E3);A={inputComposerFormData:{clientMessageId:f,playerOffsetMs:R,pageContext:E.pageContext()}}}if(!A)return b.return();E.JSC$17740_commandHandler.resolveCommand(x,
{form:{formData:A}});_.Do(b)})};
iw[aa]=[_.ei,_.fS,BqE,_.OB(_.bw)];var Bgt=new _.gM("SESSION_STORAGE");var qB=function(t){this.sessionStorage=t("conversations")};
_.u(qB,kf);qB.prototype.resolveCommand=function(t){var E=this,p;return _.q(function(U){p=_.k(t,LCr);if(!p)return U.return();p.conversationId?E.sessionStorage.set("conversation_id",p.conversationId):E.sessionStorage.remove("conversation_id");_.Do(U)})};
qB[aa]=[Bgt];var H4=function(t){this.JSC$17752_commandHandler=t};
_.u(H4,kf);
H4.prototype.resolveCommand=function(t){var E=this,p,U,x,A,m,b,f,B;return _.q(function(R){if(R.nextAddress==1){p=_.k(t,HSs);if((U=p)==null||!U.text||!navigator.clipboard)return R.return();_.aR(R,2);return R.yield(navigator.clipboard.writeText(p.text),4)}if(R.nextAddress!=2){if(!p.successActions||p.successActions.length===0)return R.return();x=_.M(p.successActions);for(A=x.next();!A.done;A=x.next())m=A.value,E.JSC$17752_commandHandler.resolveCommand(m);return _.r7(R,0)}_.nB(R);if(!p.failureActions||p.failureActions.length===
0)return R.return();b=_.M(p.failureActions);for(f=b.next();!f.done;f=b.next())B=f.value,E.JSC$17752_commandHandler.resolveCommand(B);_.Do(R)})};
H4[aa]=[_.ei];var fa=function(t){this.JSC$17756_commandHandler=t};
_.u(fa,kf);
fa.prototype.resolveCommand=function(t,E){var p=this,U,x,A,m,b,f,B,R,V,Q;return _.q(function(C){switch(C.nextAddress){case 1:U=_.k(t,W3p);if(!U)return C.return();_.aR(C,2);if(!U.imageBytes&&!U.imageUrl)throw Error("Di");if(!U.imageUrl){if(U.imageBytes){A=U.imageBytes;m=A.replace(/-/g,"+").replace(/_/g,"/");var d=oBE(m);x=_.cw(d)}C.jumpTo(4);break}return C.yield(fetch(U.imageUrl),5);case 5:return b=C.yieldResult,C.yield(b.blob(),6);case 6:f=C.yieldResult,x=_.cw(f);case 4:V=(B=E)==null?void 0:(R=B.form)==
null?void 0:R.element;Q=document.createElement("a");pB(Q,x);V.appendChild(Q);Q.download="";Q.click();V.removeChild(Q);URL.revokeObjectURL(_.$I(x));U.successCommand&&p.JSC$17756_commandHandler.resolveCommand(U.successCommand);_.r7(C,0);break;case 2:_.nB(C),U.errorCommand&&p.JSC$17756_commandHandler.resolveCommand(U.errorCommand),_.Do(C)}})};
fa[aa]=[_.ei];var B4=function(t){this.store=t};
_.u(B4,kf);B4.prototype.resolveCommand=function(t){var E=this,p,U,x;return _.q(function(A){U=(p=_.k(t,_.L5r))==null?void 0:p.entityBatchUpdate;if(!U)return A.jumpTo(0);x=Object.assign({},U,{mutations:[].concat(_.KB(U.mutations||[]))});return A.yield(_.lU(x,E.store),0)})};
B4[aa]=[XY];var wxK=function(t){this.JSC$17763_commandHandler=t;this.feedbackDialogMap=new Map};
wxK.prototype.openDialog=function(t,E){(t=this.feedbackDialogMap.get(t))&&this.JSC$17763_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:t}},E)};
wxK[aa]=[_.ei];var Rt7=new _.gM("FEEDBACK_CONTROLLER_TOKEN");var wD=function(t,E,p,U){this.dispatch=t;this.controller=E;this.JSC$17766_commandHandler=p;this.innertubeTransportService=U};
_.u(wD,kf);
wD.prototype.resolveCommand=function(t,E){var p=this,U,x,A,m,b,f,B,R,V,Q,C,d,I,O,a,F,L,D,W,K,v,YL,bY,kL,R0;return _.q(function(j$){switch(j$.nextAddress){case 1:U=_.k(t,_.xZ);if(A=(x=U)==null?void 0:x.contentId)for(b=_.M(((m=U)==null?void 0:m.actions)||[]),f=b.next();!f.done;f=b.next())B=f.value,V28(p,B,A);Q=(R=E)==null?void 0:(V=R.form)==null?void 0:V.element;return _.r("wug_feedback_endpoint_use_its")?(I=new _.m8,I.endpoint=t,a=_.H9(p.innertubeTransportService,t,(O=E)==null?void 0:O.form),I.ajaxPromise=
a,_.kT(Q,"yt-service-request-sent",I),j$.yield(a,5)):j$.yield(_.JZ(Q,[t,{impression:(d=E)==null?void 0:d.disableClickTracking}]).catch(function(){}),4);
case 4:C=j$.yieldResult;j$.jumpTo(3);break;case 5:C=j$.yieldResult,_.kT(Q,"yt-service-request-completed",{data:C});case 3:W=((F=C)==null?void 0:(L=F.data)==null?void 0:L.feedbackResponses)||((D=C)==null?void 0:D.feedbackResponses);if((K=W)==null?0:K.length)(YL=(v=W[0])==null?void 0:v.followUpDialog)&&A&&(bY=p.controller)!=null&&bY.feedbackDialogMap.set(A,YL),(R0=(kL=W[0])==null?void 0:kL.isThumbnailReporting)&&p.JSC$17766_commandHandler.resolveCommand({signalAction:{signal:"CLOSE_POPUP"}});_.Do(j$)}})};
var V28=function(t,E,p){var U=_.k(E,_.ZU);if(U){U=_.M(U.commands||[]);for(var x=U.next();!x.done;x=U.next())V28(t,x.value,p)}_.k(E,_.KC)&&t.dispatch(_.P9("commandEntity",OA_(p),{key:p,command:E}));_.k(E,gEr)&&t.dispatch(_.P9("commandEntity",OA_(p),{key:p,command:E}))};
wD[aa]=[HaG,Rt7,_.ei,_.PL];var RT=function(t){this.controller=t};
_.u(RT,kf);RT.prototype.resolveCommand=function(t,E){var p=this,U,x,A,m;return _.q(function(b){U=_.k(t,_.QB);A=(x=U)==null?void 0:x.targetId;if(((m=U)==null?void 0:m.signal)!=="TELL_US_WHY"||!A)return b.return();p.controller.openDialog(A,E);_.Do(b)})};
RT[aa]=[Rt7];var VZ=new _.gM("APP_STORE_TOKEN");var QZ=function(t){this.store=t};
_.u(QZ,kf);QZ.prototype.resolveCommand=function(t,E){var p=this,U,x,A,m,b,f,B;return _.q(function(R){U=_.k(t,WGD);A=(x=U)==null?void 0:x.contentId;f=(m=E)==null?void 0:(b=m.form)==null?void 0:b.element;B=_.JZ(f,[t]);A&&p.undo(A);return R.yield(B,0)})};
QZ.prototype.undo=function(t){this.store.dispatch(_.P9("commandEntity",OA_(t),{key:t,command:void 0}))};
QZ[aa]=[VZ];var Ca=function(t){this.JSC$17778_commandHandler=t};
_.u(Ca,kf);Ca.prototype.resolveCommand=function(t){var E=this,p,U,x,A,m,b,f,B;return _.q(function(R){p=_.k(t,mwZ);U=p.flowStateKey;x=p.validationFailureCommand;A=p.submitValidFormCommand;m=SZi(_.ku,[U||""]);b=_.k(m,qvs);((f=b)==null?0:f.isValid)&&A&&E.JSC$17778_commandHandler.resolveCommand(A);((B=b)==null?0:B.isValid)||!x||E.JSC$17778_commandHandler.resolveCommand(x);_.Do(R)})};
Ca[aa]=[_.ei];var jt=function(t){this.innertubeTransportService=t};
_.u(jt,kf);jt.prototype.resolveCommand=function(t,E){var p=this,U;return _.q(function(x){return x.yield(_.H9(p.innertubeTransportService,t,(U=E)==null?void 0:U.form).then(function(A){var m,b;E==null||(m=E.commandController)==null||(b=m.onSuccess)==null||b.call(m,t,A)},function(A){var m,b;
E==null||(m=E.commandController)==null||(b=m.onServerError)==null||b.call(m,t,A)}),0)})};
jt[aa]=[_.PL];var rD=function(){};
_.u(rD,kf);rD.prototype.resolveCommand=function(t){var E,p,U,x;return _.q(function(A){if(E=_.k(t,_.Mms)){if(p=E.gtmId)U=_.qO("GL",""),_.x9(p,U);(x=E.gtmData)&&_.AS(x)}_.Do(A)})};var kd=function(t,E,p){this.innertubeTransportService=t;this.JSC$17789_actionRouter=E;this.JSC$17789_screenManager=p};
_.u(kd,kf);kd.prototype.resolveCommand=function(t){var E=this,p,U;return _.q(function(x){p=_.k(t,Ebm);if(!p)return x.return();U=p.command;if(!U)return x.return();E.JSC$17789_actionRouter.triggerAction("yt-insert-rich-section-action",p);return x.yield(_.H9(E.innertubeTransportService,U,{disableCache:!0}).then(function(A){t.clickTrackingParams&&(A==null?0:A.trackingParams)&&E.JSC$17789_screenManager.graftServerVe(A.trackingParams,_.$8(t.clickTrackingParams))}),0)})};
kd[aa]=[_.PL,ay,_.Yt];$s0.bind(null,dj);var QhC=$s0.bind(null,M7s);vBL.bind(null,dj);var Cgl=vBL.bind(null,M7s);SwO.bind(null,dj);var jhb=SwO.bind(null,M7s);var dD=function(){};
_.u(dD,kf);
dD.prototype.resolveCommand=function(t){var E,p,U,x,A,m,b,f,B,R;return _.q(function(V){E=_.k(t,DiG);if(!E)return V.return();U=((p=E.operations)==null?void 0:p.operations)||[];x=_.M(U);for(A=x.next();!A.done;A=x.next())if(m=A.value,m.insertItemSectionContent){var Q=m.insertItemSectionContent,C=Q.contents||[];Q.insertByPositionInSection?QhC(Q.insertByPositionInSection.sectionTargetId,C,Q.insertByPositionInSection.position):Q.insertByRelativePositionInSection&&Q.insertByRelativePositionInSection.sectionTargetId&&Q.insertByRelativePositionInSection.itemTargetId&&
Cgl(Q.insertByRelativePositionInSection.sectionTargetId,Q.insertByRelativePositionInSection.itemTargetId,C,Q.insertByRelativePositionInSection.relativePosition)}else m.replaceSection?(Q=m.replaceSection,C={},Q.replaceByTargetId?C=Q.replaceByTargetId:Q.replaceByGroupId&&(C={targetId:Q.replaceByGroupId.groupId,newContent:Q.replaceByGroupId.newContent,undoKey:""}),C.newContent&&iIs(C.targetId,{continuationItems:[C.newContent]})):m.removeItem?(Q=m.removeItem,Q.removeByTargetId&&Q.sectionTargetId&&jhb(Q.sectionTargetId,
Q.removeByTargetId.targetIds||[])):m.removeSection&&(m.removeSection.removeByTargetId?(b=void 0,rCo(((b=m.removeSection)==null?void 0:b.removeByTargetId.targetIds)||[])):m.removeSection.removeByGroupId&&(f=void 0,rCo(((f=m.removeSection)==null?void 0:f.removeByGroupId.groupIds)||[])));R=((B=E.operations)==null?void 0:B.scrollConfig)||{};kJL(R);_.Do(V)})};
var rCo=function(t){t=_.M(t);for(var E=t.next();!E.done;E=t.next())iIs(E.value,{continuationItems:[]})},kJL=function(t){if(t.scrollToItem){var E=t.scrollToItem.item||{},p=E.itemTargetId;
E=E.sectionTargetId;if(p&&E){var U=document.querySelector("[data-target-id="+E+"]"),x=U==null?void 0:U.querySelector("[data-target-id="+p+"]");U&&x&&setTimeout(function(){var A=x.offsetTop-U.offsetTop,m;if(((m=t.scrollToItem)==null?void 0:m.scrollPosition)==="SCROLL_POSITION_CENTER")A-=U.offsetHeight/2,A+=x.offsetHeight/2;else{var b;((b=t.scrollToItem)==null?void 0:b.scrollPosition)==="SCROLL_POSITION_END"&&(A-=U.offsetHeight,A+=x.offsetHeight)}var f;U.scroll({top:A,behavior:(t==null?void 0:(f=t.animationConfig)==
null?void 0:f.enableAnimation)===!1?"instant":"smooth"})},100)}}};var uw=new _.gM("CLIENT_NAME_TOKEN");var dXb=new _.gM("DEFAULT_STORE_EXPIRATION_TOKEN");var EL4=new _.gM("CLIENT_LOCATION_SERVICE_TOKEN");var JO=function(t,E,p){this.clientName=t||_.qO("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=E||_.ql.getInstance();this.JSC$17818_commandHandler=p||_.Gh.instance};
_.u(JO,kf);JO.prototype.resolveCommand=function(t){var E=this,p,U;return _.q(function(x){U=(p=_.k(t,djZ))==null?void 0:p.onComplete;E.clientLocationService.clearLocationPlayabilityToken(E.clientName);U&&E.JSC$17818_commandHandler.resolveCommand(U);_.Do(x)})};
JO[aa]=[uw,EL4,_.ei];var IT=function(t){this.innertubeTransportService=t};
_.u(IT,kf);IT.prototype.resolveCommand=function(t,E){var p=this,U,x,A,m;return _.q(function(b){A=(U=E)==null?void 0:(x=U.form)==null?void 0:x.element;return b.yield(_.H9(p.innertubeTransportService,t,(m=E)==null?void 0:m.form).then(function(f){yVO(A,new CustomEvent("yt-service-request-completed"),{data:f},_.qO("openPopupConfig"))}),0)})};
IT[aa]=[_.PL];var gD=function(){};
_.u(gD,kf);gD.prototype.resolveCommand=function(t){var E,p;return _.q(function(U){E=_.k(t,wUo);p=document.querySelector("mini-app-container-view-model");if(!E||!p)return U.return();E.isPlaying?p.dispatchEvent(new Event("play")):p.dispatchEvent(new Event("pause"));_.Do(U)})};var Zj=function(){};
_.u(Zj,kf);Zj.prototype.resolveCommand=function(t){var E,p,U,x,A,m,b;return _.q(function(f){E=_.k(t,El3);if((p=E)==null||!p.paramKeys)return f.return();U=E.paramKeys;x=_.QC(window.location.href);A=_.M(U);for(m=A.next();!m.done;m=A.next())b=m.value,x.JSC$10308_queryData_.remove(b);window.history.replaceState(window.history.state,document.title,x.toString());_.Do(f)})};var uWt=function(){this.dropdownMap=new Map};_.JC7=new _.gM("DROPDOWN_CONTROLLER_TOKEN");var Od=function(t){this.controller=t};
_.u(Od,kf);Od.prototype.resolveCommand=function(t){var E=this,p,U,x,A;return _.q(function(m){p=_.k(t,ZET);if(!p)return m.return();U=p;x=U.dropdownId;A=U.selectedOptionIndex;if(x===void 0||A===void 0)return m.return();var b=E.controller.dropdownMap.get(x);b&&b(A);_.Do(m)})};
Od[aa]=[_.JC7];var XC=function(t){this.controller=t};
_.u(XC,kf);XC.prototype.resolveCommand=function(t){var E=this,p;return _.q(function(U){return(p=_.k(t,GwW))?U.yield(E.controller.closeDialog(),0):U.return()})};
XC[aa]=[_.iL];var hO=function(t){this.controller=t};
_.u(hO,kf);hO.prototype.resolveCommand=function(t){var E=this,p,U;return _.q(function(x){p=_.k(t,jSp);if(!p)return x.return();var A,m=p.panelIdentifier||((A=p.identifier)==null?void 0:A.tag);if(!m)throw Error("Ei");return(U=m)?x.yield(E.controller.hidePanel({identifier:U}),0):x.jumpTo(0)})};
hO[aa]=[_.mp];var aT=function(t){this.controller=t};
_.u(aT,kf);aT.prototype.resolveCommand=function(t){var E=this,p;return _.q(function(U){return(p=_.k(t,Mps))?U.yield(E.controller.closeSheet(),0):U.return()})};
aT[aa]=[_.bL];var et=function(t,E){this.innertubeTransportService=t;this.controller=E};
_.u(et,kf);et.prototype.resolveCommand=function(t){var E=this,p,U,x,A;return _.q(function(m){if(m.nextAddress==1)return p=_.k(t,rLr),(U=p)!=null&&U.panelId?m.yield(E.controller.getReloadContinuation(p.panelId),2):m.return();if(m.nextAddress!=3)return(x=m.yieldResult)?m.yield(_.H9(E.innertubeTransportService,t,{continuation:x}),3):m.return();A=m.yieldResult;return m.yield(E.controller.updatePanel({identifier:p.panelId,panelContents:A.content,shouldFocus:!1}),0)})};
et[aa]=[_.PL,_.mp];var FC=function(t,E,p){this.innertubeTransportService=t;this.JSC$17859_screenManager=E;this.JSC$17859_commandHandler=p};
_.u(FC,kf);
FC.prototype.resolveCommand=function(t){var E=this,p,U,x,A,m,b;return _.q(function(f){if(f.nextAddress==1){p=_.k(t,_.wgo);if(!p)return f.return();if(p.commands)for(U=_.M(p.commands),x=U.next();!x.done;x=U.next())A=x.value,E.JSC$17859_commandHandler.resolveCommand(A,{disableClickTracking:!0});m=_.$8(t.clickTrackingParams);_.PH(E.JSC$17859_screenManager,21760,m,{layer:7,parentLayer:0});return f.yield(_.H9(E.innertubeTransportService,t),2)}b=f.yieldResult;if(!b)return f.return();E.JSC$17859_screenManager.graftServerVe(b.trackingParams,m,
7);_.Do(f)})};
FC[aa]=[_.PL,_.Yt,_.ei];var zP=new _.gM("PANEL_LOADING_STRATEGY_TOKEN");var lw=function(t,E){this.controller=t;this.panelLoadingStrategy=E};
_.u(lw,kf);
lw.prototype.resolveCommand=function(t,E){var p=this,U,x,A;return _.q(function(m){U=_.k(t,bET);if((x=U)==null||!x.panelLoadingStrategy)return m.return();A=function(b){var f,B,R,V,Q,C,d,I,O,a;return _.q(function(F){B=_.k((f=b.dialogViewModel)==null?void 0:f.header,OEZ);R={viewModel:b.dialogViewModel};V={};if(d=_.r("web_enable_dialog_header_label")?(Q=B)==null?void 0:(C=Q.headline)==null?void 0:C.content:void 0)V.ariaLabel=d;U.dismissOnBackgroundTap===!1&&(V.isModal=!0);return b.dialogViewModel?F.yield(p.controller.openDialog(R,
(a=(I=E)==null?void 0:(O=I.form)==null?void 0:O.element)!=null?a:document.body,V),0):F.return()})};
return m.yield(p.panelLoadingStrategy.execute({command:t,data:U.panelLoadingStrategy,renderFn:A,createScreenConfig:{layer:4}}),0)})};
lw[aa]=[_.iL,zP];var GP=function(t,E,p){this.innertubeTransportService=t;this.controller=E;this.JSC$17879_screenManager=p};
_.u(GP,kf);
GP.prototype.resolveCommand=function(t,E){var p=this,U,x,A,m,b,f,B,R,V,Q,C,d,I,O,a;return _.q(function(F){switch(F.nextAddress){case 1:U=_.k(t,_.Ua);if(!U)return F.return();var L,D=U.panelIdentifier||((L=U.identifier)==null?void 0:L.tag);if(!D)throw Error("Ei");x=D;return F.yield(p.controller.isVisible(x,!0),2);case 2:if((A=F.yieldResult)&&U.blockIfPanelOpen)return F.return();f=(b=(m=p.controller).getPanelContent)==null?void 0:b.call(m,x);if(!(L=f))if(U){var W;L=((W=U.globalConfiguration)==null?void 0:
W.initialState)||U.engagementPanel;if(W=!L)W=!!(U==null?0:(D=U.engagementPanelPresentationConfigs)==null?0:D.engagementPanelPopupPresentationConfig);W&&(L=_.c58(U.panelIdentifier,U.identifier))}else L=void 0;B=L;R=U.engagementPanelPresentationConfigs;V=U.engagementPanelExtras;return F.yield(p.controller.showPanel({identifier:x,panelContents:B,config:R,extras:V,target:(Q=E)==null?void 0:(C=Q.form)==null?void 0:C.element}),3);case 3:if(!U.globalConfiguration){F.jumpTo(0);break}if(U.globalConfiguration.reuseModelAndState&&
_.r("enable_ai_companion")&&(O=(I=(d=p.controller).getPanelContent)==null?void 0:I.call(d,x)))return F.return();_.PH(p.JSC$17879_screenManager,32633);return F.yield(_.H9(p.innertubeTransportService,t),5);case 5:return a=F.yieldResult,p.JSC$17879_screenManager.graftServerVe(a.trackingParams),F.yield(p.controller.updatePanel({identifier:x,panelContents:a.content,shouldFocus:!0,extras:V,updatePanelContinuationData:a.updatePanelContinuationData}),0)}})};
GP[aa]=[_.PL,_.mp,_.Yt];var na=function(t,E){this.controller=t;this.panelLoadingStrategy=E};
_.u(na,kf);
na.prototype.resolveCommand=function(t,E){var p=this,U,x,A,m,b,f,B,R,V,Q,C,d;return _.q(function(I){U=_.k(t,_.TE);if((x=U)==null||!x.panelLoadingStrategy)return I.return();b=I_C(p.controller,(A=E)==null?void 0:(m=A.form)==null?void 0:m.element);B=(f=U.contextualSheetPresentationConfig)==null?void 0:f.position;V=(R=U.contextualSheetPresentationConfig)==null?void 0:R.hoverConfig;C=(Q=U.contextualSheetPresentationConfig)==null?void 0:Q.expandToFullWidth;d=function(O){var a,F;return _.q(function(L){if(!O.sheetViewModel)return L.return();if(V){var D=
p.controller;D.shouldPreventClosingWhileHovered=!!V.preventCloseWhileHovered;var W;D.hideDelayMs=(W=V.hideDelayMs)!=null?W:0}return L.yield(p.controller.openSheet({viewModel:O.sheetViewModel,sheetPosition:B,expandToFullWidth:C},b,(a=E)==null?void 0:(F=a.form)==null?void 0:F.element),0)})};
return I.yield(p.panelLoadingStrategy.execute({command:t,data:U.panelLoadingStrategy,renderFn:d,createScreenConfig:{layer:0}}),0)})};
na[aa]=[_.bL,zP];var NB=function(t,E){this.controller=t;this.JSC$17890_commandHandler=E};
_.u(NB,kf);NB.prototype.resolveCommand=function(t,E){var p=this,U,x,A;return _.q(function(m){if(m.nextAddress==1){U=_.k(t,JLr);var b=_.k(U.showCommand,_.Ua),f,B,R=(B=b==null?void 0:b.panelIdentifier)!=null?B:b==null?void 0:(f=b.identifier)==null?void 0:f.tag;if(!R)throw Error("Fi");x=R;return m.yield(p.controller.isVisible(x),2)}return(A=m.yieldResult)?m.yield(p.controller.hidePanel({identifier:x}),0):m.yield(p.JSC$17890_commandHandler.resolveCommand(U.showCommand,E),0)})};
NB[aa]=[_.mp,_.ei];var Dj=function(t,E,p){this.innertubeTransportService=t;this.controller=E;this.JSC$17893_screenManager=p};
_.u(Dj,kf);
Dj.prototype.resolveCommand=function(t){var E=this,p,U,x,A,m,b,f,B,R,V,Q,C,d,I,O,a,F,L,D,W,K,v;return _.q(function(YL){switch(YL.nextAddress){case 1:return U=p=_.k(t,Xg4),x=U.targetPanelIdentifier,A=U.contentSourcePanelIdentifier,m=U.globalConfiguration,((b=x)==null?0:b.tag)&&((f=A)==null?0:f.tag)?m?YL.yield(E.controller.showPanel({identifier:x.tag,panelContents:_.c58(x.tag,x)}),5):YL.yield((Q=(V=E.controller).getPanel)==null?void 0:Q.call(V,A.tag),4):YL.return();case 4:C=YL.yieldResult;B=(d=C)==
null?void 0:(O=(I=d).getPanelContent)==null?void 0:O.call(I);YL.jumpTo(3);break;case 5:return YL.yield(_.H9(E.innertubeTransportService,t),6);case 6:a=YL.yieldResult,((F=a)==null?0:F.trackingParams)&&E.JSC$17893_screenManager.graftServerVe(a.trackingParams),B=(L=a)==null?void 0:L.content,R=(D=a)==null?void 0:D.updatePanelContinuationData;case 3:if(K=(W=B)==null?void 0:W.engagementPanelSectionListRenderer)return YL.yield(E.controller.showPanel({identifier:x.tag,panelUpdatableFields:{content:K.content,
secondaryHeaderContent:(v=K.header)!=null?v:{},targetId:K.targetId,loggingDirectives:K.loggingDirectives},updatePanelContinuationData:R}),0);YL.jumpTo(0)}})};
Dj[aa]=[_.PL,_.mp,_.Yt];var sd=function(){};
_.u(sd,kf);sd.prototype.resolveCommand=function(t){var E,p,U;return _.q(function(x){if(x.nextAddress==1)return(E=_.k(t,e8r))?x.yield(_.an(),2):x.return();p=x.yieldResult;if(!p)return x.return();var A=p,m=(U=E)==null?void 0:U.languageCode,b;(A==null?0:(b=A.isReady)==null?0:b.call(A))&&(m=t9O(A,m))&&A.setAudioTrack(m);_.Do(x)})};var La=function(){};
_.u(La,RU);_.Y=La.prototype;_.Y.getApiPaths=function(){return IzX};
_.Y.getExtension=function(t){return _.k(t,_.HD)};
_.Y.isNavigationCommand=function(){return!0};
_.Y.JSC$14452_getStoreKey=function(t){if((t=this.getExtension(t))&&t.videoId){var E={videoId:t.videoId};t.playlistId&&(E.playlistId=t.playlistId);t.index&&(E.index=t.index);t.params&&(E.params=t.params);return _.q_("next",E)}};
_.Y.JSC$14445_getClientScreen=function(t){var E;return((E=t.contentPlaybackContext)==null?void 0:E.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.Y.JSC$14445_buildRequest=function(t,E,p){E.videoId&&(t.videoId=E.videoId);E.playlistId&&(t.playlistId=E.playlistId);E.params&&(t.params=E.params);E.index!==void 0&&(t.playlistIndex=E.index);t.racyCheckOk=!(!p.racyCheckOk&&!E.racyCheckOk);t.contentCheckOk=!!E.contentCheckOk;p.contentPlaybackContext&&(t.autonavState=p.contentPlaybackContext.autonavState,t.playbackContext={vis:p.contentPlaybackContext.vis,lactMilliseconds:p.contentPlaybackContext.lactMilliseconds});p.prefetchPlaybackContext&&(t.context.request||
(t.context.request={}),t.context.request.isPrefetch=!0);_.r("captions_hats_killswitch")||(E=_.nF().getFlag(65),E=E!=null?!E:!1,p=!!_.WL("yt-player-sticky-caption"),t.captionsRequested=E&&p)};
_.Y.getRequestConfig=function(t){t=this.JSC$14452_getStoreKey(t);var E;t&&(E={storeStrategy:{storeKey:t}});_.r("web_log_player_watch_next_ticks")&&(E=E||{},E.requestTick="wn_s",E.responseTick="wn_r");return E};
var P4=function(){};
_.u(P4,RU);P4.prototype.getApiPaths=function(){return IzX};
P4.prototype.getExtension=function(t){return _.k(t,_.x1)};
P4.prototype.JSC$14445_buildRequest=function(t,E){E.token&&(t.continuation=E.token)};var TP=function(){this.innerTubeTransport=_.X3().resolve(_.PL);this.miniplayerService=_.X3().resolve(_.bf)};
_.u(TP,kf);var gso=function(t){var E;return _.q(function(p){E=_.qO("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;t.JSC$17918_mainAppPlayer=new gy(E);document.addEventListener("yt-navigate-start",t.JSC$17918_pauseOnNavigation.bind(t));_.Do(p)})},Zqo=function(t,E){var p,U,x,A;
return _.q(function(m){if(m.nextAddress==1){p=new La;U=p.JSC$14445_getRequest(E);if(!U)return m.return(void 0);x=U.innerTubeRequest;return m.yield(_.rY(t.innerTubeTransport,x,"/youtubei/v1/next"),2)}A=m.yieldResult;var b;var f,B,R=(b=A.contents)==null?void 0:(f=b.twoColumnWatchNextResults)==null?void 0:(B=f.playlist)==null?void 0:B.playlist,V;b=(R==null?0:(V=R.contents)==null?0:V.length)?R:void 0;return m.return(b)})},Oq8=function(t,E){var p,U,x,A,m;
return _.q(function(b){if(b.nextAddress==1)return p=t.JSC$17918_mainAppPlayer,b.yield(p.api,2);if(b.nextAddress!=3)return U=b.yieldResult,E.watchCommand?b.yield(Zqo(t,E.watchCommand),3):b.return();x=b.yieldResult;if((A=x)==null||!A.contents)return b.return();m=x.contents.map(function(f){var B;return(B=f.playlistPanelVideoRenderer)==null?void 0:B.videoId}).filter(function(f){return!!f}).map(function(f){return{encrypted_id:f}});
U.updatePlaylist({video:m});_.Do(b)})},Xxl=function(t,E){var p,U,x;
return _.q(function(A){return A.nextAddress==1?(p=t.JSC$17918_mainAppPlayer,x=(U=E.playerParams)!=null?U:"",E.externalVideoId?A.yield(p.loadVideoWithPlayerVars({videoId:E.externalVideoId,audio_only:"1",player_params:x}),2):A.jumpTo(2)):E.watchCommand?A.yield(Oq8(t,E),0):A.jumpTo(0)})};
TP.prototype.JSC$17918_pauseOnNavigation=function(){var t=this,E,p;return _.q(function(U){if(U.nextAddress==1)return E=t.JSC$17918_mainAppPlayer,U.yield(E.api,2);p=U.yieldResult;p.pauseVideo();_.Do(U)})};
TP.prototype.pauseVideo=function(){var t=this,E,p;return _.q(function(U){if(U.nextAddress==1)return E=t.JSC$17918_mainAppPlayer,U.yield(E.api,2);p=U.yieldResult;p.pauseVideo();_.Do(U)})};
TP.prototype.playVideo=function(){var t=this,E,p;return _.q(function(U){if(U.nextAddress==1)return E=t.JSC$17918_mainAppPlayer,U.yield(E.api,2);p=U.yieldResult;p.playVideo();_.Do(U)})};
var htd=function(t){var E,p;return _.q(function(U){if(U.nextAddress==1)return E=t.JSC$17918_mainAppPlayer,U.yield(E.api,2);p=U.yieldResult;p.mute();_.Do(U)})},a_J=function(t){var E,p;
return _.q(function(U){if(U.nextAddress==1)return E=t.JSC$17918_mainAppPlayer,U.yield(E.api,2);p=U.yieldResult;p.unMute();_.Do(U)})};
TP.prototype.stopVideo=function(){var t=this,E,p;return _.q(function(U){if(U.nextAddress==1)return E=t.JSC$17918_mainAppPlayer,U.yield(E.api,2);p=U.yieldResult;p.stopVideo();_.Do(U)})};
var ete=function(t,E){return _.q(function(p){switch(p.nextAddress){case 1:switch(E){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return p.jumpTo(2);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return p.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_STOP":return p.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return p.jumpTo(5);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return p.jumpTo(6)}p.jumpTo(0);break;case 2:return p.yield(t.playVideo(),8);case 8:p.jumpTo(0);break;case 3:return p.yield(t.pauseVideo(),
9);case 9:p.jumpTo(0);break;case 4:return p.yield(t.stopVideo(),10);case 10:p.jumpTo(0);break;case 5:return p.yield(htd(t),11);case 11:p.jumpTo(0);break;case 6:return p.yield(a_J(t),12);case 12:p.jumpTo(0)}})};
TP.prototype.resolveCommand=function(t){var E=this,p,U,x,A,m,b;return _.q(function(f){return f.nextAddress==1?(p=_.k(t,Alp),((U=p)==null?0:U.newPlaybackParams)||((x=p)==null?0:x.controlAction)?E.JSC$17918_mainAppPlayer?f.jumpTo(2):f.yield(gso(E),2):f.return()):((A=p)==null?0:A.newPlaybackParams)?(E.miniplayerService.isMiniplayerActive()&&((m=E.miniplayerService.getPlayerElement())==null||m.pause()),b=p.newPlaybackParams,b.externalVideoId||b.externalPlaylistId?f.yield(Xxl(E,b),0):f.return()):f.yield(ete(E,
p.controlAction),0)})};var oT=function(t){this.JSC$17924_commandHandler=t};
_.u(oT,kf);
oT.prototype.resolveCommand=function(t){var E=this,p,U,x,A,m,b;return _.q(function(f){if(f.nextAddress==1)return(p=_.k(t,Fqo))?f.yield(_.an(),2):f.return();U=f.yieldResult;if(!U)return f.return();var B=U,R=(x=p)==null?void 0:x.languageCode,V=(A=p)==null?void 0:A.isAutoTranslated;B.getVideoData&&_.pmO(B).length&&((R=xuK(B,R,V))?B.setOption("captions","track",R):(B.setOption("captions","stickyLoading",{}),B.setOption("captions","track",{})));m=U.isSubtitlesOn()?_.zF("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.zF("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");b=_.rN(m,5E3);E.JSC$17924_commandHandler.resolveCommand(b);_.Do(f)})};
oT[aa]=[_.ei];var W4=function(t,E){this.shortsPlayerPromise=t;this.JSC$17928_commandHandler=E};
_.u(W4,kf);
W4.prototype.resolveCommand=function(t){var E=this,p,U,x,A,m,b,f,B;return _.q(function(R){if(R.nextAddress==1)return(p=_.k(t,U7r))?R.yield(E.shortsPlayerPromise,2):R.return();U=R.yieldResult;var V=Akj(U);V!=null&&V.length||(U.loadModule("captions"),V=Akj(U));x=V;if((A=x)==null||!A.length)return m=_.zF("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),b=_.rN(m),E.JSC$17928_commandHandler.resolveCommand(b),R.return();U.toggleSubtitles();f=U.isSubtitlesOn()?_.zF("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.zF("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");B=_.rN(f);E.JSC$17928_commandHandler.resolveCommand(B);_.Do(R)})};
W4[aa]=[_.p_Z,_.ei];var $d=function(t){this.JSC$17931_actionRouter=t;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(E,p){E.triggerAction("yt-dismiss-shopping-timely-shelf-action",p);(E=_.X3().resolve(_.OB(_.BqZ)))&&E.dismissFeaturedProductOverlay()}]])};
_.u($d,kf);$d.prototype.resolveCommand=function(t){var E=this,p,U,x;return _.q(function(A){p=_.k(t,n3m);if((U=p)==null||!U.overlayId)return A.return();x=E.dismissPlayerOverlayActions.get(p.overlayId);if(!x)throw Error("Gi`"+p.overlayId);x(E.JSC$17931_actionRouter,p);_.Do(A)})};
$d[aa]=[ay];var Ka=function(t){this.JSC$17935_playerPromise=t};
_.u(Ka,kf);Ka.prototype.resolveCommand=function(t){var E=this,p,U,x,A;return _.q(function(m){if(m.nextAddress==1)return(p=_.k(t,dF0))?m.yield(E.JSC$17935_playerPromise,2):m.return();U=m.yieldResult;x=U.getVideoData().video_id;p.videoId===x&&(A=Number(p.offsetFromVideoStartMilliseconds),A>=0&&U.seekTo(A/1E3));_.Do(m)})};
Ka[aa]=[_.gG];var FiJ=_.X1("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),v4=function(t){this.store=t};
_.u(v4,kf);
var zt8=function(t){var E,p,U,x;return _.q(function(A){if(A.nextAddress==1)return E=_.qO("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,p=_.qO("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,U=E||p,t.JSC$17939_mainAppPlayer=new gy(U),A.yield(t.JSC$17939_mainAppPlayer.api,2);x=A.yieldResult;x.addEventListener("onStateChange",t.JSC$17939_playerStateChangeListener.bind(t));document.addEventListener("yt-page-data-updated",t.JSC$17939_pauseOnNavigation.bind(t));window.addEventListener("state-navigatestart",
t.JSC$17939_pauseOnNavigation.bind(t));_.Do(A)})};
v4.prototype.JSC$17939_playerStateChangeListener=function(t){switch(t){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"}l_K(this)};
var l_K=function(t){t.store.dispatch(_.P9("sfvAudioItemCurrentlyPlayingEntity",FiJ,{key:FiJ,externalVideoId:t.externalVideoId,sfvAudioItemPlaybackState:t.playbackState,nowPlayingEntityValue:t.nowPlayingEntityValue}))};
v4.prototype.JSC$17939_pauseOnNavigation=function(){var t=this,E,p,U,x;return _.q(function(A){if(A.nextAddress==1){if(!t.JSC$17939_mainAppPlayer){var m=new _.cC("Error: mainAppPlayer is unavailable",t.JSC$17939_mainAppPlayer);_.bV(m);return A.return()}return A.yield(t.JSC$17939_mainAppPlayer.api,2)}E=A.yieldResult;U=(p=E)==null?void 0:p.getPlayerState();U!==1||(x=E)!=null&&x.pauseVideo();_.Do(A)})};
v4.prototype.playVideo=function(t,E,p){var U=this,x,A;return _.q(function(m){if(m.nextAddress==1)return m.yield((x=U.JSC$17939_mainAppPlayer)==null?void 0:x.api,2);A=m.yieldResult;if(!U.JSC$17939_mainAppPlayer||!A){var b=new _.cC("Error: mainAppPlayer is unavailable",U.JSC$17939_mainAppPlayer);_.bV(b);return m.return()}return m.yield(U.JSC$17939_mainAppPlayer.loadVideoWithPlayerVars({videoId:U.externalVideoId,audio_only:"1",start:t/1E3,end:t/1E3+E,player_params:p}),0)})};
v4.prototype.pauseVideo=function(){var t=this,E,p;return _.q(function(U){if(U.nextAddress==1){if(!t.JSC$17939_mainAppPlayer){var x=new _.cC("Error: mainAppPlayer is unavailable",t.JSC$17939_mainAppPlayer);_.bV(x);return U.return()}return U.yield(t.JSC$17939_mainAppPlayer.api,2)}E=U.yieldResult;(p=E)==null||p.pauseVideo();_.Do(U)})};
v4.prototype.resolveCommand=function(t){var E=this,p,U,x,A,m,b,f,B,R,V,Q,C,d,I,O,a,F,L,D;return _.q(function(W){if(W.nextAddress==1)return p=_.k(t,tZo),x=(U=p)==null?void 0:U.nowPlayingEntityValue,m=(A=p)==null?void 0:A.externalVideoId,V=Number((R=(b=p)==null?void 0:(f=b.defaultStartPoints)==null?void 0:(B=f[0])==null?void 0:B.offsetMs)!=null?R:"0"),a=Number((O=(Q=p)==null?void 0:(C=Q.defaultStartPoints)==null?void 0:(d=C[0])==null?void 0:(I=d.duration)==null?void 0:I.seconds)!=null?O:"15"),D=(L=
(F=p)==null?void 0:F.playerParams)!=null?L:"",x&&m?E.JSC$17939_mainAppPlayer?W.jumpTo(2):W.yield(zt8(E),2):W.return();if(W.nextAddress!=6){if(E.nowPlayingEntityValue&&x===E.nowPlayingEntityValue)return E.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?W.yield(E.pauseVideo(),0):W.yield(E.playVideo(V,a,D),0);E.externalVideoId=m;E.nowPlayingEntityValue=x;E.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return W.yield(E.playVideo(V,a,D),6)}l_K(E);return W.jumpTo(0)})};
v4[aa]=[XY];var yZ=function(t){this.JSC$17957_commandHandler=t};
_.u(yZ,kf);yZ.prototype.resolveCommand=function(t,E){var p=this,U,x,A;return _.q(function(m){if(m.nextAddress==1)return(U=_.k(t,z8m))?m.yield(_.an(),2):m.return();x=m.yieldResult;if(!x)return m.return();(A=YOY(x))&&p.JSC$17957_commandHandler.resolveCommand(A,E);_.Do(m)})};
yZ[aa]=[_.ei];var St=function(t){this.JSC$17963_commandHandler=t};
_.u(St,kf);St.prototype.resolveCommand=function(t,E){var p=this,U,x,A,m,b;return _.q(function(f){if(f.nextAddress==1)return(U=_.k(t,lmW))?f.yield(_.an(),2):f.return();x=f.yieldResult;if(!x)return f.return();(A=qOK(x))?p.JSC$17963_commandHandler.resolveCommand(A,E):(m=_.zF("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),b=_.rN(m),p.JSC$17963_commandHandler.resolveCommand(b));_.Do(f)})};
St[aa]=[_.ei];var c4=function(t){this.JSC$17966_playerPromise=t};
_.u(c4,kf);c4.prototype.resolveCommand=function(t){var E=this,p,U;return _.q(function(x){if(x.nextAddress==1)return(p=_.k(t,Lgr))?x.yield(E.JSC$17966_playerPromise,2):x.return();U=x.yieldResult;U.isFullscreen()&&U.wakeUpControls();_.Do(x)})};
c4[aa]=[_.gG];var tp=function(t){this.JSC$17969_playerPromise=t};
_.u(tp,kf);tp.prototype.resolveCommand=function(t){var E=this,p,U,x,A,m;return _.q(function(b){if(b.nextAddress==1){p=_.k(t,unW);if(!p)return b.return();U=p.overlayRenderer;return U?(x=_.k(U,$TX))?b.yield(E.JSC$17969_playerPromise,3):b.jumpTo(0):b.return()}A=b.yieldResult;A.renderChapterSeekingAnimation(1,_.R4(x.text),(m=x.icon)==null?void 0:m.iconType);_.Do(b)})};
tp[aa]=[_.gG];var Ee=function(t){this.store=t};
_.u(Ee,kf);
Ee.prototype.resolveCommand=function(t){var E=this,p,U,x;return _.q(function(A){if(A.nextAddress==1){p=_.k(t,YcT);if(!p)return A.return();U="";(x=E.store.getState().collabInviteLink)&&p.id===x.playlistId?U=x.inviteLinkURL:p.shortUrl&&(U=p.shortUrl);return U?A.yield(navigator.clipboard.writeText(U),3):A.jumpTo(0)}var m={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.zF("COPY_LINK_SUCCESS_TOAST")}}}}};_.X3().resolve(_.ei).resolveCommand(m);_.Do(A)})};
Ee[aa]=[VZ];var pK=function(t,E){this.innertubeTransportService=t;this.JSC$17979_commandHandler=E};
_.u(pK,kf);pK.prototype.resolveCommand=function(t,E){var p=this,U,x,A,m,b,f,B,R,V,Q;return _.q(function(C){if(C.nextAddress==1)return(U=_.k(t,_.Qs))?C.yield(_.H9(p.innertubeTransportService,t,(x=E)==null?void 0:x.form),2):C.return();(A=C.yieldResult)&&A.errorMetadata&&(m=A,b=_.rN(m.error.message),p.JSC$17979_commandHandler.resolveCommand(b));f=A;if((B=f)==null?0:B.actions)for(R=_.M(f.actions),V=R.next();!V.done;V=R.next())Q=V.value,p.JSC$17979_commandHandler.resolveCommand(Q);_.Do(C)})};
pK[aa]=[_.PL,_.ei];var Ue=function(){};
_.u(Ue,kf);Ue.prototype.resolveCommand=function(t){var E;return _.q(function(p){E=_.k(t,vb3);if(!E)return p.return();(new Zv4(E)).show();_.Do(p)})};_.xV=new _.gM("PLAYLIST_EDIT_CONTROLLER_TOKEN");var Ap=function(t,E,p,U){this.store=t;this.innertubeTransportService=E;this.controller=p;this.JSC$17987_commandHandler=U};
_.u(Ap,kf);
Ap.prototype.resolveCommand=function(t,E){var p=this,U,x,A,m,b,f,B,R,V,Q,C,d,I,O,a,F,L,D,W,K,v,YL,bY,kL,R0,j$;return _.q(function(lY){if(lY.nextAddress==1){U=_.k(t,_.HH);if(!U)return lY.return();if(U.clientActions){x=_.M(U.clientActions);for(A=x.next();!A.done;A=x.next())m=A.value,p.JSC$17987_commandHandler.resolveCommand(m,E);var Tt,si=E==null?void 0:(Tt=E.form)==null?void 0:Tt.element;si&&_.kT(si,"yt-dismissible-item-action",U.clientActions)}return lY.yield(_.H9(p.innertubeTransportService,t,(b=
E)==null?void 0:b.form),2)}if(f=lY.yieldResult)f.errorMetadata?(B=f,R=_.rN(B.error.message),p.JSC$17987_commandHandler.resolveCommand(R),"error"in f&&((V=E)==null?0:(Q=V.commandController)==null?0:Q.onServerError)&&((C=E)==null||(d=C.commandController)==null||d.onServerError(t,f))):(I=E)==null||(O=I.commandController)==null||(F=(a=O).onSuccess)==null||F.call(a,t,f);L=f;((D=L)==null?0:D.collaborationInviteLink)&&U.playlistId&&(_.r("web_enable_invite_collaborators_link")||_.r("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
p.store.dispatch(_.Jj({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:U.playlistId,inviteLinkUrl:L.collaborationInviteLink}}));((W=L)==null?0:W.redirectEndpoint)&&p.JSC$17987_commandHandler.resolveCommand(L.redirectEndpoint);((K=L)==null?0:(v=K.newHeader)==null?0:v.playlistHeaderRenderer)?GJL(p.controller,L.newHeader.playlistHeaderRenderer):((YL=L)==null?0:(bY=YL.newHeader)==null?0:bY.musicEditablePlaylistDetailHeaderRenderer)&&GJL(p.controller,L.newHeader.musicEditablePlaylistDetailHeaderRenderer);
p.controller.playlistVideoListElement&&((kL=L)==null?0:(R0=kL.playlistEditResults)==null?0:(j$=R0[0])==null?0:j$.playlistEditVideoAddedResultData)&&((si=p.controller.playlistVideoListElement)==null||si.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:L.playlistEditResults[0].playlistEditVideoAddedResultData})));_.Do(lY)})};
Ap[aa]=[_.fS,_.PL,_.xV,_.ei];var YV=function(t,E){this.controller=t;this.JSC$17997_commandHandler=E};
_.u(YV,kf);YV.prototype.resolveCommand=function(t,E){var p=this,U,x,A;return _.q(function(m){U=_.k(t,MEr);p.controller.showRefreshPill&&((x=U)==null?0:x.command)&&(p.JSC$17997_commandHandler.resolveCommand((A=U)==null?void 0:A.command,E),p.controller.showRefreshPill=!1);_.Do(m)})};
YV[aa]=[_.TA,_.ei];var Mb=function(t,E){this.store=t;this.JSC$18001_commandHandler=E||_.Gh.instance};
_.u(Mb,kf);Mb.prototype.resolveCommand=function(t,E){var p=this,U,x,A,m,b,f,B,R,V,Q;return _.q(function(C){U=_.k(t,rlm);x=p.store.getState().radioButtonGroup;if((A=U)==null?0:A.command)p.JSC$18001_commandHandler.resolveCommand((m=U)==null?void 0:m.command,E);else if(x&&((b=U)==null?void 0:b.formId)===x.currentFormId)for(f=Object.values(x.commandsMap),B=_.M(f),R=B.next();!R.done;R=B.next())V=R.value,(Q=_.AJ(V))&&p.JSC$18001_commandHandler.resolveCommand(Q,E);_.Do(C)})};
Mb[aa]=[_.fS];var mU=new _.gM("USER_PREFS");var bp=function(t){this.JSC$18006_prefCookie=t};
_.u(bp,kf);bp.prototype.resolveCommand=function(t){var E=this,p;return _.q(function(U){(p=_.k(t,sJ4))&&typeof p.useListView==="boolean"&&(_.N_(0,155,p.useListView),E.JSC$18006_prefCookie.save());_.Do(U)})};
bp[aa]=[mU];var ip=function(t){this.JSC$18010_prefCookie=t};
_.u(ip,kf);ip.prototype.resolveCommand=function(t){var E=this,p,U,x,A,m;return _.q(function(b){p=_.k(t,SW4);if((U=p)==null||!U.gl)return b.return();x=p.gl;A={persist_gl:"1",gl:x};E.JSC$18010_prefCookie.set("gl",x);E.JSC$18010_prefCookie.save();m=Ggo(A);_.xR(m);_.Do(b)})};
ip[aa]=[mU];var qb=function(t){this.JSC$18014_prefCookie=t};
_.u(qb,kf);qb.prototype.resolveCommand=function(t){var E=this,p,U;return _.q(function(x){p=_.k(t,bQf);if(!p)return x.return();U=!1;p.flagNum&&typeof p.value==="boolean"?(_.N_(0,p.flagNum,p.value),U=!0):p.key&&typeof p.stringValue==="string"&&(E.JSC$18014_prefCookie.set(p.key,p.stringValue),U=!0);U&&E.JSC$18014_prefCookie.save();_.Do(x)})};
qb[aa]=[mU];var HI=new _.gM("PREF_STORAGE_PROMISE_TOKEN");var fK=function(t){this.JSC$18018_prefStoragePromise=t};
_.u(fK,kf);fK.prototype.resolveCommand=function(t){var E=this,p,U;return _.q(function(x){if(x.nextAddress==1)return(p=_.k(t,qcW))?x.yield(E.JSC$18018_prefStoragePromise,2):x.return();U=x.yieldResult;return U===void 0||p.key===void 0||p.value===void 0?x.return():x.yield(U.set(p.key,p.value),0)})};
fK[aa]=[HI];var BI=function(t){this.innertubeTransportService=t};
_.u(BI,kf);BI.prototype.resolveCommand=function(t,E){var p=this,U,x;return _.q(function(A){(U=_.k(t,_.uh4))&&U&&U.isFirstRequest&&(_.yS("search_overview_answer"),_.SR("so_rq",void 0,"search_overview_answer"));return A.yield(_.H9(p.innertubeTransportService,t,(x=E)==null?void 0:x.form),0)})};
BI[aa]=[_.PL];var ns5=function(){};
_.u(ns5,kf);
ns5.prototype.resolveCommand=function(t){var E,p,U,x,A,m,b,f,B;return _.q(function(R){E=_.k(t,k00);if((p=E)==null?0:p.sectionIdentifier){if(E.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(x=(U=document.getElementsByTagName(E.sectionIdentifier))==null?void 0:U.item(0))x.scrollIntoView({behavior:"smooth"}),(A=qnD(x))&&A.focus({preventScroll:!0});return R.return()}m=document.querySelector("[section-identifier="+E.sectionIdentifier+"]");b=document.querySelector("[section-identifier="+E.referenceSectionIdentifier+
"]");if(!m)return R.return();f=E.verticalScrollOffsetDp?E.verticalScrollOffsetDp:0;b&&(f-=b.offsetTop);window.scrollTo({top:m.offsetTop+f,behavior:"smooth"});(B=qnD(m))&&B.focus({preventScroll:!0})}_.Do(R)})};var wv=function(t){this.JSC$18030_commandHandler=t};
_.u(wv,kf);
wv.prototype.resolveCommand=function(t){var E=this,p,U,x,A,m,b,f;return _.q(function(B){if(B.nextAddress==1){p=_.k(t,$Y0);if(!p||!p.imageBytes||!navigator.clipboard)return B.return();if(p.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.bV(Error("Ii")),B.return();_.aR(B,2);x=(U=p)==null?void 0:U.imageBytes;A=x.replace(/-/g,"+").replace(/_/g,"/");m=oBE(A);b={};f=[new ClipboardItem((b[m.type]=m,b))];return B.yield(navigator.clipboard.write(f),4)}if(B.nextAddress!=2)return p.successCommand&&
E.JSC$18030_commandHandler.resolveCommand(p.successCommand),_.r7(B,0);_.nB(B);p.errorCommand&&E.JSC$18030_commandHandler.resolveCommand(p.errorCommand);_.Do(B)})};
wv[aa]=[_.ei];var Rg=function(t,E){this.innertubeTransportService=t;this.JSC$18034_commandHandler=E};
_.u(Rg,kf);Rg.prototype.resolveCommand=function(t,E){var p=this,U,x,A,m,b;return _.q(function(f){if(f.nextAddress==1)return(U=_.k(t,K3W))?f.yield(_.H9(p.innertubeTransportService,t,(x=E)==null?void 0:x.form),2):f.return();(A=f.yieldResult)&&A.errorMetadata&&U.onFailureCommand&&p.JSC$18034_commandHandler.resolveCommand(U.onFailureCommand);m=A;((b=m)==null?0:b.shareCommand)&&p.JSC$18034_commandHandler.resolveCommand(m.shareCommand,E);_.Do(f)})};
Rg[aa]=[_.PL,_.ei];var Vh=function(){};
_.u(Vh,kf);Vh.prototype.resolveCommand=function(t){var E,p;return _.q(function(U){E=_.k(t,xU0);if(!E||!navigator.share)return U.return();p={url:E.url};try{return U.return(navigator.share(p))}catch(x){}_.Do(U)})};var Qh=function(){};
_.u(Qh,kf);Qh.prototype.resolveCommand=function(){return _.q(function(t){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.Do(t)})};var CK=function(t){this.JSC$18044_navigationConfirmationService=t};
_.u(CK,kf);CK.prototype.resolveCommand=function(){var t=this;return _.q(function(E){t.JSC$18044_navigationConfirmationService.cancelPendingNavigation();_.Do(E)})};
CK[aa]=[ts];var jy=function(t){this.JSC$18047_screenManager=t};
_.u(jy,kf);jy.prototype.resolveCommand=function(t,E){var p=this,U,x,A,m,b,f,B;return _.q(function(R){x=(U=E.form)==null?void 0:U.event;m=(A=E.form)==null?void 0:A.element;if(!x)throw new _.cC("Event not passed in when resolving command");b=_.M(x.composedPath());for(f=b.next();!f.done;f=b.next())if(B=f.value,B.tagName==="YT-COPY-LINK-RENDERER")return B.copyUrlToClipboard(),m&&_.bA(p.JSC$18047_screenManager,m),R.return();_.Do(R)})};
jy[aa]=[_.Yt];var rv=function(){this.JSC$18051_miniAppClientDataProvider=_.X3().resolve(_.O1)};
_.u(rv,kf);rv.prototype.resolveCommand=function(){var t=this,E,p;return _.q(function(U){if(t.JSC$18051_miniAppClientDataProvider.clientData.has("video_id")){var x=t.JSC$18051_miniAppClientDataProvider,A=x.clientData.get("video_id");A&&x.clientData.delete("video_id");E="https://youtube.com/watch?v="+A;p=_.vw(E);if(p===void 0)throw Error("Ji`"+E);_.b0(window,p)}_.Do(U)})};var kV=function(){};
_.u(kV,kf);kV.prototype.resolveCommand=function(){return _.q(function(t){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.Do(t)})};var dv=function(){};
_.u(dv,kf);dv.prototype.resolveCommand=function(){var t;return _.q(function(E){if(E.nextAddress==1)return E.yield(_.YuO(window.document.documentElement),2);(t=document.querySelector("mini-app-container-view-model iframe"))&&t.focus();_.Do(E)})};var up=function(t){this.JSC$18058_navigationConfirmationService=t};
_.u(up,kf);
up.prototype.resolveCommand=function(){var t=this;return _.q(function(E){var p=t.JSC$18058_navigationConfirmationService,U=_.X3().resolve(_.W5),x;if(((x=p.navigateParams)==null?void 0:x.data)!==void 0){var A;_.n0G(U,p.navigateParams.endpoint,p.navigateParams.data,(A=p.navigateParams.navigationType)!=null?A:1,p.navigateParams.tempData,p.navigateParams.isMiniplayer,void 0,!0);p.navigateParams=void 0;p.customConfirmationCommand=void 0}else p.navigateParams&&(U.navigate(p.navigateParams.endpoint,p.navigateParams.reload,
p.navigateParams.params,p.navigateParams.tempData,p.navigateParams.requestType,p.navigateParams.createScreenConfig,!0),p.navigateParams=void 0,p.customConfirmationCommand=void 0);_.Do(E)})};
up[aa]=[ts];var Jp=function(){};
_.u(Jp,kf);Jp.prototype.resolveCommand=function(){return _.q(function(t){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.Do(t)})};var Ig=function(t){this.JSC$18063_prefStorage=t};
_.u(Ig,kf);Ig.prototype.resolveCommand=function(){var t=this,E,p;return _.q(function(U){switch(U.nextAddress){case 1:return U.yield(t.JSC$18063_prefStorage,2);case 2:return(E=U.yieldResult)?U.yield(E.set("sfvle",!1),3):U.return();case 3:return U.yield(E.set("sfvles",!0),4);case 4:p=_.nF(),_.N_(0,203,!1),_.N_(0,204,!0),p.save(),_.Do(U)}})};
Ig[aa]=[HI];var gv=function(t){this.JSC$18066_prefStorage=t};
_.u(gv,kf);gv.prototype.resolveCommand=function(){var t=this,E,p;return _.q(function(U){switch(U.nextAddress){case 1:return U.yield(t.JSC$18066_prefStorage,2);case 2:return(E=U.yieldResult)?U.yield(E.set("sfvle",!0),3):U.return();case 3:return U.yield(E.set("sfvles",!0),4);case 4:p=_.nF(),_.N_(0,203,!0),_.N_(0,204,!0),p.save(),_.Do(U)}})};
gv[aa]=[HI];_.NgC=new _.gM("SNACKBAR_CONTROLLER_TOKEN");_.DXe=new _.gM("SHOULD_SHOW_PIVOT_BAR_TOKEN");var Zr=function(t){this.controller=t};
_.u(Zr,kf);Zr.prototype.resolveCommand=function(t){var E=this,p;return _.q(function(U){p=_.k(t,mTs);if(!p)return U.return();var x=E.controller;x.closeSnackbarFn&&x.closeSnackbarFn();_.Do(U)})};
Zr[aa]=[_.NgC];var Oe=function(t,E){this.controller=t;this.JSC$18073_sheetController=E};
_.u(Oe,kf);Oe.prototype.resolveCommand=function(t,E){var p=this,U,x,A,m,b,f;return _.q(function(B){U=_.k(t,iEs);if(!U)return B.return();m=I_C(p.JSC$18073_sheetController,(x=E)==null?void 0:(A=x.form)==null?void 0:A.element);b=_.k(U.content,u_s);if(!b)return B.return();var R=p.controller,V=b,Q=(f=U.animationStyle)!=null?f:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(R.showSnackbarFn)R.showSnackbarFn({snackbarViewModel:V,animationStyle:Q,durationMs:U.durationSeconds*1E3,target:m});else throw Error("Cj");_.Do(B)})};
Oe[aa]=[_.NgC,_.bL];var Xw=function(){};
_.u(Xw,kf);Xw.prototype.resolveCommand=function(t){var E;return _.q(function(p){E=_.k(t,iQm);if(!E||typeof E.key!=="string"||typeof E.value!=="string")return p.return();window.localStorage.setItem(E.key,E.value);_.Do(p)})};var hp=function(t){this.store=t};
_.u(hp,kf);hp.prototype.resolveCommand=function(t){var E=this,p;return _.q(function(U){p=_.k(t,ooY);if(!p||!p.stepId||!p.token)return U.return();E.store.dispatch(Abr({stepId:p.stepId,token:p.token,isSelected:!1}));_.Do(U)})};
hp[aa]=[VZ];var ag=function(t,E,p){this.innertubeTransportService=t;this.store=E;this.JSC$18085_screenManager=p};
_.u(ag,kf);
ag.prototype.resolveCommand=function(t){var E=this,p,U,x,A,m,b,f,B,R,V,Q,C,d,I,O,a,F,L,D,W,K,v,YL,bY,kL,R0,j$,lY;return _.q(function(Tt){p=_.k(t,pip);if(!p||(U=p.stepIds)==null||!U.length)return Tt.return();x=E.store.getState().talkToRecs;A=[];m=[];b=_.M(p.stepIds);for(f=b.next();!f.done;f=b.next())for(B=f.value,R=void 0,(V=(R=x.stepStates[B])==null?void 0:R.userQuery)&&m.push({userQuery:p.submitEmptyUserQuery?"":V.userQuery,userQueryToken:V.token}),C=Q=void 0,d=(C=(Q=x.stepStates[B])==null?void 0:
Q.selectionStates)!=null?C:{},I=_.M(Object.entries(d)),O=I.next();!O.done;O=I.next())a=O.value,F=_.M(a),L=F.next().value,D=F.next().value,W=L,K=D,K.isSelected&&A.push(W);v={selectedChipTokens:A,userQueries:m,submittedStepIds:p.stepIds};YL={browseTalk2recsFormData:v};p.browseEndpoint?(bY=t,_.tJ(bY,_.lC,p.browseEndpoint)):p.command&&(bY=p.command);if(!bY)return Tt.return();kL=_.k(bY,_.x1);if((R0=kL)==null?0:R0.command)if(j$=_.k(kL.command,cBf))lY=_.Gh.instance,lY.resolveCommand(kL.command);return Tt.yield(_.H9(E.innertubeTransportService,
bY,{formData:YL,disableCache:!0}).then(function(si){(si==null?0:si.trackingParams)&&E.JSC$18085_screenManager.graftServerVe(si==null?void 0:si.trackingParams)}),0)})};
ag[aa]=[_.PL,VZ,_.Yt];var ey=function(t){this.store=t};
_.u(ey,kf);
ey.prototype.resolveCommand=function(t){var E=this,p,U,x,A,m,b,f,B;return _.q(function(R){p=_.k(t,TBY);if(!p||!p.stepId)return R.return();if(p.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_APPEND_TO_QUERY")m=(A=(U=E.store.getState().talkToRecs.stepStates[p.stepId])==null?void 0:(x=U.userQuery)==null?void 0:x.userQuery)!=null?A:"",b=m.length>0?". ":"",f=m+b+p.selectedText,E.store.dispatch(Yq0({stepId:p.stepId,userQueryToken:"",userQuery:f}));else if(p.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_REPLACE_QUERY")E.store.dispatch(Yq0({stepId:p.stepId,userQueryToken:"",
userQuery:(B=p.selectedText)!=null?B:""}));else{if(!p.token)return R.return();E.store.dispatch(Abr({stepId:p.stepId,token:p.token,isSelected:!0}))}_.Do(R)})};
ey[aa]=[VZ];var Fw=function(t){this.store=t};
_.u(Fw,kf);Fw.prototype.resolveCommand=function(t,E){var p=this,U,x,A,m,b,f;return _.q(function(B){U=_.k(t,Uir);if(!U||!U.stepId)return B.return();b=(m=(x=E)==null?void 0:(A=x.form)==null?void 0:A.userQuery)!=null?m:"";p.store.dispatch(Yq0({stepId:U.stepId,userQuery:b,userQueryToken:(f=U.userQueryToken)!=null?f:""}));_.Do(B)})};
Fw[aa]=[VZ];_.shK=new _.gM("TIMELY_ACTIONS_CONTROLLER_TOKEN");var zY=function(t){this.controller=t};
_.u(zY,kf);zY.prototype.resolveCommand=function(t){var E=this,p,U,x,A;return _.q(function(m){p=_.k(t,Ct0);if(!p)return m.return();U=p;x=U.id;A=U.isVisible;if(x===void 0||A===void 0)return m.return();var b;(b=E.controller.timelyActionsMap.get(x))==null||b(x,A);_.Do(m)})};
zY[aa]=[_.shK];var Lig=function(){this.timelyActionsMap=new Map};var lp=function(t){this.JSC$18111_commandHandler=t};
_.u(lp,kf);lp.prototype.resolveCommand=function(t){var E=this,p,U,x,A,m;return _.q(function(b){p=_.k(t,_.IJW);if(!p)return b.return();A=(U=p.item)==null?void 0:(x=U.notificationTextRenderer)==null?void 0:x.successResponseText;if(!A)return b.return();m=_.jL(A);E.JSC$18111_commandHandler.resolveCommand(m);_.Do(b)})};
lp[aa]=[_.ei];var GY=function(t,E){this.innertubeTransportService=t;this.JSC$18116_playerApiPromise=E};
_.u(GY,kf);
GY.prototype.resolveCommand=function(t){var E=this,p,U,x,A,m,b,f,B,R;return _.q(function(V){if(V.nextAddress==1)return V.yield(E.JSC$18116_playerApiPromise,2);p=V.yieldResult;U=p.getOption("captions","track");x=Object.assign({},_.k(t,_.ax0));(m=(A=p.getVideoData())==null?void 0:A.video_id)?x.externalVideoId=m:_.Ra(Error("Ki"));if((b=U)==null?0:b.languageCode)x.languageCode=U.languageCode;if((f=U)==null?0:f.kind)x.kind=U.kind;if((B=U)==null?0:B.name)x.name=U.name;R=Object.assign({},t,{getTranscriptEndpoint:x});return V.yield(_.H9(E.innertubeTransportService,
R),0)})};
GY[aa]=[_.PL,_.gG];var nK=function(){};
_.u(nK,kf);nK.prototype.resolveCommand=function(t){var E,p,U,x,A,m,b,f;return _.q(function(B){E=_.k(t,jur);if((p=E)==null||!p.paramKeyValuePairs)return B.return();U=window.location.href;x=_.M(E.paramKeyValuePairs);for(A=x.next();!A.done;A=x.next())m=A.value,m.key&&m.value&&(b={},U=_.rs(U,(b[m.key]=m.value,b)));f=_.X3().resolve(_.ve);_.KE(f,U);_.Do(B)})};_.Nb=new _.gM("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var Dr=function(t,E,p,U){this.controller=t;this.JSC$18123_playerApiPromise=E;this.innertubeTransportService=p;this.JSC$18123_commandHandler=U};
_.u(Dr,kf);
Dr.prototype.resolveCommand=function(t){var E=this,p,U,x,A,m,b,f,B,R,V,Q,C,d,I,O,a,F,L;return _.q(function(D){if(D.nextAddress==1){p=_.k(t,Peo);if((U=p)==null||!U.watchEndpoint)return D.return();x=new La;A=x.JSC$14445_getRequest(p.watchEndpoint);if(!A)return D.return();m=p.watchEndpoint.clickTrackingParams;return D.yield(_.rY(E.innertubeTransportService,A.innerTubeRequest,A.input,m,A.config),2)}if(D.nextAddress!=3)return b=D.yieldResult,D.yield(E.JSC$18123_playerApiPromise,3);f=D.yieldResult;f.updateVideoData({raw_watch_next_response:b});
if(d=(B=b)==null?void 0:(R=B.contents)==null?void 0:(V=R.twoColumnWatchNextResults)==null?void 0:(Q=V.results)==null?void 0:(C=Q.results)==null?void 0:C.contents)O=(I=d.find(function(W){return W.videoPrimaryInfoRenderer}))==null?void 0:I.videoPrimaryInfoRenderer,((a=O)==null?0:a.subtitle)&&Pg8(E.controller,O.subtitle);
(L=(F=b)==null?void 0:F.onUiReady)&&E.JSC$18123_commandHandler.resolveCommand(L);_.Do(D)})};
Dr[aa]=[_.Nb,_.gG,_.PL,_.ei];var Tgd=function(){this.subtitleChangeCallbackMap=new Map},Pg8=function(t,E){t=_.M(t.subtitleChangeCallbackMap.values());
for(var p=t.next();!p.done;p=t.next())p=p.value,p(E)};var se=function(t,E){this.JSC$18133_commandHandler=t;this.innertubeTransportService=E};
_.u(se,kf);
se.prototype.resolveCommand=function(t,E){var p=this,U,x,A,m,b,f,B,R,V,Q,C,d,I,O,a,F,L;return _.q(function(D){switch(D.nextAddress){case 1:return(A=(U=E)==null?void 0:(x=U.form)==null?void 0:x.element)&&_.bm(A),m=_.nF().get("hl"),b="",_.aR(D,2),D.yield(wmE(m),4);case 4:b=D.yieldResult;_.r7(D,3);break;case 2:return _.nB(D),A&&_.im(A),_.bV(Error("Mi"),"ERROR"),D.return();case 3:f=_.k(t,xks);if(!f)return A&&_.im(A),D.return();(V=(B=f.commerceActionConfig)==null?void 0:(R=B.commandLifeCycleConfig)==null?
void 0:R.onStartCommand)&&p.JSC$18133_commandHandler.resolveCommand(V);return D.yield(_.H9(p.innertubeTransportService,t,{client_data:{paymentsClientToken:{token:b}}}),5);case 5:(Q=D.yieldResult)?(A&&_.im(A),((O=Q)==null?0:O.command)&&p.JSC$18133_commandHandler.resolveCommand(Q.command),(L=(a=f.commerceActionConfig)==null?void 0:(F=a.commandLifeCycleConfig)==null?void 0:F.onSuccessCommand)&&p.JSC$18133_commandHandler.resolveCommand(L)):(A&&_.im(A),_.bV(Error("Ni")),(I=(C=f.commerceActionConfig)==
null?void 0:(d=C.commandLifeCycleConfig)==null?void 0:d.onFailureCommand)&&p.JSC$18133_commandHandler.resolveCommand(I)),_.Do(D)}})};
se[aa]=[_.ei,_.PL];var LK=function(t,E,p){this.store=t;this.JSC$18149_commandHandler=E;this.innertubeTransportService=p};
_.u(LK,kf);
LK.prototype.resolveCommand=function(t,E){var p=this,U,x,A,m,b,f,B,R,V;return _.q(function(Q){U=_.k(t,Acp);x=U.googlePaymentPayload;U.onStartCommand&&p.JSC$18149_commandHandler.resolveCommand(U.onStartCommand);A=x.encryptedPurchaseParams;m=x.ypcLogWalletAnalyticDataEndpoint;b=U.serializedTransactionFlowLoggingParams;f=x.serializedPaymentsClientParams;B=U.ypcCujContext;V=QYj(p.innertubeTransportService,(R=E)==null?void 0:R.form,A,m,b,f,B);return Q.return(V.then(function(C){RG$(E==null?void 0:E.form,
!1);var d=p.store,I=p.JSC$18149_commandHandler,O=C.integratorData;O==null||O===""||C.error!=null?(String(C.error)==="-1"&&U.onDismissCommand?I.resolveCommand(U.onDismissCommand):String(C.error)!=="-1"&&U.onFailureCommand&&I.resolveCommand(U.onFailureCommand),String(C.error)!=="-1"&&String(C.error)!=="132"&&_.bV(Error("Oi"),"ERROR")):(U.googlePaymentEntityKey&&d.dispatch(_.P9("commerceAcquisitionClientPayloadEntity",U.googlePaymentEntityKey,{key:U.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:O,
fundsGuaranteeCallbackClientData:C.integratorClientCallbackData}}})),U.onSuccessCommand&&I.resolveCommand(U.onSuccessCommand));_.gu()},function(C){RG$(E==null?void 0:E.form,!1);
_.bV(C,"ERROR");U.onFailureCommand&&p.JSC$18149_commandHandler.resolveCommand(U.onFailureCommand)}))})};
LK[aa]=[XY,_.ei,_.PL];var PI=function(t,E){this.JSC$18153_commandHandler=t;this.purchaseManager=E};
_.u(PI,kf);
PI.prototype.resolveCommand=function(t){var E=this,p,U,x,A,m,b,f,B,R;return _.q(function(V){p=_.k(t,YMG);((U=p)==null?0:(x=U.commandLifeCycleConfig)==null?0:x.onStartCommand)&&E.JSC$18153_commandHandler.resolveCommand(p.commandLifeCycleConfig.onStartCommand);if(!((A=p)==null?0:(m=A.googlePaymentPurchaseManagerPayload)==null?0:m.securePayloadBytes))return _.bV(Error("Pi"),"ERROR"),V.return();b=Slo(_.c8(p.googlePaymentPurchaseManagerPayload.securePayloadBytes));f=_.nF().get("hl");B=_.fd();OBb(b.serialize(),
f,function(Q){B.resolve(Q)},function(Q){B.reject(Q)},B.resolve);
R=B.promise;return V.return(R.then(function(Q){if(Q)if(Q==null?0:Q.errorCode){_.bV(Error("Qi`"+Q.errorCode),"ERROR");var C,d;((C=p)==null?0:(d=C.commandLifeCycleConfig)==null?0:d.onFailureCommand)&&E.JSC$18153_commandHandler.resolveCommand(p.commandLifeCycleConfig.onFailureCommand)}else if(Q==null?0:Q.isCancelled){var I,O;((I=p)==null?0:(O=I.commandLifeCycleConfig)==null?0:O.onCancelCommand)&&E.JSC$18153_commandHandler.resolveCommand(p.commandLifeCycleConfig.onCancelCommand)}else{var a,F;((a=p)==
null?0:(F=a.commandLifeCycleConfig)==null?0:F.onSuccessCommand)&&E.JSC$18153_commandHandler.resolveCommand(p.commandLifeCycleConfig.onSuccessCommand)}},function(Q){_.bV(Q,"ERROR");
var C,d;((C=p)==null?0:(d=C.commandLifeCycleConfig)==null?0:d.onFailureCommand)&&E.JSC$18153_commandHandler.resolveCommand(p.commandLifeCycleConfig.onFailureCommand)}))})};
PI[aa]=[_.ei,XTe];var osd=function(t,E){this.JSC$18161_commandHandler=t;this.commandAllowlistOverride=E;var p;this.commandAllowlist=(p=this.commandAllowlistOverride)!=null?p:MXJ};
osd.prototype.handleResponse=function(t,E,p){var U,x=E==null?void 0:(U=E.config)==null?void 0:U.command;if(!x||this.commandAllowlist.some(function(A){return!!_.k(x,A)})){E=void 0;
p!==void 0&&(E={form:{element:p}});t.onResponseReceivedCommand&&this.JSC$18161_commandHandler.resolveCommand(t.onResponseReceivedCommand,E);t.onResponseReceivedAction&&this.JSC$18161_commandHandler.resolveCommand(t.onResponseReceivedAction,E);t.onResponseReceivedEndpoint&&this.JSC$18161_commandHandler.resolveCommand(t.onResponseReceivedEndpoint,E);t.command&&this.JSC$18161_commandHandler.resolveCommand(t.command,E);if(t.onResponseReceivedCommands)for(p=_.M(t.onResponseReceivedCommands),U=p.next();!U.done;U=
p.next())this.JSC$18161_commandHandler.resolveCommand(U.value,E);if(t.onResponseReceivedActions)for(p=_.M(t.onResponseReceivedActions),U=p.next();!U.done;U=p.next())this.JSC$18161_commandHandler.resolveCommand(U.value,E);if(t.onResponseReceivedEndpoints)for(p=_.M(t.onResponseReceivedEndpoints),U=p.next();!U.done;U=p.next())this.JSC$18161_commandHandler.resolveCommand(U.value,E);if(t.actions)for(t=_.M(t.actions),p=t.next();!p.done;p=t.next())this.JSC$18161_commandHandler.resolveCommand(p.value,E)}};
osd[aa]=[_.ei,_.OB(Y30)];var WiK=new _.gM("INNERTUBE_TOKEN_SERVICE");var $X9=new _.gM("SCHEDULER_TOKEN");var KiJ=function(t){this.scheduler=t;t={};this.tokenMap=(t.app={},t.user={},t)};
KiJ.prototype.handleResponse=function(t,E){if(!E)throw Error("Ri");var p;if(t=(p=t.responseContext)==null?void 0:p.innertubeTokenJar){if(t.appTokens){var U,x,A;p=(U=E.innerTubeRequest.context)==null?void 0:(x=U.request)==null?void 0:(A=x.innertubeTokenJar)==null?void 0:A.appTokens;vsJ(this,t.appTokens,this.tokenMap.app,p)}if(t.userTokens){var m,b,f;E=(m=E.innerTubeRequest.context)==null?void 0:(b=m.request)==null?void 0:(f=b.innertubeTokenJar)==null?void 0:f.userTokens;vsJ(this,t.userTokens,this.tokenMap.user,
E)}}};
KiJ.prototype.processContext=function(t){t.request||(t.request={});var E=Object.keys(this.tokenMap.app).length,p=Object.keys(this.tokenMap.user).length;if(E||p)t.request.innertubeTokenJar={},E&&(t.request.innertubeTokenJar.appTokens=[].concat(_.KB(Object.values(this.tokenMap.app).flat()))),p&&(t.request.innertubeTokenJar.userTokens=[].concat(_.KB(Object.values(this.tokenMap.user).flat())))};
var vsJ=function(t,E,p,U){E=_.M(E);for(var x=E.next(),A={};!x.done;A={token$jscomp$139:void 0},x=E.next()){A.token$jscomp$139=x.value;if(A.token$jscomp$139.type===void 0)throw new _.cC("InnerTube token has no type",A.token$jscomp$139);if(A.token$jscomp$139.clearTokens)p[A.token$jscomp$139.type]=[];else if(A.token$jscomp$139.value!==void 0){p[A.token$jscomp$139.type]||(p[A.token$jscomp$139.type]=[]);if(U!==void 0&&U.length){x=_.M(U);for(var m=x.next(),b={};!m.done;b={requestToken:void 0},m=x.next())b.requestToken=
m.value,m=p[A.token$jscomp$139.type].findIndex(function(f){return function(B){return B===f.requestToken||(0,_.Kq.equals)(B,f.requestToken)}}(b)),m>-1&&p[A.token$jscomp$139.type].splice(m,1)}p[A.token$jscomp$139.type].push(A.token$jscomp$139);
A.token$jscomp$139.maxAgeSeconds&&Number(A.token$jscomp$139.maxAgeSeconds)>0&&t.scheduler.addLowPriorityJob(function(f){return function(){var B=p[f.token$jscomp$139.type].indexOf(f.token$jscomp$139);B>-1&&p[f.token$jscomp$139.type].splice(B,1)}}(A),Number(A.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.cC("InnerTube token has no value",A.token$jscomp$139);
}};
KiJ[aa]=[$X9];var yC7=new _.gM("LOCAL_INNERTUBE_ROUTER_TOKEN"),S8L=new _.gM("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var TY=function(t){this.serviceMap=t};
TY.prototype.shouldPreferLocalResponse=function(t,E){return(t=cCo(this,t))?t.shouldPreferLocalResponse(E):!1};
TY.prototype.localInnertubeResponse=function(t,E){var p=this,U;return _.q(function(x){return(U=cCo(p,t))?x.return(U.localInnertubeResponse(E)):x.return(Promise.reject(Error("Si")))})};
TY.prototype.canProvideFallbackResponse=function(t,E){return(t=cCo(this,t))?t.canProvideFallbackResponse(E):!1};
TY.prototype.localFallbackInnertubeResponse=function(t,E){var p=this,U;return _.q(function(x){return(U=cCo(p,t))?x.return(U.localFallbackInnertubeResponse(E)):x.return(Promise.reject(Error("Si")))})};
var cCo=function(t,E){E=_.LR(E);return E?(t=t.serviceMap[E])?t:null:null};
TY[aa]=[S8L];var Kr=function(){};
Kr.prototype.shouldPreferLocalResponse=function(){return!1};
Kr.prototype.localInnertubeResponse=function(){return _.q(function(t){return t.return(Promise.reject(Error("Ti")))})};
Kr.prototype.canProvideFallbackResponse=function(){return!0};
Kr.prototype.localFallbackInnertubeResponse=function(){var t,E,p;return _.q(function(U){t=l7("CLOSE_POPUP");E={openPopupAction:jYl()};p={actions:[t,E]};return U.return(p)})};var z$J=function(t,E){this.JSC$18210_upliftPromise=t;this.store=E};
_.Y=z$J.prototype;_.Y.shouldPreferLocalResponse=function(t){var E=t.videoId,p;if(p=E)p=$7K(this.store.getState().entities,t.videoId);return p&&KIl(this.store.getState().entities,E)?kTt(this.store.getState().entities,t.playlistId):!1};
_.Y.localInnertubeResponse=function(t){var E=this,p;return _.q(function(U){return(p=E.getPlayerResponse(t))?U.return(Promise.resolve(p)):U.return(Promise.reject(Error("Ui")))})};
_.Y.canProvideFallbackResponse=function(t){return!!t.videoId};
_.Y.localFallbackInnertubeResponse=function(t){var E=this,p;return _.q(function(U){if(U.nextAddress==1)return U.yield(E.JSC$18210_upliftPromise,2);p=E.getPlayerResponse(t);var x;p?x=U.return(Promise.resolve(p)):x=op(E.store.getState().entities,t.videoId)?U.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.kh(_.zF("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:ZY0()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
U.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.kh(_.zF("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:gyl()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return x})};
_.Y.getPlayerResponse=function(t){return r4L(this.store.getState().entities,t.videoId)};var $u=function(t,E){this.localPlayerService=t;this.localWatchNextService=E};
$u.prototype.shouldPreferLocalResponse=function(t){var E=t.playerRequest;t=t.watchNextRequest;return!!(E&&this.localPlayerService.shouldPreferLocalResponse(E)&&t&&this.localWatchNextService.shouldPreferLocalResponse(t))};
$u.prototype.localInnertubeResponse=function(t){var E=this,p,U,x,A;return _.q(function(m){if(m.nextAddress==1){p=t.playerRequest;U=t.watchNextRequest;if(!p||!U)throw new _.cC("Missing streaming request",t);return m.yield(E.localPlayerService.localInnertubeResponse(p),2)}if(m.nextAddress!=3)return x=m.yieldResult,m.yield(E.localWatchNextService.localInnertubeResponse(U),3);A=m.yieldResult;return m.return({playerResponse:x,watchNextResponse:A})})};
$u.prototype.canProvideFallbackResponse=function(t){var E=t.playerRequest;t=t.watchNextRequest;return!!(E&&this.localPlayerService.canProvideFallbackResponse(E)&&t&&this.localWatchNextService.canProvideFallbackResponse(t))};
$u.prototype.localFallbackInnertubeResponse=function(t){var E=this,p,U,x,A;return _.q(function(m){if(m.nextAddress==1)return p=t.playerRequest,U=t.watchNextRequest,p&&U?m.yield(E.localPlayerService.localFallbackInnertubeResponse(p),2):m.return(Promise.reject(new _.cC("Missing streaming request",t)));if(m.nextAddress!=3)return x=m.yieldResult,m.yield(E.localWatchNextService.localFallbackInnertubeResponse(U),3);A=m.yieldResult;return m.return({playerResponse:x,watchNextResponse:A})})};var Ts=function(t){this.JSC$18220_persistentStorePromiseAccessor=t};
Ts.prototype.shouldPreferLocalResponse=function(){return!1};
Ts.prototype.localInnertubeResponse=function(){return _.q(function(t){return t.return(Promise.reject(Error("Vi")))})};
Ts.prototype.canProvideFallbackResponse=function(){return!0};
Ts.prototype.localFallbackInnertubeResponse=function(){var t=this,E,p;return _.q(function(U){return U.nextAddress==1?U.yield(t.JSC$18220_persistentStorePromiseAccessor(),2):U.nextAddress!=3?(E=U.yieldResult)?U.yield(E.get("service:guide:fallback"),3):U.return(Promise.reject(Error("Wi"))):(p=U.yieldResult)&&_.Z2(p)?U.return(duY(_.Z2(p))):U.return(Promise.reject(Error("Xi")))})};var vS=function(){};
vS.prototype.shouldPreferLocalResponse=function(){return!1};
vS.prototype.localInnertubeResponse=function(){return _.q(function(t){return t.return(Promise.reject(Error("Yi")))})};
vS.prototype.canProvideFallbackResponse=function(){return!0};
vS.prototype.localFallbackInnertubeResponse=function(){var t,E,p;return _.q(function(U){t=l7("CLOSE_POPUP");E={openPopupAction:jYl()};p={actions:[t,E]};return U.return(p)})};var PS=function(){this.urlMap=tdJ;this.fallbackCommand=_.tL};
PS.prototype.shouldPreferLocalResponse=function(t){return(t=t.url)?!!EWK(this,t):!1};
PS.prototype.localInnertubeResponse=function(t){var E=this,p;return _.q(function(U){return(p=t.url)?U.return(pQJ(t,EWK(E,p))):U.return(Promise.reject(Error("Zi")))})};
PS.prototype.canProvideFallbackResponse=function(){return!0};
PS.prototype.localFallbackInnertubeResponse=function(t){var E=this,p,U,x,A,m,b,f;return _.q(function(B){p=t.url;if(!p)return B.return(pQJ(t,E.fallbackCommand));if(U=EWK(E,p))return B.return(pQJ(t,U));x=void 0;A=_.LR(p);A==="/watch"&&(m=_.Rc(p,"v"))&&(f=(b=_.Rc(p,"list"))!=null?b:void 0,x=_.rm(m,f));x||(x=E.fallbackCommand);return B.return(pQJ(t,x))})};
var EWK=function(t,E){if(E)return t.urlMap[_.M_(E)]},pQJ=function(t,E){E&&t.parentTrackingParams&&(E.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:t.parentTrackingParams}},E.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:E})};var o7=function(t,E,p){this.JSC$18231_upliftPromise=t;this.store=E;this.JSC$18231_persistentStorePromiseAccessor=p};
o7.prototype.shouldPreferLocalResponse=function(){return!1};
o7.prototype.localInnertubeResponse=function(){return _.q(function(t){return t.return(Promise.reject(Error("$i")))})};
o7.prototype.canProvideFallbackResponse=function(){return!0};
o7.prototype.localFallbackInnertubeResponse=function(){var t=this;return _.q(function(E){return E.return(Uy5(t))})};
var Uy5=function(t){var E,p;return _.q(function(U){if(U.nextAddress==1)return U.yield(gI(t.JSC$18231_upliftPromise,t.store),2);E=U.yieldResult;p={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[rk_(E)]}}}};return U.return(xyt(t,p))})},xyt=function(t,E){var p,U;
return _.q(function(x){if(x.nextAddress==1)return x.yield(t.JSC$18231_persistentStorePromiseAccessor(),2);if(x.nextAddress!=3)return p=x.yieldResult,x.yield(OQ(p),3);U=x.yieldResult;return x.return({responseContext:{},contents:E,topbar:U})})};var sQ=function(t,E,p){this.JSC$18238_upliftPromise=t;this.store=E;this.JSC$18238_persistentStorePromiseAccessor=p};
sQ.prototype.shouldPreferLocalResponse=function(t){var E=t.videoId;return E&&$7K(this.store.getState().entities,E)&&KIl(this.store.getState().entities,E)?kTt(this.store.getState().entities,t.playlistId):!1};
sQ.prototype.localInnertubeResponse=function(t){var E=this,p,U;return _.q(function(x){if(x.nextAddress==1)return(p=t.videoId)?x.yield(E.JSC$18238_upliftPromise,2):x.return(Promise.reject(Error("aj")));if(x.nextAddress!=3)return x.yield(Agt(E,t,p),3);U=x.yieldResult;return x.return(YhL(E,U,p))})};
sQ.prototype.canProvideFallbackResponse=function(t){return t.videoId?!0:!1};
sQ.prototype.localFallbackInnertubeResponse=function(t){var E=this,p,U,x,A;return _.q(function(m){switch(m.nextAddress){case 1:return(p=t.videoId)?m.yield(E.JSC$18238_upliftPromise,2):m.return(Promise.reject(Error("aj")));case 2:return m.yield(Agt(E,t,p),3);case 3:U=m.yieldResult;if(op(E.store.getState().entities,p)){m.jumpTo(4);break}return m.yield(gI(E.JSC$18238_upliftPromise,E.store),5);case 5:return x=m.yieldResult,m.return(MdJ(U,x));case 4:return $7K(E.store.getState().entities,p)&&KIl(E.store.getState().entities,
p)?m.return(YhL(E,U,p)):(A={title:_.kh(_.zF("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:ZY0()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},m.return(MdJ(U,A)))}})};
var Agt=function(t,E,p){var U,x,A,m,b;return _.q(function(f){if(f.nextAddress==1)return U=E.playlistId,x=_.rm(p,U),f.yield(t.JSC$18238_persistentStorePromiseAccessor(),2);if(f.nextAddress!=3)return A=f.yieldResult,f.yield(OQ(A),3);m=f.yieldResult;b={responseContext:{},currentVideoEndpoint:x,topbar:m};return f.return(b)})},YhL=function(t,E,p){if(t=op(t.store.getState().entities,p)){var U;
p=t.videoEntity;var x,A={title:dm(p.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.uU((U=p.localizedStrings)==null?void 0:U.viewCount),viewCount:_.uU((x=p.localizedStrings)==null?void 0:x.viewCount)}}};p.publishedTimestampMillis&&(A.dateText=_.uU(Lgi(new Date(Number(p.publishedTimestampMillis)))));U={videoPrimaryInfoRenderer:A};x=t.videoEntity;t=t.channelEntity;t={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:dm(_.zF("SHOW_MORE",void 0,"Show more")),
showLessText:dm(_.zF("SHOW_LESS",void 0,"Show less")),description:x.formattedDescription,owner:{videoOwnerRenderer:{title:dm(t.title),thumbnail:t.avatar}}}};E.contents={twoColumnWatchNextResults:{results:{results:{contents:[U,t]}}}}}return E},MdJ=function(t,E){t.contents={singleColumnWatchNextResults:{results:{results:{contents:[rk_(E)]}}}};
return t};var WS=function(t,E,p){this.JSC$18243_upliftPromise=t;this.store=E;this.JSC$18243_persistentStorePromiseAccessor=p};
WS.prototype.shouldPreferLocalResponse=function(){return!1};
WS.prototype.localInnertubeResponse=function(){return _.q(function(t){return t.return(Promise.reject(Error("bj")))})};
WS.prototype.canProvideFallbackResponse=function(){return!0};
WS.prototype.localFallbackInnertubeResponse=function(){var t=this,E,p,U,x;return _.q(function(A){switch(A.nextAddress){case 1:return A.yield(t.JSC$18243_persistentStorePromiseAccessor(),2);case 2:return E=A.yieldResult,A.yield(OQ(E),3);case 3:return p=A.yieldResult,U={responseContext:{},topbar:p},A.yield(t.JSC$18243_upliftPromise,4);case 4:return A.yield(gI(t.JSC$18243_upliftPromise,t.store),5);case 5:return x=A.yieldResult,U.watchStatus={backgroundPromoRenderer:x},A.return(U)}})};var myb=new _.gM("ENDPOINT_MAP"),bgL=new _.gM("WATCH_ENDPOINT_MAP"),igl=new _.gM("REEL_ENDPOINT_MAP");var O5O=/^[a-zA-Z0-9_\-]{11}$/;var XmO=_.cq(function(){var t,E;return(E=(t=window).matchMedia)==null?void 0:E.call(t,"(prefers-reduced-motion: reduce)").matches});var qho=_.cq(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 t=_.ws("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");t||(t=_.Gg("VIDEO"),_.Oy("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
t));return!!(t&&t.canPlayType&&t.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var HgK=XMLHttpRequest.prototype.fetch,fPb=HgK&&HgK.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g7?!0:!1;var og=function(t){this.JSC$18254_storeWithEntities=t};
_.u(og,RU);_.Y=og.prototype;_.Y.getApiPaths=function(){return KBo};
_.Y.getExtension=function(t){return _.k(t,_.HD)||_.k(t,_.DK)||_.k(t,D7f)};
_.Y.isNavigationCommand=function(){return!0};
_.Y.JSC$14452_getStoreKey=function(t){if((_.r("kevlar_cache_on_ttl_player")||_.r("mweb_enable_shorts_innertube_player_prefetch")||_.r("mweb_use_new_history_manager")||_.r("web_shorts_prefetch_service_enabled"))&&(t=this.getExtension(t))&&t.videoId){var E={videoId:t.videoId};t.playlistId&&(E.playlistId=t.playlistId);t.playerParams&&(E.params=t.playerParams);return _.q_("player",E)}};
_.Y.JSC$14445_getClientScreen=function(t){var E;return((E=t.contentPlaybackContext)==null?void 0:E.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.Y.JSC$14445_buildRequest=function(t,E,p){if(_.r("enable_interstitial_entity_check")){var U=this.JSC$18254_storeWithEntities;if(E.videoId)for(var x=_.M(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),A=x.next();!A.done;A=x.next()){A=A.value;var m;var b=void 0,f=void 0,B=E.videoId,R=A;(m=U)?(B=_.X1(B+R,"interstitialInteractionStateEntity"),m=(b=(f=_.hj(m.getState().entities,"interstitialInteractionStateEntity",B))==null?void 0:f.primaryButtonClicked)!=null?b:!1):m=!1;if(m)switch(A){case "CONTENT_CHECK_REQUIRED":E.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":E.racyCheckOk=!0}}}E.videoId&&(t.videoId=E.videoId);E.playlistId&&(t.playlistId=E.playlistId);E.index!==void 0&&(t.playlistIndex=E.index+1);E.playerParams&&(t.params=E.playerParams);"startTimeSeconds"in E&&E.startTimeSeconds&&(_.r("enable_player_request_builder_start_time_floor")?t.startTimeSecs=Math.floor(E.startTimeSeconds):t.startTimeSecs=E.startTimeSeconds);p.contentPlaybackContext&&(t.playbackContext={contentPlaybackContext:p.contentPlaybackContext});p.prefetchPlaybackContext&&
(t.playbackContext=Object.assign({},t.playbackContext,{prefetchPlaybackContext:p.prefetchPlaybackContext}),t.context.request||(t.context.request={}),t.context.request.isPrefetch=!0);t.playbackContext||(t.playbackContext={});U=qho();t.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!U,supportXhr:fPb};p.overrideMutedAtStart&&(t.overrideMutedAtStart=p.overrideMutedAtStart);t.racyCheckOk=!!E.racyCheckOk;t.contentCheckOk=!!E.contentCheckOk;!_.r("captions_prefs_killswitch")&&(p=(p=_.WL("yt-player-caption-language-preferences"))?
p:[],p==null?0:p.length)&&(t.captionParams={viewerSelectedCaptionLangs:p})};
_.Y.getRequestConfig=function(t){t=this.JSC$14452_getStoreKey(t);var E;t&&(E={storeStrategy:{storeKey:t}});_.r("web_log_player_watch_next_ticks")&&(E=E||{},E.requestTick="ps_s",E.responseTick="ps_r");return E};
og[aa]=[XY];var WI=function(t,E){this.playerRequestBuilder=t;this.watchNextRequestBuilder=E};
_.u(WI,RU);WI.prototype.getApiPaths=function(){return Gem};
WI.prototype.getExtension=function(t){return _.k(t,_.HD)};
WI.prototype.isNavigationCommand=function(){return!0};
WI.prototype.JSC$14445_buildRequest=function(t,E,p){t.playerRequest={};this.playerRequestBuilder.JSC$14445_buildRequest(t.playerRequest,E,p);if(_.r("web_streaming_watch")||_.r("mweb_streaming_watch"))t.watchNextRequest={},this.watchNextRequestBuilder.JSC$14445_buildRequest(t.watchNextRequest,E,p)};
WI[aa]=[og,La];var Bit;_.$V=new _.gM("SHORTS_CONTROLLER_TOKEN");Bit=new _.gM("SHORTS_STATE_STORE_TOKEN");var KK=function(t,E){var p=_.t9.apply(2,arguments);t=t===void 0?0:t;_.cC.call(this,E,p);this.errorType=t;Object.setPrototypeOf(this,this.constructor.prototype)};
_.u(KK,_.cC);var wQt,R7g,Vdl,Grl,fG,ynE,jvb,CN8,JgC,dyL,kg5;wQt=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(t){return t+"="}).join("|"));
R7g=RegExp(".*\\?.*playnext=1.*");Vdl=function(t,E,p,U,x,A){this.watchEndpointMap=t;this.reelWatchEndpointMap=E;this.innerTubeTransportService=p;this.fetchPbj=U;this.ephemeralStore=x;this.reloadOnPlayerFailure=A===void 0?!0:A};
_.Qvd=function(t,E){var p=_.z3("web_pbj_log_warning_rate",0);p=p>0&&Math.random()<p;var U;if((U=_.k(E.commandMetadata,_.hZ))==null||!U.rootVe)return p&&_.qW(Error("gj")),!1;var x;U=(x=_.k(E.commandMetadata,_.hZ))==null?void 0:x.url;if(!U)return p&&_.qW(Error("hj")),!1;if(R7g.test(U))return!0;if(wQt.test(U))return p&&_.qW(Error("ij`"+U)),!1;if(_.k(E,_.HD)){if(!(t.watchEndpointMap.watchNext&&t.watchEndpointMap.player||_.r("kevlar_fetch_initial_data_op_watch_client")))return p&&_.qW(Error("cj")),!1;
t=_.z3("web_pbj_log_warning_rate",0);t=t>0&&Math.random()<t;_.k(E,_.HD)?gJl(E)?E=!0:(t&&_.qW(Error("dj")),E=!1):(t&&_.qW(Error("cj")),E=!1);return E}if(_.k(E,_.DK))return Z50(E);if(_.k(E,_.fz))return!0;t=_.qn(t.innerTubeTransportService,E);!t&&p&&_.bV(Error("jj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(E)});return t};
Grl=function(t,E,p,U,x,A){E={url:E};if(p==null?0:p.itct)E.parentTrackingParams=p.itct;var m=_.Cf(x90);return _.rY(t.innerTubeTransportService,E,m).then(function(b){(b=b.endpoint)||(b=_.tL);(p==null?0:p.itct)&&b&&!b.trackingParams&&(b.trackingParams=p.itct);var f=nf(b);return fG(t,b,p,U,f,x,A)})};
fG=function(t,E,p,U,x,A,m,b){b=b===void 0?{}:b;if(t.fetchPbj&&!_.Qvd(t,E)&&!_.r("force_one_platform")){var f=t.fetchPbj(E),B=_.gu(f.then(function(K){if(!K)throw Error("kj");m(B)||A(E,K);return K}));
return B}var R,V,Q={rootVe:(R=_.k(E.commandMetadata,_.hZ))==null?void 0:R.rootVe,url:(V=_.k(E.commandMetadata,_.hZ))==null?void 0:V.url,endpoint:E,page:x};if(_.k(E,_.HD)){var C,d={contentPlaybackContext:_.hN(p,(C=_.k(E.commandMetadata,_.hZ))==null?void 0:C.url,U)},I=_.fd(),O,a=(O=t.watchEndpointMap.player)==null?void 0:O().JSC$14452_getStoreKey(E);O=a!==void 0&&((f=t.ephemeralStore)==null?void 0:f.has(a));(_.r("web_streaming_watch")||_.r("mweb_streaming_watch"))&&window.TextDecoderStream&&!O?(f=Fao(t.innerTubeTransportService,
E,d,function(K){!Q.response&&K.content&&(Q.response=K.content);!Q.playerResponse&&K.player&&(Q.playerResponse=K.player);A(E,Q)}),a=vY_(E),a.length&&(Q.preconnect=a,A(E,Q)),CN8(f,I,Q).catch(function(K){K instanceof KK&&K.errorType===2&&_.r("web_streaming_watch_fallback")&&jvb(t,E,d,Q,A,m,I)})):jvb(t,E,d,Q,A,m,I);
return I.promise}if(_.k(E,_.DK)){var F;if(((F=_.k(E,_.DK))==null?void 0:F.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var L=_.fd();_.rgg(_.X3().resolve(_.$V),E).then(function(K){kg5(t,p,U,x,A,L,K)});
return L.promise}f=_.gu();O={contentPlaybackContext:_.hN(p,(a=_.k(E.commandMetadata,_.hZ))==null?void 0:a.url,U)};(a=t.reelWatchEndpointMap.player)&&(a=a().JSC$14445_getRequest(E,O))&&(f=_.rY(t.innerTubeTransportService,a.innerTubeRequest,a.input,E.clickTrackingParams,a.config));a=_.gu();(b=t.reelWatchEndpointMap.reelItemWatch)&&(b=b().JSC$14445_getRequest(E))&&(a=_.rY(t.innerTubeTransportService,b.innerTubeRequest,b.input,E.clickTrackingParams,b.config));b=_.gu();(R=t.reelWatchEndpointMap.reelWatchSequence)&&
_.k(E,_.DK).sequenceParams&&(O=R().JSC$14445_getRequest(E,O))&&(b=_.rY(t.innerTubeTransportService,O.innerTubeRequest,O.input,E.clickTrackingParams,O.config));O=_.gu(Q);R=_.fd();dyL(E,O,f,a,b,A,m,R);return R.promise}var D;if(_.k(E,MFY)&&((D=_.k(E.commandMetadata,_.hZ))==null?0:D.url))return f=iPJ(_.QC(yX().location.href),_.QC(_.k(E.commandMetadata,_.hZ).url)).toString(),Grl(t,f,p,U,A,function(){return!1});
if(_.k(E,_.fz))return A(E,Q),_.gu(Q);if(_.qn(t.innerTubeTransportService,E)){f=Object.assign({},{tempData:p,disableCache:p.disableCache},b);var W=_.H9(t.innerTubeTransportService,E,f).then(function(K){Q.response=K;m(W)||A(E,Q);return Q});
return W}return _.gu(Q)};
_.uso=function(t,E,p,U){if(_.k(E,_.HD)||_.k(E,_.DK)&&(_.r("mweb_enable_shorts_innertube_player_prefetch")||_.r("kevlar_enable_shorts_prefetch_in_sequence"))||_.k(E,D7f)&&_.r("web_enable_prefetching_videos_on_home")){var x,A={contentPlaybackContext:_.hN(p,(x=_.k(E.commandMetadata,_.hZ))==null?void 0:x.url,U),prefetchPlaybackContext:aX0(p)},m,b,f;if(((m=_.k(E,_.HD))==null?void 0:(b=m.watchEndpointSupportedPrefetchConfig)==null?void 0:(f=b.prefetchHintConfig)==null?void 0:f.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(p=
t.watchEndpointMap.watchNext)if(A=p().JSC$14445_getRequest(E,A))return Promise.resolve(_.rY(t.innerTubeTransportService,A.innerTubeRequest,A.input,void 0,A.config).then(function(V){return V}))}else if(p=t.watchEndpointMap.player)if(A=p().JSC$14445_getRequest(E,A))return Promise.resolve(_.rY(t.innerTubeTransportService,A.innerTubeRequest,A.input,void 0,A.config).then(function(V){return V}))}else if(_.qn(t.innerTubeTransportService,E)){var B={tempData:p},R=OxX(t.innerTubeTransportService,E);
return R?new Promise(function(V,Q){var C,d;return _.q(function(I){if(I.nextAddress==1)return I.yield(R,2);if(I.nextAddress!=4)return C=I.yieldResult,C.JSC$14452_getStoreKey(E,B)?I.yield(_.H9(t.innerTubeTransportService,E,B),4):(Q(new _.cC("Prefetching request builder with no store key.",E)),I.jumpTo(0));d=I.yieldResult;V(d);_.Do(I)})}):Promise.reject(new _.cC("Prefetching unregistered request builder.",E))}return Promise.reject(new _.cC("No request builder available to prefetch endpoint.",E))};
ynE=function(t,E){var p,U,x;if(_.k(E,_.HD)){var A=t.watchEndpointMap.watchNext;A&&(p=A());(t=t.watchEndpointMap.player)&&(U=t())}else if(_.k(E,_.DK))(A=t.reelWatchEndpointMap.reelItemWatch)&&(p=A()),(A=t.reelWatchEndpointMap.player)&&(U=A()),(t=t.reelWatchEndpointMap.reelWatchSequence)&&(x=t());else{a:{t=LO$(E,t.innerTubeTransportService.endpointMap);if(t!==void 0)if(typeof t.then==="function")_.bV(new _.cC("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",E));else break a;
t=void 0}t&&(p=t)}var m,b,f;return{content:(m=p)==null?void 0:m.JSC$14452_getStoreKey(E),player:(b=U)==null?void 0:b.JSC$14452_getStoreKey(E),reelSequence:(f=x)==null?void 0:f.JSC$14452_getStoreKey(E)}};
jvb=function(t,E,p,U,x,A,m){var b=_.gu(),f=t.watchEndpointMap.player;_.r("web_streaming_player")&&(f=Y1(WI));f&&(f=f().JSC$14445_getRequest(E,p))&&(b=_.rY(t.innerTubeTransportService,f.innerTubeRequest,f.input,E.clickTrackingParams,f.config));f=_.gu();var B=t.watchEndpointMap.watchNext;B&&(p=B().JSC$14445_getRequest(E,p))&&(f=_.rY(t.innerTubeTransportService,p.innerTubeRequest,p.input,E.clickTrackingParams,p.config));U=_.gu(U);JgC(t,E,U,b,f,x,A,m)};
CN8=function(t,E,p){var U;return _.q(function(x){if(x.nextAddress==1)return x.yield(t,2);_.r("web_streaming_watch_delay_200")||_.r("web_streaming_watch_delay_400")?(U=_.r("web_streaming_watch_delay_200")?200:400,setTimeout(function(){E.resolve(p)},U)):E.resolve(p);
_.Do(x)})};
JgC=function(t,E,p,U,x,A,m,b){var f,B,R,V,Q;_.q(function(C){switch(C.nextAddress){case 1:return C.yield(p,2);case 2:f=C.yieldResult;if(m(b.promise))return b.resolve(f),C.return();A(E,f);B=vY_(E);if(!B.length){C.jumpTo(3);break}return C.yield(p,4);case 4:f.preconnect=B,A(E,f);case 3:return _.aR(C,5),C.yield(U,7);case 7:R=C.yieldResult;_.r7(C,6);break;case 5:return V=_.nB(C),b.reject(V),C.return();case 6:if(R===void 0&&t.reloadOnPlayerFailure)return f.reload=!0,A(E,f),b.resolve(f),C.return();if(m(b.promise))return b.resolve(f),
C.return();f.playerResponse=R;A(E,f);(_.r("web_watch_stop_scheduler_on_player_response")||_.r("mweb_watch_stop_scheduler_on_player_response"))&&lUZ();_.aR(C,8);return C.yield(x,10);case 10:Q=C.yieldResult;_.r7(C,9);break;case 8:_.nB(C);case 9:if(Q===void 0)return f.response={responseContext:{}},b.resolve(f),C.return();if(m(b.promise))return b.resolve(f),C.return();f.response=Q;A(E,f);b.resolve(f);_.Do(C)}})};
dyL=function(t,E,p,U,x,A,m,b){var f,B,R,V,Q,C;_.q(function(d){switch(d.nextAddress){case 1:return d.yield(E,2);case 2:f=d.yieldResult;if(m(b.promise))return b.resolve(f),d.return();A(t,f);B=vY_(t);if(!B.length){d.jumpTo(3);break}return d.yield(E,4);case 4:f.preconnect=B,A(t,f);case 3:return _.aR(d,5),d.yield(p,7);case 7:R=d.yieldResult;_.r7(d,6);break;case 5:return V=_.nB(d),b.reject(V),d.return();case 6:if(R===void 0)return f.reload=!0,A(t,f),b.resolve(f),d.return();if(m(b.promise))return b.resolve(f),
d.return();f.playerResponse=R;A(t,f);(_.r("web_shorts_stop_scheduler_on_player_response")||_.r("mweb_shorts_stop_scheduler_on_player_response"))&&lUZ();_.aR(d,8);return d.yield(U,10);case 10:Q=d.yieldResult;_.r7(d,9);break;case 8:_.nB(d);case 9:if(Q===void 0)return f.response={responseContext:{}},b.resolve(f),d.return();if(m(b.promise))return b.resolve(f),d.return();f.response=Q;A(t,f);_.aR(d,11);return d.yield(x,13);case 13:C=d.yieldResult;_.r7(d,12);break;case 11:_.nB(d);case 12:if(m(b.promise))return b.resolve(f),
d.return();C&&(f.reelWatchSequenceResponse=C);A(t,f);b.resolve(f);_.Do(d)}})};
kg5=function(t,E,p,U,x,A,m){var b,f,B,R,V,Q;_.q(function(C){if((b=m)==null||!b.replacementEndpoint)return A.reject(),C.return();f=m.replacementEndpoint;(B=_.k(f,_.DK))?(m.sequenceContinuation&&(B.sequenceParams=m.sequenceContinuation),R=_.X3().resolve(_.$V),V=B.sequenceParams,IPe(R,f)&&delete B.sequenceParams,Q=fG(t,f,E,p,U,x,function(){return!1}),Q.then(function(d){return _.q(function(I){if(I.nextAddress==1)return gWl(R,{reelWatchEndpoint:{sequenceParams:V}},d),I.yield(0,2);
A.resolve(d);_.Do(I)})})):A.reject();
_.Do(C)})};
Vdl[aa]=[bgL,igl,_.PL,_.OB(J7f),_.OB(_.Tp)];var Zgb=function(){var t=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return t.sequenceMap}}},zlZ=function(t,E,p){var U,x=(U=E.config)==null?void 0:U.sequenceStrategy;
if(!x)return p();t.sequenceMap.has(x.sequenceKey)||t.sequenceMap.set(x.sequenceKey,[]);t=t.sequenceMap.get(x.sequenceKey);switch(x.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return Oge(t,E,p);case "REQUEST_SEQUENCE_TYPE_REPLACE":return XQ8(t,E,p);default:throw new _.cC("Request could not be sequenced",E);}},Oge=function(t,E,p){var U,x,A;
return _.q(function(m){t.length>0?(x=t[t.length-1],U=x.responsePromise.then(function(){return p()})):U=p();
A={request:E,responsePromise:U};t.push(A);h7e(t,A);return m.return(A.responsePromise)})},XQ8=function(t,E,p){p=p();
if(t.length>0)for(var U=_.M(t),x=U.next();!x.done;x=U.next())x.value.responsePromise=p;var A={request:E,responsePromise:p};t.push(A);h7e(t,A);return Promise.resolve().then(function(){return t.indexOf(A)>0?A.responsePromise.then(function(m){return Object.assign({},m,{sequenceMetaData:{skipProcessing:!0}})}):A.responsePromise})},h7e=function(t,E){E.responsePromise.then(function(){var p=t.indexOf(E);
p>-1&&t.splice(p,1)})};var aPd=new _.gM("REQUEST_SEQUENCING");var vI=function(){};
_.u(vI,RU);vI.prototype.getApiPaths=function(){return[]};
vI.prototype.getExtension=function(t){return _.k(t,Qr4)};
vI.prototype.JSC$14445_buildRequest=function(t,E){t.recaptchaToken=E.recaptchaToken};
vI.prototype.getApiUrl=function(){return"/das_captcha"};var yh=function(){};
_.u(yh,RU);yh.prototype.getApiPaths=function(){return xvW};
yh.prototype.getExtension=function(t){return _.k(t,yYT)};
yh.prototype.JSC$14445_buildRequest=function(t,E,p){p=p===void 0?{}:p;E.createBackstagePostParams&&(t.createBackstagePostParams=E.createBackstagePostParams);p.comment_text&&(t.commentText=p.comment_text);if(p.attached_video_id)t.videoAttachment={videoId:p.attached_video_id};else if(p.image_poll_options)t.pollAttachmentData={options:p.image_poll_options};else if(p.poll_options)t.pollAttachment={choices:p.poll_options};else if(p.quiz_options)t.quizAttachmentData={options:p.quiz_options};else if(p.image_blob_id)t.imageAttachment=
{encryptedBlobId:p.image_blob_id},p.source_video_id&&(t.imageAttachment.sourceExternalVideoId=p.source_video_id),p.image_preview_coordinates&&(t.imageAttachment.previewCoordinates=JSON.parse(p.image_preview_coordinates));else if(p.images_data)t.imagesAttachment={imagesData:p.images_data};else if(p.clip_external_video_id!==void 0||p.clip_offset_ms!==void 0||p.clip_duration_ms!==void 0){var U,x,A,m,b;t.clipAttachment={externalVideoId:(A=p.clip_external_video_id)!=null?A:"",offsetMs:(m=(U=p.clip_offset_ms)==
null?void 0:U.toString())!=null?m:"",durationMs:(b=(x=p.clip_duration_ms)==null?void 0:x.toString())!=null?b:""}}else p.shared_post_id&&(t.sharedPostAttachment={postId:p.shared_post_id});p.tagged_video_id&&(t.postCreationData={taggedVideoId:p.tagged_video_id});p.access_restrictions&&(typeof p.access_restrictions==="number"&&(E=p.access_restrictions,t.accessRestrictions={restriction:E!==1&&E===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof p.access_restrictions==="string"&&
(t.accessRestrictionsParams=p.access_restrictions));p.scheduled_publish_time_sec&&(t.scheduledPublishTimeSec=p.scheduled_publish_time_sec.toString())};var Sy=function(){};
_.u(Sy,RU);Sy.prototype.getApiPaths=function(){return qgr};
Sy.prototype.getExtension=function(t){return _.k(t,S0r)};
Sy.prototype.JSC$14445_buildRequest=function(t,E,p){p=p===void 0?{}:p;E.decorateMessageParams&&(t.params=E.decorateMessageParams);p.text&&(t.text=p.text)};var cI=function(){};
_.u(cI,RU);cI.prototype.getApiPaths=function(){return hAf};
cI.prototype.getExtension=function(t){return _.k(t,S4s)};
cI.prototype.JSC$14445_buildRequest=function(t,E,p){p=p===void 0?{}:p;p.video_id&&(t.videoId=p.video_id)};var tM=function(){};
_.u(tM,RU);tM.prototype.getApiPaths=function(){return lOo};
tM.prototype.getExtension=function(t){return _.k(t,_.XJ)};
tM.prototype.JSC$14445_buildRequest=function(t,E,p){p.suggestions_query&&(t.input=p.suggestions_query)};var Ex=function(){};
_.u(Ex,RU);Ex.prototype.getApiPaths=function(){return RRZ};
Ex.prototype.getExtension=function(t){return _.k(t,cYf)};
Ex.prototype.JSC$14445_buildRequest=function(t,E,p){p.comment_text!==void 0&&(t.commentText=p.comment_text);p.scheduled_publish_time_sec&&(t.scheduledPublishTimeSec=p.scheduled_publish_time_sec.toString());t.updateBackstagePostParams=E.updateBackstagePostParams};var pc=function(){};
_.u(pc,RU);pc.prototype.getApiPaths=function(){return jc};
pc.prototype.getExtension=function(t){return _.k(t,_.x1)};
pc.prototype.JSC$14445_buildRequest=function(t,E,p){p.formData&&(t.formData=p.formData);E.token?t.continuation=E.token:E.continuationTokenKey&&(p=_.QM().getState(),E=_.hj(p.entities,"continuationTokenEntity",E.continuationTokenKey))&&(t.continuation=String(E.continuationToken))};
var e75=function(){};
_.u(e75,RU);_.Y=e75.prototype;_.Y.getApiPaths=function(){return jc};
_.Y.getExtension=function(t){return _.k(t,_.lC)};
_.Y.isNavigationCommand=function(){return!0};
_.Y.JSC$14452_getStoreKey=function(t){if((t=this.getExtension(t))&&t.browseId){var E={browseId:t.browseId};t.browseEndpointContextSupportedConfigs&&(E.browseEndpointContextSupportedConfigs=JSON.stringify(t.browseEndpointContextSupportedConfigs));t.params&&(E.params=t.params);t.query&&(E.query=t.query);return _.q_("browse",E)}};
_.Y.JSC$14445_buildRequest=function(t,E,p){E.browseId&&(t.browseId=E.browseId);E.params&&(t.params=E.params);E.query&&(t.query=E.query);p.formData?t.formData=p.formData:E.formData&&(t.formData=E.formData);E.browseId==="FEsubscriptions"&&_.nF().getFlag(155)&&(t.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");E.browseId==="SPaccount_playback"&&(p=_.nF(),t.formData||(t.formData={}),t.formData.accountSettingsFormData={flagCaptionsDefaultOff:p.getFlag(65),flagAutoCaptionsDefaultOn:p.getFlag(66),
flagDisableInlinePreview:p.getFlag(186),flagAudioDescriptionDefaultOn:p.getFlag(198)});if(E.browseId==="FEwhat_to_watch"){p=_.nF();var U=p.getFlag(196);p.getFlag(197)&&(t.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:U}}})}E.browseId==="FEwhat_to_watch"&&(E=_.nF().getFlag(186),t.inlineSettingStatus=E?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.Y.getRequestConfig=function(t,E){E=E===void 0?{}:E;var p={};if(t=this.JSC$14452_getStoreKey(t,E))p.storeStrategy={storeKey:t,disableCache:E.disableCache};_.r("web_log_browse_ticks_ks")||(p.requestTick="br_s",p.responseTick="br_r");return p};var Ux=function(){};
_.u(Ux,RU);Ux.prototype.getApiPaths=function(){return SMr};
Ux.prototype.getExtension=function(t){return _.k(t,OQs)};
Ux.prototype.JSC$14445_buildRequest=function(t,E,p){t.legacyYoutubeChannelUsername=p.legacyYouTubeChannelUsername||"";t.legacyYoutubeChannelPassword=p.legacyYouTubeChannelPassword||""};var xr=function(){};
_.u(xr,RU);xr.prototype.getApiPaths=function(){return Aur};
xr.prototype.getExtension=function(t){return _.k(t,Mxr)};
xr.prototype.JSC$14445_buildRequest=function(t,E,p){p.recaptcha_response_token&&(t.recaptchaResponseToken=p.recaptcha_response_token);p.channel_id&&(t.channelId=p.channel_id)};var AM=function(){};
_.u(AM,RU);AM.prototype.getApiPaths=function(){return VS4};
AM.prototype.getExtension=function(t){return _.k(t,fGr)};
AM.prototype.JSC$14445_buildRequest=function(t,E,p){E.externalChannelId&&(t.externalChannelId=E.externalChannelId);p.handle&&(t.handleUpdate={handle:p.handle},E.handleEditSource&&(t.handleUpdate.handleEditSource=E.handleEditSource))};var Yr=function(){};
_.u(Yr,RU);Yr.prototype.getApiPaths=function(){return ruf};
Yr.prototype.getExtension=function(t){return _.k(t,lGr)};
Yr.prototype.JSC$14445_buildRequest=function(t,E,p){E.request&&(t.channelId=E.request.channelId);var U;if(p==null?0:(U=p.uploadDefaults)==null?0:U.emojiReactionSet)t.uploadDefaultsRequest||(t.uploadDefaultsRequest={}),t.uploadDefaultsRequest.emojiReactionSet=p.uploadDefaults.emojiReactionSet};var M1=function(){};
_.u(M1,RU);M1.prototype.getApiPaths=function(){return uzG};
M1.prototype.getExtension=function(t){return _.k(t,miT)};
M1.prototype.JSC$14445_buildRequest=function(t,E,p){E.externalChannelId&&(t.externalChannelId=E.externalChannelId);E.channelHandleEntityKey&&(t.channelHandleEntityKey=E.channelHandleEntityKey);E.handleEditSource&&(t.handleEditSource=E.handleEditSource);p.handle?t.handle=p.handle:p.name&&(t.name=p.name)};var mx=function(){};
_.u(mx,RU);mx.prototype.getApiPaths=function(){return Efr};
mx.prototype.getExtension=function(t){return _.k(t,eOZ)};
mx.prototype.JSC$14445_buildRequest=function(t,E){E.actions?t.actions=E.actions:E.action&&(t.actions=[E.action])};var b5=function(){};
_.u(b5,RU);b5.prototype.getApiPaths=function(){return pOf};
b5.prototype.getExtension=function(t){return _.k(t,_.x1)};
b5.prototype.JSC$14445_buildRequest=function(t,E){E.token&&(t.continuation=E.token)};var i5=function(){};
_.u(i5,RU);i5.prototype.getApiPaths=function(){return OLs};
i5.prototype.getExtension=function(t){return _.k(t,_.x1)};
i5.prototype.JSC$14445_buildRequest=function(t,E){t.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";E.token&&(t.fetchCommentsParams={continuation:E.token})};var q1=function(){};
_.u(q1,RU);q1.prototype.getApiPaths=function(){return MFG};
q1.prototype.getExtension=function(t){return _.k(t,aFX)};
q1.prototype.JSC$14445_buildRequest=function(t,E,p){p=p===void 0?{}:p;E.createReplyParams&&(t.createReplyParams=E.createReplyParams);E.commentText&&(t.commentText=_.R4(E.commentText));p.comment_text&&(t.commentText=p.comment_text);p.image_blob_id&&(t.imageAttachment={encryptedBlobId:p.image_blob_id});p.botguard_response&&(t.botguardResponse=p.botguard_response)};
_.aE.Object.defineProperties(q1.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var HN=function(){};
_.u(HN,RU);HN.prototype.getApiPaths=function(){return mv0};
HN.prototype.getExtension=function(t){return _.k(t,_.hOs)};
HN.prototype.JSC$14445_buildRequest=function(t,E,p){p=p===void 0?{}:p;E.createCommentParams&&(t.createCommentParams=E.createCommentParams);E.commentText&&(t.commentText=_.R4(E.commentText));E.videoPositionMention&&(t.videoPositionMention=E.videoPositionMention);E.sources&&(t.sources=E.sources);p.comment_text&&(t.commentText=p.comment_text);p.attached_video_id?t.videoAttachment={videoId:p.attached_video_id}:p.poll_options?t.pollAttachment={choices:p.poll_options}:p.image_blob_id?t.imageAttachment=
{encryptedBlobId:p.image_blob_id}:p.shared_post_id&&(t.sharedPostAttachment={postId:p.shared_post_id});p.access_restrictions&&typeof p.access_restrictions==="number"&&(E=p.access_restrictions,t.accessRestrictions={restriction:E!==1&&E===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});p.botguard_response&&(t.botguardResponse=p.botguard_response)};
_.aE.Object.defineProperties(HN.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var fc=function(){};
_.u(fc,RU);fc.prototype.getApiPaths=function(){return Qdr};
fc.prototype.getExtension=function(t){return _.k(t,zOr)};
fc.prototype.JSC$14445_buildRequest=function(t,E,p){E.commentText&&(t.replyText=_.R4(E.commentText));p.comment_text&&(t.replyText=p.comment_text);t.updateReplyParams=E.updateReplyParams};
_.aE.Object.defineProperties(fc.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var BN=function(){};
_.u(BN,RU);BN.prototype.getApiPaths=function(){return Co3};
BN.prototype.getExtension=function(t){return _.k(t,F3X)};
BN.prototype.JSC$14445_buildRequest=function(t,E,p){E.commentText&&(t.commentText=_.R4(E.commentText));p.comment_text&&(t.commentText=p.comment_text);t.updateCommentParams=E.updateCommentParams};
_.aE.Object.defineProperties(BN.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var wC=function(){};
_.u(wC,RU);wC.prototype.getApiPaths=function(){return jdG};
wC.prototype.getExtension=function(t){return _.k(t,aGT)};
wC.prototype.JSC$14445_buildRequest=function(t,E){E.settings&&(t.settings=E.settings)};var RV=function(){};
_.u(RV,RU);RV.prototype.getApiPaths=function(){return keG};
RV.prototype.getExtension=function(t){return _.k(t,bm4)};
RV.prototype.JSC$14445_buildRequest=function(t,E){E.channelCreationToken&&(t.channelCreationToken=E.channelCreationToken);E.source&&(t.source=E.source)};var Vq=function(){};
_.u(Vq,RU);Vq.prototype.getApiPaths=function(){return Yg0};
Vq.prototype.getExtension=function(t){return _.k(t,Hmr)};
Vq.prototype.JSC$14445_buildRequest=function(t,E,p){p=p===void 0?{}:p;if(p.name&&(p.given_name||p.family_name))t=new _.cC("channel creation cannot set both GAIA and YouTube names",E),_.bV(t);else{if(E.zeroStepChannelCreationParams){if(!p.comment_text){t=new _.cC("zero_step_create_comment_params but no zero_step_texts",E);_.bV(t);return}t.zeroStepChannelCreationParams=E.zeroStepChannelCreationParams;t.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(t.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
p.comment_text,p.botguard_response&&(t.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=p.botguard_response))}t.channelCreationToken=E.channelCreationToken;p.given_name&&(t.givenName=p.given_name);p.family_name&&(t.familyName=p.family_name);E.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(t.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(p.name||p.handle||p.avatar_url||p.encryptedBlobId||p.isNameChanged!==void 0||p.isHandleChanged!==void 0||p.isDefaultProfilePhoto!==
void 0||p.obakeImageSource)t.overrideChannelCreationParams={},p.name&&(t.overrideChannelCreationParams.name=p.name),p.handle&&(t.overrideChannelCreationParams.handle=p.handle),p.avatar_url&&(t.overrideChannelCreationParams.avatarUrl=p.avatar_url),p.encryptedBlobId&&(t.overrideChannelCreationParams.blobEncryptionId=p.encryptedBlobId),p.enableIdentityForAllChannelCreationDialog&&(p.encryptedBlobId?t.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
p.isDefaultProfilePhoto!==void 0&&(t.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=p.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),p.isNameChanged!==void 0&&(t.overrideChannelCreationParams.identityForAllChannelCreationNameTag=p.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),p.isHandleChanged!==
void 0&&(t.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=p.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),p.obakeImageSource&&(t.overrideChannelCreationParams.obakeImageSourceType=p.obakeImageSource))}};var Qq=function(){};
_.u(Qq,RU);Qq.prototype.getApiPaths=function(t){return(t=this.getExtension(t))&&t.status==="DISLIKE"?wOp:t&&t.status==="INDIFFERENT"?tSm:s6m};
Qq.prototype.getExtension=function(t){return _.k(t,_.A1)};
Qq.prototype.JSC$14445_buildRequest=function(t,E){E.target&&(t.target=E.target);if(E=this.getParams(E))t.params=E};
Qq.prototype.getParams=function(t){switch(t==null?void 0:t.status){case "DISLIKE":return t.dislikeParams;case "INDIFFERENT":return t.removeLikeParams;default:return t==null?void 0:t.likeParams}};var Cc=function(){};
_.u(Cc,RU);Cc.prototype.getApiPaths=function(){return iPr};
Cc.prototype.getExtension=function(t){return _.k(t,sUr)};
Cc.prototype.JSC$14445_buildRequest=function(t,E){E.settingItemId&&(t.settingItemId=E.settingItemId);E.stringValue!=null&&E.stringValue!==void 0?t.newValue={stringValue:E.stringValue}:E.intValue?t.newValue={intValue:E.intValue}:E.boolValue!==null&&E.boolValue!==void 0?t.newValue={boolValue:E.boolValue}:(t=new _.cC("Unknown value type for SetSettingEndpoint.",E),_.bV(t))};var jH=function(){};
_.u(jH,RU);jH.prototype.getApiPaths=function(){return fzs};
jH.prototype.getExtension=function(t){return _.k(t,ATp)||void 0};
jH.prototype.JSC$14445_buildRequest=function(t,E,p){p=p===void 0?{}:p;E.channelIds&&(t.channelIds=E.channelIds);E.siloName&&(t.siloName=E.siloName);E.params&&(t.params=E.params);p.botguardResponse&&(t.botguardResponse=p.botguardResponse);p.feature&&(t.clientFeature=p.feature)};
_.aE.Object.defineProperties(jH.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var rC=function(){};
_.u(rC,RU);rC.prototype.getApiPaths=function(){return wBG};
rC.prototype.getExtension=function(t){return _.k(t,L3G)||void 0};
rC.prototype.JSC$14445_buildRequest=function(t,E){E.channelIds&&(t.channelIds=E.channelIds);E.siloName&&(t.siloName=E.siloName);E.params&&(t.params=E.params)};
_.aE.Object.defineProperties(rC.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var kr=function(t){this.shareClientParamsProvider=t};
_.u(kr,RU);kr.prototype.getApiPaths=function(){return gBE};
kr.prototype.getExtension=function(t){return _.k(t,B8f)||_.k(t,_.wgo)||_.k(t,f5G)};
kr.prototype.JSC$14445_buildRequest=function(t,E){E.serializedShareEntity&&(t.serializedSharedEntity=E.serializedShareEntity);if(E.clientParamIdentifier){var p;if((p=this.shareClientParamsProvider)==null?0:p.clientParams.has(E.clientParamIdentifier)){p=this.shareClientParamsProvider;E=E.clientParamIdentifier;var U=p.clientParams.get(E);U&&p.clientParams.delete(E);t.clientParams=U}}};
kr[aa]=[YS5];var X6=function(){};
_.u(X6,RU);X6.prototype.getApiPaths=function(){return Kwr};
X6.prototype.getExtension=function(t){return _.k(t,N2r)};
X6.prototype.JSC$14445_buildRequest=function(t,E){E.params&&(t.params=E.params)};var hM=function(){};
_.u(hM,RU);hM.prototype.getApiPaths=function(){return RAr};
hM.prototype.getExtension=function(t){return _.k(t,lx0)};
hM.prototype.JSC$14445_buildRequest=function(t,E){E.dismissal&&(t.items=[E.dismissal])};
_.aE.Object.defineProperties(hM.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var aV=function(){};
_.u(aV,RU);aV.prototype.getApiPaths=function(){return Njs};
aV.prototype.getExtension=function(t){return _.k(t,_.xZ)||void 0};
aV.prototype.JSC$14445_buildRequest=function(t,E,p){t.feedbackTokens=[];E.feedbackToken&&t.feedbackTokens.push(E.feedbackToken);if(E=E.cpn||p.cpn)t.feedbackContext={cpn:E};t.isFeedbackTokenUnencrypted=!!p.is_feedback_token_unencrypted;t.shouldMerge=!1;p.extra_feedback_tokens&&(t.shouldMerge=!0,t.feedbackTokens=t.feedbackTokens.concat(p.extra_feedback_tokens))};
_.aE.Object.defineProperties(aV.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var eH=function(){};
_.u(eH,RU);eH.prototype.getApiPaths=function(){return Njs};
eH.prototype.getExtension=function(t){return _.k(t,_.XJ)};
eH.prototype.JSC$14445_buildRequest=function(t,E,p){p.feedback_tokens&&(t.feedbackTokens=p.feedback_tokens,t.shouldMerge=!0)};
_.aE.Object.defineProperties(eH.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var F6=function(){};
_.u(F6,RU);F6.prototype.getApiPaths=function(){return Njs};
F6.prototype.getExtension=function(t){return _.k(t,WGD)};
F6.prototype.JSC$14445_buildRequest=function(t,E){E.undoToken&&(t.feedbackTokens=[E.undoToken]);E.isUndoTokenUnencrypted&&(t.isFeedbackTokenUnencrypted=E.isUndoTokenUnencrypted)};
_.aE.Object.defineProperties(F6.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var zz=function(){};
_.u(zz,RU);zz.prototype.getApiPaths=function(){return JuG};
zz.prototype.getExtension=function(t){return _.k(t,eWr)};
zz.prototype.JSC$14445_buildRequest=function(t,E){E.nextEndpoint&&_.k(E.nextEndpoint,_.kX)?t.nextEndpoint={urlEndpoint:_.k(E.nextEndpoint,_.kX)}:E.nextEndpoint&&_.k(E.nextEndpoint,_.HD)&&(t.nextEndpoint={watchEndpoint:_.k(E.nextEndpoint,_.HD)});E.setRacy&&(t.setRacy=E.setRacy);E.setControvercy&&(t.setControvercy=E.setControvercy)};var l5=function(t){this.JSC$18456_storeWithEntities=t};
_.u(l5,RU);l5.prototype.getApiPaths=function(){return Q6r};
l5.prototype.getExtension=function(t){return _.k(t,Ml4)};
l5.prototype.JSC$14445_buildRequest=function(t,E){E.flowId&&(t.flowId=E.flowId);E.targetId&&(t.targetId=E.targetId);E.continuation&&(t.continuation=E.continuation);var p=E.flowStateEntityKey;if(E.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&p&&this.JSC$18456_storeWithEntities){var U;if(E=(U=this.JSC$18456_storeWithEntities.getState())==null?void 0:U.entities)if(U=_.gm(p).entityType,U=_.hj(E,U,p))t.flowState=U,t.flowStateEntityKey=p}};
_.aE.Object.defineProperties(l5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
l5[aa]=[XY];var F9g=function(){};
_.u(F9g,RU);_.Y=F9g.prototype;_.Y.getApiPaths=function(){return nfG};
_.Y.JSC$14452_getStoreKey=function(){return _.q_("guide")};
_.Y.getRequestConfig=function(){var t=this.JSC$14452_getStoreKey(),E;t&&(E={storeStrategy:{storeKey:t}});return E};
_.Y.isNavigationCommand=function(){return!0};
_.Y.getExtension=function(t){return _.k(t,_.XJ)};
_.Y.JSC$14445_buildRequest=function(t){t.fetchLiveState=!0};var Gz=function(){};
_.u(Gz,RU);Gz.prototype.getApiPaths=function(){return ccp};
Gz.prototype.getExtension=function(t){return _.k(t,ZHX)};
Gz.prototype.JSC$14445_buildRequest=function(){};var nc=function(){};
_.u(nc,RU);nc.prototype.getApiPaths=function(){return tFG};
nc.prototype.getExtension=function(t){return _.k(t,OHr)};
nc.prototype.JSC$14445_buildRequest=function(){};var N1=function(){};
_.u(N1,RU);N1.prototype.getApiPaths=function(){return $kX};
N1.prototype.getExtension=function(t){return _.k(t,_.x1)};
N1.prototype.JSC$14445_buildRequest=function(t,E){E.token&&(t.continuation=E.token);var p,U;t==null||(p=t.context)==null||(U=p.user)==null||delete U.onBehalfOfUser};
N1.prototype.getRequestConfig=function(t){var E={},p;if(((p=this.getExtension(t))==null?void 0:p.sessionIndex)!==void 0){var U;E={authStrategy:{sessionIndex:(U=this.getExtension(t))==null?void 0:U.sessionIndex}}}return E};var Dg=function(){};
_.u(Dg,RU);Dg.prototype.JSC$14445_getRequest=function(t){var E=this.getExtension(t),p=t="";if(E==null?0:E.popup)t="true";if(E==null?0:E.disableSignout)p="true";E={};return{input:"/getAccountSwitcherEndpoint",requestShell:iO("/getAccountSwitcherEndpoint","GET",(E["X-YouTube-Delegation-Context"]=_.qO("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),E["X-YouTube-Account-Switcher-Popup"]=t,E["X-YouTube-Account-Switcher-Disable-Signout"]=p,E)),innerTubeRequest:{}}};
Dg.prototype.getApiPaths=function(){return[]};
Dg.prototype.getExtension=function(t){return _.k(t,_.pzO)};
Dg.prototype.JSC$14445_buildRequest=function(){};var sx=function(){};
_.u(sx,RU);sx.prototype.JSC$14445_getRequest=function(t){var E="/cross_account_channel_transfer";(t=this.getExtension(t))&&(E=$_j(E,{target_session:t.targetSessionIndex,source_rapt:t.sourceRapt,rapt:t.targetRapt}));return{input:E,requestShell:iO(E,"GET"),innerTubeRequest:{}}};
sx.prototype.getApiPaths=function(){return[]};
sx.prototype.getExtension=function(t){return _.k(t,ucs)};
sx.prototype.JSC$14445_buildRequest=function(){};var Lc=function(){};
_.u(Lc,RU);Lc.prototype.getApiPaths=function(){return Css};
Lc.prototype.isNavigationCommand=function(){return!0};
Lc.prototype.getExtension=function(t){return _.k(t,_.XJ)};
Lc.prototype.JSC$14445_buildRequest=function(t){var E=_.nF().get("gsml","");E&&(t.safetyModeLockerObfuscatedGaiaId=E);t.userInterfaceTheme=_.me(!0);_.bc()?t.deviceTheme="DEVICE_THEME_SELECTED":_.MSj()?t.deviceTheme="DEVICE_THEME_SUPPORTED":t.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var PN=function(){};
_.u(PN,RU);PN.prototype.getApiPaths=function(){return $kX};
PN.prototype.getExtension=function(t){return _.k(t,JYX)};
PN.prototype.JSC$14445_buildRequest=function(t,E){if(E&&E.requestType&&(t.requestType=E.requestType,E.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||E.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var p=E.nextUrl;p&&(_.vT8(p)||gs(p))&&(t.nextNavendpoint={urlEndpoint:{url:p}})}E&&E.channelSwitcherQuery&&(t.channelSwitcherQuery=E.channelSwitcherQuery);E&&E.triggerChannelCreation&&(t.triggerChannelCreation=E.triggerChannelCreation);var U;if(E==null?0:(U=E.contentOwnerConfig)==
null?0:U.externalContentOwnerId)t.contentOwnerConfig=E.contentOwnerConfig;t.callCircumstance=E&&E.requestType&&E.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var x,A;E=t==null?void 0:(x=t.context)==null?void 0:(A=x.user)==null?void 0:A.onBehalfOfUser;if(E!==void 0){t.obfuscatedSelectedGaiaId=E;var m,b;t==null||(m=t.context)==null||(b=m.user)==null||delete b.onBehalfOfUser}var f,B;if(x=t==null?void 0:(f=t.context)==null?void 0:(B=f.user)==null?
void 0:B.serializedDelegationContext)t.selectedSerializedDelegationContext=x};var Tz=function(){};
_.u(Tz,RU);Tz.prototype.getApiPaths=function(){return vlZ};
Tz.prototype.getExtension=function(t){return _.k(t,Rkp)};
Tz.prototype.JSC$14445_buildRequest=function(t,E){E.params&&(t.params=E.params)};var oV=function(){};
_.u(oV,RU);oV.prototype.getApiPaths=function(){return A00};
oV.prototype.getExtension=function(t){return _.k(t,_.gAf)};
oV.prototype.JSC$14445_buildRequest=function(t,E){if(E=E.createBroadcastRequest)t.useMasks=E.useMasks,t.broadcastType=E.broadcastType,t.broadcastSource=E.broadcastSource,t.broadcastMetadata=E.broadcastMetadata,t.broadcastMetadataMask=E.broadcastMetadataMask,t.videoMetadata=E.videoMetadata,t.videoMetadataMask=E.videoMetadataMask,t.liveChatSettingsUpdate=E.liveChatSettingsUpdate,t.liveChatSettingsUpdateMask=E.liveChatSettingsUpdateMask,t.cloneVideoId=E.cloneVideoId,t.cloneWithOverrides=E.cloneWithOverrides,
t.targetEntity=E.targetEntity,t.scheduledRedirectMetadata=E.scheduledRedirectMetadata};var WN=function(){};
_.u(WN,RU);WN.prototype.getApiPaths=function(){return bLr};
WN.prototype.getExtension=function(t){return _.k(t,QyW)};
WN.prototype.JSC$14445_buildRequest=function(t,E,p){p=p===void 0?{}:p;E.params&&(t.params=E.params);p.questionText&&(t.questionText=p.questionText);p.optionText&&p.optionText.length>0&&(t.optionText=p.optionText)};var $r=function(){};
_.u($r,RU);$r.prototype.getApiPaths=function(){return HLr};
$r.prototype.getExtension=function(t){return _.k(t,R8s)};
$r.prototype.JSC$14445_buildRequest=function(t,E){E.params&&(t.params=E.params)};var Kc=function(){};
_.u(Kc,RU);Kc.prototype.getApiPaths=function(){return uSs};
Kc.prototype.getExtension=function(t){return _.k(t,Hz3)};
Kc.prototype.JSC$14445_buildRequest=function(t,E){E.params&&(t.params=E.params)};var vN=function(){};
_.u(vN,RU);vN.prototype.getApiPaths=function(){return IOr};
vN.prototype.getExtension=function(t){return _.k(t,fmG)};
vN.prototype.JSC$14445_buildRequest=function(t,E,p){E.params&&(t.params=E.params);E.continuation&&(t.continuation=E.continuation);p.currentPlayerState&&p.currentPlayerState.playerOffsetMs&&(t.currentPlayerState={playerOffsetMs:p.currentPlayerState.playerOffsetMs.toString()})};var yq=function(){};
_.u(yq,RU);yq.prototype.getApiPaths=function(){return gfp};
yq.prototype.getExtension=function(t){return _.k(t,qu0)};
yq.prototype.JSC$14445_buildRequest=function(t,E,p){E.params&&(t.params=E.params);p.continuation&&(t.continuation=p.continuation);"hidden"in p&&(t.webClientInfo={isDocumentHidden:p.hidden});p.isInvalidationTimeoutRequest&&(t.isInvalidationTimeoutRequest=p.isInvalidationTimeoutRequest);p.invalidationPayload&&(E=izr(_.c8(Z3(p.invalidationPayload))),t.invalidationPayloadLastPublishAtUsec=p1(E,2));p.reloadActionPanel&&(t.reloadActionPanel=p.reloadActionPanel);p.fullReload&&(t.fullReload=p.fullReload);
p.currentPlayerState&&(t.currentPlayerState=p.currentPlayerState)};var SH=function(){};
_.u(SH,RU);SH.prototype.getApiPaths=function(){return LBW};
SH.prototype.getExtension=function(t){return _.k(t,V30)};
SH.prototype.JSC$14445_buildRequest=function(t,E){t.params=E.params};var cN=function(){};
_.u(cN,RU);cN.prototype.getApiPaths=function(){return J0s};
cN.prototype.getExtension=function(t){return _.k(t,a5Z)};
cN.prototype.JSC$14445_buildRequest=function(t,E){E.params&&(t.params=E.params)};var tV=function(){};
_.u(tV,RU);tV.prototype.getApiPaths=function(){return ZLZ};
tV.prototype.getExtension=function(t){return _.k(t,eks)};
tV.prototype.JSC$14445_buildRequest=function(t,E){E.params&&(t.params=E.params)};var E6=function(){};
_.u(E6,RU);E6.prototype.getApiPaths=function(){return Pso};
E6.prototype.getExtension=function(t){return _.k(t,ChT)};
E6.prototype.JSC$14445_buildRequest=function(t,E){E.params&&(t.params=E.params)};var px=function(){};
_.u(px,RU);px.prototype.getApiPaths=function(){return ofr};
px.prototype.getExtension=function(t){return _.k(t,jyX)};
px.prototype.JSC$14445_buildRequest=function(t,E){E.params&&(t.params=E.params)};var U6=function(){};
_.u(U6,RU);U6.prototype.getApiPaths=function(){return EgX};
U6.prototype.getExtension=function(t){return _.k(t,Cur)};
U6.prototype.JSC$14445_buildRequest=function(t,E){E.params&&(t.params=E.params)};var xH=function(){};
_.u(xH,RU);xH.prototype.getApiPaths=function(){return m9G};
xH.prototype.getExtension=function(t){return _.k(t,_.r1Z)};
xH.prototype.JSC$14445_buildRequest=function(t,E,p){p=p===void 0?{}:p;E.params&&(t.params=E.params);p.client_message_id&&(t.clientMessageId=p.client_message_id);p.recaptcha_token&&(t.recaptchaToken=p.recaptcha_token);p.rich_message&&p.rich_message.text_segments?(E=p.rich_message.text_segments.map(function(U){var x={};U.text&&(x.text=U.text);U.emoji_id&&(x.emojiId=U.emoji_id);return x}),t.richMessage={textSegments:E}):p.message&&(t.message=p.message);
p.currentPlayerState&&(t.currentPlayerState=p.currentPlayerState)};var AV=function(){};
_.u(AV,RU);AV.prototype.getApiPaths=function(){return bPr};
AV.prototype.getExtension=function(t){return _.k(t,kwr)};
AV.prototype.JSC$14445_buildRequest=function(t,E){E.params&&(t.params=E.params)};var YH=function(){};
_.u(YH,RU);YH.prototype.getApiPaths=function(){return BPr};
YH.prototype.getExtension=function(t){return _.k(t,uop)};
YH.prototype.JSC$14445_buildRequest=function(t,E,p){E.isUserInitiated&&(t.isUserInitiated=E.isUserInitiated);E.initiationSource&&(t.initiationSource=E.initiationSource);p.locationInfo&&(t.context.client.locationInfo=p.locationInfo)};var M8=function(){};
_.u(M8,RU);M8.prototype.getApiPaths=function(){return Tjs};
M8.prototype.getExtension=function(t){return _.k(t,ZiG)};
M8.prototype.JSC$14445_buildRequest=function(t,E,p){E.metadataUpdateRequest&&(E=E.metadataUpdateRequest,t.encryptedVideoId=E.encryptedVideoId,E.liveChat&&(E=E.liveChat,t.liveChat||(t.liveChat={}),E.performAsExternalChannelId&&(t.liveChat.performAsExternalChannelId=E.performAsExternalChannelId),E.source&&(t.liveChat.source=E.source)));var U;if(p==null?0:(U=p.liveChat)==null?0:U.liveChatSettings)t.liveChat||(t.liveChat={}),p=p.liveChat.liveChatSettings,t.liveChat.newLiveChatSettings=p,t.liveChat.newLiveChatSettingsMask||
(t.liveChat.newLiveChatSettingsMask={}),p.emojiReactionSet&&(t.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var ma=function(){};
_.u(ma,RU);ma.prototype.getApiPaths=function(){return d9s};
ma.prototype.getExtension=function(t){return _.k(t,_.PIs)};
ma.prototype.JSC$14445_buildRequest=function(t,E,p){p.continuation?t.continuation=p.continuation:E.videoId&&(t.videoId=E.videoId);p.clientParams&&(t.clientParams=p.clientParams)};var bX=function(){};
_.u(bX,RU);bX.prototype.getApiPaths=function(){return OLs};
bX.prototype.getExtension=function(t){return _.k(t,_.qj)};
bX.prototype.JSC$14445_buildRequest=function(t,E){t.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";t.fetchCommentsParams={};E.videoId&&(t.fetchCommentsParams.encryptedVideoId=E.videoId);E.postId&&(t.fetchCommentsParams.postId=E.postId);E.externalChannelId&&(t.fetchCommentsParams.externalChannelId=E.externalChannelId);E.linkedCommentId&&(t.fetchCommentsParams.linkedCommentId=E.linkedCommentId);(0,_.Kq.isEmpty)(t.fetchCommentsParams)&&delete t.fetchCommentsParams};var iX=function(){};
_.u(iX,RU);iX.prototype.getApiPaths=function(){return jc};
iX.prototype.JSC$14445_buildRequest=function(t){t.browseId="FEnotifications_inbox"};
iX.prototype.getExtension=function(t){return _.k(t,_.XJ)};var q8=function(){};
_.u(q8,RU);q8.prototype.getApiPaths=function(){return OLs};
q8.prototype.JSC$14445_buildRequest=function(t,E){E.signal==="GET_NOTIFICATIONS_MENU"&&(t.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");E.ctoken&&(t.ctoken=E.ctoken)};
var z7g=function(){};
_.u(z7g,q8);z7g.prototype.getExtension=function(t){return _.k(t,_.XJ)};
var lPt=function(){};
_.u(lPt,q8);lPt.prototype.getExtension=function(t){return _.k(t,X$m)};var HF=function(){};
_.u(HF,RU);HF.prototype.getApiPaths=function(){return zAm};
HF.prototype.getExtension=function(t){return _.k(t,_.XJ)};
HF.prototype.JSC$14445_buildRequest=function(){};var fx=function(){};
_.u(fx,RU);fx.prototype.getApiPaths=function(){return WB0};
fx.prototype.getExtension=function(t){return _.k(t,ntm)||void 0};
fx.prototype.JSC$14445_buildRequest=function(t,E){E.params&&(t.params=E.params);E.secondaryParams&&(t.secondaryParams=E.secondaryParams)};var BF=function(){};
_.u(BF,RU);BF.prototype.getApiPaths=function(){return $vT};
BF.prototype.getExtension=function(t){return _.k(t,V4f)};
BF.prototype.JSC$14445_buildRequest=function(t,E){E.undo&&(t.undo=E.undo);E.serializedOptOut&&(t.serializedOptOut=E.serializedOptOut);E.serializedRecordInteractionsRequest&&(t.serializedRecordInteractionsRequest=E.serializedRecordInteractionsRequest)};var w_=function(){};
_.u(w_,RU);w_.prototype.getApiPaths=function(){return y04};
w_.prototype.getExtension=function(t){return _.k(t,QOG)};
w_.prototype.JSC$14445_buildRequest=function(t,E){E.serializedInteractionsRequest&&(t.serializedRecordNotificationInteractionsRequest=E.serializedInteractionsRequest)};var RZ=function(){};
_.u(RZ,RU);RZ.prototype.getApiPaths=function(){return Z6_};
RZ.prototype.getExtension=function(t){return _.k(t,_.Vb)};
RZ.prototype.JSC$14445_buildRequest=function(t,E,p){E=E===void 0?{}:E;p=p===void 0?{}:p;E.videoId?t.videoId=E.videoId:E.playlistId&&(t.playlistId=E.playlistId);var U;t.crossDeviceDownloadData={isCrossDeviceDownload:(U=E.isCrossDeviceDownload)!=null?U:!1};!p.downloadToMobileEduShown&&E.isCrossDeviceDownload&&(t.crossDeviceDownloadData.shouldShowDownloadToMobileEdu=!0);var x;if(U=(x=E.offlineWebClientEligibility)!=null?x:p.offlineWebClientEligibility)t.offlineWebClientEligibility=U;var A;if(x=(A=E.preferredFormatType)!=
null?A:p.preferredFormatType)t.preferredFormatType=x;var m;if(A=(m=E.lastOfflineQualitySettingsSavedMs)!=null?m:p.lastOfflineQualitySettingsSavedMs)t.lastOfflineQualitySettingsSavedMs=A;E.params&&(t.params=E.params)};var VQ=function(){};
_.u(VQ,RU);VQ.prototype.getApiPaths=function(){return h1};
VQ.prototype.getExtension=function(t){return _.k(t,_.x1)};
VQ.prototype.JSC$14445_buildRequest=function(t,E,p){p=p===void 0?{}:p;E.token&&(t.continuation=E.token);p.formData&&(t.formData=p.formData)};var QQ=function(){};
_.u(QQ,RU);QQ.prototype.getApiPaths=function(){return h1};
QQ.prototype.getExtension=function(t){return _.k(t,rLr)};
QQ.prototype.JSC$14445_buildRequest=function(t,E,p){p=p===void 0?{}:p;t.continuation=p.continuation};var Cx=function(){};
_.u(Cx,RU);Cx.prototype.getApiPaths=function(){return h1};
Cx.prototype.getExtension=function(t){return _.k(t,_.Ua)};
Cx.prototype.JSC$14445_buildRequest=function(t,E){var p,U=E.panelIdentifier||((p=E.identifier)==null?void 0:p.tag);U&&(t.panelId=U);var x;if((x=E.globalConfiguration)==null?0:x.params){var A;t.params=(A=E.globalConfiguration)==null?void 0:A.params}if(_.r("enable_ai_companion")){var m;E=E.engagementPanelExtras;if(E==null?0:(m=E.aiCompanionPanelExtras)==null?0:m.includeClientConversationId){var b,f;m=(f=(b=_.X3().resolve(_.OB(Bgt)))==null?void 0:b("conversations"))==null?void 0:f.get("conversation_id")}else m=
void 0;if(b=m)t.formData=Object.assign({},t.formData,{inputComposerFormData:{conversationId:b}})}};
_.aE.Object.defineProperties(Cx.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var jO=function(){};
_.u(jO,RU);jO.prototype.getApiPaths=function(){return h1};
jO.prototype.getExtension=function(t){return _.k(t,bET)};
jO.prototype.JSC$14445_buildRequest=function(t,E){E.panelLoadingStrategy&&eGY(t,E.panelLoadingStrategy)};var r_=function(){};
_.u(r_,RU);r_.prototype.getApiPaths=function(){return h1};
r_.prototype.getExtension=function(t){return _.k(t,OSr)};
r_.prototype.JSC$14445_buildRequest=function(t,E){E.loadingStrategy&&eGY(t,E.loadingStrategy)};var kH=function(){};
_.u(kH,RU);kH.prototype.getApiPaths=function(){return h1};
kH.prototype.getExtension=function(t){return _.k(t,_.TE)};
kH.prototype.JSC$14445_buildRequest=function(t,E){E.panelLoadingStrategy&&eGY(t,E.panelLoadingStrategy)};var d_=function(){};
_.u(d_,RU);d_.prototype.getApiPaths=function(){return h1};
d_.prototype.getExtension=function(t){return _.k(t,Xg4)};
d_.prototype.JSC$14445_buildRequest=function(t,E){var p,U=(p=E.contentSourcePanelIdentifier)==null?void 0:p.tag;U&&(t.panelId=U);var x;if((x=E.globalConfiguration)==null?0:x.params){var A;t.params=(A=E.globalConfiguration)==null?void 0:A.params}};var uX=function(){};
_.u(uX,RU);uX.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
uX.prototype.getExtension=function(t){return _.k(t,hkm)};
uX.prototype.JSC$14445_buildRequest=function(t,E){E.params&&(t.params=E.params)};var JV=function(){};
_.u(JV,RU);JV.prototype.getApiPaths=function(){return kvo};
JV.prototype.getExtension=function(t){return _.k(t,FIT)};
JV.prototype.JSC$14445_buildRequest=function(t,E){E.externalChannelId&&(t.externalChannelId=E.externalChannelId);E.superChatAction&&(t.superChatAction=E.superChatAction);E.superStickersAction&&(t.superStickersAction=E.superStickersAction)};var IZ=function(){};
_.u(IZ,RU);IZ.prototype.getApiPaths=function(){return j6G};
IZ.prototype.getExtension=function(t){return _.k(t,gt0)||_.k(t,H8E)};
IZ.prototype.JSC$14445_buildRequest=function(t,E){E.videoIds?t.videoIds=E.videoIds:E.videoId&&(t.videoIds=[E.videoId]);E.playlistId&&(t.playlistId=E.playlistId);E.params&&(t.params=E.params);t.excludeWatchLater=!1};var g_=function(){};
_.u(g_,RU);g_.prototype.getApiPaths=function(){return iLG};
g_.prototype.getExtension=function(t){return _.k(t,_.Qs)};
g_.prototype.JSC$14445_buildRequest=function(t,E,p){p.create_playlist_title?t.title=p.create_playlist_title:E.title&&(t.title=E.title);if(p.create_playlist_privacy_status&&typeof p.create_playlist_privacy_status==="number"){a:{var U=p.create_playlist_privacy_status;if(U!==0){if(U===1){U="PUBLIC";break a}if(U===2){U="UNLISTED";break a}}U="PRIVATE"}t.privacyStatus=U}else E.privacyStatus&&(t.privacyStatus=E.privacyStatus);p.create_playlist_description&&(t.description=p.create_playlist_description);E.videoIds&&
(t.videoIds=E.videoIds);E.params&&(t.params=E.params);E.sourcePlaylistId&&(t.sourcePlaylistId=E.sourcePlaylistId)};var Zn=function(){};
_.u(Zn,RU);Zn.prototype.getApiPaths=function(){return fOm};
Zn.prototype.getExtension=function(t){return _.k(t,lF0)};
Zn.prototype.JSC$14445_buildRequest=function(t,E){t.playlistId=E.playlistId};var O6=function(){};
_.u(O6,RU);O6.prototype.getApiPaths=function(){return XOX};
O6.prototype.getExtension=function(t){return _.k(t,q0X)};
O6.prototype.JSC$14445_buildRequest=function(t,E){E.playlistId&&(t.playlistId=E.playlistId);E.params&&(t.params=E.params)};var Xi=function(){};
_.u(Xi,RU);Xi.prototype.getApiPaths=function(){return vfs};
Xi.prototype.getExtension=function(t){return _.k(t,_.HH)||void 0};
Xi.prototype.JSC$14445_buildRequest=function(t,E){E.actions&&(t.actions=E.actions);E.params&&(t.params=E.params);E.playlistId&&(t.playlistId=E.playlistId)};var hV=function(){};
_.u(hV,RU);_.Y=hV.prototype;_.Y.getApiPaths=function(){return Sgm};
_.Y.getExtension=function(t){return _.k(t,_.DK)};
_.Y.JSC$14445_buildRequest=function(t,E){E.videoId&&(t.playerRequest={videoId:E.videoId},E.playerParams&&(t.playerRequest.params=E.playerParams),E.racyCheckOk&&(t.playerRequest.racyCheckOk=!!E.racyCheckOk),E.contentCheckOk&&(t.playerRequest.contentCheckOk=!!E.contentCheckOk));E.params&&(t.params=E.params);E.inputType&&(t.inputType=E.inputType);t.disablePlayerResponse=!0};
_.Y.getRequestConfig=function(t){var E;(t=this.JSC$14452_getStoreKey(t))&&(E={storeStrategy:{storeKey:t}});_.r("web_log_reels_ticks")&&(E=E||{},E.requestTick="r_wrs",E.responseTick="r_wrr");return E};
_.Y.JSC$14452_getStoreKey=function(t){t=this.getExtension(t);if(t!=null&&t.videoId){var E={videoId:t.videoId};t.params&&(E.params=t.params);return _.q_("reel_item_watch",E)}};var aZ=function(){};
_.u(aZ,RU);_.Y=aZ.prototype;_.Y.getApiPaths=function(){return c0X};
_.Y.getExtension=function(t){return _.k(t,_.DK)};
_.Y.JSC$14445_buildRequest=function(t,E,p){p=p===void 0?{}:p;t.sequenceParams=E.sequenceParams;var U;((U=p)==null?0:U.contentPlaybackContext)&&_.r("web_shorts_prefetch_service_enabled")&&(t.playbackContext={contentPlaybackContext:p.contentPlaybackContext})};
_.Y.JSC$14452_getStoreKey=function(t){if(_.r("shorts_controller_retrieve_seedless_sequence_v2")&&(t=this.getExtension(t),t==null?0:t.sequenceParams))return _.q_("reel_watch_sequence",{sequenceParams:t.sequenceParams})};
_.Y.getRequestConfig=function(t){t=this.JSC$14452_getStoreKey(t);var E;t&&(E={storeStrategy:{storeKey:t}});E=E||{};E.requestTick="r_wsrs";E.responseTick="r_wsrr";E.processorTick="r_wsrp";return E};
var eO=function(){};
_.u(eO,RU);eO.prototype.getApiPaths=function(){return c0X};
eO.prototype.getExtension=function(t){return _.k(t,_.x1)};
eO.prototype.JSC$14445_buildRequest=function(t,E,p){p=p===void 0?{}:p;E.token&&(t.continuation=E.token);var U;((U=p)==null?0:U.contentPlaybackContext)&&_.r("web_shorts_prefetch_service_enabled")&&(t.playbackContext={contentPlaybackContext:p.contentPlaybackContext})};
eO.prototype.getRequestConfig=function(t){t=this.JSC$14452_getStoreKey(t);var E;t&&(E={storeStrategy:{storeKey:t}});E=E||{};E.requestTick="r_wsrs";E.responseTick="r_wsrr";E.processorTick="r_wsrp";return E};var Fi=function(){};
_.u(Fi,RU);Fi.prototype.getApiPaths=function(){return VFr};
Fi.prototype.getExtension=function(t){return _.k(t,_.UwX)};
Fi.prototype.JSC$14445_buildRequest=function(t,E,p){p=p===void 0?{}:p;E.flagAction&&(t.action=E.flagAction);E.flagRequestType&&(t.flagRequestType=E.flagRequestType);E.additionalDetailCheckboxChecked&&(t.additionalDetailCheckboxChecked=E.additionalDetailCheckboxChecked);E.legalCheckboxChecked&&(t.legalCheckboxChecked=E.legalCheckboxChecked);E={};p.flag_issue_type!==void 0&&(E.issue=p.flag_issue_type);p.flag_affiliation!==void 0&&(E.affiliation=p.flag_affiliation);p.flag_full_name&&(E.fullName=p.flag_full_name);
Object.keys(E).length&&(t.legalReportDetails=E);if(p.flag_description||p.text)t.userComments=p.flag_description||p.text;E={};p.minutes!==void 0&&p.seconds!==void 0&&(E.minutes=p.minutes,E.seconds=p.seconds);p.vss_id&&(E.vssId=p.vss_id);Object.keys(E).length&&(t.videoReportDetails=E);E={};p.video_ids&&(E.videoIds=p.video_ids);p.impersonated_channel_url&&(E.impersonatedChannelUrl=p.impersonated_channel_url);Object.keys(E).length&&(t.channelAbuseReportDetails=E)};
_.aE.Object.defineProperties(Fi.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var z8=function(){};
_.u(z8,RU);z8.prototype.getApiPaths=function(){return dvf};
z8.prototype.getExtension=function(t){return _.k(t,aaG)};
z8.prototype.JSC$14445_buildRequest=function(t,E){E.blockedForKidsContent&&(t.blockedForKidsContent=E.blockedForKidsContent)};var lX=function(){};
_.u(lX,RU);lX.prototype.getApiPaths=function(){return pBG};
lX.prototype.getExtension=function(t){return _.k(t,q38)};
lX.prototype.JSC$14445_buildRequest=function(t,E,p){t.params=E.params;p.impersonated_channel_url&&(t.impersonatedChannelUrl=p.impersonated_channel_url)};var G8=function(){};
_.u(G8,RU);G8.prototype.getApiPaths=function(){return Dv3};
G8.prototype.getExtension=function(t){return _.k(t,_.ezr)};
G8.prototype.JSC$14445_buildRequest=function(t,E){E.items&&(t.items=E.items);E.kidGaiaId&&(t.kidGaiaId=E.kidGaiaId)};var nx=function(){};
_.u(nx,RU);nx.prototype.getApiPaths=function(){return r0m};
nx.prototype.getExtension=function(t){return _.k(t,_.uh4)};
nx.prototype.JSC$14445_buildRequest=function(t,E){E.params&&(t.params=E.params);E.targetId&&(t.targetId=E.targetId)};var N8=function(){};
_.u(N8,RU);N8.prototype.getApiPaths=function(){return YL0};
N8.prototype.getExtension=function(t){return _.k(t,hWX)};
N8.prototype.JSC$14445_buildRequest=function(t,E){E.externalVideoId&&(t.externalVideoId=E.externalVideoId);E.query&&(t.query=E.query);E.sourceTimelines&&(t.sourceTimelines=E.sourceTimelines)};var Dn=function(){};
_.u(Dn,RU);Dn.prototype.getApiPaths=function(){return MSo};
Dn.prototype.getExtension=function(t){return _.k(t,_.x1)||void 0};
Dn.prototype.JSC$14445_buildRequest=function(t,E){E.token&&(t.continuation=E.token)};
_.Ggb=function(){};
_.u(_.Ggb,RU);_.Y=_.Ggb.prototype;_.Y.getApiPaths=function(){return MSo};
_.Y.getExtension=function(t){return _.k(t,_.G2)||void 0};
_.Y.isNavigationCommand=function(){return!0};
_.Y.JSC$14452_getStoreKey=function(t,E){E=E===void 0?{}:E;if(!E.disableCache&&(t=this.getExtension(t))&&t.query)return E={query:t.query},t.params&&(E.params=t.params),_.q_("search",E)};
_.Y.JSC$14445_buildRequest=function(t,E,p){E.query&&(t.query=E.query);E.params&&(t.params=E.params);if(!_.r("web_forward_suggest_stats_killswitch")){var U=_.k(E,x7s);U&&(t.suggestStats=U)}var x;!_.r("kevlar_searchbox_stats_killswitch")&&((x=p.tempData)==null?0:x.gs_l)&&!_.k(E,x7s)&&(t.webSearchboxStatsUrl="/search?oq="+(p.tempData.oq||"")+"&gs_l="+p.tempData.gs_l);var A;if((A=p.tempData)==null?0:A.entityMid)E=t.suggestionSearchParams||{},E.entityMid=p.tempData.entityMid,t.suggestionSearchParams=E;
if(_.r("enable_desktop_vdcbg_components")||_.r("enable_inline_muted_playback_on_web_search"))E=_.nF().getFlag(186),t.inlineSettingStatus=E?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";p.isFromShorts&&(t.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.Y.getRequestConfig=function(t,E){E=E===void 0?{}:E;t=this.JSC$14452_getStoreKey(t,E);var p;t&&(p={storeStrategy:{storeKey:t}});_.r("web_log_search_ticks_ks")||(p=p||{},p.requestTick="sr_s",p.responseTick="sr_r");return p};var s6=function(){};
_.u(s6,RU);s6.prototype.getApiPaths=function(){return eAp};
s6.prototype.getExtension=function(t){return _.k(t,K3W)};
s6.prototype.JSC$14445_buildRequest=function(t,E){E.serializedGetSharingProviderDataParams&&(t.serializedGetSharingProviderDataParams=E.serializedGetSharingProviderDataParams)};var Lx=function(){};
_.u(Lx,RU);Lx.prototype.getApiPaths=function(){return FBW};
Lx.prototype.getExtension=function(t){return _.k(t,Scs)};
Lx.prototype.JSC$14445_buildRequest=function(t,E){E.endpoint&&(t.endpoint=E.endpoint);E.action&&(t.action=E.action)};var PF=function(){};
_.u(PF,RU);PF.prototype.getApiPaths=function(){return BjW};
PF.prototype.getExtension=function(t){return _.k(t,GWX)};
PF.prototype.JSC$14445_buildRequest=function(t,E){t.videoId=E.videoId;E.scheduledRedirectMetadataSourceVideoId&&(t.scheduledRedirectMetadata={sourceVideoId:E.scheduledRedirectMetadataSourceVideoId})};var T8=function(){};
_.u(T8,RU);T8.prototype.getApiPaths=function(){return qLr};
T8.prototype.getExtension=function(t){return _.k(t,_.zh3)};
T8.prototype.JSC$14445_buildRequest=function(t,E){t.params=E.params;t.correctionText=E.correctionText};var oZ=function(){};
_.u(oZ,RU);oZ.prototype.getApiPaths=function(){return J5t};
oZ.prototype.getExtension=function(t){return _.k(t,_.ax0)};
oZ.prototype.JSC$14445_buildRequest=function(t,E){E.params&&(t.params=E.params);t.searchQuery=E.searchQuery;t.languageCode=E.languageCode;t.kind=E.kind;t.name=E.name;t.externalVideoId=E.externalVideoId};var WF=function(){};
_.u(WF,RU);WF.prototype.getApiPaths=function(){return ggT};
WF.prototype.getExtension=function(t){return _.k(t,tmo)};
WF.prototype.JSC$14445_buildRequest=function(t,E){E.params&&(t.params=E.params)};var $H=function(t){this.JSC$18732_storeWithEntities=t};
_.u($H,RU);$H.prototype.getApiPaths=function(){return Uvm};
$H.prototype.getExtension=function(t){return _.k(t,pMG)||_.k(t,xks)};
$H.prototype.JSC$14445_buildRequest=function(t,E,p){p.client_data&&(t.clientData=p.client_data);if(E.commerceActionConfig){var U=E.commerceActionConfig;E=U.actionId;U=U.commerceActionParams;E&&(t.actionId=E);U&&(t.commerceActionParams=U)}else{var x=E.actionId,A=E.commerceActionParams;p=E.entityKeys;x&&(t.actionId=x);A&&(t.commerceActionParams=A);var m;E=(U=this.JSC$18732_storeWithEntities)==null?void 0:(m=U.getState())==null?void 0:m.entities;if(p&&E){U=[];m=_.M(p);for(p=m.next();!p.done;p=m.next())if(x=
p.value,p=_.gm(x).entityType,x=_.hj(E,p,x))A={},U.push((A[p]=x,A));t.entityMutationPayloads=U}}};
$H.prototype.getRequestConfig=function(t){var E,p=(E=_.k(t,pMG))==null?void 0:E.requestSequenceType;if(p&&t.clickTrackingParams&&p!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:t.clickTrackingParams,sequenceType:p}}};
$H[aa]=[XY];var Kx=function(){};
_.u(Kx,RU);Kx.prototype.getApiPaths=function(){return ZP0};
Kx.prototype.getExtension=function(t){return _.k(t,_.kRr)};
Kx.prototype.JSC$14445_buildRequest=function(t,E){E.feedbackData&&(t.feedbackData=E.feedbackData);E.params&&(t.itemParams=E.params)};
_.aE.Object.defineProperties(Kx.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var vF=function(){};
_.u(vF,RU);vF.prototype.getApiPaths=function(){return OPm};
vF.prototype.getExtension=function(t){return _.k(t,dks)};
vF.prototype.JSC$14445_buildRequest=function(t,E,p){p.payments_payload&&(t.paymentsPayload=p.payments_payload);p.offer_params&&(t.offerParams=p.offer_params);E.transactionParams&&(t.transactionParams=E.transactionParams)};var yQ=function(){};
_.u(yQ,RU);yQ.prototype.getApiPaths=function(){return XBr};
yQ.prototype.getExtension=function(t){return _.k(t,_.uNX)};
yQ.prototype.JSC$14445_buildRequest=function(t,E,p){p=p===void 0?{}:p;E.buybucketParams&&(t.buybucketData={params:E.buybucketParams},E.stickerParams?t.buybucketData.stickerParams=E.stickerParams:(p.rich_chat_message?t.buybucketData.richChatMessage=p.rich_chat_message:p.chat_message_text&&(t.buybucketData.chatMessageText=p.chat_message_text),p.purchase_price_micros&&(t.buybucketData.purchasePriceMicros=p.purchase_price_micros.toString())));E.donationAmountMicros&&(t.tipAmountMicros=E.donationAmountMicros,
E.tipParams&&(t.tipParams=E.tipParams));E.offerParams&&(t.offerParams=E.offerParams);E.productData&&(t.productData=E.productData);E.transactionParams&&(t.transactionParams=E.transactionParams)};var SO=function(){};
_.u(SO,RU);SO.prototype.getApiPaths=function(){return hR0};
SO.prototype.getExtension=function(t){return _.k(t,gl4)};
SO.prototype.JSC$14445_buildRequest=function(t,E){E.updateFopParams&&(t.updateFopParams=E.updateFopParams)};var cF=function(){};
_.u(cF,RU);cF.prototype.getApiPaths=function(){return azs};
cF.prototype.getExtension=function(t){return _.k(t,_.RF)};
cF.prototype.JSC$14445_buildRequest=function(t,E){E.couponCode&&(t.couponCode=E.couponCode);E.params&&(t.itemParams=E.params)};var tz=function(){};
_.u(tz,RU);tz.prototype.getApiPaths=function(){return eRp};
tz.prototype.getExtension=function(t){return _.k(t,_.UkZ)};
tz.prototype.JSC$14445_buildRequest=function(t,E,p){p=p===void 0?{}:p;E.params&&(t.params=E.params);p.ctk&&(t.clientToken=p.ctk)};var EN=function(t){this.JSC$18767_storeWithEntities=t};
_.u(EN,RU);EN.prototype.getApiPaths=function(){return Fk0};
EN.prototype.getExtension=function(t){return _.k(t,_.k3)};
EN.prototype.JSC$14445_buildRequest=function(t,E,p){p.purchase_price_micros&&(t.productData={pdgData:{purchasePriceMicros:p.purchase_price_micros.toString()}},p.rich_chat_message&&(t.productData.pdgData.richChatMessage=p.rich_chat_message),p.currency_code&&(t.productData.pdgData.currencyCode=p.currency_code));E.transactionParams&&(t.transactionParams=E.transactionParams);E.clientLocationContext&&(t.clientLocationContext=E.clientLocationContext);p.payments_payload&&(t.paymentsPayload=p.payments_payload);
p.funds_guarantee_callback_client_data&&(t.fundsGuaranteeCallbackClientData=p.funds_guarantee_callback_client_data);var U,x;p=(U=this.JSC$18767_storeWithEntities)==null?void 0:(x=U.getState())==null?void 0:x.entities;if(E.entityKeys&&p){U=[];E=_.M(E.entityKeys);for(x=E.next();!x.done;x=E.next()){var A=x.value;x=_.gm(A).entityType;if(A=_.hj(p,x,A)){var m={};U.push((m[x]=A,m))}}t.entityMutationPayloads=U}};
EN[aa]=[XY];var pX=function(){};
_.u(pX,RU);pX.prototype.getApiPaths=function(){return zRm};
pX.prototype.getExtension=function(t){return _.k(t,JcX)};
pX.prototype.JSC$14445_buildRequest=function(t,E,p){p=p===void 0?{}:p;p.backend_analytics&&(t.serializedBackendAnalyticsEvent=p.backend_analytics);E.offerParams&&(t.offerParams=E.offerParams)};var UN=function(){};
_.u(UN,RU);UN.prototype.getApiPaths=function(){return azs};
UN.prototype.getExtension=function(t){return _.k(t,y$_)};
UN.prototype.JSC$14445_buildRequest=function(t,E){E.params&&(t.itemParams=E.params)};var x_=function(){};
_.u(x_,RU);x_.prototype.getApiPaths=function(){return lzX};
x_.prototype.getExtension=function(t){return _.k(t,_.bk3)};
x_.prototype.JSC$14445_buildRequest=function(t,E,p){p.resume_time_ms&&(t.resumeTimeMs=p.resume_time_ms);E.pauseParams&&(t.pauseParams=E.pauseParams)};var Az=function(){};
_.u(Az,RU);Az.prototype.getApiPaths=function(){return GvW};
Az.prototype.getExtension=function(t){return _.k(t,_.I7m)};
Az.prototype.JSC$14445_buildRequest=function(t,E,p){p=p===void 0?{}:p;p.c&&(t.redeemCode=p.c);p.rd&&(t.riskData=p.rd);p.ctk&&(t.clientToken=p.ctk)};var Y_=function(){};
_.u(Y_,RU);Y_.prototype.getApiPaths=function(){return ng4};
Y_.prototype.getExtension=function(t){return _.k(t,_.ikp)};
Y_.prototype.JSC$14445_buildRequest=function(t,E){E.resumeParams&&(t.resumeParams=E.resumeParams)};var Mo=function(t,E){this.clientName=t;this.defaultExpirationDelayMs=E};
Mo.prototype.put=function(t,E){var p=this,U;return _.q(function(x){U=Object.assign({},E.data);U.key=t;U.clientName=p.clientName;U.expireTimestampMs===void 0&&(U.expireTimestampMs=(Math.round((0,_.eu)())+p.defaultExpirationDelayMs).toString());return x.return(p.putInternal(t,U))})};
Mo[aa]=[uw,dXb];var nWe=function(){Mo.apply(this,arguments);this.JSC$18797_responseStore=new Map};
_.u(nWe,Mo);_.Y=nWe.prototype;_.Y.get=function(t){var E=this;return _.q(function(p){return p.return(We(E,t))})};
_.Y.putInternal=function(t,E){var p=this,U,x,A;return _.q(function(m){U=p.defaultExpirationDelayMs;E.expireTimestampMs&&(U=Number(E.expireTimestampMs)-Math.round((0,_.eu)()),x=_.z3("mweb_override_response_store_expiration_ms"),x>0&&x<U&&(U=x));A=setTimeout(function(){p.remove(t)},U);
p.JSC$18797_responseStore.set(t,{entryData:E,timer:A});_.Do(m)})};
_.Y.remove=function(t){var E=this;return _.q(function(p){Nio(E,t);_.Do(p)})};
_.Y.removeAll=function(){var t=this;return _.q(function(E){t.JSC$18797_responseStore.forEach(function(p){clearTimeout(p.timer)});
t.JSC$18797_responseStore.clear();_.Do(E)})};
_.Y.has=function(t){return!!this.JSC$18797_responseStore.get(t)};
_.Y.getKeys=function(){return this.JSC$18797_responseStore.keys()};
var We=function(t,E){if(t=t.JSC$18797_responseStore.get(E))return new _.ol(t.entryData)},Nio=function(t,E){var p=t.JSC$18797_responseStore.get(E);
p&&(clearTimeout(p.timer),t.JSC$18797_responseStore.delete(E))};
nWe.prototype.markAsProcessed=function(t){var E=this,p;return _.q(function(U){p=E.JSC$18797_responseStore.get(t);if(!p)return U.jumpTo(0);p.entryData.isProcessed=!0;return U.yield(E.putInternal(t,p.entryData),0)})};var F28;var lXE=function(t,E,p){Mo.call(this,t,E);this.token=p};
_.u(lXE,Mo);_.Y=lXE.prototype;_.Y.get=function(t){var E=this,p,U;return _.q(function(x){return x.nextAddress==1?x.yield(a7(E.token),2):x.nextAddress!=3?(p=x.yieldResult,x.yield(p.get("ResponseStore",[t,E.clientName]),3)):(U=x.yieldResult)?x.return(new _.ol(U)):x.return(void 0)})};
_.Y.putInternal=function(t,E){var p=this,U;return _.q(function(x){if(x.nextAddress==1)return x.yield(a7(p.token),2);U=x.yieldResult;return x.yield(U.put("ResponseStore",E),0)})};
_.Y.remove=function(t){var E=this,p;return _.q(function(U){if(U.nextAddress==1)return U.yield(a7(E.token),2);p=U.yieldResult;return U.return(p.delete("ResponseStore",[t,E.clientName]))})};
_.Y.removeAll=function(){var t=this,E;return _.q(function(p){if(p.nextAddress==1)return p.yield(a7(t.token),2);E=p.yieldResult;return p.yield(yZ4(E,IDBKeyRange.only(t.clientName)),0)})};
_.Y.has=function(){throw Error("lj");};
_.Y.markAsProcessed=function(t){var E=this,p,U;return _.q(function(x){if(x.nextAddress==1)return x.yield(a7(E.token),2);if(x.nextAddress!=3)return p=x.yieldResult,x.yield(p.get("ResponseStore",[t,E.clientName]),3);U=x.yieldResult;if(!U)return x.jumpTo(0);U.isProcessed=!0;return x.yield(p.put("ResponseStore",U),0)})};_.mO=new _.gM("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var Dyd=function(t){var E;this.stateTagsData=(E=t.responseContext)==null?void 0:E.stateTags},sve=function(t){var E;
return((E=t.stateTagsData)==null?void 0:E.stateTagsModified)||[]};var L98;L98=function(t){this.JSC$18810_responseStore=t};
_.Bn=function(t,E,p){if(!_.r("state_tags_killswitch")){var U=new Dyd(E);if(sve(U).length>0){var x=t.JSC$18810_responseStore.getKeys();x=_.M(x);for(var A=x.next();!A.done;A=x.next()){A=A.value;var m=We(t.JSC$18810_responseStore,A);if(m){var b=_.Z2(m);a:{var f=void 0;m=sve(U);b=((f=(new Dyd(b)).stateTagsData)==null?void 0:f.relevantStateTags)||[];f=_.M(b);for(b=f.next();!b.done;b=f.next())if(b=b.value,b.stateTag!=null&&m.includes(b.stateTag)&&b.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){m=
!0;break a}m=!1}m&&Nio(t.JSC$18810_responseStore,A)}}}}var B;U=(B=E.responseContext)==null?void 0:B.maxAgeSeconds;p&&U&&Number(U)>0&&(E=OY(E,U),t.JSC$18810_responseStore.put(p,new _.ol(E)))};
L98.prototype.handleResponse=function(t,E){if(!E)throw Error("mj");var p,U;E=(p=E.config)==null?void 0:(U=p.storeStrategy)==null?void 0:U.storeKey;_.Bn(this,t,E)};
L98[aa]=[_.Tp];_.v5K=new _.gM("STORE_RESPONSE_PROCESSOR_TOKEN");var PNg=function(t){this.JSC$18813_responseStore=t};
PNg.prototype.handleResponse=function(t,E){if(E.input.match(_.Cf(c0X))){var p;if(t==null?0:(p=t.entries)==null?0:p.length)for(t=_.M(t.entries),E=t.next();!E.done;E=t.next()){p=E.value.command;var U=void 0;E=(U=_.k(p,_.DK))==null?void 0:U.unserializedPrefetchData;if(!p||!E)break;U=(new hV).JSC$14452_getStoreKey(p);var x=_.k(E,MZT),A=void 0,m=void 0,b=void 0,f=void 0,B=void 0,R=void 0,V=((A=x)==null?0:(m=A.responseContext)==null?0:m.maxAgeSeconds)&&Number((b=x)==null?void 0:(f=b.responseContext)==null?
void 0:f.maxAgeSeconds)>0?Number((B=x)==null?void 0:(R=B.responseContext)==null?void 0:R.maxAgeSeconds):600;U&&V>0&&(x=OY(x,V),this.JSC$18813_responseStore.put(U,new _.ol(x)));p=(new og).JSC$14452_getStoreKey(p);E=_.k(E,T84);f=b=m=A=x=U=void 0;B=((U=E)==null?0:(x=U.responseContext)==null?0:x.maxAgeSeconds)&&Number((A=E)==null?void 0:(m=A.responseContext)==null?void 0:m.maxAgeSeconds)>0?Number((b=E)==null?void 0:(f=b.responseContext)==null?void 0:f.maxAgeSeconds):600;p&&B>0&&(E=OY(E,B),this.JSC$18813_responseStore.put(p,
new _.ol(E)))}}};
PNg[aa]=[_.Tp];var Tie=function(t,E){this.innertubeTransportService=t;this.JSC$18816_commandHandler=E};
Tie.prototype.submitForm=function(t,E,p,U,x){var A=this,m,b,f,B,R,V;return _.q(function(Q){if(Q.nextAddress==1)return m={submitId:t,formData:E,submitBehavior:p,params:U},b=_.Cf(HPX),Q.yield(_.rY(A.innertubeTransportService,m,b,x),2);f=Q.yieldResult;if(!f)return Q.return(Promise.reject(new _.cC("Submit API returned an undefined response. Submit ID: "+t)));B=f;(V=(R=B)==null?void 0:R.onResponseReceived)&&A.JSC$18816_commandHandler.resolveCommand(V);return Q.return(B)})};
Tie[aa]=[_.PL,_.ei];var bi=function(){this.scheduler=_.ty()},oWe;
bi.prototype.pause=function(){throw Error("nj");};
bi.prototype.resume=function(){throw Error("nj");};
bi.prototype.queue=function(t){var E=this,p=_.fd(),U=_.E_(this.scheduler,function(){try{var x;if(_.Gh.instance)var A=_.Gh.instance;else{var m=new _.cC("Error: Unexpected uninitialized CommandHandler.");_.bV(m);A=void 0}(x=A)==null||x.resolveCommand(t.command);p.resolve()}catch(b){p.reject(b)}});
p.promise.thenCatch(function(x){x instanceof _.mF&&E.scheduler.cancelJob(U)});
return p.promise};
bi.prototype.queueAll=function(t){var E=new Map;t=_.M(t);for(var p=t.next();!p.done;p=t.next())p=p.value,E.set(p.id,this.queue(p));return E};var $yo=function(t,E){var p=this;this.taskModel=t;this.onTaskCancelledCallback=E;this.resolver=_.fd();t=t.proto.prefetchConfig;if(!t)throw Error("oj");if(!t.prefetchAction)throw Error("pj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(U){U instanceof _.mF&&(W9K(p,p.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),p.onTaskCancelledCallback(p.taskModel.id,p.jobId),p.tick("pcc"));
throw U;});
this.timerName=this.taskModel.id;_.yS(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
$yo.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 W9K=function(t,E){_.KF({prefetchInfo:{cancellationReason:E}},t.timerName)};
$yo.prototype.tick=function(t){_.SR(t,void 0,this.timerName)};var qo=function(){var t=this;this.scheduler=_.ty();this.maxInflightTasks=_.z3("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.z3("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new QFr;this.onTaskCancelled=function(E,p){p&&t.scheduler.cancelJob(p);K9t(t,E);ii(t,3)}},vW9=function(){qo.instance||(qo.instance=new qo);
return qo.instance};
qo.prototype.pause=function(){this.prefetchCoordinatorState=0};
qo.prototype.resume=function(){ii(this,0)};
qo.prototype.queue=function(t){t=ygC(this,t);ii(this,1);return t};
qo.prototype.queueAll=function(t){var E=new Map;t=_.M(t);for(var p=t.next();!p.done;p=t.next())p=p.value,E.set(p.id,ygC(this,p));ii(this,1);return E};
var ygC=function(t,E){var p=t.allPrefetchTasks.get(E.id);if(p)return p.cancellablePromise;try{var U=new $yo(E,t.onTaskCancelled)}catch(A){return _.S5(A)}p=U;p.tick("pcq");var x={prefetchInfo:{taskId:p.taskModel.id,isPrefetch:!0,fetchAction:p.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:p.taskModel.command.clickTrackingParams}};p.taskModel.csn&&(x.clientScreenNonce=p.taskModel.csn);_.KF(x,p.timerName);t.allPrefetchTasks.set(E.id,U);t.drainingHeap.insert(-U.getPriority(),U);return U.cancellablePromise},
ii=function(t,E){t.prefetchCoordinatorState===E&&(t.prefetchCoordinatorState=2,Shg(t))},Shg=function(t){for(var E={};t.prefetchCoordinatorState!==0;E={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(t.inflightPrefetchTasks.size>=t.maxInflightTasks){t.prefetchCoordinatorState=3;break}E.prefetchTask$jscomp$1=t.drainingHeap.remove();if(!E.prefetchTask$jscomp$1){t.prefetchCoordinatorState=1;break}E.taskId$jscomp$3=E.prefetchTask$jscomp$1.taskModel.id;if(t.allPrefetchTasks.has(E.taskId$jscomp$3)){var p=-1;t.coordinatorTimeoutMs>0&&(p=_.E_(t.scheduler,function(U){return function(){HW(t,U.taskId$jscomp$3,Error("qj"))}}(E),t.coordinatorTimeoutMs));
t.inflightPrefetchTasks.set(E.taskId$jscomp$3,p);if(!t.JSC$18833_commandHandler){if(!_.Gh.instance){HW(t,E.taskId$jscomp$3,Error("rj"));continue}t.JSC$18833_commandHandler=_.Gh.instance}a:switch(E.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":p=1;break a;default:p=0}E.prefetchTask$jscomp$1.jobId=t.scheduler.addJob(function(U){return function(){U.prefetchTask$jscomp$1.tick("pcr");try{t.JSC$18833_commandHandler.resolveCommand(U.prefetchTask$jscomp$1.taskModel.command)||
HW(t,U.taskId$jscomp$3,Error("sj"))}catch(x){HW(t,U.taskId$jscomp$3,x)}}}(E),p,0)}}},cg7=function(t,E){(E=K9t(t,E))!=null&&(E.resolver.resolve(),E.tick("pce"));
ii(t,3)},HW=function(t,E,p){(E=K9t(t,E,p))!=null&&(E.resolver.reject(p),E.tick("pcc"),W9K(E,"CANCELLATION_REASON_ERROR"),Math.random()<=_.z3("prefetch_coordinator_error_logging_sampling_rate")&&(p=new _.cC("Prefetch Command failed.",E.taskModel.id,p.message),_.bV(p)));
ii(t,3)},K9t=function(t,E,p){var U=t.allPrefetchTasks.get(E);
U?((p=t.inflightPrefetchTasks.get(E))&&p!==-1&&t.scheduler.cancelJob(p),t.inflightPrefetchTasks.delete(E),t.allPrefetchTasks.delete(E)):_.qW(new _.cC("Unexpected missing prefetch task when deleting task.",E,p==null?void 0:p.message));return U};var tKb=function(t,E,p,U,x){this.id=t;this.triggerOn=E;this.cancelOn=p;this.command=U;this.proto=x};
_.aE.Object.defineProperties(tKb.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var EO7=function(){this.JSC$18838_prefetchCoordinator=vW9();oWe||(oWe=new bi);this.defaultCoordinator=oWe},pyl;
EO7.getInstance=function(){pyl||(pyl=new EO7);return pyl};
EO7.prototype.get=function(t){switch(t){case 0:return this.JSC$18838_prefetchCoordinator;default:return this.defaultCoordinator}};var fX=function(){this.coordinatorSupplier=EO7.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},AW7=function(t){var E=_.yL()||void 0,p=Object.keys(UQL)[0];
if(p){var U=t.taskIdByTriggerId.get(p);if(U!=null){t.taskIdByTriggerId.delete(p);p=[];U=_.M(U);for(var x=U.next();!x.done;x=U.next())if(x=t.tasks.get(x.value))E!=="UNDEFINED_CSN"&&(x.csn=E),p.push(x);p=NKY(p);E=[];p=_.M(p);for(U=p.next();!U.done;U=p.next()){x=_.M(U.value);U=x.next().value;x=x.next().value;U=t.coordinatorSupplier.get(U).queueAll(x);U=_.M(U);var A=U.next();for(x={};!A.done;x={taskId$jscomp$9:void 0},A=U.next()){var m=_.M(A.value);A=m.next().value;m=m.next().value;x.taskId$jscomp$9=
A;A=m;E.push(x.taskId$jscomp$9);t.queuedPromisesByTask.set(x.taskId$jscomp$9,_.Mx(A,function(b){return function(){xQC(t,b.taskId$jscomp$9)}}(x)))}}}}else _.qW(new _.cC("Unexpected malformed TriggerEvent."))};
fX.prototype.trigger=function(t,E){var p=this,U=this.tasks.get(t);if(!U||this.queuedPromisesByTask.has(t))return!1;YJ5(this,t,U.triggerOn);E!=="UNDEFINED_CSN"&&(U.csn=E);E=this.coordinatorSupplier.get(U.taskType).queue(U);this.queuedPromisesByTask.set(t,_.Mx(E,function(){xQC(p,t)}));
return!0};
fX.prototype.cancel=function(t){var E=this.queuedPromisesByTask.get(t);if(E)E.cancel();else return xQC(this,t)};
var xQC=function(t,E){t.queuedPromisesByTask.delete(E);var p=t.tasks.get(E);if(!p)return!1;t.tasks.delete(E);YJ5(t,E,p.triggerOn);(p=nJD(p.cancelOn))&&(t=t.taskIdByCancelId.get(p))&&t.delete(E);return!0},YJ5=function(t,E,p){(p=Object.keys(p)[0])&&(t=t.taskIdByTriggerId.get(p))&&t.delete(E)};var UQL={taskRegistered:{}},BW=function(){fX.instance||(fX.instance=new fX);this.JSC$18847_taskManager=fX.instance};
_.u(BW,kf);
BW.prototype.resolveCommand=function(t){var E=this,p,U;return _.q(function(x){p=_.k(t,Y9r);if((U=p)==null||!U.tasks){var A=new _.cC("RegisterTasksCommand is missing tasks.");_.bV(A);return x.return()}A=E.JSC$18847_taskManager;for(var m=_.M(p.tasks),b=m.next();!b.done;b=m.next())if(b=b.value,b=b.id&&b.triggerOn&&b.cancelOn&&b.command?new tKb(b.id,b.triggerOn,b.cancelOn,b.command,b):void 0,b){var f=Object.keys(b.triggerOn)[0];if(f){var B=nJD(b.cancelOn);B?(A.tasks.set(b.id,b),A.taskIdByTriggerId.has(f)||A.taskIdByTriggerId.set(f,
new Set),A.taskIdByTriggerId.get(f).add(b.id),A.taskIdByCancelId.has(B)||A.taskIdByCancelId.set(B,new Set),A.taskIdByCancelId.get(B).add(b.id)):_.qW(new _.cC("Unexpected malformed cancelOn field."))}else _.qW(new _.cC("Unexpected malformed triggerOn field."))}else _.qW(new _.cC("Unexpected malformed Task proto."));AW7(E.JSC$18847_taskManager);_.Do(x)})};var MKJ={},mQo=(MKJ.rendered={priority:_.r("web_adaptive_early_init")?8:0,callback:function(){var t={};t.numCpu=navigator.hardwareConcurrency;var E={};E.ramGb=_.Ui.navigator.deviceMemory;var p={staticContext:{}};E.ramGb&&vG$(E.ramGb)&&(p.staticContext.memoryTotalKbytes=(E.ramGb*1048576).toString());t.numCpu&&vG$(t.numCpu)&&(p.staticContext.cpuCores=t.numCpu);if(_.r("web_enable_adaptive_appl_signal")){t={};E=ImK();E=E.length>0?E[0]:void 0;var U,x=(U=_.EF("rses_dpj"))!=null?U:E==null?void 0:E.tick.rses_dpj,
A;U=(A=_.EF("rsef_dpj"))!=null?A:E==null?void 0:E.tick.rsef_dpj;x&&Number(x)>0&&U&&Number(U)>0&&(A=Math.ceil(Number(U)-Number(x)),A>0&&(t.loadLatency=A));t.loadLatency&&vG$(t.loadLatency)&&(p.appL=t.loadLatency.toString())}_.MW("applicationStarted",p);y_E=p;_.r("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",S3l)}},MKJ);var bNg=new _.gM("WINDOW_ON_ERROR"),iN8=new _.gM("ERROR_WEIGHT_MAPS"),qJe=new _.gM("INIT_ERROR");var HNK={},f8t=(HNK.initialized={priority:10,callback:function(t){t.injector.resolve(qJe)()}},HNK);var BVg=function(){},wy7=function(){var t=_.ws("meta_logger_impl");
t||(t=new BVg,_.Oy("meta_logger_impl",t));return t},R2C=function(){wy7().csiSubscriptionKey=Le$("meta_logging_csi_event",function(t){var E=t.timerName;
if(t=t.timelineData){_.yS(E,{startTime:t.startTime},E);t.infos&&_.KF(t.infos,E);for(var p=_.M(Object.keys(t.ticks)),U=p.next();!U.done;U=p.next())U=U.value,_.SR(U,t.ticks[U],E)}})};
BVg.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&oRO(this.csiSubscriptionKey)};var VKt={},Qc5=(VKt.initialized={priority:10,callback:function(){R2C()}},VKt);var CQt=function(t,E){this.innertubeClientName=t;this.JSC$18858_prefCookie=E};
CQt.prototype.record=function(){if(_.r("web_li_record_binary_eval_tick")){var t=_.EF("rsef_dpj");var E=_.EF("rses_dpj");t=t!==void 0&&E!==void 0?Math.round(t-E):void 0;if(t!==void 0&&t>0){E=_.WL(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var p=this.poolSize;if(!(E.valuesSeen>=1E9)){if(E.valuesSample.length<p)E.valuesSample.push(t);else{var U=Math.floor(Math.random()*(E.valuesSeen+1));U<p&&(E.valuesSample[U]=t)}E.valuesSeen+=1}_.o4(this.storagePrefix+"-"+this.innertubeClientName,
E,2592E3);t=E.valuesSample;E=DuO(t);t=t.length<this.poolSize?void 0:E<400?1:E<1700?2:3;t!==void 0&&(this.JSC$18858_prefCookie.set(this.cookiePrefix+this.innertubeClientName,t),this.JSC$18858_prefCookie.save())}}else _.$z(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18858_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18858_prefCookie.save()};
CQt[aa]=[uw,mU];var jcd=function(){CQt.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.u(jcd,CQt);var rWo=new _.gM("PAGE_LOAD_TIME_TOKEN");var k$5=function(t){this.signal=t;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;t.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.E_(_.ir,this.disableLoggingAndSendPayload,1E4)};
k$5.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.ir.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),dQK(this))};
var dQK=function(t){var E=_.vV();if(E){var p={webClientComponentsData:{components:Array.from(t.ids,function(U){return{id:U}})}};
t.ids.clear();_.Pu().visualElementStateChanged(E,p)}};var u85=Se({a11y:oNf});_.JWL=cs(u85)(u85.a11y,{ephemeralActionSelector:function(t){return t.ephemeralAction||null}});var I8J=Se({continuation:yx4});var gOt=cs(I8J)(I8J.continuation,{continuationCommandSelector:function(t){return t.continuationCommand}});var ZNg=function(){this.loadFns=new Map},ONg=function(t,E){return typeof E==="string"?t.loadFns.get(E):function(){var p;
return _.q(function(U){return U.nextAddress==1?(p={},U.yield(Promise.all(E.map(function(x){var A,m;return _.q(function(b){if(b.nextAddress==1){A=t.loadFns.get(x);if(!A)return p[x]=void 0,b.jumpTo(0);_.aR(b,3);m=x;return b.yield(A(),5)}if(b.nextAddress!=3)return p[m]=b.yieldResult,_.r7(b,0);_.nB(b);p[x]=void 0;_.Do(b)})})),2)):U.return(p)})}};var Xyg=new _.gM("CHUNK_REGISTRY_TOKEN");var h2o=new _.gM("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var wf=function(t,E){this.JSC$18890_storeWithEntities=t;this.JSC$18890_commandHandler=E;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
wf.prototype.start=function(){this.JSC$18890_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
wf.prototype.observeDownloadingEntities=function(){var t=_.LI0(this.JSC$18890_storeWithEntities.getState().entities).map(function(U){return Pu0(U)});
if(t.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var E={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:OY_()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.kh(_.zF("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18890_commandHandler.resolveCommand(E)}this.downloadingEntities=t}else if(this.downloadingEntities.length){var p=sOj(this.JSC$18890_storeWithEntities.getState().entities).map(function(U){return Pu0(U)});
this.downloadingEntities.filter(function(U){return p.includes(U)}).length&&(t={openPopupAction:CjL()},this.JSC$18890_commandHandler.resolveCommand(t));
this.downloadingEntities=[]}};
wf[aa]=[XY,_.ei];var a8e;_.RX=function(t,E,p,U,x,A,m,b){this.JSC$18893_playerApiPromise=t;this.JSC$18893_commandHandler=E;this.JSC$18893_screenManager=p;this.offlineWebClientEligibility=U;this.JSC$18893_prefStorage=x;this.JSC$18893_actionRouter=A;this.entityTypeMap=m;this.JSC$18893_persistentStorePromiseAccessor=b;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
a8e=function(){var t=_.X3().resolve(_.RX),E;_.q(function(p){if(p.nextAddress==1)return t.downloadFailureListenerBound?p.return():p.yield(t.JSC$18893_playerApiPromise,2);E=p.yieldResult;E.addEventListener("onOfflineOperationFailure",function(U){if(U.failureReason&&U.entityKey&&U.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(U.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var x=_.gm(U.entityKey).entityId;x&&t.JSC$18893_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
x)}else if(_.r("kevlar_woffle")){x=t.JSC$18893_commandHandler;var A=x.resolveCommand;U=U.failureReason;var m=_.zF("TRANSFER_FAILED",void 0,"Download failed");U==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(m=_.zF("STORAGE_FULL",void 0,"Storage full"));A.call(x,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.kh(m),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
t.downloadFailureListenerBound=!0;_.Do(p)})};
_.RX.prototype.deleteVideo=function(t,E){var p=this,U,x,A;return _.q(function(m){if(m.nextAddress==1)return m.yield(p.JSC$18893_playerApiPromise,2);U=m.yieldResult;A={offlineLoggingData:{offlineDeleteReason:(x=E)!=null?x:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return m.yield(U.queueOfflineAction(t,p.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",A),0)})};
_.RX.prototype.pauseVideoDownload=function(t){var E=this,p;return _.q(function(U){if(U.nextAddress==1)return U.yield(E.JSC$18893_playerApiPromise,2);p=U.yieldResult;p.pauseVideoDownload(t);_.Do(U)})};
_.RX.prototype.resumeVideoDownload=function(t){var E=this,p;return _.q(function(U){if(U.nextAddress==1)return U.yield(E.JSC$18893_playerApiPromise,2);p=U.yieldResult;return U.yield(p.resumeVideoDownload(t),0)})};
_.RX[aa]=[_.gG,_.ei,_.Yt,h2o,HI,ay,Lvo,$D];var e28=new _.gM("DOWNLOAD_STATE_STORE_TOKEN");var F7L=function(t,E){this.JSC$18914_persistentStorePromiseAccessor=t;this.store=E;this.upliftCompletionResolver=new _.hf},G$J=function(){var t=_.X3().resolve(z2b),E;
_.q(function(p){switch(p.nextAddress){case 1:if(t.upliftImplPromise)return p.return(t.upliftImplPromise);_.aR(p,2);t.upliftImplPromise=l8l(t);return p.yield(t.upliftImplPromise,4);case 4:t.upliftCompletionResolver.resolve();_.r7(p,3);break;case 2:throw E=_.nB(p),t.upliftCompletionResolver.reject(E),E;case 3:return p.return(t.upliftImplPromise)}})},l8l=function(t){var E,p,U;
return _.q(function(x){switch(x.nextAddress){case 1:return _.HC("LOGGED_IN")?x.yield(t.JSC$18914_persistentStorePromiseAccessor(),2):x.return();case 2:E=x.yieldResult;if(!E)return _.SR("vdeur"),x.return();_.SR("vdeus");_.aR(x,3);return x.yield(nOb(E),5);case 5:p=x.yieldResult;t.store.dispatch(g9D(p));E.observe(function(A){ZSt(t.store,A)});
_.r7(x,4);break;case 3:throw U=_.nB(x),_.SR("vdeur"),U;case 4:_.SR("vdeuc"),_.Do(x)}})},nOb=function(t){var E;
return _.q(function(p){if(p.nextAddress==1)return p.yield(W2i(t),2);E=p.yieldResult;return p.return(E.reduce(function(U,x){if(!x.data||!x.key||!x.entityType)return U;U[x.entityType]||(U[x.entityType]={});U[x.entityType][x.key]=x.data;return U},{}))})};
F7L[aa]=[$D,_.fS];var z2b;z2b=new _.gM("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.V6=new _.gM("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var Q6=function(t,E){this.JSC$18917_persistentStorePromiseAccessor=t;this.transportService=E};
Q6.prototype.refresh=function(){var t=this,E,p,U,x;return _.q(function(A){if(A.nextAddress==1)return _.HC("LOGGED_IN")?A.yield(t.JSC$18917_persistentStorePromiseAccessor(),2):A.return();if(A.nextAddress!=3)return(E=A.yieldResult)?A.yield(Jk0(E),3):A.return();if((p=A.yieldResult)&&!(Number(p.data.refreshTimestampMs||0)<(0,_.eu)()))return A.return();U={browseId:"SPaccount_downloads"};x=_.Cf(jc);_.rY(t.transportService,U,x).then(function(m){var b;if(E&&(m==null?void 0:(b=m.responseContext)==null?void 0:
b.maxAgeSeconds)!==0){var f;b=(m==null?void 0:(f=m.responseContext)==null?void 0:f.maxAgeSeconds)||604800;f=String(Math.floor((0,_.eu)())+b*1E3);E.put("service:downloads_settings:fallback",new _.ol({innertubeResponse:m,refreshTimestampMs:f}))}});
_.Do(A)})};
Q6[aa]=[_.mO,_.PL];var CX=function(t,E){this.JSC$18921_playerPromise=t;this.store=E;this.started=!1};
CX.prototype.start=function(){var t=this,E;return _.q(function(p){if(p.nextAddress==1)return t.started?p.return():p.yield(t.JSC$18921_playerPromise,2);E=p.yieldResult;E.addEventListener("onOrchestrationBecameLeader",t.updateIsLeader.bind(t,!0));E.addEventListener("onOrchestrationLostLeader",t.updateIsLeader.bind(t,!1));if(E.isOrchestrationLeader)t.updateIsLeader(E.isOrchestrationLeader());else{var U=new _.cC("Function isOrchestrationLeader is undefined",{"player.isReady":E.isReady(),"player.playVideo":E.playVideo?
"defined":"undefined"});_.bV(U);t.updateIsLeader(!1)}t.started=!0;_.Do(p)})};
CX.prototype.updateIsLeader=function(t){this.store.dispatch(_.Jj({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:t}}))};
CX[aa]=[_.gG,_.fS];var NV9=function(t,E){this.networkStatusManager=t;this.JSC$18924_prefStoragePromise=E;this.redirectsToPreload=["https://youtube.com"]},DQb=function(){var t=_.X3().resolve(NV9),E,p,U,x,A,m;
_.q(function(b){switch(b.nextAddress){case 1:return b.yield(t.JSC$18924_prefStoragePromise,2);case 2:E=b.yieldResult;if(!(p=E)){b.jumpTo(3);break}return b.yield(E.get("yt-redirect-prefetch-id"),4);case 4:p=b.yieldResult;case 3:if(p||!t.networkStatusManager.isNetworkAvailable())return b.return();U={cache:"reload",redirect:"manual"};x=_.M(t.redirectsToPreload);A=x.next();case 5:if(A.done){if(!E){b.jumpTo(0);break}return b.yield(E.set("yt-redirect-prefetch-id",!0,86400),0)}m=A.value;_.aR(b,8);return b.yield(_.Ui.fetch(m,
U),10);case 10:_.r7(b,6);break;case 8:_.nB(b);case 6:A=x.next(),b.jumpTo(5)}})};var scJ=function(t){this.JSC$18930_pageManager=t},L7d=function(t){var E=[];
ykE(["videoId","contentId"],t.JSC$18930_pageManager.data,new Set,E);return E},PQt=function(t){return L7d(t).filter(function(E){return E.contentType==="video"}).map(function(E){return E.contentId}).filter(function(E){return E!==void 0})};
scJ[aa]=[_.jw];var TV7=new _.gM("PAGE_CONTENT_EXTRACTOR_TOKEN");var jj=function(t){t?(this.container=t,this.containerWasInjected=!0):this.containerWasInjected=!1};
jj.prototype.openDialog=function(t,E,p){var U=this,x;return _.q(function(A){(x=U.container)==null||x.openDialog(t,E,p);_.Do(A)})};
jj.prototype.closeDialog=function(){var t=this,E;return _.q(function(p){(E=t.container)==null||E.closeDialog();_.Do(p)})};
jj.prototype.isDialogOpen=function(){var t=this,E,p;return _.q(function(U){return U.return((p=(E=t.container)==null?void 0:E.isDialogOpen())!=null?p:!1)})};
jj[aa]=[_.OB(mNZ)];_.oO8=new _.gM("POPUP_CONTROLLER_TOKEN");var W7g=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
W7g.prototype.registerPanel=function(t,E){if(t){this.panelMap.set(t,E);var p=this.pendingPanelResolvers.get(t);p&&(p.resolve(E),this.pendingPanelResolvers.delete(t))}};
W7g.prototype.getPanel=function(t){var E=this,p;return _.q(function(U){return(p=E.panelMap.get(t))?U.return(p):U.return($Q8(E,t))})};
var $Q8=function(t,E){var p,U;return _.q(function(x){if(p=t.pendingPanelResolvers.get(E))return x.return(p.promise);U=new _.hf;t.pendingPanelResolvers.set(E,U);return x.return(U.promise)})},K7L=function(t,E){W7g.call(this);
var p=this;this.popupController=t;this.persistentPanelController=E;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return p.panelMap.size}}};
_.u(K7L,W7g);_.Y=K7L.prototype;_.Y.getReloadContinuation=function(t){var E=this,p;return _.q(function(U){if(U.nextAddress==1)return U.yield(E.getPanel(t),2);p=U.yieldResult;return U.return(p.getReloadContinuation())})};
_.Y.showPanel=function(t){var E=this,p,U,x,A,m,b,f,B,R,V,Q,C;return _.q(function(d){if(d.nextAddress==1){p=t;U=p.identifier;x=p.panelContents;A=p.config;m=p.extras;b=p.panelUpdatableFields;f=p.updatePanelContinuationData;B=t.target;f&&E.updatePanelContinuationDatas.set(U,f);if((R=A)==null?0:(V=R.engagementPanelPopupPresentationConfig)==null?0:V.popupType)if(Q=A.engagementPanelPopupPresentationConfig.popupType,B===void 0&&(B=document.body),Q==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!E.persistentPanelController)return _.qW(new _.cC("Persistent panel controller is not available.")),
d.return();var I=E.persistentPanelController;I.persistentPanelIdentifiers.has(U)||(I.persistentPanelWrapper.appendChild(I.engagementPanelElement({panelIdentifier:U},{isPersistentPanel:!0,hideDelayMs:500,overscrollContain:!0})),I.persistentPanelIdentifiers.add(U));a:switch(_.i7.currentPageSubTypeSelector(I.store.getState())){case "watch":var O="WATCH";break a;default:O="APP"}_.vOe(I,O);I.store.dispatch($Ss(!0))}else{if(Q==="PANEL_POPUP_TYPE_DIALOG"||Q==="PANEL_POPUP_TYPE_DROPDOWN"){I=d.return;O=E.popupController;
var a=O.openPopup;a:switch(Q){case "PANEL_POPUP_TYPE_DIALOG":var F="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":F="DROPDOWN";break a;default:throw Error("uj`"+Q);}return I.call(d,a.call(O,U,x,F,B))}_.qW(new _.cC("Popup type "+Q+" not supported in PanelController."))}return d.yield(E.getPanel(U),2)}C=d.yieldResult;(x||b)&&C.updatePanel(x,!1,m,b);C.showPanel(m);_.Do(d)})};
_.Y.hidePanel=function(t){var E=this,p,U,x,A;return _.q(function(m){if(m.nextAddress==1)return p=t,U=p.identifier,m.yield(E.getPanel(U),2);x=m.yieldResult;x.hidePanel();E.popupController.closePopup(U);(A=E.persistentPanelController)!=null&&A.persistentPanelIdentifiers.has(U)&&A.store.dispatch($Ss(!1));_.Do(m)})};
_.Y.isVisible=function(t,E){var p=this,U;return _.q(function(x){if(x.nextAddress==1)return E&&!p.panelMap.has(t)?x.return(!1):x.yield(p.getPanel(t),2);U=x.yieldResult;return x.return(U.isVisible())})};
_.Y.updatePanel=function(t){var E=this,p,U,x,A,m,b,f,B;return _.q(function(R){if(R.nextAddress==1){p=t;U=p.identifier;x=p.panelContents;A=p.shouldFocus===void 0?!1:p.shouldFocus;m=p.extras;b=p.panelUpdatableFields;f=p.updatePanelContinuationData;if(!x&&!b)return R.return();f&&E.updatePanelContinuationDatas.set(U,f);_.r("enable_ai_companion")&&U==="PAai_companion"&&_.Dq.remove("youchat_messages_section");return R.yield(E.getPanel(U),2)}B=R.yieldResult;B.updatePanel(x,A,m,b);x&&_.r("enable_ai_companion")&&
E.registerPanelContent(U,x);_.Do(R)})};
_.Y.registerPanelContent=function(t,E){t&&this.panelContentMap.set(t,E)};
_.Y.unregisterPanelContent=function(t){this.panelContentMap.delete(t)};
_.Y.getPanelContent=function(t){return this.panelContentMap.get(t)};
_.Y.getUpdatePanelContinuationData=function(t){return this.updatePanelContinuationDatas.get(t)};
K7L[aa]=[_.oO8,_.OB(_.q4)];var rf=function(t,E){this.innertubeTransportService=t;this.JSC$18949_screenManager=E},yWb=function(t){var E;
return!((E=t.panelLoadingStrategy)==null||!E.requestTemplate)};
rf.prototype.makeRequest=function(t){var E=this,p,U;return _.q(function(x){switch(x.nextAddress){case 1:if(!yWb(E)){x.jumpTo(2);break}_.aR(x,3);return x.yield(_.H9(E.innertubeTransportService,t),5);case 5:return p=x.yieldResult,p?x.return(p.content):(_.bV(Error("vj")),x.return(void 0));case 3:U=_.nB(x),_.bV(U);case 2:return x.return(void 0)}})};
rf.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
rf.prototype.execute=function(t){var E=this,p,U,x,A,m,b,f,B,R,V;return _.q(function(Q){if(Q.nextAddress==1){p=t;U=p.data;x=p.fallbackVe;A=p.parentVe;m=p.createScreenConfig;b=p.renderFn;f=p.command;E.panelLoadingStrategy=U;var C,d,I=((C=E.panelLoadingStrategy)==null?0:C.screenVe)?(d=E.panelLoadingStrategy)==null?void 0:d.screenVe:x;I&&_.PH(E.JSC$18949_screenManager,I,A,m);return(B=E.getContent())?Q.yield(b(B),2):Q.jumpTo(2)}return Q.nextAddress!=4?yWb(E)?Q.yield(E.makeRequest(f),4):Q.return():(V=R=
Q.yieldResult)?Q.yield(b(V),0):Q.return()})};
rf[aa]=[_.PL,_.Yt];var SJK;SJK=function(t,E){this.engagementPanelElement=t;this.store=E;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%"};
_.vOe=function(t,E){var p=t.persistentPanelContainerMap.get(E);p?p.contains(t.persistentPanelWrapper)||(t=t.persistentPanelWrapper,_.je=!0,_.r4.set(t,!0),p.insertBefore(t,null),_.r4.delete(t),_.je=!1):_.qW(new _.cC("Persistent panel container not found for surface "+E+"."))};
SJK[aa]=[b9m,_.fS];var k_=function(){var t=this;this.isHovered=this.shouldPreventClosingWhileHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.onTargetHoverEntered=function(){t.isHovered=!0};
this.onTargetHoverLeft=function(){t.isHovered=!1};
this.onSheetHoverEntered=function(){t.isHovered=!0;var E;(E=t.hoverEnterCallback)==null||E.call(t)};
this.onSheetHoverLeft=function(){t.isHovered=!1;var E;(E=t.hoverLeaveCallback)==null||E.call(t)}};
k_.prototype.getContainer=function(){return _.QS()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
k_.prototype.openSheet=function(t,E,p){p=p===void 0?E:p;var U=this,x,A,m,b,f,B,R;return _.q(function(V){switch(V.nextAddress){case 1:return x={stack:[],error:void 0,hasError:!1},_.aR(V,2,3),A=gV,V.yield(U.isSheetOpen(),5);case 5:m=V.yieldResult;PYW(x,Aw$(A));if(!m){V.jumpTo(6);break}if(!U.shouldPreventClosingWhileHovered){if(!_.r("delay_sheet_open_killswitch")){if(_.r("web_close_sheet_if_same_target_killswitch")&&E&&U.currentTarget===E)return(b=U.getContainer())==null||b.closeSheet(),V.return();U.pendingData=
{data:t,target:I_C(U,E)};return V.return()}V.jumpTo(6);break}if(U.currentTarget===E)return V.return();cWJ(U);tC7(U);return V.yield((f=U.getContainer())==null?void 0:f.closeSheet(),6);case 6:if(t.viewModel&&(t={viewModel:t.viewModel,sheetPosition:t.sheetPosition,expandToFullWidth:t.expandToFullWidth}),(B=U.getContainer())==null||B.openSheet(t,E,p),U.currentTarget=E,U.shouldPreventClosingWhileHovered){U.onTargetHoverEntered();var Q;(Q=U.currentTarget)==null||Q.addEventListener("mouseenter",U.onTargetHoverEntered);
var C;(C=U.currentTarget)==null||C.addEventListener("mouseleave",U.onTargetHoverLeft);Ew5(U)}else U.hasRegisteredHoverCallbacks&&Ew5(U);case 3:_.FQ(V);TEm(x);_.Gc(V,0);break;case 2:R=_.nB(V),x.error=R,x.hasError=!0,V.jumpTo(3)}})};
k_.prototype.closeSheet=function(){var t=this;return _.q(function(E){return t.hideDelayMs?(setTimeout(function(){return _.q(function(p){return p.yield(pvL(t),0)})},t.hideDelayMs),E.return()):E.yield(pvL(t),0)})};
var pvL=function(t){var E;return _.q(function(p){if(p.nextAddress==1){if(t.shouldPreventClosingWhileHovered){if(t.isHovered)return p.return();cWJ(t);tC7(t)}else t.hasRegisteredHoverCallbacks&&(tC7(t),t.onSheetHoverLeft());return p.yield((E=t.getContainer())==null?void 0:E.closeSheet(),2)}if(p.nextAddress!=4)return t.resetState(),!t.pendingData||_.r("delay_sheet_open_killswitch")?p.jumpTo(0):p.yield(t.openSheet(t.pendingData.data,t.pendingData.target),4);t.pendingData=void 0;_.Do(p)})};
k_.prototype.isSheetOpen=function(){var t=this,E,p;return _.q(function(U){return U.return((p=(E=t.getContainer())==null?void 0:E.isSheetOpen())!=null?p:!1)})};
k_.prototype.resetState=function(){this.currentTarget=void 0;this.shouldPreventClosingWhileHovered=this.isHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.hoverLeaveCallback=this.hoverEnterCallback=void 0};
var cWJ=function(t){var E;(E=t.currentTarget)==null||E.removeEventListener("mouseenter",t.onTargetHoverEntered);var p;(p=t.currentTarget)==null||p.removeEventListener("mouseleave",t.onTargetHoverLeft)},Ew5=function(t){var E,p=(E=t.getContainer())==null?void 0:E.getSheetContainerElement();
p==null||p.addEventListener("mouseenter",t.onSheetHoverEntered);p==null||p.addEventListener("mouseleave",t.onSheetHoverLeft)},tC7=function(t){var E,p=(E=t.getContainer())==null?void 0:E.getSheetContainerElement();
p==null||p.removeEventListener("mouseenter",t.onSheetHoverEntered);p==null||p.removeEventListener("mouseleave",t.onSheetHoverLeft)},I_C=function(t,E){if(!_.r("web_parent_target_for_sheets"))return E;
var p,U;return(U=(p=t.getContainer())==null?void 0:p.getParentTarget(E))!=null?U:E};var ec=window.documentPictureInPicture;var MGJ=_.CG(["dark"]),mHl=_.CG(["system-icons"]),bhl=_.CG(["typography"]),ih0=_.CG(["lang"]),qb0=_.CG(["style"]),UHj=_.CG(["dir"]),xHj=_.CG(["rounded-container"]),Art=_.CG(["style"]),f6O=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],df=function(t){this.JSC$18967_clientRoot=t;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
df.prototype.openWindow=function(t){var E=this,p,U;return _.q(function(x){switch(x.nextAddress){case 1:if(!ec||!ec||!Zl()||E.currentPipWindow)return x.return(!1);_.aR(x,2);return x.yield((U=ec?ec:null)==null?void 0:U.requestWindow(t),4);case 4:p=x.yieldResult;_.r7(x,3);break;case 2:return _.nB(x),x.return(!1);case 3:if(!p)return x.return(!1);p.addEventListener("pagehide",function(){U$g(E)});
p.addEventListener("resize",E.handlePipWindowResize);Hhi(p);wc0(p);QCK(p);return x.yield(pcE(p),5);case 5:if(!SOL())return x.return(!1);E.currentPipWindow=p;E.JSC$18967_eventForwarder=BHO(p,E.JSC$18967_clientRoot);E.pipWindowResizeDelay=new _.zx(function(){E.currentPipWindow&&_.du(E.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.nq(E.currentPipWindow.innerWidth,E.currentPipWindow.innerHeight)])},p);
E.pipWindowResizeDelay.start();return x.return(!0)}})};
df.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var U$g=function(t){if(t.currentPipWindow){var E,p;(E=ec?ec:null)==null||(p=E.window)==null||p.close();t.currentPipWindow.removeEventListener("resize",t.handlePipWindowResize);var U;(U=t.pipWindowResizeDelay)==null||U.dispose();t.pipWindowResizeDelay=void 0;var x;(x=t.JSC$18967_eventForwarder)==null||x.stop();t.JSC$18967_eventForwarder=void 0;E=_.M(t.onCloseCallbacks);for(p=E.next();!p.done;p=E.next())p=p.value,p();t.onCloseCallbacks=[];t.currentPipWindow=null}};
df.prototype.getWindow=function(){return this.currentPipWindow};
var x$K=function(t,E){var p;(p=t.onCloseCallbacks)==null||p.push(E)};
df.prototype.pictureInPictureSupported=function(){return!(!ec||!ec)&&Zl()};
_.aE.Object.defineProperties(df.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
df[aa]=[JPo];var Atb=new _.gM("PICTURE_IN_PICTURE_CONTROLLER");var RsY=function(t,E){this.lengthY=this.lengthX=0;this.lengthX=E.x-t.x;this.lengthY=E.y-t.y};var YjK=function(){},GJL=function(t,E){var p;
(p=t.headerElement)==null||p.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:E}))};var MC5=function(){};
MC5.prototype.openPopup=function(t,E,p,U){var x=this,A;return _.q(function(m){if(!x.container)return m.return();A={openPopupAction:{popup:E,popupType:p,uniqueId:t}};return m.return(x.container.handleOpenPopupAction(A,U))})};
MC5.prototype.closePopup=function(t){this.container&&this.container.closePopup(t)};var m$o=function(){this.openTunnels=new Map},pbj=function(t,E,p){if(kfi(p)){var U=_.Rc(p,"gclid");
p={handleEvent:function(b){E&&!E.closed&&typeof E.postMessage==="function"&&b&&b.origin&&b.source===E&&b.data&&b.data.action==="gcl_setup"&&E.postMessage(Object.assign({},{action:"gcl_transfer"},U&&{gclid:U},{gadSource:2}),b.origin)}};
for(var x=_.M(t.openTunnels),A=x.next();!A.done;A=x.next()){var m=_.M(A.value);A=m.next().value;m=m.next().value;if(A.closed)try{window.removeEventListener("message",m),t.openTunnels.delete(A)}catch(b){_.bV(b)}}E&&t.openTunnels.size<15&&(t.openTunnels.set(E,p),window.addEventListener("message",p))}};var bwt=function(){this.clientParams=new Map},V8o=function(t){for(var E=_.M(t.clientParams.keys()),p=E.next();!p.done;p=E.next())p=p.value,p.startsWith("yt-mini-app-share")&&t.clientParams.delete(p)};var iwo=function(t,E){_.PQ.call(this);var p=this;this.shortsController=t;this.storeWithShorts=E;t=_.EA(this.storeWithShorts,_.kL0,function(U){if(U){var x,A=(x=p.shortsController.getRoot())==null?void 0:x.getPlayer(),m;(x=(m=p.shortsController.alternativePlayerContainerElement)==null?void 0:m.getPlayerContainer())&&(A==null||A.appendTo(x))}else{var b;m=(b=p.shortsController.alternativePlayerContainerElement)==null?void 0:b.getPlayerContainer().querySelector("#player");x=p.shortsController.activeIndex;
(b=(A=p.shortsController.getRoot())==null?void 0:A.querySelector('ytd-reel-video-renderer[id="'+x+'"] #player-container'))&&(m==null||m.appendTo(b,void 0,!0))}});
this.addOnDisposeCallback(t)};
_.u(iwo,_.PQ);var ui=function(t,E,p,U){var x=this;this.storeWithShorts=t;this.ephemeralResponseStore=E;this.innertubeTransportService=p;this.innertubeTransportLoader=U;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.D4(_.IF);this.isShortsPipActive=_.D4(_.gX);this.nextReelVe=_.h8(56921);this.prevReelVe=_.h8(56922);this.backButtonVe=_.h8(22156);this.TEST_ONLY={getActiveModules:function(){return x.activeModules}}},qj7=function(t){t.unsubscribeFromStore=
_.EA(t.storeWithShorts,_.rq8,function(E){t.initOrDisposeActiveModules(E);
!E&&t.storeWithShorts.getState().shorts.isFullscreen&&(_.CF(document.documentElement),t.storeWithShorts.dispatch(_.SVT(!1)))});
t.initOrDisposeActiveModules(_.rq8(t.storeWithShorts.getState()))},IPe,gWl,Hw5;
ui.prototype.initOrDisposeActiveModules=function(t){t?this.activeModules.push(new iwo(this,this.storeWithShorts)):(_.Qy(this.activeModules),this.activeModules.length=0)};
ui.prototype.registerRootElement=function(t){this.rootElement=t;qj7(this)};
ui.prototype.getRoot=function(){return this.rootElement};
ui.prototype.setActiveIndex=function(t){this.activeIndex=t};
_.rgg=function(t,E){var p,U,x,A,m,b,f;return _.q(function(B){switch(B.nextAddress){case 1:return p=new hV,(U=p.JSC$14452_getStoreKey(E))&&t.ephemeralResponseStore.has(U)?B.yield(t.ephemeralResponseStore.get(U),7):B.yield(Hw5(t,E),4);case 4:x=B.yieldResult;if(!U){B.jumpTo(3);break}A=OY(x,3600);return B.yield(t.ephemeralResponseStore.put(U,new _.ol(A)),3);case 7:x=(m=B.yieldResult)==null?void 0:_.Z2(m);case 3:return((b=x)==null?0:b.replacementEndpoint)&&(f=_.k(x.replacementEndpoint,_.DK))&&x.sequenceContinuation&&
(f.sequenceParams=x.sequenceContinuation),B.return(x)}})};
IPe=function(t,E){E=(new aZ).JSC$14452_getStoreKey(E);return!!E&&t.ephemeralResponseStore.has(E)};
gWl=function(t,E,p){var U,x,A,m,b;_.q(function(f){if(f.nextAddress==1){U=new aZ;x=U.JSC$14452_getStoreKey(E);if(!x)return f.return();if(p.reelWatchSequenceResponse)return A=OY(p.reelWatchSequenceResponse,3600),t.ephemeralResponseStore.put(x,new _.ol(A)),f.jumpTo(0);if(!t.ephemeralResponseStore.has(x))return f.jumpTo(0);b=p;return f.yield(t.ephemeralResponseStore.get(x),4)}b.reelWatchSequenceResponse=(m=f.yieldResult)==null?void 0:_.Z2(m);_.Do(f)})};
Hw5=function(t,E){var p=p===void 0?{}:p;var U,x,A;return _.q(function(m){switch(m.nextAddress){case 1:if(t.innertubeTransportService){U=t.innertubeTransportService;m.jumpTo(2);break}if(!t.innertubeTransportLoader){_.fR(Error("xj"));m.jumpTo(2);break}return m.yield(t.innertubeTransportLoader(),4);case 4:U=m.yieldResult;case 2:return m.yield((x=U)==null?void 0:_.H9(x,E,p),5);case 5:return A=m.yieldResult,m.return(A)}})};
_.aE.Object.defineProperties(ui.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
ui[aa]=[Bit,_.Tp,_.OB(_.PL),_.OB(ae4)];_.fpd=new _.gM("STORAGE_MANAGER_TOKEN");var o$$=["touchmove","scroll"];var Bh7=!1;var ZhO=!1;var THl={onSpanEnd:function(t){t.parentId==null&&(Bh7||(I68(),setInterval(I68,6E5),Bh7=!0),Xcj(t,"web_tracing_action"))}};var zsl=URL.createObjectURL;var Lj$,wv7={traceAllComponents:_.r("web_tracing_all_components"),exportToCsi:_.r("web_tracing_export_to_csi"),enabledSpansArray:_.G3("web_tracing_enabled_spans"),exportToDevTools:_.r("web_tracing_export_to_devtools"),maxBreadcrumbs:_.z3("tel_max_breadcrumbs",0)};Lj$=new Fj_(wv7);var P4j=_.r("web_shorts_enable_tracing");var Rgg=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},VCe;
Rgg.prototype.enqueue=function(t,E){E===1?this.currentPersistentToast=t:this.queue.push(t);_.Qmb(this)};
_.Qmb=function(t){var E;(E=t.currentToast)!=null&&E.isOpened()||(t.queue.length?(t.currentToast=t.queue.shift(),t.currentToast.open()):t.currentPersistentToast&&t.currentPersistentToast.open())};_.Jz=new _.gM("TOAST_MANAGER_TOKEN");var CKg=new _.gM("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var jm7=new _.gM("VIEW_TRANSITION_COORDINATOR_TOKEN");var rtg=function(t){this.config=t;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;t=_.M(t.transitionConfigs);for(var E=t.next();!E.done;E=t.next())E=_.M(E.value).next().value,this.transitionTasksMap.set(E,[])};
rtg.prototype.registerElement=function(t,E,p){p=p===void 0?!1:p;for(var U=_.M(Object.keys(E)),x=U.next(),A={};!x.done;A={viewTransitionName:void 0},x=U.next()){x=x.value;A.viewTransitionName=E[x];var m=this.elementTasksMap.get(t),b=void 0;if((b=m)==null?0:b.has(x)){_.iV(new _.cC("Element already registered for transition",t.tagName,x));break}m=m||new Map;m.set(x,{beforeTransition:function(f){return function(){t.style.viewTransitionName=f.viewTransitionName}}(A),
afterTransition:function(){t.style.viewTransitionName&&(t.style.viewTransitionName="")},
runOnce:p});this.elementTasksMap.set(t,m)}};
_.Ae=function(t,E){var p=t.elementTasksMap.get(E);p&&(p.clear(),p.size===0&&t.elementTasksMap.delete(E))};
rtg[aa]=[CKg];var d$o=_.l(function(t){var E=_.EB("yt-expandable-metadata-header-view-model"),p=_.aC(function(U){_.bA(_.Pu(),{data:t.data()});if(!_.Sw(_.yb(U),E.value,["A".toString(),"BUTTON".toString()])){var x;(x=t.expandedCallback)==null||x.call(t,!1)}});
return _.H("yt-expandable-metadata-header-view-model",{el:E,class:"ytExpandableMetadataHeaderViewModelHost"},_.H(_.w,{cond:function(){return t.expanded()},
then:function(){return _.H("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":p},_.H("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.H(_.w,{cond:function(){return t.data().expandedTitleImage},
then:function(U){return _.H("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.H(_.Q9,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:U}))}}),_.H("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.H("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.H(_.d8,{text:function(){return t.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.H(_.d8,{text:function(){return t.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.H(_.d8,{text:function(){return t.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.H("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.H(_.sY,{data:function(){return t.data().infoButton}},{buttonViewModel:_.D5}),_.H(_.sY,{data:function(){return t.data().collapseButton}},{buttonViewModel:function(U){return _.H(_.D5,{data:U.data,
onClick:function(){var x;(x=t.expandedCallback)==null||x.call(t,!1)}})}})))},
else:function(){return _.H(kqb,Object.assign({},t))}}))},"yg"),urJ=_.l(function(t){return _.H("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.H(_.w,{cond:function(){return t.data().collapsedLabelImage},
then:function(E){return _.H("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.H(_.Q9,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:E,alt:""}))}}),_.H(_.d8,{text:function(){return t.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"zg"),kqb=_.l(function(t){return _.H("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.aC(function(){_.bA(_.Pu(),{data:t.data()});var E;(E=t.expandedCallback)==null||E.call(t,!0)})},_.H("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.H(_.w,{cond:function(){return t.data().collapsedImage},
then:function(E){return _.H("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.H(_.Q9,{height:20,preserveHeight:!0,preserveWidth:!0,data:E,alt:""}))}}),_.H(_.w,{cond:function(){return t.data().showLeadingCollapsedLabel},
then:function(){return _.H(urJ,Object.assign({},t))}}),_.H("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.H(_.d8,{text:function(){return t.data().collapsedTitle}}))),_.H("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.H(_.w,{cond:function(){return!t.data().showLeadingCollapsedLabel},
then:function(){return _.H(urJ,Object.assign({},t))}}),_.H(_.sY,{data:function(){return t.data().infoButton}},{buttonViewModel:_.D5}),_.H(_.sY,{data:function(){return t.data().expandButton}},{buttonViewModel:function(E){var p=E.data;
return _.H(_.D5,{data:p,onClick:function(){_.bA(_.Pu(),{data:p});var U;(U=t.expandedCallback)==null||U.call(t,!0)}})}})))},"Ag");_.JtJ=_.l(function(t){var E=_.M(_.j5(function(){return t.data().initiallyExpanded})),p=E.next().value,U=E.next().value,x,A=(x=_.X3().resolve(_.OB(_.Ld)))==null?void 0:x(),m=function(){var b=t.data().colorData;
if(b)return A?b==null?void 0:b.darkColorPalette:b==null?void 0:b.lightColorPalette};
return _.H("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.zO({"background-color":function(){var b=m();return(b==null?0:b.section2Color)?_.cL(b.section2Color):""}})},_.H(_.sY,{data:function(){return t.data().header}},{expandableMetadataHeaderViewModel:function(b){return _.H(d$o,{data:b.data,
expanded:function(){return!!p()},
expandedCallback:function(f){U(f)}})}}),_.H(_.w,{cond:function(){return p()},
then:function(){return _.H("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.H(_.sY,{data:function(){return t.data().expandedContent}},{horizontalShelfViewModel:function(b){return _.H(_.d$,{data:b.data,
includeMargin:!0,forceNarrowLayout:!0,palette:m})},
videoSummaryContentViewModel:function(b){return _.H(maW,{data:b.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(b){return _.H(_.WM,{data:b.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(b){return _.H(_.Qn,{data:b.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.H(_.sY,{data:function(){return t.data().expandedBottomButtons}},{buttonViewModel:function(b){return _.H("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.H(_.D5,{data:b.data}))}}))}}))},"Bg");var Ipt=_.l(function(t){var E=t.text;var p=t.marqueeSpacing;var U=t.scrollDelay;var x=t.scrollDuration;var A=t.enableMarqueeScroll;t=t.large;var m=_.M(_.Py(!1,void 0,"WyNYFf")),b=m.next().value,f=m.next().value,B=_.M(_.Py(0,void 0,"OoTdhe"));m=B.next().value;var R=B.next().value,V=_.EB("marquee-scroll");B=_.EB("div");var Q=_.EB("span"),C=_.X3().resolve(_.q6);_.M$(function(){if(A()){var O=Q.value.getBoundingClientRect().width,a=V.value.getBoundingClientRect().width;if(O>a){var F=(C==="ltr"?-1:1)*(O+
(p?p():16));Promise.resolve().then(function(){f(!0);R(F)})}}},"dv0Anf");
var d={},I={};return _.H("marquee-scroll",{class:_.X5("ytMarqueeScrollHost",(d.ytMarqueeScrollHostLarge=t,d)),el:V},_.H("div",{id:"marquee-scroll-inner-container",class:_.X5("ytMarqueeScrollInnerContainer",(I.ytMarqueeScrollAnimationEnabled=function(){return b()},I)),
el:B,style:_.zO({gap:p?(0,_.RN)(p):"16px","animation-duration":x?C6W(x):"16s","animation-delay":U?C6W(U):"3s","--marquee-translate":(0,_.RN)(m)})},_.H("span",{el:Q,dir:"auto"},_.H(_.d8,{text:E,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.H(_.w,{cond:b,then:function(){return _.H("span",{"aria-hidden":"true",dir:"auto"},_.H(_.d8,{text:E,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Dg");_.gwg=_.l(function(t){var E=t.data;var p=t.overlayDensity;t=_.aC(function(){E().onTapCommand&&_.bz(E().onTapCommand);return!1});
var U=_.Cy8(),x=function(){return(p==null?void 0:p())===1?22:16},A={};
return _.H("reel-sound-metadata-view-model",{class:_.X5("ytReelSoundMetadataViewModelHost",(A.ytReelSoundMetadataViewModelHostLarge=function(){return(p==null?void 0:p())===1},A)),
"on:click":t,tabindex:0,role:"button","on:keydown":U},_.H("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.H(_.w,{cond:function(){return E().musicIcon},
then:function(m){return _.H(_.Q9,{data:m,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:x})}}),_.H("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.H(Ipt,{text:function(){return E().soundMetadata},
enableMarqueeScroll:function(){return!!E().enableMarqueeScroll},
large:function(){return(p==null?void 0:p())===1}}))))},"Eg");var Zw5,Owt,IX,eg9,zge,ap8,nwt,Gqb;Zw5=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];Owt=_.z3("wil_icon_max_concurrent_fetches",Infinity);
IX=function(t,E,p){var U=this;this.iconSet=t;this.appDirection=E;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Ui.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.r("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.r("wil_icon_network_first");this.renderWhenIdle=_.r("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.r("wil_icon_load_immediately");this.isPurging=!1;t=function(){U.cacheStorageAvailable&&(U.cacheStorageAsync=_.Ui.caches.open("yt-icons").then(function(A){return U.cacheStorageSync=A}).catch(function(){U.cacheStorageAvailable=!1}))};
p=(p==null?void 0:p())||{};p=_.M(Object.entries(p));for(E=p.next();!E.done;E=p.next()){var x=_.M(E.value);E=x.next().value;x=x.next().value;x=Lw(x);Xvb(x);this.iconCache[E]=x.cloneNode(!0)}this.isPurging=hgo(this);this.isPurging instanceof Promise?this.isPurging.then(t):t()};
_.VjO=function(t,E){var p=t.resolveIcon(E);return p?t.renderingMode===1?ap8(t,p,t.renderingMode):(E=t.iconCache[p.url])?(E=E.cloneNode(!0),eg9(t,E),ap8(t,p,t.renderingMode,E)):_.FWK(t,p).then(function(U){var x=U?0:1;eg9(t,U);return ap8(t,p,x,U)}):(_.iV(new _.cC("Icon not found",{iconShape:E})),function(){})};
eg9=function(t,E){if(E){t.counter+=1;t="_yt"+t.counter;E=[E].concat(_.KB(E.getElementsByTagName("*")));E=_.M(E);for(var p=E.next();!p.done;p=E.next())if(p=p.value,p.tagName==="style"&&p.textContent)p.textContent=zge(p.textContent,t,!0);else for(var U=_.M(p.attributes),x=U.next();!x.done;x=U.next()){x=x.value;x.name==="id"&&(x.value+=t);["mask","fill","clip-path"].includes(x.name)&&(x.value=zge(x.value,t));if(x.name==="style"){var A=p.style;try{A.cssText=zge(A.cssText,t,!0)}catch(R){var m=void 0,b=
void 0,f=void 0,B=void 0;gf({error:((m=R)==null?void 0:(f=(b=m).toString)==null?void 0:f.call(b))||"",el:p.outerHTML,style:!!A,cssText:(B=A)==null?void 0:B.cssText})}}x.name==="xlink:href"&&(x.value=x.value.replace(/#(.*)/,"#$1"+t))}}};
zge=function(t,E,p){var U=/url\(["']?#(.*?)["']?\)/;(p===void 0?0:p)&&(U=/url\(["']?#(.*?)["']?\)/g);return t.replace(U,"url(#$1"+E+")")};
ap8=function(t,E,p,U){return function(x,A){var m;var b=Object.assign({},{iconWidth:E.size+"px",iconHeight:E.size+"px",iconDisplay:"block"},A,{iconColor:(m=A==null?void 0:A.iconColor)!=null?m:"currentcolor"});m=_.Gg("DIV");A=b.iconColor;var f=b.iconFilter;b="width: "+b.iconWidth+"; height: "+b.iconHeight+"; display: "+b.iconDisplay+";";f&&(b+=" filter: "+f+";");p===0&&(b+=" fill: "+A+";");p===1&&(f=E.url,b+=" -webkit-mask: url("+f+") no-repeat center / cover; mask: url("+(f+") no-repeat center / cover; background-color: ")+
A);E.allowMirroring&&t.appDirection==="rtl"&&(b+=" transform: scale(-1, 1); transform-origin: center center;");m.setAttribute("style",b);p===0&&U&&m.appendChild(U);x.appendChild(m)}};
_.FWK=function(t,E){var p,U,x;return _.q(function(A){p=function(m){return xk(m)};
U=E.url;if(!lpe(U))throw Error("Aj");x=Gqb(t,U);return A.return(x.then(function(m){return m.clone().text()}).then(function(m){var b=p(m);
m=E.size;var f=_.Gg("DIV");_.RR(f,b);b=_.ng(f.firstElementChild!==void 0?f.firstElementChild:_.Ki0(f.firstChild,!0));m=Xvb(b,m);t.iconCache[U]=m.cloneNode(!0);delete t.responsePromises[U];return m}).catch(function(){}))})};
nwt=function(t){var E,p=(E=t.requestAninmationFrameResolver)==null?void 0:E.promise;p||(t.requestAninmationFrameResolver=new _.hf,p=t.requestAninmationFrameResolver.promise,_.Ui.requestAnimationFrame(function(){var U;(U=t.requestAninmationFrameResolver)==null||U.resolve();t.requestAninmationFrameResolver=null}));
return p};
Gqb=function(t,E){var p,U;return _.q(function(x){if(x.nextAddress==1)return t.waitForAnimationFrame?x.yield(nwt(t),2):x.jumpTo(2);p=t.responsePromises[E];p||(U=function(){var A,m,b;return _.q(function(f){switch(f.nextAddress){case 1:if(!t.cacheStorageAvailable){A=void 0;f.jumpTo(2);break}if(m=t.cacheStorageSync){f.jumpTo(3);break}return f.yield(t.cacheStorageAsync,4);case 4:m=f.yieldResult;case 3:A=m;case 2:return b=A,t.isNetworkFirstStrategy?f.return(t.fetchAndUpdateCache(E,b).catch(t.getCacheStorageResponse.bind(t,
E,b))):f.return(t.getCacheStorageResponse(E,b).catch(t.fetchAndUpdateCache.bind(t,E,b)))}})},p=t.renderWhenIdle?new Promise(function(A,m){_.E_(_.ir,function(){U().then(A).catch(m)},10)}):U(),t.responsePromises[E]=p);
return x.return(p.catch(function(A){delete t.responsePromises[E];gf({error:(A==null?0:A.toString)?A.toString():"",url:E});throw A;}))})};
IX.prototype.fetchAndUpdateCache=function(t,E){var p=this;return _.q(function(U){return U.return(Nh9(p,t).then(function(x){D$t(p,t,x,E);return x}))})};
var Nh9=function(t,E){var p;return _.q(function(U){if(t.numFetches<Owt)return t.numFetches+=1,U.return(sm8(t,E).finally(function(){--t.numFetches;if(Object.keys(t.queuedResponseResolvers).length){var x=Object.keys(t.queuedResponseResolvers)[0],A=t.queuedResponseResolvers[x];delete t.queuedResponseResolvers[x];A.resolve(Nh9(t,x))}}));
p=new _.hf;t.queuedResponseResolvers[E]=p;return U.return(p.promise)})},sm8=function(t,E,p){p=p===void 0?2:p;
var U;return _.q(function(x){U={credentials:"same-origin",priority:"low"};return x.return(_.Ui.fetch(E,U).then(function(A){return A.ok?A:Promise.reject(Error("Bj`"+A.status+"`"+A.statusText))}).catch(function(A){if(p>0)return sm8(t,E,p-1);
throw A;}))})},D$t=function(t,E,p,U){_.q(function(x){return U?x.return(new Promise(function(A){_.E_(_.ir,function(){var m,b;
return _.q(function(f){switch(f.nextAddress){case 1:if(!t.isNetworkFirstStrategy){m=void 0;f.jumpTo(2);break}return f.yield(U.match(E).catch(function(){}),3);
case 3:m=f.yieldResult;case 2:if(b=m){f.jumpTo(4);break}return f.yield(U.put(E,p.clone()).catch(function(B){gf({error:(B==null?0:B.toString)?B.toString():"",url:E})}),4);
case 4:A(),_.Do(f)}})},50)})):x.return()})};
IX.prototype.getCacheStorageResponse=function(t,E){return _.q(function(p){return E?p.return(E.match(t).then(function(U){return U&&U.ok?U:Promise.reject()})):p.return(Promise.reject())})};
var Xvb=function(t,E){E===void 0||t.getAttribute("viewBox")||t.setAttribute("viewBox","0 0 "+E+" "+E);t.setAttribute("focusable","false");t.setAttribute("aria-hidden","true");E=_.r("killswitch_remove_icon_fill_color");t.getAttribute("fill")!=="currentcolor"&&t.getAttribute("fill")!=="currentColor"||E||t.removeAttribute("fill");try{t.style.pointerEvents="none",t.style.display="inherit",t.style.width="100%",t.style.height="100%"}catch(x){var p;gf({error:((p=x)==null?0:p.toString)?x.toString():""});
try{t.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(A){var U;gf({error:((U=A)==null?0:U.toString)?A.toString():""})}}return t},lpe=function(t){for(var E=_.M(Zw5),p=E.next();!p.done;p=E.next())if(t.startsWith(p.value)&&t.endsWith(".svg"))return!0;
return!1};
IX.prototype.resolveIcon=function(t){return this.iconSet.resolveIcon(t)};
var gf=function(t){_.qW(new _.cC("Error in IconManager",t))},hgo=function(t){if(_.r("wil_icons_cache_purge_killswitch"))return!1;
try{var E=_.Ui.localStorage}catch(A){return!1}if(!E||!t.cacheStorageAvailable)return!1;var p=function(A){try{var m;(m=E)==null||m.setItem("yt-icons-last-purged",A.toString())}catch(f){var b;gf({error:((b=f)==null?0:b.toString)?f.toString():""})}},U=Number(E.getItem("yt-icons-last-purged"));
if(!U)return U=new Date,U=U.setDate(U.getDate()-Math.floor(Math.random()*90+1)),p(U),!1;if(function(A,m){A=new Date(A);m=new Date(m);return m.getMonth()-A.getMonth()+12*(m.getFullYear()-A.getFullYear())}(U,Date.now())<3)return!1;
try{return _.Ui.caches.delete("yt-icons").then(function(A){A&&p(Date.now());return A}).catch(function(){return!1}).finally(function(){t.isPurging=!1})}catch(A){var x;
gf({error:((x=A)==null?0:x.toString)?A.toString():""});return!1}};
IX[aa]=[c9b,_.q6,_.OB(pxL)];_.Zd=function(t,E){this.iconManager=t;this.iconsToFetch=E};
_.Zd[aa]=[_.lR,_.OB(EsK)];var LWe=function(){};var PKe=function(t,E,p){this.requestKey=t;this.tMb=E;this.cJ2=p;this.fTU=function(){return new XMLHttpRequest};
this.gY2=void 0;this.sYO=[]};
PKe.prototype.getLatestChallengeResponse=function(){return this.cJ2};
var vam=function(t,E,p){var U,x,A,m;return _.q(function(b){if(b.nextAddress==1){_.yS("attestation_challenge_fetch");_.SR("att_fs",void 0,"attestation_challenge_fetch");if(!t.gY2)throw new _.bd(9,"Missing fetcher");return b.yield(t.gY2(E,p),2)}U=b.yieldResult;A=(x=U)==null?void 0:x.bgChallenge;if(!A)throw new _.bd(15,"Missing field");t.cJ2=U;t.sYO.forEach(function(f){f(U)});
m=j5K(A);_.SR("att_fc",void 0,"attestation_challenge_fetch");vD("attestation_challenge_fetch");return b.return(m)})},CJ3=function(t,E){var p,U,x,A,m;
return _.q(function(b){switch(b.nextAddress){case 1:p=new Oh(100,3E5,.25,2),U=void 0;case 2:if(!(p.currBackoffCount_<10)){b.jumpTo(4);break}_.aR(b,5);if(!(p.currBackoffCount_>0)){b.jumpTo(7);break}return b.yield($HO(p.getValue()),7);case 7:return b.yield(Thd(t,E),9);case 9:return x=b.yieldResult,b.return(x);case 5:A=_.nB(b);A instanceof _.bd?U=A:(m=A instanceof Error?A.message:"Unknown",U=new _.bd(9,m));Yjp(p);b.jumpTo(2);break;case 4:if(U)throw U;throw new _.bd(9,"Unknown error");}})},Thd=function(t,
E){E=G3s(na0(new l3m,E),t.requestKey);
var p=new _.hf,U=t.fTU();U.open("POST",t.tMb);U.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");U.setRequestHeader("Content-Type","application/json+protobuf");U.onload=function(){if(_.ib$(U)){var x=Kns(U.responseText);p.resolve(x)}else p.reject(new _.bd(_.I3E(_.nR(U)),U.statusText))};
U.onerror=function(){p.reject(new _.bd(_.I3E(_.nR(U)),U.statusText))};
U.send(E.serialize());return p.promise};var WWt=function(t){this.networkStatusManager=t;this.isDownloaded=IXl===void 0?function(){return!1}:IXl;
this.isReady=!1;this.osQ=owJ(this)},owJ=function(t){var E;
return _.q(function(p){if(p.nextAddress==1)return p.yield(YBK(),2);if(p.nextAddress!=3)return E=p.yieldResult,p.yield(bNW(E),3);t.nP=p.yieldResult;v$O(t.nP).then(function(){t.isReady=!0});
return p.return(t.nP)})},$$e=function(t,E,p){t.nP?(t=t.nP.nJG({cw:p,
zTz:!0,igE:!0}),E.serviceIntegrityDimensions={poToken:t}):_.bV(Error("Dj"))};
WWt.prototype.processContext=function(t){var E=this;if(!t.input.match(_.Cf(KBo)))return _.Iy();var p=t.innerTubeRequest,U=p.videoId;return!U||this.isDownloaded(p)||this.networkStatusManager&&!this.nP&&!this.networkStatusManager.isNetworkAvailable()||_.r("webpo_exit_on_net_err")&&!this.nP&&(window.bgens===1||window.bgens===3)?_.Iy():this.nP?this.isReady?($$e(this,p,U),_.Iy()):new J1(v$O(this.nP).then(function(){$$e(E,p,U)})):new J1(this.osQ.then(function(x){return _.q(function(A){if(A.nextAddress==
1)return A.yield(v$O(x),2);
$$e(E,p,U);_.Do(A)})}))};var KWg=new _.gM("WEB_PO_CONTEXT_PROCESSOR");var vwb=function(t,E){var p=this;this.j5Q=0;var U;this.gbJ=(U=E==null?void 0:E.gbJ)!=null?U:window;this.networkStatusManagerPromise=E==null?void 0:E.networkStatusManagerPromise;var x;this.requestKey=(x=E==null?void 0:E.requestKey)!=null?x:_.la("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var A;this.kdO=(A=E==null?void 0:E.kdO)!=null?A:function(f){return new RQ(f)};
var m;U=(m=E==null?void 0:E.l1L)!=null?m:function(f,B,R){return new PKe(f,B,R)};
this.bgChallenge=j5K(t.bgChallenge);this.ttlSeconds=r5Y(Vc(t.challenge||""));this.dj=U(this.requestKey,_.r("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Ui.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",t);this.upJ=E==null?void 0:E.upJ;KjK(this.dj);var b;this.udV=(b=E==null?void 0:E.udV)!=null?b:function(f){_.vu(p.gbJ.document,"visibilitychange",
function(){p.gbJ.document.visibilityState==="visible"&&f()})}},Sjg=function(t){if(!t.vm){var E={maxAttempts:5,
rh9:t.ttlSeconds*1E3};yrO(t.gbJ);t.vm=t.kdO({dj:t.dj,bB6:{disable:_.r("html5_web_po_disable_remote_logging"),kj:"aGIf",cpB:Ajj("html5_web_po_experiment_ids"),bBY:_.r("wpo_dis_lfdms")?0:1E3,kOy:function(U){var x=cbp.get(U);x||(x=new Sqo(U),x=new Fs(x),cbp.set(U,x));return x}},
wCG:E,ydH:t.bgChallenge,gxU:Sbl});t.j5Q=Date.now();oas(t.vm,function(){t.j5Q=Date.now()});
t.gbJ.bgevmc={p:function(){var U;(U=t.vm)==null||U.pause()},
r:function(){var U;(U=t.vm)==null||U.resume()},
cr:function(){var U,x;return(x=(U=t.vm)==null?void 0:U.checkForRefresh())!=null?x:Promise.resolve()}};
iR8(t.vm,function(){return _.q(function(U){return U.return(yt7(t))})});
var p=t.riF.bind(t);t.networkStatusManagerPromise&&t.ttlSeconds>0&&t.networkStatusManagerPromise.then(function(U){U.listen("publicytnetworkstatus-online",p)});
t.udV(p)}};
vwb.prototype.riF=function(){if(Date.now()>this.j5Q+this.ttlSeconds*1E3){var t;(t=this.vm)==null||Tss(t)}};
var yt7=function(t){if(t.bJz)return t.bJz;if(!t.vm)throw Error("Ej");t.bJz=new r0({vm:t.vm,dj:t.dj,lDS:!0,onError:Sbl,wCG:t.upJ});return t.bJz},ta0=function(t,E){t=new vwb(t,E);
Sjg(t);(E==null?0:E.eg2)||yt7(t)};var ctK=_.JWL.ephemeralActionSelector,ON=function(t,E){this.store=t;this.queue=[];E==null||E.addEventListener("yt-navigate-start",this.reset.bind(this))};
ON.prototype.enqueue=function(t){var E=t.command,p=t.durationMs,U=t.elementToFocus;var x=t.label;var A=t.elementToFocus;t.command?x=_.zF("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:x,shortcut:_.zF("SHIFT_PLUS_ENTER")}):A&&(t=x+". "+_.zF("SHIFT_PLUS_ENTER")+" for more information.",x=_.zF("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:x,shortcut:_.zF("SHIFT_PLUS_ENTER")},t));p={announcement:x,durationMs:p!=null?p:8E3};E?p.command=E:U&&(U.classList.add("ephemeral-action-focusable-element"),p.selector=U.tagName+
".ephemeral-action-focusable-element");this.queue.push(p);tio(this)};
ON.prototype.activate=function(t){var E=ctK(this.store.getState());if(E){if(E==null?0:E.command)_.Y2(E.command),this.store.dispatch(To3(null));if(E==null?0:E.selector)E=document.querySelector(E.selector),_.ReO(E);t.preventDefault()}};
var tio=function(t){if(!ctK(t.store.getState())&&t.queue.length){var E=t.queue.shift();E&&(t.previousAnnouncement===E.announcement&&(E.announcement+="\u00a0"),t.store.dispatch(To3(E)),t.previousAnnouncement=E.announcement,t.JSC$19089_timeoutId=setTimeout(function(){if(E.selector){var p;(p=document.querySelector(E.selector))==null||p.classList.remove("ephemeral-action-focusable-element")}t.store.dispatch(To3(null));tio(t)},E.durationMs))}};
ON.prototype.reset=function(){this.JSC$19089_timeoutId&&clearTimeout(this.JSC$19089_timeoutId);this.store.dispatch(To3(null));this.queue.length=0;this.JSC$19089_timeoutId=void 0};
ON[aa]=[_.fS,_.OB(_.W5)];_.Xg=new _.gM("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var Eal=new _.gM("AUTH_SERVICE_TOKEN");var UgL=_.CG(["about:blank"]),paj;var pC5=new _.gM("API_IFRAME_TOKEN");var SyZ;SyZ=new _.gM("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.UOd=new _.gM("MISC_UI_SHARED_FLAGS_TOKEN");var xOd=function(){};
xOd.prototype.getFlag=function(t){if(t.configType!==2)throw Error("Fj");return A6J(t)};
var A6J=function(t){switch(t.flagType){case "bool":return _.r(t.flagName);case "int":return _.Nf(_.z3(t.flagName));case "double":return _.z3(t.flagName);case "string":return _.la(t.flagName);case "int32_list":return Ajj(t.flagName);case "int64_list":return Ajj(t.flagName).map(function(E){return _.Nf(E)});
case "string_list":return _.G3(t.flagName);default:throw Error("Gj");}};var hz=function(t,E,p){E=E===void 0?{}:E;Mi.call(this,p===void 0?"uninitialized":p);this.env=t;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}];E.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=E.shouldWaitOnAsyncImmediate)};
_.u(hz,Mi);hz.prototype.init=function(t){var E=this,p;return _.q(function(U){if(U.nextAddress==1)return E.processPluginOptions.shouldWaitOnAsyncImmediate?U.yield(t(E.env),2):(t(E.env),U.jumpTo(2));if(U.nextAddress!=4)return E.jobSet?U.yield(E.jobSet.completedResolver.promise,4):U.jumpTo(4);p=_.ut();p.parkOrScheduleJob(function(){E.transition("rendering")},10,"ci");
_.Do(U)})};
hz.prototype.initialRender=function(t){var E=this,p;return _.q(function(U){if(U.nextAddress==1)return E.processPluginOptions.shouldWaitOnAsyncImmediate?U.yield(t(E.env),2):(t(E.env),U.jumpTo(2));if(U.nextAddress!=4)return E.jobSet?U.yield(E.jobSet.completedResolver.promise,4):U.jumpTo(4);p=_.ut();p.parkOrScheduleJob(function(){E.transition("rendered")},10,"cr");
_.Do(U)})};
hz.prototype.afterRenderImmediate=function(t){var E=this,p;return _.q(function(U){if(U.nextAddress==1)return E.processPluginOptions.shouldWaitOnAsyncImmediate?U.yield(t(E.env),2):(t(E.env),U.jumpTo(2));if(U.nextAddress!=4)return E.jobSet?U.yield(E.jobSet.completedResolver.promise,4):U.jumpTo(4);p=_.ut();p.parkOrScheduleJob(function(){E.transition("after-render-deferred")},10,"carml");
_.Do(U)})};
hz.prototype.afterRenderDeferred=function(t){var E=this;return _.q(function(p){t(E.env);_.Do(p)})};_.ia("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var YBL={},MiL=(YBL.rendered={priority:0,callback:function(t){V1W(t.injector.resolve(pW))}},YBL);var o5i=new _.gM("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),mOl=new _.gM("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var bRC=function(t){this.callbackFnMap=t;this.configMap={}};
bRC.prototype.handleResponse=function(t){var E;if(t=(E=t.responseContext)==null?void 0:E.serviceTrackingParams)for(E=_.M(t),t=E.next();!t.done;t=E.next()){t=t.value;var p=t.params,U=t.service;if(p&&U){this.configMap[U]||(this.configMap[U]=new k8f);t=this.configMap[U];var x=void 0,A=(x=this.callbackFnMap)==null?void 0:x[U];p=_.M(p);for(U=p.next();!U.done;U=p.next())x=U.value,U=x.key,x=x.value,U&&x&&(t.set(U,x),A&&A(U,x))}}};
bRC.prototype.getConfig=function(t){return this.configMap[t]||void 0};
bRC[aa]=[_.OB(mOl)];var iRK=!1,qzO=0,Mai=null,ieK=null;var qBd=new _.gM("NETWORK_SLI_TOKEN");var HRt=function(t){this.networkSli=t};
HRt.prototype.fetch=function(t,E,p){var U=this,x;return _.q(function(A){x=f3C(U,t,E);return A.return(fetch(x).then(function(m){return U.handleResponse(m,p)}).catch(function(m){_.qW(m);
if((p==null?0:p.expectJsonStrict)&&m instanceof KK&&m.errorType===1)return Promise.reject(m)}))})};
var el0=function(t,E,p,U){var x,A,m,b,f,B,R;return _.q(function(V){switch(V.nextAddress){case 1:return x=f3C(t,E,p),_.aR(V,2),V.yield(fetch(x),4);case 4:A=V.yieldResult;_.r7(V,3);break;case 2:throw _.nB(V),new KK(2,"Failed to parse streaming response",x.url);case 3:if(!A.redirected&&!A.ok)throw(m=t.networkSli)==null||m.failure(),new _.cC("Streaming fetch request not ok",x.url);if(!A.body)throw new _.cC("No response body in streaming response",x.url);b={};if(_.r("web_streaming_fast"))return f=A.body.getReader(),
V.return(Bsl(t,f,b,U));B=A.body.pipeThrough(new TextDecoderStream).getReader();R=new _.$n;return V.return(wCd(t,B,R,Tf0,b,U))}})},f3C=function(t,E,p){if(t.networkSli){var U=_.LR(_.VS(E,"key"))||"/UNKNOWN_PATH";
t.networkSli.start(U)}t=p;_.r("wug_networking_gzip_request")&&(t=wuY(p));return new window.Request(E,t)},Bsl=function(t,E,p,U){var x,A,m,b,f,B,R,V,Q,C,d,I,O,a,F,L,D,W,K,v,YL,bY,kL,R0,j$,lY,Tt,si,Q0,ps,$L;
return _.q(function(Cs){switch(Cs.nextAddress){case 1:x=new TextDecoder("utf-8"),A=[],b=m=0,_.aR(Cs,2,3);case 5:return Cs.yield(E.read(),8);case 8:f=Cs.yieldResult;B=f.value;if(R=f.done){V=0;if(A.length>m)for(V=A[m].length-b,Q=m+1;Q<A.length;Q++)V+=A[Q].length;V>0&&(C=He$(A,V,m,b),d=C.indexOf(123),I=C.lastIndexOf(125),d!==-1&&I!==-1&&I>d&&(O=C.subarray(d,I+1),a=JSON.parse(x.decode(O)),Tf0(p,a),F=void 0,(F=U)==null||F(p,a)));L=void 0;(L=t.networkSli)==null||L.success();return Cs.return(p)}A.push(B);
D=m;for(W=b;D<A.length;)if(K=A[D],v=K.indexOf(10,W),v===-1){if(D===A.length-1)break;D++;W=0}else{YL=D;bY=v+1;kL=0;if(m===YL)kL=bY-b;else{kL=A[m].length-b;for(R0=m+1;R0<YL;R0++)kL+=A[R0].length;kL+=bY}j$=He$(A,kL,m,b,YL,bY);lY=j$.indexOf(123);Tt=j$.lastIndexOf(125);if(lY!==-1&&Tt!==-1&&Tt>lY){si=j$.subarray(lY,Tt+1);try{Q0=JSON.parse(x.decode(si)),Tf0(p,Q0),ps=void 0,(ps=U)==null||ps(p,Q0)}catch(km){throw new KK(1,"Failed to parse streaming response object",x.decode(si));}}m=D;W=b=v+1;b===K.length&&
(m++,b=0,D=m,W=0)}Cs.jumpTo(5);break;case 3:_.FQ(Cs);E.releaseLock();_.Gc(Cs,0);break;case 2:$L=_.nB(Cs);if($L instanceof KK)throw $L;throw new KK(1,"Failed to process streaming response");}})},wCd=function(t,E,p,U,x,A){var m,b,f,B,R,V,Q,C,d;
return _.q(function(I){if(I.nextAddress==1)return I.yield(E.read(),2);m=I.yieldResult;b=m.value;if(f=m.done)return(B=t.networkSli)==null||B.success(),I.return(x);try{R=p.parse(b)}catch(O){throw new KK(1,"Failed to parse streaming response",b);}if(R!=null)for(V=_.M(R),Q=V.next();!Q.done;Q=V.next())C=Q.value,U(x,C),d=void 0,(d=A)==null||d(x,C);return I.return(wCd(t,E,p,U,x,A))})};
HRt.prototype.handleResponse=function(t,E){var p=t.text().then(function(U){if((E==null?0:E.jspbResponseCtor)&&t.ok)return bBY(E.jspbResponseCtor,U);U=U.replace(")]}'","");if((E==null?0:E.expectJsonStrict)&&U)try{var x=JSON.parse(U)}catch(m){throw new KK(1,"JSON parsing failed after fetch");}var A;return(A=x)!=null?A:JSON.parse(U)});
t.redirected||t.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),p=p.then(function(U){_.qW(new _.cC("Error: API fetch failed",t.status,t.url,U));return Object.assign({},U,{errorMetadata:{status:t.status}})}));
return p};
HRt[aa]=[_.OB(qBd)];var RZ7=new _.gM("NETWORK_MANAGER_TOKEN");var Vi5=[1,2,4,8,16,30],Cag=function(t){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=t.maxTimeMs;this.maxFrameCount=t.maxFrameCount===void 0?Math.ceil(60*t.maxTimeMs/1E3):t.maxFrameCount;t=_.M(Vi5);for(var E=t.next();!E.done;E=t.next())this.brokenFrameSummarizers.push(new Qa8(E.value/60*1E3))},ja9=function(t){var E=t.frameCountInternal>=t.maxFrameCount;
return t.elapsedTimeMs>=t.maxTimeMs||E};
Cag.prototype.summarize=function(){for(var t=[],E=_.M(this.brokenFrameSummarizers),p=E.next();!p.done;p=E.next())p=p.value,p=p.brokenFrameCount!==0?{severityMs:Math.round(p.targetFrameTimeMs),eventCount:p.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(p.averageDurationBetweenEventsMs)}:void 0,p&&t.push(p);return{summaries:t,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.aE.Object.defineProperties(Cag.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 Qa8=function(t){this.targetFrameTimeMs=t;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.aE.Object.defineProperties(Qa8.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var r6C=function(){};
r6C.prototype.start=function(t,E){var p=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var U=new Cag({maxTimeMs:t});this.monitor=U;this.lastSummaryInternal=void 0;this.metadataToLog=E;return new Promise(function(x){var A=function(m){if(m===void 0)p.stop(),x(void 0);else if(p.monitor!==U)m=Object.assign({},U.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),x(m);else{var b=p.monitor;if(!ja9(b)){b.frameCountInternal++;if(b.prevTime===
void 0)b.startTime=m;else for(var f=m-b.prevTime,B=_.M(b.brokenFrameSummarizers),R=B.next();!R.done;R=B.next()){R=R.value;var V=R.currTimeMs;R.currTimeMs+=f;f>R.targetFrameTimeMs+2&&(R.brokenFrameCount++,R.timeOfFirstBrokenFrameMs===void 0&&(R.timeOfFirstBrokenFrameMs=V),R.timeOfLastBrokenFrameMs=V)}b.prevTime=m}ja9(p.monitor)?x(p.stop()):_.ir.addJob(A,5,0)}};
_.ir.addJob(A,5,0)})};
r6C.prototype.stop=function(t){if(!this.monitor)return this.lastSummaryInternal;var E=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(E.monitoringDurationMs){t=t!=null?t:this.metadataToLog;var p={droppedFramesSummary:E,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};t&&(p[t.type]=t.data);_.MW("manualSmoothnessMeasurement",p)}this.monitor=void 0;this.lastSummaryInternal=E;this.metadataToLog=void 0;return E};_.k3t=new _.gM("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var dOJ;dOJ=function(t){this.JSC$19131_expiringStorage=new Ey(t)};
_.u38=function(t){if(_.fiY()&&(t=_.Wu8(_.yE()+"::"+t)))return new dOJ(t)};
dOJ.prototype.set=function(t,E,p){p=p!==void 0?Date.now()+p:void 0;this.JSC$19131_expiringStorage.set(t,E,p)};
dOJ.prototype.get=function(t){return this.JSC$19131_expiringStorage.get(t)};
dOJ.prototype.remove=function(t){this.JSC$19131_expiringStorage.remove(t)};_.aX=function(){};
_.aX.getInstance=function(){var t=_.ws("ytglobal.storage_");t||(t=new _.aX,_.Oy("ytglobal.storage_",t));return t};
_.aX.prototype.estimate=function(){var t,E,p;return _.q(function(U){t=navigator;return((E=t.storage)==null?0:E.estimate)?U.return(t.storage.estimate()):((p=t.webkitTemporaryStorage)==null?0:p.queryUsageAndQuota)?U.return(BBO()):U.return()})};
_.Oy("ytglobal.storageClass_",_.aX);var rKE=0;var Zei=!1;var J6t=_.CG(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),I3t=_.CG(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var tdJ={"/":_.tL,"/?feature=ytca":_.tL,"/feed/downloads":_.JEt};var gae=gOt.continuationCommandSelector,Lr=function(t,E,p){this.JSC$19146_upliftPromise=t;this.store=E;this.JSC$19146_persistentStorePromiseAccessor=p};
Lr.prototype.shouldPreferLocalResponse=function(t){return t.browseId==="FEdownloads"||t.browseId==="FEsmart_downloads"&&_.r("kevlar_modern_downloads_page")?!0:!1};
Lr.prototype.localInnertubeResponse=function(t){var E=this;return _.q(function(p){return t.browseId==="FEdownloads"?_.r("kevlar_modern_downloads_page")?p.return(ZR8(E)):p.return(ORg(E)):t.browseId==="FEsmart_downloads"&&_.r("kevlar_modern_downloads_page")?p.return(XCo(E)):p.return(Promise.reject(Error("Ij")))})};
Lr.prototype.canProvideFallbackResponse=function(){return!0};
Lr.prototype.localFallbackInnertubeResponse=function(t){var E=this,p,U,x;return _.q(function(A){switch(A.nextAddress){case 1:return A.yield(E.JSC$19146_persistentStorePromiseAccessor(),2);case 2:p=A.yieldResult;if(t.browseId!=="SPaccount_downloads"||!p){A.jumpTo(3);break}return A.yield(Jk0(p),4);case 4:if(U=A.yieldResult)return A.return(_.Z2(U));case 3:return t.browseId==="FEwhat_to_watch"?A.return(hZt(E)):(x=_.r("web_offline_continuation_automatic_retry")||_.r("web_offline_continuation_retry_button"))&&
t.continuation?A.return(a3C(E)):A.return(eZl(E))}})};
var hZt=function(t){var E;return _.q(function(p){if(p.nextAddress==1)return p.yield(t.JSC$19146_upliftPromise,2);E=_.jU$(t.store.getState().entities);return E.length?p.return(FYt(t,E)):p.return(eZl(t))})},ORg=function(t){var E,p;
return _.q(function(U){if(U.nextAddress==1)return U.yield(t.JSC$19146_upliftPromise,2);if(U.nextAddress!=3)return E=zZJ([{offlineItemSectionRenderer:{}}]),U.yield(l3e(t,E),3);p=U.yieldResult;p.onResponseReceivedActions=[l7("REFRESH_DOWNLOADS")];return U.return(p)})},ZR8=function(t){var E,p,U,x,A,m,b,f,B,R,V,Q,C,d,I,O;
return _.q(function(a){if(a.nextAddress==1)return a.yield(t.JSC$19146_upliftPromise,2);if(a.nextAddress!=3)return E=t.store.getState(),p=E.entities,U=_.vA(p),x=_.yR(p),A=_.S7_(E),m=_.y4L(E),b=_.c4$(E),f=_.dYj(p),B=_.PA(U),R=_.S1(p),V=_.gt_(p),Q=_.Epj(E),C=_.U5(E),d={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.DaE(U,x,f,V,A,m,B,R,b,Q,C),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},I="",_.r("kevlar_modern_downloads_skip_downloads_title")||
(I=_.zF("DOWNLOADS",void 0,"Downloads")),a.yield(G3t(t,d,I),3);O=a.yieldResult;O.onResponseReceivedActions=[l7("REFRESH_DOWNLOADS")];return a.return(O)})},XCo=function(t){var E,p,U,x,A,m,b,f,B;
return _.q(function(R){if(R.nextAddress==1)return R.yield(t.JSC$19146_upliftPromise,2);if(R.nextAddress!=3)return E=t.store.getState(),p=E.entities,U=_.vA(p),x=_.PA(U),A=_.S1(p),m={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.LK$(U),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},b=_.zF("SMART_DOWNLOADS",void 0,"Smart downloads"),f=nyi(x,A),R.yield(G3t(t,m,b,f),3);B=R.yieldResult;B.onResponseReceivedActions=
[l7("REFRESH_DOWNLOADS")];return R.return(B)})},eZl=function(t){var E,p;
return _.q(function(U){if(U.nextAddress==1)return U.yield(gI(t.JSC$19146_upliftPromise,t.store),2);E=U.yieldResult;p=zZJ([rk_(E)]);return U.return(l3e(t,p))})},a3C=function(t){var E,p,U,x;
return _.q(function(A){if(A.nextAddress==1)return E={},p=gae(t.store.getState()),_.tJ(E,_.x1,p),A.yield(gI(t.JSC$19146_upliftPromise,t.store,E,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);U=A.yieldResult;x={};_.tJ(x,_.G9r,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:U}}}],targetId:"browse-feedFEwhat_to_watch"});return A.return({responseContext:{},onResponseReceivedActions:[x]})})},zZJ=function(t){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:t}}}}]}}},FYt=function(t,E){var p,U;
return _.q(function(x){var A={contents:Gd(E)};p=A&&A.contents?A:{};_.r("kevlar_modern_downloads_page")&&(p=Object.assign({},_.PDK(E),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));U={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:p}}}]}};return x.return(l3e(t,U))})},l3e=function(t,E){var p,U;
return _.q(function(x){if(x.nextAddress==1)return x.yield(t.JSC$19146_persistentStorePromiseAccessor(),2);if(x.nextAddress!=3)return p=x.yieldResult,x.yield(OQ(p),3);U=x.yieldResult;return x.return({responseContext:{},contents:E,topbar:U})})},G3t=function(t,E,p,U){var x,A;
return _.q(function(m){if(m.nextAddress==1)return m.yield(t.JSC$19146_persistentStorePromiseAccessor(),2);if(m.nextAddress!=3)return x=m.yieldResult,m.yield(OQ(x),3);A=m.yieldResult;var b=m.return;var f=p;var B=U;f=f===void 0?"":f;B=B===void 0?"":B;f={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:f}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.zF("SETTINGS",void 0,"Settings"),accessibilityText:_.zF("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:_.j1("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:B}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:f};
return b.call(m,{responseContext:{},contents:E,topbar:A,header:{pageHeaderRenderer:f}})})};var naJ=function(t){this.chunkRegistry=t};
naJ.prototype.handleResponse=function(t){var E=this,p,U,x,A,m;return _.q(function(b){A=(x=(p=_.k(t.responseContext,wim))==null?void 0:(U=p.webResponseContextPreloadData)==null?void 0:U.preloadMessageNames)!=null?x:[];m=ONg(E.chunkRegistry,A);return b.yield(m(),0)})};
naJ[aa]=[Xyg];var Yi0=new _.gM("MSS_RESPONSE_PROCESSOR_TOKEN");var Ns5={},DOL=(Ns5.rendered={priority:0,callback:function(t){a:{var E=void 0;try{var p;b:{if(_.LB$()){var U=_.AF(_.yE()+"::pom");if(U){var x=new tS(U);break b}}x=void 0}var A=(p=x)==null?void 0:p.get("role_text");if(!A)break a;E={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:A}]}}}}}}catch(f){}E&&t.injector.resolve(_.ei).resolveCommand(E)}try{var m=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(m){var b=JSON.parse(m);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
b&&t.injector.resolve(_.ei).resolveCommand(b)}}catch(f){}}},Ns5);var sad,LYe={},Pa8=(LYe.initialized={priority:10,callback:function(){sad=Sc()}},LYe.rendering={callback:function(t){var E;
return _.q(function(p){if(p.nextAddress==1)return p.yield(sad,2);E=p.yieldResult;if(!E.endpoint)throw Error("Kj`"+_.Ui.location.href);pG(t,E);_.Do(p)})}},LYe);var Tsl={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(_.KB(_.r("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,
weight:500},{messageRegExp:/MutationObserver is not defined/,weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,
weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,
weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,
weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,
weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},
{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,
weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,
weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,
weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,
weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3},{messageRegExp:/Unexpected end of JSON input/,weight:0},{messageRegExp:/No parameters in result:/,weight:0}]),callbackWeights:[{callback:function(t){var E=t.stack;if(E.includes("chrome://")||E.includes("chrome-extension://")||t.message.includes("chrome-extension://")||E.includes("moz-extension://")||
E.includes("local.adguard.org")||E.includes("auctioneer3.50million.club")||E.includes("youtubedownloader")||E.includes("youtube_home_page")||E.includes("is_youtube_video_no_longer_available")||E.includes("switchScreenSizeHack")||E.includes("yt_main_big_banner.js")||E.includes("YouTubeCenter.js")||E.includes("/mytube.js")||E.includes("JSON.parseWrapper")||E.includes("/inj_js/common.js")||E.includes("firebug-lite")||E.includes(".repl.co/")||E.includes("linkfix")||E.includes("playAfterAd")||t.message.includes("Access is denied for this document")&&
E.includes("<anonymous>")||t.fileName==="user-script"||t.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&E.includes("<anonymous>"))return!0;if(E.includes("https://www.youtube.com"))return!1;t=E.split("\n");if(!t.length)return!1;if(t.length<=3&&E.includes("s.onloadeddata"))return!0;E=0;for(var p=_.M(t),U=p.next();!U.done;U=p.next())U=U.value,(U.includes("https://")||U.includes("http://"))&&E++;return E/t.length>.95},
weight:0},{callback:function(t){return t.message==="Unknown Error"&&t.name.indexOf("NS_")===0},
weight:100},{callback:function(t){if(!_.FI)return!1;var E=t.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||t.message.includes("available to complete this operation"),p=t.stack.includes("webcomponents")&&t.message==="Object doesn't support this action";t=t.message.includes("object that does not implement interface Element");return E||p||t},
weight:0},{callback:function(t){return t.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(t){return t.message==="Operation is not supported"&&(t.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(t){return t.stack.includes("eval code (eval (code:1:1)")||t.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(t){return t.message.includes("Permission denied")&&t.stack.includes("this.domHandler")?!0:t.name.includes("TypeError")&&t.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(t){if(!t.stack)return!1;var E=t.stack.trim().split("\n");E.length&&E[0].endsWith("Error: "+t.message)&&E.shift();E.length&&E[E.length-1].includes("at window.onerror (")&&E.pop();if(!E.length)return!0;if(t.message==="Script error.")return E[0].includes("www.youtube.com")||E.length>=2&&E[0].startsWith("at new")&&E[1].startsWith("at window.onerror");if(t.message==="Unexpected token")return!0;t=_.M(E);for(E=t.next();!E.done;E=t.next())if(E=E.value,!(E.includes("<anonymous>")||
E.startsWith("load@")||E.startsWith("global code@")||E.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(t){return t.message==="Cannot read property 'experiments'"&&t.stack.includes("/s/player/")},
weight:500},{callback:function(t){return t.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(t){return t.stack.includes("/embed.js")?(t.params&&t.params&&(t.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.r("use_error_suppression"))var t=_.qO("SUPPRESS_CLIENT_ERRORS",!1);else{if(t=_.Gm)t=/Chrome\/(\d+)/.exec(_.V_()),t=(t?parseFloat(t[1]):NaN)>=66;t=!(t||_.lf&&_.zm(65)||_.Bk&&_.zm(12.1)||g7&&_.zm(79))}return t},
weight:500}]};var oal={},WY7=(oal.initialized={priority:10,callback:function(t){t.injector.addProvider({provide:JPo,useValue:t.root});t.injector.addProvider({provide:bNg,useValue:NGi});t.injector.addProvider({provide:iN8,useValue:Tsl});var E={};t.injector.addProvider((E.provide=qJe,E.useFactory=function(p,U){return function(){Pj$(p,U)}},E[aa]=[bNg,
iN8],E));t.injector.addProvider({provide:yo,useClass:yo})}},oal);var $OK={},KY8=($OK.initialized={priority:3,callback:function(){var t;if(t=NmO()){t=t.replace("/",".");var E=_.nF();E.set("tz",t);E.save();t=!0}else t=!1;t||(t=_.nF(),t.set("utco",-Math.floor((new Date).getTimezoneOffset())),t.save())}},$OK);var vae={},y6K=(vae.initialized={priority:10,callback:function(t){t.injector.resolve(yo).start();t=_.f0();var E=_.HC("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.HC("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.HC("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.HC("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.Gs(_.aaY(),{mainAppWeb:Object.assign({},t,{pageType:E})});_.Gs(F0j(),{mainAppWeb:Object.assign({},t,{pageType:E})});
_.Gs(zzD(),{mainAppWeb:t});_.Gs(laJ(),{mainAppWeb:t});ZFs(function(){_.nr(zzD(),"FAILURE");_.nr(laJ(),"FAILURE")});
LGl();P1Y();aOl()}},vae);var SBe={},c6K=(SBe.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.SR("dl"),_.ut().processSignal("pcl");else{var t=function(){_.SR("dl");_.ut().processSignal("pcl");window.removeEventListener("load",t)};
window.addEventListener("load",t)}}},SBe);var tu9={},E6d=(tu9.rendering={priority:0,callback:function(){var t=_.ut();t.parkOrScheduleJob(function(){t.processSignal("eocs")},10,"eor",5E3)}},tu9);var pk7=function(){};
_.u(pk7,kf);
pk7.prototype.resolveCommand=function(t,E){var p,U,x,A,m,b,f,B;return _.q(function(R){x=(p=_.k(t,_.M4r))==null?void 0:(U=p.dialog)==null?void 0:U.commentReplyDialogRenderer;if(!x)throw new _.cC("No dialog in createCommentReplyDialogEndpoint");m=(A=E.form)==null?void 0:A.event;if(!m)throw new _.cC("Event not passed in when resolving command");b=_.M(m.composedPath());for(f=b.next();!f.done;f=b.next())if(B=f.value,B.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||B.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return B.showReplyDialog(x),R.return();
_.Do(R)})};var ej=function(){};
_.u(ej,kf);ej.prototype.resolveCommand=function(){var t;return _.q(function(E){if(t=document.getElementById("creator-chatbots-panel"))t.style.display="none";_.Do(E)})};var Fg=function(){};
_.u(Fg,kf);Fg.prototype.resolveCommand=function(t){var E,p,U,x,A,m,b;return _.q(function(f){switch(f.nextAddress){case 1:return E=_.k(t,VEm),((p=E)==null?void 0:p.surface)==="CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_WATCH_PAGE"?f.yield((0,_.lV)("NSzT5"),6):(U=E)!=null&&U.externalChannelId?f.yield((0,_.lV)("NSzT5"),4):f.return();case 4:return x=_.URK,m=(A=E.forceInstall)!=null?A:!1,f.yield(x(E.externalChannelId,m,E.surface),0);case 6:return b=_.URK,f.yield(b("",!1,E.surface),7);case 7:return f.return()}})};var zU=function(t){this.JSC$19176_pageRequestService=t;this.JSC$19176_prefetchCoordinator=vW9()};
_.u(zU,kf);zU.prototype.resolveCommand=function(t){var E=this,p,U,x,A;return _.q(function(m){if(m.nextAddress==1){p=_.k(t,D7f);if((U=p)==null||!U.taskId)throw Error("Lj");x=p.taskId;_.aR(m,2);return m.yield(_.uso(E.JSC$19176_pageRequestService,t,{},"").then(function(b){if(!b)throw Error("Mj");},function(b){throw Error("Nj`"+b);
}),4)}if(m.nextAddress!=2)return cg7(E.JSC$19176_prefetchCoordinator,x),_.r7(m,0);
A=_.nB(m);HW(E.JSC$19176_prefetchCoordinator,x,A);_.Do(m)})};
zU[aa]=[_.yc];var li=function(t,E){this.innertubeTransportService=t;this.JSC$19180_commandHandler=E};
_.u(li,kf);li.prototype.resolveCommand=function(t){var E=this,p,U,x;return _.q(function(A){if(A.nextAddress==1){p=_.k(t,sUr);if(p.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||p.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")U=p.boolValue?2:1,_.e3.getInstance().setState(U,!0,!0);return A.yield(_.H9(E.innertubeTransportService,t),2)}x=A.yieldResult;xRo(E,x);_.Do(A)})};
var xRo=function(t,E){E.actions&&E.actions.forEach(function(p){t.JSC$19180_commandHandler.resolveCommand(p)})};
li[aa]=[_.PL,_.ei];var GU={},nX=(GU.addToPlaylistEndpoint=Cb(IT),GU.addToToastAction=Cb(lp),GU.adsControlFlowOpportunityReceivedCommand=Cb(Yd),GU.audioTrackSelectActionCommand=Cb(sd),GU.backgroundAudioPlaybackCommand=Cb(TP),GU.captionLanguageSelectActionCommand=Cb(oT),GU.captionPickerEndpoint=Cb(W4),GU.changeMiniAppPlayStateCommand=Cb(gD),GU.changeTimelyActionVisibilityCommand=Cb(zY),GU.channelCreationFormEndpoint=Cb(jt),GU.clearLocationCommand=Cb(JO),GU.clearUrlParamCommand=Cb(Zj),GU.copyLinkCommand=Cb(Ee),GU.copyTextEndpoint=
Cb(H4),GU.createCommentReplyDialogEndpoint=zT_(pk7),GU.createPlaylistServiceEndpoint=Cb(pK),GU.dismissDialogEndpoint=Cb(XC),GU.dismissPlayerOverlayCommand=Cb($d),GU.entityUpdateCommand=Cb(B4),GU.feedbackEndpoint=Cb(wD),GU.getAnswerCommand=Cb(BI),GU.getPaymentsClientTokenCommand=Cb(se),GU.getTranscriptEndpoint=Cb(GY),GU.googlePaymentBillingCommand=Cb(LK),GU.googlePaymentPurchaseManagerCommand=Cb(PI),GU.hideCreatorChatbotEngagementPanelCommand=Cb(ej),GU.hideEngagementPanelEndpoint=Cb(hO),GU.hideSheetCommand=
Cb(aT),GU.hideSnackbarCommand=Cb(Zr),GU.insertRichSectionCommand=Cb(kd),GU.listMutationCommand=Cb(dD),GU.logGtmCommand=Cb(rD),GU.notifyDropdownOptionSelectedCommand=Cb(Od),GU.openAdAllowlistInstructionCommand=Cb(_.MB),GU.openOnePickAddVideoModalCommand=Cb(Ue),GU.persistSubscriptionsDisplayPreferencesCommand=Cb(bp),GU.pingingEndpoint=Cb(mT),GU.playlistEditEndpoint=Cb(Ap),GU.playlistVotingRefreshPopupCommand=Cb(YV),GU.profileCardCommand=Cb(AO),GU.refreshPanelEndpoint=Cb(et),GU.saveImageToDeviceEndpoint=
Cb(fa),GU.scrollToSectionEndpoint=zT_(ns5),GU.seekToVideoTimestampCommand=Cb(Ka),GU.selectCountryCommand=Cb(ip),GU.setCookieCommand=Cb(qb),GU.setLocalStorageCommand=Cb(Xw),GU.setPrefStorageEntryCommand=Cb(fK),GU.setSettingEndpoint=Cb(li),GU.sfvAudioItemPlaybackCommand=Cb(v4),GU.shareImageCommand=Cb(wv),GU.sharingProviderDataCommand=Cb(Rg),GU.showAudioTrackPickerActionCommand=Cb(yZ),GU.showCaptionLanguageSelectActionCommand=Cb(St),GU.showCreatorChatbotEngagementPanelCommand=Cb(Fg),GU.showDialogCommand=
Cb(lw),GU.showEngagementPanelEndpoint=Cb(GP),GU.showFullscreenPlayerControlsCommand=Cb(c4),GU.showSheetCommand=Cb(na),GU.showSnackbarCommand=Cb(Oe),GU.showTransientPlayerScrimOverlayCommand=Cb(tp),GU.submitFormWithValidationFlowCommand=Cb(Ca),GU.talkToRecsDeselectCommand=Cb(hp),GU.talkToRecsNextCommand=Cb(ag),GU.talkToRecsSelectCommand=Cb(ey),GU.talkToRecsUpdateTextCommand=Cb(Fw),GU.toggleEngagementPanelCommand=Cb(NB),GU.undoFeedbackEndpoint=Cb(QZ),GU.updateEngagementPanelContentCommand=Cb(Dj),GU.updateUrlParamCommand=
Cb(nK),GU.updateVideoMetadataCommand=Cb(Dr),GU.verifyCommand=Cb(jt),GU.webNativeShareCommand=Cb(Vh),GU.webSubmitFormCommand=Cb(Mb),GU.ACK_PLAYABLES_3P_DATA_CONSENT=Cb(Qh),GU.CANCEL_NAVIGATION=Cb(CK),GU.COPY_SHARE_URL=Cb(jy),GU.MINI_APP_EXIT_DIALOG_SEEN=Cb(kV),GU.MINI_APP_OPEN_URL=Cb(rv),GU.REQUEST_MINI_APP_FULLSCREEN=Cb(dv),GU.RESUME_NAVIGATION=Cb(up),GU.SHARE_PLAYABLE_WITH_HIGH_SCORE=Cb(Jp),GU.TELL_US_WHY=Cb(RT),GU);
_.r("web_enable_prefetching_videos_on_home")&&(nX.prefetchWatchCommand=Cb(zU),nX.registerTasksCommand=Cb(BW));_.r("enable_share_panel_navigation_logging_fix_on_web")&&(nX.shareEntityServiceEndpoint=Cb(FC));_.r("web_use_flow_state_manager")&&(nX.deleteFlowStepsCommand=Cb(y2),nX.flowNextStepCommand=Cb(S_),nX.flowPrevStepCommand=Cb(c2),nX.getFlowCommand=Cb(tO),nX.updateFlowCommand=Cb(Ed));_.r("enable_ai_companion")&&(nX.updateConversationIdCommand=Cb(qB),nX.formDataDecoratorCommand=Cb(iw));
var pZr=Object.assign({},nX);var AFK={},YyL=(AFK.initialized={priority:10,callback:KGO},AFK);var Mut={},mRt=(Mut.initialized={callback:function(t){var E={},p={};z4i().install((E.document_disposed={callback:function(){_.r("finalize_all_timelines")?SuY():$T();mgO("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.c_8();var U=t.injector.resolve(yo);U.intervalId!==void 0&&(U.intervalId&&_.ir.cancelJob(U.intervalId),U.intervalId=void 0,--U.currentPartitionIndex,U=qfr(U),U>0&&GRs({mainAppWeb:_.f0(),survivalSli:{partitionMinute:U,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));OkW(dc);uh!=null&&
uh.flush();I4&&I4.snapshotAndFlush();U=_.M(cbp.values());for(var x=U.next();!x.done;x=U.next())x.value.snapshotAndFlush()}},E),(p.flush_logs={callback:function(){_.mL()}},p))}},Mut);var bMt={},iM8=(bMt.rendered={priority:0,callback:function(){var t=new OM0;t.increment("STARTED");if(_.qO("LOGGED_IN")&&!_.qO("IS_DBSC",!1)&&_.qO("SERVER_VERSION")!=="test"&&_.qO("SERVER_VERSION")!=="dev"&&!cCJ()&&!S8K()){t.increment("EXECUTING");var E=document.createElement("iframe");E.style.display="none";_.mE(E,2,_.S8("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.qO("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(E);t.increment("DONE")}}},
bMt);var qyJ={},HMl=(qyJ.rendered={callback:function(){vW9().resume()}},qyJ);var fRe={acknowledgeChannelTouStrikeCommand:A8(X6),addToPlaylistServiceEndpoint:A8(IZ),addToPlaylistEndpoint:A8(IZ),addUpcomingEventReminderEndpoint:A8(Tz),browseEndpoint:A8(e75),channelCreationFormEndpoint:A8(RV),channelCreationServiceEndpoint:A8(Vq),claimLegacyYoutubeChannelEndpoint:A8(Ux),clearSearchHistoryEndpoint:A8(Gz),clearWatchHistoryEndpoint:A8(nc),commerceActionCommand:Y1($H),createBackstagePostEndpoint:A8(yh),createBroadcastCommand:A8(oV),createCommentEndpoint:A8(HN),createCommentReplyEndpoint:A8(q1),
createLiveChatPollEndpoint:A8(WN),createPlaylistServiceEndpoint:A8(g_),crossAccountChannelTransferEndpoint:A8(sx),deleteLiveChatMessageCommand:A8($r),deletePlaylistEndpoint:A8(Zn),deleteVideoEndpoint:A8(PF),dismissalEndpoint:A8(hM),feedbackEndpoint:A8(aV),flagEndpoint:A8(Fi),getAccountSwitcherEndpoint:A8(Dg),verifyCommand:A8(vI),getAccountsListInnertubeEndpoint:A8(PN),getCommentsFromInboxCommand:A8(bX),getDownloadActionCommand:A8(RZ),getFlowCommand:Y1(l5),getKidsBlocklistPickerCommand:A8(z8),getNotificationMenuEndpoint:A8(lPt),
getPaymentInstrumentsParamsCommand:A8(tz),getPaymentsClientTokenCommand:Y1($H),getPdgBuyFlowCommand:A8(uX),getReportFormEndpoint:A8(lX),getSearchInVideoCommand:A8(N8),getAnswerCommand:A8(nx),getSurveyCommand:A8(Lx),getTranscriptEndpoint:A8(oZ),getPostVideoPreviewEndpoint:A8(cI),decorateMessageEndpoint:A8(Sy),likeEndpoint:A8(Qq),liveChatActionEndpoint:A8(SH),liveChatEndpoint:A8(yq),liveChatItemContextMenuEndpoint:A8(Kc),liveChatPurchaseMessageEndpoint:A8(cN),liveChatReplayEndpoint:A8(vN),manageLiveChatUserEndpoint:A8(E6),
metadataUpdateCommand:A8(M8),moderateLiveChatEndpoint:A8(px),modifyChannelNotificationPreferenceEndpoint:A8(fx),notificationOptOutEndpoint:A8(BF),openSuperStickerBuyFlowCommand:A8(tV),performCommentActionEndpoint:A8(mx),playlistEditEndpoint:A8(Xi),playlistEditorEndpoint:A8(O6),recordNotificationInteractionsEndpoint:A8(w_),reelWatchEndpoint:A8(hV),refreshPanelEndpoint:A8(QQ),removeUpcomingEventReminderEndpoint:A8(U6),resolveLocationCommand:A8(YH),revealBusinessEmailCommand:A8(xr),searchEndpoint:A8(_.Ggb),
sendLiveChatMessageEndpoint:A8(xH),sendLiveChatVoteEndpoint:A8(AV),setSettingEndpoint:A8(Cc),shareEntityServiceEndpoint:Y1(kr),sharingProviderDataCommand:A8(s6),showEngagementPanelEndpoint:A8(Cx),showMoreDrawerCommand:A8(r_),showSheetCommand:A8(kH),showDialogCommand:A8(jO),subscribeEndpoint:A8(jH),transcriptSubmitCaptionCorrectionCommand:A8(T8),undoFeedbackEndpoint:A8(F6),unsubscribeEndpoint:A8(rC),updateBackstagePostEndpoint:A8(Ex),updateCommentEndpoint:A8(BN),updateCommentReplyEndpoint:A8(fc),updateCommentsSettingsEndpoint:A8(wC),
updateCreatorChannelInnertubeCommand:A8(Yr),updateKidsBlacklistEndpoint:A8(G8),updateEngagementPanelContentCommand:A8(d_),updatePdgFeatureEnablementCommand:A8(JV),updatedMetadataEndpoint:A8(ma),validateChannelHandleCommand:A8(M1),updateChannelPageSettingsEndpoint:A8(AM),verifyAgeEndpoint:A8(zz),watchEndpoint:Y1(og),whitelistEditEndpoint:A8(WF),ypcCancelRecurrenceEndpoint:A8(Kx),ypcCompleteTransactionEndpoint:A8(vF),ypcFixInstrumentEndpoint:A8(SO),ypcGetCartEndpoint:A8(yQ),ypcGetOffersEndpoint:A8(cF),
ypcHandleTransactionEndpoint:Y1(EN),ypcLogWalletAnalyticDataEndpoint:A8(pX),ypcOffersEndpoint:A8(UN),ypcPauseSubscriptionCommand:A8(x_),ypcRedeemCodeEndpoint:A8(Az),ypcResumeSubscriptionCommand:A8(Y_),ypcUpdateFopEndpoint:A8(SO)},No={},B75=(No.GET_ACCOUNT_MENU=A8(Lc),No.GET_NOTIFICATIONS_MENU=A8(z7g),No.GET_NOTIFICATIONS_INBOX=A8(iX),No.GET_UNSEEN_NOTIFICATION_COUNT=A8(HF),No.GET_USER_MENTION_SUGGESTIONS=A8(tM),No.LOAD_GUIDE=A8(F9g),No.SUBMIT_FEEDBACK=A8(eH),No),Dd={},wkl=(Dd.CONTINUATION_REQUEST_TYPE_BROWSE=
A8(pc),Dd.CONTINUATION_REQUEST_TYPE_SEARCH=A8(Dn),Dd.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=A8(P4),Dd.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=A8(N1),Dd.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=A8(i5),Dd.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=A8(b5),Dd.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=A8(eO),Dd.CONTINUATION_REQUEST_TYPE_GET_PANEL=A8(VQ),Dd),Re7={player:Y1(og),watchNext:A8(La)},Vu5={player:Y1(og),reelItemWatch:A8(hV),reelWatchSequence:A8(aZ)},QDo={watchEndpoint:Y1(WI)},CJd=
{commandEndpointMap:fRe,signalEndpointMap:B75,continuationEndpointMap:wkl,watchEndpointMap:Re7,reelWatchEndpointMap:Vu5,streamingEndpointMap:QDo};var jDe,rFl,kMb;_.dRJ=((rFl=(jDe=window).matchMedia)==null?void 0:(kMb=rFl.call(jDe,"(prefers-reduced-motion: reduce)"))==null?void 0:kMb.matches)||!document.startViewTransition;var uag={},JFK={disableAllTransitions:_.dRJ,ignoredErrors:(uag.DOCUMENT_HIDDEN=!0,uag.WINDOW_SIZE_CHANGED=!0,uag.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,uag),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 IR9=_.CG("\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(",")),ZMJ=function(t){var E=this;this.viewTransitionCoordinator=
t;this.disableTransitionsForUltraHigh=_.r("disable_transitions_for_ultra_high");this.isUltraHighBucketDevice=g6g();this.disableTransitions=this.disableTransitionsForUltraHigh&&this.isUltraHighBucketDevice;this.isBrowseTransitionEnabled=_.la("web_page_transition_type")==="slide"&&!this.disableTransitions;this.isLockupToWatchTransitionEnabled=_.r("web_thumbnail_to_watch_transition")&&!this.disableTransitions;this.isLockupThumbnailRegistrationEnabled=_.r("web_thumbnail_to_watch_transition_register_thumbnail");
this.isLearningJourneyTransitionEnabled=_.r("enable_plj_landing_page")&&!this.disableTransitions;this.lockupToWatchPlayerTransitionType=_.la("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.r("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.ir.addJob(function(){E.registerRootElement();if(E.isAnyTransitionEnabled){var p=
_.z3("web_page_transition_exit_ms"),U=_.z3("web_page_transition_wait_ms"),x=_.z3("web_page_transition_enter_fast_ms"),A=_.z3("web_page_transition_watch_exit_ms"),m=_.z3("web_page_transition_watch_wait_ms"),b=_.z3("web_page_transition_watch_enter_ms"),f=_.z3("web_page_transition_watch_next_exit_ms"),B=_.z3("web_page_transition_watch_next_wait_ms"),R=_.z3("web_page_transition_watch_next_enter_fast_ms"),V=_.z3("web_page_transition_enter_ms"),Q=_.z3("web_page_transition_watch_next_enter_ms");E.enableFasterTransitions&&
E.isUltraHighBucketDevice&&(V=x,Q=R);isNaN(p)&&isNaN(U)&&isNaN(V)&&isNaN(A)&&isNaN(m)&&isNaN(b)&&isNaN(f)&&isNaN(B)&&isNaN(Q)||!(p=td_(IR9,p,U,V,A,m,b,f,B,Q))||(U=document.createElement("style"),U.textContent=hXi(p),document.head.appendChild(U))}},8)},g6g=function(){var t=_.Ui.navigator.deviceMemory;
return t>=8||t===void 0?!0:!1};
ZMJ.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var t={};this.viewTransitionCoordinator.registerElement(document.documentElement,(t.slide="root-slide",t["lockup-to-watch"]="root-lockup-to-watch",t["learning-journey"]="root-learning-journey",t))}};
_.UHo=function(t,E){t.isLockupToWatchTransitionEnabled&&t.isLockupThumbnailRegistrationEnabled&&(t.registeredLockupThumbnail?t.lockupThumbnailRegisteredFromWatchEndpoint?_.qW(new _.cC("Lockup thumbnail registration order is incorrect.")):_.qW(new _.cC("Lockup thumbnail already registered.")):(t.registeredLockupThumbnail=E,_.OMJ(t,E)))};
_.OMJ=function(t,E){var p={};t.viewTransitionCoordinator.registerElement(E,(p["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",p),!0)};
ZMJ[aa]=[jm7];var vo_={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1,playerVe:void 0,expandVe:void 0,closeVe:void 0,readyToResumeVe:void 0,readyToResumeCloseVe:void 0,repositionVe:void 0,resizeVe:void 0};var Szj=["videoPrimaryInfoRenderer","title"],cKj=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var Xk5;Xk5=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.het=_.l(function(t){t=_.C4(t,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var E=t.data,p=t.playlistData,U=t.expanded,x=t.onExpandClick,A=t.isReadyToResume,m=function(){var R;return!((R=p())==null||!R.contents)},b=function(){var R=p();
return R&&R.totalVideos&&R.currentIndex!==void 0?R.currentIndex+1+" / "+R.totalVideos:""};
t=_.aC(function(){_.sN(_.X3().resolve(_.bf));return!1});
var f=_.aC(function(){m()&&x&&x()}),B={};
return _.H("ytd-miniplayer-info-bar",{class:_.X5("ytdMiniplayerInfoBarHost",(B.ytdMiniplayerInfoBarHasPlaylistData=m,B)),"on:click":f},_.H("div",{class:"ytdMiniplayerInfoBarContent"},_.H("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":t},_.H(_.d8,{text:function(){var R=E();var V=p();if(V==null?0:V.contents){var Q;R=(Q=_.pMY(V))==null?void 0:Q.title}else R=R==null?void 0:R.miniplayerTitle;return E5$(R)},
noEndpoints:!0,ellipsisTruncate:!0})),_.H("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.H(_.w,{cond:A,then:function(){return _.H(gQr,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:Xk5})}}),_.H("h1",null,_.H(_.d8,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var R=E();var V=p();R=A()?{simpleText:_.zF("CONTINUE_WATCHING",void 0,"Continue watching")}:(V==null?0:V.contents)?V.titleText:R==null?void 0:R.miniplayerSubtitle;return E5$(R)},
noEndpoints:!0,ellipsisTruncate:!0})),_.H(_.w,{cond:function(){return!!b()&&!A()},
then:function(){return _.H("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.H("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.H("span",null,b))}}))),_.H(_.w,{cond:m,
then:function(){return _.H("div",{class:"ytdMiniplayerInfoBarExpand"},_.H(_.N7,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(R){x&&(x(),R.stopPropagation())}}},
iconName:function(){return U()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Gg");var aRo;aRo=_.l(function(t){return _.H("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.H(_.N7,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:t.onTap}},
iconName:"yt-icons:close"}))},"Hg");
_.eet=_.l(function(t){t=_.C4(t,{playabilityStatus:void 0,isDisabled:!1,isPictureInPicture:!1});var E=t.size,p=t.playabilityStatus,U=t.isDisabled,x=t.isPictureInPicture,A=_.EB("div");t=_.M(_.Py(void 0,void 0,"w4RAU"));var m=t.next().value,b=t.next().value;t=_.D4(_.gX);var f=!1,B=function(){return E().height<=0};
_.M$(function(){var C=E(),d=B(),I=m();I&&!d&&I.setInternalSize(C.width,C.height)},"BHFc2b");
_.xa(function(){var C,d,I;return _.q(function(O){if(O.nextAddress==1){C=_.X3().resolve(_.bf);d=C.getPlayerElement();if(!C.isMiniplayerActive()||!d||!A.value)return O.return();d.appendTo(A.value);return O.yield(d.getPlayerPromise(),2)}I=O.yieldResult;x()||I.setSizeStyle(!1,!0);b(I);_.Do(O)})});
_.iK(function(){R()});
_.M$(function(){var C=m();if(C)if(U()){var d=C.getPlayerState();(f=d===-1||d===1||d===3)&&C.pauseVideo()}else R()},"Invykd");
var R=function(){if(f){f=!1;var C;(C=m())==null||C.playVideo()}},V=_.aC(function(){_.sN(_.X3().resolve(_.bf))}),Q={};
return _.H("ytd-miniplayer-player-container",{class:_.X5("ytdMiniplayerPlayerContainerHost",(Q.ytdMiniplayerPlayerContainerHidden=B,Q.ytdMiniplayerPlayerContainerHostShortsPip=t,Q)),style:_.zO({width:function(){return E().width+"px"},
height:function(){return E().height+"px"}})},_.H("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:A}),_.H(_.w,{cond:function(){return!!p()&&!_.C4i(p())},
then:function(){return _.H(Mst,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var C;return((C=p())==null?void 0:C.errorScreen)||null},
status:function(){var C;return((C=p())==null?void 0:C.status)||null}})}}),_.H(_.w,{cond:U,
then:function(){return _.H("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":V},_.H(aRo,{onTap:function(){_.X3().resolve(_.bf).close()}}))}}))},"Lg");var qIi;var BQi=null;var ze8=_.l(function(t){var E=t.progressState;var p=t.multiMarkersPlayerBarRenderer;var U=t.progressBarWidth;var x=function(){return QWj(p())},A=function(){return rni(E())},m=function(){return U()*(E().playedTime/E().videoDuration)};
return _.H("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.H(_.yG,{each:x},function(b,f){return _.H(FnK,{modifiedProps:A,chapters:x,index:f,playedProgressWidth:m,backgroundGradientPosition:function(){var B=A(),R=x(),V=f(),Q=m();return(B.playedTime-Mm(_.k(R[V],YZ)))/B.playedTime*Q}})}))},"Mg"),FnK=_.l(function(t){var E=t.modifiedProps;
var p=t.chapters;var U=t.index;var x=t.playedProgressWidth;var A=t.backgroundGradientPosition;t={};t=_.X5("ytChapteredProgressBarChapteredPlayerBarChapter",(t.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return m().isScrubbing},t.ytChapteredProgressBarHoveredMacroMarker=function(){return m().scrubberHovering},t.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return m().videoPosition==="seen"},t));
var m=function(){return kDK(E(),p(),U())},b=function(){var f=E();
var B=p(),R=U();if(kDK(f,B,R).videoPosition!=="active")f=0;else{var V=Mm(_.k(B[R],YZ));f=(f.playedTime-V)/((Mm(_.k(B[R+1],YZ))||f.videoDuration)-V)}return f};
return _.H("div",{class:t,style:_.zO({width:function(){var f=E(),B=p(),R=U(),V=_.k(B[R],YZ);B=_.k(B[R+1],YZ);return(B?Mm(B)-Mm(V):f.videoDuration-Mm(V))/f.videoDuration*100+"%"},
"background-color":function(){a:{var f=m();switch(f.videoPosition){case "pending":f=f.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":f=f.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:f=""}}return f},
"background-size":function(){return(dzD(m())?x():"")+"px"},
"background-position-x":function(){return(dzD(m())?A():"")+"px"}})},_.H("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var f=E(),B=p(),R=U();if(kDK(f,B,R).videoPosition==="seen")var V=0;else V=Mm(_.k(B[R],YZ)),B=Mm(_.k(B[R+1],YZ))||f.videoDuration,f=f.videoDuration*f.percentLoaded,V=B<=f?1:V>=f?0:(f-V)/(B-V);return"width: "+V*100+"%"}}),_.H("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.zO({width:function(){return b()*100+"%"},
"background-size":function(){return(dzD(m(),b())?x():"")+"px"},
"background-position-x":function(){return(dzD(m(),b())?A():"")+"px"}})}))},"Ng");var lRt=function(t,E){E=E===void 0?l20:E;var p,U=[],x,A=!1;return function(){var m=_.t9.apply(0,arguments);if(A&&p===this&&E(m,U))return x;x=t.apply(this,m);A=!0;p=this;U=m;return x}}(function(t){var E=t.heatMarkers,p=t.minHeightDp===void 0?0:t.minHeightDp,U=t.maxHeightDp===void 0?60:t.maxHeightDp;
var x=x===void 0?!1:x;var A=1E3/E.length;t=[];t.push({x:0,y:100});for(var m=0;m<E.length;m++){var b=void 0,f=((b=_.k(E[m],Wgm))==null?void 0:b.heatMarkerIntensityScoreNormalized)||0;b=(m+.5)*A;f=100-_.Ay(f*100,p/321*100,U/321*100);m!==0||x||t.push({x:0,y:f});t.push({x:b,y:f});m===E.length-1&&t.push({x:1E3,y:f})}t.push({x:1E3,y:100});E="";for(p=0;p<t.length;p++)x=t[p],p===0?x="M "+x.x.toFixed(1)+","+x.y.toFixed(1):(U=VGO(t[p-1],t[p-2],x),A=VGO(x,t[p-1],t[p+1],!0),x=" C "+(U.x.toFixed(1)+","+U.y.toFixed(1)+
" "+A.x.toFixed(1)+","+A.y.toFixed(1)+" "+x.x.toFixed(1)+","+x.y.toFixed(1))),E+=x;return E});var GMl=_.l(function(t){var E=t.progressBarProps;var p=t.config;var U={};t=_.X5("ytHeatSeekerHost",(U.ytHeatSeekerHighContrast=t.highContrast,U));var x=function(){return YIl(p().chapterData)};
return _.H("yt-progress-bar-heatseeker",{class:t,style:function(){var A;return"height: 320px; display: "+(E().isDragging&&((A=x())==null?0:A.heatMarkers)?"block":"none")}},_.H(_.w,{cond:x,
then:function(A){return _.H(_.w,{cond:function(){return A().heatMarkers},
then:function(){return _.H("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.H("path",{d:function(){return lRt(A())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Og");var n67=_.l(function(t){var E=t.progressBarProps;var p=t.config;t={};t=_.X5("ytProgressBarLineProgressBarLine",(t.ytProgressBarLineProgressBarLineRounded=function(){return p().rounded},t.ytProgressBarLineProgressBarLineBottomInset=function(){return p().position===2},t));
return _.H("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.H("div",{class:t},_.H("div",{class:"ytProgressBarLineProgressBarBackground"}),_.H("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+E().percentLoaded*100+"%"}}),_.H("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var U=E();return"width: "+(U.videoDuration?_.Ay(U.hoveredTime/U.videoDuration,0,1):0)*100+"%"}}),_.H("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+UzY(E())*100+"%"}})))},"Pg");
n67.idomCompat=!0;var N7o=_.l(function(t){var E=t.progressBarProps;var p=t.playheadData;var U=t.interpolateDotPosition;var x=t.hidePlayhead;t={};var A=_.X5("ytProgressBarPlayheadProgressBarPlayheadDot",(t.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return E().isDragging},t.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!E().isDragging&&x()},t));
return _.H("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.zO({"margin-left":function(){return xzE(E())*100+"%"},
transform:function(){return"translateX(-"+(U()?xzE(E())*12:6)+"px)"}})},_.H(_.w,{cond:function(){var m;
return(m=_.Ql(p)())==null?void 0:m.playheadImage},
then:function(m){var b={};return _.H("div",{class:_.X5("ytProgressBarPlayheadProgressBarPlayheadCustom",(b.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return E().isDragging},b.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!E().isDragging&&x()},b)),
style:_.zO({"transform-origin":function(){return(U()?xzE(E())*20:10)+"px center"}})},_.H(_.Q9,{data:m,
alt:"","aria-hidden":"true"}))},
else:function(){return _.H("div",{class:A,style:_.zO({"transform-origin":function(){return(U()?xzE(E())*12:6)+"px center"}})})}}))},"Qg");
N7o.idomCompat=!0;var LX=function(t,E,p,U,x,A){this.getProgressBarRect=t;this.updateProgressBarRect=E;this.getFilmstripYPosition=p;this.setFineScrubbingDraggedTime=U;this.updateFilmStripDraggedYDistance=x;this.resetFilmStripYOffset=A;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.F5(this.onThrottledSeek,100,this)},DRK=function(t,E,p){return function(U){t.handleClick(U,E(),p())}},PJb=function(t,E){return function(p){sDd(t,
p,LnL(p),E())}},T75=function(t,E){return function(p){sDd(t,p,{x:p.clientX,
y:p.clientY},E())}},WnC=function(t,E,p){return function(U){var x=E(),A=p();
o6C(t,U,LnL(U),x,A,!0);if(A.onTouchMove)A.onTouchMove(x)}},Knl=function(t,E,p){return function(U){$Rd(t,U,E(),p())}},v6o=function(t,E){return function(){t.handleMouseLeave(E())}},yFK=function(t,E,p){return function(){var U=E(),x=p();
PW(t,U,x);if(x.onTouchEnd)x.onTouchEnd(U)}},Syt=function(t,E,p){return function(){var U=E(),x=p();
PW(t,U,x);if(x.onTouchEnd)x.onTouchEnd(U)}},cFK=function(t,E,p){return function(){PW(t,E(),p())}},tTC=function(t){return function(E){if(E.keyCode===39||E.keyCode===38){var p,U;
(p=t())==null||(U=p.playerApi)==null||U.seekBy(5,void 0,void 0,72)}else if(E.keyCode===37||E.keyCode===40){var x,A;(x=t())==null||(A=x.playerApi)==null||A.seekBy(-5,void 0,void 0,71)}}},E7t=function(t,E,p){return function(U){!p().disableScrubbing&&t.startPosition&&$Rd(t,U,E(),p())}},pEt=function(t,E,p){return function(){if(!p().disableScrubbing)if(t.startPosition){var U=E(),x=p();
PW(t,E(),p());if(x.onTouchEnd)x.onTouchEnd(U)}else E().setState({isDragging:!1})}},LnL=function(t){t=t.touches[0];
return{x:t.clientX,y:t.clientY}},$Rd=function(t,E,p,U){if(E.buttons!==1){if(E.movementX||E.movementY)E.preventDefault(),E.stopPropagation(),t=U0K(t,p,E.clientX),p.setState({isHovering:!0,
hoveredTime:t*p.videoDuration})}else x0t(p),o6C(t,E,{x:E.clientX,y:E.clientY},p,U,!1)};
LX.prototype.handleMouseLeave=function(t){x0t(t)};
var x0t=function(t){t.isHovering&&t.setState({isHovering:!1,hoveredTime:0})},sDd=function(t,E,p,U){t.startPosition||(t.startPosition=p,t.updateProgressBarRect(),t.controlsWereVisibleBeforeDragging=U.controlsVisible,E.stopPropagation(),_.r("medium_progress_bar_modification")||E.preventDefault())},o6C=function(t,E,p,U,x,A){if(t.startPosition)if(A&&x.isInlinePlayback&&t.startPosition&&!t.hasDraggedTheMinimumDistance&&Math.abs(p.y-t.startPosition.y)>Math.abs(p.x-t.startPosition.x))PW(t,U,x);
else if(E.preventDefault(),E.stopPropagation(),U.videoDuration&&(t.startPosition&&!t.hasDraggedTheMinimumDistance&&(t.hasDraggedTheMinimumDistance=Math.abs(p.x-t.startPosition.x)>=1),x.enableFineScrubbing&&(t.startPosition&&(t.isDraggedForFineScrubbing=-(p.y-t.startPosition.y)>=60),!t.startPosition||p.y>=t.startPosition.y||(U.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:upL(U.draggedTime,U,x.chapterData)}),t.setFineScrubbingDraggedTime(U.draggedTime),t.updateFilmStripDraggedYDistance(t.startPosition.y,
p.y,U))),t.hasDraggedTheMinimumDistance)){E=U0K(t,U,p.x);if(t.isDraggedForFineScrubbing){var m;(m=U.playerApi)==null||m.pauseVideo();U.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:U.draggedTime,filmStripXDistance:upL(E*U.videoDuration,U,x.chapterData)})}x.enableFineScrubbing&&(!x.enableFineScrubbing||t.getFilmstripYPosition(U)<68)||U.setState({draggedTime:E*U.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:t.controlsWereVisibleBeforeDragging});var b;(b=
x.cancelAutohideControlsFn)==null||b.call(x)}},PW=function(t,E,p){var U=p.enableFineScrubbing&&E.fineScrubbingActiveState!=="off";
if(E.isDragging||U){U={isDragging:!1,playedTime:E.draggedTime,controlsVisible:t.controlsWereVisibleBeforeDragging};p.enableFineScrubbing&&E.fineScrubbingActiveState!=="on"&&(t.resetFilmStripYOffset(),U.fineScrubbingActiveState="off");var x=x===void 0?BQi:x;var A=_.yL(0);if(A&&x){var m=Math.round(E.playedTime*1E3),b=Math.round(E.draggedTime*1E3);m>2147483647||b>2147483647||_.HA(A,x,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(m),endMediaTimeMs:String(b),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}E.setState(U);
t.seekThrottle.fire(E.draggedTime,E,7);_.r("mweb_new_progress_bar_play_on_seek")&&t.resumeVideo(E);p.unmuteOnSeek&&(p=E.playerApi,E.volumeMuted&&(p==null||p.unMute()))}else E.setState({controlsVisible:!E.controlsVisible}),(A=p.triggerAutohideControlsAfterDelayFn)==null||A.call(p);t.startPosition=null;t.hasDraggedTheMinimumDistance=!1;t.isDraggedForFineScrubbing=!1;t.controlsWereVisibleBeforeDragging=!1};
LX.prototype.handleClick=function(t,E,p){this.updateProgressBarRect();t.stopPropagation();t=U0K(this,E,t.clientX)*E.videoDuration;E.setState({playedTime:t});if(E.playerState!==2){var U;(U=p.triggerAutohideControlsAfterDelayFn)==null||U.call(p)}this.seekThrottle.fire(t,E,7)};
var U0K=function(t,E,p){t=t.getProgressBarRect(E);return _.Ay(0,(p-t.left)/t.width,1)};
LX.prototype.resumeVideo=function(t){if(t.draggedTime<t.videoDuration){var E;(E=t.playerApi)==null||E.playVideo()}};
LX.prototype.onThrottledSeek=function(t,E,p){if(E=E.playerApi){var U;if((U=E.getVideoData())==null?0:U.isLive)U=this.getProgressState(E),t+=(U==null?void 0:U.seekableStart)||0;E.seekTo(t,void 0,void 0,void 0,p)}};
LX.prototype.getProgressState=function(t){var E=t==null?void 0:t.getPresentingPlayerType();return t==null?void 0:t.getProgressState(E)};var MT8,YGe,m0b,iT8,Awg,qGg,HTK,ftK,Bxg;MT8=_.l(function(t){var E=t.progressBarProps;var p=t.config;var U=t.progressBarWidthPx;var x=t.chapterData;var A=ODY(E,function(){return p().isShortsPage}),m=function(){return!E().isHovering&&!p().isShortsPage};
t={};var b=_.X5("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(t.ytPlayerStoryboardHostMwebShorts=function(){return p().isShortsPage&&!1},t));
return _.H("yt-player-storyboard",null,_.H(_.w,{cond:function(){return E().isDragging||E().isHovering},
then:function(){return _.H(_.w,{cond:A,then:function(f){return _.H(_.w,{cond:m,then:function(){return _.H("div",{class:b,"aria-hidden":"true"},_.H(Awg,{props:E,config:p,isBigboard:!0,chapterData:x}))},
else:function(){return _.H(YGe,{props:E,frame:f,config:p,progressBarWidthPx:U,chapterData:x})}})}})}}))},"Rg");
_.bTC=_.l(function(t){var E=t.progressBarProps;var p=ODY(E,t.isShortsPage);return _.H("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.H(_.w,{cond:function(){return E().isDragging||E().isHovering},
then:function(){return _.H(_.w,{cond:p,then:function(U){return _.H(m0b,{frame:U,props:E,isBigboard:!0})}})}}))},"Sg");
YGe=_.l(function(t){var E=t.props;var p=t.frame;var U=t.config;var x=t.progressBarWidthPx;t=t.chapterData;var A={};A=_.X5("ytPlayerStoryboardHost",(A.ytPlayerStoryboardHostMwebShorts=function(){return U().isShortsPage&&!1},A.ytPlayerStoryboardHostInlinePlayer=function(){return U().isInlinePlayer},A.ytPlayerStoryboardHostFadeIn=function(){return U().useFadeInAnimation},A));
return _.H("div",{class:A,"aria-hidden":"true",style:function(){var m=E(),b=JnJ(p()),f=x();m=I0$(m)/m.videoDuration;var B=f*m,R=b/2+6;b=f-(b/2+6);return"left: "+(B<=R?R/f*100:B>=b?b/f*100:m*100)+"%"}},_.H(_.w,{cond:function(){var m=E();
return!(U().isShortsPage&&m.videoDuration<15)},
then:function(){return _.H(m0b,{frame:p,props:E,isBigboard:!1})}}),_.H(Awg,{props:E,
config:U,isBigboard:!1,chapterData:t}))},"Tg");
m0b=_.l(function(t){var E=t.frame;var p=t.props;var U=t.isBigboard;var x=function(){var b,f;return(f=(b=p().playerApi)==null?void 0:b.getVideoContentRect())!=null?f:{width:0,height:0}},A=function(){return JnJ(E())},m=function(){var b=E();
return b?b.height/b.rows:0};
t={};t=_.X5((t.ytPlayerStoryboardBigboardImageWrapper=U,t.ytPlayerStoryboardStoryboardImageWrapper=function(){return!U()},t));
return _.H("div",{class:t,style:function(){return"width: "+(U()?x().width:A())+"px; height: "+(U()?x().height:m())+"px;"}},_.H(iT8,{frame:E,
storyboardWidth:A,storyboardHeight:m,storyboardScale:function(){return(U()?x().width:A())/A()}}))},"Ug");
iT8=_.l(function(t){var E=t.frame;var p=t.storyboardWidth;var U=t.storyboardHeight;var x=t.storyboardScale;var A=function(){var m=E().row,b=E().column,f=p(),B=U(),R=x();return{left:-b*f*R,top:-m*B*R}};
return _.H("img",{src:function(){return E().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+A().left+"px; top: "+A().top+"px; width: "+E().width*x()+"px; height: "+E().height*x()+"px;"}})},"Vg");
Awg=_.l(function(t){var E=t.props;var p=t.config;var U=t.isBigboard;var x=t.chapterData;t={};t=_.X5("ytPlayerStoryboardMetadata",(t.ytPlayerStoryboardMetadataBigboard=U,t));return _.H("div",{class:t},_.H(_.w,{cond:U,then:function(){return _.H(_.Oj,null,_.H(qGg,{props:E,config:p}),_.H(_.w,{cond:function(){a:{var A=E();var m=p(),b=x(),f;if((m==null?0:m.activeChapter)&&((f=_.k(m==null?void 0:m.activeChapter,YZ))==null?0:f.title))A=!0;else{m=_.M(MNK(b));for(m=m.next();!m.done;m=m.next()){A=(m=_.k(m.value,
KgG))&&g5O(A,m);break a}A=!1}}return A},
then:function(){return _.H(HTK,{props:E,config:p,isBigboard:!0,chapterData:x})}}))},
else:function(){return _.H(_.Oj,null,_.H(HTK,{props:E,config:p,isBigboard:!0,chapterData:x}),_.H(qGg,{props:E,config:p}))}}))},"Wg");
qGg=_.l(function(t){var E=t.props;var p=t.config;t={};t=_.X5("ytPlayerStoryboardTimestamp",(t.ytPlayerStoryboardTimestampShorts=function(){return p().isShortsPage},t.ytPlayerStoryboardTimestampIsHovering=function(){return E().isHovering||p().isShortsPage&&!0},t));
return _.H("div",{class:t},_.H(_.Oj,null,function(){return _.ZDj(I0$(E()))}))},"Xg");
HTK=_.l(function(t){var E=t.props;var p=t.config;var U=t.isBigboard;var x=t.chapterData;t={};U=_.X5("ytPlayerStoryboardTitle",(t.ytPlayerStoryboardTitleBigboard=U,t));return _.H("div",{class:U},_.H(_.w,{cond:function(){return!p().isShortsPage},
then:function(){return _.H(ftK,{props:E,activeChapter:function(){return p().activeChapter},
chapterData:x})}}))},"Yg");
ftK=_.l(function(t){var E=t.props;var p=t.activeChapter;var U=t.chapterData;return _.H(_.Oj,null,_.H(_.yG,{each:function(){return MNK(U())},
keyBy:"INDEX"},function(x){return _.H(_.Oj,null,_.H(_.w,{cond:function(){return _.k(x(),KgG)&&g5O(E(),_.k(x(),KgG))},
then:function(){return _.H(Bxg,{timedMarker:function(){return _.k(x(),KgG)}})}}))}),_.H(_.w,{cond:function(){var x;
return p()&&((x=_.k(p(),YZ))==null?void 0:x.title)},
then:function(x){return _.H(_.d8,{text:x,noPreWrap:!0})}}))},"Zg");
Bxg=_.l(function(t){var E=t.timedMarker;return _.H(_.Oj,null,_.H("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.H(_.lz,{icon:function(){return E().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.H(_.d8,{text:function(){return E().label},
noPreWrap:!0}))},"$g");_.wEb=_.l(function(t){var E=t.progressBarProps;var p=t.playheadData;var U=t.config;t=_.EB("yt-progress-bar");var x=_.EB("div"),A=_.EB("div"),m=_.M(_.Py({width:0,left:0},void 0,"XjZjde")),b=m.next().value,f=m.next().value,B=function(){A.value&&f(A.value.getBoundingClientRect())},R=function(){b().width<=0&&B();
return b()};
_.Xv("resize",B);var V=new LX(R,function(){},function(){return 0},function(){},function(){},function(){}),Q=function(){return E()};
m=_.M(_.Py(!1,void 0,"uZlOJc"));var C=m.next().value,d=m.next().value;m=_.aC(function(){d(!0);U().position===2?setTimeout(function(){B()},100):B()});
var I=_.aC(function(){d(!1);v6o(V,Q)()}),O=_.aC(function(Tt){(U().doSeekOnClick||_.r("mweb_progress_bar_seek_on_mouse_click")&&typeof PointerEvent!=="undefined"&&Tt instanceof PointerEvent&&Tt.pointerType==="mouse")&&DRK(V,Q,U)(Tt);
return!1}),a=_.aC(function(Tt){PJb(V,Q)(Tt);
return!1}),F=_.aC(function(Tt){T75(V,Q)(Tt);
return!1}),L=_.aC(function(Tt){WnC(V,Q,U)(Tt);
return!1}),D=_.aC(function(Tt){Knl(V,Q,U)(Tt);
return!1}),W=_.aC(function(){yFK(V,Q,U)();
return!1}),K=_.aC(function(){Syt(V,Q,U)();
return!1}),v=_.aC(function(){cFK(V,Q,U)();
return!1}),YL=_.aC(function(Tt){tTC(Q)(Tt);
return!1});
_.Xv("mousemove",E7t(V,Q,U));_.Xv("mouseup",pEt(V,Q,U));_.A6(function(){wRj(x.value);d(!1);B();pEt(V,Q,U)()});
var bY={};bY=_.X5("ytPlayerProgressBarHost",function(){return U().className},(bY.ytPlayerProgressBarHostReadOnly=function(){return U().disableScrubbing},bY.ytPlayerProgressBarHostHidden=function(){return U().hideProgressBar&&!C()},bY.ytPlayerProgressBarHostLowerPlayer=function(){return U().position===0},bY.ytPlayerProgressBarHostBottomEdge=function(){return U().position===1},bY.ytPlayerProgressBarHostBottomInset=function(){return U().position===2},bY.ytPlayerProgressBarHostCustom=function(){return U().position===
3},bY));
var kL={},R0=_.X5("ytPlayerProgressBarBackground",(kL.ytPlayerProgressBarBackgroundHide=function(){return U().position===2&&!C()&&!E().isDragging},kL));
kL={};kL=_.X5("ytPlayerProgressBarDragContainer",(kL.ytPlayerProgressBarDragContainerBottomEdge=function(){return U().position===1},kL));
var j$={};j$=_.X5("ytPlayerProgressBarProgressBar",(j$.ytPlayerProgressBarProgressBarInset=function(){return U().position===2},j$.ytPlayerProgressBarProgressBarInsetMinimized=function(){return U().position===2&&!C()&&!E().isDragging},j$));
var lY=function(){return Math.floor(UzY(E())*100)};
return _.H("yt-progress-bar",{el:t,class:bY},_.H(_.w,{cond:function(){return U().position===2},
then:function(){return _.H("div",{class:R0})}}),_.H("div",{el:x,
"on:click":O,"on:touchstart":a,"on:touchmove":L,"on:mouseenter":m,"on:mousedown":F,"on:mouseleave":I,"on:mousemove":D,"on:mouseup":K,"on:touchend":W,"on:touchcancel":v,"on:keydown":YL,class:kL,role:"slider","aria-valuenow":lY,"aria-valuetext":function(){return lY()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return E().videoDuration},
draggable:_.r("web_progress_bar_draggable")?"false":"true",tabindex:0,"aria-label":_.zF("SEEK_SLIDER")},_.H("div",{el:A,class:j$},_.H(GMl,{progressBarProps:E,config:U,highContrast:function(){return!!U().isInlinePlayback}}),_.H(_.w,{cond:function(){return U().chapterData&&mzt(U().chapterData)},
then:function(){return _.H(ze8,{progressState:E,multiMarkersPlayerBarRenderer:function(){return U().chapterData},
progressBarWidth:function(){return b().width}})},
else:function(){return _.H(n67,{progressBarProps:E,config:U})}}),_.H(N7o,{progressBarProps:E,
playheadData:p,interpolateDotPosition:function(){return U().position!==2},
hidePlayhead:function(){return U().playheadDotBehavior===1&&!C()}}))),_.H(MT8,{progressBarProps:E,
config:function(){return{activeChapter:jWJ(E(),U().chapterData),getProgressBarWidthPx:function(){return R().width},
isShortsPage:!!U().isShortsPage,isInlinePlayer:!!U().isInlinePlayback,useFadeInAnimation:!!U().isInlinePlayback}},
progressBarWidthPx:function(){return b().width},
chapterData:function(){return U().chapterData}}))},"ah");
_.wEb.idomCompat=!0;Object.assign({},_.bD0(),{setState:function(){},
domMeasurements:{},appApi:_.pRO(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var RM5;
_.VTt=_.l(function(){var t,E=(t=_.mb(XRJ().playerApi))!=null?t:void 0;t=_.M(_.Py(!1,void 0,"Z9NQ1b"));var p=t.next().value,U=t.next().value;t=_.M(_.Py(!1,void 0,"HoVJXe"));var x=t.next().value,A=t.next().value;t=_.M(_.Py(!1,void 0,"DWCY3"));var m=t.next().value,b=t.next().value;t=_.M(_.Py(!1,void 0,"g4C2Zd"));var f=t.next().value,B=t.next().value;t=_.M(_.Py(0,void 0,"lmVfFb"));var R=t.next().value,V=t.next().value;t=_.M(_.Py(0,void 0,"mFLbzb"));var Q=t.next().value,C=t.next().value;t=_.M(_.Py(!1,void 0,
"hQN4Wb"));var d=t.next().value,I=t.next().value;t=_.M(_.Py(0,void 0,"WWU0fb"));var O=t.next().value,a=t.next().value;t=_.M(_.Py(0,void 0,"MJ7LMd"));var F=t.next().value,L=t.next().value;t=_.M(_.Py("",void 0,"hnomOe"));var D=t.next().value,W=t.next().value;t=_.M(_.Py(-1,void 0,"ARe3pf"));var K=t.next().value,v=t.next().value,YL=_.KN(function(){var bY={controlsVisible:p(),isOverlayHidden:x(),shouldWaitToHideControls:m(),isDragging:f(),isHovering:d(),videoDuration:O(),playedTime:F(),videoId:D(),draggedTime:Q(),
hoveredTime:R(),playerState:K()};return Object.assign({},_.bD0(),bY,{domMeasurements:{},setState:function(kL){kL.controlsVisible!==void 0&&U(kL.controlsVisible);kL.isOverlayHidden!==void 0&&A(kL.isOverlayHidden);kL.shouldWaitToHideControls!==void 0&&b(kL.shouldWaitToHideControls);kL.isDragging!==void 0&&B(kL.isDragging);kL.isHovering!==void 0&&I(kL.isHovering);kL.draggedTime!==void 0&&C(kL.draggedTime);kL.hoveredTime!==void 0&&V(kL.hoveredTime);kL.videoDuration!==void 0&&a(kL.videoDuration);kL.playedTime!==
void 0&&L(kL.playedTime);kL.videoId!==void 0&&W(kL.videoId);kL.playerState!==void 0&&v(kL.playerState)},
appApi:_.pRO(),playerApi:E})},void 0,"Au4PIf");
_.xa(function(){E==null||E.addEventListener("onVideoProgress",f0j(YL));E==null||E.addEventListener("onVideoDataChange",HDO(YL));E==null||E.addEventListener("onStateChange",iDJ(YL))});
_.iK(function(){if(E==null?0:E.isReady())E==null||E.removeEventListener("onVideoProgress",f0j(YL)),E==null||E.removeEventListener("onVideoDataChange",HDO(YL)),E==null||E.removeEventListener("onStateChange",iDJ(YL))});
return _.H("desktop-shorts-player-controls",null,_.H(RM5,{playerControlsProps:YL}))},"ch");
RM5=_.l(function(t){var E=t.playerControlsProps;return _.H("div",{class:"desktopShortsPlayerControlsHost"},_.H(_.wEb,{progressBarProps:E,config:function(){return{isShortsPage:!0,hideProgressBar:E().videoDuration<30&&E().playerState!==2&&!E().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"dh");_.Qf9=_.l(function(t){function E(bY){bY!==0||V()?bY>50&&(V()||!C())?(Q(!1),d(!0)):bY<=50&&(V()||C())&&(Q(!1),d(!1)):Q(!0)}
function p(bY,kL){var R0;return _.q(function(j$){if(j$.nextAddress==1)return j$.yield(_.an(),2);R0=j$.yieldResult;kL&&R0?(R0.unMute(!0),bY&&(a0i(bY,R0.getVolume()),O(R0.getVolume()))):R0&&(R0.mute(!0),bY&&a0i(bY,0));_.Do(j$)})}
function U(bY){var kL,R0;return _.q(function(j$){if(j$.nextAddress==1)return j$.yield(_.an(),2);kL=j$.yieldResult;R0=50;kL&&(R0=kL.getVolume(),kL.isMuted()?a0i(bY,0):a0i(bY,R0));O(R0);_.Do(j$)})}
var x=t.orientation;t=_.EB("desktop-shorts-volume-controls");var A=_.EB("button"),m=_.pR("input"),b=_.M(_.Py(!1,void 0,"RuD0I")),f=b.next().value,B=b.next().value,R=_.M(_.Py(!1,void 0,"YbWwwb"));b=R.next().value;R=R.next().value;var V=b,Q=R;R=_.M(_.Py(!0,void 0,"F7Esub"));b=R.next().value;R=R.next().value;var C=b,d=R;b=_.M(_.Py(50,void 0,"QFGbod"));var I=b.next().value,O=b.next().value;b=_.KN(function(){var bY=V();return _.r("web_shorts_keyboard_enable_mute_shortcut")?bY?_.zF("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.zF("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):bY?_.zF("UNMUTE_VOLUME",void 0,"Unmute"):_.zF("MUTE_VOLUME",void 0,"Mute")},void 0,"rhQxrf");
R=_.KN(function(){var bY=V(),kL=C();return{sources:[{clientResource:{imageName:bY?_.r("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":kL?_.r("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.r("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"mluxjf");
var a=_.KN(function(){var bY=I();return V()?bY+"% volume muted":bY+"% volume"},void 0,"QaT2u"),F=_.KN(function(){return x()==="vertical_down"},void 0,"LkJ9ac");
_.A6(function(){function bY(){B(!0)}
function kL(){B(!1)}
m&&m.value&&(m.value.addEventListener("focus",bY),m.value.addEventListener("focusout",kL),U(m.value).then(function(){E(Number(e10(m.value)))}));
A&&A.value&&(A.value.addEventListener("focus",bY),A.value.addEventListener("focusout",kL));_.iK(function(){var R0;m==null||(R0=m.value)==null||R0.removeEventListener("focus",bY);var j$;m==null||(j$=m.value)==null||j$.removeEventListener("focusout",kL);var lY;A==null||(lY=A.value)==null||lY.removeEventListener("focus",bY);var Tt;A==null||(Tt=A.value)==null||Tt.removeEventListener("focusout",kL)})});
var L=_.aC(function(){if(m&&m.value){var bY=Number(e10(m.value));h1Y(bY);O(bY);m.value.style.setProperty("--gradient-percent",bY+"%");E(bY)}return!1}),D=_.aC(function(){m&&m.value&&(p(m.value,V()),Q(!V()));
return!1}),W={},K={},v={},YL={};
return _.H("desktop-shorts-volume-controls",{"on:pointerleave":_.aC(function(){B(!1)}),
"on:pointerenter":_.aC(function(){B(!0)}),
class:_.X5("ytdDesktopShortsVolumeControlsHost",(W.ytdDesktopShortsVolumeControlsHostVertical=F,W.ytdDesktopShortsVolumeControlsHostModern=_.r("web_shorts_modern_controls"),W.ytdDesktopShortsVolumeControlsHostModernExpanded=function(){return _.r("web_shorts_modern_controls")&&f()},W)),
el:t},_.H(_.w,{cond:function(){return!F()},
then:function(){var bY={};return _.H("div",{class:_.X5("ytdDesktopShortsVolumeControlsBackgroundScrim",(bY.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=f,bY.ytdDesktopShortsVolumeControlsBackgroundScrimExpandedModern=function(){return _.r("web_shorts_modern_controls")&&f()},bY))})}}),_.H("div",{class:_.X5((K.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=F,K))},_.H("button",{"aria-label":b,
title:b,el:A,"on:click":D,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},R?_.H(_.Q9,{data:R,alt:b,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.H("div",{class:_.X5("ytdDesktopShortsVolumeControlsSliderContainer",(v.ytdDesktopShortsVolumeControlsSliderContainerExpanded=f,v.ytdDesktopShortsVolumeControlsSliderContainerVertical=F,v.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=F,v.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=function(){return f()&&
F()},v))},_.H("input",{"aria-label":_.zF("VOLUME"),
title:_.zF("VOLUME"),el:m,"on:input":L,type:"range",class:_.X5("ytdDesktopShortsVolumeControlsNativeSlider",(YL.ytdDesktopShortsVolumeControlsNativeSliderModern=_.r("web_shorts_modern_controls"),YL)),id:"volume-input",role:"slider","aria-valuenow":I,"aria-valuetext":a,"aria-valuemin":0,"aria-valuemax":100})))},"eh");var Cr5=_.l(function(t){var E=t.data;var p=t.overlayDensity;t={};return _.H("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.H(_.sY,{data:function(){return E().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(U){var x=U.data;
return _.H(_.BM,{data:function(){return(p==null?void 0:p())===1?Object.assign({},x(),{avatar:{avatarViewModel:Object.assign({},_.k(x().avatar,_.UX),{avatarImageSize:"AVATAR_SIZE_M"})}}):x()}})}}),_.H(_.sY,{data:function(){return E().avatarStackViewModel}},{avatarStackViewModel:function(U){return _.H(_.wp,{data:U.data})}}),_.H(_.d8,{className:_.X5("ytReelChannelBarViewModelChannelName",(t.ytReelChannelBarViewModelChannelNameLarge=function(){return(p==null?void 0:p())===1},t)),
text:function(){return E().channelName},
linkInheritColor:!0,userInput:!0}),_.H("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.H(_.sY,{data:function(){return E().subscribeButtonViewModel}},{subscribeButtonViewModel:function(U){var x=U.data;
return _.H(_.fZ,{data:function(){return(p==null?void 0:p())===1?Object.assign({},x(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},x().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):x()},
isOverlay:!1})},
buttonViewModel:_.D5})),_.H("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.H(_.sY,{data:function(){var U,x;return(x=_.k((U=E())==null?void 0:U.sponsorButtonViewModel,Y7f))==null?void 0:x.sponsorButton}},{buttonViewModel:function(U){return _.H(_.D5,{data:U.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"fh");var jfC=_.l(function(t){var E=function(){var x;return((x=t.overlayDensity)==null?void 0:x.call(t))===1},p=function(){return E()?22:16},U={};
return _.H("yt-reel-multi-format-link-view-model",{class:_.X5("ytReelMultiFormatLinkViewModelHost",(U.ytReelMultiFormatLinkViewModelHostTall=!0,U.ytReelMultiFormatLinkViewModelHostLarge=function(){return E()},U))},_.H(_.zn,{ariaLabel:function(){return t.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return t.data().command}},_.H("h3",{class:function(){return E()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.H(_.w,{cond:function(){return t.data().icon},
then:function(x){return _.H(_.Q9,{data:x,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:p})}}),_.H(_.d8,{text:function(){return t.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"gh");
jfC.idomCompat=!0;var rwt=_.l(function(t){var E=t.data;var p=t.overlayDensity;var U=t.extractOverlay;var x=_.EB("yt-shorts-suggested-action-view-model");t=_.M(_.Py(!1,void 0,"S60Hzc"));var A=t.next().value,m=t.next().value;t=_.M(_.Py(!1,void 0,"O76chf"));var b=t.next().value,f=t.next().value,B=function(){return E().isMultiLineSa},R=_.nd(SxK,function(){var v,YL;
return(YL=(v=E().toggleableContent)==null?void 0:v.entityKey)!=null?YL:""}),V=function(){var v,YL,bY;
return(bY=E().toggleableContent)!=null&&bY.entityKey?(YL=(v=R())==null?void 0:v.value)!=null?YL:!1:!1},Q=function(){var v,YL,bY,kL,R0,j$,lY,Tt,si,Q0,ps;
return E().toggleableContent?V()?(v=E().toggleableContent)==null?void 0:v.toggledData:(YL=E().toggleableContent)==null?void 0:YL.untoggledData:{primaryText:(Tt=(bY=E().defaultContent)==null?void 0:bY.primaryText)!=null?Tt:E().text,secondaryText:(kL=E().defaultContent)==null?void 0:kL.secondaryText,onTapCommand:(si=(R0=E().defaultContent)==null?void 0:R0.onTapCommand)!=null?si:E().onTapCommand,icon:(Q0=(j$=E().defaultContent)==null?void 0:j$.icon)!=null?Q0:E().icon,image:(ps=(lY=E().defaultContent)==
null?void 0:lY.image)!=null?ps:E().image}},C=function(){return B()?E().trailingTapTarget:void 0},d=function(v,YL){return function(){return A()?YL:v}},I=function(){return{leadingSection:d("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(p==null?void 0:p())===1?d("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):d("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:d("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:d("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:d("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon"),leadingImage:d("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingImage","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingImage")}};
t={};t=_.X5((t.ytShortsSuggestedActionViewModelStaticHost=function(){return!B()},t.ytShortsSuggestedActionViewModelDynamicHost=B,t.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return B()&&b()},t.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return B()&&!b()},t.ytShortsSuggestedActionViewModelExtractOverlay=function(){return U==null?void 0:U()},t));
_.A6(function(){if(B()){var v=0,YL;if((YL=E().animationParams)==null?0:YL.shouldExpand){var bY,kL;v=((kL=(bY=E().animationParams)==null?void 0:bY.expansionDelaySecs)!=null?kL:0)*1E3}var R0,j$=((R0=E().animationParams)==null?0:R0.shouldExpand)?setTimeout(function(){m(!0)},v):void 0,lY,Tt;
v=((lY=E().animationParams)==null?0:lY.visibilityDelaySecs)?((Tt=E().animationParams)==null?NaN:Tt.visibilityDelaySecs)*1E3:0;var si=setTimeout(function(){f(!0)},v);
_.iK(function(){j$&&clearTimeout(j$);clearTimeout(si)})}});
var O=function(v){_.bz(v,Object.assign({},{form:{element:x.value}}))},a=_.aC(function(){var v,YL=(v=Q())==null?void 0:v.onTapCommand;
YL&&O(YL)}),F=_.aC(function(){var v,YL;
if(v=(YL=C())==null?void 0:YL.onTapCommand)return O(v),!1}),L=_.zO({"vertical-align":"bottom",
"border-radius":function(){var v;return B()?((v=E().defaultContent)==null?0:v.isCircleImage)?"50%":"4px":"0px"},
width:function(){var v,YL,bY;return B()&&((v=E().defaultContent)==null?0:v.imageSize)?((bY=(YL=E().defaultContent)==null?void 0:YL.imageSize)!=null?bY:24)+"px":null},
height:function(){var v,YL,bY;return B()&&((v=E().defaultContent)==null?0:v.imageSize)?((bY=(YL=E().defaultContent)==null?void 0:YL.imageSize)!=null?bY:24)+"px":null}}),D=function(){return B()?I().leadingIcon():"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"},W=function(){return B()?I().leadingImage():"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},K={};
return _.H("yt-shorts-suggested-action-view-model",{class:t,el:x},_.H("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.H("button",{class:_.X5(function(){return B()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var v;
return(v=E().useFullRoundedBorder)!=null&&v?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!C()&&B()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":B()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var v;
return(v=E().disableFixedHeight)!=null&&v?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(K.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(p==null?void 0:p())===1},K.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return U==null?void 0:U()},K)),
"on:click":a},_.H(_.lu,{model:{color:4}}),_.H("div",{class:_.X5(function(){return B()?I().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.H(_.w,{cond:function(){var v;
return(v=Q())==null?void 0:v.image},
then:function(v){return _.H(_.Q9,{data:v,alt:"",className:W,contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:L})}}),_.H(_.w,{cond:function(){var v,YL;
return(v=Q())==null?void 0:(YL=v.icon)==null?void 0:YL.iconType},
then:function(v){return _.H(_.lz,{icon:v,active:V,className:D})}})),_.H("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.H(_.w,{cond:function(){var v;
return(v=Q())==null?void 0:v.primaryText},
then:function(v){var YL={};return _.H("div",{class:_.X5("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(YL.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(p==null?void 0:p())===1},YL))},_.H(_.d8,{text:v}))}}),_.H(_.w,{cond:function(){var v;
return(v=Q())==null?void 0:v.secondaryText},
then:function(v){return _.H("div",{class:function(){return I().secondaryText()}},_.H(_.d8,{text:v}))}}))),_.H(_.w,{cond:C,
then:function(v){return _.H("div",{class:_.X5(function(){return I().trailingSection()},function(){var YL,bY;
return(U==null?void 0:U())&&((bY=(YL=I()).trailingSectionExtractOverlay)==null?void 0:bY.call(YL))||""}),
"aria-label":function(){var YL;return(YL=v().a11yLabel)!=null?YL:""},
"on:click":F,role:"button",tabindex:0},_.H(_.lu,{model:{color:4}}),_.H(_.lz,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"hh");var kad=_.l(function(t){var E=t.data;var p=t.overlayDensity;var U=_.EB("yt-shorts-video-title-view-model");t=_.aC(function(m){if(_.Sw(_.yb(m),U.value,["A".toString()]))return!1;(m=E().truncatedTextOnTapCommand)&&_.bz(m);return!1});
var x={},A={};return _.H("yt-shorts-video-title-view-model",{el:U,class:_.X5("ytShortsVideoTitleViewModelHost",(x.ytShortsVideoTitleViewModelHostClickable=function(){return!!E().truncatedTextOnTapCommand},x)),
"on:click":t},_.H("h2",{class:_.X5("ytShortsVideoTitleViewModelShortsVideoTitle",(A.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(p==null?void 0:p())===1},A.ytShortsVideoTitleViewModelShortsVideoTitleOneLine=function(){return _.r("enable_shorts_declutter_ui")},A))},_.H(_.d8,{text:function(){return E().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(p==null?void 0:p())===1}})))},"ih");_.d05=_.l(function(t){var E=t.data;var p=t.overlayDensity;var U=t.extractOverlay;var x=function(){return(p==null?void 0:p())===1},A=function(){return _.r("enable_shorts_declutter_ui")?"ytReelMetapanelViewModelMetapanelItemDecluttered":"ytReelMetapanelViewModelMetapanelItem"};
return _.H("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.H(_.sY,{data:function(){return E().metadataItems}},{badgeViewModel:function(m){m=m.data;
return _.H("div",{class:_.X5(function(){return x()?"ytReelMetapanelViewModelExpansiveBlock":A()})},_.H(_.XN,{data:m}))},
playerDisclosureViewModel:function(m){m=m.data;return _.H("div",{class:_.X5(function(){return x()?"ytReelMetapanelViewModelExpansiveBlock":A()})},_.H(_.B67,{data:m,
extractOverlay:U}))},
shortsSuggestedActionViewModel:function(m){m=m.data;return _.H("div",{class:_.X5(function(){return x()?"ytReelMetapanelViewModelExpansiveBlock":A()})},_.H(rwt,{data:m,
overlayDensity:p,extractOverlay:U}))},
reelChannelBarViewModel:function(m){m=m.data;var b={};return _.H("div",{class:_.X5(A(),(b.ytReelMetapanelViewModelExpansive=function(){return x()},b))},_.H(Cr5,{data:m,
overlayDensity:p}))},
reelMultiFormatLinkViewModel:function(m){m=m.data;var b={};return _.H("div",{class:_.X5(A(),(b.ytReelMetapanelViewModelExpansive=function(){return x()},b))},_.H(jfC,{data:m,
overlayDensity:p}))},
shortsVideoTitleViewModel:function(m){m=m.data;var b={};return _.H("div",{class:_.X5(A(),(b.ytReelMetapanelViewModelExpansive=function(){return x()},b))},_.H(kad,{data:m,
overlayDensity:p}))},
reelSoundMetadataViewModel:function(m){m=m.data;var b={};return _.H("div",{class:_.X5(A(),(b.ytReelMetapanelViewModelExpansive=function(){return x()},b))},_.H(_.gwg,{data:m,
overlayDensity:p}))},
toggleButtonViewModel:function(m){m=m.data;var b={};return _.H("div",{class:_.X5(A(),(b.ytReelMetapanelViewModelExpansive=function(){return x()},b))},_.H(_.m3,{data:m}))}}))},"jh");var uLe=_.l(function(t){var E=_.C4(t,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),p=E.size,U=E.onTap,x=E.disabled,A=E.tooltipText;return _.H("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.H(_.N7,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:p(),disabled:x(),tooltipText:A(),onTap:U}},
iconName:t.iconType}))},"kh"),JwL=_.l(function(t){function E(R){R.stopPropagation();
R.code==="ArrowUp"?(R.preventDefault(),GDt(b.value)):R.code==="ArrowDown"?(R.preventDefault(),n5_(b.value)):R.code==="KeyM"?F4t():(R.code==="KeyK"||R.code==="Space")&&z1O(f())}
var p=_.C4(t,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});t=p.previousButtonDisabled;var U=p.nextButtonDisabled,x=p.data,A=p.playabilityStatus,m=p.previewThumbnail,b=_.EB("ytd-shorts-miniplayer-overlay"),f=_.D4(_.Nw_),B;_.xa(function(){(B=_.S2(b.value))&&B.addEventListener("keydown",E)});
_.iK(function(){var R;(R=B)==null||R.removeEventListener("keydown",E)});
p=function(){var R,V;var Q=_.k((R=x())==null?void 0:(V=R.reelPlayerOverlayRenderer)==null?void 0:V.buttonBar,pdr);if(Q){var C;R=Object.assign({},Q,{buttonViewModels:(C=Q.buttonViewModels)==null?void 0:C.filter(l0O)})}else R=void 0;return R};
return _.H("ytd-shorts-miniplayer-overlay",{el:b,class:"ytdShortsMiniplayerOverlayHost"},_.H("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.zO({"background-image":function(){var R=m();return R?'url("'+_.uz(R.thumbnails)+'")':""}})}),_.H("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.H("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.H(uLe,{iconType:function(){var R=f();
return R===2||R===-1||R===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){z1O(f())},
tooltipText:function(){var R=f();return R===1||R===3?_.zF("PLAYER_LABEL_PAUSE"):_.zF("PLAYER_LABEL_PLAY")}}),_.H(_.Qf9,{orientation:"horizontal_right"})),_.H("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.H(uLe,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:t,onTap:function(){GDt(b.value)},
tooltipText:_.zF("PREVIOUS_VIDEO_LABEL")}),_.H(uLe,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:U,onTap:function(){n5_(b.value)},
tooltipText:_.zF("NEXT_VIDEO_LABEL")}),_.r("web_shorts_pip_like_button")?_.H(_.w,{cond:p,then:function(R){return _.H("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.H(_.Mqo,{data:R,buttonShapeOverrideables:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"}}))}}):null),_.H("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.H(_.w,{cond:function(){var R,V;
return _.k((R=x())==null?void 0:(V=R.reelPlayerOverlayRenderer)==null?void 0:V.metapanel,UY4)},
then:function(R){return _.H("div",{class:_.X5("ytdShortsMiniplayerOverlayInteractive")},_.H(_.d05,{data:R}))}})),_.H("div",{class:_.X5("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var R;return!((R=x())==null||!R.adsOverlay)||A()&&!Qj8(A())}},_.H("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.H(_.VTt,null)))),_.H(_.w,{cond:function(){var R=x(),V,Q;
R=_.k(R==null?void 0:(V=R.adsOverlay)==null?void 0:(Q=V.fulfillmentContent)==null?void 0:Q.fulfilledLayout,FCf);return _.k(R==null?void 0:R.renderingContent,DC4)},
then:function(R){return _.H("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.H(fhp,{data:R}))}}))},"mh");var NQD=_.l(function(){var t=_.M(_.Py(new _.nq(NaN,NaN),void 0,"ejTaF")),E=t.next().value,p=t.next().value;t=_.M(_.Py(!1,void 0,"aTA69e"));var U=t.next().value,x=t.next().value,A=_.M(_.Py(!1,void 0,"OsC2Ib"));t=A.next().value;var m=A.next().value;A=_.X3().resolve(_.bf).miniplayerPropSignalMap[0];var b=A.data,f=A.shortsData,B=A.nextButtonDisabled,R=A.shortsPreviewThumbnail,V=A.previousButtonDisabled,Q=A.externalPlaylistData,C=A.playabilityStatus,d=A.isDisabled,I=A.playerVe,O=A.closeVe;A=_.D4(_.gX);
_.Iz("yt-pip-window-resized",function(D){p(D)});
_.Iz("yt-activate-pip-miniplayer",function(){return _.q(function(D){m(!0);_.Do(D)})});
var a=function(){var D;return!((D=Q())==null||!D.contents)&&U()},F=function(){var D=E(),W=!!b(),K=a();
D=D.clone();W&&(D.height-=76);K&&(D.height-=285);return D},L=function(){x(!U())};
_.M$(function(){var D=I(),W=_.yL(11),K=_.vV(11);W&&K&&D&&(_.Yh(W,K,D),K=O())&&(_.Mc(W,D,[K]),_.bU(W,[K]))},"h5qKie");
return _.H("ytd-pip-container",{class:"ytdPipContainerHost"},_.H(_.w,{cond:t,then:function(){return _.H(_.eet,{isDisabled:d,playabilityStatus:C,size:F,isPictureInPicture:!0})}}),_.H(_.w,{cond:b,
then:function(){return _.H(_.het,{data:b,expanded:U,onExpandClick:L,playlistData:Q})}}),_.H(_.w,{cond:a,
then:function(){return _.H("div",{class:"ytdPipContainerPlaylistPanel"},_.H(_.N6C,{data:Q,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.H(_.w,{cond:A,
then:function(){return _.H(JwL,{data:f,nextButtonDisabled:B,previousButtonDisabled:V,playabilityStatus:C,previewThumbnail:R})}}))},"oh");var TU=function(t,E,p){var U=this;this.pipController=t;this.JSC$19312_clientRoot=E;this.JSC$19312_pageRequestService=p;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=yK0();this.JSC$19312_watchPipEnabled=_.r("web_watch_pip");this.watchPipManualOnlyEnabled=_.r("web_watch_pip_manual");this.shortsPipEnabled=_.r("web_shorts_pip");this.JSC$19312_watchWhileEnabled=_.r("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;_.EA(_.QM(),F3t,function(x){U.isSingleOptionSurveyActive=x});
this.JSC$19312_onPlayerPlayVideo=this.JSC$19312_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);_.uV(_.d1.getInstance(),this.miniplayerServiceActionMap,this.JSC$19312_clientRoot);t.pictureInPictureSupported()&&_.MW("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},XtW,zMe,hML,lt5,Gag,AKZ,n7o,Nx8,D0t,eMt;
TU.prototype.handleMediaSessionPipActivation=function(t){var E=this,p,U;return _.q(function(x){_.S3().mediaSessionPipActivation=!0;p=_.X3().resolve(_.jw);if(p.isOnWatch()&&E.JSC$19312_watchPipEnabled){if(E.watchPipManualOnlyEnabled&&((U=t)==null?void 0:U.enterPictureInPictureReason)!=="useraction")return cH(),x.return();_.S3().watchPipActivation=!0;_.ItL(E,p.data);return x.jumpTo(0)}return p.isOnShorts()&&E.shortsPipEnabled?(_.S3().shortsPipActivation=!0,_.g78(E),x.jumpTo(0)):E.isMiniplayerActive()&&
E.JSC$19312_watchPipEnabled&&!E.watchWhileMode?x.yield(ZTg(E),0):x.jumpTo(0)})};
var ZTg=function(t){var E,p,U,x;return _.q(function(A){if(A.nextAddress==1)return E=!t.miniplayerToPipMode,p=t.playerElement,U=t.miniplayerData,x=t.watchResponse,A.yield(t.deactivate(),2);if(A.nextAddress!=3)return E?(_.S3().mediaSessionPipActivation=!0,_.S3().watchPipActivation=!0):_.S3().miniplayerButtonActivation=!0,A.yield(t.activate(p,U,x),3);t.miniplayerToPipMode=E;_.Do(A)})};
TU.prototype.onDownloadedVideoDeleted=function(t){var E,p=_.k((E=this.miniplayerData)==null?void 0:E.watchEndpoint,_.HD),U,x;p&&((U=this.watchResponse)==null?void 0:(x=U.playerResponse)==null?void 0:x.offlineState)!==void 0&&(E=p.videoId)&&t&&E===t&&this.close()};
TU.prototype.onShowMiniplayerCommand=function(t){var E=this,p,U,x,A,m,b,f,B,R,V,Q;return _.q(function(C){switch(C.nextAddress){case 1:return p=_.k(t,Djm),x=(U=p)==null?void 0:U.miniplayerCommand,A=_.k(x,_.HD),x&&A&&!E.active?C.yield(_.mP.getInstance(),2):C.return();case 2:return m=C.yieldResult,C.yield((b=m)==null?void 0:b.get("yt-miniplayer-shown-video-id"),3);case 3:f=C.yieldResult;B=A.videoId;if(!B||f===B)return C.return();R=_.X3().resolve(_.jw);if(R.isOnWatch())return _.qW(Error("Wj")),C.return();
V={channelItem:{externalId:btoa(B)}};E.readyToResumeVe=_.h8(121253,void 0,void 0,V);_.S3().showMiniplayerCommandActivation=!0;return C.yield(_.Yzf(E,x,!0),4);case 4:return E.active&&(_.oX(E,{readyToResumeVe:E.readyToResumeVe,isReadyToResume:!0}),E.isReadyToResume=!0),C.yield((Q=m)==null?void 0:Q.set("yt-miniplayer-shown-video-id",A.videoId),5);case 5:E.readyToResumeVe=void 0,_.Do(C)}})};
TU.prototype.init=function(t){this.miniplayerEl?_.qW(new _.cC("MiniplayerService already initialized.")):this.miniplayerEl=t};
TU.prototype.isInitialized=function(){var t=!!this.miniplayerEl;t||_.qW(new _.cC("MiniplayerService used before initialized."));return t};
_.ItL=function(t,E){if(t.isInitialized()){var p=_.tN_(E.response,E.playerResponse),U=_.X3().resolve(_.jw).getPlayerFromWatch();_.S3().currentEndpoint=p.watchEndpoint||null;t.activate(U,p,E)}};
_.g78=function(t){if(t.isInitialized()){var E=_.X3().resolve(_.jw).getPlayerFromShorts();t.activate(E)}};
XtW=function(t,E){var p;(p=!t.isInitialized())||(p=_.X3().resolve(_.jw).isOnWatch()&&t.watchPipMode,p=!(t.isMiniplayerActive()&&(_.S3().userActivation||_.S3().lockupActivation||p)));if(p)return!1;OT5(t,E)?_.sN(t):AKZ(t,E);return t.watchPipMode?!_.X3().resolve(_.jw).isOnWatch():!0};
TU.prototype.isMiniplayerActive=function(){return this.active};
var OT5=function(t,E){var p;E=(p=_.k(E,_.HD))==null?void 0:p.videoId;var U,x;t=(x=_.k((U=t.miniplayerData)==null?void 0:U.watchEndpoint,_.HD))==null?void 0:x.videoId;return E!=null&&E===t};
TU.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.kT(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.du(this.miniplayerEl,"yt-navigate-home-action"))};
_.Yzf=function(t,E,p,U){p=p===void 0?!1:p;var x,A,m,b;return _.q(function(f){switch(f.nextAddress){case 1:if(t.active){f.jumpTo(2);break}x=_.X3().resolve(_.jw);if(m=(A=t.playerElement)!=null?A:x.getPlayerFromWatch()){f.jumpTo(3);break}return f.yield(_.X3().resolve(_.gG),4);case 4:m=x.getPlayerFromWatch();case 3:if(!m){_.qW(Error("Yj"));f.jumpTo(2);break}return f.yield(t.activate(m,U),2);case 2:return t.active?f.yield(AKZ(t,E,p),7):f.return();case 7:(b=t.getPlayerElement())==null||b.focusOnPlayer(),
_.Do(f)}})};
TU.prototype.activate=function(t,E,p){var U=this,x,A,m,b,f,B,R,V,Q;return _.q(function(C){switch(C.nextAddress){case 1:if(!U.isInitialized())return C.return();if(!t)return _.qW(Error("Yj")),C.return();if(_.qVp()||U.isMiniplayerActive())var d=!0;else d=_.S3().watchPipActivation||_.S3().watchWhileActivation,_.X3().resolve(_.jw).isOnWatch()&&!d?(_.qW(new _.cC("miniplayer activated on watch page")),d=!0):d=_.S3().watchWhileActivation?U.userDeactivatedWatchWhile||!!document.pictureInPictureElement||SOL():
!1;if(d)return cH(),C.return();x=_.S3().mediaSessionPipActivation;A=_.S3().shortsPipActivation;m=_.S3().watchPipActivation;f=(b=_.S3().watchWhileActivation)||m;B=m||A;if(!U.pictureInPictureEnabled()||!B){C.jumpTo(2);break}return C.yield(XE5(U,x),3);case 3:if(!C.yieldResult)return _.qW(Error("Xj")),cH(),C.return();case 2:return U.setActive(!0),U.watchResponse=p,U.playerElement=t,U.updateMiniplayerData(E),C.yield(hML(U,t),4);case 4:if(!U.active)return _.qW(new _.cC("miniplayer deactivated during activation")),
U.removePlayerListeners(),C.return();d=_.X3().resolve(_.kA);d.addEventListener("yt-navigate",_.zI(U,U.onPlaylistNavigate));d.addEventListener("yt-playlist-data-updated",_.zI(U,U.JSC$19312_onPlaylistDataUpdated));U.JSC$19312_onPlaylistDataUpdated();cH();U.JSC$19312_watchWhileEnabled&&_.atl(U,b);U.pictureInPictureEnabled()&&U.shortsPipEnabled&&(U.shortsPipMode=A,_.QM().dispatch(cxo(U.shortsPipMode)));U.pictureInPictureEnabled()&&U.JSC$19312_watchPipEnabled&&(U.watchPipMode=m,U.JSC$19312_watchPipEnabled&&
(!U.watchPipManualOnlyEnabled||_.ck_()&&_.kt$("Chromium")>=142)&&_.E$j(U.handleMediaSessionPipActivation));U.player&&(R=U.player.getPlayerState(),V=R===1,_.QM().dispatch(bUW(R)),_.uO(U.miniplayerEl,"yt-miniplayer-play-state-changed",[V]),_.S3().isVideoPlaying=V);_.uO(U.miniplayerEl,"yt-miniplayer-endpoint-changed");eMt(U);_.FMC(U);if(U.shortsPipMode||U.watchPipMode)C=C.yield(_.du(U.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{d=C.yield;var I=_.du(U.miniplayerEl,"yt-activate-miniplayer",[f])[0];
C=d.call(C,I,6)}return C;case 6:if(U.watchResponse){d=U.getScreenLayer();I=_.yL(0);var O=QLD(0);I&&O&&(_.cV(I,O,d),d===0&&Rzi(void 0,0))}zMe(U);lt5(U,!0);(Q=U.getPlayerElement())==null||Q.focusOnPlayer();_.Do(C)}})};
TU.prototype.updateMiniplayerData=function(t){this.miniplayerData=t;_.oX(this,{data:t})};
_.FMC=function(t){var E,p,U=((E=t.miniplayerData)==null?void 0:(p=E.miniplayerRenderer)==null?void 0:p.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";E=t.watchWhileMode||t.watchPipMode?U&&!_.X3().resolve(_.jw).isOnWatch():U;_.oX(t,{isDisabled:E});var x,A;p=_.k((x=t.miniplayerData)==null?void 0:(A=x.miniplayerRenderer)==null?void 0:A.minimizedEndpoint,_.cU);E&&p&&_.X3().resolve(_.bL).openSheet({openPopupActionCommand:{openPopupAction:p}},t.miniplayerEl)};
zMe=function(t){if(t.watchResponse&&!Gag(t)){var E,p=(E=t.watchResponse.playerResponse)==null?void 0:E.trackingParams;p&&(_.oX(t,{expandVe:_.h8(35989),closeVe:_.h8(34699),readyToResumeCloseVe:_.h8(131070),repositionVe:_.h8(226204),resizeVe:_.h8(226205)}),_.oX(t,{playerVe:_.$8(p)}))}};
hML=function(t,E){return _.q(function(p){if(p.nextAddress==1)return E.preparePlayer(),p.yield(E.getPlayerPromise(),2);t.player=p.yieldResult;t.player&&(t.player.addEventListener("onPlayVideo",t.JSC$19312_onPlayerPlayVideo),t.player.addEventListener("onCloseMiniplayer",t.onPlayerCloseMiniplayer),t.player.addEventListener("onExpandMiniplayer",t.onPlayerExpandMiniplayer),t.player.addEventListener("onStateChange",t.onPlayerStateChange));_.Do(p)})};
_.Y=TU.prototype;_.Y.JSC$19312_onPlayerPlayVideo=function(t){var E=t.sessionData&&"autonav"in t.sessionData,p;t.sessionData&&t.sessionData.itct&&(p=t.sessionData.itct);var U=t.watchEndpoint;E=U&&E?_.CTi(U,p):_.rm(t.videoId,t.listId||void 0,p);t.sessionData&&_.RK(_.k(E.commandMetadata,_.hZ).url,t.sessionData);AKZ(this,E)};
_.Y.onPlayerExpandMiniplayer=function(){_.sN(this)};
_.Y.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.Y.onPlayerStateChange=function(){if(this.player){var t=this.player.getPlayerState(),E=t===1;_.QM().dispatch(bUW(t));_.QM().dispatch(_.HU3(t));_.uO(this.miniplayerEl,"yt-miniplayer-play-state-changed",[E]);_.S3().isVideoPlaying=E;if(t===0){E=!_.e3.getInstance().isAutoplaySetExplicitly();var p,U,x,A,m,b,f=(p=this.watchResponse.response)==null?void 0:(U=p.contents)==null?void 0:(x=U.twoColumnWatchNextResults)==null?void 0:(A=x.autoplay)==null?void 0:(m=A.autoplay)==null?void 0:(b=m.autoplayExplicitChoiceDialogRenderer)==
null?void 0:b.confirmDialogRenderer;E&&f&&this.player.setAutonavState(1)}t===0&&this.watchWhileMode&&this.deactivate()}};
_.Y.onPlaylistNavigate=function(t,E){var p=this,U,x,A,m,b,f,B;return _.q(function(R){if(R.nextAddress==1){if(!_.k(E.endpoint,_.HD))return R.return();_.S3().currentEndpoint=E.endpoint;_.uO(p.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.X3().resolve(_.jw).isOnWatch()&&(p.watchWhileMode||p.watchPipMode))return R.return();t.stopPropagation();(A=(x=_.k((U=E.endpoint)==null?void 0:U.commandMetadata,_.hZ))==null?void 0:x.url)&&E.tempData&&!_.Kq.isEmpty(E.tempData)&&_.RK(A,E.tempData);m={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};b=new HvT(function(){return p.getPlayerElement()},m,{layer:p.getScreenLayer()});
f=function(V){b.processChunk({endpoint:E.endpoint,data:V})};
n7o(p);p.miniplayerFetchRequest=Nx8(p,E.endpoint,f);_.aR(R,2);return R.yield(p.miniplayerFetchRequest,4)}if(R.nextAddress!=2)return B=R.yieldResult,D0t(p,B),_.r7(R,0);_.nB(R);_.Do(R)})};
_.Y.JSC$19312_onPlaylistDataUpdated=function(){var t=_.X3().resolve(_.kA).getPlaylistData();this.hasPlaylistData=!!t;_.oX(this,{externalPlaylistData:t||{}})};
_.Y.close=function(t){if(this.isInitialized())if(t){if(!((this.watchWhileMode||this.watchPipMode)&&_.X3().resolve(_.jw).isOnWatch()||this.shortsPipMode)){var E;(E=this.getPlayerElement())==null||E.stop()}this.deactivate()}else _.gY().closeMiniplayer(this.miniplayerEl)};
_.Y.deactivate=function(t){var E=this,p,U,x,A;return _.q(function(m){if(m.nextAddress==1){if(!E.isInitialized()||!E.active)return m.return();E.setActive(!1);n7o(E);(p=!!t&&OT5(E,t))&&E.isSingleOptionSurveyActive&&_.du(E.miniplayerEl,"yt-show-watch-page-survey",[E.isSingleOptionSurveyActive]);return m.yield(sfe(E),2)}if(m.nextAddress!=3){lt5(E,!1);E.isReadyToResume=!1;E.watchResponse=void 0;E.updateMiniplayerData(void 0);E.shortsPipMode&&(E.shortsPipMode=!1,_.QM().dispatch(cxo(E.shortsPipMode)),U$g(E.pipController),
(U=E.player)==null||U.setInternalSize(NaN,NaN));E.watchPipMode&&(E.watchPipMode=!1,U$g(E.pipController));(x=E.watchWhileMode)&&_.atl(E,!1);E.removePlayerListeners();var b=_.X3().resolve(_.kA);b.removeEventListener("yt-navigate",_.zI(E,E.onPlaylistNavigate));b.removeEventListener("yt-playlist-data-updated",_.zI(E,E.JSC$19312_onPlaylistDataUpdated));_.S3().currentEndpoint=null;_.uO(E.miniplayerEl,"yt-miniplayer-endpoint-changed");E.playerElement=null;cH();if(E.shortsPipMode||E.watchPipMode)m=m.jumpTo(3);
else{b=m.yield;var f=_.du(E.miniplayerEl,"yt-deactivate-miniplayer",[p,x])[0];m=b.call(m,f,3)}return m}(A=E.player)==null||A.setInternalSize(NaN,NaN);E.player=null;_.Do(m)})};
var sfe=function(t){var E;return _.q(function(p){E=_.X3().resolve(_.jw);return t.shortsPipMode?p.yield(E.movePlayerToShorts(t.playerElement),0):p.yield(E.movePlayerToWatch(t.playerElement),0)})};
TU.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$19312_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
TU.prototype.setActive=function(t){this.active=t;this.isSingleOptionSurveyActive?_.du(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.du(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.QM().dispatch(_.Jj({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.atl=function(t,E){t.watchWhileMode=E;_.oX(t,{watchWhile:E})};
lt5=function(t,E){if(!Gag(t))if(t.shortsPipMode||t.watchPipMode){var p;(p=t.player)==null||p.setDocumentPictureInPicture(E)}else{var U;(U=t.player)==null||U.setMinimized(E)}};
Gag=function(t){return t.watchWhileMode&&_.r("kevlar_watch_while_counterfactual")};
_.sN=function(t){var E;return _.q(function(p){switch(p.nextAddress){case 1:if(!t.isInitialized())return p.return();_.aR(p,2);return p.yield(t.miniplayerFetchRequest,4);case 4:_.r7(p,3);break;case 2:_.nB(p);case 3:t.watchResponse&&t.miniplayerData&&t.miniplayerData.watchEndpoint?(E={url:t.watchResponse.url,endpoint:t.miniplayerData.watchEndpoint,data:t.watchResponse,miniplayer:!0},_.kT(t.miniplayerEl,"yt-navigate-cache",E)):t.miniplayerData&&t.miniplayerData.watchEndpoint&&_.kT(t.miniplayerEl,"yt-navigate",
{endpoint:t.miniplayerData.watchEndpoint}),_.Do(p)}})};
AKZ=function(t,E,p){var U,x,A,m;return _.q(function(b){if(b.nextAddress==1){if(OT5(t,E))return b.return();_.S3().currentEndpoint=E;_.uO(t.miniplayerEl,"yt-miniplayer-endpoint-changed");_.uO(t.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.S3().isVideoPlaying=!1;U={clientParams:{miniplayer:!0,autoSaveToQueue:!p}};x=new HvT(function(){return t.getPlayerElement()},U,{layer:t.getScreenLayer(),
parentLayer:0},void 0,t.readyToResumeVe);A=function(f){var B,R,V=Object.assign({},(B=f.playerResponse)==null?void 0:(R=B.playerConfig)==null?void 0:R.playbackStartConfig,{startPaused:!0}),Q;p&&((Q=f.playerResponse)==null?0:Q.playerConfig)&&(f.playerResponse.playerConfig.playbackStartConfig=V);x.processChunk({endpoint:E,data:f})};
n7o(t);t.miniplayerFetchRequest=Nx8(t,E,A);_.aR(b,2);return b.yield(t.miniplayerFetchRequest,4)}if(b.nextAddress!=2)return m=b.yieldResult,D0t(t,m),_.r7(b,0);_.nB(b);_.Do(b)})};
TU.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
n7o=function(t){t.miniplayerFetchRequest&&(t.miniplayerFetchRequest.cancel&&t.miniplayerFetchRequest.cancel("Active request obsolete"),t.miniplayerFetchRequest=null)};
Nx8=function(t,E,p){var U,x=(U=_.k(E.commandMetadata,_.hZ))==null?void 0:U.url,A;U=!x||_.uc("disable_miniplayer_tempdata")?{}:(A=xj_(x))!=null?A:{};return fG(t.JSC$19312_pageRequestService,E,U,window.location.href,"watch",function(m,b){p(b)},function(m){return m!==t.miniplayerFetchRequest})};
D0t=function(t,E){var p;_.q(function(U){if(!E)return U.return();t.watchResponse=E;zMe(t);eMt(t);p=_.tN_(E.response,E.playerResponse);if(t.isMiniplayerActive()){E.response&&(t.playerElement.watchNextData=E.response);var x=_.Kq.getValueByKeys.apply(_.Kq,[E].concat(_.KB(kAZ)));_.Kq.getValueByKeys.apply(_.Kq,[E].concat(_.KB(g40)))&&x&&_.X3().resolve(_.kA).setAutoplayRenderer(x);if(x)if(_.r("kevlar_is_pupi_enabled")){var A,m,b,f,B,R=((A=E.response)==null?0:(m=A.playerOverlays)==null?0:(b=m.playerOverlayRenderer)==
null?0:(f=b.autonavToggle)==null?0:(B=f.autoplaySwitchButtonRenderer)==null?0:B.enabled)?2:1;_.e3.getInstance().setState(R,!1,!1)}else A=V3_()?2:1,(R=t.player)==null||R.setAutonavState(A);t.updateMiniplayerData(p);_.FMC(t)}_.Do(U)})};
eMt=function(t){var E,p,U=(E=t.watchResponse)==null?void 0:(p=E.playerResponse)==null?void 0:p.playabilityStatus,x;E=U==null?void 0:(x=U.miniplayer)==null?void 0:x.miniplayerRenderer;(E==null?void 0:E.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&E.minimizedEndpoint&&_.JZ(t.miniplayerEl,[E.minimizedEndpoint]);_.oX(t,{playabilityStatus:U})};
_.oX=function(t,E){(0,t.miniplayerPropSignalMap[1])(E)};
TU.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var t;return this.playerElement?this.playerElement:(t=_.ZN(this.miniplayerEl).querySelector("#player-container"))==null?void 0:t.firstElementChild};
TU.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var XE5=function(t,E){E=E===void 0?!1:E;var p,U,x,A,m,b;return _.q(function(f){if(f.nextAddress==1){if(!t.pictureInPictureSupported()||!sWt()&&!E)return f.return(!1);p=LMC(t);U=p.width;x=p.height;return f.yield(t.pipController.openWindow({width:U,height:x}),2)}A=f.yieldResult;m=t.pipController.getWindow();if(!m||!A)return f.return(!1);m.document.body.style.overflow="hidden";b=Dzl(m);x$K(t.pipController,function(){Prd(t);b()});
return f.return(!0)})},LMC=function(t){var E=_.S3().shortsPipActivation,p,U;
t=E?.5625:(U=(p=t.player)==null?void 0:p.getVideoAspectRatio())!=null?U:16/9;p=Math.min(window.innerWidth,window.innerHeight)/2;E=E?0:76;return t>1?new _.nq(p,E+p/t):new _.nq(p*t,E+p)},Prd=function(t){var E;
_.q(function(p){E=_.X3().resolve(_.jw);return E.isOnWatch()&&t.watchPipMode||E.isOnShorts()&&t.shortsPipMode?p.yield(t.deactivate(),0):t.miniplayerToPipMode?p.yield(ZTg(t),0):t.watchPipMode?p.yield(_.sN(t),0):p.jumpTo(0)})};
TU.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.JSC$19312_watchPipEnabled||this.shortsPipEnabled)};
_.aE.Object.defineProperties(TU.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
TU[aa]=[Atb,JPo,_.yc];var Txl="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(" "),
o77="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(" "),WMK="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
$05="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var KMC=function(t,E,p){_.PQ.call(this);this.store=t;this.panelController=E;this.pageContentExtractor=p;this.isInitialized=!1};
_.u(KMC,_.PQ);
KMC.prototype.init=function(t){var E=this;this.isInitialized||(this.isInitialized=!0,this.environment=t!=null?t:"CHAT_ENVIRONMENT_ENUM_YOUCHAT",this.pageSubtype=_.i7.currentPageSubTypeSelector(this.store.getState()),t=_.EA(this.store,_.i7.currentPageSubTypeSelector,function(p){a:if(_.v7g(E))switch(p){case "shorts":case "learning":case "learning_journey_watch":case "learning_journey_browse":case "your-courses":case "playables":case "report-history":var U=!0;break a;default:U=!1}else U=!1;U&&E.panelController.hidePanel({identifier:"PAai_companion"});
E.pageSubtype!==p&&(E.pageSubtype=p)}),this.addOnDisposeCallback(t))};
_.f_8=function(t,E){if(_.v7g(t))switch(E){case "watch":var p,U;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(p=_.ew())==null?void 0:(U=p.getVideoData())==null?void 0:U.video_id};case "search":var x,A,m;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(A=(x=t.pageContentExtractor)==null?void 0:PQt(x))!=null?A:[],entityId:(m=(new URLSearchParams(window.location.search)).get("search_query"))!=null?m:void 0};case "companion-canvas":var b,f;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(f=(b=
t.pageContentExtractor)==null?void 0:PQt(b))!=null?f:[]};default:var B,R;t={videoIds:(R=(B=t.pageContentExtractor)==null?void 0:PQt(B))!=null?R:[]};return _.r("enable_ai_companion_default_page_context")?t:void 0}};
_.v7g=function(t){return t.environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"};
KMC[aa]=[_.fS,_.mp,_.OB(TV7)];var ywo=_.l(function(t){return _.H("yt-common-mark-view-model",{class:"ytCommonMarkViewModelHost"},_.H(_.J7,{text:function(){return t.data().text||""},
wrapCodeBlocks:t.shouldWrapCodeBlock}))},"qh");_.SG9=_.l(function(t){return _.H("yt-ai-companion-attachment-view-model",{el:_.V9(_.EX(function(){return t.data().rendererContext})),
class:_.X5("ytAiCompanionAttachmentViewModelHost",t.className)},_.H("div",{class:"ytAiCompanionAttachmentViewModelTitleContainer"},_.H(_.w,{cond:function(){return t.data().title},
then:function(E){return _.H("h3",{class:"ytAiCompanionAttachmentViewModelTitleHeading",title:function(){return E().content}},_.H(_.d8,{text:E}))}}),_.H(_.w,{cond:function(){return _.b7(t.data().trailingTitleIcon)},
then:function(E){return _.H("div",{class:"ytAiCompanionAttachmentViewModelTitleTrailingIcon"},_.H(_.Q9,{data:E,alt:"",preserveWidth:!0,preserveHeight:!0}))}})),_.H(_.w,{cond:function(){return t.data().description},
then:function(E){return _.H("div",{class:"ytAiCompanionAttachmentViewModelDescription"},_.H(_.d8,{text:E}))}}),_.H(_.w,{cond:function(){return t.data().bottomItem},
then:function(E){return _.H("div",{class:"ytAiCompanionAttachmentViewModelBottomItem"},_.H(_.sY,{data:E},{tableViewModel:Dts}))}}))},"rh");_.cwK=_.l(function(t){return _.H("yt-channel-attribution-view-model",{class:_.X5("ytChannelAttributionViewModelHost",t.className)},_.H("div",{class:"ytChannelAttributionViewModelUpper"},_.H(_.sY,{data:function(){return t.data().avatar}},{decoratedAvatarViewModel:_.BM}),_.H("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.H(_.d8,{text:function(){return t.data().title}}))),_.H("div",{class:"ytChannelAttributionViewModelBottom"},_.H(_.d8,{text:function(){return t.data().subtitle}})))},"sh");var tJo=_.l(function(t){var E=_.M(_.Py(!1,void 0,"MFRKRb")),p=E.next().value,U=E.next().value,x=function(){return t.data().activeRenderer},A=function(){return t.data().inactiveRenderer};
return _.H("yt-channel-disclosure-view-model",{"on:mouseleave":_.aC(function(){U(!1)}),
"on:mouseover":_.aC(function(){U(!0)}),
class:_.X5("ytChannelDisclosureViewModelHost",t.className)},_.H(_.w,{cond:function(){return p()},
then:function(){return _.H(_.sY,{data:x},{channelAttributionViewModel:_.cwK})},
else:function(){return _.H(_.sY,{data:A},{decoratedAvatarViewModel:_.BM})}}))},"th");var EX7=null;var pXt={},UW7=(pXt.initialized={priority:10,callback:function(t){var E=_.X3();E.addProvider({provide:SyZ,useClass:xOd});E.addProvider({provide:_.UOd,useFactory:function(){return new cFp}});
E.addProvider({provide:uw,useValue:_.qO("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});E.addProvider({provide:dXb,useValue:5184E6});E.addProvider({provide:$X9,useValue:_.ty()});E.addProvider({provide:rWo,useClass:IrX});E.addProvider({provide:us,useClass:us});E.addProvider({provide:_.gG,useFactory:function(){return tkT.promise}});
E.addProvider({provide:_.p_Z,useFactory:function(){return _.E4X.promise}});
E.addProvider({provide:BqE,useValue:function(){var f;return((f=_.k1())==null?void 0:f.getPlayer())||null}});
var p={};E.addProvider((p.provide=_.mO,p.useFactory=function(f,B){return function(){return GTJ(f,B)}},p[aa]=[uw,
dXb],p));p={};E.addProvider((p.provide=_.Tp,p.useClass=nWe,p[aa]=[uw,dXb],p));p={};E.addProvider((p.provide=_.v5K,p.useClass=L98,p[aa]=[_.Tp],p));E.addProvider({provide:VZ,useFactory:_.QM});E.addProvider({provide:XY,useFactory:_.QM});E.addProvider({provide:e28,useFactory:_.QM});E.addProvider({provide:_.BqZ,useFactory:function(){var f;return((f=_.k1())==null?void 0:f.getPlayer())||null}});
E.addProvider({provide:Bit,useFactory:_.QM});E.addProvider({provide:_.fS,useFactory:_.QM});p={};E.addProvider((p.provide=HaG,p.useFactory=function(f){return f.dispatch.bind(f)},p[aa]=[_.fS],p));
E.addProvider({provide:$D,useValue:_.F1});E.addProvider({provide:Eal,useClass:vzY});E.addProvider({provide:LEt,useClass:sRg});E.addProvider({provide:$H,useClass:$H});E.addProvider({provide:og,useClass:og});E.addProvider({provide:La,useClass:La});E.addProvider({provide:WI,useClass:WI});E.addProvider({provide:EN,useClass:EN});E.addProvider({provide:l5,useClass:l5});E.addProvider({provide:kr,useClass:kr});E.addProvider({provide:myb,useValue:CJd});p={};E.addProvider((p.provide=bgL,p.useFactory=function(f){return f.watchEndpointMap||
{}},p[aa]=[myb],p));
p={};E.addProvider((p.provide=igl,p.useFactory=function(f){return f.reelWatchEndpointMap||{}},p[aa]=[myb],p));
E.addProvider({provide:_.Yt,useFactory:_.Pu});E.addProvider({provide:mU,useFactory:_.nF});p={};E.addProvider((p.provide=NBO,p.useFactory=function(f){return function(B){var R={automatedLogEventSource:5};R=R===void 0?{}:R;var V,Q,C=(Q=_.k((V=B.endpoint)==null?void 0:V.commandMetadata,_.hZ))==null?void 0:Q.rootVe;if(C){var d,I;if(V=B.previousCsn||((I=_.k((d=B.endpoint)==null?void 0:d.commandMetadata,kWT))==null?void 0:I.parentCsn)){var O=O===void 0?{}:O;if(V!==_.yL(O.layer)||C!==QLD(O.layer))dwO(V,O.cttAuthInfo,
O.layer||0),Rzi(V,O.layer||0),d=O.layer||0,_.ia(Vl$(d===void 0?0:d),C);R.parentCsn=V}B.endpoint&&V?$90(f,B.endpoint,R):_.PH(f,C,void 0,R);var a;((a=B.response)==null?0:a.trackingParams)&&f.graftServerVe(B.response.trackingParams);var F;((F=B.playerResponse)==null?0:F.trackingParams)&&f.graftServerVe(B.playerResponse.trackingParams);var L;((L=B.reelWatchSequenceResponse)==null?0:L.trackingParams)&&f.graftServerVe(B.reelWatchSequenceResponse.trackingParams)}}},p[aa]=[_.Yt],p));
p={};E.addProvider((p.provide=z2b,p.useClass=F7L,p[aa]=[$D,_.fS],p));p={};E.addProvider((p.provide=CX,p.useClass=CX,p[aa]=[_.gG,_.fS],p));p={};E.addProvider((p.provide=wf,p.useClass=wf,p[aa]=[XY,_.ei],p));E.addProvider({provide:_.oO8,useClass:MC5});p={};E.addProvider((p.provide=_.mp,p.useClass=K7L,p[aa]=[_.oO8,_.OB(_.q4)],p));E.addProvider({provide:_.Nb,useClass:Tgd});p={};E.addProvider((p.provide=Dr,p.useClass=Dr,p[aa]=[_.Nb,_.gG,_.PL,_.ei],p));E.addProvider({provide:_.bL,useClass:k_});E.addProvider({provide:_.NgC,
useClass:LWe});E.addProvider({provide:_.iL,useClass:jj});_.r("enable_ai_companion")&&(E.addProvider({provide:_.q4,useClass:SJK}),E.addProvider({provide:_.dDX,useClass:LKW}),E.addProvider({provide:TV7,useClass:scJ}),E.addProvider({provide:qB,useClass:qB}),E.addProvider({provide:iw,useClass:iw}),E.addProvider({provide:uDG,useValue:tJo}),E.addProvider({provide:_.Jqp,useValue:_.SG9}),E.addProvider({provide:Ius,useValue:ywo}));_.r("enable_ai_chat_controller")&&E.addProvider({provide:_.bw,useClass:KMC});
p={};E.addProvider((p.provide=_.xV,p.useClass=YjK,p[aa]=[_.xV],p));E.addProvider({provide:_.TA,useClass:zX7});E.addProvider({provide:jt,useClass:jt});E.addProvider({provide:TP,useClass:TP});E.addProvider({provide:IT,useClass:IT});p={};E.addProvider((p.provide=AO,p.useClass=AO,p[aa]=[_.ei,_.PL],p));E.addProvider({provide:zP,useClass:rf});p={};E.addProvider((p.provide=na,p.useClass=na,p[aa]=[_.bL,zP],p));p={};E.addProvider((p.provide=aT,p.useClass=aT,p[aa]=[_.bL],p));E.addProvider({provide:wD,useClass:wD});
E.addProvider({provide:Rt7,useClass:wxK});_.r("web_enable_feedback_endpoint_resolver_batch_2")&&(p={},E.addProvider((p.provide=QZ,p.useClass=QZ,p[aa]=[VZ],p)),p={},E.addProvider((p.provide=RT,p.useClass=RT,p[aa]=[Rt7],p)));p={};E.addProvider((p.provide=lw,p.useClass=lw,p[aa]=[_.iL,zP],p));p={};E.addProvider((p.provide=XC,p.useClass=XC,p[aa]=[_.iL],p));p={};E.addProvider((p.provide=GP,p.useClass=GP,p[aa]=[_.PL,_.mp],p));p={};E.addProvider((p.provide=FC,p.useClass=FC,p[aa]=[_.PL,_.Yt],p));E.addProvider({provide:wv,
useClass:wv});p={};E.addProvider((p.provide=Mb,p.useClass=Mb,p[aa]=[VZ],p));E.addProvider({provide:Oe,useClass:Oe});E.addProvider({provide:Zr,useClass:Zr});p={};E.addProvider((p.provide=hp,p.useClass=hp,p[aa]=[VZ],p));p={};E.addProvider((p.provide=ag,p.useClass=ag,p[aa]=[_.PL,VZ],p));p={};E.addProvider((p.provide=ey,p.useClass=ey,p[aa]=[VZ],p));p={};E.addProvider((p.provide=Fw,p.useClass=Fw,p[aa]=[VZ],p));p={};E.addProvider((p.provide=hO,p.useClass=hO,p[aa]=[_.mp],p));p={};E.addProvider((p.provide=
jy,p.useClass=jy,p[aa]=[_.Yt],p));p={};E.addProvider((p.provide=Ig,p.useClass=Ig,p[aa]=[HI],p));p={};E.addProvider((p.provide=gv,p.useClass=gv,p[aa]=[HI],p));E.addProvider({provide:dv,useClass:dv});E.addProvider({provide:up,useClass:up});E.addProvider({provide:CK,useClass:CK});p={};E.addProvider((p.provide=NB,p.useClass=NB,p[aa]=[_.mp,_.ei],p));E.addProvider({provide:dD,useClass:dD});p={};E.addProvider((p.provide=et,p.useClass=et,p[aa]=[_.PL,_.mp],p));E.addProvider({provide:gD,useClass:gD});p={};
E.addProvider((p.provide=Ap,p.useClass=Ap,p[aa]=[VZ,_.PL,_.xV],p));p={};E.addProvider((p.provide=pK,p.useClass=pK,p[aa]=[_.PL,_.ei],p));E.addProvider({provide:Q9X,useValue:Tet});E.addProvider({provide:gUZ,useValue:Oct});E.addProvider({provide:Ue,useClass:Ue});p={};E.addProvider((p.provide=Ee,p.useClass=Ee,p[aa]=[VZ],p));p={};E.addProvider((p.provide=YV,p.useClass=YV,p[aa]=[_.TA,_.ei],p));p={};E.addProvider((p.provide=Ca,p.useClass=Ca,p[aa]=[_.ei],p));p={};E.addProvider((p.provide=B4,p.useClass=B4,
p[aa]=[XY],p));E.addProvider({provide:EL4,useFactory:_.ql.getInstance});p={};E.addProvider((p.provide=JO,p.useClass=JO,p[aa]=[uw,EL4,_.ei],p));E.addProvider({provide:rD,useClass:rD});E.addProvider({provide:Yd,useClass:Yd});E.addProvider({provide:mT,useClass:mT});E.addProvider({provide:_.MB,useClass:_.MB});E.addProvider({provide:GY,useClass:GY});p={};E.addProvider((p.provide=v4,p.useClass=v4,p[aa]=[XY],p));p={};E.addProvider((p.provide=sd,p.useClass=sd,p[aa]=[_.ei],p));p={};E.addProvider((p.provide=
yZ,p.useClass=yZ,p[aa]=[_.ei],p));p={};E.addProvider((p.provide=St,p.useClass=St,p[aa]=[_.ei],p));_.r("web_enable_prefetching_videos_on_home")&&(E.addProvider({provide:BW,useClass:BW}),E.addProvider({provide:zU,useClass:zU}));p={};E.addProvider((p.provide=lp,p.useClass=lp,p[aa]=[_.ei],p));E.addProvider({provide:H4,useClass:H4});p={};E.addProvider((p.provide=Rg,p.useClass=Rg,p[aa]=[_.PL,_.ei],p));p={};E.addProvider((p.provide=fa,p.useClass=fa,p[aa]=[_.ei],p));p={};E.addProvider((p.provide=li,p.useClass=
li,p[aa]=[_.PL,_.ei],p));E.addProvider({provide:Fg,useClass:Fg});E.addProvider({provide:ej,useClass:ej});E.addProvider({provide:W4,useClass:W4});p={};E.addProvider((p.provide=oT,p.useClass=oT,p[aa]=[XY,_.ei],p));E.addProvider({provide:$d,useClass:$d});p={};E.addProvider((p.provide=LK,p.useClass=LK,p[aa]=[XY,_.ei,_.PL],p));p={};E.addProvider((p.provide=PI,p.useClass=PI,p[aa]=[_.ei],p));p={};E.addProvider((p.provide=se,p.useClass=se,p[aa]=[_.ei,_.PL],p));p={};E.addProvider((p.provide=BI,p.useClass=
BI,p[aa]=[_.ei,_.PL],p));p={};E.addProvider((p.provide=tp,p.useClass=tp,p[aa]=[_.gG],p));p={};E.addProvider((p.provide=c4,p.useClass=c4,p[aa]=[_.gG],p));p={};E.addProvider((p.provide=Ka,p.useClass=Ka,p[aa]=[_.gG],p));E.addProvider({provide:qb,useClass:qb});E.addProvider({provide:fK,useClass:fK});E.addProvider({provide:Xw,useClass:Xw});E.addProvider({provide:Vh,useClass:Vh});E.addProvider({provide:ip,useClass:ip});E.addProvider({provide:Zj,useClass:Zj});E.addProvider({provide:bp,useClass:bp});E.addProvider({provide:_.$V,
useClass:ui});E.addProvider({provide:ay,useFactory:function(){return _.d1.getInstance()}});
E.addProvider({provide:h2o,useFactory:vJ0});E.addProvider({provide:HI,useFactory:function(){return _.mP.getInstance()}});
E.addProvider({provide:Lvo,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});p={};E.addProvider((p.provide=_.RX,p.useClass=_.RX,p[aa]=[_.gG,_.ei,_.Yt,h2o,HI,ay,Lvo,$D],p));E.addProvider({provide:_.ve,useClass:MPr});E.addProvider({provide:_.JC7,useClass:uWt});p={};E.addProvider((p.provide=Od,p.useClass=Od,p[aa]=[_.JC7],p));p={};E.addProvider((p.provide=_.V6,p.useFactory=function(f){return f.upliftCompletionResolver.promise},p[aa]=[z2b],p));
p=_.HC("IS_SHELL_LOAD")?"aa":"eocs";var U=_.HC("IS_SHELL_LOAD")?3:2;_.ut().parkOrScheduleJob(function(){G$J()},U,p);
_.ut().parkOrScheduleJob(function(){_.X3().resolve(CX).start()},2,"eocs");
_.ut().parkOrScheduleJob(function(){a8e()},2,"eocs");
_.ut().parkOrScheduleJob(function(){_.X3().resolve(wf).start()},2,"eocs");
_.r("kevlar_debug_data_app_registration_ks")||swK();E.addProvider({provide:_.Ly,useValue:new PF7(t.root)});E.addProvider({provide:r1,useValue:new qXJ});E.addProvider({provide:_.SS7,useValue:new vI5(t.root)});E.addProvider({provide:_.Lf,useValue:new yGt});E.addProvider({provide:_.W5,useClass:E$});E.addProvider({provide:Atb,useClass:df});_.r("kevlar_network_sli_killswitch")||E.addProvider({provide:qBd,useValue:bVf});E.addProvider({provide:pC5,useFactory:xg8});p={};E.addProvider((p.provide=S8L,p.useFactory=
li8,p[aa]=[_.V6,VZ,_.mO],p));p={};E.addProvider((p.provide=yC7,p.useClass=TY,p[aa]=[S8L],p));E.addProvider({provide:aPd,useClass:Zgb});E.addProvider({provide:WiK,useClass:KiJ});p=[].concat(_.KB(MXJ));p.push(_.x1);p.push(pMG);_.r("enable_share_panel_navigation_logging_fix_on_web")&&p.push(_.wgo);E.addProvider({provide:Y30,useValue:p});E.addProvider({provide:xKT,useClass:osd});E.addProvider({provide:RZ7,useClass:HRt});p={};E.addProvider((p.provide=t$X,p.useClass=bB8,p[aa]=[XY],p));_.ir.addLowPriorityJob(function(){H6O()});
p={};E.addProvider((p.provide=J7f,p.useFactory=function(f){return function(B){var R,V=(R=_.k(B.commandMetadata,_.hZ))==null?void 0:R.url;if(!V)throw new _.cC("No URL for PBJ Command",B);V=$_j(V,{pbj:"1"});R=Bm_(V,{})||{};R=Object.assign({},R,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.qO("STS").toString()});B=_.T3({command:JSON.stringify(B),session_token:_.qO("XSRF_TOKEN")});return f.fetch(V,{method:"POST",headers:R,body:B})}},p[aa]=[RZ7],p));
E.addProvider({provide:mOl,useFactory:function(){var f={};return f.CSI=YzK(),f.ECATCHER=AKE(),f}});
E.addProvider({provide:o5i,useClass:bRC});p=[];p.push(E.resolve(WiK));U={};U=(U.client_location=_.ql.getInstance(),U.consistency=_.qLi(),U.entities=E.resolve(LEt),U.response_received_commands=E.resolve(xKT),U.store=E.resolve(_.v5K),U.tokens=E.resolve(WiK),U.service_params=E.resolve(o5i),U);if(_.r("web_shorts_prefetch_service_enabled")){var x=new PNg(E.resolve(_.Tp));U.shorts_prefetch=x}U.adblock_detection=E.resolve(t$X);_.r("web_enable_chunk_prediction")&&(E.addProvider({provide:Xyg,useClass:ZNg}),
E.addProvider({provide:Yi0,useClass:naJ}),U.mss=E.resolve(Yi0));E.addProvider({provide:_.k7,useClass:_.k7});x=E.resolve(myb);var A=[];_.r("PremiumClientSharedConfig__enable_att_context_processor")&&(E.addProvider({provide:Io5,useClass:dEe}),A.push(E.resolve(Io5)));if(_.r("owl_pl_await")){var m={};E.addProvider((m.provide=KWg,m.useFactory=function(f){return new WWt(f)},m[aa]=[_.k7],m));
A.push(E.resolve(KWg))}Zx0(x,E.resolve(RZ7),E.resolve(Eal),U,E.resolve(_.Tp),p,A,E.resolve(yC7),E.resolve(aPd));E.addProvider({provide:_.PL,useValue:_.iA.instance});_.r("start_client_gcf")&&E.addProvider({provide:pW,useValue:Bm0()});E.addProvider({provide:NV9,useFactory:function(){return new NV9(_.X3().resolve(_.k7),_.mP.getInstance())}});
_.ut().parkOrScheduleJob(function(){DQb()},1,"eocs");
p={};E.addProvider((p.provide=Q6,p.useClass=Q6,p[aa]=[_.mO,_.PL],p));E.addProvider({provide:_.fpd,useFactory:_.aX.getInstance});_.ut().parkOrScheduleJob(function(){_.X3().resolve(Q6).refresh()},0,"eocs");
E.addProvider({provide:_.yc,useClass:Vdl});_.r("kevlar_signal_collection_killswitch")||(p={},E.addProvider((p.provide=jcd,p.useClass=jcd,p[aa]=[uw,mU],p)),_.ut().parkOrScheduleJob(function(){_.X3().resolve(jcd).record()},1,"eocs"));
_.r("web_debug_handler_registration_killswitch")||_.ut().parkOrScheduleJob(function(){NrO("DOWNLOAD_PES",K2$);_.r("offline_client_state_export_ks")||NrO("OFFLINE_CLIENT_STATE",oJ$)},0,"eocs");
_.r("kevlar_prevent_polymer_dynamic_font_load")&&_.ut().parkOrScheduleJob(function(){var f=[_.JC(J6t),_.JC(I3t)];f=_.M(f);for(var B=f.next();!B.done;B=f.next()){B=B.value;var R=document.createElement("link");_.QU(R,B,"stylesheet");document.head.appendChild(R)}},1,"eocs");
p=t.injector.resolve(_.PL);_.J95.instance=new _.J95(p);uVE(RXt(new uQ7(p)));p={};t.injector.addProvider((p.provide=hH,p.useFactory=function(f){(f=f==null?void 0:f.getCurrentPage())?f=f.visibilityObserver:(EX7||(EX7=wO8()),f=EX7);return f},p[aa]=[_.OB(_.jw)],p.skipCache=!0,p));
E.addProvider({provide:_.bf,useClass:TU});E.addProvider({provide:ts,useClass:VPW});t.injector.addProvider({provide:HK3,useValue:L6b});E.addProvider({provide:EUr,useValue:mEC});E.addProvider({provide:b9m,useValue:Nbt});E.addProvider({provide:_.Ld,useValue:SPj});t=E.addProvider;VCe||(VCe=new Rgg);t.call(E,{provide:_.Jz,useValue:VCe});E.addProvider({provide:_.q6,useValue:_.qO("HTML_DIR")==="rtl"?"rtl":"ltr"});E.addProvider({provide:c9b,useClass:iql});E.addProvider({provide:_.lR,useClass:IX});_.X3().addProvider({provide:EsK,
useValue:_.r("enable_web_delhi_icons")?o77.concat($05):Txl.concat(WMK)});E.addProvider({provide:_.Zd,useClass:_.Zd});E.addProvider({provide:_.k3t,useValue:new r6C});E.addProvider({provide:Loo,useClass:N3t});E.addProvider({provide:Qh,useClass:Qh});E.addProvider({provide:rv,useClass:rv});t={};E.addProvider((t.provide=Dj,t.useClass=Dj,t[aa]=[_.PL,_.mp],t));E.addProvider({provide:nK,useClass:nK});E.addProvider({provide:YS5,useClass:bwt});E.addProvider({provide:Jp,useClass:Jp});E.addProvider({provide:C4r,
useValue:xHo});E.addProvider({provide:_.O1,useClass:DE8});_.r("enable_payments_purchase_manager")&&E.addProvider({provide:XTe,useClass:gkb});E.addProvider({provide:Bgt,useFactory:function(){return function(f){return _.u38(f)}}});
E.addProvider({provide:_.shK,useClass:Lig});t={};E.addProvider((t.provide=zY,t.useClass=zY,t[aa]=[_.shK],t));E.addProvider({provide:kV,useClass:kV});E.addProvider({provide:cDC,useValue:akt});E.addProvider({provide:luT,useValue:_.JtJ});E.addProvider({provide:U58,useClass:m$o});E.addProvider({provide:CKg,useValue:JFK});t={};E.addProvider((t.provide=jm7,t.useClass=rtg,t[aa]=[CKg],t));t={};E.addProvider((t.provide=_.pU,t.useClass=ZMJ,t[aa]=[jm7],t));t={};E.addProvider((t.provide=_.Xg,t.useClass=ON,t[aa]=
[_.fS,_.W5],t));if(_.r("web_explore_hub_on_hover")||_.r("web_client_explore_hub_on_hover"))t={},E.addProvider((t.provide=kd,t.useClass=kd,t[aa]=[_.PL,ay],t));if(_.r("web_enable_renderer_logger")){var b=new sFj;bzO(function(){b.abort()});
E.addProvider({provide:fEJ,useValue:new k$5(b.signal)})}E.addProvider({provide:BCT,useValue:bXO});E.addProvider({provide:$5E,useClass:Tie});_.r("web_use_flow_state_manager")&&(E.addProvider({provide:_.v2,useClass:P0l}),t={},E.addProvider((t.provide=y2,t.useClass=y2,t[aa]=[_.v2],t)),t={},E.addProvider((t.provide=S_,t.useClass=S_,t[aa]=[_.fS,_.v2],t)),t={},E.addProvider((t.provide=c2,t.useClass=c2,t[aa]=[_.fS,_.v2,_.ei],t)),t={},E.addProvider((t.provide=tO,t.useClass=tO,t[aa]=[_.PL,_.ei],t)),t={},E.addProvider((t.provide=
Ed,t.useClass=Ed,t[aa]=[_.v2,_.ei],t)))}},pXt);var xWL={},AHo=(xWL.initialized={priority:10,callback:function(){if(!iRK){jCO();mgO("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.D3(_.GF(mgO,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.r("log_heartbeat_with_lifecycles")){var t={};X_.instance||(X_.instance=new X_);X_.instance.install((t.document_visible={callback:beE,priority:10},t.document_hidden={callback:beE,priority:10},t))}else _.OG(document,"visibilitychange",beE);iRK=!0}(t=_.yL())&&t!=="UNDEFINED_CSN"&&BaK(t)}},xWL);var Y_t={},MJL=(Y_t.initialized={callback:function(t){var E=_.h8(232091),p=t.injector.resolve(_.Yt);_.Tw(p,E);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?L48()&&_.WH(p,E):(t=t.injector.resolve(Bgt)("refresh_detector"))&&(t.get("first_tab_load")?_.WH(p,E):t.set("first_tab_load","1"))}},Y_t);var mWJ={},bWK=(mWJ.initialized={priority:0,callback:function(){var t=new ZM0,E="other";_.Gm?E="chrome":_.lf?E="firefox":_.Bk?E="safari":g7&&(E="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(p){t.increment(_.vC(),p,E)}).catch(function(){t.increment(_.vC(),!1,E)}):t.increment(_.vC(),!1,E)}},mWJ);var iWo={},q_e=(iWo.rendering={priority:8,callback:P6J},iWo);var HWl={},fDC=(HWl.rendering={priority:10,callback:M$p},HWl.rendered={callback:ADs},HWl),B1e={},wXb=(B1e.rendering={callback:M$p},B1e.rendered={callback:ADs},B1e);var RLl=!1,VJL={},Qz9=(VJL.initialized={priority:10,callback:function(){RLl||(nxK({didPatch:function(t){t.el&&jMO(t.el,t.props)},
didUnmount:function(t){QM$(t.el)}}),RLl=!0)}},VJL);var CVK=/^\/shorts\/?$/;_.ia("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:{}}}}}}});_.r("kevlar_use_common_module_manager_ks")?(_.CJD(new mKo),pSJ()):bOs();
(function(){var t=document.querySelector("ytd-app");if(!t)throw Error("$j");t=new hz({root:t,injector:_.X3()});t.install(AHo);var E={};t.install((E.initialized={priority:10,callback:U9J},E));_.r("wp_lat_b")&&(E={},t.install((E.initialized={priority:10,callback:function(){EoK()}},E)));
E={};t.install((E.rendered={priority:0,callback:tSL},E));E={};t.install((E.rendered={priority:0,callback:function(){_.ir.addLowPriorityJob(function(){_.q8t>1&&(WB_(),SgL())},4E4)}},E));
t.install(c6K);t.install(MJL);t.install(Qz9);h$J();t.install(mRt);t.install(WY7);t.install(y6K);t.install(f8t);t.install(Qc5);t.install(YyL);t.install(UW7);t.install(KY8);t.install(bWK);if(!_.HC("IS_SHELL_LOAD")||_.r("kevlar_fetch_initial_data_promise_client")||_.r("sw_nav_preload_pbj")){var p=_.LR(window.location.href);E=p&&p==="/watch";p=p&&p.match(CVK);E?t.install(wXb):p?t.install(q_e):t.install(fDC)}else t.install(Pa8);t.install(E6d);_.r("web_enable_prefetching_videos_on_home")&&t.install(HMl);
_.r("start_client_gcf")&&t.install(MiL);t.install(mQo);(new OM0).increment("INSTALLED");t.install(iM8);t.install(DOL);t.transition("initialized");Wj8();l60()})();
_.X$=[[["I2JtaDhocDh6M28yZWtpbmQ=","I3B6bDlweWxxYTQ4MHZhbHVl"],"I3E0MDQ3OXZ5Z3FibEFEX1BMQUNFTUVOVF9LSU5EX1NUQVJU"]];_.O5=["I3J6amJwNWFybDdxb2dsb2JhbENhbGxiYWNrcw==","I3VqdmU2ZWxxMnVtaW9uQWJub3JtYWxpdHlEZXRlY3RlZA==","I3ZobnI3Z3VsbG8ydG9uQWRTa2lw","I3JmZDZ3NWg0enQyZHJhd19wbGF5ZXJfcmVzcG9uc2U=","IzIzMGw5aHZsb3FhbGFkU2xvdHM="];_.Xn="I3J6amJwNWFybDdxb2dsb2JhbENhbGxiYWNrcw== I3VqdmU2ZWxxMnVtaW9uQWJub3JtYWxpdHlEZXRlY3RlZA== I3ZobnI3Z3VsbG8ydG9uQWRTa2lw I3JmZDZ3NWg0enQyZHJhd19wbGF5ZXJfcmVzcG9uc2U= I2I0OWw0Z3Zsam96endlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcw== ZiNiZGp6amdkbzZqNGFiX3NhX2U= IzIzMGw5aHZsb3FhbGFkU2xvdHM=".split(" ");
_._ModuleManager_initialize=function(t,E){if(!_.AW){if(!_.YO)return;_.CJD(_.YO())}_.AW.setAllModuleInfoString(t,E)};
_._ModuleManager_initialize('kevlar_base_module/sy1/kevlar_main_module/NSzT5:1',['sy1','NSzT5','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
var ID7;_.WW=function(t){var E=document.createElement("link");_.QU(E,t,"stylesheet");document.head.appendChild(E)};
_.$_=function(t,E){var p,U;return _.q(function(x){p=document.createElement("div");p.id=t.id;t.className&&(p.className=t.className);U=t.element;if(!U)throw Error("ak");if(t.location==="prepend")U.prepend(p);else if(t.location==="appendChild")U.appendChild(p);else if(t.location==="after")U.after(p);else throw Error("bk");return x.return(_.UB(p,E,"vh"))})};
_.KX=function(t){var E;return _.q(function(p){(E=document.getElementById(t))&&E.remove();_.Do(p)})};
_.vW=function(t,E){var p=document.querySelector(t);p?E(p):setTimeout(function(){_.vW(t,E)},1E3)};
_.gXg=function(t,E,p){var U;_.q(function(x){if(x.nextAddress==1)return(U=document.getElementById(t))?x.jumpTo(2):x.yield(ID7(t,E,p),2);if(U=document.getElementById(t))U.style.display="block";_.Do(x)})};
ID7=function(t,E,p){return _.q(function(U){return U.return(new Promise(function(x){_.vW("div #panels",function(A){_.$_({element:A,location:"appendChild",id:t,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+p},E);x()})}))})};_.y6=_.l(function(t){var E=t.text;var p=t.onClick;var U=t.color;var x=t.backgroundColor;var A=t.buttonSize;var m=t.disabled;var b=t.iconName;var f=t.iconSize;var B=t.className;var R=t.iconClassName;t=t.ariaLabel;var V=_.aC(function(C){p(C)}),Q={};
return _.H("button",{class:_.X5("ytpStandardButtonsHost",(Q.ytpStandardButtonsLarge=function(){return(A==null?void 0:A())==="large"},Q),B),
"on:click":V,style:_.zO({color:U,"background-color":x}),disabled:m,"aria-label":t},_.H(_.w,{cond:b,then:function(){return _.H(_.lz,{className:_.X5("ytpStandardButtonsIconContainer",R),icon:b,size:f})}}),E)},"uh");_.Sj=_.l(function(t){var E,p,U={};return _.H("div",{class:_.X5("ytprototypesEngagementPanelComponentHost",(U.ytprototypesEngagementPanelComponentHostMweb=t.isMweb,U),t.className),id:t.id},_.H("div",{class:_.X5("ytprototypesEngagementPanelComponentEngagementPanelHeader",t.headerClassName)},_.H("div",null,t.header()),_.H("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.H("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(E=t.HeaderButton)==null?void 0:E.call(t)),
_.H(_.y6,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Close",onClick:function(){var x;(x=t.onHide)==null||x.call(t);var A;if((A=t.preventDefault)==null||!A.call(t))if(x=t.id(),x=document.getElementById(x))x.style.display="none"}}))),_.H("div",{class:_.X5("ytprototypesEngagementPanelComponentEngagementPanelContent",t.contentClassName),
style:function(){var x,A;return"height: "+(((x=t.height)==null?0:x.call(t))||((A=t.isMweb)==null?0:A.call(t))?"100%":"800px")+";"}},t.content()),_.H("div",null,(p=t.Footer)==null?void 0:p.call(t)))},"wh");
}catch(e){_._DumpException(e)}
try{
_.AW&&_.AW.beforeLoadModuleCode("NSzT5");
var Gh2=function(){var t;return _.q(function(E){if(E.nextAddress==1)return E.yield(_.X3().resolve(_.gG),2);(t=E.yieldResult)&&t.pauseVideo();_.Do(E)})};var n8I=_.CG(["https://portraits.google.com"]),NnG=_.CG(["https://portraits.google.com/gallery?ytChannelId=","&mode=embed"]),Dd6=_.CG(["https://portraits.google.com/gallery?ytChannelId=","&mode=linkout"]),soC=_.JC(n8I),LdF=_.l(function(t){function E(V){var Q;if(V=(Q=V.detail)==null?void 0:Q.endpoint){Q=_.k(V,_.lC);var C;Q&&((C=Q.browseId)==null?0:C.startsWith("UC"))&&Q.browseId!==x()&&(_.KX("creator-chatbots-panel-persistent"),B.removeEventListener("yt-navigate-start",E))}}
var p=t.usePlayerHeight;var U=t.isPersistentPanel;var x=t.creatorChannelId;var A=_.D4(_.zEt),m=_.V9(function(V){var Q=x();Q=_.JC(NnG,Q);_.mE(V,1,Q)}),b=function(){var V,Q,C;
return _.q(function(d){return d.nextAddress==1?d.yield(_.X3().resolve(_.gG),2):(V=d.yieldResult)?d.return({video_id:(C=(Q=V.getVideoData())==null?void 0:Q.video_id)!=null?C:"",timestamp_sec:V.getCurrentTime().toString()}):d.return({})})};
_.Xv("message",function(V){var Q,C,d,I,O,a,F;return _.q(function(L){if(L.nextAddress==1){if(V.origin!==soC.toString())return console.warn("Received message from untrusted origin:",V.origin),L.return();Q=V.data;if(typeof Q!=="object"||Q===null||!Q.action)return L.return();if(Q.action==="pause")return L.yield(Gh2(),0);if(Q.action!=="getYouTubeContext")return L.jumpTo(0);if(((C=U)==null?0:C())&&V.source)return(d=V.source)==null||d.postMessage(JSON.stringify({youTubeContext:{}}),{targetOrigin:V.origin}),
L.jumpTo(0);if(!V.source)return L.jumpTo(0);I=V.source;O=I.postMessage;a=JSON;F=a.stringify;return L.yield(b(),8)}O.call(I,F.call(a,{youTubeContext:L.yieldResult}),{targetOrigin:V.origin});return L.jumpTo(0)})});
var f=function(){var V,Q;(V=m.value)==null||(Q=V.contentWindow)==null||Q.postMessage("ep_closed",soC.toString())};
_.Xv("yt-page-type-changed",function(){if(U==null?0:U()){var V;((V=_.X3().resolve(_.jw).getCurrentPage())==null?void 0:V.pageSubtype)!=="channels"&&(V=document.getElementById("creator-chatbots-panel-persistent"))&&(V.style.display="none")}});
var B=_.X3().resolve(_.W5),R;(R=B)==null||R.addEventListener("yt-navigate-start",E);_.xa(function(){var V=(U==null?0:U())?"creator-chatbots-panel-persistent":"creator-chatbots-panel",Q=document.getElementById(V);if(Q){var C=new MutationObserver(function(d){d.forEach(function(I){I.type==="attributes"&&I.attributeName==="style"&&Q.style.display==="none"&&f()})});
C.observe(Q,{attributes:!0});_.iK(function(){C.disconnect()})}});
_.iK(function(){var V;(V=B)==null||V.removeEventListener("yt-navigate-start",E)});
t={};return _.H("div",{class:_.X5("ytprotoCreatorChatbotsAppHost",(t.ytprotoCreatorChatbotsAppHostSingleColumn=function(){return A()},t)),
style:_.zO({height:function(){return(p==null?0:p())?"var(--ytd-watch-flexy-panel-max-height)":"100%"},
"max-height":function(){return(U==null?0:U())?"800px":void 0}})},_.H(_.Sj,{id:function(){return(U==null?0:U())?"creator-chatbots-panel-persistent":"creator-chatbots-panel"},
preventDefault:function(){return!(U==null?0:U())},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:function(){U!=null&&U()||(f(),_.KX("creator-chatbots-panel"))},
header:function(){return _.H("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.H("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.H(_.CZ,{data:{text:"AI experiment",type:0,accessibilityText:"AI experiment"}}))},
HeaderButton:function(){return _.H(_.y6,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Open in new tab",onClick:function(){var V=_.vw("https://portraits.google.com/gallery?ytChannelId="+x());V&&_.b0(window,V,"_blank");f()}})},
content:function(){return _.H("iframe",{el:m,class:"ytprotoCreatorChatbotsAppLabsIframe",allow:"microphone; clipboard-read; clipboard-write self "+soC.toString()})}}))},"Lo"),PRC=_.l(function(t){var E=t.creatorChannelId;
var p=_.D4(_.zEt),U=_.V9(function(A){var m=E();m=_.JC(Dd6,m);_.mE(A,1,m)}),x=_.L4(_.Pu(),{veType:281629});
t={};return _.H("div",{class:_.X5("ytprotoCreatorChatbotsAppHost",(t.ytprotoCreatorChatbotsAppHostSingleColumn=function(){return p()},t)),
style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.H(_.Sj,{id:"creator-chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",header:function(){return _.H("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.H("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.H(_.CZ,{data:{text:"AI experiment",
type:0}}))},
content:function(){return _.H("iframe",{el:U,class:"ytprotoCreatorChatbotsAppLabsIframe"})},
Footer:function(){return _.H("div",{class:"ytprotoCreatorChatbotsAppPanelFooter"},_.H(_.y6,{iconName:"OPEN_IN_NEW",text:"Chat now",buttonSize:"large",backgroundColor:"#1E6350",iconSize:24,className:"ytprotoCreatorChatbotsAppChatNowButton",iconClassName:"ytprotoCreatorChatbotsAppLinkoutIcon",onClick:function(){var A=_.vw("https://portraits.google.com/gallery?ytChannelId="+E());A&&_.b0(window,A,"_blank");Gh2();x&&_.bA(_.Pu(),{visualElement:x})},
"client-ve-type":281629}),_.H("div",null,"This will take you to Google Portraits"))}}))},"Mo");var Tn2,o8F;Tn2=_.CG(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);o8F=_.JC(Tn2);_.zN5=function(t){t=t===void 0?"":t;_.KX("creator-chatbots-panel");_.WW(o8F);_.vW("ytd-watch-metadata #top-level-buttons-computed",function(){document.getElementById("creator-chatbots-panel")||_.gXg("creator-chatbots-panel",function(){return _.H(LdF,{usePlayerHeight:!0,creatorChannelId:t})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
_.lQ7=function(t){t=t===void 0?"":t;_.KX("creator-chatbots-panel");_.vW("ytd-watch-metadata #top-level-buttons-computed",function(){_.gXg("creator-chatbots-panel",function(){return _.H(PRC,{creatorChannelId:t})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
_.URK=function(t,E,p){t=t===void 0?"":t;E=E===void 0?!1:E;p=p===void 0?"CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_UNKNOWN":p;var U,x;return _.q(function(A){if(p==="CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_WATCH_PAGE"){if(U=document.getElementById("creator-chatbots-panel"))U.style.display="block";return A.jumpTo(0)}x=document.getElementById("creator-chatbots-panel-persistent");return!E||x?(!E&&x&&x.style.display==="none"&&(x.style.display="block"),A.jumpTo(0)):A.yield(new Promise(function(m){_.vW("ytd-app",
function(b){_.$_({element:b,location:"appendChild",id:"creator-chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.H(LdF,{isPersistentPanel:!0,creatorChannelId:t})});
m()})}),0)})};
_.AW&&_.AW.JSC$11332_setLoaded();
}catch(e){_._DumpException(e)}
try{
_.AW&&_.AW.beforeLoadModuleCode("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 ZWo,cW,OWl,XX7,hLK,aDg,eL7,FLg,zLK,lD8,GQ5,nXt,N15,t_,DW5,szo,LLe,E3,PVC,T1K,oX7,WLt,$W9,KLK,vXJ,yHt,S_K,cHJ,tfL,Ene,UeJ,xet,YRC,MfL,bo7,iob,qRt,fM9,BkC,w6l,Rft,p8,QEC,U3,CnL,xG,jEl,de8,uEC,JAC,IMe,Zo7,Oot,aMg,FQ5,hft,AAo,zfd,lMg,Gxl,MI,m1,nn9,Nko,sEK,LQe,TkC,ont,WQ9,$eg,KQe,vnb,yA9,SRl,bT,cAg,Exd,pVb,UGt,xGJ,Aol,MQC,mGK,b_t,i_5,fsC,BJl,VQK,Qie,jig,rot,dGl,iT,uxt,Ist,gxl,Z_t,XV9,asK,eJ7,FVg,zJ5,lsl,GZ8,nxL,NJd,DGo,sit,LV7,PHJ,TJ5,ox7,WVt,$G9,KVJ,Smb,coK,tR5,ETJ,pDJ,U_8,x_t,AZK,MRl,m_d,bFJ,iFg,
qTo,HFK,fU5,BuJ,wDL,f8,RB5,VRJ,QK8,COJ,jK9,rZ7,Bz,kFC,d_b,uJt,JZt,IUC,gTt,ZFl,OFt,XDL,hBo,aUb,eBl,Ft7,wr,zBl,lUt,GFt,nTC,Nut,D_C,sKd,LtC,POl,Tu9,oTJ,Wtt,$_b,Kt8,vTK,yZ7,STt,cZo,Ehb,xc5,Ajb,YFg,M15,mct,bbK,ibg,qFL,Hbo,fBg,BmJ,wAL,Rqe,Vw,Qw,Qpg,CUe,jpd,rjJ,kV7,dcl,u1t,Jje,IBL,XAb,Nml,PUd,Tmt,vh5,SF9,KuJ,WuK,Afo,mJ5,BN5,oh5,ift,Y5K,yjJ,RFb,CCb,k2C,j4K,rf8,dJg,gzb,Jf5,ZfC,Ofl,IKe,u$t,XLo,kG,dr,lKt,uT,G29,NNC,DJC,s4l,J_,LDK,PCe,TNt,yfl,S5e,Iw,gr,tU7,ERo,ZL,Ult,xlb,O3,YUJ,Xl,h_,aw,b08,mlL,i05,qU8,eX,H0d,
fNe,Fl,r28,z_,kIl,dlK,uMK,lT,X3o,INo,O0d,h9e,gR5,e9l,Z0C,lN8,Fe8,z97,GIt,Nzt,nRl,Pct,$lJ,DL,s3,oRl,vRC,We9,Ket,Pz,ow,Wz,$G,Qob,mdC,rXt,kho,ddo,uRt,Iw8,Udt,xd7,yw,YlC,K8,vz,M5L,JXo,CRd,AX8,cz,n8e,Ddo,so5,Nnd,FdK,PR5,Wdd,awo,XuJ,hvt,v8K,evl,pn,o88,zve,TnL,GhL,O4t,lwK,Slb,Meg,mAo,byK,iyL,qnd,Hyg,B4g,mN,RUd,VeC,CzK,jC7,rJ5,kOL,dA7,u5l,JJ9,I4o,g2J,bM,Zyo,OyK,XsL,hUL,a4J,N47,iM,n2C,FhL,GO5,l4J,zU7,eUg,DA9,sC7,Lhl,Pzo,q5,T4e,o2J,v2t,fn,$Al,wq,Hb,Bb,Khe,WhK,yJo,SnJ,cJK,twb,E1J,p98,xnJ,A8g,YYt,Mw7,mn7,bdJ,
idl,qYo,Hd8,BGb,w9J,RDJ,Qn7,jnt,kEd,dno,u0l,J8J,g19,Zdt,Od9,X9g,hD9,aqe,eD5,zDK,n1K,Dnb,L8e,NGC,lql,GEe,W8t,o1J,PAb,$n5,TG7,K8C,tYd,c8o,y8C,SYC,RB,EjK,U6t,x6C,Ael,i$o,qXo,H$7,fVb,BXl,wYK,Rul,VY8,QFC,C7b,jFb,reo,kdg,d6t,ute,Je9,IVC,gj9,Z$d,O$L,XY7,huC,eue,FHC,zu8,lVC,GdK,nj9,NX7,D68,sFb,LHt,ojC,$67,vjC,yed,SXC,ce5,P7C,TXb,pSo,UMC,xMg,ANt,YQJ,Mct,mMd,brb,qQJ,irg,f2J,BIJ,RQg,Vc9,CmL,j7J,j6,uY8,JN8,gut,Zro,XS7,Or8,eQJ,hQ8,a2e,FFL,zQo,l2J,Gsg,nu9,NIJ,DMt,s7t,LFL,Pmg,TI7,oue,$M5,WFo,KFt,SQb,cN5,thb,rq,
EZJ,pn8,Um8,xme,AyK,Yag,Mht,mmg,bGt,iGJ,qag,f1o,BWJ,wne,R5J,Cf9,ryt,kmJ,uI7,dm7,JyL,I1d,gZt,ZGK,Xnt,h5J,a1g,e5t,Fb5,z5e,l1e,GmJ,nZ7,NW7,Dmt,TWe,oZ7,LbC,Pfe,se9,Wbb,vZb,$m9,KbC,cyK,yy8,Sab,tM7,EC8,pql,Uqd,AhJ,Ytt,MMt,b15,i1d,H1t,B95,Rrd,Qxb,jxo,kHt,u2K,IyC,O1d,hre,ayK,er9,zr7,FAC,GHl,nCC,N9t,Dqt,dq,sxt,LAK,P39,pft,xh5,AIb,buJ,IB,iu5,qkt,Hu5,BFl,fS9,wfe,Rao,VIJ,Qqb,Ck8,ghK,jqK,rI9,kG7,VM8,dhK,u9g,Jo9,JI5,ISe,gM8,Zul,Out,Xfo,NMg,DC7,sre,LCC,PBo;
ZWo=function(){switch(_.by8()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
cW=function(t){if(!t)return"browse";var E=t.page,p=t.url,U,x,A,m=(U=t.response)==null?void 0:(x=U.responseContext)==null?void 0:(A=x.webResponseContextExtensionData)==null?void 0:A.pageTheme;if(m)E=m.toLowerCase().replace(/_/g,"-");else if(E!=="watch"&&E!=="learning_journey_watch"){var b,f;if((E==="browse"||E==="settings")&&((b=t.response)==null?0:(f=b.sidebar)==null?0:f.settingsSidebarRenderer))E="WEB_PAGE_TYPE_SETTINGS";else{var B,R;E==="browse"&&((B=t.response)==null?0:(R=B.metadata)==null?0:R.channelMetadataRenderer)?
E="channel":p&&(E=_.A0_(p)||E)}}return E};
OWl=function(t){t=t.command;var E=_.k(t,_.DK);return{command:t,reelPlayerOverlayRenderer:_.k(E==null?void 0:E.overlay,_.xYX),thumbnail:E==null?void 0:E.thumbnail,videoId:E.videoId}};
XX7=function(t){t=t.command;var E=_.k(t,_.fz);return{command:t,reelNonVideoContentRenderer:_.k(E==null?void 0:E.renderer,_.wc)}};
hLK=function(t){return t.entries?t.entries.map(function(E){return _.k(E==null?void 0:E.command,_.DK)?OWl(E):XX7(E)}):[]};
aDg=function(t){return t.prevEntries?t.prevEntries.map(function(E){return _.k(E==null?void 0:E.command,_.DK)?OWl(E):XX7(E)}):[]};
eL7=function(){return new Promise(function(t){var E=window;E.attmp!==void 0?t(E.attmp):(E.attmq===void 0&&(E.attmq=[]),E.attmq.push(function(p){t(p)}))})};
FLg=function(){var t=_.ws("yt.aba.att");return t?t:_.KV.instance!==void 0?_.KV.instance.owV.bind(_.KV.instance):null};
zLK=function(t,E){var p,U;return _.q(function(x){return x.nextAddress==1?_.r("attmusi")&&_.r("attmusi_ue")?x.yield(eL7(),3):x.jumpTo(2):x.nextAddress!=2?(p=x.yieldResult,x.return(p.s(t,E,6E4))):(U=FLg())?x.return(U(t,E,6E4)):x.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
lD8=function(t,E,p,U,x){E=E===void 0?[]:E;x=x?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:x}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.kh(t),dialogMessages:E.map(function(A){return _.kh(A)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.kh(p),serviceEndpoint:x}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.kh(U)}}}}}};
GQ5=function(t,E,p,U){p||(t?U&&(U.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||U.WINDOW_SIZE_CHANGED&&(E.width!==window.innerWidth||E.height!==window.innerHeight)||U.SAFARI_ABORTED_BY_NEW_TRANSITION&&t instanceof DOMException&&t.name==="AbortError"&&t.message.includes("Old view transition aborted by new view transition"))||_.bV(t):_.bV(Error("zj")))};
nXt=function(t,E){E=E===void 0?{}:E;var p,U,x,A,m,b,f,B,R,V,Q,C,d;return _.q(function(I){switch(I.nextAddress){case 1:p=E;U=p.shouldWrap===void 0?!0:p.shouldWrap;x=p.skipTransitionTimeoutMs===void 0?300:p.skipTransitionTimeoutMs;A=p.beforeTransition;m=p.afterTransition;if(!U||!document.startViewTransition||document.visibilityState==="hidden")return I.return(t());b={width:window.innerWidth,height:window.innerHeight};f=!1;(B=A)==null||B();_.aR(I,2);R=document.startViewTransition(t);V=setTimeout(function(){R.skipTransition();
f=!0},x);
return I.yield(R.ready,4);case 4:return clearTimeout(V),I.yield(R.finished,5);case 5:clearTimeout(V);(Q=m)==null||Q();_.r7(I,0);break;case 2:C=_.nB(I),(d=m)==null||d(),GQ5(C,b,f,E.ignoredErrors),_.Do(I)}})};
N15=function(t,E,p){p=p===void 0?!1:p;var U=_.S3(),x=!!_.gY().queueProxy,A,m,b;t=t==null?void 0:(A=t.response)==null?void 0:(m=A.currentVideoEndpoint)==null?void 0:(b=m.watchEndpoint)==null?void 0:b.playlistId;if((x||t)&&!_.r("web_watch_disable_playlist_auto_miniplayer"))return p&&(U.playlistWatchPageActivation=!0),!0;switch(cW(E)){case "yts-products":return p&&(U.productDetailsPageActivation=!0),!0;case "mini_app":return p&&(U.miniAppPageActivation=!0),!0;case "playables":return p&&(U.playablesDestPageActivation=
!0),!0;case "companion-canvas":return p&&(U.companionCanvasActivation=!0),!0;default:return!1}};
t_=function(t){var E=t.clientMessageId;var p=t.playerOffsetMs;var U=t.pageContext;t=t.userInputText;return{inputComposerFormData:Object.assign({},{clientMessageId:E},!!p&&{playerOffsetMs:p},!!U&&{pageContext:U},!!t&&{userInputText:t})}};
DW5=function(t){t=_.M$8(t);t.length>0&&t[0].focus()};
szo=function(t,E,p){for(var U=typeof t==="string"?t.split(""):t,x=t.length-1;x>=0;--x)x in U&&E.call(p,U[x],x,t)};
LLe=function(t,E,p){for(var U=t.length,x=typeof t==="string"?t.split(""):t,A=0;A<U;A++)if(A in x&&E.call(p,x[A],A,t))return A;return-1};
E3=function(t,E,p){E=LLe(t,E,p);return E<0?null:typeof t==="string"?t.charAt(E):t[E]};
PVC=function(t,E){E=LLe(t,E);E>=0&&_.X8L(t,E)};
T1K=function(t){return Array.prototype.concat.apply([],arguments)};
oX7=function(t){var E=0;E=E===void 0?0:E;if(!_.mo(t))throw _.Ur("uint64");var p=typeof t;switch(E){case 512:switch(p){case "string":return _.DfJ(t);case "bigint":return String((0,_.It)(64,t));default:return _.nmO(t)}case 1024:switch(p){case "string":return _.ss0(t);case "bigint":return _.Nf((0,_.It)(64,t));default:return _.NZD(t)}case 0:switch(p){case "string":return _.DfJ(t);case "bigint":return _.Nf((0,_.It)(64,t));default:return _.GX$(t)}default:return _.UC(E,"Unknown format requested type for int64")}};
WLt=function(t,E,p){if(E)return _.gt(t);var U;return(U=_.hd(t))!=null?U:p?"":void 0};
$W9=function(t){t!=null&&(t=t.JSC$9096_value_||"",t=typeof t==="string"?t:new Uint8Array(t));return t};
KLK=function(t,E){var p=_.uQO(E);p!=="javascript:"&&p!=="data:"&&t.setAttribute("href",E)};
vXJ=function(t,E){if(/-[a-z]/.test(E))return null;if(_.nWm&&t.dataset){if(_.CYD()&&!(E in t.dataset))return null;t=t.dataset[E];return t===void 0?null:t}return t.getAttribute("data-"+_.ai(E))};
yHt=function(t,E,p){E=E===void 0?5:E;if(E!==0){var U=typeof t==="function"?t():document.querySelector(t);U?(p==null?0:p.enableSmartFocus)?_.ReO(U):U.focus():setTimeout(function(){yHt(t,E-1,p)},500)}};
S_K=function(){var t=_.Bk&&_.B8(_.onZ,10)>=0,E;if(E=_.gmm)E=_.B8(_.Tkr,10)>=0;var p=_.Gm&&_.B8(_.onZ,85)>=0;return _.Ne||t||E||p};
cHJ=function(t){var E=_.R7W(t);return E&&S_K()?-t.scrollLeft:E&&_.By(t,"overflowX")!="visible"?t.scrollWidth-t.clientWidth-t.scrollLeft:t.scrollLeft};
tfL=function(t,E){E=Math.max(E,0);_.R7W(t)?S_K()?t.scrollLeft=-E:t.scrollLeft=t.scrollWidth-E-t.clientWidth:t.scrollLeft=E};
Ene=function(t){return String.raw.apply(String,[{raw:t}].concat(_.KB(_.t9.apply(1,arguments).map(function(E){return E instanceof Array?E.join(""):E}))))};
UeJ=function(t){var E=_.t9.apply(1,arguments),p=E.length;if(!Array.isArray(t)||!Array.isArray(t.raw)||t.length!==t.raw.length||!_.Vss&&t===t.raw||!(_.Vss&&!_.QRo||_.sS(t))||p+1!==t.length)throw new TypeError("$");return new p6b(Object.freeze({strings:Object.freeze(t),args:Object.freeze(E)}))};
xet=function(){var t=window.location.hash;t.charAt(0)==="#"&&(t=t.charAt(1)==="!"?t.substring(2):t.substring(1));return _.CR(t)};
YRC=function(){var t=AAo;_.ws("yt.ads.biscotti.getId_")||_.Oy("yt.ads.biscotti.getId_",t)};
MfL=function(t){_.Oy("yt.ads.biscotti.lastId_",t)};
bo7=function(){var t={};for(_.Y6=new meg(t.handleError===void 0?_.iV:t.handleError,t.logEvent===void 0?_.MW:t.logEvent);_.MR.length>0;)switch(t=_.MR.shift(),t.type){case "ERROR":_.Y6.logError(t.payload);break;case "EVENT":_.Y6.logEvent(t.eventType,t.payload)}};
iob=function(t,E,p){return _.HfY(function(U){return p?U.userIdentifier!==void 0&&!t.includes(U.userIdentifier)&&p.includes(U.publicName):U.userIdentifier!==void 0&&!t.includes(U.userIdentifier)},E)};
qRt=function(t){var E,p;return _.q(function(U){if(U.nextAddress==1)return E=_.yE("YtIdbMeta hasAnyMeta other"),U.yield(_.HfY(function(x){return x.userIdentifier!==void 0&&x.userIdentifier!==E},t),2);
p=U.yieldResult;return U.return(p.length>0)})};
fM9=function(t,E){Hoo||(Hoo=_.ir.addLowPriorityJob(function(){var p,U,x,A,m;return _.q(function(b){switch(b.nextAddress){case 1:return b.yield(_.hF(),2);case 2:p=b.yieldResult;if(!p)return b.return();U=!0;_.aR(b,3);return b.yield(iob(t,p,E),5);case 5:x=b.yieldResult;if(!x.length){U=!1;b.jumpTo(6);break}A=x[0];return b.yield(_.k6(A.actualName),7);case 7:return b.yield(_.JF(A.actualName,p),6);case 6:_.r7(b,4);break;case 3:m=_.nB(b),_.mn(m),U=!1;case 4:_.ir.cancelJob(Hoo),Hoo=0,U&&fM9(t,E),_.Do(b)}})}))};
BkC=function(){var t;return _.q(function(E){return E.nextAddress==1?E.yield(_.hF(),2):(t=E.yieldResult)?E.return(qRt(t)):E.return(!1)})};
w6l=function(t){var E=100;E=E===void 0?500:E;var p,U,x,A,m,b;return _.q(function(f){return f.nextAddress==1?(p=_.qO("INNERTUBE_CONTEXT_CLIENT_NAME",0),U=[p,(0,_.eu)()-2592E6],x=[p,(0,_.eu)()],A=IDBKeyRange.bound(U,x),f.yield(_.GhK(t),2)):f.nextAddress!=3?(m=f.yieldResult,b=[],f.yield(_.uJ(m,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(B){b.length=0;return _.Fa(B.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:A,direction:"prev"},function(R){if(R.getValue()&&b.length<
E)return b.push(R.getValue()),R.delete().then(function(){return R.continue()})})}),3)):f.return(b)})};
Rft=function(){var t;return _.q(function(E){if(E.nextAddress==1)return E.yield(_.hF(),2);t=E.yieldResult;if(!t||!_.Si()&&!_.r("nwl_init_require_datasync_id_killswitch")||!_.UAO())return E.jumpTo(0);_.AJD=!0;_.xAD.isNwlInitialized=_.AJD;return E.yield(_.spW().awaitInitialization(),0)})};
p8=function(t,E){_.kOK[t]=!0;var p=_.eT();p&&p.publish.apply(p,arguments);_.kOK[t]=!1};
QEC=function(){if(_.t5K()&&!Vfd){var t=function(p){p=p.data;if(p.op==="serializedGelBatch"){var U=_.kED.get(p.key);U&&(_.u0O(p.serializedBatch,U.client,U.resolve,U.networklessOptions,U.isIsolated,U.useVSSEndpoint,U.dangerousLogToVisitorSession,U.requestsOutstanding),_.kED.delete(p.key))}},E=_.c2$();
E&&(E.addEventListener("message",t),E.onerror=function(){_.kED.clear()});
Vfd=!0}};
U3=function(){this.relativeTimeStart_=_.Z1()};
CnL=function(t,E){t!=null&&this.append.apply(this,arguments)};
xG=function(){for(var t=Array(36),E=0,p,U=0;U<36;U++)U==8||U==13||U==18||U==23?t[U]="-":U==14?t[U]="4":(E<=2&&(E=33554432+Math.random()*16777216|0),p=E&15,E>>=4,t[U]=_.SkO[U==19?p&3|8:p]);return t.join("")};
jEl=function(){return _.pF("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
de8=function(){var t=_.Kq.clone(rA5),E;return(new _.PE(function(p,U){t.onSuccess=function(x){_.ib$(x)?p(new kx7(x)):U(new A_("Request failed, status="+_.nR(x),"net.badstatus",x))};
t.onError=function(x){U(new A_("Unknown request error","net.unknown",x))};
t.onTimeout=function(x){U(new A_("Request timed out","net.timeout",x))};
E=_.PC("//googleads.g.doubleclick.net/pagead/id",t)})).thenCatch(function(p){if(p instanceof _.mF){var U;
(U=E)==null||U.abort()}return _.S5(p)})};
uEC=function(t,E,p){p=p===void 0?!1:p;var U,x,A,m,b;return _.q(function(f){switch(f.nextAddress){case 1:_.KR("SOCS",t,34128E3,"youtube.com",!0);if(_.lf)return x=fetch(E,{method:"POST",mode:_.bO(E),credentials:_.mt(E),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),A=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.bO("/upgrade_visitor_cookie?eom=1"),credentials:_.mt("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),f.yield(Promise.all([x,A]).then(function(B){return B[1]}),5);
fetch(E,{method:"POST",mode:_.bO(E),credentials:_.mt(E),cache:"no-store",headers:{"Content-Type":"text/plain"}});return f.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.bO("/upgrade_visitor_cookie?eom=1"),credentials:_.mt("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:U=f.yieldResult;f.jumpTo(3);break;case 5:U=m=f.yieldResult;case 3:if(!U.ok)throw Error("vf");return f.yield(U.text(),7);case 7:b=f.yieldResult,
!b.includes('"state_switch":true')&&!p||b.includes("skip_reload_for_test")||window.location.reload(),_.Do(f)}})};
JAC=function(t){return _.q(function(E){return E.nextAddress==1?E.yield(uEC(t.socsCookie,t.savePreferenceUrl,!0),2):E.return()})};
IMe=function(t){return _.q(function(E){return E.nextAddress==1?E.yield(uEC(t.socsCookie,t.savePreferenceUrl),2):E.return()})};
Zo7=function(t){a:{var E="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(E="EMBEDDED_PLAYER_MODE_PFL");var p=t.raw_embedded_player_response;if(!p&&(t=t.embedded_player_response))try{p=JSON.parse(t)}catch(x){break a}if(p)b:{t=gnK;for(var U in t)if(t[U]==p.embeddedPlayerMode){E=t[U];break b}}}return E==="EMBEDDED_PLAYER_MODE_PFL"};
Oot=function(){if(_.r("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("wf");if(!_.cvO())return Error("xf");var t=_.qO("PLAYER_VARS",{});if(_.Kq.get(t,"privembed",!1)=="1")return Error("yf");if(Zo7(t))return Error("zf")};
aMg=function(t){t=t.xhr.responseText;if(!_.AD(t,")]}'"))throw new YG;t=JSON.parse(t.substr(4));if((t.type||1)>1)throw new YG;t=t.id;MfL(t);X6b=_.Iy(t);hft(18E5,2);return t};
FQ5=function(t,E){E=new efd(E);MfL("");X6b=_.sIo(E);t>0&&hft(12E4,t-1);throw E;};
hft=function(t,E){_.NO(function(){de8().then(aMg,function(p){return FQ5(E,p)}).thenCatch(_.SM)},t)};
AAo=function(){var t=Oot();if(t!==void 0)return _.S5(t);X6b||(X6b=de8().then(aMg).thenCatch(function(E){return FQ5(2,E)}));
return X6b};
zfd=function(){var t=document;return E3(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(E){return"on"+E.toLowerCase()in t})};
lMg=function(t){t.addEventListener("click",function(E){var p=E.target;p&&p.getAttribute("href")&&(p=p.getAttribute("href"),_.b0(window,p,"_blank"),E.preventDefault(),E.stopImmediatePropagation())})};
Gxl=function(){var t=_.DU();t.info||(t.info={});return t.info};
MI=function(){return(_.r("csi_use_time_origin")||_.r("csi_use_time_origin_tvhtml5"))&&_.oK.timeOrigin?Math.floor(_.oK.timeOrigin):_.oK.timing.navigationStart};
m1=function(t){return Math.round(MI()+t)};
nn9=function(){var t;if(_.r("csi_use_performance_navigation_timing")){var E,p,U,x=_.oK==null?void 0:(t=_.oK.getEntriesByType)==null?void 0:(E=t.call(_.oK,"navigation"))==null?void 0:(p=E[0])==null?void 0:(U=p.toJSON)==null?void 0:U.call(p);x?(x.requestStart=m1(x.requestStart),x.responseEnd=m1(x.responseEnd),x.redirectStart=m1(x.redirectStart),x.redirectEnd=m1(x.redirectEnd),x.domainLookupEnd=m1(x.domainLookupEnd),x.connectStart=m1(x.connectStart),x.connectEnd=m1(x.connectEnd),x.responseStart=m1(x.responseStart),
x.secureConnectionStart=m1(x.secureConnectionStart),x.domainLookupStart=m1(x.domainLookupStart),x.isPerformanceNavigationTiming=!0,t=x):t=_.oK.timing}else t=_.r("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.oK.timing)):_.oK.timing;return t};
Nko=function(){if(_.oK.getEntriesByType){var t=_.oK.getEntriesByType("paint");if(t=E3(t,function(p){return p.name==="first-paint"}))return m1(t.startTime)}var E;
_.r("csi_use_performance_navigation_timing")?E=_.oK.getEntriesByType("first-paint")[0].startTime:E=_.oK.timing.msFirstPaint;return E?Math.max(0,E):0};
sEK=function(){var t=window.location.protocol,E=_.oK.getEntriesByType("resource");E=_.ae(E,function(p){return p.name.indexOf(t+"//fonts.gstatic.com/s/")===0});
(E=De5(E,function(p,U){return U.duration>p.duration?U:p}))&&E.startTime>0&&E.responseEnd>0&&(_.PD("wffs",m1(E.startTime)),_.PD("wffe",m1(E.responseEnd)))};
LQe=function(t,E){t=document.querySelector(t);if(!t)return!1;var p="",U=t.nodeName;U==="SCRIPT"?(p=t.src,p||(p=t.getAttribute("data-timing-href"))&&(p=window.location.protocol+p)):U==="LINK"&&(p=t.href);_.i0(document)&&t.setAttribute("nonce",_.i0(document));return p?(t=_.oK.getEntriesByName(p))&&t[0]&&(t=t[0],p=MI(),_.PD("rsf_"+E,p+Math.round(t.fetchStart)),_.PD("rse_"+E,p+Math.round(t.responseEnd)),t.transferSize!==void 0&&t.transferSize===0)?!0:!1:!1};
TkC=function(t,E){_.BC(function(){_.LF("").info.actionType=t;E&&_.ia("TIMING_AFT_KEYS",E);_.ia("TIMING_ACTION",t);var p=_.Lq0(_.qO("TIMING_INFO",{}));Object.keys(p).length>0&&_.TF(p);p={isNavigation:!0,actionType:_.XHi(_.qO("TIMING_ACTION"))};var U=_.qO("PREVIOUS_ACTION");U&&(p.previousAction=_.XHi(U));if(U=_.qO("CLIENT_PROTOCOL"))p.httpProtocol=U;if(U=_.qO("CLIENT_TRANSPORT"))p.transportProtocol=U;(U=_.yL())&&U!=="UNDEFINED_CSN"&&(p.clientScreenNonce=U);U=ZWo();if(U===1||U===-1)p.isVisible=!0;U=
_.kwi().loadType==="cold";var x=Gxl();U||(U=x.yt_lt==="cold");if(U){p.loadType="cold";U=Gxl();x=nn9();var A=MI(),m=_.qO("CSI_START_TIMESTAMP_MILLIS",0);m>0&&!_.r("embeds_web_enable_csi_start_override_killswitch")&&(A=m);A&&(_.PD("srt",x.responseStart),U.prerender!==1&&_.z8L(A));U=Nko();U>0&&_.PD("fpt",U);U=nn9();U.isPerformanceNavigationTiming&&_.TF({performanceNavigationTiming:!0},void 0);_.PD("nreqs",U.requestStart,void 0);_.PD("nress",U.responseStart,void 0);_.PD("nrese",U.responseEnd,void 0);
U.redirectEnd-U.redirectStart>0&&(_.PD("nrs",U.redirectStart,void 0),_.PD("nre",U.redirectEnd,void 0));U.domainLookupEnd-U.domainLookupStart>0&&(_.PD("ndnss",U.domainLookupStart,void 0),_.PD("ndnse",U.domainLookupEnd,void 0));U.connectEnd-U.connectStart>0&&(_.PD("ntcps",U.connectStart,void 0),_.PD("ntcpe",U.connectEnd,void 0));U.secureConnectionStart>=MI()&&U.connectEnd-U.secureConnectionStart>0&&(_.PD("nstcps",U.secureConnectionStart,void 0),_.PD("ntcpe",U.connectEnd,void 0));_.oK&&"getEntriesByType"in
_.oK&&sEK();U=[];if(document.querySelector&&_.oK&&_.oK.getEntriesByName)for(var b in Pn9)Pn9.hasOwnProperty(b)&&(x=Pn9[b],LQe(b,x)&&U.push(x));if(U.length>0)for(p.resourceInfo=[],b=_.M(U),U=b.next();!U.done;U=b.next())p.resourceInfo.push({resourceCache:U.value})}_.TF(p);p=_.sT();p.preLoggedGelInfos||(p.preLoggedGelInfos=[]);b=p.preLoggedGelInfos;p=_.uo8();U=void 0;for(x=0;x<b.length;x++)if(A=b[x],A.loadType){U=A.loadType;break}if(_.kwi().loadType==="cold"&&(p.loadType==="cold"||U==="cold")){U=_.djE();
x=_.sT();x=x.gelTicks?x.gelTicks:x.gelTicks={};for(var f in U)f in x||typeof U[f]==="number"&&_.PD(f,_.WD(f));f={};U=!1;b=_.M(b);for(x=b.next();!x.done;x=b.next())U=x.value,_.ET(p,U),_.ET(f,U),U=!0;U&&_.TF(f)}_.TcD(!0);f=_.qO("TIMING_ACTION");_.ws("ytglobal.timingready_")&&f&&_.tVj()&&_.Ph_()&&_.DjL()})()};
ont=function(t){var E,p,U,x=(U=(p=((E=t.mainDownloadsListEntity)!=null?E:{})[_.uhO])==null?void 0:p.refresh)!=null?U:"",A;t=(A=t.refresh)==null?void 0:A[x];x=t!=null?t:{};return(x==null?0:x.refreshTime)?Number(x==null?void 0:x.refreshTime):0};
WQ9=function(t,E){var p=_.$h(t);return E.every(function(U){var x;U=U==null?void 0:(x=U.playbackDataEntity)==null?void 0:x.key;if(!U)return!1;x=_.X1(_.gm(U).entityId,"mainVideoEntity");return!!p[x]})};
$eg=function(t){return t.ui.guideIsVisibleButNotPersistent};
KQe=function(t){return t.ui.scrollAtTop};
vnb=function(t){return t.ui.tabGesturesIsActive};
yA9=function(t){t=_.TV(t.entities);return _.n9i(t).length};
SRl=function(t,E){if(E){var p;t=(p=_.hj(t.entities,"downloadQualityPickerEntity",E))!=null?p:void 0}else t=void 0;return t};
bT=function(t,E,p){var U;return _.q(function(x){if(x.nextAddress==1)return x.yield(E(),2);U=x.yieldResult;p(U,t);_.Do(x)})};
cAg=function(){return _.q(function(t){return t.nextAddress==1?t.yield((Oot()!==void 0?_.S5(Error("Af")):de8()).then(function(){return 1},function(E){if(E.message==="Biscotti id is disabled")return 3;
_.qW("Failed fetching bid");return 0}),2):t.return(t.yieldResult)})};
Exd=function(){var t=_.kz("IzZkbWphc3lpbTNhbHl0LWhhdmVuLWVtYmVkLXBsYXllcg=="),E=_.kz("I3QzaWVhaWFyaWZoZmlmcmFtZQ==");return document.querySelector(E+tQd+t)?0:1};
pVb=function(t){var E=document.getElementsByTagName("ytd-enforcement-message-view-model");E.length===0||getComputedStyle(E[0]).display==="none"?t(0,"p.h_"):t(1,"p.h_")};
UGt=function(){return _.GR0(_.Xn)};
xGJ=function(){return _.nll()===0?0:_.Np_()};
Aol=function(){return _.Tpt(_.Ac8([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
MQC=function(){return _.Ok$(Ymt)};
mGK=function(t){_.q(function(E){switch(E.nextAddress){case 1:return E.yield(bT("b.f_",cAg,t),2);case 2:return E.yield(bT("j.s_",_.glO,t),3);case 3:return E.yield(bT("r.s_",_.uNt,t),4);case 4:return E.yield(bT("e.h_",MQC,t),5);case 5:if(!_.r("ab_det_sc_inj")){E.jumpTo(6);break}return E.yield(bT("s.i_",_.zHD,t),6);case 6:if(_.r("ab_deg_unex_thr")){E.jumpTo(8);break}return E.yield(bT("a.o_",_.eHO,t),8);case 8:if(_.r("ks_get_o_pp")){E.jumpTo(10);break}return E.yield(bT("g.o_",_.a7O,t),10);case 10:if(_.r("ks_det_gpbl")){E.jumpTo(12);
break}return E.yield(bT("p.i_",_.hHJ,t),12);case 12:return E.yield(bT("f.i_",_.f7Y,t),14);case 14:return E.yield(bT("a.b_",_.kRJ,t),15);case 15:return E.yield(bT("p.m_",_.RHD,t),16);case 16:if(!_.r("ab_det_el_h_v2")){E.jumpTo(17);break}return E.yield(bT("n.h_",Aol,t),17);case 17:return E.yield(bT("o.p_",UGt,t),19);case 19:return E.yield(bT("e.i_",Exd,t),20);case 20:if(_.r("ab_det_apm"))return E.yield(bT("o.a_",xGJ,t),0);E.jumpTo(0)}})};
b_t=function(t){switch(t){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:_.UC(t,"unknown result type")}};
i_5=function(t,E,p){E=_.cc8[E];p={detected:t===0,source:E.lOI,detectionResult:b_t(t),contentCpn:p};_.MW("biscottiBasedDetection",p);_.x3X.increment(E.lOI,t);E.pDV!==void 0&&_.ia("CATSTAT",_.ycL(t,E))};
fsC=function(){qmJ=0;var t=[_.NJ(!0)];H_g&&_.uO(H_g,"yt-window-resized",t)};
BJl=function(){qmJ||(qmJ=_.ir.addLowPriorityJob(fsC,200))};
VQK=function(){wVK=0;RJt=_.shp(document);var t=[RJt];H_g&&_.uO(H_g,"yt-window-scrolled",t)};
Qie=function(){wVK||(wVK=_.ir.addLowPriorityJob(VQK,200))};
jig=function(t){t=t===void 0?null:t;CH7.push(_.OG(window,"resize",BJl));CH7.push(_.OG(window,"scroll",Qie));t&&(H_g=t)};
rot=function(t){t=t.target.result;t.objectStoreNames.contains("swpushnotificationsstore")&&t.deleteObjectStore("swpushnotificationsstore");t.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
dGl=function(){return kZJ?Promise.resolve(kZJ):new Promise(function(t,E){var p=self.indexedDB.open("swpushnotificationsdb");p.onerror=E;p.onsuccess=function(){var U=p.result;if(U.objectStoreNames.contains("swpushnotificationsstore"))kZJ=U,t(kZJ);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),dGl()};
p.onupgradeneeded=rot})};
iT=function(t){var E=new _.cC("Error accessing DB");return dGl().then(function(p){return new Promise(function(U,x){try{var A=p.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(t);A.onsuccess=function(){var m=A.result;U(m?m.value:null)};
A.onerror=function(){E.params={key:t,source:"onerror"};x(E)}}catch(m){E.params={key:t,
thrownError:String(m)},x(E)}})},function(){return null})};
uxt=function(t,E){var p={};p.key=t;p.value=E;return dGl().then(function(U){return new Promise(function(x,A){try{var m=U.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(p);m.onsuccess=function(){x()};
m.onerror=function(){A()}}catch(b){A(b)}})})};
Ist=function(){var t=_.T2.getLocalStorage();t&&Jo9(t,t.mechanism.__iterator__(!0))};
gxl=function(t){_.q(function(E){if(E.nextAddress==1)return E.yield(t.delete("yt-appshell-assets"),2);_.Do(E)})};
Z_t=function(t){return _.d7((0,_.oqT)(),t)};
XV9=function(){var t;_.q(function(E){return E.nextAddress==1?E.yield(qI.getInstance(),2):(t=E.yieldResult)?E.yield(O_t(t),0):E.jumpTo(0)})};
asK=function(){var t;_.q(function(E){return E.nextAddress==1?E.yield(Hz.getInstance(),2):(t=E.yieldResult)?E.yield(hJl(t),0):E.jumpTo(0)})};
eJ7=function(t){gxl(t);XV9();asK()};
FVg=function(t){var E,p;return _.q(function(U){if(U.nextAddress==1)return U.yield(_.uSO(t),2);if(E=U.yieldResult){var x;a:{if(E.headers&&(x=E.headers.get("date"))&&(x=Date.parse(x),!isNaN(x))){x=Math.round((0,_.eu)()-x);break a}x=-1}p=x;if(p>-1)return U.return(p)}return U.return(-1)})};
zJ5=function(){var t=_.Ui.caches,E=_.HC("IS_SHELL_LOAD"),p,U;_.q(function(x){if(x.nextAddress==1)return p=-1,E?x.yield(FVg(t),3):(U=MI(),p=Math.round((0,_.eu)()-U),x.jumpTo(2));x.nextAddress!=2&&(p=x.yieldResult);p>=0&&p<2147483648&&_.KF({appInstallDataAgeMs:p});_.Do(x)})};
lsl=function(t){var E=_.QC(_.Ui.location.href),p={};"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(U){var x=E.JSC$10308_queryData_.getValues(U);if(x==null?0:x.length)p[U]=x});
return _.Ih(t,new Map(Object.entries(p)))};
GZ8=function(t){return _.s6L(_.DvD(t&16777215))<.5};
nxL=function(t){t=t.match(/(.*)::.*::.*/);if(t!==null)return t[1]};
NJd=function(t){if(_.LB$()){var E=Object.keys(window.localStorage);E=_.M(E);for(var p=E.next();!p.done;p=E.next()){p=p.value;var U=nxL(p);U===void 0||t.includes(U)||self.localStorage.removeItem(p)}}};
DGo=function(){if(!_.LB$())return!1;var t=_.yE(),E=Object.keys(window.localStorage);E=_.M(E);for(var p=E.next();!p.done;p=E.next())if(p=nxL(p.value),p!==void 0&&p!==t)return!0;return!1};
sit=function(t){return uxt("NotificationsDisabled",t)};
LV7=function(){var t=_.la("service_worker_scope");try{return navigator.serviceWorker.getRegistration(t)}catch(E){return Promise.reject(E)}};
PHJ=function(){return Notification.permission!="granted"?Promise.resolve():LV7().then(function(t){return t?t.pushManager.getSubscription().then(function(E){if(E)return Promise.resolve();E={userVisibleOnly:!0,applicationServerKey:_.c8("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return t.pushManager.subscribe(E).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
TJ5=function(t){return LV7().then(function(E){if(!E||!E.active)return Promise.reject(new _.cC("serviceworker.postMessage",t,E));try{return E.active.postMessage(t),Promise.resolve()}catch(p){return Promise.reject(p)}})};
ox7=function(){TJ5({type:"notifications_register",data:_.qO("ID_TOKEN")})};
WVt=function(t){return!(!t||!t.pushManager)};
$G9=function(){return LV7().then(WVt).catch(function(){return!1})};
KVJ=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?$G9():Promise.resolve(!1)};
Smb=function(){var t={isWide:_.$a.get("wide","0")==="1"},E=_.nF();if(E=E.getFlag(165)||E.getFlag(174))t.theme=_.me(!0);if(_.MSj()){var p=_.Ml()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";t.systemTheme=p}!E&&_.r("parent_tools_enable_app_settings")&&_.ji(window.location.href).theme!==void 0&&(t.theme=_.me());if((E=vx8)?!_.Kq.equals(E,t):t)E={currentValue:t},yol&&(E.timeSinceLastSnapshotSecs=Math.round(((0,_.eu)()-yol)/1E3)),vx8&&(E.previousValue=vx8),_.MW("appSettingsCaptured",E),vx8=
t,yol=(0,_.eu)()};
coK=function(){if(!_.HC("LOGGED_IN"))return Promise.resolve(!1);var t=_.la("service_worker_push_force_notification_prompt_tag");return t?iT("PromptTags").then(function(E){if(!E)return!0;var p=[];try{p=JSON.parse(E)}catch(U){return!1}return p&&p.indexOf(t)==-1}):Promise.resolve(!1)};
tR5=function(){var t=_.z3("service_worker_push_prompt_delay_microseconds");return t?iT("PromptTime").then(function(E){return Promise.resolve(Date.now()-t>(E||0))}):Promise.resolve(!0)};
ETJ=function(){var t=_.z3("service_worker_push_logged_out_prompt_watches");return t==-1?Promise.resolve(!1):iT("WatchCount").then(function(E){return E>=t})};
pDJ=function(){var t=_.uA(document,"yt-push-prompt-modal-bg");t&&_.ng(t)};
U_8=function(){return _.z3("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):iT("PromptCount").then(function(t){t||(t=0);return Promise.resolve(t<_.z3("service_worker_push_prompt_cap"))})};
x_t=function(t){return _.HC("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.HC("LOGGED_IN")&&(t===void 0?0:t)?coK().then(function(E){if(E)return!0;E=[U_8(),tR5()];_.HC("LOGGED_IN")||E.push(ETJ());return Promise.all(E).then(function(p){return p.every(function(U){return U})})}):Promise.resolve(!1)};
AZK=function(){iT("PromptCount").then(function(t){return uxt("PromptCount",t+1)}).then(function(){return uxt("PromptTime",Date.now())}).then(function(){var t=_.la("service_worker_push_force_notification_prompt_tag");
if(t)return iT("PromptTags").then(function(E){var p=[];if(E)try{p=JSON.parse(E)}catch(U){return!1}p||(p=[]);p.push(t);return uxt("PromptTags",JSON.stringify(p))})})};
MRl=function(){YTg||pDJ()};
m_d=function(t){t.style.zIndex=2147483648;t.style.pointerEvents="auto";t.style.backgroundColor="rgba(0, 0, 0, 0.6)";t.style.width="100%";t.style.height="100vh";t.style.position="absolute";t.style.top="0";t.style.left="0";t.style.border="none"};
bFJ=function(){var t=_.uA(document,"yt-push-prompt-modal-bg");YTg=_.r("service_worker_push_prompt_modal_ignore_click");t?m_d(t):(t=_.YM("div",{id:"yt-push-prompt-modal-bg"}),m_d(t),document.body.appendChild(t),_.Vei(document,"click",MRl))};
iFg=function(){var t=arguments;_.r("service_worker_push_prompt_modal_enable")&&bFJ();return Notification.requestPermission().then(function(E){pDJ();var p=document.getElementById("ticker");p&&(p.className=p.classList.remove("show"));if(E=="granted")return PHJ().then(function(){sit(!1);ox7();return Promise.resolve(!0)});
E=="denied"&&ox7();return Promise.resolve(!1)}).catch(function(){pDJ();
return Promise.reject.apply(Promise,_.KB(t))})};
qTo=function(t){t=t===void 0?!1:t;var E=_.H3().client;if(E&&E.browserVersion){var p=E.browserVersion,U=E.browserName=="CHROME"&&_.B8(p,"50.0.0")<0;E=E.browserName=="OPERA"&&_.B8(p,"42.0.0")<0;if(U||E)return Promise.resolve()}return KVJ().then(function(x){if(!x)return Promise.resolve();x=PHJ().then(function(){return TJ5({type:"notifications_check_registration",data:_.qO("ID_TOKEN")})});
return Notification.permission!="default"?x.catch(function(){}):x.then(function(){return x_t(t)}).then(function(A){if(A)return AZK(),iFg().then(function(){})}).catch(function(){})})};
HFK=function(t){return WVt(t)?qTo():Promise.resolve()};
fU5=function(t){var E=t.installing||t.waiting;return t.active||!E?Promise.resolve(t):new Promise(function(p){var U=function(x){x=x.target;if(x.state==="activated"||x.state==="redundant")E.removeEventListener("statechange",U),p(t)};
E.addEventListener("statechange",U)})};
BuJ=function(){var t=new _.hz_("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.Gs(t,{mainAppWeb:_.f0()});var E=_.HVG;_.r("service_worker_forward_exp_params")&&(E=lsl(E));try{var p=_.BPJ(E).catch(function(){_.nr(t,"FAILURE");return new Promise(function(){})});
_.r("service_worker_push_enabled")&&p.then(function(U){_.nr(t,"SUCCESS");return U}).then(fU5).then(HFK)}catch(U){if(_.nr(t,"FAILURE"),U.name!=="SecurityError")throw U;
}};
wDL=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&BuJ()};
f8=function(t,E,p,U,x){var A={};E&&(A[E]=p);U?A.errorType=U:x&&(A.errorReason=x);_.MW(t,A);_.mL()};
RB5=function(t,E){var p={};E&&(p.serializedYpcFamilyCreateLoggingParams=E);_.MW(t,p);_.mL()};
VRJ=function(t,E){var p={};p.serializedYpcRefundFlowLoggingParams=E;t&&(p.eventType=t);_.MW("ypcRefundFlowEvent",p);_.mL()};
QK8=function(t){t&&_.RRE("transactionFlowSucceeded",t)};
COJ=function(){f8("ypcRedeemFlowStarted")};
jK9=function(t){f8("ypcRedeemFlowFailed",void 0,void 0,void 0,t)};
rZ7=function(t){t&&f8("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",t,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
Bz=function(t){return function(E,p){var U=t||p.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(E,p,{get:function(){var x;return this.$?this.$[U]:(x=_.n0(this))==null?void 0:x.querySelector("#"+U)},
enumerable:!0,configurable:!0})}};
kFC=function(t){if(t=_.lrL(t)){var E;(E=t.sources)!=null&&E[0]?(E=_.nVE(t),E=E<1?"VERTICAL":E>1?"HORIZONTAL":"SQUARE"):E=void 0;return E}};
d_b=function(t){return(t=_.lrL(t))?_.nVE(t):0};
uJt=function(t){var E,p,U,x,A,m,b;_.q(function(f){if(f.nextAddress==1)return f.yield(_.exY(),2);if(f.nextAddress!=3){if(!f.yieldResult)return f.return(!1);E=[];return f.yield(_.Z4.keys(),3)}p=f.yieldResult;U=_.M(p);for(x=U.next();!x.done;x=U.next())A=x.value,m=_.hxi(A),b=m.datasyncId,!b||t.includes(b)||E.push(_.Z4.delete(A));return f.return(Promise.all(E).then(function(B){return B.some(function(R){return R})}))})};
JZt=function(){var t,E,p,U,x,A,m;return _.q(function(b){if(b.nextAddress==1)return b.yield(_.exY(),2);if(b.nextAddress!=3){if(!b.yieldResult)return b.return(!1);t=_.yE("cache contains other");return b.yield(_.Z4.keys(),3)}E=b.yieldResult;p=_.M(E);for(U=p.next();!U.done;U=p.next())if(x=U.value,A=_.hxi(x),(m=A.datasyncId)&&m!==t)return b.return(!0);return b.return(!1)})};
IUC=function(t,E){return _.hj(t.entities,"inlineExpansionEntity",E)};
gTt=function(t,E){return _.hj(t.entities,"timedMarkersListSyncEntity",E)};
ZFl=function(t,E){return _.hj(t.entities,"liveReactionsDataEntity",E)};
OFt=function(t,E){t=_.hj(t.entities,"booleanEntity",E);return!(!t||!t.value)};
XDL=function(t,E){var p=_.yL();p&&t&&_.Yh(p,_.$8(t),E)};
hBo=function(t){return t.watch.isWatchActive};
aUb=function(t){return t.watch.isLearningJourneyActive};
eBl=function(t){return t.watch.watchWindowSize};
Ft7=function(t){return!_.zEt(t)};
wr=function(t){return t.watch.watchScrollTop};
zBl=function(t){return t.watch.isLiveChatCollapsed};
lUt=function(t,E){return _.hj(t.entities,"flowStateEntity",E)};
GFt=function(){var t=_.X3().resolve(_.OB(_.BqZ));return t?t.getCurrentTime():0};
nTC=function(t,E){t={videoId:t};E&&(t.playlistId=E);return t};
Nut=function(){var t,E,p,U,x,A,m,b,f,B,R,V,Q,C;return _.q(function(d){switch(d.nextAddress){case 1:t={},E=_.G_E(),p=_.M(Object.entries(E)),U=p.next();case 4:if(U.done){d.jumpTo(3);break}x=U.value;A=_.M(x);m=A.next().value;b=A.next().value;f=m;B=b;if(!B){d.jumpTo(5);break}return d.yield(B(),8);case 8:t[f]=d.yieldResult;case 5:U=p.next();d.jumpTo(4);break;case 2:R=_.M(),V=R.next();case 9:if(V.done){d.jumpTo(3);break}Q=V.value;C=E[Q];if(!C){d.jumpTo(10);break}return d.yield(C(),13);case 13:t[Q]=d.yieldResult;
case 10:V=R.next();d.jumpTo(9);break;case 3:return d.return(t)}})};
D_C=function(){var t;_.q(function(E){if(E.nextAddress==1)return E.yield(Nut(),2);t=E.yieldResult;return E.yield(navigator.clipboard.writeText(JSON.stringify(t,null,2)),0)})};
sKd=function(t,E){if(t&&E){var p=_.Nn();p().set(t,E);_.WN$(p())}};
LtC=function(t,E){if(t&&E){var p=_.Nn();p().set(t,E);_.WN$(p())}};
POl=function(t,E){return _.hj(t.entities,"superThanksSelectedTierEntity",E)};
Tu9=function(t,E){return _.hj(t.entities,"contextNoteUserRatingEntityPayload",E)};
oTJ=function(){_.r("web_watch_log_theater_mode")&&_.Ysj("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
Wtt=function(t,E,p){if(!t.includes("START_TIME_PLACEHOLDER")||!t.includes("END_TIME_PLACEHOLDER"))return t;var U=new Date(0),x=new Date(0);U.setUTCMilliseconds(E);x.setUTCMilliseconds(p);return t.replace("START_TIME_PLACEHOLDER",_.HL(U,7)).replace("END_TIME_PLACEHOLDER",_.HL(x,7))};
$_b=function(t,E,p){var U=p.minimumRowsOfVideosBetweenSections===void 0?1:p.minimumRowsOfVideosBetweenSections;return t<(p.minimumRowsOfVideosAtStart===void 0?2:p.minimumRowsOfVideosAtStart)||E!==null&&t-E<=U?!1:!0};
Kt8=function(t,E){var p=0,U=0;t=_.M(t);for(var x=t.next();!x.done;x=t.next()){var A=x.value;if(A.richItemRenderer)A.richItemRenderer.rowIndex=U,A.richItemRenderer.colIndex=p++,p===E&&(p=0,U++);else if(A.richGroupRenderer&&A.richGroupRenderer.numColumns!==void 0)A.richGroupRenderer.rowIndex=U,A.richGroupRenderer.colIndex=p,p+=A.richGroupRenderer.numColumns,p===E&&(p=0,U++);else if(A.richSectionRenderer){var m=x=void 0;if(A=_.k((x=A)==null?void 0:(m=x.richSectionRenderer)==null?void 0:m.content,_.Jls))A.rowIndex=
U++}}};
vTK=function(t,E){var p=E.contentElement;E=E.rendererToTagNameMap;if(p&&E&&E.size!==0){for(var U=new Map,x=_.M(p.children),A=x.next();!A.done;A=x.next()){A=A.value;var m=A.tagName.toLowerCase(),b=U.get(m);b||(b=[],U.set(m,b));b.push(A)}if(U.size!==0)for(x=Math.min(t.length,p.children.length),A=new Map,m=0;m<x;m++){b=Object.keys(t[m])[0];b=E.get(b);if(!b)break;var f=A.get(b);f===void 0&&(f=0,A.set(b,f));var B=U.get(b);if(!B||f>=B.length)break;A.set(b,f+1);b=B[f];f=p.children[m];f!==b&&(_.je=!0,_.r4.set(b,
!0),p.insertBefore(b,f),_.r4.delete(b),_.je=!1)}}};
yZ7=function(t,E,p,U,x,A,m){U=U===void 0?{}:U;if(!t||!t.length)return{orderedContent:[]};t=t.slice();var b=[],f=[];x=null;for(var B=0,R=function(L){f.sort(function(K,v){return v.skippedOnRow-K.skippedOnRow});
for(var D,W=(D=f.shift())==null?void 0:D.content;W;)!W.richSectionRenderer&&L||b.push(W),D=void 0,W=(D=f.shift())==null?void 0:D.content},V=void 0,Q=void 0,C=new Set;t.length>0||f.length>0;){for(var d=[],I=E;I>0;){var O=void 0,a=void 0,F=(a=f[0]&&f[0].skippedOnRow<B?(O=f.shift())==null?void 0:O.content:void 0)!=null?a:t.shift();
if(!F)break;if(F.richItemRenderer)O=F.richItemRenderer.targetId,a=void 0,O&&((a=m)==null?0:a.has(O))&&(a=m.get(O),!V||a&&a.timestamp>V.timestamp)&&(V=a,Q&&C.add(Q),Q=O),d.push(F),I--;else if(F.richGroupRenderer&&F.richGroupRenderer.numColumns!==void 0)F.richGroupRenderer.numColumns<=I?(d.push(F),I-=F.richGroupRenderer.numColumns):I===E&&F.richGroupRenderer.numColumns>E?(d.push({richGroupRenderer:Object.assign({},F.richGroupRenderer,{numColumns:E})}),I=0):f.push({content:F,skippedOnRow:B});else if(F.richSectionRenderer)if($_b(B,
x,U)&&I===E){b.push(F);x=B;B++;continue}else f.push({content:F,skippedOnRow:B});else if(F.continuationItemRenderer){R(!0);b.push(F);I=0;break}if(I===0)b.push.apply(b,_.KB(d));else if(!p&&t.length===0){R(!1);b.push.apply(b,_.KB(d));I=0;break}}B++;V&&(b.push(V.content),B++);Q=V=void 0}Kt8(b,E);A&&vTK(b,A);return{orderedContent:b,pinnedContentNotShownTargetIds:C}};
STt=function(t){return t.shorts.isSmallScreenSqueezeback};
cZo=function(t){return t.shorts.isPlaybackStarted};
Ehb=function(){if(_.r("kevlar_home_skeleton")&&!t1g){var t=document.querySelector("#home-page-skeleton");t&&(_.SR("hgcr"),_.ng(t),t1g=!0)}};
xc5=function(){if(_.cvO()){var t=_.qO("PLAYER_VARS",{});if(_.Kq.get(t,"privembed",!1)!="1"&&!Zo7(t)){var E=function(){pAl=!0;"google_ad_status"in window?_.ia("DCLKSTAT",1):_.ia("DCLKSTAT",2)};
try{_.xT(_.HBC,E)}catch(p){}Ucd.push(_.ir.addLowPriorityJob(function(){if(!(pAl||"google_ad_status"in window)){try{_.TaY(_.HBC.toString(),E)}catch(p){}pAl=!0;_.ia("DCLKSTAT",3)}},5E3))}}};
Ajb=function(t){return!!t.getOptions("captions")};
YFg=function(t){return(t=t.getOption("captions","track"))?!!t.displayName:!1};
M15=function(t){return E3(t,function(E){return E.languageCode==="en"})};
mct=function(t){var E=Rw;if(YFg(t))t.setOption("captions","stickyLoading",{}),t.setOption("captions","track",{});else{var p=E3(_.pmO(t),function(U){return U.displayName===E});
t.setOption("captions","track",p)}};
bbK=function(t,E){return{popup:{searchSuggestionReportDialog:{searchQuery:t,title:_.zF("SBOX_INAPPROPRIATE_TITLE"),suggestions:E,categoryLabel:_.zF("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.zF("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.zF("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.zF("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.zF("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.zF("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.zF("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.zF("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.zF("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.zF("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
ibg=function(t){var E=_.nF();if(E.getFlag(202))E=E.getFlag(201);else{var p;E=(t==null?void 0:(p=t.config)==null?void 0:p.settingOnByDefault)!==void 0?t.config.settingOnByDefault:!_.uc("web_shorts_cinematics_disabled_by_default")}return E};
qFL=function(t){var E=_.nF();_.N_(0,201,t);_.N_(0,202,!0);E.save()};
Hbo=function(t){var E,p,U,x,A,m,b,f,B,R,V,Q,C,d,I,O,a,F,L;return _.q(function(D){switch(D.nextAddress){case 1:return D.yield(_.F1(),2);case 2:return(E=D.yieldResult)?D.yield(_.TKi(E),3):D.return();case 3:p=D.yieldResult;if(!p)return D.return();x=((U=p.offlineVideos)==null?void 0:U.length)||0;m=((A=p.offlinePlaylists)==null?void 0:A.length)||0;if(x===0&&m===0)return D.return();b=0;if(p.offlineVideos)for(f=_.M(p.offlineVideos),B=f.next();!B.done;B=f.next())R=B.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
R.videoState&&(b+=1);t.offline_videos_count=x.toString();_.r("kevlar_log_offline_current_network_type_ks")||(t.offline_current_network_type=(V=_.sp$())!=null?V:"CONN_INVALID");_.r("kevlar_log_updated_time_for_smart_downloads")&&(Q=_.QM().getState().entities,C=_.S1(Q),d=ont(Q),t.offline_smart_downloads_last_sync_time_ms=C.toString(),t.offline_smart_downloads_next_sync_time_ms=d.toString());t.offline_videos_playable=b.toString();t.offline_playlists_count=m.toString();p.offlineVideos&&(I=p.offlineVideos.reduce(function(W,
K){K.downloadedBytes&&(W+=Number(K.downloadedBytes));return W},0).toString())&&(t.offline_used_disk_space_bytes=I);
if(!((O=navigator)==null?0:(a=O.storage)==null?0:a.estimate)){D.jumpTo(4);break}return D.yield(navigator.storage.estimate(),5);case 5:F=D.yieldResult,t.offline_free_disk_space_bytes=(((L=F)==null?void 0:L.quota)||0).toString();case 4:t.offline_client_state=JSON.stringify(p),_.Do(D)}})};
fBg=function(t){t=t.match(/(.*)::.*::.*/);if(t!==null)return t[1]};
BmJ=function(t){if(_.fiY()){var E=Object.keys(window.sessionStorage);E=_.M(E);for(var p=E.next();!p.done;p=E.next()){p=p.value;var U=fBg(p);U===void 0||t.includes(U)||self.sessionStorage.removeItem(p)}}};
wAL=function(){if(!_.fiY())return!1;var t=_.yE(),E=Object.keys(window.sessionStorage);E=_.M(E);for(var p=E.next();!p.done;p=E.next())if(p=fBg(p.value),p!==void 0&&p!==t)return!0;return!1};
Rqe=function(t){if(!t)return 0;var E=t.getPresentingPlayerType(),p=t.getVideoData();return p&&p.isLive?(t=t.getProgressState(E),t.seekableEnd-t.seekableStart):t.getDuration(E)};
Vw=function(t,E){_.SY(E,t,function(){return V1g[E]},function(p){V1g[E]=p;
if(!_.r("mweb_player_ve_show_ks")){var U=_.yL(0);U&&p&&_.mu(U,p)}})};
Qw=function(t){(t=V1g[t])&&_.WH(_.Pu(),t)};
Qpg=function(t,E){for(var p=_.M(Object.keys(t)),U=p.next();!U.done;U=p.next())if(U=U.value,t[U]!==E[U])return!1;return!0};
CUe=function(){return document.getElementById("player-control-overlay")};
jpd=function(t){t!==-1&&!_.r("player_controls_log_creation_killswitch")&&CUe()&&(_.SR("pcu_cs",t),_.SR("pcu_ce"))};
rjJ=function(t){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:t}}]}}}};
kV7=function(t,E,p){var U=_.r("web_enable_chat_autoscroll_to_user_turn")?"user_turn_message_id-"+Date.now():void 0;E=Object.assign({},{text:E,hasGradientBackground:p},U&&{itemTargetId:U});U=_.r("web_enable_chat_autoscroll_to_user_turn")&&U?{scrollToItem:{scrollPosition:"SCROLL_POSITION_START",item:{itemTargetId:U,sectionTargetId:"youchat_section_list"}}}:void 0;return{listMutationCommand:{operations:Object.assign({},{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:E}],insertByPositionInSection:{sectionTargetId:t,
position:"INSERTION_POSITION_LAST"}}}]},U?{scrollConfig:U}:{})}}};
dcl=function(t){return{continuationCommand:{token:t,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}};
u1t=function(t,E){E.stack&&(t.stack+="\n"+E.stack);return t};
Jje=function(){this.isInputValid_=!0;this.JSC$19528_streamPos_=0;this.leftoverInput_=""};
IBL=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19531_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
XAb=function(t){var E=ghK(t,"Content-Type");if(!E)return null;E=E.toLowerCase();if(E.startsWith("application/json"))return E.startsWith("application/json+protobuf")?new Zb7:new _.$n;if(E.startsWith("application/x-protobuf")){t=ghK(t,"Content-Transfer-Encoding");if(!t)return new IBL;if(t.toLowerCase()=="base64")return new Ob9}return null};
Nml=function(t,E,p,U){var x=new hq7(function(b,f){return aBo.has(f)?b.sentinel==="gal"&&b.event!==void 0:!1},function(b){b.event?(b=eq9(b.event),b=!b||Fub(U,b)?!0:_.Tm(t.lastEvent,C8,2,jX)?!_.Tm(b,rr,1,jX)&&!_.Tm(b,C8,2,jX):!_.Tm(b,rr,1,jX)&&!_.Tm(b,C8,3,jX)):b=!0;
return b});
p=_.Ih(t.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",zqC(p)]]));if(t.nestedOrigins!==void 0)for(var A=_.M(t.nestedOrigins),m=A.next();!m.done;m=A.next())p=_.Ih(p,new Map([["origin",m.value]]));return lBt(x,p,E).then(function(b){b=GVL(b.event);if(_.Tm(b,rr,1,jX)){var f,B=(f=_.xC(b,rr,1,jX))==null?void 0:_.Et(f,2);B&&U.JSC$19583_logErrorEvent(nhg(B));f=_.xC(b,rr,1,jX);_.Et(f,2)===4?(b=_.xC(b,rr,1,jX),b={statusCode:11,statusMessage:_.th(b,
3)}):(b=_.xC(b,rr,1,jX),b={statusCode:12,statusMessage:_.th(b,3)});return b}_.Tm(b,C8,3,jX)?(b=_.xC(b,C8,3,jX),b={statusCode:1,consentLanguageKeys:_.th(b,2)}):b={statusCode:1};return b}).catch(function(b){return b.errorCode!==void 0?{statusCode:b.errorCode,
statusMessage:b.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
PUd=function(t){var E={};if(t===void 0||t===null)return E;t.getToken()!==void 0&&Dc9(t.getToken())&&Dc9(t.getToken()).length>0&&(E.scopes=new Set(Dc9(t.getToken())));t.getToken()!==void 0&&spg(t.getToken())&&spg(t.getToken()).length>0&&(E.capabilities=new Set(spg(t.getToken())));_.th(t,3)!==void 0&&(E.consistencyKey=_.th(t,3));t.getName()!==void 0&&t.getName()!==""&&(E.linkName=t.getName());_.Pn(t,Lu9,4)&&(t=_.lJ(t,Lu9,4),t=Object.assign({},_.th(t,1)&&{userId:_.th(t,1)},_.th(t,2)&&{displayName:_.th(t,
2)},_.th(t,3)&&{email:_.th(t,3)},_.th(t,5)&&{username:_.th(t,5)},_.th(t,4)&&{profilePicture:_.th(t,4)}),E.profile=t);return E};
Tmt=function(t,E){var p=t.flowParams,U;return{serviceId:p.serviceId,sessionId:p.sessionId,currentFlow:t.currentFlow,googleScopesString:E,linkingSessionSerialized:t.session.serialize(),consentLanguageKeys:p.consentLanguageKeys,callerState:t.callerState,dynamicUrlParameters:p.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(U=p.partnerConfigMinReadTimestamp)==null?void 0:U.serialize()}};
vh5=function(t){var E=t.googleScopes!==void 0?Array.from(t.googleScopes).join(","):"";oh5(Tmt(t,E),t.config.localStorage);E=WuK(t);return E===null?Promise.resolve($c8):E.start().then(function(p){var U,x=(U=p.link)==null?void 0:U.consistencyKey;return p.statusCode===1&&t.googleScopes!==void 0&&t.googleScopes.size>0&&x!==void 0?(U=t.flowParams,KuJ(U.serviceId,U.sessionId,t.googleScopes,x,U.galService,t.config,p)):p})};
SF9=function(t){var E=WuK(t);return E===null?Promise.resolve(yjJ({statusCode:7,statusMessage:"Failed to create flow object"},t.callerState)):E.complete().then(function(p){var U,x=(U=p.link)==null?void 0:U.consistencyKey;return p.statusCode===1&&t.googleScopes!==void 0&&t.googleScopes.size>0&&x!==void 0?(U=t.flowParams,KuJ(U.serviceId,U.sessionId,t.googleScopes,x,U.galService,t.config,p)):yjJ(p,t.callerState)},function(p){return yjJ({statusCode:12,
statusMessage:"Failed to complete the flow: "+p.message},t.callerState)})};
KuJ=function(t,E,p,U,x,A,m){return cj8(x,{serviceId:t,sessionId:E,googleScopes:p,consistencyKey:U}).then(function(){return m},function(b){return x.deleteLink({serviceId:t,
sessionId:E,accountLinkingEntryPoint:A.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+b.message}},function(f){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+f.message}})})};
WuK=function(t){switch(t.currentFlow){case 1:var E=t.flowParams;t=_.lJ(t.session,tL8,1);return Ezd.createOAuthFlow(E,t);case 2:case 3:return E=t.flowParams,t=_.lJ(t.session,pLJ,6),UJL.createStreamlinedFlow(E,t);default:return null}};
Afo=function(t,E){t===2&&(t=3);var p=0;xJ5.indexOf(t)!==-1&&(p=xJ5.indexOf(t)+1);for(t=p;t<xJ5.length;t++)if(E.has(xJ5[t]))return xJ5[t]};
mJ5=function(t){var E=t.serviceId;var p=t.sessionId;var U=t.config;var x=t.galService;var A=t.capabilities;var m=t.scopes;var b=t.loginHint;var f=t.callerState;var B=t.consentLanguageKeys;var R=t.linkName;var V=t.dynamicUrlParameters;var Q=t.partnerConfigMinReadTimestamp;t=U.dataUsageNoticeConfig?U.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return x.startLinkingSession({serviceId:E,sessionId:p,capabilities:A,scopes:m,loginHint:b,callerState:f,supportedFlows:Y5K(U.supportedFlows),completionUrl:U.completionUrl,
accountLinkingEntryPoint:U.accountLinkingEntryPoint,consentLanguageKeys:B,dataUsageNoticeConfig:t,linkName:R,dynamicUrlParameters:V,partnerConfigMinReadTimestamp:Q}).then(function(C){return new ML5(E,p,U,x,C,void 0,f,B,V,Q)})};
BN5=function(t,E,p){var U=(new bf8(E.localStorage)).getSession(t);if(U===null)return Promise.resolve({statusCode:2});ift(t,E.localStorage);var x=q59(U.linkingSessionSerialized),A=U.googleScopesString!==""&&U.googleScopesString!==void 0?new Set(U.googleScopesString.split(",")):void 0,m=U.partnerConfigMinReadTimestampSerialized?Hf8(U.partnerConfigMinReadTimestampSerialized):void 0;return fKL(new ML5(t,U.sessionId,E,p,x,A,U.callerState,U.consentLanguageKeys,U.dynamicUrlParameters,m),U.currentFlow,U.consentLanguageKeys)};
oh5=function(t,E){E=new bf8(E);E.storage!==null&&E.storage.set("SAVED_SESSION",t)};
ift=function(t,E){E=new bf8(E);if(E.storage!==null){var p=E.storage.get("SAVED_SESSION");p!==void 0&&p.serviceId===t&&E.storage.remove("SAVED_SESSION")}};
Y5K=function(t){var E=new Set;t=_.M(t);for(var p=t.next();!p.done;p=t.next())p=p.value,p!==1&&wLg.has(p)&&E.add(wLg.get(p));return E};
yjJ=function(t,E){E!==void 0&&(t.callerState=E);return t};
RFb=function(t){switch(t){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
CCb=function(t){return new VLb(t,new Q4t(t))};
k2C=function(t,E){E=E===void 0?!1:E;var p=document.createElement("div");t&&(p.style.transform="scaleX(-1)");p.style.backgroundColor=E?"rgba(138,180,248,.24)":"#e8f0fe";p.style.height="4px";p.style.overflow="hidden";p.style.position="absolute";p.style.top="0";p.style.width="100%";p.style.zIndex="1500";p.setAttribute("aria-label","Loading");p.setAttribute("aria-live","polite");t=document.createElement("style");t.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  }";
p.appendChild(t);t=j4K();t.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";t.style.left="-145.166611%";var U=rf8(E);U.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";t.appendChild(U);p.appendChild(t);t=j4K();t.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";t.style.left="-54.888891%";E=rf8(E);E.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
t.appendChild(E);p.appendChild(t);return p};
j4K=function(){var t=document.createElement("div");t.style.height="100%";t.style.position="absolute";t.style.transformOrigin="top left";t.style.width="100%";return t};
rf8=function(t){var E=document.createElement("span");E.style.borderTop=t?"4px solid #669df6":"4px solid #4285f4";E.style.display="inline-block";E.style.position="absolute";E.style.width="100%";return E};
dJg=function(t){return t==null?void 0:_.W9p(t).valueOf()};
gzb=function(t){var E=document.body,p=!1,U=function(){p||(p=!0,u$t(x,A),setTimeout(function(){E.removeChild(A);E.removeChild(x)},150))},x=Jf5(t,getComputedStyle(E).direction==="rtl",U),A=IKe(U);
u$t(x,A);E.appendChild(A);E.appendChild(x);window.requestAnimationFrame(function(){A.style.opacity="1";x.style.opacity="1";x.style.transform="translate(-50%, -50%) scale(1)";x.children[0].focus()})};
Jf5=function(t,E,p){var U=document.createElement("div");U.style.position="fixed";U.style.alignItems="center";U.style.backgroundColor=t?"rgb(32, 33, 36)":"white";U.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";U.style.display="flex";U.style.flexDirection="column";U.style.justifyContent="center";U.style.left="50%";U.style.top="50%";U.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";U.style.zIndex="2002";document.body.clientWidth>=
660?(U.style.borderRadius="8px",U.style.minHeight="220px",U.style.maxHeight="90%",U.style.maxWidth="90%",U.style.minWidth="540px"):(U.style.height="100%",U.style.width="100%");U.setAttribute("aria-label","Error");U.setAttribute("aria-modal","true");U.setAttribute("role","alertdialog");U.addEventListener("keydown",function(A){A.key==="Escape"&&p()});
E=ZfC(t,E,p);U.appendChild(Ofl(E));U.appendChild(E);var x=document.createElement("img");x.src=t?"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";x.style.height="72px";x.style.width="72px";x.style.color="#9aa0a6";x.setAttribute("alt","");U.appendChild(x);x=document.createElement("h1");x.textContent="Something went wrong.  Try again.";
x.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";x.style.lineHeight="24px";x.style.fontSize="16px";x.style.textAlign="center";x.style.letterSpacing="0.1px";x.style.color=t?"rgb(232,234,237)":"#3c4043";U.appendChild(x);U.appendChild(Ofl(E));return U};
ZfC=function(t,E,p){var U=document.createElement("button");U.style.backgroundColor="transparent";U.style.border="none";U.style.borderRadius="50%";U.style.cursor="pointer";U.style.outline="none";U.style.padding="12px";U.setAttribute("aria-label","Close dialog");U.style.position="absolute";U.style.top="0";E?U.style.right="0":U.style.left="0";U.addEventListener("focus",function(){U.style.backgroundColor=t?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
U.addEventListener("blur",function(){U.style.backgroundColor="transparent"});
U.addEventListener("mouseenter",function(){U.style.backgroundColor=t?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
U.addEventListener("mouseleave",function(){U.style.backgroundColor="transparent"});
U.addEventListener("click",p);U.addEventListener("keydown",function(x){x.key!=="Enter"&&x.key!=="Space"||p()});
E=document.createElement("img");E.src=t?"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";E.style.display="block";E.style.height="24px";E.style.width="24px";E.setAttribute("alt","");U.appendChild(E);return U};
Ofl=function(t){var E=document.createElement("div");E.setAttribute("tabindex","0");E.setAttribute("aria-hidden","true");E.addEventListener("focus",function(){return void t.focus()});
return E};
IKe=function(t){var E=document.createElement("div");E.style.backgroundColor="rgba(32,33,36,0.6)";E.style.bottom="0";E.style.left="0";E.style.position="fixed";E.style.right="0";E.style.top="0";E.style.transition=" opacity 150 ms linear";E.style.zIndex="2001";E.addEventListener("click",t);return E};
u$t=function(t,E){E.style.opacity="0";t.style.opacity="0";t.style.transform="translate(-50%, -50%) scale(0.8)"};
XLo=function(t,E){t.sandbox&&t.sandbox.add&&(t.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),t.sandbox.add("allow-downloads"));t.src=E};
kG=function(t){this.JSC$19771_value_=void 0;this.childNodes_={};if(t){var E=_.hMf(t);t=_.Zv(t);for(var p=0;p<E.length;p++)this.set(E[p],t[p])}};
dr=function(t){hFJ.call(this,t)};
lKt=function(t,E){E=E===void 0?!1:E;this.parsedImageUrl_=null;t instanceof aKg||(eFg==void 0&&(eFg=new FD5),t=eFg.parse(t.toString(),E));t=this.parsedImageUrl_=t;t.JSC$19796_parsedOptions_==void 0&&((E=t.getOptions())||(E=""),t.JSC$19796_parsedOptions_=(new zFd).parse(E));hFJ.call(this,t.JSC$19796_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;t=this.parsedImageUrl_;E=t.uri_.JSC$10308_port_;this.JSC$19798_domain_=t.uri_.JSC$10308_domain_+(E?":"+E:"");this.JSC$19798_query_=
this.parsedImageUrl_.uri_.JSC$10308_queryData_.toString()};
uT=function(t){_.Sv.call(this,"upload");this.opts.query=t};
G29=function(){return _.t9.apply(0,arguments).flat().filter(function(t){return t}).join(";")};
NNC=function(){return UeJ(nz5,G29.apply(null,_.KB(_.t9.apply(0,arguments))))};
DJC=function(t){this.mode=4;this.data=t;this.parsedData=[];t=0;for(var E=this.data.length;t<E;t++){var p=[],U=this.data.charCodeAt(t);U>65536?(p[0]=240|(U&1835008)>>>18,p[1]=128|(U&258048)>>>12,p[2]=128|(U&4032)>>>6,p[3]=128|U&63):U>2048?(p[0]=224|(U&61440)>>>12,p[1]=128|(U&4032)>>>6,p[2]=128|U&63):U>128?(p[0]=192|(U&1984)>>>6,p[1]=128|U&63):p[0]=U;this.parsedData.push(p)}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))};
s4l=function(t){this.typeNumber=0;this.errorCorrectLevel=t===void 0?2:t;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
J_=function(t,E){if(t.length==void 0)throw Error("Kk`"+t.length+"`"+E);for(var p=0;p<t.length&&t[p]==0;)p++;this.num=Array(t.length-p+E);for(E=0;E<t.length-p;E++)this.num[E]=t[E+p]};
LDK=function(t,E){this.totalCount=t;this.dataCount=E};
PCe=function(){this.buffer=[];this.length=0};
TNt=function(){var t=!1;if(_.dKt()){t=_.V_();var E="";_.Il_()?(E=/Windows (?:NT|Phone) ([0-9.]+)/,E=(t=E.exec(t))?t[1]:"0.0"):_.XO()?(E=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,E=(t=E.exec(t))&&t[1].replace(/_/g,".")):_.JD$()?(E=/Mac OS X ([0-9_.]+)/,E=(t=E.exec(t))?t[1].replace(/_/g,"."):"10"):_.H8(_.V_(),"KaiOS")?(E=/(?:KaiOS)\/(\S+)/i,E=(t=E.exec(t))&&t[1]):_.dKt()?(E=/Android\s+([^\);]+)(\)|;)/,E=(t=E.exec(t))&&t[1]):_.gL8()&&(E=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,E=(t=E.exec(t))&&t[1]);t=
E||""}return t};
yfl=function(t,E){this.JSC$19827__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(E)for(var p in E)this.JSC$19827__htOption[p]=E[p];this.JSC$19827__htOption.useSVG&&(ozb=WDt);this.JSC$19827__android=TNt();this.JSC$19827__el=t;this._oQRCode=null;this._oDrawing=new ozb(this.JSC$19827__el,this.JSC$19827__htOption);this.JSC$19827__htOption.text&&(t=this.JSC$19827__htOption.text,this._oQRCode=new s4l(this.JSC$19827__htOption.correctLevel),$Jd(this._oQRCode,
t),E=this._oQRCode,KD9(E,!1,vz8(E)),this.JSC$19827__el.title=t,this._oDrawing.draw(this._oQRCode),this.makeImage())};
S5e=function(t,E,p,U,x){t.save();var A=new Path2D;A.roundRect(E,p,U*7,U*7,U*2);A.roundRect(E+U,p+U,U*5,U*5,U*1.3);A.roundRect(E+2*U,p+2*U,U*3,U*3,U);t.clip(A,"evenodd");t.fillStyle=x;t.fillRect(0,0,t.canvas.width,t.canvas.height);t.restore()};
Iw=function(){this.redactEnabled_=!0};
gr=function(t,E,p,U,x){this.JSC$19849_channel_=t;this.JSC$19849_channelDebug_=E;this.sid_=p;this.JSC$19849_rid_=U;this.JSC$19849_retryId_=x||1;this.JSC$19849_eventHandler_=new _.Kg(this);this.timeout_=45E3;this.JSC$19849_extraHeaders_=null;this.JSC$19849_successful_=!1;this.JSC$19849_postData_=this.JSC$19849_requestUri_=this.JSC$19849_baseUri_=this.JSC$19849_type_=this.JSC$19849_requestStartTime_=this.JSC$19849_watchDogTimeoutTime_=this.JSC$19849_watchDogTimerId_=null;this.JSC$19849_pendingMessages_=
[];this.JSC$19849_xmlHttp_=null;this.JSC$19849_xmlHttpChunkStart_=0;this.JSC$19849_lastError_=this.JSC$19849_verb_=null;this.JSC$19849_lastStatusCode_=-1;this.JSC$19849_cancelled_=!1;this.JSC$19849_readyStateChangeThrottleMs_=0;this.JSC$19849_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new cft};
tU7=function(t,E){var p=new Iw;p.debug("TestLoadImage: loading "+t);if(_.Ui.Image){var U=new Image;U.onload=_.GF(ZL,p,"TestLoadImage: loaded",!0,E,U);U.onerror=_.GF(ZL,p,"TestLoadImage: error",!1,E,U);U.onabort=_.GF(ZL,p,"TestLoadImage: abort",!1,E,U);U.ontimeout=_.GF(ZL,p,"TestLoadImage: timeout",!1,E,U);_.Ui.setTimeout(function(){if(U.ontimeout)U.ontimeout()},1E4);
U.src=t}else E(!1)};
ERo=function(t,E){var p=new Iw,U=new AbortController,x=setTimeout(function(){U.abort();ZL(p,"TestPingServer: timeout",!1,E)},1E4);
fetch(t,{signal:U.signal}).then(function(A){clearTimeout(x);A.ok?ZL(p,"TestPingServer: ok",!0,E):ZL(p,"TestPingServer: server error",!1,E)}).catch(function(){clearTimeout(x);
ZL(p,"TestPingServer: error",!1,E)})};
ZL=function(t,E,p,U,x){try{t.debug(E),x&&(x.onload=null,x.onerror=null,x.onabort=null,x.ontimeout=null),U(p)}catch(A){}};
Ult=function(){this.JSC$19863_parser_=new p3b};
xlb=function(t,E,p){return p&&p.internalChannelParams?p.internalChannelParams[t]||E:E};
O3=function(t){this.serverVersion_=0;this.JSC$19868_outgoingMaps_=[];this.JSC$19868_channelDebug_=new Iw;this.JSC$19868_hostPrefix_=this.JSC$19868_backChannelUri_=this.JSC$19868_forwardChannelUri_=this.JSC$19868_path_=this.JSC$19868_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19868_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19868_extraHeaders_=null;this.JSC$19868_nextMapId_=this.JSC$19868_nextRid_=0;this.JSC$19868_failFast_=xlb("failFast",
!1,t);this.enableStreaming_=this.JSC$19868_deadBackChannelTimerId_=this.JSC$19868_backChannelTimerId_=this.JSC$19868_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19868_lastPostResponseArrayId_=this.JSC$19868_lastArrayId_=-1;this.JSC$19868_backChannelAttemptId_=this.JSC$19868_backChannelRetryCount_=this.JSC$19868_forwardChannelRetryCount_=0;this.JSC$19868_baseRetryDelayMs_=xlb("baseRetryDelayMs",5E3,t);this.JSC$19868_retryDelaySeedMs_=
xlb("retryDelaySeedMs",1E4,t);this.JSC$19868_forwardChannelMaxRetries_=xlb("forwardChannelMaxRetries",2,t);this.JSC$19868_forwardChannelRequestTimeoutMs_=xlb("forwardChannelRequestTimeoutMs",2E4,t);this.JSC$19868_xmlHttpFactory_=t&&t.xmlHttpFactory||void 0;this.networkTestUrl_=t&&t.networkTestUrl||void 0;this.usesFetchStreams_=t&&t.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19868_supportsCrossDomainXhrs_=t&&t.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=
new A2t(t&&t.concurrentRequestLimit);this.wireCodec_=new Ult;this.fastHandshake_=t&&t.fastHandshake||!1;this.encodeInitMessageHeaders_=t&&t.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19868_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=t&&t.blockingHandshake||!1;t&&t.disableRedact&&this.JSC$19868_channelDebug_.disableRedact();t&&t.forceLongPolling&&(this.allowStreamingMode_=
!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&t&&t.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;t&&t.longPollingTimeout&&t.longPollingTimeout>0&&(this.longPollingTimeout_=t.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
YUJ=function(){};
Xl=function(t,E){if(t instanceof Xl)this.array_=t.array_;else{var p;if(p=_.LO(t))a:{for(var U=p=0;U<t.length;U++){if(!_.LO(t[U])||p>0&&t[U].length!=p){p=!1;break a}for(var x=0;x<t[U].length;x++)if(typeof t[U][x]!=="number"){p=!1;break a}p==0&&(p=t[U].length)}p=p!=0}if(p)this.array_=_.Dl(t);else if(t instanceof _.nq)this.array_=MUL(t.height,t.width);else if(typeof t==="number"&&typeof E==="number"&&t>0&&E>0)this.array_=MUL(t,E);else throw Error("Rk");}this.size_=new _.nq(this.array_[0].length,this.array_.length)};
h_=function(t,E){if(typeof t!=="function")throw Error("Nk");return _.Ui.setTimeout(function(){t()},E)};
aw=function(){};
b08=function(t,E,p,U,x){(new aw).debug("TestLoadImageWithRetries: "+x);if(U==0)p(!1);else{var A=x||0;U--;mlL(t,E,function(m){m?p(!0):_.Ui.setTimeout(function(){b08(t,E,p,U,A)},A)})}};
mlL=function(t,E,p){var U=new aw;U.debug("TestLoadImage: loading "+t);var x=new Image;x.onload=function(){try{U.debug("TestLoadImage: loaded"),i05(x),p(!0)}catch(A){}};
x.onerror=function(){try{U.debug("TestLoadImage: error"),i05(x),p(!1)}catch(A){}};
x.onabort=function(){try{U.debug("TestLoadImage: abort"),i05(x),p(!1)}catch(A){}};
x.ontimeout=function(){try{U.debug("TestLoadImage: timeout"),i05(x),p(!1)}catch(A){}};
_.Ui.setTimeout(function(){if(x.ontimeout)x.ontimeout()},E);
x.src=t};
i05=function(t){t.onload=null;t.onerror=null;t.onabort=null;t.ontimeout=null};
qU8=function(){this.front_=[];this.back_=[]};
eX=function(t){this.JSC$19920_map_=new _.yO;this.size=0;t&&this.addAll(t)};
H0d=function(t,E){this.action=t;this.params=E||{}};
fNe=function(t,E){_.PQ.call(this);this.delay_=new _.ov(this.JSC$19994_onTick_,0,this);_.ed(this,this.delay_);this.JSC$19992_interval_=5E3;this.retryCount=this.nextTickTime_=0;if(typeof t==="function")E&&(t=(0,_.Tg)(t,E));else if(t&&typeof t.handleEvent==="function")t=(0,_.Tg)(t.handleEvent,t);else throw Error("ya");this.JSC$19994_listener_=t};
Fl=function(t,E,p,U,x,A,m,b,f,B,R,V,Q,C,d,I){var O=this;p=p===void 0?!1:p;U=U===void 0?function(){return""}:U;
x=x===void 0?!1:x;A=A===void 0?!1:A;m=m===void 0?!1:m;b=b===void 0?function(){return _.gu({})}:b;
f=f===void 0?!1:f;R=R===void 0?!1:R;V=V===void 0?!1:V;Q=Q===void 0?!1:Q;C=C===void 0?!1:C;this.JSC$19995_pathPrefix_=t;this.defaultQueryParams_=E;this.pubsub_=new _.oa;this.retryLogger_=I;this.reconnectTimer_=(this.isInitialReconnectTimer_=!!d)?d(function(){O.safeReconnect_()}):new fNe(this.safeReconnect_,this);
this.JSC$19995_channel_=null;this.JSC$19995_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19995_pendingMessages_=[];this.enableAsyncTest_=p;this.JSC$19995_getXsrfToken_=U;this.useAsyncBrowserChannelHandler_=A;this.getAuthorizationHeader_=b;this.getAuthorizationHeaderSync_=B;this.enableCachedUpdateAuthorizationHeader_=m;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.gu();this.enableLoungeTokenRefresh_=x;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=
f;this.disableMdxAuthForNonPlaybackMessages_=R;this.disableMdxAuthForAdMessages_=V;this.enableMdxAuthForConnectionOnly_=Q;this.disableMdxAuthForShortsMessages_=C;this.JSC$19995_channelOpenedCounter=new Bzd;this.JSC$19995_channelClosedCounter=new w3L;this.channelMessageSentCounter=new R9l;this.JSC$19995_channelMessageReceivedCounter=new VUo;this.JSC$19995_channelErrorCounter=new QGK;this.pendingMapsOnClosedCounter=new Cc7;this.undeliveredMapsOnClosedCounter=new jGK};
r28=function(t){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;t=t||document.location.href;var E=Number(_.ds(t)[4]||null)||"";E&&(this.port=":"+E);this.domain=_.ua(t)||"";t=_.V_();t.search("MSIE")>=0&&_.B8(t.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
z_=function(t){t=t||{};this.name=t.name||"";this.id=t.id||t.screenId||"";this.token=t.token||t.loungeToken||"";this.uuid=t.uuid||t.dialId||"";this.idType=t.screenIdType||"normal";this.secret=t.screenIdSecret||""};
kIl=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var E=Math.random()*16|0;return(t=="x"?E:E&3|8).toString(16)})};
dlK=function(t){return _.vx(t,function(E){return{key:E.id,name:E.name}})};
uMK=function(t,E){return E3(t,function(p){return p||E?!p!=!E?!1:p.id==E.id:!0})};
lT=function(t,E){return E3(t,function(p){return J2C(p,E)})};
X3o=function(){var t=INo(),E=gR5();if(Z0C()){var p=t,U=_.zjl(p,E);U<0&&_.alY(p,-(U+1),0,E)}t=O0d(t);if(t.length==0)try{_.GVK("remote_sid")}catch(x){}else try{_.KR("remote_sid",t.join(","),-1)}catch(x){}};
INo=function(){var t=_.WL("yt-remote-connected-devices")||[];t.sort(_.FJi);return t};
O0d=function(t){if(t.length==0)return[];var E=t[0].indexOf("#"),p=E==-1?t[0]:t[0].substring(0,E);return _.vx(t,function(U,x){return x==0?U:U.substring(p.length)})};
h9e=function(t){_.o4("yt-remote-connected-devices",t,86400)};
gR5=function(){if(aNK)return aNK;var t=_.WL("yt-remote-device-id");t||(t=kIl(),_.o4("yt-remote-device-id",t,31536E3));for(var E=INo(),p=1,U=t;_.zt(E,U);)p++,U=t+"#"+p;return aNK=U};
e9l=function(){return _.WL("yt-remote-session-browser-channel")};
Z0C=function(){return _.WL("yt-remote-session-screen-id")};
lN8=function(t){t.length>5&&(t=t.slice(t.length-5));var E=_.vx(Fe8(),function(U){return U.loungeToken}),p=_.vx(t,function(U){return U.loungeToken});
_.NjO(p,function(U){return!_.zt(E,U)})&&z97();
_.o4("yt-remote-local-screens",t,31536E3)};
Fe8=function(){return _.WL("yt-remote-local-screens")||[]};
z97=function(){_.o4("yt-remote-lounge-token-expiration",!0,86400)};
GIt=function(t){t||(_.$z("yt-remote-session-screen-id"),_.$z("yt-remote-session-video-id"));X3o();t=INo();_.NK(t,gR5());h9e(t)};
Nzt=function(){nRl();return G_?!!G_.get("yt-remote-use-staging-server"):!1};
nRl=function(){if(!G_){var t=_.AF();t&&(G_=new _.tF(t))}};
Pct=function(t,E,p,U,x){p=p===void 0?function(){return""}:p;
var A=function(){return new Fl(n8(t,"/bc"),E,!1,p,U)};
return _.r("enable_mdx_web_channel_desktop")?new Dlg(function(){return new sGd(n8(t,"/wc"),E,p)}):new Leg(A,x)};
$lJ=function(){var t=Tzt;oRl();NI.push(t);We9()};
DL=function(t,E){oRl();var p=Ket(t,String(E));NI.length==0?vRC(p):(We9(),_.QE(NI,function(U){U(p)}))};
s3=function(t){DL("CP",t)};
oRl=function(){NI||(NI=_.ws("yt.mdx.remote.debug.handlers_")||[],_.Oy("yt.mdx.remote.debug.handlers_",NI))};
vRC=function(t){var E=(y25+1)%50;y25=E;SUt[E]=t;c2g||(c2g=E==49)};
We9=function(){var t=NI;if(SUt[0]){var E=c2g?y25:-1,p={};do p={record$jscomp$15:void 0},E=(E+1)%50,p.record$jscomp$15=SUt[E],_.QE(t,function(U){return function(x){x(U.record$jscomp$15)}}(p));
while(E!=y25);SUt=Array(50);y25=-1;c2g=!1}};
Ket=function(t,E){var p=(Date.now()-t5L)/1E3;p.toFixed&&(p=p.toFixed(3));var U=[];U.push("[",p+"s","] ");U.push("[","yt.mdx.remote","] ");U.push(t+": "+E,"\n");return U.join("")};
Pz=function(t){L8.call(this);this.JSC$20024_logName_=t;this.screens=[]};
ow=function(t){Pz.call(this,"LocalScreenService");this.JSC$20031_http_=t;this.loungeTokenRefreshTimer_=NaN;T_(this);this.info("Initializing with "+E85(this.screens))};
Wz=function(t,E){E=E===void 0?!1:E;Pz.call(this,"ScreenService");this.JSC$20037_http_=t;this.disableAutomaticScreenCache_=E;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};puJ(this)};
$G=function(t,E,p){L8.call(this);this.JSC$20041_logName_=p;this.JSC$20041_screenService_=t;this.receiver_=E;this.screen_=null};
Qob=function(t,E,p){p.disableCastApi?K8("Cannot initialize because disabled by Mdx config."):Udt()?xd7(t,p)&&(AX8(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?YlC(E):(window.__onGCastApiAvailable=function(U,x){U?YlC(E):(vz("Failed to load cast API: "+x),M5L(!1),AX8(!1),_.$z("yt-remote-cast-available"),_.$z("yt-remote-cast-receiver"),mdC(),E(!1))},p.loadCastApiSetupScript?_.xT(b4l):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
i4g()>=60&&ql7():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?H4l():i4g()>=89?fwJ():(Bne(),wu8(RvK.map(V57))))):K8("Cannot initialize because not running Chrome")};
mdC=function(){K8("dispose");var t=yw();t&&t.dispose();_.Oy("yt.mdx.remote.cloudview.instance_",null);CRd(!1);_.dAO(jod);jod.length=0};
rXt=function(){return!!_.WL("yt-remote-cast-installed")};
kho=function(){var t=_.WL("yt-remote-cast-receiver");return t?t.friendlyName:null};
ddo=function(){K8("clearCurrentReceiver");_.$z("yt-remote-cast-receiver")};
uRt=function(){return rXt()?yw()?yw().getCastSession():(vz("getCastSelector: Cast is not initialized."),null):(vz("getCastSelector: Cast API is not installed!"),null)};
Iw8=function(t,E){JXo()?yw().setConnectedScreenStatus(t,E):vz("setConnectedScreenStatus called before ready.")};
Udt=function(){var t=_.V_().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.Gm||t};
xd7=function(t,E){var p=!1;yw()||(t=new SX(t,E),t.subscribe("yt-remote-cast2-availability-change",function(U){_.o4("yt-remote-cast-available",U);p8("yt-remote-cast2-availability-change",U)}),t.subscribe("yt-remote-cast2-receiver-selected",function(U){K8("onReceiverSelected: "+U.friendlyName);
_.o4("yt-remote-cast-receiver",U);p8("yt-remote-cast2-receiver-selected",U)}),t.subscribe("yt-remote-cast2-receiver-resumed",function(U){K8("onReceiverResumed: "+U.friendlyName);
_.o4("yt-remote-cast-receiver",U);p8("yt-remote-cast2-receiver-resumed",U)}),t.subscribe("yt-remote-cast2-session-change",function(U){K8("onSessionChange: "+g8g(U));
U||_.$z("yt-remote-cast-receiver");p8("yt-remote-cast2-session-change",U)}),_.Oy("yt.mdx.remote.cloudview.instance_",t),p=!0);
K8("cloudview.createSingleton_: "+p);return p};
yw=function(){return _.ws("yt.mdx.remote.cloudview.instance_")};
YlC=function(t){M5L(!0);AX8(!1);yw().init(!1,function(E){E?(CRd(!0),_.u5O("yt-remote-cast2-api-ready")):(vz("Failed to initialize cast API."),M5L(!1),_.$z("yt-remote-cast-available"),_.$z("yt-remote-cast-receiver"),mdC());t(E)})};
K8=function(t){DL("cloudview",t)};
vz=function(t){DL("cloudview",t)};
M5L=function(t){K8("setCastInstalled_ "+t);_.o4("yt-remote-cast-installed",t)};
JXo=function(){return!!_.ws("yt.mdx.remote.cloudview.apiReady_")};
CRd=function(t){K8("setApiReady_ "+t);_.Oy("yt.mdx.remote.cloudview.apiReady_",t)};
AX8=function(t){_.Oy("yt.mdx.remote.cloudview.initializing_",t)};
cz=function(t){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(t)};
n8e=function(t){nRl();if(!G_||!G_.get("yt-remote-disable-remote-module-for-dev")){t=_.qO("MDX_CONFIG")||t;Ist();X3o();Z48||(Z48=new r28(t?t.loungeApiHost:void 0),Nzt()&&(Z48.basePath="/api/loungedev"));tR||(tR=_.ws("yt.mdx.remote.deferredProxies_")||[],_.Oy("yt.mdx.remote.deferredProxies_",tR));O4t();var E=XuJ();if(!E){var p=new Wz(Z48,t?t.disableAutomaticScreenCache||!1:!1);_.Oy("yt.mdx.remote.screenService_",p);E=XuJ();var U={};t&&(U={appId:t.appId,disableDial:t.disableDial,theme:t.theme,loadCastApiSetupScript:t.loadCastApiSetupScript,
disableCastApi:t.disableCastApi,enableDialLoungeToken:t.enableDialLoungeToken,enableCastLoungeToken:t.enableCastLoungeToken,forceMirroring:t.forceMirroring});_.Oy("yt.mdx.remote.enableConnectWithInitialState_",t?t.enableConnectWithInitialState||!1:!1);Qob(p,function(A){A?hvt()&&Iw8(hvt(),"YouTube TV"):p.subscribe("onlineScreenChange",function(){p8("yt-remote-receiver-availability-change")})},U)}if(t&&!_.ws("yt.mdx.remote.initialized_")){_.Oy("yt.mdx.remote.initialized_",!0);
awo("Initializing: "+(0,_.id)(t));Ep.push(_.Ga("yt-remote-cast2-api-ready",function(){p8("yt-remote-api-ready")}));
Ep.push(_.Ga("yt-remote-cast2-availability-change",function(){p8("yt-remote-receiver-availability-change")}));
Ep.push(_.Ga("yt-remote-cast2-receiver-selected",function(){evl();p8("yt-remote-auto-connect","cast-selector-receiver")}));
Ep.push(_.Ga("yt-remote-cast2-receiver-resumed",function(){p8("yt-remote-receiver-resumed","cast-selector-receiver")}));
Ep.push(_.Ga("yt-remote-cast2-session-change",FdK));Ep.push(_.Ga("yt-remote-connection-change",function(A){A?Iw8(hvt(),"YouTube TV"):zve()||(Iw8(null,null),ddo())}));
Ep.push(_.Ga("yt-remote-cast2-session-failed",function(){p8("yt-remote-connection-failed")}));
U=lwK();t.isAuto&&(U.id+="#dial");var x=t.capabilities||[];x.length>0&&(U.capabilities=x);U.name=t.device;U.app=t.app;(t=t.theme)&&(U.theme=t);awo(" -- with channel params: "+(0,_.id)(U));U?(_.o4("yt-remote-session-app",U.app),_.o4("yt-remote-session-name",U.name)):(_.$z("yt-remote-session-app"),_.$z("yt-remote-session-name"));_.Oy("yt.mdx.remote.channelParams_",U);E.start();hvt()||GhL()}}};
Ddo=function(){var t=XuJ().instance_.$_gos();var E=Nnd();E&&pn()&&(uMK(t,E)||t.push(E));return dlK(t)};
so5=function(){var t=Ddo(),E=Nnd();E||(E=zve());return E3(t,function(p){return E&&J2C(E,p.key)?!0:!1})};
Nnd=function(){var t=hvt();if(!t)return null;var E=XuJ().getScreens();return lT(E,t)};
FdK=function(t){awo("remote.onCastSessionChange_: "+g8g(t));if(t){var E=Nnd();if(E&&E.id==t.id){if(Iw8(E.id,"YouTube TV"),t.idType=="shortLived"&&(t=t.token))Ld8&&(Ld8.token=t),(E=pn())&&E.setLoungeToken(t)}else E&&PR5(),TnL(t,1)}else pn()&&PR5()};
PR5=function(){JXo()?yw().stopSession():vz("stopSession called before API ready.");var t=pn();t&&(t.disconnect(1),o88(null))};
Wdd=function(){var t=pn();return t&&t.getProxyState()!=3?new Up(pn(),void 0):null};
awo=function(t){DL("remote",t)};
XuJ=function(){if(!$de){var t=_.ws("yt.mdx.remote.screenService_");$de=t?new Kde(t):null}return $de};
hvt=function(){return _.ws("yt.mdx.remote.currentScreenId_")};
v8K=function(t){_.Oy("yt.mdx.remote.currentScreenId_",t)};
evl=function(){_.Oy("yt.mdx.remote.connectData_",null)};
pn=function(){return _.ws("yt.mdx.remote.connection_")};
o88=function(t){var E=pn();evl();t||v8K("");_.Oy("yt.mdx.remote.connection_",t);tR&&(_.QE(tR,function(p){p(t)}),tR.length=0);
E&&!t?p8("yt-remote-connection-change",!1):!E&&t&&p8("yt-remote-connection-change",!0)};
zve=function(){var t=Z0C();if(!t)return null;var E=XuJ();if(!E)return null;E=E.getScreens();return lT(E,t)};
TnL=function(t,E){yXb?Ld8=t:(v8K(t.id),t=new xS(Z48,t,lwK(),_.ws("yt.mdx.remote.enableConnectWithInitialState_")||!1),t.connect(E,_.ws("yt.mdx.remote.connectData_")),t.subscribe("beforeDisconnect",function(p){p8("yt-remote-before-disconnect",p)}),t.subscribe("beforeDispose",function(){pn()&&o88(null)}),t.subscribe("browserChannelAuthError",function(){var p=Nnd();
p&&p.idType=="shortLived"&&(JXo()?yw().handleBrowserChannelAuthError():vz("refreshLoungeToken called before API ready."))}),o88(t))};
GhL=function(){var t=zve();t?(awo("Resume connection to: "+g8g(t)),TnL(t,0)):(GIt(),ddo(),awo("Skipping connecting because no session screen found."))};
O4t=function(){var t=lwK();if(_.Kq.isEmpty(t)){t=gR5();var E=_.WL("yt-remote-session-name")||"",p=_.WL("yt-remote-session-app")||"";t={device:"REMOTE_CONTROL",id:t,name:E,app:p,mdxVersion:3};t.authuser=String(_.qO("SESSION_INDEX","0"));(E=_.qO("DELEGATED_SESSION_ID"))&&(t.pageId=String(E));_.Oy("yt.mdx.remote.channelParams_",t)}};
lwK=function(){return _.ws("yt.mdx.remote.channelParams_")||{}};
Slb=function(){var t,E;return _.q(function(p){if(p.nextAddress==1)return(_.Ynj()||_.r("use_new_nwl"))&&_.psE().isNetworkAvailable()?p.yield(_.hF(),2):p.return();if(p.nextAddress!=3)return(t=p.yieldResult)?p.yield(w6l(t),3):p.return();E=p.yieldResult;if(!E.length)return p.return();E.forEach(function(U){var x={timestamp:U.timestamp};U=U.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:U.appShellAssetLoadReport,options:x}:U.clientError?{payloadName:"clientError",payload:U.clientError,
options:x}:void 0;U&&_.MW(U.payloadName,U.payload,U.options)});
E.length===100&&_.ir.addLowPriorityJob(Slb);_.Do(p)})};
Meg=function(t,E,p){p=p===void 0?!1:p;var U=Math.max(t.width,cXt);if(_.r("kevlar_watch_feed_big_thumbs")&&t.width>=1550-AR()&&t.height>=800)U-=teK;else if(t.width>=YS){var x=E2g+pst+M5;_.r("kevlar_watch_feed_big_thumbs")&&(x=UA7);U-=x}else U-=E2g;U=Math.min(U,xAd);x=240;p&&(x=380);E<.5624||(!_.r("kevlar_watch_flexy_disable_small_window_sizing")&&(t.height<630&&t.width>=657||t.height>=630&&t.width>=YS&&t.width<1327)?x=360:!_.r("kevlar_watch_flexy_disable_large_window_sizing")&&t.height>=630&&t.width>=
1327&&(x=480));var A=Math.min(U*E,t.height-(56+AJd+Ynb));A=Math.max(A,x);E<1?U=A/E:t.width>=YS&&(U=Meg(t,.5625,p).width);return new _.nq(Math.round(U),Math.round(A))};
mAo=function(t){if(t.playerResponse){if(t=t.playerResponse,t.messages&&t.messages.length>0&&(t=t.messages.find(function(E){return!(!E||!E.mealbarPromoRenderer)}))&&t.mealbarPromoRenderer)return t.mealbarPromoRenderer}else if(t.response&&(t=t.response)&&t.overlay&&t.overlay.mealbarPromoRenderer)return t.overlay.mealbarPromoRenderer};
byK=function(t){if(t.response){var E=t.response;if(E&&E.overlay&&E.overlay.tooltipRenderer)return E.overlay.tooltipRenderer}if(t.playerResponse&&(t=t.playerResponse,t.messages&&t.messages.length>0&&(t=t.messages.find(function(p){return!(!p||!p.tooltipRenderer)}))&&t.tooltipRenderer))return t.tooltipRenderer};
iyL=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
qnd=function(){var t,E,p;return _.q(function(U){switch(U.nextAddress){case 1:return U.yield(_.mP.getInstance(),2);case 2:t=U.yieldResult;if(!t){E=void 0;U.jumpTo(3);break}return U.yield(t.get("lmqf"),4);case 4:E=U.yieldResult;case 3:switch((p=E)||(p="SD"),p){case "HD":return U.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return U.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return U.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return U.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return U.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
Hyg=function(t){var E,p,U;return _.q(function(x){if(x.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.r("disable_av1_setting")){var A=window.localStorage["yt-player-av1-pref"];A=A==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":A==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else A="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(E=t===A)return x.jumpTo(2);U=p=t;return x.yield(qnd(),3)}x.nextAddress!=2&&(E=U===x.yieldResult);return x.return(E)})};
B4g=function(){var t=_.z3("user_engagement_experiments_rate_limit_ms"),E=f4e.get("last-user-engagement-exp-trigger-timestamp");return!E||(0,_.eu)()>=E+t?(f4e.set("last-user-engagement-exp-trigger-timestamp",(0,_.eu)()),!0):!1};
mN=function(t,E,p,U,x){E=E===void 0?null:E;p=p===void 0?null:p;U=U===void 0?null:U;x=x===void 0?null:x;t={youThereEventType:t};p&&(t.lactThresholdMs=p.lactThresholdMs,t.mediaPosSec=p.promptDelaySec,t.lactServerRequestMs=p.lactServerRequestMs,t.triggerReason=p.triggerReason);x!=null&&(t.renderingMediaPosSec=Math.round(x));E||(E=_.yL());E&&(t.clientScreenNonce=E);U&&(t.clientPlaybackNonce=U);_.MW("youThere",t)};
RUd=function(t){if(!wsd&&(t=t||_.qO("ZWIEBACK_PING_URLS"))&&t.length){wsd=!0;for(var E=0;E<t.length;E++)_.jT(t[E])}};
VeC=function(t){var E=0;t.indexOf("h")!=-1&&(t=t.split("h"),E=t[0]*60*60,t=t[1]);t.indexOf("m")!=-1&&(t=t.split("m"),E=t[0]*60+E,t=t[1]);t.indexOf("s")!=-1?(t=t.split("s"),E=t[0]*1+E):E=t*1+E;return E};
CzK=function(t){if(_.Kq.get(_.qO("PLAYER_VARS",{}),"privembed",!1)!="1"){t&&YRC();try{QCL().then(function(){},function(){}),_.NO(CzK,18E5)}catch(E){_.fR(E)}}};
jC7=function(){var t=_.nF(),E=t.getFlag(119),p=window.devicePixelRatio>1;document.body&&_.ud(document.body,"exp-invert-logo")&&(p&&!_.ud(document.body,"inverted-hdpi")?_.RC(document.body,"inverted-hdpi"):!p&&_.ud(document.body,"inverted-hdpi")&&_.w4(document.body,"inverted-hdpi"));E!=p&&(_.N_(0,119,p),t.save())};
rJ5=function(){_.z3("service_worker_push_logged_out_prompt_watches")!=-1&&iT("WatchCount").then(function(t){t>=100||uxt("WatchCount",t+1)})};
kOL=function(t){return t.filter(function(E){return"ypcGetCartEndpoint"in E||"ypcFixInstrumentEndpoint"in E})};
dA7=function(t){return t.filter(function(E){return!_.k(E,_.uNX)})};
u5l=function(t){switch(t){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}};
JJ9=function(t,E,p){var U=_.AJ(p);t&&E&&U&&t.getPlayerPromise().then(function(x){_.ini(U)&&_.mL();(new _.bs(x)).executeCommand(U,E);_.r("continue_playback_on_desktop_companion_click")||x.pauseVideo()})};
I4o=function(t){var E=_.k1(),p;if(p=_.ws("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var U;p=(U=p())==null?void 0:U.layoutId}else p=null;JJ9(E,p,t)};
g2J=function(t){var E=_.k1(),p;if(p=_.ws("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var U;p=(U=p())==null?void 0:U.layoutId}else p=null;JJ9(E,p,t)};
bM=function(t,E){var p=t<0?"-":"";t=Math.abs(t);var U=Math.floor(t/3600),x=Math.floor(t)%3600,A=Math.floor(x/60);x=Math.floor(x)%60;var m="";(E===void 0?0:E)&&(m="."+Math.round((t-Math.floor(t))*10));return U>0?p+U+":"+(A<10?"0"+A:""+A)+":"+(x<10?"0"+x:""+x)+m:p+A+":"+(x<10?"0"+x:""+x)+m};
Zyo=function(t){var E=t.match(/[^0-9:\.]/g);if(E&&E.length>0)return null;t=t.split(":");if(t.length===0||t.length>3)return null;E=1;for(var p=0;t.length>0;){var U=t.pop();if(U===void 0)break;var x=Number(U);if(U===""||isNaN(x))return null;p+=x*E;E*=60}return p};
OyK=function(t,E,p,U){t=Math.max(p,t);E=Math.min(E,U-p);t+E>U?(p=U,t=p-E):p=t+E;return{start:t,end:p}};
XsL=function(t,E,p,U,x,A){t<p?t=p:t+x>U&&(t=U-x);E>U&&(E=U);E=Math.min(t+A,Math.max(t+x,E));return{start:t,end:E}};
hUL=function(t,E,p,U,x,A){E>U?E=U:E-x<p&&(E=p+x);t<p&&(t=p);t=Math.min(E-x,Math.max(E-A,t));return{start:t,end:E}};
a4J=function(t,E){if(E)return"ytCardViewModelCardSelected";switch(t){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
N47=function(t,E){var p=_.Ql(t,{}),U=eUg("top",E),x=eUg("bottom",E),A=eUg("left",E),m=eUg("right",E);return _.zO({top:function(){return iM(p().position,U)},
bottom:function(){return iM(p().position,x)},
left:function(){return iM(p().position,A)},
right:function(){return iM(p().position,m)},
position:function(){return iM(p().positionType,FhL)},
height:function(){return iM(p().height,q5)},
width:function(){return iM(p().width,q5)},
"min-width":function(){return iM(p().minWidth,q5)},
"min-height":function(){return iM(p().minHeight,q5)},
"max-width":function(){return iM(p().maxWidth,q5)},
"max-height":function(){return iM(p().maxHeight,q5)},
"aspect-ratio":function(){return iM(p().aspectRatio,String)},
"margin-top":function(){return iM(p().margin,U)},
"margin-bottom":function(){return iM(p().margin,x)},
"margin-left":function(){return iM(p().margin,A)},
"margin-right":function(){return iM(p().margin,m)},
"padding-top":function(){return iM(p().padding,U)},
"padding-bottom":function(){return iM(p().padding,x)},
"padding-left":function(){return iM(p().padding,A)},
"padding-right":function(){return iM(p().padding,m)},
"flex-direction":function(){return iM(p().flexDirection,zU7)},
"justify-content":function(){return iM(p().justifyContent,l4J)},
"align-items":function(){return iM(p().alignItems,GO5)},
"flex-grow":function(){return iM(p().flexGrow,String)},
"flex-shrink":function(){return iM(p().flexShrink,String)},
"flex-basis":function(){return iM(p().flexBasis,q5)},
"align-self":function(){return iM(p().alignSelf,GO5)},
"flex-wrap":function(){return iM(p().flexWrap,n2C)},
"align-content":function(){return iM(p().alignContent,GO5)}})};
iM=function(t,E){return t!==void 0?E(t):void 0};
n2C=function(t){switch(t){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
FhL=function(t){switch(t){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
GO5=function(t){switch(t){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"}};
l4J=function(t){switch(t){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"}};
zU7=function(t){switch(t){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"}};
eUg=function(t,E){var p=E==="rtl";switch(t){case "top":var U=DA9;break;case "bottom":U=sC7;break;case "left":U=Lhl;break;default:U=Pzo}return function(x){return iM(U(x,p),q5)}};
DA9=function(t){var E=t.top;var p=t.vertical;t=t.all;var U;return(U=E!=null?E:p)!=null?U:t};
sC7=function(t){var E=t.bottom;var p=t.vertical;t=t.all;var U;return(U=E!=null?E:p)!=null?U:t};
Lhl=function(t,E){var p=t.left;var U=t.end;var x=t.start;var A=t.horizontal;t=t.all;var m,b;return(b=(m=p!=null?p:E?U:x)!=null?m:A)!=null?b:t};
Pzo=function(t,E){var p=t.right;var U=t.end;var x=t.start;var A=t.horizontal;t=t.all;var m,b;return(b=(m=p!=null?p:E?x:U)!=null?m:A)!=null?b:t};
q5=function(t){var E=t.value;switch(t.unit){case "YPC_DIMENSION_UNIT_POINT":return E+"px";case "YPC_DIMENSION_UNIT_FRACTION":return E+"%";default:return""+E}};
T4e=function(t){switch(t){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"}};
o2J=function(t){var E=t!=null?t:{};t=E.fontRole;var p=E.fontSize;E=E.fontWeight;if(t!==null&&p!==null)switch(t){case "YPC_FONT_ROLE_DISPLAY":switch(p){case "YPC_FONT_SIZE_L":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(p){case "YPC_FONT_SIZE_L":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return E===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(p){case "YPC_FONT_SIZE_XL":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
v2t=function(t,E,p){function U(V){return Object.values(V).map(function(Q){var C=Q.productId;Q=Q.pricingOptionIndex;return Hb(x(C).pricingOptions,Q).pricingOptionId})}
function x(V){return f().get(V)}
function A(V){V=U(V);p(V)}
function m(V,Q){return Array.from(fn(V.pricingOptions)).filter(function(C){C=_.M(C);C.next();C=C.next().value;return Bb(C.pricingGroupAttributes,Q)}).map(function(C){return _.M(C).next().value})}
var b=WhK([t,E],function(V,Q){var C=V==null?void 0:V.selectedPricingOptions;V={};var d=!0;if(C&&Q.length)for(var I=_.M(Q),O=I.next();!O.done;O=I.next()){O=O.value;var a=$Al(O.pricingOptions,function(D){a:{D=D.pricingOptionId;for(var W=_.M(C),K=W.next();!K.done;K=W.next())if(K.value===D){D=!0;break a}D=!1}return D});
if(a>=0){d=!1;var F=Hb(O.pricingOptions,a),L=void 0;V[O.groupId]={productId:O.productId,pricingOptionIndex:a,pricingGroupAttributes:(L=F)==null?void 0:L.pricingGroupAttributes}}}d&&Q.length&&(d=Hb(Q[0].pricingOptions,0),V[Q[0].groupId]={productId:Q[0].productId,pricingOptionIndex:0,pricingGroupAttributes:d==null?void 0:d.pricingGroupAttributes});return V}),f=WhK([E],function(V){return new Map(V.map(function(Q){return[Q.productId,
Q]}))}),B=WhK([E],function(V){var Q=new Map;
V=_.M(V);for(var C=V.next();!C.done;C=V.next()){var d=C.value;C=d.groupId;var I=d.productId;d=_.M(fn(d.pricingOptions));for(var O=d.next();!O.done;O=d.next()){var a=_.M(O.value);O=a.next().value;a=a.next().value;Q.set(a.pricingOptionId,{groupId:C,productId:I,index:O,pricingOption:a,pricingGroupAttributes:a.pricingGroupAttributes})}}return Q}),R=WhK([E],function(V){var Q=new Map;
V=_.M(V);for(var C=V.next();!C.done;C=V.next()){var d=C.value;C=d.groupId;var I=d.productId,O=void 0;d=_.M(fn((O=d.pricingGroups)!=null?O:[]));for(O=d.next();!O.done;O=d.next()){var a=_.M(O.value);O=a.next().value;a=a.next().value;Q.set(a.pricingGroupId,{groupId:C,productId:I,index:O,pricingGroup:a,pricingGroupAttributes:a.pricingGroupAttributes})}}return Q});
return{getProductById:x,isProductSelected:function(V){var Q=x(V);if(!Q)return!1;var C;return((C=b()[Q.groupId])==null?void 0:C.productId)===V},
getSelectedPricingOptions:function(){return Object.values(b()).map(function(V){var Q=V.productId;V=V.pricingOptionIndex;return Hb(x(Q).pricingOptions,V)})},
getSelectedPricingGroupAttributesByGroupId:function(V){var Q;return(V=(Q=b()[V])==null?void 0:Q.pricingGroupAttributes)?Array.from(V):void 0},
getSelectedProductByGroupId:function(V){var Q;return(V=(Q=b()[V])==null?void 0:Q.productId)?x(V):void 0},
onProductSelected:function(V){var Q=x(V);if(Q){var C=b(),d;if(((d=C[Q.groupId])==null?void 0:d.productId)!==V){var I=(d=(I=C[Q.groupId])==null?void 0:I.productId)?x(d):void 0;var O;d=(O=C[Q.groupId])==null?void 0:O.pricingGroupAttributes;var a;O=(a=C[Q.groupId])==null?void 0:a.pricingOptionIndex;if(I&&O!==void 0)if(d){a=m(I,d).indexOf(O);if(a===-1)throw Error("Bl`"+O+"`"+I.productId);O=m(Q,d);a=a<O.length?O[a]:O.length>0?O[0]:0}else a=O<wq(Q.pricingOptions)?O:0;else a=0;wq(Q.pricingOptions)<=a&&(a=
0);O=Hb(Q.pricingOptions,a);var F;I={};A(Object.assign({},C,(I[Q.groupId]={productId:V,pricingOptionIndex:a,pricingGroupAttributes:(F=O==null?void 0:O.pricingGroupAttributes)!=null?F:[]},I)))}}},
onPricingOptionSelected:function(V){var Q=B().get(V);if(Q){V=Q.groupId;var C=Q.productId;Q=Q.index;var d=b(),I,O;if(((I=d[V])==null?void 0:I.productId)!==C||((O=d[V])==null?void 0:O.pricingOptionIndex)!==Q){var a,F;I={};A(Object.assign({},d,(I[V]={productId:C,pricingOptionIndex:Q,pricingGroupAttributes:(F=(a=d[V])==null?void 0:a.pricingGroupAttributes)!=null?F:[]},I)))}}},
onPricingGroupSelected:function(V){var Q=R().get(V);if(Q){V=Q.groupId;var C=Q.productId,d=Q.pricingGroup.pricingGroupAttributes,I=x(C);if(I){Q=b();var O=Q[V].pricingGroupAttributes,a;if(((a=Q[V])==null?void 0:a.productId)!==C||!Bb(Khe(O,wq(d)),d)){a=Array.from(d);for(d=wq(d);d<wq(O);d++){var F="",L=!1,D=Array.from(a);D.push(Hb(O,d));for(var W=_.M(I.pricingGroups),K=W.next();!K.done;K=W.next())if(K=K.value,Bb(K.pricingGroupAttributes,D)){a.push(Hb(O,d));L=!0;break}else F===""&&wq(K.pricingGroupAttributes)===
D.length&&Bb(Khe(K.pricingGroupAttributes,a.length),a)&&(F=Hb(K.pricingGroupAttributes,d));L||a.push(F)}F=Q[V].pricingOptionIndex;d=[];L=new Map;D=0;I=_.M(fn(I.pricingOptions));for(W=I.next();!W.done;W=I.next())K=_.M(W.value),W=K.next().value,K=K.next().value,Bb(K.pricingGroupAttributes,a)&&d.push(W),Bb(K.pricingGroupAttributes,O)&&L.set(W,D++);d.length===0?O=0:(O=L.get(F),O=O!==void 0&&O<d.length?d[O]:d[0]);I={};A(Object.assign({},Q,(I[V]={productId:C,pricingOptionIndex:O,pricingGroupAttributes:a},
I)))}}}},
onClearGroupSelected:function(V){var Q=b();Q[V]&&(Q=Object.fromEntries(Object.entries(Q).filter(function(C){return _.M(C).next().value!==V})),A(Q))}}};
fn=function(t){return function p(){var U,x,A,m,b;return _.zs(p,function(f){switch(f.nextAddress){case 1:_.l0(f,2),U=0,x=_.M(t),A=x.next();case 4:if(A.done){f.jumpTo(2);break}m=A.value;b=_.lm;return f.yield([U++,m],7);case 7:b(f.yieldResult);A=x.next();f.jumpTo(4);break;case 2:_.FQ(f),_.Gc(f,0)}})}()};
$Al=function(t,E){t=_.M(fn(t));for(var p=t.next();!p.done;p=t.next()){var U=_.M(p.value);p=U.next().value;U=U.next().value;if(E(U))return p}return-1};
wq=function(t){var E=0;for(t=t[Symbol.iterator]();!t.next().done;)++E;return E};
Hb=function(t,E){t=_.M(fn(t));for(var p=t.next();!p.done;p=t.next()){var U=_.M(p.value);p=U.next().value;U=U.next().value;if(p===E)return U}};
Bb=function(t,E){if(!t&&!E)return!0;if(!t||!E)return!1;t=Array.from(t);E=Array.from(E);if(t.length!==E.length)return!1;for(var p=0;p<t.length;p++)if(t[p]!==E[p])return!1;return!0};
Khe=function(t,E){E=E===void 0?Infinity:E;var p=[];t=_.M(fn(t));for(var U=t.next();!U.done;U=t.next()){var x=_.M(U.value);U=x.next().value;x=x.next().value;if(U>=E)break;U>=0&&p.push(x)}return p};
WhK=function(t,E){var p,U;return function(){for(var x=t.map(function(m){return m()}),A=0;A<x.length;A++)if(!p||x[A]!==p[A]){p=x;
U=E.apply(null,_.KB(x));break}return U}};
yJo=function(t,E,p){var U=[];t=_.M(t);for(var x=t.next();!x.done;x=t.next()){x=x.value;var A=void 0;((A=E)==null?0:A.length)&&!Bb(x.pricingGroupAttributes,E)||U.push({pricingOption:x,isSelected:p.includes(x.pricingOptionId)})}return U};
SnJ=function(t,E){return _.hj(t.entities,"pdpStateEntity",E)};
cJK=function(t){var E,p;return!!(t.productId&&t.groupId&&((E=t.pricingOptions)==null?0:E.length)&&t.pricingOptions.every(function(U){return U.pricingOptionId})&&((p=t.pricingGroups)==null||!p.length||Array.isArray(t.pricingGroups)&&t.pricingGroups.every(function(U){return U.pricingGroupId&&U.pricingGroupAttributes&&U.pricingGroupAttributes.length>0})))};
twb=function(t,E,p){return v2t(t,WhK([E],function(U){return U.filter(cJK)}),p)};
E1J=function(t,E){return E.length===0?[t]:[t.slice(0,E[0]),t.slice(E[0])].filter(function(p){return p.length>0})};
p98=function(t){switch(t){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""}};
xnJ=function(t,E,p,U){U=Object.assign({},U);_.tJ(U,Un7,{selectedOptionId:t,primaryButtonOverride:p});_.Ro().dispatch(_.P9("flowStateEntity",E,U))};
A8g=function(t,E,p){!_.k(p,Un7)&&t.noPreselect&&E!==""&&t.defaultButtonOverride&&xnJ("default",E,t.defaultButtonOverride,p)};
YYt=function(t){switch(t){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"}};
Mw7=function(t){switch(t){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"}};
mn7=function(t,E){E.includes(t)?E=E.filter(function(p){return p!==t}):E.push(t);
return[].concat(_.KB(E))};
bdJ=function(t,E){return _.hj(t.entities,"contextNoteFeedEntityPayload",E)};
idl=function(t,E){switch(t){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return E==null?void 0:E.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return E==null?void 0:E.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return E==null?void 0:E.ratingNotHelpfulText}};
qYo=function(t,E,p){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:p||t.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:t.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:t.deleteDialogTitle}]},dialogMessages:[{runs:[{text:t.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:t.deleteActionText}]},command:{performCommentActionEndpoint:{action:E}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:t.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
Hd8=function(t,E,p){var U;if(t&&((U=E())==null?0:U.includes(t))){var x;p((x=E())==null?void 0:x.filter(function(A){return A!==t}))}else p([].concat(_.KB(E()||[]),[t]))};
BGb=function(t,E){if(t){var p=[];E=_.M((E==null?void 0:E.checkboxes)||[]);for(var U=E.next();!U.done;U=E.next()){U=_.k(U.value,fqC);var x=void 0;((x=U)==null?0:x.value)&&t.includes(U.key||"")&&p.push(U.value)}return p}};
w9J=function(t){t.style.height="auto";t.style.height=t.scrollHeight+"px"};
RDJ=function(t){return[t.syncStep,t.asyncStep].filter(function(E){return E!==void 0})};
Qn7=function(t){var E,p,U;if(t=(E=t.structuredContextNoteFormSchema)==null?void 0:(p=E.fieldSchemas)==null?void 0:(U=p.noteBody)==null?void 0:U.validationSchema)for(E=_.M(RDJ(t)),p=E.next();!p.done;p=E.next()){p=p.value.rules;if(!p)break;p=_.M(p);for(p=p.next();!p.done;p=p.next())return _.k(p.value,Vwb)}};
jnt=function(t){if(t){t=_.M(RDJ(t));for(var E=t.next();!E.done;E=t.next()){E=E.value.rules;if(!E)break;E=_.M(E);for(E=E.next();!E.done;E=E.next())return _.k(E.value,CA5)}}};
kEd=function(t){if(t){t=_.M(RDJ(t));for(var E=t.next();!E.done;E=t.next()){E=E.value.rules;if(!E)break;E=_.M(E);for(E=E.next();!E.done;E=E.next())return _.k(E.value,r8l)}}};
dno=function(t){t=/^https?:\/\//.test(t)?t:"http://"+t;try{var E=_.QC(t)}catch(p){return!1}if(E.toString()!==t)return!1;t=E.JSC$10308_domain_.split(".");return t.length>1&&t.every(function(p){return!!p})};
u0l=function(t,E,p,U){var x;U=(x=U.structuredContextNoteData)==null?void 0:x.createCommentEndpoint;if(x=_.k(U,_.hOs))return x.commentText=_.wN(t),x.videoPositionMention=E,x.sources=p,U};
J8J=function(t){return t==null?void 0:t.stringValue};
g19=function(t,E,p){t=t.map(function(U,x){return{listItemViewModel:{title:U.title,subtitle:U.subtitle,leadingImage:U.leadingImage,trailingImage:x===E?IqJ:void 0,rendererContext:{commandContext:{onTap:U.onTap}}}}});
return Object.assign({},p&&{header:{panelHeaderViewModel:{title:p}}},{content:{listViewModel:{listItems:t}}})};
Zdt=function(t,E){if(t&&E)switch(E){case "SELECTION_TYPE_BOOL":return t.boolValue;case "SELECTION_TYPE_INT":return t.intValue;case "SELECTION_TYPE_STRING":return t.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return t.privacyStatusValue;case "SELECTION_TYPE_TIME_PICKER_FORMAT":return t.timePickerFormatValue}};
Od9=function(t){var E;t=(E=t.options)==null?void 0:E.findIndex(function(p){return p.isSelected});
return t===void 0?-1:t};
X9g=function(t,E,p){var U=function(){return t().label},x={},A=_.X5("ytDropdownViewModelLabel",(x.ytDropdownViewModelLabelError=E,x));
return _.H(_.w,{cond:function(){return t().label&&!(p()===-1&&t().label&&!t().placeholderText)},
then:function(){return _.H("div",{class:A},_.H(_.d8,{text:U}))}})};
hD9=function(t,E){var p={};p=_.X5("ytDropdownViewModelTitle",(p.ytDropdownViewModelTitlePlaceholder=function(){return E()===-1},p));
return _.H("div",{class:p},_.H(_.d8,{text:function(){var U=t();var x=E();if(x===-1)U=U.placeholderText?U.placeholderText:U.label;else{var A,m;U=(A=U.options)==null?void 0:(m=A[x])==null?void 0:m.title}return U}}))};
aqe=function(t,E){var p=function(){return t().hint};
return _.H(_.Oj,null,_.H(_.w,{cond:function(){return p()&&!E()},
then:function(){return _.H("div",{class:_.X5("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.H(_.d8,{text:p,className:"ytDropdownViewModelSupportText"}))}}),_.H(_.w,{cond:E,
then:function(){return _.H("div",{id:"dropdown-view-model-error",role:"alert",class:_.X5("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.H(_.lz,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.H(_.d8,{text:E,className:"ytDropdownViewModelSupportText"}))}}))};
eD5=function(t,E){var p=_.X3().resolve(_.JC7);_.A6(function(){var U=t().id;U&&p!=null&&p.dropdownMap.set(U,E)})};
zDK=function(t){t=_.k(t.scheduleButton,F8g);t=_.k(t==null?void 0:t.primaryButton,_.Cz);t=_.k(t==null?void 0:t.onTap,_.x2);var E,p,U=((p=_.k(t,_.ZU))==null?void 0:p.commands)||[t];p=_.M(U);for(t=p.next();!t.done&&!(E=_.k(t.value,_.gAf));t=p.next());var x;E=(x=E)==null?void 0:x.createBroadcastRequest;if(!E)throw Error("Il");return E};
n1K=function(t,E){if(E){var p=_.QM().getState().entities.flowStateEntity,U=lql(t),x=[E];U&&U!==E&&x.push(U);var A=!0,m;if(p&&t.flowStateEntityKey&&((m=p[t.flowStateEntityKey])==null?void 0:m.primaryButtonDisabled)!==void 0){var b;A=!((b=p[t.flowStateEntityKey])==null||!b.primaryButtonDisabled)}GEe(t,U!=null?U:E,x,A)}};
Dnb=function(t){return _.EA(_.QM(),function(E){return E.entities.flowStateEntity},function(E,p){if(t.flowStateEntityKey){var U,x=E==null?void 0:(U=E[t.flowStateEntityKey])==null?void 0:U.currentStepId,A;
p=p==null?void 0:(A=p[t.flowStateEntityKey])==null?void 0:A.currentStepId;A=_.QM().getState().talkToRecs;if(x&&x!==p){var m;E=(E==null?void 0:(m=E[t.flowStateEntityKey])==null?void 0:m.stepIdStack)||Object.keys(A.stepStates);m=!NGC(A==null?void 0:A.stepStates[x]);GEe(t,x,E,m)}}})};
L8e=function(t){return _.EA(_.QM(),snt,function(E){var p=lql(t);if(p){var U=Object.keys(E.stepStates);E=!NGC(E==null?void 0:E.stepStates[p]);GEe(t,p,U,E)}})};
NGC=function(t){var E=Object.keys((t==null?void 0:t.selectionStates)||{}).reduce(function(A,m){return A||(t==null?void 0:t.selectionStates[m].isSelected)},!1),p,U,x=!!(t==null?0:(p=t.userQuery)==null?0:(U=p.userQuery)==null?0:U.trim());
return E||x};
lql=function(t){if(t.flowStateEntityKey){var E,p,U=(E=_.QM().getState().entities.flowStateEntity)==null?void 0:(p=E[t.flowStateEntityKey])==null?void 0:p.currentStepId;if(U)return U}};
GEe=function(t,E,p,U){_.QM().dispatch(_.P9("flowStateEntity",t.flowStateEntityKey,{currentStepId:E,stepIdStack:p,key:t.flowStateEntityKey,primaryButtonDisabled:U}))};
W8t=function(t,E,p){p=p===void 0?{}:p;var U,x;return _.q(function(A){if(U=PAb(E))return A.return(U);(x=TG7(t,E,p))&&o1J(E,x);return A.return(x)})};
o1J=function(t,E){var p=$n5(t);p&&E.then(function(U){_.X3().resolve(_.Tp).put(p,new _.ol({innertubeResponse:U}))})};
PAb=function(t){if(t=$n5(t)){var E=_.X3().resolve(_.Tp);if(E.has(t))return E.get(t).then(function(p){return p==null?void 0:_.Z2(p)})}return null};
$n5=function(t){var E=_.k(t.endpoint,_.HD);if(E!=null&&E.videoId)return E={videoId:E.videoId},_.r("web_imp_player_mute_params")&&(E.mutedAtStart=t.startPlaybackInMutedState),_.q_("inline_playback",E)};
TG7=function(t,E,p){t=_.H9(t,E.endpoint,K8C(E,p)).then(function(U){return U});
return Promise.resolve(t)};
K8C=function(t,E){E=_.r("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!t.startPlaybackInMutedState},E):Object.assign({},{vis:5,autonav:"1"},E);var p;E={contentPlaybackContext:_.hN(E,(p=_.k(t.endpoint.commandMetadata,_.hZ))==null?void 0:p.url,window.location.href)};_.r("web_imp_player_mute_params")&&(E.overrideMutedAtStart=!t.startPlaybackInMutedState);return E};
tYd=function(t,E){var p=window.MutationObserver;p&&(v1o=new p(function(U,x){U=_.M(U);for(var A=U.next();!A.done;A=U.next()){A=A.value;var m;if(m=A.type==="childList"&&A.target)a:{m=t;A=y8C(A.target);m=y8C(m);for(var b=null,f=0;f<A.length;f++)if(m.includes(A[f])){if(f===0){m=!1;break a}b=A[f];break}b?(A=SYC(A,b),m=SYC(m,b),m=A<m):m=!1}if(m){E();x.disconnect();break}}}),(p=c8o())&&v1o.observe(p,{childList:!0,
subtree:!0}))};
c8o=function(){var t=document.getElementsByTagName("ytd-rich-grid-renderer");if(t.length>0)return t[0];t=document.getElementsByTagName("ytd-section-list-renderer");return t.length>0?t[0]:null};
y8C=function(t){for(var E=[];t;)E.push(t),t=t.parentElement;return E};
SYC=function(t,E){var p=Array.from(E.children);E=t.indexOf(E);return E>0?p.indexOf(t[E-1]):-1};
RB=function(t,E,p){p=p===void 0?{}:p;return _.zF(t,p,E)};
EjK=function(t){switch(t){case "MUSIC":return!0;default:return!1}};
U6t=function(t){if(t=t==null?void 0:t.find(function(U){var x,A;return((x=_.k(U,pYK))==null?void 0:(A=x.inlinePlaybackBadgeData)==null?void 0:A.replicateAsTimestamp)===!0}))if(t=_.k(t,pYK),t==null?0:t.icon){var E,p;
if((t=(E=_.Nvl(t.icon))==null?void 0:(p=E.clientResource)==null?void 0:p.imageName)&&EjK(t))return t}};
x6C=function(t){return t==null?void 0:t.filter(function(E){return E.premiereTrailerBadgeRenderer})};
Ael=function(t){var E,p=t==null?void 0:(E=t.find(function(f){return f.thumbnailOverlayTimeStatusRenderer}))==null?void 0:E.thumbnailOverlayTimeStatusRenderer,U,x;
if((p==null?0:(U=p.icon)==null?0:U.iconType)&&EjK(p==null?void 0:(x=p.icon)==null?void 0:x.iconType)){var A;return{icon:p==null?void 0:(A=p.icon)==null?void 0:A.iconType}}var m;if(E=t==null?void 0:(m=t.find(function(f){return f.thumbnailOverlayBadgeViewModel}))==null?void 0:m.thumbnailOverlayBadgeViewModel)if(m=U6t(E.thumbnailBadges))return{icon:m};
var b;if(t=t==null?void 0:(b=t.find(function(f){return f.thumbnailBottomOverlayViewModel}))==null?void 0:b.thumbnailBottomOverlayViewModel)if(b=U6t(t.badges))return{icon:b};
return{}};
i$o=function(t,E){var p=new YXb(function(A){x(A)},E);
E=_.M(_.Py(MYb(p),void 0,"D2uee"));var U=E.next().value,x=E.next().value;_.M$(function(){Promise.resolve().then(function(){var A,m=(A=t())!=null?A:{};p.playerControlsData=m;p.lastSeenPlayerApi=_.mb(m.playerApi);m6C(p)});
_.iK(function(){b$t(p)})},"xfRk8b");
return U};
qXo=function(t){return function(E){var p=t(),U={playerState:E};if(E===1){var x;(x=p.playerApi)==null||x.loadModule("captions")}if(E===0){var A;(A=p.playerApi)==null||A.unloadModule("captions")}E!==-1&&p.setState(U)}};
H$7=function(t){return function(E){t().setState({playbackRate:E})}};
fVb=function(t){return function(E){var p=t(),U=p.playerApi,x=U==null?void 0:U.getVideoData(),A=(x==null?void 0:x.isLive)||!1;x=x==null?void 0:x.video_id;A={videoDuration:Rqe(U||void 0),isLive:A,videoId:x};A.videoId!==p.videoId&&(A=Object.assign({},_.bD0(U),A));if(E==null?0:E.playertype)A.playerType=E.playertype;if(U){A.captionsAvailable=Ajb(U);E=A;var m;x=(m=U.getStoryboardLevel(U.getNumberOfStoryboardLevels()-1))==null?void 0:m.intervalMs;E.storyboardInterval=x?x/1E3:void 0;A.captionsAvailable&&
(A.captionsEnabled=YFg(U))}A.volumeMuted=!(U==null||!U.isMuted());p.setState(A)}};
BXl=function(t){return function(E){var p=t(),U=p.playerApi;if(U){var x=U.getPresentingPlayerType();E={playedTime:E||0,percentLoaded:U.getVideoLoadedFraction(),playerType:x};p.playerState===0&&(E.playedTime=p.videoDuration);p.isLive&&(x=U.getProgressState(x),E.playedTime-=x.seekableStart,E.videoDuration=Rqe(U));if(p.playerType===1)U=!1;else{var A;if((A=p.uxConfig)==null?0:A.showCuedOverlay){var m;U=!((m=p.playerApi)==null?0:m.getPlayerStateObject(p.playerType).isDomPaused)}else U=!0}U&&delete E.playedTime;
p.setState(E)}}};
wYK=function(t){return function(){var E=t(),p,U,x,A={volume:(x=(p=E.playerApi)==null?void 0:p.getVolume())!=null?x:0,volumeMuted:!((U=E.playerApi)==null||!U.isMuted())};E.setState(A)}};
Rul=function(t){return function(){var E=t(),p=E.playerApi;if(p){var U={captionsAvailable:Ajb(p)};U.captionsAvailable&&(U.captionsEnabled=YFg(p));E.setState(U)}}};
VY8=function(t){return{appApi:Object.assign({},_.pRO(),{showCaptionsToggleToast:function(E){var p,U;(U=(p=t()).showCaptionsToggleToast)==null||U.call(p,E)},
openInMiniplayer:function(){var E,p;(p=(E=t()).openInMiniplayer)==null||p.call(E)}})}};
QFC=function(t,E){var p,U,x;return!!(t==null?0:(p=t.playerResponse)==null?0:(U=p.playerConfig)==null?0:(x=U.inlinePlaybackConfig)==null?0:x.showScrubbingControls)&&!(E==null?0:E.hideScrubbingControls)};
C7b=function(t){var E=!t.miniplayerIsActive;return[5,2,0].includes(t.miniplayerPlaybackState)||E};
jFb=function(t){return _.r("web_transcript_cue_id_killswitch")?String(t):"ytd-transcript-renderer_"+t};
reo=function(t){return _.r("web_transcript_cue_id_killswitch")?!0:t.startsWith("ytd-transcript-renderer")};
kdg=function(t){var E=_.k1(),p;if(p=_.ws("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var U;p=(U=p())==null?void 0:U.layoutId}else p=null;JJ9(E,p,t)};
d6t=function(t,E){if(_.r("web_enable_chat_autoscroll_to_user_turn")&&t&&E)return t-4+"px"};
ute=function(t,E){return _.hj(t.entities,"youchatPendingResponseEntity",E)};
Je9=function(t){return function(E){_.Vl(_.P9("youchatPendingResponseEntity",t,{entityKey:t,isPendingResponse:E}))}};
IVC=function(t,E){return _.hj(t.entities,"booleanEntity",E)};
gj9=function(){return function(t){_.Vl(_.P9("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:t}))}};
Z$d=function(t){t==null||t.addEventListener("DOMLoaded",function(){t.goToAndPlay(t.totalFrames-48,!0)})};
O$L=function(t){if(t.backgroundStyle)switch(t.backgroundStyle){case "CHAT_USER_TURN_BACKGROUND_STYLE_MONO":return"ytChatUserTurnViewModelMonoContainer";case "CHAT_USER_TURN_BACKGROUND_STYLE_GRADIENT":return"ytChatUserTurnViewModelGradientContainer";default:return"ytChatUserTurnViewModelDefaultContainer"}return t.hasGradientBackground?"ytChatUserTurnViewModelGradientContainer":"ytChatUserTurnViewModelDefaultContainer"};
XY7=function(t){t.style.height="auto";t.style.height=Math.min(t.scrollHeight||20,80)+"px"};
huC=function(){var t;return String(Math.floor(((t=_.ew())==null?void 0:t.getCurrentTime())||0)*1E3)};
eue=function(t){if(t.onWelcomeCommand)return _.AJ(t.onWelcomeCommand);t=_.k(t.inputComposerViewModel,aVb);if(t==null?0:t.welcomeFeatureContinuation)return dcl(t.welcomeFeatureContinuation)};
FHC=function(t){var E=_.k1(),p;p=(p=_.ws("yt.www.ads.eventcache.getLastCompanionData"))?(p=p())&&p.layoutId:null;JJ9(E,p,t)};
zu8=function(t){var E=_.k1(),p;p=(p=_.ws("yt.www.ads.eventcache.getLastCompanionData"))?(p=p())&&p.layoutId:null;JJ9(E,p,t)};
lVC=function(t){return t.filter(function(E){return!_.k(E,_.Hn)})};
GdK=function(t){var E,p,U,x;if(t=t==null?void 0:(E=t.contents)==null?void 0:(p=E.twoColumnWatchNextResults)==null?void 0:(U=p.results)==null?void 0:(x=U.results)==null?void 0:x.contents){var A,m;return(m=(A=t.find(function(b){return!!b.videoPrimaryInfoRenderer}))==null?void 0:A.videoPrimaryInfoRenderer)==null?void 0:m.updatedMetadataEndpoint}};
nj9=function(t,E){var p;return(p=t.sourceConfigs)==null?void 0:p.find(function(U){return U.videoId===E})};
NX7=function(t){return t==="End of video"||t==="End of playlist"};
D68=function(t){var E,p,U,x;return(E=t.getWatchNextResponse())==null?void 0:(p=E.contents)==null?void 0:(U=p.twoColumnWatchNextResults)==null?void 0:(x=U.playlist)==null?void 0:x.playlist};
sFb=function(t){var E,p,U,x,A,m;return(E=D68(t))==null?void 0:(p=E.playlistButtons)==null?void 0:(U=p.menuRenderer)==null?void 0:(x=U.topLevelButtons)==null?void 0:(A=x[0])==null?void 0:(m=A.playlistLoopButtonRenderer)==null?void 0:m.playlistLoopStateEntityKey};
LHt=function(t){var E=_.X3().resolve(_.kA),p;return(E=(p=_.k(E.getAutoplayEndpoint(),_.HD))==null?void 0:p.playlistId)&&E===t};
ojC=function(t,E,p,U,x){function A(){_.ir.cancelJob(V7);var m=P7C(E,p/t.getPlaybackRate()),b=m.hours,f=m.minutes;m=(m.seconds*1E3||6E4)/t.getPlaybackRate();t.setVideoTimeLeft(TXb(b,f));U&&t.getPlayerState()!==0&&t.setSleepTimerTimeLeft(TXb(b,f,!0));(b>0||f>0)&&!x&&(V7=_.W9(_.ir,A,m))}
_.ir.cancelJob(V7);V7=_.W9(_.ir,A)};
$67=function(t,E,p){function U(){_.ir.cancelJob(WHo);var x=P7C(E,p),A=x.hours;x=x.minutes;var m=6E4/t.getPlaybackRate();if(A>0||x>0)t.setSleepTimerTimeLeft(TXb(A,x,!0)),WHo=_.W9(_.ir,U,m)}
_.ir.cancelJob(WHo);WHo=_.W9(_.ir,U)};
vjC=function(t,E){var p=t.getVolume()/(E/500),U=function(x){_.ir.cancelJob(KHo);var A=Math.floor(x-p);t.setVolume(A,!1);A>0&&(KHo=_.W9(_.ir,function(){U(A)},500))};
_.ir.cancelJob(KHo);KHo=_.W9(_.ir,function(){U(t.getVolume())})};
yed=function(t,E){_.ir.cancelJob(KHo);E&&t.syncVolume()};
SXC=function(){var t={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.zF("SLEEP_TIMER_DISRUPTED")}}}}};_.X3().resolve(_.ei).resolveCommand(t)};
ce5=function(t){return(t.getDuration()-t.getProgressState().current)*1E3};
P7C=function(t,E){t=t+E-(0,_.eu)();if(t<=0)return{hours:0,minutes:0,seconds:0};var p=new tcd(0,0,0,0,0,0,t);t=p.getHours();E=p.getMinutes();p=p.getSeconds();p!==0&&E++;E!==0&&E%60===0&&(t++,E=0);return{hours:t,minutes:E,seconds:p}};
TXb=function(t,E,p){return t>0&&E>0?p?_.zF("TIME_LEFT_HOURS_MINUTES",{hours:t.toString(),minutes:E.toString()}):_.zF("TIME_HOURS_MINUTES",{hours:t.toString(),minutes:E.toString()}):t>0?p?_.lO("TIME_LEFT_HOURS",t):_.lO("TIME_HOURS",t):p?_.zF("TIME_LEFT_MINUTES",{minutes:E.toString()}):_.zF("TIME_MINUTES",{minutes:E.toString()})};
pSo=function(t,E){if(t.timelyActions)return t.timelyActions.find(function(p){var U;return((U=_.k(p,Eul))==null?void 0:U.cueRangeId)===E})};
UMC=function(t){return _.r("kevlar_watch_cinematics_invisible")||t.fullscreen&&_.r("kevlar_watch_cinematics_invisible_in_fullscreen")||t.theater&&!t.fullscreen&&_.r("kevlar_watch_cinematics_invisible_in_theater")};
xMg=function(){var t=document.createElement("canvas"),E=t.getContext("2d");if(!E)throw Error("Ml");_.Bf(t,{position:"absolute",width:"100%",height:"100%"});return{element:t,context:E}};
ANt=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.r("kevlar_watch_cinematics_css_blur")};
YQJ=function(t){var E=t.externalVideoId||"";return E?t.isShortsEligible?"https://www.youtube.com/shorts/"+E:"https://www.youtube.com/watch?v="+E:""};
Mct=function(t){var E=[];t.viewCount&&E.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:t.viewCount});t.likeCount&&E.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:t.likeCount});return E};
mMd=function(t){var E,p,U={"@context":"https://schema.org","@type":"VideoObject",description:_.R4(t.description),duration:"PT"+(t.lengthSeconds||"0")+"S",embedUrl:t.embed?t.embed.iframeUrl:"",name:_.R4(t.title),thumbnailUrl:((E=t.thumbnail)==null?void 0:(p=E.thumbnails)==null?void 0:p.map(function(R){return R&&R.url||""}))||[],
uploadDate:t.publishDate};_.r("mweb_video_schema_id_killswitch")||(U["@id"]=YQJ(t));E=Mct(t);E.length&&(U.interactionStatistic=E);t.category&&(U.genre=t.category);t.ownerChannelName&&(U.author=t.ownerChannelName);t.liveBroadcastDetails&&(U.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:t.liveBroadcastDetails.startTimestamp,endDate:t.liveBroadcastDetails.endTimestamp}]);if(t.learningResource){t=t.learningResource;U["@type"]=["VideoObject","LearningResource"];var x;if((x=t.learningResourceType)==
null?0:x.length)U.learningResourceType=t.learningResourceType[0];var A;if((A=t.educationalAlignment)==null?0:A.length)U.educationalAlignment={"@type":"AlignmentObject",targetName:t.educationalAlignment[0]};var m;if((m=t.educationalLevel)==null?0:m.length){x=t.educationalLevel[0];var b;if((b=t.educationalLevelCountry)==null?0:b.length)x+=" ("+t.educationalLevelCountry+")";U.educationalLevel=x}var f,B;if(((f=t.learningResourceType)==null?0:f.length)&&t.learningResourceType[0]==="Problem walkthrough"&&
((B=t.problemDescriptions)==null?0:B.length))for(U.hasPart=[],b=_.M(t.problemDescriptions),f=b.next();!f.done;f=b.next())x=f.value,f=x.problemDescriptionText,B=x.startOffset,x=x.url,f&&B!==void 0&&x&&U.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:f,text:f,startOffset:B,url:x})}return U};
brb=function(t){if((t==null?void 0:t.value)===void 0||t==null||!t.unit)return"initial";a:{switch(t.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var E="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":E="%";break a}E=void 0}return E?""+t.value+E:"initial"};
qQJ=function(t,E){var p,U,x,A,m,b,f;_.q(function(B){switch(B.nextAddress){case 1:p=_.ql.getInstance();U=_.Gh.instance;x=_.iA.instance;if(!x)return irg(t,U,E),B.return();_.aR(B,2);t.onLoadingCommand&&U.resolveCommand(t.onLoadingCommand);return B.yield(p.getCurrentPositionFromGeolocation(),4);case 4:A=B.yieldResult;if(!t.resolveLocationCommand){B.jumpTo(5);break}m=p.createLocationInfo(A);return B.yield(_.H9(x,t.resolveLocationCommand,{locationInfo:m}),6);case 6:b=B.yieldResult;if(!b||"error"in b&&b.error||
b.errorMetadata)return irg(t,U,E),B.return();var R;if(b==null?0:(R=b.onResponseReceivedActions)==null?0:R.length){R=_.M(b.onResponseReceivedActions);for(var V=R.next();!V.done;V=R.next())U.resolveCommand(V.value)}(_.k(t.onSuccessCommand,_.HD)||_.k(t.onSuccessCommand,_.lC))&&_.kT(E.hostElement,"yt-navigate",{endpoint:t.onSuccessCommand,reload:!0});case 5:_.r7(B,0);break;case 2:f=_.nB(B);if(f instanceof GeolocationPositionError&&f.code===GeolocationPositionError.PERMISSION_DENIED)return t.onDeniedCommand&&
U.resolveCommand(t.onDeniedCommand),B.return();irg(t,U,E);_.Do(B)}})};
irg=function(t,E,p){t.onFailureCommand&&(E.resolveCommand(t.onFailureCommand),_.du(p.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
f2J=function(t,E){var p=_.k(t,_.TTZ);if(p&&E){t=p.videoIds||[p.videoId];var U;E=(U=_.kT(E,"yt-lockup-requested",{videoIds:t}).detail)==null?void 0:U.returnValue;var x;p.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?x=E?E:t.map(function(A){return{videoId:A,navigationEndpoint:p.videoCommand}}):E&&(x=E);
x&&(U=x.map(function(A){var m=Object,b=m.assign;var f=A.navigationEndpoint;if(!_.k(f,_.DK)){var B=_.k(f,_.HD);if(B){if(delete B.index,delete B.playlistId,B=_.k(f==null?void 0:f.commandMetadata,_.hZ),B==null?0:B.url){var R=B.url;R=_.VS(R,"list");R=_.VS(R,"index");B.url=R}}else f=void 0}return b.call(m,{},A,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:f})}),HrJ(U,p))}};
BIJ=function(t){var E=_.gY();if(t=_.k(t,_.obG))t.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&E.clearQueue(),t.closeMiniplayer&&_.X3().resolve(_.bf).close(!0)};
RQg=function(t){wSg(_.gY(),t)};
Vc9=function(t){var E;(t=(E=_.k(t,_.L$m))==null?void 0:E.setVideoIds)&&t.forEach(function(p){_.LfG(_.gY(),p)})};
CmL=function(t){Q7e(_.gY(),t)};
j7J=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(t){return!1}};
j6=function(t,E,p){(_.r("desktop_keyboard_shortcut_usage_log")||p&&_.r("web_shorts_keyboard_shortcut_usage_log"))&&(E?Q7.get(t):Cn.get(t))&&(t=E?rN8.get(t):ksL.get(t))&&_.qc(_.yL(),t)};
uY8=function(t){return t.findIndex(function(E){return dMl.indexOf(E.tagName)>-1})>-1};
JN8=function(t,E){return t.findIndex(function(p){return p.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(E.keyCode):!1};
gut=function(t,E){return _.H(I2K,{data:t,onYtNavigate:E})};
Zro=function(t,E){return _.hj(t.entities,"pageHeaderEntity",E)};
XS7=function(t,E){return t.map(function(p){if(p.tabRenderer)return Or8(p.tabRenderer);if(p.expandableTabRenderer&&E){var U=p.expandableTabRenderer;return{customTabRenderable:function(){return E(U)}}}return{}})};
Or8=function(t){return{identifier:t.tabIdentifier,aTagConfig:_.MA({innertubeCommand:t.endpoint,forceNewState:!0}),title:t.title,selected:t.selected,disabled:t.unselectable,icon:t.icon}};
eQJ=function(t,E,p,U){if(t)return U=U||t.likeStatus,E?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:U==="LIKE",isDisabled:!t.likesAllowed,defaultIcon:{iconType:p},defaultText:U==="LIKE"?t.likeCountWithUnlikeText:t.likeCountText,toggledText:U==="LIKE"?t.likeCountText:t.likeCountWithLikeText,defaultNavigationEndpoint:hQ8(t,"LIKE"),defaultServiceEndpoint:a2e(t,"LIKE"),toggledServiceEndpoint:a2e(t,"INDIFFERENT"),defaultTooltip:_.R4(t.likeCountTooltipText),toggledTooltip:_.R4(t.likeCountTooltipText),
targetId:t.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:U==="DISLIKE",isDisabled:!t.likesAllowed,defaultIcon:{iconType:p},defaultText:U==="DISLIKE"?t.dislikeCountWithUndislikeText:t.dislikeCountText,toggledText:U==="DISLIKE"?t.dislikeCountText:t.dislikeCountWithDislikeText,defaultNavigationEndpoint:hQ8(t,"DISLIKE"),defaultServiceEndpoint:a2e(t,"DISLIKE"),toggledServiceEndpoint:a2e(t,"INDIFFERENT"),defaultTooltip:_.R4(t.dislikeCountTooltipText),
toggledTooltip:_.R4(t.dislikeCountTooltipText)}};
hQ8=function(t,E){if(E==="LIKE")return t.likeCommand;if(E==="DISLIKE")return t.dislikeNavigationEndpoint};
a2e=function(t,E){var p;return(p=t.serviceEndpoints)==null?void 0:p.find(function(U){var x;return((x=_.k(U,_.A1))==null?void 0:x.status)===E})};
FFL=function(t,E,p,U){t=E-t;p=U-p;return Math.sqrt(t*t+p*p)};
zQo=function(t){var E=t>>8&255,p=t&255;return"#"+(t>>16&255).toString(16).padStart(2,"0")+E.toString(16).padStart(2,"0")+p.toString(16).padStart(2,"0")};
l2J=function(t,E){t&&_.X3().resolve(_.ei).resolveCommand(t,{forceClickLogging:!0,form:{element:E}})};
Gsg=function(t){if(t.simpleText)return[{text:t.simpleText}];var E;return(E=t.runs)!=null?E:[]};
nu9=function(t){var E=t.startEndTimeTemplate,p=t.startTimeUtcMillis;t=t.endTimeUtcMillis;if(E&&p&&t)return _.wN(Wtt(_.R4(E),Number(p),Number(t)))};
NIJ=function(t,E){var p,U,x=t==null?void 0:(p=t.viewCount)==null?void 0:(U=p.videoViewCountRenderer)==null?void 0:U.shortViewCount;if(!E&&x)return x;var A,m;return t==null?void 0:(A=t.viewCount)==null?void 0:(m=A.videoViewCountRenderer)==null?void 0:m.viewCount};
DMt=function(t,E){var p=t==null?void 0:t.relativeDateText;return!E&&p?[p,!0]:[t==null?void 0:t.dateText,!1]};
s7t=function(t,E,p,U,x){U=U===void 0?"":U;x=x===void 0?!1:x;var A=NIJ(t,E),m=_.M(DMt(t,E)),b=m.next().value;m=m.next().value;E=E?t==null?void 0:t.sponsorsOnlyFirstTimeLongText:t==null?void 0:t.sponsorsOnlyFirstTimeShortText;var f=[];p&&A&&f.push(A);!p&&m||!b||f.push(b);t=[x?t==null?void 0:t.subtitle:void 0].concat(_.KB(f),[E,t==null?void 0:t.stationName,t==null?void 0:t.rating,t?nu9(t):void 0,t==null?void 0:t.upNextProgramText,t==null?void 0:t.superTitleLink]).filter(function(B){return!!B});
p={runs:[]};for(x=0;x<t.length;x++)p.runs.push.apply(p.runs,_.KB(Gsg(t[x]))),x<t.length-1&&p.runs.push({text:" "+U+" "});return p};
LFL=function(t,E){var p=_.q4Z(E,{},t,!0);return new Promise(function(U,x){p.listenOnce("n",function(){x(Error("Zl`"+p.JSC$30409_getErrorDescription()))});
p.listenOnce("l",function(){var A=p.getResponseCode();if(A!==200)x(Error("$l`"+E+"`"+t.type+"`"+t.size+"`"+A));else try{U(JSON.parse(p.getResponseText()).encryptedBlobId)}catch(m){x(m)}});
p.run()})};
Pmg=function(t){return t.substring(t.indexOf(":")+1,t.indexOf(";"))};
TI7=function(t){return new Promise(function(E,p){var U=new FileReader;U.onloadend=function(){try{var x=new Uint8Array(U.result);x.length<8&&p(void 0);var A=x.subarray(0,8);x="";for(var m=0;m<A.length;m++)x+=("0"+A[m].toString(16)).substr(-2);x.startsWith("ffd8ff")?E("image/jpeg"):x.startsWith("47494638")?E("image/gif"):x.startsWith("89504e470d0a1a0a")?E("image/png"):x.startsWith("424d")?E("image/bmp"):E(void 0)}catch(b){p(b)}};
U.onerror=p;U.readAsArrayBuffer(t)})};
oue=function(t){return new Promise(function(E,p){var U=new Image;U.crossOrigin="anonymous";U.onload=function(){var x=document.createElement("canvas");x.width=U.naturalWidth;x.height=U.naturalHeight;var A=x.getContext("2d");if(!A)throw Error("am");A.drawImage(U,0,0);A=Pmg(t);x.toBlob(function(m){m?E(m):p()},A)};
U.src=t})};
$M5=function(t,E){var p;if(((p=_.k(t,_.DK))==null?void 0:p.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var U;_.kT((U=E.hostElement)!=null?U:E,"yt-shorts-reset");_.rgg(_.X3().resolve(_.$V),t).then(function(A){WFo(A,E,t)})}else{var x;
_.JZ((x=E.hostElement)!=null?x:E,[t]).then(function(A){A&&WFo(A.data,E,t)})}};
WFo=function(t,E,p){if(t){var U=_.k(t.replacementEndpoint,_.DK);if(U){t.sequenceContinuation&&(U.sequenceParams=t.sequenceContinuation);var x;_.kT((x=E.hostElement)!=null?x:E,"yt-navigate",{endpoint:t.replacementEndpoint})}else if((t==null?void 0:t.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(t==null?0:t.watchStatus)&&_.k(t.watchStatus,_.hz0)){var A;_.kT((A=E.hostElement)!=null?A:E,"yt-navigate",{endpoint:p})}}};
KFt=function(t){var E=_.X3().resolve(_.fS),p=_.i7.currentPageTypeSelector(E.getState())||"";E=_.i7.currentPageSubTypeSelector(E.getState())||"";p=p==="ytd-browse"&&E==="home";return _.r("web_guide_entry_enable_cache_for_non_home_pages")?(t=(t==null?void 0:t.navigationEndpoint)&&_.z2(t.navigationEndpoint)==="home",{disableCache:p&&t}):{disableCache:p}};
SQb=function(t,E,p,U){if(t&&t.length){var x={};if(E){var A=void 0;p&&(A={commandContext:{onTap:{innertubeCommand:p||{}}}});x.header={panelHeaderViewModel:{title:_.En(E),rendererContext:A}}}E=[];t=_.M(t);for(p=t.next();!p.done;p=t.next()){A=p.value;p=_.k(A,vub);A=_.k(A,yNg);var m=void 0,b=void 0;if((m=A)==null?0:(b=m.expandableItems)==null?0:b.length)for(A=_.M(A.expandableItems),m=A.next();!m.done;m=A.next()){m=m.value.guideEntryRenderer;var f=b=void 0;if(((b=m)==null?void 0:(f=b.icon)==null?void 0:
f.iconType)==="VIEW_LIST_CAIRO"){p=m;break}}b=m=void 0;A=((m=p)==null?0:m.formattedTitle)?_.En((b=p)==null?void 0:b.formattedTitle):void 0;m=void 0;b=(m=p)==null?void 0:m.isPrimary;if(p&&A&&!b){A={title:A};p.navigationEndpoint&&(A.rendererContext={commandContext:{onTap:{innertubeCommand:p.navigationEndpoint}}});m=[];f=b=void 0;if(((b=p)==null?0:(f=b.thumbnail)==null?0:f.thumbnails)&&p.thumbnail.thumbnails.length>0){b=_.M(p.thumbnail.thumbnails);for(f=b.next();!f.done;f=b.next())m.push({url:f.value.url});
A.leadingAccessory={avatarViewModel:{image:{sources:m},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(b=void 0,(b=p.icon)==null?0:b.iconType)m.push({clientResource:{imageName:p.icon.iconType||""}}),A.leadingImage={sources:m};b=m=void 0;((m=p)==null?0:(b=m.badges)==null?0:b.liveBroadcasting)?(A.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON",A.trailingImage={sources:[{clientResource:{imageName:"live",imageColor:4294901760}}]},A.trailingIconAccessorySize="LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL"):
p.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?A.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR":p.count&&(A.trailingLabel={content:p.count.toString()});E.push({listItemViewModel:A})}}E.length!==0?(x.content={listViewModel:{listItems:E}},U===0&&(x.rendererContext={commandContext:{onHoverEnd:{hideSheetCommand:{}}}})):x=void 0;if(x)return E=void 0,U===0&&(E={preventCloseWhileHovered:!0,hideDelayMs:3E3}),{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:x}},
contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT",hoverConfig:E}}}}};
cN5=function(t,E,p,U){if(E!=null&&E.isPrimary){switch(U){case 1:if(E.serviceEndpoint)break;p=SQb(p,E.formattedTitle,E.navigationEndpoint,U);if(!p)break;E.serviceEndpoint=p;E.navigationEndpoint=void 0;break;case 0:!E.mouseEnterEndpoint&&(p=SQb(p,E.formattedTitle,void 0,U))&&(E.mouseEnterEndpoint=p,E.mouseLeaveEndpoint={hideSheetCommand:{}})}t.push({guideEntryRenderer:E})}};
thb=function(t){if(!t)return!1;try{if(t.host&&t.host.tagName==="YT-FORMATTED-STRING"&&t.host.id==="contenteditable-textarea"||t.nodeType===Node.ELEMENT_NODE&&t.tagName==="YTD-COMMENT-INPUT")return!0}catch(E){return!1}return thb(t.parentNode)};
rq=function(t){return t?t.tagName==="A"&&t.href&&t.classList.contains("yt-simple-endpoint"):!1};
EZJ=function(t){return t?t.tagName==="IMG"&&t.classList.contains("emoji"):!1};
pn8=function(t,E,p){if(!t)return null;var U=rq(t);if(U&&p)return E=t.pathname.substring(t.pathname.indexOf("/channel/")+9),document.createTextNode("@"+E);if(U&&!p)return document.createTextNode("");if(EZJ(t))return p=t.alt,t=t.dataset.emojiId,!t&&E&&(E=_.OX(E,p))&&E.isCustomEmoji&&(t=E.emojiId),t?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+t+">"):document.createTextNode(p);U=t.cloneNode(!1);for(var x=0;x<t.childNodes.length;++x){var A=pn8(t.childNodes[x],E,p);A&&U.appendChild(A)}return U};
Um8=function(t){return t?rq(t)?t:Um8(t.lastChild):null};
xme=function(t){return t?rq(t)?t:xme(t.firstChild):null};
AyK=function(t){if(!t)return null;for(var E=t.previousSibling;E;)if(E.nodeType===Node.ELEMENT_NODE&&E.nodeName==="BR")E=E.previousSibling;else if(E.nodeType===Node.TEXT_NODE&&/\s+/.test(E.textContent))E=E.previousSibling;else break;(E=Um8(E))?t=E:t=(t=t.parentNode)?Um8(t.previousElementSibling):null;return t};
Yag=function(t){if(!t)return null;for(var E=t.nextSibling;E;)if(E.nodeType===Node.ELEMENT_NODE&&E.nodeName==="BR")E=E.nextSibling;else if(E.nodeType===Node.TEXT_NODE&&/\s+/.test(E.textContent))E=E.nextSibling;else break;return(E=xme(E))?E:Yag(t.parentNode)};
Mht=function(t){var E=_.sR(),p=E.JSC$11621_getStartNode();if(!thb(p.parentNode))return null;E=E.JSC$11621_getStartOffset();if(p.nodeType===Node.TEXT_NODE){var U=_.tg(p,rq);if(U){if(t&&E===0||!t&&E===p.length)return U}else{if(t&&E===p.length)return!p||p.nodeName==="BR"||p.nextElementSibling&&_.he(p.nextElementSibling,"display")==="block"?null:xme(p.nextElementSibling);if(!t&&E===0)return p?Um8(p.previousElementSibling):null}}if(p.nodeType===Node.ELEMENT_NODE)if(t){if(0<=E&&E<p.childNodes.length)return xme(p.childNodes[E])}else if(0<
E&&E<=p.childNodes.length)return Um8(p.childNodes[E-1]);return null};
mmg=function(t,E,p){if(!t)return null;if(t.nodeType===Node.TEXT_NODE)if(p){var U=AyK(t);if(U&&!/^\s+\S/.test(t.wholeText.substr(0,E)))return U}else if((U=Yag(t))&&!/\S\s+/.test(t.wholeText.substr(E,t.wholeText.length)))return U;return t.nodeType===Node.ELEMENT_NODE?p?AyK(t.childNodes[E]):Yag(t.childNodes[E]):mmg(t.parentNode,E,p)};
bGt=function(t){if(t.hasChildNodes())switch(t.tagName){case "DIV":case "A":case "SPAN":var E="";for(t=t.firstChild;t;t=t.nextSibling)E+=bGt(t);return E;default:return""}else switch(t.nodeType){case 3:return t.textContent;default:return""}};
iGJ=function(t){switch(t){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"}};
qag=function(t){return t.map(function(E){return{settingsRadioOptionRenderer:{title:_.uU(E.name),asideText:_.uU(E.approximateSize),id:iGJ(E.format)}}})};
f1o=function(t){if(t&&t.length!==0)return t.filter(HGl()).map(function(E){return{settingsRadioOptionRenderer:{title:E.name,asideText:E.approximateSize,id:iGJ(E.formatType)}}})};
BWJ=function(t){if(t)return t.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
wne=function(t,E){t=new Set(t!=null?t:[]);if(t.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(t.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(t.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(t.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(t.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(E)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
R5J=function(t){var E=t.indexOf("(");return E!==-1?t.substring(E+1,t.length-1):t};
_.QeL=function(t,E,p,U,x){p||(p=Vhg);var A;(A=_.k(p.commandMetadata,_.hZ))!=null&&A.url||(p=Error("fm`"+JSON.stringify(p)),_.bV(p),p=Vhg);p=_.Kq.unsafeClone(p);A=_.Rz(_.k(p.commandMetadata,_.hZ).url,"search_query",t);_.Rc(location.href,"sv")==="1"&&(_.k(p,_.G2).params="EgOAAgE%3D",A=_.Rz(A,"sv","1"));_.k(p,_.G2)&&(_.k(p,_.G2).query=t);A=A.replace(/%20/g,"+");_.k(p.commandMetadata,_.hZ).url=A;x=_.r("desktop_enable_entity_suggest")?{entityMid:x}:{};_.X3().resolve(_.ei).resolveCommand(p,{form:{tempData:Object.assign({},
{gs_l:E,oq:U!=null?U:t},x),isFromShorts:_.Vj()==="shorts"}})};
Cf9=function(t){switch(t){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
ryt=function(t,E,p,U,x,A){var m=_.Kq.clone(je8);m.locale=_.qO("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;m.report={description:x||"<empty>"};x=_.qO("SBOX_SETTINGS",{});E=E.join(",");var b=Date.now();t={choice_cc:U,choice_id_cc:p,choices_sc:E,gl:x.REQUEST_DOMAIN,hl:x.REQUEST_LANGUAGE,query:t,time:b};A&&(t.choice_additional_comment_cc=A);_.R_o(m,t)};
kmJ=function(t){var E=new Map;E.set("authuser",_.qO("SESSION_INDEX","0"));return _.Ih(t,E)};
uI7=function(t){var E;return _.q(function(p){switch(p.nextAddress){case 1:if(!t||!dm7(t))return p.return(null);E=null;switch(_.qO("INNERTUBE_CLIENT_NAME")){case "WEB":return p.jumpTo(2);case "WEB_REMIX":E=t.getPlayer()}p.jumpTo(3);break;case 2:return p.yield(t.getPlayerPromise(),4);case 4:E=p.yieldResult;p.jumpTo(3);break;case 3:return p.return(E)}})};
dm7=function(t){return["ytd-player","ytmusic-player"].includes(String(t.tagName||"").toLowerCase())};
JyL=function(t){t=Math.round(t);return t%2?t-1:t};
I1d=function(t){t=Math.round(t);return t%2===0?t-1:t};
gZt=function(t){var E=["h","m","s"],p=_.Dl(E);p.reverse();var U={};t=(t.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(m){var b=(m.match(/[hms]/)||[""])[0];return b?(U[b]=parseInt(m.match(/\d+/)[0],10),!1):!0});
for(t.reverse();t.length&&p.length;){var x=p.shift();x in U||(U[x]=parseInt(t.shift(),10))}if(t.length||U.s>59||U.m>59||U.h>9)return null;var A="";E.forEach(function(m){U[m]&&(A+=""+U[m]+m)});
return A||null};
ZGK=function(t){var E,p,U;if(t=(E=t.createPlaylistDialogFormSchema)==null?void 0:(p=E.fieldSchemas)==null?void 0:(U=p.title)==null?void 0:U.validationSchema)for(E=[t.syncStep,t.asyncStep].filter(function(x){return x!==void 0}),E=_.M(E),p=E.next();!p.done;p=E.next()){p=p.value.rules;
if(!p)break;p=_.M(p);for(p=p.next();!p.done;p=p.next())return _.k(p.value,Vwb)}};
Xnt=function(t){var E,p,U;if(t=(E=t.createPlaylistDialogFormSchema)==null?void 0:(p=E.fieldSchemas)==null?void 0:(U=p.visibility)==null?void 0:U.validationSchema)for(E=[t.syncStep,t.asyncStep].filter(function(x){return x!==void 0}),E=_.M(E),p=E.next();!p.done;p=E.next()){p=p.value.rules;
if(!p)break;p=_.M(p);for(U=p.next();!U.done;U=p.next())if(U=_.k(U.value,OG8))return E=void 0,(E=U.translations)==null?void 0:E.visibilityNotValidErrorMessage}};
h5J=function(){var t,E;return(E=(t=_.X3().resolve(_.OB(_.Ld)))==null?void 0:t())!=null?E:!1};
a1g=function(t){var E=21;if(!t)return E;E+=t.headerTitle?27:0;E+=t.headerTitle&&t.hasHeaderActionHeader?4:0;return E+=t.headerTitle&&t.headerSubtitle?16:0};
e5t=function(t){var E=0;if(!t)return E;E+=t.hasFooterPrimaryButton||t.hasFooterSecondaryButton?48:0;E+=t.footerTrailingLabel||t.footerLeadingLabel?30:0;return E+=t.hasFooterPrimaryButton||t.hasFooterSecondaryButton||!t.footerTrailingLabel&&!t.footerLeadingLabel?0:12};
Fb5=function(t){var E=new _.oa,p=t;return{subscribe:function(U){E.subscribe("changed",U)},
dispatch:function(U,x){var A=p;if(U==="Touch Start")p=Object.assign({},A,{isAnimating:!1,initialY:x.event.touches[0].clientY});else if(U==="Touch Move"){U=x.contentScrollable?-1*(A.initialY-24):0;var m,b=(m=x.headerDivHeight)!=null?m:a1g(x.header),f;m=(f=x.footerDivHeight)!=null?f:e5t(x.footer);f=Math.min(x.fullContentWrapperHeight,x.heightMap[x.contentWrapperId]+b-m);p=Object.assign({},A,{currentY:Math.max(U,x.event.touches[0].clientY-A.initialY),maxHeightForContentWrapper:Math.min(f,Math.max(0,
(A.isFullScreen?f:x.contentWrapperHeight)-A.currentY))})}else p=U==="Snap To Full Screen"?Object.assign({},A,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:x.maxHeight}):U==="Snap To Neutral Position"?Object.assign({},A,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:x.maxHeight}):U==="Close Sheet"?Object.assign({},A,{isAnimating:!0,currentY:x.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:x.maxHeight}):A;E.publish("changed",p)}}};
z5e=function(){_.X3().resolve(_.bL).closeSheet()};
l1e=function(t){var E,p,U,x,A,m,b,f,B,R,V;return{headerTitle:(E=t.headerTitle)==null?void 0:E.call(t),headerSubtitle:(p=t.headerSubtitle)==null?void 0:p.call(t),headerActionHeader:t.headerActionHeader,footerPrimaryButton:t.footerPrimaryButton,footerSecondaryButton:t.footerSecondaryButton,footerButtonType:(U=t.footerButtonType)==null?void 0:U.call(t),footerLeadingLabel:(x=t.footerLeadingLabel)==null?void 0:x.call(t),footerTrailingLabel:(A=t.footerTrailingLabel)==null?void 0:A.call(t),shouldShowIcons:(m=
t.shouldShowIcons)==null?void 0:m.call(t),skipContentClick:(b=t.skipContentClick)==null?void 0:b.call(t),additionalClassName:(f=t.additionalClassName)==null?void 0:f.call(t),onClosedCallback:t.onClosedCallback,focusOnClose:(B=t.focusOnClose)==null?void 0:B.call(t),isDisabled:(R=t.isDisabled)==null?void 0:R.call(t),disabledCommand:(V=t.disabledCommand)==null?void 0:V.call(t),headerFn:t.headerFn,contentFn:t.contentFn,footerFn:t.footerFn,hasHeaderFn:t.hasHeaderFn(),hasContentFn:t.hasContentFn(),hasFooterFn:t.hasFooterFn(),
hasFooterPrimaryButton:t.hasFooterPrimaryButton(),hasFooterSecondaryButton:t.hasFooterSecondaryButton(),hasHeaderActionHeader:t.hasHeaderActionHeader()}};
GmJ=function(t){switch(t){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""}};
nZ7=function(t){switch(t){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""}};
NW7=function(t){switch(t){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""}};
Dmt=function(t,E,p){E.forEach(function(U){_.$3(_.X3().resolve(_.Yt),U)});
_.du(t,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",p])};
TWe=function(t,E,p,U){var x=_.k(p,_.k3).commandLifeCycleConfig;x&&x.onStartCommand&&_.IK(t,[x.onStartCommand],E);_.bm(E);var A=_.iA.instance;A&&_.qn(A,p)?_.H9(A,p,U).then(function(m){if(!m||(m==null?0:m.error))return m=_.k(p,_.k3).serializedTransactionFlowLoggingParams,_.im(E),_.S5(new kS("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",m));_.im(E);return{data:m}}).then(function(m){_.im(E);
se9(m.data);var b=m.data.command;b&&_.IK(t,[b],E);b=LbC(p,m.data);if(!b){var f=m.data;m=!1;if(f&&f.command&&_.k(f.command,_.ZU)){var B;f=((B=_.k(f.command,_.ZU))==null?void 0:B.commands)||[];for(B=0;B<f.length;B++)if(_.k(f[B],_.Mms)){m=!0;break}}m||_.AS('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!b&&x&&x.onSuccessCommand?_.IK(t,[x.onSuccessCommand],E):b&&x&&x.onFailureCommand&&_.IK(t,[x.onFailureCommand],E)},function(){_.im(E);
x&&x.onFailureCommand&&_.IK(t,[x.onFailureCommand],E);Pfe(p)}):_.bV(Error("rm"),"ERROR")};
oZ7=function(t,E,p){var U=[E];p&&U.push(p);return _.JZ(t,U).then(function(x){var A=_.k(E,_.k3).serializedTransactionFlowLoggingParams,m=x.data,b=LbC(E,m);b?x=_.S5(new kS(b,A)):se9(m);return x},function(){var x=_.k(E,_.k3).serializedTransactionFlowLoggingParams;
Pfe(E);return _.S5(new kS("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",x))})};
LbC=function(t,E){t=_.k(t,_.k3).serializedTransactionFlowLoggingParams;var p=null;switch(E.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":p="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":p="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":p="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}p?_.wz(p,t):QK8(t);return p};
Pfe=function(t){_.wz("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.k(t,_.k3).serializedTransactionFlowLoggingParams)};
se9=function(t){if(t.trackingParams){var E=_.yL(),p=_.vV();E&&p&&_.Yh(E,p,_.$8(t.trackingParams))}};
Wbb=function(t,E,p){var U=_.iA.instance,x=_.BK0(_.qO("YPC_MB_URL")),A=(new _.H5Y).init(),m=_.fXL(),b=_.k(p,_.UkZ).languageCode;b===void 0?_.bV(Error("Li"),"ERROR"):_.Yi([A,x]).then(function(){var f={ctk:_.JN.payments.business.integration.ClientTokenFactory.createClientToken(b,m)};U&&_.qn(U,p)?_.H9(U,p,f).then(function(B){return{data:B}}).then(function(B){_.kT(E,"yt-service-request-completed",B);
B.code!=="ERROR"&&(B=B.data.command)&&_.IK(t,[B],E)}):_.bV(Error("rm"),"ERROR")})};
vZb=function(t,E,p,U){var x=_.iA.instance;x&&_.qn(x,p)?_.H9(x,p,U).then(function(A){return{data:A}}).then(function(A){$m9(t,E,p,A)},function(){KbC(p)}):(x=_.X3().resolve(_.OB(_.Lf)))&&x.requestDataForServiceEndpoint(p,U).then(function(A){$m9(t,E,p,A)},function(){KbC(p)})};
$m9=function(t,E,p,U){_.kT(E,"yt-service-request-completed",U);if(U.code&&U.code=="ERROR")KbC(p);else{(U=U.data.commands)&&_.IK(t,U,E);var x;(t=(x=_.k(p,_.bk3))==null?void 0:x.serializedYpcPauseFlowLoggingParams)&&t&&f8("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",t)}};
KbC=function(t){var E;(t=(E=_.k(t,_.bk3))==null?void 0:E.serializedYpcPauseFlowLoggingParams)&&t&&f8("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",t,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
cyK=function(t,E,p){var U=_.iA.instance;U&&_.qn(U,p)?_.H9(U,p).then(function(x){return{data:x}}).then(function(x){yy8(t,E,p,x)},function(){Sab(p)}):(U=_.X3().resolve(_.OB(_.Lf)))&&U.requestDataForServiceEndpoint(p).then(function(x){yy8(t,E,p,x)},function(){Sab(p)})};
yy8=function(t,E,p,U){_.kT(E,"yt-service-request-completed",U);U.code&&U.code=="ERROR"?Sab(p):((U=U.data.commands)&&_.IK(t,U,E),(t=_.k(p,_.ikp).serializedYpcResumeFlowLoggingParams)&&t&&f8("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",t))};
Sab=function(t){(t=_.k(t,_.ikp).serializedYpcResumeFlowLoggingParams)&&t&&f8("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",t,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
tM7=function(t){t=t===void 0?{}:t;_.X3().resolve(_.SS7).showFeedbackDialog(t.customProductData,t.feedbackContent,t.onFeedbackSubmitted,t.bucket)};
EC8=function(t){t=t===void 0?{}:t;_.X3().resolve(_.SS7).showHelpDialog(t.helpContext,t.articleId,t.productData)};
pql=function(){EC8()};
Uqd=function(){tM7()};
AhJ=function(t,E,p){var U,x,A,m,b,f,B;return _.q(function(R){switch(R.nextAddress){case 1:U=_.k(t,xqd);if((x=U)==null?0:x.productId){f={productId:U.productId,bucket:U.bucket,enableAnonymousFeedback:(b=U.enableAnonymousFeedback)!=null?b:!0,allowNonLoggedInFeedback:!0};B={feedbackChoice:p.feedbackChoice};if(!_.r("web_collect_offline_state")){R.jumpTo(8);break}_.aR(R,9);return R.yield(Hbo(B),11)}m={bucket:(A=U)==null?void 0:A.bucket};if(!_.r("web_collect_offline_state")){R.jumpTo(4);break}m.customProductData=
{};_.aR(R,5);return R.yield(Hbo(m.customProductData),7);case 7:_.r7(R,4);break;case 5:_.nB(R);case 4:tM7(m);R.jumpTo(0);break;case 11:_.r7(R,8);break;case 9:_.nB(R);case 8:_.tb8(B),_.ci$("GFEEDBACK",B),U.productId==="5295751"&&(B.client_attestation=Number(_.qO("CATSTAT",0))),U.productId==="5295751"&&(B.client_time=Date.now()/1E3/3600),U.productId==="5295751"&&(B.original_playback_id=_.tBZ||""),_.R_o(f,B),_.Do(R)}})};
Ytt=function(t){if(t=_.k(t,_.UoK)){var E={bucket:t.bucketIdentifier};t.additionalDatas&&(E.customProductData={},t.additionalDatas.forEach(function(p){if(p=p.userFeedbackEndpointProductSpecificValueData)E.customProductData[p.key]=p.value}));
tM7(E)}};
MMt=function(t){var E=_.d1.getInstance();var p=_.zF("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var U=_.zF("DELETE",void 0,"Delete"),x=_.zF("CANCEL",void 0,"Cancel");p=lD8(p,void 0,U,x,{signal:"DELETE_ALL_DOWNLOADS"});_.bP(E,[{openPopupAction:p}],t)};
b15=function(){return _.q(function(t){return t.nextAddress==1?t.yield(_.X3().resolve(_.V6),2):t.yield(mqe(),0)})};
i1d=function(t){var E,p;return _.q(function(U){return U.nextAddress==1?(p=(E=_.k(t,_.QB))==null?void 0:E.targetId)?U.yield(_.X3().resolve(_.V6),3):U.jumpTo(0):U.yield(_.X3().resolve(_.RX).deleteVideo(p),0)})};
H1t=function(t){var E,p;return _.q(function(U){return U.nextAddress==1?(p=(E=_.k(t,_.QB))==null?void 0:E.targetId)?U.yield(_.X3().resolve(_.V6),3):U.jumpTo(0):U.yield(qt5(_.X3().resolve(_.RX),p),0)})};
B95=function(t){var E,p;return _.q(function(U){return(p=(E=_.k(t,_.QB))==null?void 0:E.targetId)?U.yield(fyg(p),0):U.jumpTo(0)})};
Rrd=function(){_.r("kevlar_woffle_refresh_dl_load_killswitch")||wq8()};
Qxb=function(){_.r("kevlar_woffle")&&_.ic.instance&&VM8()};
jxo=function(t){var E;if((E=_.k(t,_.lA))==null||!E.videoId)return!1;C3t(_.X3().resolve(_.RX),_.k(t,_.lA),t.clickTrackingParams);return!0};
kHt=function(t){var E;if((E=_.k(t,_.GE))==null||!E.playlistId)return!1;rhb(_.X3().resolve(_.RX),_.k(t,_.GE),t.clickTrackingParams);return!0};
u2K=function(t){var E=_.k(t,_.ots);(E==null?void 0:E.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(E==null?void 0:E.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||dql(_.X3().resolve(_.RX),_.k(t,_.ots))};
IyC=function(t){t=_.k(t,_.jO3);var E;(t==null?0:(E=t.actions)==null?0:E.length)&&Jht(t)};
O1d=function(t){var E,p;return _.q(function(U){E=_.k(t,gCd);return(p=E)!=null&&p.localWatchHistoryCommandType?U.yield(Z1J(E),0):U.return()})};
hre=function(){return _.q(function(t){return _.r("kevlar_enable_download_to_mobile")?t.yield(Xqe(),0):t.return()})};
ayK=function(t){setTimeout(function(){requestAnimationFrame(t)},80)};
er9=function(t){return Object.entries(t).map(function(E){return E.join(":")}).join(";")};
zr7=function(t){var E,p,U;_.q(function(x){if(x.nextAddress==1)return x.yield(FAC(),2);E=x.yieldResult;p=_.Gh.instance;switch(E){case "granted":U=t.getLocationCommand;break;case "denied":U=t.openDeniedDialogAction;break;case "prompt":U=t.openCollectionDialogAction;break;default:U=t.openCollectionDialogAction}U&&p.resolveCommand(U);_.Do(x)})};
FAC=function(){var t,E;return _.q(function(p){if(p.nextAddress==1)return t="prompt",navigator.permissions?p.yield(navigator.permissions.query({name:"geolocation"}),3):p.jumpTo(2);p.nextAddress!=2&&(E=p.yieldResult,t=E.state);return p.return(t)})};
GHl=function(){_.q(function(t){return t.yield(_.lye(),0)})};
nCC=function(){var t,E,p;return _.q(function(U){if(U.nextAddress==1)return t=_.X3().resolve(_.PL),t?U.yield(_.H9(t,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.qW(Error("um")),U.return(void 0));if(E=U.yieldResult){if(E.errorMetadata)return _.qW(Error("vm`"+E.errorMetadata.status+"`"+E.error)),U.return(void 0);p=E.datasyncIds;_.q8t=p.length;return U.return(p)}_.qW(Error("wm"));return U.return(void 0)})};
N9t=function(){nCC().then(function(t){t&&(fM9(t),uJt(t),NJd(t),BmJ(t))})};
Dqt=function(t){_.ir.addLowPriorityJob(function(){var E,p,U,x,A;return _.q(function(m){switch(m.nextAddress){case 1:if(_.r("ytidb_clear_optimizations_killswitch")){m.jumpTo(2);break}E=_.yE("clear");if(E.startsWith("V")&&E.endsWith("||")){var b=[E];fM9(b);uJt(b);NJd(b);BmJ(b);return m.return()}p=DGo();U=wAL();return m.yield(JZt(),3);case 3:return x=m.yieldResult,m.yield(BkC(),4);case 4:if(A=m.yieldResult,!(p||U||x||A))return m.return();case 2:t.isNetworkAvailable()?N9t():t.listenOnce("publicytnetworkstatus-online",
N9t),_.Do(m)}})})};
dq=function(t){t={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.wN(t)}}}};_.Gh.instance&&_.Gh.instance.resolveCommand(t)};
sxt=function(t){if(t){var E=_.Pu();_.PH(E,3854,void 0,{layer:0,parentLayer:4});switch(t){case 1:var p=238708;break;case 2:p=238715;break;case 3:p=238710;break;case 6:p=238709}p&&(t=_.L4(E,{veType:p}))&&_.WH(E,t)}};
LAK=function(t){if(t){var E=_.Pu();_.PH(E,3854,void 0,{layer:0,parentLayer:4});switch(t){case 1:var p=238714;break;case 2:p=238711;break;case 8:p=238709;break;case 7:p=238713;break;case 3:case 4:case 5:p=238712}p&&(t=_.L4(E,{veType:p}))&&_.WH(E,t)}};
P39=function(t){switch(t.latencyType){case 0:_.yS("consent_primitive_flow");_.SR("cpit",t.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.SR("cpist",t.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.SR("cprtif",t.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.SR("cprtli",t.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.SR("cprt",t.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.SR("cpdt",t.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.SR("cpjct",t.timestampEpochMillis,"consent_primitive_flow")}};
pft=function(t,E){var p,U,x,A,m,b,f,B,R,V,Q,C,d,I,O,a,F,L,D,W;return _.q(function(K){switch(K.nextAddress){case 1:_.aR(K,2);(U=(p=_.k(t,T9C))==null?void 0:p.serializedConsentRequest)||(U=(x=_.k(t,oCe))==null?void 0:x.serializedConsentRequest);U&&(A=WA5(_.c8(U)));if(A===void 0)return K.return();m=$qg(A);m.latencyCallback=P39;E&&KAL(m,function(){E.then(function(v){v.pauseVideo();(new vCo).increment()})});
return((b=_.k(t,T9C))==null?void 0:b.consentAction)==="CONSENT_ACTION_PREWARM"||((f=_.k(t,oCe))==null?void 0:f.consentAction)==="CONSENT_ACTION_PREWARM"?K.yield(yhd(m),5):K.yield(Stb(m),6);case 6:B=K.yieldResult;R=_.Wn(B,uM);if(R===1){if(((V=_.xC(B,chd,1,uM))==null?void 0:_.Et(V,1))===1||((Q=_.xC(B,chd,1,uM))==null?void 0:_.Et(Q,1))===2||((C=_.xC(B,chd,1,uM))==null?void 0:_.Et(C,1))===3)_.k(t,oCe)?dq(_.zF("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
dq(_.zF("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));sxt((d=_.xC(B,chd,1,uM))==null?void 0:_.Et(d,1),_.jd(B,tIl,3,_.ri()))}else R===2?(((I=EMb(B))==null?void 0:_.Et(I,1))===5?_.k(t,oCe)?dq(_.zF("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):dq(_.zF("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((O=EMb(B))==null?void 0:_.Et(O,1))===1||((a=EMb(B))==null?void 0:_.Et(a,1))===4?
dq(_.zF("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")):((F=EMb(B))==null?void 0:_.Et(F,1))===7&&((L=A)==null?void 0:(D=_.lJ(L,JR,4))==null?void 0:_.Et(D,4))!==1&&dq(_.zF("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),LAK((W=EMb(B))==null?void 0:_.Et(W,1))):dq(_.zF("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));K.jumpTo(5);break;case 5:_.r7(K,0);break;case 2:_.nB(K),dq(_.zF("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),
_.Do(K)}})};
xh5=function(){if(!UhJ.has("Worker")){UhJ.set("Worker",!0);var t={api:"BROWSER_API_WEB_WORKER"};t.available="Worker"in window?!0:!1;_.MW("apiTest",t)}};
AIb=function(t){return typeof t==="undefined"?"-1":String(Math.ceil(t/1048576))};
buJ=function(t,E){Yko(new MI8(_.k(E,mhC).addToken,_.k(E,mhC).commonToken)).then(function(){_.kT(t,"yt-invoke-instrument-manager-action-completed")},function(p){_.kT(t,"yt-invoke-instrument-manager-action-error",p)})};
IB=function(){return _.qO("HTML_DIR")==="rtl"};
iu5=function(){var t,E;return(E=(t=window).matchMedia)==null?void 0:E.call(t,"(prefers-reduced-motion: reduce)").matches};
qkt=function(t){var E=_.X3().resolve(_.OB(_.pU));if(E&&E.isAnyTransitionEnabled){var p={};E.viewTransitionCoordinator.registerElement(t,(p.slide="miniplayer-page-transition",p["lockup-to-watch"]="miniplayer-page-transition",p["learning-journey"]="miniplayer-page-transition",p))}};
Hu5=function(t,E,p){return{horizontalAlignment:t.x+p.width/2<E.width/2?"west":"east",verticalAlignment:t.y+p.height/2<E.height/2?"north":"south"}};
BFl=function(t,E,p,U,x){x=x===void 0?new _.gg(0,0):x;t=fS9(t,E,p,U,!1);return new _.gg(t.x+x.x,t.y+x.y)};
fS9=function(t,E,p,U,x){x=(x===void 0?0:x)?400:0;return new _.gg(t==="west"?16+(IB()?x:0):p.width-U.width-16-(IB()?0:x),E==="north"?16:p.height-U.height-16)};
wfe=function(t,E){var p=0;t&&(p+=76);E&&(p+=285);return p};
Rao=function(t){return _.mA(t)};
VIJ=function(t){var E=1;t=t.split(":");for(var p=[];E>0&&t.length;)p.push(t.shift()),E--;t.length&&p.push(t.join(":"));return p};
Qqb=function(t){var E=new _.sk;return _.Ah(E,11,t)};
Ck8=function(t){var E={};t=t.getAllResponseHeaders().split("\r\n");for(var p=0;p<t.length;p++)if(!_.mJ(t[p])){var U=VIJ(t[p]),x=U[0];U=U[1];if(typeof U==="string"){U=U.trim();var A=E[x]||[];E[x]=A;A.push(U)}}return _.Kq.map(E,function(m){return m.join(", ")})};
ghK=function(t,E){return t.JSC$10072_xhr_?t.JSC$10072_xhr_.getResponseHeader(E):null};
jqK=function(t,E){if(t.isDisposed())throw Error("Ea");t.sQ.hv("n");var p=_.B7(t.sQ,function(){return t.uPv([E.cw,E.wUG,E.jKI,E.kMI])},"n");
t.sQ.xHG(p.length);t.sQ.zb();return p};
rI9=function(t,E,p){Array.isArray(p)||(p=[String(p)]);_.D0Z(t.JSC$10308_queryData_,E,p);return t};
kG7=function(t){var E=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.Nx(t);t.keyMap_.forEach(function(p,U){_.zt(E,U)||this.remove(U)},t)};
VM8=function(){var t=_.ic.instance;_.q(function(E){return t.deferredInstallPrompt?E.yield(t.deferredInstallPrompt.prompt(),0):E.jumpTo(0)})};
dhK=function(t,E,p){if(_.LO(t))_.QE(t,E,p);else for(t=_.D_r(t);;){var U=t.next();if(U.done)break;E.call(p,U.value,void 0,t)}};
u9g=function(t,E){var p=[];dhK(E,function(U){try{var x=_.Ko.prototype.getWrapper.call(this,U,!0)}catch(A){if(A=="Storage: Invalid value was encountered")return;throw A;}x===void 0?p.push(U):_.Nus(x)&&p.push(U)},t);
return p};
Jo9=function(t,E){u9g(t,E).forEach(function(p){_.Ko.prototype.remove.call(this,p)},t)};
JI5=function(t){var E=_.wa;E._minimumZ=Math.max(E._minimumZ,t)};
ISe=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];gM8=function(t,E){_.wi(t.vm);t.vm=E};
Zul=function(t,E,p,U){t.setState(5);var x=!!t.w0T&&ISe.includes(_.ua(t.w0T)||"");try{var A=new _.w0({program:E,globalName:p,bB6:{disable:!_.r("att_web_record_metrics")||!_.r("att_skip_metrics_for_cookieless_domains_ks")&&x,kj:"aGIf"}});A.gCG.then(function(){t.setState(6);U&&U(E)});
gM8(t,A)}catch(m){t.setState(7),m instanceof Error&&_.qW(m)}};
Out=function(t,E,p,U,x,A){var m=m===void 0?"trayride":m;p?(t.setState(2),_.xT(_.cQ(p),function(){if(window[m])Zul(t,U,m,x);else{t.setState(3);var b=_.oYj(p),f=document.getElementById(b);f&&(_.I4J(b),f.parentNode.removeChild(f));_.qW(new _.cC("BL:ULB",p))}},A)):E?(A=_.Gg("SCRIPT"),E instanceof _.qE?_.BT(A,E):A.textContent=E,A.nonce=_.i0(document),document.head.appendChild(A),document.head.removeChild(A),window[m]?Zul(t,U,m,x):(t.setState(4),_.qW(new _.cC("BL:ULBJ")))):_.qW(new _.cC("BL:ULV"))};
Xfo=function(){this.state=1;this.vm=null;this.w0T=void 0};
_.Y=Xfo.prototype;_.Y.initialize=function(t,E,p,U){this.w0T=U;if(t.program){var x;U=(x=t.interpreterUrl)!=null?x:null;if(t.interpreterSafeScript)x=_.Ke0(t.interpreterSafeScript);else{var A;x=(A=t.interpreterScript)!=null?A:null}t.interpreterSafeUrl&&(U=_.q0(t.interpreterSafeUrl).toString());Out(this,x,U,t.program,E,p)}else _.qW(Error("tf"))};
_.Y.isInitialized=function(){return!!this.vm};
_.Y.getState=function(){return this.state};
_.Y.isLoading=function(){return this.state===2};
_.Y.invoke=function(t){t=t===void 0?{}:t;var E;this.vm?E=jqK(this.vm,{cw:t}):E=null;return E};
_.Y.dispose=function(){gM8(this,null);this.setState(8)};
_.Y.setState=function(t){this.state=t};
var haC=function(t,E){return t.vm.snapshot(E)},aSb=function(t,E){var p=_.z3("botguard_async_snapshot_timeout_ms",3E3);
E=E===void 0?{}:E;p=p===void 0?3E3:p;return t.vm?new Promise(function(U,x){var A=!1,m=_.ir.addJob(function(){A=!0;x(Error("uf"))},1,p);
t.vm?haC(t,{cw:E}).then(function(b){_.ir.cancelJob(m);A||U(b)}).catch(function(b){_.ir.cancelJob(m);
A||x(b)}):(_.ir.cancelJob(m),U(null))}):Promise.resolve(null)},eag=["att/log"],Vhg;
Vhg={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var FSe={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},zad=function(t,E){return _.GV(t,{mode:"readwrite",enableRetries:!0},function(p){return _.d7Y(p,E,"settingEntity")})},lSd=function(t,E,p){return _.GV(t,{mode:"readonly",
enableRetries:!0},function(U){return _.FvG(U,E,p)})},GG8=function(t){if(!t.storage)return!1;
a:{if(t.storage){try{var E=t.storage.get("TLPQtimestamp")}catch(p){}t=Number(E);if(!isNaN(t))break a}t=void 0}return t?Date.now()-t<864E5:!1},nMC=function(t){if(t.storage){try{var E=t.storage.get("TLPQindex")}catch(p){}t=Number(E);
if(!isNaN(t))return t}},gq=function(t){var E=_.ut();
return _.Ffs(E,t,1)},NFg=function(t,E){t.queueProxy&&E.forEach(function(p){if(p.videoId&&p.trackingParams&&t.queueProxy instanceof _.Ci){var U=_.yL();
t.queueProxy.attributionData.set(p.videoId,{enqueueingVe:_.$8(p.trackingParams).getAsJson(),enqueueingCsn:U?U:void 0,clientEnqueueingTimeMs:Math.floor((0,_.eu)()).toString()})}})},Dh8=function(t){var E=_.QNs(t);
E!=t.currentSnapState_&&(t.currentSnapState_=E,t.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},ZI=function(t){this.JSC$13499_networkManager_=t;
this.partCallbacks_=[]};
ZI.prototype.getCacheKeyForEndpoint=function(t){return _.iLY(t,!1)};
ZI.prototype.onPartsCallback_=function(t){this.partCallbacks_.forEach(function(E){t&&E(t)})};
var Op=function(t,E,p){ZI.call(this,t);this.player_=E;this.autoplayData_=p};
_.u(Op,ZI);Op.prototype.getCacheKeyForEndpoint=function(t){return _.iLY(t,!!this.autoplayData_)};
Op.prototype.getTempData=function(t,E){E=E.timeBeforeNextVideo;t={itct:t.clickTrackingParams,lact:_.af(),pbis:E,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(t.autonav=1);return t};
Op.prototype.getXhrParams=function(t){return Object.assign({pbj:"prefetch"},t)};
Op.prototype.getParams=function(t){t={frags:t.fragmentsRequested.join(",")};_.r("kevlar_droppable_prefetchable_requests")&&(t.prefetch=1);return t};
var sqg=function(t){t.playerEvents_.forEach(function(E){t.player.removeEventListener(E.eventName,E.callback)});
t.playerEvents_.length=0},LS9=function(t,E,p){this.player=t;
this.JSC$13509_taskManager=E;this.prefetchDelay=p;this.completionResolver_=null;this.playerEvents_=[]};
LS9.prototype.start=function(){var t=this;this.completionResolver_=_.fd();_.Mx(this.completionResolver_.promise,function(){sqg(t);t.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var Pkt=function(t,E,p){t.player.addEventListener(E,p);t.playerEvents_.push({eventName:E,callback:p})},TFt={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},oM7={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},WSt=function(t,E,p){LS9.call(this,t,E,p);this.cueId_="playbackTrigger-"+Math.random()};
_.u(WSt,LS9);
WSt.prototype.prepareTrigger=function(t){var E=this,p=this.player.getDuration(),U=this.player.getVideoData(),x=U.isLive&&U.hasProgressBarBoundaries;if(x&&U.progressBarEndPositionUtcTimeMillis){var A=U.progressBarEndPositionUtcTimeMillis/1E3;isNaN(A)||(p=A)}var m=0;this.prefetchDelay>=0?x?U.progressBarStartPositionUtcTimeMillis&&(U=U.progressBarStartPositionUtcTimeMillis/1E3,isNaN(U)||(m=U+this.prefetchDelay)):m=this.prefetchDelay:m=p+this.prefetchDelay;x?this.player.addUtcCueRange(this.cueId_,m,p):
this.player.addCueRange(this.cueId_,m,p);_.Mx(t.promise,function(){E.player.removeCueRange(E.cueId_)});
Pkt(this,"onCueRangeEnter",function(b){b==E.cueId_&&t.resolve(p-m)})};
var $h7=function(t,E){t.fragmentConfiguration_[E].requiredKeys.every(function(p){return!!t.prefetchedData_[p]})&&(t.validatedFragments_.push(E),E=t.missingFragments_.indexOf(E),E!==-1&&t.missingFragments_.splice(E,1))},KS9=function(t){t.prefetchedFragments_.forEach(function(E){$h7(t,E)})},vMo=function(t,E,p){this.pageFragments_=t;
this.prefetchedFragments_=E;this.fragmentConfiguration_=oM7;this.prefetchedData_=p;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;KS9(this)},yIt=function(){},Skl=function(t){this.JSC$13523_playlistManager_=t};
_.u(Skl,yIt);Skl.prototype.getPrefetchEndpoint=function(){return this.JSC$13523_playlistManager_.getAutoplayEndpoint()};
var cIJ=function(t){this.autonavEndpoints_=t};
_.u(cIJ,yIt);cIJ.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var tvd=function(t,E,p,U,x){this.autonavEndpoints=t;this.foregroundTrigger=E;this.backgroundTrigger=p;this.pageType=U;this.isInPlaylist=x},EiK=function(t,E){if(t.webPrefetchData&&t.webPrefetchData.navigationEndpoints&&t.webPrefetchData.navigationEndpoints.length){t=t.webPrefetchData.navigationEndpoints;
var p=_.k(t[0],_.HD);if(p.watchEndpointSupportedPrefetchConfig&&p.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var U=p.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;p=U.playbackRelativeSecondsPrefetchCondition;p=typeof p==="number"&&Math.abs(p)<E.videoDuration?p:void 0;U=U.countdownUiRelativeSecondsPrefetchCondition;U=typeof U!=="number"||_.r("prefetch_job_config_cleanup_ks")&&E.inPlaylist?void 0:U;if(typeof U==="number")return new tvd(t,E.makeUpNextTrigger(U),E.makePlaybackTrigger(U),
"watch",E.inPlaylist);if(typeof p==="number")return new tvd(t,E.makePlaybackTrigger(p),null,"watch",E.inPlaylist)}}},p7e=function(t){return t.prefetchJobConfig_.backgroundTrigger?_.BC(ZWo)()==0?t.prefetchJobConfig_.backgroundTrigger:t.prefetchJobConfig_.foregroundTrigger:t.prefetchJobConfig_.foregroundTrigger},UxJ=function(t){_.pJ(document,"visibilitychange",t.onVisibilityChange_,!1,t)},Xe=function(t){ZI.call(this,t)};
_.u(Xe,ZI);Xe.prototype.getCacheKeyForEndpoint=function(t){return ZI.prototype.getCacheKeyForEndpoint.call(this,t)};
Xe.prototype.getTempData=function(){return{}};
Xe.prototype.getXhrParams=function(t){return t};
Xe.prototype.getParams=function(){return{}};
var xxJ=function(t,E,p){var U=t.prefetchDelay*1E3;if(Math.abs(U)>E)p.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var x=U,A=E-U;U<0&&(x=E+U,A=Math.abs(U));var m=t.JSC$13509_taskManager.addJob(function(){p.resolve(A/1E3)},10,x);
p.promise.thenCatch(function(){t.JSC$13509_taskManager.cancelJob(m)})}},AUe=function(t,E,p){LS9.call(this,t,E,p)};
_.u(AUe,LS9);AUe.prototype.prepareTrigger=function(t){var E=this;Pkt(this,"onAutonavCoundownStarted",function(p){xxJ(E,p,t)})};
var YHL=function(t){t.pendingPrefetchJob_&&(t.pendingPrefetchJob_.cancel(),t.pendingPrefetchJob_=null)},Mvo=function(t,E,p){if(!t.triggeredTargets.has(E)){var U=_.lcZ(t,E);
U.action=p;_.zCr(t,E,U)}},mxJ=function(t){_.ZKp();
_.c10("cpt")&&_.qW(Error("mh"));_.Ui.requestAnimationFrame(function(){_.Ui.setTimeout(function(){_.SR("cpt");var E=_.EF("vpl"),p=_.EF("cpt");E&&p&&_.SR("ol",Math.max(E,p))})});
try{_.SR("fr_s"),t()}catch(E){_.bV(E)}_.Ui.requestAnimationFrame(function(){_.SR("bcp")})},bJJ={FILLED:"youtube_fill",
OUTLINE:"youtube_outline"},iJt=function(t,E){t.serviceEndpointHandlers.push(E)},qH9=function(t,E){E=t.pendingPages_.indexOf(E);
E>-1&&t.pendingPages_.splice(E,1)},HJK=function(t,E){var p=_.ES0.indexOf(E);
p>-1&&_.ES0.splice(p,1);t.targetPage_==E?(t.abort(),_.U5p(t)):qH9(t,E)},fvd=function(t,E){t.reloadContinuationItemsCommandMatcher=E},B0J=function(t,E,p){E&&p&&(t.videos.forEach(function(U){U.videoId===E&&(U.itemId=p)}),t.recommendedVideos.forEach(function(U){U.videoId===E&&(U.itemId=p)}))},w7t=function(t){this.onStepChangeCallback=function(){};
this.flowRenderer=t};
w7t.prototype.getCurrentStep=function(){var t=this,E;return((E=this.flowRenderer.steps)!=null?E:[]).map(function(p){return _.k(p,_.pz)}).find(function(p){return p&&p.stepId===t.currentStepId})};
var RmJ=function(t,E){var p=E.flowStateEntityKey,U=t.flowStates.get(p);if(U)return U;E=new w7t(E);t.flowStates.set(p,E);return E},Vvl=function(t,E){for(var p=_.M(t.flowStates.entries()),U=p.next();!U.done;U=p.next()){var x=_.M(U.value);
U=x.next().value;x=x.next().value;if(x.flowRenderer.targetId===E){t.flowStates.delete(U);break}}},QQd=function(t,E){t.onStepChangeCallback=E;
t.onStepChangeCallback(t.getCurrentStep())},CdJ=function(t,E){var p=t.getCurrentStep();
if(p&&p.stepId===E)return!0;var U;return((U=t.flowRenderer.steps)!=null?U:[]).map(function(x){return _.k(x,_.pz)}).find(function(x){return x&&x.stepId===E})?(t.currentStepId=E,t.onStepChangeCallback(t.getCurrentStep()),!0):!1},jQ5=function(t,E,p,U){E={challenge:E};
p&&(E.webResponse=p);return _.rY(t.innertubeTransportService,E,_.Cf(eag),U)},rU8=function(t,E,p){if(!E.challenge)throw Error("ti");
if(E.botguardData&&E.botguardData.program){var U=new Xfo;U.initialize(E.botguardData,function(){aSb(U,{atr_challenge:E.challenge}).then(function(x){if(!x)throw Error("ui");return jQ5(t,E.challenge,x,p)}).catch(function(x){_.qW(x);
return jQ5(t,E.challenge,void 0,p)})},void 0)}else jQ5(t,E.challenge,void 0,p)},kl5=function(t,E,p){var U={};
E.ids&&(U.ids=[].concat(_.KB(E.ids)));E.engagementType&&(U.engagementType=E.engagementType);return _.rY(t.innertubeTransportService,U,_.Cf(_.ycm),p).then(function(x){if(!x)throw new _.cC("GetAttestationChallenge returned falsy");rU8(t,x,p)}).thenCatch(function(x){_.bV(x)})},dxL=function(t,E,p){return new _.PE(function(U,x){var A;
return _.q(function(m){if(m.nextAddress==1){var b=m.yield,f=E.engagementType,B=E.ids,R={};B=_.M(B!=null?B:[]);for(var V=B.next();!V.done;V=B.next())V=V.value,V.encryptedVideoId?R.encryptedVideoId=V.encryptedVideoId:V.externalChannelId?R.externalChannelId=V.externalChannelId:V.commentId?R.commentId=V.commentId:V.externalOwnerId?R.externalOwnerId=V.externalOwnerId:V.artistId?R.artistId=V.artistId:V.playlistId?R.playlistId=V.playlistId:V.externalPostId?R.externalPostId=V.externalPostId:V.shareId&&(R.shareId=
V.shareId);return b.call(m,zLK(f,R),2)}A=m.yieldResult;if(!A.challenge)return _.qW(Error("vi")),kl5(t,E,p).then(U,x),m.return();b=A;f={challenge:b.challenge};f.webResponse=b.webResponse;f.engagementType=E.engagementType;f.ids=E.ids;_.rY(t.innertubeTransportService,f,_.Cf(eag),p).then(U,x);_.Do(m)})})},Q7e=function(t,E){var p,U,x,A;
_.q(function(m){if(m.nextAddress==1){p=_.k(E,_.$iG);if(!(p&&p.listId&&t.response&&t.response.playingVideoId)||t.listId!==p.listId)return m.return();t.index===void 0&&(t.index=0);return m.yield(_.j8m(t.JSC$13362_playlistNetworkManager,p.listId,t.index,t.response.playingVideoId),2)}U=m.yieldResult;if(!U)return m.return();x=U.playlistId;A=U.playlistPanelRenderer;t.setPlaylistData(x,A,U.autoplayRenderer);_.Do(m)})},uBd=function(t,E,p){var U=t.getParams(p),x=_.pY8(E,U),A=t.getTempData(E,p);
A.endpoint=JSON.stringify(E);_.r("enable_unknown_lact_fix_on_html5")&&(_.X3().resolve(_.Ly),A.lact=_.af());var m={headers:{"X-YouTube-STS":_.qO("STS"),"x-youtube-csoc":1}};_.RK(x,A);return new _.PE(function(b,f){var B=t.getXhrParams(U),R;_.r("kevlar_cache_on_ttl_player")&&(R=_.X3().resolve(_.yc));R&&_.Qvd(R,E)?_.uso(R,E,A,window.location.href).then(function(V){V?b(V):f()},f):_.yVs(t.JSC$13499_networkManager_,E,B,t.onPartsCallback_.bind(t),m).then(function(V){V?b(V):f()},f)})},JUb=function(t,E){t.triggerPromise_=
E.start();
t.triggerPromise_.then(function(p){var U=t.prefetchEndpointProvider_.getPrefetchEndpoint();if(U){var x=TFt[t.prefetchJobConfig_.pageType].prefetchedFragments;t.prefetchRequestPromise_=uBd(t.JSC$13535_networkPrefetchRequest_,U,{fragmentsRequested:x,timeBeforeNextVideo:p});t.prefetchResponseCacheKey_=t.JSC$13535_networkPrefetchRequest_.getCacheKeyForEndpoint(U);UxJ(t);t.prefetchRequestPromise_.then(function(A){t.storePrefetchedDataCallback_(t.prefetchResponseCacheKey_,A);if(_.r("web_prefetch_preload_video")&&
x.length===1&&x[0]==="pl"&&A&&!A.playerAds&&!A.adPlacements){var m=_.k(U,_.DK),b=m!=null,f={raw_player_response:A,watch_endpoint:m};(A=_.X3().resolve(b?_.p_Z:_.gG))&&U&&A.then(function(B){b&&_.r("web_queue_preload_video")?(f.prefer_gapless=!0,B.queueNextVideo(f)):B.preloadVideoByPlayerVars(f)})}})}})},hR=function(t,E,p,U){this.prefetchEndpointProvider_=t;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=E;this.prefetchJobConfig_=p;this.JSC$13535_networkPrefetchRequest_=U;this.prefetchResponseCacheKey_=null};
hR.prototype.enqueue=function(){this.triggerPromise_||(JUb(this,p7e(this)),_.vu(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
hR.prototype.resolve=function(){this.cancel()};
hR.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.");UxJ(this)};
hR.prototype.onVisibilityChange_=function(){var t=this;_.BC(ZWo)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){t.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||JUb(this,p7e(this))};
var Iv7=function(t,E,p,U,x){E&&(E==null?0:E.videoId)&&p&&p.entries&&_.r("kevlar_enable_shorts_prefetch_in_sequence")&&(YHL(t),E=p.entries.map(function(A){var m;return(m=_.k(A.command,_.DK))==null?void 0:m.videoId}).indexOf(E.videoId),p=p.entries[E+1],p!=null&&p.command&&!_.k(p==null?void 0:p.command,_.fz)&&(U=new tvd([p.command],new WSt(U,_.ir,1),null,"shorts",!1),t.pendingPrefetchJob_=new hR(new cIJ(U.autonavEndpoints),function(){return!1},U,new Xe(x)),t.pendingPrefetchJob_.enqueue()))},gil=function(t,
E,p,U,x,A){var m=_.e3.getInstance();
if(!_.r("block_all_player_prefetch_requests")){YHL(t);var b=!!p.getPlaylistId(),f=p.getVideoData().isLive&&p.getVideoData().hasProgressBarBoundaries;if((m.getState()==2||b||f)&&(!p.getVideoData().isLive||f)){m={inPlaylist:b,videoDuration:p.getDuration(),makeUpNextTrigger:function(R){return new AUe(p,_.ir,R)},
makePlaybackTrigger:function(R){return new WSt(p,_.ir,R)}};
var B=EiK(E,m);B&&(t.pendingPrefetchJob_=new hR(B.isInPlaylist?new Skl(x):new cIJ(B.autonavEndpoints),function(R,V){V=new vMo(TFt[B.pageType].pageFragments,TFt[B.pageType].prefetchedFragments,V);return _.Ic3(V)?(t.prefetchCache_.set(R,V),!0):!1},B,new Op(U,p,A,x)),t.pendingPrefetchJob_.enqueue())}}},ZJL=function(){var t=_.gY();
t.signals.parkOrScheduleJob(function(){var E=t.storage;if(E.storage)if(GG8(E)){var p=E.getPlaylistId();E=nMC(E);p=!!p&&E!==void 0}else E.clear(),p=!1;else p=!1;if(p){p=t.JSC$13362_pageManager.isOnWatch();a:{var U=t.storage;if(U.storage&&GG8(U)&&(E=U.getPlaylistId(),U=nMC(U),E&&U!==void 0)){p={recoverPlaylistCommand:{listId:E,index:U,openMiniplayer:!p,openListPanel:p,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}p=void 0}p&&_.bP(t.JSC$13362_actionRouter,[p],null)}},0,"ma")},OJe=function(t,E,p,
U,x,A){var m=_.h8(7111);
_.Tw(t.JSC$18893_screenManager,m,A?_.$8(A):void 0);_.WH(t.JSC$18893_screenManager,m,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:U,offlineId:E,offlineabilityFormatType:p,isDefaultFormatType:x==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:x}})},X7o=function(t,E,p,U,x){var A,m,b,f,B;
return _.q(function(R){if(R.nextAddress==1)return R.yield(t.JSC$18893_playerApiPromise,2);A=R.yieldResult;OJe(t,E,p,"OFFLINE_OBJECT_TYPE_PLAYLIST",U,x);if(b=_.sAT[t.entityTypeMap.listEntityType])B={},m=(B[b]={maximumDownloadQuality:(f=p)!=null?f:void 0},B);return R.yield(A.queueOfflineAction(E,t.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",m),0)})},hmo=function(t,E){var p,U,x,A;
return _.q(function(m){if(m.nextAddress==1)return m.yield(t.JSC$18893_persistentStorePromiseAccessor(),2);if(m.nextAddress!=3){p=m.yieldResult;if(!p)return _.qW(new _.cC("PES is undefined")),m.return();U=_.X1(E,"downloadStatusEntity");return m.yield(lSd(p,U,"downloadStatusEntity"),3)}x=m.yieldResult;return m.return((A=x)==null?void 0:A.downloadState)})},avK=function(t,E,p,U,x){var A,m,b,f,B,R;
return _.q(function(V){switch(V.nextAddress){case 1:return V.yield(t.JSC$18893_playerApiPromise,2);case 2:A=V.yieldResult;OJe(t,E,p,"OFFLINE_OBJECT_TYPE_VIDEO",U,x);if(b=_.sAT[t.entityTypeMap.singleEntityType])B={},m=(B[b]={maximumDownloadQuality:(f=p)!=null?f:void 0},B);return V.yield(hmo(t,E),3);case 3:R=V.yieldResult;if(R!=="DOWNLOAD_STATE_USER_DELETED"){V.jumpTo(4);break}return V.yield(t.deleteVideo(E),4);case 4:return V.yield(A.queueOfflineAction(E,t.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
m),0)}})},emo=function(t,E,p,U,x){return _.q(function(A){return A.nextAddress==1?A.yield(t.deleteVideo(E,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):A.yield(avK(t,E,p,U,x),0)})},Fmo=function(t,E,p){var U,x;
return _.q(function(A){if(A.nextAddress==1)return A.yield(t.JSC$18893_playerApiPromise,2);U=A.yieldResult;x=_.X1(E,"mainVideoDownloadStateEntity");return A.yield(U.updateDownloadState(x,p),0)})},fyg=function(t){var E=_.X3().resolve(_.RX);
return _.q(function(p){if(p.nextAddress==1)return E.previousDownloadStateForVideo[t]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&E.previousDownloadStateForVideo[t]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?p.jumpTo(2):p.yield(E.resumeVideoDownload(t),2);if(p.nextAddress!=4)return p.yield(Fmo(E,t,E.previousDownloadStateForVideo[t]),4);delete E.previousDownloadStateForVideo[t];_.Do(p)})},qt5=function(t,E){var p;
return _.q(function(U){if(U.nextAddress==1)return U.yield(t.JSC$18893_playerApiPromise,2);p=U.yieldResult;return U.yield(p.queueOfflineAction(E,t.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},mqe=function(){var t=_.X3().resolve(_.RX),E,p;
return _.q(function(U){if(U.nextAddress==1)return U.yield(t.JSC$18893_playerApiPromise,2);if(U.nextAddress!=3)return E=U.yieldResult,p={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},U.yield(E.queueOfflineAction("!*$_ALL_ENTITIES_!*$",t.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",p),3);var x=t.JSC$18893_commandHandler,A=x.resolveCommand,m=_.zF("DELETING_ALL",void 0,"Downloads are being deleted");A.call(x,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.kh(m)}},
popupType:"TOAST"}});_.Do(U)})},zmt=function(t,E){var p,U,x,A,m,b;
return _.q(function(f){if(f.nextAddress==1)return f.yield(t.JSC$18893_persistentStorePromiseAccessor(),2);if(f.nextAddress!=3)return p=f.yieldResult,p?f.yield(lSd(p,_.Kb,"downloadsPageViewConfigurationEntity"),3):(_.qW(new _.cC("PES is undefined")),f.return());x=(U=f.yieldResult)!=null?U:{};b=(m=(A=x)==null?void 0:A.downloadsUpsellBannerVisibility)!=null?m:{};return b.visibleWithConnection?f.yield(E.refreshAllStaleEntities(0),0):f.jumpTo(0)})},lvC=function(t){var E,p;
return _.q(function(U){if(U.nextAddress==1)return U.yield(t.JSC$18893_prefStorage,2);E=U.yieldResult;return U.return((p=E)==null?void 0:p.get("sdois"))})},Gll=function(t){var E,p,U,x,A,m;
return _.q(function(b){if(b.nextAddress==1)return b.yield(t.JSC$18893_persistentStorePromiseAccessor(),2);if(b.nextAddress!=3){E=b.yieldResult;if(!E)return _.qW(new _.cC("PES is undefined")),b.return();p=_.X1("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return b.yield(lSd(E,p,"settingEntity"),3)}U=b.yieldResult;return b.return((m=(x=U)==null?void 0:(A=x.settingOptionValue)==null?void 0:A.boolValue)!=null?m:!1)})},nil=function(t,E){var p,U,x,A;
return _.q(function(m){switch(m.nextAddress){case 1:return((p=E)==null?void 0:p.formatType)===void 0?m.return():m.yield(t.JSC$18893_prefStorage,2);case 2:U=m.yieldResult;if(U===void 0)return m.return();if(((x=E)==null?void 0:x.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return m.yield(U.set("lmqf",E.formatType),8);if(((A=E)==null?void 0:A.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){m.jumpTo(0);break}return m.yield(U.set("lmqf",E.formatType),6);case 6:return m.yield(U.set("lmqflst",
Math.floor((0,_.eu)())),0);case 8:return m.yield(U.remove("lmqflst"),0)}})},N0o=function(t){var E,p;
return _.q(function(U){switch(U.nextAddress){case 1:return U.yield(t.JSC$18893_prefStorage,2);case 2:E=U.yieldResult;if(!E){U.jumpTo(3);break}return U.yield(E.get("lmqflst"),4);case 4:if(p=U.yieldResult,p!==void 0)return U.return(p);case 3:return U.return(0)}})},Dxo=function(t){var E,p,U;
return _.q(function(x){return x.nextAddress==1?x.yield(t.JSC$18893_prefStorage,2):x.nextAddress!=3?(E=x.yieldResult,x.yield((p=E)==null?void 0:p.get("ldtmes"),3)):x.return((U=x.yieldResult)!=null?U:!1)})},Xqe=function(){var t=_.X3().resolve(_.RX),E;
return _.q(function(p){if(p.nextAddress==1)return p.yield(t.JSC$18893_prefStorage,2);E=p.yieldResult;return E===void 0?p.return():p.yield(E.set("ldtmes",!0),0)})},sQb=function(t){var E,p;
return _.q(function(U){switch(U.nextAddress){case 1:return U.yield(t.JSC$18893_prefStorage,2);case 2:E=U.yieldResult;if(E===void 0){U.jumpTo(3);break}return U.yield(E.get("lmqf"),4);case 4:if(p=U.yieldResult,p!==void 0)return U.return(p);case 3:return U.return("SD")}})},rhb=function(t,E,p){var U,x,A,m,b,f,B,R;
_.q(function(V){switch(V.nextAddress){case 1:return V.yield(nil(t,(U=E)==null?void 0:U.actionParams),2);case 2:x=E.playlistId;if(!x)return V.return();if(E.action==="ACTION_ADD")return((m=E.actionParams)==null?0:m.formatType)?V.yield(X7o(t,x,E.actionParams.formatType,(R=E.actionParams)==null?void 0:R.settingsAction,p),0):V.yield(t.offlineWebClientEligibility,14);if(E.action==="ACTION_REMOVE_WITH_PROMPT"){var Q=t.JSC$18893_commandHandler,C=Q.resolveCommand,d=_.qO("INNERTUBE_CLIENT_NAME");var I=d===
"WEB_REMIX"?_.zF("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.zF("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var O=d==="WEB_REMIX"?[_.zF("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];d=d==="WEB_REMIX"?_.zF("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.zF("DELETE",void 0,"Delete");var a=_.zF("CANCEL",void 0,"Cancel");I=lD8(I,O,d,a,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:x});C.call(Q,{openPopupAction:I});return V.return()}if(E.action===
"ACTION_REMOVE")return V.yield(qt5(t,x),0);if(E.action!=="ACTION_SYNC"){V.jumpTo(0);break}return V.yield(t.JSC$18893_playerApiPromise,9);case 9:return A=V.yieldResult,V.yield(A.queueOfflineAction(x,t.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return b=V.yieldResult,V.yield(sQb(t),15);case 15:return f=V.yieldResult,V.yield(N0o(t),16);case 16:B=V.yieldResult,E.onAddCommand&&t.JSC$18893_commandHandler.resolveCommand(E.onAddCommand,{form:{preferredFormatType:f,
offlineWebClientEligibility:b,lastOfflineQualitySettingsSavedMs:B.toString()}}),V.jumpTo(0)}})},C3t=function(t,E,p){var U,x,A,m,b,f,B,R,V,Q,C,d,I,O,a,F,L,D,W,K;
_.q(function(v){switch(v.nextAddress){case 1:return v.yield(nil(t,(U=E)==null?void 0:U.actionParams),2);case 2:x=E.videoId;if(!x)return v.return();if(E.action==="ACTION_REMOVE_WITH_PROMPT"){var YL=t.JSC$18893_commandHandler,bY=YL.resolveCommand,kL=_.qO("INNERTUBE_CLIENT_NAME");var R0=kL==="WEB_REMIX"?_.zF("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.zF("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var j$=kL==="WEB_REMIX"?[_.zF("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,
"This track won't be available to listen offline.")]:[];kL=kL==="WEB_REMIX"?_.zF("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.zF("DELETE",void 0,"Delete");var lY=_.zF("CANCEL",void 0,"Cancel");R0=lD8(R0,j$,kL,lY,{signal:"DELETE_DOWNLOAD",targetId:x});bY.call(YL,{openPopupAction:R0});return v.return()}if(E.action==="ACTION_ADD")return((F=E.actionParams)==null?0:F.formatType)?v.yield(avK(t,x,E.actionParams.formatType,(K=E.actionParams)==null?void 0:K.settingsAction,p),0):v.yield(t.offlineWebClientEligibility,
28);if(E.action==="ACTION_RETRY")return v.yield(sQb(t),24);if(E.action==="ACTION_PAUSE")return v.yield(t.pauseVideoDownload(x),0);if(E.action==="ACTION_RESUME")return v.yield(t.resumeVideoDownload(x),0);if(E.action==="ACTION_REMOVE")return v.yield(hmo(t,x),18);if(!_.r("kevlar_enable_download_to_mobile")){v.jumpTo(0);break}A=_.k(E.onAddCommand,_.Vb);b=(m=A)==null?void 0:m.isCrossDeviceDownload;if(!E.onAddCommand||!b){v.jumpTo(0);break}f="HD";return v.yield(N0o(t),16);case 16:return B=v.yieldResult,
v.yield(Dxo(t),17);case 17:R=v.yieldResult;t.JSC$18893_commandHandler.resolveCommand(E.onAddCommand,{form:{preferredFormatType:f,lastOfflineQualitySettingsSavedMs:B.toString(),downloadToMobileEduShown:R}});v.jumpTo(0);break;case 18:return V=v.yieldResult,t.previousDownloadStateForVideo[x]=(Q=V)!=null?Q:"DOWNLOAD_STATE_UNKNOWN",v.yield(Fmo(t,x,"DOWNLOAD_STATE_USER_DELETED"),19);case 19:if(t.previousDownloadStateForVideo[x]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&t.previousDownloadStateForVideo[x]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){v.jumpTo(20);break}return v.yield(t.pauseVideoDownload(x),20);case 20:YL=_.zF("DELETED_VIDEO",void 0,"Video deleted from downloads.");bY=_.zF("UNDO_ACTION",void 0,"Undo");R0=_.zF("CLOSE",void 0,"Close");C={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.kh(YL),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.kh(bY),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:x}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:YL+" "+bY}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:x}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:R0}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};t.JSC$18893_commandHandler.resolveCommand(C);
v.jumpTo(0);break;case 24:d=v.yieldResult;d==="UNKNOWN_FORMAT_TYPE"&&(d="SD");I="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((O=E.actionParams)==null?0:O.formatType)d=E.actionParams.formatType,I=(a=E.actionParams)==null?void 0:a.settingsAction;return v.yield(emo(t,x,d,I,p),25);case 25:return v.return();case 28:return L=v.yieldResult,v.yield(sQb(t),29);case 29:return D=v.yieldResult,v.yield(N0o(t),30);case 30:W=v.yieldResult,E.onAddCommand&&t.JSC$18893_commandHandler.resolveCommand(E.onAddCommand,
{form:{preferredFormatType:D,offlineWebClientEligibility:L,lastOfflineQualitySettingsSavedMs:W.toString()}}),v.jumpTo(0)}})},Lmb=function(t,E){var p,U,x,A,m,b,f;
return _.q(function(B){if(B.nextAddress==1)return B.yield(t.JSC$18893_persistentStorePromiseAccessor(),2);p=B.yieldResult;if(!p)return _.qW(new _.cC("PES is undefined")),B.return();if((U=E)==null||!U.settingItemId)return B.return();x=E;A=x.settingItemId;m=x.boolValue;b=_.X1(A,"settingEntity");f={key:b,settingOptionValue:{boolValue:m}};return B.yield(zad(p,f),0)})},PdK=function(t,E){var p,U,x,A,m,b,f;
return _.q(function(B){switch(B.nextAddress){case 1:return B.yield(t.JSC$18893_prefStorage,2);case 2:return p=B.yieldResult,U=_.nF(),B.yield(t.JSC$18893_persistentStorePromiseAccessor(),3);case 3:return x=B.yieldResult,p?x?B.yield(p.get("sdois"),4):(_.qW(new _.cC("PES is undefined")),B.return()):(_.qW(new _.cC("prefStorage is undefined")),B.return());case 4:A=B.yieldResult;b=(m=E)==null?void 0:m.boolValue;b===void 0||_.r("kevlar_set_sd_enabled_flag_killswitch")||_.N_(0,197,!0);A===void 0&&b===void 0&&
(b=!1);if(b===void 0){B.jumpTo(0);break}return B.yield(p.set("sdois",b),6);case 6:return _.r("kevlar_set_sd_enabled_flag_killswitch")||(_.N_(0,196,b),U.save()),f={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:b},B.yield(Lmb(t,f),0)}})},T0g=function(t,E,p){var U,x,A,m,b;
return _.q(function(f){switch(f.nextAddress){case 1:return f.yield(lvC(t),2);case 2:return U=f.yieldResult,f.yield(PdK(t,p),3);case 3:return f.yield(lvC(t),4);case 4:return x=f.yieldResult,A=x!==U,f.yield(Gll(t),5);case 5:m=f.yieldResult&&!_.r("kevlar_modern_downloads_page");if((b=!x&&!m)||A)return f.yield(E.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);f.jumpTo(0)}})},wq8=function(){var t=_.X3().resolve(_.RX),
E;
_.q(function(p){switch(p.nextAddress){case 1:return p.yield(t.JSC$18893_playerApiPromise,2);case 2:E=p.yieldResult;if(!_.r("kevlar_force_refresh_smart_downloads")){p.jumpTo(3);break}return p.yield(E.refreshAllStaleEntities(0),4);case 4:return p.return();case 3:return p.yield(E.refreshAllStaleEntities(),5);case 5:return p.yield(T0g(t,E),6);case 6:if(_.r("enable_download_pep_for_premium_countries_web"))return p.yield(zmt(t,E),0);p.jumpTo(0)}})},dql=function(t,E){var p,U;
_.q(function(x){switch(x.nextAddress){case 1:return x.yield(t.JSC$18893_playerApiPromise,2);case 2:p=x.yieldResult;switch((U=E)==null?void 0:U.settingItemId){case "SMART_DOWNLOADS_ENABLED":return x.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return x.jumpTo(4)}x.jumpTo(0);break;case 3:return x.yield(T0g(t,p,E),6);case 6:x.jumpTo(0);break;case 4:return x.yield(Lmb(t,E),7);case 7:x.jumpTo(0)}})},oi8=function(t,E){var p,U,x;
return _.q(function(A){if(A.nextAddress==1)return A.yield(t.JSC$18893_persistentStorePromiseAccessor(),2);if(A.nextAddress!=3){p=A.yieldResult;if(!p)return _.qW(new _.cC("PES is undefined")),A.return(!1);if(!E)return A.return(!1);U=_.X1(E,"mainVideoEntity");return A.yield(lSd(p,U,"mainVideoEntity"),3)}x=A.yieldResult;return A.return(x!==void 0)})},Jht=function(t){var E=_.X3().resolve(_.RX),p,U,x,A,m,b,f,B,R,V,Q;
_.q(function(C){switch(C.nextAddress){case 1:return C.yield(E.JSC$18893_playerApiPromise,2);case 2:p=C.yieldResult;x=(U=t)==null?void 0:U.actions;if(!x)return C.return();A=_.M(x);m=A.next();case 3:if(m.done){C.jumpTo(0);break}b=m.value;B=f=void 0;if(!(((f=b)==null?0:f.entityKey)&&((B=b)==null?0:B.actionType))){C.jumpTo(4);break}R=_.gm(b.entityKey);V=R.entityId;Q=R.entityType;return C.yield(p.queueOfflineAction(V,Q,b.actionType),4);case 4:m=A.next(),C.jumpTo(3)}})},Wmo=function(t,E){var p,U,x,A,m;
return _.q(function(b){if(b.nextAddress==1)return b.yield(t.JSC$18893_prefStorage,2);if(b.nextAddress!=3)return(p=b.yieldResult)?b.yield(p.get("psi"),3):b.return();U=b.yieldResult;m={isPaused:E,lastSyncTimestamp:(A=(x=U)==null?void 0:x.lastSyncTimestamp)!=null?A:"0"};return b.yield(p.set("psi",m),0)})},Z1J=function(t){var E=_.X3().resolve(_.RX),p,U,x,A,m,b,f,B;
return _.q(function(R){switch(R.nextAddress){case 1:return R.yield(E.JSC$18893_playerApiPromise,2);case 2:p=R.yieldResult;x=((U=t)==null?void 0:U.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((b=t)==null?void 0:b.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":A="!*$_ALL_ENTITIES_!*$";m="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return R.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return R.jumpTo(4)}R.jumpTo(5);break;case 3:return R.yield(Wmo(E,x),6);case 6:R.jumpTo(5);break;case 4:return R.yield(oi8(E,(f=t)==null?void 0:f.videoId),7);case 7:R.yieldResult&&(A=(B=t)==null?void 0:B.videoId,m="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");R.jumpTo(5);break;case 5:if(A&&m)return R.yield(p.queueOfflineAction(A,"videoPlaybackPositionEntity",m),0);R.jumpTo(0)}})},$x7=function(t,E){_.X3().resolve(_.q4).persistentPanelContainerMap.set(E,t)},
Km9=function(t,E,p){t.hasRegisteredHoverCallbacks=!0;
t.hoverEnterCallback=E!=null?E:void 0;t.hoverLeaveCallback=p!=null?p:void 0},vit=function(){return _.X3().resolve(_.$V).dismissedIndices},yU5=function(t,E,p){var U,x=(U=_.k(E,_.DK))==null?void 0:U.videoId;
U=!(!x||!t.find(function(m){return m.videoId&&m.videoId===x}));
var A=!!t.find(function(m){var b;return((b=_.k(m.command,_.DK))==null?void 0:b.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"});
t=!!t.find(function(m){return!!_.k(m.command,_.fz)&&!!_.k(E,_.fz)&&m.command===E});
return p?U||t:U||A||t},SHL=function(t,E,p){var U=[].concat(_.KB(t)),x=0,A=p?hLK(p):[];
p=p?aDg(p):[];A.length&&!yU5(t,A[0].command,!0)&&U.push.apply(U,_.KB(A));E&&!yU5(U,E.command)&&U.unshift(E);E&&p.length&&!yU5(t,p[0].command)&&(_.r("web_enable_shorts_sequence_refactor_unify")?U.push.apply(U,_.KB(p.reverse())):U.unshift.apply(U,_.KB(p.reverse())),x=p.length);return{newContentList:U,indexChange:x}},cU5=function(){var t=_.X3().resolve(_.$V);
_.iyK(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(t.isFullscreenEnabled()?_.CF(document.documentElement):_.YuO(document.documentElement))},trt=function(t,E){var p;
E!==1||((p=t.currentPersistentToast)==null?0:p.isOpened())?_.Qmb(t):t.currentPersistentToast=void 0},EEK=function(t,E){var p;
return(p=t.transitionTasksMap.get(E))!=null?p:[]},plL=function(t,E){var p=[];
t.elementTasksMap.forEach(function(U){(U=U.get(E))&&p.push(U)});
return p},UCl=function(t,E,p,U,x){x=x===void 0?{}:x;
var A=E.defaultViewTransitionOptions;return Object.assign({},A,x,{beforeTransition:function(){U.forEach(function(B){B.beforeTransition()});
var m;(m=A.beforeTransition)==null||m.call(A);var b,f;(f=(b=x).beforeTransition)==null||f.call(b);p.forEach(function(B){B.beforeTransition()})},
afterTransition:function(){U.forEach(function(B){B.afterTransition()});
var m;(m=A.afterTransition)==null||m.call(A);var b,f;(f=(b=x).afterTransition)==null||f.call(b);p.forEach(function(B){B.afterTransition()})},
ignoredErrors:t.config.ignoredErrors})},xC8=function(t,E,p){t.transitionTasksMap.has(E)?t.transitionTasksMap.get(E).push(p):(t=new _.cC("Transition task registered for unknown transition type",E),_.bV(t))},AY8=function(t,E,p){if(t.transitionTasksMap.has(E)){var U=t.transitionTasksMap.get(E).filter(function(x){return x!==p});
t.transitionTasksMap.set(E,U)}},Y4t=function(t,E){var p=EEK(t,E);
p=_.M(p);for(var U=p.next();!U.done;U=p.next())U=U.value,U.runOnce&&AY8(t,E,U);t.elementTasksMap.forEach(function(x,A){x.forEach(function(m,b){m.runOnce&&E===b&&(x.delete(b),x.size===0&&t.elementTasksMap.delete(A))})})},MrL=function(t,E,p){var U,x,A,m,b,f,B,R,V;
_.q(function(Q){if(Q.nextAddress==1){if(t.config.disableAllTransitions)return Q.return(E());if((U=p)==null||!U.transitionType)return Q.return(nXt(E,Object.assign({},(x=p)==null?void 0:x.viewTransitionOptions,{ignoredErrors:t.config.ignoredErrors})));A=p;m=A.transitionType;b=A.viewTransitionOptions;f=t.config.transitionConfigs.get(m);if(!f)return Q.return(E());B=EEK(t,m);R=plL(t,m);V=nXt(E,UCl(t,f,B,R,b));return Q.yield(V,2)}Y4t(t,m);_.Do(Q)})},mCL=function(t,E){var p,U,x,A,m;
_.q(function(b){if(!E.length)return b.return([]);p=[];U=_.M(E);for(x=U.next();!x.done;x=U.next())A=x.value,(m=t.resolveIcon(A))&&!t.iconCache[m.url]&&p.push(_.FWK(t,m).then(function(){}).catch(function(){}));
return b.return(Promise.all(p))})},b3b=function(t,E){var p=[];
E=(new Set(E)).values();E=_.M(E);for(var U=E.next();!U.done;U=E.next()){U=U.value;for(var x=_.M(Object.values(bJJ)),A=x.next();!A.done;A=x.next())p.push({iconName:U,iconStyle:A.value})}mCL(t.iconManager,p)},i3K=function(t,E,p){var U=p!=null?p:t.iconsToFetch;
U!=null&&U.length?E!==void 0&&E>=0?_.E_(_.ir,function(){b3b(t,U)},E):b3b(t,U):Promise.resolve()},q4t=function(){var t,E,p,U;
return _.q(function(x){if(x.nextAddress==1)return t=navigator,(E=t.storage)!=null&&E.persisted?x.yield((p=t.storage)==null?void 0:p.persisted(),2):x.return("PERSISTED_STATE_NOT_SUPPORTED");U=x.yieldResult;return x.return(U?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},H3t=function(){var t,E,p,U;
return _.q(function(x){if(x.nextAddress==1)return t=navigator,(E=t.storage)!=null&&E.persist?x.yield((p=t.storage)==null?void 0:p.persist(),2):x.return("PERSISTED_STATE_NOT_SUPPORTED");U=x.yieldResult;return x.return(U?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},fJg=function(){var t,E;
return _.q(function(p){switch(p.nextAddress){case 1:return t="PERSISTED_STATE_NOT_SUPPORTED",_.aR(p,2),p.yield(q4t(),4);case 4:t=p.yieldResult;if(t!=="PERSISTED_STATE_NOT_GRANTED"){p.jumpTo(5);break}return p.yield(H3t(),6);case 6:t=p.yieldResult;case 5:_.r7(p,3);break;case 2:E=_.nB(p),E instanceof Error&&_.bV(E);case 3:return _.MW("persistentStorageStateChecked",{persistedState:t}),p.return(t)}})},BMK=function(t,E,p){if(t.isAnyTransitionEnabled){var U={beforeTransition:function(){p(!0);
E.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){E.style.viewTransitionName&&(E.style.viewTransitionName="",p(!1))}};
xC8(t.viewTransitionCoordinator,"slide",U);xC8(t.viewTransitionCoordinator,"lockup-to-watch",U);xC8(t.viewTransitionCoordinator,"watch-next-appears",U);xC8(t.viewTransitionCoordinator,"learning-journey",U)}},wlb=function(t,E,p,U){if(t.isLockupToWatchTransitionEnabled){if(E){var x={};
x=(x["watch-next-appears"]="player-watch-next-loaded",x);x["lockup-to-watch"]=t.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";t.viewTransitionCoordinator.registerElement(E,x)}p&&(E={},t.viewTransitionCoordinator.registerElement(p,(E["lockup-to-watch"]="below-lockup-to-watch",E["watch-next-appears"]="below-watch-next-loaded",E)));U&&(p={},t.viewTransitionCoordinator.registerElement(U,(p["watch-next-appears"]="secondary-watch-next-loaded",
p)))}},R_b=function(t,E){t.isBrowseTransitionEnabled?MrL(t.viewTransitionCoordinator,E,{transitionType:"slide"}):(E(),Promise.resolve())},Vro=function(t,E){t.isLockupToWatchTransitionEnabled?MrL(t.viewTransitionCoordinator,E,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){t.registeredLockupThumbnail=void 0;t.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(E(),Promise.resolve())},Qr7=function(t,E){t.isLockupToWatchTransitionEnabled?MrL(t.viewTransitionCoordinator,E,{transitionType:"watch-next-appears"}):(E(),Promise.resolve())},CBo=function(t,E){t.isLearningJourneyTransitionEnabled?MrL(t.viewTransitionCoordinator,E,{transitionType:"learning-journey"}):(E(),Promise.resolve())},jre=function(t,E,p){if(t.isInitialized()){var U=
cW(p),x=U==="watch";
U=U==="shorts";var A=cW(E)==="watch";if(x)A||(t.backgroundPageData=E),t.watchPipMode&&A||t.deactivate(p.endpoint);else if(U){if(cW(E)!=="shorts"){var m;(m=t.getPlayerElement())==null||m.pause()}}else A&&!t.watchPipMode&&(N15(E,p,!0)?(t.watchWhileMode&&_.atl(t,!1),_.ItL(t,E)):t.isMiniplayerActive()&&t.watchWhileMode&&t.deactivate());A&&_.FMC(t);t.shortsPipMode&&!U&&(window.focus(),t.deactivate());if(t.pictureInPictureEnabled())if(U&&t.shortsPipEnabled||x&&t.JSC$19312_watchPipEnabled&&(!t.watchPipManualOnlyEnabled||
_.ck_()&&_.kt$("Chromium")>=142))_.E$j(t.handleMediaSessionPipActivation);else if(!t.isMiniplayerActive()&&(t.shortsPipEnabled||t.JSC$19312_watchPipEnabled)&&_.ck_()){t=_.tGO().mediaSession;try{t.setActionHandler("enterpictureinpicture",null)}catch(b){}}}},rYt=function(t,E){var p,U;
_.q(function(x){if(x.nextAddress==1){if(!t||!t.navigationEndpoint)return x.return();_.S3().lockupActivation=!0;var A;E?A=_.wN(_.zF("QUEUE",void 0,"Queue")):A=t.longBylineText;U=(p=A)&&t.title?{miniplayerTitle:t.title,miniplayerSubtitle:p,playlistData:null}:void 0;return x.yield(_.Yzf(_.X3().resolve(_.bf),t.navigationEndpoint,!0,U),2)}_.S3().userActivation=!0;_.Do(x)})},wSg=function(t,E){var p,U,x,A,m,b;
_.q(function(f){if(f.nextAddress==1){p=_.k(E,_.W$0);if(!p||!p.listId)return f.return();t.index=p.index||t.index||0;U=t.response&&t.response.playingVideoId||void 0;return f.yield(_.j8m(t.JSC$13362_playlistNetworkManager,p.listId,t.index,U),2)}x=f.yieldResult;if(!x)return f.return();A=x.playlistId;m=x.playlistPanelRenderer;!t.queueProxy&&A&&m&&A.startsWith("TLPQ")&&(t.queueProxy=new _.Ci(t.JSC$13362_playlistNetworkManager,A,t.setPlaylistData.bind(t),t.clearQueue.bind(t),_.ElD(m),t.storage));if(p.openMiniplayer&&
(b=_.pMY(m))&&!t.JSC$13362_pageManager.isOnWatch()){var B=b,R=p.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";t.isMiniplayerActive()||rYt(B,R)}t.setPlaylistData(A,m,x.autoplayRenderer);_.Do(f)})},HrJ=function(t,E){var p=_.gY();
p.index===void 0&&(p.index=0);p.temporaryItems.push.apply(p.temporaryItems,_.KB(t));if((E.videoId||E.videoIds)&&p.index!==void 0&&E.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!p.queueProxy){var U=[];if(p.response){var x=_.X3().resolve(_.bf).isMiniplayerActive();if(p.response.playlistPanelRenderer&&p.response.playlistId&&!p.response.playlistId.startsWith("TLPQ")){if(p.JSC$13362_pageManager.isOnWatch()||x)U=_.ElD(p.response.playlistPanelRenderer)}else p.response.playingVideoId&&!E.openMiniplayer?
U.push(p.response.playingVideoId):x&&p.response.playingVideoId&&E.openMiniplayer&&U.push(p.response.playingVideoId)}p.queueProxy=new _.Ci(p.JSC$13362_playlistNetworkManager,"",p.setPlaylistData.bind(p),p.clearQueue.bind(p),U,p.storage);p.queueProxy.JSC$13308_setCurrentIndex(p.index)}p.queueProxy.addVideos(E.videoIds||[E.videoId],E)}NFg(p,t);p.response&&_.ZZ(p,_.OA(p,p.response.autoplayRenderer));p.JSC$13362_pageManager.isOnWatch()||(t=t[0],E=E.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",p.isMiniplayerActive()||
rYt(t,E))},k4e=function(t,E){var p;
return _.q(function(U){return U.nextAddress==1?E&&t.lastWelcomeContinuationSent!==E?_.v7g(t)?U.yield(t.panelController.isVisible("PAai_companion"),3):U.jumpTo(2):U.return(!1):U.nextAddress==2||(p=U.yieldResult,p)?U.return(!0):U.return(!1)})},dCt=function(t){var E,p,U,x,A;
return _.q(function(m){if(m.nextAddress==1){if(!t.welcomeOptions)return m.return();E=t.welcomeOptions;p=E.command;U=E.setPending;if(p){var b;var f=(b=_.k(p,_.x1))==null?void 0:b.token}else f=void 0;x=f;return m.yield(k4e(t,x),2)}if(!m.yieldResult)return m.return();t.lastWelcomeContinuationSent=x;(A=U)==null||A(!0);f="youchat-"+Date.now();b=(b=_.ew())?String(Math.floor(b.getCurrentTime())*1E3):void 0;_.Y2(p,{form:{formData:t_({clientMessageId:f,playerOffsetMs:b,pageContext:_.f_8(t,t.pageSubtype)})}});
_.Do(m)})},uct=function(t,E){_.q(function(p){t.welcomeOptions=E;
return p.yield(dCt(t),0)})},JY5=function(t){var E=_.Ye(t);
if(E=="object"||E=="array"){if(typeof t.clone==="function")return t.clone();if(typeof Map!=="undefined"&&t instanceof Map)return new Map(t);if(typeof Set!=="undefined"&&t instanceof Set)return new Set(t);E=E=="array"?[]:{};for(var p in t)E[p]=JY5(t[p]);return E}return t},De5=function(t,E){return Array.prototype.reduce.call(t,E,{duration:0})},aB=function(t,E){return _.gmL(_.sa(t,E,void 0,_.D1))},e6=function(t,E){return _.BK(_.sa(t,E,void 0,_.D1))},Fe=function(t,E){return _.omj(_.sa(t,E,void 0,_.D1))},
z7=function(t,E){return _.sa(t,E,void 0,_.D1,_.Ad)},IJg=_.Q$(function(t,E,p,U){if(_.hy)return _.pTO(t,E,p,U);
if(t.nextWireType_!==0)return!1;_.I$(E,p,U,_.JG(t.decoder_,_.y0));return!0},_.d6,_.Bq),gEC=_.Q$(function(t,E,p){if(_.hy)return _.A9J(t,E,p);
if(t.nextWireType_!==1)return!1;var U=t.decoder_;t=_.b3(U);U=_.b3(U);t=_.TX(t,U);_.Ct(E,p,t);return!0},_.W6O,_.FoG),Z3d=_.Q$(function(t,E,p){if(t.nextWireType_!==5)return!1;
_.Ct(E,p,_.b3(t.decoder_));return!0},function(t,E,p){E=_.XpO(E);
E!=null&&(_.j8(t,p,5),_.r6(t.encoder_,E))},_.hb0),O3b=_.Q$(function(t,E,p){if(t.nextWireType_!==2)return!1;
t=_.QtX(t);_.Ct(E,p,t===_.eW()?void 0:t);return!0},_.SSO,_.G54),XlC=_.GCL(function(t,E,p){if(t.nextWireType_!==0&&t.nextWireType_!==2)return!1;
E=_.YI(E,E[_.Mf]|0,p);t.nextWireType_==2?_.C8X(t,Rao,E):E.push(_.mA(t.decoder_));return!0},function(t,E,p){E=_.lkL(_.BK,E,!0);
if(E!=null&&E.length){p=_.JdX(t,p);for(var U=0;U<E.length;U++)_.PFO(t.encoder_,E[U]);_.I9m(t,p)}},_.ner),h_8=_.Q$(function(t,E,p,U){if(t.nextWireType_!==0)return!1;
_.I$(E,p,U,_.mA(t.decoder_));return!0},_.tsj,_.ner),aJC=function(t,E,p){return Math.abs(t-E)<=(p||1E-6)},e_C=function(t,E){return t==E?!0:t&&E?t.width==E.width&&t.height==E.height:!1},lM=function(t,E){t.insertBefore(E,t.childNodes[0]||null)},FCL=function(t){return t.previousElementSibling!==void 0?t.previousElementSibling:_.Ki0(t.previousSibling,!1)},z_l=function(t,E){var p=[];
for(E=E||0;E<t.length;E+=2)_.z7W(t[E],t[E+1],p);return p.join("&")},lJe=function(t,E){var p=arguments.length==2?z_l(arguments[1],0):z_l(arguments,1);
return _.F9W(t,p)},Hf8=_.hG(_.UQ),G4o=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(G4o,_.w6);G4o.prototype.getTypeName=function(){return _.th(this,1).split("/").pop()};
G4o.prototype.getValue=function(){var t=_.sa(this,2);if(Array.isArray(t)||t instanceof _.w6)throw Error("W");return _.oe(this,2)};
var nEC=[0,2,_.kC],Bzd=function(){var t=_.gN();this.JSC$10193_streamzService=t;t.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.Jg("channel_type"))};
Bzd.prototype.increment=function(t){this.JSC$10193_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",t)};
var w3L=function(){var t=_.gN();this.JSC$10196_streamzService=t;t.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.Jg("channel_type"))};
w3L.prototype.increment=function(t){this.JSC$10196_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",t)};
var VUo=function(){var t=_.gN();this.JSC$10199_streamzService=t;t.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.Jg("channel_type"))};
VUo.prototype.increment=function(t){this.JSC$10199_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",t)};
var R9l=function(){var t=_.gN();this.JSC$10202_streamzService=t;t.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
R9l.prototype.increment=function(){this.JSC$10202_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var QGK=function(){var t=_.gN();this.JSC$10205_streamzService=t;t.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.Jg("channel_type"),_.Jg("error_type"))};
QGK.prototype.increment=function(t,E){this.JSC$10205_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",t,E)};
var Cc7=function(){var t=_.gN();this.JSC$10208_streamzService=t;t.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
Cc7.prototype.increment=function(){this.JSC$10208_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var jGK=function(){var t=_.gN();this.JSC$10211_streamzService=t;t.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
jGK.prototype.increment=function(){this.JSC$10211_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var vCo=function(){var t=_.gN();this.JSC$10217_streamzService=t;t.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
vCo.prototype.increment=function(){this.JSC$10217_streamzService.JSC$10063_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
NMg=function(t){return t.getCount&&typeof t.getCount=="function"?t.getCount():_.LO(t)||typeof t==="string"?t.length:_.Kq.getCount(t)};
DC7=function(t,E){if(typeof t.every=="function")return t.every(E,void 0);if(_.LO(t)||typeof t==="string")return Array.prototype.every.call(t,E,void 0);for(var p=_.hMf(t),U=_.Zv(t),x=U.length,A=0;A<x;A++)if(!E.call(void 0,U[A],p&&p[A],t))return!1;return!0};
sre=function(t,E,p,U){var x=new _.fF(null);t&&_.OH(x,t);E&&_.XB(x,E);p&&_.hU(x,p);U&&_.aQ(x,U);return x};
LCC=function(t){if(t>=48&&t<=57||t>=96&&t<=106||t>=65&&t<=90||_.no&&t==0)return!0;switch(t){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 _.Ne;default:return!1}};
PBo=function(t){if(t.altKey&&!t.ctrlKey||t.metaKey||t.keyCode>=112&&t.keyCode<=123)return!1;if(LCC(t.keyCode))return!0;switch(t.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!_.Ne;default:return t.keyCode<166||t.keyCode>183}};
_.Im=function(t){this.__isSoyCss=!0;this.css=Ene.apply(null,[t.strings].concat(_.KB(t.args)))};
_.Im.prototype.toString=function(){return this.css};
var p6b=function(){_.Im.apply(this,arguments)};
_.u(p6b,_.Im);var TMt=[0,_.Rx,Z3d,-1],Hoo=0,Vfd=!1,tcd=function(t,E,p,U,x,A,m){this.date=typeof t==="number"?new Date(t,E||0,p||1,U||0,x||0,A||0,m||0):new Date(t&&t.getTime?t.getTime():_.Z1())};
_.Oa(tcd,_.tl);_.Y=tcd.prototype;_.Y.getHours=function(){return this.date.getHours()};
_.Y.getMinutes=function(){return this.date.getMinutes()};
_.Y.getSeconds=function(){return this.date.getSeconds()};
_.Y.getMilliseconds=function(){return this.date.getMilliseconds()};
_.Y.getUTCDay=function(){return this.date.getUTCDay()};
_.Y.getUTCHours=function(){return this.date.getUTCHours()};
_.Y.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.Y.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.Y.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.Y.setHours=function(t){this.date.setHours(t)};
_.Y.setMinutes=function(t){this.date.setMinutes(t)};
_.Y.setSeconds=function(t){this.date.setSeconds(t)};
_.Y.setMilliseconds=function(t){this.date.setMilliseconds(t)};
_.Y.setUTCHours=function(t){this.date.setUTCHours(t)};
_.Y.setUTCMinutes=function(t){this.date.setUTCMinutes(t)};
_.Y.setUTCSeconds=function(t){this.date.setUTCSeconds(t)};
_.Y.setUTCMilliseconds=function(t){this.date.setUTCMilliseconds(t)};
_.Y.add=function(t){_.tl.prototype.add.call(this,t);t.hours&&this.setUTCHours(this.date.getUTCHours()+t.hours);t.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+t.minutes);t.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+t.seconds)};
_.Y.JSC$11604_toIsoString=function(t){var E=_.tl.prototype.JSC$11604_toIsoString.call(this,t);return t?E+"T"+_.l3(this.getHours(),2)+":"+_.l3(this.getMinutes(),2)+":"+_.l3(this.getSeconds(),2):E+"T"+_.l3(this.getHours(),2)+_.l3(this.getMinutes(),2)+_.l3(this.getSeconds(),2)};
_.Y.equals=function(t){return this.getTime()==t.getTime()};
_.Y.toString=function(){return this.JSC$11604_toIsoString()};
_.Y.clone=function(){var t=new tcd(this.date);t.firstDayOfWeek_=this.firstDayOfWeek_;t.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return t};
U3.prototype.set=function(t){this.relativeTimeStart_=t};
U3.prototype.reset=function(){this.set(_.Z1())};
U3.prototype.get=function(){return this.relativeTimeStart_};
var oEd=null,WC9=function(){oEd||(oEd=new U3)},$Cd=function(){oEd||(oEd=new U3)};
_.Oa($Cd,WC9);_.Y=CnL.prototype;_.Y.JSC$11630_buffer_="";_.Y.set=function(t){this.JSC$11630_buffer_=""+t};
_.Y.append=function(t,E,p){this.JSC$11630_buffer_+=String(t);if(E!=null)for(var U=1;U<arguments.length;U++)this.JSC$11630_buffer_+=arguments[U];return this};
_.Y.clear=function(){this.JSC$11630_buffer_=""};
_.Y.getLength=function(){return this.JSC$11630_buffer_.length};
_.Y.toString=function(){return this.JSC$11630_buffer_};
var gnK={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"},kx7=function(t){this.xhr=t},A_=function(t,E,p){_.tD.call(this,t+", errorCode="+E);
this.errorCode=E;this.xhr=p;this.name="PromiseAjaxError"};
_.u(A_,_.tD);var KC9=!1,efd=function(t){_.tD.call(this,t.message||t.description||t.name);this.isMissing=t instanceof YG;this.isTimeout=t instanceof A_&&t.errorCode=="net.timeout";this.isCanceled=t instanceof _.mF};
_.u(efd,_.tD);efd.prototype.name="BiscottiError";var YG=function(){_.tD.call(this,"Biscotti ID is missing from server")};
_.u(YG,_.tD);YG.prototype.name="BiscottiMissingError";var rA5={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},X6b=null,QCL=function(){try{var t=_.ws("yt.ads.biscotti.getId_");return t?t():AAo()}catch(E){return _.S5(E)}},Pn9={'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"},vE7=function(t,E){return _.Jj({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:t,command:E}})},yY9=function(t){return _.Jj({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:t}})},S4t=function(t){return _.Jj({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:t}})},cYL=function(t){return _.Jj({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:t}})},txJ=function(){return _.Jj({type:"TALK_TO_RECS_RESET_STEP_STATES",
payload:null})},Ebe=function(t){return _.Jj({type:"SET_GUIDE_IS_EXPANDED",
payload:t})},piK=function(t){return _.Jj({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",
payload:t})},UiC=function(t){return _.Jj({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:t})},xib=function(t){return _.Jj({type:"SET_ONLINE_STATUS",
payload:t})},AB5=function(t){return _.Jj({type:"SET_IS_WATCH_ACTIVE",
payload:{isWatchActive:t}})},YWt=function(t){return _.Jj({type:"SET_IS_WATCH_NARROW_WIDTH",
payload:{isWatchNarrowWidth:t}})},Mxo=function(t){return _.Jj({type:"SET_IS_LIVE_CHAT_COLLAPSED",
payload:{isLiveChatCollapsed:t}})},mi9=function(t,E){return _.Jj({type:"SET_TRANSCRIPTION_STATE",
payload:{high:t,low:E}})},bm7=function(t){return _.Jj({type:"SET_OVERLAY_STATE",
payload:t})},Ymt=[[["I2JjbGp6bGM2cHFqMXByaW1hcnk=",
null,null],[null,["I3hhb2kwOHBvaWFpaXl0ZC10d28tY29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVy","I2c2bndmNzUybXJ0OXN0eWxlLXNjb3Bl"],null],["I3UwczlqcWVmcHZlOG1hc3RoZWFkLWFk",["I3F1ZzJwYnY4MTgxOHl0ZC1yaWNoLWdyaWQtcmVuZGVyZXI="],null],[null,["IzVpNDZ2dGZxb2V0dnl0ZC1yaWNoLWdyaWQtcmVuZGVyZXI=","I3F6aXIwcXg5bHNsNHN0eWxlLXNjb3Bl"],null],[null,["I2NscmY2eHhta3lqbnl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXI=","I3FhdnFhM3NyeTBpc3N0eWxlLXNjb3Bl"],null],[null,["I3NlMDVlb2U5eGJyNXl0ZC1hZC1zbG90LXJlbmRlcmVy"],null]],[["I2JmczZqcTkzbWxzaHBsYXllci1hZHM=",
null,null]],[[null,null,"IzRjejA4aHJvdXF0cXl0bHItYmFubmVyLWN0YS1yZW5kZXJlcg=="]]],tQd="#",imt=0,qWg=function(t,E,p){var U=this;this.priority=E;this.delay=p;this.jobId=0;this.completionCallback=_.SM;this.wrappedJob=function(){t();U.completionCallback()};
this.id=++imt};
qWg.prototype.enqueue=function(t){this.completionCallback=t;this.jobId=_.ir.addJob(this.wrappedJob,this.priority,this.delay)};
var G7=function(){_.Xc.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.u(G7,_.Xc);G7.prototype.addJob=function(t,E,p){t=new qWg(t,E,p);this.taskIdToTask.set(t.id,t);this.isActive?Hmo(this,t):this.suspendedTasks.add(t);return t.id};
var Hmo=function(t,E){t.scheduledTasks.add(E);E.enqueue(function(){t.scheduledTasks.delete(E)})};
G7.prototype.cancelJob=function(t){(t=this.taskIdToTask.get(t))&&(this.scheduledTasks.delete(t)?_.ir.cancelJob(t.jobId):this.suspendedTasks.delete(t))};
G7.prototype.pause=function(){var t=this;this.isActive=!1;this.scheduledTasks.forEach(function(E){_.ir.cancelJob(E.jobId);t.suspendedTasks.add(E)});
this.scheduledTasks.clear()};
G7.prototype.start=function(){var t=this;this.isActive=!0;this.suspendedTasks.forEach(function(E){Hmo(t,E)});
this.suspendedTasks.clear()};
G7.prototype.reset=function(){this.scheduledTasks.forEach(function(t){_.ir.cancelJob(t.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var fGo=function(t,E){this.JSC$13488_networkService_=t;this.pageRequestPromise=E};
fGo.prototype.fetchData=function(t){BTl(this,this.JSC$13488_networkService_.fetchData(t))};
fGo.prototype.postData=function(t,E){BTl(this,this.JSC$13488_networkService_.postData(t,E))};
fGo.prototype.requestDataForServiceEndpoint=function(t,E){BTl(this,this.JSC$13488_networkService_.requestDataForServiceEndpoint(t,E))};
var BTl=function(t,E){E.then(t.pageRequestPromise.onSuccess,t.pageRequestPromise.onFailure,t.pageRequestPromise)};
fGo.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var wie=function(t){this.buildNetworkRequest_=t;this.pendingRequests_=new Set};
wie.prototype.reset=function(){this.pendingRequests_.forEach(function(t){t.cancel()});
this.pendingRequests_.clear()};
wie.prototype.fetchData=function(t){var E=RSt(this);E.fetchData(t);return E.pageRequestPromise};
wie.prototype.postData=function(t,E){var p=RSt(this);p.postData(t,E);return p.pageRequestPromise};
wie.prototype.requestDataForServiceEndpoint=function(t,E){var p=RSt(this);p.requestDataForServiceEndpoint(t,E);return p.pageRequestPromise};
var RSt=function(t){var E=t.buildNetworkRequest_();t.pendingRequests_.add(E);var p=function(){t.pendingRequests_.delete(E)};
E.pageRequestPromise.then(p,p);return E},Vx5=function(t){var E=new G7;
this.JSC$13495_networkService_=t;this.JSC$13495_taskManager_=E;this.JSC$13495_networkManager_=new wie(this.networkRequestFactory_.bind(this))};
_.Y=Vx5.prototype;_.Y.networkRequestFactory_=function(){return new fGo(this.JSC$13495_networkService_,new _.T0(this.JSC$13495_taskManager_))};
_.Y.reset=function(){this.JSC$13495_taskManager_.reset();this.JSC$13495_networkManager_.reset()};
_.Y.start=function(){this.JSC$13495_taskManager_.start()};
_.Y.pause=function(){this.JSC$13495_taskManager_.pause()};
_.Y.getTaskManager=function(){return this.JSC$13495_taskManager_};
_.Y.getNetworkManager=function(){return this.JSC$13495_networkManager_};
var RJt=null,CH7=[],qmJ=0,wVK=0,H_g=null,kZJ=null,Hz=function(t){this.token=t};
Hz.getInstance=function(){var t;return _.q(function(E){if(E.nextAddress==1)return E.yield(_.hF(),2);t=E.yieldResult;if(!t)return E.return();Hz.instance||(Hz.instance=new Hz(t));return E.return(Hz.instance)})};
var hJl=function(t){var E;return _.q(function(p){if(p.nextAddress==1)return p.yield(Z_t(t.token),2);E=p.yieldResult;return p.return(E.clear("resource-manifest-assets"))})},qI=function(t){this.token=t};
qI.getInstance=function(){var t;return _.q(function(E){if(E.nextAddress==1)return E.yield(_.hF(),2);t=E.yieldResult;if(!t)return E.return();qI.instance||(qI.instance=new qI(t));return E.return(qI.instance)})};
var O_t=function(t){var E;return _.q(function(p){if(p.nextAddress==1)return p.yield(Z_t(t.token),2);E=p.yieldResult;return p.yield(E.clear("auth"),0)})},QJC=!1,vx8=null,yol=void 0,YTg=!1,CPC=function(t){if(!_.uA(document,"gtm-noscript")){var E=document.createElement("noscript");
E.id="gtm-noscript";E.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+t+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(E)}},jJK=function(t){_.tD.call(this,t)};
_.u(jJK,_.$aZ);
var t1g=!1,Ucd=[],pAl=!1,V1g={},YXb=function(t,E){var p=rBt,U=this;this.renderFn=t;this.listeners=p;this.context=E;this.getPlayerApi=void 0;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var x;this.lastSeenPlayerApi=_.mb((x=this.playerControlsData)==null?void 0:x.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.bD0(),void 0);_.r("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){MYb(U).setState({playerState:-1});U.resetRecentlyNavigatedJobId&&
_.ir.cancelJob(U.resetRecentlyNavigatedJobId);U.recentlyNavigated=!0;U.resetRecentlyNavigatedJobId=_.ir.addJob(function(){U.recentlyNavigated=!1},8,1E4)})};
YXb.prototype.setState=function(t){if(!_.r("mweb_player_skip_no_op_state_changes")||!Qpg(t,this.state))if(this.state=Object.assign({},this.state,t),!_.r("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)t=-1,_.r("player_controls_log_creation_killswitch")||CUe()||(t=(0,_.eu)()),_.SR("pcu_s"),_.SR("pcu_se"),_.SR("pcu_rs"),this.renderFn(MYb(this)),_.SR("pcu_re"),jpd(t),_.ir.addJob(function(){_.SR("pcu_ap")},8)};
var MYb=function(t){if(t.getPlayerApi)var E=_.mb(t.getPlayerApi());else{var p;E=_.mb((p=t.playerControlsData)==null?void 0:p.playerApi)}return Object.assign({},t.state,{setState:t.boundSetState,domMeasurements:{progressBarLineRect:t.progressBarLineRect},playerApi:E,appApi:t.context.appApi,playerContainer:t.context.playerContainer,playerControlContainer:t.context.playerControlContainer,uxConfig:t.context.uxConfig})},m6C=function(t){t.listeners.forEach(function(E){t.eventListenerCleanupFunctions.push(E.register(function(){return MYb(t)},
function(){return t.getData()}))})},b$t=function(t){t.eventListenerCleanupFunctions.forEach(function(E){E()});
t.eventListenerCleanupFunctions.length=0};
YXb.prototype.getData=function(){return this.playerControlsData};var i4g=function(){var t=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return t?parseInt(t[1],10):0},k9d=function(t){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+t)!=-1||document.currentScript.src.indexOf("&"+t)!=-1)},dig=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},wu8=function(t){t.length?ubd(t.shift(),function(){wu8(t)}):H4l()},V57=function(t){return"chrome-extension://"+t+"/cast_sender.js"},ubd=function(t,
E,p){var U=document.createElement("script");
U.onerror=E;p&&(U.onload=p);_.w3(U,_.cQ(t));(document.head||document.documentElement).appendChild(U)},JBl=function(){var t=i4g(),E=[];
if(t>1){var p=t-1;E.push("//www.gstatic.com/eureka/clank/"+t+"/cast_sender.js");E.push("//www.gstatic.com/eureka/clank/"+p+"/cast_sender.js")}return E},H4l=function(){var t=dig();
t&&t(!1,"No cast extension found")},Bne=function(){if(IGC){var t=2,E=dig(),p=function(){t--;
t==0&&E&&E(!0)};
window.__onGCastApiAvailable=p;ubd("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",H4l,p)}},ql7=function(){Bne();
var t=JBl();t.push("//www.gstatic.com/eureka/clank/cast_sender.js");wu8(t)},fwJ=function(){Bne();
var t=JBl();t.push.apply(t,_.KB(RvK.map(V57)));t.push("//www.gstatic.com/eureka/clank/cast_sender.js");wu8(t)},IGC=k9d("loadCastFramework")||k9d("loadCastApplicationFramework"),RvK=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var gbg=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(gbg,_.w6);var Zm7=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Zm7,_.w6);var Ome=function(){var t=new Zm7;return _.YC(t,1,3)};var nn=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(nn,_.w6);var Lu9=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Lu9,_.w6);var Xid=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Xid,_.w6);Xid.prototype.getToken=function(){return _.th(this,1)};
Xid.prototype.setToken=function(t){return _.R7(this,1,t)};
var Dc9=function(t){return _.cK(t,3,_.hd,_.ri())},spg=function(t){return _.cK(t,6,_.hd,_.ri())};var N5=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(N5,_.w6);N5.prototype.getToken=function(){return _.lJ(this,Xid,2)};
N5.prototype.setToken=function(t){return _.FU(this,2,t)};
N5.prototype.getName=function(){return _.th(this,6)};
var hS9=_.hG(N5);var aG9=function(t,E,p){this.requestMessage=t;this.methodDescriptor=E;this.metadata=p};
aG9.prototype.getMetadata=function(){return this.metadata};var eSJ=function(t,E){E=E===void 0?{}:E;this.responseMessage=t;this.metadata=E;this.status=null};
eSJ.prototype.getMetadata=function(){return this.metadata};
eSJ.prototype.getStatus=function(){return this.status};var DI=function(t,E,p,U,x){this.name=t;this.methodType="unary";this.requestType=E;this.responseType=p;this.requestSerializeFn=U;this.responseDeserializeFn=x},F$8=function(t,E,p){p=p===void 0?{}:p;
return new aG9(E,t,p)};
DI.prototype.getName=function(){return this.name};var sp=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(sp,_.w6);sp.prototype.getHeader=function(){return _.lJ(this,nn,1)};
sp.prototype.setHeader=function(t){return _.FU(this,1,t)};
sp.prototype.hasHeader=function(){return _.Pn(this,nn,1)};var zSe=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(zSe,_.w6);var lGC=new DI("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",sp,zSe,function(t){return t.serialize()},_.hG(zSe));var Ln=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Ln,_.w6);Ln.prototype.getHeader=function(){return _.lJ(this,nn,1)};
Ln.prototype.setHeader=function(t){return _.FU(this,1,t)};
Ln.prototype.hasHeader=function(){return _.Pn(this,nn,1)};var G9C=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(G9C,_.w6);var nb8=new DI("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",Ln,G9C,function(t){return t.serialize()},_.hG(G9C));var Pb=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Pb,_.w6);Pb.prototype.getHeader=function(){return _.lJ(this,nn,1)};
Pb.prototype.setHeader=function(t){return _.FU(this,1,t)};
Pb.prototype.hasHeader=function(){return _.Pn(this,nn,1)};var NTl=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(NTl,_.w6);NTl.prototype.getValues=function(t){return _.AdW(this,1,t)};var Di8=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Di8,_.w6);Di8.prototype.getLink=function(){return _.lJ(this,N5,1)};var sJ7=new DI("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",Pb,Di8,function(t){return t.serialize()},_.hG(Di8));var T7=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(T7,_.w6);T7.prototype.getHeader=function(){return _.lJ(this,nn,1)};
T7.prototype.setHeader=function(t){return _.FU(this,1,t)};
T7.prototype.hasHeader=function(){return _.Pn(this,nn,1)};var L$e=new DI("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",T7,N5,function(t){return t.serialize()},hS9);var PP9=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(PP9,_.w6);var TTt=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(TTt,_.w6);TTt.prototype.getUrl=function(){return _.th(this,2)};
TTt.prototype.setUrl=function(t){return _.R7(this,2,t)};var ob8=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(ob8,_.w6);var W$J=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(W$J,_.w6);var $i8=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u($i8,_.w6);var pLJ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(pLJ,_.w6);var tL8=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(tL8,_.w6);var K$J=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(K$J,_.w6);var q59=_.hG(K$J);var vbd=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(vbd,_.w6);var yBJ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(yBJ,_.w6);_.Y=yBJ.prototype;_.Y.getHeader=function(){return _.lJ(this,nn,1)};
_.Y.setHeader=function(t){return _.FU(this,1,t)};
_.Y.hasHeader=function(){return _.Pn(this,nn,1)};
_.Y.getCompletionUrl=function(){return _.th(this,6)};
_.Y.getDeviceId=function(){return _.th(this,11)};var SW7=new DI("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",yBJ,K$J,function(t){return t.serialize()},q59);var cBL=new Set(["SAPISIDHASH","APISIDHASH"]);var tE8=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(tE8,_.w6);tE8.prototype.getMessage=function(){return _.th(this,2)};
var EF5=_.hG(tE8);var UU5=function(t,E){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=t.nodeReadableStream;this.grpcResponseDeserializeFn=E;this.xhr=t.xhr;this.xhrNodeReadableStream&&p$g(this)},iQe=function(t,E){var p=new xUJ;
_.vu(t.xhr,"complete",function(){if(t.xhr.isSuccess()){var U=t.xhr.getResponseText();var x;if(x=E)x=t.xhr,x.JSC$10072_xhr_&&x.isComplete()?(x=x.JSC$10072_xhr_.getResponseHeader("Content-Type"),x=x===null?void 0:x):x=void 0,x=x==="text/plain";if(x){if(!atob)throw Error("ck");U=atob(U)}try{var A=t.grpcResponseDeserializeFn(U)}catch(b){AlK(t,u1t(new _.bd(13,"Error when deserializing response data; error: "+b+(", response: "+U)),p));return}U=_.I3E(t.xhr.getStatus());Yc9(t,MEC(t));U===0?mUC(t,A):AlK(t,
u1t(new _.bd(U,"Xhr succeeded but the status code is not 200"),p))}else{U=t.xhr.getResponseText();A=MEC(t);if(U){var m=bQL(t,U);U=m.code;x=m.details;m=m.metadata}else U=2,x="Rpc failed due to xhr error. uri: "+String(t.xhr.JSC$10072_lastUri_)+", error code: "+(t.xhr.JSC$10072_lastErrorCode_+", error: ")+t.xhr.getLastError(),m=A;Yc9(t,A);AlK(t,u1t(new _.bd(U,x,m),p))}})},p$g=function(t){t.xhrNodeReadableStream.on("data",function(E){if("1"in E){var p=E["1"];
try{var U=t.grpcResponseDeserializeFn(p)}catch(x){AlK(t,new _.bd(13,"Error when deserializing response data; error: "+x+(", response: "+p)))}U&&mUC(t,U)}if("2"in E)for(E=bQL(t,E["2"]),p=0;p<t.onStatusCallbacks.length;p++)t.onStatusCallbacks[p](E)});
t.xhrNodeReadableStream.on("end",function(){Yc9(t,MEC(t));for(var E=0;E<t.onEndCallbacks.length;E++)t.onEndCallbacks[E]()});
t.xhrNodeReadableStream.on("error",function(){if(t.onErrorCallbacks.length!==0){var E=t.xhr.JSC$10072_lastErrorCode_;E!==0||t.xhr.isSuccess()||(E=6);var p=-1;switch(E){case 0:var U=2;break;case 7:U=10;break;case 8:U=4;break;case 6:p=t.xhr.getStatus();U=_.I3E(p);break;default:U=14}Yc9(t,MEC(t));E=_.HRZ(E)+", error: "+t.xhr.getLastError();p!==-1&&(E+=", http status code: "+p);AlK(t,new _.bd(U,E))}})},MEC=function(t){var E={},p=Ck8(t.xhr);
Object.keys(p).forEach(function(U){E[U]=p[U]});
return E},bQL=function(t,E){var p=2,U={};
try{var x=EF5(E);p=_.kW(x,1);var A=x.getMessage();_.jd(x,G4o,3,_.ri()).length&&(U["grpc-web-status-details-bin"]=E)}catch(m){t.xhr&&t.xhr.getStatus()===404?(p=5,A="Not Found: "+String(t.xhr.JSC$10072_lastUri_)):(p=14,A="Unable to parse RpcStatus: "+m)}return{code:p,details:A,metadata:U}};
UU5.prototype.on=function(t,E){t==="data"?this.onDataCallbacks.push(E):t==="metadata"?this.onMetadataCallbacks.push(E):t==="status"?this.onStatusCallbacks.push(E):t==="end"?this.onEndCallbacks.push(E):t==="error"&&this.onErrorCallbacks.push(E);return this};
var qcg=function(t,E){E=t.indexOf(E);E>-1&&t.splice(E,1)};
UU5.prototype.removeListener=function(t,E){t==="data"?qcg(this.onDataCallbacks,E):t==="metadata"?qcg(this.onMetadataCallbacks,E):t==="status"?qcg(this.onStatusCallbacks,E):t==="end"?qcg(this.onEndCallbacks,E):t==="error"&&qcg(this.onErrorCallbacks,E);return this};
UU5.prototype.cancel=function(){this.xhr.abort()};
var mUC=function(t,E){for(var p=0;p<t.onDataCallbacks.length;p++)t.onDataCallbacks[p](E)},Yc9=function(t,E){for(var p=0;p<t.onMetadataCallbacks.length;p++)t.onMetadataCallbacks[p](E)},AlK=function(t,E){for(var p=0;p<t.onErrorCallbacks.length;p++)t.onErrorCallbacks[p](E)},xUJ=function(){var t=Error.call(this);
this.message=t.message;"stack"in t&&(this.stack=t.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.u(xUJ,Error);var HQC=function(t){this.JSC$19518_worker_=t.worker||null;this.JSC$19518_streamBinaryChunks_=t.streamBinaryChunks||!1;this.JSC$19518_credentialsMode_=void 0};
_.Oa(HQC,_.ZRY);HQC.prototype.createInstance=function(){var t=new oB(this.JSC$19518_worker_,this.JSC$19518_streamBinaryChunks_);this.JSC$19518_credentialsMode_&&t.setCredentialsMode(this.JSC$19518_credentialsMode_);return t};
HQC.prototype.setCredentialsMode=function(t){this.JSC$19518_credentialsMode_=t};
var oB=function(t,E){_.UH.call(this);this.JSC$19522_worker_=t;this.JSC$19522_streamBinaryChunks_=E;this.JSC$19522_credentialsMode_=void 0;this.status=this.readyState=0;this.responseURL=this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$19522_responseHeaders_=null;this.JSC$19522_method_="GET";this.JSC$19522_url_="";this.inProgress_=!1;this.JSC$19522_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.Oa(oB,_.UH);oB.prototype.open=function(t,E){if(this.readyState!=0)throw this.abort(),Error("dk");this.JSC$19522_method_=t;this.JSC$19522_url_=E;this.readyState=1;fx7(this)};
oB.prototype.send=function(t){if(this.readyState!=1)throw this.abort(),Error("ek");if(this.abortController_.signal.aborted)throw this.abort(),Error("fk");this.inProgress_=!0;var E={headers:this.requestHeaders_,method:this.JSC$19522_method_,credentials:this.JSC$19522_credentialsMode_,cache:void 0,signal:this.abortController_.signal};t&&(E.body=t);(this.JSC$19522_worker_||_.Ui).fetch(new Request(this.JSC$19522_url_,E)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
oB.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,B2J(this));this.readyState=0};
oB.prototype.handleResponse_=function(t){if(this.inProgress_&&(this.fetchResponse_=t,this.JSC$19522_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19522_responseHeaders_=t.headers,this.readyState=2,fx7(this)),this.inProgress_&&(this.readyState=3,fx7(this),this.inProgress_)))if(this.responseType==="arraybuffer")t.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Ui.ReadableStream!==
"undefined"&&"body"in t){this.currentReader_=t.body.getReader();if(this.JSC$19522_streamBinaryChunks_){if(this.responseType)throw Error("gk");this.response=[]}else this.response=this.responseText="",this.JSC$19522_textDecoder_=new TextDecoder;w$5(this)}else t.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var w$5=function(t){t.currentReader_.read().then(t.handleDataFromStream_.bind(t)).catch(t.handleSendFailure_.bind(t))};
oB.prototype.handleDataFromStream_=function(t){if(this.inProgress_){if(this.JSC$19522_streamBinaryChunks_&&t.value)this.response.push(t.value);else if(!this.JSC$19522_streamBinaryChunks_){var E=t.value?t.value:new Uint8Array(0);if(E=this.JSC$19522_textDecoder_.decode(E,{stream:!t.done}))this.response=this.responseText+=E}t.done?B2J(this):fx7(this);this.readyState==3&&w$5(this)}};
oB.prototype.handleResponseText_=function(t){this.inProgress_&&(this.response=this.responseText=t,B2J(this))};
oB.prototype.handleResponseArrayBuffer_=function(t){this.inProgress_&&(this.response=t,B2J(this))};
oB.prototype.handleSendFailure_=function(){this.inProgress_&&B2J(this)};
var B2J=function(t){t.readyState=4;t.fetchResponse_=null;t.currentReader_=null;t.JSC$19522_textDecoder_=null;fx7(t)};
oB.prototype.setRequestHeader=function(t,E){this.requestHeaders_.append(t,E)};
oB.prototype.getResponseHeader=function(t){return this.JSC$19522_responseHeaders_?this.JSC$19522_responseHeaders_.get(t.toLowerCase())||"":""};
oB.prototype.getAllResponseHeaders=function(){if(!this.JSC$19522_responseHeaders_)return"";for(var t=[],E=this.JSC$19522_responseHeaders_.entries(),p=E.next();!p.done;)p=p.value,t.push(p[0]+": "+p[1]),p=E.next();return t.join("\r\n")};
oB.prototype.setCredentialsMode=function(t){this.JSC$19522_credentialsMode_=t};
var fx7=function(t){t.onreadystatechange&&t.onreadystatechange.call(t)};
Object.defineProperty(oB.prototype,"withCredentials",{get:function(){return this.JSC$19522_credentialsMode_==="include"},
set:function(t){this.setCredentialsMode(t?"include":"same-origin")}});var RWt=function(t){var E="";_.Kq.forEach(t,function(p,U){E+=U;E+=":";E+=p;E+="\r\n"});
return E},VEe=function(t,E,p){if(_.Kq.isEmpty(p))return t;
p=RWt(p);if(typeof t==="string")return _.jI(t,_.VE(E),p);_.jK(t,E,p);return t};Jje.prototype.isInputValid=function(){return this.isInputValid_};
Jje.prototype.decode=function(t){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("hk`"+this.JSC$19528_streamPos_+"`stream already broken`"+t);this.leftoverInput_+=t;t=Math.floor(this.leftoverInput_.length/4);if(t==0)return null;try{var E=_.LJj(this.leftoverInput_.slice(0,t*4))}catch(p){throw E=this.leftoverInput_,t=p.message,this.isInputValid_=!1,Error("hk`"+this.JSC$19528_streamPos_+"`"+t+"`"+E);}this.JSC$19528_streamPos_+=t*4;this.leftoverInput_=this.leftoverInput_.slice(t*4);return E};IBL.prototype.isInputValid=function(){return this.state_!=3};
var QuJ=function(t,E,p,U){t.state_=3;t.errorMessage_="The stream is broken @"+t.JSC$19531_streamPos_+"/"+p+". Error: "+U+". With input:\n"+E;throw Error(t.errorMessage_);};
IBL.prototype.acceptsBinaryInput=function(){return!0};
IBL.prototype.parse=function(t){function E(f){f&128&&QuJ(A,m,b,"invalid tag");(f&7)!=2&&QuJ(A,m,b,"invalid wire type");A.tag_=f>>>3;A.tag_!=1&&A.tag_!=2&&A.tag_!=15&&QuJ(A,m,b,"unexpected tag");A.state_=1;A.length_=0;A.countLengthBytes_=0}
function p(f){A.countLengthBytes_++;A.countLengthBytes_==5&&f&240&&QuJ(A,m,b,"message length too long");A.length_|=(f&127)<<(A.countLengthBytes_-1)*7;f&128||(A.state_=2,A.countMessageBytes_=0,typeof Uint8Array!=="undefined"?A.messageBuffer_=new Uint8Array(A.length_):A.messageBuffer_=Array(A.length_),A.length_==0&&x())}
function U(f){A.messageBuffer_[A.countMessageBytes_++]=f;A.countMessageBytes_==A.length_&&x()}
function x(){if(A.tag_<15){var f={};f[A.tag_]=A.messageBuffer_;A.result_.push(f)}A.state_=0}
for(var A=this,m=t instanceof Array?t:new Uint8Array(t),b=0;b<m.length;){switch(A.state_){case 3:QuJ(A,m,b,"stream already broken");break;case 0:E(m[b]);break;case 1:p(m[b]);break;case 2:U(m[b]);break;default:throw Error("ik`"+A.state_);}A.JSC$19531_streamPos_++;b++}t=A.result_;A.result_=[];return t.length>0?t:null};var Ob9=function(){this.errorMessage_=null;this.JSC$19534_streamPos_=0;this.base64Decoder_=new Jje;this.pbParser_=new IBL};
Ob9.prototype.isInputValid=function(){return this.errorMessage_===null};
var C98=function(t,E,p){t.errorMessage_="The stream is broken @"+t.JSC$19534_streamPos_+". Error: "+p+". With input:\n"+E;throw Error(t.errorMessage_);};
Ob9.prototype.acceptsBinaryInput=function(){return!1};
Ob9.prototype.parse=function(t){this.errorMessage_!==null&&C98(this,t,"stream already broken");var E=null;try{var p=this.base64Decoder_.decode(t);E=p===null?null:this.pbParser_.parse(p)}catch(U){C98(this,t,U.message)}this.JSC$19534_streamPos_+=t.length;return E};var Zb7=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19537_streamPos_=0;this.result_=[];this.statusParsed_=!1};
Zb7.prototype.isInputValid=function(){return this.errorMessage_===null};
Zb7.prototype.acceptsBinaryInput=function(){return!1};
Zb7.prototype.parse=function(t){function E(f){A.state_=6;A.errorMessage_="The stream is broken @"+A.JSC$19537_streamPos_+"/"+m+". Error: "+f+". With input:\n";throw Error(A.errorMessage_);}
function p(){A.jsonStreamParser_=new _.$n({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function U(f){if(f)for(var B=0;B<f.length;B++){var R={};R[1]=f[B];A.result_.push(R)}}
function x(f){if(f){(A.statusParsed_||f.length>1)&&E("extra status: "+f);A.statusParsed_=!0;var B={};B[2]=f[0];A.result_.push(B)}}
for(var A=this,m=0;m<t.length;){var b;if(b=A.state_!==2){a:{for(;m<t.length;){if(!_.XH(t[m])){b=!0;break a}m++;A.JSC$19537_streamPos_++}b=!1}b=!b}if(b)return null;switch(A.state_){case 6:E("stream already broken");break;case 0:t[m]==="["?(A.state_=1,m++,A.JSC$19537_streamPos_++):E("unexpected input token");break;case 1:t[m]==="["?(A.state_=2,p()):t[m]===","||t.slice(m,m+5)=="null,"?A.state_=3:t[m]==="]"?(A.state_=5,m++,A.JSC$19537_streamPos_++):E("unexpected input token");break;case 2:b=A.jsonStreamParser_.parse(t.substring(m));
U(b);A.jsonStreamParser_.done()?(A.state_=3,b=A.jsonStreamParser_.JSC$11757_buffer_,A.JSC$19537_streamPos_+=t.length-m-b.length,t=b,m=0):(A.JSC$19537_streamPos_+=t.length-m,m=t.length);break;case 3:t[m]===","||t.slice(m,m+5)=="null,"?(A.state_=4,p(),A.jsonStreamParser_.parse("["),m+=t[m]===","?1:5,A.JSC$19537_streamPos_++):t[m]==="]"&&(A.state_=5,m++,A.JSC$19537_streamPos_++);break;case 4:b=A.jsonStreamParser_.parse(t.substring(m));x(b);A.jsonStreamParser_.done()?(A.state_=5,b=A.jsonStreamParser_.JSC$11757_buffer_,
A.JSC$19537_streamPos_+=t.length-m-b.length,t=b,m=0):(A.JSC$19537_streamPos_+=t.length-m,m=t.length);break;case 5:E("extra input after stream end")}}return A.result_.length>0?(t=A.result_,A.result_=[],t):null};var juo=function(t){this.JSC$19540_xhr_=t;this.JSC$19540_parser_=null;this.status_=this.JSC$19540_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19540_textDecoder_=null;this.JSC$19540_eventHandler_=new _.Kg(this);this.JSC$19540_eventHandler_.listen(this.JSC$19540_xhr_,"readystatechange",this.JSC$19542_readyStateChangeHandler_)},Wb=function(t,E){t.status_!=E&&(t.status_=E,t.statusHandler_&&t.statusHandler_())},rle=function(t){t.JSC$19540_eventHandler_.removeAll();
if(t.JSC$19540_xhr_){var E=t.JSC$19540_xhr_;t.JSC$19540_xhr_=null;E.abort();E.dispose()}};
juo.prototype.getStatus=function(){return this.status_};
juo.prototype.JSC$19542_readyStateChangeHandler_=function(t){t=t.target;try{if(t==this.JSC$19540_xhr_)a:{var E=_.H7(this.JSC$19540_xhr_),p=this.JSC$19540_xhr_.JSC$10072_lastErrorCode_,U=this.JSC$19540_xhr_.getStatus(),x=this.JSC$19540_xhr_.getResponseText();t=[];if(this.JSC$19540_xhr_.getResponse()instanceof Array){var A=this.JSC$19540_xhr_.getResponse();A.length>0&&A[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,t=A)}if(!(E<3||E==3&&!x&&t.length==0))if(U=U==200||U==206,E==4&&(p==8?
Wb(this,7):p==7?Wb(this,8):U||Wb(this,3)),this.JSC$19540_parser_||(this.JSC$19540_parser_=XAb(this.JSC$19540_xhr_),this.JSC$19540_parser_==null&&Wb(this,5)),this.status_>2)rle(this);else{if(t.length>this.JSC$19540_pos_){var m=t.length;p=[];try{if(this.JSC$19540_parser_.acceptsBinaryInput())for(var b=0;b<m;b++){var f=this.JSC$19540_parser_.parse(Array.from(t[b]));f&&(p=p.concat(f))}else{f="";if(!this.JSC$19540_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("jk");this.JSC$19540_textDecoder_=
new TextDecoder}for(b=0;b<m;b++)f+=this.JSC$19540_textDecoder_.decode(t[b],{stream:E==4&&b==m-1});p=this.JSC$19540_parser_.parse(f)}t.splice(0,m);p&&this.dataHandler_(p)}catch(R){Wb(this,5);rle(this);break a}}else if(x.length>this.JSC$19540_pos_){b=x.slice(this.JSC$19540_pos_);this.JSC$19540_pos_=x.length;try{var B=this.JSC$19540_parser_.parse(b);B!=null&&this.dataHandler_&&this.dataHandler_(B)}catch(R){Wb(this,5);rle(this);break a}}E==4?(x.length!=0||this.hasStreamingResponseData_?Wb(this,2):Wb(this,
4),rle(this)):Wb(this,1)}}}catch(R){Wb(this,6),rle(this)}};var kot=function(t){t=this.xhrReader_=t;var E=(0,_.Tg)(this.onData_,this);t.dataHandler_=E;t=this.xhrReader_;E=(0,_.Tg)(this.onStatusChange_,this);t.statusHandler_=E;this.JSC$19544_callbackMap_={};this.callbackOnceMap_={}};
_.Y=kot.prototype;_.Y.on=function(t,E){var p=this.JSC$19544_callbackMap_[t];p||(p=[],this.JSC$19544_callbackMap_[t]=p);p.push(E);return this};
_.Y.addListener=function(t,E){this.on(t,E);return this};
_.Y.removeListener=function(t,E){var p=this.JSC$19544_callbackMap_[t];p&&_.NK(p,E);(t=this.callbackOnceMap_[t])&&_.NK(t,E);return this};
_.Y.once=function(t,E){var p=this.callbackOnceMap_[t];p||(p=[],this.callbackOnceMap_[t]=p);p.push(E);return this};
_.Y.onData_=function(t){var E=this.JSC$19544_callbackMap_.data;E&&dUt(t,E);(E=this.callbackOnceMap_.data)&&dUt(t,E);this.callbackOnceMap_.data=[]};
var dUt=function(t,E){for(var p={},U=0;U<t.length;p={message$jscomp$1008:void 0},U++)p.message$jscomp$1008=t[U],E.forEach(function(x){return function(A){try{A(x.message$jscomp$1008)}catch(m){}}}(p))};
kot.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:uHb(this,"readable");break;case 5:case 6:case 4:case 7:case 3:uHb(this,"error");break;case 8:uHb(this,"close");break;case 2:uHb(this,"end")}};
var uHb=function(t,E){var p=t.JSC$19544_callbackMap_[E];p&&p.forEach(function(U){try{U()}catch(x){}});
(p=t.callbackOnceMap_[E])&&p.forEach(function(U){U()});
t.callbackOnceMap_[E]=[]};var Jlt=function(){var t={format:"jspb"};t=t===void 0?{}:t;this.suppressCorsPreflight=t.suppressCorsPreflight||_.ws("suppressCorsPreflight",t)||!1;this.withCredentials=t.withCredentials||_.ws("withCredentials",t)||!1;this.streamInterceptors=t.streamInterceptors||[];this.unaryInterceptors=t.unaryInterceptors||[];this.workerScope=t.workerScope;this.chunkedServerStreaming=t.useFetchDownloadStreams||!1},ZQl=function(t,E,p,U,x,A){A=A===void 0?{}:A;
var m=E.substring(0,E.length-x.name.length),b,f=(b=A)==null?void 0:b.signal;return Ixe(function(B){return new Promise(function(R,V){if(f==null?0:f.aborted){var Q=new _.bd(1,"Aborted");Q.cause=f.reason;V(Q)}else{var C={},d=gF9(t,B,m);d.on("error",function(I){return void V(I)});
d.on("metadata",function(I){C=I});
d.on("data",function(I){var O=C;O=O===void 0?{}:O;R(new eSJ(I,O))});
f&&f.addEventListener("abort",function(){d.cancel();var I=new _.bd(1,"Aborted");I.cause=f.reason;V(I)})}})},t.unaryInterceptors).call(t,F$8(x,p,U)).then(function(B){return B.responseMessage})},OQt=function(t,E,p,U,x,A){A=A===void 0?{}:A;
return ZQl(t,E,p,U,x,A)};
Jlt.prototype.serverStreaming=function(t,E,p,U){var x=this,A=t.substring(0,t.length-U.name.length);return X$e(function(m){var b=m.methodDescriptor,f=m.getMetadata(),B=hW5(x,!1);f=axJ(x,f,B,A+b.getName());var R=eWC(B,b.responseDeserializeFn,!0);m=b.requestSerializeFn(m.requestMessage);B.send(f,"POST",m);return R},this.streamInterceptors).call(this,F$8(U,E,p))};
var gF9=function(t,E,p){var U=E.methodDescriptor,x=E.getMetadata(),A=hW5(t,!0);t=axJ(t,x,A,p+U.getName());p=eWC(A,U.responseDeserializeFn,!1);iQe(p,x["X-Goog-Encode-Response-If-Executable"]==="base64");E=U.requestSerializeFn(E.requestMessage);A.send(t,"POST",E);return p},hW5=function(t,E){E=t.chunkedServerStreaming&&!E;
return t.workerScope||E?new _.qx(new HQC({worker:t.workerScope,streamBinaryChunks:E})):new _.qx},axJ=function(t,E,p,U){E["Content-Type"]="application/json+protobuf";
E["X-User-Agent"]="grpc-web-javascript/0.1";var x=E.Authorization;if(x&&cBL.has(x.split(" ")[0])||t.withCredentials)p.JSC$10072_withCredentials_=!0;if(t.suppressCorsPreflight)U=VEe(U,"$httpHeaders",E);else for(t=_.M(Object.keys(E)),x=t.next();!x.done;x=t.next())x=x.value,p.headers.set(x,E[x]);return U},eWC=function(t,E,p){if(p){p=new juo(t);
var U=new kot(p)}return new UU5({xhr:t,nodeReadableStream:U},E)},X$e=function(t,E){return E.reduce(function(p,U){return function(x){return U.intercept(x,p)}},t)},Ixe=function(t,E){return E.reduce(function(p,U){return function(x){return U.intercept(x,p)}},t)};var F5d=function(t){this.client_=new Jlt;this.hostname_=t==void 0?t:t.replace(/\/+$/,"")};
_.Y=F5d.prototype;_.Y.JSC$19562_depositGoogleCredential=function(t,E,p){return OQt(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",t,E||{},nb8,p)};
_.Y.deleteLink=function(t,E,p){return OQt(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",t,E||{},lGC,p)};
_.Y.JSC$19562_finishOAuth=function(t,E,p){return OQt(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",t,E||{},sJ7,p)};
_.Y.getLink=function(t,E,p){return OQt(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",t,E||{},L$e,p)};
_.Y.startLinkingSession=function(t,E,p){return OQt(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",t,E||{},SW7,p)};var zW9=[0,_.r9,1,XlC,[0,_.Jh,[0,_.d9,-1]],[0,O3b],[0,_.X2,-1],[0,O3b]];var lxJ=function(){this.storage=new Map},nFo=function(t,E,p,U,x){if(!t.storage.has(E))return null;
t=_.M(t.storage.get(E));for(E=t.next();!E.done;E=t.next())if(E=E.value,!x||E.linkName===x)if(p&&E.scopes&&Gob(E.scopes,p)||U&&E.capabilities&&Gob(E.capabilities,U))return E;return null},N2o=function(t,E,p){if(!p)t.storage.delete(E);
else if(t.storage.has(E)){var U=t.storage.get(E).filter(function(x){return x.linkName!==p});
U.length>0?t.storage.set(E,U):t.storage.delete(E)}},Gob=function(t,E){E=_.M(E);
for(var p=E.next();!p.done;p=E.next())if(!t.has(p.value))return!1;return!0};var DUd=function(){var t=_.qO("LINK_GAL_DOMAIN");this.alsDomain1p=_.qO("LINK_GAL_DOMAIN");this.alsDomain3p=t;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},sut=function(t,E){t.apiKey=E;
return t};
DUd.prototype.build=function(){var t={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("kk");t.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("lk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("mk");t.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(t.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)t.apiKey=
this.apiKey,t.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("nk");t.oauthToken=this.oauthToken;t.alsDomain=this.alsDomain3p}t.clientXd3=this.clientXd3;t.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(t.authUser=this.authUser);this.bucket!==void 0&&(t.bucket=this.bucket);this.completionUrl!==void 0&&(t.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(t.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(t.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(t.locale=this.locale);this.localStorage!==void 0&&(t.localStorage=this.localStorage);t.loggerType=this.loggerType;t.clientEnvironment=this.clientEnvironment;t.colorScheme=this.colorScheme;t.showCloseOption=this.showCloseOption;return t};var C8=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(C8,_.w6);var L5o=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(L5o,_.w6);var P9g=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(P9g,_.w6);var rr=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(rr,_.w6);var T2t=function(t){return _.Et(t,1)};var oFK=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(oFK,_.w6);var GVL=_.hG(oFK),jX=[1,2,3,4,5];var eq9=function(t){try{return GVL(t)}catch(E){return null}},W59=function(){},Fub=function(t,E){switch(_.Wn(E,jX)){case 4:return(E=_.xC(E,P9g,4,jX))&&t.logStateTransition(_.Et(E,1)),!0;
case 5:return(E=_.xC(E,L5o,5,jX))&&t.logInternalEvent(_.Et(E,1)),!0}return!1},nhg=function(t){switch(t){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.UC(t)}};var hq7=function(t,E){var p=this;this.validator=t;this.messageListener=E;this.dismissCallback=function(){$Ub(p,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19591_receiveMessage=function(U){U.type==="message"&&(U=U.event_,U!==null&&(new URL(p.iframe.src)).origin===U.origin&&p.validator(U.data,U.origin)&&!p.messageListener(U.data)&&(p.JSC$19591_resolveCb!==void 0&&p.JSC$19591_resolveCb(U.data),K5g(p)))}},lBt=function(t,E,p){t.uiHandler!==void 0&&$Ub(t,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(U,x){t.JSC$19591_resolveCb=U;t.JSC$19591_rejectCb=x;t.iframe=document.createElement("iframe");_.Yk(t.iframe,E);t.uiHandler=p.displayContent(t.iframe,t.dismissCallback);_.vu(window,"message",t.JSC$19591_receiveMessage,!1,t)})},$Ub=function(t,E){t.JSC$19591_rejectCb!==void 0&&t.JSC$19591_rejectCb(E);
K5g(t)},K5g=function(t){t.uiHandler!==void 0&&t.uiHandler.hideContent();
_.pJ(window,"message",t.JSC$19591_receiveMessage,!1,t);t.JSC$19591_resolveCb=void 0;t.JSC$19591_rejectCb=void 0;t.uiHandler=void 0;t.iframe=void 0};var vFb=function(t){if(t===2){var E;t=((E=window)==null?0:E.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return t},zqC=function(t){t=vFb(t);
switch(t){case 0:return"light";case 1:return"dark";default:_.UC(t)}};var aBo=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),yld=function(t,E){this.JSC$19603_linkingSession=t;this.noticeConfig=E;this.displayInfoMap=new Map;var p=new Map;if(_.Pn(this.JSC$19603_linkingSession,ob8,7))for(t=_.lJ(this.JSC$19603_linkingSession,ob8,7),t=_.jd(t,TTt,1,_.ri()),t=_.M(t),E=t.next();!E.done;E=t.next())E=E.value,p.set(_.Et(E,1),_.LYL(_.lJ(E,_.Cxj,3)));if(p.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){E=this.noticeConfig.enabledDataUsageNoticeUis;t=E.has(0)?p.get(1):void 0;E=E.has(1)?p.get(2):void 0;p=t!==void 0&&E!==void 0?p.get(3):void 0;var U=this.noticeConfig.nestedOrigins;var x=new oFK;var A=new C8;x=_.zC(x,2,jX,A);A=new oFK;var m=new C8;A=_.zC(A,3,jX,m);m=[];t!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:t,lastEvent:x,nestedOrigins:U}]),m.push({trustedUrl:t,lastEvent:x,nestedOrigins:U}));E!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:E,lastEvent:A,nestedOrigins:U}]),m.push({trustedUrl:E,lastEvent:A,nestedOrigins:U}));p!==void 0?this.displayInfoMap.set(3,[{trustedUrl:p,lastEvent:A,nestedOrigins:U}]):this.displayInfoMap.set(3,m)}};var Scl=function(t){var E=new lxJ;this.galService=t;this.galCache=E};
Scl.prototype.getLink=function(t){var E=t.serviceId;var p=t.scopes;var U=t.capabilities;var x=t.linkName;var A=this,m;return _.q(function(b){if(U!==void 0&&p!==void 0)throw Error("ok");m=nFo(A.galCache,E,p,U,x);return m!==null?b.return(m):b.return(A.galService.getLink({serviceId:E,sessionId:Math.floor(Math.random()*2147483648),scopes:p,capabilities:U,linkName:x}).then(function(f){f=PUd(f);var B=A.galCache;B.storage.has(E)?B.storage.get(E).push(f):B.storage.set(E,[f]);return f}))})};
Scl.prototype.deleteLink=function(t,E,p){var U=this;return _.q(function(x){N2o(U.galCache,t,p);return x.return(U.galService.deleteLink({serviceId:t,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:E,linkName:p}).then(function(){return!0}))})};var tl9=function(t,E){var p=this;this.validator=t;this.msgHandler=E;this.closedPopupTimeout=this.JSC$19625_rejectCb=this.JSC$19625_resolveCb=this.popup=null;this.JSC$19625_receiveMessage=function(U){if(U!==null&&(U=U.event_,U.source===p.popup)){var x=U.data;if(p.validator(x,U.origin)){var A;(A=p.msgHandler)!=null&&A.call(p,x)||(p.JSC$19625_resolveCb!==null&&p.JSC$19625_resolveCb(x),clJ(p))}}}};
tl9.prototype.open=function(t,E){var p=this;this.popup!==null&&EY9(this);return new Promise(function(U,x){p.JSC$19625_resolveCb=U;p.JSC$19625_rejectCb=x;p.popup=_.b0(window,t,"",E);_.vu(window,"message",p.JSC$19625_receiveMessage,!1,p);pUJ(p)})};
var EY9=function(t,E){t.JSC$19625_rejectCb!==null&&t.JSC$19625_rejectCb(E);clJ(t)},clJ=function(t){t.closedPopupTimeout&&(t.closedPopupTimeout.cancel(),t.closedPopupTimeout=null);
t.popup&&t.popup.close();_.pJ(window,"message",t.JSC$19625_receiveMessage,!1,t);t.popup=null;t.JSC$19625_resolveCb=null;t.JSC$19625_rejectCb=null},pUJ=function(t){t.closedPopupTimeout=_.Mif(100).then(function(){t.popup?t.popup.closed?Uw5(t):pUJ(t):EY9(t,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},Uw5=function(t){t.closedPopupTimeout=_.Mif(100).then(function(){EY9(t,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var xwe=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),AvJ=function(t,E,p,U,x,A,m,b,f,B){var R=this;this.serviceId=t;this.sessionId=E;this.galService=p;this.oauthDetails=U;this.galLogger=x;this.interactionMode=A;this.redirectServiceUrl=m;this.consentLanguageKeys=b;this.dynamicUrlParameters=f;this.partnerConfigMinReadTimestamp=B;this.started=!1;this.JSC$19631_dataValidator=function(V,
Q){var C=xwe.has(Q);C||R.redirectServiceUrl===void 0||(C=R.redirectServiceUrl===Q);return C?V.sentinel==="gdi":!1}};
AvJ.prototype.complete=function(){var t=this,E;return _.q(function(p){if(t.interactionMode!==1)return p.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));E=Ezd.getRedirectStateFromUri();return E===null?p.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):p.return(Yvl(t,E))})};
AvJ.prototype.start=function(){var t=this,E;return _.q(function(p){if(t.started)return p.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.th(t.oauthDetails,1))return p.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(t.interactionMode===1)return Ezd.setLocation(_.th(t.oauthDetails,1)),p.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));t.started=!0;t.galLogger.logStateTransition(5);
E=Ezd.getPostMessagePopup(t.JSC$19631_dataValidator);return p.return(E.open(_.th(t.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(U){t.started=!1;var x=t.galLogger;if((U==null?void 0:U.error)!==void 0)throw x.logInternalEvent(59),Error("pk");if((U==null?void 0:U.redirect_state)===void 0)throw x.logInternalEvent(131),Error("qk");return Yvl(t,U.redirect_state)}).catch(function(U){t.started=
!1;
return U.errorCode!==void 0?{statusCode:U.errorCode,statusMessage:U.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var Yvl=function(t,E){return _.q(function(p){return p.return(Ml7(t.galService,{serviceId:t.serviceId,sessionId:t.sessionId,dynamicUrlParameters:t.dynamicUrlParameters,redirectState:E,consentLanguageKeys:t.consentLanguageKeys,partnerConfigMinReadTimestamp:t.partnerConfigMinReadTimestamp}).then(function(U){var x={statusCode:1,link:PUd(U.getLink())};$W9(_.oe(U,3))!==void 0&&(x.callerState=$W9(_.oe(U,3)));_.P8i(U,4,NTl,WLt).size>0&&(x.redirectUriParams=new Map(Array.from(_.P8i(U,4,NTl,WLt).entries()).map(function(A){var m=
_.M(A);A=m.next().value;var b=m.next().value;m=[];var f=m.concat;b=_.cK(b,1,_.hd,_.ri());return[A,f.call(m,_.KB(b))]})));
t.galLogger.logInternalEvent(134);return x}))})},Ezd={getPostMessagePopup:function(t){return new tl9(t)},
getRedirectStateFromUri:function(){var t=_.QC(Ezd.getLocation()).fragment_;return(new _.ld(t)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(t){_.ao$(window.location,_.S8(t))},
createOAuthFlow:function(t,E){return new AvJ(t.serviceId,t.sessionId,t.galService,E,t.galLogger,t.interactionMode,t.redirectServiceUrl,t.consentLanguageKeys,t.dynamicUrlParameters,t.partnerConfigMinReadTimestamp)}};var mwt=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(mwt,_.w6);var bCL=_.hG(mwt);var iCt=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),qvt=function(t,E,p,U,x,A,m,b,f){var B=this;this.serviceId=t;this.sessionId=E;this.galService=p;this.gsiWebFlowDetails=U;this.colorScheme=x;this.showCloseOption=A;this.galLogger=m;this.interactionMode=b;this.redirectServiceUrl=f;this.started=!1;this.JSC$19644_dataValidator=function(R,V){var Q=iCt.has(V);Q||B.redirectServiceUrl===
void 0||(Q=B.redirectServiceUrl===V);return Q?R.sentinel==="gal":!1};
this.logEventProcessor=function(R){return R.result?(R=eq9(R.result))?Fub(B.galLogger,R):!1:!1}};
qvt.prototype.complete=function(){var t=this,E,p;return _.q(function(U){if(t.interactionMode!==1)return U.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));E=UJL.getRedirectStateFromUri();if(E===void 0)return t.galLogger.JSC$19583_logErrorEvent(131),U.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return p=HCe(t,E),U.return(fad(t,p))}catch(x){return U.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
qvt.prototype.start=function(){var t=this,E;return _.q(function(p){if(t.started)return p.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.th(t.gsiWebFlowDetails,1))return p.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(t.interactionMode===1)return UJL.setLocation(BaL(t,_.th(t.gsiWebFlowDetails,1))),p.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
t.started=!0;E=UJL.getPostMessagePopup(t.JSC$19644_dataValidator,t.logEventProcessor);return p.return(E.open(BaL(t,_.th(t.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(U){t.started=!1;if((U==null?void 0:U.result)===void 0)throw t.galLogger.JSC$19583_logErrorEvent(131),Error("qk");U=HCe(t,U.result);return fad(t,U)}).catch(function(U){t.started=!1;
return U.errorCode!==void 0?{statusCode:U.errorCode,statusMessage:U.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var BaL=function(t,E){t=["result_channel",t.interactionMode===1?"2":"1","color_scheme",zqC(t.colorScheme),"show_close_option",t.showCloseOption];return lJe(E,t)},fad=function(t,E){if(E!==null&&_.Pn(E,rr,2)){var p,U=E==null?void 0:(p=_.lJ(E,rr,2))==null?void 0:_.Et(p,2);
U&&t.galLogger.JSC$19583_logErrorEvent(nhg(U));return T2t(_.lJ(E,rr,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 t.galService.getLink({serviceId:t.serviceId,sessionId:t.sessionId,consistencyKey:_.th(E,1)}).then(function(x){x=PUd(x);t.galLogger.logInternalEvent(134);return{statusCode:1,link:x}})},HCe=function(t,E){E=bCL(E);
if(!_.Pn(E,rr,2)&&_.th(E,1)==="")throw t.galLogger.JSC$19583_logErrorEvent(5),Error("rk");return E},UJL={getPostMessagePopup:function(t,E){return new tl9(t,E)},
getRedirectStateFromUri:function(){return _.CN(_.QC(UJL.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(t){_.ao$(window.location,_.S8(t))},
createStreamlinedFlow:function(t,E){return new qvt(t.serviceId,t.sessionId,t.galService,E,t.colorScheme,t.showCloseOption,t.galLogger,t.interactionMode,t.redirectServiceUrl)}};var bf8=function(t){this.storage=(t=t?_.AF("GAL"):_.Wu8("GAL"))?new _.tF(t):null};
bf8.prototype.getSession=function(t){if(this.storage!==null)try{var E=this.storage.get("SAVED_SESSION");if(E===void 0)return null;if(E.serviceId===t)return E}catch(p){}return null};var wUb=function(){};
_.u(wUb,W59);wUb.prototype.logStateTransition=function(){};
wUb.prototype.logInternalEvent=function(){};
wUb.prototype.JSC$19583_logErrorEvent=function(){};var RzC=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(RzC,_.w6);RzC.prototype.getCompletionUrl=function(){return _.th(this,15)};var $S=function(t,E,p,U,x,A){this.serviceId=t;this.environment=E;this.sessionId=p;this.colorSchemeSelected=U;this.colorThemeDisplayed=x;this.JSC$19657_transport=A;this.currentState=1};
_.u($S,W59);$S.prototype.logStateTransition=function(t){var E=Vlg(this);E=_.GM(E,3,this.currentState);E=_.GM(E,1,t);this.currentState=t;t=Qqb(1);this.dispatch(E,t)};
$S.prototype.logInternalEvent=function(t){t=Qqb(t);this.dispatch(Vlg(this),t)};
$S.prototype.JSC$19583_logErrorEvent=function(t){var E=Vlg(this);E=_.GM(E,1,10);t=Qqb(t);this.dispatch(E,t)};
var Vlg=function(t){var E=new RzC;E=_.GM(E,1,t.currentState);E=_.Lq(E,7,t.serviceId);var p,U;var x=((p=window)==null?0:(U=p.location)==null?0:U.href)?_.QC(window.location.href).JSC$10308_domain_:"NO_PACKAGE_NAME";p=_.Lq(E,8,x);p=_.GM(p,6,t.environment);p=_.Lq(p,5,"100");p=_.GM(p,11,t.colorSchemeSelected);return _.GM(p,12,t.colorThemeDisplayed)};
$S.prototype.dispatch=function(t,E){E===void 0&&(E=new _.sk);var p=E;t=t.serialize();p=_.Lq(p,8,t);_.cE(p,12,this.sessionId);this.JSC$19657_transport.dispatch(E)};var QLd=function(t,E){this.loggerType=t;this.sessionIndex=E!=null?E:0},CZ7;
QLd.prototype.create=function(t,E,p,U,x){switch(this.loggerType){case 0:return new wUb;case 1:return CZ7||(CZ7=(new _.av(555,this.sessionIndex.toString())).build()),new $S(t,E,p,U,x,CZ7);default:_.UC(this.loggerType,"unknown logger type")}};var xJ5=[6,2,3,1],wLg=new Map([[4,1],[1,6],[2,2],[3,3]]),$c8={statusCode:7,statusMessage:"Failed to create flow object"},ML5=function(t,E,p,U,x,A,m,b,f,B){this.serviceId=t;this.sessionId=E;this.config=p;this.galService=U;this.JSC$19664_linkingSession=x;this.googleScopes=A;this.callerState=m;this.consentLanguageKeys=b;this.dynamicUrlParameters=f;this.partnerConfigMinReadTimestamp=B;this.currentFlow=0;U=this.JSC$19664_linkingSession;x=new Set;_.Pn(U,tL8,1)&&x.add(1);_.Pn(U,$i8,2)&&_.Pn(U,pLJ,6)&&x.add(2);
_.Pn(U,W$J,3)&&_.Pn(U,pLJ,6)&&x.add(3);_.Pn(U,PP9,4)&&x.add(6);this.supportedFlows=x;U=p.loggerType;x=p.clientEnvironment;a:{A=p.colorScheme;switch(A){case 0:A=1;break a;case 1:A=2;break a;case 2:A=3;break a;default:_.UC(A)}A=void 0}a:{m=p.colorScheme;m=vFb(m);switch(m){case 0:m=1;break a;case 1:m=2;break a;default:_.UC(m)}m=void 0}this.galLogger=(new QLd(U,p.authUser)).create(t,x,E,A,m)},kNJ=function(t){return new Promise(function(E){var p,U,x,A,m,b,f,B,R,V;
return _.q(function(Q){switch(Q.nextAddress){case 1:p=Afo(t.currentFlow,t.supportedFlows),U=!1,x=new yld(t.JSC$19664_linkingSession,t.config.dataUsageNoticeConfig);case 2:if(p===void 0){Q.jumpTo(4);break}_.aR(Q,5);var C=x,d=p,I=void 0;U?d===1&&(I=C.displayInfoMap.get(2)):d===2||d===3?I=C.displayInfoMap.get(1):d===1&&(I=C.displayInfoMap.get(3));A=I?I:[];m=t.consentLanguageKeys;b=_.M(A);f=b.next();case 7:if(f.done)return t.currentFlow=p,Q.yield(vh5(jLJ(t,m)),11);B=f.value;return Q.yield(Nml(B,t.config.dataUsageNoticeConfig.uiAdapter,
t.config.colorScheme,t.galLogger),10);case 10:R=Q.yieldResult;if(R.statusCode!==1)return rv7(t),E(yjJ({statusCode:R.statusCode,statusMessage:R.statusMessage},t.callerState)),Q.return();R.consentLanguageKeys!==void 0&&(m=R.consentLanguageKeys);f=b.next();Q.jumpTo(7);break;case 11:V=Q.yieldResult;if(V.statusCode!==10)return V.statusCode!==6&&rv7(t),V.statusCode!==1&&t.callerState!==void 0&&(V.callerState=t.callerState),E(V),Q.return();_.r7(Q,6);break;case 5:_.nB(Q);case 6:p=Afo(t.currentFlow,t.supportedFlows);
U=!0;Q.jumpTo(2);break;case 4:rv7(t),E(yjJ({statusCode:12,statusMessage:"Linking failed"},t.callerState)),_.Do(Q)}})})},rv7=function(t){ift(t.serviceId,t.config.localStorage);
t.currentFlow=0},fKL=function(t,E,p){t.currentFlow=E;
return SF9(jLJ(t,p)).then(function(U){return U.statusCode===10&&t.config.interactionMode===1&&Afo(t.currentFlow,t.supportedFlows)!==void 0?kNJ(t):U})},jLJ=function(t,E){return{flowParams:{serviceId:t.serviceId,
sessionId:t.sessionId,galService:t.galService,galLogger:t.galLogger,interactionMode:t.config.interactionMode,redirectServiceUrl:t.config.redirectServiceUrl,colorScheme:t.config.colorScheme,consentLanguageKeys:E,dynamicUrlParameters:t.dynamicUrlParameters,showCloseOption:t.config.showCloseOption,partnerConfigMinReadTimestamp:t.partnerConfigMinReadTimestamp},currentFlow:t.currentFlow,config:t.config,session:t.JSC$19664_linkingSession,googleScopes:t.googleScopes,callerState:t.callerState}};var VLb=function(t,E){this.config=t;this.galService=E.getService();this.JSC$19677_galRepository=E.JSC$19695_galRepository};
VLb.prototype.getLink=function(t,E){return dwl(this,t,E)};
var dwl=function(t,E,p){return t.JSC$19677_galRepository.getLink({serviceId:E,scopes:void 0,capabilities:void 0,linkName:p}).then(function(U){return{statusCode:1,link:U}}).catch(function(U){return{statusCode:RFb(U.code),
statusMessage:U.message}})};
VLb.prototype.deleteLink=function(t,E){return this.JSC$19677_galRepository.deleteLink(t,this.config.accountLinkingEntryPoint,E).then(function(){return{statusCode:1}}).catch(function(p){return{statusCode:RFb(p.code),
statusMessage:p.message}})};
VLb.prototype.startLinkingSession=function(t){var E=t.serviceId;var p=t.sessionId;return mJ5({serviceId:E,sessionId:p!==void 0?p:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:t.loginHint,callerState:t.callerState,consentLanguageKeys:t.consentLanguageKeys,linkName:t.linkName,dynamicUrlParameters:t.dynamicUrlParameters,partnerConfigMinReadTimestamp:t.partnerConfigMinReadTimestamp})};var Kn=function(t,E,p,U,x,A,m){this.apiKey=E;this.authUser=p;this.oauthToken=U;this.bucket=x;this.locale=A;this.galSdkEventHandler=m;if(U===void 0){if(E===void 0)throw Error("sk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new F5d(t)};
Kn.prototype.deleteLink=function(t){var E=t.serviceId;var p=t.sessionId;var U=t.accountLinkingEntryPoint;var x=t.linkName;var A=this,m;return _.q(function(b){var f=(new sp).setHeader(A.getHeader(p));var B=uql({serviceId:E,linkName:x});f=_.FU(f,2,B);m=_.YC(f,3,U);return b.return(A.makeRequest(A.galServiceClient.deleteLink,m,[1,3],[2,4]))})};
var Ml7=function(t,E){var p=E.serviceId;var U=E.sessionId;var x=E.dynamicUrlParameters;var A=E.redirectState;var m=E.consentLanguageKeys;var b=E.partnerConfigMinReadTimestamp;var f;return _.q(function(B){var R=(new Pb).setHeader(t.getHeader(U,x));R=_.R7(R,2,p);f=_.R7(R,4,A);m!==void 0&&_.R7(f,5,m);b!==void 0&&_.FU(f,6,b);return B.return(t.makeRequest(t.galServiceClient.JSC$19562_finishOAuth,f,[1,3],[2,4]))})};
Kn.prototype.getLink=function(t){var E=t.serviceId;var p=t.sessionId;var U=t.scopes;var x=t.capabilities;var A=t.consistencyKey;var m=t.linkName;var b=this,f;return _.q(function(B){var R=(new T7).setHeader(b.getHeader(p)),V=uql({serviceId:E,scopes:U,capabilities:x,linkName:m});f=_.FU(R,2,V);A!==void 0&&(R=Ome(),R=_.R7(R,2,A),_.FU(f,3,R));return B.return(b.makeRequest(b.galServiceClient.getLink,f,[1,3],[2,4]))})};
var cj8=function(t,E){var p=E.serviceId;var U=E.sessionId;var x=E.googleScopes;var A=E.consistencyKey;var m;return _.q(function(b){var f=(new Ln).setHeader(t.getHeader(U));f=_.R7(f,2,p);var B=Array.from(x.values());f=_.xI(f,3,B,_.gt);B=Ome();B=_.R7(B,2,A);m=_.FU(f,4,B);return b.return(t.makeRequest(t.galServiceClient.JSC$19562_depositGoogleCredential,m,[1,3],[2,4]))})};
Kn.prototype.startLinkingSession=function(t){var E=t.serviceId;var p=t.sessionId;var U=t.scopes;var x=t.capabilities;var A=t.loginHint;var m=t.supportedFlows;var b=t.completionUrl;var f=t.usePingPong;var B=t.twoWayLinking;var R=t.accountLinkingEntryPoint;var V=t.callerState;var Q=t.consentLanguageKeys;var C=t.googleScopes;var d=t.dataUsageNoticeConfig;var I=t.linkName;var O=t.dynamicUrlParameters;var a=t.partnerConfigMinReadTimestamp;var F=this,L,D;return _.q(function(W){if(x!==void 0&&U!==void 0)throw Error("ok");
var K=(new yBJ).setHeader(F.getHeader(p,O));L=_.R7(K,2,E);I!==void 0&&_.R7(L,14,I);if(x!==void 0){K=L;var v=Array.from(x.values());_.xI(K,5,v,_.gt)}else U!==void 0&&(K=L,v=Array.from(U.values()),_.xI(K,3,v,_.gt));b!==void 0&&_.R7(L,6,b);f!==void 0&&_.WV(L,15,f);m!==void 0&&(K=L,v=Array.from(m.values()),_.xI(K,4,v,_.b8));if(B!==void 0){if(B&&(!C||C.size===0))throw Error("tk");_.WV(L,8,B)}R!==void 0&&_.YC(L,9,R);A!==void 0&&_.R7(L,13,A);V!==void 0&&(K=L,v=(new TextEncoder).encode(V),_.AG(K,12,_.F4(v,
!1),_.eW()));Q!==void 0&&_.R7(L,16,Q);a!==void 0&&_.FU(L,18,a);if(d!==void 0&&d.size>0||C!==void 0&&C.size>0)D=new vbd,C!==void 0&&C.size>0&&(K=D,v=Array.from(C.values()),_.xI(K,1,v,_.gt)),d!==void 0&&(d.has(0)&&_.ydt(D,2,_.b8,1,_.HK),d.has(1)&&_.ydt(D,2,_.b8,2,_.HK)),_.FU(L,17,D);return W.return(F.makeRequest(F.galServiceClient.startLinkingSession,L,[1],[2]))})};
Kn.prototype.getMetadata=function(){var t=this,E,p;return _.q(function(U){E={};t.useFpa?(E["X-Goog-Api-Key"]=t.apiKey,E["X-Goog-AuthUser"]=t.authUser!==void 0?t.authUser.toString():"0",(p=_.V5O([]))&&(E.Authorization=p)):E.Authorization="Bearer "+t.oauthToken;t.locale&&(E["accept-language"]=t.locale);return U.return(E)})};
Kn.prototype.makeRequest=function(t,E,p,U){var x=this,A;return _.q(function(m){if(m.nextAddress==1)return m.yield(x.getMetadata(),2);A=m.yieldResult;JvK(x,p);return m.return(t.bind(x.galServiceClient)(E,A).finally(function(){JvK(x,U)}))})};
var JvK=function(t,E){t.galSdkEventHandler!==void 0&&E.forEach(function(p){t.galSdkEventHandler.onEvent(p)})};
Kn.prototype.getHeader=function(t,E){var p=new nn;t=_.AG(p,2,_.fl(t),0);t=_.YC(t,5,3);E=_.xI(t,8,E,_.gt);this.bucket!==void 0&&_.R7(E,1,this.bucket);return E};
var uql=function(t){var E=t.serviceId;var p=t.scopes;var U=t.capabilities;t=t.linkName;if(U!==void 0&&p!==void 0)throw Error("ok");var x=new gbg;E=_.R7(x,1,E);U!==void 0?(p=Array.from(U.values()),_.xI(E,5,p,_.gt)):p!==void 0&&(p=Array.from(p.values()),_.xI(E,3,p,_.gt));t!==void 0&&_.R7(E,6,t);return E};var Q4t=function(t){this.galService=new Kn(t.alsDomain,t.apiKey,t.authUser,t.oauthToken,t.bucket,t.locale,t.galSdkEventHandler);this.JSC$19695_galRepository=new Scl(this.galService)};
Q4t.prototype.getService=function(){return this.galService};var Iae=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Iae,_.w6);var gYK=function(t){var E=new Iae;return _.GM(E,1,t)};
Iae.prototype.setErrorMessage=function(t){return _.Lq(this,2,t)};var ZCC=[0,_.Ot,_.kC,_.Ot];var vb=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(vb,_.w6);var OCb=[0,[1,2,3],_.Ix,[0,_.oes,Z3d,-1],_.Ix,[0,gEC,-1],_.u3];var XUo=[0,_.C1,1,_.Ot,_.kC,-1,1,_.g9,_.Rx,_.Ot,-1,OCb];var hzJ=[0,_.Ot,[0,_.g9,_.Rx,[0,_.kC]],_.jM,[0,_.Ot,-1]];var JR=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(JR,_.w6);var aa8=[0,_.kC,_.Ot,-2,_.C1,_.Ot,_.C1,_.Ot,-2,1,_.jM];var ezC=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(ezC,_.w6);var F0b=[0,_.C1];var zzd=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(zzd,_.w6);var lao=[0,_.Ot,hzJ,F0b,aa8,XUo];var WA5=_.g6(zzd,lao);var GN7=[0,zW9];var tIl=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(tIl,_.w6);var nYt=[0,[1,3],h_8,_.Ot,h_8];var chd=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(chd,_.w6);var Na5=[0,_.Ot];var Dwg=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Dwg,_.w6);var EMb=function(t){return _.xC(t,Iae,2,uM)},sL5=function(t){var E=new Dwg;
return _.zC(E,2,uM,t)},uM=[1,
2];var L0d=[0,uM,_.Ix,Na5,_.Ix,ZCC,_.Jh,nYt,1,_.Ot,GN7];var PZ7=[0,1,[0,[1,2,3],_.Ix,[0],_.Ix,[0,nEC],_.Ix,[0,zW9]]];var Ta8=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Ta8,_.w6);var W09=function(t){var E=new Ta8;return _.zC(E,3,oYb,t)},oYb=[2,
3];var $wJ=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u($wJ,_.w6);var K0t=function(t,E){return _.FU(t,2,E)},vYJ=function(t,E){return _.FU(t,8,E)},yvo=function(t,E){return _.FU(t,3,E)};var SvK=[0,_.Ot,L0d,lao,_.aq,[0,[5,6,7],[0,_.Ot,-2],[0,_.C1,_.Ot,_.kC],[0,OCb],[0,_.kC,_.Ot,-1,_.hI,_.Ot],_.Ix,[0,[0,_.C1],_.Ot,-1],_.Ix,[0,[3,4],_.Ot,-1,_.Ix,[0,[0,_.Ot,_.jM]],_.Ix,[0,[0,[0,[1,2,3],_.Ix,[0],_.Ix,[0],_.Ix,[0]]]]],_.Ix,[0,_.Ot]],_.aq,-1,[0,oYb,_.Ot,_.Ix,Na5,_.Ix,ZCC,_.Jh,nYt,[0,zW9],PZ7]];var cv7=_.g6($wJ,SvK),t3t=_.OS(SvK);var E3l=function(){_.PQ.call(this)};
_.u(E3l,_.PQ);E3l.prototype.init=function(){};
new E3l;_.Z1();var pHt=_.CG(["data-"]),UjC=_.CG(["aria-"]),xjJ=_.CG(["aria-"]),y7=function(t,E){this.isLatencyMeasurementExperiment=t===void 0?!1:t;this.enableDialogA11yFix=E===void 0?!1:E;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.XQG(_.Ui.location.href)},KAL=function(t,E){t.onConsentPrimitiveShownCallback=E},A19=function(t,E){return t.overriddenIframeLoadTimeout?t.overriddenIframeLoadTimeout:E!==void 0?E:5E3},yhd=function(t){if(t.prewarmPromise!==void 0)return t.prewarmPromise;
t.prewarmPromise=new Promise(function(E,p){S6(t,1);Yu7(t,M38(t,!0),mjl(t));t.iframe?t.prewarmChannel||bzl(t,t.iframe,E):p(Error("uk"))});
t.prewarmPromise.finally(function(){t.prewarmPromise=void 0});
return t.prewarmPromise};
y7.prototype.showPrimitive=function(){var t=this;if(this.consentPromise!==void 0)return this.consentPromise;var E=Date.now();izo(this,E);this.consentPromise=new Promise(function(p,U){S6(t,0,E);var x=t.isDarkTheme();t.isLatencyMeasurementExperiment||t.initialLoadingStrategy===1||t.initialLoadingStrategy===2||(t.loadingBar||(t.loadingBar=k2C(getComputedStyle(document.body).direction==="rtl",x),t.loadingBar.style.position="fixed",t.loadingBar.style.zIndex="15000"),document.body.appendChild(t.loadingBar));
Yu7(t,M38(t),mjl(t));t.iframe?t.channel||quJ(t,t.iframe,p,U):(Hzd(t),U(Error("uk")))});
this.consentPromise.finally(function(){t.consentPromise=void 0});
return this.consentPromise};
var quJ=function(t,E,p,U){var x,A;_.q(function(m){switch(m.nextAddress){case 1:S6(t,3);x=!1;setTimeout(function(){if(!x){Hzd(t);fm8(t);Bc9(t);var b=gYK(7).setErrorMessage("Timeout connecting to iframe");p(vYJ(K0t(new $wJ,sL5(b)),W09(b)))}},A19(t,wHt(t)));
if(!t.prewarmPromise){m.jumpTo(2);break}_.aR(m,3);return m.yield(t.prewarmPromise,5);case 5:_.r7(m,2);break;case 3:_.nB(m),A=gYK(4).setErrorMessage("Error while prewarming."),p(vYJ(K0t(new $wJ,sL5(A)),W09(A)));case 2:t.prewarmChannel&&t.prewarmChannel.send(t3t(yvo(new $wJ,t.consentPrimitiveRequest))),t.channel=_.eM({destination:t.win,iframe:E,origin:R8t(t),channelName:"cpw",onEstablished:function(){x=!0;Hzd(t);t.isLatencyMeasurementExperiment||(t.JSC$19724_previousBodyOverflow=document.body.style.overflow,
t.JSC$19724_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,t.JSC$19724_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",t.enableDialogA11yFix&&window.addEventListener("blur",t.focusChangeListener));var b=t.iframe;b.style.bottom="0";b.style.position="fixed";b.style.right="0";b.style.border="none";b.style.left="0";b.style.top=
"0";b.style.zIndex="5000";b.style.pointerEvents="";b.style.visibility="";t.initialLoadingStrategy===2||t.initialLoadingStrategy===3?S6(t,4):S6(t,6);var f;(f=t.onConsentPrimitiveShownCallback)==null||f.call(t)},
onMessage:function(b){b=cv7(b.data);switch(_.Et(b,1)){case 1:fm8(t);var f=dJg(_.lJ(b,_.UQ,7));f&&(t.initialLoadingStrategy!==2&&t.initialLoadingStrategy!==3||S6(t,6,f),S6(t,5,f));if(f=dJg(_.lJ(b,_.UQ,6)))S6(t,7,f),S6(t,8);var B,R;((B=_.lJ(b,Dwg,2))==null?void 0:_.Wn(B,uM))!==0&&((R=_.lJ(b,Ta8,8))==null?void 0:_.Wn(R,oYb))!==0||U(Error("vk"));p(b);break;case 2:Bc9(t)}}}),_.Do(m)}})},bzl=function(t,E,p){t.prewarmChannel=_.eM({destination:t.win,
iframe:E,origin:R8t(t),channelName:"pwcp",onEstablished:function(){S6(t,2);p()}})},R8t=function(t){var E=_.Dk(t.src).toString();
return E&&E.indexOf("://")<0&&E.indexOf("//")!==0?t.origin:_.XQG(E)},M38=function(t,E){E=E===void 0?!1:E;
var p,U=new Map([["origin",t.origin],["hl",(p=V3J(t))!=null?p:null]]);E&&U.set("pw","1");E=_.M([["cpr",t.consentPrimitiveRequest.serialize()]]);for(p=E.next();!p.done;p=E.next()){var x=_.M(p.value);p=x.next().value;x=x.next().value;U.set(p,x)}t.isDarkTheme()&&U.set("color_scheme","dark");return _.Ih(t.src,U)},Hzd=function(t){t.isLatencyMeasurementExperiment||t.loadingBar&&document.body.removeChild(t.loadingBar)};
y7.prototype.getSrc=function(){var t=_.ua(this.origin),E;var p=(E=_.lJ(this.consentPrimitiveRequest,ezC,3))==null?void 0:_.kW(E,1);E="consent.google.com";p=p?"/u/"+encodeURIComponent(p.toString()):"";(t==null?0:t.endsWith("youtube.com"))?E="consent.youtube.com":(t=t==null?void 0:t.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(E="consent.google."+((t[1]?"co.":"")+encodeURIComponent(t[2])));return _.N2("https://"+E+"/signedin"+p+"/landing")};
var Yu7=function(t,E,p){t.iframe||(t.iframe=document.createElement("iframe"),t.iframe.style.width="100%",t.iframe.style.height="100%",p!==112496729&&(t.iframe.style.colorScheme="auto"),t.isLatencyMeasurementExperiment&&(t.iframe.style.display="none"),_.Yk(t.iframe,E),t.iframe.setAttribute("jsname","C5o1O"),Qyg(t.iframe),document.body.appendChild(t.iframe))},Qyg=function(t){t.style.bottom="-200vh";
t.style.position="fixed";t.style.right="-200vw";t.style.border="";t.style.left="";t.style.top="";t.style.zIndex="";t.style.pointerEvents="none";t.style.visibility="hidden"},fm8=function(t){t.iframe&&(t.isLatencyMeasurementExperiment||(t.JSC$19724_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=t.JSC$19724_previousHtmlOverscroll),t.JSC$19724_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=t.JSC$19724_previousBodyOverscroll),t.JSC$19724_previousBodyOverflow!==
void 0&&(document.body.style.overflow=t.JSC$19724_previousBodyOverflow),t.enableDialogA11yFix&&Ch9(t,!1)),Qyg(t.iframe))};
y7.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(Ch9(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var Ch9=function(t,E){var p,U,x=(p=t.iframe)==null?void 0:(U=p.parentElement)==null?void 0:U.children;if(x)for(p=0;p<x.length;p++)U=x[p],U!==t.iframe&&(E?(U.hasAttribute("aria-hidden")&&_.VU([_.ks(pHt)],U,"data-old-aria-hidden",U.getAttribute("aria-hidden")),_.VU([_.ks(UjC)],U,"aria-hidden","true")):(U.removeAttribute("aria-hidden"),U.hasAttribute("data-old-aria-hidden")&&(_.VU([_.ks(xjJ)],U,"aria-hidden",U.getAttribute("data-old-aria-hidden")),U.removeAttribute("data-old-aria-hidden"))))},S6=function(t,
E,p){var U;
(U=t.latencyCallback)==null||U.call(t,{latencyType:E,timestampEpochMillis:p!=null?p:Date.now()})};var jy5=function(t,E,p){y7.call(this,E,p===void 0?!1:p);this.consentPrimitiveRequest=t;t=V3J(this);_.MWi(t);this.src=this.getSrc();var U;this.initialLoadingStrategy=(U=_.lJ(this.consentPrimitiveRequest,JR,4))==null?void 0:_.Et(U,4)},r1t;
_.u(jy5,y7);var $qg=function(t){t={request:t,enableDialogA11yFix:!0};r1t||(r1t=new jy5(t.request,t.isLatencyMeasurementExperiment||_.Et(t.request,1)===2,t.enableDialogA11yFix));return r1t},V3J=function(t){var E;
return(E=_.lJ(t.consentPrimitiveRequest,JR,4))==null?void 0:_.th(E,1)},izo=function(t,E){if(!_.Pn(t.consentPrimitiveRequest,vb,5)){var p=t.consentPrimitiveRequest,U=new vb;
_.FU(p,5,U)}var x;if((x=_.lJ(t.consentPrimitiveRequest,vb,5))==null||_.PGY(_.sa(x,8))==null){var A;(A=_.lJ(t.consentPrimitiveRequest,vb,5))!=null&&_.cE(A,8,E)}},mjl=function(t){var E;
return(E=_.lJ(t.consentPrimitiveRequest,vb,5))==null?void 0:_.kW(E,1)};
jy5.prototype.isDarkTheme=function(){var t;return((t=_.lJ(this.consentPrimitiveRequest,JR,4))==null?void 0:_.Et(t,2))===2};
var wHt=function(t){var E;return((E=_.lJ(t.consentPrimitiveRequest,JR,4))==null?void 0:_.kW(E,5))||void 0},Bc9=function(t){t.channel=void 0;
t.prewarmChannel=void 0;t.iframe&&(document.body.contains(t.iframe)&&document.body.removeChild(t.iframe),t.iframe=void 0);r1t=void 0},Stb=function(t){return y7.prototype.showPrimitive.call(t).then(function(E){return _.lJ(E,Dwg,2)})};for(var cb={},kwC=(cb[64]="ma",cb[73]="ogb",cb[89]="cr",cb[21]="test",cb[0]="unkn",cb[137]="con",cb[155]="hl",cb[78]="yt",cb[171]="lp",cb[172]="ap",cb[177]="amo",cb[178]="pqe",cb[74]="gg",cb[1]="gm",cb[140]="am",cb[193]="sc",cb),djt=_.M(Object.keys(kwC)),uoK=djt.next();!uoK.done;uoK=djt.next());var J1K=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(J1K,_.w6);var ImL=[0,[2,3,4],_.Ot,IJg,h_8,_.u3];var g3g=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(g3g,_.w6);var ZzL=_.g6(g3g,[0,_.X2,_.kC,_.Ot,_.kC,_.Ot,ImL]);var Ozd=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(Ozd,_.w6);Ozd.prototype.getCommand=function(){return _.Et(this,1)};
var XHC=function(){var t=new Ozd;return _.YC(t,1,0)};var h8b=_.OS([0,_.X2,_.kC,[0,_.Ot,_.kC,-1]]);var amt=new _.SI("s"),e8C=new _.SI("t"),Fqb=new _.SI("u"),z8e=new _.SI("v"),lmg=function(t,E,p){_.dV.call(this,amt);this.mediaKey=t;this.photoUrl=E;this.photoSource=p};
_.u(lmg,_.dV);var Gwg=function(){_.dV.call(this,e8C)};
_.u(Gwg,_.dV);var n3e=function(t){t=t===void 0?!1:t;_.dV.call(this,Fqb);this.isError=t};
_.u(n3e,_.dV);var Ncb=function(){_.dV.call(this,z8e)};
_.u(Ncb,_.dV);var Dje=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,Tcd=function(t){if(typeof t=="string"){if(t.charAt(0)==".")return syt(t.substr(1));if(t.charAt(0)=="["){var E=Dje.exec(t);t=t.indexOf("=")==-1?void 0:E[3];return Lqt(E[1],t)}return PhJ(t)}return t},syt=function(t){return function(E){return E.getAttribute&&_.ud(E,t)}},Lqt=function(t,E){return function(p){return E!==void 0?p.getAttribute&&p.getAttribute(t)==E:p.hasAttribute&&p.hasAttribute(t)}},PhJ=function(t){t=t.toUpperCase();
return function(E){return(E=E.tagName)&&E.toUpperCase()==t}},o35=function(){return!0};var tP=function(t,E){this.JSC$19752_key_=t;this.JSC$19752_value_=E},Wq8=function(t){throw Error("wk`"+t.JSC$19752_key_);
},$jK=function(t,E){return new TypeError("xk`"+E+"`"+t.JSC$19752_key_+"`"+t.JSC$19752_value_+"`"+typeof t.JSC$19752_value_)};
tP.prototype.string=function(t){return arguments.length==0?Kqt(this):v3d(this,t)};
var v3d=function(t,E){var p;return(p=y17(t))!=null?p:E},Kqt=function(t){var E=y17(t);
E===null&&Wq8(t);return E},y17=function(t){var E=t.JSC$19752_value_;
if(E==null)return null;if(typeof E==="string")return E;throw $jK(t,"string");};
tP.prototype.bool=function(t){if(arguments.length==0){var E=this.optionalBool();E===null&&Wq8(this)}else{var p;E=(p=this.optionalBool())!=null?p:t}return E};
tP.prototype.optionalBool=function(){var t=this.JSC$19752_value_;if(t==null)return null;if(typeof t==="boolean")return t;if(typeof t==="string"){t=t.toLowerCase();if(t==="true"||t==="1")return!0;if(t==="false"||t==="0")return!1}throw $jK(this,"boolean");};
tP.prototype.number=function(t){if(arguments.length==0){var E=Su8(this);E===null&&Wq8(this)}else E=c1t(this,t);return E};
var c1t=function(t,E){var p;return(p=Su8(t))!=null?p:E},Su8=function(t){var E=t.JSC$19752_value_;
if(E==null)return null;if(typeof E==="number")return E;if(typeof E==="string"){var p=Number(E);if(!isNaN(p)&&(p!==0||E.trim().length!==0))return p}throw $jK(t,"number");};
tP.prototype.toString=function(){return Kqt(this)};
tP.prototype.enum=function(t,E){var p=!0,U=void 0,x;for(x in t){var A=t[x];p&&(p=!1,U=typeof A==="number"?c1t(this,E):v3d(this,E));if(A==U)return U}JSON.stringify(t);return U};
tP.prototype.array=function(t){if(arguments.length==0){var E=tVb(this);E===null&&Wq8(this);return E}E=tVb(this);return E==null?t:E};
var tVb=function(t){var E=t.JSC$19752_value_;if(E==null)return null;Array.isArray(E)||(typeof E!=="string"?E=[E]:(E=E.trim(),E=E==""?[]:E.split(",").map(function(p){return p.trim()})));
return EAt(t,E)},EAt=function(t,E){var p=t.JSC$19752_key_+"[";
return Array.from(E,function(U,x){return new tP(p+x+"]",U)})};
tP.prototype.object=function(t){var E=this.JSC$19752_value_;if(E==null)return t===void 0&&Wq8(this),t;if(typeof E==="object"&&E.constructor===Object){t={};var p=this.JSC$19752_key_+".",U;for(U in E)t[U]=new tP(p+U,E[U]);return t}throw $jK(this,"object");};var Ef=function(t){this.list_=p5C(t)},p5C=function(t){if(t instanceof Ef)t=t.list_;
else if(t[0]instanceof Ef){for(var E=new Set,p=0;p<t.length;p++)for(var U=_.M(t[p].list_),x=U.next();!x.done;x=U.next())E.add(x.value);t=E}return[].concat(_.KB(t))};
_.Y=Ef.prototype;_.Y.each=function(t,E,p){((p===void 0?0:p)?szo:_.QE)(this.list_,t,E);return this};
_.Y.size=function(){return this.list_.length};
_.Y.isEmpty=function(){return this.list_.length===0};
_.Y.get=function(t){return this.list_[t]||null};
_.Y.el=function(){return this.list_[0]||null};
_.Y.map=function(t,E){return _.vx(this.list_,t,E)};
_.Y.equals=function(t){return this===t||_.y_(this.list_,t.list_)};
_.Y.first=function(){return this.list_.length==0?null:new pp(this.list_[0])};
_.Y.last=function(){return this.list_.length==0?null:new pp(this.list_[this.list_.length-1])};
_.Y.find=function(t){var E=[];this.each(function(p){p=p.querySelectorAll(String(t));for(var U=0;U<p.length;U++)E.push(p[U])});
return new Ef(E)};
_.Y.parent=function(){var t=[];this.each(function(E){(E=E.parentElement||null)&&!_.zt(t,E)&&t.push(E)});
return new Ef(t)};
_.Y.children=function(){var t=[];this.each(function(E){E=_.Hf(E);for(var p=0;p<E.length;p++)t.push(E[p])});
return new Ef(t)};
_.Y.filter=function(t){t=_.ae(this.list_,Tcd(t));return new Ef(t)};
_.Y.closest=function(t){var E=[],p=Tcd(t),U=function(x){return _.Ic(x)&&p(x)};
this.each(function(x){(x=_.tg(x,U,!0))&&!_.zt(E,x)&&E.push(x)});
return new Ef(E)};
_.Y.next=function(t){return UF7(this,_.vs0,t)};
_.Y.prev=function(t){return UF7(this,FCL,t)};
var UF7=function(t,E,p){var U=[];var x=p?Tcd(p):o35;t.each(function(A){(A=E(A))&&x(A)&&U.push(A)});
return new Ef(U)};
Ef.prototype.setClass=function(t){return this.each(function(E){_.d0(E,t)})};
var xF8=function(t,E){return t.each(function(p){_.RC(p,E)})},ALt=function(t,E){return t.each(function(p){_.w4(p,E)})};
Ef.prototype.toggleClass=function(t,E){return E===!0?xF8(this,t):E===!1?ALt(this,t):this.each(function(p){_.ud(p,t)?_.w4(p,t):_.RC(p,t)})};
Ef.prototype.setText=function(t){return this.each(function(E){_.fu(E,t)})};
var YA9=function(t){t.each(function(E){E.removeAttribute("aria-hidden")})};
Ef.prototype.getStyle=function(t){if(this.list_.length>0){var E=this.list_[0],p=E.style[_.Fx(t)];return typeof p!=="undefined"?p:E.style[_.myo(E,t)]||""}};
Ef.prototype.getData=function(t){if(this.list_.length===0)return new tP(t,null);var E=vXJ(this.list_[0],t);return new tP(t,E)};
Ef.prototype.focus=function(t){try{t?this.el().focus(t):this.el().focus()}catch(E){}return this};
Ef.prototype.click=function(){var t=_.S2(this.el());if(t.createEvent){var E=t.createEvent("MouseEvents");E.initMouseEvent("click",!0,!0,t.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(E)}else t=t.createEventObject(),t.clientX=0,t.clientY=0,t.screenX=0,t.screenY=0,t.altKey=!1,t.ctrlKey=!1,t.shiftKey=!1,t.button=0,this.el().fireEvent("onclick",t)};
var Uf=function(t,E,p,U){function x(b,f,B){var R=f;f&&f.parentNode&&(R=f.cloneNode(!0));b(R,B)}
U=U===void 0?!1:U;if(t.list_.length==1){var A=t.list_[0],m=function(b){return E(b,A)};
p instanceof Ef?p.each(m,void 0,U):Array.isArray(p)?(U?szo:_.QE)(p,m):m(p);return t}return t.each(function(b){p instanceof Ef?p.each(function(f){x(E,f,b)}):Array.isArray(p)?_.QE(p,function(f){x(E,f,b)}):x(E,p,b)})};
_.Y=Ef.prototype;_.Y.append=function(t){return Uf(this,function(E,p){E&&p.appendChild(E)},t)};
_.Y.appendTo=function(t){(new Ef([t])).append(this);return this};
_.Y.remove=function(){return Uf(this,function(t,E){_.ng(E)},null)};
_.Y.empty=function(){return Uf(this,function(t,E){_.bk(E)},null)};
_.Y.after=function(t,E){return Uf(this,function(p,U){p&&_.qh(p,U)},t,!(E===void 0||E))};
_.Y.before=function(t){return Uf(this,function(E,p){E&&_.ik(E,p)},t)};
_.Y.replaceWith=function(t){return Uf(this,function(E,p){E&&_.Wip(E,p)},t)};
_.Y.toggle=function(t){return this.each(function(E){_.rV(E,t)})};
_.Y.show=function(){return this.toggle(!0)};
_.Y.hide=function(){return this.toggle(!1)};
_.Y.trigger=function(t,E,p,U){return MV7(this,t,E,p,U)};
var MV7=function(t,E,p,U,x){return t.each(function(A){_.E70(_.S2(A)).triggerWizEventInternal(A,E,p,U,x)})},pp=function(t,E){t instanceof Ef&&(E=t.list_,t=null);
this.list_=p5C(t!=null?[t]:E)};
_.Oa(pp,Ef);_.Y=pp.prototype;_.Y.children=function(){return new Ef(Array.prototype.slice.call(_.Hf(this.list_[0])))};
_.Y.each=function(t,E){t.call(E,this.list_[0],0);return this};
_.Y.size=function(){return 1};
_.Y.el=function(){return this.list_[0]};
_.Y.first=function(){return this};var x0=function(t,E){E=E===void 0?window:E;this.hostId=t;this.win=E;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$19763_previousHtmlOverscroll=this.JSC$19763_previousBodyOverscroll=this.JSC$19763_previousBodyOverflow="";this.eventTarget=new _.UH;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},ii8=function(t){var E=
mFt(mFt(mFt(new big(78),"po"),"hppp"),"hhc");
E.authUser=Number(_.qO("SESSION_INDEX","0"));E.colorScheme=t;return E};
x0.prototype.getOrigin=function(){return this.origin?this.origin:_.hU(_.XB(_.OH(new _.fF,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
x0.prototype.getTargetOrigin=function(){return _.hU(_.XB(_.OH(new _.fF,this.scheme),this.domain),this.port)};
x0.prototype.preloadIframe=function(t){var E=this;if(this.iframeLoadPromise===void 0){var p=document.createElement("iframe");this.iframe=p;XLo(p,t);this.iframeLoadPromise=new Promise(function(U,x){var A=!1,m=function(b){b.stopPropagation();p.removeEventListener("error",m);p.removeEventListener("securitypolicyviolation",m);x(Error("yk",{cause:b}))};
p.addEventListener("error",m);p.addEventListener("securitypolicyviolation",m);setTimeout(function(){A||x(Error("zk"))},3E4);
qAl(E,p,function(){A=!0;p.removeEventListener("error",m);p.removeEventListener("securitypolicyviolation",m);U()})});
HiC(this);t=this.getTargetOrigin().toString();p.setAttribute("allow","camera "+t+"; display-capture "+t);this.parentElement.appendChild(p)}return this.iframeLoadPromise};
var w5o=function(t,E){var p,U;return _.q(function(x){if(x.nextAddress==1)return p=k2C(getComputedStyle(t.parentElement).direction==="rtl"),t.parentElement.appendChild(p),document.activeElement instanceof HTMLElement&&(t.elementToFocusAfterClose=document.activeElement),_.aR(x,2),x.yield(t.preloadIframe(E),4);if(x.nextAddress!=2){t.parentElement.removeChild(p);t.JSC$19763_previousBodyOverflow=t.parentElement.style.overflow;t.JSC$19763_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
t.JSC$19763_previousBodyOverscroll=t.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";t.parentElement.style.overscrollBehavior="contain";t.parentElement.style.overflow="hidden";var A=t.iframe;A.style.bottom="0";A.style.border="none";A.style.height="100%";A.style.left="0";A.style.position=t.iframePosition;A.style.right="0";A.style.top="0";A.style.width="100%";A.style.zIndex="2202";A.setAttribute("aria-hidden","false");A.setAttribute("aria-modal","true");
t.opened=!0;fZ5(t);return _.r7(x,0)}U=_.nB(x);t.parentElement.removeChild(p);gzb(t.isDarkTheme());BYL(t,!1);throw Error("Ak",{cause:U});})},BYL=function(t,E){E=E===void 0?!0:E;
t.iframe!==void 0&&(RT7(t),document.documentElement.style.overscrollBehavior=t.JSC$19763_previousHtmlOverscroll,t.parentElement.style.overscrollBehavior=t.JSC$19763_previousBodyOverscroll,t.parentElement.style.overflow=t.JSC$19763_previousBodyOverflow,t.elementToFocusAfterClose!==void 0&&(t.elementToFocusAfterClose.focus(),t.elementToFocusAfterClose=void 0),E?HiC(t):(t.parentElement.removeChild(t.iframe),t.iframe=void 0,t.iframeLoadPromise=void 0,t.mainChannel=void 0),t.opened=!1)},RT7=function(t){t.backgroundElementsAriaHiddenIsNull&&
(YA9(t.backgroundElementsAriaHiddenIsNull),t.backgroundElementsAriaHiddenIsNull=void 0);
t.backgroundElementsAriaHiddenIsFalse&&(t.backgroundElementsAriaHiddenIsFalse.each(function(E){E.setAttribute("aria-hidden","false")}),t.backgroundElementsAriaHiddenIsFalse=void 0);
t.backgroundElementsWithoutInert&&(t.backgroundElementsWithoutInert.each(function(E){E.removeAttribute("inert")}),t.backgroundElementsWithoutInert=void 0)},fZ5=function(t){t.backgroundElementsAriaHiddenIsNull=(new pp(t.iframe.parentElement)).children().filter(function(E){return E.getAttribute("aria-hidden")===null&&E!==t.iframe});
t.backgroundElementsAriaHiddenIsNull.each(function(E){E.setAttribute("aria-hidden","true")});
t.backgroundElementsAriaHiddenIsFalse=(new pp(t.iframe.parentElement)).children().filter(function(E){return E.getAttribute("aria-hidden")==="false"&&E!==t.iframe});
t.backgroundElementsAriaHiddenIsFalse.each(function(E){E.setAttribute("aria-hidden","true")});
t.backgroundElementsWithoutInert=(new pp(t.iframe.parentElement)).children().filter(function(E){return!E.hasAttribute("inert")&&E!==t.iframe});
t.backgroundElementsWithoutInert.each(function(E){E.setAttribute("inert","true")})},HiC=function(t){t=t.iframe;
t.style.bottom="-1000px";t.style.position="fixed";t.style.right="-1000px";t.style.border="";t.style.height="";t.style.left="";t.style.top="";t.style.width="";t.style.zIndex="";t.setAttribute("aria-hidden","true");t.setAttribute("aria-modal","false")};
x0.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var big=function(t,E){x0.call(this,kwC[t],E);this.options=[];this.style=""};
_.u(big,x0);var VV7=function(t){t.style="youtube";return t},QS8=function(t,E){t.eventTarget.listen(Fqb,E);
return t},CtJ=function(t,E){t.eventTarget.listen(amt,E);
return t},mFt=function(t,E){t.options.push(E);
return t},jSK=function(t){var E=[t.getOrigin()];
t.ancestorOrigins&&E.push.apply(E,_.KB(t.ancestorOrigins));var p=new _.fF(t.win.location.href),U=t.startUrl?t.startUrl:t.options.includes("po")?"profile-picture/art":"profile-picture";E=rI9(_.aQ(t.getTargetOrigin(),U),"origin",E);t.startUrl&&_.jK(E,"startPath",t.startUrl);t.authUser>0&&_.jK(E,"authuser",t.authUser);t.pageId!==void 0&&_.jK(E,"pageId",t.pageId);_.jK(E,"hostId",t.hostId);t.jsMode!==void 0&&_.jK(E,"jsmode",t.jsMode);t.rectangleRatio!==void 0&&_.jK(E,"rectangleRatio",t.rectangleRatio);
t.options.length>0&&_.jK(E,"opts",t.options.join(","));try{for(var x=_.M(["utm_source","utm_medium","utm_campaign","utm_content"]),A=x.next();!A.done;A=x.next()){var m=A.value;_.CN(p,m)&&_.jK(E,m,_.CN(p,m))}var b,f=(b=t.hl)!=null?b:_.CN(p,"hl");f!==void 0&&_.jK(E,"hl",f)}catch(B){if(!(B instanceof URIError))throw B;}t.colorScheme&&_.jK(E,"theme",t.colorScheme);t.style&&_.jK(E,"style",t.style);return E},rLC=function(t,E){t.mainChannel=_.eM({destination:t.win,
iframe:E,origin:t.getTargetOrigin().toString(),channelName:"ow",onMessage:function(p){p=ZzL(p.data);if(E===t.iframe)switch(_.Et(p,1)){case 1:t.eventTarget.dispatchEvent(new n3e);BYL(t);break;case 2:t.eventTarget.dispatchEvent(new lmg(_.th(p,4),_.th(p,2),_.Et(p,5),_.lJ(p,J1K,6)));break;case 0:var U;t.eventTarget.dispatchEvent(new Gwg(_.th(p,2),(U=_.Et(p,3))!=null?U:0));break;case 3:t.eventTarget.dispatchEvent(new n3e(!0));BYL(t,!1);break;case 4:t.eventTarget.dispatchEvent(new Ncb)}}})},qAl=function(t,
E,p){_.eM({destination:t.win,
iframe:E,origin:_.hU(_.XB(_.OH(new _.fF,t.scheme),t.domain),t.port).toString(),channelName:"owi",onMessage:function(U){E===t.iframe&&(p!==void 0&&p(),rLC(t,E),t.opened&&t.mainChannel.send(h8b(XHC())),U.reply(),qAl(t,E))}})};
big.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?x0.prototype.preloadIframe.call(this,jSK(this).toString()):this.iframeLoadPromise};
big.prototype.openPicker=function(t){var E=this;return _.q(function(p){if(p.nextAddress==1)return E.startUrl=t?t:E.options.includes("po")?"profile-picture/art":"profile-picture",p.yield(w5o(E,jSK(E).toString()),2);if(E.mainChannel){var U=E.mainChannel,x=U.send;var A=XHC();A=_.Lq(A,2,E.startUrl);x.call(U,h8b(A))}_.Do(p)})};var k0J=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(k0J,_.w6);_.Y=k0J.prototype;_.Y.getSize=function(){return e6(this,1)};
_.Y.setSize=function(t){return _.Ah(this,1,t)};
_.Y.getWidth=function(){return e6(this,12)};
_.Y.getHeight=function(){return e6(this,13)};
_.Y.setCenterCrop=function(t){return _.gi(this,20,t)};
_.Y.getHtml=function(){return _.yT(this,4)};
_.Y.getToken=function(){return _.lN(this,24)};
_.Y.setToken=function(t){return _.Lq(this,24,t)};
_.Y.getBackgroundColor=function(){return e6(this,87)};
_.Y.hasBackgroundColor=function(){return _.BK(_.sa(this,87))!=null};
_.Y.getStoryboardLevel=function(){return e6(this,109)};kG.prototype.set=function(t,E){dFJ(this,t,E,!1)};
kG.prototype.add=function(t,E){dFJ(this,t,E,!0)};
var dFJ=function(t,E,p,U){for(var x=0;x<E.length;x++){var A=E.charAt(x);t.childNodes_[A]||(t.childNodes_[A]=new kG);t=t.childNodes_[A]}if(U&&t.JSC$19771_value_!==void 0)throw Error("Bk`"+E);t.JSC$19771_value_=p},ung=function(t,E){for(var p=0;p<E.length;p++)if(t=t.childNodes_[E.charAt(p)],!t)return;
return t};
kG.prototype.get=function(t){return(t=ung(this,t))?t.JSC$19771_value_:void 0};
kG.prototype.getValues=function(){var t=[];JLC(this,t);return t};
var JLC=function(t,E){t.JSC$19771_value_!==void 0&&E.push(t.JSC$19771_value_);for(var p in t.childNodes_)JLC(t.childNodes_[p],E)};
kG.prototype.getKeys=function(t){var E=[];if(t){for(var p=this,U=0;U<t.length;U++){var x=t.charAt(U);if(!p.childNodes_[x])return[];p=p.childNodes_[x]}IZ5(p,t,E)}else IZ5(this,"",E);return E};
var IZ5=function(t,E,p){t.JSC$19771_value_!==void 0&&p.push(E);for(var U in t.childNodes_)IZ5(t.childNodes_[U],E+U,p)};
_.Y=kG.prototype;_.Y.containsKey=function(t){return this.get(t)!==void 0};
_.Y.containsValue=function(t){if(this.JSC$19771_value_===t)return!0;for(var E in this.childNodes_)if(this.childNodes_[E].containsValue(t))return!0;return!1};
_.Y.clear=function(){this.childNodes_={};this.JSC$19771_value_=void 0};
_.Y.remove=function(t){for(var E=this,p=[],U=0;U<t.length;U++){var x=t.charAt(U);if(!E.childNodes_[x])throw Error("Ck`"+t);p.push([E,x]);E=E.childNodes_[x]}t=E.JSC$19771_value_;for(delete E.JSC$19771_value_;p.length>0;)if(U=p.pop(),E=U[0],U=U[1],E.childNodes_[U].isEmpty())delete E.childNodes_[U];else break;return t};
_.Y.clone=function(){return new kG(this)};
_.Y.getCount=function(){return NMg(this.getValues())};
_.Y.isEmpty=function(){return this.JSC$19771_value_===void 0&&_.Kq.isEmpty(this.childNodes_)};var zFd=function(){if(!gAL){var t=gAL=new kG,E;for(E in Zi8)t.add(E,Zi8[E])}},gAL,AP=function(t,E){this.types=t;
this.setters=E},Zi8={a:new AP([3,
0],[function(t,E){_.gi(t,21,E)},
function(t,E){_.Ah(t,56,E)}]),
al:new AP([3],[function(t,E){_.gi(t,74,E)}]),
b:new AP([3,0],[function(t,E){_.gi(t,23,E)},
function(t,E){_.Ah(t,38,E)}]),
ba:new AP([0],[function(t,E){_.Ah(t,85,E)}]),
bc:new AP([0],[function(t,E){_.Ah(t,87,E)}]),
br:new AP([0],[function(t,E){_.Ah(t,86,E)}]),
c:new AP([3,0],[function(t,E){_.gi(t,2,E)},
function(t,E){_.Ah(t,39,E)}]),
cc:new AP([3],[function(t,E){_.gi(t,51,E)}]),
ci:new AP([3],[function(t,E){_.gi(t,32,E)}]),
ckm:new AP([3],[function(t,E){_.gi(t,104,E)}]),
cp:new AP([0],[function(t,E){_.Ah(t,92,E)}]),
cr:new AP([3],[function(t,E){_.gi(t,108,E)}]),
cv:new AP([0],[function(t,E){_.Ah(t,94,E)}]),
d:new AP([3],[function(t,E){_.gi(t,3,E)}]),
dc:new AP([5],[function(t,E){_.Lq(t,99,E)}]),
df:new AP([3],[function(t,E){_.gi(t,80,E)}]),
dv:new AP([3],[function(t,E){_.gi(t,90,E)}]),
e:new AP([0],[function(t,E){_.Ah(t,15,E)}]),
em:new AP([0],[function(t,E){_.Ah(t,107,E)}]),
f:new AP([4],[function(t,E){_.Lq(t,16,E)}]),
fg:new AP([3],[function(t,E){_.gi(t,34,E)}]),
fh:new AP([3],[function(t,E){_.gi(t,30,E)}]),
fm:new AP([3],[function(t,E){_.gi(t,84,E)}]),
fo:new AP([2],[function(t,E){_.nM(t,79,_.xe(E))}]),
ft:new AP([3],[function(t,E){_.gi(t,50,E)}]),
fv:new AP([3],[function(t,E){_.gi(t,31,E)}]),
g:new AP([3],[function(t,E){_.gi(t,14,E)}]),
gce:new AP([4],[function(t,E){_.Lq(t,112,E)}]),
gd:new AP([3],[function(t,E){_.gi(t,83,E)}]),
gm:new AP([3],[function(t,E){_.gi(t,105,E)}]),
h:new AP([3,0],[function(t,E){_.gi(t,4,E)},
function(t,E){_.Ah(t,13,E)}]),
i:new AP([3],[function(t,E){_.gi(t,22,E)}]),
ic:new AP([0],[function(t,E){_.Ah(t,71,E)}]),
id:new AP([3],[function(t,E){_.gi(t,70,E)}]),
il:new AP([3],[function(t,E){_.gi(t,96,E)}]),
ip:new AP([3],[function(t,E){_.gi(t,54,E)}]),
iv:new AP([0],[function(t,E){_.cE(t,75,E)}]),
j:new AP([1],[function(t,E){E=E==null?E:oX7(E);_.nM(t,29,E)}]),
k:new AP([3,0],[function(t,E){_.gi(t,17,E)},
function(t,E){_.Ah(t,42,E)}]),
l:new AP([0],[function(t,E){_.Ah(t,44,E)}]),
lf:new AP([3],[function(t,E){_.gi(t,65,E)}]),
lo:new AP([3],[function(t,E){_.gi(t,97,E)}]),
m:new AP([0],[function(t,E){_.Ah(t,63,E)}]),
md:new AP([3],[function(t,E){_.gi(t,91,E)}]),
mm:new AP([4],[function(t,E){_.Lq(t,81,E)}]),
mo:new AP([3],[function(t,E){_.gi(t,73,E)}]),
mp:new AP([0],[function(t,E){_.Ah(t,115,E)}]),
mv:new AP([3],[function(t,E){_.gi(t,66,E)}]),
n:new AP([3],[function(t,E){t.setCenterCrop(E)}]),
nc:new AP([3],[function(t,E){_.gi(t,55,E)}]),
nd:new AP([3],[function(t,E){_.gi(t,53,E)}]),
ng:new AP([3],[function(t,E){_.gi(t,95,E)}]),
ngm:new AP([3],[function(t,E){_.gi(t,106,E)}]),
no:new AP([3],[function(t,E){_.gi(t,37,E)}]),
ns:new AP([3],[function(t,E){_.gi(t,40,E)}]),
nt0:new AP([4],[function(t,E){_.Lq(t,36,E)}]),
ntm:new AP([3],[function(t,E){_.gi(t,114,E)}]),
nu:new AP([3],[function(t,E){_.gi(t,46,E)}]),
nw:new AP([3],[function(t,E){_.gi(t,48,E)}]),
o:new AP([1,3],[function(t,E){E=E==null?E:oX7(E);_.nM(t,7,E)},
function(t,E){_.gi(t,27,E)}]),
p:new AP([3,0],[function(t,E){_.gi(t,19,E)},
function(t,E){_.Ah(t,43,E)}]),
pa:new AP([3],[function(t,E){_.gi(t,61,E)}]),
pc:new AP([0],[function(t,E){_.Ah(t,88,E)}]),
pd:new AP([3],[function(t,E){_.gi(t,60,E)}]),
pf:new AP([3],[function(t,E){_.gi(t,67,E)}]),
pg:new AP([3],[function(t,E){_.gi(t,72,E)}]),
pi:new AP([2],[function(t,E){_.nM(t,76,_.xe(E))}]),
pp:new AP([3],[function(t,E){_.gi(t,52,E)}]),
pt:new AP([4],[function(t,E){_.Lq(t,111,E)}]),
q:new AP([4],[function(t,E){_.Lq(t,28,E)}]),
r:new AP([3,0],[function(t,E){_.gi(t,6,E)},
function(t,E){_.Ah(t,26,E)}]),
ra:new AP([3],[function(t,E){_.gi(t,103,E)}]),
rf:new AP([3],[function(t,E){_.gi(t,100,E)}]),
rg:new AP([3],[function(t,E){_.gi(t,59,E)}]),
rh:new AP([3],[function(t,E){_.gi(t,49,E)}]),
rj:new AP([3],[function(t,E){_.gi(t,57,E)}]),
ro:new AP([2],[function(t,E){_.nM(t,78,_.xe(E))}]),
rp:new AP([3],[function(t,E){_.gi(t,58,E)}]),
rw:new AP([3],[function(t,E){_.gi(t,35,E)}]),
rwa:new AP([3],[function(t,E){_.gi(t,64,E)}]),
rwu:new AP([3],[function(t,E){_.gi(t,41,E)}]),
s:new AP([3,0],[function(t,E){_.gi(t,33,E)},
function(t,E){t.setSize(E)}]),
sb:new AP([0],[function(t,E){_.Ah(t,110,E)}]),
sc:new AP([0],[function(t,E){_.Ah(t,89,E)}]),
sg:new AP([3],[function(t,E){_.gi(t,82,E)}]),
sl:new AP([0],[function(t,E){_.Ah(t,109,E)}]),
sm:new AP([3],[function(t,E){_.gi(t,93,E)}]),
t:new AP([4],[function(t,E){t.setToken(E)}]),
tm:new AP([3],[function(t,E){_.gi(t,113,E)}]),
u:new AP([3],[function(t,E){_.gi(t,18,E)}]),
ut:new AP([3],[function(t,E){_.gi(t,45,E)}]),
v:new AP([0],[function(t,E){_.Ah(t,62,E)}]),
vb:new AP([0],[function(t,E){_.cE(t,68,E)}]),
vf:new AP([4],[function(t,E){_.Lq(t,102,E)}]),
vl:new AP([0],[function(t,E){_.cE(t,69,E)}]),
vm:new AP([3],[function(t,E){_.gi(t,98,E)}]),
w:new AP([0],[function(t,E){_.Ah(t,12,E)}]),
x:new AP([0],[function(t,E){_.Ah(t,9,E)}]),
y:new AP([0],[function(t,E){_.Ah(t,10,E)}]),
ya:new AP([2],[function(t,E){_.nM(t,77,_.xe(E))}]),
z:new AP([0],[function(t,E){_.Ah(t,11,E)}])};
zFd.prototype.parse=function(t){var E=new k0J,p=new k0J;if(t=="")t=!0;else{t=t.split("-");for(var U=!0,x=0;x<t.length;x++){var A=t[x];if(A.length==0)U=!1;else{var m=A,b=!1;var f=m;var B=m.charAt(0);B!=B.toLowerCase()&&(b=!0,f=m.charAt(0).toLowerCase()+m.substring(1));var R=gAL;for(B=1;B<=f.length;++B){var V=R,Q=f.substring(0,B);if(Q.length==0?V.isEmpty():!ung(V,Q))break}f=B==1?null:(f=R.get(f.substring(0,B-1)))?{option:m.substring(0,B-1),value:m.substring(B-1),signed:b,attributes:f}:null;if(f){m=
[];b=[];B=!1;for(R=0;R<f.attributes.types.length;R++){V=f.attributes.types[R];var C=f.value;Q=x;if(f.signed&&V==1)for(var d=C.length;d<12&&Q<t.length-1;)C+="-"+t[Q+1],d=C.length,++Q;else if(V==2)for(;Q<t.length-1&&t[Q+1].match(/^[\d\.]/);)C+="-"+t[Q+1],++Q;d=f.attributes.setters[R];C=Oi8(this,V)(f.option,C,E,p,d);if(C===null){B=!0;x=Q;break}else m.push(V),b.push(C)}if(!B)for(f=0;f<b.length;f++)R=m[f],C=b[f],X57(this,R)(A,C);U=U&&B}else U=!1}}t=U}return new hTo(E,p,t)};
var aZ8=function(t,E,p,U,x,A){x(p,E);t=t.charAt(0);A=A(t==t.toUpperCase());x(U,A)};
_.Y=zFd.prototype;_.Y.parseAndSetIntOption_=function(t,E,p,U,x){if(E=="")return 0;isFinite(E)&&(E=String(E));E=typeof E==="string"?/^\s*-?0x/i.test(E)?parseInt(E,16):parseInt(E,10):NaN;if(isNaN(E))return 1;aZ8(t,E,p,U,x,Number);return null};
_.Y.logIntParseError_=function(){};
_.Y.parseAndSetFloatOption_=function(t,E,p,U,x){if(E=="")return 0;var A=Number(E);E=A==0&&_.mJ(E)?NaN:A;if(isNaN(E))return 1;aZ8(t,E,p,U,x,Number);return null};
_.Y.logFloatParseError_=function(){};
_.Y.parseAndSetBoolOption_=function(t,E,p,U,x){if(E!="")return 2;aZ8(t,!0,p,U,x,Boolean);return null};
_.Y.logBoolParseError_=function(){};
_.Y.parseAndSetStringOption_=function(t,E,p,U,x){if(E=="")return 0;aZ8(t,E,p,U,x,function(A){return A?"1":""});
return null};
_.Y.logStringParseError_=function(){};
_.Y.parseAndSetUint64Base64Option_=function(t,E,p,U,x){if(E=="")return 0;aZ8(t,E,p,U,x,function(A){return A?1:0});
return null};
var Oi8=function(t,E){switch(E){case 0:return(0,_.Tg)(t.parseAndSetIntOption_,t);case 2:return(0,_.Tg)(t.parseAndSetFloatOption_,t);case 3:return(0,_.Tg)(t.parseAndSetBoolOption_,t);case 4:return(0,_.Tg)(t.parseAndSetStringOption_,t);case 1:return(0,_.Tg)(t.parseAndSetUint64Base64Option_,t);default:return function(){}}},X57=function(t,E){switch(E){case 0:return(0,_.Tg)(t.logIntParseError_,t);
case 2:return(0,_.Tg)(t.logFloatParseError_,t);case 3:return(0,_.Tg)(t.logBoolParseError_,t);case 4:case 1:return(0,_.Tg)(t.logStringParseError_,t);default:return function(){}}},hTo=function(t,E,p){this.valueProto_=t;
this.signatureFlagProto_=E;this.JSC$19783_valid_=p};
hTo.prototype.isValid=function(){return this.JSC$19783_valid_};var hFJ=function(t){this.JSC$19784_parser_=null;this.JSC$19784_components_=[];this.JSC$19784_parsedOptions_=null;eT7(this,t)},FPK=function(t){t.JSC$19784_parser_==null&&(t.JSC$19784_parser_=new zFd);
return t.JSC$19784_parser_},eT7=function(t,E){t.JSC$19784_parsedOptions_=E?typeof E==="string"?FPK(t).parse(E):E:FPK(t).parse("")},Y0=function(t,E){return t==E?!1:!0};
_.Y=hFJ.prototype;_.Y.JSC$19786_setCrop=function(t){t=t||void 0;var E=this.JSC$19784_parsedOptions_,p=E.valueProto_;Y0(t,_.yT(p,2),_.yT(E.signatureFlagProto_,2))&&_.gi(p,2,t);return this};
_.Y.JSC$19786_setCircleCrop=function(t){t=t||void 0;var E=this.JSC$19784_parsedOptions_,p=E.valueProto_;Y0(t,aB(p,51),aB(E.signatureFlagProto_,51))&&_.gi(p,51,t);return this};
_.Y.JSC$19786_setImageCrop=function(t){t=t||void 0;var E=this.JSC$19784_parsedOptions_,p=E.valueProto_;Y0(t,aB(p,32),aB(E.signatureFlagProto_,32))&&_.gi(p,32,t);return this};
_.Y.JSC$19786_setHeight=function(t){var E=this.JSC$19784_parsedOptions_,p=E.valueProto_;Y0(t,p.getHeight(),E.signatureFlagProto_.getHeight())&&_.Ah(p,13,t);return this};
_.Y.setCenterCrop=function(t){t=t||void 0;var E=this.JSC$19784_parsedOptions_,p=E.valueProto_;Y0(t,_.yT(p,20),_.yT(E.signatureFlagProto_,20))&&p.setCenterCrop(t);return this};
_.Y.JSC$19786_setSmartCrop=function(t){t=t||void 0;var E=this.JSC$19784_parsedOptions_,p=E.valueProto_;Y0(t,_.yT(p,19),_.yT(E.signatureFlagProto_,19))&&_.gi(p,19,t);return this};
_.Y.JSC$19786_setPad=function(t){t=t||void 0;var E=this.JSC$19784_parsedOptions_,p=E.valueProto_;Y0(t,aB(p,60),aB(E.signatureFlagProto_,60))&&_.gi(p,60,t);return this};
_.Y.JSC$19786_setSmartCropUseFace=function(t){t=t||void 0;var E=this.JSC$19784_parsedOptions_,p=E.valueProto_;Y0(t,_.yT(p,67),_.yT(E.signatureFlagProto_,67))&&_.gi(p,67,t);return this};
_.Y.JSC$19786_setSmartCropNoClip=function(t){t=t||void 0;var E=this.JSC$19784_parsedOptions_,p=E.valueProto_;Y0(t,_.yT(p,52),_.yT(E.signatureFlagProto_,52))&&_.gi(p,52,t);return this};
_.Y.setSize=function(t){var E=this.JSC$19784_parsedOptions_,p=E.valueProto_;Y0(t,p.getSize(),E.signatureFlagProto_.getSize())&&p.setSize(t);return this};
_.Y.setToken=function(t){t=t||void 0;var E=this.JSC$19784_parsedOptions_,p=E.valueProto_;Y0(t,p.getToken(),E.signatureFlagProto_.getToken())&&p.setToken(t);return this};
_.Y.JSC$19786_setWidth=function(t){var E=this.JSC$19784_parsedOptions_,p=E.valueProto_;Y0(t,p.getWidth(),E.signatureFlagProto_.getWidth())&&_.Ah(p,12,t);return this};
_.Y.clearOptions=function(){eT7(this,"");return this};
_.Y.build=function(){this.JSC$19784_components_.length=0;var t=this.JSC$19784_parsedOptions_,E=t.valueProto_;t=t.signatureFlagProto_;MD(this,"s",E.getSize(),t.getSize());MD(this,"w",E.getWidth(),t.getWidth());mZ(this,"c",_.yT(E,2),_.yT(t,2));mZ(this,"d",_.yT(E,3),_.yT(t,3));MD(this,"h",E.getHeight(),t.getHeight());mZ(this,"s",aB(E,33),aB(t,33));mZ(this,"h",E.getHtml(),t.getHtml());mZ(this,"p",_.yT(E,19),_.yT(t,19));mZ(this,"pp",_.yT(E,52),_.yT(t,52));mZ(this,"pf",_.yT(E,67),_.yT(t,67));mZ(this,"n",
_.yT(E,20),_.yT(t,20));MD(this,"r",e6(E,26),e6(t,26));mZ(this,"r",_.yT(E,6),_.yT(t,6));mZ(this,"o",aB(E,27),aB(t,27));var p=_.vn(E,7,_.D1);bq(this,"o",p,_.vn(t,7,_.D1));p=_.vn(E,29,_.D1);bq(this,"j",p,_.vn(t,29,_.D1));MD(this,"x",e6(E,9),e6(t,9));MD(this,"y",e6(E,10),e6(t,10));MD(this,"z",e6(E,11),e6(t,11));mZ(this,"g",_.yT(E,14),_.yT(t,14));MD(this,"e",e6(E,15),e6(t,15));bq(this,"f",_.lN(E,16),_.lN(t,16));mZ(this,"k",aB(E,17),aB(t,17));mZ(this,"u",aB(E,18),!0);mZ(this,"ut",aB(E,45),!0);mZ(this,"i",
aB(E,22),!0);mZ(this,"a",aB(E,21),aB(t,21));mZ(this,"b",_.yT(E,23),_.yT(t,23));MD(this,"b",e6(E,38),e6(t,38));MD(this,"c",e6(E,39),e6(t,39),16,8);bq(this,"q",_.lN(E,28),_.lN(t,28));mZ(this,"fh",aB(E,30),aB(t,30));mZ(this,"fv",aB(E,31),aB(t,31));mZ(this,"fg",_.yT(E,34),_.yT(t,34));mZ(this,"ci",aB(E,32),aB(t,32));bq(this,"t",E.getToken(),t.getToken());bq(this,"nt0",_.lN(E,36),_.lN(t,36));mZ(this,"rw",_.yT(E,35),_.yT(t,35));mZ(this,"rwu",_.yT(E,41),_.yT(t,41));mZ(this,"rwa",_.yT(E,64),_.yT(t,64));mZ(this,
"nw",_.yT(E,48),_.yT(t,48));mZ(this,"rh",_.yT(E,49),_.yT(t,49));mZ(this,"no",_.yT(E,37),_.yT(t,37));mZ(this,"ns",aB(E,40),aB(t,40));MD(this,"k",e6(E,42),e6(t,42));MD(this,"p",e6(E,43),e6(t,43));MD(this,"l",e6(E,44),e6(t,44));MD(this,"v",e6(E,62),e6(t,62));mZ(this,"nu",aB(E,46),aB(t,46));mZ(this,"ft",aB(E,50),aB(t,50));mZ(this,"cc",aB(E,51),aB(t,51));mZ(this,"nd",aB(E,53),aB(t,53));mZ(this,"ip",aB(E,54),aB(t,54));mZ(this,"nc",aB(E,55),aB(t,55));MD(this,"a",e6(E,56),e6(t,56));mZ(this,"rj",aB(E,57),
aB(t,57));mZ(this,"rp",aB(E,58),aB(t,58));mZ(this,"rg",aB(E,59),aB(t,59));mZ(this,"pd",aB(E,60),aB(t,60));mZ(this,"pa",aB(E,61),aB(t,61));MD(this,"m",e6(E,63),e6(t,63));MD(this,"vb",Fe(E,68),Fe(t,68));MD(this,"vl",Fe(E,69),Fe(t,69));mZ(this,"lf",aB(E,65),aB(t,65));mZ(this,"mv",aB(E,66),aB(t,66));mZ(this,"id",aB(E,70),aB(t,70));MD(this,"ic",e6(E,71),!0);mZ(this,"pg",_.yT(E,72),_.yT(t,72));mZ(this,"mo",aB(E,73),aB(t,73));mZ(this,"al",aB(E,74),aB(t,74));MD(this,"iv",Fe(E,75),Fe(t,75));MD(this,"pi",z7(E,
76),z7(t,76));MD(this,"ya",z7(E,77),z7(t,77));MD(this,"ro",z7(E,78),z7(t,78));MD(this,"fo",z7(E,79),z7(t,79));mZ(this,"df",aB(E,80),aB(t,80));bq(this,"mm",_.lN(E,81),_.lN(t,81));mZ(this,"sg",aB(E,82),aB(t,82));mZ(this,"gd",aB(E,83),aB(t,83));mZ(this,"fm",aB(E,84),aB(t,84));MD(this,"ba",e6(E,85),e6(t,85));MD(this,"br",e6(E,86),e6(t,86));MD(this,"bc",E.getBackgroundColor(),t.getBackgroundColor(),16,8);MD(this,"pc",e6(E,88),e6(t,88),16,8);MD(this,"sc",e6(E,89),e6(t,89),16,8);mZ(this,"dv",aB(E,90),aB(t,
90));mZ(this,"md",aB(E,91),aB(t,91));MD(this,"cp",e6(E,92),e6(t,92));mZ(this,"sm",aB(E,93),aB(t,93));MD(this,"cv",e6(E,94),e6(t,94));mZ(this,"ng",aB(E,95),aB(t,95));mZ(this,"il",aB(E,96),aB(t,96));mZ(this,"lo",aB(E,97),aB(t,97));mZ(this,"vm",aB(E,98),aB(t,98));bq(this,"dc",_.lN(E,99),_.lN(t,99));mZ(this,"rf",aB(E,100),aB(t,100));bq(this,"vf",_.lN(E,102),_.lN(t,102));mZ(this,"ra",_.yT(E,103),_.yT(t,103));mZ(this,"ckm",aB(E,104),aB(t,104));mZ(this,"gm",aB(E,105),aB(t,105));mZ(this,"ngm",aB(E,106),aB(t,
106));MD(this,"em",e6(E,107),e6(t,107));mZ(this,"cr",aB(E,108),aB(t,108));MD(this,"sl",E.getStoryboardLevel(),t.getStoryboardLevel());MD(this,"sb",e6(E,110),e6(t,110));bq(this,"pt",_.lN(E,111),_.lN(t,111));bq(this,"gce",_.lN(E,112),_.lN(t,112));mZ(this,"tm",aB(E,113),aB(t,113));mZ(this,"ntm",aB(E,114),aB(t,114));MD(this,"mp",e6(E,115),e6(t,115));return this.JSC$19784_components_.join("-")};
var MD=function(t,E,p,U,x,A){if(p!=null){var m=x==void 0||x!=10&&x!=16?10:x;p=Number(p).toString(m);x=new CnL;x.append(m==16?"0x":"");m=x.append;A==void 0?A="":(A-=p.length,A=A<=0?"":(0,_.lo0)("0",A));m.call(x,A);x.append(p);zTJ(t,E,x.toString(),!!Number(U))}},mZ=function(t,E,p,U){p&&zTJ(t,E,"",!!U)},bq=function(t,E,p,U){p&&zTJ(t,E,String(p),!!Number(U))},zTJ=function(t,E,p,U){U&&(E=E.charAt(0).toUpperCase()+E.substring(1));
t.JSC$19784_components_.push(E+p)};_.Oa(dr,hFJ);_.Y=dr.prototype;_.Y.JSC$19786_setCrop=function(t){t&&iq(this);return dr.superClass_.JSC$19786_setCrop.call(this,t)};
_.Y.JSC$19786_setHeight=function(t){t=t==null||t<0?void 0:t;t!=null&&this.setSize();return dr.superClass_.JSC$19786_setHeight.call(this,t)};
_.Y.JSC$19786_setImageCrop=function(t){t&&iq(this);return dr.superClass_.JSC$19786_setImageCrop.call(this,t)};
_.Y.JSC$19786_setCircleCrop=function(t){t&&iq(this);return dr.superClass_.JSC$19786_setCircleCrop.call(this,t)};
_.Y.setSize=function(t){_.o0(t)&&(t=Math.max(t.width,t.height));t=t==null||t<0?void 0:t;t!=null&&(this.JSC$19786_setWidth(),this.JSC$19786_setHeight());return dr.superClass_.setSize.call(this,t)};
_.Y.JSC$19786_setSmartCrop=function(t){t&&iq(this);return dr.superClass_.JSC$19786_setSmartCrop.call(this,t)};
_.Y.JSC$19786_setSmartCropNoClip=function(t){t&&iq(this);return dr.superClass_.JSC$19786_setSmartCropNoClip.call(this,t)};
_.Y.JSC$19786_setSmartCropUseFace=function(t){t&&iq(this);return dr.superClass_.JSC$19786_setSmartCropUseFace.call(this,t)};
_.Y.setCenterCrop=function(t){t&&iq(this);return dr.superClass_.setCenterCrop.call(this,t)};
_.Y.JSC$19786_setPad=function(t){t&&iq(this);return dr.superClass_.JSC$19786_setPad.call(this,t)};
_.Y.JSC$19786_setWidth=function(t){t=t==null||t<0?void 0:t;t!=null&&this.setSize();return dr.superClass_.JSC$19786_setWidth.call(this,t)};
var lZd=function(t){t.clearOptions();var E=t.JSC$19784_parsedOptions_,p=E.valueProto_;Y0(!0,_.yT(p,3),_.yT(E.signatureFlagProto_,3))&&_.gi(p,3,!0);return t},iq=function(t){t.setCenterCrop();
t.JSC$19786_setCircleCrop();t.JSC$19786_setCrop();t.JSC$19786_setImageCrop();t.JSC$19786_setPad();t.JSC$19786_setSmartCrop();t.JSC$19786_setSmartCropNoClip();t.JSC$19786_setSmartCropUseFace()};
dr.prototype.build=function(){var t=this.JSC$19784_parsedOptions_.valueProto_;aB(t,18)||aB(t,45)?t.getSize()||this.setSize(0):(t=this.JSC$19784_parsedOptions_.valueProto_,t.getSize()||t.getWidth()||t.getHeight()||(this.setSize(),this.JSC$19786_setHeight(),this.JSC$19786_setWidth(),iq(this)));return dr.superClass_.build.call(this)};var G0J=/^[^\/]*\/\//,nA8=function(t,E){E=E===void 0?!1:E;this.original_=t;this.originalPrefix_="";(t=this.original_.match(G0J))&&t[0]?(this.originalPrefix_=t[0],t=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):t="http://"+this.original_;this.uri_=_.QC(t,!0);this.isFreeformUrl_=E;this.JSC$19790_valid_=!0;this.obfuscated_=!1},NYe=function(t,E){t.JSC$19792_pathPrefix_=t.JSC$19792_pathPrefix_?t.JSC$19792_pathPrefix_+("/"+E):E},qD=function(t){if(t.JSC$19792_components_==
void 0){var E=t.uri_.getPath().substring(1);
t.JSC$19792_pathPrefix_=null;if(t.isFreeformUrl_){t.JSC$19792_components_=[];if((E.match(/=/g)||[]).length>1)return t.JSC$19790_valid_=!1,t.JSC$19792_components_;var p=E.indexOf("=");p!=-1?(t.JSC$19792_components_.push(E.substr(0,p)),t.JSC$19792_components_.push(E.substr(p+1))):t.JSC$19792_components_.push(E);return t.JSC$19792_components_}t.JSC$19792_components_=E.split("/");E=t.JSC$19792_components_.length;E>2&&t.JSC$19792_components_[0]=="u"&&(NYe(t,t.JSC$19792_components_[0]+"/"+t.JSC$19792_components_[1]),
t.JSC$19792_components_.shift(),t.JSC$19792_components_.shift(),E-=2);if(E==0||E==4||E>7)return t.JSC$19790_valid_=!1,t.JSC$19792_components_;if(E==2)NYe(t,t.JSC$19792_components_[0]);else if(t.JSC$19792_components_[0]=="image")NYe(t,t.JSC$19792_components_[0]);else if(E==7||E==3)return t.JSC$19790_valid_=!1,t.JSC$19792_components_;if(E<=3){t.obfuscated_=!0;E==3&&(NYe(t,t.JSC$19792_components_[1]),t.JSC$19792_components_.shift(),--E);--E;p=t.JSC$19792_components_[E];var U=p.indexOf("=");U!=-1&&(t.JSC$19792_components_[E]=
p.substr(0,U),t.JSC$19792_components_.push(p.substr(U+1)))}}return t.JSC$19792_components_};
nA8.prototype.isValid=function(){qD(this);return this.JSC$19790_valid_};
nA8.prototype.isObfuscated=function(){qD(this);return this.obfuscated_};
var DF8=function(t){qD(t);return t.isFreeformUrl_},Ht=function(t){qD(t);
t.JSC$19792_pathPrefix_==void 0&&(t.JSC$19792_pathPrefix_=null);return t.JSC$19792_pathPrefix_},sSC=function(t){switch(qD(t).length){case 7:return!0;
case 6:return Ht(t)==null;case 5:return!1;case 3:return!0;case 2:return Ht(t)==null;case 1:return!1;default:return!1}},fp=function(t,E){if(DF8(t))a:{switch(E){case 7:E=0;
break;case 4:if(!sSC(t)){t=null;break a}E=1;break;default:t=null;break a}t=qD(t)[E]}else if(t.isObfuscated())a:{var p=Ht(t)!=null?1:0;switch(E){case 6:E=p;break;case 4:if(!sSC(t)){t=null;break a}E=1+p;break;default:t=null;break a}t=qD(t)[E]}else a:{p=Ht(t)!=null?1:0;switch(E){case 0:E=p;break;case 1:E=1+p;break;case 2:E=2+p;break;case 3:E=3+p;break;case 4:if(!sSC(t)){t=null;break a}E=4+p;break;case 5:E=sSC(t)?1:0;E=4+p+E;break;default:t=null;break a}t=qD(t)[E]}return t};
nA8.prototype.getOptions=function(){this.options_==void 0&&(this.options_=fp(this,4));return this.options_};var FD5=function(){};
FD5.prototype.parse=function(t,E){return new aKg(t,E===void 0?!1:E)};
var aKg=function(t,E){nA8.call(this,t,E===void 0?!1:E)};
_.u(aKg,nA8);_.Oa(lKt,dr);var eFg;lKt.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
lKt.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var t=lKt.superClass_.build.call(this),E=[];Ht(this.parsedImageUrl_)!=null&&E.push(Ht(this.parsedImageUrl_));var p=DF8(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var U=this.parsedImageUrl_;U.obfuscatedData_==void 0&&(U.obfuscatedData_=fp(U,6));E.push(U.obfuscatedData_+(t?"="+t:""))}else if(p){U=E.push;var x=this.parsedImageUrl_;x.freeformUrlPath_===void 0&&(x.freeformUrlPath_=
fp(x,7));U.call(E,x.freeformUrlPath_);t&&E.push(t)}else U=E.push,x=this.parsedImageUrl_,x.obfuscatedGaiaId_==void 0&&(x.obfuscatedGaiaId_=fp(x,0)),U.call(E,x.obfuscatedGaiaId_),U=E.push,x=this.parsedImageUrl_,x.photoId_==void 0&&(x.photoId_=fp(x,1)),U.call(E,x.photoId_),U=E.push,x=this.parsedImageUrl_,x.imageVersion_==void 0&&(x.imageVersion_=fp(x,2)),U.call(E,x.imageVersion_),U=E.push,x=this.parsedImageUrl_,x.signature_==void 0&&(x.signature_=fp(x,3)),U.call(E,x.signature_),t&&E.push(t),t=E.push,
U=this.parsedImageUrl_,U.filename_==void 0&&(U.filename_=fp(U,5)),t.call(E,U.filename_);E=p?E.join("="):E.join("/");E=_.QC(this.protocolPrefix_+this.JSC$19798_domain_+"/"+E+(this.JSC$19798_query_?"?"+this.JSC$19798_query_:"")).toString();E.startsWith("%3a//")&&(E=E.replace("%3a//","://"));return E};_.Oa(uT,_.Sv);uT.prototype.JSC$10350_setLabel=function(t){uT.superClass_.JSC$10350_setLabel.call(this,t);return this};
uT.prototype.addUploadMetadata=function(t,E){uT.superClass_.addUploadMetadata.call(this,t,E);return this};var LPK=function(t){if(t!=="youtubebanner"&&t!=="youtube-channel-banner")throw Error("Dk");uT.call(this,t)};
_.u(LPK,uT);LPK.prototype.JSC$10350_setLabel=function(t){uT.prototype.JSC$10350_setLabel.call(this,t);return this};
LPK.prototype.addUploadMetadata=function(t,E){uT.prototype.addUploadMetadata.call(this,t,E);return this};var nz5=_.CG(["",""]);var Pto=[0,_.Ot,_.C1,_.Ot,-1,_.C1,[0,_.jM,_.kC,-1],_.Ot,-1];var TYd=[0,[1,2,3],_.u3,-2];var oAl=[0,_.Ot];var WPt=_.CG(["viewBox"]),$Fe=_.CG(["width"]),KPC=_.CG(["height"]),vAJ=_.CG(["fill"]),yL9=_.CG(["id"]),SA9=_.CG(["x"]),cLL=_.CG(["y"]);DJC.prototype.getLength=function(){return this.parsedData.length};
DJC.prototype.write=function(t){for(var E=0,p=this.parsedData.length;E<p;E++)t.put(this.parsedData[E],8)};
var $Jd=function(t,E){var p=new DJC(E);t.dataList.push(p);p=t.errorCorrectLevel;var U=1,x=encodeURI(E).toString().replace(/%[0-9a-fA-F]{2}/g,"a");E=x.length+(x.length!=E?3:0);x=0;for(var A=Bt.length;x<=A;x++){var m=0;switch(p){case 1:m=Bt[x][0];break;case 0:m=Bt[x][1];break;case 3:m=Bt[x][2];break;case 2:m=Bt[x][3]}if(E<=m)break;else U++}if(U>Bt.length)throw Error("Mk");t.typeNumber=U;t.dataCache=null};
s4l.prototype.isDark=function(t,E){if(t<0||this.moduleCount<=t||E<0||this.moduleCount<=E)throw Error("Ek`"+t+"`"+E);return this.modules[t][E]};
for(var KD9=function(t,E,p){t.moduleCount=t.typeNumber*4+17;t.modules=Array(t.moduleCount);for(var U=0;U<t.moduleCount;U++){t.modules[U]=Array(t.moduleCount);for(var x=0;x<t.moduleCount;x++)t.modules[U][x]=null}t4b(t,0,0);t4b(t,t.moduleCount-7,0);t4b(t,0,t.moduleCount-7);U=E95[t.typeNumber-1];for(x=0;x<U.length;x++)for(var A=0;A<U.length;A++){var m=U[x],b=U[A];if(t.modules[m][b]==null)for(var f=-2;f<=2;f++)for(var B=-2;B<=2;B++)t.modules[m+f][b+B]=f==-2||f==2||B==-2||B==2||f==0&&B==0?!0:!1}for(U=
8;U<t.moduleCount-8;U++)t.modules[U][6]==null&&(t.modules[U][6]=U%2==0);for(U=8;U<t.moduleCount-8;U++)t.modules[6][U]==null&&(t.modules[6][U]=U%2==0);U=t.errorCorrectLevel<<3|p;for(x=U<<10;wO(x)-wO(1335)>=0;)x^=1335<<wO(x)-wO(1335);U=(U<<10|x)^21522;for(x=0;x<15;x++)A=!E&&(U>>x&1)==1,x<6?t.modules[x][8]=A:x<8?t.modules[x+1][8]=A:t.modules[t.moduleCount-15+x][8]=A;for(x=0;x<15;x++)A=!E&&(U>>x&1)==1,x<8?t.modules[8][t.moduleCount-x-1]=A:x<9?t.modules[8][15-x-1+1]=A:t.modules[8][15-x-1]=A;t.modules[t.moduleCount-
8][8]=!E;if(t.typeNumber>=7){U=t.typeNumber;for(x=U<<12;wO(x)-wO(7973)>=0;)x^=7973<<wO(x)-wO(7973);U=U<<12|x;for(x=0;x<18;x++)A=!E&&(U>>x&1)==1,t.modules[Math.floor(x/3)][x%3+t.moduleCount-8-3]=A;for(x=0;x<18;x++)A=!E&&(U>>x&1)==1,t.modules[x%3+t.moduleCount-8-3][Math.floor(x/3)]=A}if(t.dataCache==null){x=t.typeNumber;A=t.dataList;E=t.errorCorrectLevel;U=pgt(x,E);if(U==void 0)throw Error("Lk`"+x+"`"+E);m=U.length/3;E=[];for(b=0;b<m;b++){f=U[b*3];B=U[b*3+1];for(var R=U[b*3+2],V=0;V<f;V++)E.push(new LDK(B,
R))}U=new PCe;for(m=0;m<A.length;m++)b=A[m],U.put(b.mode,4),U.put(b.getLength(),U7o(b.mode,x)),b.write(U);for(m=x=0;m<E.length;m++)x+=E[m].dataCount;if(U.length>x*8)throw Error("Fk`"+U.length+"`"+x*8);for(U.length+4<=x*8&&U.put(0,4);U.length%8!=0;)x7l(U,!1);for(;!(U.length>=x*8);){U.put(236,8);if(U.length>=x*8)break;U.put(17,8)}A=x=B=0;m=Array(E.length);b=Array(E.length);for(f=0;f<E.length;f++){V=E[f].dataCount;var Q=E[f].totalCount-V;x=Math.max(x,V);A=Math.max(A,Q);m[f]=Array(V);for(R=0;R<m[f].length;R++)m[f][R]=
255&U.buffer[R+B];B+=V;R=Q;V=new J_([1],0);for(Q=0;Q<R;Q++)V=V.multiply(new J_([1,AS8(Q)],0));R=V;V=(new J_(m[f],R.getLength()-1)).mod(R);b[f]=Array(R.getLength()-1);for(R=0;R<b[f].length;R++)Q=R+V.getLength()-b[f].length,b[f][R]=Q>=0?V.get(Q):0}for(R=U=0;R<E.length;R++)U+=E[R].totalCount;U=Array(U);for(R=B=0;R<x;R++)for(f=0;f<E.length;f++)R<m[f].length&&(U[B++]=m[f][R]);for(R=0;R<A;R++)for(f=0;f<E.length;f++)R<b[f].length&&(U[B++]=b[f][R]);t.dataCache=U}E=t.dataCache;U=-1;x=t.moduleCount-1;A=7;m=
0;for(b=t.moduleCount-1;b>0;b-=2)for(b==6&&b--;;){for(f=0;f<2;f++)t.modules[x][b-f]==null&&(B=!1,m<E.length&&(B=(E[m]>>>A&1)==1),Y0g(p,x,b-f)&&(B=!B),t.modules[x][b-f]=B,A--,A==-1&&(m++,A=7));x+=U;if(x<0||t.moduleCount<=x){x-=U;U=-U;break}}},t4b=function(t,E,p){for(var U=-1;U<=7;U++)if(!(E+U<=-1||t.moduleCount<=E+U))for(var x=-1;x<=7;x++)p+x<=-1||t.moduleCount<=p+x||(t.modules[E+U][p+x]=0<=U&&U<=6&&(x==0||x==6)||0<=x&&x<=6&&(U==0||U==6)||2<=U&&U<=4&&2<=x&&x<=4?!0:!1)},vz8=function(t){for(var E=0,
p=0,U=0;U<8;U++){KD9(t,!0,U);
var x=t;for(var A=x.moduleCount,m=0,b=0;b<A;b++)for(var f=0;f<A;f++){for(var B=0,R=x.isDark(b,f),V=-1;V<=1;V++)if(!(b+V<0||A<=b+V))for(var Q=-1;Q<=1;Q++)f+Q<0||A<=f+Q||(V!=0||Q!=0)&&R==x.isDark(b+V,f+Q)&&B++;B>5&&(m+=3+B-5)}for(b=0;b<A-1;b++)for(f=0;f<A-1;f++)if(B=0,x.isDark(b,f)&&B++,x.isDark(b+1,f)&&B++,x.isDark(b,f+1)&&B++,x.isDark(b+1,f+1)&&B++,B==0||B==4)m+=3;for(b=0;b<A;b++)for(f=0;f<A-6;f++)x.isDark(b,f)&&!x.isDark(b,f+1)&&x.isDark(b,f+2)&&x.isDark(b,f+3)&&x.isDark(b,f+4)&&!x.isDark(b,f+5)&&
x.isDark(b,f+6)&&(m+=40);for(f=0;f<A;f++)for(b=0;b<A-6;b++)x.isDark(b,f)&&!x.isDark(b+1,f)&&x.isDark(b+2,f)&&x.isDark(b+3,f)&&x.isDark(b+4,f)&&!x.isDark(b+5,f)&&x.isDark(b+6,f)&&(m+=40);for(f=B=0;f<A;f++)for(b=0;b<A;b++)x.isDark(b,f)&&B++;x=m+=Math.abs(100*B/A/A-50)/5*10;if(U==0||E>x)E=x,p=U}return p},E95=[[],
[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]],wO=function(t){for(var E=0;t!=0;)E++,t>>>=1;return E},Y0g=function(t,E,p){switch(t){case 0:return(E+p)%2==0;
case 1:return E%2==0;case 2:return p%3==0;case 3:return(E+p)%3==0;case 4:return(Math.floor(E/2)+Math.floor(p/3))%2==0;case 5:return E*p%2+E*p%3==0;case 6:return(E*p%2+E*p%3)%2==0;case 7:return(E*p%3+(E+p)%2)%2==0;default:throw Error("Gk`"+t);}},U7o=function(t,E){if(1<=E&&E<10)switch(t){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Hk`"+t);}else if(E<27)switch(t){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Hk`"+t);}else if(E<41)switch(t){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Hk`"+t);}else throw Error("Ik`"+E);},m7t=function(t){if(t<1)throw Error("Jk`"+t);
return M4o[t]},AS8=function(t){for(;t<0;)t+=255;
for(;t>=256;)t-=255;return Rk[t]},Rk=Array(256),M4o=Array(256),bSo=0;bSo<8;bSo++)Rk[bSo]=1<<bSo;
for(var V4=8;V4<256;V4++)Rk[V4]=Rk[V4-4]^Rk[V4-5]^Rk[V4-6]^Rk[V4-8];for(var iSd=0;iSd<255;iSd++)M4o[Rk[iSd]]=iSd;J_.prototype.get=function(t){return this.num[t]};
J_.prototype.getLength=function(){return this.num.length};
J_.prototype.multiply=function(t){for(var E=Array(this.getLength()+t.getLength()-1),p=0;p<this.getLength();p++)for(var U=0;U<t.getLength();U++)E[p+U]^=AS8(m7t(this.get(p))+m7t(t.get(U)));return new J_(E,0)};
J_.prototype.mod=function(t){if(this.getLength()-t.getLength()<0)return this;for(var E=m7t(this.get(0))-m7t(t.get(0)),p=Array(this.getLength()),U=0;U<this.getLength();U++)p[U]=this.get(U);for(U=0;U<t.getLength();U++)p[U]^=AS8(m7t(t.get(U))+E);return(new J_(p,0)).mod(t)};
var q05=[[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]],pgt=function(t,E){switch(E){case 1:return q05[(t-1)*4];case 0:return q05[(t-1)*4+1];case 3:return q05[(t-1)*4+2];case 2:return q05[(t-1)*4+3]}};
PCe.prototype.get=function(t){return(this.buffer[Math.floor(t/8)]>>>7-t%8&1)==1};
PCe.prototype.put=function(t,E){for(var p=0;p<E;p++)x7l(this,(t>>>E-p-1&1)==1)};
var x7l=function(t,E){var p=Math.floor(t.length/8);t.buffer.length<=p&&t.buffer.push(0);E&&(t.buffer[p]|=128>>>t.length%8);t.length++},Bt=[[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]],WDt=function(){var t=function(E,p){this.JSC$19824__el=E;this.JSC$19824__htOption=p};
t.prototype.draw=function(E){function p(R,V){R=document.createElementNS("http://www.w3.org/2000/svg",R);for(var Q in V)V.hasOwnProperty(Q)&&(Q==="href"?KLK(R,V[Q]):_.VU([_.ks(WPt),_.ks($Fe),_.ks(KPC),_.ks(vAJ),_.ks(yL9),_.ks(SA9),_.ks(cLL)],R,Q,V[Q]));return R}
var U=this.JSC$19824__htOption,x=this.JSC$19824__el,A=E.moduleCount;this.clear();var m=p("svg",{viewBox:"0 0 "+String(A)+" "+String(A),width:"100%",height:"100%",fill:U.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});x.appendChild(m);m.appendChild(p("rect",{fill:U.colorLight,width:"100%",height:"100%"}));m.appendChild(p("rect",{fill:U.colorDark,width:"1",height:"1",id:"template"}));for(var b=0;b<A;b++)for(var f=0;f<A;f++)if(E.isDark(b,f)){var B=p("use",{x:String(b),y:String(f),href:"#template"});
m.appendChild(B)}};
t.prototype.clear=function(){for(;this.JSC$19824__el.hasChildNodes();)this.JSC$19824__el.removeChild(this.JSC$19824__el.lastChild)};
return t}(),ozb=document.documentElement.tagName.toLowerCase()==="svg"?WDt:typeof CanvasRenderingContext2D!="undefined"?function(){var t=function(E,p){this._bIsPainted=!1;
TNt();this.JSC$19824__htOption=p;this._elCanvas=document.createElement("canvas");this._elCanvas.width=p.width;this._elCanvas.height=p.height;E.appendChild(this._elCanvas);this.JSC$19824__el=E;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$19824__el.appendChild(this._elImage);this._bSupportDataURI=null};
t.prototype._onMakeImage=function(){var E=this._elCanvas.toDataURL("image/png");this._elImage.src=E;this._elImage.style.display="block";this._elCanvas.style.display="none"};
t.prototype._safeSetDataURI=function(E,p){var U=this;U._fFail=p;U._fSuccess=E;U._bSupportDataURI===null?(E=_.Gg("IMG"),p=function(){U._bSupportDataURI=!1;U._fFail&&U._fFail.call(U)},E.onabort=p,E.onerror=p,E.onload=function(){U._bSupportDataURI=!0;
U._fSuccess&&U._fSuccess.call(U)},E.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):U._bSupportDataURI===!0&&U._fSuccess?U._fSuccess.call(U):U._bSupportDataURI===!1&&U._fFail&&U._fFail.call(U)};
t.prototype.draw=function(E){var p=this._oContext,U=this.JSC$19824__htOption,x=E.moduleCount,A=U.width/x,m=U.height/x,b=Math.round(A),f=Math.round(m);this._elImage.style.display="none";this.clear();for(var B=0;B<x;B++)for(var R=0;R<x;R++){var V=E.isDark(B,R),Q=R*A,C=B*m;p.strokeStyle=V?U.colorDark:U.colorLight;p.lineWidth=1;p.fillStyle=V?U.colorDark:U.colorLight;p.fillRect(Q,C,A,m);p.strokeRect(Math.floor(Q)+.5,Math.floor(C)+.5,b,f);p.strokeRect(Math.ceil(Q)-.5,Math.ceil(C)-.5,b,f)}this._bIsPainted=
!0};
t.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
t.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
t.prototype.round=function(E){return E?Math.floor(E*1E3)/1E3:E};
return t}():function(){var t=function(E,p){this.JSC$19824__el=E;
this.JSC$19824__htOption=p};
t.prototype.draw=function(E){for(var p=this.JSC$19824__htOption,U=this.JSC$19824__el,x=E.moduleCount,A=Math.floor(p.width/x),m=Math.floor(p.height/x),b=['<table style="border:0;border-collapse:collapse;">'],f=0;f<x;f++){b.push("<tr>");for(var B=0;B<x;B++)b.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+A+"px;height:"+m+"px;background-color:"+(E.isDark(f,B)?p.colorDark:p.colorLight)+';"></td>');b.push("</tr>")}b.push("</table>");E=b.join("");E=_.uWZ(_.I_r,E);_.RR(U,E);
E=U.childNodes[0];x=(p.width-E.offsetWidth)/2;A=(p.height-E.offsetHeight)/2;x>0&&A>0&&(E.style.margin=A+"px "+x+"px")};
t.prototype.clear=function(){this.JSC$19824__el.textContent=""};
return t}();
yfl.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19827__android||this.JSC$19827__android>=3)&&this._oDrawing.makeImage()};
yfl.prototype.clear=function(){this._oDrawing.clear()};
_.Ui.QRCode=yfl;var HSt={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var p3b=function(){};
p3b.prototype.stringify=function(t){return _.Ui.JSON.stringify(t,void 0)};
p3b.prototype.parse=function(t){return _.Ui.JSON.parse(t,void 0)};var f58=function(){_.dV.call(this,"z")};
_.Oa(f58,_.dV);var B8L=function(){_.dV.call(this,"y")};
_.Oa(B8L,_.dV);var wgb=null,RkK=function(){return wgb=wgb||new _.UH},V4L=function(t){_.dV.call(this,"serverreachability",t)};
_.Oa(V4L,_.dV);var QO8=function(t){var E=RkK();E.dispatchEvent(new V4L(E,t))},CuC=function(t,E){_.dV.call(this,"statevent",t);
this.stat=E};
_.Oa(CuC,_.dV);var Q4=function(t){var E=RkK();E.dispatchEvent(new CuC(E,t))},jOd=function(t,E,p,U){_.dV.call(this,"timingevent",t);
this.size=E;this.rtt=p;this.retries=U};
_.Oa(jOd,_.dV);var rS7=function(t,E,p){var U=RkK();U.dispatchEvent(new jOd(U,t,E,p))},knt=function(t,E){if(typeof t!=="function")throw Error("Nk");
return _.Ui.setTimeout(function(){t()},E)};Iw.prototype.disableRedact=function(){this.redactEnabled_=!1};
var d78=function(t,E,p,U,x,A){t.info(function(){if(t.redactEnabled_)if(A){var m="";for(var b=A.split("&"),f=0;f<b.length;f++){var B=b[f].split("=");if(B.length>1){var R=B[0];B=B[1];var V=R.split("_");m=V.length>=2&&V[1]=="type"?m+(R+"="+B+"&"):m+(R+"=redacted&")}}}else m=null;else m=A;return"XMLHTTP REQ ("+U+") [attempt "+x+"]: "+E+"\n"+p+"\n"+m})},uAl=function(t,E,p,U,x,A,m){t.info(function(){return"XMLHTTP RESP ("+U+") [ attempt "+x+"]: "+E+"\n"+p+"\n"+A+" "+m})},Cp=function(t,E,p,U){t.info(function(){return"XMLHTTP TEXT ("+
E+"): "+JSt(t,p)+(U?" "+U:"")})},I5e=function(t,E){t.info(function(){return"TIMEOUT: "+E})};
Iw.prototype.debug=function(){};
Iw.prototype.info=function(){};
Iw.prototype.warning=function(){};
var JSt=function(t,E){if(!t.redactEnabled_)return E;if(!E)return null;try{var p=JSON.parse(E);if(p)for(var U=0;U<p.length;U++)if(Array.isArray(p[U])){var x=p[U];if(!(x.length<2)){var A=x[1];if(Array.isArray(A)&&!(A.length<1)){var m=A[0];if(m!="noop"&&m!="stop"&&m!="close")for(var b=1;b<A.length;b++)A[b]=""}}}return(0,_.id)(p)}catch(f){return t.debug("Exception parsing expected JS array - probably was not JS"),E}};var cft=function(){this.textDecoder=null;this.responseBuffer="";this.responseArrivedForFetch=!1},g9d=function(t,E){switch(t){case 0:return"Non-200 return code ("+E+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},ZS5={},OSC={};
gr.prototype.setTimeout=function(t){this.timeout_=t};
var hke=function(t,E,p){t.JSC$19849_type_=1;t.JSC$19849_baseUri_=_.nJ(E.clone());t.JSC$19849_postData_=p;t.decodeChunks_=!0;Xg7(t,null)},Xg7=function(t,E){t.JSC$19849_requestStartTime_=Date.now();
a5t(t);t.JSC$19849_requestUri_=t.JSC$19849_baseUri_.clone();rI9(t.JSC$19849_requestUri_,"t",t.JSC$19849_retryId_);t.JSC$19849_xmlHttpChunkStart_=0;var p=t.JSC$19849_channel_.JSC$19868_supportsCrossDomainXhrs_;t.fetchResponseState_=new cft;t.JSC$19849_xmlHttp_=ekl(t.JSC$19849_channel_,p?E:null,!t.JSC$19849_postData_);t.JSC$19849_readyStateChangeThrottleMs_>0&&(t.JSC$19849_readyStateChangeThrottle_=new _.F5((0,_.Tg)(t.JSC$19853_xmlHttpHandler_,t,t.JSC$19849_xmlHttp_),t.JSC$19849_readyStateChangeThrottleMs_));
t.JSC$19849_eventHandler_.listen(t.JSC$19849_xmlHttp_,"readystatechange",t.JSC$19853_readyStateChangeHandler_);E=t.JSC$19849_extraHeaders_?_.Kq.clone(t.JSC$19849_extraHeaders_):{};t.JSC$19849_postData_?(t.JSC$19849_verb_||(t.JSC$19849_verb_="POST"),E["Content-Type"]="application/x-www-form-urlencoded",t.JSC$19849_xmlHttp_.send(t.JSC$19849_requestUri_,t.JSC$19849_verb_,t.JSC$19849_postData_,E)):(t.JSC$19849_verb_="GET",t.JSC$19849_xmlHttp_.send(t.JSC$19849_requestUri_,t.JSC$19849_verb_,null,E));QO8(1);
d78(t.JSC$19849_channelDebug_,t.JSC$19849_verb_,t.JSC$19849_requestUri_,t.JSC$19849_rid_,t.JSC$19849_retryId_,t.JSC$19849_postData_)};
gr.prototype.JSC$19853_readyStateChangeHandler_=function(t){t=t.target;var E=this.JSC$19849_readyStateChangeThrottle_;E&&_.H7(t)==3?(this.JSC$19849_channelDebug_.debug("Throttling readystatechange."),E.fire()):this.JSC$19853_xmlHttpHandler_(t)};
gr.prototype.JSC$19853_xmlHttpHandler_=function(t){try{t==this.JSC$19849_xmlHttp_?FI9(this):this.JSC$19849_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(E){this.JSC$19849_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),zkg(this)}finally{}};
var FI9=function(t){var E=_.H7(t.JSC$19849_xmlHttp_),p=t.JSC$19849_xmlHttp_.JSC$10072_lastErrorCode_,U=t.JSC$19849_xmlHttp_.getStatus();if(!(E<3||E==3&&!zkg(t))){t.JSC$19849_cancelled_||E!=4||p==7||(p==8||U<=0?QO8(3):QO8(2));l5g(t);var x=t.JSC$19849_xmlHttp_.getStatus();t.JSC$19849_lastStatusCode_=x;p=GnC(t);zkg(t)||t.JSC$19849_channelDebug_.debug(function(){return"No response text for uri "+t.JSC$19849_requestUri_+" status "+x});
t.JSC$19849_successful_=x==200;uAl(t.JSC$19849_channelDebug_,t.JSC$19849_verb_,t.JSC$19849_requestUri_,t.JSC$19849_rid_,t.JSC$19849_retryId_,E,x);if(t.JSC$19849_successful_){if(t.decodeInitialResponse_&&!t.initialResponseDecoded_)if(U=n9C(t))Cp(t.JSC$19849_channelDebug_,t.JSC$19849_rid_,U,"Initial handshake response via X-HTTP-Initial-Response"),t.initialResponseDecoded_=!0,N8K(t,U);else{t.JSC$19849_successful_=!1;t.JSC$19849_lastError_=3;Q4(12);t.JSC$19849_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
t.JSC$19849_rid_+")");jP(t);D7L(t);return}t.decodeChunks_?sOb(t,E,p):(Cp(t.JSC$19849_channelDebug_,t.JSC$19849_rid_,p,null),N8K(t,p));E==4&&jP(t);t.JSC$19849_successful_&&!t.JSC$19849_cancelled_&&(E==4?LIt(t.JSC$19849_channel_,t):(t.JSC$19849_successful_=!1,a5t(t)))}else Ck8(t.JSC$19849_xmlHttp_),x==400&&p.indexOf("Unknown SID")>0?(t.JSC$19849_lastError_=3,Q4(12),t.JSC$19849_channelDebug_.warning("XMLHTTP Unknown SID ("+t.JSC$19849_rid_+")")):(t.JSC$19849_lastError_=0,Q4(13),t.JSC$19849_channelDebug_.warning("XMLHTTP Bad status "+
x+" ("+t.JSC$19849_rid_+")")),jP(t),D7L(t)}},n9C=function(t){return t.JSC$19849_xmlHttp_&&(t=ghK(t.JSC$19849_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.mJ(t)?t:null},GnC=function(t){if(!Put(t))return t.JSC$19849_xmlHttp_.getResponseText();
var E=t.JSC$19849_xmlHttp_.getResponse();if(E==="")return"";var p="",U=E.length,x=_.H7(t.JSC$19849_xmlHttp_)==4;if(!t.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return jP(t),D7L(t),"";t.fetchResponseState_.textDecoder=new _.Ui.TextDecoder}for(var A=0;A<U;A++)t.fetchResponseState_.responseArrivedForFetch=!0,p+=t.fetchResponseState_.textDecoder.decode(E[A],{stream:!(x&&A==U-1)});E.length=0;t.fetchResponseState_.responseBuffer+=p;t.JSC$19849_xmlHttpChunkStart_=0;return t.fetchResponseState_.responseBuffer},
zkg=function(t){return t.JSC$19849_xmlHttp_?t.fetchResponseState_.responseArrivedForFetch?!0:!(!t.JSC$19849_xmlHttp_.getResponseText()&&!t.JSC$19849_xmlHttp_.getResponse()):!1},Put=function(t){return t.JSC$19849_xmlHttp_?t.JSC$19849_verb_=="GET"&&t.JSC$19849_type_!=2&&t.JSC$19849_channel_.usesFetchStreams_:!1},sOb=function(t,E,p){for(var U=!0,x;!t.JSC$19849_cancelled_&&t.JSC$19849_xmlHttpChunkStart_<p.length;)if(x=T87(t,p),x==OSC){E==4&&(t.JSC$19849_lastError_=4,Q4(14),U=!1);
Cp(t.JSC$19849_channelDebug_,t.JSC$19849_rid_,null,"[Incomplete Response]");break}else if(x==ZS5){t.JSC$19849_lastError_=4;Q4(15);Cp(t.JSC$19849_channelDebug_,t.JSC$19849_rid_,p,"[Invalid Chunk]");U=!1;break}else Cp(t.JSC$19849_channelDebug_,t.JSC$19849_rid_,x,null),N8K(t,x);Put(t)&&t.JSC$19849_xmlHttpChunkStart_!=0&&(t.fetchResponseState_.responseBuffer=t.fetchResponseState_.responseBuffer.slice(t.JSC$19849_xmlHttpChunkStart_),t.JSC$19849_xmlHttpChunkStart_=0);E!=4||p.length!=0||t.fetchResponseState_.responseArrivedForFetch||
(t.JSC$19849_lastError_=1,Q4(16),U=!1);t.JSC$19849_successful_=t.JSC$19849_successful_&&U;U?p.length>0&&!t.firstByteReceived_&&(t.firstByteReceived_=!0,E=t.JSC$19849_channel_,E.JSC$19868_backChannelRequest_==t&&E.detectBufferingProxy_&&!E.bpDetectionDone_&&(E.JSC$19868_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+p.length),o9J(E),E.bpDetectionDone_=!0,Q4(11))):(Cp(t.JSC$19849_channelDebug_,t.JSC$19849_rid_,p,"[Invalid Chunked Response]"),jP(t),D7L(t))},T87=function(t,
E){var p=t.JSC$19849_xmlHttpChunkStart_,U=E.indexOf("\n",p);
if(U==-1)return OSC;p=Number(E.substring(p,U));if(isNaN(p))return ZS5;U+=1;if(U+p>E.length)return OSC;E=E.slice(U,U+p);t.JSC$19849_xmlHttpChunkStart_=U+p;return E};
gr.prototype.cancel=function(){this.JSC$19849_cancelled_=!0;jP(this)};
var a5t=function(t){t.JSC$19849_watchDogTimeoutTime_=Date.now()+t.timeout_;WIb(t,t.timeout_)},WIb=function(t,E){if(t.JSC$19849_watchDogTimerId_!=null)throw Error("Ok");
t.JSC$19849_watchDogTimerId_=knt((0,_.Tg)(t.JSC$19853_onWatchDogTimeout_,t),E)},l5g=function(t){t.JSC$19849_watchDogTimerId_&&(_.Ui.clearTimeout(t.JSC$19849_watchDogTimerId_),t.JSC$19849_watchDogTimerId_=null)};
gr.prototype.JSC$19853_onWatchDogTimeout_=function(){this.JSC$19849_watchDogTimerId_=null;var t=Date.now();t-this.JSC$19849_watchDogTimeoutTime_>=0?(I5e(this.JSC$19849_channelDebug_,this.JSC$19849_requestUri_),this.JSC$19849_type_!=2&&(QO8(3),Q4(17)),jP(this),this.JSC$19849_lastError_=2,D7L(this)):(this.JSC$19849_channelDebug_.warning("WatchDog timer called too early"),WIb(this,this.JSC$19849_watchDogTimeoutTime_-t))};
var D7L=function(t){t.JSC$19849_channel_.state_==0||t.JSC$19849_cancelled_||LIt(t.JSC$19849_channel_,t)},jP=function(t){l5g(t);
_.wi(t.JSC$19849_readyStateChangeThrottle_);t.JSC$19849_readyStateChangeThrottle_=null;t.JSC$19849_eventHandler_.removeAll();if(t.JSC$19849_xmlHttp_){var E=t.JSC$19849_xmlHttp_;t.JSC$19849_xmlHttp_=null;E.abort();E.dispose()}};
gr.prototype.getLastError=function(){return this.JSC$19849_lastError_};
var N8K=function(t,E){try{var p=t.JSC$19849_channel_;if(p.state_!=0&&(p.JSC$19868_backChannelRequest_==t||$7L(p.forwardChannelRequestPool_,t)))if(!t.initialResponseDecoded_&&$7L(p.forwardChannelRequestPool_,t)&&p.state_==3){try{var U=p.wireCodec_.JSC$19863_parser_.parse(E)}catch(b){U=null}if(Array.isArray(U)&&U.length==3){E=U;if(E[0]==0)a:if(p.JSC$19868_channelDebug_.debug("Server claims our backchannel is missing."),p.JSC$19868_backChannelTimerId_)p.JSC$19868_channelDebug_.debug("But we are currently starting the request.");
else{if(p.JSC$19868_backChannelRequest_)if(p.JSC$19868_backChannelRequest_.JSC$19849_requestStartTime_+3E3<t.JSC$19849_requestStartTime_)KI9(p),v9e(p);else break a;else p.JSC$19868_channelDebug_.warning("We do not have a BackChannel established");yS7(p);Q4(18)}else{p.JSC$19868_lastPostResponseArrayId_=E[1];var x=p.JSC$19868_lastPostResponseArrayId_-p.JSC$19868_lastArrayId_;if(0<x){var A=E[2];p.JSC$19868_channelDebug_.debug(A+" bytes (in "+x+" arrays) are outstanding on the BackChannel");A<37500&&
p.enableStreaming_&&p.JSC$19868_backChannelRetryCount_==0&&!p.JSC$19868_deadBackChannelTimerId_&&(p.JSC$19868_deadBackChannelTimerId_=knt((0,_.Tg)(p.JSC$19870_onBackChannelDead_,p),6E3))}}if(S0C(p.forwardChannelRequestPool_)<=1&&p.forwardChannelFlushedCallback_){try{p.forwardChannelFlushedCallback_()}catch(b){}p.forwardChannelFlushedCallback_=void 0}}else p.JSC$19868_channelDebug_.debug("Bad POST response data returned"),rO(p,11)}else if((t.initialResponseDecoded_||p.JSC$19868_backChannelRequest_==
t)&&KI9(p),!_.mJ(E)){var m=p.wireCodec_.JSC$19863_parser_.parse(E);p.onInput_(m,t)}QO8(4)}catch(b){}};var cSe=function(t,E){this.JSC$19856_mapId=t;this.map=E;this.context=null};var A2t=function(t){this.maxPoolSizeConfigured_=t||10;_.Ui.PerformanceNavigationTiming?(t=_.Ui.performance.getEntriesByType("navigation"),t=t.length>0&&(t[0].nextHopProtocol=="hq"||t[0].nextHopProtocol=="h2")):t=!!(_.Ui.chrome&&_.Ui.chrome.loadTimes&&_.Ui.chrome.loadTimes()&&_.Ui.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19859_maxSize_=t?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19859_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19859_request_=null;this.JSC$19859_pendingMessages_=
[]},tZb=function(t){return t.JSC$19859_request_?!0:t.requestPool_?t.requestPool_.size>=t.JSC$19859_maxSize_:!1},S0C=function(t){return t.JSC$19859_request_?1:t.requestPool_?t.requestPool_.size:0},$7L=function(t,E){return t.JSC$19859_request_?t.JSC$19859_request_==E:t.requestPool_?t.requestPool_.has(E):!1},EtJ=function(t,E){t.requestPool_?t.requestPool_.add(E):t.JSC$19859_request_=E},pdC=function(t,E){t.JSC$19859_request_&&t.JSC$19859_request_==E?t.JSC$19859_request_=null:t.requestPool_&&t.requestPool_.has(E)&&
t.requestPool_.delete(E)};
A2t.prototype.cancel=function(){this.JSC$19859_pendingMessages_=UY7(this);if(this.JSC$19859_request_)this.JSC$19859_request_.cancel(),this.JSC$19859_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var t=_.M(this.requestPool_.values()),E=t.next();!E.done;E=t.next())E.value.cancel();this.requestPool_.clear()}};
var UY7=function(t){if(t.JSC$19859_request_!=null)return t.JSC$19859_pendingMessages_.concat(t.JSC$19859_request_.JSC$19849_pendingMessages_);if(t.requestPool_!=null&&t.requestPool_.size!==0){var E=t.JSC$19859_pendingMessages_;t=_.M(t.requestPool_.values());for(var p=t.next();!p.done;p=t.next())E=E.concat(p.value.JSC$19849_pendingMessages_);return E}return _.Dl(t.JSC$19859_pendingMessages_)},xY5=function(t,E){t.JSC$19859_pendingMessages_=t.JSC$19859_pendingMessages_.concat(E)};O3.prototype.JSC$19870_channelVersion_=8;O3.prototype.state_=1;
O3.prototype.connect=function(t,E,p,U){this.JSC$19868_channelDebug_.debug("connect()");Q4(0);this.JSC$19868_path_=t;this.JSC$19868_extraParams_=E||{};p&&U!==void 0&&(this.JSC$19868_extraParams_.OSID=p,this.JSC$19868_extraParams_.OAID=U);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19868_channelDebug_.debug("connectChannel_()");t=A48(this,null,this.JSC$19868_path_);this.JSC$19868_channelDebug_.debug("GetForwardChannelUri: "+t);this.JSC$19868_forwardChannelUri_=t;Y7L(this)};
O3.prototype.disconnect=function(){this.JSC$19868_channelDebug_.debug("disconnect()");MZ9(this);if(this.state_==3){var t=this.JSC$19868_nextRid_++,E=this.JSC$19868_forwardChannelUri_.clone();_.jK(E,"SID",this.sid_);_.jK(E,"RID",t);_.jK(E,"TYPE","terminate");mYC(this,E);t=new gr(this,this.JSC$19868_channelDebug_,this.sid_,t);t.JSC$19849_type_=2;t.JSC$19849_baseUri_=_.nJ(E.clone());E=!1;if(_.Ui.navigator&&_.Ui.navigator.sendBeacon)try{E=_.Ui.navigator.sendBeacon(t.JSC$19849_baseUri_.toString(),"")}catch(p){}!E&&
_.Ui.Image&&((new Image).src=t.JSC$19849_baseUri_,E=!0);E||(t.JSC$19849_xmlHttp_=ekl(t.JSC$19849_channel_,null),t.JSC$19849_xmlHttp_.send(t.JSC$19849_baseUri_));t.JSC$19849_requestStartTime_=Date.now();a5t(t)}bHd(this)};
var v9e=function(t){t.JSC$19868_backChannelRequest_&&(o9J(t),t.JSC$19868_backChannelRequest_.cancel(),t.JSC$19868_backChannelRequest_=null)},MZ9=function(t){v9e(t);
t.JSC$19868_backChannelTimerId_&&(_.Ui.clearTimeout(t.JSC$19868_backChannelTimerId_),t.JSC$19868_backChannelTimerId_=null);KI9(t);t.forwardChannelRequestPool_.cancel();t.JSC$19868_forwardChannelTimerId_&&(typeof t.JSC$19868_forwardChannelTimerId_==="number"&&_.Ui.clearTimeout(t.JSC$19868_forwardChannelTimerId_),t.JSC$19868_forwardChannelTimerId_=null)};
O3.prototype.getState=function(){return this.state_};
var Y7L=function(t){tZb(t.forwardChannelRequestPool_)||t.JSC$19868_forwardChannelTimerId_||(t.JSC$19868_forwardChannelTimerId_=!0,_.AU(t.JSC$19870_onStartForwardChannelTimer_,t),t.JSC$19868_forwardChannelRetryCount_=0)},q75=function(t,E){if(S0C(t.forwardChannelRequestPool_)>=t.forwardChannelRequestPool_.JSC$19859_maxSize_-(t.JSC$19868_forwardChannelTimerId_?1:0))return!1;
if(t.JSC$19868_forwardChannelTimerId_)return t.JSC$19868_channelDebug_.debug("Use the retry request that is already scheduled."),t.JSC$19868_outgoingMaps_=E.JSC$19849_pendingMessages_.concat(t.JSC$19868_outgoingMaps_),!0;if(t.state_==1||t.state_==2||t.JSC$19868_forwardChannelRetryCount_>=(t.JSC$19868_failFast_?0:t.JSC$19868_forwardChannelMaxRetries_))return!1;t.JSC$19868_channelDebug_.debug("Going to retry POST");t.JSC$19868_forwardChannelTimerId_=knt((0,_.Tg)(t.JSC$19870_onStartForwardChannelTimer_,
t,E),iHd(t,t.JSC$19868_forwardChannelRetryCount_));t.JSC$19868_forwardChannelRetryCount_++;return!0};
O3.prototype.JSC$19870_onStartForwardChannelTimer_=function(t){if(this.JSC$19868_forwardChannelTimerId_)if(this.JSC$19868_forwardChannelTimerId_=null,this.JSC$19868_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!t){this.JSC$19868_channelDebug_.debug("open_()");this.JSC$19868_nextRid_=Math.floor(Math.random()*1E5);t=this.JSC$19868_nextRid_++;var E=new gr(this,this.JSC$19868_channelDebug_,"",t),p=this.JSC$19868_extraHeaders_;this.initHeaders_&&(p?(p=_.Kq.clone(p),_.Kq.extend(p,this.initHeaders_)):
p=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(E.JSC$19849_extraHeaders_=p,p=null);var U;if(this.fastHandshake_)a:{for(var x=U=0;x<this.JSC$19868_outgoingMaps_.length;x++){b:{var A=this.JSC$19868_outgoingMaps_[x];if("__data__"in A.map&&(A=A.map.__data__,typeof A==="string")){A=A.length;break b}A=void 0}if(A===void 0)break;U+=A;if(U>4096){U=x;break a}if(U===4096||x===this.JSC$19868_outgoingMaps_.length-1){U=x+1;break a}}U=1E3}else U=1E3;U=HH5(this,E,U);
x=this.JSC$19868_forwardChannelUri_.clone();_.jK(x,"RID",t);_.jK(x,"CVER",22);this.httpSessionIdParam_&&_.jK(x,"X-HTTP-Session-Id",this.httpSessionIdParam_);mYC(this,x);p&&(this.encodeInitMessageHeaders_?U="headers="+_.VE(RWt(p))+"&"+U:this.httpHeadersOverwriteParam_&&VEe(x,this.httpHeadersOverwriteParam_,p));EtJ(this.forwardChannelRequestPool_,E);this.blockingHandshake_&&_.jK(x,"TYPE","init");this.fastHandshake_?(_.jK(x,"$req",U),_.jK(x,"SID","null"),E.decodeInitialResponse_=!0,hke(E,x,null)):hke(E,
x,U);this.state_=2}}else this.state_==3&&(t?fFL(this,t):this.JSC$19868_outgoingMaps_.length==0?this.JSC$19868_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):tZb(this.forwardChannelRequestPool_)||(fFL(this),this.JSC$19868_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var fFL=function(t,E){var p;E?p=E.JSC$19849_rid_:p=t.JSC$19868_nextRid_++;var U=t.JSC$19868_forwardChannelUri_.clone();_.jK(U,"SID",t.sid_);_.jK(U,"RID",p);_.jK(U,"AID",t.JSC$19868_lastArrayId_);mYC(t,U);t.httpHeadersOverwriteParam_&&t.JSC$19868_extraHeaders_&&VEe(U,t.httpHeadersOverwriteParam_,t.JSC$19868_extraHeaders_);p=new gr(t,t.JSC$19868_channelDebug_,t.sid_,p,t.JSC$19868_forwardChannelRetryCount_+1);t.httpHeadersOverwriteParam_===null&&(p.JSC$19849_extraHeaders_=t.JSC$19868_extraHeaders_);
E&&(t.JSC$19868_outgoingMaps_=E.JSC$19849_pendingMessages_.concat(t.JSC$19868_outgoingMaps_));E=HH5(t,p,1E3);p.setTimeout(Math.round(t.JSC$19868_forwardChannelRequestTimeoutMs_*.5)+Math.round(t.JSC$19868_forwardChannelRequestTimeoutMs_*.5*Math.random()));EtJ(t.forwardChannelRequestPool_,p);hke(p,U,E)},mYC=function(t,E){t.JSC$19868_extraParams_&&_.Kq.forEach(t.JSC$19868_extraParams_,function(p,U){_.jK(E,U,p)});
t.handler_&&_.Kq.forEach({},function(p,U){_.jK(E,U,p)})},HH5=function(t,E,p){p=Math.min(t.JSC$19868_outgoingMaps_.length,p);
var U=t.handler_?(0,_.Tg)(t.handler_.JSC$19874_badMapError,t.handler_,t):null;a:{for(var x=t.JSC$19868_outgoingMaps_,A=-1;;){var m=["count="+p];A==-1?p>0?(A=x[0].JSC$19856_mapId,m.push("ofs="+A)):A=0:m.push("ofs="+A);for(var b=!0,f=0;f<p;f++){var B=x[f].JSC$19856_mapId,R=x[f].map;B-=A;if(B<0)A=Math.max(0,x[f].JSC$19856_mapId-100),b=!1;else try{B="req"+B+"_"||"";try{var V=R instanceof Map?R:Object.entries(R);for(var Q=_.M(V),C=Q.next();!C.done;C=Q.next()){var d=_.M(C.value),I=d.next().value,O=d.next().value,
a=O;_.o0(O)&&(a=(0,_.id)(O));m.push(B+I+"="+encodeURIComponent(a))}}catch(F){throw m.push(B+"type="+encodeURIComponent("_badmap")),F;}}catch(F){U&&U(R)}}if(b){V=m.join("&");break a}}V=void 0}t=t.JSC$19868_outgoingMaps_.splice(0,p);E.JSC$19849_pendingMessages_=t;return V},Bwt=function(t){t.JSC$19868_backChannelRequest_||t.JSC$19868_backChannelTimerId_||(t.JSC$19868_backChannelAttemptId_=1,_.AU(t.JSC$19870_onStartBackChannelTimer_,t),t.JSC$19868_backChannelRetryCount_=0)},yS7=function(t){if(t.JSC$19868_backChannelRequest_||
t.JSC$19868_backChannelTimerId_||t.JSC$19868_backChannelRetryCount_>=3)return!1;
t.JSC$19868_channelDebug_.debug("Going to retry GET");t.JSC$19868_backChannelAttemptId_++;t.JSC$19868_backChannelTimerId_=knt((0,_.Tg)(t.JSC$19870_onStartBackChannelTimer_,t),iHd(t,t.JSC$19868_backChannelRetryCount_));t.JSC$19868_backChannelRetryCount_++;return!0};
O3.prototype.JSC$19870_onStartBackChannelTimer_=function(){this.JSC$19868_backChannelTimerId_=null;wd9(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19868_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19868_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19868_backChannelRequest_+" "+this.handshakeRttMs_);else{var t=4*this.handshakeRttMs_;this.JSC$19868_channelDebug_.info("BP detection timer enabled: "+t);this.bpDetectionTimerId_=knt((0,_.Tg)(this.onBpDetectionTimer_,
this),t)}};
O3.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19868_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19868_backChannelRequest_.JSC$19849_xmlHttp_!=null){var t=this.JSC$19868_backChannelRequest_.JSC$19849_xmlHttp_.getResponseText();t&&this.JSC$19868_channelDebug_.warning("Timer should have been cancelled : "+t)}this.JSC$19868_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;Q4(10);v9e(this);wd9(this)}else this.JSC$19868_channelDebug_.warning("Invalid operation.")};
var o9J=function(t){t.bpDetectionTimerId_!=null&&(t.JSC$19868_channelDebug_.debug("Cancel the BP detection timer."),_.Ui.clearTimeout(t.bpDetectionTimerId_),t.bpDetectionTimerId_=null)},wd9=function(t){t.JSC$19868_channelDebug_.debug("Creating new HttpRequest");
t.JSC$19868_backChannelRequest_=new gr(t,t.JSC$19868_channelDebug_,t.sid_,"rpc",t.JSC$19868_backChannelAttemptId_);t.httpHeadersOverwriteParam_===null&&(t.JSC$19868_backChannelRequest_.JSC$19849_extraHeaders_=t.JSC$19868_extraHeaders_);t.JSC$19868_backChannelRequest_.JSC$19849_readyStateChangeThrottleMs_=0;var E=t.JSC$19868_backChannelUri_.clone();_.jK(E,"RID","rpc");_.jK(E,"SID",t.sid_);_.jK(E,"AID",t.JSC$19868_lastArrayId_);_.jK(E,"CI",t.enableStreaming_?"0":"1");!t.enableStreaming_&&t.longPollingTimeout_&&
_.jK(E,"TO",t.longPollingTimeout_);_.jK(E,"TYPE","xmlhttp");mYC(t,E);t.httpHeadersOverwriteParam_&&t.JSC$19868_extraHeaders_&&VEe(E,t.httpHeadersOverwriteParam_,t.JSC$19868_extraHeaders_);t.backChannelRequestTimeoutMs_&&t.JSC$19868_backChannelRequest_.setTimeout(t.backChannelRequestTimeoutMs_);var p=t.JSC$19868_backChannelRequest_,U=t.JSC$19868_hostPrefix_;p.JSC$19849_type_=1;p.JSC$19849_baseUri_=_.nJ(E.clone());p.JSC$19849_postData_=null;p.decodeChunks_=!0;Xg7(p,U);t.JSC$19868_channelDebug_.debug("New Request created")};
O3.prototype.JSC$19870_onBackChannelDead_=function(){this.JSC$19868_deadBackChannelTimerId_!=null&&(this.JSC$19868_deadBackChannelTimerId_=null,v9e(this),yS7(this),Q4(19))};
var KI9=function(t){t.JSC$19868_deadBackChannelTimerId_!=null&&(_.Ui.clearTimeout(t.JSC$19868_deadBackChannelTimerId_),t.JSC$19868_deadBackChannelTimerId_=null)},LIt=function(t,E){t.JSC$19868_channelDebug_.debug("Request complete");
var p=null;if(t.JSC$19868_backChannelRequest_==E){KI9(t);o9J(t);t.JSC$19868_backChannelRequest_=null;var U=2}else if($7L(t.forwardChannelRequestPool_,E))p=E.JSC$19849_pendingMessages_,pdC(t.forwardChannelRequestPool_,E),U=1;else return;if(t.state_!=0)if(E.JSC$19849_successful_)U==1?(rS7(E.JSC$19849_postData_?E.JSC$19849_postData_.length:0,Date.now()-E.JSC$19849_requestStartTime_,t.JSC$19868_forwardChannelRetryCount_),Y7L(t)):Bwt(t);else{var x=E.JSC$19849_lastStatusCode_,A=E.getLastError();if(A==3||
A==0&&x>0)t.JSC$19868_channelDebug_.debug("Not retrying due to error type"),x>200&&(t.errorResponseStatusCode_=E.JSC$19849_lastStatusCode_);else{t.JSC$19868_channelDebug_.debug(function(){return"Maybe retrying, last error: "+g9d(A,t.errorResponseStatusCode_)});
if(U==1&&q75(t,E)||U==2&&yS7(t))return;t.JSC$19868_channelDebug_.debug("Exceeded max number of retries")}p&&p.length>0&&xY5(t.forwardChannelRequestPool_,p);t.JSC$19868_channelDebug_.debug("Error: HTTP request failed");switch(A){case 1:rO(t,5);break;case 4:rO(t,10);break;case 3:rO(t,6);break;default:rO(t,2)}}},iHd=function(t,E){var p=t.JSC$19868_baseRetryDelayMs_+Math.floor(Math.random()*t.JSC$19868_retryDelaySeedMs_);
t.isActive()||(t.JSC$19868_channelDebug_.debug("Inactive channel"),p*=2);return p*E};
O3.prototype.onInput_=function(t,E){for(var p=0;p<t.length;p++){var U=t[p],x=U[0];if(x<=this.JSC$19868_lastArrayId_)this.JSC$19868_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+x+", lastArrayId: "+this.JSC$19868_lastArrayId_);else if(x>this.JSC$19868_lastArrayId_+1&&this.JSC$19868_lastArrayId_>-1&&this.JSC$19868_channelDebug_.warning("Received non-consecutive message with arrayId: "+x+", lastArrayId: "+this.JSC$19868_lastArrayId_),this.JSC$19868_lastArrayId_=x,
U=U[1],this.state_==2)if(U[0]=="c"){this.sid_=U[1];this.JSC$19868_hostPrefix_=U[2];x=U[3];x!=null&&(this.JSC$19870_channelVersion_=x,this.JSC$19868_channelDebug_.info("VER="+this.JSC$19870_channelVersion_));x=U[4];x!=null&&(this.serverVersion_=x,this.JSC$19868_channelDebug_.info("SVER="+this.serverVersion_));U=U[5];U!=null&&typeof U==="number"&&U>0&&(this.backChannelRequestTimeoutMs_=U*=1.5,this.JSC$19868_channelDebug_.info("backChannelRequestTimeoutMs_="+U));if(U=E.JSC$19849_xmlHttp_){var A=ghK(U,
"X-Client-Wire-Protocol");A&&(x=this.forwardChannelRequestPool_,!x.requestPool_&&(_.iY(A,"spdy")||_.iY(A,"quic")||_.iY(A,"h2"))&&(x.JSC$19859_maxSize_=x.maxPoolSizeConfigured_,x.requestPool_=new Set,x.JSC$19859_request_&&(EtJ(x,x.JSC$19859_request_),x.JSC$19859_request_=null)));this.httpSessionIdParam_&&((U=ghK(U,"X-HTTP-Session-Id"))?(this.httpSessionId_=U,_.jK(this.JSC$19868_forwardChannelUri_,this.httpSessionIdParam_,U)):this.JSC$19868_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$19874_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-E.JSC$19849_requestStartTime_,this.JSC$19868_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));U=E;x=A48(this,this.JSC$19868_supportsCrossDomainXhrs_?this.JSC$19868_hostPrefix_:null,this.JSC$19868_path_);this.JSC$19868_channelDebug_.debug("GetBackChannelUri: "+x);this.JSC$19868_backChannelUri_=x;U.initialResponseDecoded_?(this.JSC$19868_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
pdC(this.forwardChannelRequestPool_,U),x=U,(A=this.backChannelRequestTimeoutMs_)&&x.setTimeout(A),x.JSC$19849_watchDogTimerId_&&(l5g(x),a5t(x)),this.JSC$19868_backChannelRequest_=U):Bwt(this);this.JSC$19868_outgoingMaps_.length>0&&Y7L(this)}else U[0]!="stop"&&U[0]!="close"||rO(this,7);else this.state_==3&&(U[0]=="stop"||U[0]=="close"?U[0]=="stop"?rO(this,7):this.disconnect():U[0]!="noop"&&this.handler_&&this.handler_.JSC$19874_channelHandleArray(U),this.JSC$19868_backChannelRetryCount_=0)}};
var rO=function(t,E){t.JSC$19868_channelDebug_.info("Error code "+E);if(E==2){var p=(0,_.Tg)(t.testNetworkCallback_,t),U=t.networkTestUrl_,x=!U;U=new _.fF(U||"//www.google.com/images/cleardot.gif");_.Ui.location&&_.Ui.location.protocol=="http"||_.OH(U,"https");_.nJ(U);x?tU7(U.toString(),p):ERo(U.toString(),p)}else Q4(2);t.onError_(E)};
O3.prototype.testNetworkCallback_=function(t){t?(this.JSC$19868_channelDebug_.info("Successfully pinged google.com"),Q4(2)):(this.JSC$19868_channelDebug_.info("Failed to ping google.com"),Q4(1))};
O3.prototype.onError_=function(t){this.JSC$19868_channelDebug_.debug("HttpChannel: error - "+t);this.state_=0;this.handler_&&this.handler_.JSC$19874_channelError(t);bHd(this);MZ9(this)};
var bHd=function(t){t.state_=0;t.nonAckedMapsAtChannelClose_=[];if(t.handler_){var E=UY7(t.forwardChannelRequestPool_);if(E.length!=0||t.JSC$19868_outgoingMaps_.length!=0)t.JSC$19868_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+E.length+", outgoing: "+t.JSC$19868_outgoingMaps_.length}),_.P8(t.nonAckedMapsAtChannelClose_,E),_.P8(t.nonAckedMapsAtChannelClose_,t.JSC$19868_outgoingMaps_),t.forwardChannelRequestPool_.JSC$19859_pendingMessages_.length=0,_.Dl(t.JSC$19868_outgoingMaps_),
t.JSC$19868_outgoingMaps_.length=0;
t.handler_.JSC$19874_channelClosed()}},RO9=function(t){if(t.state_==0)return t.nonAckedMapsAtChannelClose_;
var E=[];_.P8(E,UY7(t.forwardChannelRequestPool_));_.P8(E,t.JSC$19868_outgoingMaps_);return E},A48=function(t,E,p){var U=_.QC(p);
U.JSC$10308_domain_!=""?(E&&_.XB(U,E+"."+U.JSC$10308_domain_),_.hU(U,U.JSC$10308_port_)):(U=_.Ui.location,U=sre(U.protocol,E?E+"."+U.hostname:U.hostname,+U.port,p));E=t.httpSessionIdParam_;p=t.httpSessionId_;E&&p&&_.jK(U,E,p);_.jK(U,"VER",t.JSC$19870_channelVersion_);mYC(t,U);return U},ekl=function(t,E,p){if(E&&!t.JSC$19868_supportsCrossDomainXhrs_)throw Error("Pk");
E=t.usesFetchStreams_&&!t.JSC$19868_xmlHttpFactory_?new _.qx(new HQC({streamBinaryChunks:p})):new _.qx(t.JSC$19868_xmlHttpFactory_);E.JSC$10072_withCredentials_=t.JSC$19868_supportsCrossDomainXhrs_;return E};
O3.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var VZd=function(){};
_.Y=VZd.prototype;_.Y.JSC$19874_channelOpened=function(){};
_.Y.JSC$19874_channelHandleArray=function(){};
_.Y.JSC$19874_channelError=function(){};
_.Y.JSC$19874_channelClosed=function(){};
_.Y.isActive=function(){return!0};
_.Y.JSC$19874_badMapError=function(){};var dO=function(t,E){_.UH.call(this);this.JSC$19877_channel_=new O3(E);this.JSC$19877_url_=t;this.messageUrlParams_=E&&E.messageUrlParams||null;t=E&&E.messageHeaders||null;E&&E.clientProtocolHeaderRequired&&(t?_.Kq.set(t,"X-Client-Protocol","webchannel"):t=_.Kq.create("X-Client-Protocol","webchannel"));this.JSC$19877_channel_.JSC$19868_extraHeaders_=t;t=E&&E.initMessageHeaders||null;E&&E.messageContentType&&(t?_.Kq.set(t,"X-WebChannel-Content-Type",E.messageContentType):t=_.Kq.create("X-WebChannel-Content-Type",
E.messageContentType));E&&E.clientProfile&&(t?_.Kq.set(t,"X-WebChannel-Client-Profile",E.clientProfile):t=_.Kq.create("X-WebChannel-Client-Profile",E.clientProfile));this.JSC$19877_channel_.initHeaders_=t;(t=E&&E.httpHeadersOverwriteParam)&&!_.mJ(t)&&(this.JSC$19877_channel_.httpHeadersOverwriteParam_=t);this.supportsCrossDomainXhr_=E&&E.supportsCrossDomainXhr||!1;this.sendRawJson_=E&&E.sendRawJson||!1;(E=E&&E.httpSessionIdParam)&&!_.mJ(E)&&(this.JSC$19877_channel_.httpSessionIdParam_=E,_.Kq.containsKey(this.messageUrlParams_,
E)&&_.Kq.remove(this.messageUrlParams_,E));this.channelHandler_=new k0(this)};
_.Oa(dO,_.UH);dO.prototype.open=function(){this.JSC$19877_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19877_channel_.JSC$19868_supportsCrossDomainXhrs_=!0);this.JSC$19877_channel_.connect(this.JSC$19877_url_,this.messageUrlParams_||void 0)};
dO.prototype.close=function(){this.JSC$19877_channel_.disconnect()};
dO.prototype.send=function(t){var E=this.JSC$19877_channel_;if(typeof t==="string"){var p={};p.__data__=t;t=p}else this.sendRawJson_&&(p={},p.__data__=(0,_.id)(t),t=p);E.JSC$19868_outgoingMaps_.push(new cSe(E.JSC$19868_nextMapId_++,t));E.state_==3&&Y7L(E)};
dO.prototype.disposeInternal=function(){this.JSC$19877_channel_.handler_=null;delete this.channelHandler_;this.JSC$19877_channel_.disconnect();delete this.JSC$19877_channel_;dO.superClass_.disposeInternal.call(this)};
var QUK=function(t){f58.call(this);t.__headers__&&(this.headers=t.__headers__,this.statusCode=t.__status__,delete t.__headers__,delete t.__status__);var E=t.__sm__;E?this.data=(this.metadataKey=_.Kq.getAnyKey(E))?_.Kq.get(E,this.metadataKey):E:this.data=t};
_.Oa(QUK,f58);var CIK=function(t){B8L.call(this);this.status=1;this.errorCode=t};
_.Oa(CIK,B8L);var k0=function(t){this.JSC$19884_channel_=t};
_.Oa(k0,VZd);k0.prototype.JSC$19874_channelOpened=function(){this.JSC$19884_channel_.dispatchEvent("w")};
k0.prototype.JSC$19874_channelHandleArray=function(t){this.JSC$19884_channel_.dispatchEvent(new QUK(t))};
k0.prototype.JSC$19874_channelError=function(t){this.JSC$19884_channel_.dispatchEvent(new CIK(t))};
k0.prototype.JSC$19874_channelClosed=function(){this.JSC$19884_channel_.dispatchEvent("x")};
var jUg=function(t,E){this.transportChannel_=t;this.JSC$19887_channel_=E},r4e=function(t){return RO9(t.JSC$19887_channel_).map(function(E){var p=t.transportChannel_;
E=E.map;"__data__"in E?(E=E.__data__,p=p.sendRawJson_?(0,_.qB3)(E):E):p=E;return p})};
jUg.prototype.commit=function(t){this.JSC$19887_channel_.forwardChannelFlushedCallback_=t};var kW9=function(t,E,p){for(var U=0;U<t.getSize().height;U++)for(var x=0;x<t.getSize().width;x++)E.call(p,t.array_[U][x],U,x,t)},dYb=function(t,E){var p=new Xl(t.getSize());
kW9(t,function(U,x,A){p.array_[x][A]=E.call(void 0,U,x,A,t)});
return p},MUL=function(t,E){for(var p=[],U=0;U<t;U++){p[U]=[];
for(var x=0;x<E;x++)p[U][x]=0}return p};
Xl.prototype.add=function(t){if(!e_C(this.size_,t.getSize()))throw Error("Sk");return dYb(this,function(E,p,U){return E+t.array_[p][U]})};
Xl.prototype.equals=function(t,E){if(this.size_.width!=t.size_.width||this.size_.height!=t.size_.height)return!1;E=E||0;for(var p=0;p<this.size_.height;p++)for(var U=0;U<this.size_.width;U++)if(!aJC(this.array_[p][U],t.array_[p][U],E))return!1;return!0};
Xl.prototype.getSize=function(){return this.size_};
var uq=function(t,E,p){return E>=0&&E<t.size_.height&&p>=0&&p<t.size_.width?t.array_[E][p]:null};
Xl.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var uh7=function(t,E,p,U){if(!(E>=0&&E<t.size_.height&&p>=0&&p<t.size_.width))throw Error("Tk`"+E+"`"+p+"`"+t.size_.height+"`"+t.size_.width);t.array_[E][p]=U};
Xl.prototype.multiply=function(t){if(t instanceof Xl){if(this.size_.width!=t.getSize().height)throw Error("Uk");return J4t(this,t)}if(typeof t==="number")return IFC(this,t);throw Error("Vk");};
var J4t=function(t,E){var p=new Xl(t.size_.height,E.getSize().width);kW9(p,function(U,x,A){for(var m=U=0;m<this.size_.width;m++)U+=uq(this,x,m)*uq(E,m,A);uh7(p,x,A,U)},t);
return p},IFC=function(t,E){return dYb(t,function(p){return p*E})};var JP=function(t){gtJ.dispatchEvent(new ZH5(gtJ,t))},gtJ=new _.UH,ZH5=function(t,E){_.dV.call(this,"statevent",t);
this.stat=E};
_.u(ZH5,_.dV);var Ik=function(t,E,p,U,x){this.JSC$19895_channel_=t;this.JSC$19895_channelDebug_=E;this.sid_=p;this.JSC$19895_rid_=U;this.JSC$19895_retryId_=x||1;this.timeout_=45E3;this.JSC$19895_eventHandler_=new _.Kg(this);this.pollingTimer_=new _.vQ;this.pollingTimer_.setInterval(250)};
_.Y=Ik.prototype;_.Y.JSC$19897_extraHeaders_=null;_.Y.JSC$19897_successful_=!1;_.Y.JSC$19897_watchDogTimerId_=null;_.Y.JSC$19897_watchDogTimeoutTime_=null;_.Y.JSC$19897_requestStartTime_=null;_.Y.JSC$19897_type_=null;_.Y.JSC$19897_baseUri_=null;_.Y.JSC$19897_requestUri_=null;_.Y.JSC$19897_postData_=null;_.Y.JSC$19897_xmlHttp_=null;_.Y.JSC$19897_xmlHttpChunkStart_=0;_.Y.trident_=null;_.Y.JSC$19897_verb_=null;_.Y.JSC$19897_lastError_=null;_.Y.JSC$19897_lastStatusCode_=-1;_.Y.sendClose_=!0;
_.Y.JSC$19897_cancelled_=!1;_.Y.JSC$19897_readyStateChangeThrottleMs_=0;_.Y.JSC$19897_readyStateChangeThrottle_=null;var OHC=function(t,E){switch(t){case 0:return"Non-200 return code ("+E+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},Xde={},hOl={};
Ik.prototype.setTimeout=function(t){this.timeout_=t};
var eOt=function(t,E,p){t.JSC$19897_type_=1;t.JSC$19897_baseUri_=_.nJ(E.clone());t.JSC$19897_postData_=p;t.decodeChunks_=!0;aF5(t,null)},F35=function(t,E,p,U,x){t.JSC$19897_type_=1;
t.JSC$19897_baseUri_=_.nJ(E.clone());t.JSC$19897_postData_=null;t.decodeChunks_=p;x&&(t.sendClose_=!1);aF5(t,U)},aF5=function(t,E){t.JSC$19897_requestStartTime_=Date.now();
zOC(t);t.JSC$19897_requestUri_=t.JSC$19897_baseUri_.clone();rI9(t.JSC$19897_requestUri_,"t",t.JSC$19895_retryId_);t.JSC$19897_xmlHttpChunkStart_=0;t.JSC$19897_xmlHttp_=t.JSC$19895_channel_.JSC$19904_createXhrIo(t.JSC$19895_channel_.JSC$19904_shouldUseSecondaryDomains()?E:null);t.JSC$19897_readyStateChangeThrottleMs_>0&&(t.JSC$19897_readyStateChangeThrottle_=new _.F5((0,_.Tg)(t.JSC$19897_xmlHttpHandler_,t,t.JSC$19897_xmlHttp_),t.JSC$19897_readyStateChangeThrottleMs_));t.JSC$19895_eventHandler_.listen(t.JSC$19897_xmlHttp_,
"readystatechange",t.JSC$19897_readyStateChangeHandler_);E=t.JSC$19897_extraHeaders_?_.Kq.clone(t.JSC$19897_extraHeaders_):{};t.JSC$19897_postData_?(t.JSC$19897_verb_="POST",E["Content-Type"]="application/x-www-form-urlencoded",t.JSC$19897_xmlHttp_.send(t.JSC$19897_requestUri_,t.JSC$19897_verb_,t.JSC$19897_postData_,E)):(t.JSC$19897_verb_="GET",t.sendClose_&&!_.no&&(E.Connection="close"),t.JSC$19897_xmlHttp_.send(t.JSC$19897_requestUri_,t.JSC$19897_verb_,null,E));t.JSC$19895_channel_.notifyServerReachabilityEvent(1);
E=t.JSC$19895_channelDebug_;var p=t.JSC$19897_postData_;if(p){var U="";p=p.split("&");for(var x=0;x<p.length;x++){var A=p[x].split("=");if(A.length>1){var m=A[0];A=A[1];var b=m.split("_");U=b.length>=2&&b[1]=="type"?U+(m+"="+A+"&"):U+(m+"=redacted&")}}}else U=null;E.info("XMLHTTP REQ ("+t.JSC$19895_rid_+") [attempt "+t.JSC$19895_retryId_+"]: "+t.JSC$19897_verb_+"\n"+t.JSC$19897_requestUri_+"\n"+U)};
Ik.prototype.JSC$19897_readyStateChangeHandler_=function(t){t=t.target;var E=this.JSC$19897_readyStateChangeThrottle_;E&&_.H7(t)==3?(this.JSC$19895_channelDebug_.debug("Throttling readystatechange."),E.fire()):this.JSC$19897_xmlHttpHandler_(t)};
Ik.prototype.JSC$19897_xmlHttpHandler_=function(t){try{if(t==this.JSC$19897_xmlHttp_)a:{var E=_.H7(this.JSC$19897_xmlHttp_),p=this.JSC$19897_xmlHttp_.JSC$10072_lastErrorCode_,U=this.JSC$19897_xmlHttp_.getStatus();if(_.no&&!_.zm("420+")){if(E<4)break a}else if(E<3||E==3&&!this.JSC$19897_xmlHttp_.getResponseText())break a;this.JSC$19897_cancelled_||E!=4||p==7||(p==8||U<=0?this.JSC$19895_channel_.notifyServerReachabilityEvent(3):this.JSC$19895_channel_.notifyServerReachabilityEvent(2));lFJ(this);var x=
this.JSC$19897_xmlHttp_.getStatus();this.JSC$19897_lastStatusCode_=x;var A=this.JSC$19897_xmlHttp_.getResponseText();A||this.JSC$19895_channelDebug_.debug("No response text for uri "+this.JSC$19897_requestUri_+" status "+x);this.JSC$19897_successful_=x==200;this.JSC$19895_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19895_rid_+") [ attempt "+this.JSC$19895_retryId_+"]: "+this.JSC$19897_verb_+"\n"+this.JSC$19897_requestUri_+"\n"+E+" "+x);if(this.JSC$19897_successful_){E==4&&GW5(this);if(this.decodeChunks_){for(t=
!0;!this.JSC$19897_cancelled_&&this.JSC$19897_xmlHttpChunkStart_<A.length;){var m=nte(this,A);if(m==hOl){E==4&&(this.JSC$19897_lastError_=4,JP(15),t=!1);NwJ(this.JSC$19895_channelDebug_,this.JSC$19895_rid_,null,"[Incomplete Response]");break}else if(m==Xde){this.JSC$19897_lastError_=4;JP(16);NwJ(this.JSC$19895_channelDebug_,this.JSC$19895_rid_,A,"[Invalid Chunk]");t=!1;break}else NwJ(this.JSC$19895_channelDebug_,this.JSC$19895_rid_,m,null),DYt(this,m)}E==4&&A.length==0&&(this.JSC$19897_lastError_=
1,JP(17),t=!1);this.JSC$19897_successful_=this.JSC$19897_successful_&&t;t||(NwJ(this.JSC$19895_channelDebug_,this.JSC$19895_rid_,A,"[Invalid Chunked Response]"),GW5(this),sUo(this))}else NwJ(this.JSC$19895_channelDebug_,this.JSC$19895_rid_,A,null),DYt(this,A);this.JSC$19897_successful_&&!this.JSC$19897_cancelled_&&(E==4?this.JSC$19895_channel_.JSC$19904_onRequestComplete(this):(this.JSC$19897_successful_=!1,zOC(this)))}else x==400&&A.indexOf("Unknown SID")>0?(this.JSC$19897_lastError_=3,JP(13),this.JSC$19895_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19895_rid_+")")):(this.JSC$19897_lastError_=0,JP(14),this.JSC$19895_channelDebug_.warning("XMLHTTP Bad status "+x+" ("+this.JSC$19895_rid_+")")),GW5(this),sUo(this)}else this.JSC$19895_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(b){this.JSC$19895_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var nte=function(t,E){var p=t.JSC$19897_xmlHttpChunkStart_,U=E.indexOf("\n",p);if(U==-1)return hOl;p=Number(E.substring(p,U));if(isNaN(p))return Xde;U+=1;if(U+p>E.length)return hOl;E=E.slice(U,U+p);t.JSC$19897_xmlHttpChunkStart_=U+p;return E};
Ik.prototype.cancel=function(){this.JSC$19897_cancelled_=!0;GW5(this)};
var zOC=function(t){t.JSC$19897_watchDogTimeoutTime_=Date.now()+t.timeout_;L38(t,t.timeout_)},L38=function(t,E){if(t.JSC$19897_watchDogTimerId_!=null)throw Error("Ok");
t.JSC$19897_watchDogTimerId_=h_((0,_.Tg)(t.JSC$19897_onWatchDogTimeout_,t),E)},lFJ=function(t){t.JSC$19897_watchDogTimerId_&&(_.Ui.clearTimeout(t.JSC$19897_watchDogTimerId_),t.JSC$19897_watchDogTimerId_=null)};
Ik.prototype.JSC$19897_onWatchDogTimeout_=function(){this.JSC$19897_watchDogTimerId_=null;var t=Date.now();t-this.JSC$19897_watchDogTimeoutTime_>=0?(this.JSC$19895_channelDebug_.info("TIMEOUT: "+this.JSC$19897_requestUri_),this.JSC$19897_type_!=2&&this.JSC$19895_channel_.notifyServerReachabilityEvent(3),GW5(this),this.JSC$19897_lastError_=2,JP(18),sUo(this)):(this.JSC$19895_channelDebug_.warning("WatchDog timer called too early"),L38(this,this.JSC$19897_watchDogTimeoutTime_-t))};
var sUo=function(t){t.JSC$19895_channel_.JSC$19904_isClosed()||t.JSC$19897_cancelled_||t.JSC$19895_channel_.JSC$19904_onRequestComplete(t)},GW5=function(t){lFJ(t);
_.wi(t.JSC$19897_readyStateChangeThrottle_);t.JSC$19897_readyStateChangeThrottle_=null;t.pollingTimer_.stop();t.JSC$19895_eventHandler_.removeAll();if(t.JSC$19897_xmlHttp_){var E=t.JSC$19897_xmlHttp_;t.JSC$19897_xmlHttp_=null;E.abort();E.dispose()}t.trident_&&(t.trident_=null)};
Ik.prototype.getLastError=function(){return this.JSC$19897_lastError_};
var DYt=function(t,E){try{t.JSC$19895_channel_.JSC$19904_onRequestData(t,E),t.JSC$19895_channel_.notifyServerReachabilityEvent(4)}catch(p){}};var NwJ=function(t,E,p,U){var x=t.info;a:if(p&&p!="y2f%"){try{var A=JSON.parse(p);if(A)for(var m=0;m<A.length;m++)if(Array.isArray(A[m])){var b=A[m];if(!(b.length<2)){var f=b[1];if(Array.isArray(f)&&!(f.length<1)){var B=f[0];if(B!="noop"&&B!="stop")for(var R=1;R<f.length;R++)f[R]=""}}}var V=(0,_.id)(A);break a}catch(Q){t.debug("Exception parsing expected JS array - probably was not JS");V=p;break a}V=void 0}else V=p;x.call(t,"XMLHTTP TEXT ("+E+"): "+V+(U?" "+U:""))};
aw.prototype.debug=function(t){this.info(t)};
aw.prototype.info=function(){};
aw.prototype.warning=function(){};var PIt=function(t,E){this.JSC$19902_channel_=t;this.JSC$19902_channelDebug_=E;this.JSC$19902_parser_=new p3b};
_.Y=PIt.prototype;_.Y.JSC$19904_extraHeaders_=null;_.Y.JSC$19904_request_=null;_.Y.receivedIntermediateResult_=!1;_.Y.JSC$19904_path_=null;_.Y.state_=null;_.Y.JSC$19904_lastStatusCode_=-1;_.Y.JSC$19904_hostPrefix_=null;_.Y.blockedPrefix_=null;
_.Y.connect=function(t){this.JSC$19904_path_=t;t=TwL(this.JSC$19902_channel_,this.JSC$19904_path_);JP(3);Date.now();var E=this.JSC$19902_channel_.firstTestResults_;E!=null?(this.JSC$19904_hostPrefix_=E[0],(this.blockedPrefix_=E[1])?(this.state_=1,otl(this)):(this.state_=2,W3K(this))):(rI9(t,"MODE","init"),this.JSC$19904_request_=new Ik(this,this.JSC$19902_channelDebug_),this.JSC$19904_request_.JSC$19897_extraHeaders_=this.JSC$19904_extraHeaders_,F35(this.JSC$19904_request_,t,!1,null,!0),this.state_=
0)};
var otl=function(t){var E=$YJ(t.JSC$19902_channel_,t.blockedPrefix_,"/mail/images/cleardot.gif");_.nJ(E);b08(E.toString(),5E3,(0,_.Tg)(t.checkBlockedCallback_,t),3,2E3);t.notifyServerReachabilityEvent(1)};
PIt.prototype.checkBlockedCallback_=function(t){if(t)this.state_=2,W3K(this);else{JP(4);var E=this.JSC$19902_channel_;E.JSC$19905_channelDebug_.debug("Test Connection Blocked");E.JSC$19909_lastStatusCode_=E.connectionTest_.JSC$19904_lastStatusCode_;gO(E,9)}t&&this.notifyServerReachabilityEvent(2)};
var W3K=function(t){t.JSC$19902_channelDebug_.debug("TestConnection: starting stage 2");var E=t.JSC$19902_channel_.secondTestResults_;E!=null?(t.JSC$19902_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+E?"Buffered":"Unbuffered"),JP(5),E?(JP(11),K3g(t.JSC$19902_channel_,t,!1)):(JP(12),K3g(t.JSC$19902_channel_,t,!0))):(t.JSC$19904_request_=new Ik(t,t.JSC$19902_channelDebug_),t.JSC$19904_request_.JSC$19897_extraHeaders_=t.JSC$19904_extraHeaders_,E=vtt(t.JSC$19902_channel_,
t.JSC$19904_hostPrefix_,t.JSC$19904_path_),JP(5),rI9(E,"TYPE","xmlhttp"),F35(t.JSC$19904_request_,E,!1,t.JSC$19904_hostPrefix_,!1))};
_.Y=PIt.prototype;_.Y.JSC$19904_createXhrIo=function(t){return this.JSC$19902_channel_.JSC$19904_createXhrIo(t)};
_.Y.abort=function(){this.JSC$19904_request_&&(this.JSC$19904_request_.cancel(),this.JSC$19904_request_=null);this.JSC$19904_lastStatusCode_=-1};
_.Y.JSC$19904_isClosed=function(){return!1};
_.Y.JSC$19904_onRequestData=function(t,E){this.JSC$19904_lastStatusCode_=t.JSC$19897_lastStatusCode_;if(this.state_==0)if(this.JSC$19902_channelDebug_.debug("TestConnection: Got data for stage 1"),E){try{var p=this.JSC$19902_parser_.parse(E)}catch(U){y4e(this.JSC$19902_channel_,this);return}this.JSC$19904_hostPrefix_=p[0];this.blockedPrefix_=p[1]}else this.JSC$19902_channelDebug_.debug("TestConnection: Null responseText"),y4e(this.JSC$19902_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(JP(7),Date.now()):E=="11111"?(JP(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19904_lastStatusCode_=200,this.JSC$19904_request_.cancel(),this.JSC$19902_channelDebug_.debug("Test connection succeeded; using streaming connection"),JP(12),K3g(this.JSC$19902_channel_,this,!0)):(JP(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.Y.JSC$19904_onRequestComplete=function(){this.JSC$19904_lastStatusCode_=this.JSC$19904_request_.JSC$19897_lastStatusCode_;this.JSC$19904_request_.JSC$19897_successful_?this.state_==0?(this.JSC$19902_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,otl(this)):(this.state_=2,W3K(this))):this.state_==2&&(this.JSC$19902_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19902_channelDebug_.debug("Test connection succeeded; using streaming connection"),
JP(12),K3g(this.JSC$19902_channel_,this,!0)):(this.JSC$19902_channelDebug_.debug("Test connection failed; not using streaming"),JP(11),K3g(this.JSC$19902_channel_,this,!1))):(this.JSC$19902_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?JP(9):this.state_==2&&JP(10),y4e(this.JSC$19902_channel_,this,this.JSC$19904_request_.getLastError()))};
_.Y.JSC$19904_shouldUseSecondaryDomains=function(){return this.JSC$19902_channel_.JSC$19904_shouldUseSecondaryDomains()};
_.Y.isActive=function(){return this.JSC$19902_channel_.isActive()};
_.Y.notifyServerReachabilityEvent=function(t){this.JSC$19902_channel_.notifyServerReachabilityEvent(t)};var ZE=function(t,E,p){this.state_=1;this.JSC$19905_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19905_channelDebug_=new aw;this.JSC$19905_parser_=new p3b;this.firstTestResults_=t||null;this.secondTestResults_=E!=null?E:null;this.asyncTest_=p||!1},S7J=function(t,E){this.JSC$19907_mapId=t;
this.map=E;this.context=null};
_.Y=ZE.prototype;_.Y.JSC$19909_extraHeaders_=null;_.Y.JSC$19909_extraParams_=null;_.Y.forwardChannelRequest_=null;_.Y.JSC$19909_backChannelRequest_=null;_.Y.JSC$19909_path_=null;_.Y.JSC$19909_forwardChannelUri_=null;_.Y.JSC$19909_backChannelUri_=null;_.Y.JSC$19909_hostPrefix_=null;_.Y.JSC$19909_nextRid_=0;_.Y.JSC$19909_nextMapId_=0;_.Y.handler_=null;_.Y.JSC$19909_forwardChannelTimerId_=null;_.Y.JSC$19909_backChannelTimerId_=null;_.Y.JSC$19909_deadBackChannelTimerId_=null;_.Y.connectionTest_=null;
_.Y.useChunked_=null;_.Y.JSC$19909_lastArrayId_=-1;_.Y.JSC$19909_lastPostResponseArrayId_=-1;_.Y.JSC$19909_lastStatusCode_=-1;_.Y.JSC$19909_forwardChannelRetryCount_=0;_.Y.JSC$19909_backChannelRetryCount_=0;_.Y.JSC$19909_channelVersion_=8;var c4g={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},tp5=function(t,E,p,U){_.dV.call(this,"timingevent",t);this.size=E;this.rtt=p;this.retries=U};
_.Oa(tp5,_.dV);var Epb=function(t){_.dV.call(this,"serverreachability",t)};
_.Oa(Epb,_.dV);ZE.prototype.connect=function(t,E,p,U,x){this.JSC$19905_channelDebug_.debug("connect()");JP(0);this.JSC$19909_path_=E;this.JSC$19909_extraParams_=p||{};U&&x!==void 0&&(this.JSC$19909_extraParams_.OSID=U,this.JSC$19909_extraParams_.OAID=x);this.asyncTest_?(h_((0,_.Tg)(this.connectTest_,this,t),100),peg(this)):this.connectTest_(t)};
ZE.prototype.disconnect=function(){this.JSC$19905_channelDebug_.debug("disconnect()");UTC(this);if(this.state_==3){var t=this.JSC$19909_nextRid_++,E=this.JSC$19909_forwardChannelUri_.clone();_.jK(E,"SID",this.sid_);_.jK(E,"RID",t);_.jK(E,"TYPE","terminate");xTt(this,E);t=new Ik(this,this.JSC$19905_channelDebug_,this.sid_,t);t.JSC$19897_type_=2;t.JSC$19897_baseUri_=_.nJ(E.clone());(new Image).src=t.JSC$19897_baseUri_.toString();t.JSC$19897_requestStartTime_=Date.now();zOC(t)}ATK(this)};
ZE.prototype.connectTest_=function(t){this.JSC$19905_channelDebug_.debug("connectTest_()");this.connectionTest_=new PIt(this,this.JSC$19905_channelDebug_);this.connectionTest_.JSC$19904_extraHeaders_=this.JSC$19909_extraHeaders_;this.connectionTest_.JSC$19902_parser_=this.JSC$19905_parser_;this.connectionTest_.connect(t)};
var peg=function(t){t.JSC$19905_channelDebug_.debug("connectChannel_()");t.JSC$19909_ensureInState_(1,0);t.JSC$19909_forwardChannelUri_=TwL(t,t.JSC$19909_path_);Y9o(t)},UTC=function(t){t.connectionTest_&&(t.connectionTest_.abort(),t.connectionTest_=null);
t.JSC$19909_backChannelRequest_&&(t.JSC$19909_backChannelRequest_.cancel(),t.JSC$19909_backChannelRequest_=null);t.JSC$19909_backChannelTimerId_&&(_.Ui.clearTimeout(t.JSC$19909_backChannelTimerId_),t.JSC$19909_backChannelTimerId_=null);Mpt(t);t.forwardChannelRequest_&&(t.forwardChannelRequest_.cancel(),t.forwardChannelRequest_=null);t.JSC$19909_forwardChannelTimerId_&&(_.Ui.clearTimeout(t.JSC$19909_forwardChannelTimerId_),t.JSC$19909_forwardChannelTimerId_=null)},mTt=function(t,E){if(t.state_==0)throw Error("Wk");
t.JSC$19905_outgoingMaps_.length==1E3&&t.JSC$19905_parser_.stringify(E);t.JSC$19905_outgoingMaps_.push(new S7J(t.JSC$19909_nextMapId_++,E));t.state_!=2&&t.state_!=3||Y9o(t)};
ZE.prototype.JSC$19904_isClosed=function(){return this.state_==0};
ZE.prototype.getState=function(){return this.state_};
var Y9o=function(t){t.forwardChannelRequest_||t.JSC$19909_forwardChannelTimerId_||(t.JSC$19909_forwardChannelTimerId_=h_((0,_.Tg)(t.JSC$19909_onStartForwardChannelTimer_,t),0),t.JSC$19909_forwardChannelRetryCount_=0)};
ZE.prototype.JSC$19909_onStartForwardChannelTimer_=function(t){this.JSC$19909_forwardChannelTimerId_=null;bE9(this,t)};
var bE9=function(t,E){t.JSC$19905_channelDebug_.debug("startForwardChannel_");if(t.state_==1){if(!E){t.JSC$19905_channelDebug_.debug("open_()");t.JSC$19909_nextRid_=Math.floor(Math.random()*1E5);E=t.JSC$19909_nextRid_++;var p=new Ik(t,t.JSC$19905_channelDebug_,"",E);p.JSC$19897_extraHeaders_=t.JSC$19909_extraHeaders_;var U=iEt(t),x=t.JSC$19909_forwardChannelUri_.clone();_.jK(x,"RID",E);_.jK(x,"CVER","1");xTt(t,x);eOt(p,x,U);t.forwardChannelRequest_=p;t.state_=2}}else t.state_==3&&(E?q99(t,E):t.JSC$19905_outgoingMaps_.length==
0?t.JSC$19905_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):t.forwardChannelRequest_||(q99(t),t.JSC$19905_channelDebug_.debug("startForwardChannel_ finished, sent request")))},q99=function(t,E){if(E)if(t.JSC$19909_channelVersion_>6){t.JSC$19905_outgoingMaps_=t.pendingMaps_.concat(t.JSC$19905_outgoingMaps_);
t.pendingMaps_.length=0;var p=t.JSC$19909_nextRid_-1;E=iEt(t)}else p=E.JSC$19895_rid_,E=E.JSC$19897_postData_;else p=t.JSC$19909_nextRid_++,E=iEt(t);var U=t.JSC$19909_forwardChannelUri_.clone();_.jK(U,"SID",t.sid_);_.jK(U,"RID",p);_.jK(U,"AID",t.JSC$19909_lastArrayId_);xTt(t,U);p=new Ik(t,t.JSC$19905_channelDebug_,t.sid_,p,t.JSC$19909_forwardChannelRetryCount_+1);p.JSC$19897_extraHeaders_=t.JSC$19909_extraHeaders_;p.setTimeout(1E4+Math.round(1E4*Math.random()));t.forwardChannelRequest_=p;eOt(p,U,
E)},xTt=function(t,E){t.handler_&&(t=t.handler_.JSC$19916_getAdditionalParams())&&_.Kq.forEach(t,function(p,U){_.jK(E,U,p)})},iEt=function(t){var E=Math.min(t.JSC$19905_outgoingMaps_.length,1E3),p=["count="+E];
if(t.JSC$19909_channelVersion_>6&&E>0){var U=t.JSC$19905_outgoingMaps_[0].JSC$19907_mapId;p.push("ofs="+U)}else U=0;for(var x={},A=0;A<E;x={mapId$jscomp$3:void 0},A++){x.mapId$jscomp$3=t.JSC$19905_outgoingMaps_[A].JSC$19907_mapId;var m=t.JSC$19905_outgoingMaps_[A].map;x.mapId$jscomp$3=t.JSC$19909_channelVersion_<=6?A:x.mapId$jscomp$3-U;try{_.Kq.forEach(m,function(b){return function(f,B){p.push("req"+b.mapId$jscomp$3+"_"+B+"="+encodeURIComponent(f))}}(x))}catch(b){p.push("req"+x.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}t.pendingMaps_=t.pendingMaps_.concat(t.JSC$19905_outgoingMaps_.splice(0,E));
return p.join("&")},HEJ=function(t){t.JSC$19909_backChannelRequest_||t.JSC$19909_backChannelTimerId_||(t.JSC$19909_backChannelAttemptId_=1,t.JSC$19909_backChannelTimerId_=h_((0,_.Tg)(t.JSC$19909_onStartBackChannelTimer_,t),0),t.JSC$19909_backChannelRetryCount_=0)},Byd=function(t){if(t.JSC$19909_backChannelRequest_||t.JSC$19909_backChannelTimerId_||t.JSC$19909_backChannelRetryCount_>=3)return!1;
t.JSC$19905_channelDebug_.debug("Going to retry GET");t.JSC$19909_backChannelAttemptId_++;t.JSC$19909_backChannelTimerId_=h_((0,_.Tg)(t.JSC$19909_onStartBackChannelTimer_,t),fH5(t,t.JSC$19909_backChannelRetryCount_));t.JSC$19909_backChannelRetryCount_++;return!0};
ZE.prototype.JSC$19909_onStartBackChannelTimer_=function(){this.JSC$19909_backChannelTimerId_=null;this.JSC$19905_channelDebug_.debug("Creating new HttpRequest");this.JSC$19909_backChannelRequest_=new Ik(this,this.JSC$19905_channelDebug_,this.sid_,"rpc",this.JSC$19909_backChannelAttemptId_);this.JSC$19909_backChannelRequest_.JSC$19897_extraHeaders_=this.JSC$19909_extraHeaders_;this.JSC$19909_backChannelRequest_.JSC$19897_readyStateChangeThrottleMs_=0;var t=this.JSC$19909_backChannelUri_.clone();_.jK(t,
"RID","rpc");_.jK(t,"SID",this.sid_);_.jK(t,"CI",this.useChunked_?"0":"1");_.jK(t,"AID",this.JSC$19909_lastArrayId_);xTt(this,t);_.jK(t,"TYPE","xmlhttp");F35(this.JSC$19909_backChannelRequest_,t,!0,this.JSC$19909_hostPrefix_,!1);this.JSC$19905_channelDebug_.debug("New Request created")};
var K3g=function(t,E,p){t.JSC$19905_channelDebug_.debug("Test Connection Finished");t.useChunked_=t.secondTestResults_==null?p:!t.secondTestResults_;t.JSC$19909_lastStatusCode_=E.JSC$19904_lastStatusCode_;t.asyncTest_||peg(t)},y4e=function(t,E){t.JSC$19905_channelDebug_.debug("Test Connection Failed");
t.JSC$19909_lastStatusCode_=E.JSC$19904_lastStatusCode_;gO(t,2)};
ZE.prototype.JSC$19904_onRequestData=function(t,E){if(this.state_!=0&&(this.JSC$19909_backChannelRequest_==t||this.forwardChannelRequest_==t))if(this.JSC$19909_lastStatusCode_=t.JSC$19897_lastStatusCode_,this.forwardChannelRequest_==t&&this.state_==3)if(this.JSC$19909_channelVersion_>7){try{var p=this.JSC$19905_parser_.parse(E)}catch(U){p=null}if(Array.isArray(p)&&p.length==3)if(E=p,E[0]==0)a:if(this.JSC$19905_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19909_backChannelTimerId_)this.JSC$19905_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19909_backChannelRequest_)if(this.JSC$19909_backChannelRequest_.JSC$19897_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19897_requestStartTime_)Mpt(this),this.JSC$19909_backChannelRequest_.cancel(),this.JSC$19909_backChannelRequest_=null;else break a;else this.JSC$19905_channelDebug_.warning("We do not have a BackChannel established");Byd(this);JP(19)}else this.JSC$19909_lastPostResponseArrayId_=E[1],t=this.JSC$19909_lastPostResponseArrayId_-this.JSC$19909_lastArrayId_,0<
t&&(E=E[2],this.JSC$19905_channelDebug_.debug(E+" bytes (in "+t+" arrays) are outstanding on the BackChannel"),E<37500&&this.useChunked_&&this.JSC$19909_backChannelRetryCount_==0&&!this.JSC$19909_deadBackChannelTimerId_&&(this.JSC$19909_deadBackChannelTimerId_=h_((0,_.Tg)(this.JSC$19909_onBackChannelDead_,this),6E3)));else this.JSC$19905_channelDebug_.debug("Bad POST response data returned"),gO(this,11)}else E!="y2f%"&&(this.JSC$19905_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
gO(this,11));else this.JSC$19909_backChannelRequest_==t&&Mpt(this),_.mJ(E)||(t=this.JSC$19905_parser_.parse(E),this.onInput_(t))};
ZE.prototype.JSC$19909_onBackChannelDead_=function(){this.JSC$19909_deadBackChannelTimerId_!=null&&(this.JSC$19909_deadBackChannelTimerId_=null,this.JSC$19909_backChannelRequest_.cancel(),this.JSC$19909_backChannelRequest_=null,Byd(this),JP(20))};
var Mpt=function(t){t.JSC$19909_deadBackChannelTimerId_!=null&&(_.Ui.clearTimeout(t.JSC$19909_deadBackChannelTimerId_),t.JSC$19909_deadBackChannelTimerId_=null)};
ZE.prototype.JSC$19904_onRequestComplete=function(t){this.JSC$19905_channelDebug_.debug("Request complete");if(this.JSC$19909_backChannelRequest_==t){Mpt(this);this.JSC$19909_backChannelRequest_=null;var E=2}else if(this.forwardChannelRequest_==t)this.forwardChannelRequest_=null,E=1;else return;this.JSC$19909_lastStatusCode_=t.JSC$19897_lastStatusCode_;if(this.state_!=0)if(t.JSC$19897_successful_)if(E==1){E=t.JSC$19897_postData_?t.JSC$19897_postData_.length:0;t=Date.now()-t.JSC$19897_requestStartTime_;
var p=gtJ;p.dispatchEvent(new tp5(p,E,t,this.JSC$19909_forwardChannelRetryCount_));Y9o(this);this.handler_&&this.handler_.JSC$19916_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else HEJ(this);else{p=t.getLastError();if(p==3||p==7||p==0&&this.JSC$19909_lastStatusCode_>0)this.JSC$19905_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19905_channelDebug_.debug("Maybe retrying, last error: "+OHC(p,this.JSC$19909_lastStatusCode_));var U;if(U=E==1)this.forwardChannelRequest_||
this.JSC$19909_forwardChannelTimerId_||this.state_==1||this.JSC$19909_forwardChannelRetryCount_>=2?U=!1:(this.JSC$19905_channelDebug_.debug("Going to retry POST"),this.JSC$19909_forwardChannelTimerId_=h_((0,_.Tg)(this.JSC$19909_onStartForwardChannelTimer_,this,t),fH5(this,this.JSC$19909_forwardChannelRetryCount_)),this.JSC$19909_forwardChannelRetryCount_++,U=!0);if(U||E==2&&Byd(this))return;this.JSC$19905_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19905_channelDebug_.debug("Error: HTTP request failed");
switch(p){case 1:gO(this,5);break;case 4:gO(this,10);break;case 3:gO(this,6);break;case 7:gO(this,12);break;default:gO(this,2)}}};
var fH5=function(t,E){var p=5E3+Math.floor(Math.random()*1E4);t.isActive()||(t.JSC$19905_channelDebug_.debug("Inactive channel"),p*=2);return p*E};
ZE.prototype.onInput_=function(t){for(var E=0;E<t.length;E++){var p=t[E];this.JSC$19909_lastArrayId_=p[0];p=p[1];this.state_==2?p[0]=="c"?(this.sid_=p[1],this.JSC$19909_hostPrefix_=p[2],p=p[3],p!=null?this.JSC$19909_channelVersion_=p:this.JSC$19909_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19916_channelOpened(),this.JSC$19909_backChannelUri_=vtt(this,this.JSC$19909_hostPrefix_,this.JSC$19909_path_),HEJ(this)):p[0]=="stop"&&gO(this,7):this.state_==3&&(p[0]=="stop"?gO(this,7):
p[0]!="noop"&&this.handler_&&this.handler_.JSC$19916_channelHandleArray(p),this.JSC$19909_backChannelRetryCount_=0)}};
ZE.prototype.JSC$19909_ensureInState_=function(t){if(!_.zt(arguments,this.state_))throw Error("Xk`"+this.state_);};
var gO=function(t,E){t.JSC$19905_channelDebug_.info("Error code "+E);if(E==2||E==9){var p=null;t.handler_&&(p=null);var U=(0,_.Tg)(t.testGoogleComCallback_,t);p||(p=new _.fF("//www.google.com/images/cleardot.gif"),_.nJ(p));mlL(p.toString(),1E4,U)}else JP(2);t.onError_(E)};
ZE.prototype.testGoogleComCallback_=function(t){t?(this.JSC$19905_channelDebug_.info("Successfully pinged google.com"),JP(2)):(this.JSC$19905_channelDebug_.info("Failed to ping google.com"),JP(1),this.onError_(8))};
ZE.prototype.onError_=function(t){this.JSC$19905_channelDebug_.debug("HttpChannel: error - "+t);this.state_=0;this.handler_&&this.handler_.JSC$19916_channelError(t);ATK(this);UTC(this)};
var ATK=function(t){t.state_=0;t.JSC$19909_lastStatusCode_=-1;if(t.handler_)if(t.pendingMaps_.length==0&&t.JSC$19905_outgoingMaps_.length==0)t.handler_.JSC$19916_channelClosed();else{t.JSC$19905_channelDebug_.debug("Number of undelivered maps, pending: "+t.pendingMaps_.length+", outgoing: "+t.JSC$19905_outgoingMaps_.length);var E=_.Dl(t.pendingMaps_),p=_.Dl(t.JSC$19905_outgoingMaps_);t.pendingMaps_.length=0;t.JSC$19905_outgoingMaps_.length=0;t.handler_.JSC$19916_channelClosed(E,p)}},TwL=function(t,
E){E=$YJ(t,null,E);
t.JSC$19905_channelDebug_.debug("GetForwardChannelUri: "+E);return E},vtt=function(t,E,p){E=$YJ(t,t.JSC$19904_shouldUseSecondaryDomains()?E:null,p);
t.JSC$19905_channelDebug_.debug("GetBackChannelUri: "+E);return E},$YJ=function(t,E,p){var U=_.QC(p);
if(U.JSC$10308_domain_!="")E&&_.XB(U,E+"."+U.JSC$10308_domain_),_.hU(U,U.JSC$10308_port_);else{var x=window.location;U=sre(x.protocol,E?E+"."+x.hostname:x.hostname,+x.port,p)}t.JSC$19909_extraParams_&&_.Kq.forEach(t.JSC$19909_extraParams_,function(A,m){_.jK(U,m,A)});
_.jK(U,"VER",t.JSC$19909_channelVersion_);xTt(t,U);return U};
ZE.prototype.JSC$19904_createXhrIo=function(t){if(t)throw Error("Pk");t=new _.qx;t.JSC$10072_withCredentials_=!1;return t};
ZE.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
ZE.prototype.notifyServerReachabilityEvent=function(t){var E=gtJ;E.dispatchEvent(new Epb(E,t))};
ZE.prototype.JSC$19904_shouldUseSecondaryDomains=function(){return!1};
new $Cd;var weg=function(){};
_.Y=weg.prototype;_.Y.JSC$19916_channelOpened=function(){};
_.Y.JSC$19916_channelHandleArray=function(){};
_.Y.JSC$19916_channelSuccess=function(){};
_.Y.JSC$19916_channelError=function(){};
_.Y.JSC$19916_channelClosed=function(){};
_.Y.JSC$19916_getAdditionalParams=function(){return{}};
_.Y.isActive=function(){return!0};var Rhb=function(t){t.front_.length===0&&(t.front_=t.back_,t.front_.reverse(),t.back_=[])};
_.Y=qU8.prototype;_.Y.enqueue=function(t){this.back_.push(t)};
_.Y.peek=function(){Rhb(this);return _.hD(this.front_)};
_.Y.getCount=function(){return this.front_.length+this.back_.length};
_.Y.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.Y.clear=function(){this.front_=[];this.back_=[]};
_.Y.contains=function(t){return _.zt(this.front_,t)||_.zt(this.back_,t)};
_.Y.remove=function(t){var E=this.front_;var p=Array.prototype.lastIndexOf.call(E,t,E.length-1);p>=0?(_.X8L(E,p),E=!0):E=!1;return E||_.NK(this.back_,t)};
_.Y.getValues=function(){for(var t=[],E=this.front_.length-1;E>=0;--E)t.push(this.front_[E]);E=this.back_.length;for(var p=0;p<E;++p)t.push(this.back_[p]);return t};var Vpt=function(t){var E=typeof t;return E=="object"&&t||E=="function"?"o"+_.W8(t):E.charAt(0)+t};
_.Y=eX.prototype;_.Y.getCount=function(){return this.JSC$19920_map_.size};
_.Y.add=function(t){this.JSC$19920_map_.set(Vpt(t),t);this.size=this.JSC$19920_map_.size};
_.Y.addAll=function(t){t=_.Zv(t);for(var E=t.length,p=0;p<E;p++)this.add(t[p]);this.size=this.JSC$19920_map_.size};
_.Y.removeAll=function(t){t=_.Zv(t);for(var E=t.length,p=0;p<E;p++)this.remove(t[p]);this.size=this.JSC$19920_map_.size};
_.Y.delete=function(t){t=this.JSC$19920_map_.remove(Vpt(t));this.size=this.JSC$19920_map_.size;return t};
_.Y.remove=function(t){return this.delete(t)};
_.Y.clear=function(){this.JSC$19920_map_.clear();this.size=0};
_.Y.isEmpty=function(){return this.JSC$19920_map_.size===0};
_.Y.has=function(t){return this.JSC$19920_map_.containsKey(Vpt(t))};
_.Y.contains=function(t){return this.JSC$19920_map_.containsKey(Vpt(t))};
_.Y.getValues=function(){return this.JSC$19920_map_.getValues()};
_.Y.values=function(){return this.JSC$19920_map_.values()};
_.Y.clone=function(){return new eX(this)};
_.Y.equals=function(t){return this.getCount()==NMg(t)&&QlC(this,t)};
var QlC=function(t,E){var p=NMg(E);if(t.getCount()>p)return!1;!(E instanceof eX)&&p>5&&(E=new eX(E));return DC7(t,function(U){var x=E;return x.contains&&typeof x.contains=="function"?x.contains(U):x.containsValue&&typeof x.containsValue=="function"?x.containsValue(U):_.LO(x)||typeof x==="string"?_.zt(x,U):_.Kq.containsValue(x,U)})};
eX.prototype.__iterator__=function(){return this.JSC$19920_map_.__iterator__(!1)};
eX.prototype[Symbol.iterator]=function(){return this.values()};_.yx({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 t=this.query;t&&(this.full||t[0]==="("||(t="("+t+")"),this._mq=window.matchMedia(t),this._add(),this.queryHandler(this._mq))},
queryHandler:function(t){this._setQueryMatches(t.matches)}});var Ceg={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(t){return(this._clampValue(t)-this.min)/(this.max-this.min)},
_clampValue:function(t){return Math.min(this.max,Math.max(this.min,this._calcStep(t)))},
_calcStep:function(t){t=parseFloat(t);if(!this.step)return t;t=Math.round((t-this.min)/this.step);return this.step<1?t/(1/this.step)+this.min:t*this.step+this.min},
_validateValue:function(){var t=this._clampValue(this.value);this.value=this.oldValue=isNaN(t)?this.oldValue:t;return this.value!==t},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var jll=[_.Ev,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(t){_.sm(t).path[0]!==this&&(this.resetLayout(),t.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var t=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.G9(this._layoutDebouncer,_.yl,t);_.nm(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var t=this;requestAnimationFrame(function(){t.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(t){this.resizerShouldNotify(t)&&this._notifyDescendant(t)},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 rTJ=[_.cNX,{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(t,E){var p=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[t];if(!p)throw new ReferenceError(this._getUndefinedMsg(t));t=this._boundEffect(p,E||{});t.setUp();return t},
_effectsChanged:function(t,E,p){this._tearDownEffects();t&&p&&(t.split(" ").forEach(function(U){var x;U!==""&&((x=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[U])?this._effects.push(this._boundEffect(x,E[U])):console.warn(this._getUndefinedMsg(U)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(t,E){E=E||{};var p=parseFloat(E.startsAt||0),U=parseFloat(E.endsAt||1),x=U-p,A=function(){};
U=p===0&&U===1?t.run:function(m,b){t.run.call(this,Math.max(0,(m-p)/x),b)};
return{setUp:t.setUp?t.setUp.bind(this,E):A,run:t.run?U.bind(this):A,tearDown:t.tearDown?t.tearDown.bind(this):A}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(t){t.setUp()!==!1&&this._effectsRunFn.push(t.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(t){t.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(t,E){this._effectsRunFn&&this._effectsRunFn.forEach(function(p){p(t,E)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var t=this._clampedScrollTop;this._updateScrollState(t);this.threshold>0&&this._setThresholdTriggered(t>=this.threshold)}},
_getDOMRef:function(t){console.warn("_getDOMRef","`"+t+"` is undefined")},
_getUndefinedMsg:function(t){return"Scroll effect `"+t+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+t+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Yk`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(t){var E={};t=parseFloat(t.scalar);E.background=this._getDOMRef("background");E.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");E.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");E.deltaBg=E.backgroundFrontLayer.offsetHeight-E.background.offsetHeight;E.deltaBg===0?(isNaN(t)&&(t=.8),E.deltaBg=(this._dHeight||0)*t):(isNaN(t)&&(t=
1),E.deltaBg*=t);this._fxParallaxBackground=E},
run:function(t){var E=this._fxParallaxBackground;this.transform("translate3d(0px, "+E.deltaBg*Math.min(1,t)+"px, 0px)",E.backgroundFrontLayer);E.backgroundRearLayer&&this.transform("translate3d(0px, "+E.deltaBg*Math.min(1,t)+"px, 0px)",E.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var kpL;var dT8;_.yx({_template:function(){if(dT8!==void 0)return dT8;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;kpL===void 0&&(kpL=document.createElement("template"));var U=kpL;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return dT8=t},
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(){_.XE(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(t){t.keyCode===27&&(t.preventDefault(),this.close())},
_track:function(t){if(!this.persistent&&!this.disableSwipe)switch(t.preventDefault(),t.detail.state){case "start":this._trackStart(t);break;case "track":this._trackMove(t);break;case "end":this._trackEnd(t)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var t=this.$.contentContainer.getBoundingClientRect();this._savedWidth=t.width;this._translateOffset=this.position==="left"?t.left:t.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(t){this._trackDetails&&(this._translateDrawer(t.detail.dx+this._translateOffset),this._trackDetails.push({dx:t.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(t){if(this._trackDetails){var E=t.detail.dx+this._translateOffset,p=this.getWidth();E=this.position==="left"?E>=0||E<=-p:E<=0||E>=p;if(!E){var U=this._trackDetails;this._trackDetails=null;this._flingDrawer(t,U);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}p/=2;t.detail.dx<-p?this.opened=this.position==="right":t.detail.dx>p&&(this.opened=this.position==="left");E?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(t,E){for(var p=Date.now(),U=p-100,x,A=0,m=E.length-1;A<=m;){var b=A+m>>1,f=E[b];f.timeStamp>=U?(x=f,m=b-1):A=b+1}return x?(t.detail.dx-x.dx)/(p-x.timeStamp||1):0},
_flingDrawer:function(t,E){E=this._calculateVelocity(t,E);if(!(Math.abs(E)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;t=t.detail.dx+this._translateOffset;var p=this.getWidth(),U=this.position==="left",x=E>0;x?(E=Math.max(E,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(E=Math.min(E,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");E=this._FLING_INITIAL_SLOPE*(!x&&U?-(t+p):x&&!U?p-t:-t)/E;this._styleTransitionDuration(E);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,E)}},
_styleTransitionDuration:function(t){this.style.transitionDuration=t+"ms";this.$.contentContainer.style.transitionDuration=t+"ms";this.$.scrim.style.transitionDuration=t+"ms"},
_styleTransitionTimingFunction:function(t){this.$.contentContainer.style.transitionTimingFunction=t;this.$.scrim.style.transitionTimingFunction=t},
_translateDrawer:function(t){var E=this.getWidth();this.position==="left"?(t=Math.max(-E,Math.min(t,0)),this.$.scrim.style.opacity=1+t/E):(t=Math.max(0,Math.min(t,E)),this.$.scrim.style.opacity=1-t/E);this.translate3d(t+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var t=this._drawerState;t===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;t!==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=""),t!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var t=_.sm(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"])');t.length>0?(this._firstTabStop=t[0],this._lastTabStop=t[t.length-1]):
this._lastTabStop=this._firstTabStop=null;(t=this.getAttribute("tabindex"))&&parseInt(t,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(t){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||t.keyCode!==9||(t.shiftKey?this._firstTabStop&&_.sm(t).localTarget===this._firstTabStop&&(t.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.sm(t).localTarget===this._lastTabStop&&(t.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(t,E){this.toggleClass("visible",t&&!E,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 u_l;var JT8;var IHd=function(){};
_.Y=IHd.prototype;_.Y._scrollTargetChanged=function(){};
_.Y.scroll=function(){};
_.Y._isValidScrollTarget=function(){};
_.Y._toggleScrollListener=function(){};
_.Y.toggleScrollListener=function(){};
_.Y.createEffect=function(){};
_.Y._effectsChanged=function(){};
_.Y._layoutIfDirty=function(){};
_.Y._boundEffect=function(){};
_.Y._setUpEffect=function(){};
_.Y._tearDownEffects=function(){};
_.Y._runEffects=function(){};
_.Y._scrollHandler=function(){};
_.Y._scrollStateChanged=function(){};
_.Y._getUndefinedMsg=function(){};
_.Y.notifyResize=function(){};
_.Y.assignParentResizable=function(){};
_.Y.stopResizeNotificationsFor=function(){};
_.Y._subscribeIronResize=function(){};
_.Y._unsubscribeIronResize=function(){};
_.Y.resizerShouldNotify=function(){};
_.Y._onDescendantIronResize=function(){};
_.Y._fireResize=function(){};
_.Y._onIronRequestResizeNotifications=function(){};
_.Y._parentResizableChanged=function(){};
_.Y._notifyDescendant=function(){};
_.Y._requestResizeNotifications=function(){};
_.Y._findParent=function(){};
_.Y._appResetLayoutHandler=function(){};
_.Y.resetLayout=function(){};
_.Y._notifyLayoutChanged=function(){};
_.Y._notifyDescendantResize=function(){};
_.Y._setThresholdTriggered=function(){};
IHd=_.yx({_template:function(){if(JT8!==void 0)return JT8;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;u_l===void 0&&(u_l=document.createElement("template"));var U=u_l;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return JT8=t},
is:"tp-yt-app-header",behaviors:[rTJ,jll],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 t=_.sm(this.$.slot).getDistributedNodes(),E=0,p;p=t[E];E++)if(p.nodeType===Node.ELEMENT_NODE)if(p.hasAttribute("sticky")){this._stickyElRef=p;break}else this._stickyElRef||(this._stickyElRef=p);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var t=this._clampedScrollTop,E=this._height===0||t===0,p=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;E||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();E?this._updateScrollState(t,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=p}},
_updateScrollState:function(t,E){if(this._height!==0){var p=0,U=this._top;var x=this._maxHeaderTop;var A=t-this._lastScrollTop,m=Math.abs(A),b=t>this._lastScrollTop,f=performance.now();this._mayMove()&&(p=this._clamp(this.reveals?U+A:t,0,x));t>=this._dHeight&&(p=this.condenses&&!this.fixed?Math.max(this._dHeight,p):p,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&m<100){if(f-this._initTimestamp>300||this._wasScrollingDown!==b)this._initScrollTop=t,this._initTimestamp=f;t>=x&&
(Math.abs(this._initScrollTop-t)>30||m>10?(b&&t>=x?p=x:!b&&t>=this._dHeight&&(p=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((p-U)/(A/(f-this._lastTimestamp)),0,300)+"ms"):p=this._top)}x=this._dHeight===0?t>0?1:0:p/this._dHeight;E||(this._lastScrollTop=t,this._top=p,this._wasScrollingDown=b,this._lastTimestamp=f);if(E||x!==this._progress||U!==p||t===0)this._progress=x,this._runEffects(x,p),this._transformHeader(p)}},
_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(t){this.translate3d(0,-t+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&t>=this._stickyElTop?Math.min(t,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(t,E,p){return Math.min(p,Math.max(E,t))},
_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),_.sm(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(t){switch(t){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.sm(this).querySelector("[main-title]");case "condensedTitle":return _.sm(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var gpC;var ZE9;_.yx({_template:function(){if(ZE9!==void 0)return ZE9;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;gpC===void 0&&(gpC=document.createElement("template"));var U=gpC;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return ZE9=t},
is:"tp-yt-app-header-layout",behaviors:[jll],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0},rafId:{type:Number,value:-1},useRaf:{type:Boolean,value:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.sm(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){this.useRaf?(cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(this.performUpdate.bind(this))):this.performUpdate()},
performUpdate:function(){var t=this.header;if(this.isAttached&&t){this.$.wrapper.classList.remove("initializing");t.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)t.style.left="",t.style.right="";else{var E=this.getBoundingClientRect(),p=document.documentElement.clientWidth-E.right;t.style.left=E.left+"px";t.style.right=p+"px"}E=this.$.contentContainer.style;p=t.offsetHeight;t.fixed&&!t.condenses&&this.hasScrollingRegion?
(E.marginTop=p+"px",E.paddingTop=""):(E.paddingTop=p+"px",E.marginTop="")}}});/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var OEt=_.CG(['<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>']),
XeJ=_.vRr(OEt);XeJ.setAttribute("style","display: none;");document.head.appendChild(XeJ.content);var hh5;var aHg;/*

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
*/
_.yx({_template:function(){if(aHg!==void 0)return aHg;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;hh5===void 0&&(hh5=document.createElement("template"));var U=hh5;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return aHg=t},
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(t,E){var p=this._resolveSrc(t);p!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",t===""||E?this._setLoading(!1):(this._resolvedSrc=p,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 t=this.$.sizedImgDiv.style,E=this.$.placeholder.style;t.backgroundSize=E.backgroundSize=this.sizing;t.backgroundPosition=E.backgroundPosition=this.sizing?this.position:"";t.backgroundRepeat=E.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(t){t=_.nW(t,this.$.baseURIAnchor.href);t.length>=2&&t[0]==="/"&&t[1]!=="/"&&(t=(location.origin||location.protocol+"//"+location.host)+t);return t}});var ehL;var Fg5;_.yx({_template:function(){if(Fg5!==void 0)return Fg5;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=
t.content,p=E.insertBefore;ehL===void 0&&(ehL=document.createElement("template"));var U=ehL;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return Fg5=t},
is:"tp-yt-iron-pages",behaviors:[_.Ev,_.f4],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});var zhd;var lH7;_.yx({_template:function(){if(lH7!==void 0)return lH7;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;zhd===void 0&&(zhd=document.createElement("template"));var U=zhd;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return lH7=t},
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(t){return t?"false":"true"},
_headingChanged:function(t){var E=this.getAttribute("heading"),p=this.getAttribute("aria-label");typeof p==="string"&&p!==E||this.setAttribute("aria-label",t)},
_computeHeadingClass:function(t){return t?" over-image":""},
_computeAnimated:function(t){return t}});var Gp5;var npe;_.yx({_template:function(){if(npe!==void 0)return npe;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;Gp5===void 0&&(Gp5=document.createElement("template"));var U=Gp5;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return npe=t},
is:"tp-yt-paper-checkbox",behaviors:[_.xhX],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.XE(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var t=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),E="px",p=t.match(/[A-Za-z]+$/);p!==null&&(E=p[0]);t=parseFloat(t);p=8/3*t;E==="px"&&(p=Math.floor(p),p%2!==t%2&&p++);this.updateStyles({"--paper-checkbox-ink-size":p+
E})}})},
_computeCheckboxClass:function(t,E){var p="";t&&(p+="checked ");E&&(p+="invalid");return p},
_computeCheckmarkClass:function(t){return t?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.pfs._createRipple.call(this)}});var Ny9;var DTe;var sle=_.KQ.IronButtonState,LgC=(0,_.Sx)(HTMLElement);
_.yx({_template:function(){if(DTe!==void 0)return DTe;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;Ny9===void 0&&(Ny9=document.createElement("template"));var U=Ny9;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return DTe=t},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[sle,_.W$,_.v$,_.c$],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(t){var E=(0,_.yB)(this);E.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:t});E.shadowRoot.appendChild(t);return LgC.prototype._attachDom.call(this,t)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var t=this.contentElement;t&&t.selectedItem&&this._setSelectedItem(t.selectedItem)},
get contentElement(){for(var t=_.sm(this.$.content).getDistributedNodes(),E=0,p=t.length;E<p;E++)if(t[E].nodeType===Node.ELEMENT_NODE)return t[E]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(t){this._setSelectedItem(t.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(t){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t)===this&&this.open()},
_selectedItemChanged:function(t){var E="";t?E=t.label||t.getAttribute("label")||t.textContent.trim():E="";this.value=E;this._setSelectedItemLabel(E)},
_computeMenuVerticalOffset:function(t,E){return E?E:t?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var t=this.opened?"true":"false",E=this.contentElement;E&&E.setAttribute("aria-expanded",t)}});var Peb;var TyC;_.yx({_template:function(){if(TyC!==void 0)return TyC;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);
var E=t.content,p=E.insertBefore;Peb===void 0&&(Peb=document.createElement("template"));var U=Peb;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return TyC=t},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var opg;var Wge;_.yx({_template:function(){if(Wge!==void 0)return Wge;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;opg===void 0&&(opg=document.createElement("template"));var U=opg;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return Wge=t},
is:"tp-yt-paper-progress",behaviors:[Ceg],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(t){this.toggleClass("indeterminate",t,this.$.primaryProgress)},
_transformProgress:function(t,E){t.style.transform=t.style.webkitTransform="scaleX("+E/100+")"},
_mainRatioChanged:function(t){this._transformProgress(this.$.primaryProgress,t)},
_progressChanged:function(t,E,p,U,x){t=this._clampValue(t);E=this._clampValue(E);var A=this._calcRatio(t)*100,m=this._calcRatio(E)*100;this._setSecondaryRatio(A);this._transformProgress(this.$.secondaryProgress,A);this._transformProgress(this.$.primaryProgress,m);this.secondaryProgress=t;x?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",E);this.setAttribute("aria-valuemin",p);this.setAttribute("aria-valuemax",U)},
_disabledChanged:function(t){this.setAttribute("aria-disabled",t?"true":"false")},
_hideSecondaryProgress:function(t){return t===0}});var $T5;var Kg8;var vpJ=function(){};
_.Y=vpJ.prototype;_.Y.addOwnKeyBinding=function(){};
_.Y.removeOwnKeyBindings=function(){};
_.Y.keyboardEventMatchesKeys=function(){};
_.Y._collectKeyBindings=function(){};
_.Y._prepKeyBindings=function(){};
_.Y._addKeyBinding=function(){};
_.Y._resetKeyEventListeners=function(){};
_.Y._listenKeyEventListeners=function(){};
_.Y._unlistenKeyEventListeners=function(){};
_.Y._onKeyBindingEvent=function(){};
_.Y._triggerKeyHandler=function(){};
_.Y._tapHandler=function(){};
_.Y._focusChanged=function(){};
_.Y._detectKeyboardFocus=function(){};
_.Y._userActivate=function(){};
_.Y._upHandler=function(){};
_.Y._spaceKeyDownHandler=function(){};
_.Y._spaceKeyUpHandler=function(){};
_.Y._asyncClick=function(){};
_.Y._pressedChanged=function(){};
_.Y._ariaActiveAttributeChanged=function(){};
_.Y._activeChanged=function(){};
_.Y._controlStateChanged=function(){};
_.Y._changedButtonState=function(){};
_.Y._focusBlurHandler=function(){};
_.Y._disabledChanged=function(){};
_.Y._changedControlState=function(){};
_.Y._downHandler=function(){};
_.Y.ensureRipple=function(){};
_.Y.getRipple=function(){};
_.Y.hasRipple=function(){};
_.Y._noinkChanged=function(){};
_.Y._focusedChanged=function(){};
_.Y._createRipple=function(){};
_.Y.registered=function(){};
_.Y._invalidChanged=function(){};
_.Y.hasValidator=function(){};
_.Y.validate=function(){};
_.Y._getValidity=function(){};
_.Y._requiredChanged=function(){};
_.Y._valueChanged=function(){};
_.Y._checkedChanged=function(){};
_.Y._buttonStateChanged=function(){};
_.Y._setPressed=function(){};
_.Y._setPointerDown=function(){};
_.Y._setReceivedFocusFromKeyboard=function(){};
_.Y._setFocused=function(){};
vpJ=_.yx({is:"tp-yt-paper-radio-button",_template:function(){if(Kg8!==void 0)return Kg8;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;$T5===void 0&&($T5=document.createElement("template"));var U=$T5;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return Kg8=t},
behaviors:[_.xhX],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(){_.XE(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var t=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),E=Math.floor(3*t);E%2!==t%2&&E++;this.updateStyles({"--paper-radio-button-ink-size":E+"px"})}})}});var yTe;var S95;_.yx({_template:function(){if(S95!==void 0)return S95;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;yTe===void 0&&(yTe=document.createElement("template"));var U=yTe;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return S95=t},
is:"tp-yt-paper-radio-group",behaviors:[_.yNW],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(t){var E=this._valueToItem(t);if(!E||!E.hasAttribute("disabled")){if(this.selected){E=this._valueToItem(this.selected);if(this.selected==t)if(this.allowEmptySelection)t="";else{E&&(E.checked=!0);return}E&&
(E.checked=!1)}_.f4.select.apply(this,[t]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(t){this._focusPrevious();t.preventDefault();this._activateFocusedItem()},
_onDownKey:function(t){this._focusNext();t.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(t){_.vuo._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(t){_.vuo._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.f4._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.tv._resetTabindices.apply(this,arguments);this.items.forEach(function(t){t.removeAttribute("aria-selected")},this)}});var cTe;var tAt;var Ecb=function(){};
_.Y=Ecb.prototype;_.Y.registered=function(){};
_.Y.addOwnKeyBinding=function(){};
_.Y.removeOwnKeyBindings=function(){};
_.Y.keyboardEventMatchesKeys=function(){};
_.Y._collectKeyBindings=function(){};
_.Y._prepKeyBindings=function(){};
_.Y._addKeyBinding=function(){};
_.Y._resetKeyEventListeners=function(){};
_.Y._listenKeyEventListeners=function(){};
_.Y._unlistenKeyEventListeners=function(){};
_.Y._onKeyBindingEvent=function(){};
_.Y._triggerKeyHandler=function(){};
_.Y._tapHandler=function(){};
_.Y._focusChanged=function(){};
_.Y._detectKeyboardFocus=function(){};
_.Y._userActivate=function(){};
_.Y._upHandler=function(){};
_.Y._spaceKeyDownHandler=function(){};
_.Y._spaceKeyUpHandler=function(){};
_.Y._asyncClick=function(){};
_.Y._pressedChanged=function(){};
_.Y._ariaActiveAttributeChanged=function(){};
_.Y._activeChanged=function(){};
_.Y._controlStateChanged=function(){};
_.Y._changedButtonState=function(){};
_.Y._focusBlurHandler=function(){};
_.Y._disabledChanged=function(){};
_.Y._changedControlState=function(){};
_.Y._buttonStateChanged=function(){};
_.Y._downHandler=function(){};
_.Y.ensureRipple=function(){};
_.Y.getRipple=function(){};
_.Y.hasRipple=function(){};
_.Y._noinkChanged=function(){};
_.Y._calcRatio=function(){};
_.Y._clampValue=function(){};
_.Y._calcStep=function(){};
_.Y._validateValue=function(){};
_.Y._update=function(){};
_.Y._setImmediateValue=function(){};
_.Y._setExpand=function(){};
_.Y._setDragging=function(){};
_.Y._setTransiting=function(){};
_.Y._setMarkers=function(){};
_.Y._setPressed=function(){};
_.Y._setPointerDown=function(){};
_.Y._setReceivedFocusFromKeyboard=function(){};
_.Y._setFocused=function(){};
_.Y._setRatio=function(){};
Ecb=_.yx({_template:function(){if(tAt!==void 0)return tAt;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;cTe===void 0&&(cTe=document.createElement("template"));var U=cTe;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return tAt=t},
is:"tp-yt-paper-slider",behaviors:[_.ou,_.v$,_.Uh0,Ceg],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&&_.wk(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(t,E,p){this.setAttribute("aria-valuemin",E);this.setAttribute("aria-valuemax",p);this.setAttribute("aria-valuenow",t);this._positionKnob(this._calcRatio(t)*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(t){this._setImmediateValue(this._calcStep(this._calcKnobPosition(t)));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(t){return(this.max-this.min)*t/100+this.min},
_onTrack:function(t){t.stopPropagation();switch(t.detail.state){case "start":this._trackStart(t);break;case "track":this._trackX(t);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(t){this.dragging||this._trackStart(t);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,t.detail.dx*(this._isRTL?-1:1)));t=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(t);t=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(t+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var t=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;t.transform=t.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(t){this._expandKnob();t.preventDefault();this.focus()},
_bartrack:function(t){this._allowBarEvent(t)&&this._onTrack(t)},
_barclick:function(t){this._w=this.$.sliderBar.offsetWidth;var E=this.$.sliderBar.getBoundingClientRect();E=(t.detail.x-E.left)/this._w*100;this._isRTL&&(E=100-E);var p=this.ratio;this._setTransiting(!0);this._positionKnob(E);p===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
t.preventDefault();this.focus()},
_bardown:function(t){this._allowBarEvent(t)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(t))},
_knobTransitionEnd:function(t){t.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(t,E,p,U){U||this._setMarkers([]);E=Math.round((p-E)/this.step);E>t&&(E=t);if(E<0||!isFinite(E))E=0;this._setMarkers(Array(E))},
_mergeClasses:function(t){return Object.keys(t).filter(function(E){return t[E]}).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(t){return!this.ignoreBarTouch||t.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(t){this._isRTL?this._incrementKey(t):this._decrementKey(t)},
_rightKey:function(t){this._isRTL?this._decrementKey(t):this._incrementKey(t)},
_incrementKey:function(t){this.disabled||(t.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),t.preventDefault())},
_decrementKey:function(t){this.disabled||(t.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),t.preventDefault())},
_changeValue:function(t){this.value=t.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(t){t.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.pfs._createRipple.call(this)},
_focusedChanged:function(t){t&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=t?"":"none",this._ripple.holdDown=t)}});var pJ5;var U48;var Of=null,x4J=function(){};
_.Y=x4J.prototype;_.Y.fit=function(){};
_.Y._discoverInfo=function(){};
_.Y.resetFit=function(){};
_.Y.refit=function(){};
_.Y.position=function(){};
_.Y.constrain=function(){};
_.Y._sizeDimension=function(){};
_.Y.__sizeDimension=function(){};
_.Y.center=function(){};
_.Y.__getNormalizedRect=function(){};
_.Y.__getOffscreenArea=function(){};
_.Y.__getPosition=function(){};
_.Y.notifyResize=function(){};
_.Y.assignParentResizable=function(){};
_.Y.stopResizeNotificationsFor=function(){};
_.Y._subscribeIronResize=function(){};
_.Y._unsubscribeIronResize=function(){};
_.Y.resizerShouldNotify=function(){};
_.Y._onDescendantIronResize=function(){};
_.Y._fireResize=function(){};
_.Y._onIronRequestResizeNotifications=function(){};
_.Y._parentResizableChanged=function(){};
_.Y._notifyDescendant=function(){};
_.Y._requestResizeNotifications=function(){};
_.Y._findParent=function(){};
_.Y.toggle=function(){};
_.Y.open=function(){};
_.Y.close=function(){};
_.Y.cancel=function(){};
_.Y.invalidateTabbables=function(){};
_.Y._ensureSetup=function(){};
_.Y._canceledChanged=function(){};
_.Y._withBackdropChanged=function(){};
_.Y._prepareRenderOpened=function(){};
_.Y._finishRenderOpened=function(){};
_.Y._finishRenderClosed=function(){};
_.Y._preparePositioning=function(){};
_.Y._finishPositioning=function(){};
_.Y._applyFocus=function(){};
_.Y._onCaptureClick=function(){};
_.Y._onCaptureFocus=function(){};
_.Y._onCaptureEsc=function(){};
_.Y._onCaptureTab=function(){};
_.Y._onIronResize=function(){};
_.Y._onNodesChange=function(){};
_.Y.__ensureFirstLastFocusables=function(){};
_.Y.__openedChanged=function(){};
_.Y.__deraf=function(){};
_.Y.__updateScrollObservers=function(){};
_.Y.__addScrollListeners=function(){};
_.Y.__removeScrollListeners=function(){};
_.Y.__isValidScrollAction=function(){};
_.Y.__onCaptureScroll=function(){};
_.Y.__saveScrollPosition=function(){};
_.Y.__restoreScrollPosition=function(){};
_.Y._setCanceled=function(){};
x4J=_.yx({_template:function(){if(U48!==void 0)return U48;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;pJ5===void 0&&(pJ5=document.createElement("template"));var U=pJ5;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return U48=t},
is:"tp-yt-paper-toast",behaviors:[_.VV],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(){_.ci._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.HU.requestAvailability()},
show:function(t){typeof t=="string"&&(t={text:t});for(var E in t)E.indexOf("_")===0?_.ci._warn('The property "'+E+'" is private and was not set.'):E in this?this[E]=t[E]:_.ci._warn('The property "'+E+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(t){t&&t.target===this&&t.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(Of&&Of!==this&&Of.close(),Of=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):Of===this&&(Of=null);_.RL._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(t){this.positionTarget=t},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var Asg=new _.Ir("disablePersonalizationAction");var T9C=new _.Ir("showDmaConsentFlowCommand");var oCe=new _.Ir("showMmgNoticeCommand");var Y$t=new _.Ir("saveConsentAction");var MAb=new _.Ir("navigateAction");var m4K=new _.Ir("replaceFeedContentAction");var bZC=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(bZC,_.w6);var iZ8=_.mEi(bZC);var q$e=new _.Ir("imageTileRenderer");var HZ7=new _.Ir("promotedSparklesWebRenderer");var ffg=new _.Ir("adGridCardCollectionViewModel");var Bl9=new _.Ir("addRendererToItemSectionAction");var wJ8=new _.Ir("updateTopbarAvatarAction");var RIb=new _.Ir("channelHandleValidationResultRenderer");var VAo=new _.Ir("generateHandleFromNameResultRenderer");var Q2d=new _.Ir("channelHandleInputRenderer");var CLL=new _.Ir("copyLinkRenderer");var j2K=new _.Ir("carouselTitleViewModel");var rsC=new _.Ir("ctaCarouselItemViewModel");var kkC=new _.Ir("timedCommand");var d47=new _.Ir("textFieldViewModel");var uG5=new _.Ir("crowdsourcedContextUserRatingFormFlowState");var JsJ=new _.Ir("noteViewModel");var Ifg=new _.Ir("alertCommand");var gcl=new _.Ir("clearCookieAction");var ZZt=new _.Ir("engagementPanelHeaderShowNavigationButtonCommand");var OZJ=new _.Ir("getMultiPageMenuAction");var XJd=new _.Ir("addToGuideSectionAction"),hI8=new _.Ir("removeFromGuideSectionAction");var afl=new _.Ir("hideEngagementPanelScrimAction");var eIl=new _.Ir("updateNotificationsUnseenCountAction");var Fp7=new _.Ir("resetChannelUnreadCountCommand");var zIL=new _.Ir("resetSubscriptionsUnreadDotCommand");var lfe=new _.Ir("selectLanguageCommand");var xqd=new _.Ir("sendFeedbackAction");var GkL=new _.Ir("setActivePanelItemAction");var ncJ=new _.Ir("showEngagementPanelScrimAction");var Nl7=new _.Ir("updateEngagementPanelAction");var D4d=new _.Ir("updateSearchInVideoResultsAction");var s2C=new _.Ir("uploadImageToScottyCommand");var LpJ=new _.Ir("webWatchNextResponseExtensionData");var PLt=new _.Ir("manageLabsStateCommand");var Tld=new _.Ir("registerPromoCommand");var ocg=new _.Ir("setPushNotificationsEnabledCommand");var Wp8=new _.Ir("updateSentimentBarStateCommand");var $4L=new _.Ir("desktopTopbarRenderer");var Kpd=new _.Ir("surveyFollowUpRenderer");var vco=new _.Ir("formRenderer");var ys8=new _.Ir("inlineFormRenderer");var S$7=new _.Ir("handlesClaimingRadioOptionRenderer");var cst=new _.Ir("hotkeyDialogRenderer");var tmb=new _.Ir("playlistSidebarPrimaryInfoRenderer");var Eld=new _.Ir("transcriptCueGroupRenderer");var pM8=new _.Ir("transcriptCueRenderer");var Ukt=new _.Ir("transcriptFooterRenderer");var xkl=new _.Ir("engagementPanelAdSubtitleRenderer");var AcK=new _.Ir("videoDescriptionFantasySectionViewModel");var YM8=new _.Ir("inlineSurveyRenderer");var Lkt=new _.Ir("radioButtonSurveyOptionRenderer"),Po7=new _.Ir("checkboxSurveyOptionRenderer");var TPg=new _.Ir("showSurveyCommand");var XZ=new _.Ir("abuseReportFlowState");var oge=new _.Ir("modifyReportFormCommand");var Wkl=new _.Ir("feedbackFormFlowState");var $9J=new _.Ir("inputBoxViewModel");var Kkd=new _.Ir("flowRootRenderer");var Vwb=new _.Ir("lengthValidationRule");var CA5=new _.Ir("regexValidationRule");var r8l=new _.Ir("selectedValidationRule");var vgC=new _.Ir("accountLinkCommand");var yud=new _.Ir("accountUnlinkCommand");var SLJ=new _.Ir("deleteClipEngagementPanelCommand");var cu8=new _.Ir("logAccountLinkingEventCommand");var toK=new _.Ir("loopCommand");var yNg=new _.Ir("guideCollapsibleEntryRenderer");var EN8=new _.Ir("guideDownloadsEntryRenderer");var vub=new _.Ir("guideEntryRenderer");var pZC=[0,_.kC,_.Ot,_.aq];var US7=[0,_.C1,-2,TMt];var xSg=function(t){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ll(t)};
_.u(xSg,_.w6);xSg.prototype.getFeature=function(){return _.th(this,6)};
xSg.prototype.hasFeature=function(){return _.hd(_.sa(this,6))!=null};var Axg=[0,_.kC];var YVo=_.g6(xSg,[0,_.C1,-2,TMt,_.C1,_.kC,-1,_.Qg,-1,_.kC,-3,_.SCW,_.jM,US7,_.kC,-1,Pto,_.Qg,_.kC,pZC,[0,[0,_.kC,-2,2,_.kC,-1,[0,_.kC],[0,_.Ot,_.kC],[0,_.Ot],[0,_.kC],2,[0,_.Ot,2,[0,_.Ot,-1],[0,_.Jh,TYd],1,[0,oAl],1,[0,_.kC],1,[0,[2],_.kC,_.Ix,[0,_.C1]]],[0,_.jM],[0,[1,2],_.Ix,[0,_.kC],_.Ix,[0,_.kC,_.Zy,-1]],[0,_.Ot],[0,_.kC,[0,[1,2,3,4],_.Ix,[0,[0,_.kC],Axg],_.Ix,[0,[0,_.kC],Axg],_.Ix,[0,Axg],_.Ix,[0,[0,_.kC],Axg]]],[0,_.kC],1,[0,_.kC,_.Ot],1,[0,_.kC],[0,_.jM],[0,_.kC,_.Ot,-1,[0,_.kC,-4]],[0,_.kC],
[0,_.kC,-2],1,[0,_.kC],[0,_.jM],[0,_.jM,_.kC],1,[0,_.jM],[0],[0]],_.kC,_.Ot,_.Rx,1,_.g9,_.kC,_.Ot],_.C1,_.g9,_.Ot,-1,_.C1]);var Mob=new _.Ir("interstitialViewModel");var mSL=new _.Ir("changeCreatorEndscreenVisibilityCommand");var b7L=new _.Ir("liveChatCallForQuestionsRenderer");var i7t=new _.Ir("getLocationCommand");var qVK=new _.Ir("locationCollectionCommand");var H7J=new _.Ir("chipsShelfViewModel");var hP=new _.Ir("cinematicContainerRenderer");var ak=new _.Ir("changeMarkersVisibilityCommand");var fCC=new _.Ir("updateTimedMarkersSyncObserverCommand");var Bol=new _.Ir("storiesItemViewModel");var wZt=new _.Ir("talkToRecsViewModel");var Eul=new _.Ir("timelyActionViewModel");var Rpg=new _.Ir("timelyActionsOverlayViewModel");var Voo=new _.Ir("addToRemoteQueueAction");var QAg=new _.Ir("insertInRemoteQueueAction");var Cl9=new _.Ir("removeFromRemoteQueueAction");var jAo=new _.Ir("productDetailsThumbnailRenderer"),rxe=new _.Ir("productDetailsVariantRenderer"),kbl=new _.Ir("productDetailsVariantOptionRenderer"),dSl=new _.Ir("productDetailsOffersContainerRenderer"),uk7=new _.Ir("productDetailsOfferRenderer");var Jx5=new _.Ir("shoppingFlaggingRenderer");var IC7=new _.Ir("notificationActionRenderer");var gNt=new _.Ir("notificationRenderer");var gCd=new _.Ir("localWatchHistoryCommand");var Z7g=new _.Ir("pdgBuyFlowHeaderRenderer");var O79=new _.Ir("pdgColorSliderRenderer");var XZ8=new _.Ir("pdgCommentOptionRenderer");var hpo=new _.Ir("pdgCommentPreviewRenderer");var aCJ=new _.Ir("superVodSelectableItemButtonRenderer");var epK=new _.Ir("creatorGoalSetUpFlowDropdownItemViewModel");var Fv8=new _.Ir("creatorGoalSetUpFlowDropdownViewModel");var zpd=new _.Ir("repeatChapterCommand");var lCg=new _.Ir("watchPlayerOverflowMenuCommand");var Gbd=new _.Ir("compositeVideoOverlayRenderer");var nNe=new _.Ir("playlistBylineRenderer");var Not=new _.Ir("reelNavigateCommand");var DSL=new _.Ir("reelNonVideoContentDismissalCommand");var sA9=new _.Ir("showReelsCommentsOverlayCommand");var Lvb=new _.Ir("switchButtonRenderer");var Pl5=new _.Ir("responsiveContainerConfiguration");var Tod=new _.Ir("sortFilterSubMenuRenderer");var oNL=new _.Ir("upsellDialogRenderer");var Wvt=new _.Ir("insertChannelTabCommand");var $St=new _.Ir("feedbackQuestionRenderer"),Kv8=new _.Ir("feedbackOptionRenderer");var vNl=new _.Ir("sponsorshipsTierRenderer"),yx7=new _.Ir("sponsorshipsPromotionChannelRenderer");var SV9=new _.Ir("simpleSurveyMessageRenderer");var pYK=new _.Ir("thumbnailBadgeViewModel");var cxb=new _.Ir("checkboxGroupViewModel");var fqC=new _.Ir("checkboxItemViewModel");var tk9=new _.Ir("radioButtonGroupViewModel");var E45=new _.Ir("radioButtonItemViewModel");var p_t=new _.Ir("switchListItemViewModel");var aVb=new _.Ir("inputComposerViewModel");var F8g=new _.Ir("panelFooterViewModel");var UVt=new _.Ir("transcriptEditSegmentCommand");var xVd=new _.Ir("transcriptUpdateSegmentTextCommand");var Abo=new _.Ir("transcriptSearchBoxRenderer");var YqJ=new _.Ir("transcriptSegmentListRenderer");var Mkb=new _.Ir("transcriptSegmentRenderer");var mVo=new _.Ir("videoInteractionPopUpRenderer");var bUg=new _.Ir("updateDateTextAction");var iUl=new _.Ir("updateTitleAction");var qqK=new _.Ir("updateViewershipAction");var HUd=new _.Ir("relatedChipCommand");var fe5=new _.Ir("carouselLockupRenderer");var BS9=new _.Ir("engagementPanelSectionListRenderer");var eP=new _.Ir("expandableVideoDescriptionBodyRenderer");var w_b=new _.Ir("videoDescriptionHeaderRenderer");var Rd5=new _.Ir("videoDescriptionYouchatSectionViewModel");var mhC=new _.Ir("invokeInstrumentManagerAction");var VkC=new _.Ir("logYpcFlowDismissCommand");var Q88=new _.Ir("logYpcFlowStartCommand");var Cbl=new _.Ir("ypcCancelRecurrenceCommand");var j8e=new _.Ir("cancellationFlowState");var Un7=new _.Ir("premiumPurchaseFlowState");var rbL=new _.Ir("unlimitedCreateFamilyEndpoint");var kAt=new _.Ir("surveyAnswerCardRenderer");var dVo=new _.Ir("iconBadgeRenderer");var uyL=new _.Ir("showMoreButtonRenderer");var Jb8=new _.Ir("pollChoiceData");var OG8=new _.Ir("collaborativePlaylistVisibilityValidationRule");var IeC=function(t){_.dV.call(this,"channelMessage");this.message=t};
_.u(IeC,_.dV);var g4J=function(t){_.dV.call(this,"channelError");this.error=t};
_.u(g4J,_.dV);var ZUt={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"},OU7={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},X_o={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},hd9={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},ae7={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var FZ=function(t){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 _.yO;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;t&&(this.id=t.id||t.name,this.name=t.name,this.clientName=t.clientName?t.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=t.app,this.type=t.type||"REMOTE_CONTROL",this.username=t.user||"",this.avatar=t.userAvatarUri||"",this.obfuscatedGaiaId=t.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=t.ownerObfuscatedGaiaId||"",this.castUserId=t.castUserId||"",this.theme=t.theme||"u",edo(this,t.capabilities||""),Fft(this,
t.compatibleSenderThemes||""),zdg(this,t.experiments||""),this.remoteControllerUrl=t.remoteControllerUrl||"",this.localChannelEncryptionKey=t.localChannelEncryptionKey||"",this.deviceContext=t.deviceContext,this.brand=t.brand||"",this.model=t.model||"",this.year=t.year||0,this.os=t.os||"",this.osVersion=t.osVersion||"",this.chipset=t.chipset||"",this.mdxDialServerType=t.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=t.pairingType||"unknown",t=t.deviceInfo)&&(t=JSON.parse(t),this.brand=
t.brand||"",this.model=t.model||"",this.year=t.year||0,this.os=t.os||"",this.osVersion=t.osVersion||"",this.chipset=t.chipset||"",this.clientName=t.clientName?t.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=t.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
FZ.prototype.copy=function(){var t={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&&(t.brand=this.brand);
this.model&&(t.model=this.model);this.year&&(t.year=this.year);this.os&&(t.os=this.os);this.osVersion&&(t.osVersion=this.osVersion);this.chipset&&(t.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(t.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(t.mdxDialServerType=this.mdxDialServerType);t=new FZ(t);t.connected=this.connected;t.remoteControllerUrl=this.remoteControllerUrl;t.localChannelEncryptionKey=this.localChannelEncryptionKey;t.deviceContext=
this.deviceContext;t.castUserId=this.castUserId;return t};
FZ.prototype.equals=function(t){return t?this.id==t.id:!1};
var edo=function(t,E){t.capabilities.clear();_.ae(E.split(","),_.GF(_.Kq.contains,ZUt)).forEach(function(p){t.capabilities.add(p)})},Fft=function(t,E){t.compatibleSenderThemes.clear();
_.ae(E.split(","),_.GF(_.Kq.contains,OU7)).forEach(function(p){t.compatibleSenderThemes.add(p)})},zdg=function(t,E){t.experiments.clear();
E.split(",").forEach(function(p){t.experiments.add(p)})};_.Oa(fNe,_.PQ);_.Y=fNe.prototype;_.Y.JSC$19994_onTick_=function(){this.retryCount++;this.JSC$19992_interval_=Math.min(3E5,this.JSC$19992_interval_*2);this.JSC$19994_listener_();this.nextTickTime_&&this.start()};
_.Y.getRetryCount=function(){return this.retryCount};
_.Y.start=function(){var t=this.JSC$19992_interval_+15E3*Math.random(),E=this.delay_;E.isActive()||E.start(t);this.nextTickTime_=Date.now()+t};
_.Y.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.Y.isActive=function(){return this.delay_.isActive()};
_.Y.reset=function(){this.delay_.stop();this.retryCount=0;this.JSC$19992_interval_=5E3};_.Oa(Fl,weg);_.Y=Fl.prototype;_.Y.subscribe=function(t,E,p){return this.pubsub_.subscribe(t,E,p)};
_.Y.unsubscribe=function(t,E,p){return this.pubsub_.unsubscribe(t,E,p)};
_.Y.unsubscribeByKey=function(t){return this.pubsub_.unsubscribeByKey(t)};
_.Y.publish=function(t,E){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.Y.dispose=function(){this.JSC$19995_disposed_||(this.JSC$19995_disposed_=!0,_.wi(this.pubsub_),this.disconnect(),_.wi(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19995_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.gu({})})};
_.Y.isDisposed=function(){return this.JSC$19995_disposed_};
_.Y.connect=function(t,E,p){var U=this,x,A,m,b;return _.q(function(f){if(f.nextAddress==1)return _.l0(f,2),U.useAsyncBrowserChannelHandler_?f.yield(U.connectPromise_,2):f.jumpTo(2);_.FQ(f);if(U.JSC$19995_disposed_||U.JSC$19995_channel_&&U.JSC$19995_channel_.getState()==2&&!U.isInitialReconnectTimer_)return f.return();U.sCookie_="";U.isInitialReconnectTimer_||U.reconnectTimer_.stop();U.connectionParams_=t||null;U.connectUi_=E||0;x=U.JSC$19995_pathPrefix_+"/test";A=U.JSC$19995_pathPrefix_+"/bind";m=
new ZE(p?p.firstTestResults:null,p?p.secondTestResults:null,U.enableAsyncTest_);if(b=U.JSC$19995_channel_)b.handler_=null;m.handler_=U;U.JSC$19995_channel_=m;if(U.useAsyncBrowserChannelHandler_)return U.connectPromise_=leo(U).then(function(){return GAo(U,x,A,b,p)}),f.return(U.connectPromise_.then(function(){U.connectPromise_=_.gu()}));
GAo(U,x,A,b,p);return _.Gc(f,0)})};
var GAo=function(t,E,p,U,x){n4l(t);if(t.JSC$19995_channel_){var A=_.qO("ID_TOKEN"),m=t.JSC$19995_channel_.JSC$19909_extraHeaders_||{};A?m["x-youtube-identity-token"]=A:delete m["x-youtube-identity-token"];t.JSC$19995_channel_.JSC$19909_extraHeaders_=m}NSb(t);U?(U.getState(),t.JSC$19995_channel_.connect(E,p,t.defaultQueryParams_,U.sid_,U.JSC$19909_lastArrayId_)):x?t.JSC$19995_channel_.connect(E,p,t.defaultQueryParams_,x.sessionId,x.arrayId):t.JSC$19995_channel_.connect(E,p,t.defaultQueryParams_);t.isInitialReconnectTimer_&&
!t.reconnectTimer_.isActive()&&t.reconnectTimer_.start()};
Fl.prototype.disconnect=function(t){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.gu())}finally{this.disconnectUi_=t||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),n4l(this),this.JSC$19995_channel_&&(this.JSC$19995_channel_.getState()==3&&bE9(this.JSC$19995_channel_),this.JSC$19995_channel_.disconnect()),this.disconnectUi_=0}};
Fl.prototype.sendMessage=function(t,E){var p=this,U;return _.q(function(x){switch(x.nextAddress){case 1:_.l0(x,2);if(!p.useAsyncBrowserChannelHandler_){x.jumpTo(2);break}return x.yield(p.connectPromise_,2);case 2:_.FQ(x);if(p.JSC$19995_disposed_)return x.return();U={_sc:t};E&&_.Kq.extend(U,E);if(p.reconnectTimer_.isActive()||(p.JSC$19995_channel_?p.JSC$19995_channel_.getState():0)==2){p.JSC$19995_pendingMessages_.push(U);x.jumpTo(6);break}if(!p.isChannelOpened()){x.jumpTo(6);break}_.l0(x,8);if(!p.useAsyncBrowserChannelHandler_||
DVL(p,t)){x.jumpTo(8);break}return x.yield(leo(p),8);case 8:_.FQ(x,0,0,1);p.isChannelOpened()&&(DVL(p,t)||NSb(p),n4l(p),mTt(p.JSC$19995_channel_,U));_.Gc(x,6,1);break;case 6:_.Gc(x,0)}})};
var DVL=function(t,E){return t.enableMdxAuthForConnectionOnly_?!0:t.disableMdxAuthForAdMessages_?Object.values(X_o).includes(E):t.disableMdxAuthForNonPlaybackMessages_?!Object.values(hd9).includes(E):t.disableMdxAuthForShortsMessages_?Object.values(ae7).includes(E):!1};
Fl.prototype.JSC$19916_channelOpened=function(){this.retryLogger_&&this.reconnectTimer_&&this.reconnectTimer_.getRetryCount()>0&&this.retryLogger_.logSuccess();this.isInitialReconnectTimer_?(this.reconnectTimer_.stop(),_.wi(this.reconnectTimer_),this.reconnectTimer_=new fNe(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1):this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19995_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)s8t(this);
else{var t=this.JSC$19995_pendingMessages_;this.JSC$19995_pendingMessages_=[];var E=t.length;NSb(this);Lf8(this,t,E);Pbg(this)}else Pbg(this)};
var s8t=function(t){var E,p;_.q(function(U){if(U.nextAddress==1)return _.l0(U,2),U.yield(leo(t),2);_.FQ(U);E=t.JSC$19995_pendingMessages_;t.JSC$19995_pendingMessages_=[];p=E.length;Lf8(t,E,p);Pbg(t);return _.Gc(U,0)})},Lf8=function(t,E,p){for(var U=0;U<p;++U)mTt(t.JSC$19995_channel_,E[U]);
Pbg(t)},Pbg=function(t){t.publish("handlerOpened");
t.JSC$19995_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.Y=Fl.prototype;_.Y.JSC$19916_channelError=function(t){var E=t==2&&this.JSC$19995_channel_.JSC$19909_lastStatusCode_==401;t==4||E||this.reconnectTimer_.start();this.publish("handlerError",t,E);E=Object.keys(c4g).find(function(p){return c4g[p]===t});
this.JSC$19995_channelErrorCounter.increment("BROWSER_CHANNEL",E!=null?E:"UNKNOWN")};
_.Y.JSC$19916_channelClosed=function(t,E){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(E)for(var p=E.length,U=0;U<p;++U){var x=E[U].map;x&&this.JSC$19995_pendingMessages_.push(x)}this.JSC$19995_channelClosedCounter.increment("BROWSER_CHANNEL");t&&this.pendingMapsOnClosedCounter.JSC$10208_streamzService.JSC$10063_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",t.length);E&&this.undeliveredMapsOnClosedCounter.JSC$10211_streamzService.JSC$10063_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
E.length)};
_.Y.JSC$19916_channelSuccess=function(t,E){E!=null&&t!=null&&this.channelMessageSentCounter.increment()};
_.Y.JSC$19916_getAdditionalParams=function(){var t={v:2};this.sCookie_&&(t.gsessionid=this.sCookie_);this.connectUi_!=0&&(t.ui=""+this.connectUi_);this.disconnectUi_!=0&&(t.ui=""+this.disconnectUi_);this.connectionParams_&&_.Kq.extend(t,this.connectionParams_);return t};
_.Y.JSC$19916_channelHandleArray=function(t){t[0]=="S"?this.sCookie_=t[1]:t[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19995_channel_.disconnect()):this.publish("handlerMessage",new H0d(t[0],t[1]));this.JSC$19995_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.Y.isChannelOpened=function(){return!!this.JSC$19995_channel_&&this.JSC$19995_channel_.getState()==3};
var n4l=function(t){if(t.JSC$19995_channel_){var E=t.JSC$19995_getXsrfToken_(),p=t.JSC$19995_channel_.JSC$19909_extraHeaders_||{};E?p["x-youtube-lounge-xsrf-token"]=E:delete p["x-youtube-lounge-xsrf-token"];t.JSC$19995_channel_.JSC$19909_extraHeaders_=p}},leo=function(t){if(t.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.gu();
if(!t.enableCachedUpdateAuthorizationHeader_)return TSC(t);t.updateAuthorizationHeaderPromise_===null&&(t.updateAuthorizationHeaderPromise_=TSC(t));return t.updateAuthorizationHeaderPromise_},TSC=function(t){return _.Mx(t.getAuthorizationHeader_().then(function(E){o4o(t,E)}).thenCatch(function(){}),function(){t.updateAuthorizationHeaderPromise_=null})},o4o=function(t,E){if(t.JSC$19995_channel_){var p=t.JSC$19995_channel_.JSC$19909_extraHeaders_||{};
E&&Object.keys(E).length>0?p=Object.assign({},p,E):delete p.Authorization;t.JSC$19995_channel_.JSC$19909_extraHeaders_=p}},NSb=function(t){t.getAuthorizationHeaderSync_&&!t.useAsyncBrowserChannelHandler_&&o4o(t,t.getAuthorizationHeaderSync_())};
_.Y=Fl.prototype;_.Y.setLoungeToken=function(t){(this.defaultQueryParams_.loungeIdToken=t)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19995_channel_){var E=this.JSC$19995_channel_.JSC$19909_extraHeaders_||{};t?E["X-YouTube-LoungeId-Token"]=t:delete E["X-YouTube-LoungeId-Token"];this.JSC$19995_channel_.JSC$19909_extraHeaders_=E}};
_.Y.getDeviceId=function(){return this.defaultQueryParams_.id};
_.Y.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.Y.reconnect=function(){var t=this.reconnectTimer_;t.delay_.fire();t.start()};
_.Y.safeReconnect_=function(){var t=this.JSC$19995_channel_,E=0;t.JSC$19909_backChannelRequest_&&E++;t.forwardChannelRequest_&&E++;E==0&&this.connect(this.connectionParams_,this.connectUi_)};var n8=function(t,E){var p=t.basePath;t.supportCors&&(p=t.scheme+"://"+t.domain+t.port+t.basePath);return _.ka(p+E,{})};
r28.prototype.sendRequest=function(t,E,p,U,x,A,m){t={format:A?"RAW":"JSON",method:t,context:this,timeout:5E3,withCredentials:!!m,onSuccess:_.GF(this.JSC$20002_onSuccess_,U,!A),onError:_.GF(this.onError_,x),onTimeout:_.GF(this.JSC$20002_onTimeout_,x)};p&&(t.postParams=p,t.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.PC(E,t)};
r28.prototype.JSC$20002_onSuccess_=function(t,E,p,U){E?t(U):t({text:p.responseText})};
r28.prototype.onError_=function(t,E){t(Error("Zk`"+E.status))};
r28.prototype.JSC$20002_onTimeout_=function(t){t(Error("$k"))};var J2C=function(t,E){return!!E&&(t.id==E||t.uuid==E)},Wfo=function(t){return{name:t.name,
screenId:t.id,loungeToken:t.token,dialId:t.uuid,screenIdType:t.idType,screenIdSecret:t.secret}},$Vb=function(t){return new z_(t)},Kfb=function(t){return Array.isArray(t)?_.vx(t,$Vb):[]},g8g=function(t){if(!t)return"null";
var E=t.token?".."+t.token.slice(-6):"-",p=t.uuid?".."+t.uuid.slice(-6):"-",U=t.secret?".."+t.secret.slice(-6):"-";return'{name:"'+t.name+'",id:'+t.id.substr(0,6)+"..,token:"+(E+",uuid:"+p+",idType:"+t.idType+",secret:")+(U+"}")},E85=function(t){return Array.isArray(t)?"["+_.vx(t,g8g).join(",")+"]":"null"};var aNK="",G_=null;var Leg=function(t,E){_.UH.call(this);var p=this;this.handler=t();this.handler.subscribe("handlerOpened",this.JSC$20009_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(U,x){p.onError(x)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=E};
_.u(Leg,_.UH);_.Y=Leg.prototype;_.Y.connect=function(t,E,p){this.handler.connect(t,E,p)};
_.Y.disconnect=function(t){this.handler.disconnect(t)};
_.Y.reconnect=function(){this.handler.reconnect()};
_.Y.getDeviceId=function(){return this.handler.getDeviceId()};
_.Y.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.Y.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.Y.JSC$20009_onOpened=function(){this.dispatchEvent("channelOpened");var t=this.handler,E=this.currentScreenId;_.o4("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!t.JSC$19995_channel_.useChunked_,sessionId:t.JSC$19995_channel_.sid_,arrayId:t.JSC$19995_channel_.JSC$19909_lastArrayId_});_.o4("yt-remote-session-screen-id",E);t=INo();E=gR5();_.zt(t,E)||t.push(E);h9e(t);X3o()};
_.Y.onClosed=function(){this.dispatchEvent("channelClosed")};
_.Y.onMessage=function(t){this.dispatchEvent(new IeC(t))};
_.Y.onError=function(t){this.dispatchEvent(new g4J(t?1:0))};
_.Y.sendMessage=function(t,E){this.handler.sendMessage(t,E)};
_.Y.setLoungeToken=function(t){this.handler.setLoungeToken(t)};
_.Y.dispose=function(){this.handler.dispose()};var sGd=function(t,E,p){var U=this;p=p===void 0?function(){return""}:p;
var x=x===void 0?new YUJ:x;var A=A===void 0?new _.oa:A;this.pathPrefix=t;this.defaultQueryParams=E;this.getXsrfToken=p;this.JSC$20012_pubsub=A;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new fNe(function(){var m;((m=U.channel)==null?void 0:S0C((new jUg(m,m.JSC$19877_channel_)).JSC$19887_channel_.forwardChannelRequestPool_))===0&&U.connect(U.connectionParams,U.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20012_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20012_channelOpenedCounter=new Bzd;this.JSC$20012_channelClosedCounter=new w3L;this.JSC$20012_channelMessageReceivedCounter=new VUo;this.JSC$20012_channelErrorCounter=new QGK};
sGd.prototype.connect=function(t,E){t=t===void 0?{}:t;E=E===void 0?0:E;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=t,this.connectUi=E,v48(this),(t=_.qO("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=t: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 dO(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,ybC(this))};
var ybC=function(t){_.vu(t.channel,"w",function(){t.channelState=3;t.reconnectTimer.reset();t.connectionParams=null;t.connectUi=0;for(var E=_.M(t.nonAckedMessagesOnChannelClosed),p=E.next();!p.done;p=E.next())p=p.value,t.channel&&t.channel.send(p);t.nonAckedMessagesOnChannelClosed=[];t.publish("webChannelOpened");t.JSC$20012_channelOpenedCounter.increment("WEB_CHANNEL")});
_.vu(t.channel,"x",function(){t.channelState=0;t.reconnectTimer.isActive()||t.publish("webChannelClosed");var E,p=(E=t.channel)==null?void 0:r4e(new jUg(E,E.JSC$19877_channel_));p&&(t.nonAckedMessagesOnChannelClosed=[].concat(_.KB(p)));t.JSC$20012_channelClosedCounter.increment("WEB_CHANNEL")});
_.vu(t.channel,"z",function(E){var p=E.data;p[0]==="gracefulReconnect"?(t.reconnectTimer.start(),t.channel&&t.channel.close()):t.publish("webChannelMessage",new H0d(p[0],p[1]));t.lastStatusCode=E.statusCode;t.JSC$20012_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.vu(t.channel,"y",function(){t.lastStatusCode===401||t.reconnectTimer.start();t.publish("webChannelError");t.JSC$20012_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.Y=sGd.prototype;_.Y.disconnect=function(t){this.disconnectUi=t===void 0?0:t;this.reconnectTimer.stop();v48(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.Y.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.Y.reconnect=function(){var t=this.reconnectTimer;t.delay_.fire();t.start()};
_.Y.sendMessage=function(t,E){this.channel&&(v48(this),t=Object.assign({},{_sc:t},E),this.channel.send(t))};
_.Y.setLoungeToken=function(t){t||this.reconnectTimer.stop();t?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=t:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var v48=function(t){var E=t.getXsrfToken();E?t.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=E:delete t.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.Y=sGd.prototype;_.Y.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.Y.publish=function(t){return this.JSC$20012_pubsub.publish.apply(this.JSC$20012_pubsub,[t].concat(_.KB(_.t9.apply(1,arguments))))};
_.Y.subscribe=function(t,E,p){return this.JSC$20012_pubsub.subscribe(t,E,p)};
_.Y.unsubscribe=function(t,E,p){return this.JSC$20012_pubsub.unsubscribe(t,E,p)};
_.Y.unsubscribeByKey=function(t){return this.JSC$20012_pubsub.unsubscribeByKey(t)};
_.Y.dispose=function(){this.JSC$20012_disposed||(this.JSC$20012_disposed=!0,_.wi(this.JSC$20012_pubsub),this.disconnect(),_.wi(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.Y.isDisposed=function(){return this.JSC$20012_disposed};var Dlg=function(t){_.UH.call(this);this.webChannelService=t();this.webChannelService.subscribe("webChannelOpened",this.JSC$20020_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.u(Dlg,_.UH);_.Y=Dlg.prototype;_.Y.connect=function(t,E){this.webChannelService.connect(t,E)};
_.Y.disconnect=function(t){this.webChannelService.disconnect(t)};
_.Y.reconnect=function(){this.webChannelService.reconnect()};
_.Y.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.Y.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.Y.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.Y.JSC$20020_onOpened=function(){this.dispatchEvent("channelOpened")};
_.Y.onClosed=function(){this.dispatchEvent("channelClosed")};
_.Y.onMessage=function(t){this.dispatchEvent(new IeC(t))};
_.Y.onError=function(){this.dispatchEvent(new g4J(this.webChannelService.lastStatusCode===401?1:0))};
_.Y.sendMessage=function(t,E){this.webChannelService.sendMessage(t,E)};
_.Y.setLoungeToken=function(t){this.webChannelService.setLoungeToken(t)};
_.Y.dispose=function(){this.webChannelService.dispose()};var t5L=Date.now(),NI=null,SUt=Array(50),y25=-1,c2g=!1;var L8=function(t){t=t===void 0?!1:t;_.PQ.call(this);this.pubSub_=new _.oa(t);_.ed(this,this.pubSub_)};
_.Oa(L8,_.PQ);L8.prototype.subscribe=function(t,E,p){return this.isDisposed()?0:this.pubSub_.subscribe(t,E,p)};
L8.prototype.unsubscribe=function(t,E,p){return this.isDisposed()?!1:this.pubSub_.unsubscribe(t,E,p)};
L8.prototype.unsubscribeByKey=function(t){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(t)};
L8.prototype.publish=function(t,E){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};_.Oa(Pz,L8);Pz.prototype.getScreens=function(){return this.screens};
Pz.prototype.contains=function(t){return!!uMK(this.screens,t)};
Pz.prototype.get=function(t){return t?lT(this.screens,t):null};
var Sqb=function(t,E){var p=t.get(E.uuid)||t.get(E.id);if(p)return t=p.name,p.id=E.id||p.id,p.name=E.name,p.token=E.token,p.uuid=E.uuid||p.uuid,p.name!=t;t.screens.push(E);return!0},cbK=function(t,E){var p=t.screens.length!=E.length;
t.screens=_.ae(t.screens,function(A){return!!uMK(E,A)});
for(var U=E.length,x=0;x<U;x++)p=Sqb(t,E[x])||p;return p},tBt=function(t,E){var p=t.screens.length;
t.screens=_.ae(t.screens,function(U){return!(U||E?!U!=!E?0:U.id==E.id:1)});
return t.screens.length<p};
Pz.prototype.info=function(t){DL(this.JSC$20024_logName_,t)};var Eq7=function(t,E,p,U,x){L8.call(this);this.JSC$20027_http_=t;this.pairingCode_=E;this.deviceId_=p;this.friendlyName_=U;this.enableShortLivedLoungeToken_=x;this.pollIndex_=0;this.JSC$20027_xhr_=null;this.JSC$20027_timer_=NaN};
_.u(Eq7,L8);_.Y=Eq7.prototype;_.Y.start=function(){!this.JSC$20027_xhr_&&isNaN(this.JSC$20027_timer_)&&this.poll_()};
_.Y.stop=function(){this.JSC$20027_xhr_&&(this.JSC$20027_xhr_.abort(),this.JSC$20027_xhr_=null);isNaN(this.JSC$20027_timer_)||(_.sB(this.JSC$20027_timer_),this.JSC$20027_timer_=NaN)};
_.Y.disposeInternal=function(){this.stop();L8.prototype.disposeInternal.call(this)};
_.Y.poll_=function(){this.JSC$20027_timer_=NaN;this.JSC$20027_xhr_=_.PC(n8(this.JSC$20027_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.Tg)(this.JSC$20029_onSuccess_,this),onError:(0,_.Tg)(this.onError_,this),onTimeout:(0,_.Tg)(this.JSC$20029_onTimeout_,this)})};
_.Y.JSC$20029_onSuccess_=function(t,E){this.JSC$20027_xhr_=null;t=E.screen||{};t.dialId=this.deviceId_;t.name=this.friendlyName_;E=-1;this.enableShortLivedLoungeToken_&&t.shortLivedLoungeToken&&t.shortLivedLoungeToken.value&&t.shortLivedLoungeToken.refreshIntervalMs&&(t.screenIdType="shortLived",t.loungeToken=t.shortLivedLoungeToken.value,E=t.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new z_(t),E)};
_.Y.onError_=function(t){this.JSC$20027_xhr_=null;t.status&&t.status==404?this.pollIndex_>=prg.length?this.publish("pairingFailed",Error("al")):(t=prg[this.pollIndex_],this.JSC$20027_timer_=_.NO((0,_.Tg)(this.poll_,this),t),this.pollIndex_++):this.publish("pairingFailed",Error("bl`"+t.status))};
_.Y.JSC$20029_onTimeout_=function(){this.JSC$20027_xhr_=null;this.publish("pairingFailed",Error("cl"))};
var prg=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.Oa(ow,Pz);_.Y=ow.prototype;_.Y.start=function(){T_(this)&&this.publish("screenChange");!_.WL("yt-remote-lounge-token-expiration")&&U3l(this);_.sB(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.NO((0,_.Tg)(this.start,this),1E4)};
_.Y.add=function(t,E){T_(this);Sqb(this,t);x35(this,!1);this.publish("screenChange");E(t);t.token||U3l(this)};
_.Y.remove=function(t,E){var p=T_(this);tBt(this,t)&&(x35(this,!1),p=!0);E(t);p&&this.publish("screenChange")};
_.Y.updateName=function(t,E,p,U){var x=T_(this),A=this.get(t.id);A?(A.name!=E&&(A.name=E,x35(this,!1),x=!0),p(t)):U(Error("dl"));x&&this.publish("screenChange")};
_.Y.disposeInternal=function(){_.sB(this.loungeTokenRefreshTimer_);ow.superClass_.disposeInternal.call(this)};
var U3l=function(t){if(t.screens.length){var E=_.vx(t.screens,function(U){return U.id}),p=n8(t.JSC$20031_http_,"/pairing/get_lounge_token_batch");
t.JSC$20031_http_.sendRequest("POST",p,{screen_ids:E.join(",")},(0,_.Tg)(t.handleLoungeTokens_,t),(0,_.Tg)(t.handleLoungeTokenError_,t))}};
ow.prototype.handleLoungeTokens_=function(t){T_(this);var E=this.screens.length;t=t&&t.screens||[];for(var p=t.length,U=0;U<p;++U){var x=t[U],A=this.get(x.screenId);A&&(A.token=x.loungeToken,--E)}x35(this,!E);E&&DL(this.JSC$20024_logName_,"Missed "+E+" lounge tokens.")};
ow.prototype.handleLoungeTokenError_=function(t){DL(this.JSC$20024_logName_,"Requesting lounge tokens failed: "+t)};
var T_=function(t){if(_.r("deprecate_pair_servlet_enabled"))return cbK(t,[]);var E=Kfb(Fe8());E=_.ae(E,function(p){return!p.uuid});
return cbK(t,E)},x35=function(t,E){lN8(_.vx(t.screens,Wfo));
E&&z97()};var zK=function(t,E){L8.call(this);this.getScreensToCheck_=E;E=(E=_.WL("yt-remote-online-screen-ids")||"")?E.split(","):[];for(var p={},U=this.getScreensToCheck_(),x=U.length,A=0;A<x;++A){var m=U[A].id;p[m]=_.zt(E,m)}this.screenIdSet_=p;this.JSC$20034_http_=t;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;A78("Initialized with "+(0,_.id)(this.screenIdSet_))};
_.u(zK,L8);zK.prototype.isOnline=function(t){return!!this.screenIdSet_[t]};
zK.prototype.start=function(){var t=parseInt(_.WL("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.Z1()-144E5<t?0:t)?YZ9(this):(this.fastCheckEndTime_=_.Z1()+3E5,_.o4("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
zK.prototype.isEmpty=function(){return _.Kq.isEmpty(this.screenIdSet_)};
zK.prototype.update=function(){A78("Updating availability on schedule.");var t=this.getScreensToCheck_(),E=_.Kq.filter(this.screenIdSet_,function(p,U){return p&&!!lT(t,U)},this);
MBC(this,E)};
var m3C=function(t,E,p){var U=n8(t.JSC$20034_http_,"/pairing/get_screen_availability");t.JSC$20034_http_.sendRequest("POST",U,{lounge_token:E.token},(0,_.Tg)(function(x){x=x.screens||[];for(var A=x.length,m=0;m<A;++m)if(x[m].loungeToken==E.token){p(x[m].status=="online");return}p(!1)},t),(0,_.Tg)(function(){p(!1)},t))};
zK.prototype.disposeInternal=function(){_.sB(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);L8.prototype.disposeInternal.call(this)};
var MBC=function(t,E){a:if(_.Kq.getCount(E)!=_.Kq.getCount(t.screenIdSet_))var p=!1;else{p=_.Kq.getKeys(E);for(var U=p.length,x=0;x<U;++x)if(!t.screenIdSet_[p[x]]){p=!1;break a}p=!0}p||(A78("Updated online screens: "+(0,_.id)(t.screenIdSet_)),t.screenIdSet_=E,t.publish("screenChange"));bvJ(t)},YZ9=function(t){isNaN(t.refreshTimer_)||_.sB(t.refreshTimer_);
t.refreshTimer_=_.NO((0,_.Tg)(t.requestScreenAvailability_,t),t.fastCheckEndTime_>0&&t.fastCheckEndTime_<_.Z1()?2E4:1E4)};
zK.prototype.requestScreenAvailability_=function(){_.sB(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var t=iv9(this);if(_.Kq.getCount(t)){var E=n8(this.JSC$20034_http_,"/pairing/get_screen_availability"),p={lounge_token:_.Kq.getKeys(t).join(",")};this.currentRequest_=this.JSC$20034_http_.sendRequest("POST",E,p,(0,_.Tg)(this.onScreenAvailability_,this,t),(0,_.Tg)(this.onScreenAvailabilityError_,this))}else MBC(this,{}),YZ9(this)};
zK.prototype.onScreenAvailability_=function(t,E){this.currentRequest_=null;var p=_.Kq.getKeys(iv9(this));if(_.y_(p,_.Kq.getKeys(t))){E=E.screens||[];p={};for(var U=E.length,x=0;x<U;++x)p[t[E[x].loungeToken]]=E[x].status=="online";MBC(this,p);YZ9(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
zK.prototype.onScreenAvailabilityError_=function(t){this.warn_("Screen availability failed: "+t);this.currentRequest_=null;YZ9(this)};
var A78=function(t){DL("OnlineScreenService",t)};
zK.prototype.warn_=function(t){DL("OnlineScreenService",t)};
var iv9=function(t){var E={};_.QE(t.getScreensToCheck_(),function(p){p.token?E[p.token]=p.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return E},bvJ=function(t){t=_.Kq.getKeys(_.Kq.filter(t.screenIdSet_,function(E){return E}));
t.sort(_.FJi);t.length?_.o4("yt-remote-online-screen-ids",t.join(","),60):_.$z("yt-remote-online-screen-ids")};_.Oa(Wz,Pz);_.Y=Wz.prototype;_.Y.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.Y.add=function(t,E,p){this.localScreenService_.add(t,E,p)};
_.Y.remove=function(t,E,p){this.localScreenService_.remove(t,E,p);this.onlineScreenService_.update()};
_.Y.updateName=function(t,E,p,U){this.localScreenService_.contains(t)?this.localScreenService_.updateName(t,E,p,U):(t="Updating name of unknown screen: "+t.name,DL(this.JSC$20024_logName_,t),U(Error(t)))};
_.Y.getScreens=function(t){return t?this.screens:T1K(this.screens,_.ae(this.automaticScreens_,function(E){return!this.contains(E)},this))};
_.Y.JSC$20039_getOnlineScreens=function(){return _.ae(this.getScreens(!0),function(t){return this.onlineScreenService_.isOnline(t.id)},this)};
var Hv9=function(t,E,p,U,x,A){t.info("getAutomaticScreenByIds "+p+" / "+E);p||(p=t.deviceToScreenId_[E]);var m=t.getScreens(),b=p?lT(m,p):null;p&&(t.disableAutomaticScreenCache_||b)||(b=lT(m,E));if(b){b.uuid=E;var f=lq(t,b);m3C(t.onlineScreenService_,f,function(B){x(B?f:null)})}else p?qZl(t,p,(0,_.Tg)(function(B){var R=lq(this,new z_({name:U,
screenId:p,loungeToken:B,dialId:E||""}));m3C(this.onlineScreenService_,R,function(V){x(V?R:null)})},t),A):x(null)};
Wz.prototype.JSC$20039_getScreenByPollingPairingCode=function(t,E,p,U,x,A){var m=this;this.info("getDialScreenByPairingCode "+t+" / "+E);var b=new Eq7(this.JSC$20037_http_,t,E,p,U);b.subscribe("pairingComplete",function(f,B){_.wi(b);x(lq(m,f),B)});
b.subscribe("pairingFailed",function(f){_.wi(b);A(f)});
b.start();return(0,_.Tg)(b.stop,b)};
var fcl=function(t,E){for(var p=t.screens.length,U=0;U<p;++U)if(t.screens[U].name==E)return t.screens[U];return null};
Wz.prototype.JSC$20039_getScreenByPairingCode=function(t,E,p,U){_.PC(n8(this.JSC$20037_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:t},timeout:5E3,onSuccess:(0,_.Tg)(function(x,A){x=new z_(A.screen||{});if(!x.name||fcl(this,x.name)){a:{A=x.name;for(var m=2,b=E(A,m);fcl(this,b);){m++;if(m>20)break a;b=E(A,m)}A=b}x.name=A}p(lq(this,x))},this),
onError:(0,_.Tg)(function(x){U(Error("el`"+x.status))},this),
onTimeout:(0,_.Tg)(function(){U(Error("fl"))},this)})};
var B$8=function(t,E,p){m3C(t.onlineScreenService_,E,p)};
Wz.prototype.disposeInternal=function(){_.wi(this.localScreenService_);_.wi(this.onlineScreenService_);Wz.superClass_.disposeInternal.call(this)};
var qZl=function(t,E,p,U){t.info("requestLoungeToken_ for "+E);var x={postParams:{screen_ids:E},method:"POST",context:t,onSuccess:function(A,m){A=m&&m.screens||[];A[0]&&A[0].screenId==E?p(A[0].loungeToken):U(Error("gl"))},
onError:function(){U(Error("hl"))}};
_.PC(n8(t.JSC$20037_http_,"/pairing/get_lounge_token_batch"),x)},wro=function(t){t.screens=t.localScreenService_.getScreens();
for(var E=_.Kq.transpose(t.deviceToScreenId_),p=t.screens.length,U=0;U<p;++U){var x=t.screens[U];x.uuid=E[x.id]||""}t.info("Updated manual screens: "+E85(t.screens))};
Wz.prototype.handleScreenChange_=function(){wro(this);this.publish("screenChange");this.onlineScreenService_.update()};
var puJ=function(t){RCg(t);t.localScreenService_=new ow(t.JSC$20037_http_);t.localScreenService_.subscribe("screenChange",(0,_.Tg)(t.handleScreenChange_,t));wro(t);t.disableAutomaticScreenCache_||(t.automaticScreens_=Kfb(_.WL("yt-remote-automatic-screen-cache")||[]));RCg(t);t.info("Initializing automatic screens: "+E85(t.automaticScreens_));t.onlineScreenService_=new zK(t.JSC$20037_http_,(0,_.Tg)(t.getScreens,t,!0));t.onlineScreenService_.subscribe("screenChange",(0,_.Tg)(function(){this.publish("onlineScreenChange")},
t))},lq=function(t,E){var p=t.get(E.id);
p?(p.uuid=E.uuid,E=p):((p=lT(t.automaticScreens_,E.uuid))?(p.id=E.id,p.token=E.token,E=p):t.automaticScreens_.push(E),t.disableAutomaticScreenCache_||VBJ(t));RCg(t);t.deviceToScreenId_[E.uuid]=E.id;_.o4("yt-remote-device-id-map",t.deviceToScreenId_,31536E3);return E},VBJ=function(t){t=_.ae(t.automaticScreens_,function(E){return E.idType!="shortLived"});
_.o4("yt-remote-automatic-screen-cache",_.vx(t,Wfo))},RCg=function(t){t.deviceToScreenId_=_.WL("yt-remote-device-id-map")||{}};
Wz.prototype.dispose=Wz.prototype.dispose;_.Oa($G,L8);var GK=function(t,E){t.screen_=E;t.publish("sessionScreen",t.screen_)},QNt=function(t,E){t.screen_&&(t.screen_.token=E,lq(t.JSC$20041_screenService_,t.screen_));
t.publish("sessionScreen",t.screen_)};
$G.prototype.onSessionStopped=function(t){this.isDisposed()||(t&&(np(this,""+t),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
$G.prototype.info=function(t){DL(this.JSC$20041_logName_,t)};
var np=function(t,E){DL(t.JSC$20041_logName_,E)};
$G.prototype.JSC$20043_getCastSession=function(){return null};
$G.prototype.setDisplayStatus=function(t){var E=this.receiver_;t?(E.displayStatus=new chrome.cast.ReceiverDisplayStatus(t,[]),E.displayStatus.showStop=!0):E.displayStatus=null;chrome.cast.setReceiverDisplayStatus(E,(0,_.Tg)(function(){this.info("Updated receiver status for "+E.friendlyName+": "+t)},this),(0,_.Tg)(function(){np(this,"Failed to update receiver status for: "+E.friendlyName)},this))};
$G.prototype.disposeInternal=function(){this.setDisplayStatus("");$G.superClass_.disposeInternal.call(this)};var ND=function(t,E,p){$G.call(this,t,E,"CastSession");var U=this;this.config_=p;this.JSC$20046_session_=null;this.JSC$20046_boundSessionUpdate_=(0,_.Tg)(this.JSC$20048_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.Tg)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.NO(function(){C29(U,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20046_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20046_isInitLoungeToken_=!1;this.JSC$20046_lastLoungeTokenRefreshError_="unknown"};
_.u(ND,$G);_.Y=ND.prototype;
_.Y.setCastSession=function(t){if(this.JSC$20046_session_){if(this.JSC$20046_session_==t)return;np(this,"Overriding cast session with new session object");jNJ(this);this.JSC$20046_isInitLoungeToken_=!1;this.JSC$20046_lastLoungeTokenRefreshError_="unknown";this.JSC$20046_session_.removeUpdateListener(this.JSC$20046_boundSessionUpdate_);this.JSC$20046_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20046_session_=t;this.JSC$20046_session_.addUpdateListener(this.JSC$20046_boundSessionUpdate_);this.JSC$20046_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);r77(this,"getMdxSessionStatus")};
_.Y.launchWithParams=function(t){this.info("launchWithParams no-op for Cast: "+(0,_.id)(t))};
_.Y.stop=function(){if(this.JSC$20046_session_)this.JSC$20046_session_.stop((0,_.Tg)(function(){this.onSessionStopped()},this),(0,_.Tg)(function(){this.onSessionStopped(Error("il"))},this));
else this.onSessionStopped(Error("jl"))};
_.Y.setDisplayStatus=function(){};
_.Y.disposeInternal=function(){this.info("disposeInternal");jNJ(this);this.JSC$20046_session_&&(this.JSC$20046_session_.removeUpdateListener(this.JSC$20046_boundSessionUpdate_),this.JSC$20046_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20046_session_=null;$G.prototype.disposeInternal.call(this)};
var d3J=function(t,E){_.sB(t.getLoungeTokenTimeoutKey_);t.getLoungeTokenTimeoutKey_=0;E==0?k6C(t):t.getLoungeTokenTimeoutKey_=_.NO(function(){k6C(t)},E)},k6C=function(t){r77(t,"getLoungeToken");
_.sB(t.onLoungeTokenTimeoutKey_);t.onLoungeTokenTimeoutKey_=_.NO(function(){uj8(t,null)},3E4)},r77=function(t,E){t.info("sendYoutubeMessage_: "+E+" "+(0,_.id)(void 0));
var p={};p.type=E;t.JSC$20046_session_?t.JSC$20046_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",p,function(){},(0,_.Tg)(function(){np(this,"Failed to send message: "+E+".")},t)):np(t,"Sending yt message without session: "+(0,_.id)(p))};
ND.prototype.onYoutubeMessage_=function(t,E){if(!this.isDisposed())if(E)if(E=_.oi(E),_.o0(E))switch(t=""+E.type,E=E.data||{},this.info("onYoutubeMessage_: "+t+" "+(0,_.id)(E)),t){case "mdxSessionStatus":C29(this,E);break;case "loungeToken":uj8(this,E);break;default:np(this,"Unknown youtube message: "+t)}else np(this,"Unable to parse message.");else np(this,"No data in message.")};
var J7L=function(t,E){if(E)t.info("onConnectedScreenId_: Received screenId: "+E),t.screen_&&t.screen_.id==E||t.getScreen_(E,function(p){GK(t,p)},function(){return t.onSessionStopped()},5);
else t.onSessionStopped(Error("kl"))},gqK=function(t,E,p){t.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(E));
var U=new z_(E);Icd(t,U,function(x){x?(t.JSC$20046_isInitLoungeToken_=!0,lq(t.JSC$20041_screenService_,U),GK(t,U),t.JSC$20046_lastLoungeTokenRefreshError_="unknown",d3J(t,p)):(_.fR(Error("ll`"+JSON.stringify(E))),t.onSessionStopped())},5)},C29=function(t,E){_.sB(t.sessionStatusTimeoutKey_);
t.sessionStatusTimeoutKey_=0;if(E)t.config_.enableCastLoungeToken&&E.loungeToken?E.deviceId?t.screen_&&t.screen_.uuid==E.deviceId||(E.loungeTokenRefreshIntervalMs?gqK(t,{name:t.receiver_.friendlyName,screenId:E.screenId,loungeToken:E.loungeToken,dialId:E.deviceId,screenIdType:"shortLived"},E.loungeTokenRefreshIntervalMs):(_.fR(Error("nl`"+JSON.stringify(E))),J7L(t,E.screenId))):(_.fR(Error("ml`"+JSON.stringify(E))),J7L(t,E.screenId)):J7L(t,E.screenId);else t.onSessionStopped(Error("kl"))},uj8=function(t,
E){_.sB(t.onLoungeTokenTimeoutKey_);
t.onLoungeTokenTimeoutKey_=0;var p=null;if(E)if(E.loungeToken){var U;((U=t.screen_)==null?void 0:U.token)==E.loungeToken&&(p="staleLoungeToken")}else p="missingLoungeToken";else p="noLoungeTokenResponse";p?(t.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(E)+", error: "+p)),t.JSC$20046_lastLoungeTokenRefreshError_=p,d3J(t,3E4)):(QNt(t,E.loungeToken),t.JSC$20046_isInitLoungeToken_=!1,t.JSC$20046_lastLoungeTokenRefreshError_="unknown",d3J(t,E.loungeTokenRefreshIntervalMs))};
ND.prototype.getScreen_=function(t,E,p,U){_.sB(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;Hv9(this.JSC$20041_screenService_,this.receiver_.label,t,this.receiver_.friendlyName,(0,_.Tg)(function(x){x?E(x):U>=0?(np(this,"Screen "+t+" appears to be offline. "+U+" retries left."),this.getScreenTimeoutKey_=_.NO((0,_.Tg)(this.getScreen_,this,t,E,p,U-1),300)):p(Error("ol"))},this),p)};
var Icd=function(t,E,p,U){_.sB(t.JSC$20046_checkScreenAvailabilityTimeoutKey_);t.JSC$20046_checkScreenAvailabilityTimeoutKey_=0;B$8(t.JSC$20041_screenService_,E,function(x){x||U<0?p(x):t.JSC$20046_checkScreenAvailabilityTimeoutKey_=_.NO(function(){Icd(t,E,p,U-1)},300)})};
ND.prototype.JSC$20043_getCastSession=function(){return this.JSC$20046_session_};
ND.prototype.JSC$20048_onSessionUpdate_=function(t){this.isDisposed()||t||(np(this,"Cast session died."),this.onSessionStopped())};
var jNJ=function(t){_.sB(t.getScreenTimeoutKey_);t.getScreenTimeoutKey_=0;_.sB(t.JSC$20046_checkScreenAvailabilityTimeoutKey_);t.JSC$20046_checkScreenAvailabilityTimeoutKey_=0;_.sB(t.sessionStatusTimeoutKey_);t.sessionStatusTimeoutKey_=0;_.sB(t.onLoungeTokenTimeoutKey_);t.onLoungeTokenTimeoutKey_=0;_.sB(t.getLoungeTokenTimeoutKey_);t.getLoungeTokenTimeoutKey_=0};var DE=function(t,E,p,U){$G.call(this,t,E,"DialSession");this.config_=U;this.JSC$20050_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20050_theme_=p;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20050_deferredLaunchDeadlineTimer_=NaN;this.JSC$20050_boundSessionUpdate_=(0,_.Tg)(this.JSC$20052_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20050_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20050_isInitLoungeToken_=!1;this.JSC$20050_lastLoungeTokenRefreshError_="unknown"};
_.u(DE,$G);DE.prototype.setCastSession=function(t){this.JSC$20050_session_=t;this.JSC$20050_session_.addUpdateListener(this.JSC$20050_boundSessionUpdate_)};
DE.prototype.launchWithParams=function(t){this.connectData_=t;this.deferredLaunch_()};
DE.prototype.stop=function(){Zv7(this);if(this.JSC$20050_session_)this.JSC$20050_session_.stop((0,_.Tg)(this.onSessionStopped,this,null),(0,_.Tg)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
DE.prototype.disposeInternal=function(){Zv7(this);this.JSC$20050_session_&&this.JSC$20050_session_.removeUpdateListener(this.JSC$20050_boundSessionUpdate_);this.JSC$20050_session_=null;$G.prototype.disposeInternal.call(this)};
var OvJ=function(t){var E;return!!(t.config_.enableDialLoungeToken&&((E=t.JSC$20050_session_)==null?0:E.getDialAppInfo))},hC8=function(t){t.cancelPolling_=t.JSC$20041_screenService_.JSC$20039_getScreenByPollingPairingCode(t.reversePairingCode_,t.receiver_.label,t.receiver_.friendlyName,OvJ(t),function(E,p){t.cancelPolling_=function(){};
t.JSC$20050_isInitLoungeToken_=!0;GK(t,E);E.idType=="shortLived"&&p>0&&Xrt(t,p)},function(E){t.cancelPolling_=function(){};
t.onSessionStopped(E)})};
DE.prototype.JSC$20052_onSessionUpdate_=function(t){this.isDisposed()||t||(np(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var act=function(t){var E={};E.pairingCode=t.reversePairingCode_;E.theme=t.JSC$20050_theme_;Nzt()&&(E.env_useStageMdx=1);return _.T3(E)},eCg=function(t){return new Promise(function(E){t.reversePairingCode_=kIl();
if(t.connectData_){var p=new chrome.cast.DialLaunchResponse(!0,act(t));E(p);hC8(t)}else t.deferredLaunch_=function(){_.sB(t.JSC$20050_deferredLaunchDeadlineTimer_);t.deferredLaunch_=function(){};
t.JSC$20050_deferredLaunchDeadlineTimer_=NaN;var U=new chrome.cast.DialLaunchResponse(!0,act(t));E(U);hC8(t)},t.JSC$20050_deferredLaunchDeadlineTimer_=_.NO(function(){t.deferredLaunch_()},100)})},zCC=function(t,E,p){t.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(E));
var U=new z_(E);return(new Promise(function(x){FRL(t,U,function(A){A?(t.JSC$20050_isInitLoungeToken_=!0,lq(t.JSC$20041_screenService_,U),GK(t,U),Xrt(t,p)):_.fR(Error("ql`"+JSON.stringify(E)));x(A)},5)})).then(function(x){return x?new chrome.cast.DialLaunchResponse(!1):eCg(t)})},lct=function(t,E){var p=t.launchData_.receiver.label,U=t.receiver_.friendlyName;
return(new Promise(function(x){Hv9(t.JSC$20041_screenService_,p,E,U,function(A){A&&A.token&&GK(t,A);x(A)},function(A){np(t,"Failed to get DIAL screen: "+A);
x(null)})})).then(function(x){return x&&x.token?new chrome.cast.DialLaunchResponse(!1):eCg(t)})},FRL=function(t,E,p,U){_.sB(t.JSC$20050_checkScreenAvailabilityTimeoutKey_);
t.JSC$20050_checkScreenAvailabilityTimeoutKey_=0;B$8(t.JSC$20041_screenService_,E,function(x){x||U<0?p(x):t.JSC$20050_checkScreenAvailabilityTimeoutKey_=_.NO(function(){FRL(t,E,p,U-1)},300)})},Xrt=function(t,E){t.info("getDialAppInfoWithTimeout_ "+E);
OvJ(t)&&(_.sB(t.getDialAppInfoTimeoutKey_),t.getDialAppInfoTimeoutKey_=0,E==0?G6e(t):t.getDialAppInfoTimeoutKey_=_.NO(function(){G6e(t)},E))},G6e=function(t){OvJ(t)&&t.JSC$20050_session_.getDialAppInfo(function(E){t.info("getDialAppInfo dialLaunchData: "+JSON.stringify(E));
E=E.extraData||{};var p=null;if(E.loungeToken){var U;((U=t.screen_)==null?void 0:U.token)==E.loungeToken&&(p="staleLoungeToken")}else p="missingLoungeToken";p?(t.JSC$20050_lastLoungeTokenRefreshError_=p,Xrt(t,3E4)):(t.JSC$20050_isInitLoungeToken_=!1,t.JSC$20050_lastLoungeTokenRefreshError_="unknown",QNt(t,E.loungeToken),Xrt(t,E.loungeTokenRefreshIntervalMs))},function(E){t.info("getDialAppInfo error: "+E);
t.JSC$20050_lastLoungeTokenRefreshError_="noLoungeTokenResponse";Xrt(t,3E4)})},Zv7=function(t){_.sB(t.JSC$20050_checkScreenAvailabilityTimeoutKey_);
t.JSC$20050_checkScreenAvailabilityTimeoutKey_=0;_.sB(t.getDialAppInfoTimeoutKey_);t.getDialAppInfoTimeoutKey_=0;t.cancelPolling_();t.cancelPolling_=function(){};
_.sB(t.JSC$20050_deferredLaunchDeadlineTimer_)};var sf=function(t,E){$G.call(this,t,E,"ManualSession");this.JSC$20054_deferredLaunchDeadlineTimer_=_.NO((0,_.Tg)(this.launchWithParams,this,null),150)};
_.u(sf,$G);sf.prototype.stop=function(){this.onSessionStopped()};
sf.prototype.setCastSession=function(){};
sf.prototype.launchWithParams=function(){_.sB(this.JSC$20054_deferredLaunchDeadlineTimer_);this.JSC$20054_deferredLaunchDeadlineTimer_=NaN;var t=lT(this.JSC$20041_screenService_.getScreens(),this.receiver_.label);if(t)GK(this,t);else this.onSessionStopped(Error("rl"))};
sf.prototype.disposeInternal=function(){_.sB(this.JSC$20054_deferredLaunchDeadlineTimer_);this.JSC$20054_deferredLaunchDeadlineTimer_=NaN;$G.prototype.disposeInternal.call(this)};var SX=function(t,E){L8.call(this);this.config_=E;this.JSC$20057_screenService_=t;this.JSC$20057_appId_=E.appId||"233637DE";this.JSC$20057_theme_=E.theme||"cl";this.disableDial_=E.disableCastApi||!1;this.forceMirroring_=E.forceMirroring||!1;this.JSC$20057_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.Tg)(this.onReceiverAction_,this)};
_.u(SX,L8);
SX.prototype.init=function(t,E){chrome.cast.timeout.requestSession=3E4;var p=new chrome.cast.SessionRequest(this.JSC$20057_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.r("desktop_enable_cast_connect")&&(p.androidReceiverCompatible=!0);this.disableDial_||(p.dialRequest=new chrome.cast.DialRequest("YouTube"));var U=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;t=t||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var x=(0,_.Tg)(this.onReceiverUpdated_,this);
p=new chrome.cast.ApiConfig(p,(0,_.Tg)(this.onSessionEstablished_,this),x,U,t);p.customDialLaunchCallback=(0,_.Tg)(this.onDialLaunchRequested_,this);chrome.cast.initialize(p,(0,_.Tg)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),$lJ(),this.JSC$20057_screenService_.subscribe("onlineScreenChange",(0,_.Tg)(this.JSC$20059_onScreenChange_,this)),this.customReceivers_=nqb(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Tg)(function(A){this.warn_("Failed to set initial custom receivers: "+
(0,_.id)(A))},this)),this.publish("yt-remote-cast2-availability-change",N$C(this)),E(!0))},this),(0,_.Tg)(function(A){this.warn_("Failed to initialize API: "+(0,_.id)(A));
E(!1)},this))};
SX.prototype.setConnectedScreenStatus=function(t,E){Lp("Setting connected screen ID: "+t+" -> "+E);if(this.JSC$20057_session_){var p=this.JSC$20057_session_.screen_;if(!t||p&&p.id!=t)Lp("Unsetting old screen status: "+this.JSC$20057_session_.receiver_.friendlyName),Pt(this,null)}if(t&&E){if(!this.JSC$20057_session_){t=lT(this.JSC$20057_screenService_.getScreens(),t);if(!t){Lp("setConnectedScreenStatus: Unknown screen.");return}if(t.idType=="shortLived"){Lp("setConnectedScreenStatus: Screen with id type to be short lived.");
return}p=D39(this,t);p||(Lp("setConnectedScreenStatus: Connected receiver not custom..."),p=new chrome.cast.Receiver(t.uuid?t.uuid:t.id,t.name),p.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(p),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Tg)(function(U){this.warn_("Failed to set initial custom receivers: "+(0,_.id)(U))},this)));
Lp("setConnectedScreenStatus: new active receiver: "+p.friendlyName);Pt(this,new sf(this.JSC$20057_screenService_,p),!0)}this.JSC$20057_session_.setDisplayStatus(E)}else Lp("setConnectedScreenStatus: no screen.")};
var D39=function(t,E){return E?E3(t.customReceivers_,function(p){return J2C(E,p.label)},t):null};
SX.prototype.setLaunchParams=function(t){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20057_session_?this.JSC$20057_session_.launchWithParams(t):this.warn_("Setting connection data without a session")};
SX.prototype.JSC$20059_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20057_session_?(this.JSC$20057_session_.stop(),Pt(this,null)):Lp("Stopping non-existing session")};
SX.prototype.requestSession=function(){chrome.cast.requestSession((0,_.Tg)(this.onSessionEstablished_,this),(0,_.Tg)(this.onSessionRequestFailed_,this))};
SX.prototype.disposeInternal=function(){this.JSC$20057_screenService_.unsubscribe("onlineScreenChange",(0,_.Tg)(this.JSC$20059_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.NK(_.ws("yt.mdx.remote.debug.handlers_")||[],Tzt);_.wi(this.JSC$20057_session_);L8.prototype.disposeInternal.call(this)};
var Lp=function(t){DL("Controller",t)};
SX.prototype.warn_=function(t){DL("Controller",t)};
var Tzt=function(t){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(t)},N$C=function(t){return t.hasCastReceiver_||!!t.customReceivers_.length||!!t.JSC$20057_session_},Pt=function(t,E,p){E!=t.JSC$20057_session_&&(_.wi(t.JSC$20057_session_),(t.JSC$20057_session_=E)?(p?t.publish("yt-remote-cast2-receiver-resumed",E.receiver_):t.publish("yt-remote-cast2-receiver-selected",E.receiver_),E.subscribe("sessionScreen",(0,_.Tg)(t.onSessionScreen_,t,E)),E.subscribe("sessionFailed",
function(){return sNK(t,E)}),E.screen_?t.publish("yt-remote-cast2-session-change",E.screen_):p&&t.JSC$20057_session_.launchWithParams(null)):t.publish("yt-remote-cast2-session-change",null))},sNK=function(t,E){t.JSC$20057_session_==E&&t.publish("yt-remote-cast2-session-failed")};
_.Y=SX.prototype;_.Y.onSessionScreen_=function(t,E){this.JSC$20057_session_==t&&(E||Pt(this,null),this.publish("yt-remote-cast2-session-change",E))};
_.Y.onReceiverAction_=function(t,E){if(!this.isDisposed())if(t)switch(t.friendlyName=chrome.cast.unescape(t.friendlyName),Lp("onReceiverAction_ "+t.label+" / "+t.friendlyName+"-- "+E),E){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20057_session_)if(this.JSC$20057_session_.receiver_.label!=t.label)Lp("onReceiverAction_: Stopping active receiver: "+this.JSC$20057_session_.receiver_.friendlyName),this.JSC$20057_session_.stop();else{Lp("onReceiverAction_: Casting to active receiver.");this.JSC$20057_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20057_session_.screen_);break}switch(t.receiverType){case chrome.cast.ReceiverType.CUSTOM:Pt(this,new sf(this.JSC$20057_screenService_,t));break;case chrome.cast.ReceiverType.DIAL:Pt(this,new DE(this.JSC$20057_screenService_,t,this.JSC$20057_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:Pt(this,new ND(this.JSC$20057_screenService_,t,this.config_));break;default:this.warn_("Unknown receiver type: "+t.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20057_session_&&
this.JSC$20057_session_.receiver_.label==t.label?this.JSC$20057_session_.stop():this.warn_("Stopping receiver w/o session: "+t.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.Y.onDialLaunchRequested_=function(t){if(this.isDisposed())return Promise.reject(Error("sl"));var E=t.receiver;E.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+E.friendlyName),E.receiverType=chrome.cast.ReceiverType.DIAL);var p=this.JSC$20057_session_?this.JSC$20057_session_.receiver_:null;if(!p||p.label!=E.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+E.friendlyName),Promise.reject(Error("tl"));if(p&&p.label==E.label&&p.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20057_session_.screen_)return Lp("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20057_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+p.receiverType+'" to "dial" for '+E.friendlyName);Pt(this,new DE(this.JSC$20057_screenService_,E,this.JSC$20057_theme_,this.config_))}E=this.JSC$20057_session_;E.launchData_=t;E.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(t=E.launchData_.extraData||{},p=t.screenId||null,OvJ(E)&&t.loungeToken?t.loungeTokenRefreshIntervalMs?t=zCC(E,{name:E.receiver_.friendlyName,screenId:t.screenId,loungeToken:t.loungeToken,dialId:E.launchData_.receiver.label,screenIdType:"shortLived"},t.loungeTokenRefreshIntervalMs):(_.fR(Error("pl`"+JSON.stringify(t))),t=lct(E,p)):t=lct(E,p)):t=eCg(E);return t};
_.Y.onSessionEstablished_=function(t){var E=this;if(!this.isDisposed()&&!this.forceMirroring_){Lp("New cast session ID: "+t.sessionId);var p=t.receiver;if(p.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20057_session_)if(p.receiverType==chrome.cast.ReceiverType.CAST)Lp("Got resumed cast session before resumed mdx connection."),p.friendlyName=chrome.cast.unescape(p.friendlyName),Pt(this,new ND(this.JSC$20057_screenService_,p,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var U=this.JSC$20057_session_.receiver_,x=lT(this.JSC$20057_screenService_.getScreens(),U.label);x&&J2C(x,p.label)&&U.receiverType!=chrome.cast.ReceiverType.CAST&&p.receiverType==chrome.cast.ReceiverType.CAST&&(Lp("onSessionEstablished_: manual to cast session change "+p.friendlyName),_.wi(this.JSC$20057_session_),this.JSC$20057_session_=new ND(this.JSC$20057_screenService_,p,this.config_),this.JSC$20057_session_.subscribe("sessionScreen",(0,_.Tg)(this.onSessionScreen_,this,this.JSC$20057_session_)),
this.JSC$20057_session_.subscribe("sessionFailed",function(){return sNK(E,E.JSC$20057_session_)}),this.JSC$20057_session_.launchWithParams(null));
this.JSC$20057_session_.setCastSession(t)}}};
_.Y.JSC$20059_getCastSession=function(){return this.JSC$20057_session_?this.JSC$20057_session_.JSC$20043_getCastSession():null};
_.Y.onSessionRequestFailed_=function(t){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.id)(t)),t.code!=chrome.cast.ErrorCode.CANCEL&&Pt(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.Y.onReceiverUpdated_=function(t){Lp("Receiver availability updated: "+t);if(!this.isDisposed()){var E=N$C(this);this.hasCastReceiver_=t==chrome.cast.ReceiverAvailability.AVAILABLE;N$C(this)!=E&&this.publish("yt-remote-cast2-availability-change",N$C(this))}};
var nqb=function(t){var E=t.JSC$20057_screenService_.JSC$20039_getOnlineScreens(),p=t.JSC$20057_session_&&t.JSC$20057_session_.receiver_;t=_.vx(E,function(U){p&&J2C(U,p.label)&&(p=null);var x=U.uuid?U.uuid:U.id,A=D39(this,U);A?(A.label=x,A.friendlyName=U.name):(A=new chrome.cast.Receiver(x,U.name),A.receiverType=chrome.cast.ReceiverType.CUSTOM);return A},t);
p&&(p.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(p=new chrome.cast.Receiver(p.label,p.friendlyName),p.receiverType=chrome.cast.ReceiverType.CUSTOM),t.push(p));return t};
SX.prototype.JSC$20059_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=nqb(this),Lp("Updating custom receivers: "+(0,_.id)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Tg)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",N$C(this)))};
SX.prototype.setLaunchParams=SX.prototype.setLaunchParams;SX.prototype.setConnectedScreenStatus=SX.prototype.setConnectedScreenStatus;SX.prototype.stopSession=SX.prototype.JSC$20059_stopSession;SX.prototype.getCastSession=SX.prototype.JSC$20059_getCastSession;SX.prototype.requestSession=SX.prototype.requestSession;SX.prototype.init=SX.prototype.init;SX.prototype.dispose=SX.prototype.dispose;var LRe=_.CG(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),jod=[],b4l=_.JC(LRe);var P2l=function(t){t.audioTrackId=null;t.trackData=null;t.playerState=-1;t.hasPrevious=!1;t.hasNext=!1;t.playerTime_=0;t.playerTimeAt_=_.Z1();t.seekableStart_=0;t.seekableEnd_=0;t.duration_=0;t.loadedTime=0;t.liveIngestionTime_=NaN;t.isLive_=!1};
_.Y=cz.prototype;
_.Y.reset=function(t){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;t&&(this.index=t.index,this.listId=t.listId,this.videoId=t.videoId,this.playerState=t.playerState,this.volume=t.volume,this.muted=t.muted,this.audioTrackId=t.audioTrackId,this.trackData=t.trackData,this.hasPrevious=t.hasPrevious,this.hasNext=t.hasNext,this.playerTime_=t.playerTime,this.playerTimeAt_=t.playerTimeAt,this.seekableStart_=t.seekableStart,this.seekableEnd_=t.seekableEnd,this.duration_=t.duration,this.loadedTime=
t.loadedTime,this.liveIngestionTime_=t.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.Y.stopPlayer=function(){this.index=-1;this.videoId="";P2l(this)};
_.Y.isPlaying=function(){return this.playerState==1};
_.Y.isBuffering=function(){return this.playerState==3};
_.Y.isAdPlaying=function(){return this.playerState==1081};
var TK=function(t,E){t.playerTime_=E;t.playerTimeAt_=_.Z1()},T$5=function(t){switch(t.playerState){case 1:case 1081:return(_.Z1()-t.playerTimeAt_)/1E3+t.playerTime_;
case -1E3:return 0}return t.playerTime_};
cz.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.Z1()-this.playerTimeAt_)/1E3:0):this.duration_};
var oq9=function(t,E,p){var U=t.videoId;t.videoId=E;t.index=p;E!=U&&P2l(t)},WR8=function(t){var E={};
E.index=t.index;E.listId=t.listId;E.videoId=t.videoId;E.playerState=t.playerState;E.volume=t.volume;E.muted=t.muted;E.audioTrackId=t.audioTrackId;E.trackData=_.Kq.unsafeClone(t.trackData);E.hasPrevious=t.hasPrevious;E.hasNext=t.hasNext;E.playerTime=t.playerTime_;E.playerTimeAt=t.playerTimeAt_;E.seekableStart=t.seekableStart_;E.seekableEnd=t.seekableEnd_;E.duration=t.duration_;E.loadedTime=t.loadedTime;E.liveIngestionTime=t.liveIngestionTime_;return E};
cz.prototype.clone=function(){return new cz(WR8(this))};var Up=function(t,E){L8.call(this);var p=this;this.state_=0;this.connection_=t;this.contextSubscriptions_=[];this.actionQueue_=new qU8;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.Tg)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.Tg)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.Tg)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.Tg)(this.onCloudviewAvailabilityChange_,this);var U=0;t?(U=t.getProxyState(),
U!=3&&(t.subscribe("proxyStateChange",this.setState_,this),$38(this))):U=3;U!=0&&(E?this.setState_(U):_.NO(function(){p.setState_(U)},0));
(t=uRt())&&KRt(this,t);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.u(Up,L8);Up.prototype.getState=function(){return this.state_};
Up.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
Up.prototype.reconnect=function(){this.connection_.reconnect()};
var ok=function(t){return new cz(t.connection_.getPlayerContextData())};
_.Y=Up.prototype;_.Y.play=function(){Wt(this)?(this.castMedia_?this.castMedia_.play(null,_.SM,vql(this,"play")):$0(this,"play"),y7d(this,1,T$5(ok(this))),this.publish("remotePlayerChange")):Kp(this,this.play)};
_.Y.pause=function(){Wt(this)?(this.castMedia_?this.castMedia_.pause(null,_.SM,vql(this,"pause")):$0(this,"pause"),y7d(this,2,T$5(ok(this))),this.publish("remotePlayerChange")):Kp(this,this.pause)};
_.Y.seekTo=function(t){if(Wt(this)){if(this.castMedia_){var E=ok(this),p=new chrome.cast.media.SeekRequest;p.currentTime=t;E.isPlaying()||E.isBuffering()?p.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:p.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(p,_.SM,vql(this,"seekTo",{newTime:t}))}else $0(this,"seekTo",{newTime:t});y7d(this,3,t);this.publish("remotePlayerChange")}else Kp(this,_.GF(this.seekTo,t))};
_.Y.stop=function(){if(Wt(this)){this.castMedia_?this.castMedia_.stop(null,_.SM,vql(this,"stopVideo")):$0(this,"stopVideo");var t=ok(this);t.stopPlayer();vt(this,t);this.publish("remotePlayerChange")}else Kp(this,this.stop)};
_.Y.setVolume=function(t,E){if(Wt(this)){var p=ok(this);if(this.castSession_){if(p.volume!=t){var U=Math.round(t)/100;this.castSession_.setReceiverVolumeLevel(U,(0,_.Tg)(function(){s3("set receiver volume: "+U)},this),(0,_.Tg)(function(){this.warn_("failed to set receiver volume.")},this))}p.muted!=E&&this.castSession_.setReceiverMuted(E,(0,_.Tg)(function(){s3("set receiver muted: "+E)},this),(0,_.Tg)(function(){this.warn_("failed to set receiver muted.")},this))}else{var x={volume:t,
muted:E};p.volume!=-1&&(x.delta=t-p.volume);$0(this,"setVolume",x)}p.muted=E;p.volume=t;vt(this,p)}else Kp(this,_.GF(this.setVolume,t,E))};
_.Y.setAudioTrack=function(t,E){Wt(this)?(E=E.getLanguageInfo().getId(),$0(this,"setAudioTrack",{videoId:t,audioTrackId:E}),t=ok(this),t.audioTrackId=E,vt(this,t)):Kp(this,_.GF(this.setAudioTrack,t,E))};
_.Y.addVideo=function(t){Wt(this)?$0(this,"addVideo",{videoId:t}):Kp(this,_.GF(this.addVideo,t))};
_.Y.addPlaylist=function(t){Wt(this)?$0(this,"addVideos",{listId:t}):Kp(this,_.GF(this.addPlaylist,t))};
_.Y.addVideos=function(t){t.length==0?this.warn_("Ignore add videos request due to empty list"):Wt(this)?$0(this,"addVideos",{videoIds:t.join(",")}):Kp(this,_.GF(this.addVideos,t))};
_.Y.JSC$20069_removeVideo=function(t){Wt(this)?$0(this,"removeVideo",{videoId:t}):Kp(this,_.GF(this.JSC$20069_removeVideo,t))};
_.Y.JSC$20069_insertVideo=function(t){Wt(this)?$0(this,"insertVideo",{videoId:t}):Kp(this,_.GF(this.JSC$20069_insertVideo,t))};
_.Y.playVideo=function(t,E,p,U,x,A,m){U=U===void 0?null:U;x=x===void 0?null:x;A=A===void 0?null:A;m=m===void 0?null:m;var b=ok(this),f={videoId:t};p!==void 0&&(f.currentIndex=p);oq9(b,t,p||0);E!==void 0&&(TK(b,E),f.currentTime=E);U&&(f.listId=U);x&&(f.playerParams=x);A&&(f.clickTrackingParams=A);m&&(f.locationInfo=(0,_.id)(m));$0(this,"setPlaylist",f);U||vt(this,b)};
_.Y.nextVideo=function(t,E){if(Wt(this)){if(t&&E){var p=ok(this);oq9(p,t,E);vt(this,p)}$0(this,"next")}else Kp(this,_.GF(this.nextVideo,t,E))};
_.Y.clearPlaylist=function(){if(Wt(this)){$0(this,"clearPlaylist");var t=ok(this);t.reset();vt(this,t);this.publish("remotePlayerChange")}else Kp(this,this.clearPlaylist)};
_.Y.dispose=function(){if(this.state_!=3){var t=this.state_;this.state_=3;this.publish("proxyStateChange",t,this.state_)}L8.prototype.dispose.call(this)};
_.Y.disposeInternal=function(){SZC(this);this.connection_=null;this.actionQueue_.clear();KRt(this,null);L8.prototype.disposeInternal.call(this)};
var $38=function(t){_.QE("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(E){this.contextSubscriptions_.push(this.connection_.subscribe(E,_.GF(this.onProxyEvent_,E),this))},t)},SZC=function(t){_.QE(t.contextSubscriptions_,function(E){this.connection_.unsubscribeByKey(E)},t);
t.contextSubscriptions_.length=0},Wt=function(t){return t.getState()==1},Kp=function(t,E){t.actionQueue_.getCount()<50&&t.actionQueue_.enqueue(E)},y7d=function(t,E,p){var U=ok(t);
TK(U,p);U.playerState!=-1E3&&(U.playerState=E);vt(t,U)},$0=function(t,E,p){t.connection_.sendMessage(E,p)},vt=function(t,E){SZC(t);
t.connection_.setPlayerContextData(WR8(E));$38(t)};
Up.prototype.setState_=function(t){if((t!=this.state_||t==2)&&this.state_!=3&&t!=0){var E=this.state_;this.state_=t;this.publish("proxyStateChange",E,t);if(t==1)for(;!this.actionQueue_.isEmpty();)t=this.actionQueue_,Rhb(t),t.front_.pop().apply(this);else t==3&&this.dispose()}};
Up.prototype.onProxyEvent_=function(t,E){this.publish(t,E)};
var KRt=function(t,E){t.castSession_&&(t.castSession_.removeUpdateListener(t.boundCastStatusListener_),t.castSession_.removeMediaListener(t.boundCastMediaListener_),t.onCastMediaChange_(null));t.castSession_=E;if(t.castSession_&&(s3("Setting cast session: "+t.castSession_.sessionId),t.castSession_.addUpdateListener(t.boundCastStatusListener_),t.castSession_.addMediaListener(t.boundCastMediaListener_),t.castSession_.media.length))t.onCastMediaChange_(t.castSession_.media[0])};
Up.prototype.onCastStatusUpdate_=function(t){if(!t)this.onCastMediaChange_(null),KRt(this,null);else if(this.castSession_.receiver.volume){t=this.castSession_.receiver.volume;var E=ok(this),p=Math.round(100*t.level||0);if(E.volume!=p||E.muted!=t.muted)s3("Cast volume update: "+t.level+(t.muted?" muted":"")),E.volume=p,E.muted=!!t.muted,vt(this,E)}};
Up.prototype.onCastMediaChange_=function(t){s3("Cast media: "+!!t);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=t)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),c7t(this),this.publish("remotePlayerChange")};
var c7t=function(t){var E=t.castMedia_.media,p=t.castMedia_.customData;if(E&&p){var U=ok(t);E.contentId!=U.videoId&&s3("Cast changing video to: "+E.contentId);U.videoId=E.contentId;U.playerState=p.playerState;TK(U,t.castMedia_.getEstimatedTime());vt(t,U)}else s3("No cast media video. Ignoring state update.")};
Up.prototype.onCastMediaUpdate_=function(t){if(t)c7t(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
Up.prototype.onCloudviewAvailabilityChange_=function(){var t=uRt();t&&KRt(this,t)};
Up.prototype.warn_=function(t){DL("CP",t)};
var vql=function(t,E,p){return(0,_.Tg)(function(U){this.warn_("Failed to "+E+" with cast v2 channel. Error code: "+U.code);U.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+E+" using MDx browser channel."),$0(this,E,p))},t)};var xS=function(t,E,p,U){U=U===void 0?!1:U;L8.call(this);var x=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$20074_http_=t;this.enableConnectWithInitialState_=U;this.listeners_.push(_.OG(window,"beforeunload",function(){x.JSC$20077_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new cz;this.currentScreenId_=E.id;this.currentScreenIdType_=E.idType;this.channelService=Pct(this.JSC$20074_http_,p,this.JSC$20077_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){t_7(x)});
this.channelService.listen("channelClosed",function(){y4("Channel closed");isNaN(x.connectTimerId_)?GIt(!0):GIt();x.dispose()});
this.channelService.listen("channelError",function(A){GIt();isNaN(x.getReconnectTimeout_())?(A==1&&x.currentScreenIdType_=="shortLived"&&x.publish("browserChannelAuthError",A),y4("Channel error: "+A+" without reconnection"),x.dispose()):(x.reconnecting_=!0,y4("Channel error: "+A+" with reconnection in "+x.getReconnectTimeout_()+" ms"),EDJ(x,2))});
this.channelService.listen("channelMessage",function(A){p2J(x,A)});
this.channelService.setLoungeToken(E.token);this.subscribe("remoteQueueChange",function(){var A=x.playerContext_.videoId;Z0C()&&_.o4("yt-remote-session-video-id",A)})};
_.u(xS,L8);
xS.prototype.connect=function(t,E){if(E){var p=E.listId,U=E.videoId,x=E.videoIds,A=E.playerParams,m=E.clickTrackingParams,b=E.index,f={videoId:U},B=E.currentTime,R=E.locationInfo;E=E.loopMode;B!==void 0&&(f.currentTime=B<=5?0:B);A&&(f.playerParams=A);R&&(f.locationInfo=R);m&&(f.clickTrackingParams=m);p&&(f.listId=p);x&&x.length>0&&(f.videoIds=x.join(","));b!==void 0&&(f.currentIndex=b);this.enableConnectWithInitialState_&&(f.loopMode=E||"LOOP_MODE_OFF");p&&(this.playerContext_.listId=p);this.playerContext_.videoId=
U;this.playerContext_.index=b||0;this.playerContext_.state=3;TK(this.playerContext_,B);this.autoplayMode_="UNSUPPORTED";p=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";y4("Connecting with "+p+" and params: "+(0,_.id)(f));this.channelService.connect({method:p,params:(0,_.id)(f)},t,e9l())}else y4("Connecting without params"),this.channelService.connect({},t,e9l());UpK(this)};
xS.prototype.setLoungeToken=function(t){this.channelService.setLoungeToken(t)};
xS.prototype.dispose=function(){this.isDisposed()||(_.Oy("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),EDJ(this,3));L8.prototype.dispose.call(this)};
xS.prototype.disposeInternal=function(){xpC(this);AQd(this);Y1g(this);_.sB(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.sB(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.RUD(this.listeners_);this.listeners_.length=0;this.channelService.dispose();L8.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var M_C=function(t){return E3(t.connectedDevices_,function(E){return E.type=="LOUNGE_SCREEN"})},y4=function(t){DL("conn",t)},EDJ=function(t,E){t.publish("proxyStateChange",E)},UpK=function(t){t.connectTimerId_=_.NO(function(){y4("Connecting timeout");
t.JSC$20077_disconnect_(1)},2E4)},xpC=function(t){_.sB(t.connectTimerId_);
t.connectTimerId_=NaN},Y1g=function(t){_.sB(t.reconnectedCheckScreenTimeout_);
t.reconnectedCheckScreenTimeout_=NaN},bVL=function(t){AQd(t);
t.playingSyncTimerId_=_.NO(function(){mpJ(t,"getNowPlaying")},2E4)},AQd=function(t){_.sB(t.playingSyncTimerId_);
t.playingSyncTimerId_=NaN},t_7=function(t){y4("Channel opened");
t.reconnecting_&&(t.reconnecting_=!1,Y1g(t),t.reconnectedCheckScreenTimeout_=_.NO(function(){y4("Timing out waiting for a screen.");t.JSC$20077_disconnect_(1)},15E3))},q1g=function(t,E){var p=null;
if(E){var U=M_C(t);U&&(p={clientName:U.clientName,deviceMake:U.brand,deviceModel:U.model,osVersion:U.osVersion})}_.Oy("yt.mdx.remote.remoteClient_",p);E&&(xpC(t),Y1g(t));p=t.channelService.isChannelOpened()&&isNaN(t.connectTimerId_);E==p?E&&(EDJ(t,1),mpJ(t,"getSubtitlesTrack")):E?(t.getOtherConnectedRemoteId_()&&t.playerContext_.reset(),EDJ(t,1),mpJ(t,"getNowPlaying"),iVe(t)):t.JSC$20077_disconnect_(1)},HV8=function(t,E){var p=E.params.videoId;
delete E.params.videoId;p==t.playerContext_.videoId&&(_.Kq.isEmpty(E.params)?t.playerContext_.trackData=null:t.playerContext_.trackData=E.params,t.publish("remotePlayerChange"))},fY7=function(t,E,p){var U=E.params.videoId||E.params.video_id,x=parseInt(E.params.currentIndex,10);
t.playerContext_.listId=E.params.listId||t.playerContext_.listId;oq9(t.playerContext_,U,x);t.publish("remoteQueueChange",p)},B5o=function(t,E){E.params=E.params||{};
fY7(t,E,"NOW_PLAYING_MAY_CHANGE");t.onStateChange_(E);t.publish("autoplayDismissed")};
xS.prototype.onStateChange_=function(t){var E=parseInt(t.params.currentTime||t.params.current_time,10);TK(this.playerContext_,isNaN(E)?0:E);E=parseInt(t.params.state,10);E=isNaN(E)?-1:E;E==-1&&this.playerContext_.playerState==-1E3&&(E=-1E3);this.playerContext_.playerState=E;E=Number(t.params.loadedTime);this.playerContext_.loadedTime=isNaN(E)?0:E;E=Number(t.params.duration);this.playerContext_.duration_=isNaN(E)?0:E;E=this.playerContext_;var p=Number(t.params.liveIngestionTime);E.liveIngestionTime_=
p;E.isLive_=isNaN(p)?!1:!0;E=this.playerContext_;p=Number(t.params.seekableStartTime);t=Number(t.params.seekableEndTime);E.seekableStart_=isNaN(p)?0:p;E.seekableEnd_=isNaN(t)?0:t;this.playerContext_.playerState==1?bVL(this):AQd(this);this.publish("remotePlayerChange")};
xS.prototype.onAdStateChange_=function(t){if(this.playerContext_.playerState!=-1E3){var E=1085;switch(parseInt(t.params.adState,10)){case 1:E=1081;break;case 2:E=1084;break;case 0:E=1083}this.playerContext_.playerState=E;t=parseInt(t.params.currentTime,10);TK(this.playerContext_,isNaN(t)?0:t);this.publish("remotePlayerChange")}};
var w2e=function(t,E){var p=E.params.muted=="true";t.playerContext_.volume=parseInt(E.params.volume,10);t.playerContext_.muted=p;t.publish("remotePlayerChange")},RwL=function(t,E){t.autoplayVideoId_=E.params.videoId;
t.publish("nowAutoplaying",parseInt(E.params.timeout,10))},V_e=function(t,E){t.autoplayVideoId_=E.params.videoId||null;
t.publish("autoplayUpNext",t.autoplayVideoId_)},Q_9=function(t,E){t.autoplayMode_=E.params.autoplayMode;
t.publish("autoplayModeChange",t.autoplayMode_);t.autoplayMode_=="DISABLED"&&t.publish("autoplayDismissed")},CWd=function(t,E){var p=E.params.hasNext=="true";
t.playerContext_.hasPrevious=E.params.hasPrevious=="true";t.playerContext_.hasNext=p;t.publish("previousNextChange")};
xS.prototype.isCapabilitySupportedOnConnectedDevices_=function(t){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var E=_.M(this.connectedDevices_),p=E.next();!p.done;p=E.next())if(!p.value.capabilities.has(t))return!1;return!0};
var p2J=function(t,E){E=E.message;E.params?y4("Received: action="+E.action+", params="+(0,_.id)(E.params)):y4("Received: action="+E.action+" {}");switch(E.action){case "loungeStatus":E=_.oi(E.params.devices);t.connectedDevices_=_.vx(E,function(U){return new FZ(U)});
E=!!E3(t.connectedDevices_,function(U){return U.type=="LOUNGE_SCREEN"});
q1g(t,E);E=t.isCapabilitySupportedOnConnectedDevices_("mlm");t.publish("multiStateLoopEnabled",E);break;case "loungeScreenDisconnected":PVC(t.connectedDevices_,function(U){return U.type=="LOUNGE_SCREEN"});
q1g(t,!1);break;case "remoteConnected":var p=new FZ(_.oi(E.params.device));E3(t.connectedDevices_,function(U){return U.equals(p)})||_.OOO(t.connectedDevices_,p);
break;case "remoteDisconnected":p=new FZ(_.oi(E.params.device));PVC(t.connectedDevices_,function(U){return U.equals(p)});
break;case "gracefulDisconnect":break;case "playlistModified":fY7(t,E,"QUEUE_MODIFIED");break;case "nowPlaying":B5o(t,E);break;case "onStateChange":t.onStateChange_(E);break;case "onAdStateChange":t.onAdStateChange_(E);break;case "onVolumeChanged":w2e(t,E);break;case "onSubtitlesTrackChanged":HV8(t,E);break;case "nowAutoplaying":RwL(t,E);break;case "autoplayDismissed":t.publish("autoplayDismissed");break;case "autoplayUpNext":V_e(t,E);break;case "onAutoplayModeChanged":Q_9(t,E);break;case "onHasPreviousNextChanged":CWd(t,
E);break;case "requestAssistedSignIn":t.publish("assistedSignInRequested",E.params.authCode);break;case "onLoopModeChanged":t.publish("loopModeChange",E.params.loopMode);break;default:y4("Unrecognized action: "+E.action)}};
_.Y=xS.prototype;_.Y.getProxyState_=function(){var t=3;this.isDisposed()||(t=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(t=1):t=2);return t};
_.Y.JSC$20077_disconnect_=function(t){y4("Disconnecting with "+t);_.Oy("yt.mdx.remote.remoteClient_",null);xpC(this);this.publish("beforeDisconnect",t);t==1&&GIt();this.channelService.disconnect(t);this.dispose()};
_.Y.getPlayerContextData_=function(){var t=this.playerContext_;this.clientVideoId_&&(t=this.playerContext_.clone(),oq9(t,this.clientVideoId_,t.index));return WR8(t)};
_.Y.setPlayerContextData_=function(t){var E=this,p=new cz(t);p.videoId&&p.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=p.videoId,_.sB(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.NO(function(){if(E.clientVideoId_){var x=E.clientVideoId_;E.clientVideoId_=null;E.playerContext_.videoId!=x&&mpJ(E,"getNowPlaying")}},5E3));
var U=[];this.playerContext_.listId==p.listId&&this.playerContext_.videoId==p.videoId&&this.playerContext_.index==p.index||U.push("remoteQueueChange");this.playerContext_.playerState==p.playerState&&this.playerContext_.volume==p.volume&&this.playerContext_.muted==p.muted&&T$5(this.playerContext_)==T$5(p)&&(0,_.id)(this.playerContext_.trackData)==(0,_.id)(p.trackData)||U.push("remotePlayerChange");this.playerContext_.reset(t);_.QE(U,function(x){this.publish(x)},this)};
_.Y.getOtherConnectedRemoteId_=function(){var t=this.channelService.getDeviceId(),E=E3(this.connectedDevices_,function(p){return p.type=="REMOTE_CONTROL"&&p.id!=t});
return E?E.id:""};
_.Y.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.Y.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.Y.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.Y.JSC$20077_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var iVe=function(t){_.sB(t.idleDisconnectTimerId_);t.idleDisconnectTimerId_=_.NO(function(){t.JSC$20077_disconnect_(1)},864E5)},mpJ=function(t,E,p){p?y4("Sending: action="+E+", params="+(0,_.id)(p)):y4("Sending: action="+E);
t.channelService.sendMessage(E,p)};
xS.prototype.sendMessageWithUserAction_=function(t,E){mpJ(this,t,E);iVe(this)};
xS.prototype.JSC$20077_getXsrfToken_=function(){var t=_.$a.get("SAPISID","")||_.$a.get("__Secure-1PAPISID",void 0)||"",E=_.$a.get("__Secure-3PAPISID","")||"";if(!t&&!E)return"";t=_.S$(_.Lg(t),2);E=_.S$(_.Lg(E),2);return _.S$(_.Lg(","+t+","+E),2)};
xS.prototype.subscribe=xS.prototype.subscribe;xS.prototype.unsubscribeByKey=xS.prototype.unsubscribeByKey;xS.prototype.getProxyState=xS.prototype.getProxyState_;xS.prototype.disconnect=xS.prototype.JSC$20077_disconnect_;xS.prototype.getPlayerContextData=xS.prototype.getPlayerContextData_;xS.prototype.setPlayerContextData=xS.prototype.setPlayerContextData_;xS.prototype.getOtherConnectedRemoteId=xS.prototype.getOtherConnectedRemoteId_;xS.prototype.getReconnectTimeout=xS.prototype.getReconnectTimeout_;
xS.prototype.getAutoplayMode=xS.prototype.getAutoplayMode_;xS.prototype.getAutoplayVideoId=xS.prototype.getAutoplayVideoId_;xS.prototype.reconnect=xS.prototype.JSC$20077_reconnect_;xS.prototype.sendMessage=xS.prototype.sendMessageWithUserAction_;xS.prototype.getXsrfToken=xS.prototype.JSC$20077_getXsrfToken_;xS.prototype.isCapabilitySupportedOnConnectedDevices=xS.prototype.isCapabilitySupportedOnConnectedDevices_;var Kde=function(t){Pz.call(this,"ScreenServiceProxy");this.instance_=t;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.Tg)(this.JSC$20080_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.Tg)(this.onOnlineScreenChange_,this)))};
_.u(Kde,Pz);_.Y=Kde.prototype;_.Y.getScreens=function(t){return this.instance_.$_gs(t)};
_.Y.contains=function(t){return!!this.instance_.$_c(t)};
_.Y.get=function(t){return this.instance_.$_g(t)};
_.Y.start=function(){this.instance_.$_st()};
_.Y.add=function(t,E,p){this.instance_.$_a(t,E,p)};
_.Y.remove=function(t,E,p){this.instance_.$_r(t,E,p)};
_.Y.updateName=function(t,E,p,U){this.instance_.$_un(t,E,p,U)};
_.Y.disposeInternal=function(){for(var t=this.subscriptionKeys_.length,E=0;E<t;++E)this.instance_.$_ubk(this.subscriptionKeys_[E]);this.subscriptionKeys_.length=0;this.instance_=null;Pz.prototype.disposeInternal.call(this)};
_.Y.JSC$20080_onScreenChange_=function(){this.publish("screenChange")};
_.Y.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
Wz.prototype.$_st=Wz.prototype.start;Wz.prototype.$_gspc=Wz.prototype.JSC$20039_getScreenByPairingCode;Wz.prototype.$_gsppc=Wz.prototype.JSC$20039_getScreenByPollingPairingCode;Wz.prototype.$_c=Wz.prototype.contains;Wz.prototype.$_g=Wz.prototype.get;Wz.prototype.$_a=Wz.prototype.add;Wz.prototype.$_un=Wz.prototype.updateName;Wz.prototype.$_r=Wz.prototype.remove;Wz.prototype.$_gs=Wz.prototype.getScreens;Wz.prototype.$_gos=Wz.prototype.JSC$20039_getOnlineScreens;Wz.prototype.$_s=Wz.prototype.subscribe;
Wz.prototype.$_ubk=Wz.prototype.unsubscribeByKey;var Ld8=null,yXb=!1,Z48=null,tR=null,$de=null,Ep=[];var j_g=new _.wx("yt-menu"),rQg=function(){},dpJ=function(t,E,p){t=E=="right-click"?p.rightClickMenuPopupHint:p.menuPopupHint;
if(!(kSJ(E)>10))return E=E||"default",j_g.set(E+"-impression",kSJ(E)+1),t},kSJ=function(t){return parseInt(j_g.get((t||"default")+"-impression")||0,10)};
_.gW(rQg);var uPt=function(){this.contexts_=new WeakMap;this.JSC$20086_networkService_=this.activeContext_=null},JQ9=function(t,E,p){var U=t.contexts_.get(E);
U||(U=new Vx5(t.JSC$20086_networkService_),t.contexts_.set(E,U));t.activeContext_=U;p&&t.activeContext_.reset();t.activeContext_.start();return t.activeContext_};var AR=_.$RD(function(t){var E=_.Gg("DIV");t&&(E.className=t);E.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";t=_.Gg("DIV");_.qhr(t,"200px","200px");E.appendChild(t);document.body.appendChild(E);t=E.offsetWidth-E.clientWidth;_.ng(E);return t});var M5=_.z3("kevlar_watch_page_horizontal_margin",24),AJd=_.z3("kevlar_watch_page_columns_top_padding",24),cXt=426+M5*2,YS=_.z3("kevlar_watch_two_column_width_threshold",1E3),E2g=M5*2,pst=_.z3("kevlar_watch_secondary_width",402),xAd=_.z3("kevlar_watch_max_player_width",1280),Ynb=_.z3("kevlar_watch_flexy_metadata_height",136),UA7=E2g+310+M5,teK=E2g+360+M5;var SP=function(){};
SP.prototype.enqueue=function(){var t=this,E;return _.q(function(p){if(t.isCounterfactual())return(E=t.getCounterfactualData())&&t.shouldLogCounterfactualImpression()&&t.sendImpressionEndpoints(E),p.return();t.doEnqueue();_.Do(p)})};
SP.prototype.sendImpressionEndpoints=function(t){_.d1.getInstance().triggerOptionalAction("yt-service-request",{},t[0])};var ct=function(t,E){this.renderer=t;this.page=E};
_.u(ct,SP);ct.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
ct.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
ct.prototype.shouldLogCounterfactualImpression=function(){return!0};
ct.prototype.doEnqueue=function(){var t=_.rG(this.page);t&&t.pause();this.renderer.impressionCommand&&_.d1.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.bP(_.d1.getInstance(),[this.renderer.promoCommand],this.page)};var IYd=function(t,E){this.renderer=t;this.resolver=_.fd();this.JSC$20098_enforcementCounter=new _.Fnp;E?this.JSC$20098_playerManager=_.rG(E):this.JSC$20098_playerManager=null;_.F$(1,!0)};
_.u(IYd,SP);_.Y=IYd.prototype;_.Y.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var t=[];this.renderer.impressionEndpoints.forEach(function(E){(E=_.AJ(E))&&t.push(E)});
return t}};
_.Y.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.Y.shouldLogCounterfactualImpression=function(){var t=_.b68();t?(this.JSC$20098_enforcementCounter.increment("POPUP"),_.F$(3)):_.F$(2);return t};
_.Y.cancel=function(){this.resolver.promise.cancel()};
_.Y.doEnqueue=function(){var t=this;_.b68()?(this.JSC$20098_enforcementCounter.increment("POPUP"),_.F$(3),gD8(this)):this.JSC$20098_playerManager?(this.resolver.promise.then(function(){gD8(t)}),ZVd(this.resolver,this.JSC$20098_playerManager)):_.F$(2)};
var ZVd=function(t,E){var p=_.fd();E.getPlayerPromise().then(function(U){p.resolve(U)});
p.promise.then(function(U){U.addEventListener("onAbnormalityDetected",t.resolve);_.Mx(t.promise,function(){U.removeEventListener("onAbnormalityDetected",t.resolve)})});
t.promise.thenCatch(function(){p.promise.cancel()})},gD8=function(t){_.F$(3);
var E={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:t.renderer}};E=_.d1.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:E},{});Promise.all(E).then(function(){OV8();t.JSC$20098_playerManager&&t.JSC$20098_playerManager.pause()})},OV8=function(){pVb(function(t,E){i_5(t,E);
t===0?_.F$(7):_.F$(4)})};var X2t=function(t,E){this.renderer=t;this.page=E;this.resolver=_.fd()};
_.u(X2t,SP);_.Y=X2t.prototype;_.Y.cancel=function(){this.resolver.promise.cancel()};
_.Y.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.Y.isCounterfactual=function(){return!this.renderer.isVisible};
_.Y.shouldLogCounterfactualImpression=function(){return!0};
_.Y.doEnqueue=function(){var t=this;this.resolver.promise.then(function(){var p={popup:{mealbarPromoRenderer:t.renderer},popupType:"MEALBAR"};_.d1.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:p},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var E=_.rG(this.page);E&&hwC(this.resolver,E)}break;default:this.resolver.resolve()}};
var hwC=function(t,E){var p=_.fd();E.getPlayerPromise().then(function(U){p.resolve(U)});
p.promise.then(function(U){U.addEventListener("onAdEnd",t.resolve);_.Mx(t.promise,function(){U.removeEventListener("onAdEnd",t.resolve)})});
t.promise.thenCatch(function(){p.promise.cancel()})};var aY8=function(t,E){this.renderer=t;this.page=E};
_.u(aY8,SP);_.Y=aY8.prototype;_.Y.cancel=function(){this.JSC$20106_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20106_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20106_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.Y.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.Y.isCounterfactual=function(){return!this.renderer.isVisible};
_.Y.shouldLogCounterfactualImpression=function(){return!0};
_.Y.doEnqueue=function(){var t=this,E,p;((E=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(p=E.playbackUpsellDialogTriggerConditionData)==null?void 0:p.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20106_downloadedVideosCountSelectorUnsubscriber=_.EA(_.QM(),yA9,function(U,x){U>x&&(ewl(t),t.cancel())}):ewl(this)};
var ewl=function(t){var E={popup:{upsellDialogRenderer:t.renderer},popupType:"MODAL"};_.d1.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:E},{});(t=_.rG(t.page))&&t.pause()};var tm={},Fzt=(tm.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",tm.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",tm.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",tm.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",tm.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",tm.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",tm.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",tm),zwb=function(t,E){this.renderer=t;this.targetManager=
E};
_.u(zwb,SP);_.Y=zwb.prototype;_.Y.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20113_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20113_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20113_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.Y.getCounterfactualData=function(){if(this.isCounterfactual()){var t;return(t=this.renderer.promoConfig)==null?void 0:t.impressionEndpoints}};
_.Y.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.Y.shouldLogCounterfactualImpression=function(){return!0};
_.Y.doEnqueue=function(){var t=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20113_downloadedVideosCountSelectorUnsubscriber=_.EA(_.QM(),yA9,function(E,p){t.renderer.targetId&&E>p&&(Mvo(t.targetManager,t.renderer.targetId,lY7(t)),t.cancel())});
break;default:Mvo(this.targetManager,this.renderer.targetId,lY7(this))}};
var lY7=function(t){var E;if((E=t.renderer.suggestedPosition)==null?0:E.type)var p=Fzt[t.renderer.suggestedPosition.type];p||(p="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:t.renderer},popupType:"HINT",position:p}}};var GSC=function(){this.previousPage=null},nDJ;
GSC.prototype.registerPromoCommand=function(t,E){N5t(this,void 0,void 0,_.k(t.roadblock,oNL),void 0,void 0,E)};
var N5t=function(t,E,p,U,x,A,m){t.previousPage!==m&&t.pendingTooltipPromo&&t.pendingTooltipPromo.cancel();t.previousPage=m;x?(t.pendingEnforcementPromo&&t.pendingEnforcementPromo.cancel(),t.pendingEnforcementPromo=new IYd(x,m),t.pendingEnforcementPromo.enqueue()):A?(t.pendingCommandWrapperPromo=new ct(A,m),t.pendingCommandWrapperPromo.enqueue()):U?(t.pendingRoadblockPromo&&t.pendingRoadblockPromo.cancel(),t.pendingRoadblockPromo=new aY8(U,m),t.pendingRoadblockPromo.enqueue()):E?(t.pendingMealbarPromo&&
t.pendingMealbarPromo.cancel(),t.pendingMealbarPromo=new X2t(E,m),t.pendingMealbarPromo.enqueue()):p&&(t.pendingTooltipPromo&&t.pendingTooltipPromo.cancel(),t.pendingTooltipPromo=new zwb(p,_.SV()),t.pendingTooltipPromo.enqueue())},Dp5=function(){nDJ||(nDJ=new GSC);
return nDJ};var s_e=function(){this.horizontal=!1},LzL=function(t,E){t.horizontal=E};
s_e.prototype.position=function(t,E,p,U){U=U===void 0?1:U;t=this.delta(t)*U+E;U=Math.max(E,p);return t>=Math.min(E,p)&&t<=U?t:p};
s_e.prototype.axis=function(t){t=this.direction(t);return t==="up"||t==="down"?"Y":"X"};var Es=function(t,E,p){E=E===void 0?_.c5():E;this.target=t;this.manager=E;this.touchAction=p;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Es.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(_.KB(this.events)));for(var t=_.M(this.events),E=t.next();!E.done;E=t.next())this.listen(E.value)}};
Es.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.KB(this.events)));for(var t=_.M(this.events),E=t.next();!E.done;E=t.next())this.unlisten(E.value)}};
Es.prototype.listen=function(t){this.eventMap[t]&&this.target.addEventListener(t,this.eventMap[t])};
Es.prototype.unlisten=function(t){this.eventMap[t]&&this.target.removeEventListener(t,this.eventMap[t])};var p9=function(){s_e.apply(this,arguments)};
_.u(p9,s_e);p9.prototype.direction=function(t){var E=t.detail;t=E.deltaY;E=E.deltaX;return t&&!this.horizontal?t>0?"down":"up":E&&this.horizontal?E>0?"right":"left":"none"};
p9.prototype.distance=function(t){return Math.abs(this.delta(t))};
p9.prototype.delta=function(t){var E=this.direction(t),p=t.detail;t=p.deltaX;p=p.deltaY;return E==="up"||E==="down"?p||0:t||0};
p9.prototype.velocity=function(t){var E=this.direction(t),p=t.detail;t=p.velocityX;p=p.velocityY;return Math.abs(E==="up"||E==="down"?p||0:t||0)};var Us=function(t,E,p,U,x,A){x=x===void 0?new p9:x;A=A===void 0?_.c5():A;Es.call(this,E,A,U);var m=this;this.element=t;this.target=E;this.config=p;this.input=x;this.manager=A;this.events=["panstart","panmove","panend"];this.onPanStart=function(){m.config.draggingClass&&m.element.classList.add(m.config.draggingClass);m.config.startAction&&m.config.startAction()};
this.onPanMove=function(b){var f=PW9(m,b);if(f){m.move(b,f);f.fade&&m.fade(b,f);var B=m.input.direction(b);f.moveAction&&f.moveAction(T5J(m,b,f),B)}};
this.onPanEnd=function(b){var f,B,R,V,Q,C;return _.q(function(d){if(d.nextAddress==1){m.animationRequestId&&cancelAnimationFrame(m.animationRequestId);m.animationRequestId=void 0;f=PW9(m,b);if(!f)return d.return();B=f;R=B.triggerAction;V=B.fade;Q=B.disableFinish;C=B.translateBack;var I=m.input.velocity(b),O=m.input.distance(b),a=m.threshold(f);return I>.3&&O>10||O>a?Q?d.jumpTo(6):V?d.yield(oD5(m,b),6):d.yield(Wz5(m,b,f),6):C?d.yield(m.translateBack(b),3):d.jumpTo(3)}d.nextAddress!=3&&R&&R();m.config.draggingClass&&
m.element.classList.remove(m.config.draggingClass);m.reset();_.Do(d)})};
t=Object.keys(p.triggers);this.directions=new Set(t);LzL(this.input,this.directions.has("right")||this.directions.has("left"))};
_.u(Us,Es);Us.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var PW9=function(t,E){E=t.input.direction(E);return t.config.triggers[E]};
Us.prototype.move=function(t,E){var p=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var U=p.input.axis(t),x=p.input.position(t,p.config.startPosition,E.endPosition,E.moveRatio||1);p.element.style.transform="translate"+U+"("+x+"px)";p.animationRequestId=void 0}))};
var T5J=function(t,E,p){var U=p.moveRatio||1;p=Math.abs(t.config.startPosition-p.endPosition);return Math.min(t.input.distance(E)*U,p)/p};
Us.prototype.fade=function(t,E){var p=E.endOpacity;t=T5J(this,t,E);t>0&&(this.element.style.opacity=""+(((p||0)-1)*t+1))};
Us.prototype.threshold=function(t){return t.threshold?t.threshold:Math.abs(t.endPosition-this.config.startPosition)/3};
var Wz5=function(t,E,p){var U,x,A,m,b,f,B;return _.q(function(R){if(R.nextAddress==1)return U=t.input.delta(E)+t.config.startPosition,x=t.input.axis(E),A=p,m=A.endPosition,b=A.transitionEndPosition,B=(f=b)!=null?f:m,R.yield(t.element.animate([{transform:"translate"+x+"("+U+"px)"},{transform:"translate"+x+"("+B+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);t.element.style.transform="translate"+x+"("+B+"px)";_.Do(R)})};
Us.prototype.translateBack=function(t){var E=this,p,U;return _.q(function(x){if(x.nextAddress==1){if(!E.element.style.transform)return x.return();p=E.input.axis(t);U=E.config.startPosition;return x.yield(E.element.animate([{transform:E.element.style.transform},{transform:"translate"+p+"("+U+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}E.element.style.transform="translate"+p+"("+U+"px)";_.Do(x)})};
var oD5=function(t,E){var p,U,x,A;return _.q(function(m){if(m.nextAddress==1)return p=t.input.delta(E)+t.config.startPosition,U=t.input.axis(E),x=p+70,A=t.element.style.opacity===""?1:t.element.style.opacity,m.yield(t.element.animate([{transform:"translate"+U+"("+p+"px)",opacity:A},{transform:"translate"+U+"("+x+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);t.element.style.transform="translate"+U+"("+x+"px)";t.element.style.opacity="0";_.Do(m)})};var f4e=new _.wx("ratelimit");var $p8=function(t,E){this.playerProvider_=t;this.actionSenderElement_=E;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
$p8.prototype.reset=function(){Kzt(this);this.isUserPredictedAbsent_=!1};
var Kzt=function(t,E){!t.youThereData_||t.showWarningJob_||E!==void 0&&E||(mN("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.yL(),t.youThereData_,t.clientPlaybackNonce_),_.mL());_.ir.cancelJob(t.showWarningJob_);t.showWarningJob_=0;_.ir.cancelJob(t.showBlockingWarningJob_);t.showBlockingWarningJob_=0;_.ir.cancelJob(t.pausePlaybackJob_);t.pausePlaybackJob_=0;t.youThereData_=null;t.clientPlaybackNonce_=void 0;t.inYouThereFlow_=!1},yQ9=function(t,E){var p,U,x;
_.q(function(A){if(A.nextAddress==1)return t.reset(),A.yield(t.playerProvider_().getPlayerPromise(),2);p=A.yieldResult;t.clientPlaybackNonce_=p.getVideoData().cpn;t.youThereData_=E.configData.youThereData;if(!t.youThereData_)return A.return();if(t.youThereData_.triggerReason&&t.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!B4g())return mN("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.yL(),t.youThereData_,t.clientPlaybackNonce_),A.return();U=t.youThereData_.promptDelaySec;x=p.getCurrentTime();
t.showWarningJob_=_.ir.addLowPriorityJob(function(){return _.q(function(m){t.showWarningJob_=0;return m.yield(vD9(t),0)})},Math.max(U-x,0)*1E3);
_.Do(A)})},vD9=function(t){var E,p,U,x,A,m;
return _.q(function(b){if(b.nextAddress==1)return b.yield(t.playerProvider_().getPlayerPromise(),2);if(b.nextAddress!=3)return E=b.yieldResult,p=E.getCurrentTime(),b.yield(S1b(t),3);U=b.yieldResult;if(!U||!t.youThereData_)return b.return();if(_.r("check_user_lact_at_prompt_shown_time_on_web")&&(x=parseInt(t.youThereData_.lactThresholdMs,10),_.af()<x))return mN("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.yL(),t.youThereData_,t.clientPlaybackNonce_),b.return();if(t.youThereData_.playbackPauseDelayMs<=
0)return cQ7(t),b.return();!_.r("external_fullscreen")&&(A=_.QS())&&(t.ignoreFullscreenExitUserActivity_=!0,_.ir.addLowPriorityJob(function(){t.ignoreFullscreenExitUserActivity_=!1},2E3),_.CF(A));
t.youThereData_.showToastWarningPrompt&&(xQ(t,t.youThereData_.showWarningActions),t.inYouThereFlow_=!0,mN("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.yL(),t.youThereData_,t.clientPlaybackNonce_,p),mN("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.yL(),t.youThereData_,t.clientPlaybackNonce_,p));m=0;t.youThereData_.blockingPromptDelayMs&&(m=t.youThereData_.blockingPromptDelayMs);t.showBlockingWarningJob_=_.ir.addLowPriorityJob(function(){return _.q(function(f){t.showBlockingWarningJob_=0;return f.yield(ttC(t),
0)})},m);
_.Do(b)})},ttC=function(t){var E,p,U;
return _.q(function(x){if(x.nextAddress==1)return x.yield(S1b(t),2);E=x.yieldResult;if(!t.youThereData_)return x.return();E&&(t.youThereData_.showBlockingWarningAction&&(mN("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.yL(),t.youThereData_,t.clientPlaybackNonce_),(p=_.k(t.youThereData_.showBlockingWarningAction,_.ZU))?xQ(t,p.commands):xQ(t,[t.youThereData_.showBlockingWarningAction]),t.inYouThereFlow_=!0),U=t.youThereData_.playbackPauseDelayMs,t.pausePlaybackJob_=_.ir.addLowPriorityJob(function(){return _.q(function(A){t.pausePlaybackJob_=
0;return A.yield(cQ7(t),0)})},U));
_.Do(x)})},cQ7=function(t){var E;
return _.q(function(p){if(p.nextAddress==1)return p.yield(S1b(t),2);E=p.yieldResult;if(!t.youThereData_)return p.return();E&&(mN("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.yL(),t.youThereData_,t.clientPlaybackNonce_),xQ(t,t.youThereData_.showPausedActions),t.inYouThereFlow_=!0);_.Do(p)})};
$p8.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var t=_.k(this.youThereData_.userActiveDuringFlowAction,_.ZU);t?xQ(this,t.commands):xQ(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(mN("YOU_THERE_EVENT_TYPE_LACT_RESET",_.yL(),this.youThereData_,this.clientPlaybackNonce_),_.mL());Kzt(this,!0)}Edd(this,!1)};
var p4d=function(t){mN("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.yL(),t.youThereData_,t.clientPlaybackNonce_)},S1b=function(t){var E,p;
return _.q(function(U){if(U.nextAddress==1)return U.yield(t.playerProvider_().getPlayerPromise(),2);E=U.yieldResult;p=E.getPlayerState();return U.return(p==-1||p==1||p==3)})},Edd=function(t,E){var p;
_.q(function(U){if(U.nextAddress==1){if(t.isUserPredictedAbsent_==E)return U.jumpTo(0);t.isUserPredictedAbsent_=E;return U.yield(t.playerProvider_().getPlayerPromise(),3)}p=U.yieldResult;p.setUserEngagement(E);E&&mN("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.yL(),t.youThereData_,t.clientPlaybackNonce_);_.Do(U)})},xQ=function(t,E){if(_.r("handle_service_request_actions")||_.r("kevlar_youthere_service_endpoint_actions_killswitch"))_.IK(t.actionSenderElement_,E,t.actionSenderElement_);
else{E=_.M(E);for(var p=E.next();!p.done;p=E.next())p=p.value,p.commandMetadata&&p.commandMetadata.webCommandMetadata&&p.commandMetadata.webCommandMetadata.sendPost?_.JZ(t.actionSenderElement_,[p]):_.IK(t.actionSenderElement_,[p],t.actionSenderElement_)}};var wsd=!1;var UB5={PAUSE_CHAT:18};var MI8=function(t,E){var p=_.qO("SESSION_INDEX");this.actionToken_=t;this.commonToken_=E;this.sessionIndex_=p},Yko=function(t){var E=_.fd(),p=_.ws("payments.business.integration.bootstrap"),U=_.ws("payments.business.integration"),x=U.Style.create().withMaterialDesignStyle(),A=U.mashupMode.popup("instrument-manager");
p.asMashupMode(A).usingUserIndex(t.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(x).inStandaloneContext(U.standaloneContextAuthId.forUserId()).instrumentManager(t.actionToken_,t.commonToken_.length>0?t.commonToken_:void 0,function(m){var b=m.instrumentId;b?E.resolve(b):(b=_.ws("payments.business.integration.scenario.InstrumentManager"),E.reject(m.errorCode&&m.errorCode===b.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(m){_.fR(m);
E.reject("instrumentManagerLoadError")});
return E.promise};var kS=function(t,E,p){this.payloadName="transactionFlowFailed";this.payload={errorType:t,serializedTransactionFlowLoggingParams:E,isUserDismiss:p===void 0?!1:p}};
_.Oy("yt.ypc.shared.YpcTransactionFlowError",kS);var Am=function(){return _.sU.apply(this,arguments)||this};
_.u(Am,_.sU);Am.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
Am.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
Am.prototype.onErrorMessageDismiss=Am.prototype.onErrorMessageDismiss;_.N([_.e({readOnly:!0,observer:"errorRendererChanged"}),_.P("design:type",Object)],Am.prototype,"errorRenderer",void 0);_.N([_.lc("yt-live-chat-error-message-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Am.prototype,"onErrorMessageDismiss",null);_.N([_.L0()],Am);var xB7=[Am.prototype];var AOb;var YdC,Mt9=function(){if(YdC!==void 0)return YdC;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;AOb===void 0&&(AOb=document.createElement("template"));var U=AOb;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return YdC=t};var YQ=function(){var t=_.z.apply(this,arguments)||this;t.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";t.goalDescription="";t.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";t.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";t.startButtonId="start-button";t.exampleButtonId="example-button";return t};
_.u(YQ,_.z);_.Y=YQ.prototype;_.Y.getGoalDropdownItems=function(){var t,E;return(E=_.k((t=this.data)==null?void 0:t.purchaseTargetDropdown,Fv8))==null?void 0:E.dropdownItems};
_.Y.getTimerDropdownItems=function(){var t,E;return(E=_.k((t=this.data)==null?void 0:t.timerDropdown,Fv8))==null?void 0:E.dropdownItems};
_.Y.getColorDropdownItems=function(){var t,E;return(E=_.k((t=this.data)==null?void 0:t.colorDropdown,Fv8))==null?void 0:E.dropdownItems};
_.Y.getDropdownItemText=function(t){var E;return(E=_.k(t,epK))==null?void 0:E.itemLabel};
_.Y.getDropdownItemValue=function(t){t=_.k(t,epK);return(t==null?void 0:t.timeLimit)||(t==null?void 0:t.purchaseTarget)||(t==null?void 0:t.eligiblePurchaseType)};
_.Y.updateFlowState=function(t){_.du(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:t}])};
_.Y.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.Y.updateGoalValue=function(t){this.goal=t.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.Y.onTextValueChanged=function(t){this.goalDescription=t.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.Y.updateTimerValue=function(t){this.timer=t.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.Y.updateTierValue=function(t){this.tier=t.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.Y.getButtonViewModel=function(t){t=(t==null?void 0:t.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var E,p=_.k((E=this.data)==null?void 0:E.startGoalButton,_.Cz);return Object.assign({},p,{state:t})};
_.aE.Object.defineProperties(YQ,{template:{configurable:!0,enumerable:!0,get:function(){return Mt9()}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],YQ.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],YQ.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],YQ.prototype,"goal",void 0);_.N([_.e(),_.P("design:type",Object)],YQ.prototype,"goalDescription",void 0);_.N([_.e(),_.P("design:type",Object)],YQ.prototype,"timer",void 0);_.N([_.e(),_.P("design:type",Object)],YQ.prototype,"tier",void 0);
_.N([_.e(),_.P("design:type",Object)],YQ.prototype,"startButtonId",void 0);_.N([_.e(),_.P("design:type",Object)],YQ.prototype,"exampleButtonId",void 0);_.N([_.p4({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],YQ);_.G(YQ,"yt-creator-goal-set-up-flow-view-model",function(){return Mt9()},{mode:0});var mB5;var bao;var MN=function(){return _.z.apply(this,arguments)||this};
_.u(MN,_.z);MN.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
MN.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var t=_.k(this.data.button,_.Cz);t&&(t.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.aE.Object.defineProperties(MN,{template:{configurable:!0,enumerable:!0,get:function(){if(bao===void 0){var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;mB5===void 0&&(mB5=document.createElement("template"));var U=mB5;p.call(E,U.content.cloneNode(!0),t.content.firstChild);bao=t}t=bao;return t}}});
_.N([_.g(_.Bg),_.P("design:type",Object)],MN.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],MN.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e({selectorArgs:["data.enabledEntityKey"],selector:OFt,observer:"onEnabledChange"}),_.P("design:type",Boolean)],MN.prototype,"enabled",void 0);_.N([_.e(),_.P("design:type",Object)],MN.prototype,"data",void 0);_.N([_.p4({is:"yt-disableable-button-view-model",noInjection:!0})],MN);var iat;var qdt;var Ha8=["transVert01","transVert02","transVert03"],fj7="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),my=function(){var t=_.z.apply(this,arguments)||this;t.emojiManager=_.kt;t.isDarkTheme=document.documentElement.hasAttribute("dark");t.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};t.reactionBuckets=[];t.noEmojiIdentifier="NO_EMOJI";return t};
_.u(my,_.z);_.Y=my.prototype;_.Y.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.Y.desktopFountainEmojiSizePxChanged=function(){_.eU(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.Y.createUserReactionAnimation=function(t){this.createEmojiAnimation(t,!0)};
_.Y.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var t;((t=this.data)==null?0:t.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.P9("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.KB(this.emojiContainer.children)).forEach(function(E){E.remove()})};
_.Y.detached=function(){this.cleanupFountain()};
_.Y.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var t;this.reactionBuckets=_.Kq.unsafeClone((t=this.emojiFountainData)==null?void 0:t.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.Y.processEmojiBucket=function(t){var E=this;if(this.reactionBuckets&&!(t>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var p=this.reactionBuckets[t];this.generateEmojiAnimations(p);if(t<this.reactionBuckets.length-1){var U;if(p==null?0:(U=p.duration)==null?0:U.seconds)this.emojiBucketTimerId=setTimeout(function(){E.processEmojiBucket(t+1)},Number(p.duration.seconds)*1E3)}}};
_.Y.generateEmojiAnimations=function(t){var E=this,p=this.getRandomEmojiIdFromBucketWithOverride(t);if(p&&p!==this.noEmojiIdentifier){var U=0;t.targetEps?(U=this.linearInterpolateBounded(1,20,100,12,t.emojiSizeIndex||0),this.createEmojiAnimation(p,!1,t.emojiAnimationMs,U),U=this.getEmojiDelayMsFromTargetEps(t.targetEps)):(this.createEmojiAnimation(p),U=this.getEmojiDelayMsFromDistribution(t.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){E.generateEmojiAnimations(t)},U)}};
_.Y.getRandomEmojiIdFromBucketWithOverride=function(t){if(!(t&&t.reactionsData&&t.reactionsData.length&&t.totalReactions))return this.noEmojiIdentifier;for(var E=t.totalReactions,p=1,U=_.M(t.reactionsData),x=U.next();!x.done;x=U.next())x=x.value,(x.reactionWeightOverride||x.reactionWeightOverride===0)&&x.reactionCount&&(E-=x.reactionCount,p-=x.reactionWeightOverride);U=!0;p<0&&(U=!1,E=t.totalReactions,p=1);if(U&&p>0&&E===0)if(p===1){x=0;for(var A=_.M(t.reactionsData),m=A.next();!m.done;m=A.next())m=
m.value,m.reactionCount&&m.reactionCount>0&&x++;x=1/x;A=_.M(t.reactionsData);for(m=A.next();!m.done;m=A.next())m.value.reactionWeightOverride=x}else for(x=1/(1-p),A=_.M(t.reactionsData),m=A.next();!m.done;m=A.next())m=m.value,m.reactionWeightOverride&&(m.reactionWeightOverride*=x);x=Math.random();A=0;m=_.M(t.reactionsData);for(var b=m.next();!b.done;b=m.next())if(b=b.value,b.reactionCount&&(A=(b.reactionWeightOverride||b.reactionWeightOverride===0)&&U?A+b.reactionWeightOverride:A+p*b.reactionCount/
E,A>x&&(b.reactionCount--,t.totalReactions--,b=this.reactionItemToEmojiString(b),b!==this.noEmojiIdentifier)))return b;return this.noEmojiIdentifier};
_.Y.reactionItemToEmojiString=function(t){if(t.unicodeEmojiId)return t.unicodeEmojiId;if(t.emoteId)return t.emoteId;if(t.videoReactionType)switch(t.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.Y.createEmojiAnimation=function(t,E,p,U){E=E===void 0?!1:E;this.lastEmojiRequestedForTesting=t;var x=t.startsWith("yt-icons:"),A=_.jZ(this.emojiManager,t);if(A||x){var m=document.createElement("emoji");m.classList.add("yt-emoji-fountain-view-model");m.classList.add(Ha8[Math.floor(Math.random()*Ha8.length)]);var b=document.createElement("div");b.classList.add("yt-emoji-fountain-view-model");b.classList.add("horizontal-container");b.classList.add(fj7[Math.floor(Math.random()*fj7.length)]);E?(p=document.createElement("div"),
p.classList.add("user-reaction-bubble"),p.classList.add("yt-emoji-fountain-view-model"),b.appendChild(p)):(p&&(m.style.animationDuration=p+"ms",b.style.animationDuration=p+"ms"),U&&(m.style.width=U+"px",m.style.height=U+"px"));x?(x=document.createElement("yt-icon"),x.polymerController.icon=t,U&&(x.style.width=U+"px",x.style.height=U+"px"),t=x):t=this.emojiManager.createEmoji(A,!1);t.classList.add("yt-emoji-fountain-view-model");b.appendChild(t);m.appendChild(b);this.emojiContainer.appendChild(m);
m.addEventListener("animationend",function(){m.remove()});
var f,B;if((f=this.data)==null?0:(B=f.loggingDirectives)==null?0:B.trackingParams)E=E?_.h8(183501):_.h8(183500),XDL(this.data.loggingDirectives.trackingParams,E),_.Wai(E);setTimeout(function(){m&&m.remove()},2E3)}};
_.Y.getEmojiDelayMsFromDistribution=function(t){return Math.random()*(t||1)*1E3};
_.Y.getEmojiDelayMsFromTargetEps=function(t){return Math.random()*2*(1/t)*1E3};
_.Y.linearInterpolateBounded=function(t,E,p,U,x){x=Math.min(Math.max(x,t),p);return(E*(p-x)+U*(x-t))/(p-t)};
my.prototype.onEmojiFountainDataEntityUpdate=my.prototype.onEmojiFountainDataEntityUpdate;my.prototype.desktopFountainEmojiSizePxChanged=my.prototype.desktopFountainEmojiSizePxChanged;my.prototype.isActiveChanged=my.prototype.isActiveChanged;_.N([_.e(),_.P("design:type",_.CH)],my.prototype,"emojiManager",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],my.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Bg),_.P("design:type",Object)],my.prototype,"ytLiveChatReduxBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],my.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],my.prototype,"data",void 0);_.N([_.e({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(t,E){return _.hj(t.entities,"emojiFountainDataEntity",E)}}),
_.P("design:type",Object)],my.prototype,"emojiFountainData",void 0);_.N([_.e(),_.P("design:type",Boolean)],my.prototype,"isActive",void 0);_.N([_.GI("isActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],my.prototype,"isActiveChanged",null);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],my.prototype,"isDarkTheme",void 0);_.N([_.e(),_.P("design:type",String)],my.prototype,"lastEmojiRequestedForTesting",void 0);
_.N([_.e({value:function(){return _.z3("desktop_fountain_emoji_size_px",20)}}),
_.P("design:type",Number)],my.prototype,"desktopFountainEmojiSizePx",void 0);_.N([_.GI("desktopFountainEmojiSizePx"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],my.prototype,"desktopFountainEmojiSizePxChanged",null);_.N([_.Nl("#emoji-container"),_.P("design:type",HTMLElement)],my.prototype,"emojiContainer",void 0);
_.N([_.GI("emojiFountainData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],my.prototype,"onEmojiFountainDataEntityUpdate",null);_.N([_.p4({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],my);
_.G(my,"yt-emoji-fountain-view-model",function(){if(qdt===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;iat===void 0&&(iat=document.createElement("template"));var U=iat;p.call(E,U.content.cloneNode(!0),t.content.firstChild);qdt=t}t=qdt;return t},{mode:0});var BDJ;var w4t;var by=function(){return _.z.apply(this,arguments)||this};
_.u(by,_.z);by.prototype.onChoiceChanged=function(){this.data&&_.eU(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
by.prototype.onChoiceChanged=by.prototype.onChoiceChanged;_.N([_.e(),_.P("design:type",Object)],by.prototype,"data",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],by.prototype,"onChoiceChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],by);
_.G(by,"yt-live-chat-banner-poll-choice",function(){if(w4t===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;BDJ===void 0&&(BDJ=document.createElement("template"));var U=BDJ;p.call(E,U.content.cloneNode(!0),t.content.firstChild);w4t=t}t=w4t;return t},{mode:0});var Rig;var VtL;var iy=function(){var t=_.z.apply(this,arguments)||this;t.modern=_.r("web_button_rework_with_live");t.small=!1;return t};
_.u(iy,_.z);iy.prototype.computeIsSmall=function(){var t;return((t=this.buttonOverrides)==null?void 0:t.size)==="S"};
iy.prototype.computeId=function(){return this.data&&this.data.targetId};
_.N([_.g(_.w8.YtLiveChatTooltipTargetingBehavior),_.P("design:type",Object)],iy.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.N([_.e({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.P("design:type",String)],iy.prototype,"id",void 0);_.N([_.e(),_.P("design:type",Object)],iy.prototype,"buttonOverrides",void 0);_.N([_.e(),_.P("design:type",Object)],iy.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],iy.prototype,"modern",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.P("design:type",Object)],iy.prototype,"small",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"yt-live-chat-button"})],iy);
_.G(iy,"yt-live-chat-button",function(){if(VtL===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;Rig===void 0&&(Rig=document.createElement("template"));var U=Rig;p.call(E,U.content.cloneNode(!0),t.content.firstChild);VtL=t}t=VtL;return t},{mode:0});var QT7;var Cwg;var qN=function(){var t=_.z.apply(this,arguments)||this;t.inCollapsedBanner=!1;t.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};t.questionButtonOverrides={style:"mono",type:"filled"};return t};
_.u(qN,_.z);_.Y=qN.prototype;_.Y.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]]"}}}}}};
_.Y.onContextMenuButtonClick=function(t){this.ytLiveChatItemBehavior.showContextMenu(t)};
_.Y.onYtRendererstamperFinished=function(){this.menuButton=_.ZN(this.hostElement).querySelector("#menu-button")};
_.Y.dataChanged=function(){var t,E;if((E=_.k((t=this.data)==null?void 0:t.overflowMenuButton,_.Ry))==null?0:E.command)this.data.contextMenuEndpoint=_.k(this.data.overflowMenuButton,_.Ry).command};
_.Y.onButtonClick=function(){var t,E=_.k((t=this.data)==null?void 0:t.askQuestionButton,_.Ry);if(E){if(E.trackingParams&&(t=_.$8(E.trackingParams))){var p=_.yL();p&&_.qc(p,t)}_.kT(this.hostElement,"innertube-command",E.command)}};
qN.prototype.onYtRendererstamperFinished=qN.prototype.onYtRendererstamperFinished;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],qN.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Bg),_.P("design:type",Object)],qN.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.g(_.dw.YtLiveChatItemBehavior),_.P("design:type",_.uI)],qN.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.e({observer:"dataChanged"}),_.P("design:type",Object)],qN.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],qN.prototype,"inCollapsedBanner",void 0);_.N([_.e(),_.P("design:type",Object)],qN.prototype,"buttonOverrides",void 0);_.N([_.e(),_.P("design:type",Object)],qN.prototype,"questionButtonOverrides",void 0);_.N([_.lc("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qN.prototype,"onYtRendererstamperFinished",null);
_.N([_.Ul({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],qN);
_.G(qN,"yt-live-chat-call-for-questions-renderer",function(){if(Cwg===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;QT7===void 0&&(QT7=document.createElement("template"));var U=QT7;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Cwg=t}t=Cwg;return t},{mode:0});var jTo={};jTo.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 t=this;window.requestAnimationFrame(function(){t.restoreFocusNode_||(t.restoreFocusNode_=document.activeElement);var E=_.lym(t.hostElement);E.length&&E[E.length-1].focus()})},
isAttachedChanged_:function(t,E){t?this.focusChild_():E&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(t){this.hidden||_.Vx(t).indexOf(this.hostElement)!==-1||(t.stopPropagation(),this.focusChild_())}};var rO7;var kPt;var Hh=function(){return _.z.apply(this,arguments)||this};
_.u(Hh,_.z);Hh.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Hh.prototype.onClick=function(t){t.target!==this.confirmButton&&t.target!==this.cancelButton&&(this.hidden=!0)};
_.N([_.Nl("#confirm_button"),_.P("design:type",Object)],Hh.prototype,"confirmButton",void 0);_.N([_.Nl("#cancel_button"),_.P("design:type",Object)],Hh.prototype,"cancelButton",void 0);_.N([_.e(),_.P("design:type",dB7)],Hh.prototype,"data",void 0);_.N([_.e({value:!0,reflectToAttribute:!0}),_.P("design:type",Boolean)],Hh.prototype,"hidden",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Hh.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(jTo.YtLiveChatDialogBehavior),_.P("design:type",Object)],Hh.prototype,"ytLiveChatDialogBehavior",void 0);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],Hh);
var dB7=_.G(Hh,"yt-live-chat-dialog-renderer",function(){if(kPt===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;rO7===void 0&&(rO7=document.createElement("template"));var U=rO7;p.call(E,U.content.cloneNode(!0),t.content.firstChild);kPt=t}t=kPt;return t},{mode:0});var uCo;var JOC,Ijd=function(){if(JOC!==void 0)return JOC;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;uCo===void 0&&(uCo=document.createElement("template"));var U=uCo;p.call(E,U.content.cloneNode(!0),t.content.firstChild);return JOC=t};var gdl;var Zat;var f9=function(){var t=_.z.apply(this,arguments)||this;t.icon=null;return t};
_.u(f9,_.z);f9.prototype.dismiss=function(){_.kT(this.hostElement,"yt-live-chat-error-message-dismiss")};
f9.prototype.computeIcon=function(t){return t&&t.iconType?"yt-icons:"+t.iconType.toLowerCase():"yt-icons:close"};
_.N([_.e(),_.P("design:type",Object)],f9.prototype,"data",void 0);_.N([_.e({computed:"computeIcon(data.icon)"}),_.P("design:type",Object)],f9.prototype,"icon",void 0);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],f9);
_.G(f9,"yt-live-chat-error-message-renderer",function(){if(Zat===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;gdl===void 0&&(gdl=document.createElement("template"));var U=gdl;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Zat=t}t=Zat;return t},{mode:0});var Oal;var X4K;var Bh=function(){var t=_.z.apply(this,arguments)||this;t.tooltip=null;t.data=null;t.id="";t.active=!1;t.icon="";t.disabled=!1;t.showTooltip=!1;t.useToggledActiveState=!0;t.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return t};
_.u(Bh,_.z);_.Y=Bh.prototype;
_.Y.dataChanged=function(){var t;((t=this.data)==null?0:t.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,_.aG)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var E;if((E=this.data)==null?0:E.disabled)this.disabled=!0};
_.Y.computeId=function(t){return t};
_.Y.computeIcon=function(t,E){if(!t)return"";if(this.useToggledActiveState)return"yt-icons:"+t.toLowerCase();var p,U;return E&&((p=this.data)==null?0:(U=p.toggledIcon)==null?0:U.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+t.toLowerCase()};
_.Y.logPDGEntryPoint=function(){_.Efi(_.a4("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")};
_.Y.immediatelyShowTooltip=function(){var t=_.ZN(this.hostElement).querySelector("#tooltip");t.animationDelay=0;t.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};t.show()};
_.Y.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.Y.onClick=function(t){var E;((E=this.data)==null?0:E.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(),t.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.kT(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.Y.computeShowTooltip=function(t,E){return!!(t&&t.tooltip&&E)};
_.Y.maybeUpdateTooltipText=function(){var t=this,E;if((E=this.data)==null?0:E.tooltip){var p=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.aG)(t.tooltip).textContent=p},250)}};
_.Y.handleLiveChatActions=function(t){var E=this;t.length&&(this.id!=="creator"&&this.id!=="product-picker"||t.forEach(function(p){(p=E.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",p))&&p.durationSec===p.fullDurationSec&&E.startBubble(E.colorFromDecimal(p.startBackgroundColor))}))};
_.Y.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.Y.startBubble=function(t){_.eU(this.hostElement,{"--yt-live-chat-monetization-button-glow":t});this.hostElement.setAttribute("bubble","")};
_.Y.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.Y.colorFromDecimal=function(t){typeof t==="string"&&(t=Number(t));return"rgba("+[t>>16&255,t>>8&255,t&255,(t>>24&255)/255].join()+")"};
Bh.prototype.onAnimationEnd=Bh.prototype.onAnimationEnd;Bh.prototype.disabledChanged=Bh.prototype.disabledChanged;Bh.prototype.dataChanged=Bh.prototype.dataChanged;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Bh.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Bh.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.w8.YtLiveChatTooltipTargetingBehavior),_.P("design:type",Object)],Bh.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Bh.prototype,"data",void 0);_.N([_.e({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.P("design:type",Object)],Bh.prototype,"id",void 0);_.N([_.e({notify:!0,reflectToAttribute:!0}),_.P("design:type",Object)],Bh.prototype,"active",void 0);
_.N([_.e({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.P("design:type",Object)],Bh.prototype,"icon",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Bh.prototype,"disabled",void 0);_.N([_.e({computed:"computeShowTooltip(data, disabled)"}),_.P("design:type",Object)],Bh.prototype,"showTooltip",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Bh.prototype,"useToggledActiveState",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Bh.prototype,"dataChanged",null);_.N([_.GI("disabled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Bh.prototype,"disabledChanged",null);_.N([_.lc("animationend"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Bh.prototype,"onAnimationEnd",null);
_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],Bh);
_.G(Bh,"yt-live-chat-icon-toggle-button-renderer",function(){if(X4K===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;Oal===void 0&&(Oal=document.createElement("template"));var U=Oal;p.call(E,U.content.cloneNode(!0),t.content.firstChild);X4K=t}t=X4K;return t},{mode:0});var hit;var ajb;var wR=function(){return _.z.apply(this,arguments)||this};
_.u(wR,_.z);wR.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.N([_.e(),_.P("design:type",Object)],wR.prototype,"data",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],wR.prototype,"ytRendererstamperBehavior",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],wR);
_.G(wR,"yt-live-chat-message-input-prompt-header-renderer",function(){if(ajb===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;hit===void 0&&(hit=document.createElement("template"));var U=hit;p.call(E,U.content.cloneNode(!0),t.content.firstChild);ajb=t}t=ajb;return t},{mode:0});var eil;var FTl;var zit;var lj7;var GPb;var ndb;var NDo=function(){return _.z.apply(this,arguments)||this};
_.u(NDo,_.z);_.N([_.e(),_.P("design:type",Object)],NDo.prototype,"data",void 0);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],NDo);
_.G(NDo,"yt-live-chat-message-subtext-renderer",function(){if(ndb===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;GPb===void 0&&(GPb=document.createElement("template"));var U=GPb;p.call(E,U.content.cloneNode(!0),t.content.firstChild);ndb=t}t=ndb;return t},{mode:0});var R3=function(){var t=_.z.apply(this,arguments)||this;t.subtextOnBottom=!1;t.buttonOverrides={style:"mono",type:"tonal"};return t};
_.u(R3,_.z);R3.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"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],R3.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],R3.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],R3.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],R3.prototype,"subtextOnBottom",void 0);_.N([_.e(),_.P("design:type",Object)],R3.prototype,"buttonOverrides",void 0);
_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],R3);
_.G(R3,"yt-live-chat-message-renderer",function(){if(lj7===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;zit===void 0&&(zit=document.createElement("template"));var U=zit;p.call(E,U.content.cloneNode(!0),t.content.firstChild);lj7=t}t=lj7;return t},{mode:0});var DBL;var sT5;var VP=function(){var t=_.z.apply(this,arguments)||this;t.isRemovable=!1;t.hasPrefilledText=!1;t.isInputDirty=!1;t.overCharacterLimit=!1;t.underCharacterLimit=!1;t.showErrorMessage=!1;return t};
_.u(VP,_.z);_.Y=VP.prototype;_.Y.computeId=function(){return this.data.id};
_.Y.computeInputData=function(){return this.data.inputData};
_.Y.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.Y.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.Y.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.Y.getLiveChatRichMessageInput=function(){return _.ZN(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.Y.clearInput=function(){_.ZN(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.Y.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.Y.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.Y.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.Y.handleTextInputCharCountChanged=function(t){t=t.detail&&t.detail.characterCount;t!==void 0&&(this.characterCount=t,t!==0&&(this.isInputDirty=!0))};
_.Y.onInputFocusOut=function(){this.isInputDirty=!0};
_.Y.onClickCloseButton=function(){_.kT(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
VP.prototype.handleTextInputCharCountChanged=VP.prototype.handleTextInputCharCountChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],VP.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],VP.prototype,"data",void 0);_.N([_.e({computed:"computeId(data.id)"}),_.P("design:type",String)],VP.prototype,"id",void 0);_.N([_.e({computed:"computeInputData(data.inputData)"}),_.P("design:type",Object)],VP.prototype,"inputData",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.P("design:type",Object)],VP.prototype,"isRemovable",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.P("design:type",Object)],VP.prototype,"hasPrefilledText",void 0);_.N([_.e({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.P("design:type",Number)],VP.prototype,"charactersRemaining",void 0);
_.N([_.e(),_.P("design:type",Number)],VP.prototype,"characterCount",void 0);_.N([_.e(),_.P("design:type",Object)],VP.prototype,"isInputDirty",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.P("design:type",Object)],VP.prototype,"overCharacterLimit",void 0);_.N([_.e({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.P("design:type",Object)],VP.prototype,"underCharacterLimit",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.P("design:type",Object)],VP.prototype,"showErrorMessage",void 0);_.N([_.lc("yt-live-chat-text-input-field-renderer-character-count-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],VP.prototype,"handleTextInputCharCountChanged",null);
_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],VP);
_.G(VP,"yt-live-chat-poll-editor-input",function(){if(sT5===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;DBL===void 0&&(DBL=document.createElement("template"));var U=DBL;p.call(E,U.content.cloneNode(!0),t.content.firstChild);sT5=t}t=sT5;return t},{mode:0});var LT5;var Pw8;var TD9={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},QP=function(){var t=_.z.apply(this,arguments)||this;t.modern=_.r("web_button_rework_with_live");t.closeButtonOverrides={iconPosition:"icon-only"};t.startButtonOverrides={style:"mono",type:"filled"};t.addOptionButtonOverrides={style:"mono",type:"text"};return t};
_.u(QP,_.z);_.Y=QP.prototype;
_.Y.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"}}}}};
_.Y.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var t;_.k((t=this.data)==null?void 0:t.startButton,_.Ry)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.Y.computeId=function(){return this.data&&this.data.id||""};
_.Y.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.Y.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.Y.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.Y.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.Y.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var t=0;t<this.pollEditorInfoWithDefaults.minPollOptions;t++)this.addPollOptionData()};
_.Y.getIsValidPoll=function(){var t=this;if(!this.pollEditorInfoWithDefaults)return!1;var E=this.pollEditorInfoWithDefaults,p=E.minPollOptionChars,U=E.maxPollOptionChars,x=E.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>E.maxPollQuestionChars)return!1;E=_.ZN(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(E).every(function(A,m){A=A.characterCount;!A&&x[m]&&(A=t.ytRendererBehavior.getSimpleString(x[m]).length);return A!==void 0&&A>=p&&A<=U})};
_.Y.isValidPollChanged=function(){var t;_.k((t=this.data)==null?void 0:t.startButton,_.Ry)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.Y.addPollOptionData=function(){var t=this.pollEditorInfoWithDefaults,E=t.maxPollOptionChars,p=t.optionPlaceholderText,U=t.customOptionPlaceholderText,x=t.pollOptionData;this.currentNumPollOptions>=t.maxPollOptions||(t={liveChatPollOptionInput:{inputData:{placeholder:U[this.currentNumPollOptions]||p,maxCharacterLimit:E},maxCharacterLimit:E,minCharacterLimit:t.minPollOptionChars,hasPrefilledText:!!U[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=t.minPollOptions}},x.charCountErrorText&&
(t.liveChatPollOptionInput.charCountErrorText=x.charCountErrorText),x.charsRemainingAltLabel&&(t.liveChatPollOptionInput.charsRemainingAltLabel=x.charsRemainingAltLabel),x.removeOptionAltText&&(t.liveChatPollOptionInput.removeOptionAltText=x.removeOptionAltText),this.push("pollOptionsData",t),x=Array.from(_.ZN(_.ZN(this.hostElement).querySelector("#poll-options")).children),x.forEach(function(A,m){A.polymerController.set("data.id",m)}),_.ZN(x[x.length-1]).querySelector("#input").focus())};
_.Y.getPollOptionInputValues=function(){var t=this,E=[],p=_.ZN(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),U=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(p).forEach(function(x,A){var m=null;x=x.getLiveChatRichMessageInput();var b;(x==null?0:(b=x.textSegments)==null?0:b.length)?m=_.Mn(x):U[A]&&(m=t.formattedStringToLiveChatRichMessageInput(U[A]));E.push(m)});
return E};
_.Y.requestCreateAndStartPoll=function(t){var E=this.getPollOptionInputValues();if(!E.some(function(U){return!U})){E={optionText:E};
var p=_.ZN(_.ZN(this.hostElement).querySelector("#poll-question")).firstChild;p&&p.liveChatRichMessageInput&&(E.questionText=_.Mn(p.liveChatRichMessageInput));_.JZ(this.hostElement,[t,E])}};
_.Y.selectedChanged=function(){if(this.selected){var t=_.ZN(_.ZN(this.hostElement).querySelector("#start-button")).firstElementChild;if(t){var E;(E=_.ZN(t).querySelector("#button")||_.OU(t).querySelector("button"))==null||E.focus()}}};
_.Y.handleTextInputChanged=function(t){var E;((E=t.target)==null?void 0:E.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=t.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.Y.handleStartButtonAction=function(t){t.detail.actionName==="yt-service-request"&&(t.stopPropagation(),(t=t.detail.args[1])&&this.requestCreateAndStartPoll(t))};
_.Y.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.Y.handleServiceRequestCompleted=function(t){this.createPollRequestInFlight=!1;(t=t.detail&&t.detail.data)&&t.success&&(_.kT(this.hostElement,"picker-cancelled"),_.du(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.Y.onCloseClick=function(){_.kT(this.hostElement,"picker-cancelled");_.du(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.Y.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.Y.handlePollEditorInputClosed=function(t){var E=this.pollOptionsData.findIndex(function(p){return p.liveChatPollOptionInput.id===t.detail.id});
this.splice("pollOptionsData",E,1);this.isValidPoll=this.getIsValidPoll()};
_.Y.onPickerCancelled=function(){this.reset()};
_.Y.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var t=_.ZN(_.ZN(this.hostElement).querySelector("#poll-question")).firstChild;t&&t.setLiveChatRichMessageInput(null);if(t=_.ZN(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){t=_.M(Array.from(t));for(var E=t.next();!E.done;E=t.next())E.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.Y.formattedStringToLiveChatRichMessageInput=function(t){return t.simpleText?{text_segments:[t.simpleText]}:{text_segments:t.runs}};
_.aE.Object.defineProperties(QP.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(TD9,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
QP.prototype.onPickerCancelled=QP.prototype.onPickerCancelled;QP.prototype.handlePollEditorInputClosed=QP.prototype.handlePollEditorInputClosed;QP.prototype.handleServiceRequestCompleted=QP.prototype.handleServiceRequestCompleted;QP.prototype.handleServiceRequestSent=QP.prototype.handleServiceRequestSent;QP.prototype.handleTextInputChanged=QP.prototype.handleTextInputChanged;QP.prototype.selectedChanged=QP.prototype.selectedChanged;QP.prototype.isValidPollChanged=QP.prototype.isValidPollChanged;
QP.prototype.shouldInitializePollChanged=QP.prototype.shouldInitializePollChanged;QP.prototype.dataChanged=QP.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],QP.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],QP.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],QP.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],QP.prototype,"modern",void 0);
_.N([_.e(),_.P("design:type",Object)],QP.prototype,"closeButtonOverrides",void 0);_.N([_.e(),_.P("design:type",Object)],QP.prototype,"startButtonOverrides",void 0);_.N([_.e(),_.P("design:type",Object)],QP.prototype,"addOptionButtonOverrides",void 0);_.N([_.e({computed:"computeId(data.id)",reflectToAttribute:!0}),_.P("design:type",String)],QP.prototype,"id",void 0);_.N([_.e({value:function(){return[]}}),
_.P("design:type",Array)],QP.prototype,"pollOptionsData",void 0);_.N([_.Z("pollEditorInfoWithDefaults"),_.P("design:type",Object),_.P("design:paramtypes",[])],QP.prototype,"pollQuestionData",null);_.N([_.e({value:0}),_.P("design:type",Number)],QP.prototype,"pollQuestionCharacterCount",void 0);_.N([_.Z("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.P("design:type",Object),_.P("design:paramtypes",[])],QP.prototype,"pollQuestionCharactersRemaining",null);
_.N([_.e({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.P("design:type",Boolean)],QP.prototype,"overQuestionCharacterLimit",void 0);_.N([_.Z("data.pollEditorInfo"),_.P("design:type",Object),_.P("design:paramtypes",[])],QP.prototype,"pollEditorInfoWithDefaults",null);_.N([_.e({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.P("design:type",Number)],QP.prototype,"currentNumPollOptions",void 0);
_.N([_.e({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.P("design:type",Boolean)],QP.prototype,"hasMaxNumPollOptions",void 0);_.N([_.Z("pollEditorInfoWithDefaults","pollOptionsData"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],QP.prototype,"shouldInitializePoll",null);_.N([_.e(),_.P("design:type",Object)],QP.prototype,"isValidPoll",void 0);
_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],QP.prototype,"createPollRequestInFlight",void 0);_.N([_.e(),_.P("design:type",Object)],QP.prototype,"selected",void 0);_.N([_.e({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.P("design:type",Boolean)],QP.prototype,"showQuestionErrorMessage",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],QP.prototype,"dataChanged",null);_.N([_.GI("shouldInitializePoll"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],QP.prototype,"shouldInitializePollChanged",null);_.N([_.GI("isValidPoll"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],QP.prototype,"isValidPollChanged",null);
_.N([_.GI("selected"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],QP.prototype,"selectedChanged",null);_.N([_.lc("yt-live-chat-text-input-field-renderer-character-count-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],QP.prototype,"handleTextInputChanged",null);
_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],QP.prototype,"handleServiceRequestSent",null);_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],QP.prototype,"handleServiceRequestCompleted",null);
_.N([_.lc("yt-live-chat-poll-editor-input-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],QP.prototype,"handlePollEditorInputClosed",null);_.N([_.lc("picker-cancelled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],QP.prototype,"onPickerCancelled",null);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],QP);
_.G(QP,"yt-live-chat-poll-editor-panel-renderer",function(){if(Pw8===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;LT5===void 0&&(LT5=document.createElement("template"));var U=LT5;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Pw8=t}t=Pw8;return t},{mode:0});var odK;var WT7;var C9=function(){return _.z.apply(this,arguments)||this};
_.u(C9,_.z);C9.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
C9.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.aE.Object.defineProperties(C9.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var t,E;return(t=this.data)==null?void 0:(E=t.title)==null?void 0:E.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var t;return _.AJ((t=this.data)==null?void 0:t.onTapCommand)}}});
_.N([_.g(_.Tn.YtEndpointBehavior),_.P("design:type",Object)],C9.prototype,"ytEndpointBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],C9.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],C9.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],C9.prototype,"itemId",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],C9.prototype,"hasPromotion",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],C9.prototype,"innertubeCommand",null);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],C9);
_.G(C9,"yt-live-chat-product-picker-panel-item-view-model",function(){if(WT7===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;odK===void 0&&(odK=document.createElement("template"));var U=odK;p.call(E,U.content.cloneNode(!0),t.content.firstChild);WT7=t}t=WT7;return t},{mode:0});var $Bd;var KTL;var jD=function(){var t=_.z.apply(this,arguments)||this;t.id="product-picker";t.selected=!1;t.closeButtonId="close-button";t.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return t};
_.u(jD,_.z);_.Y=jD.prototype;_.Y.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.Y.observeSelected=function(){this.selected&&this.hostElement.focus();var t=_.ZN(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");t.length&&t[0].focus()};
_.Y.onCloseBuyFlow=function(){_.kT(this.hostElement,"picker-cancelled")};
_.Y.onCloseClick=function(){_.kT(this.hostElement,"picker-cancelled");var t;((t=this.data)==null?0:t.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.k(this.data.closeButton,_.Cz))};
_.Y.onCloseEngageWithAudienceEditorPanels=function(){_.kT(this.hostElement,"picker-cancelled")};
jD.prototype.observeSelected=jD.prototype.observeSelected;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],jD.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],jD.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],jD.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],jD.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],jD.prototype,"id",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],jD.prototype,"selected",void 0);_.N([_.e(),_.P("design:type",Object)],jD.prototype,"closeButtonId",void 0);_.N([_.GI("selected"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jD.prototype,"observeSelected",null);
_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],jD);
_.G(jD,"yt-live-chat-product-picker-panel-view-model",function(){if(KTL===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;$Bd===void 0&&($Bd=document.createElement("template"));var U=$Bd;p.call(E,U.content.cloneNode(!0),t.content.firstChild);KTL=t}t=KTL;return t},{mode:0});var vd5;var yOK;var rR=function(){var t=_.z.apply(this,arguments)||this;t.iconId="";t.icon="";t.disabled=!1;t.systemIcons=_.r("kevlar_system_icons");return t};
_.u(rR,_.z);_.Y=rR.prototype;_.Y.computeIconId=function(t){return t&&t.icon&&t.icon.iconType?t.icon.iconType.toLowerCase():""};
_.Y.computeIcon=function(t){return t&&t.icon&&t.icon.iconType?(t=t.icon.iconType.toLowerCase(),(t.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+t):""};
_.Y.computeDisabled=function(t){return!!t};
_.Y.computeCommand=function(t,E){return E?void 0:t};
_.Y.computeTooltip=function(t,E){return E&&t?t:""};
_.Y.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.aE.Object.defineProperties(rR.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var t="",E,p,U;if((E=this.data)==null?0:(p=E.text)==null?0:(U=p.runs)==null?0:U.length)t=this.data.text.runs[0].text||"";else{var x,A;if((x=this.data)==null?0:(A=x.text)==null?0:A.simpleText)t=this.data.text.simpleText}var m,b,f;if((m=this.data)==null?0:(b=m.subtext)==null?0:(f=b.runs)==null?0:f.length)t&&(t+=". "),t+=this.data.subtext.runs[0].text||"";else{var B,R;if((B=this.data)==null?0:(R=B.subtext)==
null?0:R.simpleText)t&&(t+=". "),t+=this.data.subtext.simpleText}return t}}});
_.N([_.g(_.Tn.YtEndpointBehavior),_.P("design:type",Object)],rR.prototype,"ytEndpointBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],rR.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],rR.prototype,"data",void 0);_.N([_.e({computed:"computeIconId(data)",reflectToAttribute:!0}),_.P("design:type",Object)],rR.prototype,"iconId",void 0);
_.N([_.e({computed:"computeIcon(data)",reflectToAttribute:!0}),_.P("design:type",Object)],rR.prototype,"icon",void 0);_.N([_.e({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.P("design:type",Object)],rR.prototype,"disabled",void 0);_.N([_.e({computed:"computeCommand(data.command, disabled)"}),_.P("design:type",Object)],rR.prototype,"command",void 0);_.N([_.e({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.P("design:type",String)],rR.prototype,"tooltip",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],rR.prototype,"systemIcons",void 0);_.N([_.Z("data.text","data.subtext"),_.e(),_.P("design:type",String),_.P("design:paramtypes",[])],rR.prototype,"ariaLabel",null);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],rR);
_.G(rR,"yt-live-chat-product-button-renderer",function(){if(yOK===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;vd5===void 0&&(vd5=document.createElement("template"));var U=vd5;p.call(E,U.content.cloneNode(!0),t.content.firstChild);yOK=t}t=yOK;return t},{mode:0});var Sdt;var cOC;var kQ=function(){var t=_.z.apply(this,arguments)||this;t.selected=!1;t.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 t};
_.u(kQ,_.z);_.Y=kQ.prototype;_.Y.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"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.Y.computeId=function(t){return t.id||""};
_.Y.onCloseClick=function(){_.kT(this.hostElement,"picker-cancelled")};
_.Y.observeSelected=function(){this.selected&&this.hostElement.focus();var t=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");t.length&&t[0].focus()};
_.Y.onCloseBuyFlow=function(){_.kT(this.hostElement,"picker-cancelled")};
_.Y.onCloseEngageWithAudienceEditorPanels=function(){_.kT(this.hostElement,"picker-cancelled")};
kQ.prototype.observeSelected=kQ.prototype.observeSelected;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],kQ.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],kQ.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],kQ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],kQ.prototype,"data",void 0);
_.N([_.e({computed:"computeId(data)",reflectToAttribute:!0}),_.P("design:type",String)],kQ.prototype,"id",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],kQ.prototype,"selected",void 0);_.N([_.GI("selected"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kQ.prototype,"observeSelected",null);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],kQ);
_.G(kQ,"yt-live-chat-product-picker-renderer",function(){if(cOC===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;Sdt===void 0&&(Sdt=document.createElement("template"));var U=Sdt;p.call(E,U.content.cloneNode(!0),t.content.firstChild);cOC=t}t=cOC;return t},{mode:0});var tye;var EV5;var pIe;var Ubo;var dR=function(){return _.z.apply(this,arguments)||this};
_.u(dR,_.z);dR.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()};
dR.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
dR.prototype.created=function(){this.ids={background:xG(),maskOne:xG(),maskTwo:xG(),gradient:xG(),largeBackground:xG(),largeGradientOne:xG(),largeGradientTwo:xG(),largeGradientPath:xG()}};
dR.prototype.maybeLoadAnimationBackground=dR.prototype.maybeLoadAnimationBackground;_.N([_.e({value:!1}),_.P("design:type",Boolean)],dR.prototype,"useLargeBackground",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],dR.prototype,"useAnimationBackground",void 0);_.N([_.e({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.P("design:type",Boolean)],dR.prototype,"useRegularBackground",void 0);
_.N([_.e(),_.P("design:type",Object)],dR.prototype,"ids",void 0);_.N([_.e(),_.P("design:type",Object)],dR.prototype,"lottieAnimation",void 0);_.N([_.Nl("#animation-background"),_.P("design:type",HTMLDivElement)],dR.prototype,"animationBackground",void 0);_.N([_.GI("useAnimationBackground"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dR.prototype,"maybeLoadAnimationBackground",null);
_.N([_.p4({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],dR);
_.G(dR,"yt-live-interactivity-component-background",function(){if(Ubo===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;pIe===void 0&&(pIe=document.createElement("template"));var U=pIe;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Ubo=t}t=Ubo;return t},{mode:0});var uy=function(){var t=_.z.apply(this,arguments)||this;t.characterCount=0;t.showInputErrorMessage=!1;t.startQnaRequestInFlight=!1;t.modern=_.r("web_button_rework_with_live");t.buttonOverrides={style:"mono",type:"filled"};t.closeButtonOverrides={iconPosition:"icon-only"};t.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return t};
_.u(uy,_.z);_.Y=uy.prototype;
_.Y.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]]"}}}}}};
_.Y.onCharacterCountChanged=function(t){var E,p,U,x,A=(p=_.k(this==null?void 0:(E=this.data)==null?void 0:E.creatorCallForQuestions,b7L))==null?void 0:(U=p.inputField)==null?void 0:(x=U.liveChatTextInputFieldRenderer)==null?void 0:x.maxCharacterLimit,m,b;A!=null&&(t==null?void 0:(m=t.detail)==null?void 0:m.characterCount)!=null&&_.k(this==null?void 0:(b=this.data)==null?void 0:b.startButton,_.Ry)&&(E=t.detail.characterCount>A,this.set("data.startButton.buttonRenderer.isDisabled",t.detail.characterCount===
0||E),this.showInputErrorMessage=E)};
_.Y.onCloseClick=function(){_.kT(this.hostElement,"picker-cancelled");_.du(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.Y.onPickerCancelled=function(){var t=_.ZN(this.hostElement).querySelector("#qna-creator-text-input-field");t&&t.setLiveChatRichMessageInput(null)};
_.Y.handleOpenQnaStartPanel=function(){var t=_.ZN(this.hostElement).querySelector("#qna-creator-text-input-field");t&&t.focus()};
_.Y.handleStartButtonAction=function(t){var E=this;if(t.detail.actionName==="yt-service-request"&&(t.stopPropagation(),t=t.detail.args[1])){var p=_.ZN(this.hostElement).querySelector("#qna-creator-text-input-field"),U;(p==null?0:(U=p.liveChatRichMessageInput)==null?0:U.textSegments)&&p.liveChatRichMessageInput.textSegments.length!==0&&(U={rich_message:_.Mn(p.liveChatRichMessageInput)},_.JZ(this.hostElement,[t,U]).then(function(){_.kT(E.hostElement,"picker-cancelled")}))}};
_.Y.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.Y.handleServiceRequestCompleted=function(t){var E;t=t==null?void 0:(E=t.detail)==null?void 0:E.data;(t==null?0:t.actions)&&t.actions.length>0?this.startQnaRequestInFlight=!1:_.du(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.Y.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
uy.prototype.handleServiceRequestError=uy.prototype.handleServiceRequestError;uy.prototype.handleServiceRequestCompleted=uy.prototype.handleServiceRequestCompleted;uy.prototype.handleServiceRequestSent=uy.prototype.handleServiceRequestSent;uy.prototype.onPickerCancelled=uy.prototype.onPickerCancelled;uy.prototype.onCharacterCountChanged=uy.prototype.onCharacterCountChanged;_.N([_.e(),_.P("design:type",Object)],uy.prototype,"characterCount",void 0);
_.N([_.e(),_.P("design:type",Object)],uy.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],uy.prototype,"showInputErrorMessage",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],uy.prototype,"startQnaRequestInFlight",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],uy.prototype,"modern",void 0);_.N([_.e(),_.P("design:type",Object)],uy.prototype,"buttonOverrides",void 0);
_.N([_.e(),_.P("design:type",Object)],uy.prototype,"closeButtonOverrides",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],uy.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Bg),_.P("design:type",Object)],uy.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.g(_.dw.YtLiveChatItemBehavior),_.P("design:type",_.uI)],uy.prototype,"ytLiveChatItemBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],uy.prototype,"ytActionHandlerBehavior",void 0);_.N([_.lc("yt-live-chat-text-input-field-renderer-character-count-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],uy.prototype,"onCharacterCountChanged",null);_.N([_.lc("picker-cancelled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uy.prototype,"onPickerCancelled",null);
_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uy.prototype,"handleServiceRequestSent",null);_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],uy.prototype,"handleServiceRequestCompleted",null);
_.N([_.lc("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],uy.prototype,"handleServiceRequestError",null);_.N([_.Ul({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],uy);
_.G(uy,"yt-live-chat-qna-start-panel-renderer",function(){if(EV5===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;tye===void 0&&(tye=document.createElement("template"));var U=tye;p.call(E,U.content.cloneNode(!0),t.content.firstChild);EV5=t}t=EV5;return t},{mode:0});var xbJ;var ApJ;var Jm=function(){return _.z.apply(this,arguments)||this};
_.u(Jm,_.z);Jm.prototype.dismiss=function(){_.kT(this.hostElement,"yt-live-chat-error-message-dismiss")};
Jm.prototype.edit=function(){_.kT(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.N([_.e(),_.P("design:type",Object)],Jm.prototype,"data",void 0);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],Jm);
_.G(Jm,"yt-live-chat-text-actions-error-message-renderer",function(){if(ApJ===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;xbJ===void 0&&(xbJ=document.createElement("template"));var U=xbJ;p.call(E,U.content.cloneNode(!0),t.content.firstChild);ApJ=t}t=ApJ;return t},{mode:0});var Yed;var My8;var mbb;var bKK;var I3=function(){var t=_.z.apply(this,arguments)||this;t.isDarkTheme=document.documentElement.hasAttribute("dark");t.newnessDotEligible=!1;return t};
_.u(I3,_.z);I3.prototype.sendReaction=function(){var t,E,p=((t=this.data)==null?void 0:t.emojiId)||((E=this.data)==null?void 0:E.emoteId),U;p&&((U=this.data)==null?0:U.shouldTriggerAnimation)&&_.du(this.hostElement,"yt-create-user-reaction-animation",[p]);var x;(t=_.AJ((x=this.data)==null?void 0:x.onTap))&&_.n4(t,this.hostElement);this.showNewnessDot&&_.du(this.hostElement,"yt-hide-newness-dot")};
I3.prototype.onClick=function(t){(!t||t.clientX||t.clientY)&&this.sendReaction()};
I3.prototype.onKeyDown=function(t){t.key!=="Enter"&&t.key!==" "||t.repeat||this.sendReaction()};
_.aE.Object.defineProperties(I3.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var t,E;return!!(((t=this.data)==null?0:t.emojiId)||((E=this.data)==null?0:E.emoteId))}}});
_.N([_.e(),_.P("design:type",Object)],I3.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],I3.prototype,"isDarkTheme",void 0);_.N([_.e(),_.P("design:type",Object)],I3.prototype,"newnessDotEligible",void 0);_.N([_.Z("data.maybeShowNewnessDot"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],I3.prototype,"showNewnessDot",null);_.N([_.Z("data.emojiId","data.emoteId"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],I3.prototype,"useYtImage",null);
_.N([_.p4({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],I3);
_.G(I3,"yt-reaction-control-panel-button-view-model",function(){if(bKK===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;mbb===void 0&&(mbb=document.createElement("template"));var U=mbb;p.call(E,U.content.cloneNode(!0),t.content.firstChild);bKK=t}t=bKK;return t},{mode:0});var iKg;var qeL;var gR=function(){var t=_.z.apply(this,arguments)||this;t.reactionControlPanelExpanded=!1;t.isDarkTheme=document.documentElement.hasAttribute("dark");t.newnessDotEligible=!1;return t};
_.u(gR,_.z);_.Y=gR.prototype;_.Y.expandedButtonsChanged=function(){var t,E;_.eU(this.hostElement,{"--expanded-buttons-height":((E=(t=this.expandedButtonsData)==null?void 0:t.length)!=null?E:0)*36+"px"})};
_.Y.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}}};
_.Y.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.Y.onMouseLeave=function(){var t=this;this.collapseTimer=setTimeout(function(){t.reactionControlPanelExpanded=!1},500)};
_.Y.onFocusIn=function(){this.onMouseEnter()};
_.Y.onFocusOut=function(){this.onMouseLeave()};
_.Y.onCollapsedButtonFocusIn=function(){var t=this;setTimeout(function(){var E;(E=t.expandedButtons.querySelector("button"))==null||E.focus()},100)};
_.Y.onCollapsedButtonFocusOut=function(t){t.stopPropagation()};
_.aE.Object.defineProperties(gR.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var t,E;return _.Kq.unsafeClone((t=this.liveReactionsData)==null?void 0:t.emojiButtonData)||((E=this.data)==null?void 0:E.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var t;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((t=this.data)==null||!t.maybeShowNewnessDot)}}});
gR.prototype.expandedButtonsChanged=gR.prototype.expandedButtonsChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],gR.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],gR.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Bg),_.P("design:type",Object)],gR.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],gR.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],gR.prototype,"reactionControlPanelExpanded",void 0);_.N([_.e({selectorArgs:["data.liveReactionsDataEntityKey"],selector:ZFl}),_.P("design:type",Object)],gR.prototype,"liveReactionsData",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],gR.prototype,"isDarkTheme",void 0);_.N([_.e(),_.P("design:type",Object)],gR.prototype,"newnessDotEligible",void 0);
_.N([_.Z("liveReactionsData","data.expandedButtons"),_.P("design:type",Object),_.P("design:paramtypes",[])],gR.prototype,"expandedButtonsData",null);_.N([_.Z("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.e({reflectToAttribute:!0}),_.P("design:type",Object),_.P("design:paramtypes",[])],gR.prototype,"showNewnessDot",null);_.N([_.Nl("#expanded-buttons"),_.P("design:type",HTMLElement)],gR.prototype,"expandedButtons",void 0);
_.N([_.GI("expandedButtonsData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gR.prototype,"expandedButtonsChanged",null);_.N([_.p4({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],gR);
_.G(gR,"yt-reaction-control-panel-view-model",function(){if(qeL===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;iKg===void 0&&(iKg=document.createElement("template"));var U=iKg;p.call(E,U.content.cloneNode(!0),t.content.firstChild);qeL=t}t=qeL;return t},{mode:0});var ZA=new _.wx("yt-live-chat"),HKd=Date.parse("2024-7-24"),Os=function(){var t=_.z.apply(this,arguments)||this;t.emojiManager=_.kt;t.newnessDotEligible=!1;t.newnessDotImpressionCounted=!1;t.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return t};
_.u(Os,_.z);_.Y=Os.prototype;_.Y.emojiCustomizationEnabledChanged=function(){var t;((t=this.data)==null?0:t.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((t=ZA.getCreationTime("emoji-customization-count"))&&t<HKd&&ZA.set("emoji-customization-count","0"),t=Number(ZA.get("emoji-customization-count"))||0,t<3&&(this.newnessDotEligible=!0,ZA.set("emoji-customization-count",(t+1).toString())),this.newnessDotImpressionCounted=!0)};
_.Y.hideNewnessDot=function(){this.newnessDotEligible=!1;ZA.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.Y.handleReactionsMute=function(t){var E=_.yL(),p=_.h8(206221),U={checkboxData:{state:t?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};E&&_.qc(E,p,U);this.reactionsMuted=t};
_.Y.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.Y.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}}};
_.aE.Object.defineProperties(Os.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var t;return(!((t=this.liveReactionsData)==null||!t.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
Os.prototype.liveReactionsSettingChanged=Os.prototype.liveReactionsSettingChanged;Os.prototype.emojiCustomizationEnabledChanged=Os.prototype.emojiCustomizationEnabledChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Os.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Os.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Bg),_.P("design:type",Object)],Os.prototype,"ytLiveChatReduxBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Os.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Os.prototype,"data",void 0);_.N([_.e(),_.P("design:type",_.CH)],Os.prototype,"emojiManager",void 0);_.N([_.e(),_.P("design:type",Object)],Os.prototype,"newnessDotEligible",void 0);_.N([_.e(),_.P("design:type",Object)],Os.prototype,"newnessDotImpressionCounted",void 0);
_.N([_.e({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:OFt}),_.P("design:type",Boolean)],Os.prototype,"liveReactionsSetting",void 0);_.N([_.e({selectorArgs:["data.liveReactionsDataEntityKey"],selector:ZFl}),_.P("design:type",Object)],Os.prototype,"liveReactionsData",void 0);_.N([_.e({value:function(){var t=_.r("enable_lwe_web_mute"),E=ZA.get("allow-reactions");return E===void 0?!1:!E&&t}}),
_.P("design:type",Boolean)],Os.prototype,"reactionsMuted",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Os.prototype,"liveReactionsEnabled",null);_.N([_.GI("data.emojiCustomizationEnabled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Os.prototype,"emojiCustomizationEnabledChanged",null);
_.N([_.GI("liveReactionsEnabled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Os.prototype,"liveReactionsSettingChanged",null);_.N([_.p4({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],Os);
_.G(Os,"yt-reaction-control-panel-overlay-view-model",function(){if(My8===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;Yed===void 0&&(Yed=document.createElement("template"));var U=Yed;p.call(E,U.content.cloneNode(!0),t.content.firstChild);My8=t}t=My8;return t},{mode:0});var frt={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(t){var E=this.$.pickers.selected;if(E){_.ZN(this.hostElement).removeAttribute(E+"-open");var p="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(p="#picker-buttons",E==="emoji"&&_.ZN(this.hostElement).querySelector("#emoji-picker-button")&&(p="#emoji-picker-button"));if(p=_.ZN(this.hostElement).querySelector(p).querySelector("#"+E))p.active=!1}p=t;E==t&&(p=null);E!=
t&&_.ZN(this.hostElement).setAttribute(t+"-open","");this.$.pickers.selected=p;_.du(this.hostElement,"yt-live-chat-picker-changed",[p])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var Xm=function(){var t=_.z.apply(this,arguments)||this;t.numSentMessages=0;t.timeoutDurationMs=0;t.timeoutMs=0;t.lastTimeoutTimeMs=0;t.pendingMessageId="";t.hasFiredInitialFocusActions=!1;t.isBeforeFocusEnabled=!0;t.id="";t.characterCount=0;t.maxCharacterLimit=0;t.remainingCharacterCount=0;t.inputExpanded=!1;t.buttonOverrides={iconPosition:"icon-only"};t.inReplyPanel=!1;t.countdownRatio=0;t.isTooltipVisible=!1;t.tooltipTimeout=1E4;t.systemIcons=_.r("kevlar_system_icons");t.tallerEmojiPicker=_.r("live_chat_taller_emoji_picker");
t.sendReplyMessageInFlight=!1;t.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"};t.onResize=function(){t.maybeToggleCharacterCount()};
return t};
_.u(Xm,_.z);_.Y=Xm.prototype;
_.Y.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"}}}};
_.Y.attached=function(){window.addEventListener("resize",this.onResize)};
_.Y.detached=function(){window.removeEventListener("resize",this.onResize)};
_.Y.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.Y.sendMessage=function(){var t=this,E,p,U,x;return _.q(function(A){if(t.sendDisabled)return A.return();t.isTooltipVisible&&_.du(t.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(t.data.sendButton&&t.data.sendButton.buttonRenderer){t.input.completeEmojis();E=t.data.sendButton.buttonRenderer.serviceEndpoint;if(!E)return A.return();U=((p=_.k(E,_.r1Z))==null?void 0:p.clientIdPrefix)||"";x={client_message_id:U+String(t.numSentMessages++),rich_message:_.Mn(t.input.liveChatRichMessageInput)};
t.pendingMessageId=x.client_message_id;t.inReplyPanel&&(t.sendReplyMessageInFlight=!0);_.JZ(t.hostElement,[E,x]);t.input.setLiveChatRichMessageInput(null)}_.Do(A)})};
_.Y.handleSendButtonAction=function(t){t.detail.actionName==="yt-service-request"&&(t.stopPropagation(),this.sendMessage())};
_.Y.onSendCompleted=function(t,E){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(t=this.get("timeoutDurationUsec",E.data))&&this.handleTimeout(Number(t)/1E3);this.errorMessage=this.get("errorMessage",E.data);this.pendingMessageId=""};
_.Y.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.du(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.Y.handlePickerButtonToggle=function(t){t=t.detail.targetId;this.ytPickerBehavior.togglePicker_(t);if(t==="emoji")this.input.focus();else if(t==="qna-start-panel"){var E,p;(E=_.ZN(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(p=E.querySelector("#qna-creator-text-input-field"))==null||p.focus()}};
_.Y.onComponentReplaced=function(t){var E,p;t.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((E=t.replacement.liveChatMessageInputRenderer)==null?0:(p=E.headerRenderer)==null?0:p.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.Y.onEmojiSelect=function(t){this.input.focus();this.input.insertEmoji(t.detail)};
_.Y.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.Y.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.du(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.du(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.Y.onOpenPopupAction=function(t,E){var p=this;E===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.du(p.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.Y.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.Y.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.Y.focusChanged=function(){this.maybeToggleCharacterCount()};
_.Y.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var t=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",t>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.Y.computeId=function(){return this.data&&this.data.targetId||""};
_.Y.computeSendDisabled=function(t,E,p,U){t=!!(!t||E&&t>E||U);(E=_.ZN(this.hostElement).querySelector("#send-button"))&&E.children.length&&(E.children[0].disabled=t);return t};
_.Y.handleTimeout=function(t){this.timeoutDurationMs=this.timeoutMs=t;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.Y.updateTimeout=function(t){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(t-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=t,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.Y.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.Y.onErrorMessageEdit=function(t){this.input.setLiveChatRichMessageInput(t.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.Y.errorMessageChanged=function(){var t=this;_.iR(function(){_.du(t.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.Y.computeAuthorNameColor=function(t){var E;if(_.r("live_chat_author_name_color_usernames")&&(t==null?0:(E=t.authorName)==null?0:E.simpleText))return _.fjO(_.BD_(t.authorName.simpleText));if(_.r("live_chat_seed_color_usernames")&&(t==null?0:t.authorSeedColorArgb))return _.fjO(_.e5(t.authorSeedColorArgb));if(_.r("live_chat_colored_usernames"))return"#cc0000";var p;return _.r("live_chat_simple_color_usernames")&&(t==null?0:(p=t.authorName)==null?0:p.simpleText)&&(t==null?0:t.authorUsernameColorLight)&&
(t==null?0:t.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.e5(t.authorUsernameColorDark):_.e5(t.authorUsernameColorLight):""};
_.Y.onIsTooltipVisibleChanged=function(){var t=_.ZN(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){t.hidden=!1;t.setAttribute("role","alert")},0):(t.hidden=!0,t.removeAttribute("role"))};
_.Y.onFocusedChanged=function(t){this.inputFocused=t.detail.value};
_.aE.Object.defineProperties(Xm.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 t;return!((t=this.data)==null||!t.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.data)==null?void 0:(E=t.pickers)==null?void 0:E.find(function(p){return p.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var t=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return t?this.ytRendererBehavior.getSimpleString(t):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
Xm.prototype.onIsTooltipVisibleChanged=Xm.prototype.onIsTooltipVisibleChanged;Xm.prototype.errorMessageChanged=Xm.prototype.errorMessageChanged;Xm.prototype.onErrorMessageEdit=Xm.prototype.onErrorMessageEdit;Xm.prototype.onErrorMessageDismiss=Xm.prototype.onErrorMessageDismiss;Xm.prototype.focusChanged=Xm.prototype.focusChanged;Xm.prototype.characterCountChanged=Xm.prototype.characterCountChanged;Xm.prototype.onEmojiSelect=Xm.prototype.onEmojiSelect;Xm.prototype.handlePickerButtonToggle=Xm.prototype.handlePickerButtonToggle;
Xm.prototype.onSendError=Xm.prototype.onSendError;Xm.prototype.onSendCompleted=Xm.prototype.onSendCompleted;Xm.prototype.sendMessage=Xm.prototype.sendMessage;Xm.prototype.dataChanged=Xm.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Xm.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Xm.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.g(frt.YtPickerBehavior),_.P("design:type",Object)],Xm.prototype,"ytPickerBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Xm.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.w8.YtLiveChatTooltipTargetingBehavior),_.P("design:type",Object)],Xm.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Xm.prototype,"hasFiredInitialFocusActions",void 0);
_.N([_.e(),_.P("design:type",Object)],Xm.prototype,"isBeforeFocusEnabled",void 0);_.N([_.e(),_.P("design:type",Object)],Xm.prototype,"data",void 0);_.N([_.e({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.P("design:type",Object)],Xm.prototype,"id",void 0);_.N([_.e(),_.P("design:type",Object)],Xm.prototype,"characterCount",void 0);_.N([_.e(),_.P("design:type",Object)],Xm.prototype,"maxCharacterLimit",void 0);
_.N([_.e(),_.P("design:type",Object)],Xm.prototype,"remainingCharacterCount",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Xm.prototype,"inputExpanded",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],Xm.prototype,"inputFocused",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],Xm.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.N([_.e(),_.P("design:type",_.gw)],Xm.prototype,"participantsManager",void 0);
_.N([_.e(),_.P("design:type",Object)],Xm.prototype,"buttonOverrides",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Xm.prototype,"inReplyPanel",void 0);_.N([_.Z("characterCount, maxCharacterLimit, countdownActive"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Xm.prototype,"sendDisabled",null);_.N([_.e(),_.P("design:type",Object)],Xm.prototype,"countdownRatio",void 0);
_.N([_.Z("countdownRatio"),_.P("design:type",Number),_.P("design:paramtypes",[])],Xm.prototype,"countdownStrokeDashOffset",null);_.N([_.Z("countdownRatio"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Xm.prototype,"countdownActive",null);_.N([_.Z("data.interactionMessage"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Xm.prototype,"hasInteractionMessage",null);
_.N([_.Z("data.emojiPickerButton"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Xm.prototype,"hasEmojiPickerButton",null);_.N([_.Z("data, characterCount"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Xm.prototype,"showAvatar",null);_.N([_.Z("data.pickers"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Xm.prototype,"hasProductPickerPanelViewModel",null);
_.N([_.e(),_.P("design:type",Object)],Xm.prototype,"errorMessage",void 0);_.N([_.e(),_.P("design:type",Object)],Xm.prototype,"genericErrorMessage",void 0);_.N([_.e(),_.P("design:type",Object)],Xm.prototype,"isTooltipVisible",void 0);_.N([_.e(),_.P("design:type",Object)],Xm.prototype,"tooltipTimeout",void 0);_.N([_.Z("data.onInitialFocusCommand"),_.P("design:type",String),_.P("design:paramtypes",[])],Xm.prototype,"tooltipMessage",null);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Xm.prototype,"systemIcons",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Xm.prototype,"tallerEmojiPicker",void 0);_.N([_.Z("data"),_.P("design:type",String),_.P("design:paramtypes",[])],Xm.prototype,"authorNameColor",null);_.N([_.e(),_.P("design:type",Object)],Xm.prototype,"sendReplyMessageInFlight",void 0);_.N([_.Nl("#input"),_.P("design:type",_.YNp)],Xm.prototype,"input",void 0);
_.N([_.Nl("#count"),_.P("design:type",HTMLElement)],Xm.prototype,"count",void 0);_.N([_.Nl("#input-container"),_.P("design:type",HTMLElement)],Xm.prototype,"inputContainer",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Xm.prototype,"dataChanged",null);_.N([_.lc("yt-live-chat-send-message"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],Xm.prototype,"sendMessage",null);
_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[Event,_.Rn]),_.P("design:returntype")],Xm.prototype,"onSendCompleted",null);_.N([_.lc("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Xm.prototype,"onSendError",null);
_.N([_.lc("yt-live-chat-icon-toggle-button-renderer-toggle"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Xm.prototype,"handlePickerButtonToggle",null);_.N([_.lc("yt-emoji-select"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Xm.prototype,"onEmojiSelect",null);
_.N([_.GI("characterCount"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Xm.prototype,"characterCountChanged",null);_.N([_.GI("inputFocused"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Xm.prototype,"focusChanged",null);_.N([_.lc("yt-live-chat-error-message-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Xm.prototype,"onErrorMessageDismiss",null);
_.N([_.lc("yt-live-chat-error-message-edit"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Xm.prototype,"onErrorMessageEdit",null);_.N([_.GI("errorMessage"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Xm.prototype,"errorMessageChanged",null);_.N([_.GI("isTooltipVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Xm.prototype,"onIsTooltipVisibleChanged",null);
_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],Xm);
_.G(Xm,"yt-live-chat-message-input-renderer",function(){if(FTl===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;eil===void 0&&(eil=document.createElement("template"));var U=eil;p.call(E,U.content.cloneNode(!0),t.content.firstChild);FTl=t}t=FTl;return t},{mode:0});var Bvl;var wI9;var hm=function(){var t=_.z.apply(this,arguments)||this;t.systemIcons=_.r("kevlar_system_icons");t.firedOnClickCommand=!1;t.inReplyPanel=!1;return t};
_.u(hm,_.z);
hm.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"}}}};
hm.prototype.onButtonToggle=function(t){t.target.disabled||this.ytPickerBehavior.togglePicker_(t.detail.targetId)};
hm.prototype.onClick=function(){var t=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.du(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return t.firedOnClickCommand=!1},5E3))};
_.aE.Object.defineProperties(hm.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.data)==null?void 0:(E=t.panels)==null?void 0:E.find(function(p){return p.liveChatProductPickerPanelViewModel}))!==void 0}}});
hm.prototype.onButtonToggle=hm.prototype.onButtonToggle;_.N([_.g(frt.YtPickerBehavior),_.P("design:type",Object)],hm.prototype,"ytPickerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],hm.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],hm.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],hm.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],hm.prototype,"systemIcons",void 0);_.N([_.e({reflectToAttribute:!1}),_.P("design:type",Object)],hm.prototype,"firedOnClickCommand",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],hm.prototype,"inReplyPanel",void 0);_.N([_.Z("data.pickers"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],hm.prototype,"hasProductPickerPanelViewModel",null);
_.N([_.lc("yt-live-chat-icon-toggle-button-renderer-toggle"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],hm.prototype,"onButtonToggle",null);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],hm);
_.G(hm,"yt-live-chat-restricted-participation-renderer",function(){if(wI9===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;Bvl===void 0&&(Bvl=document.createElement("template"));var U=Bvl;p.call(E,U.content.cloneNode(!0),t.content.firstChild);wI9=t}t=wI9;return t},{mode:0});var a3=function(){var t=_.z.apply(this,arguments)||this;t.genericErrorMessage=_.wN("Error, try again.");t.inReplyPanel=!1;t.hideBorder=!1;return t};
_.u(a3,_.z);a3.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}}}}}};
_.aE.Object.defineProperties(a3,{template:{configurable:!0,enumerable:!0,get:function(){return Ijd()}}});
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],a3.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],a3.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],a3.prototype,"genericErrorMessage",void 0);_.N([_.e(),_.P("design:type",Object)],a3.prototype,"inReplyPanel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],a3.prototype,"hideBorder",void 0);
_.N([_.p4({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],a3);_.G(a3,"yt-live-chat-engagement-panel-input-renderer",function(){return Ijd()},{mode:0});var RYC;var Vyg;var QgL=new _.wx("yt-live-chat"),Cpb=new Map;Cpb.set("timestamp_toggle","show-timestamps");Cpb.set("reactions_toggle","allow-reactions");var eD=function(){return _.z.apply(this,arguments)||this};
_.u(eD,_.z);_.Y=eD.prototype;_.Y.menuItemIdentifierChanged=function(){var t;(t=this.data)!=null&&t.menuItemIdentifier&&(t=Cpb.get(this.data.menuItemIdentifier))&&(_.r("enable_lwe_web_mute")?(t=QgL.get(t),this.isToggled=!(t===void 0?!this.data.isToggled:!t)):this.isToggled=QgL.get(t))};
_.Y.onFocus=function(){this.toggleButton.focus()};
_.Y.onTap=function(){var t=this.data.command;t&&this.componentBehavior.resolveCommand(t)};
_.Y.computeText=function(t,E,p){return this.componentBehavior.getSimpleString(t?p:E)};
_.Y.computeIcon=function(t,E,p){return(t=t?p:E)&&t.iconType?_.zh(t.iconType):""};
eD.prototype.onTap=eD.prototype.onTap;eD.prototype.onFocus=eD.prototype.onFocus;eD.prototype.menuItemIdentifierChanged=eD.prototype.menuItemIdentifierChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],eD.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],eD.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],eD.prototype,"data",void 0);
_.N([_.e({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.P("design:type",String)],eD.prototype,"icon",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],eD.prototype,"isToggled",void 0);_.N([_.Nl("tp-yt-paper-toggle-button"),_.P("design:type",Object)],eD.prototype,"toggleButton",void 0);_.N([_.GI("data.menuItemIdentifier"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],eD.prototype,"menuItemIdentifierChanged",null);
_.N([_.lc("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],eD.prototype,"onFocus",null);_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],eD.prototype,"onTap",null);_.N([_.p4({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],eD);
_.G(eD,"yt-live-chat-toggle-renderer",function(){if(Vyg===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;RYC===void 0&&(RYC=document.createElement("template"));var U=RYC;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Vyg=t}t=Vyg;return t},{mode:0});var jg7=new _.gM("NAVIGATION_PROGRESS_TOKEN");var rpl={},kYJ={},dbo=(kYJ[qVK.name]=!0,kYJ),Fm=function(){var t=_.sU.apply(this,arguments)||this;t._noAccessors=!0;t.tabGesturesIsActive=!1;t.actionRouterIsRoot=!0;t.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"};t.pageTitle="";t.titleSuffix="YouTube";t.unseenNotificationCount=
0;t.hasNavigated=!1;t.hasSetScrollTopForNavigation=!1;t.pagePreparer=null;t.zwiebackInitJobId=0;t.dataUpdatePromise=null;t.loadDepsPromise=_.gu();t.hasPendingNavigation=!1;t.pendingPlayerOnResponseReceivedActions=[];return t};
_.u(Fm,_.sU);Fm.prototype.attached=function(){uwb(this);document.addEventListener("yt-navigate-cache",_.zI(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var t=zj();t.init();t.dispatchElement=this.hostElement};
var uwb=function(t,E){E=E===void 0?0:E;var p=_.X3().resolve(_.OB(_.W5));if(p)Jpg(t,p);else{if(E>=5)throw Error("ul");setTimeout(function(){uwb(t,E+1)},0)}},Jpg=function(t,E){E.addEventListener("yt-navigate-start",_.zI(t,t.onYtNavigateStart));
E.addEventListener("yt-navigate-finish",_.zI(t,t.onYtNavigateFinish));E.addEventListener("yt-navigate-error",_.zI(t,t.onYtNavigateError));E.addEventListener("yt-page-data-fetched",_.zI(t,t.onYtPageDataFetched))};
_.Y=Fm.prototype;_.Y.detached=function(){var t=_.X3().resolve(_.W5);t.removeEventListener("yt-navigate-start",_.zI(this,this.onYtNavigateStart));t.removeEventListener("yt-navigate-finish",_.zI(this,this.onYtNavigateFinish));t.removeEventListener("yt-navigate-error",_.zI(this,this.onYtNavigateError));t.removeEventListener("yt-page-data-fetched",_.zI(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.zI(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.Y.setPageOffset=function(t,E){t?_.du(this.hostElement,"yt-set-page-offset",[t,E]):_.bV(Error("vl"))};
_.Y.setPageOffsetForNavigation=function(t,E){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(t,E))};
_.Y.onYtNavigateSetPageOffset=function(t,E){this.setPageOffsetForNavigation(E.page,E.offset)};
_.Y.getPageOffset=function(){var t=_.ZN(this.hostElement).querySelector("#page-manager").getCurrentPage(),E=0;t&&(E=_.du(this.hostElement,"yt-get-page-offset",[t])[0]);return E};
_.Y.onYtHistoryPop=function(t,E){if(_.HC("DISABLE_WARM_LOADS"))t.preventDefault(),window.location.reload();else{var p=_.X3().resolve(_.W5);p.hasPendingNavigation()&&t.preventDefault();p.cancelPendingNavigation();_.uO(this.hostElement,"yt-pending-navigation-cancelled");E.errorMsg&&(t=E.errorMsg.split(" - "),E=Error(t[0]),t.length==2&&t[1]&&(_.HX(E,t[1]),_.qW(E)),window.location.reload())}};
_.Y.onYtHistoryLoad=function(t,E){var p=this;if(_.HC("DISABLE_WARM_LOADS"))window.location.reload();else{(t=E.endpoint)&&Object.keys(t).length||(t=null);var U=E.historyEntry,x=_.X3().resolve(_.W5),A=_.X3().resolve(_.jw),m=null;U&&U.rootData&&(m=U.rootData);var b=m&&Ir5(m);!m||b||m.filler?t?(x.navigate(t,!0),gV7(this,t)):(E.legacyBorder||b||(E.JSC$31106_savedComponentState==null&&m==null?_.qW(new _.cC("Incomplete history entry",E.forward)):_.iV(new _.cC("Malformed history entry",E.JSC$31106_savedComponentState,
E.forward,m))),window.location.reload()):(_.y1O({isHot:!0}),_.KF({webInfo:{navigationReason:"h"}}),_.c_8(),_.SR("srt"),_.SR("pdc"),this.cancelPendingTasks(),ZKK(this,E.forward,m),m.player&&(m.player.loaded=!1),gV7(this,t),_.n0G(x,t||{},m,2,{},!1,E).then(function(){p.setPageOffset(A.getCurrentPage(),U.scrollTop||0)}))}};
_.Y.initHistoryManager=function(t){if(!this.hasNavigated){this.hasNavigated=!0;var E=_.ZN(this.hostElement).querySelector("#page-manager").getCurrentData();t=isNaN(t)?this.getPageOffset():t;var p=_.X3().resolve(_.W5).currentEndpoint;this.replaceState(p,E,t)}};
_.Y.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.Y.onYtNavigateStart=function(t,E){this.cancelPendingTasks();E.noProgressBar||(t=_.X3().resolve(_.OB(jg7)))&&t.start();t=this.hasPendingNavigation?null:this.data;var p=_.X3().resolve(_.jw),U,x,A;_.r("kevlar_use_vimio_behavior")&&!((U=E.endpoint)==null?0:(x=U.commandMetadata)==null?0:(A=x.webCommandMetadata)==null?0:A.ignoreNavigation)&&(U=p.getCurrentPage())&&U.disconnectVisibilityRoot();p.prepareForNavigation(E.pageType,E.endpoint);_.r("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.hS(1,
"pcl"),_.aO(this.pagePreparer,p.preparePage.bind(p,E.pageType,E.endpoint)));U=this.getPageOffset();this.initHistoryManager(U);E.reload||this.hasPendingNavigation?(E.pageType==="shorts"&&E.reload&&_.kT(this.hostElement,"yt-shorts-reset"),this.replaceState(E.endpoint,t,U)):(t==null?void 0:t.page)==="watch"&&E.pageType==="watch"&&_.r("kevlar_replace_watch_to_watch_history_state")?this.replaceState(E.endpoint,t,U):(t==null?void 0:t.page)!=="shorts"||E.pageType!=="shorts"||E.endpoint.reelWatchEndpoint.sequenceParams||
_.r("short_to_short_back_nav_killswitch")?E.type!="navigate-back"&&E.type!="navigate-forward"&&(E.pageType==="shorts"&&_.kT(this.hostElement,"yt-shorts-reset"),this.saveAndPush(E.url,E.endpoint,t,U)):this.replaceState(E.endpoint,t,0);this.hasPendingNavigation=!0};
var OKl=function(t){t.hasPendingNavigation=!1;(t=_.X3().resolve(_.OB(jg7)))&&t.finish()};
Fm.prototype.onYtNavigateError=function(t,E){OKl(this);t=this.get("endpoint.commandMetadata.webCommandMetadata.url",E);var p=_.ji(window.location.href);t&&!p.pbjreload&&(E=E.navigationErrorReason||"10",_.r("kevlar_parent_on_pbjreload")&&(p={csn:_.yL()},this.get("data.endpoint.clickTrackingParams")&&(p.itct=this.data.endpoint.clickTrackingParams),_.RK(t,p)),_.xR(_.rs(t,{pbjreload:E})))};
Fm.prototype.onYtNavigateCache=function(t,E){var p=this,U=E.url,x=E.endpoint,A=E.data;t=!!E.miniplayer;E=!!E.skipHistory;if(U&&x&&A){var m=this.getPageOffset(),b=this.data||null;E||this.saveAndPush(U,x,b,m);U=_.n0G(_.X3().resolve(_.W5),x,A,t?4:3,{},t);t&&U.then(function(){p.dataUpdatePromise&&p.dataUpdatePromise.then(function(){var f=_.X3().resolve(_.jw);p.setPageOffset(f.getCurrentPage(),0)})})}};
Fm.prototype.onYtNavigateFinish=function(t,E){var p=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){XIK(p,E.fromHistory)})};
var XIK=function(t,E){OKl(t);if(t.pendingPlayerOnResponseReceivedActions){for(var p=_.M(t.pendingPlayerOnResponseReceivedActions),U=p.next();!U.done;U=p.next())_.n4(U.value,t.hostElement);t.pendingPlayerOnResponseReceivedActions=[]}p=_.X3().resolve(_.jw);E||!t.hasNavigated||_.r("web_disable_scroll_on_navigate_finish")||((E=p.getCurrentPage())?E.is==="ytd-shorts"||t.tabGesturesIsActive||t.setPageOffsetForNavigation(E,0):_.qW(Error("wl")));_.iR(function(){_.iR(function(){_.SR("pda")})})};
Fm.prototype.onYtNavigate=function(t){if(!t.detail.endpoint){var E=new _.cC("Error: Missing yt-navigate endpoint from target:",t.target,t.target.nodeName);_.bV(E)}if(E=_.r("cold_missing_history"))E=zj(),E.init(!1),E=!(E.browserHistory.boundHistoryReplaceState&&E.browserHistory.boundHistoryPushState);if(E){_.ia("DISABLE_WARM_LOADS",!0);E=new _.cC("Failed to initialize history manager",this.getDebugString());var p=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
p?_.qW(E):_.bV(E)}E=t.detail.endpoint;var U,x;_.r("debug_forward_web_query_parameters")&&((U=E.commandMetadata)==null?0:(x=U.webCommandMetadata)==null?0:x.url)&&(E=JSON.parse(JSON.stringify(E)),E.commandMetadata.webCommandMetadata.url=_.Qp$(E.commandMetadata.webCommandMetadata.url,window.location.search));t={type:0,command:E,form:{params:t.detail.params,tempData:t.detail.tempData||{},requestType:t.detail.type,createScreenConfig:t.detail.createScreenConfig,reload:t.detail.reload?t.detail.reload:!1,
requestForm:t.detail}};_.r("kevlar_yt_navigate_command_handler")?(U=_.X3().resolve(_.ei),t.form.skipDefaultElement=!0,U.resolveCommand(E,{form:t.form})):this.handleNavigate(t)};
Fm.prototype.handleNavigate=function(t){this.hasSetScrollTopForNavigation=!1;var E=_.X3().resolve(_.W5),p=t.form||{};E.navigate(t.command,p.reload,p.params,p.tempData,p.requestType,p.createScreenConfig,p.ignoreConfirmation,p.requestForm)&&gV7(this,t.command,p.tempData)};
Fm.prototype.onYtPageDataFetched=function(t,E){try{_.ZKp().reset();this.data=E.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.X3().resolve(_.jw).updatePageData(this.data);var p=this.get("playerResponse.onResponseReceivedActions",this.data);p&&(p=hYK(this,p));p&&_.IK(this.hostElement,p,this.hostElement);var U=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),x=this.get("response.responseContext.consistencyTokenJar",this.data);if(U||x){var A=_.qLi(),m=(0,_.Kq.getValues)(A.tokenJars);U&&A.replace(m,U);x&&A.replace(m,x)}}catch(b){_.bV(b)}};
var gV7=function(t,E,p){try{t.onYtEndpointChangeHandler(E,p)}catch(U){_.bV(U)}};
_.Y=Fm.prototype;_.Y.onYtEndpointChangeHandler=function(){};
_.Y.setPageTitle=function(t){t=(this.pageTitle=t)?t+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+t};
_.Y.onYtUpdateTitle=function(t,E){this.setPageTitle(E)};
_.Y.setUnseenNotificationCount=function(t){this.unseenNotificationCount=t;this.setPageTitle(this.pageTitle)};
_.Y.handleUpdateNotificationsUnseenCountAction=function(t){_.k(t,eIl)&&((t=_.k(t,eIl).unseenCount)?this.setUnseenNotificationCount(t):this.setUnseenNotificationCount(0))};
_.Y.handleClearCookieAction=function(t){var E;(t=(E=_.k(t,gcl))==null?void 0:E.cookieName)&&_.GVK(t)};
_.Y.onYtUpdateUnseenNotificationCount=function(t,E){this.setUnseenNotificationCount(E)};
_.Y.loadData=function(t){var E=this;this.loadDepsPromise.then(function(){var p=_.X3().resolve(_.OB(_.W5));p||_.bV(Error("xl"));if(t&&t.response){if(!t.endpoint){var U=_.M_(window.document.location.href)||"/",x="";if(U==="/"||U.startsWith("/?"))x="WEB_PAGE_TYPE_BROWSE";t.endpoint={commandMetadata:{webCommandMetadata:{url:U,webPageType:x,rootVe:3854}}}}_.n0G(p,t.endpoint,t,5,{})}else t.endpoint?p.navigate(t.endpoint):p.navigate(_.tL);_.ir.cancelJob(E.zwiebackInitJobId);E.zwiebackInitJobId=_.ir.addLowPriorityJob(RUd)})};
var zj=function(){return _.X3().resolve(_.ve)};
Fm.prototype.getDebugString=function(){return zj().getDebugString()};
Fm.prototype.getThirdPartyManipulationSuspected=function(){return zj().getThirdPartyManipulationSuspected()};
Fm.prototype.replaceState=function(t,E,p){zj().saveAndReplace(t,E,p)};
Fm.prototype.saveAndPush=function(t,E,p,U){zj().saveAndPush(t,E,p,U)};
var Ir5=function(t){return _.k(t.endpoint,_.HD)||_.k(t.endpoint,_.DK)?!0:!t||isNaN(t.expirationTime)?!1:(0,_.eu)()>t.expirationTime},ZKK=function(t,E,p){var U=t.get("response.trackingParams",p),x=_.vV(),A=_.yL();
if(U&&x&&A&&(U=t.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",p),!U&&p.rootVe&&(U=p.rootVe),x=E?"forwardButton":"backButton",E=t.get("playerResponse.topbar.desktopTopbarRenderer."+x+".buttonRenderer.command.clickTrackingParams",t.data),t=t.get("response.topbar.desktopTopbarRenderer."+x+".buttonRenderer.command.clickTrackingParams",t.data),E=(t=E||t)?_.$8(t):void 0,t=_.Pu(),x=[_.gu(p)],_.PH(t,U,E,{dataPromises:x,csnToClone:p.csn}),p.graftedVes))for(p=
_.M(p.graftedVes),U=p.next();!U.done;U=p.next())_.Tw(t,U.value)};
Fm.prototype.onStoreGraftedVeAction=function(t){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(t)):_.qW(Error("yl"))};
var hYK=function(t,E){return E.filter(function(p){for(var U in p)if(dbo[U])return t.pendingPlayerOnResponseReceivedActions.push(p),!0;return!1})};
_.aE.Object.defineProperties(Fm.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
Fm.prototype.onStoreGraftedVeAction=Fm.prototype.onStoreGraftedVeAction;Fm.prototype.loadData=Fm.prototype.loadData;Fm.prototype.onYtUpdateUnseenNotificationCount=Fm.prototype.onYtUpdateUnseenNotificationCount;Fm.prototype.handleClearCookieAction=Fm.prototype.handleClearCookieAction;Fm.prototype.handleUpdateNotificationsUnseenCountAction=Fm.prototype.handleUpdateNotificationsUnseenCountAction;Fm.prototype.setUnseenNotificationCount=Fm.prototype.setUnseenNotificationCount;
Fm.prototype.onYtUpdateTitle=Fm.prototype.onYtUpdateTitle;Fm.prototype.setPageTitle=Fm.prototype.setPageTitle;Fm.prototype.onYtEndpointChangeHandler=Fm.prototype.onYtEndpointChangeHandler;Fm.prototype.onYtPageDataFetched=Fm.prototype.onYtPageDataFetched;Fm.prototype.handleNavigate=Fm.prototype.handleNavigate;Fm.prototype.onYtNavigate=Fm.prototype.onYtNavigate;Fm.prototype.onYtNavigateFinish=Fm.prototype.onYtNavigateFinish;Fm.prototype.onYtNavigateCache=Fm.prototype.onYtNavigateCache;
Fm.prototype.onYtNavigateError=Fm.prototype.onYtNavigateError;Fm.prototype.onYtNavigateStart=Fm.prototype.onYtNavigateStart;Fm.prototype.cancelPendingTasks=Fm.prototype.cancelPendingTasks;Fm.prototype.initHistoryManager=Fm.prototype.initHistoryManager;Fm.prototype.onYtHistoryLoad=Fm.prototype.onYtHistoryLoad;Fm.prototype.onYtHistoryPop=Fm.prototype.onYtHistoryPop;Fm.prototype.onYtNavigateSetPageOffset=Fm.prototype.onYtNavigateSetPageOffset;Fm.prototype.setPageOffset=Fm.prototype.setPageOffset;
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Fm.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Fm.prototype,"data",void 0);_.N([_.lc("yt-navigate-set-page-offset"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],Fm.prototype,"onYtNavigateSetPageOffset",null);
_.N([_.lc("yt-history-pop"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],Fm.prototype,"onYtHistoryPop",null);_.N([_.lc("yt-history-load"),_.P("design:type",Function),_.P("design:paramtypes",[Event,_.E04]),_.P("design:returntype")],Fm.prototype,"onYtHistoryLoad",null);_.N([_.lc("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Fm.prototype,"onYtNavigate",null);
_.N([_.lc("yt-update-title"),_.P("design:type",Function),_.P("design:paramtypes",[Event,String]),_.P("design:returntype")],Fm.prototype,"onYtUpdateTitle",null);_.N([_.lc("yt-update-unseen-notification-count"),_.P("design:type",Function),_.P("design:paramtypes",[Event,Number]),_.P("design:returntype")],Fm.prototype,"onYtUpdateUnseenNotificationCount",null);_.N([_.L0()],Fm);rpl.YtdAppBehavior=[_.oO.YtActionHandlerBehavior,Fm.prototype];var ly=function(){var t=_.sU.apply(this,arguments)||this;t._noAccessors=!0;t.scrollRate=3;t.autoScrollAnimationStart=0;t.autoScrollPaused=!1;t.autoScrollRafId=0;return t};
_.u(ly,_.sU);_.Y=ly.prototype;_.Y.created=function(){var t=this;this.boundAutoScrollHandler=function(E){t.autoScroll(E)}};
_.Y.detached=function(){this.hostElement.removeEventListener("mouseout",_.zI(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.zI(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.zI(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.Y.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.zI(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.zI(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.zI(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.zI(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.zI(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.zI(this,this.endAutoScroll)),this.endAutoScroll())};
_.Y.autoScroll=function(t){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=t);var E;if(E=!this.autoScrollPaused&&this.scrollTarget)E=this.scrollTarget,E=E.scrollHeight-E.scrollTop!==E.clientHeight;E&&(E=1E3/this.scrollRate,t-=this.autoScrollAnimationStart,t>E&&(this.scrollTarget.scrollTop+=Math.ceil(t/E),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.Y.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.Y.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
ly.prototype.autoScrollEnabledChanged=ly.prototype.autoScrollEnabledChanged;_.N([_.e(),_.P("design:type",Object)],ly.prototype,"scrollRate",void 0);_.N([_.e(),_.P("design:type",Object)],ly.prototype,"scrollTarget",void 0);_.N([_.e(),_.P("design:type",Boolean)],ly.prototype,"autoScrollEnabled",void 0);_.N([_.GI("autoScrollEnabled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ly.prototype,"autoScrollEnabledChanged",null);_.N([_.L0()],ly);var ar8=[ly.prototype];var Gj=function(){var t=_.sU.apply(this,arguments)||this;t._noAccessors=!0;return t};
_.u(Gj,_.sU);Gj.prototype.ready=function(){var t=this;_.ZN(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){t.onChange_()})};
Gj.prototype.dataChanged_=function(){_.ZN(this.hostElement).querySelector("#checkbox").checked=!1};
Gj.prototype.onChange_=function(){var t=_.ZN(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.kT(this.hostElement,"yt-dismissal-reason-"+t,this.data.feedbackToken)};
Gj.prototype.dataChanged_=Gj.prototype.dataChanged_;_.N([_.e(),_.P("design:type",Object)],Gj.prototype,"data",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Gj.prototype,"dataChanged_",null);_.N([_.L0()],Gj);var eYL=[Gj.prototype];var n9=function(){var t=_.sU.apply(this,arguments)||this;t.showInput=!1;return t};
_.u(n9,_.sU);_.Y=n9.prototype;_.Y.detached=function(){this.showInput&&window.removeEventListener("click",_.zI(this,this.closeOnOutsideClick_))};
_.Y.stopPropagation_=function(t){this.showInput&&t.stopPropagation()};
_.Y.closeOnOutsideClick_=function(t){this.closeOnOutsideClickCondition(t)&&(this.showInput=!1,window.removeEventListener("click",_.zI(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.Y.closeOnOutsideClickCondition=function(){return!0};
_.Y.closeOnOutsideClickHandler=function(){};
_.Y.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.zI(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.Y.openOnClickHandler=function(){};
_.Y.showInputChanged=function(){};
_.Y.setShowInput=function(t){this.showInput=t};
n9.prototype.setShowInput=n9.prototype.setShowInput;n9.prototype.showInputChanged=n9.prototype.showInputChanged;n9.prototype.openOnClickHandler=n9.prototype.openOnClickHandler;n9.prototype.openOnClick_=n9.prototype.openOnClick_;n9.prototype.closeOnOutsideClickHandler=n9.prototype.closeOnOutsideClickHandler;n9.prototype.closeOnOutsideClickCondition=n9.prototype.closeOnOutsideClickCondition;n9.prototype.closeOnOutsideClick_=n9.prototype.closeOnOutsideClick_;n9.prototype.stopPropagation_=n9.prototype.stopPropagation_;
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],n9.prototype,"showInput",void 0);_.N([_.lc("click"),_.lc("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],n9.prototype,"stopPropagation_",null);_.N([_.GI("showInput"),_.P("design:type",Function),_.P("design:paramtypes",[Boolean]),_.P("design:returntype")],n9.prototype,"showInputChanged",null);_.N([_.L0()],n9);var FUJ=[n9.prototype];var NN=function(){var t=_.sU.apply(this,arguments)||this;t.timeoutJobId=0;t.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return t};
_.u(NN,_.sU);NN.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
NN.prototype.startTimeout=function(){var t=this,E=this.data&&this.data.displayDurationSeconds;E&&!this.timeoutJobId&&(this.timeoutJobId=_.E_(_.ir,function(){_.du(t.hostElement,"yt-close-popup-action",[t.is]);t.timeoutJobId=0},E*1E3))};
NN.prototype.cancelTimeout=function(){_.ir.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
NN.prototype.ytdHatsSurveyBehaviorDataChanged=NN.prototype.ytdHatsSurveyBehaviorDataChanged;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],NN.prototype,"ytActionHandlerBehavior",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],NN.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.N([_.L0()],NN);var zYd=[_.oO.YtActionHandlerBehavior,NN.prototype];var lre=_.h8(115994),GY9=_.h8(115993),nVt=function(t,E,p){var U=this;var x=p.dragDownAction;this.layer=0;this.JSC$20343_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return U.dragDownAction()}}}};
this.JSC$20343_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return U.dragDownAction()}}}};
this.fullscreen=!1;var A=_.Pu();_.oy(A,lre,this.layer);_.oy(A,GY9,this.layer);this.dragDownAction=function(){x();_.bA(A,{visualElement:U.fullscreen?lre:GY9})};
this.gesture=new Us(t,E,this.getConfig(!1),"pandown");this.attach()};
nVt.prototype.attach=function(){this.gesture.attach()};
nVt.prototype.detach=function(){this.gesture.detach()};
nVt.prototype.update=function(t){this.fullscreen=t;var E=this.gesture;t=this.getConfig(t);E.config=t};
nVt.prototype.getConfig=function(t){return t?this.JSC$20343_watchFullScreenConfig:this.JSC$20343_watchConfig};var Nv9;var DbJ;var DA=function(){var t=_.z.apply(this,arguments)||this;t.systemIcons=_.r("kevlar_system_icons");t.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return t};
_.u(DA,_.z);DA.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var t=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(t=this.data.percentIfLiked||0,this.activated=!0):(t=this.data.percentIfIndifferent||0,this.activated=!1);_.ZN(this.hostElement).querySelector("#like-bar").style.width=t+"%"}};
DA.prototype.handleUpdateSentimentBarStateCommand=function(t){this.data&&this.set("data.likeStatus",_.k(t,Wp8).likeStatus)};
DA.prototype.observeLikeStatus=DA.prototype.observeLikeStatus;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],DA.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],DA.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],DA.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],DA.prototype,"activated",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],DA.prototype,"systemIcons",void 0);_.N([_.GI("data.likeStatus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],DA.prototype,"observeLikeStatus",null);_.N([_.Ul({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],DA);
_.G(DA,"ytd-sentiment-bar-renderer",function(){if(DbJ!==void 0)return DbJ;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return DbJ=t},{mode:1});var sgC;var ss=function(){var t=_.z.apply(this,arguments)||this;t.small=!0;return t};
_.u(ss,_.z);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],ss.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],ss.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],ss.prototype,"small",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],ss);
_.G(ss,"ytd-video-view-count-renderer",function(){if(sgC!==void 0)return sgC;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return sgC=t},{mode:_.hX("kevlar_poly_si_batch_j080")?1:2});var L9=function(){var t=_.z.apply(this,arguments)||this;t.infoFormattedStrings=[];t.wrapVideoActions=_.r("kevar_watch_wrap_video_actions");t.hideSentimentBar=_.r("kevlar_watch_hide_sentiment_bar");t.actionMap={};return t};
_.u(L9,_.z);_.Y=L9.prototype;_.Y.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.r("web_modern_buttons"),forceIconButton:!_.r("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.Y.dataChanged=function(){_.r("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.Y.computeInfoFormattedStrings=function(t){if(!t)return[];var E=[];t.dateText&&E.push(t.dateText);t.stationName&&E.push(t.stationName);t.rating&&E.push(t.rating);t.startEndTimeTemplate&&t.startTimeUtcMillis&&t.endTimeUtcMillis&&E.push(_.wN(Wtt(_.R4(t.startEndTimeTemplate),Number(t.startTimeUtcMillis),Number(t.endTimeUtcMillis))));t.upNextProgramText&&E.push(t.upNextProgramText);return E};
_.Y.scheduleInitialUpdatedMetadataRequest=function(){var t,E=(t=this.data)==null?void 0:t.updatedMetadataEndpoint;if(E){var p;t=Number((p=_.k(E,_.PIs))==null?void 0:p.initialDelayMs);p=isNaN(t)?250:t;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),p)}};
_.Y.setSentimentBarWidth=function(){var t=this;_.XE(this,function(){var E=_.ZN(t.hostElement).querySelector("ytd-menu-renderer");if(E){E=E.topLevelButtons;for(var p=0,U=0;U<E.length;U++){var x=E[U],A=t.get("toggleButtonSupportedData.toggleButtonIdData.id",x.data);if(A==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||A==="TOGGLE_BUTTON_ID_TYPE_LIKE")p+=x.clientWidth+8;else break}p&&(t.sentiment.style.width=p-8+" px")}})};
_.Y.fetchUpdatedMetadata=function(t){var E;t&&(E={continuation:t});var p;(t=(p=this.data)==null?void 0:p.updatedMetadataEndpoint)&&_.X3().resolve(_.ei).resolveCommand(t,{form:Object.assign({},E,{element:this.hostElement})})};
_.Y.onYtServiceRequestSent=function(t,E){E.endpoint&&_.k(E.endpoint,_.A1)&&(this.hasUpdateSentimentBarStateCommands()&&!_.r("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.k(E.endpoint,_.A1).status),this.setSentimentBarWidth())};
_.Y.hasUpdateSentimentBarStateCommands=function(){var t,E,p,U,x=(U=(t=this.data)==null?void 0:(E=t.videoActions)==null?void 0:(p=E.menuRenderer)==null?void 0:p.topLevelButtons)!=null?U:[];t=_.M(x);for(E=t.next();!E.done;E=t.next()){E=E.value;x=U=p=void 0;var A=(p=E.toggleButtonRenderer)==null?void 0:(U=p.toggleButtonSupportedData)==null?void 0:(x=U.toggleButtonIdData)==null?void 0:x.id;if(A==="TOGGLE_BUTTON_ID_TYPE_LIKE"||A==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){U=p=void 0;E=(U=_.k((p=E.toggleButtonRenderer)==
null?void 0:p.defaultServiceEndpoint,_.ZU))==null?void 0:U.commands;if(!E)break;E=_.M(E);for(p=E.next();!p.done;p=E.next())if(_.k(p.value,Wp8))return!0}}return!1};
_.Y.onYtServiceRequestCompleted=function(t,E){var p;(t=(p=E.data)==null?void 0:p.loggingDirectives)&&_.Iit(_.Pu(),t);this.get("continuation.timedContinuationData",E.data)&&this.data&&this.data.updatedMetadataEndpoint&&(E=E.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,E.continuation),E.timeoutMs))};
_.Y.computeHasDateText=function(t){return!!t&&!!t.dateText};
_.aE.Object.defineProperties(L9.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var t,E,p,U;return!((U=(t=this.data)==null?void 0:(E=t.videoActions)==null?void 0:(p=E.menuRenderer)==null?void 0:p.flexibleItems)==null||!U.length)}}});
L9.prototype.onYtServiceRequestCompleted=L9.prototype.onYtServiceRequestCompleted;L9.prototype.onYtServiceRequestSent=L9.prototype.onYtServiceRequestSent;L9.prototype.dataChanged=L9.prototype.dataChanged;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],L9.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],L9.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],L9.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.O0.YtTaskEmitterBehavior),_.P("design:type",Object)],L9.prototype,"ytTaskEmitterBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],L9.prototype,"data",void 0);_.N([_.e({computed:"computeInfoFormattedStrings(data)"}),_.P("design:type",Array)],L9.prototype,"infoFormattedStrings",void 0);
_.N([_.e({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],L9.prototype,"hasDateText",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],L9.prototype,"wrapVideoActions",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],L9.prototype,"hideSentimentBar",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],L9.prototype,"flexMenuEnabled",null);
_.N([_.Nl("#sentiment"),_.P("design:type",Object)],L9.prototype,"sentiment",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],L9.prototype,"dataChanged",null);_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.m8]),_.P("design:returntype")],L9.prototype,"onYtServiceRequestSent",null);
_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Rn]),_.P("design:returntype")],L9.prototype,"onYtServiceRequestCompleted",null);
_.G(L9,"ytd-video-primary-info-renderer",function(){if(Nv9===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);Nv9=t}t=Nv9;return t},{mode:1});var LUt;var Pp9;var Ph=function(){return _.z.apply(this,arguments)||this};
_.u(Ph,_.z);Ph.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
Ph.prototype.onTap=function(t){var E=this.data&&this.data.endpoint;E&&!_.Qb(_.Vx(t),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.kT(this.hostElement,"yt-navigate",{endpoint:E})};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Ph.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ph.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Ph.prototype,"data",void 0);_.N([_.Ul({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],Ph);
_.G(Ph,"ytd-autotagging-metadata-renderer",function(){if(Pp9!==void 0)return Pp9;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Pp9=t},{mode:1});var Tv8;var Tj=function(){return _.z.apply(this,arguments)||this};
_.u(Tj,_.z);Tj.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Tj.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Tj.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Tj.prototype,"data",void 0);_.N([_.Ul({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],Tj);
_.G(Tj,"ytd-autotagging-metadata-row-renderer",function(){if(Tv8!==void 0)return Tv8;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Tv8=t},{mode:1});var oVe;var WUK;var o3=function(){var t=_.z.apply(this,arguments)||this;t.engagementPanelContent=!1;return t};
_.u(o3,_.z);o3.prototype.computeHasDividerLine=function(t,E){return t&&!E};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],o3.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],o3.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.P("design:type",Boolean)],o3.prototype,"hasDividerLine",void 0);_.N([_.e(),_.P("design:type",Object)],o3.prototype,"engagementPanelContent",void 0);
_.N([_.Ul({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],o3);
_.G(o3,"ytd-metadata-row-header-renderer",function(){if(WUK!==void 0)return WUK;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return WUK=t},{mode:1});var $bK;var Wh=function(){return _.z.apply(this,arguments)||this};
_.u(Wh,_.z);Wh.prototype.computeHasDividerLine=function(t){return t};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Wh.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Wh.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.P("design:type",Boolean)],Wh.prototype,"hasDividerLine",void 0);_.N([_.Ul({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],Wh);
_.G(Wh,"ytd-metadata-row-renderer",function(){if($bK!==void 0)return $bK;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return $bK=t},{mode:1});var KUt;var vVe=function(){return _.z.apply(this,arguments)||this};
_.u(vVe,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],vVe.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],vVe.prototype,"data",void 0);_.N([_.Ul({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],vVe);
_.G(vVe,"ytd-metadata-with-image-row-renderer",function(){if(KUt!==void 0)return KUt;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return KUt=t},{mode:1});var yp5;var $Q=function(){var t=_.z.apply(this,arguments)||this;t.rounded=!0;t.fixie=!1;t.fullWidth=!1;return t};
_.u($Q,_.z);_.Y=$Q.prototype;_.Y.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y.onDataChanged=function(){var t=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(E){t.onEndpointLinkKeyPress(E)}))};
_.Y.onEndpointLinkKeyPress=function(t){t.target===this.endpointLink&&t.keyCode===13&&_.kT(this.hostElement,"click")};
_.Y.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var t;if((t=this.data)==null?0:t.endpoint)_.IK(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.Y.onYtNavigate=function(t){this.endpointHref||(t.stopPropagation(),t.preventDefault())};
_.Y.onInformationButtonContainerClick=function(t){t.target.id!=="information-button-container"&&(t.stopPropagation(),t.preventDefault())};
_.Y.computeStyle=function(t){return t};
_.Y.computeIsThumbnailStyle=function(t){return t==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.Y.computeThumbnailWidth=function(t){switch(t){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}};
_.Y.computeThumbnailObjectFit=function(t){switch(t){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.aE.Object.defineProperties($Q.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?0:t.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
$Q.prototype.onYtNavigate=$Q.prototype.onYtNavigate;$Q.prototype.onClick=$Q.prototype.onClick;$Q.prototype.onDataChanged=$Q.prototype.onDataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],$Q.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],$Q.prototype,"componentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],$Q.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],$Q.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.P("design:type",String)],$Q.prototype,"componentStyle",void 0);_.N([_.e({computed:"computeIsThumbnailStyle(data.style)"}),_.P("design:type",Boolean)],$Q.prototype,"isThumbnailStyle",void 0);_.N([_.e({computed:"computeThumbnailObjectFit(data.style)"}),_.P("design:type",String)],$Q.prototype,"thumbnailObjectFit",void 0);
_.N([_.e({computed:"computeThumbnailWidth(data.style)"}),_.P("design:type",Number)],$Q.prototype,"thumbnailWidth",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],$Q.prototype,"rounded",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],$Q.prototype,"fixie",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],$Q.prototype,"fullWidth",void 0);_.N([_.Nl("#endpoint-link"),_.P("design:type",HTMLAnchorElement)],$Q.prototype,"endpointLink",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$Q.prototype,"onDataChanged",null);_.N([_.Z("data.endpoint"),_.P("design:type",Object),_.P("design:paramtypes",[])],$Q.prototype,"endpointHref",null);_.N([_.lc("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],$Q.prototype,"onClick",null);
_.N([_.lc("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],$Q.prototype,"onYtNavigate",null);_.N([_.Ul({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],$Q);
_.G($Q,"ytd-rich-metadata-renderer",function(){if(yp5!==void 0)return yp5;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return yp5=t},{mode:_.hX("kevlar_poly_si_batch_j075")?1:2});var Se9;var K9=function(){var t=_.z.apply(this,arguments)||this;t.fixie=!1;t.fullWidth=!1;return t};
_.u(K9,_.z);K9.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
K9.prototype.computeHasDividerLine=function(t){return t};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],K9.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],K9.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.P("design:type",Boolean)],K9.prototype,"hasDividerLine",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],K9.prototype,"fixie",void 0);_.N([_.e(),_.P("design:type",Object)],K9.prototype,"fullWidth",void 0);
_.N([_.Ul({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],K9);
_.G(K9,"ytd-rich-metadata-row-renderer",function(){if(Se9!==void 0)return Se9;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Se9=t},{mode:1});var vh=function(){var t=_.z.apply(this,arguments)||this;t.engagementPanelContent=!1;t.fixie=!1;t.fullWidth=!1;return t};
_.u(vh,_.z);
vh.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"}}}};
vh.prototype.computeCollapsibleItems=function(t,E,p){return t===void 0||E===void 0||p===void 0||p?[]:t.slice(E)};
vh.prototype.computeAlwaysShownItems=function(t,E){return t&&t.length?t.slice(0,E):[]};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],vh.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],vh.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],vh.prototype,"data",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],vh.prototype,"collapsed",void 0);
_.N([_.e({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.P("design:type",Array)],vh.prototype,"alwaysShownItems",void 0);_.N([_.e({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.P("design:type",Array)],vh.prototype,"collapsibleItems",void 0);_.N([_.e(),_.P("design:type",Object)],vh.prototype,"engagementPanelContent",void 0);_.N([_.e(),_.P("design:type",Object)],vh.prototype,"fixie",void 0);
_.N([_.e(),_.P("design:type",Object)],vh.prototype,"fullWidth",void 0);_.N([_.Ul({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],vh);
_.G(vh,"ytd-metadata-row-container-renderer",function(){if(oVe!==void 0)return oVe;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return oVe=t},{mode:1});var cpl;var yP=function(){return _.z.apply(this,arguments)||this};
_.u(yP,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],yP.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],yP.prototype,"data",void 0);_.N([_.Ul({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],yP);
_.G(yP,"ytd-error-corrections-section-item-renderer",function(){if(cpl!==void 0)return cpl;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return cpl=t},{mode:1});var tH7;var SD=function(){return _.z.apply(this,arguments)||this};
_.u(SD,_.z);SD.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],SD.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],SD.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],SD.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],SD.prototype,"data",void 0);_.N([_.Ul({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],SD);
_.G(SD,"ytd-error-corrections-section-renderer",function(){if(tH7!==void 0)return tH7;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return tH7=t},{mode:1});var Erd;var ch=function(){return _.z.apply(this,arguments)||this};
_.u(ch,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],ch.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],ch.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],ch.prototype,"data",void 0);_.N([_.Ul({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],ch);
_.G(ch,"ytd-topic-link-renderer",function(){if(Erd!==void 0)return Erd;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Erd=t},{mode:1});var pNl;var t$=function(){var t=_.z.apply(this,arguments)||this;t.modernLockupV2=_.r("modernize_structured_description_playlist_lockups_v2");return t};
_.u(t$,_.z);t$.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"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],t$.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],t$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],t$.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],t$.prototype,"modernLockupV2",void 0);_.N([_.Ul({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],t$);
_.G(t$,"ytd-video-description-course-section-renderer",function(){if(pNl!==void 0)return pNl;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return pNl=t},{mode:1});var U1L;var Eo=function(){return _.z.apply(this,arguments)||this};
_.u(Eo,_.z);Eo.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"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Eo.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Eo.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Eo.prototype,"data",void 0);_.N([_.Ul({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],Eo);
_.G(Eo,"ytd-video-description-files-section-renderer",function(){if(U1L!==void 0)return U1L;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return U1L=t},{mode:1});var x1g;var pA=function(){return _.z.apply(this,arguments)||this};
_.u(pA,_.z);pA.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"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],pA.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],pA.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],pA.prototype,"data",void 0);_.N([_.Ul({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],pA);
_.G(pA,"ytd-video-description-gaming-section-renderer",function(){if(x1g!==void 0)return x1g;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return x1g=t},{mode:1});var AM8;var Uo=function(){var t=_.z.apply(this,arguments)||this;t.isExpanded=!1;return t};
_.u(Uo,_.z);Uo.prototype.computeHasDefaultMetadataEndpoint=function(t){var E;t=t==null?void 0:(E=t.defaultMetadata)==null?void 0:E.runs;return!(!t||t.length!==1||!t[0].navigationEndpoint)};
Uo.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.aE.Object.defineProperties(Uo.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Uo.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Uo.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Uo.prototype,"isExpanded",void 0);_.N([_.e({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Uo.prototype,"hasDefaultMetadataEndpoint",void 0);
_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Uo.prototype,"isExpandable",null);_.N([_.Z("data","isExpandable","isExpanded"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Uo.prototype,"showExpandedMetadata",null);_.N([_.Ul({is:"ytd-info-row-renderer",disableElementRegistration:!0})],Uo);
_.G(Uo,"ytd-info-row-renderer",function(){if(AM8!==void 0)return AM8;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return AM8=t},{mode:1});var Yxt;var xK=function(){var t=_.z.apply(this,arguments)||this;t.currentIndex=0;t.supportComponentResize=!0;t.JSC$20400_lastScrollContainerWidth=NaN;return t};
_.u(xK,_.z);_.Y=xK.prototype;
_.Y.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"}}}};
_.Y.getItemsPath=function(){return"videoLockups"};
_.Y.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.Y.onIronResize=function(){this.updateVideoLockupStyles()};
_.Y.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.Y.updateVideoLockupStyles=function(){var t;this.JSC$20400_scrollContainer!==void 0&&(t=this.videoLockups)!=null&&t.length&&(t=this.JSC$20400_scrollContainer.clientWidth,t!==this.JSC$20400_lastScrollContainerWidth&&(this.JSC$20400_lastScrollContainerWidth=t,_.eU(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(t*.8,415)+"px"}),_.kT(this.hostElement,"iron-resize")))};
_.aE.Object.defineProperties(xK.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var t=[],E;if((E=this.data)==null||!E.carouselLockups)return t;E=_.M(this.data.carouselLockups);for(var p=E.next();!p.done;p=E.next()){p=p.value;var U=void 0;((U=_.k(p,fe5))==null?0:U.videoLockup)&&t.push(_.k(p,fe5).videoLockup)}return t}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.videoLockups)==null||!t.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var t=[],E;if((E=this.data)==null||!E.carouselLockups)return t;var p;return(p=_.k(this.data.carouselLockups[this.scrollCount],fe5))==null?void 0:p.infoRows}}});
xK.prototype.dataChanged=xK.prototype.dataChanged;xK.prototype.onIronResize=xK.prototype.onIronResize;xK.prototype.hiddenChanged=xK.prototype.hiddenChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],xK.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],xK.prototype,"componentBehavior",void 0);_.N([_.g(_.zp.YtdHorizontalListBehavior),_.P("design:type",Object)],xK.prototype,"ytdHorizontalListBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],xK.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],xK.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],xK.prototype,"inlineStructuredDescription",void 0);_.N([_.e({value:2}),_.P("design:type",Number)],xK.prototype,"initialCount",void 0);_.N([_.e(),_.P("design:type",Object)],xK.prototype,"currentIndex",void 0);
_.N([_.e(),_.P("design:type",Number)],xK.prototype,"scrollCount",void 0);_.N([_.e(),_.P("design:type",Object)],xK.prototype,"supportComponentResize",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],xK.prototype,"contentHidden",void 0);_.N([_.Nl("#scroll-container"),_.P("design:type",HTMLDivElement)],xK.prototype,"JSC$20400_scrollContainer",void 0);
_.N([_.GI("contentHidden"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xK.prototype,"hiddenChanged",null);_.N([_.Z("data"),_.P("design:type",Array),_.P("design:paramtypes",[])],xK.prototype,"videoLockups",null);_.N([_.Z("videoLockups"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],xK.prototype,"hasVideoLockups",null);
_.N([_.lc("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xK.prototype,"onIronResize",null);_.N([_.Z("data","scrollCount"),_.P("design:type",Object),_.P("design:paramtypes",[])],xK.prototype,"infoRows",null);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xK.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],xK);
_.G(xK,"ytd-video-description-music-section-renderer",function(){if(Yxt!==void 0)return Yxt;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Yxt=t},{mode:_.hX("kevlar_poly_si_batch_j081")?1:2});var MHK;var A$=function(){return _.z.apply(this,arguments)||this};
_.u(A$,_.z);A$.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],A$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],A$.prototype,"ytRendererBehavior",void 0);_.N([_.e({}),_.P("design:type",Object)],A$.prototype,"data",void 0);_.N([_.Ul({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],A$);
_.G(A$,"ytd-video-description-transcript-section-renderer",function(){if(MHK!==void 0)return MHK;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return MHK=t},{mode:1});var m1g;_.k2(_.l(function(t){var E=_.nd(_.Sf_,function(){return t.data().firstProviderLinkStatusEntityKey}),p=_.nd(_.Sf_,function(){return t.data().secondProviderLinkStatusEntityKey}),U=function(){var x,A;
return((x=E())==null?void 0:x.linked)||((A=p())==null?void 0:A.linked)};
return _.H("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.H(_.d8,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return t.data().sectionTitle}}),_.H(_.d8,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return U()?t.data().connectedMessage:t.data().notConnectedMessage}}),_.H(_.w,{cond:U,
then:function(){return _.H(_.sY,{data:function(){return t.data().connectedButton}},{buttonViewModel:function(x){return _.H(_.D5,{data:x.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.H(_.w,{cond:function(){return!U()},
then:function(){return _.H(_.sY,{data:function(){return t.data().notConnectedButton}},{buttonViewModel:function(x){return _.H(_.D5,{data:x.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"xh"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.uu}});_.k2(_.l(function(t){var E=t.data;return _.H("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.H("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.H(_.d8,{text:function(){return E().sectionTitle}})),_.H("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.H(_.d8,{text:function(){return E().bodyHeader}})),_.H("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.H(_.d8,{text:function(){return E().bodyText}})),_.H(_.w,{cond:function(){return E().attributionText},
then:function(){return _.H("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.H(_.d8,{text:function(){return E().attributionText}}))}}))},"yh"),"how-this-was-made-section-view-model",{props:{data:_.uu}});_.k2(_.l(function(t){return _.H("yt-video-description-youchat-section-view-model",{class:_.X5("ytVideoDescriptionYouchatSectionViewModelHost")},_.H("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.H(_.d8,{text:function(){return t.data().sectionTitle}})),_.H("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.H(_.d8,{text:function(){return t.data().subHeaderText}})),_.H("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.H(_.D5,{data:function(){return _.k(t.data().primaryButton,
_.Cz)}})))},"zh"),"yt-video-description-youchat-section-view-model",{props:{data:_.uu}});var YK=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return t};
_.u(YK,_.z);_.Y=YK.prototype;
_.Y.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}}}}}};
_.Y.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.Y.dataChanged=function(){var t,E;this.hasDescriptionOnly=!(((t=this.data)==null?void 0:(E=t.items)==null?void 0:E.length)!==1||!_.k(this.data.items[0],eP))};
_.Y.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.Y.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.Y.autoFocusDescription=function(){var t;((t=_.X3().resolve(_.OB(_.FA)))==null?0:t.isKeyBoardInUse())&&this.description&&_.If(this.description)};
_.Y.resize=function(){if(_.r("kevlar_disable_sd_resize"))this.JSC$20407_cardList&&_.kT(this.JSC$20407_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.kT(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.kT(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.Y.scrollToSection=function(t){if(t=this.getSectionElement(t))_.du(this.hostElement,"yt-scroll-to-watch-element",[t]),t.focus()};
_.Y.getSectionElement=function(t){switch(t){case "infocards-item-section":var E;return(E=this.infocardsSection)!=null?E:null;case "transcript-item-section":var p;return(p=this.transcriptSection)!=null?p:null;case "how-this-was-made-section-item-section":var U;return(U=this.howThisWasMadeSection)!=null?U:null;case "files-item-section":var x;return(x=this.filesSection)!=null?x:null;default:return null}};
_.Y.handleSetActiveItemAction=function(t){var E=_.k(t,GkL),p=E&&(E==null?void 0:E.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20407_cardList;if(E&&p){t=this.currentActiveChapter;var U=this.currentActiveProblem;E=p==null?void 0:p.getItemByIndex(E.itemIndex);var x=p=!0;E&&(E.active=!0,E.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(p=t!==E,x=!1,this.currentActiveChapter=E):(E==null?void 0:E.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(p=!1,x=U!==E,this.currentActiveProblem=E));t&&p&&(t.active=!1);U&&x&&(U.active=!1)}};
_.aE.Object.defineProperties(YK.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.uc("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
YK.prototype.onYtExpanderMoreTapped=YK.prototype.onYtExpanderMoreTapped;YK.prototype.onHiddenChanged=YK.prototype.onHiddenChanged;YK.prototype.dataChanged=YK.prototype.dataChanged;YK.prototype.panelContentVisibleChanged=YK.prototype.panelContentVisibleChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],YK.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],YK.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],YK.prototype,"actionHandlerBehavior",void 0);_.N([_.g(_.Ev),_.P("design:type",Object)],YK.prototype,"ironResizableBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],YK.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Boolean)],YK.prototype,"panelContentVisible",void 0);_.N([_.e(),_.P("design:type",Boolean)],YK.prototype,"hasDescriptionOnly",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],YK.prototype,"inlineStructuredDescription",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],YK.prototype,"hidden",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],YK.prototype,"shortsPanel",void 0);_.N([_.e(),_.P("design:type",Object)],YK.prototype,"videoSummary",void 0);_.N([_.e(),_.P("design:type",Object)],YK.prototype,"merchShelf",void 0);
_.N([_.Z("videoSummary"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],YK.prototype,"showVideoSummary",null);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],YK.prototype,"engagementPanel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],YK.prototype,"watchWhileSdp",void 0);_.N([_.Nl("ytd-expandable-video-description-body-renderer"),_.P("design:type",Object)],YK.prototype,"description",void 0);
_.N([_.Nl("ytd-horizontal-card-list-renderer"),_.P("design:type",Object)],YK.prototype,"JSC$20407_cardList",void 0);_.N([_.Nl("ytd-horizontal-card-list-renderer[center-items]"),_.P("design:type",Object)],YK.prototype,"problemWalkthroughCardList",void 0);_.N([_.Nl("ytd-shelf-renderer"),_.P("design:type",Object)],YK.prototype,"shelfSection",void 0);_.N([_.Nl("ytd-video-description-music-section-renderer"),_.P("design:type",Object)],YK.prototype,"musicMetadataSection",void 0);
_.N([_.Nl("ytd-video-description-infocards-section-renderer"),_.P("design:type",Object)],YK.prototype,"infocardsSection",void 0);_.N([_.Nl("ytd-video-description-transcript-section-renderer"),_.P("design:type",Object)],YK.prototype,"transcriptSection",void 0);_.N([_.Nl("how-this-was-made-section-view-model"),_.P("design:type",Object)],YK.prototype,"howThisWasMadeSection",void 0);_.N([_.Nl("ytd-video-description-files-section-renderer"),_.P("design:type",Object)],YK.prototype,"filesSection",void 0);
_.N([_.GI("panelContentVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],YK.prototype,"panelContentVisibleChanged",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],YK.prototype,"dataChanged",null);_.N([_.GI("hidden"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],YK.prototype,"onHiddenChanged",null);
_.N([_.lc("yt-expander-more-tapped"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],YK.prototype,"onYtExpanderMoreTapped",null);_.N([_.Ul({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],YK);
_.G(YK,"ytd-structured-description-content-renderer",function(){if(m1g!==void 0)return m1g;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return m1g=t},{mode:2});var Mr=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return t};
_.u(Mr,_.z);_.Y=Mr.prototype;_.Y.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"}}}};
_.Y.dataChanged=function(){var t;this.descriptionToggled=!((t=this.data)==null||!t.defaultExpanded);var E;this.collapsed=this.descriptionAlwaysCollapsed||!((E=this.data)==null?0:E.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.h8(110509);this.showLessClientVe=_.h8(110510);t=_.yL();E=_.vV();t&&E&&_.Mc(t,E,[this.showMoreClientVe,this.showLessClientVe])};
_.Y.onYtExpanderMoreTapped=function(){var t,E=(t=this.data)==null?void 0:t.showMoreCommand;E&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(E);(t=_.yL())&&this.showMoreClientVe&&_.qc(t,this.showMoreClientVe)};
_.Y.onYtExpanderLessTapped=function(){var t=_.yL();t&&this.showLessClientVe&&_.qc(t,this.showLessClientVe);var E;(t=(E=this.data)==null?void 0:E.showLessCommand)&&this.componentBehavior.resolveCommand(t)};
_.Y.handleUpdateDateTextAction=function(t){this.data&&this.data.dateText&&this.set("data.dateText",_.k(t,bUg).dateText)};
_.Y.handleUpdateDescriptionAction=function(t){if(t=_.k(t,_.DTm))t.isEmpty||!t.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.En(t.description)):this.set("data.description",t.description)};
_.Y.onYtChangeEngagementPanelVisibilityAction=function(t){if(_.r("web_structured_description_show_more")||_.r("web_engagement_panel_open_description")){var E,p=(E=_.k(t,_.nbG))==null?void 0:E.targetId,U;t=((U=_.k(t,_.nbG))==null?void 0:U.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";p==="engagement-panel-structured-description"&&t&&(this.descriptionToggled=!0)}};
_.Y.updateCollapsedFromBinding=function(t){this.collapsed=t.detail.value};
_.Y.updateDescriptionToggledFromBinding=function(t){this.descriptionToggled=t.detail.value};
_.Y.updateCanCollapseFromBinding=function(t){this.canCollapse=t.detail.value};
_.aE.Object.defineProperties(Mr.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var t,E,p=(t=this.data)==null?void 0:(E=t.metadataRowContainer)==null?void 0:E.metadataRowContainerRenderer;return!!p&&!!p.rows&&p.rows.length>p.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.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}}});
Mr.prototype.onYtExpanderLessTapped=Mr.prototype.onYtExpanderLessTapped;Mr.prototype.onYtExpanderMoreTapped=Mr.prototype.onYtExpanderMoreTapped;Mr.prototype.dataChanged=Mr.prototype.dataChanged;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Mr.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Mr.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Mr.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Mr.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Mr.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Boolean)],Mr.prototype,"collapsed",void 0);_.N([_.e(),_.P("design:type",Boolean)],Mr.prototype,"descriptionToggled",void 0);
_.N([_.e(),_.P("design:type",Boolean)],Mr.prototype,"canCollapse",void 0);_.N([_.e(),_.P("design:type",Object)],Mr.prototype,"subscribeButtonData",void 0);_.N([_.e(),_.P("design:type",Number)],Mr.prototype,"descriptionCollapsedHeight",void 0);_.N([_.e(),_.P("design:type",Object)],Mr.prototype,"structuredDescriptionContentRenderer",void 0);_.N([_.e({value:function(){return _.r("web_watch_description_always_collapsed")}}),
_.P("design:type",Boolean)],Mr.prototype,"descriptionAlwaysCollapsed",void 0);_.N([_.Nl("#description"),_.P("design:type",HTMLDivElement)],Mr.prototype,"description",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mr.prototype,"dataChanged",null);_.N([_.lc("yt-expander-more-tapped"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mr.prototype,"onYtExpanderMoreTapped",null);
_.N([_.lc("yt-expander-less-tapped"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mr.prototype,"onYtExpanderLessTapped",null);_.N([_.Z("data.metadataRowContainer"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Mr.prototype,"metadataCollapsible",null);_.N([_.Z("data","structuredDescriptionContentRenderer"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Mr.prototype,"hasInlineStructuredDescription",null);
_.N([_.Z("data.attributedDescription"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Mr.prototype,"hasAttributedDescription",null);_.N([_.Z("hasInlineStructuredDescription","collapsed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Mr.prototype,"loadStructuredDescription",null);_.N([_.Z("data","structuredDescriptionContentRenderer","collapsed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Mr.prototype,"showInlineStructuredDescription",null);
_.N([_.Z("data","hasInlineStructuredDescription","metadataCollapsible"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Mr.prototype,"descriptionAlwaysCollapsible",null);
_.G(Mr,"ytd-video-secondary-info-renderer",function(){if(LUt===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);LUt=t}t=LUt;return t},{mode:2});var bco;var mc=function(){return _.z.apply(this,arguments)||this};
_.u(mc,_.z);mc.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],mc.prototype,"rendererBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],mc.prototype,"dismissibleItemBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],mc.prototype,"rendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],mc.prototype,"data",void 0);_.N([_.Ul({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],mc);
_.G(mc,"ytd-comment-history-entry-renderer",function(){if(bco!==void 0)return bco;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return bco=t},{mode:1});var ict;var b_=function(){var t=_.z.apply(this,arguments)||this;t.isCollapsed=!1;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return t};
_.u(b_,_.z);_.Y=b_.prototype;_.Y.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.Y.onDonateTap=function(){var t=this.get("data.donateButton.buttonRenderer.command");if(t){var E=_.yL(),p=this.get("data.donateButton.buttonRenderer.trackingParams");E&&p&&_.qc(E,_.$8(p));this.ytOpenPopupBehavior.openPopup(t)}};
_.Y.onShowMore=function(){this.isCollapsed=!1;var t=_.yL(),E=this.get("data.expandButton.buttonRenderer.trackingParams");t&&E&&_.qc(t,_.$8(E))};
_.Y.onShowLess=function(){this.isCollapsed=!0};
_.Y.dataChanged=function(){_.eU(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.Y.onDarkModeToggledAction=function(t){this.isDarkTheme=t};
_.Y.handleUpdate=function(t){if(t=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",t))this.set("data.startLabel",t.startLabel),this.set("data.endLabel",t.endLabel),this.set("data.progress",t.progress),this.set("data.amountRaisedLabel",t.amountRaisedLabel),this.dataChanged()};
_.Y.handleOpenPopupAction=function(t){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",t)&&_.du(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.Y.computeHeaderBackgroundUrl=function(t,E){if(t)return E?t.headerBackgroundDarkUrl:t.headerBackgroundUrl};
_.Y.isProgressBarVisible=function(t){return!(!t||t.progress===void 0)};
_.Y.headerBackgroundClass=function(){return _.qO("HTML_DIR")==="rtl"?"flip":""};
b_.prototype.dataChanged=b_.prototype.dataChanged;_.N([_.g(_.Pg.YtOpenPopupBehavior),_.P("design:type",Object)],b_.prototype,"ytOpenPopupBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],b_.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],b_.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],b_.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],b_.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],b_.prototype,"isCollapsed",void 0);_.N([_.e({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.P("design:type",String)],b_.prototype,"headerBackgroundUrl",void 0);_.N([_.e(),_.P("design:type",Boolean)],b_.prototype,"isDarkTheme",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],b_.prototype,"dataChanged",null);
_.N([_.Ul({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],b_);
_.G(b_,"ytd-donation-shelf-renderer",function(){if(ict!==void 0)return ict;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return ict=t},{mode:1});var qx7;var Hcl=function(){return _.z.apply(this,arguments)||this};
_.u(Hcl,_.z);_.N([_.e(),_.P("design:type",Object)],Hcl.prototype,"data",void 0);_.N([_.Ul({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],Hcl);
_.G(Hcl,"ytd-donation-unavailable-renderer",function(){if(qx7!==void 0)return qx7;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return qx7=t},{mode:1});var fgK;var i_=function(){var t=_.z.apply(this,arguments)||this;t.playerListenerConfig=null;t.actionMap={"yt-show-watch-page-survey":"openSurvey"};return t};
_.u(i_,_.z);_.Y=i_.prototype;_.Y.dataChanged=function(){var t=this,E=_.k1();E&&E.getPlayerPromise().then(function(U){t.maybeRemovePlayerListeners(U)});
var p=this.data&&this.data.survey;p&&((p=(p=p.singleOptionSurveyRenderer||p.checkboxSurveyRenderer||p.multiStageSurveyRenderer)&&p.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(E,p):this.openSurvey())};
_.Y.triggerWatchPageSurvey=function(t,E){var p=this,U,x,A,m,b,f,B,R,V;return _.q(function(Q){if(Q.nextAddress==1)return t?Q.yield(t.getPlayerPromise(),2):Q.return();p.player=Q.yieldResult;if(!p.player)return Q.return();U={};x=_.M(E);for(A=x.next();!A.done;A=x.next())m=A.value,b=_.M(p.createEventListenerPair(m)),f=b.next().value,B=b.next().value,R=f,V=B,R&&V&&(U[R]=V,p.ytPlayerListenerBehavior.listenToPlayerEvent(p.player,R,V));p.playerListenerConfig=U;_.Do(Q)})};
_.Y.createEventListenerPair=function(t){var E=t.playbackEventTrigger;return E?this.handlePlaybackTrigger(E):(t=t.watchTimeTrigger)?this.handleWatchTimeTrigger(t):[void 0,void 0]};
_.Y.handleWatchTimeTrigger=function(t){var E=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var p=t.videoWatchFraction,U=t.watchTimeSec;return U&&p?["onVideoProgress",function(){E.player&&E.isWatchTimeConditionMet(E.player,p,U)&&E.showSurvey()}]:[void 0,
void 0]};
_.Y.isWatchTimeConditionMet=function(t,E,p){var U=t.getProgressState(),x=U.current-this.lastKnownPlaybackPosition;x<5&&(this.accumulatedMediaTime+=x);this.lastKnownPlaybackPosition=U.current;U=Math.round(this.accumulatedMediaTime/U.duration*1E3)/1E3;return t.getPresentingPlayerType&&t.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>p||U>E)};
_.Y.handlePlaybackTrigger=function(t){var E=this;t=t.playbackEvent;if(t==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var p="onStateChange";var U=function(x){x===0&&E.showSurvey()}}else t==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(p="onVideoProgress",U=function(x){E.player&&E.player.getPresentingPlayerType&&E.player.getPresentingPlayerType()===1&&x&&E.showSurvey()}):t==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(p="onAdEnd",U=this.showSurvey);
return[p,U]};
_.Y.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.Y.openSurvey=function(){var t=this,E=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(piK(!!E));_.ir.addJob(function(){t.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:E}})},0,0)};
_.Y.maybeRemovePlayerListeners=function(t){if(this.playerListenerConfig){for(var E=_.M(Object.keys(this.playerListenerConfig)),p=E.next();!p.done;p=E.next())p=p.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(t,p,this.playerListenerConfig[p]);this.playerListenerConfig=null}};
i_.prototype.dataChanged=i_.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],i_.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.aU),_.P("design:type",Object)],i_.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.g(_.JT.YtPlayerListenerBehavior),_.P("design:type",_.Il)],i_.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],i_.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.g(_.Be),_.P("design:type",Object)],i_.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],i_.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],i_.prototype,"playerListenerConfig",void 0);_.N([_.e({value:0}),_.P("design:type",Number)],i_.prototype,"lastKnownPlaybackPosition",void 0);_.N([_.e({value:0}),_.P("design:type",Number)],i_.prototype,"accumulatedMediaTime",void 0);_.N([_.e(),_.P("design:type",Object)],i_.prototype,"player",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],i_.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],i_);
_.G(i_,"ytd-survey-trigger-renderer",function(){if(fgK!==void 0)return fgK;var t=document.createElement("template");_.J(t,"\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");t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return fgK=t},{mode:1});var BC9;_.vs("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var qr=function(){var t=_.z.apply(this,arguments)||this;t.role="link";t.tabindex="0";t.actionMap=_.r("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 t};
_.u(qr,_.z);_.Y=qr.prototype;_.Y.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.me()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.Y.getCurrentTheme=function(){return _.bc()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.me()};
_.Y.onThemeSelected=function(t,E){var p=t||E?t:_.Ml(),U=(p&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!p&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.m9Y(_.LR(window.location.href));_.N_(0,165,t);_.N_(0,174,E);this.prefs.save();U&&_.du(this.hostElement,"yt-dark-mode-toggled-action",[p]);_.du(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.Y.onTap=function(){this.data.serviceEndpoint&&_.JZ(this.hostElement,[this.data.serviceEndpoint])};
_.Y.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.Y.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.Y.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
qr.prototype.onTap=qr.prototype.onTap;qr.prototype.dataChanged=qr.prototype.dataChanged;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],qr.prototype,"actionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],qr.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.jl),_.P("design:type",Object)],qr.prototype,"paperItemBehaviors",void 0);_.N([_.e(),_.P("design:type",Object)],qr.prototype,"data",void 0);_.N([_.e({value:function(){return _.nF()}}),
_.P("design:type",_.O4)],qr.prototype,"prefs",void 0);_.N([_.e(),_.P("design:type",Object)],qr.prototype,"label",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],qr.prototype,"role",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],qr.prototype,"tabindex",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qr.prototype,"dataChanged",null);
_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qr.prototype,"onTap",null);_.N([_.Ul({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],qr);
_.Ol()(qr,"ytd-toggle-theme-compact-link-renderer",function(){if(BC9===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);BC9=t}t=BC9;return t},{allowedProps:["data"],
mode:1});var wNe;_.vs("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.vs("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var Ho=function(){return _.z.apply(this,arguments)||this};
_.u(Ho,_.z);_.Y=Ho.prototype;_.Y.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y.onKeyUp=function(t){if(t.keyCode===13)this.onTap()};
_.Y.onTap=function(){this.data.recordClickEndpoint&&_.X3().resolve(_.ei).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var t=this.data.navigationEndpoint;t&&_.k(t,_.qj)&&_.X3().resolve(_.ei).resolveCommand(t,{form:{element:this.hostElement}})};
_.Y.readChanged=function(){var t;_.XM(this.hostElement,"unread",!((t=this.data)==null?0:t.read))};
_.Y.dataChanged=function(){this.data&&_.XM(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.Y.computeThumbnailSize=function(){var t;return((t=this.data)==null?0:t.highPriorityNotification)?32:48};
_.Y.getEndpointURL=function(t){return t&&!_.k(t,_.qj)?this.componentBehavior.computeHref_(t):null};
_.Y.getEndpointData=function(t){return t&&!_.k(t,_.qj)?t:null};
Ho.prototype.computeThumbnailSize=Ho.prototype.computeThumbnailSize;Ho.prototype.dataChanged=Ho.prototype.dataChanged;Ho.prototype.readChanged=Ho.prototype.readChanged;Ho.prototype.onKeyUp=Ho.prototype.onKeyUp;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Ho.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Ho.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Ho.prototype,"data",void 0);_.N([_.e({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.P("design:type",Number)],Ho.prototype,"thumbnailSize",void 0);_.N([_.lc("keyup"),_.P("design:type",Function),_.P("design:paramtypes",[KeyboardEvent]),_.P("design:returntype")],Ho.prototype,"onKeyUp",null);
_.N([_.GI("data.read"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ho.prototype,"readChanged",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ho.prototype,"dataChanged",null);_.N([_.GI("data.highPriorityNotification"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ho.prototype,"computeThumbnailSize",null);
_.N([_.Ul({is:"ytd-notification-renderer",disableElementRegistration:!0})],Ho);
_.G(Ho,"ytd-notification-renderer",function(){if(wNe!==void 0)return wNe;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return wNe=t},{mode:1});var RxJ;var fA=function(){return _.z.apply(this,arguments)||this};
_.u(fA,_.z);fA.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"}}}};
fA.prototype.computeActionButtonClass=function(t){return!t.actionButtons||t.actionButtons.length<=1?"single-button":t.description?"vertical-buttons":"horizontal-buttons"};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],fA.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],fA.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],fA.prototype,"data",void 0);_.N([_.Ul({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],fA);
_.G(fA,"ytd-playlist-show-metadata-renderer",function(){if(RxJ!==void 0)return RxJ;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return RxJ=t},{mode:1});var VH8;_.vs("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var Bo=function(){return _.z.apply(this,arguments)||this};
_.u(Bo,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Bo.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Bo.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Bo.prototype,"data",void 0);_.N([_.Ul({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],Bo);
_.G(Bo,"ytd-purchase-item-renderer",function(){if(VH8!==void 0)return VH8;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return VH8=t},{mode:1});var QV7;var C5t={};C5t.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(t){if(t)return t.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(t){if(t==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.vs("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var wU=function(){return _.z.apply(this,arguments)||this};
_.u(wU,_.z);wU.prototype.onYtNavigate=function(t){var E=this.openPopupBehavior.getNavigationEndpointPopupAction(t.detail.endpoint);E&&(t.stopPropagation(),this.openPopupBehavior.openPopup(E))};
wU.prototype.onYtNavigate=wU.prototype.onYtNavigate;_.N([_.g(C5t.YtSimpleTextSectionBehavior),_.P("design:type",Object)],wU.prototype,"ytSimpleTextSectionBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],wU.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.aU),_.P("design:type",Object)],wU.prototype,"openPopupBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],wU.prototype,"data",void 0);
_.N([_.lc("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],wU.prototype,"onYtNavigate",null);_.N([_.Ul({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],wU);
_.G(wU,"ytd-simple-text-section-renderer",function(){if(QV7!==void 0)return QV7;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return QV7=t},{mode:1});var jV9;_.vs("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var rM9=function(){return _.z.apply(this,arguments)||this};
_.u(rM9,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],rM9.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],rM9.prototype,"data",void 0);_.N([_.Ul({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],rM9);
_.G(rM9,"ytd-unlimited-page-feature-info-renderer",function(){if(jV9!==void 0)return jV9;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return jV9=t},{mode:1});var kzd;var d1e;var RH=function(){return _.z.apply(this,arguments)||this};
_.u(RH,_.z);RH.prototype.dataChanged=function(){if(this.data){var t=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);t&&(t=_.d4(t,screen.width),this.hostElement.style.backgroundImage="url("+t+")")}};
RH.prototype.dataChanged=RH.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],RH.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],RH.prototype,"data",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],RH.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],RH);
_.G(RH,"ytd-post-redemption-section-renderer",function(){if(d1e!==void 0)return d1e;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return d1e=t},{mode:1});var u6o;var Va=function(){return _.z.apply(this,arguments)||this};
_.u(Va,_.z);Va.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Va.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Va.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Va.prototype,"data",void 0);_.N([_.Ul({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],Va);
_.G(Va,"ytd-ypc-post-redemption-renderer",function(){if(u6o!==void 0)return u6o;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return u6o=t},{mode:1});_.vs("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var Qa=function(){var t=_.z.apply(this,arguments)||this;t.MIN_CODE_LENGTH=12;t.MAX_CODE_LENGTH=24;return t};
_.u(Qa,_.z);_.Y=Qa.prototype;_.Y.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.Y.created=function(){this.riskService=new _.H5Y;this.loadPaymentThenable=_.BK0(_.qO("YPC_MB_URL"))};
_.Y.ready=function(){var t=this;this.code.addEventListener("keypress",function(E){t.onCodeInputKeypress(E)})};
_.Y.dataChanged=function(){var t=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(E){E=_.M(E);for(var p=E.next();!p.done;p=E.next())p=p.value,p.type==="attributes"&&p.attributeName==="dark"&&t.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.Y.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var t=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+t+")")}};
_.Y.computeRedeemButton=function(t){(t=this.get("redeemButton.buttonRenderer",t))&&(t=Object.assign({},t,{serviceEndpoint:void 0}));return t};
_.Y.onRedeemButtonTap=function(t){t.stopPropagation();COJ();this.redeemCode()};
_.Y.redeemCode=function(){var t=this;this.isLoading=!0;var E=this.riskService.init();_.Yi([E,this.loadPaymentThenable]).then(function(){var p=t.data.redeemButton.buttonRenderer.serviceEndpoint,U=_.fXL(),x=_.JN.payments.business.integration.ClientTokenFactory.createClientToken(_.k(p,_.I7m).countryCode,U);U={c:t.code.value.trim(),rd:window.btoa(U),ctk:x};p&&_.X3().resolve(_.ei).resolveCommand(p,{form:Object.assign({},U,{element:t.hostElement})})},function(){t.showGenericError();
jK9("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.fR(Error("zl"))})};
_.Y.onYtServiceRequestCompleted=function(t){t.stopPropagation();this.isLoading=!1;var E,p;this.errorMessage=(E=t.detail)==null?void 0:(p=E.data)==null?void 0:p.errorMessage;var U,x;this.postRedemptionRenderer=(U=t.detail)==null?void 0:(x=U.data)==null?void 0:x.renderer;var A,m;if(t=(A=t.detail)==null?void 0:(m=A.data)==null?void 0:m.redirectEndpoint)this.isLoading=!0,_.kT(this.hostElement,"yt-navigate",{endpoint:t});this.errorMessage?jK9("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
t)&&f8("ypcRedeemFlowSucceeded")};
_.Y.onYtServiceRequestError=function(t){t.stopPropagation();this.isLoading=!1;if(t=this.get("detail.error.message",t))this.errorMessage=_.wN(t);jK9("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.Y.onInvokeInstrumentManagerActionCompleted=function(t){t.stopPropagation();this.redeemCode()};
_.Y.onInvokeInstrumentManagerActionError=function(t){t.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",t)){case "instrumentManagerLoadError":this.showGenericError();jK9("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();jK9("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":f8("ypcRedeemFlowCancelled")}};
_.Y.onInput=function(){var t=this;_.qd(this,"onInput",function(){var E=t.code.value.trim();t.redeemButtonDisabled=E.length<t.MIN_CODE_LENGTH||E.length>t.MAX_CODE_LENGTH},200)};
_.Y.onCodeInputKeypress=function(t){t.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(COJ(),this.redeemCode())};
_.Y.computeImageUrl=function(t){return t?_.d4(t.thumbnails,600):null};
_.Y.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
Qa.prototype.onInvokeInstrumentManagerActionError=Qa.prototype.onInvokeInstrumentManagerActionError;Qa.prototype.onInvokeInstrumentManagerActionCompleted=Qa.prototype.onInvokeInstrumentManagerActionCompleted;Qa.prototype.onYtServiceRequestError=Qa.prototype.onYtServiceRequestError;Qa.prototype.onYtServiceRequestCompleted=Qa.prototype.onYtServiceRequestCompleted;Qa.prototype.dataChanged=Qa.prototype.dataChanged;
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Qa.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Qa.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Qa.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],Qa.prototype,"isLoading",void 0);_.N([_.e(),_.P("design:type",Boolean)],Qa.prototype,"redeemButtonDisabled",void 0);
_.N([_.e(),_.P("design:type",Object)],Qa.prototype,"errorMessage",void 0);_.N([_.e(),_.P("design:type",Object)],Qa.prototype,"postRedemptionRenderer",void 0);_.N([_.e(),_.P("design:type",Object)],Qa.prototype,"observer",void 0);_.N([_.Nl("#code"),_.P("design:type",HTMLInputElement)],Qa.prototype,"code",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Qa.prototype,"dataChanged",null);
_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Qa.prototype,"onYtServiceRequestCompleted",null);_.N([_.lc("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Qa.prototype,"onYtServiceRequestError",null);
_.N([_.lc("yt-invoke-instrument-manager-action-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Qa.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.N([_.lc("yt-invoke-instrument-manager-action-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Qa.prototype,"onInvokeInstrumentManagerActionError",null);_.N([_.Ul({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],Qa);
_.G(Qa,"ytd-redeem-code-renderer",function(){if(kzd!==void 0)return kzd;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return kzd=t},{mode:1});var JMe;_.vs("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var CA=function(){var t=_.z.apply(this,arguments)||this;t.businessEmailDisplayState="HIDE_SECTION";return t};
_.u(CA,_.z);_.Y=CA.prototype;_.Y.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}}}}}};
_.Y.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"};
_.Y.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.Y.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.xT(_.g$r),this.businessEmailDisplayState="CAPTCHA"))};
_.Y.onYtServiceRequestCompleted=function(t){var E;if((E=t.detail.data)==null?0:E.businessEmail)this.businessEmail=t.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var p;if((p=t.detail.data)==null?0:p.errorMessage)this.businessEmailErrorMessage=t.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.Y.computeEmailHref=function(t){return"mailto:"+t};
_.Y.computeSafeUrl=function(t){if(t)return _.S8(t)};
_.Y.onBusinessEmailCaptchaSubmit=function(){var t;(t=this.data)!=null&&t.onBusinessEmailRevealClickCommand&&(t=this.JSC$20467_captchaTextarea.value)&&(t={recaptcha_response_token:t,channel_id:this.data.channelId},_.X3().resolve(_.ei).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},t,{element:this.hostElement})}))};
_.Y.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.aE.Object.defineProperties(CA.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 t,E;return!((t=this.data)==null||!t.primaryLinks)&&!((E=this.data)==null?0:E.links)&&this.data.primaryLinks.every(function(p){return p.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var t,E;return!((t=this.data)==null||!t.primaryLinks)&&!((E=this.data)==null?0:E.links)&&!this.shouldShowNewLinks}}});
CA.prototype.onYtServiceRequestCompleted=CA.prototype.onYtServiceRequestCompleted;CA.prototype.dataChanged=CA.prototype.dataChanged;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],CA.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],CA.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],CA.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.Nl("#g-recaptcha-response"),_.P("design:type",HTMLTextAreaElement)],CA.prototype,"JSC$20467_captchaTextarea",void 0);_.N([_.e(),_.P("design:type",Object)],CA.prototype,"data",void 0);_.N([_.e(),_.P("design:type",String)],CA.prototype,"businessEmailDisplayState",void 0);_.N([_.e(),_.P("design:type",String)],CA.prototype,"businessEmail",void 0);_.N([_.e(),_.P("design:type",String)],CA.prototype,"businessEmailErrorMessage",void 0);
_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],CA.prototype,"hideDetailsSection",null);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],CA.prototype,"dataChanged",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],CA.prototype,"shouldShowNewLinks",null);_.N([_.Z("data","shouldShowLinks"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],CA.prototype,"shouldShowLegacyLinks",null);
_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],CA.prototype,"onYtServiceRequestCompleted",null);_.N([_.Ul({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],CA);
_.G(CA,"ytd-channel-about-metadata-renderer",function(){if(JMe!==void 0)return JMe;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return JMe=t},{mode:1});var Ig9;_.vs("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var jn=function(){return _.z.apply(this,arguments)||this};
_.u(jn,_.z);jn.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]]"}}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],jn.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],jn.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],jn.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Number)],jn.prototype,"lockupContainerType",void 0);_.N([_.e(),_.P("design:type",String)],jn.prototype,"thumbnailFixedWidth",void 0);
_.N([_.Ul({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],jn);
_.G(jn,"ytd-channel-featured-content-renderer",function(){if(Ig9!==void 0)return Ig9;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Ig9=t},{mode:1});var grt;_.vs("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var rU=function(){var t=_.z.apply(this,arguments)||this;t.roundContainer=!0;t.amsterdamEnabled=_.r("enable_desktop_amsterdam_info_panels");return t};
_.u(rU,_.z);_.Y=rU.prototype;_.Y.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.Y.dataChanged=function(){this.imageWidth=this.imageHeight=24;var t=this.data;t.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!t.style&&t.image&&t.image.thumbnails.length&&(t=t.image.thumbnails[0],this.imageWidth=t.width||0,this.imageHeight=t.height||0)};
_.Y.computeSource=function(t){return t.secondarySource?_.R4(t.secondarySource):_.R4(t.source)};
_.Y.computeClarifyStyle=function(t){return t?t.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.Y.isLargeStyle=function(t){return t==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.Y.computeBackgroundStyle=function(t){return t?t.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.Y.computeHasActionButton=function(t){return!!t.actionButton};
_.Y.computeHasBottomSection=function(t){return!!t.ctaHasBottomSection};
_.Y.computeIsSourceMissing=function(t){return t.ctaHasBottomSection===!1?!0:t&&this.computeSource(t)?!1:!0};
_.Y.computeSecondaryEndpoint=function(t){return t.secondaryEndpoint||t.endpoint};
rU.prototype.dataChanged=rU.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],rU.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],rU.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],rU.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Number)],rU.prototype,"imageWidth",void 0);_.N([_.e(),_.P("design:type",Number)],rU.prototype,"imageHeight",void 0);
_.N([_.e({computed:"computeSecondaryEndpoint(data)"}),_.P("design:type",Object)],rU.prototype,"secondaryEndpoint",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.P("design:type",Boolean)],rU.prototype,"hasActionButton",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.P("design:type",Boolean)],rU.prototype,"hasBottomSection",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.P("design:type",Boolean)],rU.prototype,"missingSource",void 0);_.N([_.e({computed:"computeIcon_(data.icon)"}),_.P("design:type",String)],rU.prototype,"icon",void 0);_.N([_.e({computed:"computeIcon_(data.secondaryIcon)"}),_.P("design:type",String)],rU.prototype,"secondaryIcon",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.P("design:type",String)],rU.prototype,"clarifyStyle",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.P("design:type",String)],rU.prototype,"backgroundStyle",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],rU.prototype,"roundContainer",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],rU.prototype,"amsterdamEnabled",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rU.prototype,"dataChanged",null);
_.N([_.Ul({is:"ytd-clarification-renderer",disableElementRegistration:!0})],rU);
_.G(rU,"ytd-clarification-renderer",function(){if(grt!==void 0)return grt;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return grt=t},{mode:1});var Zct;_.vs("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var kK=function(){return _.z.apply(this,arguments)||this};
_.u(kK,_.z);_.Y=kK.prototype;_.Y.computeHasPrimaryIcon=function(t){return!(!t.icon&&!t.thumbnail)};
_.Y.computeHasSecondary=function(t){return!(!t.secondaryIcon&&!t.secondaryNotificationText)};
_.Y.computeHideSecondaryString=function(t){return!_.r("disable_hide_empty_secondary_string")&&!t.secondaryNotificationText};
_.Y.computeCompactLinkStyle=function(t){return t?t.toLowerCase().replace(/_/g,"-"):""};
_.Y.computeHasFitHeight=function(t){return t==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.Y.isActiveEndpoint=function(t){return(t=this.get("commandMetadata.webCommandMetadata.url",t))?_.LR(window.location.href)!=="/account_transfer_channel"&&_.LR(window.location.href)!=="/gaia_link"&&_.LR(window.location.href)!=="/channel_switcher"||t!=="/account"?_.LR(window.location.href)===t:!0:!1};
_.Y.onTap=function(){var t;((t=this.data)==null?0:t.serviceEndpoint)&&_.JZ(this.hostElement,[this.data.serviceEndpoint])};
kK.prototype.onTap=kK.prototype.onTap;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],kK.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],kK.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.P("design:type",Boolean)],kK.prototype,"active",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.P("design:type",String)],kK.prototype,"compactLinkStyle",void 0);
_.N([_.e({computed:"computeIcon_(data.icon)"}),_.P("design:type",Object)],kK.prototype,"icon",void 0);_.N([_.e({computed:"computeIcon_(data.secondaryIcon)"}),_.P("design:type",Object)],kK.prototype,"secondaryIcon",void 0);_.N([_.e({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],kK.prototype,"hasSecondary",void 0);_.N([_.e({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],kK.prototype,"hideSecondaryString",void 0);
_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kK.prototype,"onTap",null);_.N([_.Ul({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],kK);
_.G(kK,"ytd-compact-link-renderer",function(){if(Zct!==void 0)return Zct;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Zct=t},{mode:1});var Oc5;var XNd;var dU=function(){var t=_.z.apply(this,arguments)||this;t.amsterdamEnabled=_.r("enable_desktop_amsterdam_info_panels");return t};
_.u(dU,_.z);_.Y=dU.prototype;_.Y.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.Y.computeIcon=function(t){return t?"yt-icons:"+t.toLowerCase():null};
_.Y.computeUseContacts=function(t){return!!t.contacts&&t.contacts.length>0};
_.Y.computePhoneContact=function(t){var E,p;return(E=t.contacts)==null?void 0:(p=E.find(function(U){var x;return(U==null?void 0:(x=U.icon)==null?void 0:x.iconType)==="PHONE"}))==null?void 0:p.actionText};
_.Y.computeSmsContact=function(t){var E,p;return(E=t.contacts)==null?void 0:(p=E.find(function(U){var x;return(U==null?void 0:(x=U.icon)==null?void 0:x.iconType)==="SMS"}))==null?void 0:p.actionText};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],dU.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],dU.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],dU.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],dU.prototype,"amsterdamEnabled",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.P("design:type",Boolean)],dU.prototype,"useContacts",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.P("design:type",String)],dU.prototype,"phoneContact",void 0);_.N([_.Ul({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],dU);
_.G(dU,"ytd-single-action-emergency-support-renderer",function(){if(XNd!==void 0)return XNd;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return XNd=t},{mode:1});_.vs("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var u_=function(){var t=_.z.apply(this,arguments)||this;t.roundedContainer=!0;t.amsterdamEnabled=_.r("enable_desktop_amsterdam_info_panels");return t};
_.u(u_,_.z);u_.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"}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],u_.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],u_.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],u_.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],u_.prototype,"roundedContainer",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],u_.prototype,"amsterdamEnabled",void 0);
_.N([_.Ul({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],u_);
_.G(u_,"ytd-emergency-onebox-renderer",function(){if(Oc5!==void 0)return Oc5;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Oc5=t},{mode:1});var hxC;_.vs("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var J$=function(){return _.z.apply(this,arguments)||this};
_.u(J$,_.z);J$.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"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],J$.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],J$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],J$.prototype,"data",void 0);_.N([_.Ul({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],J$);
_.G(J$,"ytd-exploratory-results-renderer",function(){if(hxC!==void 0)return hxC;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return hxC=t},{mode:1});var age;_.vs("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var IH=function(){var t=_.z.apply(this,arguments)||this;t.messageData=null;return t};
_.u(IH,_.z);_.Y=IH.prototype;_.Y.onServiceRequestCompleted=function(t,E){t=E.actions||[];E=0;for(var p=t.length;E<p;E++){var U=t[E],x=void 0,A=void 0;if((x=_.k(U,_.KC))==null?0:(A=x.item)==null?0:A.messageRenderer)this.messageData=_.k(U,_.KC).item.messageRenderer}};
_.Y.dataChanged=function(){var t=this.data;this.hostElement.hidden=!1;_.XM(this.hostElement,"is-channel",t&&!t.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.Y.computeThumbnailWidth=function(t){return t?126:56};
_.Y.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.Y.onSubmitTap=function(){var t=this.data,E=this.selectedResponseIndex;t!==void 0&&E!==void 0&&(t=t.responses[E],t.responseData&&_.X3().resolve(_.ei).resolveCommand(t.responseData,{form:{element:this.hostElement}}))};
_.Y.onDismissTap=function(){this.hostElement.hidden=!0;var t=this.data;t!==void 0&&t.dismissalEndpoint&&_.X3().resolve(_.ei).resolveCommand(t.dismissalEndpoint,{form:{element:this.hostElement}})};
_.Y.updateSelectedResponseIndexFromBinding=function(t){this.selectedResponseIndex=t.detail.value};
IH.prototype.onSelectedResponseIndexChange=IH.prototype.onSelectedResponseIndexChange;IH.prototype.dataChanged=IH.prototype.dataChanged;IH.prototype.onServiceRequestCompleted=IH.prototype.onServiceRequestCompleted;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],IH.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],IH.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],IH.prototype,"messageData",void 0);
_.N([_.e(),_.P("design:type",Number)],IH.prototype,"selectedResponseIndex",void 0);_.N([_.Nl("#submit-button"),_.P("design:type",HTMLButtonElement)],IH.prototype,"submitButton",void 0);_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Rn]),_.P("design:returntype")],IH.prototype,"onServiceRequestCompleted",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],IH.prototype,"dataChanged",null);
_.N([_.GI("selectedResponseIndex"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],IH.prototype,"onSelectedResponseIndexChange",null);_.N([_.Ul({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],IH);
_.G(IH,"ytd-feedback-elicitation-single-question-renderer",function(){if(age!==void 0)return age;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return age=t},{mode:1});var ex8;var gU=function(){return _.z.apply(this,arguments)||this};
_.u(gU,_.z);gU.prototype.computeIconType=function(t){return t?"yt-icons:"+t.toLowerCase():null};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],gU.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],gU.prototype,"data",void 0);_.N([_.Ul({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],gU);
_.G(gU,"ytd-limited-state-message-renderer",function(){if(ex8!==void 0)return ex8;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return ex8=t},{mode:1});var Fx9;var Z$=function(){return _.z.apply(this,arguments)||this};
_.u(Z$,_.z);Z$.prototype.computeThumbnailWidth=function(t){return t?602:428};
Z$.prototype.updateWideFromBinding=function(t){this.wide=t.detail.value};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Z$.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Z$.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Boolean)],Z$.prototype,"wide",void 0);_.N([_.Ul({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],Z$);
_.G(Z$,"ytd-newspaper-hero-video-renderer",function(){if(Fx9!==void 0)return Fx9;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Fx9=t},{mode:1});var zxo;var lg5=function(){return _.z.apply(this,arguments)||this};
_.u(lg5,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],lg5.prototype,"rendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],lg5.prototype,"data",void 0);_.N([_.Ul({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],lg5);
_.G(lg5,"ytd-newspaper-mini-video-renderer",function(){if(zxo!==void 0)return zxo;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return zxo=t},{mode:1});var Gz7;_.vs("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var Oo=function(){return _.z.apply(this,arguments)||this};
_.u(Oo,_.z);Oo.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"}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Oo.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Oo.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Oo.prototype,"data",void 0);_.N([_.Ul({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],Oo);
_.G(Oo,"ytd-newspaper-renderer",function(){if(Gz7!==void 0)return Gz7;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Gz7=t},{mode:1});var nrt;_.vs("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var XT=function(){var t=_.z.apply(this,arguments)||this;t.isSegment=!1;t.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};t.nextContinuation={continuationType:"playlistVideoListContinuation"};return t};
_.u(XT,_.z);_.Y=XT.prototype;_.Y.created=function(){var t=this;this.JSC$20506_ytReorderableController=new _.wtX(101,function(E){t.handleDrop(E)})};
_.Y.attached=function(){_.X3();var t;(t=_.X3().resolve(_.OB(_.xV)))!=null&&(t.playlistVideoListElement=this.hostElement)};
_.Y.detached=function(){var t;(t=_.X3().resolve(_.OB(_.xV)))!=null&&(t.playlistVideoListElement=void 0);t=_.X3().resolve(_.OB(_.TA));_.r("web_enable_voting_animation")&&t&&(t.parentElem=void 0,t.videos=[],t.continuationsPresent=!1,t.showRefreshPill=!1);_.Sp(this.JSC$20506_ytReorderableController)};
_.Y.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"}}}}}};
_.Y.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.Y.dataChanged=function(){var t=_.X3().resolve(_.OB(_.TA));if(_.r("web_enable_voting_animation")&&this.data&&t){var E=_.ZN(this.hostElement).querySelector("#contents");E&&(t.parentElem=E);t.addVideos(this.data.contents)}_.Sp(this.JSC$20506_ytReorderableController)};
_.Y.onRendererstamperFinished=function(){this.canReorder&&_.RVr(this.JSC$20506_ytReorderableController,_.ZN(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.Y.onPlaylistReloading=function(){this.isReloading=!0};
_.Y.onUpdateSetVideoId=function(t){if(t.detail&&this.data&&this.data.contents){var E=t.detail;t=this.data.contents.findIndex(function(x){var A;return((A=x.playlistVideoRenderer)==null?void 0:A.videoId)===E.videoId});
if(!(t<0)&&E.setVideoId&&(this.set("data.contents."+t+".playlistVideoRenderer.setVideoId",E.setVideoId),_.r("web_enable_voting_animation"))){var p;if(t=_.k((p=this.data.contents[t].playlistVideoRenderer)==null?void 0:p.engagementBar,_.abJ)){var U;(U=t.actions)==null||U.forEach(function(x){if(x=_.k(x,_.enD))x.itemId=E.setVideoId})}(p=_.X3().resolve(_.OB(_.TA)))&&B0J(p,E.videoId,E.setVideoId)}}};
_.Y.computeContentsClass=function(t){return t?"reloading":""};
_.Y.computeIsSortable=function(t,E){return t&&E>0&&!this.isSegment&&!_.r("shorts_in_playlists_web")};
_.Y.computeIsEditable=function(t){return t};
_.Y.computeCanReorder=function(t){return t};
_.Y.handlePlaylistRemoveVideosAction=function(t){if(this.get("playlistRemoveVideosAction.setVideoIds",t)&&this.data&&this.data.contents){t=_.k(t,_.L$m).setVideoIds;for(var E=this.data.contents.length-1;E>=0;){var p=this.data.contents[E].playlistVideoRenderer;p&&p.setVideoId&&t.includes(p.setVideoId)&&this.splice("data.contents",E,1);E--}_.du(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.Y.updateIndices=function(){if(this.data&&this.data.contents)for(var t=0;t<this.data.contents.length;t++)this.set("data.contents."+t+".playlistVideoRenderer.index",_.wN(String(t+1)))};
_.Y.handleDrop=function(t){t=t.currDragItem;var E=_.FO(t.parentNode.childNodes,t),p=this.data.contents.splice(Number(_.R4(t.data.index))-1,1)[0];this.data.contents.splice(E,0,p);E=E?this.get("contents."+(E-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();t=this.buildReorderServiceEndpoint(t.data.setVideoId,E);this.ytComponentBehavior.resolveCommand(t)};
_.Y.buildReorderServiceEndpoint=function(t,E){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",t),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",E),this.data.onReorderEndpoint):null};
_.Y.handleUpdatePlaylistAction=function(t){var E;(t=_.k((E=_.k(t,_.PPT))==null?void 0:E.updatedRenderer,_.WIo))&&this.canReorder!==t.canReorder&&this.set("data.canReorder",t.canReorder);t&&t.contents&&(this.set("data.contents",t.contents),this.isReloading=!1);t&&t.continuations&&this.set("data.continuations",t.continuations)};
_.Y.handleAddRendererToItemSectionAction=function(t){var E,p=(E=_.k(t,Bl9))==null?void 0:E.renderer,U;p&&((U=_.k(t,Bl9))==null?void 0:U.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,p),t=_.X3().resolve(_.OB(_.TA)),_.r("web_enable_voting_animation")&&t&&(p&&(E=_.hn$(p))&&t.recommendedVideos.push({itemId:E,videoId:_.FXL(p),voteCount:_.znO(p),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.Y.isVotingEnabledOnPlaylist=function(t){if(!t)return!1;t=_.M(t);for(t=t.next();!t.done;t=t.next()){var E=void 0;return!!_.k((E=t.value.playlistVideoRenderer)==null?void 0:E.engagementBar,_.abJ)}return!1};
_.Y.onAppendContinuationItemsActionFinished=function(){var t;this.isVotingEnabledOnPlaylist((t=this.data)==null?void 0:t.contents)&&(this.updateIndices(),t=_.X3().resolve(_.OB(_.TA)),_.r("web_enable_voting_animation")&&t&&this.data&&t.addVideos(this.data.contents))};
_.Y.updateVideoData=function(t){if(t.detail&&this.data&&this.data.contents){var E=t.detail;t=E.toIdx;var p=E.itemId,U=E.newVoteCount,x=E.voteStatus;E=E.hideItem;var A,m,b=(A=this.data)==null?void 0:(m=A.contents)==null?void 0:m.findIndex(function(V){return _.hn$(V)===p});
if(!(b<0)){A=this.data.contents[b];var f;if((f=A.playlistVideoRenderer)==null?0:f.voteCount)A.playlistVideoRenderer.voteCount=U;var B;if(f=_.k((B=A.playlistVideoRenderer)==null?void 0:B.engagementBar,_.abJ)){var R;(R=f.actions)==null||R.forEach(function(V){(V=_.k(V,_.enD))&&V.initialState&&(V.initialState.votes=U,V.initialState.status=x)})}this.data.contents.splice(b,1);
E||this.data.contents.splice(t,0,A);this.updateIndices()}}};
XT.prototype.updateVideoData=XT.prototype.updateVideoData;XT.prototype.onAppendContinuationItemsActionFinished=XT.prototype.onAppendContinuationItemsActionFinished;XT.prototype.onUpdateSetVideoId=XT.prototype.onUpdateSetVideoId;XT.prototype.onPlaylistReloading=XT.prototype.onPlaylistReloading;XT.prototype.onRendererstamperFinished=XT.prototype.onRendererstamperFinished;XT.prototype.dataChanged=XT.prototype.dataChanged;
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],XT.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],XT.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],XT.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.gj.YtNextContinuationBehavior),_.P("design:type",Object)],XT.prototype,"ytNextContinuationBehavior",void 0);
_.N([_.g(_.I6),_.P("design:type",Object)],XT.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],XT.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],XT.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Boolean)],XT.prototype,"isReloading",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],XT.prototype,"isSegment",void 0);
_.N([_.e({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.P("design:type",Boolean)],XT.prototype,"isSortable",void 0);_.N([_.e({computed:"computeIsEditable(data.isEditable)"}),_.P("design:type",Boolean)],XT.prototype,"isEditable",void 0);_.N([_.e({computed:"computeCanReorder(data.canReorder)"}),_.P("design:type",Boolean)],XT.prototype,"canReorder",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],XT.prototype,"dataChanged",null);_.N([_.lc("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],XT.prototype,"onRendererstamperFinished",null);_.N([_.lc("yt-playlist-reloading"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],XT.prototype,"onPlaylistReloading",null);
_.N([_.lc("yt-update-set-video-id"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],XT.prototype,"onUpdateSetVideoId",null);_.N([_.lc("yt-append-continuation-items-action-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],XT.prototype,"onAppendContinuationItemsActionFinished",null);
_.N([_.lc("yt-update-video-data-voting-animation"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],XT.prototype,"updateVideoData",null);_.N([_.Ul({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],XT);
_.G(XT,"ytd-playlist-video-list-renderer",function(){if(nrt!==void 0)return nrt;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return nrt=t},{mode:_.hX("kevlar_poly_si_batch_j047")?1:2});var NCl;var h$=function(){return _.z.apply(this,arguments)||this};
_.u(h$,_.z);h$.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"}}}}};
h$.prototype.onTextWrapperTap=function(t){var E=this.data&&this.data.navigationEndpoint;E&&!_.Qb(_.Vx(t),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.kT(this.hostElement,"yt-navigate",{endpoint:E})};
h$.prototype.dataChanged=function(){var t=this.get("data.offerButton.buttonRenderer.serviceEndpoint");t&&t.commandMetadata&&_.k(t.commandMetadata,_.t1)&&_.k(t.commandMetadata,_.t1).fireAutomatically&&_.X3().resolve(_.ei).resolveCommand(t,{form:{element:this.hostElement}})};
h$.prototype.dataChanged=h$.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],h$.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],h$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.dy),_.P("design:type",Object)],h$.prototype,"ytdLockupBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],h$.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.P("design:type",Boolean)],h$.prototype,"useBiggerThumbs",void 0);_.N([_.e({reflectToAttribute:!0,value:function(){return _.la("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],h$.prototype,"biggerThumbsStyle",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],h$.prototype,"leftAligned",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],h$.prototype,"dataChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-movie-renderer"})],h$);
_.G(h$,"ytd-movie-renderer",function(){if(NCl!==void 0)return NCl;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return NCl=t},{mode:1});var D1l={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(t){if(t&&t.length==1&&Array.isArray(t[0].loggingUrls)){t=_.Kq.unsafeClone(t[0]);var E=this.macros||{},p=this.getAdModuleClient_();if(!p)return _.gu();t.loggingUrls.forEach(function(U){if(U.baseUrl){var x=U.baseUrl;var A=E;A=A===void 0?{}:A;x=p.getOptions().includes("replaceUrlMacros")?_.JEX(p,"replaceUrlMacros",{url:x,additionalMapping:A}):x;U.baseUrl=x}},this);
t=[t]}return _.JZ(this.hostElement,t)},
getAdModuleClient_:function(){var t=_.k1(this);return t?(t=t.getPlayer())?new _.bs(t):null:null}}]};var sVK;var aH=function(){var t=_.z.apply(this,arguments)||this;t.modern=_.r("web_modern_buttons");t.buttonOverrides={style:"call-to-action",type:"filled"};return t};
_.u(aH,_.z);aH.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=_.SL(this.data.backgroundColor)))};
aH.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var t=this.getFormattedStringLoggingDirectives(this.data.headline);t&&this.rendererBehavior.logExplicitClick(t)}};
aH.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var t=this.getFormattedStringLoggingDirectives(this.data.description);t&&this.rendererBehavior.logExplicitClick(t)}};
aH.prototype.getFormattedStringLoggingDirectives=function(t){return t&&t.runs&&t.runs.length>0&&t.runs[0]&&t.runs[0].loggingDirectives?t.runs[0].loggingDirectives:null};
aH.prototype.dataChanged=aH.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],aH.prototype,"rendererBehavior",void 0);_.N([_.g(D1l.YtMacroReplacementBehavior),_.P("design:type",Object)],aH.prototype,"macroReplacementBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],aH.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],aH.prototype,"navigationEndpoint",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],aH.prototype,"enableColors",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],aH.prototype,"modern",void 0);_.N([_.e(),_.P("design:type",Object)],aH.prototype,"buttonOverrides",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],aH.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],aH);
_.G(aH,"ytd-action-basic-immersive-content-renderer",function(){if(sVK!==void 0)return sVK;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return sVK=t},{mode:1});var LxL;var P58;var en=function(){return _.z.apply(this,arguments)||this};
_.u(en,_.z);en.prototype.dataChanged=function(){var t;((t=this.data)==null?void 0:t.backgroundColor)!==void 0&&_.eU(this.hostElement,{"--bgu-color":_.SL(this.data.backgroundColor)})};
en.prototype.onImageTileClick=function(){var t;((t=this.data)==null?0:t.navigationEndpoint)&&_.kT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var E;((E=this.data)==null?0:E.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.aE.Object.defineProperties(en.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var t;if(((t=this.data)==null?void 0:t.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 t;return((t=this.data)==null?void 0:t.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var t,E,p;if(((t=this.data)==null?void 0:(E=t.detailsLine)==null?void 0:E.texts)!=null&&((p=this.data)==null?void 0:p.detailsLine.texts.length)>0){var U;return(U=this.data)==null?void 0:U.detailsLine.texts.map(function(x){return x.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var t,E,p;if(((t=this.data)==null?void 0:(E=t.optionalDetailsLine)==null?void 0:E.texts)!=null&&((p=this.data)==null?void 0:p.optionalDetailsLine.texts.length)>0){var U;return(U=this.data)==null?void 0:U.optionalDetailsLine.texts.map(function(x){return x.text}).join("")}return null}}});
en.prototype.dataChanged=en.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],en.prototype,"rendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],en.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],en.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("data.backgroundColor"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],en.prototype,"hasBackgroundColor",null);
_.N([_.Z("data.objectFit"),_.P("design:type",Object),_.P("design:paramtypes",[])],en.prototype,"getObjectFit",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data.tileRenderingStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],en.prototype,"hasTileMetadata",null);_.N([_.Z("data.detailsLine"),_.P("design:type",Object),_.P("design:paramtypes",[])],en.prototype,"getSecondaryDetails",null);
_.N([_.Z("data.optionalDetailsLine"),_.P("design:type",Object),_.P("design:paramtypes",[])],en.prototype,"getOptionalDetails",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],en.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],en);
_.G(en,"ytd-image-tile-renderer",function(){if(P58!==void 0)return P58;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return P58=t},{mode:1});var TCt;var FT=function(){return _.z.apply(this,arguments)||this};
_.u(FT,_.z);FT.prototype.getOpenLinkIcon=function(){return _.r("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
FT.prototype.onSitelinkTap=function(){_.kT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.r("kevlar_command_handler_migration_killswitch"))_.IK(this.hostElement,this.data.clickCommands,this.hostElement);else for(var t=_.M(this.data.clickCommands),E=t.next();!E.done;E=t.next())this.ytComponentBehavior.resolveCommand(E.value)};
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],FT.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],FT.prototype,"rendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],FT.prototype,"data",void 0);_.N([_.Ul({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],FT);
_.G(FT,"ytd-sitelink-renderer",function(){if(TCt!==void 0)return TCt;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return TCt=t},{mode:1});var zy=function(){var t=_.z.apply(this,arguments)||this;t.paddingFix=_.r("enable_ads_web_ep_buenos_aires_and_padding_fix");return t};
_.u(zy,_.z);zy.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"}}}};
zy.prototype.dataChanged=function(){var t=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(E){E.clickTrackingParams&&delete E.clickTrackingParams;t.ytMacroReplacementBehavior.sendServiceRequestAction([E])})};
zy.prototype.shouldHideFooter=function(t){return!(t&&_.r("use_ads_engagement_panel_desktop_footer_cta"))};
_.aE.Object.defineProperties(zy.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.data)==null?void 0:t.imageTileRenderers)===void 0||((E=this.data)==null?void 0:E.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(p){var U;return(U=_.k(p,q$e))==null?void 0:U.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.data)==null?void 0:t.imageTileRenderers)===void 0||((E=this.data)==null?void 0:E.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(p){var U;return((U=_.k(p,q$e))==null?void 0:U.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
zy.prototype.dataChanged=zy.prototype.dataChanged;_.N([_.g(D1l.YtMacroReplacementBehavior),_.P("design:type",Object)],zy.prototype,"ytMacroReplacementBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],zy.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],zy.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],zy.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],zy.prototype,"paddingFix",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("data.imageTileRenderers"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],zy.prototype,"removeBorderFromImageTiles",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data.imageTileRenderers"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],zy.prototype,"useFooteredMetadataRenderingStyle",null);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zy.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],zy);
_.G(zy,"ytd-action-engagement-panel-content-renderer",function(){if(LxL!==void 0)return LxL;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return LxL=t},{mode:1});var ort;var Wx7=_.l(function(t){var E=t.data;var p=t.customCommandResolver;return _.H("ad-grid-card-image-full-metadata-view-model",{class:function(){var U;return((U=E().interaction)==null?0:U.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.V9(_.az({visibilityCallback:function(U){var x,A=(x=E().interaction)==null?void 0:x.onFirstVisible;U&&A&&_.bz(A)},
showOption:_.lS}),_.Yj(function(){return E().interaction},p)),
"aria-label":function(){var U,x;return(U=E().interaction)==null?void 0:(x=U.accessibility)==null?void 0:x.label}},_.H("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.H(_.sY,{data:function(){return E().adImage}},{adImageViewModel:function(U){return _.H(_.SF,{data:U.data,
customCommandResolver:p})}})),_.H("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.H(_.w,{cond:function(){return E().headline},
then:function(U){return _.H(_.d8,{text:U,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.H(_.w,{cond:function(){return E().detailsLine},
then:function(U){return _.H("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.H(_.sY,{data:U},{adDetailsLineViewModel:function(x){return _.H(_.TR,{data:x.data,customCommandResolver:p,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.H(_.w,{cond:function(){return E().secondaryDetailsLine},
then:function(U){return _.H("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.H(_.sY,{data:U},{adDetailsLineViewModel:function(x){return _.H(_.TR,{data:x.data,customCommandResolver:p,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Ah");var $1t=_.l(function(t){var E=t.data;var p=t.customCommandResolver;return _.H("ad-grid-card-image-view-model",{class:function(){var U;return((U=E().interaction)==null?0:U.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.V9(_.az({visibilityCallback:function(U){var x,A=(x=E().interaction)==null?void 0:x.onFirstVisible;U&&A&&_.bz(A)},
showOption:_.lS}),_.Yj(function(){return E().interaction},p)),
"aria-label":function(){var U,x;return(U=E().interaction)==null?void 0:(x=U.accessibility)==null?void 0:x.label}},_.H(_.sY,{data:function(){return E().adImage}},{adImageViewModel:function(U){return _.H(_.SF,{data:U.data,
customCommandResolver:p})}}),_.H("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.H(_.sY,{data:function(){return E().adCardBadge}},{adCardBadgeViewModel:_.cas})))},"Bh");var Kxg=_.l(function(t){var E=t.data;var p=t.customCommandResolver;return _.H("ad-grid-card-text-view-model",{class:function(){var U;return((U=E().interaction)==null?0:U.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.V9(_.az({visibilityCallback:function(U){var x,A=(x=E().interaction)==null?void 0:x.onFirstVisible;U&&A&&_.bz(A)},
showOption:_.lS}),_.Yj(function(){return E().interaction},p)),
"aria-label":function(){var U,x;return(U=E().interaction)==null?void 0:(x=U.accessibility)==null?void 0:x.label}},_.H("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.H(_.w,{cond:function(){return E().title},
then:function(U){return _.H(_.d8,{text:U,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.H("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.H(_.yG,{each:function(){var U;
return((U=E())==null?void 0:U.descriptions)||[]},
keyBy:"INDEX"},function(U){return _.H(_.d8,{text:U,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.H("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.H(_.sY,{data:function(){return E().moreInfoButton}},{adButtonViewModel:function(U){return _.H(_.nk,{data:U.data,
customCommandResolver:p})}})))},"Ch");var vro=_.l(function(t){var E=t.data;var p=t.customCommandResolver;var U=t.adGridCardCollectionStyle;return _.H("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.V9(_.az({visibilityCallback:function(x){var A,m=(A=E().interaction)==null?void 0:A.onFirstVisible;x&&m&&_.bz(m)},
showOption:_.lS})),style:function(){return"grid-template-columns: repeat("+u5l(U?U():E().style)+", minmax(0, 1fr));"}},_.H(_.sY,{data:function(){var x;
return(x=E())==null?void 0:x.gridCards}},{adGridCardImageViewModel:function(x){return _.H($1t,{data:x.data,
customCommandResolver:p})},
adGridCardImageFullMetadataViewModel:function(x){return _.H(Wx7,{data:x.data,customCommandResolver:p})},
adGridCardTextViewModel:function(x){return _.H(Kxg,{data:x.data,customCommandResolver:p})}}))},"Dh");_.k2(_.l(function(t){var E=t.data;return _.H("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.V9(_.az({visibilityCallback:function(p){var U,x=(U=E().interaction)==null?void 0:U.onFirstVisible;p&&x&&_.bz(x)},
showOption:_.lS}),_.Yj(function(){return E().interaction},I4o))},_.H("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.H(_.w,{cond:_.ya_("(min-width: "+(AR()+YS)+"px)"),
then:function(){return _.H(_.sY,{data:function(){return E().adGridCardCollection}},{adGridCardCollectionViewModel:function(p){return _.H(vro,{data:p.data,
customCommandResolver:I4o})}})},
else:function(){return _.H(_.sY,{data:function(){return E().adGridCardCollection}},{adGridCardCollectionViewModel:function(p){return _.H(vro,{data:p.data,
customCommandResolver:I4o,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.H("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.H(_.sY,{data:function(){return E().adButton}},{adButtonViewModel:function(p){return _.H(_.nk,{data:p.data,
customCommandResolver:I4o})}})))},"Eh"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.uu}});_.k2(_.l(function(t){var E=t.data;return _.H("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.V9(_.az({visibilityCallback:function(p){var U,x=(U=E().interaction)==null?void 0:U.onFirstVisible;p&&x&&_.bz(x)},
showOption:_.lS}),_.Yj(function(){return E().interaction},g2J))},_.H("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.H(_.sY,{data:function(){if(_.ya_("(min-width: "+(AR()+YS)+"px)")())var p=E().adGridCardCollection;
else{p=Object.assign({},_.k(E().adGridCardCollection,ffg));var U;p.gridCards!==void 0&&((U=p.gridCards)==null?void 0:U.length)>1?p.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":p.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";p={adGridCardCollectionViewModel:p}}return p}},{adGridCardCollectionViewModel:function(p){return _.H(vro,{data:p.data,
customCommandResolver:g2J})}})),_.H("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.H(_.sY,{data:function(){return E().adButton}},{adButtonViewModel:function(p){return _.H(_.nk,{data:p.data,
customCommandResolver:g2J})}})))},"Fh"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.uu}});var l_=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return t};
_.u(l_,_.z);_.Y=l_.prototype;_.Y.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"}}}};
_.Y.attached=function(){this.getDataFromPlayerAndRender()};
_.Y.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.Y.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.Y.getDataFromPlayerAndRender=function(){var t=this,E=_.k1(this.hostElement);E&&E.getPlayerPromise().then(function(p){t.getCachedDataAndListen(p)})};
_.Y.getCachedDataAndListen=function(t){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(t,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(t,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=t)};
_.Y.resolveCachedActions=function(){var t=_.ws("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(t=t&&t())&&!_.Kq.isEmpty(t)&&this.sendUpdateEngagementPanelAction(t);(t=(t=_.ws("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&t())&&!_.Kq.isEmpty(t)&&this.sendChangeEngagementPanelVisibilityAction(t);(t=(t=_.ws("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&t())&&!_.Kq.isEmpty(t)&&this.sendScrollToEngagementPanelCommand(t)};
_.Y.sendUpdateEngagementPanelAction=function(t){var E;_.du(this.hostElement,"yt-update-engagement-panel-action",[(E=_.Kq.get(t,"action"))!=null?E:t])};
_.Y.sendChangeEngagementPanelVisibilityAction=function(t){_.du(this.hostElement,"yt-change-engagement-panel-visibility-action",[t])};
_.Y.sendScrollToEngagementPanelCommand=function(t){_.du(this.hostElement,"yt-scroll-to-engagement-panel-command",[t])};
_.Y.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.r("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.qW(Error("Al"))};
l_.prototype.dataChanged=l_.prototype.dataChanged;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],l_.prototype,"actionHandlerBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],l_.prototype,"componentBehavior",void 0);_.N([_.g(_.JT.YtPlayerListenerBehavior),_.P("design:type",_.Il)],l_.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],l_.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],l_.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],l_.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],l_.prototype,"player",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l_.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],l_);
_.G(l_,"ytd-ads-engagement-panel-content-renderer",function(){if(ort!==void 0)return ort;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);
return ort=t},{mode:1});var yMo;var Gy=function(){var t=_.z.apply(this,arguments)||this;t.player=null;t.JSC$20544_playerEvents=new Map;t.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return t};
_.u(Gy,_.z);_.Y=Gy.prototype;_.Y.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]]"}}}}}};
_.Y.created=function(){this.player=null;this.JSC$20544_playerEvents=new Map;this.JSC$20544_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$20544_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20544_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20544_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.Y.attached=function(){var t=this,E=_.k1();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));E&&E.getPlayerPromise().then(function(p){t.setPlayer(p);t.set("isPageLoad",!1)})};
_.Y.setPlayer=function(t){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20544_playerEvents);this.set("player",t);t&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(t,this.JSC$20544_playerEvents),t.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.Y.onLoopRangeChange=function(t){var E=_.X3().resolve(_.OB(_.jw));if((!E||E.isOnWatch())&&this.hostElement.clientHeight){var p;!t&&((p=this.data)==null?0:p.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.Y.onVideoProgress=function(t){var E,p,U=((E=this.player)==null?void 0:(p=E.getPresentingPlayerType)==null?void 0:p.call(E))===2;this.isAdPlaying!==U&&this.set("isAdPlaying",U);var x;if(!U&&(x=this.player)!=null&&x.getLoopRange()){p=this.player.getLoopRange();E=p.startTimeMs;p=p.endTimeMs;U=this.player.getProgressState(1).seekableStart;var A;E<U*1E3&&((A=this.data)==null?0:A.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
t=p<t*1E3;var m;((m=this.player)==null?0:m.getLoopRange())&&t&&this.player.seekTo(E/1E3)}};
_.Y.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.Y.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.Y.onYtDeleteClipEngagementPanelCommand=function(t){_.k(t,SLJ).command&&this.ytComponentBehavior.resolveCommand(_.k(t,SLJ).command)};
_.aE.Object.defineProperties(Gy.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.voteCount)||_.wN("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Gy.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Gy.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Gy.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Gy.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.JT.YtPlayerListenerBehavior),_.P("design:type",_.Il)],Gy.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Gy.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Gy.prototype,"isAdPlaying",void 0);_.N([_.e({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],Gy.prototype,"isPageLoad",void 0);_.N([_.e({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],Gy.prototype,"isDarkTheme",void 0);
_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Gy.prototype,"voteCount",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Gy.prototype,"channelEndpoint",null);_.N([_.Z("channelEndpoint"),_.P("design:type",Object),_.P("design:paramtypes",[])],Gy.prototype,"channelHref",null);_.N([_.Ul({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Gy);
_.G(Gy,"ytd-clip-attribution-renderer",function(){if(yMo!==void 0)return yMo;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return yMo=t},{mode:1});var SxL;var nA=function(){var t=_.z.apply(this,arguments)||this;t.player=null;t.JSC$20549_playerEvents=new Map;return t};
_.u(nA,_.z);_.Y=nA.prototype;_.Y.created=function(){this.player=null;this.JSC$20549_playerEvents=new Map;this.JSC$20549_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20549_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20549_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.Y.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.Y.attached=function(){var t=this,E=_.k1();E&&E.getPlayerPromise().then(function(p){t.setPlayer(p);t.set("isPageLoad",!1)})};
_.Y.setPlayer=function(t){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20549_playerEvents);this.set("player",t);if(t){this.ytPlayerListenerBehavior.listenToPlayerEvents(t,this.JSC$20549_playerEvents);var E;(t==null?void 0:(E=t.getPresentingPlayerType)==null?void 0:E.call(t))===2&&this.playerAdStartHandler()}};
_.Y.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.Y.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.Y.onVideoProgress=function(){var t,E,p=((t=this.player)==null?void 0:(E=t.getPresentingPlayerType)==null?void 0:E.call(t))===2;this.isAdPlaying!==p&&this.set("isAdPlaying",p)};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],nA.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],nA.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.JT.YtPlayerListenerBehavior),_.P("design:type",_.Il)],nA.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],nA.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],nA.prototype,"isAdPlaying",void 0);
_.N([_.e({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],nA.prototype,"isPageLoad",void 0);_.N([_.Ul({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],nA);
_.G(nA,"ytd-clip-section-footer-renderer",function(){if(SxL!==void 0)return SxL;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return SxL=t},{mode:1});var cM9;var tOK;var EH7=function(){return _.z.apply(this,arguments)||this};
_.u(EH7,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],EH7.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],EH7.prototype,"data",void 0);_.N([_.Ul({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],EH7);
_.G(EH7,"ytd-clip-ad-state-renderer",function(){if(tOK!==void 0)return tOK;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return tOK=t},{mode:1});var pFd;var Nr=function(){var t=_.z.apply(this,arguments)||this;t.value="";t.valid=!1;t.userChangedValue=!1;t.disabled=!1;t.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return t};
_.u(Nr,_.z);_.Y=Nr.prototype;_.Y.detached=function(){this.userChangedValue=!1};
_.Y.handleKeyDown=function(t){if(_.Ne)var E=13;else _.r3p&&_.no?E=13:E=13;t.keyCode===E&&t.preventDefault()};
_.Y.handleInput=function(){var t=_.ZN(this.hostElement).querySelector("#title");if(t){var E=(t.value||"").replace(/\r|\n/g," ");this.set("value",E);t.value=E;this.valid=t.validate();this.userChangedValue=!0}};
_.Y.handleBlur=function(){this.valid=_.ZN(this.hostElement).querySelector("#title").validate()};
_.Y.onValueChanged=function(){_.kT(this.hostElement,"title-changed",{title:this.value})};
_.Y.onValidChanged=function(){_.kT(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.Y.setInput=function(t,E){var p=_.ZN(this.hostElement).querySelector("#title");p&&(p.value=t,this.handleInput(),E&&(p.invalid=!1,this.valid=!0))};
_.Y.onClipCreationDisable=function(){this.set("disabled",!0)};
_.Y.onClipCreationEnable=function(){this.set("disabled",!1)};
_.Y.onClipCreationVisibilityChange=function(t){var E=this;t.visible?requestAnimationFrame(function(){var p;((p=_.ZN(E.hostElement).querySelector("#title"))==null?void 0:p.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
Nr.prototype.onValidChanged=Nr.prototype.onValidChanged;Nr.prototype.onValueChanged=Nr.prototype.onValueChanged;Nr.prototype.handleBlur=Nr.prototype.handleBlur;Nr.prototype.handleInput=Nr.prototype.handleInput;Nr.prototype.handleKeyDown=Nr.prototype.handleKeyDown;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Nr.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Nr.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],Nr.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Nr.prototype,"value",void 0);_.N([_.e(),_.P("design:type",Object)],Nr.prototype,"valid",void 0);_.N([_.e(),_.P("design:type",Object)],Nr.prototype,"userChangedValue",void 0);_.N([_.e(),_.P("design:type",Object)],Nr.prototype,"disabled",void 0);_.N([_.lc("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[KeyboardEvent]),_.P("design:returntype")],Nr.prototype,"handleKeyDown",null);
_.N([_.lc("input"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Nr.prototype,"handleInput",null);_.N([_.lc("blur"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Nr.prototype,"handleBlur",null);_.N([_.GI("value"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Nr.prototype,"onValueChanged",null);
_.N([_.GI("valid"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Nr.prototype,"onValidChanged",null);_.N([_.Ul({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],Nr);
_.G(Nr,"ytd-clip-creation-text-input-renderer",function(){if(pFd!==void 0)return pFd;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return pFd=t},{mode:1});var U8K;var x8J;var AV5;var Y6e;var MOL;var D$=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};t.pendingStoryboardImages_={};t.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];t.tickLabelInterval=30;t.mediumTickInterval=5;t.largeTickInterval=15;t.aboveRulerHeight=32;t.rulerHeight=50;t.smallTickHeight=4;t.mediumTickHeight=8;t.largeTickHeight=16;t.mediaListeners_=
{};return t};
_.u(D$,_.z);_.Y=D$.prototype;_.Y.attached=function(){var t=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(E){E=_.M(["screen and (min-resolution: "+E+")","screen and (max-resolution: "+E+")"]);for(var p=E.next();!p.done;p=E.next()){p=p.value;var U=window.matchMedia(p);U&&(t.mediaListeners_[p]=t.updatePixelRatio_.bind(t),U.addEventListener?U.addEventListener("change",t.mediaListeners_[p]):U.addListener?U.addListener(t.mediaListeners_[p]):delete t.mediaListeners_[p])}})};
_.Y.detached=function(){this.setPlayer(null);for(var t=_.M(Object.keys(this.mediaListeners_)),E=t.next();!E.done;E=t.next()){var p=E.value;E=this.mediaListeners_[p];(p=window.matchMedia(p))&&(p.removeEventListener?p.removeEventListener("change",E):p.removeListener&&p.removeListener(E))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.Y.onVisibilityChangedAction_=function(t){var E=this;t.visible&&!this.player_&&(t=_.k1())&&t.getPlayerPromise().then(function(p){E.setPlayer(p)})};
_.Y.setPlayer=function(t){t&&this.set("player_",t)};
_.Y.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.Y.setUpCanvas_=function(){var t=this.rulerWidth,E=this.devicePixelRatio_,p=this.visible;this.set("canvasReady_",!1);if(p&&E!==0){p=this.aboveRulerHeight+this.rulerHeight;var U=_.ZN(this.hostElement).querySelector("#ticks");U.width=t*E;U.height=p*E;U.style.width=t+"px";U.style.height=p+"px";U.getContext("2d").scale(E,E);this.set("canvasReady_",!0)}};
_.Y.drawRuler_=function(t,E,p,U,x,A,m,b,f,B,R,V){t&&p&&E&&(t=_.ZN(this.hostElement).querySelector("#ticks"),E=t.getContext("2d"),E.clearRect(0,0,t.width,t.height),E.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),E.lineWidth=2,E.beginPath(),E.moveTo(0,this.aboveRulerHeight),E.lineTo(t.width,this.aboveRulerHeight),E.moveTo(0,t.height),E.lineTo(t.width,t.height),E.stroke(),this.drawRulerTicks_(t,A,x,U),this.drawStoryboardImages_(t,p,A,x,U),E.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
E.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(m-A,U,!1),this.rulerHeight),p=this.timeToPixels_(b-A,U,!1),E.fillRect(p,this.aboveRulerHeight,t.width-p,this.rulerHeight),this.drawSpeedLines_(t,A,V))};
_.Y.drawRulerTicks_=function(t,E,p,U){var x=t.getContext("2d");x.save();x.lineWidth=1;for(var A=Math.floor(Math.max(0,E-this.tickLabelInterval));A<E+p;A++){x.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var m=(A-E)*U;x.beginPath();x.moveTo(m,t.height);var b=this.smallTickHeight;A%this.largeTickInterval===0?b=this.largeTickHeight:A%this.mediumTickInterval===0&&(b=this.mediumTickHeight);x.lineTo(m,t.height-b);x.stroke();A%this.tickLabelInterval===0&&(x.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),x.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),x.fillText(bM(A),m+4,12),x.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),x.moveTo(m,0),x.lineTo(m,this.aboveRulerHeight),x.stroke())}x.restore()};
_.Y.percentToHex_=function(t){t=Math.round(t*255).toString(16);t.length<2&&(t="0"+t);return t};
_.Y.drawSpeedLines_=function(t,E,p){var U=t.getContext("2d");U.save();var x=Math.min(25,Math.abs(p)-15)/25,A=t.width*.3*x,m=t.width*-.3,b=t.width*1.3,f=this.aboveRulerHeight;t=t.height;var B=Math.round(4*x),R=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");R.length<7&&(R="#"+R.substring(1,4).repeat(2));var V=this.percentToHex_(.5+x/2);V=R+V;R+="00";if(x>0)for(x=0;x<B;x++){var Q=m+Math.random()*(b-m),C=f+Math.random()*(t-f),d=A+E%A,I=U.createLinearGradient(Q,C,Q+d,C);
p<0?(I.addColorStop(0,V),I.addColorStop(.4,V),I.addColorStop(.9,R)):(I.addColorStop(.1,R),I.addColorStop(.6,V),I.addColorStop(1,V));U.strokeStyle=I;U.lineWidth=1;U.beginPath();U.moveTo(Q,C);U.lineTo(Q+d,C);U.stroke()}U.restore()};
_.Y.getStoryboardForTime_=function(t,E,p){p===void 0&&(p=E.getNumberOfStoryboardLevels()-1);t=E.getStoryboardFrameIndex(t,p);return E.getStoryboardFrame(t,p)};
_.Y.drawStoryboardImages_=function(t,E,p,U,x){if(!this.disabled){t=t.getContext("2d");var A=this.getStoryboardForTime_(0,E);if(A){var m=A.width/A.columns;A=A.height/A.rows;var b=m/A,f=this.rulerHeight*b;f=this.tickLabelInterval*(b<this.tickLabelInterval*x/this.rulerHeight?1/Math.floor(this.tickLabelInterval*x/f):Math.round(f/(this.tickLabelInterval*x)));var B=f*x,R=this.rulerHeight,V=B/this.rulerHeight,Q=Math.floor(Math.max(0,p-f));for(Q-=Q%f;Q<p+U;Q+=f){var C=this.getStoryboardForTime_(Q,E),d=this.getPreloadedStoryboard_(C.url);
if(d){var I=(Q-p)*x,O=this.aboveRulerHeight,a=C.column*m,F=C.row*A;if(b<V){var L=R/(B/b);C=m;L*=A;F+=(A-L)/2}else C=B/(R*b)*m,L=A,a+=(m-C)/2;t.drawImage(d,a,F,C,L,I,O,B,R)}else this.fetchStoryboardImage_(C)}}}};
_.Y.getPreloadedStoryboard_=function(t){return this.storyboardImages_.find(function(E){if(E.src==t)return!0;var p=E.src.indexOf(t);return p!=-1&&p==E.src.length-t.length})};
_.Y.fetchStoryboardImage_=function(t){var E=this,p=this.getPreloadedStoryboard_(t.url),U=this.pendingStoryboardImages_[t.url];p||U!==void 0||(p=new Promise(function(x){var A=new Image(t.width,t.height);A.src=t.url;A.onload=function(){x(A)};
A.onerror=function(){x(null)}}),this.pendingStoryboardImages_[t.url]=p,p.then(function(x){x&&E.push("storyboardImages_",x);
return x}).finally(function(){delete E.pendingStoryboardImages_[t.url]}))};
_.Y.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.Y.timeToPixels_=function(t,E,p){t*=E;return p===void 0||p?t+"px":t};
_.Y.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
D$.prototype.drawRuler_=D$.prototype.drawRuler_;D$.prototype.setUpCanvas_=D$.prototype.setUpCanvas_;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],D$.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);_.N([_.e({value:0}),_.P("design:type",Number)],D$.prototype,"start",void 0);_.N([_.e({value:30}),_.P("design:type",Number)],D$.prototype,"end",void 0);
_.N([_.e({value:!1}),_.P("design:type",Boolean)],D$.prototype,"visible",void 0);_.N([_.e(),_.P("design:type",Object)],D$.prototype,"player_",void 0);_.N([_.e(),_.P("design:type",Number)],D$.prototype,"tickSpacing",void 0);_.N([_.e(),_.P("design:type",Number)],D$.prototype,"windowSizeSec",void 0);_.N([_.e({value:0}),_.P("design:type",Number)],D$.prototype,"rulerWidth",void 0);_.N([_.e({value:0}),_.P("design:type",Number)],D$.prototype,"rulerShift",void 0);
_.N([_.e({value:!1}),_.P("design:type",Boolean)],D$.prototype,"canvasReady_",void 0);_.N([_.e({value:function(){return[]}}),
_.P("design:type",Array)],D$.prototype,"storyboardImages_",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],D$.prototype,"disabled",void 0);_.N([_.e({value:0}),_.P("design:type",Number)],D$.prototype,"forceRender_",void 0);_.N([_.e({value:1}),_.P("design:type",Number)],D$.prototype,"devicePixelRatio_",void 0);_.N([_.e({value:0}),_.P("design:type",Number)],D$.prototype,"windowSpeed",void 0);
_.N([_.GI("visible","devicePixelRatio_","rulerWidth"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],D$.prototype,"setUpCanvas_",null);
_.N([_.GI("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.P("design:type",Function),_.P("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.P("design:returntype")],D$.prototype,"drawRuler_",null);_.N([_.p4({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],D$);
_.G(D$,"yt-clip-creation-scrubber-canvas",function(){if(MOL===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);MOL=t}t=MOL;return t},
{mode:2});var m8l;var bxo;var so=function(){var t=_.z.apply(this,arguments)||this;t.start=0;t.end=30;t.visible=!1;t.draggingLeft_=!1;t.draggingRight_=!1;t.draggingRuler_=!1;t.draggingWindow_=!1;t.seekableStart=0;t.seekableEnd=0;t.rulerWidth_=0;t.rulerShift_=0;t.windowSlideSpeed=0;t.disabled=!1;t.initialized=!1;t.durationAccessibilityLabel="";t.activeLoopRange_=!1;t.rulerDragMouseStart_=0;t.rulerDragRulerStart_=0;t.rulerDragStartTime_=0;t.rulerDragEndTime_=0;t.dragMouseLastX_=0;t.scrollInterval_=null;t.scrubberVe_=null;t.boundHandlers_=
{};t.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return t};
_.u(so,_.z);_.Y=so.prototype;
_.Y.created=function(){var t=this;this.JSC$20563_playerEvents=new Map;this.JSC$20563_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$20563_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$20563_playerEvents.set("onStateChange",this.onStateChange_);var E={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(E).forEach(function(p){t.boundHandlers_[p]=E[p].bind(t)})};
_.Y.attached=function(){this.activeLoopRange_=!1;_.ZN(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.ZN(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.h8(156731)};
_.Y.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.ZN(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.ZN(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.Y.onVisibilityChangedAction_=function(t){var E=this;t.visible&&!this.player_&&(t=_.k1())&&t.getPlayerPromise().then(function(p){E.setPlayer(p)})};
_.Y.setPlayer=function(t){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20563_playerEvents);t&&(this.set("player_",t),this.ytPlayerListenerBehavior.listenToPlayerEvents(t,this.JSC$20563_playerEvents))};
_.Y.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.Y.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.Y.beginHandleDrag_=function(t){this.disabled||(t.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=t.clientX,t.target===_.ZN(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():t.target===_.ZN(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.Y.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.Y.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.Y.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.Y.beginRulerDrag_=function(t){this.disabled||(t.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=t.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.Y.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.Y.beginWindowScroll_=function(){var t=this;this.scrollInterval_=setInterval(function(){var E=t.windowSlideSpeed;if(E=aJC(t.start,t.boundedRulerStartLimit_())?E-.1:aJC(t.end,t.boundedRulerEndLimit_())?E+.1:0){var p=t.capRulerOffset_(t.rulerShift_+E);p==t.rulerShift_?E=0:(t.set("rulerShift_",p),_.kT(t.hostElement,"set-fixed-length-range",{start:t.start+E,duration:t.end-t.start}))}t.set("windowSlideSpeed",E)},33)};
_.Y.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.Y.endDrag_=function(){this.logClick();var t=void 0;this.draggingRight_?t=this.end-1:this.draggingLeft_&&(t=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,t);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))};
_.Y.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.Y.updateRulerSize_=function(){this.set("rulerWidth_",_.ZN(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.Y.handleMouseDrag_=function(t){t.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(t):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(t):this.draggingWindow_&&this.handleWindowDrag_(t))};
_.Y.handleRulerDrag_=function(t){t=this.pixelsToTime_(t.clientX-this.rulerDragMouseStart_);t=this.capRulerOffset_(this.rulerDragRulerStart_-t);this.set("rulerShift_",t);var E=this.rulerDragStartTime_-(this.rulerDragRulerStart_-t);_.kT(this.hostElement,"set-fixed-length-range",{start:E,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-t)-E})};
_.Y.handleWindowDrag_=function(t){var E=t.clientX-this.dragMouseLastX_;this.dragMouseLastX_=t.clientX;t=this.pixelsToTime_(E);_.kT(this.hostElement,"set-fixed-length-range",{start:this.start+t,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.Y.capRulerOffset_=function(t){var E=this.seekableStart-this.pixelsToTime_(16),p=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(E,t),p)};
_.Y.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.Y.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.Y.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.Y.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.Y.handleWindowHandleDrag_=function(t){var E=t.clientX-this.dragMouseLastX_;this.dragMouseLastX_=t.clientX;t=this.pixelsToTime_(E);if(this.draggingLeft_){var p=this.start+t;var U=this.end}else this.draggingRight_&&(p=this.start,U=this.end+t);_.kT(this.hostElement,"set-range",{start:p,end:U,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.Y.onVideoProgress_=function(t){this.disabled||(t=this.timeToPixels_(t-this.rulerShift_,this.tickSpacing_),_.ZN(this.hostElement).querySelector("#playhead").style.transform="translateX("+t+")")};
_.Y.onClipCreationDisable_=function(){this.endDrag_()};
_.Y.timeToPixels_=function(t,E,p){t*=E;return p===void 0||p?t+"px":t};
_.Y.pixelsToTime_=function(t){return t/this.tickSpacing_};
_.Y.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.Y.centerRuler_=function(t,E,p){this.set("rulerShift_",this.capRulerOffset_(t+(E-t)/2-p/2))};
_.Y.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.Y.updateLoopRange_=function(t,E,p,U,x,A,m){t&&(E&&U&&!p?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(t.pauseVideo(),t.seekTo(x,!1,void 0,void 0,50)):this.draggingRight_?(t.pauseVideo(),t.seekTo(A-.1,!1,void 0,void 0,50)):(m!==void 0?t.seekTo(m,!0,void 0,void 0,50):(E=t.getCurrentTime(),E<x||E>A?t.seekTo(x,!0,void 0,void 0,50):t.seekTo(E,!0,void 0,void 0,50)),t.playVideo()),t.setLoopRange({startTimeMs:x*1E3,endTimeMs:A*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(t.getCurrentTime())):
this.activeLoopRange_&&(t.setLoopRange(null),this.activeLoopRange_=!1))};
_.Y.updateHandles_=function(){_.ZN(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.ZN(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.Y.updateRuler_=function(){var t=this.end,E=this.start,p=this.draggableStartLimit_(),U=this.draggableEndLimit_();(E<p-.001||t>U+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.Y.computeDurationLabel_=function(t,E){return t?t.replace("$clip_length",parseFloat(E).toFixed(1)):""};
_.Y.computeDuration_=function(t,E){return this.isValidTime_(t)&&this.isValidTime_(E)&&t<E?E-t:0};
_.Y.isValidTime_=function(t){return isNaN(parseFloat(t))||t<0?!1:this.player_?t>=this.seekableStart&&t<=this.seekableEnd:!0};
_.Y.computeWindowSizeSec_=function(t,E,p){return Math.min((t||12E4)/1E3,p-E)};
_.Y.computeTickSpacing_=function(t,E){return E?E/t:1};
_.Y.onDragStateChanged_=function(){_.kT(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.Y.centerRangeOnTime_=function(t){var E=this.duration;t=OyK(t-E/2,E,this.seekableStart,this.seekableEnd);_.kT(this.hostElement,"set-fixed-length-range",{start:t.start,duration:t.end-t.start})};
_.Y.nearlyLessThan_=function(t,E,p){return t+(p===void 0?1E-6:p)<E};
_.Y.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var t=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(t,this.start)||this.nearlyLessThan_(this.end,t))&&this.centerRangeOnTime_(t)}};
_.Y.onStateChange_=function(t){this.visible&&!this.disabled&&t==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.Y.computeDragState_=function(t,E,p,U){return t?"left":E?"right":p?"ruler":U?"window":"none"};
_.Y.logClick=function(){var t=_.yL(),E=_.vV();t&&E&&this.scrubberVe_&&(_.r("combine_ve_grafts")?_.Tw(_.Pu(),this.scrubberVe_,E):_.Yh(t,E,this.scrubberVe_),_.qc(t,this.scrubberVe_))};
so.prototype.onDragStateChanged_=so.prototype.onDragStateChanged_;so.prototype.updateRuler_=so.prototype.updateRuler_;so.prototype.updateHandles_=so.prototype.updateHandles_;so.prototype.onUpdateLoopRange=so.prototype.onUpdateLoopRange;so.prototype.onInitializedChanged_=so.prototype.onInitializedChanged_;so.prototype.onVisibleChanged_=so.prototype.onVisibleChanged_;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],so.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.g(_.JT.YtPlayerListenerBehavior),_.P("design:type",Object)],so.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],so.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],so.prototype,"start",void 0);_.N([_.e(),_.P("design:type",Object)],so.prototype,"end",void 0);_.N([_.e({computed:"computeDuration_(start, end)"}),_.P("design:type",Number)],so.prototype,"duration",void 0);
_.N([_.e(),_.P("design:type",String)],so.prototype,"lengthTemplate",void 0);_.N([_.e({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.P("design:type",String)],so.prototype,"durationLabel",void 0);_.N([_.e(),_.P("design:type",Object)],so.prototype,"visible",void 0);_.N([_.e(),_.P("design:type",Object)],so.prototype,"player_",void 0);_.N([_.e(),_.P("design:type",Object)],so.prototype,"draggingLeft_",void 0);_.N([_.e(),_.P("design:type",Object)],so.prototype,"draggingRight_",void 0);
_.N([_.e(),_.P("design:type",Object)],so.prototype,"draggingRuler_",void 0);_.N([_.e({value:!1}),_.P("design:type",Object)],so.prototype,"draggingWindow_",void 0);_.N([_.e({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.P("design:type",Number)],so.prototype,"tickSpacing_",void 0);_.N([_.e(),_.P("design:type",Object)],so.prototype,"seekableStart",void 0);_.N([_.e(),_.P("design:type",Object)],so.prototype,"seekableEnd",void 0);
_.N([_.e(),_.P("design:type",Number)],so.prototype,"windowSizeMs",void 0);_.N([_.e({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.P("design:type",Number)],so.prototype,"windowSizeSec_",void 0);_.N([_.e(),_.P("design:type",Object)],so.prototype,"rulerWidth_",void 0);_.N([_.e(),_.P("design:type",Object)],so.prototype,"rulerShift_",void 0);_.N([_.e(),_.P("design:type",Object)],so.prototype,"windowSlideSpeed",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],so.prototype,"disabled",void 0);_.N([_.e(),_.P("design:type",Object)],so.prototype,"initialized",void 0);_.N([_.e(),_.P("design:type",Object)],so.prototype,"durationAccessibilityLabel",void 0);_.N([_.e({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.P("design:type",String)],so.prototype,"dragState",void 0);
_.N([_.GI("visible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],so.prototype,"onVisibleChanged_",null);_.N([_.GI("initialized"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],so.prototype,"onInitializedChanged_",null);_.N([_.GI("player_","visible","disabled","initialized","start","end"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],so.prototype,"onUpdateLoopRange",null);
_.N([_.GI("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],so.prototype,"updateHandles_",null);_.N([_.GI("start","end"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],so.prototype,"updateRuler_",null);
_.N([_.GI("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],so.prototype,"onDragStateChanged_",null);_.N([_.p4({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],so);
_.G(so,"yt-clip-creation-scrubber-view",function(){if(bxo===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;m8l===void 0&&(m8l=document.createElement("template"));var U=m8l;p.call(E,U.content.cloneNode(!0),t.content.firstChild);bxo=t}t=bxo;return t},{mode:2});var LA=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};t.startHighlightTimeout=0;t.endHighlightTimeout=0;return t};
_.u(LA,_.z);_.Y=LA.prototype;_.Y.attached=function(){var t=this;this.startInput.addEventListener("input",function(E){return t.handleStartInput_(E)});
this.endInput.addEventListener("input",function(E){return t.handleEndInput_(E)});
this.startInput.addEventListener("focusout",function(E){return t.handleStartBlur_(E)});
this.endInput.addEventListener("focusout",function(E){return t.handleEndBlur_(E)})};
_.Y.setPlayer=function(t){this.set("player_",t)};
_.Y.onSetFixedLengthRange_=function(t){var E=t.detail;t=E.start;var p=E.duration,U=E.startLimit;E=E.endLimit;U||(U=this.seekableStart_);E||(E=this.seekableEnd_);t=OyK(t,p,U,E);this.start=t.start;this.end=t.end};
_.Y.onSetRange_=function(t){var E=t.detail;t=E.start;var p=E.end,U=E.startLimit;E=E.endLimit;U||(U=this.seekableStart_);E||(E=this.seekableEnd_);if(t=XsL(t,p,U,E,this.minLengthSec,this.maxLengthSec))this.start=t.start,this.end=t.end};
_.Y.updateInputs_=function(){var t=this.end,E=this.start;this.startInput.focused||(this.startInput.value=bM(E,!0));this.endInput.focused||(this.endInput.value=bM(t,!0))};
_.Y.handleStartInput_=function(t){t=Zyo(t.target.value);if(t===null)this.set("startValid",!1);else{var E=this.end,p=XsL(t,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);p?(this.set("endWillUpdate",p.end!==E),this.set("startValid",p.start===t)):this.set("startValid",!1)}};
_.Y.handleEndInput_=function(t){t=Zyo(t.target.value);if(t===null)this.set("endValid",!1);else{var E=this.start,p=hUL(this.start,t,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);p?(this.set("startWillUpdate",p.start!==E),this.set("endValid",p.end===t)):this.set("endValid",!1)}};
_.Y.handleStartBlur_=function(t){t=Zyo(t.target.value);t===null?this.startInput.value=bM(this.start,!0):this.forceUpdateInputs_(XsL(t,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.Y.handleEndBlur_=function(t){t=Zyo(t.target.value);t===null?this.endInput.value=bM(this.end,!0):this.forceUpdateInputs_(hUL(this.start,t,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.Y.forceUpdateInputs_=function(t){t&&(this.start=t.start,this.end=t.end);this.startInput.value=bM(this.start,!0);this.endInput.value=bM(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.Y.initializeClipRange_=function(){var t=this.seekableEnd_,E=this.seekableStart_,p=this.visible_,U=this.player_;if(!U||!p||E===null||!t)this.set("initialized",!1);else if(!this.initialized){var x=U.getCurrentTime(),A=this.getDefaultLengthSec_();p=U.getVideoData();var m=U.getPlayerState()==1,b=p.isLive;A=Math.min(A,t-E);x=Math.max(0,x);t=b?hUL(x-A,x,E,t,this.minLengthSec,this.maxLengthSec):m?OyK(x-A/2,A,E,t):OyK(x,A,E,t);this.start=t.start;this.end=t.end;this.set("initialized",!0);p.isLive&&U.seekTo(t.start);
this.startInput.value=bM(this.start,!0);this.endInput.value=bM(this.end,!0)}};
_.Y.onStartChanged_=function(){var t=this;_.kT(this.hostElement,"start-changed",{start:this.start});var E;isNaN((E=this.oldStart)!=null?E:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){t.set("highlightStart",!1);t.startHighlightTimeout=0;t.oldStart=t.start},3E3))};
_.Y.onEndChanged_=function(){var t=this;_.kT(this.hostElement,"end-changed",{end:this.end});var E;isNaN((E=this.oldEnd)!=null?E:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){t.set("highlightEnd",!1);t.endHighlightTimeout=0;t.oldEnd=t.end},3E3))};
_.Y.onVisibilityChangedAction_=function(t){var E=this;this.set("visible_",t.visible);this.visible_&&!this.player_&&(t=_.k1())&&t.getPlayerPromise().then(function(p){E.setPlayer(p)})};
_.Y.computeMinLengthSec_=function(t){return t/1E3||5};
_.Y.computeMaxLengthSec_=function(t){return t/1E3||60};
_.Y.computeDefaultLengthSec_=function(t){return t/1E3};
_.Y.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.Y.computeSeekableStart_=function(t,E){return t&&E?t.getProgressState(1).seekableStart:0};
_.Y.computeSeekableEnd_=function(t,E){return t&&E?t.getProgressState(1).seekableEnd:0};
_.Y.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.Y.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.Y.onDragState_=function(t){this.set("highlightStart",t.detail.startChanging);this.set("highlightEnd",t.detail.endChanging)};
LA.prototype.onDragState_=LA.prototype.onDragState_;LA.prototype.onEndChanged_=LA.prototype.onEndChanged_;LA.prototype.onStartChanged_=LA.prototype.onStartChanged_;LA.prototype.initializeClipRange_=LA.prototype.initializeClipRange_;LA.prototype.updateInputs_=LA.prototype.updateInputs_;LA.prototype.onSetRange_=LA.prototype.onSetRange_;LA.prototype.onSetFixedLengthRange_=LA.prototype.onSetFixedLengthRange_;
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],LA.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],LA.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],LA.prototype,"data",void 0);_.N([_.e({value:0}),_.P("design:type",Number)],LA.prototype,"start",void 0);_.N([_.e({value:!0}),_.P("design:type",Boolean)],LA.prototype,"startValid",void 0);
_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],LA.prototype,"startWillUpdate",void 0);_.N([_.e({value:30}),_.P("design:type",Number)],LA.prototype,"end",void 0);_.N([_.e({value:!0}),_.P("design:type",Boolean)],LA.prototype,"endValid",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],LA.prototype,"endWillUpdate",void 0);_.N([_.e({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.P("design:type",Number)],LA.prototype,"minLengthSec",void 0);
_.N([_.e({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.P("design:type",Number)],LA.prototype,"maxLengthSec",void 0);_.N([_.e({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.P("design:type",Number)],LA.prototype,"defaultLengthSec",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],LA.prototype,"visible_",void 0);_.N([_.e(),_.P("design:type",Object)],LA.prototype,"player_",void 0);
_.N([_.e({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.P("design:type",Number)],LA.prototype,"seekableStart_",void 0);_.N([_.e({computed:"computeSeekableEnd_(player_, visible_)"}),_.P("design:type",Number)],LA.prototype,"seekableEnd_",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],LA.prototype,"initialized",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],LA.prototype,"disabled",void 0);
_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],LA.prototype,"highlightStart",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],LA.prototype,"highlightEnd",void 0);_.N([_.Nl("#start"),_.P("design:type",HTMLInputElement)],LA.prototype,"startInput",void 0);_.N([_.Nl("#end"),_.P("design:type",HTMLInputElement)],LA.prototype,"endInput",void 0);
_.N([_.lc("set-fixed-length-range"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],LA.prototype,"onSetFixedLengthRange_",null);_.N([_.lc("set-range"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],LA.prototype,"onSetRange_",null);_.N([_.GI("start","end"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],LA.prototype,"updateInputs_",null);
_.N([_.GI("player_","visible_","seekableStart_","seekableEnd_"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],LA.prototype,"initializeClipRange_",null);_.N([_.GI("start"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],LA.prototype,"onStartChanged_",null);_.N([_.GI("end"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],LA.prototype,"onEndChanged_",null);
_.N([_.lc("clips-drag-state"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],LA.prototype,"onDragState_",null);_.N([_.p4({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],LA);
_.G(LA,"yt-clip-creation-scrubber-renderer",function(){if(Y6e===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;AV5===void 0&&(AV5=document.createElement("template"));var U=AV5;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Y6e=t}t=Y6e;return t},{mode:2});var Po=function(){var t=_.z.apply(this,arguments)||this;t.player_=null;t.JSC$20577_playerEvents=new Map;t.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return t};
_.u(Po,_.z);_.Y=Po.prototype;_.Y.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"}}}};
_.Y.created=function(){this.JSC$20577_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$20577_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$20577_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$20577_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.Y.detached=function(){this.setPlayer(null)};
_.Y.onVisibilityChangedAction_=function(t){var E=this,p;if((p=this.data)==null?0:p.externalVideoId){var U;this.videoId=(U=this.data)==null?void 0:U.externalVideoId}this.getPlayer().then(function(x){if(t.visible)E.returnTime=x.getCurrentTime(),E.isAtLiveHead=x.getProgressState().isAtLiveHead;else{var A=E.returnTime;E.isAtLiveHead&&(A=Number.POSITIVE_INFINITY);x.seekTo(A,void 0,void 0,void 0,51)}})};
_.Y.getPlayer=function(){var t=this;if(!this.player_){var E=_.k1();if(E)return E.getPlayerPromise().then(function(p){t.setPlayer(p);return p})}return Promise.resolve(this.player_)};
_.Y.setPlayer=function(t){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20577_playerEvents);if(t){this.player_=t;var E;((E=this.data)==null?0:E.externalVideoId)||this.set("videoId",t.getVideoData().video_id||"");var p;(t==null?void 0:(p=t.getPresentingPlayerType)==null?void 0:p.call(t))===2&&(this.set("isAdPlaying",!0),_.du(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(t,this.JSC$20577_playerEvents)}};
_.Y.ready=function(){_.ZN(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.Y.onTitleChanged_=function(t){this.set("titleValue",t.detail.title)};
_.Y.onStartChanged_=function(t){this.set("start",t.detail.start)};
_.Y.onEndChanged_=function(t){this.set("end",t.detail.end)};
_.Y.onTitleValidChanged_=function(t){this.set("titleValid",t.detail.valid)};
_.Y.onStartValidChanged_=function(t){this.set("startValid",t.detail.valid)};
_.Y.onEndValidChanged_=function(t){this.set("endValid",t.detail.valid)};
_.Y.onVideoDataChange_=function(){var t;if((t=this.data)==null||!t.externalVideoId){var E;this.set("videoId",((E=this.player_)==null?void 0:E.getVideoData().video_id)||"")}};
_.Y.computeFormValid_=function(t,E,p,U){return!!(t&&E&&p&&U)};
_.Y.computeCancelButton_=function(t,E,p){return t&&_.k(t,_.Ry)?{buttonRenderer:Object.assign({},_.k(t,_.Ry),{isDisabled:E||p})}:null};
_.Y.computeSubmitButton_=function(t,E,p){return t&&_.k(t,_.Ry)?{buttonRenderer:Object.assign({},_.k(t,_.Ry),{command:void 0,isDisabled:!this.formValid||E||p})}:null};
_.Y.computeSubmitCommand_=function(t){return t||null};
_.Y.onSubmit_=function(t){var E=this;t.stopPropagation();t.preventDefault();this.submitCommand_&&(t={},t.comment_text=this.titleValue,t.clip_external_video_id=this.videoId,t.clip_offset_ms=parseInt(this.start*1E3,10),t.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.JZ(this.hostElement,[this.submitCommand_,t]).then(function(){E.set("isLoading_",!1)},function(){E.set("isLoading_",!1)}))};
_.Y.playerAdStartHandler_=function(){_.du(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.Y.playerAdEndHandler_=function(){_.du(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.Y.onVideoProgress_=function(){var t=this;this.getPlayer().then(function(E){var p,U=(E==null?void 0:(p=E.getPresentingPlayerType)==null?void 0:p.call(E))===2;t.isAdPlaying!==U&&(U?t.playerAdStartHandler_():t.playerAdEndHandler_())})};
Po.prototype.onEndValidChanged_=Po.prototype.onEndValidChanged_;Po.prototype.onStartValidChanged_=Po.prototype.onStartValidChanged_;Po.prototype.onTitleValidChanged_=Po.prototype.onTitleValidChanged_;Po.prototype.onEndChanged_=Po.prototype.onEndChanged_;Po.prototype.onStartChanged_=Po.prototype.onStartChanged_;Po.prototype.onTitleChanged_=Po.prototype.onTitleChanged_;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Po.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.g(_.JT.YtPlayerListenerBehavior),_.P("design:type",Object)],Po.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Po.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Po.prototype,"data",void 0);_.N([_.e({value:""}),_.P("design:type",String)],Po.prototype,"titleValue",void 0);
_.N([_.e({value:!1}),_.P("design:type",Boolean)],Po.prototype,"titleValid",void 0);_.N([_.e({value:0}),_.P("design:type",Number)],Po.prototype,"start",void 0);_.N([_.e({value:!0}),_.P("design:type",Boolean)],Po.prototype,"startValid",void 0);_.N([_.e({value:0}),_.P("design:type",Number)],Po.prototype,"end",void 0);_.N([_.e({value:!0}),_.P("design:type",Boolean)],Po.prototype,"endValid",void 0);_.N([_.e({value:""}),_.P("design:type",String)],Po.prototype,"videoId",void 0);
_.N([_.e({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.P("design:type",Boolean)],Po.prototype,"formValid",void 0);_.N([_.e({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.P("design:type",Object)],Po.prototype,"submitButton_",void 0);_.N([_.e({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.P("design:type",Object)],Po.prototype,"submitCommand_",void 0);
_.N([_.e({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.P("design:type",Object)],Po.prototype,"cancelButton_",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],Po.prototype,"isLoading_",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],Po.prototype,"isAdPlaying",void 0);_.N([_.e({value:0}),_.P("design:type",Number)],Po.prototype,"returnTime",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],Po.prototype,"isAtLiveHead",void 0);
_.N([_.lc("title-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Po.prototype,"onTitleChanged_",null);_.N([_.lc("start-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Po.prototype,"onStartChanged_",null);_.N([_.lc("end-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Po.prototype,"onEndChanged_",null);
_.N([_.lc("title-valid-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Po.prototype,"onTitleValidChanged_",null);_.N([_.lc("start-valid-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Po.prototype,"onStartValidChanged_",null);_.N([_.lc("end-valid-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Po.prototype,"onEndValidChanged_",null);
_.N([_.p4({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],Po);
_.G(Po,"yt-clip-creation-renderer",function(){if(x8J===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;U8K===void 0&&(U8K=document.createElement("template"));var U=U8K;p.call(E,U.content.cloneNode(!0),t.content.firstChild);x8J=t}t=x8J;return t},{mode:2});var Ty=function(){return _.z.apply(this,arguments)||this};
_.u(Ty,_.z);Ty.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"}}}};
Ty.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(t){return t.hasOwnProperty("clipCreationRenderer")})&&_.du(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
Ty.prototype.onPanelContentVisibleChanged=Ty.prototype.onPanelContentVisibleChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Ty.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ty.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.CS.YtVisibilityBehavior),_.P("design:type",Object)],Ty.prototype,"ytVisibilityBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],Ty.prototype,"ytdReduxBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],Ty.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],Ty.prototype,"panelContentVisible",void 0);_.N([_.GI("panelContentVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ty.prototype,"onPanelContentVisibleChanged",null);_.N([_.Ul({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],Ty);
_.G(Ty,"ytd-clip-section-renderer",function(){if(cM9!==void 0)return cM9;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return cM9=t},{mode:1});var ixt;var q68;var Hxt;var fnJ=function(){return _.z.apply(this,arguments)||this};
_.u(fnJ,_.z);_.N([_.e(),_.P("design:type",Object)],fnJ.prototype,"data",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],fnJ.prototype,"ytRendererBehavior",void 0);_.N([_.Ul({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],fnJ);
_.G(fnJ,"ytd-hashtag-grid-tile-renderer",function(){if(Hxt!==void 0)return Hxt;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Hxt=t},{mode:1});var oH=function(){return _.z.apply(this,arguments)||this};
_.u(oH,_.z);oH.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
oH.prototype.updateRichGridTrendingHashtagsVisibility=function(){var t,E;if(((t=this.data)==null||!t.isExpanded)&&(E=this.data)!=null&&E.tiles){t=this.data.tiles.length;E=t>this.richGridItemsPerRow?this.richGridItemsPerRow+1:t;var p=Math.ceil(t/E);this.fullyVisibleRows=t%E===1&&p===2?1:Math.min(p,2);this.isShowMoreVisible=this.fullyVisibleRows<p}};
oH.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
oH.prototype.updateRichGridTrendingHashtagsVisibility=oH.prototype.updateRichGridTrendingHashtagsVisibility;_.N([_.e(),_.P("design:type",Object)],oH.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Number)],oH.prototype,"fullyVisibleRows",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],oH.prototype,"isShowMoreVisible",void 0);_.N([_.e({selector:_.tf,value:0}),_.P("design:type",Number)],oH.prototype,"richGridItemsPerRow",void 0);
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],oH.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],oH.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],oH.prototype,"ytdReduxBehavior",void 0);_.N([_.GI("data","richGridItemsPerRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oH.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.N([_.Ul({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],oH);
_.G(oH,"ytd-hashtag-grid-shelf-renderer",function(){if(q68!==void 0)return q68;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return q68=t},{mode:1});var B_t;var wFK;var Rld=0,Wo=function(){var t=_.z.call(this)||this;t.selected=!1;t.isOverlay=!1;t.inputId="toggle-option-"+Rld;Rld++;return t};
_.u(Wo,_.z);Wo.prototype.onTap=function(){_.kT(this.hostElement,"ytd-toggle-option-clicked")};
_.N([_.e(),_.P("design:type",String)],Wo.prototype,"label",void 0);_.N([_.e(),_.P("design:type",String)],Wo.prototype,"inputId",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Wo.prototype,"selected",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Wo.prototype,"isOverlay",void 0);_.N([_.Ul({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.P("design:paramtypes",[])],Wo);
_.G(Wo,"ytd-toggle-option-renderer",function(){if(wFK!==void 0)return wFK;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return wFK=t},{mode:1});var $K=function(){var t=_.z.apply(this,arguments)||this;t.isToggleOption=!1;t.isOverlay=!1;return t};
_.u($K,_.z);$K.prototype.onTap=function(t){t.preventDefault();this.data&&(t=!this.data.checked,this.set("data.checked",t),_.kT(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:t,value:this.data.value}))};
_.aE.Object.defineProperties($K.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
$K.prototype.onTap=$K.prototype.onTap;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],$K.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],$K.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],$K.prototype,"isToggleOption",void 0);_.N([_.e(),_.P("design:type",Object)],$K.prototype,"isOverlay",void 0);_.N([_.Z("data.responseText"),_.P("design:type",String),_.P("design:paramtypes",[])],$K.prototype,"label",null);
_.N([_.lc("ytd-toggle-option-clicked"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],$K.prototype,"onTap",null);_.N([_.Ul({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],$K);
_.G($K,"ytd-checkbox-survey-option-renderer",function(){if(B_t!==void 0)return B_t;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return B_t=t},{mode:1});var VOt;var QZ7;var KA=function(){var t=_.z.apply(this,arguments)||this;t.checked=!1;t.isToggleOption=!1;return t};
_.u(KA,_.z);KA.prototype.onTap=function(){this.data&&(this.checked?_.du(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.du(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
KA.prototype.onTap=KA.prototype.onTap;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],KA.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],KA.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],KA.prototype,"checked",void 0);_.N([_.e(),_.P("design:type",Object)],KA.prototype,"isToggleOption",void 0);_.N([_.lc("ytd-toggle-option-clicked"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],KA.prototype,"onTap",null);
_.N([_.Ul({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],KA);
_.G(KA,"ytd-radio-button-survey-option-renderer",function(){if(QZ7!==void 0)return QZ7;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return QZ7=t},{mode:1});var vo=function(){var t=_.z.apply(this,arguments)||this;t.disableAnimation=!1;t.isToggleOption=!0;t.followUpSurveyCommand=null;t.selectedRatingEndpoint=null;t.isSlimlineSurveyFollowUp=!1;t.isShortsStyle=!1;t.styleOverrideAttribute=!0;t.isDarkMode=!1;t.isSubmitted=!1;t.roundedContainer=!0;t.improveShortsResponseRate=_.r("web_improve_shorts_response_rate");t.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 t};
_.u(vo,_.z);_.Y=vo.prototype;
_.Y.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"}}}}};
_.Y.attached=function(){var t=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(p){var U;if((U=p[0])!=null&&U.isIntersecting){_.sl().reportShown(t.hostElement);var x;(x=t.intersectionObserver)==null||x.unobserve(t.hostElement)}},{rootMargin:"0px",
threshold:.6});var E;(E=this.intersectionObserver)==null||E.observe(this.hostElement)};
_.Y.onDarkModeToggledAction=function(t){this.isDarkMode=t};
_.Y.dataChanged=function(){var t;if(((t=this.data)==null?void 0:t.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var E;((E=this.data)==null?void 0:E.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var p,U,x,A;this.darkColorPalette=(p=this.data)==null?void 0:(U=p.inlineContent)==null?void 0:(x=U.compactVideoRenderer)==null?void 0:(A=x.thumbnail)==null?
void 0:A.darkColorPalette;var m,b,f,B;this.lightColorPalette=(m=this.data)==null?void 0:(b=m.inlineContent)==null?void 0:(f=b.compactVideoRenderer)==null?void 0:(B=f.thumbnail)==null?void 0:B.lightColorPalette;var R,V;if(((R=this.data)==null?0:(V=R.inlineContent)==null?0:V.compactVideoRenderer)&&this.isShortsStyle){var Q,C,d,I;t=_.uz((Q=this.data)==null?void 0:(C=Q.inlineContent)==null?void 0:(d=C.compactVideoRenderer)==null?void 0:(I=d.thumbnail)==null?void 0:I.thumbnails);_.eU(this.hostElement,
{"--yt-background-url":"url("+t+")"})}};
_.Y.handleRequestCompletion=function(){this.hostElement.hidden&&_.kT(this.hostElement,"yt-dismissible-item-dismissed")};
_.Y.onPopupClosed=function(t){var E;((E=t.detail)==null?void 0:E.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.du(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.Y.handleInlineSurveyRatingSelect=function(t,E){var p=this;this.selectedRatingEndpoint=t;this.followUpSurveyCommand=E;this.expanded=!!t;this.getOptionRenderers().forEach(function(U,x){p.notifyPath("followUpSurveyCommand.followUpOptions."+x+".checkboxSurveyOptionRenderer.checked");p.set("followUpSurveyCommand.followUpOptions."+x+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),t=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.du(this.hostElement,"yt-reel-non-video-content-dismissal-command",[t]))};
_.Y.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.du(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var t,E=(t=this.data)==null?void 0:t.dismissalEndpoint;E&&this.ytComponentBehavior.resolveCommand(E)}};
_.Y.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.du(this.hostElement,"yt-close-popup-action"))};
_.Y.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var t=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{t=this.getOptionRenderers().filter(function(U){return U.checked});
if(t.length===0)return;t=t.map(function(U){return U.responseEndpoint})}var E=[];
t.forEach(function(U,x){x!==0&&(U=_.k(U,_.xZ))&&U.feedbackToken&&E.push(U.feedbackToken)});
if(t=t[0]){var p={};E.length>0&&(p.extra_feedback_tokens=E);this.ytComponentBehavior.resolveCommand(t,{form:p})}}};
_.Y.getOptionRenderers=function(){var t=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(E){t.isSingleSelect=!!_.k(E,Lkt);return t.isSingleSelect?_.k(E,Lkt):_.k(E,Po7)}):[]};
_.Y.handleInlineSurveyOptionSelect=function(t){t=this.optionSelector.indexOf(t);t!==-1&&this.optionSelector.selectIndex(t)};
_.Y.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.Y.maybeGetBackgroundColor=function(t){return this.isDarkMode?t.section2Color:t.section3Color};
_.Y.colorPaletteChanged=function(){var t=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;t=t&&this.maybeGetBackgroundColor(t);this.dismissibleEl.style.backgroundColor=!t||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.SL(t)};
_.aE.Object.defineProperties(vo.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
vo.prototype.colorPaletteChanged=vo.prototype.colorPaletteChanged;vo.prototype.onPopupClosed=vo.prototype.onPopupClosed;vo.prototype.handleRequestCompletion=vo.prototype.handleRequestCompletion;vo.prototype.dataChanged=vo.prototype.dataChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],vo.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],vo.prototype,"actionHandlerBehavior",void 0);
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],vo.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],vo.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],vo.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.Nl("#follow-up-survey-options"),_.P("design:type",Object)],vo.prototype,"optionSelector",void 0);_.N([_.e(),_.P("design:type",Object)],vo.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",Object)],vo.prototype,"disableAnimation",void 0);_.N([_.e(),_.P("design:type",Object)],vo.prototype,"isToggleOption",void 0);_.N([_.e(),_.P("design:type",Object)],vo.prototype,"followUpSurveyCommand",void 0);_.N([_.e(),_.P("design:type",Object)],vo.prototype,"selectedRatingEndpoint",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],vo.prototype,"expanded",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],vo.prototype,"isSlimlineSurveyFollowUp",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],vo.prototype,"isShortsStyle",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],vo.prototype,"styleOverrideAttribute",void 0);_.N([_.e(),_.P("design:type",Boolean)],vo.prototype,"isSingleSelect",void 0);_.N([_.e(),_.P("design:type",Object)],vo.prototype,"isDarkMode",void 0);
_.N([_.e(),_.P("design:type",Object)],vo.prototype,"lightColorPalette",void 0);_.N([_.e(),_.P("design:type",Object)],vo.prototype,"darkColorPalette",void 0);_.N([_.Z("selectedRatingEndpoint","isShortsStyle"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],vo.prototype,"isOptionSelected",null);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],vo.prototype,"roundedContainer",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],vo.prototype,"improveShortsResponseRate",void 0);_.N([_.Nl("#dismissible"),_.P("design:type",HTMLElement)],vo.prototype,"dismissibleEl",void 0);_.N([_.Nl("#dismiss-button yt-icon-button"),_.P("design:type",HTMLElement)],vo.prototype,"dismissButtonEl",void 0);_.N([_.Nl("#inline-survey-header yt-icon-button"),_.P("design:type",HTMLElement)],vo.prototype,"inlineHeaderDismissButtonEl",void 0);
_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vo.prototype,"dataChanged",null);_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vo.prototype,"handleRequestCompletion",null);_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],vo.prototype,"onPopupClosed",null);
_.N([_.GI("darkColorPalette","lightColorPalette","isDarkMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vo.prototype,"colorPaletteChanged",null);_.N([_.Ul({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],vo);
_.G(vo,"ytd-inline-survey-renderer",function(){if(VOt!==void 0)return VOt;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return VOt=t},{mode:1});var CX7;var jZJ;var ya=function(){var t=_.z.apply(this,arguments)||this;t.visibleVideos=[];t.hiddenVideos=[];t.modern=_.r("web_modern_buttons");t.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.u(ya,_.z);_.Y=ya.prototype;_.Y.attached=function(){var t=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",t);this.onDarkModeToggledAction(t)};
_.Y.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"}}}};
_.Y.dataChanged=function(){var t=this;this.requestElementsPerRow();var E,p;this.currentColorPalette=this.isDarkTheme?(E=this.data)==null?void 0:E.darkColorData:(p=this.data)==null?void 0:p.lightColorData;var U;if((U=this.currentColorPalette)==null?0:U.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.XE(this,function(){t.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.Y.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.Y.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.Y.computeIsFirstFeedItem=function(t){return t};
_.Y.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&this.set("isDarkTheme",t);this.data&&(this.currentColorPalette=t?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.Y.getCurrentLogo=function(t,E){if(t)return E?t.darkLogoImage:t.lightLogoImage};
_.Y.computeTitleStyle=function(t){var E;if((E=this.data)!=null&&E.title&&t&&t.textPrimary!==void 0)return"color:"+_.SL(t.textPrimary)+";"};
_.Y.computeSubtitleStyle=function(t){var E;if((E=this.data)!=null&&E.subtitle&&t&&t.textSecondary!==void 0)return"color:"+_.SL(t.textSecondary)+";"};
_.Y.computeDismissIconStyle=function(t){if(this.data&&this.data.dismissButton&&t&&t.textPrimary!==void 0)return"--yt-button-color:"+_.SL(t.textPrimary)+";"};
_.Y.computeOverflowButtonStyle=function(t){if(this.data&&this.data.overflowButton&&t&&t.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.SL(t.textPrimary)+";--yt-spec-icon-active-other:"+_.SL(t.textPrimary)+";"};
_.Y.computeBackgroundStyle=function(t){if(t&&this.data){var E="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var p=_.uz((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);p&&(E+='background-image:url("'+p+'");')}t.backgroundColor!==void 0&&(E+="background-color:"+_.cL(t.backgroundColor)+";");return E}};
_.Y.computeButton=function(){var t,E=Object.assign({},_.k((t=this.data)==null?void 0:t.showMoreButton,_.Ry));if(this.modern&&E){E.style="STYLE_MONO_OUTLINE";var p;if(t=(p=this.currentColorPalette)==null?void 0:p.textPrimary)E.colorData={basicColorPaletteData:{foregroundTitleColor:t,borderColor:t}}}return E};
_.Y.shouldShowBottomButton=function(t,E){return!(t==null?0:t.header)&&!(t==null||!t.primaryButton)&&E<3};
_.Y.checkExpanded=function(t){this.isExpanded=t&&t.content?this.hiddenVideos.length===0:!0};
_.Y.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.Y.getLogoHeight=function(t){return this.logoWithPadding(t)?"26":"20"};
_.Y.getLogoImageId=function(t){return this.logoWithPadding(t)?"logo-image-with-padding":"logo-image"};
_.Y.computeHasSectionHeader=function(t){return!!t.header};
_.Y.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var t;if((t=this.data.primaryButton)==null?0:t.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 E;((E=this.data.dismissButton)==null?0:E.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var p,U;((p=this.data)==null?0:(U=p.primaryButton)==null?0:U.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.Y.setVisibleVideos=function(t){if(this.data&&this.data.content)if(this.data.content.length){var E=this.data.content.length;this.data.header?t?(this.visibleVideos=this.data.content.slice(0,Math.min(E,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(E,this.slimItemsPerRow),E)):(this.visibleVideos=this.data.content.slice(0,Math.min(E,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(E,this.elementsPerRow),E)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(E,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(E,this.elementsPerRow),E)):(this.visibleVideos=this.data.content.slice(0,Math.min(E,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(E,this.elementsPerRow-1),E))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.Y.setHasMovieRenderer=function(){var t;if((t=this.data)!=null&&t.content){var E;this.hasMovieRenderer=!!_.k((E=this.data)==null?void 0:E.content[0],_.zT0)}else this.hasMovieRenderer=!1};
_.Y.requestElementsPerRow=function(){_.kT(this.hostElement,"yt-request-elements-per-row")};
_.Y.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var t=_.M(this.hiddenMediaRenderers),E=t.next();!E.done;E=t.next())E.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(t=_.ZN(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&t.focus()}};
_.Y.updateTitleSpec=function(){var t;(t=this.data)!=null&&t.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.Y.logoWithPadding=function(t){var E,p,U;return(t=(E=this.getCurrentLogo(t,this.isDarkTheme))==null?void 0:(p=E.thumbnails)==null?void 0:(U=p[0])==null?void 0:U.height)&&t%31===0?!0:!1};
_.Y.onUpdateElementsPerRowAction=function(t,E,p){t&&this.elementsPerRow!==t&&(this.elementsPerRow=t);p&&this.slimItemsPerRow!==p&&(this.slimItemsPerRow=p)};
ya.prototype.slimItemsPerRowChanged=ya.prototype.slimItemsPerRowChanged;ya.prototype.elementsPerRowChanged=ya.prototype.elementsPerRowChanged;ya.prototype.dataChanged=ya.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],ya.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],ya.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],ya.prototype,"ytdDismissibleItemBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],ya.prototype,"actionHandlerBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],ya.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],ya.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],ya.prototype,"currentColorPalette",void 0);_.N([_.e(),_.P("design:type",Array)],ya.prototype,"visibleVideos",void 0);_.N([_.e(),_.P("design:type",Array)],ya.prototype,"hiddenVideos",void 0);
_.N([_.e(),_.P("design:type",Object)],ya.prototype,"primaryButton",void 0);_.N([_.e({reflectToAttribute:!0,value:3}),_.P("design:type",Number)],ya.prototype,"elementsPerRow",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],ya.prototype,"isDarkTheme",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],ya.prototype,"isExpanded",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],ya.prototype,"largeTitle",void 0);
_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],ya.prototype,"hasMovieRenderer",void 0);_.N([_.e(),_.P("design:type",Number)],ya.prototype,"slimItemsPerRow",void 0);_.N([_.e(),_.P("design:type",Boolean)],ya.prototype,"showLightVideoMetadata",void 0);_.N([_.e(),_.P("design:type",Boolean)],ya.prototype,"showDarkVideoMetadata",void 0);_.N([_.e(),_.P("design:type",Number)],ya.prototype,"videoMetadataColor",void 0);
_.N([_.e({reflectToAttribute:!0,selector:_.cA}),_.P("design:type",Boolean)],ya.prototype,"miniMode",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.P("design:type",Boolean)],ya.prototype,"isFirstFeedItem",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.P("design:type",Boolean)],ya.prototype,"hasSectionHeader",void 0);
_.N([_.e({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],ya.prototype,"roundedContainer",void 0);_.N([_.DN("#visible-video-container ytd-rich-grid-media"),_.P("design:type",Array)],ya.prototype,"visibleMediaRenderers",void 0);_.N([_.DN("#hidden-video-container ytd-rich-grid-media"),_.P("design:type",Array)],ya.prototype,"hiddenMediaRenderers",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],ya.prototype,"modern",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ya.prototype,"dataChanged",null);_.N([_.GI("elementsPerRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ya.prototype,"elementsPerRowChanged",null);_.N([_.GI("slimItemsPerRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ya.prototype,"slimItemsPerRowChanged",null);
_.N([_.Ul({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],ya);
_.G(ya,"ytd-brand-video-shelf-renderer",function(){if(jZJ!==void 0)return jZJ;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return jZJ=t},{mode:1});var rVC;var Sn=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.u(Sn,_.z);_.Y=Sn.prototype;_.Y.attached=function(){var t=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",t);this.onDarkModeToggledAction(t)};
_.Y.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"}}}};
_.Y.dataChanged=function(){this.requestElementsPerRow();var t,E;this.currentColorPalette=this.isDarkTheme?(t=this.data)==null?void 0:t.darkColorData:(E=this.data)==null?void 0:E.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.Y.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.Y.computeIsFirstFeedItem=function(t){return t};
_.Y.onDarkModeToggledAction=function(t){t!==this.isDarkTheme&&this.set("isDarkTheme",t);this.data&&(this.currentColorPalette=t?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(t),this.updateButtonPalette())};
_.Y.shouldShowThumbnailInMetadata=function(t){return t<=1};
_.Y.computeVideoMetadataColor=function(){if(this.data){var t;if((t=this.currentColorPalette)==null?0:t.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.Y.computeTitleStyle=function(t){var E;if((E=this.data)!=null&&E.title&&t&&t.textPrimary!==void 0)return"color:"+_.SL(t.textPrimary)+";"};
_.Y.computeSubtitleStyle=function(t){var E;if((E=this.data)!=null&&E.subtitle&&t&&t.textSecondary!==void 0)return"color:"+_.SL(t.textSecondary)+";"};
_.Y.computeOverflowButtonStyle=function(t){if(this.data&&this.data.overflowButton&&t.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.SL(t.textPrimary)+";--yt-spec-icon-active-other:"+_.SL(t.textPrimary)+";"};
_.Y.computeBackgroundStyle=function(t){if(t&&this.data){var E="";t.backgroundColor!==void 0&&(E+="background-color:"+_.cL(t.backgroundColor)+";");return E}};
_.Y.computeHasOverflowButton=function(t){return!!t.overflowButton};
_.Y.updateButtonPalette=function(){if(this.data){var t;if((t=this.data.primaryButton)==null?0:t.buttonRenderer){var E;if((E=this.currentColorPalette)==null?0:E.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var p;((p=this.currentColorPalette)==null?0:p.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)})}}};
_.Y.requestElementsPerRow=function(){_.kT(this.hostElement,"yt-request-elements-per-row")};
_.Y.updateTitleSpec=function(){var t;(t=this.data)!=null&&t.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")};
_.Y.onUpdateElementsPerRowAction=function(t){t&&this.elementsPerRow!==t&&(this.elementsPerRow=t)};
Sn.prototype.elementsPerRowChanged=Sn.prototype.elementsPerRowChanged;Sn.prototype.dataChanged=Sn.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Sn.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Sn.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],Sn.prototype,"ytdDismissibleItemBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Sn.prototype,"actionHandlerBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],Sn.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Sn.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Sn.prototype,"currentColorPalette",void 0);_.N([_.e(),_.P("design:type",Object)],Sn.prototype,"primaryButton",void 0);
_.N([_.e({reflectToAttribute:!0,value:3}),_.P("design:type",Number)],Sn.prototype,"elementsPerRow",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Sn.prototype,"isDarkTheme",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],Sn.prototype,"titleSize",void 0);_.N([_.e(),_.P("design:type",Number)],Sn.prototype,"videoMetadataColor",void 0);_.N([_.e({reflectToAttribute:!0,selector:_.cA}),_.P("design:type",Boolean)],Sn.prototype,"miniMode",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.P("design:type",Boolean)],Sn.prototype,"isFirstFeedItem",void 0);_.N([_.e({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],Sn.prototype,"roundedContainer",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.P("design:type",Boolean)],Sn.prototype,"hasOverflowButton",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Sn.prototype,"dataChanged",null);_.N([_.GI("elementsPerRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Sn.prototype,"elementsPerRowChanged",null);_.N([_.Ul({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],Sn);
_.G(Sn,"ytd-brand-video-singleton-renderer",function(){if(rVC!==void 0)return rVC;var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return rVC=t},{mode:_.hX("kevlar_poly_si_batch_j070")?1:2});var k8L;var d8d=_.l(function(t){var E=t.data;return _.H(_.Q9,{data:function(){return E().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(E().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var p=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":p=88;break a;default:p=88}return p},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return E().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Gh"),JVC=_.l(function(t){var E=t.metadataRow;
var p=t.delimiter;return _.H(_.yG,{each:function(){return E().textParts||[]},
keyBy:"INDEX"},function(U,x){return _.H(_.Oj,null,_.H(_.d8,{text:U,noWrap:!0,userInput:!0}),_.H(uiJ,{delimiter:p,max:function(){return E().textParts.length},
index:x}))})},"Hh"),uiJ=_.l(function(t){var E=t.delimiter;
var p=t.max;var U=t.index;return _.H(_.w,{cond:function(){return(E==null?void 0:E())&&p()-1>U()},
then:function(){return _.H("span",null,E)}})},"Ih"),Int=_.l(function(t){var E=t.data;
t={};return _.H("yt-profile-page-header-information-view-model",{class:_.X5("profilePageHeaderInformationViewModelHost",(t.profilePageHeaderInformationViewModelMobile=!1,t))},_.H(_.w,{cond:function(){return E().onTap},
then:function(){return _.H(_.zn,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.AJ(E().onTap)}},_.H(_.sY,{data:function(){return E().thumbnail}},{profilePageHeaderThumbnailViewModel:d8d}))},
else:function(){return _.H("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.H(_.sY,{data:function(){return E().thumbnail}},{profilePageHeaderThumbnailViewModel:d8d}))}}),_.H("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.H(_.w,{cond:function(){return E().onTap},
then:function(){return _.H(_.sY,{data:function(){return E().title}},{profilePageHeaderTitleViewModel:function(p){var U=p.data;
return _.H(_.zn,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.AJ(U().onTap)}},_.H(_.d8,{text:function(){return U().title}}))}})},
else:function(){return _.H(_.sY,{data:function(){return E().title}},{profilePageHeaderTitleViewModel:function(p){var U=p.data;
return _.H(_.d8,{text:function(){return U().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.H(_.sY,{data:function(){return E().metadata}},{profilePageHeaderMetadataViewModel:function(p){var U=p.data;
return _.H(_.w,{cond:function(){return U().metadataRows},
then:function(x){return _.H("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.H(_.yG,{each:x,keyBy:"INDEX"},function(A,m){return _.H(_.Oj,null,_.H(JVC,{metadataRow:A,delimiter:" \u2022 "}),_.H(uiJ,{delimiter:" \u2022 ",max:function(){return x().length},
index:m}))}))}})}})))},"Jh");
Int.idomCompat=!0;_.k2(Int,"yt-profile-page-header-information-view-model",{props:{data:_.uu}});var co=function(){return _.z.apply(this,arguments)||this};
_.u(co,_.z);co.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],co.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],co.prototype,"data",void 0);_.N([_.Ul({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],co);
_.G(co,"ytd-effect-pivot-header-view-model",function(){if(k8L!==void 0)return k8L;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return k8L=
t},{mode:1});var gHl;var tq=function(){return _.z.apply(this,arguments)||this};
_.u(tq,_.z);tq.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],tq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],tq.prototype,"data",void 0);_.N([_.Ul({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],tq);
_.G(tq,"ytd-source-pivot-header-renderer",function(){if(gHl!==void 0)return gHl;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return gHl=t},{mode:1});var ZxJ;var Ox5;var XFl;var ED=function(){var t=_.z.apply(this,arguments)||this;t.playing=!1;t.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.W8(t);t.active=!1;return t};
_.u(ED,_.z);_.Y=ED.prototype;_.Y.detached=function(){this.stop()};
_.Y.play=function(){var t=this,E,p,U,x,A;return _.q(function(m){if(m.nextAddress==1)return t.active=!0,E=t.get("data.inlinePlaybackEndpoint.watchEndpoint"),p=E.videoId||t.data.videoId,U=E.startTimeSeconds||0,x=E.playerParams||null,_.r("kevlar_player_update_killswitch")?m.yield(t.playerEl.update({args:{video_id:p,startSeconds:U,player_params:x}}),2):(t.playerEl.loadVideoWithPlayerVars({video_id:p,startSeconds:U,player_params:x,autoplay:!0}),m.jumpTo(2));if(m.nextAddress!=4)return m.yield(t.playerEl.getPlayerPromise(),
4);A=m.yieldResult;A.unloadModule("annotations_module");A.addEventListener("onStateChange",function(b){t.onPlayerStateChange(b)});
_.Do(m)})};
_.Y.onPlayerStateChange=function(t){if(this.active)switch(this.playing=t===1,t){case 1:_.kT(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.kT(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.Y.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.Y.resize=function(){var t=this,E;return _.q(function(p){if(p.nextAddress==1)return p.yield(t.playerEl.getPlayerPromise(),2);E=p.yieldResult;E.setSize(NaN,NaN);_.Do(p)})};
_.N([_.e(),_.P("design:type",Object)],ED.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],ED.prototype,"playing",void 0);_.N([_.e(),_.P("design:type",Object)],ED.prototype,"playerId",void 0);_.N([_.Nl("#player"),_.P("design:type",Object)],ED.prototype,"playerEl",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],ED);
_.G(ED,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(XFl!==void 0)return XFl;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return XFl=t},{mode:1});var hld;var anL;var p2=function(){var t=_.z.apply(this,arguments)||this;t.width=0;return t};
_.u(p2,_.z);_.Y=p2.prototype;_.Y.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.zI(this,this.onEnded));this.mp4El.addEventListener("error",_.zI(this,this.onError))};
_.Y.detached=function(){this.videoEl.removeEventListener("ended",_.zI(this,this.onEnded));this.mp4El.removeEventListener("error",_.zI(this,this.onError))};
_.Y.play=function(){var t=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var E=this.videoEl.play();E?E.then(function(){t.handleVideoStartPlaying()}).catch(function(){_.kT(t.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.kT(this.hostElement,"yt-video-thumbnail-not-playing")};
_.Y.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.Y.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.Y.dataChanged=function(){var t;if((t=this.data)==null?0:t.thumbnailPlaceholder)t=_.d4(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+t+")";this.stop();this.autoplay&&this.play()};
_.Y.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.Y.onEnded=function(){this.stop();_.kT(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.Y.onError=function(){_.kT(this.hostElement,"yt-video-thumbnail-error")};
_.Y.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.Y.getVideoThumbnail=function(t){if(t&&t.length)return t[0]};
p2.prototype.dataChanged=p2.prototype.dataChanged;_.N([_.e(),_.P("design:type",Object)],p2.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],p2.prototype,"animatePlaceholderOnEntrance",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],p2.prototype,"autoplay",void 0);_.N([_.e({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.P("design:type",Object)],p2.prototype,"videoThumbnail",void 0);
_.N([_.e(),_.P("design:type",Boolean)],p2.prototype,"loop",void 0);_.N([_.e(),_.P("design:type",Boolean)],p2.prototype,"isVideoPlaying",void 0);_.N([_.e(),_.P("design:type",Object)],p2.prototype,"width",void 0);_.N([_.Nl("#mp4"),_.P("design:type",HTMLElement)],p2.prototype,"mp4El",void 0);_.N([_.Nl("#placeholder"),_.P("design:type",HTMLElement)],p2.prototype,"placeholderEl",void 0);_.N([_.Nl("#video"),_.P("design:type",HTMLVideoElement)],p2.prototype,"videoEl",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],p2.prototype,"dataChanged",null);_.N([_.p4({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],p2);
_.G(p2,"yt-video-as-thumbnail-details",function(){if(anL===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;hld===void 0&&(hld=document.createElement("template"));var U=hld;p.call(E,U.content.cloneNode(!0),t.content.firstChild);anL=t}t=anL;return t},{mode:2});var UD=function(){var t=_.z.apply(this,arguments)||this;t.disableGridStateAware=!1;t.animationEnabled=_.r("enable_web_ketchup_hero_animation");t.transitioningOut=!1;t.narrow=!1;t.narrower=!1;t.isCarouselInFeed=!1;t.videoTimeoutJobId=0;t.panelTimeoutJobId=0;t.panelTimeoutJobStartMs=0;t.actionMap={"yt-window-resized":"onWindowResized"};return t};
_.u(UD,_.z);_.Y=UD.prototype;_.Y.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.Y.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var t;this.player&&((t=this.data)==null?0:t.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.Y.attached=function(){this.onWindowResized()};
_.Y.detached=function(){this.clearTimeouts()};
_.Y.onWindowResized=function(){this.updateSize()};
_.Y.computePanelLayout=function(t){return t&&t.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.Y.playVideo=function(){var t;this.video&&((t=this.data)==null?0:t.videoThumbnail)&&this.video.play();var E;this.player&&((E=this.data)==null?0:E.inlinePlaybackRenderer)&&this.player.play()};
_.Y.stopVideo=function(){var t;this.video&&((t=this.data)==null?0:t.videoThumbnail)&&this.video.stop();var E;this.player&&((E=this.data)==null?0:E.inlinePlaybackRenderer)&&this.player.stop()};
_.Y.transitionOut=function(){var t=this;this.transitioningOut=!0;return new Promise(function(E){t.player&&(t.player.playing=!1);var p=_.ZN(t.hostElement).querySelector("#action-button");if(p){var U=function(){p.removeEventListener("animationend",U);_.ir.cancelJob(x);E();t.transitioningOut=!1};
var x=_.E_(_.ir,U,1E3);p.addEventListener("animationend",U)}else E(),t.transitioningOut=!1})};
_.Y.computeMetadataOrder=function(t){return t&&t.metadataOrder&&t.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?t.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.Y.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.Y.computeAvatarSize=function(t){return t&&t.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.Y.onContentClick=function(t){if(!_.Qb(_.Vx(t),this.hostElement,["A".toString(),"BUTTON".toString()])){var E;if((E=this.data)==null?0:E.navigationEndpoint){var p;this.componentBehavior.resolveCommand((p=this.data)==null?void 0:p.navigationEndpoint)}}};
_.Y.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.Y.setBackgroundImage=function(t){if(t=this.getBackgroundImageUrl(t))_.ZN(this.hostElement).querySelector("#hero").style.backgroundImage="url("+t+")"};
_.Y.setScrimLayer=function(t){var E=this.getScrimLayerColorStops(t);t=((t==null?void 0:t.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(t=180);_.qO("HTML_DIR")==="rtl"&&(t=-t);E&&(_.ZN(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+t+"deg, "+E+")")};
_.Y.isNarrower=function(){return this.hostElement.clientWidth<UD.NARROW_VERSION_SIZE};
_.Y.getScrimLayerColorStops=function(){var t,E=(t=this.data)==null?void 0:t.scrimColorValues;if(!E)return null;if(E.length===1)return t=_.cL(E[0]),t+" 0%, "+t+" 100%";if(E.length===3){var p=[0,72,98];return E.map(function(U,x){return _.cL(U)+" "+p[x]+"%"}).join(",")}return null};
_.Y.getBackgroundImageUrl=function(t){return t&&t.largeFormFactorBackgroundThumbnail?_.d4((t.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||t.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.Y.onPlaying=function(){this.startVideoTimeout()};
_.Y.onEnded=function(){this.rotate()};
_.Y.startPanelTimeout=function(){var t=this;if(!this.panelTimeoutJobId){var E=this.get("data.minPanelDisplayDurationMs");E&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.E_(_.ir,function(){t.rotate()},E))}};
_.Y.startVideoTimeout=function(){var t=this;if(!this.videoTimeoutJobId){_.ir.cancelJob(this.panelTimeoutJobId);var E=Date.now()-this.panelTimeoutJobStartMs;E=Math.max(0,this.get("data.minPanelDisplayDurationMs")-E);E=Math.max(this.get("data.minVideoPlayDurationMs")||0,E);this.videoTimeoutJobId=_.E_(_.ir,function(){t.rotate()},E)}};
_.Y.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.ir.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.ir.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.Y.rotate=function(){this.clearTimeouts();_.kT(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.aE.Object.defineProperties(UD.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.ZN(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.ZN(this.hostElement).querySelector("#video")}}});
_.aE.Object.defineProperties(UD,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
UD.prototype.onEnded=UD.prototype.onEnded;UD.prototype.onPlaying=UD.prototype.onPlaying;UD.prototype.dataChanged=UD.prototype.dataChanged;_.N([_.g(_.Qo),_.P("design:type",Object)],UD.prototype,"ytdGridStateAwareBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],UD.prototype,"componentBehavior",void 0);_.N([_.g(_.jp.YtdGuideStateAwareBehavior),_.P("design:type",Object)],UD.prototype,"ytdGuideStateAwareBehavior",void 0);
_.N([_.g(_.Rb8),_.P("design:type",Object)],UD.prototype,"ytBooleanLogicBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],UD.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],UD.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],UD.prototype,"disableGridStateAware",void 0);_.N([_.e(),_.P("design:type",Object)],UD.prototype,"data",void 0);_.N([_.e({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.P("design:type",String)],UD.prototype,"panelLayout",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],UD.prototype,"animationEnabled",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],UD.prototype,"transitioningOut",void 0);
_.N([_.e({computed:"computeMetadataOrder(data)"}),_.P("design:type",Boolean)],UD.prototype,"metadataOrder",void 0);_.N([_.e({computed:"computeByline(data)"}),_.P("design:type",Object)],UD.prototype,"byline",void 0);_.N([_.e({computed:"computeAvatarSize(data)"}),_.P("design:type",Number)],UD.prototype,"avatarSize",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],UD.prototype,"narrow",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],UD.prototype,"narrower",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],UD.prototype,"layoutStyle",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],UD.prototype,"isCarouselInFeed",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],UD.prototype,"dataChanged",null);_.N([_.lc("yt-default-promo-panel-renderer-playing"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],UD.prototype,"onPlaying",null);
_.N([_.lc("yt-default-promo-panel-renderer-ended"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],UD.prototype,"onEnded",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],UD);
_.G(UD,"ytd-default-promo-panel-renderer",function(){if(Ox5!==void 0)return Ox5;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Ox5=t},{mode:1});_.vs("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var xU=function(){var t=_.z.apply(this,arguments)||this;t.narrower=!1;t.dotMenuVisible=!1;t.paginationThumbnailsVisible=!1;t.active=!0;t.disableGridStateAware=!1;t.actionMap={"yt-window-resized":"onWindowResized"};return t};
_.u(xU,_.z);_.Y=xU.prototype;_.Y.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]]"}}}}}};
_.Y.attached=function(){document.addEventListener("yt-page-type-changed",_.zI(this,this.onPageTypeChange));this.currentPageSubtype=_.A0_(location.pathname);this.onWindowResized()};
_.Y.detached=function(){this.jobId&&_.ir.cancelJob(this.jobId);this.updateSizeJobId&&_.ir.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.zI(this,this.onPageTypeChange))};
_.Y.onPageTypeChange=function(t){this.active=t.detail.newPageSubtype===this.currentPageSubtype};
_.Y.onWindowResized=function(){this.updateSize()};
_.Y.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.Y.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.Y.setCarouselItem=function(t){t>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.ir.cancelJob(this.jobId);var E=this.getCurrentPanelElement();E&&E.stopVideo();this.currentItemIndex=t%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(E||(E=this.getCurrentPanelElement()),E.playVideo()):this.startRotationJob()};
_.Y.scrollThumbnails=function(t){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var E=this.getCurrentPaginationElement();if(E){var p=_.ZN(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?p.style.transform="translateX(0)":(E=E.offsetWidth+8,p.style.transform="translateX(-"+E*(t-Math.ceil(Math.floor(this.overlay.offsetWidth/E)/2)+1)+"px)")}}};
_.Y.onDataChanged=function(){var t=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.D2(_.ir,function(){var E;(E=t.getCurrentPanelElement())==null||E.updateSize();t.updateSize()}))};
_.Y.getCurrentPanelElement=function(){return _.ZN(_.ZN(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.Y.getCurrentPaginationElement=function(){return _.ZN(_.ZN(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.Y.getNavigationClass=function(t,E){return t===E?"selected":""};
_.Y.getNavigationDurationStyle=function(t){return"animation-duration:"+(this.get("data.carouselItems."+t+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.Y.onNavigationTap=function(t){var E=this,p=t.model.index;p!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){E.setCarouselItem(p)}),this.autorotateActive=!1)};
_.Y.onVideoThumbnailEnded=function(){var t=this;if(this.shouldRotate()){var E=this.getCurrentPaginationElement();E&&(E.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){E.classList.remove("finished");t.setNextCarouselItem()}))}};
_.Y.onVideoThumbnailError=function(){this.startRotationJob()};
_.Y.onVideoNotPlaying=function(){this.startRotationJob()};
_.Y.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.Y.startRotationJob=function(){var t=this;_.ir.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.ir.addLowPriorityJob(function(){t.getCurrentPanelElement().transitionOut().then(function(){t.setNextCarouselItem()})},this.rotationTimeout))};
_.Y.computeDotMenuVisible=function(t,E){return!!t&&!!t.carouselItems&&t.carouselItems.length>1&&!t.paginationThumbnails||!!E};
_.Y.computePaginationThumbnailsVisible=function(t,E){var p,U;return((U=t==null?void 0:(p=t.paginationThumbnails)==null?void 0:p.length)!=null?U:0)>1&&!E};
_.Y.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.Y.computePaginatorAlignment=function(t){return(t==null?void 0:t.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.Y.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.Y.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.Y.isNarrower=function(t){return(t!=null?t:0)<UD.NARROW_VERSION_SIZE};
xU.prototype.activeChanged=xU.prototype.activeChanged;xU.prototype.onVideoNotPlaying=xU.prototype.onVideoNotPlaying;xU.prototype.onVideoThumbnailError=xU.prototype.onVideoThumbnailError;xU.prototype.onVideoThumbnailEnded=xU.prototype.onVideoThumbnailEnded;xU.prototype.onDataChanged=xU.prototype.onDataChanged;_.N([_.g(_.Qo),_.P("design:type",Object)],xU.prototype,"ytdGridStateAwareBehavior",void 0);
_.N([_.g(_.jp.YtdGuideStateAwareBehavior),_.P("design:type",Object)],xU.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],xU.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],xU.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],xU.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],xU.prototype,"currentItem",void 0);
_.N([_.e(),_.P("design:type",Number)],xU.prototype,"currentItemIndex",void 0);_.N([_.e(),_.P("design:type",Number)],xU.prototype,"rotationTimeout",void 0);_.N([_.e(),_.P("design:type",Number)],xU.prototype,"loopCount",void 0);_.N([_.e({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.P("design:type",String)],xU.prototype,"paginatorAlignment",void 0);_.N([_.e(),_.P("design:type",Number)],xU.prototype,"jobId",void 0);
_.N([_.e(),_.P("design:type",Number)],xU.prototype,"updateSizeJobId",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],xU.prototype,"isCarouselInFeed",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],xU.prototype,"narrower",void 0);_.N([_.e({computed:"computeDotMenuVisible(data, narrower)"}),_.P("design:type",Object)],xU.prototype,"dotMenuVisible",void 0);
_.N([_.e({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.P("design:type",Object)],xU.prototype,"paginationThumbnailsVisible",void 0);_.N([_.e({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.P("design:type",String)],xU.prototype,"layoutType",void 0);_.N([_.e({value:!0,reflectToAttribute:!0}),_.P("design:type",Boolean)],xU.prototype,"autorotateActive",void 0);_.N([_.e(),_.P("design:type",Object)],xU.prototype,"active",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],xU.prototype,"disableGridStateAware",void 0);_.N([_.Nl("#overlay"),_.P("design:type",HTMLElement)],xU.prototype,"overlay",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xU.prototype,"onDataChanged",null);
_.N([_.lc("yt-video-thumbnail-ended"),_.lc("yt-default-promo-panel-renderer-rotate"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xU.prototype,"onVideoThumbnailEnded",null);_.N([_.lc("yt-video-thumbnail-error"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xU.prototype,"onVideoThumbnailError",null);
_.N([_.lc("yt-video-thumbnail-not-playing"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xU.prototype,"onVideoNotPlaying",null);_.N([_.P3("active"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xU.prototype,"activeChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],xU);
_.G(xU,"ytd-carousel-item-renderer",function(){if(ZxJ!==void 0)return ZxJ;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return ZxJ=t},{mode:2});var elJ;var Fab;var zlt;var lnl;var Aq=function(){var t=_.z.apply(this,arguments)||this;t.answerExpanded=!1;return t};
_.u(Aq,_.z);Aq.prototype.toggleAnswer_=function(t){var E=_.Qx(t);E&&E.classList.contains("yt-simple-endpoint")||(t.preventDefault(),t.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
Aq.prototype.toggleAnswer_=Aq.prototype.toggleAnswer_;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Aq.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Aq.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Aq.prototype,"answerExpanded",void 0);_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Aq.prototype,"toggleAnswer_",null);
_.N([_.p4({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],Aq);
_.G(Aq,"yt-generic-faq-question-renderer",function(){if(lnl===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;zlt===void 0&&(zlt=document.createElement("template"));var U=zlt;p.call(E,U.content.cloneNode(!0),t.content.firstChild);lnl=t}t=lnl;return t},{mode:2});_.vs("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var YU=function(){return _.z.apply(this,arguments)||this};
_.u(YU,_.z);YU.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],YU.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],YU.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],YU.prototype,"data",void 0);_.N([_.p4({is:"yt-faq-section-renderer",disableElementRegistration:!0})],YU);
_.G(YU,"yt-faq-section-renderer",function(){if(Fab===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;elJ===void 0&&(elJ=document.createElement("template"));var U=elJ;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Fab=t}t=Fab;return t},{mode:2});var G87=_.l(function(t){var E=t.data;var p=function(){var U;return _.te((U=E())==null?void 0:U.rendererContext)};
t={};return _.H("content-list-item-view-model",{el:_.V9(_.EX(function(){return E().rendererContext})),
class:_.X5("ytContentListItemViewModelHost",(t.ytContentListItemViewModelTappable=p,t)),role:function(){return p()?"listitem":void 0},
tabindex:function(){return p()?0:void 0}},_.H("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.H("div",{class:"ytContentListItemViewModelImageContainer"},_.H(_.w,{cond:function(){return E().image},
then:function(U){return _.H(_.Q9,{data:U,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.H(_.sY,{data:function(){var U;
return(U=E())==null?void 0:U.avatar}},{avatarViewModel:_.fk})),_.H("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.H("div",{class:_.X5("ytContentListItemViewModelTitle",function(){a:{switch(E().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var U="ytContentListItemViewModelProminentTitle";
break a}U=void 0}return U})},_.H(_.d8,{text:function(){return E().title}})),_.H("div",{class:"ytContentListItemViewModelMetadata"},_.H(_.sY,{data:function(){return E().metadata}},{contentMetadataViewModel:function(U){return _.H(_.sM,{data:U.data,
layout:1})}})))),_.H("div",{class:"ytContentListItemViewModelActionButton"},_.H(_.sY,{data:function(){var U;
return(U=E())==null?void 0:U.actionButton}},{buttonViewModel:_.D5,
toggleButtonViewModel:_.m3})))},"Kh");var nH8=_.l(function(t){var E=t.data,p=function(){var x;return(x=E())==null?void 0:x.description},U=function(){var x;
return(x=E())==null?void 0:x.title};
return _.H("ytfc-youth-basic-section-header-view-model",{class:_.X5("ytfcYouthBasicSectionHeaderViewModelHost",t.className)},_.H("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.H(_.sY,{data:function(){var x;return(x=E())==null?void 0:x.avatar}},{avatarViewModel:_.fk}),_.H(_.w,{cond:function(){var x;
return _.b7((x=E())==null?void 0:x.themedImage)},
then:function(x){return _.H(_.Q9,{data:x,alt:function(){var A,m;return(m=(A=U())==null?void 0:A.content)!=null?m:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.H("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.H(_.w,{cond:U,
then:function(){return _.H(_.d8,{text:U,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.H("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.H(_.sY,{data:function(){var x;
return(x=E())==null?void 0:x.bottomBadge}},{badgeViewModel:function(x){return _.H("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.H(_.XN,{data:x.data}))}}),_.H(_.w,{cond:p,
then:function(){return _.H(_.d8,{text:p,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"Lh");var N_7=_.l(function(t){var E=t.data;return _.H("ytfc-youth-section-body-view-model",{class:_.X5("ytfcYouthSectionBodyViewModelHost",t.className)},_.H(_.sY,{data:function(){var p;return(p=E())==null?void 0:p.topContent}},{avatarStackViewModel:function(p){return _.H(_.wp,{data:p.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.H(_.d8,{text:function(){var p;
return(p=E())==null?void 0:p.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"Mh");var D8e=_.l(function(t){var E=_.M(_.Py(!1,void 0,"SrK51e")),p=E.next().value,U=E.next().value,x=function(){return t.data().inlineExpansionEntityKey},A=_.nd(IUC,x),m=function(){if(t.isSelected!==void 0)return t.isSelected();
if(x()){var f;return(f=A())==null?void 0:f.expanded}return p()};
E={};var b={};return _.H("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.aC(function(){t.isSelected!==void 0||x()||U(!p())})},_.H("div",{class:"ytInlineExpanderViewModelHeader"},_.H(_.sY,{data:function(){return t.data().headerContent}},{youthBasicSectionHeaderViewModel:nH8}),_.H("div",{class:_.X5("ytInlineExpanderViewModelButton",(E.ytInlineExpanderViewModelButtonExpanded=m,E))},_.H(_.N7,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:m(),accessibilityLabel:m()?_.zF("SHOW_LESS",void 0,"Show Less"):_.zF("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.H("div",{class:_.X5("ytInlineExpanderViewModelBody",(b.ytInlineExpanderViewModelBodyExpanded=m,b)),"aria-hidden":function(){return!m()}},_.H("div",{class:"ytInlineExpanderViewModelBodyContent"},_.H(_.sY,{data:function(){return t.data().bodyContent}},{youthSectionBodyViewModel:N_7}))))},"Nh");var sZ8=new _.gM("CONTENT_SECTION_VIEW_MODEL_TOKEN");var La8=_.l(function(t){var E=function(){return t.data().background},p=function(){return t.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},U=function(){return t.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},x=_.X3().resolve(_.OB(sZ8)),A={};
return _.H("yt-card-view-model",{el:_.V9(_.EX(function(){return t.data().rendererContext})),
class:_.X5("ytCardViewModelHost",t.className,(A.ytCardViewModelClickable=function(){return _.c9(t.data().rendererContext)},A))},_.H(_.Lk,{contentId:function(){return t.data().contentId}},function(){var m={};
return _.H("div",{class:_.X5("ytCardViewModelCardViewModelInner",function(){var b;return a4J(t.data().cardStyle,(b=t.isSelected)==null?void 0:b.call(t))},function(){if(t.isSelected===void 0){var b;
a:{switch((b=t.data().cardState)==null?void 0:b.selectionState){case "CARD_SELECTION_STATE_SELECTED":b="ytCardViewModelSelected";break a}b=void 0}return b}})},_.H(_.sY,{data:E},{cinematicContainerViewModel:function(b){return _.H(_.HOt,{data:b.data})}}),_.H("div",{class:"ytCardViewModelContentWrapper"},_.H(_.w,{cond:function(){return!p()},
then:function(){var b={},f={};return _.H("div",{class:"ytCardViewModelTopContentContainer"},_.H("div",{class:_.X5("ytCardViewModelTopContent",(b.ytCardViewModelInnerPadding=function(){return!t.data().disableTopContentPadding&&t.data().topContent},b))},_.H(_.sY,{data:function(){return t.data().topContent}},{contentListItemViewModel:function(B){return _.H(G87,{data:B.data})},
basicContentViewModel:_.Qn,linearLayoutViewModel:_.r$})),_.H("div",{class:_.X5("ytCardViewModelInlineTrailingAction",(f.ytCardViewModelInlineCenterTrailingAction=U,f.ytCardViewModelInlineTrailingActionMargin=function(){return t.data().trailingAction},f))},_.H(_.sY,{data:function(){return t.data().trailingAction}},{buttonViewModel:function(B){return _.H(_.D5,{data:B.data})}})))}}),_.H("div",{class:_.X5((m.ytCardViewModelInnerPadding=function(){return!t.data().disableBodyContentPadding&&t.data().bodyContent},
m))},_.H(_.sY,{data:function(){return t.data().bodyContent}},Object.assign({},{channelAttributionViewModel:_.cwK,
contentListItemViewModel:G87,descriptionPreviewViewModel:_.KU,inlineExpanderViewModel:function(b){return _.H(D8e,{data:b.data,isSelected:t.isSelected})},
linearLayoutViewModel:_.r$,listItemViewModel:_.jB},x&&{contentSectionViewModel:x})))),_.H(_.w,{cond:function(){return p()},
then:function(){return _.H("div",{class:"ytCardViewModelOverlayTrailingAction"},_.H(_.sY,{data:function(){return t.data().trailingAction}},{buttonViewModel:function(b){return _.H(_.D5,{data:b.data})}}))}}))}))},"Oh");_.k2(La8,"yt-card-view-model",{props:{data:_.uu,className:_.uu,isSelected:_.uu}});var PXC;var T_t;var oHK=function(){return _.z.apply(this,arguments)||this};
_.u(oHK,_.z);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],oHK.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],oHK.prototype,"data",void 0);_.N([_.Ul({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],oHK);
_.G(oHK,"ytd-channel-history-renderer",function(){if(T_t!==void 0)return T_t;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return T_t=t},{mode:1});var WaC;var $88=function(){return _.z.apply(this,arguments)||this};
_.u($88,_.z);_.N([_.e(),_.P("design:type",Object)],$88.prototype,"data",void 0);_.N([_.Ul({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],$88);
_.G($88,"ytd-feature-enablement-info-renderer",function(){if(WaC!==void 0)return WaC;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return WaC=t},{mode:1});var Kae;var vH5;var Mt=function(){var t=_.z.apply(this,arguments)||this;t.textBoxMaxLength=_.r("enable_tvod_campaign_code_integration")?15:12;return t};
_.u(Mt,_.z);_.Y=Mt.prototype;_.Y.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.Y.onSubmit=function(){var t=this.data.serviceEndpoint,E=_.k(t,_.RF);E&&t&&(E.couponCode=this.userInput,_.X3().resolve(_.ei).resolveCommand(t,{form:{element:this.hostElement}}))};
_.Y.validate=function(){var t=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=t&&!this.data.errorMessage;this.showErrorMessage=t&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.r("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.Y.computeStyle=function(t){return t};
_.Y.computeShowValidationBelowInput=function(t){return t!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.Y.updateUserInputFromBinding=function(t){this.userInput=t.currentTarget.value};
_.Y.updateShowErrorMessageFromBinding=function(t){this.showErrorMessage=t.detail.value};
_.aE.Object.defineProperties(Mt.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
Mt.prototype.dataChanged=Mt.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Mt.prototype,"data",void 0);_.N([_.e(),_.P("design:type",String)],Mt.prototype,"userInput",void 0);_.N([_.e(),_.P("design:type",Boolean)],Mt.prototype,"disableApplyButton",void 0);_.N([_.e(),_.P("design:type",Boolean)],Mt.prototype,"hideApplyButton",void 0);
_.N([_.e(),_.P("design:type",Boolean)],Mt.prototype,"hideErrorMessage",void 0);_.N([_.e(),_.P("design:type",Boolean)],Mt.prototype,"showTick",void 0);_.N([_.e(),_.P("design:type",Boolean)],Mt.prototype,"showErrorMessage",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.P("design:type",String)],Mt.prototype,"couponStyle",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.P("design:type",Boolean)],Mt.prototype,"showValidationBelowInput",void 0);_.N([_.e(),_.P("design:type",Object)],Mt.prototype,"textBoxMaxLength",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mt.prototype,"dataChanged",null);
_.N([_.Z("showTick","showErrorMessage","userInput"),_.P("design:type",String),_.P("design:paramtypes",[])],Mt.prototype,"validationState",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],Mt);
_.G(Mt,"ytd-ypc-coupon-renderer",function(){if(vH5!==void 0)return vH5;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return vH5=t},{mode:1});var m_=function(){return _.z.apply(this,arguments)||this};
_.u(m_,_.z);m_.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"}}}};
m_.prototype.computeStyle=function(t){return t};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],m_.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],m_.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],m_.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.P("design:type",String)],m_.prototype,"buttonStyle",void 0);_.N([_.Ul({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],m_);
_.G(m_,"ytd-flow-bottom-bar-renderer",function(){if(Kae!==void 0)return Kae;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Kae=t},{mode:1});var yVl;var S6g;var b$=function(){return _.z.apply(this,arguments)||this};
_.u(b$,_.z);b$.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
b$.prototype.focus=function(t){this.title&&_.Jw(this.title,t)};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],b$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],b$.prototype,"data",void 0);_.N([_.Nl("#title"),_.P("design:type",HTMLElement)],b$.prototype,"title",void 0);_.N([_.Ul({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],b$);
_.G(b$,"ytd-flow-top-bar-renderer",function(){if(S6g!==void 0)return S6g;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return S6g=t},{mode:1});var cVt;var tjg;var E_g;var i$=function(){return _.z.apply(this,arguments)||this};
_.u(i$,_.z);i$.prototype.freeTextValueChanged=function(){_.du(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
i$.prototype.updateFreeTextValueFromBinding=function(t){this.freeTextValue=t.detail.value};
_.aE.Object.defineProperties(i$.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var t,E,p=(E=(t=this.data)==null?void 0:t.responseMaxLength)!=null?E:500,U;return((U=this.freeTextValue)!=null?U:"").length>=p?"maxed-out":""}}});
i$.prototype.freeTextValueChanged=i$.prototype.freeTextValueChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],i$.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],i$.prototype,"data",void 0);_.N([_.e(),_.P("design:type",String)],i$.prototype,"freeTextValue",void 0);_.N([_.Nl("#user-input"),_.P("design:type",HTMLTextAreaElement)],i$.prototype,"input",void 0);
_.N([_.Z("freeTextValue"),_.P("design:type",Object),_.P("design:paramtypes",[])],i$.prototype,"characterLimitClass",null);_.N([_.GI("freeTextValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],i$.prototype,"freeTextValueChanged",null);_.N([_.p4({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],i$);
_.G(i$,"yt-free-text-input-flow-step-renderer",function(){if(E_g===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;tjg===void 0&&(tjg=document.createElement("template"));var U=tjg;p.call(E,U.content.cloneNode(!0),t.content.firstChild);E_g=t}t=E_g;return t},{mode:2});var qt=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return t};
_.u(qt,_.z);qt.prototype.handleFreeTextFlowStepInputChanged=function(t){_.du(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:t}}])};
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],qt.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],qt.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],qt.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],qt);
_.G(qt,"ytd-free-text-input-flow-step-renderer",function(){if(cVt!==void 0)return cVt;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return cVt=t},{mode:1});var pWb;var UoL;var xoo;var Azo=function(){return _.z.apply(this,arguments)||this};
_.u(Azo,_.z);_.N([_.e(),_.P("design:type",Object)],Azo.prototype,"data",void 0);_.N([_.p4({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],Azo);
_.G(Azo,"yt-survey-answer-card-renderer",function(){if(xoo===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;UoL===void 0&&(UoL=document.createElement("template"));var U=UoL;p.call(E,U.content.cloneNode(!0),t.content.firstChild);xoo=t}t=xoo;return t},{mode:2});var YNK;var MjK;var HP=function(){return _.z.apply(this,arguments)||this};
_.u(HP,_.z);_.Y=HP.prototype;_.Y.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.Y.selectedItemChanged=function(t){_.du(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[t.feedbackToken||""]}])};
_.Y.surveyAnswerCardRendererClicked=function(t){if(t.target&&_.k(t.model.item,kAt)){var E=t.target;t=_.k(t.model.item,kAt);t.onTapCommand?_.IK(E,[t.onTapCommand],E):this.data.onTapCommand&&_.IK(E,[this.data.onTapCommand],E);this.selectedItemChanged(t)}};
_.Y.checkIsCancellationStyle=function(t){return t==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.Y.updateSelectedItemFromBinding=function(t){this.selectedItem=t.detail.value};
HP.prototype.onSelectedItemChanged=HP.prototype.onSelectedItemChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],HP.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],HP.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],HP.prototype,"selectedItem",void 0);_.N([_.e({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.P("design:type",Boolean)],HP.prototype,"isCancellationStyle",void 0);
_.N([_.GI("selectedItem"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],HP.prototype,"onSelectedItemChanged",null);_.N([_.p4({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],HP);
_.G(HP,"yt-survey-flow-step-renderer",function(){if(MjK===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;YNK===void 0&&(YNK=document.createElement("template"));var U=YNK;p.call(E,U.content.cloneNode(!0),t.content.firstChild);MjK=t}t=MjK;return t},{mode:2});var f2=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return t};
_.u(f2,_.z);f2.prototype.handleSurveyFlowStepOptionChanged=function(t){this.ytdReduxBehavior.dispatch(_.Jj({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:t}));_.du(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:t}}])};
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],f2.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],f2.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],f2.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],f2);
_.G(f2,"ytd-survey-flow-step-renderer",function(){if(pWb!==void 0)return pWb;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return pWb=t},{mode:1});var mot;var bXl;var iXo=function(){return _.z.apply(this,arguments)||this};
_.u(iXo,_.z);_.N([_.e(),_.P("design:type",Object)],iXo.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],iXo);
_.G(iXo,"ytd-metadata-line-renderer",function(){if(bXl!==void 0)return bXl;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return bXl=t},{mode:1});var BP=function(){return _.z.apply(this,arguments)||this};
_.u(BP,_.z);BP.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],BP.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],BP.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],BP.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],BP.prototype,"isMasthead",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],BP);
_.G(BP,"ytd-media-product-renderer",function(){if(mot!==void 0)return mot;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return mot=t},{mode:1});var qNK;var wA=function(){return _.z.apply(this,arguments)||this};
_.u(wA,_.z);wA.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
wA.prototype.onBillboardImageLoaded=function(){_.kT(this.hostElement,"yt-refit")};
wA.prototype.onBillboardImageLoaded=wA.prototype.onBillboardImageLoaded;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],wA.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],wA.prototype,"data",void 0);_.N([_.Nl("#billboardImage"),_.P("design:type",Object)],wA.prototype,"billboardImage",void 0);_.N([_.lc("yt-img-shadow-loaded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wA.prototype,"onBillboardImageLoaded",null);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],wA);
_.G(wA,"ytd-billboard-masthead-renderer",function(){if(qNK!==void 0)return qNK;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return qNK=t},{mode:1});var HXe;var R9=function(){var t=_.z.apply(this,arguments)||this;t.smallSize=!1;return t};
_.u(R9,_.z);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],R9.prototype,"ytComponentBehaviorType",void 0);_.N([_.e(),_.P("design:type",Object)],R9.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],R9.prototype,"smallSize",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],R9);
_.G(R9,"ytd-bullet-formatted-string",function(){if(HXe!==void 0)return HXe;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return HXe=t},{mode:1});var fd5;var VY=function(){return _.z.apply(this,arguments)||this};
_.u(VY,_.z);VY.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],VY.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],VY.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],VY.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],VY);
_.G(VY,"ytd-offer-detail-renderer",function(){if(fd5!==void 0)return fd5;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return fd5=t},{mode:1});var Bfe;var QY=function(){return _.z.apply(this,arguments)||this};
_.u(QY,_.z);QY.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"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],QY.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],QY.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],QY.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],QY);
_.G(QY,"ytd-offer-detail-step-renderer",function(){if(Bfe!==void 0)return Bfe;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Bfe=t},{mode:1});var wWJ;var C2=function(){var t=_.z.apply(this,arguments)||this;t.isInOfferModule=!1;return t};
_.u(C2,_.z);_.Y=C2.prototype;_.Y.computeHasEndpoint=function(){var t;return!((t=this.data)==null||!t.onClickCommand)};
_.Y.dataChanged=function(){var t;if((t=this.data)==null?0:t.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")};
_.Y.detached=function(){var t;if((t=this.data)==null?0:t.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.Y.handleClickEvent=function(){var t;if((t=this.data)==null?0:t.onClickCommand){var E;this.componentBehavior.resolveCommand((E=this.data)==null?void 0:E.onClickCommand)}};
_.Y.onContentKeyDown=function(t){t.key==="Enter"?this.handleClickEvent(t):t.key===" "&&t.preventDefault()};
_.Y.onContentKeyUp=function(t){t.key===" "&&this.handleClickEvent(t)};
C2.prototype.dataChanged=C2.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],C2.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],C2.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],C2.prototype,"data",void 0);_.N([_.e({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],C2.prototype,"hasEndpoint",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],C2.prototype,"isInOfferModule",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],C2.prototype,"dataChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],C2);
_.G(C2,"ytd-channel-masthead-renderer",function(){if(wWJ!==void 0)return wWJ;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return wWJ=t},{mode:1});var REd;var j0=function(){var t=_.z.apply(this,arguments)||this;t.thumbnailObjectFit="CONTAIN";t.thumbnailObjectPosition="LEFT";t.isExpanded=!1;return t};
_.u(j0,_.z);_.Y=j0.prototype;_.Y.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.Y.dataChanged=function(){this.resetStates()};
_.Y.computeisTapOnOfferInfoContainerEnabled=function(){var t;return((t=this.data)==null?void 0:t.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.Y.onExpandBtnClick=function(){var t,E=_.k((t=this.data)==null?void 0:t.showMoreButtonRenderer,uyL);E&&_.$3(_.Pu(),E.trackingParams);this.isExpanded=!this.isExpanded};
_.Y.onOfferInfoClick=function(t){this.isTapOnOfferInfoContainerEnabled&&(_.Qb(_.Vx(t)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.Cd(_.Vx(t)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.Y.onBottomBarClick=function(){this.executeTapCommand()};
_.Y.executeTapCommand=function(){var t,E=(t=this.data)==null?void 0:t.tapCommand;E&&this.ytComponentBehavior.resolveCommand(E)};
_.Y.resetStates=function(){this.isExpanded=!1};
_.aE.Object.defineProperties(j0.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var t=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),E,p,U;return((E=this.data)==null?void 0:E.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&t&&!!((p=this.data)==null?0:(U=p.benefits)==null?0:U.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return((E=_.k((t=this.data)==null?void 0:t.showMoreButtonRenderer,uyL))==null?void 0:E.showMoreButtonTitle)||((p=this.data)==null?void 0:p.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return((E=_.k((t=this.data)==null?void 0:t.showMoreButtonRenderer,uyL))==null?void 0:E.showLessButtonTitle)||((p=this.data)==null?void 0:p.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var t;return(t=this.showLessButtonTitle)!=null?t:""}var E;return(E=this.showMoreButtonTitle)!=null?E:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return((t=this.data)==null?void 0:t.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((E=this.data)==null?0:E.footerTitle)||((p=this.data)==null?0:p.footerSubtitle))}}});
j0.prototype.dataChanged=j0.prototype.dataChanged;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],j0.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],j0.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],j0.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",String)],j0.prototype,"thumbnailObjectFit",void 0);
_.N([_.e(),_.P("design:type",String)],j0.prototype,"thumbnailObjectPosition",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.P("design:type",Boolean)],j0.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.N([_.e(),_.P("design:type",Object)],j0.prototype,"isExpanded",void 0);_.N([_.e(),_.P("design:type",Object)],j0.prototype,"data",void 0);_.N([_.e({computed:"computeIcon_(data.footerIcon)"}),_.P("design:type",String)],j0.prototype,"icon",void 0);
_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],j0.prototype,"dataChanged",null);_.N([_.Z("data.thumbnail"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],j0.prototype,"hasThumbnail",null);_.N([_.Z("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],j0.prototype,"enableExpandButton",null);
_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],j0.prototype,"enableOfferContentIcon",null);_.N([_.Z("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.P("design:type",Object),_.P("design:paramtypes",[])],j0.prototype,"showMoreButtonTitle",null);_.N([_.Z("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.P("design:type",Object),_.P("design:paramtypes",[])],j0.prototype,"showLessButtonTitle",null);
_.N([_.Z("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.P("design:type",String),_.P("design:paramtypes",[])],j0.prototype,"expandedBtnText",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],j0.prototype,"enableBottomBar",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],j0);
_.G(j0,"ytd-offer-card-renderer",function(){if(REd!==void 0)return REd;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return REd=t},{mode:1});var Vjl;var rA=function(){return _.z.apply(this,arguments)||this};
_.u(rA,_.z);rA.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"}}}};
rA.prototype.onClick=function(t){if(!_.Qb(t.composedPath()||[],this.hostElement,["A".toString()])){var E,p;if((t=(p=_.k((E=this.data)==null?void 0:E.actionButton,_.Ry))==null?void 0:p.command)&&!this.ytComponentBehavior.resolveCommand(t)){var U;(U=_.Pu())==null||U.clickCommand(t);_.X3().resolve(_.ei).resolveCommand(t,{form:{element:this.hostElement}})}}};
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],rA.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],rA.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],rA.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],rA);
_.G(rA,"ytd-offer-content-renderer",function(){if(Vjl!==void 0)return Vjl;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Vjl=t},{mode:1});var QXo;var kU=function(){return _.z.apply(this,arguments)||this};
_.u(kU,_.z);kU.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.aE.Object.defineProperties(kU.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var t,E;return!((t=this.data)==null||!t.title)||!((E=this.data)==null||!E.description)}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],kU.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],kU.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],kU.prototype,"data",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],kU.prototype,"hasHeaderData",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],kU);
_.G(kU,"ytd-offer-section-renderer",function(){if(QXo!==void 0)return QXo;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return QXo=t},{mode:1});var Ci5;var dA=function(){return _.z.apply(this,arguments)||this};
_.u(dA,_.z);
dA.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"}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],dA.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],dA.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],dA.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],dA);
_.G(dA,"ytd-offer-selection-step-renderer",function(){if(Ci5!==void 0)return Ci5;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Ci5=t},{mode:1});var jXt;var u$=function(){return _.z.apply(this,arguments)||this};
_.u(u$,_.z);u$.prototype.computeStyle=function(t){return t};
u$.prototype.computeImageWidth=function(t){return t==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.N([_.e({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.P("design:type",String)],u$.prototype,"containerStyle",void 0);_.N([_.e({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.P("design:type",String)],u$.prototype,"imageWidth",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],u$.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],u$.prototype,"data",void 0);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],u$);
_.G(u$,"ytd-confirmation-masthead-renderer",function(){if(jXt!==void 0)return jXt;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return jXt=t},{mode:1});var rzC;var Jq=function(){return _.z.apply(this,arguments)||this};
_.u(Jq,_.z);Jq.prototype.computeStyle=function(t){return t};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Jq.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Jq.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.P("design:type",String)],Jq.prototype,"containerStyle",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],Jq);
_.G(Jq,"ytd-purchase-complete-detail-renderer",function(){if(rzC!==void 0)return rzC;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return rzC=t},{mode:1});var kUd;var I9=function(){var t=_.z.apply(this,arguments)||this;t.scriptsAppended=!1;return t};
_.u(I9,_.z);I9.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"}}}};
I9.prototype.onDataChanged=function(){var t=this.get("data.gtmId");t&&(_.x9(t,_.qO("GL","")),this.setupConversionTracking())};
I9.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var t=document.createElement("noscript");t.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(t);this.scriptsAppended=!0}};
I9.prototype.onDataChanged=I9.prototype.onDataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],I9.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],I9.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],I9.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],I9.prototype,"scriptsAppended",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],I9.prototype,"onDataChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],I9);
_.G(I9,"ytd-purchase-complete-step-renderer",function(){if(kUd!==void 0)return kUd;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return kUd=t},{mode:1});var do5;var gA=function(){return _.z.apply(this,arguments)||this};
_.u(gA,_.z);gA.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],gA.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],gA.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],gA);
_.G(gA,"ytd-ypc-transaction-error-message-renderer",function(){if(do5!==void 0)return do5;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return do5=t},{mode:1});var ugb;var Jzt;var Zu=function(){var t=_.z.apply(this,arguments)||this;t.handlePhoneVerificationSuccess=function(E){if(t.isValidPhoneVerificationCompletionMessageEvent(E)){var p;((p=t.data)==null?0:p.nextStepCommand)&&t.ytComponentBehavior.resolveCommand(t.data.nextStepCommand)}};
return t};
_.u(Zu,_.z);Zu.prototype.isValidPhoneVerificationCompletionMessageEvent=function(t){if(t.data!=="yt-phone-verification-complete")return!1;t=_.ua(t.origin);return t!==null&&t.includes("youtube.com")};
Zu.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Zu.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Zu.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Zu.prototype,"data",void 0);_.N([_.p4({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Zu);
_.G(Zu,"yt-feature-enablement-soft-entry-renderer",function(){if(Jzt===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;ugb===void 0&&(ugb=document.createElement("template"));var U=ugb;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Jzt=t}t=Jzt;return t},{mode:1});var Ide;var g_7;var ZX7;var OXe;var XWJ=function(){return _.z.apply(this,arguments)||this};
_.u(XWJ,_.z);_.N([_.e(),_.P("design:type",Object)],XWJ.prototype,"data",void 0);_.N([_.p4({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],XWJ);
_.G(XWJ,"yt-benefits-item-renderer",function(){if(OXe===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;ZX7===void 0&&(ZX7=document.createElement("template"));var U=ZX7;p.call(E,U.content.cloneNode(!0),t.content.firstChild);OXe=t}t=OXe;return t},{mode:2});var hEo;var ad9;var OD=function(){return _.z.apply(this,arguments)||this};
_.u(OD,_.z);OD.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
OD.prototype.computeisWithoutPadding=function(){var t;return((t=this.data)==null?void 0:t.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],OD.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],OD.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.P("design:type",Boolean)],OD.prototype,"isWithoutPadding",void 0);_.N([_.p4({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],OD);
_.G(OD,"yt-benefits-section-renderer",function(){if(ad9===void 0){var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;hEo===void 0&&(hEo=document.createElement("template"));var U=hEo;p.call(E,U.content.cloneNode(!0),t.content.firstChild);ad9=t}t=ad9;return t},{mode:2});var XD=function(){return _.z.apply(this,arguments)||this};
_.u(XD,_.z);XD.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
XD.prototype.computeisUsingLargeWidth=function(){var t;return((t=this.data)==null?void 0:t.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],XD.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],XD.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.P("design:type",Boolean)],XD.prototype,"isUsingLargeWidth",void 0);_.N([_.p4({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],XD);
_.G(XD,"yt-benefits-flow-step-renderer",function(){if(g_7===void 0){var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;Ide===void 0&&(Ide=document.createElement("template"));var U=Ide;p.call(E,U.content.cloneNode(!0),t.content.firstChild);g_7=t}t=g_7;return t},{mode:2});var eEL;var FOl;var hq=function(){return _.z.apply(this,arguments)||this};
_.u(hq,_.z);hq.prototype.checkIsUsingLargeWidth=function(){var t;return((t=this.data)==null?void 0:t.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.N([_.e(),_.P("design:type",Object)],hq.prototype,"data",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],hq.prototype,"ytRendererBehavior",void 0);_.N([_.e({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.P("design:type",Boolean)],hq.prototype,"isUsingLargeWidth",void 0);_.N([_.p4({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],hq);
_.G(hq,"yt-confirmation-flow-step-renderer",function(){if(FOl===void 0){var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;eEL===void 0&&(eEL=document.createElement("template"));var U=eEL;p.call(E,U.content.cloneNode(!0),t.content.firstChild);FOl=t}t=FOl;return t},{mode:2});var zE5;var ld5;var GU9=function(){return _.z.apply(this,arguments)||this};
_.u(GU9,_.z);_.N([_.e(),_.P("design:type",Object)],GU9.prototype,"data",void 0);_.N([_.p4({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],GU9);
_.G(GU9,"yt-info-flow-step-renderer",function(){if(ld5===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;zE5===void 0&&(zE5=document.createElement("template"));var U=zE5;p.call(E,U.content.cloneNode(!0),t.content.firstChild);ld5=t}t=ld5;return t},{mode:2});var n_J;var Nfd;var Doe=function(){return _.z.apply(this,arguments)||this};
_.u(Doe,_.z);_.N([_.e(),_.P("design:type",Object)],Doe.prototype,"data",void 0);_.N([_.p4({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],Doe);
_.G(Doe,"yt-info-list-flow-step-renderer",function(){if(Nfd===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;n_J===void 0&&(n_J=document.createElement("template"));var U=n_J;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Nfd=t}t=Nfd;return t},{mode:2});var sXC=_.l(function(t){var E=t.data;return _.H("styled-text-view-model",{class:_.X5("ytStyledTextViewModelHost",function(){return o2J(E().fontAttributes)},function(){return T4e(E().color)})},_.H(_.d8,{text:function(){return E().text},
ariaLabel:function(){var p,U,x;return(x=(p=E().accessibility)==null?void 0:(U=p.accessibilityData)==null?void 0:U.label)!=null?x:""}}))},"Ph");
sXC.idomCompat=!0;var LOg=_.l(function(t){var E=function(){var x,A,m,b;return(b=(m=(x=t.alt)==null?void 0:x.call(t))!=null?m:(A=t.data().accessibilityData)==null?void 0:A.label)!=null?b:""},p=function(){return t.data().imageWidth},U=function(){return t.data().imageHeight};
return _.H("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.H(_.w,{cond:function(){var x=t.data();if(x){var A,m,b;var f=((A=_.X3().resolve(_.OB(_.Ld)))==null?0:A())?(m=x.imageDark)!=null?m:x.imageLight:(b=x.imageLight)!=null?b:x.imageDark}else f=void 0;return f},
then:function(x){return _.H(_.Q9,Object.assign({},t,{data:x,alt:E,targetWidth:p,targetHeight:U,preserveHeight:!0,preserveWidth:!0}))}}))},"Qh");
LOg.idomCompat=!0;var a9=_.l(function(t){var E=t.data;t=_.Ql(function(){return E().slots},[]);
var p=_.Ql(function(){return E().layoutProperties},{}),U=_.X3().resolve(_.q6);
return _.H("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:N47(p,U)},_.H(_.yG,{each:t,keyBy:"INDEX"},function(x){return _.H("div",{class:"ytContainerLayoutViewModelSlot",style:N47(function(){return x().layoutProperties},U)},_.H(_.sY,{data:function(){return x().contents}},{containerLayoutViewModel:a9,
badgeViewModel:_.XN,buttonViewModel:_.D5,styledTextViewModel:sXC,contentPreviewImageViewModel:function(A){return _.H(_.Nk,{data:A.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(A){return _.H(LOg,{data:A.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Rh");
a9.idomCompat=!0;var Pi9=_.l(function(t){var E=t.data;var p=t.stateFns;var U=function(){var B=E(),R=B.productId;return!(!B.clearGroupId&&!R)},x=function(){var B=E(),R=B.clearGroupId;
return(B=B.productId)?p().isProductSelected(B):R?p().getSelectedProductByGroupId(R)==null:!1},A=function(B){var R=E(),V=R.clearGroupId;
if(R=R.productId)p().onProductSelected(R),B==null||B.forEach(function(Q){_.bz(Q)});
else if(V)p().onClearGroupSelected(V)},m=function(){var B=E(),R=B.clearGroupId;
if(B=B.productId){var V;return"group:"+(((V=p().getProductById(B))==null?void 0:V.groupId)||"")}return R?"group:"+R:""},b=_.Ql(function(){return E().header},[]),f=_.Ql(function(){return E().body},[]);
return _.H("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.H(_.w,{cond:function(){return b().length>0||U()},
then:function(){return _.H("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.H("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.H(_.sY,{data:b},{containerLayoutViewModel:function(B){return _.H("div",{class:"ytPdpCardSectionViewModelContentItem"},_.H(a9,{data:B.data}))},
styledTextViewModel:function(B){return _.H("div",{class:"ytPdpCardSectionViewModelContentItem"},_.H(sXC,{data:B.data}))}})),_.H(_.w,{cond:U,
then:function(){return _.H("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.H(_.Cv,{checked:x,name:m,onChange:function(){A(E().onSelect)}}))}}))}}),_.H(_.w,{cond:function(){return f().length>0},
then:function(){return _.H("div",null,_.H(_.sY,{data:f},{containerLayoutViewModel:function(B){return _.H("div",{class:"ytPdpCardSectionViewModelContentItem"},_.H(a9,{data:B.data}))}}))}}))},"Sh");
Pi9.idomCompat=!0;var Tft=_.l(function(t){var E=t.data;var p=t.stateFns;return _.H("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.H(_.w,{cond:function(){return E().banner},
then:function(U){return _.H("div",{class:"ytPdpCardViewModelBanner"},_.H(_.d8,{text:U}))}}),_.H(_.sY,{data:function(){return E().sections}},{pdpCardSectionViewModel:function(U){U=U.data;
var x={};return _.H("div",{class:_.X5("ytPdpCardViewModelSectionContainer",(x.ytPdpCardViewModelShowDividers=function(){return E().showDividers},x))},_.H(Pi9,{data:U,
stateFns:p}))}}))},"Th");
Tft.idomCompat=!0;var o_7=_.l(function(t){var E=t.data;var p=t.isOverlay;t={};return _.H("pdp-masthead-view-model",{class:_.X5("ytPdpMastheadViewModelHost",(t.ytPdpMastheadViewModelIsOverlay=p,t))},_.H(_.sY,{data:function(){return E().image}},{contentPreviewImageViewModel:_.Nk,
themedImageViewModel:function(U){return _.H(LOg,{data:U.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.H(_.w,{cond:function(){return E().title},
then:function(U){return _.H("h1",{class:"ytPdpMastheadViewModelHeading"},_.H(_.d8,{text:U,isOverlay:p}))}}),_.H(_.yG,{each:function(){var U;
return(U=E().finePrint)!=null?U:[]}},function(U){return _.H("div",{class:"ytPdpMastheadViewModelFinePrint"},_.H(_.d8,{text:U,
isOverlay:p}))}))},"Uh");
o_7.idomCompat=!0;var WOb=_.l(function(t){var E=t.data;var p=t.stateFns;var U=function(){return"pdp-pricing-group-selector-"+E().pricingGroupAttributeIds},x=_.Ql(function(){return E().pricingGroupSelectorSectionHeader});
return _.H("pdp-pricing-group-selector-view-model",null,_.H(_.w,{cond:function(){return!!x()},
then:function(){return _.H(_.sY,{data:x},{sectionHeaderViewModel:function(A){A=A.data;var m={};return _.H("div",{class:_.X5("ytPdpPricingGroupSelectorViewModelSectionHeader",(m.ytPdpPricingGroupSelectorViewModelFullBleed=!0,m.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,m))},_.H(_.v_,{data:A}))}})}}),_.H("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.H(_.yG,{each:function(){var A=p().getSelectedProductByGroupId(E().groupId);
if(!A)return _.iV(Error("Cl`"+E().groupId)),[];var m,b=(m=E().pricingGroupAttributeIds)!=null?m:[],f;if((f=A.pricingGroups)==null||!f.length||!b.length)return[];m=A.pricingGroups.filter(function(Q){return b.length?Q.pricingGroupAttributes.every(function(C){return b.includes(C)}):!1});
A=[];if(b.length>0){m=[].concat(_.KB(m));f=_.M(b);for(var B=f.next(),R={};!B.done;R={targetAttrId:void 0},B=f.next())R.targetAttrId=B.value,B=m.findIndex(function(Q){return function(C){return C.pricingGroupAttributes.includes(Q.targetAttrId)}}(R)),B!==-1&&(A.push(m[B]),m.splice(B,1))}var V=p().getSelectedPricingGroupAttributesByGroupId(E().groupId);
return A.map(function(Q){var C=!1;V&&Q.pricingGroupAttributes&&(C=Bb(Q.pricingGroupAttributes,V));return{pricingGroup:Q,isSelected:C}})},
keyBy:function(A){return A.pricingGroup.pricingGroupId}},function(A){return _.H("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.H("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.H(_.sY,{data:function(){return A().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:a9})),_.H("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.H(_.Cv,{checked:function(){return A().isSelected},
name:U,onClick:function(){var m=A().pricingGroup;p().onPricingGroupSelected(m.pricingGroupId);if(m=_.AJ(m.onSelectPricingGroup)){var b;(b=_.X3().resolve(_.ei))==null||b.resolveCommand(m)}}})))})))},"Vh");
WOb.idomCompat=!0;var $ol=_.l(function(t){var E=t.data;var p=t.stateFns;var U=function(){var m=p().getSelectedPricingOptions().map(function(B){return B.pricingOptionId}),b=p().getSelectedProductByGroupId(E().groupId);
if(!b)return _.iV(Error("Dl`"+E().groupId)),[];var f=p().getSelectedPricingGroupAttributesByGroupId(E().groupId);return yJo(b.pricingOptions,f,m)},x=_.Ql(function(){return E().pricingOptionSelectorSectionHeader}),A=function(){return U().length>1};
return _.H("pdp-pricing-option-selector-view-model",null,_.H(_.w,{cond:function(){return!!x()&&A()},
then:function(){return _.H(_.sY,{data:x},{sectionHeaderViewModel:function(m){m=m.data;var b={};return _.H("div",{class:_.X5("ytPdpPricingOptionSelectorViewModelSectionHeader",(b.ytPdpPricingOptionSelectorViewModelFullBleed=!0,b.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,b))},_.H(_.v_,{data:m}))}})}}),_.H(_.w,{cond:A,
then:function(){return _.H("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.H(_.yG,{each:U,keyBy:"INDEX"},function(m){return _.H("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.H("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.H(_.sY,{data:function(){return m().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:a9})),_.H("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.H(_.Cv,{checked:function(){return m().isSelected},
onClick:function(){p().onPricingOptionSelected(m().pricingOption.pricingOptionId);var b=m().pricingOption.onSelectPricingOption;if(b=_.AJ(b)){var f;(f=_.X3().resolve(_.ei))==null||f.resolveCommand(b)}}})))}))}}))},"Wh");
$ol.idomCompat=!0;var KOK=_.l(function(t){var E=t.data;var p=t.stateFns;return _.H("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.H(_.sY,{data:function(){var U,x;return(x=(U=p().getSelectedPricingOptions()[0])==null?void 0:U.primaryButton)!=null?x:E().emptyStateButton}},{buttonViewModel:_.D5}))},"Xh");
KOK.idomCompat=!0;var v_9=_.l(function(t){var E=t.stateFns;return _.H("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.H(_.sY,{data:function(){return E().getSelectedPricingOptions().flatMap(function(p){return p.summaryLines}).filter(function(p){return!!p})}},{containerLayoutViewModel:function(p){return _.H("div",{class:"ytPdpSummaryViewModelLineItem"},_.H(a9,{data:p.data}))}}))},"Yh");
v_9.idomCompat=!0;var yz5=_.l(function(t){function E(d){var I=m();_.Vl(_.pr("pdpStateEntity",I,{key:I,selectedPricingOptions:d}))}
var p=t.data;var U=t.internalScrolling;var x=t.stateFnsForTesting;var A=_.Ql(function(){return p().allProducts},[]),m=_.Ql(function(){return p().pdpStateEntityKey},""),b=_.nd(SnJ,m),f=_.KN(function(){_.Hv(!0);
var d;return(d=x==null?void 0:x())!=null?d:twb(b,A,E)},void 0,"Pzdsic"),B=_.Ql(function(){return p().body},[]),R=_.Ql(function(){return p().columnBreakHints},[]),V=function(){return p().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},Q=function(){return V()||p().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},C=_.KN(function(){var d=_.b7(p().background),I;
if(d==null?0:(I=d.sources)==null?0:I.length){var O=O===void 0?!0:O;d=_.TvY(void 0,d.sources,void 0,O,O?1E3:void 0,O?void 0:1E3)}else d=null;return d},void 0,"RDPOae");
_.A6(function(){var d=p().onStartCommand;if(d&&(d=_.AJ(d))){var I;(I=_.X3().resolve(_.ei))==null||I.resolveCommand(d)}});
t={};return _.H("pdp-view-model",{class:_.X5("ytPdpViewModelHost",(t.ytPdpViewModelHasBackground=function(){return Q()||!!C()},t.ytPdpViewModelHasDarkBackground=Q,t.ytPdpViewModelHasScrim=V,t.ytPdpViewModelInternalScrolling=U,t.ytPdpViewModelForceSingleColumn=function(){return R().length===0},t)),
style:_.zO({"--pdp-view-model-background":function(){return C()?"url("+C()+")":void 0}})},_.H("div",{class:"ytPdpViewModelColumnContainer"},_.H(_.yG,{each:function(){return E1J(B(),R())},
keyBy:"INDEX"},function(d){return _.H("div",{class:"ytPdpViewModelColumn"},_.H(_.sY,{data:d},{containerLayoutViewModel:function(I){return _.H(e0,null,_.H(a9,{data:I.data}))},
dividerViewModel:function(I){return _.H(e0,{fullBleed:!0},_.H(_.VNp,{data:I.data}))},
pdpCardViewModel:function(I){return _.H(e0,null,_.H(Tft,{data:I.data,stateFns:f}))},
pdpMastheadViewModel:function(I){return _.H(e0,null,_.H(o_7,{data:I.data,isOverlay:Q}))},
pdpPricingGroupSelectorViewModel:function(I){return _.H(e0,null,_.H(WOb,{data:I.data,stateFns:f}))},
pdpPricingOptionSelectorViewModel:function(I){return _.H(e0,null,_.H($ol,{data:I.data,stateFns:f}))},
pdpPrimaryButtonViewModel:function(I){return _.H(e0,null,_.H(KOK,{data:I.data,stateFns:f}))},
pdpSummaryViewModel:function(I){return _.H(e0,null,_.H(v_9,{data:I.data,stateFns:f}))},
sectionHeaderViewModel:function(I){return _.H(e0,{fullBleed:!0,noVerticalPadding:!0},_.H(_.v_,{data:I.data}))}}))})))},"Zh");
yz5.idomCompat=!0;var e0=_.l(function(t){var E={};return _.H("div",{class:_.X5("ytPdpViewModelItem",(E.ytPdpViewModelFullBleed=t.fullBleed,E.ytPdpViewModelNoVerticalPadding=t.noVerticalPadding,E))},t.children)},"$h");_.k2(yz5,"pdp-view-model",{props:{data:_.uu,stateFnsForTesting:_.Cy,internalScrolling:_.Cy}});var SN8=_.l(function(t){var E=t.data;var p=t.className;var U=_.nd(_.ku,function(){return E().flowStateEntityKey});
return _.H("ytm-premium-purchase-button-renderer",{class:_.X5("ytPremiumPurchaseButtonRendererHost",p)},_.H(_.sY,{data:function(){var x;return(x=_.k(U(),Un7))==null?void 0:x.primaryButtonOverride}},{buttonRenderer:function(x){return _.H(_.OM,{data:x.data,
className:p})},
buttonViewModel:function(x){return _.H(_.D5,{data:x.data,className:p})}}))},"ai");
SN8.idomCompat=!0;var cz8=_.l(function(t){var E=t.data;t=t.className;var p=function(){return p98(E().style)},U=_.X5("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",p),x=_.X5("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",p);
return _.H("yt-flow-bottom-bar-renderer",{class:_.X5("yt-flow-bottom-bar-renderer",t,p)},_.H(_.sY,{data:function(){return E().secondaryButton}},{buttonRenderer:function(A){return _.H(_.OM,{data:A.data,
className:x})},
buttonViewModel:function(A){return _.H(_.D5,{data:A.data,className:x})},
premiumPurchaseButtonRenderer:function(A){return _.H(SN8,{data:A.data,className:x})}}),_.H(_.sY,{data:function(){return E().primaryButton}},{buttonRenderer:function(A){return _.H(_.OM,{data:A.data,
className:U})},
buttonViewModel:function(A){return _.H(_.D5,{data:A.data,className:U})},
premiumPurchaseButtonRenderer:function(A){return _.H(SN8,{data:A.data,className:U})}}))},"bi");
cz8.idomCompat=!0;_.k2(cz8,"yt-flow-bottom-bar-renderer",{props:{data:_.uu,className:_.uu}});var tXg=_.l(function(t){var E=_.X5(t.className,"ytOfferSummaryRendererHost");return _.H("yt-offer-summary-renderer",{class:E},_.H("div",{class:"ytOfferSummaryRendererTextContainer"},_.H("div",{class:"ytOfferSummaryRendererEyebrowText"},_.H(_.d8,{text:function(){return t.data().eyebrowText}})),_.H("div",{class:"ytOfferSummaryRendererTitle"},_.H(_.d8,{text:function(){return t.data().title}})),_.H("div",{class:"ytOfferSummaryRendererSubtitle"},_.H(_.d8,{text:function(){return t.data().subtitle}})),_.H("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.H(_.yG,{each:function(){var p;
return(p=t.data().featureListData)!=null?p:[]}},function(p){var U;
return _.H("div",{class:"ytOfferSummaryRendererFeatureList"},_.H(_.lz,{icon:(U=p.icon)==null?void 0:U.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"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.H("div",{class:"ytOfferSummaryRendererFeatureListText"},_.H(_.d8,{text:p.text,
className:function(){return p.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.H("div",{class:"ytOfferSummaryRendererDescription"},_.H(_.d8,{text:function(){return t.data().description}}))))},"ci");_.k2(_.l(function(t){var E={};E=_.X5("ytOfferSummaryFlowStepRendererHost",(E.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=t.shouldDisableHeaderTopMargin,E));return _.H("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:E},_.H("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.H("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.H(_.d8,{text:function(){return t.data().header}})),_.H("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.H(_.d8,{text:function(){return t.data().subtitle}}))),_.H("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.H(_.sY,{data:function(){return t.data().offerSummary}},{offerSummaryRenderer:function(p){return _.H(tXg,{data:p.data,
className:t.flowClassName})}})))},"di"),"yt-offer-summary-flow-step-renderer",{props:{data:_.Cy,
flowClassName:_.Cy,flowStateEntityKey:_.Cy,shouldDisableHeaderTopMargin:_.Cy}});var EGt=_.l(function(t){var E=t.data;var p=t.className;var U=t.flowStateEntityKey;var x=t.selectionStepStyle;t=_.aC(function(f){var B=E(),R=U==null?void 0:U();f.target&&(f.stopPropagation(),f=R||"",R=_.ku(_.Ro().getState(),f),B=Object.assign({},R,{premiumPurchaseFlowState:{selectedOptionId:B.optionId,primaryButtonOverride:B.primaryButtonOverride}}),_.Ro().dispatch(_.P9("flowStateEntity",f,B)));return!1});
var A=function(){return(U==null?void 0:U())||""},m=_.nd(_.ku,A);
_.A6(function(){var f=E(),B=A(),R=m();f.defaultSelected&&B!==""&&f.primaryButtonOverride&&xnJ(f.optionId||"",B,f.primaryButtonOverride,R)});
var b={};return _.H("ytm-option-item-renderer",{"on:click":t,class:_.X5(p,"ytm-option-item-renderer",(b["ytm-option-item-renderer--lp2-style"]=function(){return(x==null?void 0:x())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},b))},_.H("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.H("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var f=E(),B=A(),R=m();R=_.k(R,Un7);return(R?(R==null?void 0:R.selectedOptionId)||"":f.defaultSelected&&B!==""?(f==null?void 0:f.optionId)||"":"")===E().optionId},
name:("input"+_.mC(_.w$)).toString()})),_.H("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.H(_.sY,{data:function(){return E().titleBadge}},{badgeViewModel:function(f){return _.H(_.XN,{data:f.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.H(_.w,{cond:function(){return E().eyebrowText},
then:function(){return _.H("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.H(_.d8,{text:function(){return E().eyebrowText}}))}}),_.H("div",{class:"ytm-option-item-renderer__option-item-title"},_.H(_.d8,{text:function(){return E().title}})),_.H("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.H(_.d8,{text:function(){return E().subtitle}})),_.H(_.w,{cond:function(){return E().featureListData},
then:function(){return _.H("div",{class:"ytm-option-item-renderer__feature-list-data"},_.H(_.yG,{each:function(){return E().featureListData||[]}},function(f){var B,R=(B=f.icon)==null?void 0:B.iconType;
a:switch(f.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":B="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":B="ytm-option-item-renderer__feature-list-icon-small";break a;default:B="ytm-option-item-renderer__feature-list-icon-default"}return _.H("div",{class:"ytm-option-item-renderer__feature-list"},_.H(_.lz,{icon:R,className:B,active:function(){return f.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.H("div",{class:"ytm-option-item-renderer__feature-list-text"},_.H(_.d8,{text:f.text,
className:function(){return f.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.H("div",{class:"ytm-option-item-renderer__option-item-description"},_.H(_.d8,{text:function(){return E().description}}))))},"ei");var pz7=_.l(function(t){var E=t.data;var p=t.flowClassName;var U=t.flowStateEntityKey;var x=t.selectionStepStyle;return _.H("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.H("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.H("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.H(_.d8,{text:function(){return E().title}}),_.H(_.sY,{data:function(){return E().titleBadge}},{badgeViewModel:function(A){return _.H(_.XN,{data:A.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.H(_.w,{cond:function(){return E().subtitle},
then:function(){return _.H("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.H(_.d8,{text:function(){return E().subtitle}}))}}),_.H(_.w,{cond:function(){return E().featureListData},
then:function(A){return _.H("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.H(_.yG,{each:A},function(m){var b;return _.H("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.H(_.lz,{icon:(b=m.icon)==null?void 0:b.iconType,active:function(){return m.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(m.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"}}}),_.H("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.H(_.d8,{text:m.text,
className:function(){return m.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.H(_.w,{cond:function(){return E().secondaryTitle},
then:function(){return _.H("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.H(_.d8,{text:function(){return E().secondaryTitle}}))}}),_.H(_.yG,{each:function(){return E().sectionDisclaimers||[]}},function(A){return _.H("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.H(_.d8,{text:A}))})),_.H(_.sY,{data:function(){return E().optionItems}},{optionItemRenderer:function(A){return _.H("div",{class:"ytOptionSectionRendererOptionItem"},_.H(EGt,{data:A.data,
className:p,flowStateEntityKey:U,selectionStepStyle:x}))}}),_.H(_.w,{cond:function(){return E().offerText},
then:function(){return _.H("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.H(_.d8,{text:function(){return E().offerText}}))}}))},"fi");
pz7.idomCompat=!0;var UIK=_.l(function(t){var E=t.data;var p=t.flowClassName;var U=t.flowStateEntityKey;t=t.isDesktop;var x=_.EB("div"),A=function(){var R;return(R=E().flowStateEntityKey)!=null?R:U==null?void 0:U()},m=function(){return(A==null?void 0:A())||""},b=function(){return E().style},f=_.nd(_.ku,m);
_.A6(function(){A8g(E(),m(),f());setTimeout(function(){var R;(R=x.value)==null||R.focus()})});
var B={};return _.H("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.X5("ytm-option-selection-flow-step-renderer",(B["ytm-option-selection-flow-step-renderer--desktop"]=t,B["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return E().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},B))},_.H("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"},
_.H("div",{el:x,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.H(_.d8,{text:function(){return E().header}})),_.H("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.H(_.d8,{text:function(){return E().subtitle}}))),_.H(_.sY,{data:function(){return E().optionItems||[]}},{optionItemRenderer:function(R){return _.H("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.H(EGt,{data:R.data,
className:p,flowStateEntityKey:A,selectionStepStyle:b}))},
optionSectionRenderer:function(R){return _.H("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.H(pz7,{data:R.data,flowClassName:p,flowStateEntityKey:A,selectionStepStyle:b}))}}))},"gi");
UIK.idomCompat=!0;_.k2(UIK,"yt-option-selection-flow-step-renderer",{props:{data:_.uu,flowClassName:_.uu,flowStateEntityKey:_.uu,isDesktop:_.uu}});var FD=_.l(function(t){var E=_.C4(t,{type:1,disablePadding:!1,disablePrimaryButton:!1}),p=E.data,U=E.type;t=E.disablePadding;var x=E.disablePrimaryButton,A=E.onClickPrimaryButton,m=function(){return p().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},b=function(){return{disabled:x(),
state:x()?"disabled":"active"}},f=function(){return p().leadingLabel||p().trailingLabel};
E={};return _.H("yt-panel-footer-view-model",{class:_.X5("yt-panel-footer-view-model",(E["yt-panel-footer-view-model--hide-divider"]=function(){return p().shouldHideDivider},E["yt-panel-footer-view-model--disable-padding"]=t,E))},_.H(_.w,{cond:f,
then:function(){var B={},R={};return _.H("div",{class:_.X5("yt-panel-footer-view-model__text-row",(B["yt-panel-footer-view-model--row-bottom-padding"]=function(){var V=p();return!(!V.leadingLabel&&!V.trailingLabel||!V.primaryButton&&!V.secondaryButton)},B))},_.H(_.d8,{text:function(){return p().leadingLabel},
className:_.X5((R["yt-panel-footer-view-model--text-padding"]=f,R))}),_.H(_.d8,{text:function(){return p().trailingLabel}}))}}),_.H(_.w,{cond:m,
then:function(){var B={};return _.H("div",{class:"yt-panel-footer-view-model__button-stack"},_.H("div",{class:_.X5("yt-panel-footer-view-model__primary-button",(B["yt-panel-footer-view-model__button-stack--top-button"]=function(){return p().secondaryButton},B))},_.H(_.sY,{data:function(){return p().primaryButton}},{buttonViewModel:function(R){return _.H(_.D5,{data:R.data,
buttonOverrides:b,onClick:A})}})),_.H(_.sY,{data:function(){return p().secondaryButton}},{buttonViewModel:_.D5}))}}),_.H(_.w,{cond:function(){return!m()},
then:function(){var B={},R={},V={};return _.H("div",{class:_.X5("yt-panel-footer-view-model__button-row",(B["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===U()},B))},_.H("div",{class:_.X5("yt-panel-footer-view-model__button-row--left-button",(R["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===U()},R["yt-panel-footer-view-model__button-row--hidden"]=function(){return!p().secondaryButton||0===U()},R["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===U()},R))},_.H(_.sY,{data:function(){return p().secondaryButton}},{buttonViewModel:_.D5})),_.H("div",{class:_.X5("yt-panel-footer-view-model__primary-button",(V["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===U()||1===U()},V["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===U()},V))},_.H(_.sY,{data:function(){return p().primaryButton}},{buttonViewModel:function(Q){return _.H(_.D5,{data:Q.data,
buttonOverrides:b,onClick:A})}})))}}))},"hi");
FD.idomCompat=!0;var xIK=_.l(function(t){t=_.C4(t,{disablePadding:!1});var E=t.data,p=t.disablePadding;t=_.PM_(function(){return E().formId},void 0,function(){return E().onSubmitSuccess});
var U=t.submitForm,x=t.isValid,A=t.isSubmitting;return _.H("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.H(_.sY,{data:function(){return E().panelFooter}},{panelFooterViewModel:function(m){return _.H(FD,{data:m.data,
onClickPrimaryButton:function(){U()},
disablePrimaryButton:function(){return!x()||A()},
disablePadding:p})}}))},"ii");_.k2(xIK,"yt-form-footer-view-model",{props:{data:_.uu,disablePadding:_.uu}});var A_t=_.l(function(t){var E=_.r("enable_user_rating_web");return _.H("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.H("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.H(_.w,{cond:function(){var p;return(p=t.data())==null?void 0:p.image},
then:function(p){return _.H(_.Q9,{data:p,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.H("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.H(_.d8,{text:function(){var p;
return(p=t.data())==null?void 0:p.title}})),_.H("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.H(_.d8,{text:function(){var p;
return(p=t.data())==null?void 0:p.subtitle}})),_.H(_.w,{cond:function(){return!E},
then:function(){return _.H(_.sY,{data:function(){var p;return(p=t.data())==null?void 0:p.viewTipsButton}},{buttonViewModel:function(p){return _.H(_.D5,{data:p.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"ji");_.k2(A_t,"yt-contributor-zero-state-view-model",{props:{data:_.uu}});var Y3t=_.l(function(t){var E=function(){var p;return(p=t.data())==null?void 0:p.image};
return _.H("yt-featured-content-item-view-model",{class:_.X5("ytFeaturedContentItemViewModelHost")},_.H("div",{class:_.X5(function(){return E()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.H("div",{class:function(){return E()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.H(_.w,{cond:E,
then:function(){return _.H("div",{class:"ytFeaturedContentItemViewModelImage"},_.H(_.sY,{data:function(){return t.data().image}},{themedImageViewModel:function(p){return _.H(LOg,{data:p.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.H(_.w,{cond:function(){var p;
return!E()&&((p=t.data())==null?void 0:p.iconName)},
then:function(){return _.H("div",{class:"ytFeaturedContentItemViewModelIcon"},_.H(_.lz,{icon:function(){return t.data().iconName}}))}}),_.H("div",{class:"ytFeaturedContentItemViewModelContent"},_.H(_.w,{cond:function(){var p;
return(p=t.data())==null?void 0:p.title},
then:function(){return _.H("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.H(_.d8,{text:function(){return t.data().title}}))}}),_.H(_.w,{cond:function(){var p;
return(p=t.data())==null?void 0:p.body},
then:function(){return _.H("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.H(_.d8,{text:function(){return t.data().body}}))}})))))},"ki");var MXo=_.l(function(t){var E=function(){var x;return YYt((x=t.data())==null?void 0:x.titleFontSize)},p=function(){var x;
return Mw7((x=t.data())==null?void 0:x.descriptionFontSize)},U=function(){var x;
return((x=t.data())==null?void 0:x.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.H("yt-landing-page-view-model",{class:_.X5("ytLandingPageViewModelHost",t.className)},_.H("div",{class:"ytLandingPageViewModelHeader"},_.H(_.w,{cond:function(){var x;return(x=t.data())==null?void 0:x.bannerImage},
then:function(x){return _.H("div",{class:"ytLandingPageViewModelHeaderImage"},_.H(_.sY,{data:function(){return x()}},{imageBannerViewModel:function(A){return _.H(_.u2,{data:A.data,
isPositionRelative:!0})}}))}}),_.H(_.w,{cond:function(){var x;
return(x=t.data())==null?void 0:x.bannerAnimation},
then:function(x){return _.H(_.Wg,{data:function(){var A=x();if(A==null?0:A.url){var m;A={path:(m=A==null?void 0:A.url)!=null?m:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(A==null?0:A.payload){var b;A={animationData:JSON.parse((b=A==null?void 0:A.payload)!=null?b:""),autoplay:!0,loop:!0,renderer:"svg"}}else A=void 0;return{animationConfig:A}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.H("div",{class:"ytLandingPageViewModelHeaderTitle"},_.H(_.w,{cond:function(){var x;
return(x=t.data())==null?void 0:x.title},
then:function(x){return _.H("div",{class:_.X5("ytLandingPageViewModelHeaderTitleContent",E)},_.H(_.d8,{text:function(){return x()}}))}}),_.H(_.w,{cond:function(){var x;
return(x=t.data())==null?void 0:x.description},
then:function(x){var A={};return _.H(_.d8,{className:_.X5("ytLandingPageViewModelHeaderTitleDescription",p,(A.ytLandingPageViewModelHeaderTitleDescriptionMargin=U,A)),text:function(){return x()}})}}))),_.H(_.w,{cond:function(){var x,A;
return(x=t.data())==null?void 0:(A=x.featuredContentList)==null?void 0:A.length},
then:function(){return _.H("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.H(_.sY,{data:function(){return t.data().featuredContentList}},{featuredContentItemViewModel:function(x){return _.H(Y3t,{data:x.data})}}))}}),_.H(_.w,{cond:function(){var x,A;
return(x=t.data())==null?void 0:(A=x.expandableContentList)==null?void 0:A.length},
then:function(){return _.H("div",{class:"ytLandingPageViewModelFaqSection"},_.H(_.sY,{data:function(){return t.data().expandableContentList}},{faqEntryViewModel:function(x){return _.H("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.H(_.tN0,{data:x.data}))}}))}}),_.H("div",{class:"ytLandingPageViewModelFooter"},_.H(_.w,{cond:function(){var x;
return(x=t.data())==null?void 0:x.legalCopy},
then:function(x){return _.H("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.H(_.d8,{text:function(){return x()}}))}}),_.H(_.w,{cond:function(){var x;
return(x=t.data())==null?void 0:x.actions},
then:function(x){return _.H("div",null,_.H(_.sY,{data:function(){return x()}},{flexibleActionsViewModel:function(A){return _.H(_.wl,{data:A.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"li");_.k2(_.l(function(t){return _.H("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.H("div",{class:"ytLpSectionGroupViewModelContainer"},_.H(_.sY,{data:function(){return t.data().sections}},{landingPageViewModel:function(E){return _.H(MXo,{data:E.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"mi"),"yt-lp-section-group-view-model",{props:{data:_.uu}});var mI5=_.l(function(t){var E=t.data;var p=t.selectedKey;var U=t.onSelected;var x=t.groupName;var A=function(){return E().text},m=function(){return E().attributedText},b=function(){return E().subtext},f=function(){return E().attributedSubtext},B=_.H("div",{class:"ytRadioButtonItemViewModelLabel"},_.H(_.w,{cond:A,
then:function(){return _.H("div",null,A)}}),_.H(_.w,{cond:m,
then:function(){return _.H(_.d8,{text:m})}}),_.H(_.w,{cond:b,
then:function(){return _.H("div",{class:"ytRadioButtonItemViewModelSubText"},b)}}),_.H(_.w,{cond:f,
then:function(){return _.H("div",{class:"ytRadioButtonItemViewModelSubText"},_.H(_.d8,{text:f}))}})),R=function(){if(m()){var Q;
return(Q=m())==null?void 0:Q.content}return A()},V=function(){if(f()){var Q;
return(Q=f())==null?void 0:Q.content}return b()};
t={};return _.H("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.H(_.Cv,{name:x,checked:function(){return!(p==null||!p()||E().key!==(p==null?void 0:p()))},
onChange:function(Q){U==null||U(Q.target,E(),x==null?void 0:x())},
labelRenderable:function(){return B},
ariaLabel:function(){return V()?R()+", "+V():R()},
className:_.X5((t.ytRadioButtonItemViewModelSubTitle=function(){return!!E().subtext},t))}))},"ni");var b85=_.l(function(t){var E=t.data,p=t.onSelected,U=t.selectedKey,x=t.groupName;t=t.className;var A=_.M(_.Py(!1,void 0,"mDtSad")),m=A.next().value,b=A.next().value,f=function(){if(U!==void 0){var B=U();return!(!B||E().key!==B)}return m()};
A=_.aC(function(B){p?p(B.currentTarget,E(),x==null?void 0:x()):b(!m())});
return _.H("yt-selectable-item-view-model",{class:_.X5("ytSelectableItemViewModelHost",t,"ytSelectableItemViewModelContainer"),"on:click":A,"prop:checked":f},_.H(_.sY,{data:function(){return E().content}},{cardViewModel:function(B){return _.H(La8,{data:B.data,
isSelected:f})}}))},"oi");var i8g=_.l(function(t){var E=t.data;var p=t.onSelected;var U=t.selectedKey;var x=t.groupName;var A=function(){return(x==null?void 0:x())||E().key};
return _.H("yt-radio-button-group-view-model",{class:_.X5("ytRadioButtonGroupViewModelHost",t.className)},_.H("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.H(_.sY,{data:function(){return E().radioButtons}},{radioButtonItemViewModel:function(m){return _.H(mI5,{data:m.data,
onSelected:p,selectedKey:U,groupName:A})},
selectableItemViewModel:function(m){return _.H(b85,{data:m.data,onSelected:p,selectedKey:U,groupName:A})}})))},"pi");var q3K=_.l(function(t){_.A6(function(){if(t.controlledMode()&&t.data().defaultSelected)_.bV(Error("El"));else{var A;!t.controlledMode()&&((A=t.selected)==null?0:A.call(t))&&_.bV(Error("Fl"))}});
var E=_.M(_.j5(function(){if(!t.controlledMode())return t.data().defaultSelected})),p=E.next().value,U=E.next().value,x=function(){if(!t.controlledMode())return p();
var A;return(A=t.selected)==null?void 0:A.call(t)};
return _.H("yt-checkbox-item-view-model",{class:_.X5("ytCheckboxItemViewModelHost",t.className)},_.H(_.jB,{data:function(){var A=t.data(),m=x();return{title:A.text,subtitle:A.subtext,superlabel:A.superlabel,isSelected:!!m,isDisabled:A.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!t.controlledMode()&&U(!p());var A,m;(m=t.onTap)==null||m.call(t,!!x(),t.data(),(A=t.groupName)==null?void 0:A.call(t))},
isCompact:t.isCompact,disableHorizontalPadding:t.disableHorizontalPadding}))},"qi");var H8t=_.l(function(t){var E=t.data;var p=t.controlledMode;var U=t.selectedKeys;var x=t.onItemTap;var A=t.groupName;var m=t.disableHorizontalPadding;var b=function(){return(A==null?void 0:A())||E().key};
_.A6(function(){p()&&E().defaultSelectedKeys?_.bV(Error("Gl")):!p()&&(U==null?0:U())&&_.bV(Error("Hl"))});
t=_.M(_.j5(function(){if(!p())return E().defaultSelectedKeys}));
var f=t.next().value,B=t.next().value,R=function(V,Q,C){V=[];!p()&&Q.key&&(V=mn7(Q.key,f()||[]),B(V));x==null||x(Q,V,C)};
return _.H("yt-checkbox-group-view-model",{class:_.X5("ytCheckboxGroupViewModelHost")},_.H("fieldset",{class:_.X5("ytCheckboxGroupViewModelFieldset")},_.H("div",{role:"list"},_.H(_.sY,{data:function(){return E().checkboxes}},{checkboxItemViewModel:function(V){var Q=V.data;
return _.H(q3K,{data:Q,controlledMode:!0,selected:function(){var C=p()?(U==null?void 0:U())||[]:f()||[],d=Q().key;return d?C.includes(d):!1},
onTap:R,groupName:b,disableHorizontalPadding:m})}}))))},"ri");var zL=_.l(function(t){var E=_.nd(bdJ,_.Ql(function(){var b;return(b=t.data())==null?void 0:b.noteFeedEntityKey},"")),p=_.nd(Tu9,_.Ql(function(){var b;
return(b=t.data())==null?void 0:b.userRatingEntityKey},"")),U=_.r("enable_user_rating_web"),x=function(){var b,f,B;
return((b=E())==null?0:b.contributorNote)?(f=E())==null?void 0:f.contributorNote:(B=t.data())==null?void 0:B.existingNote},A=function(){var b,f;
return!!p()&&!!idl((b=p())==null?void 0:b.helpfulnessValue,(f=t.data())==null?void 0:f.noteData)};
if(U){var m={};return _.H("yt-note-view-model",{class:_.X5("ytNoteViewModelHostUserRating",(m.ytNoteViewModelHostUserRatingPublishedNote=function(){var b,f,B,R;return((b=t.data())==null?void 0:(f=b.noteData)==null?void 0:f.isPublished)&&!((B=t.data())==null?0:(R=B.noteData)==null?0:R.isUserRatingForm)},m))},_.H("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.H("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.H(_.w,{cond:function(){var b,f;
return(b=t.data())==null?void 0:(f=b.noteData)==null?void 0:f.isPinned},
then:function(){return _.H(_.lz,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.H(_.w,{cond:function(){var b,f;return(b=t.data())==null?void 0:(f=b.noteData)==null?void 0:f.isPublished},
then:function(){return _.H(_.lz,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.H(_.sY,{data:function(){var b;
return(b=t.data())==null?void 0:b.metadata}},{contentMetadataViewModel:_.sM}),_.H("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var b,f;
return(f=_.k((b=t.data())==null?void 0:b.metadata,_.rT0))==null?void 0:f.delimiter}),_.H(_.d8,{text:function(){var b;
return(b=x())==null?void 0:b.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.H(_.w,{cond:function(){var b,f;return!((b=t.data())==null?0:(f=b.noteData)==null?0:f.isUserRatingForm)},
then:function(){return _.H(_.sY,{data:function(){var b,f,B,R,V,Q,C,d=!!((b=t.data())==null?0:(f=b.noteData)==null?0:f.isPinned);b=A();f=(B=t.data())==null?void 0:B.noteData;B=(R=E())==null?void 0:(V=R.contributorNote)==null?void 0:V.deleteAction;R=(Q=t.data())==null?void 0:Q.overflowButtonNoteWithRatingOnTapOverride;Q=(C=t.data())==null?void 0:C.overflowButton;var I;C=(I=_.k(Q,_.Cz))==null?void 0:I.accessibilityText;return d?qYo(f,B,C):b?{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:R,accessibilityText:C}}:Q}},{buttonViewModel:function(b){return _.H(_.D5,{data:b.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.H("div",{class:"ytNoteViewModelNoteContent"},_.H(_.d8,{text:function(){var b;
return(b=x())==null?void 0:b.text}})),_.H(_.w,{cond:function(){var b,f,B,R;
return!((b=t.data())==null?0:(f=b.noteData)==null?0:f.isPinned)&&!((B=t.data())==null?0:(R=B.noteData)==null?0:R.isUserRatingForm)},
then:function(){return _.H(_.w,{cond:A,then:function(){return _.H("div",{class:"ytNoteViewModelUserRatingContainer"},_.H(_.d8,{text:function(){var b,f;return idl((b=p())==null?void 0:b.helpfulnessValue,(f=t.data())==null?void 0:f.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.H(_.sY,{data:function(){var b;return(b=t.data())==null?void 0:b.userRatingButton}},{buttonViewModel:function(b){return _.H(_.D5,{data:b.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.H(_.w,{cond:function(){var b,f,B,R;
return!((b=t.data())==null?0:(f=b.noteData)==null?0:f.ignoreDivider)&&!((B=t.data())==null?0:(R=B.noteData)==null?0:R.isUserRatingForm)},
then:function(){return _.H("div",{class:"ytNoteViewModelDivider"},_.H(_.sY,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(b){return _.H(_.VNp,{data:b.data})}}))}}))}return _.H("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.H("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.H("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.H(_.w,{cond:function(){var b,f;return(b=t.data())==null?void 0:(f=b.noteData)==null?void 0:f.isPinned},
then:function(){return _.H(_.lz,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.H(_.w,{cond:function(){var b,f;return(b=t.data())==null?void 0:(f=b.noteData)==null?void 0:f.isPublished},
then:function(){return _.H(_.lz,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.H(_.w,{cond:function(){return U},
then:function(){return _.H(_.sY,{data:function(){var b;return(b=t.data())==null?void 0:b.metadata}},{contentMetadataViewModel:function(b){return _.H(_.sM,{data:b.data})}})}}),_.H(_.d8,{text:function(){var b,f;
return(b=t.data())==null?void 0:(f=b.noteData)==null?void 0:f.headerText}}),_.H("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.H(_.d8,{text:function(){var b,f;
return(b=t.data())==null?void 0:(f=b.noteData)==null?void 0:f.delimiter}})),_.H(_.d8,{text:function(){var b,f;
return(b=E())==null?void 0:(f=b.contributorNote)==null?void 0:f.publishedTimeText}})),_.H(_.sY,{data:function(){var b,f,B;
return qYo((b=t.data())==null?void 0:b.noteData,(f=E())==null?void 0:(B=f.contributorNote)==null?void 0:B.deleteAction)}},{buttonViewModel:function(b){return _.H(_.D5,{data:b.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.H("div",{class:"ytNoteViewModelNoteContent"},_.H(_.d8,{text:function(){var b,f;
return(b=E())==null?void 0:(f=b.contributorNote)==null?void 0:f.text}})))},"si");
zL.idomCompat=!0;_.k2(_.l(function(t){var E=_.Ql(function(){var F;return(F=t.data())==null?void 0:F.flowStateEntityKey},""),p=_.nd(_.ku,E),U=_.nd(bdJ,_.Ql(function(){var F;
return(F=t.data())==null?void 0:F.noteFeedEntityKey},"")),x=_.M(_.j5(function(){var F;
return(F=_.k(t.data().helpfulnessValue,tk9))==null?void 0:F.defaultSelectedKey})),A=x.next().value,m=x.next().value;
x=_.M(_.j5(function(){var F,L,D;return(D=_.k((F=_.k(t.data().helpfulnessValue,tk9))==null?void 0:(L=F.radioButtons)==null?void 0:L.find(function(W){var K;return((K=_.k(W,E45))==null?void 0:K.key)===A()}),E45))==null?void 0:D.value}));
var b=x.next().value,f=x.next().value;x=_.M(_.j5(function(){var F;return(F=_.k(t.data().helpfulReasons,cxb))==null?void 0:F.defaultSelectedKeys}));
var B=x.next().value,R=x.next().value;x=_.M(_.j5(function(){var F;return(F=_.k(t.data().notHelpfulReasons,cxb))==null?void 0:F.defaultSelectedKeys}));
var V=x.next().value,Q=x.next().value,C=function(F,L){m(L.key);f(L.value);R([]);Q([])},d=function(){var F,L;
return((F=b())==null?void 0:F.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((L=b())==null?void 0:L.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},I=function(){var F,L;
return((F=b())==null?void 0:F.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((L=b())==null?void 0:L.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},O=function(F){Hd8(F.key,B,R)},a=function(F){Hd8(F.key,V,Q)};
_.A6(function(){var F,L,D;sKd((F=t.data())==null?void 0:(L=F.userRatingFormSchema)==null?void 0:L.id,{isValid:function(){return!!A()},
formData:function(){var W=b(),K=BGb(B(),_.k(t.data().helpfulReasons,cxb)),v=BGb(V(),_.k(t.data().notHelpfulReasons,cxb));W={helpfulnessValue:W==null?void 0:W.noteHelpfulnessValue};if(K){W.helpfulReasons=[];K=_.M(K);for(var YL=K.next();!YL.done;YL=K.next()){YL=YL.value;var bY=void 0;if((bY=YL)==null?0:bY.noteHelpfulReason)bY=void 0,W.helpfulReasons.push((bY=YL)==null?void 0:bY.noteHelpfulReason)}}if(v)for(W.notHelpfulReasons=[],v=_.M(v),K=v.next();!K.done;K=v.next())if(K=K.value,YL=void 0,(YL=K)==
null?0:YL.noteNotHelpfulReason)YL=void 0,W.notHelpfulReasons.push((YL=K)==null?void 0:YL.noteNotHelpfulReason);return{userRatingFormData:W}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(D=_.k(p(),uG5))==null?void 0:D.submitFormParams},onSubmitResult:function(){var W,K=(W=_.k(p(),uG5))==null?void 0:W.userRatingEntityKey,v;W={key:K,helpfulnessValue:(v=b())==null?void 0:v.noteHelpfulnessValue};K&&_.Vl(_.P9("contextNoteUserRatingEntityPayload",K,W));var YL;K=(YL=t.data())==null?void 0:YL.viewNoteFlowStepId;var bY;if((bY=U())==null||!bY.contributorNote){var kL;K=(kL=t.data())==null?void 0:kL.zeroStateFlowStepId}(YL=
Object.assign({},p()))&&K&&(YL.currentStepId=K,YL.stepIdStack=[K],_.Vl(_.P9("flowStateEntity",E(),YL)));var R0;(YL=(R0=t.data())==null?void 0:R0.ratingSubmittedSnackbarCommand)&&_.bz(YL)},
disableDuringSubmission:!0})});
return _.H("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.H(_.sY,{data:function(){var F=_.k(p(),uG5);if(F){var L;var D={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:F==null?void 0:(L=F.note)==null?void 0:L.headerText}]}],delimiter:"\u2022"}},existingNote:F.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else D=void 0;return D}},{noteViewModel:function(F){return _.H("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.H(zL,{data:F.data}))}}),_.H(_.sY,{data:function(){var F;
return(F=t.data())==null?void 0:F.helpfulnessValue}},{radioButtonGroupViewModel:function(F){return _.H("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.H(i8g,{data:F.data,
onSelected:C,selectedKey:A}))}}),_.H(_.w,{cond:d,
then:function(){return _.H("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.H("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.H(_.d8,{text:function(){var F;return(F=t.data())==null?void 0:F.helpfulReasonQuestion}})),_.H(_.sY,{data:function(){var F;
return(F=t.data())==null?void 0:F.helpfulReasons}},{checkboxGroupViewModel:function(F){return _.H(H8t,{data:F.data,
onItemTap:O,selectedKeys:B,controlledMode:!0})}}))}}),_.H(_.w,{cond:I,
then:function(){return _.H("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.H("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.H(_.d8,{text:function(){var F;return(F=t.data())==null?void 0:F.notHelpfulReasonQuestion}})),_.H(_.sY,{data:function(){var F;
return(F=t.data())==null?void 0:F.notHelpfulReasons}},{checkboxGroupViewModel:function(F){return _.H(H8t,{data:F.data,
onItemTap:a,selectedKeys:V,controlledMode:!0})}}))}}),_.H(_.w,{cond:function(){return!d()&&!I()},
then:function(){return _.H(_.sY,{data:function(){var F;return(F=t.data())==null?void 0:F.helpfulNoteFeatures}},{alertBannerViewModel:function(F){return _.H("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.H(_.dz3,{data:F.data}))}})}}))},"ti"),"yt-note-user-rating-view-model",{props:{data:_.uu}});_.k2(zL,"yt-note-view-model",{props:{data:_.uu}});_.k2(_.l(function(t){var E=_.nd(bdJ,_.Ql(function(){var p;return(p=t.data())==null?void 0:p.noteFeedEntityKey},""));
return _.H("yt-notes-wrapper-view-model",{class:_.X5("ytNotesWrapperViewModelHost")},_.H(_.w,{cond:function(){var p,U,x;return!((p=t.data())==null||!p.existingNotes)||!((U=t.data())==null||!U.currentNote)&&!((x=E())==null||!x.contributorNote)},
then:function(){return _.H(_.Oj,null,_.H(_.sY,{data:function(){var p,U,x,A;return((U=_.k((p=t.data())==null?void 0:p.currentNote,JsJ))==null?0:(x=U.noteData)==null?0:x.isPublished)?(A=t.data())==null?void 0:A.currentNote:void 0}},{noteViewModel:function(p){return _.H(zL,{data:p.data})}}),_.H(_.sY,{data:function(){var p;
return(p=t.data())==null?void 0:p.existingNotes}},{noteViewModel:function(p){var U=p.data;
return _.H(_.w,{cond:function(){var x,A;return(x=U())==null?void 0:(A=x.noteData)==null?void 0:A.isPublished},
then:function(){return _.H(zL,{data:U})}})}}),_.H(_.sY,{data:function(){var p,U,x,A,m;
return((U=_.k((p=t.data())==null?void 0:p.currentNote,JsJ))==null?0:(x=U.noteData)==null?0:x.isPublished)||(A=E())==null||!A.contributorNote?void 0:(m=t.data())==null?void 0:m.currentNote}},{noteViewModel:function(p){return _.H(zL,{data:p.data})}}),_.H(_.sY,{data:function(){var p;
return(p=t.data())==null?void 0:p.existingNotes}},{noteViewModel:function(p){var U=p.data;
return _.H(_.w,{cond:function(){var x,A;return!((x=U())==null?0:(A=x.noteData)==null?0:A.isPublished)},
then:function(){return _.H(zL,{data:U})}})}}))},
else:function(){return _.H(_.sY,{data:function(){var p;return(p=t.data())==null?void 0:p.zeroStateData}},{contributorZeroStateViewModel:A_t})}}))},"ui"),"yt-notes-wrapper-view-model",{props:{data:_.uu}});var Br7=_.l(function(t){var E=_.C4(t,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0,ariaLabel:void 0,timePickerData:void 0,hasError:!1}),p=E.label,U=E.text,x=E.placeholder,A=E.hint;t=E.rows;var m=E.overflowStyle,b=E.outline,f=E.disabled,B=E.disableNewLines,R=E.characterLimit,V=E.validation,Q=E.onInput,C=E.ariaLabel,d=E.timePickerData,I=E.hasError,O=_.EB("textarea");E=_.M(_.j5(function(){return U()}));
var a=E.next().value,F=E.next().value;E=_.M(_.Py(!1,void 0,"Z8Zese"));var L=E.next().value,D=E.next().value,W=function(){D(!0)},K=function(){D(!1)};
_.A6(function(){var ps=O.value,$L=m(),Cs=a();$L==="expand-vertically"&&Cs&&w9J(ps);O.value.addEventListener("focusin",W);O.value.addEventListener("focusout",K)});
_.iK(function(){O.value.removeEventListener("focusin",W);O.value.removeEventListener("focusout",K)});
var v=function(){var ps;return(ps=V())==null?void 0:ps.validate(a())},YL=function(){return R()&&!v()&&a().length>R().maxChars},bY=function(){return!!v()||YL()||I()};
E=_.aC(function(ps){if(!ps.currentTarget)return!1;ps=ps.currentTarget;F(ps.value);m()==="expand-vertically"&&w9J(ps);Q==null||Q(ps.value);return!0});
var kL=_.aC(function(ps){B()&&ps.key==="Enter"&&ps.preventDefault();return!1}),R0=_.aC(function(){O.value.focus()}),j$=function(){return x()||p()},lY={},Tt={},si={},Q0={};
return _.H("textarea-shape",{class:_.X5("ytStandardsTextareaShapeHost",(lY.ytStandardsTextareaShapeTimePicker=function(){var ps;return(ps=d())==null?void 0:ps.useTimePickerStyles},lY))},_.H("div",{class:_.X5("ytStandardsTextareaShapeTextareaContainer",(Tt.ytStandardsTextareaShapeTextareaContainerOutline=b,Tt.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=f,Tt.ytStandardsTextareaShapeTextareaContainerOutlineError=bY,Tt)),
"on:click":R0},_.H("label",{class:_.X5("ytStandardsTextareaShapeLabel",(si.ytStandardsTextareaShapeLabelFocused=L,si.ytStandardsTextareaShapeLabelDisabled=f,si.ytStandardsTextareaShapeLabelError=function(){return bY()&&!f()},si.ytStandardsTextareaShapeLabelHidden=function(){return!L()&&!a()&&!!j$()},si))},p),_.H("div",{class:_.X5("ytStandardsTextareaShapePlaceholder",(Q0.ytStandardsTextareaShapePlaceholderVisible=function(){return!L()&&!a()},Q0)),
"aria-hidden":"true"},j$),_.H("textarea",{el:O,"aria-label":C,class:"ytStandardsTextareaShapeTextarea",rows:t,disabled:f,placeholder:j$,"prop:value":a,"on:input":E,"on:keydown":kL})),_.H(_.w,{cond:function(){return A()&&!bY()},
then:function(){var ps={};return _.H("div",{class:_.X5("ytStandardsTextareaShapeHint",(ps.ytStandardsTextareaShapeHintDisabled=f,ps))},_.H("div",{class:"ytStandardsTextareaShapeHintHintMessage"},A))}}),_.H(_.w,{cond:v,
then:function(){return _.H(fLb,{disabled:f},_.H("div",{class:"ytStandardsTextareaShapeErrorMessage"},v))}}),_.H(_.w,{cond:R,
then:function(ps){return _.H(_.w,{cond:YL,then:function(){return _.H(fLb,{disabled:f},_.H("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return ps().errorMessage}),_.H("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return a().length+"/"+ps().maxChars}))}})}}))},"vi");
Br7.idomCompat={callbacks:{onInput:!0}};var fLb=_.l(function(t){var E={};return _.H("div",{class:_.X5("ytStandardsTextareaShapeError",(E.ytStandardsTextareaShapeErrorDisabled=t.disabled,E)),role:"alert"},_.H(_.lz,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),t.children)},"wi");var wzt=_.l(function(t){var E=t.data;return _.H("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.H(Br7,{text:t.text,label:function(){var p;return(p=E().contentProperties)==null?void 0:p.labelText},
placeholder:function(){var p;return(p=E().contentProperties)==null?void 0:p.placeholderText},
hint:function(){var p;return(p=E().contentProperties)==null?void 0:p.hintText},
outline:function(){var p;return!((p=E().displayProperties)==null?0:p.hideBorder)},
overflowStyle:function(){var p;return((p=E().displayProperties)==null?0:p.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:t.disabled,disableNewLines:function(){var p;return(p=E().displayProperties)==null?void 0:p.disableNewLines},
onInput:t.onInput,characterLimit:t.characterLimit,validation:t.validation,rows:function(){var p;return(p=E().displayProperties)==null?void 0:p.rows}}))},"xi");var R4L=_.l(function(t){var E=t.data;return _.H("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.H(Br7,{text:t.text,label:function(){var p;return(p=E().contentProperties)==null?void 0:p.labelText},
placeholder:function(){var p;return(p=E().contentProperties)==null?void 0:p.placeholderText},
hint:function(){var p;return(p=E().contentProperties)==null?void 0:p.hintText},
outline:function(){var p;return!((p=E().displayProperties)==null?0:p.hideBorder)},
overflowStyle:function(){var p;return((p=E().displayProperties)==null?0:p.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var p;return(p=E().displayProperties)==null?void 0:p.disableNewLines},
onInput:t.onInput,characterLimit:t.characterLimit,validation:t.validation,rows:function(){var p;return(p=E().displayProperties)==null?void 0:p.rows}}))},"yi");var VXe=_.l(function(t){var E=_.M(_.j5(function(){var bY,kL;return((bY=t.data().structuredContextNoteFormSchema)==null?0:(kL=bY.initialValues)==null?0:kL.noteBody)?t.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),p=E.next().value,U=E.next().value;
E=_.M(_.j5(function(){t.data();return!1}));
var x=E.next().value,A=E.next().value;E=_.M(_.j5(function(){t.data();return!1}));
var m=E.next().value,b=E.next().value;E=_.M(_.j5(function(){var bY,kL;return((bY=t.data().structuredContextNoteFormSchema)==null?0:(kL=bY.initialValues)==null?0:kL.timestamp)?t.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var f=E.next().value,B=E.next().value;E=_.M(_.j5(function(){t.data();return!1}));
var R=E.next().value,V=E.next().value;E=_.M(_.j5(function(){var bY,kL;return((bY=t.data().structuredContextNoteFormSchema)==null?0:(kL=bY.initialValues)==null?0:kL.sources)?[t.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var Q=E.next().value,C=E.next().value;E=_.M(_.j5(function(){t.data();return!1}));
var d=E.next().value,I=E.next().value;E=_.M(_.j5(function(){return!1}));
var O=E.next().value,a=E.next().value;_.A6(function(){var bY;LtC((bY=t.data().structuredContextNoteFormSchema)==null?void 0:bY.id,{isSubmitting:O,onSubmit:function(){a(!0);var kL=u0l(p(),f(),Q(),t.data()),R0=_.X3().resolve(_.ei);kL&&R0&&R0.resolveCommand(kL,{commandController:{onSuccess:function(){a(!1)}}})},
isValid:function(){return x()&&!m()&&!R()&&!d()}})});
var F=function(bY){if(bY!==void 0&&(U(bY),!x()&&bY.length>0&&A(!0),x())){var kL=Qn7(t.data());if(kL){var R0=kL.minLength;kL=kL.maxLength;R0&&bY.length<R0?b(!0):kL&&bY.length>kL?b(!0):b(!1)}}},L=function(bY){if(bY!==void 0){B(bY);
if(bY.length>0){var kL,R0,j$,lY,Tt=jnt((kL=t.data())==null?void 0:(R0=kL.structuredContextNoteFormSchema)==null?void 0:(j$=R0.fieldSchemas)==null?void 0:(lY=j$.timestamp)==null?void 0:lY.validationSchema);if(Tt&&(kL=Tt.regex)&&!(new RegExp(kL)).test(bY)){V(!0);return}}V(!1)}},D=function(bY){if(bY!==void 0){var kL=bY.split(/[ \n]/).map(function(R0){return R0.trim()});
C(kL);if(bY.length>0)for(bY=_.M(kL),kL=bY.next();!kL.done;kL=bY.next())if(!dno(kL.value)){I(!0);return}I(!1)}},W=function(){return{validate:function(bY){if(x()){var kL=Qn7(t.data());
if(kL){var R0=kL.minLength;kL=kL.translations;if(R0&&bY.length<R0)return kL==null?void 0:kL.minLengthErrorMessage}}}}},K=function(){var bY=Qn7(t.data()),kL=bY==null?void 0:bY.maxLength,R0;
bY=bY==null?void 0:(R0=bY.translations)==null?void 0:R0.maxLengthErrorMessage;if(kL&&bY)return{maxChars:kL,errorMessage:bY}},v=function(){return{validate:function(bY){if(bY){var kL,R0,j$,lY,Tt=jnt((kL=t.data())==null?void 0:(R0=kL.structuredContextNoteFormSchema)==null?void 0:(j$=R0.fieldSchemas)==null?void 0:(lY=j$.timestamp)==null?void 0:lY.validationSchema);
if(Tt&&(kL=Tt.regex,Tt=Tt.translations,kL&&!(new RegExp(kL)).test(bY)))return Tt==null?void 0:Tt.regexErrorMessage}}}},YL=function(){return{validate:function(bY){if(bY){var kL,R0,j$,lY,Tt=kEd((kL=t.data())==null?void 0:(R0=kL.structuredContextNoteFormSchema)==null?void 0:(j$=R0.fieldSchemas)==null?void 0:(lY=j$.sources)==null?void 0:lY.validationSchema);
if(Tt&&(kL=Tt.translations,kL==null?0:kL.selectedErrorMessage))for(bY=bY.split(/[ \n]/).map(function(si){return si.trim()}),bY=_.M(bY),R0=bY.next();!R0.done;R0=bY.next())if(!dno(R0.value))return bY=void 0,(bY=kL)==null?void 0:bY.selectedErrorMessage}}}};
return _.H("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.H("div",{class:"ytStructuredContextNoteViewModelTextField"},_.H(_.sY,{data:function(){var bY;return(bY=t.data())==null?void 0:bY.noteContents}},{textFormFieldViewModel:function(bY){return _.H(R4L,{data:bY.data,
onInput:F,validation:W,characterLimit:K})},
textFieldViewModel:function(bY){return _.H(wzt,{data:bY.data,onInput:F,validation:W,characterLimit:K})}})),_.H("div",{class:"ytStructuredContextNoteViewModelTextField"},_.H(_.sY,{data:function(){var bY;
return(bY=t.data())==null?void 0:bY.noteTimestamp}},{textFormFieldViewModel:function(bY){return _.H(R4L,{data:bY.data,
onInput:L,validation:v})},
textFieldViewModel:function(bY){return _.H(wzt,{data:bY.data,onInput:L,validation:v})}})),_.H("div",{class:"ytStructuredContextNoteViewModelTextField"},_.H(_.sY,{data:function(){var bY;
return(bY=t.data())==null?void 0:bY.noteSources}},{textFormFieldViewModel:function(bY){return _.H(R4L,{data:bY.data,
onInput:D,validation:YL})},
textFieldViewModel:function(bY){return _.H(wzt,{data:bY.data,onInput:D,validation:YL})}})))},"zi");
VXe.idomCompat=!0;_.k2(VXe,"yt-structured-context-note-view-model",{props:{data:_.uu}});var QwL=_.l(function(t){var E=_.M(_.j5(function(){var A;if((A=t.controlled)==null?0:A.call(t))return[];var m;return(((m=t.data())==null?void 0:m.chips)||[]).map(function(b){b=_.k(b,_.j3);if(b==null?0:b.selected)return J8J(b.chipValue)}).filter(function(b){return b!==void 0})})),p=E.next().value,U=E.next().value,x=function(A){var m=J8J(A.chipValue);
if(m!==void 0){var b;if((b=t.controlled)==null?0:b.call(t))return void t.controlled().onTap(m);A=p().includes(m)?[].concat(_.KB(p().filter(function(B){return B!==m}))):[].concat(_.KB(p()),[m]);
U(A);var f;if((f=t.uncontrolled)==null?0:f.call(t))t.uncontrolled().onUpdate(A)}};
return _.H("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost",role:"tablist"},_.H(_.yG,{each:function(){return t.data().chips||[]}},function(A){return _.H("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.H(_.NKG,{data:function(){return _.k(A,_.j3)},
selected:function(){var m;if(m=_.k(A,_.j3)){var b=J8J(m.chipValue);if(b!==void 0){var f;m=((f=t.controlled)==null?0:f.call(t))?t.controlled().selectedValues.includes(b):p().includes(b)}else m=void 0}else m=!1;return m},
callback:x}))}))},"Ai");var CTC=_.l(function(t){var E=t.data;var p=function(){var b;return((b=E())==null?void 0:b.flowStateKey)||""},U=_.nd(_.ku,p),x=function(){var b;
return(b=_.k(U(),Wkl))==null?void 0:b.chips},A=function(b){if(b!==void 0){var f=x()||[];
f=f.find(function(B){return B===b})?f.filter(function(B){return B!==b}):[].concat(_.KB(f),[b]);
f=Object.assign({},U(),{feedbackFormFlowState:Object.assign({},_.k(U(),Wkl),{chips:f})});_.Vl(_.P9("flowStateEntity",p(),f))}},m=function(){var b;
return _.k((b=E())==null?void 0:b.inputBox,$9J)};
t=_.tI(function(b){var f=m();f=!(f==null?0:f.maxChars)||b.length<=f.maxChars;b=Object.assign({},U(),{feedbackFormFlowState:Object.assign({},_.k(U(),Wkl),{detail:b}),abuseReportFlowState:Object.assign({},_.k(U(),XZ),{navigationEnabled:f})});_.Vl(_.P9("flowStateEntity",p(),b))},150);
return _.H("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.H("div",{class:"ytFeedbackFormViewModelChips"},_.H(_.sY,{data:function(){var b;return(b=E())==null?void 0:b.chipSelection}},{chipSelectionFormFieldViewModel:function(b){return _.H(QwL,{data:b.data,
controlled:function(){return{selectedValues:x()||[],onTap:A}}})}})),_.H("div",{class:"ytFeedbackFormViewModelInputBox"},_.H(Br7,{text:function(){var b;
return(b=_.k(U(),Wkl))==null?void 0:b.detail},
placeholder:function(){var b;return((b=m())==null?void 0:b.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var b=m();if(b&&b.maxChars)return{maxChars:b.maxChars,errorMessage:b.maxCharsExceededErrorMessage||""}},
onInput:t})),_.H("div",{class:"ytFeedbackFormViewModelFooterText"},_.H(_.d8,{text:function(){return E().footerText}})))},"Bi");
CTC.idomCompat=!0;_.k2(CTC,"yt-feedback-form-view-model",{props:{data:_.uu}});var jwJ=_.l(function(t){var E=t.data;var p=_.nd(lUt,function(){return E().flowStateKey||""}),U=function(){var x;
_.bz((x=_.k(p(),XZ))==null?void 0:x.navigationCommand)};
return _.H("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.H("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.H(_.sY,{data:function(){return E().cancelButton}},{buttonViewModel:function(x){return _.H(_.D5,{data:x.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:U})}}),_.H(_.sY,{data:function(){var x;
if(E().navButton){var A=Object;var m=A.assign,b=_.k(E().navButton,_.Cz),f=((x=_.k(p(),XZ))==null?0:x.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",B,R;x=_.k((B=_.k(p(),XZ))==null?void 0:B.navigationCommand,_.x2);B=(R=_.k(x,_.kX))==null?void 0:R.url;A={buttonViewModel:m.call(A,{},b,{state:f,iconName:B?"OPEN_IN_NEW":""})}}else A=void 0;return A}},{buttonViewModel:function(x){return _.H(_.D5,{data:x.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:U})}})))},"Ci");
jwJ.idomCompat=!0;_.k2(jwJ,"yt-report-form-bottom-bar-view-model",{props:{data:_.uu}});var r_J=_.l(function(t){var E=t.nextStep;return _.H("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.H("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.H(_.lz,{icon:function(){return E().iconName||""}})),_.H("div",null,_.H(_.d8,{text:function(){return E().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Di"),k_d=_.l(function(t){var E=t.data;
var p,U=(p=_.X3().resolve(_.OB(_.Ld)))==null?void 0:p(),x=_.nd(_.ku,function(){return E().flowStateKey||""});
return _.H("yt-report-form-confirmation-page-view-model",{class:function(){var A;return((A=_.k(x(),XZ))==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.H("div",{class:function(){var A;
return((A=_.k(x(),XZ))==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.H(_.Q9,{data:function(){return U&&E().imageDark?E().imageDark:E().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.H("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.H("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return E().confirmationHeader}),_.H("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.H(_.d8,{text:function(){return E().confirmationText}})),_.H("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.H(_.d8,{text:function(){return E().lawEnforcementText}})),
_.H("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return E().whatToExpectHeader}),_.H(_.w,{cond:function(){return E().nextSteps},
then:function(A){return _.H("div",null,_.H(_.yG,{each:A},function(m){return _.H(r_J,{nextStep:m})}))}}),_.H(_.w,{cond:function(){return E().legalReportText},
then:function(A){return _.H("div",null,_.H(_.d8,{text:A,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Ei");
k_d.idomCompat=!0;_.k2(k_d,"yt-report-form-confirmation-page-view-model",{props:{data:_.uu}});var dI8=_.l(function(t){var E=t.data;var p=function(){var A;return((A=_.k(E().inputBox,$9J))==null?void 0:A.maxChars)||500},U=function(){return E().flowStateKey||""},x=_.nd(_.ku,U);
t=_.tI(function(A){A=Object.assign({},x(),{flowFormState:{isValid:A.length<=p()},abuseReportFlowState:{userComments:A,navigationEnabled:!(A.length>p()),isReportFormDirty:!0}});_.Ro().dispatch(_.pr("flowStateEntity",U(),A))},150);
_.A6(function(){var A=Object.assign({},x(),{flowFormState:{isValid:!0}});_.Ro().dispatch(_.pr("flowStateEntity",U(),A))});
return _.H("yt-report-form-details-page-view-model",{class:function(){var A;return((A=_.k(x(),XZ))==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.H("h1",{class:function(){var A;
return((A=_.k(x(),XZ))==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return E().detailsPageHeader}),_.H("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.H(_.d8,{text:function(){return E().bodyText}})),_.H("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.H(Br7,{label:function(){var A;
return((A=_.k(E().inputBox,$9J))==null?void 0:A.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var A;return{errorMessage:((A=_.k(E().inputBox,$9J))==null?void 0:A.maxCharsExceededErrorMessage)||"",maxChars:p()}},
onInput:t})))},"Fi");
dI8.idomCompat=!0;_.k2(dI8,"yt-report-form-details-page-view-model",{props:{data:_.uu}});var ult=_.l(function(t){var E=t.data;var p=function(){return E().flowStateKey||""},U=_.nd(_.ku,p),x=function(){return _.k(U(),XZ)};
return _.H("yt-report-form-reason-select-page-view-model",{class:function(){var A;return((A=x())==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.H("h1",{class:function(){var A;
return((A=x())==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return E().pageHeader}),_.H("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.H(_.d8,{text:function(){return E().bodyText}})),_.H("div",{class:function(){var A;
return((A=x())==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.H(i8g,{data:function(){return _.k(E().radioButtonGroup,tk9)},
onSelected:function(A,m){A=Object.assign({},U(),{abuseReportFlowState:Object.assign({},x(),{reasonKey:m.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:m.command})});_.Vl(_.P9("flowStateEntity",p(),A))},
selectedKey:function(){var A;return(A=x())==null?void 0:A.reasonKey},
groupName:"report-form-reason-select-page"})))},"Gi");
ult.idomCompat=!0;_.k2(ult,"yt-report-form-reason-select-page-view-model",{props:{data:_.uu}});var J_e=_.l(function(t){var E=t.data;var p,U=(p=_.X3().resolve(_.OB(_.Ld)))==null?void 0:p();return _.H("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.H("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.H(_.Q9,{data:function(){return U&&E().imageDark?E().imageDark:E().image},
alt:""})),_.H("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.H("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return E().header}),_.H(_.d8,{text:function(){return E().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"Hi");
J_e.idomCompat=!0;_.k2(J_e,"yt-report-form-sign-in-page-view-model",{props:{data:_.uu}});_.k2(_.l(function(t){var E=t.data;var p=_.D4(_.TKr.talkToRecsStateSelector),U=function(){return E().titleSuperscript},x=function(){return E().answersShelf},A=function(){return E().videoShelf},m=function(){var v;
return(v=E().textInputPlaceholder)==null?void 0:v.content},b=function(){return E().showOpenTextInput},f=function(){var v;
return(v=E().textInputValue)==null?void 0:v.content},B=function(){return E().isMultiTurnFlow?E().resetButtonViewModel:void 0},R="",V=function(){return E().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
t=_.M(_.Py("",void 0,"GjDBze"));var Q=t.next().value,C=t.next().value;t=_.M(_.Py(!1,void 0,"cHfsvd"));var d=t.next().value,I=t.next().value,O=function(){return{state:d()||Q()?"active":"disabled",disabled:!(d()||Q())}};
_.xa(function(){if(b()){f()&&C(f());var v;if(!B()&&((v=p())==null?0:v.stepStates)){var YL;v=Object.keys((YL=p())==null?void 0:YL.stepStates);YL=v[v.length-1];var bY,kL;YL=(bY=p().stepStates[YL])==null?void 0:(kL=bY.userQuery)==null?void 0:kL.userQuery;_.Vl(txJ());YL&&a(YL)}}});
var a=function(v){var YL=E().onUpdateText;YL&&_.bz(YL,{form:{userQuery:v}});C(v)},F=_.tI(function(v){a(v.target.value.trim())},150),L=_.aC(function(v){var YL;
R=(YL=v.target.value)==null?void 0:YL.trim();F(v);return!1}),D=_.aC(function(v){v.key==="Enter"&&(d()||Q())&&(a(v.target.value.trim()),K());
return!1}),W=function(v,YL){I(YL);
if(YL){if(E().isMultiTurnFlow&&!R){var bY;a((bY=v==null?void 0:v.text)!=null?bY:"")}E().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&K()}else C(R)},K=function(){var v=_.k(E().nextButtonViewModel,_.Cz);
if(v==null?0:v.trackingParams){v=_.$8(v.trackingParams);var YL=_.yL();YL&&v&&_.HA(YL,v,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}(v=E().onNextStepCommand)&&_.bz(v)};
t={};return _.H("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost"},_.H("div",{class:"ytwTalkToRecsTopCornerButton"},_.H(_.sY,{data:function(){return E().topCornerButton}},{buttonViewModel:_.D5})),_.H("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.H("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.H(_.d8,{text:function(){return E().title}}),_.H(_.w,{cond:U,
then:function(){return _.H("sup",{class:"ytwTalkToRecsSuperScript"},_.H(_.d8,{text:U}))}})),_.H("div",{class:"ytwTalkToRecsSubtitle"},_.H(_.d8,{text:function(){return E().subtitle}})),_.H("div",{class:"ytwTalkToRecsResultsShelf"},_.H(_.w,{cond:x,
then:function(){return _.H(_.sY,{data:x},{chipsShelfViewModel:function(v){return _.H("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.H(_.ye,{data:v.data,callback:W,selectionBehavior:V}))}})}}),_.H(_.w,{cond:A,
then:function(){return _.H(_.sY,{data:A},{horizontalShelfViewModel:function(v){return _.H("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.H(_.d$,{data:v.data,thumbnailAspectRatio:0}))}})}})),_.H("div",{class:_.X5("ytwTalkToRecsRefinementContainer",(t.ytwTalkToRecsBottomMargin=function(){return E().isMultiTurnFlow},t))},_.H(_.w,{cond:b,
then:function(){return _.H("div",{class:"ytwTalkToRecsUserInputBox"},_.H("input",{type:"text",class:"ytwTalkToRecsTextInput",title:m,placeholder:m,value:Q,"on:input":L,"on:keyup":D,maxlength:200}))}}),_.H(_.sY,{data:function(){return E().isMultiTurnFlow?E().nextButtonViewModel:void 0}},{buttonViewModel:function(v){return _.H("div",{class:"ytwTalkToRecsFlowControlButtons"},_.H(_.D5,{data:v.data,
buttonOverrides:O}))}}),_.H(_.sY,{data:B},{buttonViewModel:function(v){return _.H("div",{class:"ytwTalkToRecsFlowControlButtons"},_.H(_.D5,{data:v.data,
onClick:function(){var YL=_.k(E().resetButtonViewModel,_.Cz);a(Q());(YL=YL==null?void 0:YL.onTap)&&_.bz(YL)}}))}}))))},"Ji"),"yt-talk-to-recs-view-model",{props:{data:_.uu}});var IqJ={sources:[{clientResource:{imageName:"CHECK"}}]};var ILL=_.l(function(t){var E=_.EB("div");t=_.C4(t,{error:void 0});var p=t.data,U=t.error,x=t.onSelected;t=t.className;var A=_.M(_.j5(function(){return Od9(p())})),m=A.next().value,b=A.next().value;
eD5(p,function(C){b(C);var d,I,O=Zdt((d=p().options)==null?void 0:(I=d[C])==null?void 0:I.value,p().type);x==null||x(O);E.value.focus()});
A=_.aC(function(){if(!p().disabled){var C=p(),d=m(),I=E.value;C.options&&(C=g19(C.options,d,C.label),_.X3().resolve(_.bL).openSheet({viewModel:C},I))}});
var f=_.j3E(),B=function(){return!!U()},R=function(){return!!p().disabled},V={},Q={};
return _.H("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.H("div",{class:_.X5("ytDropdownViewModelDropdownContainer",t,(V.ytDropdownViewModelDropdownContainerErrorBorder=B,V.ytDropdownViewModelDropdownContainerDisabled=R,V)),"on:click":A,el:E,role:"combobox",tabindex:0,"on:keydown":f,"aria-invalid":B,"aria-disabled":R,"aria-describedby":function(){return B()?"dropdown-view-model-error":void 0}},_.H("div",{class:"ytDropdownViewModelText"},X9g(p,B,m),hD9(p,m)),_.H("div",{class:_.X5("ytDropdownViewModelChevronDown",
(Q.ytDropdownViewModelChevronDownDisabled=R,Q))},_.H(_.lz,{icon:"CHEVRON_DOWN"}))),aqe(p,U))},"Ki");_.k2(_.l(function(t){var E=t.data;var p=function(x){var A=zDK(E());A.videoMetadata||(A.videoMetadata={});A.videoMetadata.sponsorshipsMetadata||(A.videoMetadata.sponsorshipsMetadata={});A.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(x)},U=function(x){var A=zDK(E());
A.scheduledRedirectMetadata||(A.scheduledRedirectMetadata={});A.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(x)};
return _.H("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.H("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.H("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.H(_.d8,{text:function(){return E().title}}),_.H(_.lz,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.H(_.d8,{text:function(){return E().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.H(_.sY,{data:function(){return E().tierChoices}},{dropdownViewModel:function(x){return _.H("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.H(ILL,{data:x.data,
onSelected:p}))}}),_.H(_.sY,{data:function(){return E().startTimeChoices}},{dropdownViewModel:function(x){return _.H("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.H(ILL,{data:x.data,
onSelected:U}))}}),_.H(_.d8,{text:function(){return E().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.H("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.H(_.sY,{data:function(){return E().scheduleButton}},{panelFooterViewModel:FD})))},"Li"),"ytfz-schedule-fanzone-view-model",{props:{data:_.uu}});_.k2(_.l(function(t){var E=t.data;t=t.className===void 0?"":t.className;var p=_.nd(lUt,function(){return E().flowStateEntityKey||""}),U={};
U=_.X5("ytFlowBottomBarViewModelFlowBottomBarButtons",(U.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},U));
var x={},A=_.X5("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",U,(x.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},x.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},x));
x={};var m=_.X5("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",U,(x.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},x.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},x));
U={};U=_.X5("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(U.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},U.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},U.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
U));
t=_.X5("ytFlowBottomBarViewModelHost",t);return _.H("yt-flow-bottom-bar-view-model",{class:t},_.H(_.w,{cond:function(){var b;return(b=E())==null?void 0:b.textSection},
then:function(b){return _.H("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.H(_.d8,{text:b}))}}),_.H("div",{class:U},_.H(_.sY,{data:function(){return E().secondaryButton}},{buttonViewModel:function(b){return _.H(_.D5,{data:b.data,
className:m})}}),_.H(_.sY,{data:function(){return E().primaryButton}},{buttonViewModel:function(b){return _.H(_.D5,{data:b.data,
className:A,buttonOverrides:function(){var f;return{disabled:!((f=p())==null||!f.primaryButtonDisabled)}}})}})))},"Mi"),"yt-flow-bottom-bar-view-model",{props:{data:_.uu,
className:_.Cy}});var gGt="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),l$=function(){var t=_.z.apply(this,arguments)||this;t.enableScrollingFix=!0;t.bottomBar=!1;t.fitContent=!1;return t};
_.u(l$,_.z);_.Y=l$.prototype;_.Y.ready=function(){_.r("enable_pdp_icon_prefetch")&&i3K(_.X3().resolve(_.Zd),0,gGt)};
_.Y.focus=function(t){this.topBar?_.Jw(this.topBar,t):this.paperDialog.focus(t)};
_.Y.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$20896_scroller&&(this.JSC$20896_scroller.dialogElement=this.paperDialog,this.JSC$20896_scroller.attached&&typeof this.JSC$20896_scroller.attached==="function"&&this.JSC$20896_scroller.attached())};
_.Y.onDataChanged=function(){var t;this.fitContent=!((t=this.data)==null||!t.fitContent);var E;this.bottomBar=!((E=this.data)==null||!E.bottomBar)};
_.Y.onProgressChanged=function(){var t,E,p=((E=(t=this.data)==null?void 0:t.progress)!=null?E:0)*100;this.progressElement.style.width=p+"%"};
_.Y.isProgressHidden=function(){var t;return!((t=this.data)==null?0:t.progress)};
_.Y.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(t){return t&&!t.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
l$.prototype.onProgressChanged=l$.prototype.onProgressChanged;l$.prototype.onDataChanged=l$.prototype.onDataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],l$.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],l$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],l$.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],l$.prototype,"enableScrollingFix",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],l$.prototype,"bottomBar",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],l$.prototype,"fitContent",void 0);_.N([_.Nl("#progress"),_.P("design:type",HTMLElement)],l$.prototype,"progressElement",void 0);_.N([_.Nl("#scroller"),_.P("design:type",Object)],l$.prototype,"JSC$20896_scroller",void 0);_.N([_.Nl("ytd-flow-top-bar-renderer"),_.P("design:type",HTMLElement)],l$.prototype,"topBar",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l$.prototype,"onDataChanged",null);_.N([_.GI("data.progress"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l$.prototype,"onProgressChanged",null);_.N([_.Ul({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],l$);
_.G(l$,"ytd-flow-step-renderer",function(){if(yVl!==void 0)return yVl;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return yVl=t},{mode:1});var GL=function(t){this.resolveCommand=t;this.steps={}},Z89=function(t,E){E=_.M(E||[]);
for(var p=E.next();!p.done;p=E.next()){p=p.value;var U=Object.values(p)[0],x=void 0;if((x=U)==null?0:x.stepId)t.steps[U.stepId]=p}},Xz7=function(t,E){var p,U,x,A,m;
return _.q(function(b){if((p=t.state)==null||!p.currentStepId)return b.return(void 0);U=t.getCurrentStep();if(!U)return b.return(O8b(t));if(x=_.k(U,_.pz))t.logVEScreen(x),((A=x)==null?0:A.onStepStartCommand)&&t.resolveCommand((m=x)==null?void 0:m.onStepStartCommand,{});x&&E&&(t.logFlowEvent(x,E),E.steps&&!E.steps.includes(U)&&E.steps.push(U));return b.return(U)})};
GL.prototype.back=function(){var t;(t=this.state)!=null&&t.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
GL.prototype.handleUpdateFlowCommand=function(t){t.steps&&Z89(this,t.steps);t.entityUpdateCommand&&this.resolveCommand(t.entityUpdateCommand,{});t.flowContinuationCommand&&(t=t.flowContinuationCommand)&&(this.getFlowContinuationCommand=t);this.awaitFlowContinuation&&(t=this.getCurrentStep(),this.awaitFlowContinuation(t),this.awaitFlowContinuation=void 0)};
GL.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var O8b=function(t){return _.q(function(E){return t.getFlowContinuationCommand?E.return(new Promise(function(p){t.awaitFlowContinuation=p;t.getFlowContinuationCommand&&t.resolveCommand(t.getFlowContinuationCommand,{flow_state:t.state})})):E.return(Promise.resolve(void 0))})};
GL.prototype.getCurrentStep=function(){var t;if((t=this.state)!=null&&t.currentStepId)return this.steps[this.state.currentStepId]};
GL.prototype.logVEScreen=function(t){var E;((E=t.screenLoggingData)==null?0:E.screenVeType)&&_.PH(_.Pu(),t.screenLoggingData.screenVeType)};
GL.prototype.logFlowEvent=function(t,E){var p,U,x,A;((p=E.flowLoggingData)==null?0:p.eventNamespace)&&((U=t.flowEventData)==null?0:U.eventType)&&((x=t.flowEventData)==null?0:x.eventMetadata)&&((A=E.flowLoggingData)==null?0:A.flowType)&&(t=_.a4(E.flowLoggingData.eventNamespace,t.flowEventData.eventType,t.flowEventData.eventMetadata),_.eL().logFlowEvent(t,E.flowLoggingData.flowType))};
_.aE.Object.defineProperties(GL.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.state)==null?void 0:t.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.state)!=null&&t.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(E,p){p.key&&p.value&&(E[p.key]=p.value);return E},{})}}});var n2=function(){var t=_.z.apply(this,arguments)||this;t.flowState=_.r("web_use_flow_state_manager")?void 0:new GL(function(E,p){p=p===void 0?{}:p;_.Gh.instance.resolveCommand(E,{form:{form:p,element:t.hostElement}})});
t.JSC$20907_flowStateManager=_.r("web_use_flow_state_manager")?_.X3().resolve(_.v2):void 0;t.currentTargetId="";t.initialState=!0;t.isLoading=!1;t.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"};t.containsTalkToRecs=!1;return t};
_.u(n2,_.z);_.Y=n2.prototype;_.Y.onPopupClosed=function(t){if(!t||this.hostElement===t.detail.popupRenderer){if(this.JSC$20907_flowStateManager){var E;((E=this.data)==null?0:E.flowStateEntityKey)&&this.JSC$20907_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.Y.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"}}}};
_.Y.focus=function(t){var E=this;_.iR(function(){var p=_.ZN(E.hostElement).querySelector("ytd-flow-step-renderer");(p==null?0:p.topBar)?p.focus(t):E.topBar&&_.Jw(E.topBar,t)},1)};
_.Y.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.Y.computeTopBarHidden=function(t){var E;return!((E=_.k(t,_.pz))==null||!E.topBarOverride)};
_.Y.onCurrentFlowChange=function(){if(this.JSC$20907_flowStateManager&&this.data&&this.flow){var t=RmJ(this.JSC$20907_flowStateManager,this.data),E;if(t&&((E=this.flow)==null?0:E.currentStepId)){t=CdJ(t,this.flow.currentStepId);this.initialState=!1;this.isLoading=!this.currentFlowStep;var p;!t&&((p=this.data)==null?0:p.flowContinuationCommand)&&this.ytComponentBehavior.resolveCommand(this.data.flowContinuationCommand)}}};
_.Y.observeData=function(){var t=this;if(this.JSC$20907_flowStateManager){var E=this.currentTargetId,p,U,x=(U=(p=this.data)==null?void 0:p.targetId)!=null?U:"";E!==x&&E&&Vvl(this.JSC$20907_flowStateManager,E);this.currentTargetId=x;this.data&&QQd(RmJ(this.JSC$20907_flowStateManager,this.data),function(A){A&&(t.initialState=!1,t.currentFlowStep={flowStepRenderer:A},t.isLoading=!t.currentFlowStep,t.autofocusAndRefit(),t.updateContainsTalkToRecs(),t.logVEScreen(),t.logFlowEvent())})}};
_.Y.dataChanged=function(){var t=this,E,p;return _.q(function(U){if(U.nextAddress==1){if(!t.flowState)return U.return();((E=t.data)==null?0:E.steps)&&Z89(t.flowState,t.data.steps);if((p=t.data)==null?0:p.flowContinuationCommand){var x=t.flowState,A=t.data.flowContinuationCommand;A&&(x.getFlowContinuationCommand=A)}return U.yield(Xz7(t.flowState,t.data),2)}t.currentFlowStep=U.yieldResult;_.Do(U)})};
_.Y.flowChanged=function(){var t=this,E;return _.q(function(p){if(p.nextAddress==1){if(!t.flowState||!t.flow)return p.return();t.flowState.state=t.flow;t.isLoading=!0;return p.yield(Xz7(t.flowState,t.data),2)}E=p.yieldResult;if(!E||t.flow.isLoading)return p.return();t.currentFlowStep=E;t.initialState=!1;t.isLoading=!1;t.autofocusAndRefit();t.updateContainsTalkToRecs();_.Do(p)})};
_.Y.logVEScreen=function(){var t,E,p=(t=_.k(this.currentFlowStep,_.pz))==null?void 0:(E=t.screenLoggingData)==null?void 0:E.screenVeType;p&&_.PH(_.X3().resolve(_.Yt),p)};
_.Y.logFlowEvent=function(){var t=_.k(this.currentFlowStep,_.pz),E,p,U,x,A,m;(this==null?0:(E=this.data)==null?0:(p=E.flowLoggingData)==null?0:p.eventNamespace)&&(this==null?0:(U=this.data)==null?0:(x=U.flowLoggingData)==null?0:x.flowType)&&(t==null?0:(A=t.flowEventData)==null?0:A.eventType)&&(t==null?0:(m=t.flowEventData)==null?0:m.eventMetadata)&&(t=_.a4(this.data.flowLoggingData.eventNamespace,t.flowEventData.eventType,t.flowEventData.eventMetadata),_.eL().logFlowEvent(t,this.data.flowLoggingData.flowType))};
_.Y.updateContainsTalkToRecs=function(){var t,E=(t=_.k(this.currentFlowStep,_.pz))==null?void 0:t.content;this.containsTalkToRecs=!!E&&!!_.k(E,wZt)};
_.Y.autofocusAndRefit=function(){var t=this,E=_.X3().resolve(_.OB(_.FA)),p=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),U=document.querySelector("yt-report-form-confirmation-page-view-model"),x=document.querySelector("yt-report-form-details-page-view-model"),A=document.querySelector("yt-report-form-reason-select-page-view-model"),m=document.querySelector("yt-contributor-zero-state-view-model"),
b=document.querySelector("yt-structured-context-note-view-model"),f=document.querySelector("yt-note-view-model");(!p&&E&&E.isKeyBoardInUse()||U||!p&&x||!p&&A||!p&&(m||b||f))&&_.If(this.hostElement);_.XE(this,function(){_.kT(t.hostElement,"yt-refit")})};
_.Y.handleUpdateFlowCommand=function(t){this.flowState?this.data&&(t=_.k(t,_.bCf),t.targetId===this.data.targetId&&(t.flowContinuationCommand&&(this.data.flowContinuationCommand=t.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(t),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(t)};
_.Y.handleFlowNextStepCommand=function(t){this.JSC$20907_flowStateManager?this.ytComponentBehavior.resolveCommand(t):this.data&&this.flow&&this.flow.key&&(t=_.k(t,_.Av0),t.targetId===this.data.targetId&&(t=t.stepId||"",this.ytdReduxBehavior.dispatch(_.pr("flowStateEntity",this.flow.key,{currentStepId:t,stepIdStack:(this.flow.stepIdStack||[]).concat(t)}))))};
_.Y.handleFlowPrevStepCommand=function(t){if(this.JSC$20907_flowStateManager)this.ytComponentBehavior.resolveCommand(t);else if(this.data&&this.flow&&this.flow.key&&(t=_.k(t,_.Yvs),t.targetId===this.data.targetId)){var E=[].concat(_.KB(this.flow.stepIdStack||[]));E.length>1?(E.pop(),this.ytdReduxBehavior.dispatch(_.pr("flowStateEntity",this.flow.key,{currentStepId:E[E.length-1],stepIdStack:E}))):t.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(t.onFirstStepCommand)}};
_.Y.handleYpcCancelRecurrenceCommand=function(t){if(this.data&&this.flow&&this.flow.key&&(t=_.k(t,Cbl),t.targetId===this.data.targetId&&t.endpointCommand)){var E=_.k(this.flow,j8e);E&&_.k(t.endpointCommand,_.kRr)&&(_.k(t.endpointCommand,_.kRr).feedbackData=E.surveyFeedback);this.ytComponentBehavior.resolveCommand(t.endpointCommand)}};
_.Y.handlePartialUpdateFlowStateEntity=function(t){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.pr("flowStateEntity",this.flow.key,t,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
n2.prototype.flowChanged=n2.prototype.flowChanged;n2.prototype.dataChanged=n2.prototype.dataChanged;n2.prototype.observeData=n2.prototype.observeData;n2.prototype.onCurrentFlowChange=n2.prototype.onCurrentFlowChange;n2.prototype.onPopupClosed=n2.prototype.onPopupClosed;_.N([_.g(_.Be),_.P("design:type",Object)],n2.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],n2.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],n2.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],n2.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],n2.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],n2.prototype,"initialState",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],n2.prototype,"isLoading",void 0);_.N([_.e(),_.P("design:type",Object)],n2.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],n2.prototype,"currentFlowStep",void 0);_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],n2.prototype,"onPopupClosed",null);
_.N([_.e({selectorArgs:["data.flowStateEntityKey"],selector:lUt}),_.P("design:type",Object)],n2.prototype,"flow",void 0);_.N([_.Nl("ytd-flow-top-bar-renderer"),_.P("design:type",HTMLElement)],n2.prototype,"topBar",void 0);_.N([_.GI("data","flow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],n2.prototype,"onCurrentFlowChange",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],n2.prototype,"observeData",null);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],n2.prototype,"dataChanged",null);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],n2.prototype,"containsTalkToRecs",void 0);_.N([_.P3("flow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],n2.prototype,"flowChanged",null);_.N([_.Ul({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],n2);
var h4J=_.Ol()(n2,"ytd-flow-root-renderer",function(){if(PXC!==void 0)return PXC;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return PXC=t},{mode:_.hX("kevlar_poly_si_batch_j025")?1:2});var snt=_.TKr.talkToRecsStateSelector;_.k2(_.l(function(t){var E=function(){return _.k(t.data().flowRoot,Kkd)};
_.A6(function(){var p=E(),U=function(){},x=function(){};
if(p){var A,m,b,f=((b=_.k((A=E())==null?void 0:(m=A.steps)==null?void 0:m[0],_.pz))==null?void 0:b.stepId)||"";n1K(p,f);U=Dnb(p);x=L8e(p)}_.iK(function(){var B=E();B&&_.QM().dispatch(_.P9("flowStateEntity",B.flowStateEntityKey));U();U=function(){};
x();x=function(){};
_.Vl(txJ())})});
return _.H("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.H(_.Lk,{contentId:function(){return t.data().contentId}},function(){return _.H("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.H(_.w,{cond:E,
then:function(p){return _.H(h4J,{data:p})}}))}))},"Ni"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.uu}});var aLo=_.l(function(t){var E=_.C4(t,{numberOfChips:5}).numberOfChips;return _.H("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.H(_.yG,{each:function(){return Array(E==null?void 0:E())}},function(){return _.H("div",{class:"ytGhostChipShelfChip"})}))},"Oi");_.k2(_.l(function(){return _.H("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.H("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.H("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.H(aLo,null)),_.H(_.EPs,{data:{rows:1},isExploreHub:!0}))},"Pi"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.k2(_.l(function(t){var E=t.data;var p=t.standardUnitMinWidth;t=_.M((0,_.Aam)(E));var U=t.next().value,x=t.next().value,A=function(){var b,f=(b=U())==null?void 0:b.contents;return f==null||f.length===0},m=function(){x(Object.assign({},U(),{contents:[]}))};
return _.H("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.V9(_.az({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var b=_.k(E().chipsShelf,H7J);if(b!=null&&b!=null&&b.autoselectChipOnVisible){var f,B,R=_.k(b==null?void 0:(f=b.contents)==null?void 0:f[(B=b.autoselectedChipIndex)!=null?B:0],_.j3);R&&R.tapCommand&&_.bz(R.tapCommand)}}}))},_.H(_.Lk,{contentId:function(){return E().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.H("div",null,_.H("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.H(_.sY,{data:function(){return E().header}},{sectionHeaderViewModel:function(b){return _.H(_.v_,{data:b.data,
disableHorizontalPadding:!0})}})),_.H("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.H(_.sY,{data:function(){return E().chipsShelf}},{chipsShelfViewModel:function(b){return _.H(_.ye,{data:b.data,
callback:m,selectionBehavior:1})}})),_.H("div",null,_.H(_.w,{cond:A,
then:function(){return _.H("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.H(_.EPs,{data:{rows:1},isExploreHub:!0}))}}),_.H(_.sY,{data:function(){var b;
return(b=U())==null?void 0:b.contents}},{richShelfRenderer:function(b){return _.H(_.kfr,{data:b.data,
isInnerShelf:!0,standardUnitMinWidth:p})}})))}))},"Qi"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.uu,
standardUnitMinWidth:_.uu}});var Nt=function(){return _.z.apply(this,arguments)||this};
_.u(Nt,_.z);
Nt.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}}};
Nt.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.N([_.g(_.Be),_.P("design:type",Object)],Nt.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Nt.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.I6),_.P("design:type",Object)],Nt.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Nt.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Nt.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",Number)],Nt.prototype,"standardUnitMinWidth",void 0);_.N([_.Ul({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],Nt);
_.G(Nt,"ytd-rich-section-renderer",function(){if(CX7!==void 0)return CX7;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return CX7=t},{mode:_.hX("kevlar_poly_si_batch_j029")?
1:2});var e4C;var v1o=null;_.k2(_.l(function(t){return _.H("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.H("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.H(_.d8,{text:function(){return t.data().text}}),_.H("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Ri"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.uu}});var F1C=_.l(function(t){var E=t.playerControlsProps;var p=t.isShortsPage;return _.H("yt-bigboard",null,_.H(_.w,{cond:function(){return E().isDragging},
then:function(){return _.H("div",{class:"ytBigboardStoryboardHost"},_.H(_.bTC,{progressBarProps:E,isShortsPage:p}))}}))},"Si");
F1C.idomCompat=!0;var Du={ACCOUNT_LABEL:RB("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:RB("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:RB("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:RB("AD_BADGE_HINT"),AD_BADGE_TEXT:RB("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:RB("ALL_CHANNELS_LABEL"),AMBIENT_MODE:RB("AMBIENT_MODE"),AMBIENT_MODE_OFF:RB("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:RB("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:RB("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:RB("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:RB("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:RB("APP_UPSELL_TITLE"),AUDIO_TRACK:RB("AUDIO_TRACK","Audio Track"),AUTONAV_TOGGLE:RB("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:RB("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:RB("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:RB("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:RB("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:RB("AUTO_ZOOM","Auto zoom"),BACK:RB("BACK"),CANCEL:RB("CANCEL"),CHANNEL_SWITCHER_LABEL:RB("CHANNEL_SWITCHER_LABEL"),CLOSE:RB("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:RB("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:RB("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:RB("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:RB("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:RB("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:RB("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:RB("COMMENT_MODAL_CONTENT"),CONFIRM_OK:RB("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:RB("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:RB("COPIED_TO_CLIPBOARD"),COPY:RB("COPY"),COPY_DEBUG_INFO:RB("COPY_DEBUG_INFO"),COPY_EMBED_CODE:RB("COPY_EMBED_CODE"),
COPY_LINK_LABEL:RB("COPY_LINK_LABEL"),COPY_VIDEO_URL:RB("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:RB("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:RB("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:RB("DELETE_FROM_DOWNLOADS"),DIALOG:RB("DIALOG"),DONE:RB("DONE"),DOWNLOAD:RB("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:RB("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:RB("FLAG_CONFIRM"),FLAG_CONTENT:RB("FLAG_CONTENT"),FLAG_LABEL:RB("FLAG_LABEL"),FLAG_TITLE:RB("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:RB("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:RB("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:RB("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:RB("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:RB("HIDE_SEARCH_FILTERS_LABEL"),HOME:RB("HOME","Home"),INVALID_RESPONSE_RECEIVED:RB("INVALID_RESPONSE_RECEIVED"),LIBRARY:RB("LIBRARY","Library"),LISTENING:RB("LISTENING"),LOADING:RB("LOADING"),LONG_PRESS_MIC_TO_SPEAK:RB("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:RB("LOOP"),MENU_DESKTOP:RB("MENU_DESKTOP"),
MENU_EXIT:RB("MENU_EXIT"),MENU_FEEDBACK:RB("MENU_FEEDBACK"),MENU_HELP:RB("MENU_HELP"),MENU_IMPRESSUM:RB("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:RB("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:RB("MENU_SETTINGS"),MENU_SIGN_IN:RB("MENU_SIGN_IN"),MENU_TITLE:RB("MENU_TITLE"),MENU_YOUR_DATA:RB("MENU_YOUR_DATA"),MORE_INFO:RB("MORE_INFO"),MORE_OPTIONS:RB("MORE_OPTIONS"),MUTE_VOLUME:RB("MUTE_VOLUME"),NEW_PLAYLIST:RB("NEW_PLAYLIST"),NEXT_VIDEO:RB("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:RB("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:RB("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:RB("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:RB("NOT_FOUND_TITLE"),NO_DOWNLOADS:RB("NO_DOWNLOADS"),NO_MIC_INPUT:RB("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:RB("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:RB("OOPS_MESSAGE"),OPEN_APP:RB("OPEN_APP"),OPEN_YOUTUBE:RB("OPEN_YOUTUBE"),PAUSE:RB("PAUSE"),PLAY:RB("PLAY"),PLAYER_CAPTION:RB("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:RB("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:RB("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:RB("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:RB("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:RB("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:RB("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:RB("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:RB("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:RB("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:RB("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:RB("PLAYER_MINIMIZE"),PLAYER_NEXT:RB("PLAYER_NEXT"),PLAYER_PAUSE:RB("PLAYER_PAUSE"),PLAYER_PLAY:RB("PLAYER_PLAY"),
PLAYER_PREVIOUS:RB("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:RB("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:RB("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:RB("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:RB("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:RB("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:RB("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:RB("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:RB("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:RB("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:RB("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:RB("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:RB("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:RB("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:RB("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:RB("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:RB("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:RB("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:RB("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:RB("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:RB("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:RB("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:RB("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:RB("PLAY_ALL"),PLEASE_FIX_ERRORS:RB("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:RB("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:RB("PREVIOUS_VIDEO"),PRIVACY_POLICY:RB("PRIVACY_POLICY"),RELOAD:RB("RELOAD"),REQUIRED_LABEL:RB("REQUIRED_LABEL"),SAVE_PLAYLIST:RB("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:RB("SCRUB_SLIDE_USER_EDU"),SEARCH:RB("SEARCH","Search"),
SEARCH_APPEND_LABEL:RB("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:RB("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:RB("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:RB("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:RB("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:RB("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:RB("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:RB("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:RB("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:RB("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:RB("SEEK_SLIDER"),SETTINGS_LABEL:RB("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:RB("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:RB("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:RB("SHOW_LESS"),SHOW_MORE:RB("SHOW_MORE"),SHOW_PLAYER_CONTROLS:RB("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:RB("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:RB("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:RB("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:RB("SIGN_IN_ON_WEB"),STABLE_VOLUME:RB("STABLE_VOLUME"),STABLE_VOLUME_OFF:RB("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:RB("STABLE_VOLUME_ON"),STATS_FOR_NERDS:RB("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:RB("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:RB("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:RB("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:RB("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:RB("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:RB("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:RB("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:RB("TIMESTAMP_SECONDS"),TOGGLE_OFF:RB("TOGGLE_OFF"),TOGGLE_ON:RB("TOGGLE_ON"),TRENDING:RB("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:RB("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:RB("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:RB("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:RB("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:RB("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:RB("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:RB("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:RB("VIDEO_LINK_LABEL")};var z4C=_.l(function(t){var E=t.playerApi;t=_.EB("button",function(U){Vw(U,36843)});
var p=RB("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.H("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.H("button",{el:t,class:"ytPlayerControlsJumpForwardButtonButton",title:p,"aria-label":p,"on:click":_.aC(function(){Qw(36843);E&&E().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.H("span",null,_.H(_.lz,{icon:"FAST_FORWARD"}))))},"Ti");var lL7=_.l(function(t){var E=t.appApi;t=_.EB("button",function(U){Vw(U,62946)});
var p=RB("OPEN_IN_MINIPLAYER");return _.H("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.H("button",{el:t,class:"ytMiniplayerButtonButton",title:p,"aria-label":p,"on:click":_.aC(function(){Qw(62946);var U,x;(x=(U=E()).openInMiniplayer)==null||x.call(U);return!1})},_.H(_.lz,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Ui");var G_t=_.l(function(t){var E=t.playerApi;t=_.EB("button",function(A){Vw(A,142812)});
var p=_.M(_.Py(!1,void 0,"eOMRAb")),U=p.next().value,x=p.next().value;p=function(){return RB("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(U()?1:2)})};
return _.H("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.H("button",{el:t,class:"ytPlaybackSpeedButtonButton",title:p,"aria-label":p,"on:click":_.aC(function(){Qw(142812);if(E){var A=E(),m=U();A.setPlaybackRate(m?1:2);x(!U())}return!1})},_.H("span",null,_.H(_.lz,{icon:function(){return U()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Vi");var nGo=_.l(function(t){var E=t.title;var p=t.ariaLabel;var U=t.icon;var x=t.command;var A=t.visualElementId;t=_.EB("button",function(m){A&&Vw(m,A())});
return _.H("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.H("button",{el:t,class:"ytdThumbnailOverlayButtonButton",title:E,"aria-label":p,"on:click":_.aC(function(){A&&Qw(A());x&&_.X3().resolve(_.ei).resolveCommand(x())})},_.H(_.lz,{icon:U})))},"Wi");var Nr7=["en-CA","en","es-MX","fr-CA"];var DI9=_.l(function(t){var E=_.C4(t,{isOverlay:!1,isModern:!1}),p=E.captionIconType,U=E.onClick;t=E.ariaLabel;var x=E.ariaPressed,A=E.isOverlay,m=E.isModern;E=_.EB("button",function(B){Vw(B,127299)});
var b=_.aC(function(B){Qw(127299);U==null||U(B);return!1}),f={};
return _.H("ytm-closed-captioning-button",{class:_.X5("ytmClosedCaptioningButtonHost",(f.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return p()===-1&&A()},f.ytmClosedCaptioningButtonIconDisabled=function(){return p()===-1&&!A()},f))},_.H("button",{el:E,
class:"ytmClosedCaptioningButtonButton",title:t,"aria-label":t,"aria-pressed":x,"on:click":b},_.H(_.lz,{icon:function(){var B="",R=m();var V=R?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";R=R?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var Q=_.nF().get("hl");V=!Q||Nr7.includes(Q)?V:R;R=p();switch(R){case -1:case 0:B=V;break;case 1:B=V+"_FILLED";break;default:_.UC(R)}return B}})))},"Xi");
DI9.idomCompat={callbacks:{onClick:!0}};var Rw="";var swL=_.l(function(t){var E=t.playerControlsProps,p=t.onClickFn;t=_.KN(function(){var A=E(),m=-1;A.captionsAvailable&&(m=A.captionsEnabled?1:0);return m},void 0,"MZ0Wqe");
var U=_.KN(function(){var A=E();return A.captionsAvailable?_.zF(A.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.zF("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),x=_.KN(function(){var A=E();
A=A.captionsAvailable?A.captionsEnabled:void 0;return A},void 0,"fhuQRe");
return _.H("yt-closed-captions-toggle-button",null,_.H(DI9,{captionIconType:t,ariaLabel:U,ariaPressed:x,onClick:function(A){var m=E();if(m.captionsAvailable){var b=m.playerApi;if(b){var f=m.playerApi;if(f){var B=Rw;if(B){f=f.getOption("captions","track");var R;Rw=(R=f?f.displayName:null)!=null?R:B}else Ajb(f)?(B=_.pmO(f),Rw=B.length?(R=M15(B))?R.displayName:B[0].displayName:""):Rw=""}mct(b);_.r("mweb_disable_set_state_captions_killswitch")&&m.setState({captionsEnabled:!m.captionsEnabled})}}var V,
Q;(Q=(V=m.appApi).showCaptionsToggleToast)==null||Q.call(V,m);p==null||p(A)},
isOverlay:!0}))},"Yi");var L15=_.l(function(t){var E=t.data;return _.H("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.H(_.CZ,{data:function(){return{type:17,text:_.HYY(E().label)}}}))},"Zi");var PT8=_.l(function(t){var E=_.X5("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return t.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return t.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return t.size()==="small"?t.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
t.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.H("animated-seek-arrows",{class:_.X5("ytPlayerControlsAnimatedSeekArrowsHost")},_.H("span",{class:E}),_.H("span",{class:E}),_.H("span",{class:E}))},"$i");
PT8.idomCompat=!0;var TrC=_.l(function(){var t=_.zF("PLAYER_SECONDS",{seconds_placeholder:"30"}),E=_.M(_.Py(!1,void 0,"iRJu8c")),p=E.next().value,U=E.next().value,x=_.M(_.Py(!1,void 0,"MPnizf"));E=x.next().value;var A=x.next().value;x={};var m=_.X5("jumpForwardOverlayOverlay",(x.jumpForwardOverlayOverlayHidden=E,x));_.A6(function(){var b=null,f=null,B=function(){b!==null&&_.ty().cancelJob(b);f!==null&&_.ty().cancelJob(f);A(!0);U(!0);_.g4(_.ty(),function(){A(!1)});
b=_.g4(_.ty(),function(){A(!0);f=_.g4(_.ty(),function(){U(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",B);_.iK(function(){window.removeEventListener("jump-forward-clicked",B)})});
return _.H("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.H(_.w,{cond:p,then:function(){return _.H("div",{class:m},_.H(PT8,{direction:1,size:"large"}),_.H("div",null,t))}}))},"aj");var oGC=Du.MUTE_VOLUME,W1d=Du.UNMUTE_VOLUME,$Ib=_.l(function(t){var E=t.muteIconType;var p=t.onClick;var U=t.useOutlineIcon;var x=t.useDelhiIcons;t=_.EB("button",function(b){Vw(b,28662)});
var A=function(){var b=E(),f=U==null?void 0:U(),B=x==null?void 0:x(),R="",V="";switch(b){case -1:case 0:R=f?"VOLUME_OFF":B?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";V=W1d;break;case 1:R=f?"VOLUME_UP_OUTLINE":B?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";V=oGC;break;case 2:R=f?"VOLUME_DOWN_OUTLINE":B?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";V=oGC;break;default:_.UC(b)}return{iconName:R,ariaLabel:V}},m=function(){return A().ariaLabel};
return _.H("ytm-mute-button",{class:"ytmMuteButtonHost"},_.H("button",{el:t,class:"ytmMuteButtonButton",title:m,"aria-label":m,"on:click":_.aC(function(b){Qw(28662);p==null||p(b);return!1})},_.H("span",null,_.H(_.lz,{icon:function(){return A().iconName}}))))},"bj");var K1g=_.l(function(t){var E=t.volumeProps;var p=t.onClickFn;var U=t.useOutlineIcon;var x=t.useDelhiIcons;return _.H("yt-mute-toggle-button",null,_.H($Ib,{muteIconType:function(){var A=E();return A.volumeMuted||A.volume===0?0:A.volume>50?1:2},
onClick:function(A){var m=E().playerApi;m&&(m.isMuted()?m.unMute():m.mute(!1));p==null||p(A)},
useOutlineIcon:function(){return!(U==null||!U())},
useDelhiIcons:function(){return!(x==null||!x())}}))},"cj");
K1g.idomCompat=!0;var vGg=_.l(function(t){var E=t.data;var p=_.EB("ytm-paid-content-overlay-renderer");return _.H("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:p,"on:animationend":_.aC(function(){p.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.H(_.zn,{command:function(){return E().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.H(_.w,{cond:function(){var U;return(U=E().icon)==null?void 0:U.iconType},
then:function(){return _.H("span",null,_.H(_.lz,{icon:function(){var U;return(U=E().icon)==null?void 0:U.iconType}}))}}),_.H("div",{class:"ytmPaidContentOverlayText"},_.H(_.d8,{text:function(){return E().text}})),_.H(_.w,{cond:function(){return E().navigationEndpoint},
then:function(){return _.H(_.lz,{icon:"CHEVRON_RIGHT"})}})))},"dj");
vGg.idomCompat=!0;var rBt=[].concat(_.KB([{register:function(t){var E=wYK(t),p;(p=t().playerApi)==null||p.addEventListener("onVolumeChange",E);return function(){}}},
{register:function(t){var E=Rul(t);t=t().playerApi;t==null||t.addEventListener("captionschanged",E);t==null||t.addEventListener("captionssettingschanged",E);t==null||t.addEventListener("onCaptionsTrackListChanged",E);return function(){}}}]),[{register:function(t){var E=qXo(t),p;
(p=t().playerApi)==null||p.addEventListener("onStateChange",E);return function(){}}},
{register:function(t){var E=H$7(t),p;(p=t().playerApi)==null||p.addEventListener("onPlaybackRateChange",E);return function(){}}},
{register:function(t){var E=fVb(t),p;(p=t().playerApi)==null||p.addEventListener("onVideoDataChange",E);return function(){}}},
{register:function(t){var E=BXl(t),p,U;(p=t())==null||(U=p.playerApi)==null||U.addEventListener("onVideoProgress",E);return function(){}}}]);var y_t=_.l(function(t){var E=t.data;var p=function(){return _.zF("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+E().playbackRate})};
return _.H(_.w,{cond:function(){return E().playbackRate&&E().playbackRate!==1},
then:function(){return _.H("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.H("div",{class:"ytPlaybackRateOverlayOverlay"},_.H(PT8,{direction:1,size:"small"}),_.H("div",{class:"ytPlaybackRateOverlayLabel"},p)))}})},"fj");var S39=_.l(function(t){var E=t.data;return _.H("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.H(_.w,{cond:function(){var p,U=(p=E())==null?void 0:p.playerResponse,x;return U==null?void 0:(x=U.paidContentOverlay)==null?void 0:x.paidContentOverlayRenderer},
then:function(p){return _.H(vGg,{data:p})}}))},"hj"),c_K=_.l(function(t){var E=t.props;
var p=t.data;var U=t.options;var x=function(){var B,R,V,Q;return(B=p())==null?void 0:(R=B.playerResponse)==null?void 0:(V=R.playerConfig)==null?void 0:(Q=V.inlinePlaybackConfig)==null?void 0:Q.showAudioControls},A=function(){var B,R;
if(x()&&((B=U())==null?void 0:(R=B.additionalButton)==null?void 0:R.button)!==void 0){var V,Q,C;B=(V=p())==null?void 0:(Q=V.playerApi)==null?void 0:(C=Q.getSize())==null?void 0:C.height;if(!(B===void 0||B<180)){var d,I;return(d=U())==null?void 0:(I=d.additionalButton)==null?void 0:I.button}}},m=function(){var B,R;
return(B=U())==null?void 0:(R=B.additionalButton)==null?void 0:R.thumbnailOverlayButtonRenderers},b=function(){var B,R;
return(B=U())==null?void 0:(R=B.additionalButton)==null?void 0:R.thumbnailOverlayButtonViewModels},f=function(){var B=[_.H(K1g,{volumeProps:E})],R;
((R=U())==null?0:R.hideCaptionsToggleButton)||B.push(_.H(swL,{playerControlsProps:E}));A()===1&&B.push(_.H(z4C,{playerApi:function(){return E().playerApi}}));
A()===2&&B.push(_.H(lL7,{appApi:function(){return E().appApi}}));
A()===3&&B.push(_.H(G_t,{playerApi:function(){return E().playerApi}}));
R=m();if(A()===4&&R){R=_.M(R);for(var V=R.next(),Q={};!V.done;Q={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$54:void 0,command$jscomp$630:void 0},V=R.next()){V=V.value;Q.tooltip$jscomp$3=V.tooltip;var C=void 0,d=void 0;Q.ariaLabel$jscomp$20=((C=V.accessibility)==null?void 0:(d=C.accessibilityData)==null?void 0:d.label)||Q.tooltip$jscomp$3;C=void 0;Q.icon$jscomp$54=(C=V.icon)==null?void 0:C.iconType;Q.command$jscomp$630=V.command;Q.tooltip$jscomp$3&&Q.ariaLabel$jscomp$20&&Q.icon$jscomp$54&&
B.push(_.H(nGo,{title:function(I){return function(){return I.tooltip$jscomp$3}}(Q),
ariaLabel:function(I){return function(){return I.ariaLabel$jscomp$20}}(Q),
icon:function(I){return function(){return I.icon$jscomp$54}}(Q),
command:function(I){return function(){return I.command$jscomp$630}}(Q)}))}}R=b();
if(A()===4&&R)for(R=_.M(R),V=R.next(),Q={};!V.done;Q={tooltip$jscomp$4:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$55:void 0,command$jscomp$631:void 0,trackingParamsVeType:void 0},V=R.next())V=V.value,Q.tooltip$jscomp$4=V.title,Q.ariaLabel$jscomp$21=V.accessibilityText||Q.tooltip$jscomp$4,Q.icon$jscomp$55=V.iconName,Q.command$jscomp$631=_.AJ(V.onTap),d=C=void 0,Q.trackingParamsVeType=((C=V.loggingDirectives)==null?0:C.trackingParams)?(d=YVo(_.c8(V.loggingDirectives.trackingParams)))==null?void 0:
_.kW(d,2):void 0,Q.tooltip$jscomp$4&&Q.ariaLabel$jscomp$21&&Q.icon$jscomp$55&&B.push(_.H(nGo,{title:function(I){return function(){return I.tooltip$jscomp$4}}(Q),
ariaLabel:function(I){return function(){return I.ariaLabel$jscomp$21}}(Q),
icon:function(I){return function(){return I.icon$jscomp$55}}(Q),
command:function(I){return function(){return I.command$jscomp$631}}(Q),
visualElementId:function(I){return function(){return I.trackingParamsVeType}}(Q)}));
return B};
return _.H(_.w,{cond:x,then:function(){return _.H("div",{class:"ytInlinePlayerControlsTopRightControls"},_.H(_.yG,{each:f},function(B){return _.H("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.H("div",{class:"ytInlinePlayerControlsButtonIcon"},B))}))}})},"ij"),pbb=_.l(function(t){var E=t.props;
var p=t.data;var U=t.options;t={};t=_.X5("ytInlinePlayerControlsBottomRightControls",(t.ytInlinePlayerControlsBottomRightControlsHidden=function(){var x;return QFC(p(),U())&&((x=U())==null?void 0:x.insetProgressBar)&&(E().isHovering||E().isDragging)},t));
return _.H("div",{class:t},_.H(t6t,{data:p}),_.H(_.w,{cond:function(){var x;return!((x=U())==null?0:x.hideTimeDisplay)},
then:function(){return _.H(ESJ,{props:E,data:p})}}))},"jj"),t6t=_.l(function(t){var E=t.data;
return _.H(_.sY,{data:function(){var p;return x6C((p=E())==null?void 0:p.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:L15})},"kj"),ESJ=_.l(function(t){var E=t.props;
var p=t.data;return _.H(_.w,{cond:function(){return E().isLive},
then:function(){return _.H(U5K,{props:E,data:p})},
else:function(){return _.H(x5t,{props:E,data:p})}})},"lj"),x5t=_.l(function(t){var E=t.props;
var p=t.data;var U=_.KN(function(){var x;return Ael((x=p())==null?void 0:x.thumbnailOverlays)},void 0,"Pf9uIe");
return _.H("div",{class:_.X5("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return Du.PLAYER_TIME_ELAPSED+" "+_.ZDj(E().playedTime)}},_.H(_.CZ,{data:function(){var x=_.ZDj(E().videoDuration-E().playedTime);
return Object.assign({},{type:17,text:x},U())}}))},"mj"),ARb=_.l(function(t){t=t.badgeShapeData;
return _.H("div",{class:_.X5("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.H(_.CZ,{data:t}))},"nj"),U5K=_.l(function(t){var E=t.data;
t=_.KN(function(){if(_.r("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var U,x=_.M(((U=E())==null?void 0:U.thumbnailOverlays)||[]);for(U=x.next();!U.done;U=x.next()){U=U.value;if(U.thumbnailOverlayTimeStatusRenderer||U.thumbnailOverlayBadgeViewModel)return U;var A=void 0;if((A=U.thumbnailBottomOverlayViewModel)==null?0:A.badges)if(U=U.thumbnailBottomOverlayViewModel.badges.find(function(m){return _.k(m,pYK)}))return U}}},void 0,"GPGpgc");
var p=_.KN(function(){var U,x,A,m,b,f;return _.VOE((U=E())==null?void 0:(x=U.playerApi)==null?void 0:(A=x.getSize())==null?void 0:A.width,(m=E())==null?void 0:(b=m.playerApi)==null?void 0:(f=b.getSize())==null?void 0:f.height)},void 0,"OeIVKe");
return _.H(_.w,{cond:t,then:function(U){return _.H(_.sY,{data:U},{thumbnailOverlayTimeStatusRenderer:function(x){var A=x.data;x=_.KN(function(){return _.MD_(A(),0)},void 0,"skoDC");
return _.H(ARb,{badgeShapeData:x})},
thumbnailBadgeViewModel:function(x){return _.H(_.ZA4,{data:x.data,class:_.X5("ytInlinePlayerControlsLiveBadge","ytInlinePlayerControlsLiveBadgeDisplay")})},
thumbnailOverlayBadgeViewModel:function(x){return _.H(_.FcX,{data:x.data,thumbnailSize:p})}})},
else:function(){var U={type:18,text:Du.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.H(ARb,{badgeShapeData:function(){return U}})}})},"oj"),YpC=_.l(function(t){var E=t.props;
var p=t.data;var U=t.options;return _.H(_.wEb,{progressBarProps:E,config:function(){var x,A=_.k((x=p())==null?void 0:x.multiMarkersPlayerBar,_.opW),m;x=((m=U())==null?0:m.insetProgressBar)?2:1;var b;m=(b=U())==null?void 0:b.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:x,chapterData:A,isInlinePlayback:!0,doSeekOnClick:m,playheadDotBehavior:m?1:0}}})},"pj");_.k2(_.l(function(t){var E=t.data;var p=t.appApi;var U=t.options;var x=i$o(E,VY8(p));t={};p={};return _.H("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.H("div",{class:_.X5("ytInlinePlayerControlsDarkenedOverlay",(t.ytInlinePlayerControlsDarkenedOverlayShow=function(){return x().isHovering},t))}),_.H(TrC,null),_.H(y_t,{data:x}),_.H(S39,{data:E}),_.H(F1C,{playerControlsProps:x,
isShortsPage:!1}),_.H("div",{class:_.X5((p.ytInlinePlayerControlsControlsHidden=function(){return x().isDragging},p))},_.H(c_K,{props:x,
data:E,options:U}),_.H(pbb,{props:x,data:E,options:U})),_.H(_.w,{cond:function(){return QFC(E(),U())},
then:function(){return _.H(YpC,{props:x,data:E,options:U})}}))},"gj"),"yt-inline-player-controls",{props:{data:_.uu,
appApi:_.Cy,options:_.uu}});var sD=function(){var t=_.z.apply(this,arguments)||this;t.opts=null;t.playerControlsData=null;t.playerControlsAppApi={openInMiniplayer:function(){t.openInMiniplayer()}};
t.playerControlsOptions={};t.noAnimation=!1;t.playbackIntentTriggered=!1;t.positionData=null;t.hidden=!0;t.active=!1;t.playing=!1;t.persistentPanelVisible=!1;t.videoPreviewDataIndex=0;t.JSC$20964_playerPromise=null;t.player=null;t.enableAudioControls=!1;t.hasBeenUnmuted=!1;t.captionsHaveBeenTurnedOff=!1;t.JSC$20964_playerEvents=new Map;t.videoPreviewFetchRequest=null;t.scheduledPreviewEndJobId=null;t.JSC$20964_preventProgressSaveTimer=null;t.watchEndpointStartTimeUpdaterInterval=null;t.actionMap=
{"yt-open-video-preview-action":"handleOpenVideoPreviewAction","yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};t.windowOnBlurFn=function(){t.deactivate()};
return t};
_.u(sD,_.z);_.Y=sD.prototype;
_.Y.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"}}}};
_.Y.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$20964_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$20964_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$20964_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$20964_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.zI(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.zI(this,this.onScroll))};
_.Y.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.zI(this,this.onScroll))};
_.Y.onPageTypeChange=function(){this.deactivate()};
_.Y.onWindowResized=function(){this.deactivate()};
_.Y.onPersistentPanelVisibleChange=function(){this.deactivate()};
_.Y.onCaptionsChanged=function(t){t=!!t.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!t);this.setCaptionSize()};
_.Y.setCaptionSize=function(){var t;if(this.active&&!this.captionsHaveBeenTurnedOff&&((t=this.player)==null?0:t.getCaptionWindowContainerId())){var E;(E=this.player)==null||E.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.Y.currentPageAllowed=function(){return!this.isWatchPage};
_.Y.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.r("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var t=this.positionData,E=t.initialTopPosition,p=t.initialHorizontalPosition;_.eU(this.hostElement,{"--ytd-video-preview-translate-left":t.finalHorizontalPosition-p+"px","--ytd-video-preview-translate-top":t.finalTopPosition-E+"px","--ytd-video-preview-original-top-position":E+
"px","--ytd-video-preview-original-horizontal-position":p+"px","--ytd-video-preview-initial-scale":"scale("+t.initialScale+")","--ytd-video-preview-width":t.videoPreviewWidth+"px","--ytd-video-preview-height":t.videoPreviewHeight+"px"});return!0};
_.Y.isOutOfBounds=function(t){var E=t.initialHorizontalPosition+12;t=E+t.videoPreviewWidth>window.innerWidth;return E<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&E<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&E<72||t};
_.Y.handleOpenVideoPreviewAction=function(t){var E=this,p;return _.q(function(U){if(!E.currentPageAllowed())return U.return(0);E.opts=t;return(p=E.alignVideoPreviewForAnimation(t.thumbnail))?U.return(E.activate()):U.return(0)})};
_.Y.onMouseLeave=function(t){var E,p;(E=this.opts)==null||(p=E.mouseleaveCallback)==null||p.call(E);this.shouldDeactivateOnMouseLeave(t)&&this.deactivate()};
_.Y.onScroll=function(){var t,E;((t=this.opts)==null?0:t.isAutoplay)&&((E=this.opts)==null?0:E.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.Y.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.ir.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.Y.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.Y.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",sD.JSC$20963_DEFAULT_CLICK_LOCATION_BEHAVIOR,sD.JSC$20963_CLICK_LOCATION_ID_MAP)};
_.Y.shouldDeactivateOnMouseLeave=function(t){t=t.relatedTarget;if(!t)return!0;var E;return(E=this.opts)!=null&&E.mediaRenderer?!_.OU(this.opts.mediaRenderer).contains(t):!0};
_.Y.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.Y.onPlaybackStart=function(){var t=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$20964_preventProgressSaveTimer=
_.g4(_.ir,function(){t.resetPreventProgressSaveTimer()},1E4);
var E;if((E=this.opts)==null?0:E.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.g4(_.ir,function(){t.hasMultipleVideoPreviews()?t.startPlaybackForNextVideo():t.deactivate()},this.opts.videoPreviewDurationMs);
var p;this.player.setGlobalCrop(((p=this.opts)==null?0:p.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.Y.getRoundedCornersSize=function(){var t;if((t=this.opts)==null?0:t.roundedCornersSize){var E;return(E=this.opts)==null?void 0:E.roundedCornersSize}var p;if((p=this.opts)==null?0:p.enableRounding){var U;if(((U=this.opts)==null?void 0:U.thumbnailSize)==="small")return 1;var x;if(((x=this.opts)==null?void 0:x.thumbnailSize)==="medium")return 2;var A;if(((A=this.opts)==null?void 0:A.thumbnailSize)==="large")return 3}return _.r("web_imp_inset_progress_bar")?3:0};
_.Y.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.Y.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.Y.onMediaContainerClick=function(t){this.isShortcutClick(t)||(this.navigateToWatch(t),t.preventDefault(),t.stopPropagation())};
_.Y.activate=function(){var t=this,E,p,U,x,A,m,b,f,B;return _.q(function(R){switch(R.nextAddress){case 1:if(!t.currentPageAllowed())return R.return(0);p=(E=t.videoPreviewData)==null?void 0:E.inlinePlaybackEndpoint;U=_.iA.instance;if(!p||!U)return R.return(0);t.playbackIntentTriggered=!0;((x=t.opts)==null?0:x.mediaRenderer)&&((A=t.opts)==null||!A.isAutoplay)&&tYd(t.opts.mediaRenderer,function(){t.deactivate()});
_.XE(t,function(){t.revealPreviewUi()});
m={};_.r("enable_unknown_lact_fix_on_html5")&&(_.X3().resolve(_.Ly),m.lact=_.af());t.videoPreviewFetchRequest=W8t(U,t.getInlinePlaybackRequestData(t.videoPreviewData),m);_.aR(R,2);return R.yield(t.videoPreviewFetchRequest,4);case 4:b=R.yieldResult;if(((f=b)==null?void 0:(B=f.playabilityStatus)==null?void 0:B.status)==="OK")return R.return(t.handlePlayerResponse(b));throw Error("Jl");case 2:_.nB(R),t.deactivate();case 3:return R.return(1)}})};
_.Y.getInlinePlaybackRequestData=function(t){var E,p=_.r("web_imp_player_mute_params")?((E=this.opts)==null?void 0:E.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:t.inlinePlaybackEndpoint,startPlaybackInMutedState:p}};
_.Y.handlePlayerResponse=function(t){var E=this,p,U,x,A,m,b,f,B,R,V,Q,C,d,I;return _.q(function(O){if(O.nextAddress==1){p=E.getInlinePlaybackVideoId();if(!(((U=t)==null?0:(x=U.videoDetails)==null?0:x.videoId)&&E.currentPageAllowed()&&E.playbackIntentTriggered&&E.opts&&p))return E.deactivate(),O.return(0);if(t.videoDetails.videoId!==p)return O.return(0);E.enableAudioControls=!!((A=t.playerConfig)==null?0:(m=A.inlinePlaybackConfig)==null?0:m.showAudioControls);t.trackingParams=E.getInlinePlaybackTrackingParams();
if(!E.inlinePlayer)return O.return(0);b={};if(B=_.k((f=E.videoPreviewData)==null?void 0:f.inlinePlaybackEndpoint,_.HD))b.watch_endpoint=B;if(E.videoPreviewData){var a,F=(a=_.k(E.videoPreviewData.inlinePlaybackEndpoint,_.HD))==null?void 0:a.startTimeSeconds;F!==void 0&&(t.playerConfig||(t.playerConfig={}),t.playerConfig.playbackStartConfig||(t.playerConfig.playbackStartConfig={}),t.playerConfig.playbackStartConfig.startPosition||(t.playerConfig.playbackStartConfig.startPosition={}),t.playerConfig.playbackStartConfig.startSeconds=
F,t.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(F*1E3))}E.inlinePlayer.loadVideoWithPlayerResponse(t,b);if(E.JSC$20964_playerPromise)return O.jumpTo(2);E.JSC$20964_playerPromise=E.inlinePlayer.getPlayerPromise();return O.yield(E.JSC$20964_playerPromise,3)}O.nextAddress!=2&&(R=O.yieldResult,R.setInlinePreview(!0),V=!_.r("web_imp_theater_bugfix"),R.setSizeStyle(!1,V),E.ytPlayerListenerBehavior.listenToPlayerEvents(R,E.JSC$20964_playerEvents),E.player=R,_.kT(E.hostElement,
"player-api-ready"));((Q=E.opts)==null?0:Q.showPlayerControls)&&E.videoPreviewData&&E.player&&(E.playerControlsData={playerResponse:t,isInlinePlayback:!0,thumbnailOverlays:E.videoPreviewData.thumbnailOverlays,playerApi:E.player},E.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!E.unroundCornersForPlayback,additionalButton:E.getAdditionalButtonType(E.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(C=E.opts)==null?void 0:C.hideTimeDisplay,hideScrubbingControls:(d=E.opts)==
null?void 0:d.hideScrubber,hideCaptionsToggleButton:(I=E.opts)==null?void 0:I.hideCaptionsToggleButton});return O.return(2)})};
_.Y.revealPreviewUi=function(){var t=this;this.playbackIntentTriggered&&_.B9t(this,function(){t.hasThumbnailPositionChangedSinceTriggered()||(t.updateActiveState(!0),t.noAnimation=!1)})};
_.Y.hasThumbnailPositionChangedSinceTriggered=function(){var t=this.positionData,E=this.getThumbnailPositionData();return(t==null?void 0:t.initialTopPosition)!==(E==null?void 0:E.initialTopPosition)||(t==null?void 0:t.initialHorizontalPosition)!==(E==null?void 0:E.initialHorizontalPosition)};
_.Y.getThumbnailPositionData=function(){var t,E;if((E=this.opts)==null||!E.thumbnail)return null;E=this.opts.thumbnail;var p=((t=this.opts)==null?0:t.cropPlayerToFillThumbnailHorizontally)?!1:!0;var U=E.getBoundingClientRect();t=U.width;E=U.height;var x=U.top+window.scrollY;U=U.left+window.scrollX;var A=p?Math.ceil(t):t;p=p?Math.ceil(E):E;var m=t/A;t={initialScale:m,initialTopPosition:x-12*m,finalTopPosition:x-12-(p-E)/2,initialHorizontalPosition:U-(12+(A-t)/2),finalHorizontalPosition:U-12-(A-t)/
2,videoPreviewWidth:A,videoPreviewHeight:p};return t};
_.Y.updateActiveState=function(t){this.active=t;this.ytdReduxBehavior.dispatch(_.Jj({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:t}))};
_.Y.stopPlayer=function(t){t=t.resetWatchEndpointStartTime===void 0?!1:t.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(t)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.ir.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.Y.deactivate=function(t){t=t===void 0?{}:t;t=t.resetWatchEndpointStartTime===void 0?!1:t.resetWatchEndpointStartTime;v1o&&(v1o.disconnect(),v1o=null);this.stopPlayer({resetWatchEndpointStartTime:t});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.Y.isValidThumbnailOverlayButton=function(t,E){t=t.thumbnailOverlayButtonRenderer;var p;return!!t&&!!t.tooltip&&!((p=t.icon)==null||!p.iconType)&&E.includes(t.icon.iconType)};
_.Y.isValidThumbnailOverlayButtonViewModel=function(t,E){var p;t=_.k((p=t.thumbnailOverlayButtonViewModel)==null?void 0:p.overlayButton,_.Cz);return!!t&&!!t.title&&!!t.iconName&&E.includes(t.iconName)};
_.Y.getAdditionalButtonType=function(t){var E=this;if(_.r("web_imp_fastforward_button"))return{button:1};if(_.r("web_imp_miniplayer_button"))return{button:2};if(_.r("web_imp_playback_speed_button"))return{button:3};var p=["BOX_STACK_3"],U=(t||[]).filter(function(A){return E.isValidThumbnailOverlayButton(A,p)}).map(function(A){return A.thumbnailOverlayButtonRenderer});
if(U.length)return{button:4,thumbnailOverlayButtonRenderers:U};var x=["BOX_STACK_3"];t=(t||[]).filter(function(A){return E.isValidThumbnailOverlayButtonViewModel(A,x)}).map(function(A){return _.k(A.thumbnailOverlayButtonViewModel.overlayButton,_.Cz)});
if(t.length)return{button:4,thumbnailOverlayButtonViewModels:t}};
_.Y.allowCaptions=function(){var t;return!((t=this.opts)==null?0:t.forceCaptionsOff)};
_.Y.allowUnmuting=function(){var t;return this.enableAudioControls&&!((t=this.opts)==null?0:t.forceMutedVolume)};
_.Y.beginStartTimeUpdater=function(){var t=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.D3(function(){t.updateWatchEndpointStartTime()},1E3)};
_.Y.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.Y.resetPreventProgressSaveTimer=function(){this.JSC$20964_preventProgressSaveTimer!==null&&(_.ir.cancelJob(this.JSC$20964_preventProgressSaveTimer),this.JSC$20964_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.Y.updateWatchEndpointStartTime=function(t){var E=this.videoPreviewData;if(this.player&&E!=null&&E.inlinePlaybackEndpoint&&!this.JSC$20964_preventProgressSaveTimer){t=t?0:Math.floor(this.player.getCurrentTime());var p=_.k(E.navigationEndpoint,_.HD);p&&(p.startTimeSeconds=t);if(E=_.k(E.inlinePlaybackEndpoint,_.HD))E.startTimeSeconds=t}};
_.Y.isShortcutClick=function(t){return!!t&&(t.ctrlKey||t.shiftKey||t.metaKey)};
_.Y.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.Y.openInMiniplayer=function(){var t=this,E,p;return _.q(function(U){if(U.nextAddress==1){p=(E=t.videoPreviewData)==null?void 0:E.navigationEndpoint;if(!p)return U.return();_.S3().lockupActivation=!0;return U.yield(_.Yzf(_.X3().resolve(_.bf),p),2)}_.S3().userActivation=!0;_.Do(U)})};
_.Y.navigateToWatch=function(t){var E,p=(E=this.videoPreviewData)==null?void 0:E.navigationEndpoint;if(p){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(p,t,!0);else{var U;_.r("web_thumbnail_to_watch_transition")&&((U=this.opts)==null?0:U.thumbnail)&&_.UHo(_.X3().resolve(_.pU),this.opts.thumbnail);_.kT(this.hostElement,"yt-navigate",{endpoint:p})}this.deactivate()}};
_.Y.getInlinePlaybackVideoId=function(){var t,E;return(E=_.k((t=this.videoPreviewData)==null?void 0:t.inlinePlaybackEndpoint,_.HD))==null?void 0:E.videoId};
_.Y.getInlinePlaybackTrackingParams=function(){var t,E;return(t=this.videoPreviewData)==null?void 0:(E=t.inlinePlaybackEndpoint)==null?void 0:E.clickTrackingParams};
_.Y.hasMultipleVideoPreviews=function(){var t;return!!(((t=this.opts)==null?0:t.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.Y.startPlaybackForNextVideo=function(){var t;(t=this.opts)!=null&&t.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())};
_.aE.Object.defineProperties(sD.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.opts)==null?0:t.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.opts)==null||!t.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 t;if(Array.isArray((t=this.opts)==null?void 0:t.videoPreviewData)){var E;return(E=this.opts)==null?void 0:E.videoPreviewData[this.videoPreviewDataIndex]}var p;return(p=this.opts)==null?void 0:p.videoPreviewData}}});
sD.prototype.onIsAdsVideoChange=sD.prototype.onIsAdsVideoChange;sD.prototype.onInlinePreviewIsEnabledChange=sD.prototype.onInlinePreviewIsEnabledChange;sD.prototype.optsChanged=sD.prototype.optsChanged;sD.prototype.onMouseLeave=sD.prototype.onMouseLeave;sD.prototype.onPersistentPanelVisibleChange=sD.prototype.onPersistentPanelVisibleChange;sD.JSC$20963_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);
sD.JSC$20963_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"}];_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],sD.prototype,"actionHandlerBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],sD.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(_.JT.YtPlayerListenerBehavior),_.P("design:type",_.Il)],sD.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.g(_.jp.YtdGuideStateAwareBehavior),_.P("design:type",Object)],sD.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],sD.prototype,"componentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],sD.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.Be),_.P("design:type",Object)],sD.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.ep.YtSparklesClickLocationBehavior),_.P("design:type",Object)],sD.prototype,"ytSparklesClickLocationBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],sD.prototype,"opts",void 0);_.N([_.e(),_.P("design:type",Object)],sD.prototype,"playerControlsData",void 0);_.N([_.e(),_.P("design:type",Object)],sD.prototype,"playerControlsAppApi",void 0);
_.N([_.e(),_.P("design:type",Object)],sD.prototype,"playerControlsOptions",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],sD.prototype,"noAnimation",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],sD.prototype,"hidden",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],sD.prototype,"active",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],sD.prototype,"playing",void 0);
_.N([_.e({selector:_.ntL}),_.P("design:type",Boolean)],sD.prototype,"inlinePreviewIsEnabled",void 0);_.N([_.e(),_.P("design:type",String)],sD.prototype,"pagePath",void 0);_.N([_.e({selector:_.zOi}),_.P("design:type",Boolean)],sD.prototype,"isWatchPage",void 0);_.N([_.e({selector:_.i7.persistentPanelVisibleSelector}),_.P("design:type",Object)],sD.prototype,"persistentPanelVisible",void 0);
_.N([_.Z("videoPreviewData"),_.P("design:type",Object),_.P("design:paramtypes",[])],sD.prototype,"thumbnailData",null);_.N([_.Z("opts","active"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],sD.prototype,"hidePlayerControls",null);_.N([_.Z("opts"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],sD.prototype,"isAdsVideo",null);
_.N([_.Z("opts"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],sD.prototype,"roundedCornersSmall",null);_.N([_.Z("opts"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],sD.prototype,"roundedCornersMedium",null);_.N([_.Z("opts"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],sD.prototype,"roundedCornersLarge",null);
_.N([_.Z("opts"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],sD.prototype,"unroundCornersForPlayback",null);_.N([_.Z("opts","videoPreviewDataIndex"),_.P("design:type",Object),_.P("design:paramtypes",[])],sD.prototype,"videoPreviewData",null);_.N([_.e(),_.P("design:type",Object)],sD.prototype,"videoPreviewDataIndex",void 0);_.N([_.Nl("#inline-player"),_.P("design:type",Object)],sD.prototype,"inlinePlayer",void 0);
_.N([_.GI("persistentPanelVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sD.prototype,"onPersistentPanelVisibleChange",null);_.N([_.lc("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[MouseEvent]),_.P("design:returntype")],sD.prototype,"onMouseLeave",null);_.N([_.P3("opts"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sD.prototype,"optsChanged",null);
_.N([_.P3("inlinePreviewIsEnabled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sD.prototype,"onInlinePreviewIsEnabledChange",null);_.N([_.GI("isAdsVideo"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sD.prototype,"onIsAdsVideoChange",null);_.N([_.Ul({is:"ytd-video-preview",disableElementRegistration:!0})],sD);
_.G(sD,"ytd-video-preview",function(){if(e4C!==void 0)return e4C;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return e4C=t},{mode:2});var M6g;var L2=function(){var t=_.z.apply(this,arguments)||this;t.dismissButtonOverrides={iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"};t.forceDarkTheme=!1;t.forceLightTheme=!1;t.dynamicTextHeight=94;t.hasOverflowButton=!1;t.isInfeedModernization=!1;return t};
_.u(L2,_.z);_.Y=L2.prototype;_.Y.computeUrlImg=function(t){if(t)return _.uz(t.thumbnails)};
_.Y.getLogoHeight=function(t){return this.logoWithPadding(t)?"31":"24"};
_.Y.getLogoClassName=function(t){return this.logoWithPadding(t)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.Y.logoWithPadding=function(t){var E,p;return(t=(E=t.thumbnails)==null?void 0:(p=E[0])==null?void 0:p.height)&&t%31===0?!0:!1};
_.Y.sendImpressionEndpoints=function(t){t.impressionEndpoints&&_.JZ(this.hostElement,t.impressionEndpoints)};
_.Y.observeBasicPalette=function(){var t,E,p=(t=this.data)==null?void 0:(E=t.colorData)==null?void 0:E.basicColorPaletteData;p?_.$2(this.hostElement,p):_.$2(this.hostElement,{})};
_.Y.observeDataChanged=function(){var t;this.dynamicTextHeight=((t=this.data)==null?0:t.supplementalText)?74:94;var E;this.hasSupplementalText=!((E=this.data)==null||!E.supplementalText);var p,U,x,A;t=(p=this.data)==null?void 0:(U=p.actionButton)==null?void 0:(x=U.buttonRenderer)==null?void 0:(A=x.colorData)==null?void 0:A.basicColorPaletteData;var m,b,f;if(!((m=this.data)==null?0:(b=m.actionButton)==null?0:(f=b.buttonRenderer)==null?0:f.style)&&t){this.computeIsInfeedModernization(this.data)||(t.borderColor=
t.foregroundTitleColor);var B,R;this.set("data.actionButton.buttonRenderer",_.Kq.unsafeClone((B=this.data)==null?void 0:(R=B.actionButton)==null?void 0:R.buttonRenderer))}};
_.Y.observeDataForCounterfactual=function(){if(_.r("kevlar_banner_cf_extra_logging")){var t;((t=this.data)==null?0:t.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.Y.computeSupplementalStyle=function(){var t;if((t=this.data)!=null&&t.supplementalText){var E,p,U;if((E=this.data)==null?0:(p=E.colorData)==null?0:(U=p.basicColorPaletteData)==null?0:U.foregroundActivatedColor)return t=_.SL(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+t+"; --yt-endpoint-hover-color:"+t+"; --yt-endpoint-visited-color:"+t+"; --yt-formatted-string-bold-font-weight:700;"}};
_.Y.computeForcedDarkTheme=function(){var t,E,p,U=(t=this.data)==null?void 0:(E=t.actionButton)==null?void 0:(p=E.buttonRenderer)==null?void 0:p.style,x,A,m;t=GZ8(((x=this.data)==null?void 0:(A=x.colorData)==null?void 0:(m=A.basicColorPaletteData)==null?void 0:m.backgroundColor)||0);return U&&t};
_.Y.computeForcedLightTheme=function(){var t,E,p,U=(t=this.data)==null?void 0:(E=t.actionButton)==null?void 0:(p=E.buttonRenderer)==null?void 0:p.style,x,A,m;t=!GZ8(((x=this.data)==null?void 0:(A=x.colorData)==null?void 0:(m=A.basicColorPaletteData)==null?void 0:m.backgroundColor)||0);return U&&t};
_.Y.computeHasOverflowButton=function(t){return!!t.overflowButton};
_.Y.computeHasTitle=function(t){return!!t.title};
_.Y.computeTitleMaxFontSize=function(t){return this.computeHasOverflowButton(t)?28:64};
_.Y.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.Y.computeIsInfeedModernization=function(){var t,E,p,U,x=(t=this.data)==null?void 0:(E=t.actionButton)==null?void 0:(p=E.buttonRenderer)==null?void 0:(U=p.colorData)==null?void 0:U.basicColorPaletteData;return(x==null?void 0:x.backgroundColor)===452984831||(x==null?void 0:x.backgroundColor)===218103808};
L2.prototype.observeDataForCounterfactual=L2.prototype.observeDataForCounterfactual;L2.prototype.observeDataChanged=L2.prototype.observeDataChanged;L2.prototype.observeBasicPalette=L2.prototype.observeBasicPalette;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],L2.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],L2.prototype,"ytdDismissibleItemBehavior",void 0);
_.N([_.g(_.jp.YtdGuideStateAwareBehavior),_.P("design:type",Object)],L2.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],L2.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],L2.prototype,"hasSupplementalText",void 0);_.N([_.e(),_.P("design:type",Object)],L2.prototype,"dismissButtonOverrides",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.P("design:type",Boolean)],L2.prototype,"hasTitle",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.P("design:type",Object)],L2.prototype,"forceDarkTheme",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.P("design:type",Object)],L2.prototype,"forceLightTheme",void 0);_.N([_.e(),_.P("design:type",Object)],L2.prototype,"dynamicTextHeight",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.P("design:type",Object)],L2.prototype,"hasOverflowButton",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.P("design:type",Object)],L2.prototype,"isInfeedModernization",void 0);_.N([_.GI("data.colorData.basicColorPaletteData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],L2.prototype,"observeBasicPalette",null);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],L2.prototype,"observeDataChanged",null);_.N([_.GI("data.isVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],L2.prototype,"observeDataForCounterfactual",null);_.N([_.Ul({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],L2);
_.G(L2,"ytd-banner-promo-renderer",function(){if(M6g!==void 0)return M6g;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return M6g=t},{mode:1});var qpt=_.l(function(t){var E=t.data;var p=t.hideDivider;var U=t.isChannelInfoCard;t={};return _.H("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.H("div",{class:_.X5("yt-profile-identity-info-view-model__frame",(t["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!E().channelBanner},t))},_.H(m5J,{profileIdentityInfoData:E}),_.H("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.H("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.H(_.sY,{data:function(){return E().avatar}},{avatarViewModel:_.fk})),_.H(bne,{profileIdentityInfoData:E})),_.H(_.w,{cond:function(){return E().channelDescription},
then:function(x){var A={};return _.H("div",{class:_.X5((A["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(U==null||!U())},A["yt-profile-identity-info-view-model__channel-description"]=function(){return!(U==null?0:U())},A))},x)}}),_.H(inC,{profileIdentityInfoData:E}),_.H(_.w,{cond:function(){return!(p==null?0:p())},
then:function(){return _.H("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"qj");
qpt.idomCompat=!0;var inC=_.l(function(t){var E=t.profileIdentityInfoData;return _.H("div",{class:"yt-profile-identity-info-view-model__buttons"},_.H(_.yG,{each:function(){return E().subscribeButton?[E().subscribeButton,E().channelAccess]:[E().channelAccess]}},function(p){return _.H("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.H("div",{class:"yt-profile-identity-info-view-model--button"},_.H(_.sY,{data:function(){return p}},{buttonViewModel:_.D5,
subscribeButtonViewModel:_.fZ})))}))},"rj"),bne=_.l(function(t){var E=t.profileIdentityInfoData;
return _.H("div",{class:"yt-profile-identity-info-view-model__trio"},_.H("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.H(Hnt,{profileIdentityInfoData:E}),_.H(_.sY,{data:function(){return E().threeDotMenu}},{buttonViewModel:_.D5})),_.H(fIl,{profileIdentityInfoData:E}))},"sj"),Hnt=_.l(function(t){var E=t.profileIdentityInfoData;
return _.H("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.H("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return E().channelDisplayName}),_.H(_.w,{cond:function(){return E().verifiedOrOacBadge},
then:function(p){return _.H("div",{class:"yt-profile-identity-info-view-model__badge"},_.H(_.Q9,{data:function(){return{thumbnails:[{url:p().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"tj"),m5J=_.l(function(t){var E=t.profileIdentityInfoData;
return _.H("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.H(_.sY,{data:function(){var p=E().channelBanner;if(p)return{imageBannerViewModel:{image:p.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(p){return _.H("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.H(_.u2,{data:p.data,
isPositionRelative:!0}))}}))},"uj"),fIl=_.l(function(t){var E=t.profileIdentityInfoData;
return _.H("div",{class:"yt-profile-identity-info-view-model__metadata"},_.H("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.H("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return E().channelHandle}),_.H(_.w,{cond:function(){return E().channelPronouns&&E().channelHandle},
then:function(){return _.H("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.H("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return E().channelPronouns})),_.H("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.H("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return E().leftOfBulletInfo}),_.H(_.w,{cond:function(){return E().leftOfBulletInfo&&E().rightOfBulletInfo},
then:function(){return _.H("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.H("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return E().rightOfBulletInfo})))},"vj");_.k2(qpt,"yt-profile-identity-info-view-model",{props:{data:_.uu,hideDivider:_.uu,isChannelInfoCard:_.uu}});_.k2(_.j08,"yt-page-header-view-model",{props:{data:_.uu,noPadding:_.uu,enableBanner:_.uu,cinematicContainerTopbarOffset:_.uu,allowCinematicContainerOverflow:_.uu,displayAsSidebar:_.uu,displayAsPanel:_.uu,alwaysUseMediumTextDescription:_.uu}});var Bqt=_.l(function(){return _.H("div",{class:_.X5("ytdGhostGridViewModelGhostCard")},_.H("div",{class:_.X5("ytdGhostGridViewModelThumbnail","ytdGhostGridViewModelGhostColor")}),_.H("div",{class:_.X5("ytdGhostGridViewModelDetails")},_.H("div",{class:_.X5("ytdGhostGridViewModelChannelAvatar","ytdGhostGridViewModelGhostColor")}),_.H("div",{class:_.X5("ytdGhostGridViewModelDetailsTextShell")},_.H("div",{class:_.X5("ytdGhostGridViewModelVideoTitle","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}),
_.H("div",{class:_.X5("ytdGhostGridViewModelVideoMeta","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}))))},"xj");_.k2(_.l(function(t){var E=t.data;var p=_.D4(_.tf);return _.H("ytd-ghost-grid-view-model",{class:_.X5("ytdGhostGridViewModelHost")},_.H(_.yG,{each:function(){var U=Array,x;var A=((x=E().numRows)!=null?x:0)*p();return U(A)},
keyBy:"INDEX"},function(){return _.H(Bqt,null)}))},"wj"),"ytd-ghost-grid-view-model",{props:{data:_.uu}});_.k2(_.l(function(t){var E=t.data;var p=function(){var x;return(x=E().numColumns)!=null?x:2},U=function(){return p()>1?3:2};
t={};return _.H("ytd-rich-grid-group",{class:_.X5("ytdRichGridGroupHost",(t.ytdRichGridGroupHostFirstColumn=function(){return E().colIndex===0},t)),
style:_.zO({"--ytd-rich-grid-group-num-columns":p,"--ytd-rich-grid-items-per-group":U})},_.H("div",{class:"ytdRichGridGroupContents"},_.H(_.sY,{data:function(){var x;return(x=E().contents)==null?void 0:x.slice(0,U())}},{richItemRenderer:function(x){return _.H(_.jjG,{data:x.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"yj"),"ytd-rich-grid-group",{props:{data:_.uu}});var PP=function(){var t=_.z.apply(this,arguments)||this;t.resizeOnObserverInit=!1;t.isInlinePreviewDisabled=_.r("web_disable_inline_preview");t.disableStickyFilterBar=!1;t.transparentBackgroundChipsBar=!1;t.hideChipsBar=!1;t.isScrolled=!1;t.isWatchDefaultLayout=!0;t.continuationShowButton=!1;t.rowReducedHorizontalMargin=!1;t.useCompactList=!1;t.manualDownloadsPresent=!1;t.smartDownloadsPresent=!1;t.isOnline=!1;t.shouldRenderDownloadsBanner=!1;t.shouldRenderDownloadsBannerUpsell=!1;t.hasOptedIntoSmartDownloads=
!1;t.elementsPerRow=4;t.typographyBump=!1;t.slimItemsPerRow=1;t.pageLoadingFromNavigation=!1;t.resizeObserver=null;t.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"};t.rendererToTagNameMap=new Map(Object.entries(t.contentMapping()).map(function(E){var p=
_.M(E);E=p.next().value;p=p.next().value;return[E,p.component]}));
t.insertedContent=new Map;return t};
_.u(PP,_.z);_.Y=PP.prototype;_.Y.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var t=_.M(_.ZN(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),E=t.next();!E.done;E=t.next())E.value.useCompactList=this.useCompactList};
_.Y.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var t=_.M(_.ZN(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),E=t.next();!E.done;E=t.next())E=E.value,E.sizing=this.sizing,E.typographyBump=this.typographyBump};
_.Y.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.Y.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]]"}}}};
_.Y.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},loadingContentRenderer:{id:"reload-content",
mapping:{ghostGridViewModel:{component:"ytd-ghost-grid-view-model"}}}}};
_.Y.attached=function(){document.addEventListener("yt-page-type-changed",_.zI(this,this.onPageChange));document.addEventListener("yt-feed-customization-scroll-up",_.zI(this,this.onFeedCustomizationScrollUp));this.updateItemMinAndMaxWidth();this.JSC$20993_throttledOnResize=new _.F5(this.resizeObserved,_.z3("rich_grid_resize_delay_ms",50),this);this.showChipsOnScroll&&window.addEventListener("scroll",_.zI(this,this.onScroll))};
_.Y.detached=function(){var t;(t=this.resizeObserver)==null||t.disconnect();document.removeEventListener("yt-page-type-changed",_.zI(this,this.onPageChange));document.removeEventListener("yt-feed-customization-scroll-up",_.zI(this,this.onFeedCustomizationScrollUp));this.showChipsOnScroll&&window.removeEventListener("scroll",_.zI(this,this.onScroll))};
_.Y.insertRichSection=function(t){var E=t.richItemTargetId;t=t.richSectionRendererToInsert;E&&t&&(this.insertedContent.set(E,{content:t,timestamp:Date.now()}),this.reflowContent())};
_.Y.computeIsInlinePreviewEnabled=function(t,E,p){return _.r("web_disable_inline_preview")?!1:!p&&C7b({miniplayerIsActive:t,miniplayerPlaybackState:E})};
_.Y.computeSizing=function(){var t=_.BUE(this.data);if(t||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return t?this.useCompactList?"COMPACT":t:this.miniMode?"COMPACT":"STANDARD"};
_.Y.updateItemMinAndMaxWidth=function(){var t=_.z3("rich_grid_max_item_width",500);t>0&&_.eU(this.hostElement,{"--ytd-rich-grid-item-max-width":t+"px"});var E;t=this.getRichItemMinWidth((E=this.hostElement)==null?void 0:E.clientWidth);t>0&&_.eU(this.hostElement,{"--ytd-rich-grid-item-min-width":t+"px"})};
_.Y.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.Y.resizeObserved=function(){_.uO(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.Y.onPageChange=function(){var t=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.uO(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.ir.addJob(function(){t.pageLoadingFromNavigation=!1;t.setMasthead();t.maybeSetBigYoodle();t.forceRefreshAndLog();t.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.Y.dataChanged=function(){var t=this;_.uO(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.XE(this,function(){t.updateRichItemGridPositions();t.contentsElement&&_.eU(t.hostElement,{"--ytd-rich-grid-content-offset-top":t.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.Y.initResizeObserver=function(){var t=this;if(window.ResizeObserver){var E;(E=this.resizeObserver)==null||E.disconnect();var p=!1;this.resizeObserver=new ResizeObserver(function(){if(p){var U;(U=t.resizeObserver)==null||U.disconnect();var x;(x=t.JSC$20993_throttledOnResize)==null||x.fire();requestAnimationFrame(function(){var m;(m=t.JSC$20993_throttledOnResize)==null||m.fire();t.initResizeObserver()})}else if(p=!0,t.resizeOnObserverInit){var A;
(A=t.JSC$20993_throttledOnResize)==null||A.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.Y.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.uO(this.hostElement,"ytd-rich-item-index-update-action")};
_.Y.updateElementsPerRow=function(){_.uO(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.Jj({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.Jj({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.Y.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.Y.onRichShelfRendererCollapse=function(t){if(this.shownItems){var E=t.detail;t=this.shownItems.findIndex(function(U){var x,A;return((A=_.k(U==null?void 0:(x=U.richSectionRenderer)==null?void 0:x.content,_.Jls))==null?void 0:A.trackingParams)===E});
var p=t+1;t<0||p>=this.contentsElement.children.length||!this.shownItems[p].richItemRenderer||this.contentsElement.children[p].scrollIntoView({behavior:"smooth",block:"start"})}};
_.Y.onSoftReloadPage=function(){this.scrollUpToTop()};
_.Y.handleRerenderDownloadsData=function(){_.r("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.Y.handlePlaylistRemoveVideosAction=function(t){var E;if(((E=_.k(t,_.L$m))==null?0:E.setVideoIds)&&this.data&&this.data.contents){t=_.k(t,_.L$m).setVideoIds;for(E=this.data.contents.length-1;E>=0;){var p=_.k(this.data.contents[E],_.Eu);(p=p&&_.k(p.content,_.BH))&&p.setVideoId&&t.includes(p.setVideoId)&&this.splice("data.contents",E,1);E--}this.updateIndices()}};
_.Y.updateIndices=function(){if(this.data&&this.data.contents)for(var t=0;t<this.data.contents.length;t++)this.set("data.contents."+t+".richItemRenderer.index",_.wN(String(t+1)))};
_.Y.hasTopRowInlinePlayableVideoWithEndorsement=function(t){var E;return!((E=t.slice(0,this.getItemsPerRow()))==null||!E.some(function(p){var U;p=_.k(p==null?void 0:(U=p.richItemRenderer)==null?void 0:U.content,_.r4m);var x;return(p==null?void 0:p.inlinePlaybackEndpoint)&&(p==null?void 0:(x=p.thumbnailOverlays)==null?void 0:x.some(function(A){return A.thumbnailOverlayEndorsementRenderer}))}))};
_.Y.refreshGridLayoutNew=function(t,E,p,U){var x=U.postsPerRow;var A=U.slimItemsPerRow;var m=U.gameCardsPerRow;U=U.miniGameCardsPerRow;var b;if((b=this.data)==null||!b.contents||!this.containerWidth)return!1;var f;if((f=this.data.responsiveContainerConfiguration)==null?0:f.responsiveSize){var B=_.WKi(this.data.responsiveContainerConfiguration,this.containerWidth,2),R;b=_.M6(Object.assign({},B,{standardUnitMinWidth:(R=this.data)==null?void 0:R.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&B.isCompactList)}else b=_.M6({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(B=this.data)==null?void 0:B.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=b.typographyBump;R=!1;if(t||this.elementsPerRow!==b.numItems||this.postsPerRow!==x||this.slimItemsPerRow!==A||this.gameCardsPerRow!==
m||this.miniGameCardsPerRow!==U||this.gutter!==b.gutter)R=this.elementsPerRow!==b.numItems,this.elementsPerRow=b.numItems,this.postsPerRow=x,this.slimItemsPerRow=A,this.gameCardsPerRow=m,this.miniGameCardsPerRow=U,this.gutter=b.gutter,this.itemWidth=b.itemWidth,this.reflowContent(E),_.eU(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":b.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(p);this.ytdReduxBehavior.dispatch(_.Jj({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:b.maxContainerWidth}));return R};
_.Y.refreshGridLayout=function(t,E){var p,U=(p=this.hostElement)==null?void 0:p.clientWidth;this.containerWidth=this.adjustRichGridWidth(U,!0);var x;if((x=this.data)==null||!x.contents||!this.containerWidth)return t&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(t=!0,this.pendingForceReflow=!1);p=this.getRichItemMinWidth(U);var A=this.isShortsPanel?146:194,m=this.getMiniGameCardMinWidth(),b=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:_.z3("rich_grid_default_max_items_per_row",
6);U=p=this.calcElementsPerRow(p,b);(x=p<=3&&this.miniModeAllowed())&&(p=this.calcElementsPerRow(240,4));var f=this.calcMaxSlimElementsPerRow(p,b,this.isDefaultGrid);b=this.calcElementsPerRow(A,f);var B=this.calcElementsPerRow(this.isCompactGrid?A:154,f);A=this.calcElementsPerRow(this.isCompactGrid?A:m,f);m=!1;if(this.sizing)return this.refreshGridLayoutNew(t,E,x,{postsPerRow:U,slimItemsPerRow:b,gameCardsPerRow:B,miniGameCardsPerRow:A});if(t||this.elementsPerRow!==p||this.postsPerRow!==U||this.slimItemsPerRow!==
b||this.gameCardsPerRow!==B||this.miniGameCardsPerRow!==A)m=this.elementsPerRow!==p,this.elementsPerRow=p,this.postsPerRow=U,this.slimItemsPerRow=b,this.gameCardsPerRow=B,this.miniGameCardsPerRow=A,this.reflowContent(E),this.updateElementsPerRow(),_.eU(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)&&_.eU(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(x);_.uO(this.hostElement,"yt-rich-grid-layout-refreshed");return m};
_.Y.getRichItemMinWidth=function(t){var E=_.z3("rich_grid_min_item_width",310);if(!_.r("kevlar_disable_min_width_override")){var p,U;E=(U=(p=this.data)==null?void 0:p.minItemWidth)!=null?U:E}return E+_.mr_(t)};
_.Y.calcMaxSlimElementsPerRow=function(t,E,p){return(p===void 0?0:p)?t===1?2:t%2===0?t/2*3:t+2:E*2};
_.Y.adjustRichGridWidth=function(t,E){var p=_.r("disable_rich_grid_guide_compensation");if(!this.isWatch&&!p){p=_.X3().resolve(_.OB(_.CE));var U=p==null?void 0:p.guideElement;if(!(!p||p.getData()||U!=null&&U.opened||p.getMiniGuideVisible()))if(p.canFitPersistentGuide(t)&&p.getGuideExpandsAutomatically()){var x,A,m=Number((x=window.getComputedStyle(this.hostElement))==null?void 0:(A=x.getPropertyValue("--app-drawer-width"))==null?void 0:A.replace("px",""));t-=m||0}else if(p.canFitMiniGuide(t)){var b;
x=Number((m=window.getComputedStyle(this.hostElement))==null?void 0:(b=m.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:b.replace("px",""));t-=x||0}}t>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(t-=E?32:48));return t};
_.Y.calcElementsPerRow=function(t,E){var p=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),U=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((p+U)/(t+U))||1,E)};
_.Y.reflowContent=function(t){var E=this;if(!this.isReflowing){this.isReflowing=!0;var p,U,x=!!((p=this.data)==null?0:(U=p.contents)==null?0:U.some(function(b){return _.k(b,_.um)}));
p=this.getItemsPerRow();var A;U=(A=this.data)==null?void 0:A.reflowOptions;t&&(_.SR("rgr_s"),_.XE(this,function(){_.SR("rgr_nrf")}));
t={};(A=_.ZN(this.hostElement).querySelector("#contents"))&&(t={contentElement:A,rendererToTagNameMap:this.rendererToTagNameMap});A=(A=this.data.contents)?A.slice():[];x=yZ7(A,p,x,U,this.getRichGridStyle(),t,this.insertedContent);var m=x.orderedContent;if(x=x.pinnedContentNotShownTargetIds)for(x=_.M(x),p=x.next();!p.done;p=x.next())this.insertedContent.delete(p.value);x=function(){E.shownItems=m;E.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(m),_.XE(this,x)):x()}};
_.Y.getFirstRowItems=function(t){for(var E=[],p=0;p<t.length;p++){var U=void 0,x=void 0,A=void 0,m=void 0,b=void 0,f=void 0;if(((U=t[p])==null?void 0:(x=U.richItemRenderer)==null?void 0:x.rowIndex)===0||((A=t[p])==null?void 0:(m=A.richGroupRenderer)==null?void 0:m.rowIndex)===0||((b=t[p])==null?void 0:(f=b.richSectionRenderer)==null?void 0:f.rowIndex)===0)E.push(t[p]);else break}return E};
_.Y.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.Y.resetInsertedContentIfNeeded=function(){(_.r("web_explore_hub_on_hover")||_.r("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.Y.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.Y.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()};
_.Y.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.Y.terminateVideoPreview=function(){_.uO(this.hostElement,"yt-terminate-video-preview-action")};
_.Y.updateRichItemGridPositions=function(){var t={gridData:{gridColumnCount:this.elementsPerRow}},E;((E=this.data)==null?0:E.trackingParams)&&(E=_.yL())&&_.fb(E,_.$8(this.data.trackingParams),t);_.uO(this.hostElement,"ytd-rich-item-index-update-action")};
_.Y.miniModeAllowed=function(){return this.isChannelPage};
_.Y.getMiniGameCardMinWidth=function(){return 154};
_.Y.updateMiniMode=function(t){this.miniMode=this.miniModeAllowed()&&t;this.ytdReduxBehavior.dispatch(_.Jj({type:"SET_RICH_GRID_MINI_MODE",payload:t}))};
_.Y.isCurrentPage=function(){return location.pathname===this.pagePath};
_.Y.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var t=_.X3().resolve(_.jw).getCurrentPage();t&&t.setScrollTop(0)}};
_.Y.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.Y.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.Y.maybeSetBigYoodle=function(){var t,E=(t=this.data)==null?void 0:t.bigYoodle;this.bigYoodleData!==E&&(this.bigYoodleData=E)};
_.Y.setMasthead=function(){var t;((t=this.data)==null?0:t.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.Y.getRichGridStyle=function(){var t,E;return(E=(t=this.data)==null?void 0:t.style)!=null?E:"RICH_GRID_STYLE_UNKNOWN"};
_.Y.onIsShortsGridChange=function(){var t=this.ytdReduxBehavior,E=t.dispatch,p=this.getRichGridStyle();E.call(t,_.Jj({type:"SET_RICH_GRID_STYLE",payload:p}))};
_.Y.onFeedCustomizationScrollUp=function(){this.scrollUpToTop()};
_.Y.onScroll=function(){this.isScrolled=window.scrollY>0};
_.aE.Object.defineProperties(PP.prototype,{showChipsOnScroll:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_show_chips_on_scroll")&&this.isHomePage&&!this.isChannelPage&&!this.isFilteredFeed}},
loadingContentRenderer:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.ytContinuationHandlerBehavior)==null?void 0:t.reloadUiContent}},
hasLoadingContent:{configurable:!0,enumerable:!0,get:function(){return!!this.loadingContentRenderer}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var t;return(((t=this.data)==null?void 0:t.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var t;return(((t=this.data)==null?void 0:t.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var t=_.X3().resolve(_.jw).getCurrentPage(),E,p,U;return(((E=this.data)==null?void 0:E.targetId)==="browse-feedFEsfv_audio_pivot"||_.r("web_enable_channel_pivot_panel")&&((p=this.data)==null?void 0:p.targetId)==="browse-feedFEsfv_channel_pivot"||_.r("web_enable_effect_pivot_panel")&&((U=this.data)==null?void 0:U.targetId)==="browse-feedFEsfv_effect_pivot")&&(t==null?void 0:t.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.r("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 t;return!((t=this.data)==null?0:t.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var t;return((t=_.X3().resolve(_.jw).getCurrentPage())==null?void 0:t.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var t;return((t=_.X3().resolve(_.jw).getCurrentPage())==null?void 0:t.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 t;return(((t=this.data)==null?void 0:t.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return((t=this.data)==null?0:t.enableContentSpecificAspectRatio)||((E=this.data)==null?0:(p=E.responsiveContainerConfiguration)==null?0:p.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.z3("web_continuation_handler_margin",0):0}}});
PP.prototype.onIsShortsGridChange=PP.prototype.onIsShortsGridChange;PP.prototype.onReloadContinuationFinish=PP.prototype.onReloadContinuationFinish;PP.prototype.reflowContent=PP.prototype.reflowContent;PP.prototype.handleRerenderDownloadsData=PP.prototype.handleRerenderDownloadsData;PP.prototype.onRichShelfRendererCollapse=PP.prototype.onRichShelfRendererCollapse;PP.prototype.onRequestElementsPerRow=PP.prototype.onRequestElementsPerRow;PP.prototype.contentLengthChanged=PP.prototype.contentLengthChanged;
PP.prototype.dataChanged=PP.prototype.dataChanged;PP.prototype.onSizingChange=PP.prototype.onSizingChange;PP.prototype.onUseCompactListChange=PP.prototype.onUseCompactListChange;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],PP.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],PP.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Ev),_.P("design:type",Object)],PP.prototype,"ironResizableBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],PP.prototype,"actionHandlerBehavior",void 0);_.N([_.g(_.I6),_.P("design:type",Object)],PP.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],PP.prototype,"componentBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],PP.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],PP.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0,selector:_.cA}),_.P("design:type",Boolean)],PP.prototype,"miniMode",void 0);_.N([_.e({value:[]}),_.P("design:type",Array)],PP.prototype,"shownItems",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],PP.prototype,"isReflowing",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],PP.prototype,"isFilteredFeed",void 0);_.N([_.e({selector:_.eOE}),_.P("design:type",Boolean)],PP.prototype,"guideIsExpanded",void 0);
_.N([_.e({selectorArgs:["entitySelectorType"],selector:function(t,E){if(_.r("kevlar_modern_downloads_page")&&E&&E!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(E){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":E=t.entities;var p=_.vA(E),U=_.yR(E),x=_.S7_(t),A=_.y4L(t),m=_.c4$(t),b=_.dYj(E),f=_.PA(p),B=_.S1(E);return _.DaE(p,U,b,_.gt_(E),x,A,f,B,m,_.Epj(t),_.U5(t));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return t=_.vA(t.entities),_.LK$(t);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return t=
_.jU$(t.entities),_.PDK(t);default:_.qW(new _.cC("Error: entitySelectorType defined but not matched in selector.",t,E))}}}),
_.P("design:type",Object)],PP.prototype,"entityDrivenRichGridData",void 0);_.N([_.e(),_.P("design:type",Object)],PP.prototype,"resizeOnObserverInit",void 0);_.N([_.e(),_.P("design:type",Object)],PP.prototype,"bigYoodleData",void 0);_.N([_.e(),_.P("design:type",Object)],PP.prototype,"mastheadData",void 0);_.N([_.e(),_.P("design:type",Boolean)],PP.prototype,"isInlinePreviewDisabled",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],PP.prototype,"disableStickyFilterBar",void 0);
_.N([_.e(),_.P("design:type",Object)],PP.prototype,"transparentBackgroundChipsBar",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],PP.prototype,"hideChipsBar",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("isHomePage","isFilteredFeed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],PP.prototype,"showChipsOnScroll",null);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],PP.prototype,"isScrolled",void 0);
_.N([_.e(),_.P("design:type",Object)],PP.prototype,"isWatchDefaultLayout",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],PP.prototype,"continuationShowButton",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],PP.prototype,"rowReducedHorizontalMargin",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],PP.prototype,"useCompactList",void 0);_.N([_.e({selector:function(t){return _.yR(t.entities).length>0}}),
_.P("design:type",Object)],PP.prototype,"manualDownloadsPresent",void 0);_.N([_.e({selector:function(t){return _.vA(t.entities).length>0}}),
_.P("design:type",Object)],PP.prototype,"smartDownloadsPresent",void 0);_.N([_.e({selector:_.U5}),_.P("design:type",Object)],PP.prototype,"isOnline",void 0);_.N([_.e({selector:_.y4L}),_.P("design:type",Object)],PP.prototype,"shouldRenderDownloadsBanner",void 0);_.N([_.e({selector:_.Epj}),_.P("design:type",Object)],PP.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.N([_.e({selector:_.S7_}),_.P("design:type",Object)],PP.prototype,"hasOptedIntoSmartDownloads",void 0);
_.N([_.GI("useCompactList"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],PP.prototype,"onUseCompactListChange",null);_.N([_.GI("sizing","typographyBump"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],PP.prototype,"onSizingChange",null);_.N([_.e({selector:_.Nw_}),_.P("design:type",Number)],PP.prototype,"miniplayerPlaybackState",void 0);_.N([_.e({selector:_.E5}),_.P("design:type",Boolean)],PP.prototype,"miniplayerIsActive",void 0);
_.N([_.e({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.P("design:type",Boolean)],PP.prototype,"isInlinePreviewEnabled",void 0);_.N([_.e({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.P("design:type",String)],PP.prototype,"sizing",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],PP.prototype,"elementsPerRow",void 0);
_.N([_.e(),_.P("design:type",Object)],PP.prototype,"typographyBump",void 0);_.N([_.e(),_.P("design:type",Number)],PP.prototype,"itemWidth",void 0);_.N([_.Nl("#header"),_.P("design:type",HTMLElement)],PP.prototype,"headerElement",void 0);_.N([_.Nl("#contents"),_.P("design:type",HTMLElement)],PP.prototype,"contentsElement",void 0);_.N([_.Z("reloadUiContent"),_.P("design:type",Object),_.P("design:paramtypes",[])],PP.prototype,"loadingContentRenderer",null);
_.N([_.Z("reloadUiContent"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],PP.prototype,"hasLoadingContent",null);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],PP.prototype,"dataChanged",null);_.N([_.P3("data.contents.length"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],PP.prototype,"contentLengthChanged",null);
_.N([_.lc("yt-request-elements-per-row"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],PP.prototype,"onRequestElementsPerRow",null);_.N([_.lc("yt-rich-shelf-renderer-collapse"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],PP.prototype,"onRichShelfRendererCollapse",null);
_.N([_.P3("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],PP.prototype,"handleRerenderDownloadsData",null);_.N([_.Z("data"),_.P("design:type",String),_.P("design:paramtypes",[])],PP.prototype,"entitySelectorType",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("data.targetId"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],PP.prototype,"isSub",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data.targetId"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],PP.prototype,"isWatch",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data.targetId"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],PP.prototype,"isShortsPanel",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("isWatch"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],PP.prototype,"reducedTopMargin",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data","isWatch","isWatchDefaultLayout"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],PP.prototype,"noTopMargin",null);_.N([_.e({reflectToAttribute:!0}),_.Z("isInlinePreviewEnabled","shownItems"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],PP.prototype,"topRowEndorsement",null);
_.N([_.Z("data.header"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],PP.prototype,"hideHeader",null);_.N([_.lc("yt-rich-grid-reflow"),_.P("design:type",Function),_.P("design:paramtypes",[Boolean]),_.P("design:returntype")],PP.prototype,"reflowContent",null);_.N([_.lc("yt-reload-continuation-finish"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],PP.prototype,"onReloadContinuationFinish",null);
_.N([_.Z("data"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],PP.prototype,"isSlimGrid",null);_.N([_.Z("data"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],PP.prototype,"isShortsGrid",null);_.N([_.Z("data","isSlimGrid","isShortsGrid"),_.e(),_.P("design:type",Boolean),_.P("design:paramtypes",[])],PP.prototype,"noRichItemGutterMargins",null);
_.N([_.Z("data"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],PP.prototype,"isShortsGridSlim",null);_.N([_.Z("data"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],PP.prototype,"isCompactGrid",null);_.N([_.Z("data"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],PP.prototype,"isDefaultGrid",null);
_.N([_.Z("data.targetId"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],PP.prototype,"hideChipsBarOnWatch",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],PP.prototype,"onIsShortsGridChange",null);_.N([_.Z("data.enableContentSpecificAspectRatio"),_.e(),_.P("design:type",Boolean),_.P("design:paramtypes",[])],PP.prototype,"force16By9ThumbnailAspectRatio",null);
_.N([_.Z("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],PP.prototype,"continuationTriggerOffset",null);_.N([_.Ul({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],PP);
_.G(PP,"ytd-rich-grid-renderer",function(){if(ixt!==void 0)return ixt;var t=document.createElement("template");_.J(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="contents" hidden="[[hasLoadingContent]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="reload-content" class="style-scope ytd-rich-grid-renderer"></div>\n');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return ixt=t},{mode:2});var wbo;var TL=function(){return _.z.apply(this,arguments)||this};
_.u(TL,_.z);_.Y=TL.prototype;
_.Y.onKeyDown=function(t){if(this.snippetElements.length!==0&&(t=t.keyCode,t===38||t===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);t===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.Ay(this.highlightedIndex,-1,this.snippetElements.length);t=this.snippetElements.length;var E=this.highlightedIndex%t;this.highlightedIndex=E*t<0?E+t:E;t=this.snippetElements[this.highlightedIndex];this.highlightSnippet(t);this.ensureVisible(t)}};
_.Y.onKeyUp=function(t){var E=this;PBo(t)&&(t.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.ir.cancelJob(this.inputTimerId),this.inputTimerId=_.ir.addLowPriorityJob(function(){E.typedValue&&(E.fetchSnippets(E.typedValue),E.logInputGesture(E.data))},1E3))};
_.Y.onClick=function(t){(t=_.Md0(t.target,null,"snippet-item"))&&this.selectSnippet(t)};
_.Y.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.Y.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.Y.ready=function(){var t=this;this.inputElement.addEventListener("focus",function(){t.snippetsWrapper.style.removeProperty("display")})};
_.Y.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.Y.getSourceTimelines=function(){if(!this.data)return[];var t=[];if(this.data.searchInVideoSources)for(var E=_.M(this.data.searchInVideoSources),p=E.next();!p.done;p=E.next())p=p.value,p==="SEARCH_IN_VIDEO_SOURCE_ASR"?t.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):p==="SEARCH_IN_VIDEO_SOURCE_OCR"&&t.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return t};
_.Y.fetchSnippets=function(t){var E=_.du(this.hostElement,"yt-get-current-video-id-action")[0],p=this.getSourceTimelines();t={getSearchInVideoCommand:{externalVideoId:E,query:t!=null?t:"",sourceTimelines:p},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.X3().resolve(_.ei).resolveCommand(t,{form:{element:this.hostElement}})};
_.Y.filterSnippets=function(t,E){var p=this;if(E){this.filteredSnippets=(0,_.Kq.unsafeClone)(t);var U=RegExp(_.zSL(E),"i");this.filteredSnippets=this.filteredSnippets.filter(function(m){return U.test(p.ytRendererBehavior.getSimpleString(m.snippet))});
t=_.M(this.filteredSnippets);for(var x=t.next();!x.done;x=t.next()){x=x.value;var A=this.ytRendererBehavior.getSimpleString(x.snippet);x.snippet={runs:[{text:A.substring(0,A.toLowerCase().indexOf(E))},{text:A.substring(A.toLowerCase().indexOf(E),A.toLowerCase().indexOf(E)+E.length),bold:!0},{text:A.substring(A.toLowerCase().indexOf(E)+E.length,A.length)}]}}}else this.filteredSnippets=t};
_.Y.onUpdateSearchInVideoResults=function(t){if(!(this.snippets.length>0)){var E,p,U;if((U=(E=_.k(t,D4d))==null?void 0:(p=E.results)==null?void 0:p.length)!=null&&U){var x;this.filteredSnippets=this.snippets=((x=_.k(t,D4d))==null?void 0:x.results).map(function(A){var m,b,f;return{startMs:A==null?void 0:(m=A.searchInVideoResultRenderer)==null?void 0:m.startMs,startTimeText:A==null?void 0:(b=A.searchInVideoResultRenderer)==null?void 0:b.startTimeText,snippet:A==null?void 0:(f=A.searchInVideoResultRenderer)==
null?void 0:f.snippet}})}}};
_.Y.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};
_.Y.highlightSnippet=function(t){t.classList.add("highlighted")};
_.Y.removeSnippetHighlight=function(t){t.classList.remove("highlighted")};
_.Y.selectSnippet=function(t){this.typedValue=String(t.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(t);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Y.ensureVisible=function(t){var E=this.snippetsWrapper.scrollTop,p=E+this.snippetsWrapper.clientHeight,U=t.offsetTop-this.snippetsWrapper.offsetTop;t=U+t.clientHeight;U<E?this.snippetsWrapper.scrollTop-=E-U:t>p&&(this.snippetsWrapper.scrollTop+=t-p)};
_.Y.seekPlayer=function(t){var E,p;return _.q(function(U){if(U.nextAddress==1){if(!t)return U.jumpTo(0);E=Number(t.dataset.startOffset);return U.yield(_.dG().getPlayerPromise(),3)}p=U.yieldResult;p.seekTo(E/1E3,!0);p.wakeUpControls();_.Do(U)})};
_.Y.logInputGesture=function(t){var E=_.yL();E&&(t==null?0:t.trackingParams)&&_.HA(E,_.$8(t.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.Y.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IU("typed-value-changed",this.typedValue))};
_.Y.updateTypedValueFromBinding=function(t){this.typedValue=t.currentTarget.value};
TL.prototype.typedValueChangedForBinding=TL.prototype.typedValueChangedForBinding;TL.prototype.dataChanged=TL.prototype.dataChanged;TL.prototype.panelContentVisibleChanged=TL.prototype.panelContentVisibleChanged;TL.prototype.onClick=TL.prototype.onClick;TL.prototype.onKeyUp=TL.prototype.onKeyUp;TL.prototype.onKeyDown=TL.prototype.onKeyDown;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],TL.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],TL.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],TL.prototype,"data",void 0);_.N([_.e({value:[]}),_.P("design:type",Array)],TL.prototype,"snippets",void 0);_.N([_.e({value:[]}),_.P("design:type",Array)],TL.prototype,"filteredSnippets",void 0);_.N([_.e({value:[]}),_.P("design:type",Array)],TL.prototype,"snippetElements",void 0);
_.N([_.Nl("#siv-input"),_.P("design:type",HTMLElement)],TL.prototype,"inputElement",void 0);_.N([_.Nl("#siv-snippets-wrapper"),_.P("design:type",HTMLElement)],TL.prototype,"snippetsWrapper",void 0);_.N([_.e(),_.P("design:type",String)],TL.prototype,"typedValue",void 0);_.N([_.e({value:-1}),_.P("design:type",Number)],TL.prototype,"highlightedIndex",void 0);_.N([_.lc("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[_.cf]),_.P("design:returntype")],TL.prototype,"onKeyDown",null);
_.N([_.lc("keyup"),_.P("design:type",Function),_.P("design:paramtypes",[_.cf]),_.P("design:returntype")],TL.prototype,"onKeyUp",null);_.N([_.lc("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],TL.prototype,"onClick",null);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],TL.prototype,"panelContentVisible",void 0);
_.N([_.GI("panelContentVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],TL.prototype,"panelContentVisibleChanged",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],TL.prototype,"dataChanged",null);_.N([_.GI("typedValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],TL.prototype,"typedValueChangedForBinding",null);
_.N([_.Ul({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],TL);
_.G(TL,"ytd-search-in-video-renderer",function(){if(wbo!==void 0)return wbo;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return wbo=t},{mode:1});var R68;var o9=function(){return _.z.apply(this,arguments)||this};
_.u(o9,_.z);o9.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
o9.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]]"}}}}}};
o9.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var t,E,p,U,x=(E=_.k((t=this.data)==null?void 0:t.onClickCommand,_.IJW))==null?void 0:(p=E.item)==null?void 0:(U=p.notificationTextRenderer)==null?void 0:U.successResponseText;x&&_.TU$(this.hostElement,x)}};
_.aE.Object.defineProperties(o9.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var t,E,p,U;return this.isProductPlaceholder&&((t=this.data)==null?void 0:(E=t.hiddenProductOptions)==null?void 0:E.showDropCountdown)&&!!((p=this.data)==null?0:(U=p.hiddenProductOptions)==null?0:U.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var t;return!this.isProductPlaceholder&&!((t=this.data)==null?0:t.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var t,E;return!((t=this.data)==null?0:t.priceReplacementText)&&!((E=this.data)==null||!E.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],o9.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],o9.prototype,"componentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],o9.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],o9.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0}),_.Z("isProductPlaceholder"),_.P("design:type",Object),_.P("design:paramtypes",[])],o9.prototype,"useCenterLayoutContainer",null);_.N([_.e({computed:"computeButtonOverride(data)"}),_.P("design:type",Object)],o9.prototype,"buttonOverride",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],o9.prototype,"isProductPlaceholder",null);
_.N([_.Z("isProductPlaceholder"),_.P("design:type",Object),_.P("design:paramtypes",[])],o9.prototype,"showDropCountdown",null);_.N([_.Z("isProductPlaceholder","data"),_.P("design:type",Object),_.P("design:paramtypes",[])],o9.prototype,"showBrandName",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],o9.prototype,"showPriceReplacementText",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],o9.prototype,"showPrice",null);
_.N([_.Z("isProductPlaceholder"),_.P("design:type",Object),_.P("design:paramtypes",[])],o9.prototype,"showMetadata",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],o9);
_.G(o9,"ytd-product-list-item-renderer",function(){if(R68!==void 0)return R68;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return R68=t},{mode:1});var V6t;var WP=function(){return _.z.apply(this,arguments)||this};
_.u(WP,_.z);WP.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
WP.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
WP.prototype.panelContentVisibleChanged=function(){var t=this,E;return _.q(function(p){if(p.nextAddress==1)return t.playerApi?p.jumpTo(2):p.yield(_.dG().getPlayerPromise(),3);p.nextAddress!=2&&(t.playerApi=p.yieldResult);(E=t.playerApi)==null||E.productsInVideoVisibilityUpdated(!!t.panelContentVisible);_.Do(p)})};
WP.prototype.panelContentVisibleChanged=WP.prototype.panelContentVisibleChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],WP.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],WP.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],WP.prototype,"panelContentVisible",void 0);_.N([_.e(),_.P("design:type",Object)],WP.prototype,"data",void 0);
_.N([_.GI("panelContentVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],WP.prototype,"panelContentVisibleChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],WP);
_.G(WP,"ytd-product-list-renderer",function(){if(V6t!==void 0)return V6t;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return V6t=t},{mode:1});var QBt;var $U=function(){var t=_.z.apply(this,arguments)||this;t.isToggleChecked=!1;return t};
_.u($U,_.z);$U.prototype.onDataChanged=function(){var t;this.isToggleChecked=((t=this.data)==null?void 0:t.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
$U.prototype.close=function(){var t;((t=this.data)==null?0:t.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
$U.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var t,E=_.k((t=this.data)==null?void 0:t.switchButton,Lvb);E&&(this.isToggleChecked&&E.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(E.switchOnInnertubeCommand),!this.isToggleChecked&&E.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(E.switchOffInnertubeCommand))};
$U.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
$U.prototype.onDataChanged=$U.prototype.onDataChanged;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],$U.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],$U.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],$U.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],$U.prototype,"isToggleChecked",void 0);_.N([_.e({value:_.zF("CLOSE")}),_.P("design:type",String)],$U.prototype,"closeButtonAriaLabel",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$U.prototype,"onDataChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],$U);
_.G($U,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(QBt!==void 0)return QBt;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return QBt=t},{mode:1});var CM8;var K2=function(){var t=_.z.apply(this,arguments)||this;t.hideTimestamps=!!_.WL("hide-transcript-timestamps");t.currentCueIndex=-1;t.flatCues=[];t.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};t.TEST_ONLY={getFlatCues:function(){return t.flatCues}};
return t};
_.u(K2,_.z);_.Y=K2.prototype;_.Y.hideTimestampsChanged=function(){_.o4("hide-transcript-timestamps",this.hideTimestamps)};
_.Y.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.Y.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.Y.dataChanged=function(){var t;if((t=this.data)!=null&&t.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;t=_.M(this.data.cueGroups);for(var E=t.next();!E.done;E=t.next()){E=_.M(_.k(E.value,Eld).cues);for(var p=E.next();!p.done;p=E.next())this.flatCues.push(Number(_.k(p.value,pM8).startOffsetMs))}}};
_.Y.onYtPlayerTimeChanged=function(t){if(!(t<0)){for(var E=this.currentCueIndex,p=E;;){var U=p>=0?this.flatCues[p]/1E3:-1;if(t+.5<U)--p;else if(U=p+1<this.flatCues.length?this.flatCues[p+1]/1E3:Infinity,t+.5>U)p+=1;else break}p!==E&&(E>=0&&((t=this.getCueElement(E))&&t.classList.remove("active"),(E=this.getCueGroupElement(E))&&E.classList.remove("active")),(E=this.getCueElement(p))&&E.classList.add("active"),(E=this.getCueGroupElement(p))&&E.classList.add("active"),this.currentCueIndex=p,this.isHovered||
this.scrollElementToTop(p))}};
_.Y.scrollElementToTop=function(t){t=this.getCueElement(t>=3?t-3:0);this.hostElement.scrollTop=Math.min(t.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Y.getCueElement=function(t){return _.ZN(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[t]+'"]')};
_.Y.getCueGroupElement=function(t){return(t=this.getCueElement(t))&&t.parentElement?t.parentElement.parentElement:null};
_.Y.onTap=function(t){var E=_.Qx(t);t.target.classList.contains("cue")&&this.seekCueElement(E)};
_.Y.onKeyPress=function(t){t.keyCode==13&&(t=_.Md0(t.target,null,"cue"))&&this.seekCueElement(t)};
_.Y.seekCueElement=function(t){t=Number(t.getAttribute("start-offset"));_.du(this.hostElement,"yt-transcript-player-seek",[t/1E3])};
_.Y.onMouseEnter=function(){this.isHovered=!0};
_.Y.onMouseLeave=function(){this.isHovered=!1};
K2.prototype.onMouseLeave=K2.prototype.onMouseLeave;K2.prototype.onMouseEnter=K2.prototype.onMouseEnter;K2.prototype.onKeyPress=K2.prototype.onKeyPress;K2.prototype.onTap=K2.prototype.onTap;K2.prototype.dataChanged=K2.prototype.dataChanged;K2.prototype.hideTimestampsChanged=K2.prototype.hideTimestampsChanged;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],K2.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],K2.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],K2.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],K2.prototype,"hideTimestamps",void 0);_.N([_.e(),_.P("design:type",Boolean)],K2.prototype,"isHovered",void 0);_.N([_.GI("hideTimestamps"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],K2.prototype,"hideTimestampsChanged",null);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],K2.prototype,"dataChanged",null);_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],K2.prototype,"onTap",null);_.N([_.lc("keypress"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],K2.prototype,"onKeyPress",null);
_.N([_.lc("mouseenter"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],K2.prototype,"onMouseEnter",null);_.N([_.lc("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],K2.prototype,"onMouseLeave",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],K2);
_.G(K2,"ytd-transcript-body-renderer",function(){if(CM8!==void 0)return CM8;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return CM8=t},{mode:1});var jBd;var vP=function(){var t=_.z.apply(this,arguments)||this;t.darkerPanels=_.r("web_watch_darker_panels");return t};
_.u(vP,_.z);vP.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],vP.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],vP.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],vP.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],vP.prototype,"darkerPanels",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],vP);
_.G(vP,"ytd-transcript-footer-renderer",function(){if(jBd!==void 0)return jBd;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return jBd=t},{mode:1});var rRd;var k7t;var yY=function(){var t=_.z.apply(this,arguments)||this;t.systemIcons=_.r("kevlar_system_icons");t.showClearButton=!1;return t};
_.u(yY,_.z);_.Y=yY.prototype;_.Y.handleInput=function(t){var E=this;t.target.value.length?_.qd(this,"ytdTranscriptSearchBoxSearch",function(){E.emitSearchEvent(t)},500):(_.C2l(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=t.target.value.length>0};
_.Y.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.Y.handleClick=function(){var t,E=(t=this.data)==null?void 0:t.trackingParams;E&&_.$3(_.Pu(),E)};
_.Y.handleClear=function(){_.C2l(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var t,E,p=(E=_.k((t=this.data)==null?void 0:t.clearButton,_.Ry))==null?void 0:E.trackingParams;p&&_.$3(_.Pu(),p);this.clear()};
_.Y.emitSearchEvent=function(t){_.kT(this.hostElement,"yt-transcript-search-box-search",{query:t.target.value});var E,p;(t=(p=_.k((E=this.data)==null?void 0:E.searchButton,_.Ry))==null?void 0:p.trackingParams)&&_.$3(_.Pu(),t)};
_.Y.emitClearEvent=function(){_.kT(this.hostElement,"yt-transcript-search-box-clear")};
_.aE.Object.defineProperties(yY.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.ZN(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],yY.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],yY.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],yY.prototype,"systemIcons",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],yY);
_.G(yY,"ytd-transcript-search-box-renderer",function(){if(k7t!==void 0)return k7t;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return k7t=t},{mode:1});var d5C;var uet;var S0=function(){return _.z.apply(this,arguments)||this};
_.u(S0,_.z);S0.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var t,E;this.sectionHeaderAriaLabel=(t=this.data)==null?void 0:(E=t.accessibility)==null?void 0:E.accessibilityData.label}};
S0.prototype.fireSelectedEvent=function(t){_.kT(this.hostElement,"ytd-transcript-section-header",{startMs:t})};
S0.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
S0.prototype.handleKeyPress=function(t){this.data&&t.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.aE.Object.defineProperties(S0.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var t,E;return(E=(t=this.data)==null?void 0:t.enableTappableTranscriptHeader)!=null?E:!1}}});
S0.prototype.dataChanged=S0.prototype.dataChanged;_.N([_.e(),_.P("design:type",Object)],S0.prototype,"data",void 0);_.N([_.e(),_.P("design:type",String)],S0.prototype,"sectionHeaderAriaLabel",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],S0.prototype,"enableTappableTranscriptHeader",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],S0.prototype,"dataChanged",null);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],S0);
_.G(S0,"ytd-transcript-section-header-renderer",function(){if(uet!==void 0)return uet;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return uet=t},{mode:1});var JR9;var II5;var cP=function(){var t=_.z.apply(this,arguments)||this;t.isEditMode=!1;t.touchCaptionsEnabled=!1;t.deleteCaptionCorrectionPopupCommand=null;t.voteCaptionCorrectionPopupCommand=null;t.roundedContainer=!0;t.mouseOver=!1;t.textChanged=!1;t.messages={suggest_correction:_.zF("suggest_correction",void 0,"Edit caption"),suggested_caption:_.zF("suggested_caption",void 0,"Suggested caption"),submit_correction:_.zF("submit_correction",void 0,"Submit for review"),cancel_correction:_.zF("cancel_correction",
void 0,"Cancel"),replay_segment:_.zF("replay_segment",void 0,"Re-play segment"),delete_correction:_.zF("delete_correction",void 0,"Delete correction")};t.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return t};
_.u(cP,_.z);_.Y=cP.prototype;_.Y.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)};
_.Y.handleDelete=function(t){if(this.deleteCaptionCorrectionPopupCommand){var E=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);E&&this.ytdOpenPopupBehavior.openPopup(E);t.stopPropagation()}};
_.Y.handleSubmit=function(t){if(this.data&&this.data.submitCaptionCorrectionCommand&&(t.stopPropagation(),this.textChanged)){var E;t=(E=_.k(this.data.submitCaptionCorrectionCommand,_.zh3))==null?void 0:E.params;E=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:t,correctionText:String(this.ironTextAreaElement.value),originalText:_.R4(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(E);this.isEditMode=!1}};
_.Y.handleUpdateSegmentText=function(t){(t=_.k(t,xVd))&&t.targetId&&this.data&&t.targetId===this.data.targetId&&(t.userCorrection&&(this.editedText=t.userCorrection),t.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.R4(this.data.snippet)),t.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=t.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=t.voteCaptionCorrectionPopupCommand?
t.voteCaptionCorrectionPopupCommand:null,t.accessibility&&(this.segmentAriaLabel=t.accessibility.accessibilityData.label))};
_.Y.handleCancel=function(t){this.isEditMode=!1;t.stopPropagation();this.logClientVe(159409)};
_.Y.handleEditSegmentCommand=function(t){(t=_.k(t,UVt))&&t.targetId&&this.data&&t.targetId===this.data.targetId&&this.handleEdit()};
_.Y.handleEditButtonClick=function(t){this.data&&(this.handleEdit(),t.stopPropagation())};
_.Y.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var t;(t=this.ironTextAreaElement.textarea)==null||t.focus();this.logClientVe(159407)}};
_.Y.handleMouseEnter=function(){this.mouseOver=!0};
_.Y.handleMouseLeave=function(){this.mouseOver=!1};
_.Y.handleReplay=function(t){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),t.stopPropagation(),this.logClientVe(159408))};
_.Y.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()))};
_.Y.handleKeypress=function(t){this.data&&(this.isEditMode?t.stopPropagation():this.isEnterPress(t)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(t)&&this.logClientVe(138758))};
_.Y.handleTextboxClick=function(t){t.stopPropagation()};
_.Y.handleTextboxKeydown=function(t){this.isControlEnterPress(t)?this.handleSubmit(t):t.key==="Escape"&&this.handleCancel(t)};
_.Y.handleTextboxKeyup=function(){this.textChanged=_.R4(this.latestText)!==String(this.ironTextAreaElement.value)};
_.Y.fireSelectedEvent=function(t){_.kT(this.hostElement,"yt-transcript-segment-selected",{startMs:t})};
_.Y.fireReplayEvent=function(t,E){_.kT(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(t-100,0),endMs:E})};
_.Y.fireEditEvent=function(t,E){_.kT(this.hostElement,"yt-transcript-segment-edit",{startMs:t,endMs:E})};
_.Y.isEnterPress=function(t){return t.key==="Enter"||t.code==="Enter"||t.code==="NumpadEnter"||t.keyCode===13?!0:!1};
_.Y.isControlEnterPress=function(t){var E=t.key==="Enter"||t.code==="Enter"||t.code==="NumpadEnter"||t.keyCode===13;return(t.ctrlKey||t.metaKey)&&E};
_.Y.isCopyPress=function(t){var E=t.ctrlKey;return t.key==="c"&&E};
_.Y.logClick=function(){var t,E=(t=this.data)==null?void 0:t.trackingParams;E&&_.$3(_.Pu(),E)};
_.Y.logClientVe=function(t){_.WH(_.Pu(),_.h8(t))};
_.aE.Object.defineProperties(cP.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}}});
cP.prototype.handleMouseLeave=cP.prototype.handleMouseLeave;cP.prototype.handleMouseEnter=cP.prototype.handleMouseEnter;cP.prototype.dataChanged=cP.prototype.dataChanged;_.N([_.g(_.oO.YtActionHandlerBehavior),_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],cP.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.aU),_.P("design:type",Object)],cP.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],cP.prototype,"ytRendererBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],cP.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],cP.prototype,"isEditMode",void 0);_.N([_.e(),_.P("design:type",Object)],cP.prototype,"touchCaptionsEnabled",void 0);_.N([_.e(),_.P("design:type",Object)],cP.prototype,"editedText",void 0);_.N([_.e(),_.P("design:type",Object)],cP.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.N([_.e(),_.P("design:type",Object)],cP.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.N([_.e(),_.P("design:type",String)],cP.prototype,"segmentAriaLabel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],cP.prototype,"roundedContainer",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],cP.prototype,"mouseOver",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],cP.prototype,"textChanged",void 0);_.N([_.e(),_.P("design:type",Object)],cP.prototype,"messages",void 0);
_.N([_.Nl("#suggestion"),_.P("design:type",Object)],cP.prototype,"ironTextAreaElement",void 0);_.N([_.Z("data","editedText"),_.P("design:type",Object),_.P("design:paramtypes",[])],cP.prototype,"latestText",null);_.N([_.Z("touchCaptionsEnabled","isEditMode"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],cP.prototype,"enableEditButton",null);
_.N([_.Z("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],cP.prototype,"enableUndoButton",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cP.prototype,"dataChanged",null);_.N([_.lc("mouseenter"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cP.prototype,"handleMouseEnter",null);
_.N([_.lc("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cP.prototype,"handleMouseLeave",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],cP);
_.G(cP,"ytd-transcript-segment-renderer",function(){if(II5!==void 0)return II5;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return II5=t},{mode:1});var tE=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};t.isError=!1;t.darkerPanels=_.r("web_watch_darker_panels");t.useParentMaxHeight=_.r("web_watch_transscript_use_parent_max_height");t.segmentOffsets=[];t.segmentIndex=-1;return t};
_.u(tE,_.z);_.Y=tE.prototype;_.Y.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"}}}}};
_.Y.segmentsChanged=function(){this.updateOffsets()};
_.Y.onYtPlayerTimeChanged=function(t){for(var E=this.segmentIndex,p=E;;){if(p>=0){var U=this.segmentOffsets[p].start;var x=this.segmentOffsets[p].isAutoScrollable}else U=-1,x=!0;var A=t+.5;if(!x){U=p+1<this.segmentOffsets.length?this.segmentOffsets[p+1].start:Infinity;if(A>=U){p+=1;continue}p=-1;break}if(A<U)U=p-1>=0&&this.segmentOffsets[p-1].isAutoScrollable,x=p===0||U?1:2,p-=x;else if(x=p+1<this.segmentOffsets.length&&this.segmentOffsets[p+1].isAutoScrollable?1:2,U=p+x<this.segmentOffsets.length?
this.segmentOffsets[p+x].start:Infinity,A>U)p+=x;else{if(p<0)break;p<this.segmentOffsets.length&&A>this.segmentOffsets[p].end&&(p=-1);break}}if(E!==p){if(E>=0){var m;(m=this.getSegmentElement(E))==null||m.classList.remove("active")}this.segmentIndex=p;if(!(p<0)){var b;(b=this.getSegmentElement(p))==null||b.classList.add("active");this.isHovered||this.scrollElementToTop(p)}}};
_.Y.handleSegmentEdit=function(t){t.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=t.target,_.du(this.hostElement,"yt-transcript-player-edit",[t.detail.startMs/1E3,t.detail.endMs/1E3]))};
_.Y.handleSegmentSelected=function(t){_.du(this.hostElement,"yt-transcript-player-seek",[t.detail.startMs/1E3])};
_.Y.handleSegmentReplay=function(t){_.du(this.hostElement,"yt-transcript-player-replay",[t.detail.startMs/1E3,t.detail.endMs/1E3])};
_.Y.handleSectionHeaderSelected=function(t){_.du(this.hostElement,"yt-transcript-player-seek",[t.detail.startMs/1E3])};
_.Y.onMouseEnter=function(){this.isHovered=!0};
_.Y.onMouseLeave=function(){this.isHovered=!1};
_.Y.onRetryButtonClick=function(){_.kT(this.hostElement,"transcript-retry-button-click")};
_.Y.getSegmentElement=function(t){return _.ZN(this.hostElement).querySelector(":nth-child("+(t+1)+")")};
_.Y.scrollElementToTop=function(t){t=this.getSegmentElement(t>=2?t-2:0);this.hostElement.scrollTop=Math.min(t.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Y.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(t){var E,p=(E=t.transcriptSegmentRenderer)!=null?E:t.transcriptSectionHeaderRenderer;return{start:Number(p.startMs)/1E3,end:Number(p.endMs)/1E3,isAutoScrollable:t.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.Y.clearHighlightedSegments=function(){var t=_.ZN(this.hostElement);t=_.M(t.querySelectorAll("ytd-transcript-segment-renderer"));for(var E=t.next();!E.done;E=t.next())E.value.classList.remove("active")};
_.aE.Object.defineProperties(tE.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.data)==null?void 0:t.searchResultSegments)||((E=this.data)==null?void 0:E.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
tE.prototype.onMouseLeave=tE.prototype.onMouseLeave;tE.prototype.onMouseEnter=tE.prototype.onMouseEnter;tE.prototype.handleSectionHeaderSelected=tE.prototype.handleSectionHeaderSelected;tE.prototype.handleSegmentReplay=tE.prototype.handleSegmentReplay;tE.prototype.handleSegmentSelected=tE.prototype.handleSegmentSelected;tE.prototype.handleSegmentEdit=tE.prototype.handleSegmentEdit;tE.prototype.segmentsChanged=tE.prototype.segmentsChanged;
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],tE.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],tE.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],tE.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],tE.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],tE.prototype,"isError",void 0);
_.N([_.e(),_.P("design:type",Object)],tE.prototype,"noResultLabel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],tE.prototype,"darkerPanels",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],tE.prototype,"useParentMaxHeight",void 0);_.N([_.Z("data"),_.P("design:type",Array),_.P("design:paramtypes",[])],tE.prototype,"segments",null);
_.N([_.Z("segments","noResultLabel"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],tE.prototype,"displayNoResults",null);_.N([_.GI("segments"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tE.prototype,"segmentsChanged",null);_.N([_.lc("yt-transcript-segment-edit"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],tE.prototype,"handleSegmentEdit",null);
_.N([_.lc("yt-transcript-segment-selected"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],tE.prototype,"handleSegmentSelected",null);_.N([_.lc("yt-transcript-segment-replay"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],tE.prototype,"handleSegmentReplay",null);
_.N([_.lc("ytd-transcript-section-header"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],tE.prototype,"handleSectionHeaderSelected",null);_.N([_.lc("mouseenter"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tE.prototype,"onMouseEnter",null);_.N([_.lc("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tE.prototype,"onMouseLeave",null);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],tE);
_.G(tE,"ytd-transcript-segment-list-renderer",function(){if(JR9!==void 0)return JR9;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return JR9=t},{mode:1});var EE=function(){var t=_.z.apply(this,arguments)||this;t.hideTimestamps=!!_.WL("hide-transcript-timestamps");t.isLoadingTranscripts=!1;t.darkerPanels=_.r("web_watch_darker_panels");t.isError=!1;t.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return t};
_.u(EE,_.z);_.Y=EE.prototype;_.Y.headerChanged=function(){var t,E;this.baseGetTranscriptsCommand=(E=_.k((t=this.data)==null?void 0:t.header,Abo))==null?void 0:E.onTextChangeCommand};
_.Y.bodyChanged=function(){var t=this.getBodyRenderer();t&&(t.initialSegments&&(this.initialTranscriptsRenderer=t),t.noResultLabel&&(this.noResultLabel=t.noResultLabel),t.retryLabel&&(this.retryLabel=t.retryLabel))};
_.Y.detached=function(){this.clearSearchBoxText()};
_.Y.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.Y.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"}}}};
_.Y.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.Y.fireSearch=function(t){var E=this;if(t){var p=t.detail.query;if(this.baseGetTranscriptsCommand){var U;t=(U=_.k(this.baseGetTranscriptsCommand,_.ax0))==null?void 0:U.params;var x;U=_.k((x=this.data)==null?void 0:x.footer,Ukt);var A;if((x=(A=_.k(U==null?void 0:U.languageMenu,Tod))==null?void 0:A.subMenuItems)&&x.length>0&&(A=x.find(function(f){return f.selected}))){var m,b;
t=(m=A.continuation)==null?void 0:(b=m.reloadContinuationData)==null?void 0:b.continuation}m=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:t,searchQuery:p}});this.ytComponentBehavior.resolveCommand(m,{commandController:{onServerError:function(){E.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});fvd(this.ytContinuationHandlerBehavior,function(){return p===E.getCurrentSearchBoxText()})}}};
_.Y.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.Y.onRetryButtonClick=function(){this.isError=!1;var t={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:t}))};
_.Y.hideTimestampsChanged=function(){_.o4("hide-transcript-timestamps",this.hideTimestamps)};
_.Y.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.Y.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.Y.handleSignalActionCopyTranscript=function(){var t=this,E=this.getBodyRenderer();E&&(E=((E==null?void 0:E.searchResultSegments)||(E==null?void 0:E.initialSegments)||[]).map(function(p){return _.k(p,Mkb)}).filter(function(p){return!!p}).map(function(p){return{snippet:p.snippet||{runs:[{text:""}]},
startTimeText:p.startTimeText||{simpleText:""}}}).map(function(p){var U=(p.snippet.runs||[]).reduce(function(x,A){return x+A.text},"");
return t.hideTimestamps?U:p.startTimeText.simpleText+" "+U}).join("\n"),this.copyToClipboard(E))};
_.Y.copyToClipboard=function(t){navigator.clipboard&&navigator.clipboard.writeText(t)};
_.Y.getCurrentSearchBoxText=function(){var t;return(t=this.searchBox)==null?void 0:t.value};
_.Y.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.Y.getBodyRenderer=function(){var t;return _.k((t=this.data)==null?void 0:t.body,YqJ)};
_.Y.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.aE.Object.defineProperties(EE.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.ZN(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
EE.prototype.hideTimestampsChanged=EE.prototype.hideTimestampsChanged;EE.prototype.searchCleared=EE.prototype.searchCleared;EE.prototype.fireSearch=EE.prototype.fireSearch;EE.prototype.onReloadContinuationFinish=EE.prototype.onReloadContinuationFinish;EE.prototype.bodyChanged=EE.prototype.bodyChanged;EE.prototype.headerChanged=EE.prototype.headerChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],EE.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],EE.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],EE.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.I6),_.P("design:type",Object)],EE.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],EE.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],EE.prototype,"hideTimestamps",void 0);
_.N([_.e(),_.P("design:type",Object)],EE.prototype,"isLoadingTranscripts",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],EE.prototype,"darkerPanels",void 0);_.N([_.e(),_.P("design:type",Object)],EE.prototype,"isError",void 0);_.N([_.GI("data.header"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],EE.prototype,"headerChanged",null);
_.N([_.P3("data.body"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],EE.prototype,"bodyChanged",null);_.N([_.lc("yt-reload-continuation-finish"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],EE.prototype,"onReloadContinuationFinish",null);_.N([_.lc("yt-transcript-search-box-search"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],EE.prototype,"fireSearch",null);
_.N([_.lc("yt-transcript-search-box-clear"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],EE.prototype,"searchCleared",null);_.N([_.GI("hideTimestamps"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],EE.prototype,"hideTimestampsChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],EE);
_.G(EE,"ytd-transcript-search-panel-renderer",function(){if(d5C!==void 0)return d5C;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return d5C=t},{mode:1});var pY=function(){var t=_.z.apply(this,arguments)||this;t.player=null;t.playerPollJobId=0;return t};
_.u(pY,_.z);_.Y=pY.prototype;_.Y.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.Y.onLoadReloadContinuation=function(t){_.r("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:t.target.data.continuation}}):(t={clickTrackingParams:t.target.data.clickTrackingParams,getTranscriptEndpoint:{params:t.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.X3().resolve(_.ei).resolveCommand(t,{form:{element:this.hostElement}}))};
_.Y.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"}}}};
_.Y.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.Y.attached=function(){this.updatePlayerListening()};
_.Y.detached=function(){this.updatePlayerListening()};
_.Y.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.Y.startPlayerListening=function(){var t=this,E;return _.q(function(p){if(p.nextAddress==1)return(E=_.k1())?p.yield(E.getPlayerPromise(),2):p.return();t.player=p.yieldResult;t.playerPollJobId=_.ir.addLowPriorityJob(function(){t.getPlayerVideoProgress()},1E3);
t.player.addEventListener("onCueRangeEnter",function(U){t.onCueRangeEnter(U)});
t.player.addEventListener("onCueRangeExit",function(U){t.onCueRangeExit(U)});
t.player.addEventListener("onStateChange",function(U){t.onPlayerStateChange(U)});
t.player.addEventListener("SEEK_TO",function(U){t.onPlayerSeek(U)});
_.Do(p)})};
_.Y.getPlayerVideoProgress=function(){var t=this;_.ir.cancelJob(this.playerPollJobId);if(this.player){var E=this.player.getCurrentTime();_.du(this.hostElement,"yt-player-time-changed",[E])}this.playerPollJobId=_.ir.addLowPriorityJob(function(){t.getPlayerVideoProgress()},1E3)};
_.Y.stopPlayerListening=function(){this.player=null;_.ir.cancelJob(this.playerPollJobId)};
_.Y.onPlayerStateChange=function(t){t===2&&this.removePendingCue()};
_.Y.onPlayerSeek=function(t){var E;if(E=this.pendingReplayCueId)E=this.pendingReplayCueId,E=t===(_.r("web_transcript_cue_id_killswitch")?Number(E):Number(E.split("_")[1]));E||this.removePendingCue()};
_.Y.onCueRangeEnter=function(t){reo(t)&&(this.pendingReplayCueId=t)};
_.Y.onCueRangeExit=function(t){reo(t)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.Y.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.Y.onYtTranscriptPlayerSeek=function(t){this.player&&this.player.seekTo(t,!0)};
_.Y.onYtTranscriptPlayerReplay=function(t,E){this.player&&(this.player.addCueRange(jFb(t),t,E),this.player.seekTo(t,!0),this.player.playVideo())};
_.Y.onYtTranscriptPlayerEdit=function(t,E){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(jFb(t),t,E),this.player.seekTo(t,!0))};
pY.prototype.onLoadReloadContinuation=pY.prototype.onLoadReloadContinuation;pY.prototype.panelContentVisibleChanged=pY.prototype.panelContentVisibleChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],pY.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],pY.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],pY.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],pY.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],pY.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],pY.prototype,"panelContentVisible",void 0);_.N([_.GI("panelContentVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pY.prototype,"panelContentVisibleChanged",null);
_.N([_.lc("yt-load-reload-continuation"),_.P("design:type",Function),_.P("design:paramtypes",[Object]),_.P("design:returntype")],pY.prototype,"onLoadReloadContinuation",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],pY);
_.G(pY,"ytd-transcript-renderer",function(){if(rRd!==void 0)return rRd;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return rRd=t},{mode:1});var gSC;var ZnL;var UE=function(){return _.z.apply(this,arguments)||this};
_.u(UE,_.z);UE.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.kT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.IK(this.hostElement,[this.data.clickCommand],this.hostElement))};
UE.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+(AR()+YS)+"px)"};
UE.prototype.updateShouldHideFromBinding=function(t){this.shouldHide=t.detail.value};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],UE.prototype,"rendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],UE.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Boolean)],UE.prototype,"shouldHide",void 0);_.N([_.Ul({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],UE);
_.G(UE,"ytd-ad-engagement-panel-banner-renderer",function(){if(ZnL!==void 0)return ZnL;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return ZnL=t},{mode:_.hX("kevlar_poly_si_batch_j070")?1:2});var Onl;var xy=function(){var t=_.z.apply(this,arguments)||this;t.buttonUpdate=_.r("web_modern_buttons");t.adsSemanticText=_.r("enable_ads_web_ep_buenos_aires_and_padding_fix");return t};
_.u(xy,_.z);xy.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.N([_.e(),_.P("design:type",Object)],xy.prototype,"data",void 0);_.N([_.e({computed:"computeHideDefaultAdBadge(data)"}),_.P("design:type",Boolean)],xy.prototype,"hideDefaultAdBadge",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],xy.prototype,"buttonUpdate",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],xy.prototype,"adsSemanticText",void 0);_.N([_.Ul({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],xy);
_.G(xy,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(Onl!==void 0)return Onl;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Onl=t},{mode:1});var Xb7;var AE=function(){var t=_.z.apply(this,arguments)||this;t.darkerPanels=_.r("web_watch_darker_panels");t.enableSqueezebackPanels=_.r("web_shorts_enable_squeezeback_panels");t.enableAnchoredPanel=_.r("desktop_shorts_v2_anchored_panel");t.headerClickListener=function(E){t.onHeaderClick(E)};
t.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return t};
_.u(AE,_.z);_.Y=AE.prototype;_.Y.computeAdsInfoButton=function(){if(_.r("web_modern_buttons")){var t,E;return(E=_.k((t=this.data)==null?void 0:t.subtitleComplex,xkl))==null?void 0:E.adInfoRenderer}};
_.Y.updateHeaderClickListener=function(){var t,E,p;((t=this.data)==null?0:t.navigationEndpoint)||((E=this.data)==null?0:E.onClickCommand)||_.k((p=this.data)==null?void 0:p.visibilityButton,_.Vs)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.Y.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}}}}}};
_.Y.collapsedChanged=function(){var t;(t=this.data)!=null&&t.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.r("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.Y.focus=function(t){var E=this;this.titleElement&&_.ir.addJob(function(){_.Jw(E.titleElement,t)},0,500)};
_.Y.computeTitleAriaLabel=function(t){var E=[];if(t.title){var p,U;E.push(this.ytRendererBehavior.getSimpleString(t.title)||((p=t.title.accessibility)==null?void 0:(U=p.accessibilityData)==null?void 0:U.label))}t.contextualInfo&&E.push(this.ytRendererBehavior.getSimpleString(t.contextualInfo));return E.join(" ")};
_.Y.onHeaderClick=function(t){this.shouldTriggerHeaderClick(t)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.kT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.IK(this.hostElement,[this.data.onClickCommand],this.hostElement)):(t=this.getVisibilityToggleButton())&&t.click())};
_.Y.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var t=_.k(this.data.visibilityButton,_.Ry)||_.k(this.data.visibilityButton,_.Vs);t&&this.ytRendererBehavior.logExplicitClick(t)}};
_.Y.getVisibilityToggleButton=function(){var t=_.ZN(this.hostElement).querySelector("#visibility-button").firstElementChild;return(t==null?void 0:t.is)==="ytd-toggle-button-renderer"?t:null};
_.Y.shouldTriggerHeaderClick=function(t){return!_.Qb(_.Vx(t),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.Y.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(t){t=_.k(t,ZZt);this.targetId&&(t==null?void 0:t.targetId)===this.targetId&&(t=t.navigationButton)&&this.set("data.navigationButton",t)};
_.aE.Object.defineProperties(AE.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var t;return!!(((t=this.entity)==null?0:t.isActionButtonHidden)||this.hideActionButton)}}});
AE.prototype.collapsedChanged=AE.prototype.collapsedChanged;AE.prototype.updateHeaderClickListener=AE.prototype.updateHeaderClickListener;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],AE.prototype,"actionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],AE.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],AE.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(_.Be),_.P("design:type",Object)],AE.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],AE.prototype,"data",void 0);_.N([_.e(),_.P("design:type",String)],AE.prototype,"targetId",void 0);_.N([_.e(),_.P("design:type",Boolean)],AE.prototype,"collapsed",void 0);_.N([_.e(),_.P("design:type",Boolean)],AE.prototype,"hideActionButton",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],AE.prototype,"shortsPanel",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],AE.prototype,"liveChatEngagementPanel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],AE.prototype,"learningChatEngagementPanel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],AE.prototype,"darkerPanels",void 0);_.N([_.Nl("#title"),_.P("design:type",HTMLElement)],AE.prototype,"titleElement",void 0);_.N([_.Nl("#header"),_.P("design:type",HTMLElement)],AE.prototype,"headerElement",void 0);
_.N([_.e({computed:"computeAdsInfoButton(data)"}),_.P("design:type",Object)],AE.prototype,"adsInfoButton",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],AE.prototype,"enableSqueezebackPanels",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],AE.prototype,"enableAnchoredPanel",void 0);_.N([_.e({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(t,E){return _.hj(t.entities,"engagementPanelTitleHeaderEntity",E)}}),
_.P("design:type",Object)],AE.prototype,"entity",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("targetId"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],AE.prototype,"adsSemanticText",null);_.N([_.GI("data","data.navigationEndpoint","data.onClickCommand"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],AE.prototype,"updateHeaderClickListener",null);
_.N([_.P3("collapsed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],AE.prototype,"collapsedChanged",null);_.N([_.Z("entity","hideActionButton"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],AE.prototype,"isActionButtonHidden",null);_.N([_.Ul({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],AE);
_.G(AE,"ytd-engagement-panel-title-header-renderer",function(){if(Xb7!==void 0)return Xb7;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Xb7=t},{mode:1});var h68;var Yy=function(){return _.z.apply(this,arguments)||this};
_.u(Yy,_.z);Yy.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Yy.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Yy.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Yy.prototype,"data",void 0);_.N([_.Ul({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],Yy);
_.G(Yy,"ytd-macro-markers-info-item-renderer",function(){if(h68!==void 0)return h68;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return h68=t},{mode:1});var aIK;var Ma=function(t,E,p,U,x,A){_.PQ.call(this);var m=this;this.JSC$21100_containerElement=t;this.hostElement=E;this.supportedSyncItems=p;this.syncEntityKey=U;this.options=x;this.renderLazyListItems=A;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;e6L(this);FN8(this);this.JSC$21100_scrollAnimation=new _.ZY(function(b){t.scrollTop=b});
_.ed(this,this.JSC$21100_scrollAnimation);this.addOnDisposeCallback(function(){z6C(m,!1);m.activeItem&&m.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.u(Ma,_.PQ);var e6L=function(t){var E=_.EA(_.X3().resolve(_.fS),function(p){return p.entities.markersEngagementPanelSyncEntity||{}},function(p,U){var x;
if(p[t.syncEntityKey]!==U[t.syncEntityKey]&&((x=p[t.syncEntityKey])==null?void 0:x.activeItemIndex)!==void 0)if(U=p[t.syncEntityKey].activeItemIndex,p=t.getItemByIndex(U)){if(lI5(t,p),t.contentVisible)if(t.browsingMode){var A;((A=t.options)==null?void 0:A.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(A=G7g(t),p.offsetTop<t.JSC$21100_containerElement.clientHeight+t.JSC$21100_containerElement.scrollTop&&A&&!t.activeItemBelowSyncPosition&&z6C(t,!1));nSt(t)}else t.scrollToItem(p)}else _.qW(new _.cC("Could not find "+
t.supportedSyncItems+" sync child to set active.",U,t.JSC$21100_containerElement.querySelectorAll(t.supportedSyncItems).length))});
t.unsubscribeFromTimedMarkersListSyncEntity=E;t.addOnDisposeCallback(E);Nqt(t)},Nqt=function(t){var E=_.X3().resolve(_.fS);
E=_.$10(E.getState(),t.syncEntityKey);(E==null?void 0:E.activeItemIndex)!==void 0&&(E=t.getItemByIndex(E.activeItemIndex))&&lI5(t,E)},FN8=function(t){var E=new _.F5(t.onScroll,50,t);
_.ed(t,E);var p=function(){E.fire()};
t.JSC$21100_containerElement.addEventListener("scroll",p);t.addOnDisposeCallback(function(){t.JSC$21100_containerElement.removeEventListener("scroll",p)})};
Ma.prototype.getItemByIndex=function(t){var E;(E=this.renderLazyListItems)==null||E.call(this,t);E=this.JSC$21100_containerElement.querySelectorAll(this.supportedSyncItems);if(E.length>t)return E[t]};
var lI5=function(t,E){t.activeItem&&t.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));E.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));t.activeItem=E};
Ma.prototype.scrollToItem=function(t){t=this.getScrollPositionForItem(t);this.JSC$21100_containerElement.scrollTop!==t&&this.JSC$21100_scrollAnimation.start(this.JSC$21100_containerElement.scrollTop,t,300)};
Ma.prototype.getScrollPositionForItem=function(t){if(this.JSC$21100_containerElement.querySelectorAll(this.supportedSyncItems)[0]===t)return 0;var E,p=((E=this.options)==null?0:E.percentOffset)?this.JSC$21100_containerElement.clientHeight*this.options.percentOffset:0;t=_.cx(t).y+this.JSC$21100_containerElement.scrollTop-(_.cx(this.JSC$21100_containerElement).y+p);return Math.max(0,Math.min(t,this.JSC$21100_containerElement.scrollHeight-this.JSC$21100_containerElement.offsetHeight))};
Ma.prototype.onScroll=function(){this.activeItemBelowSyncPosition=G7g(this);if(this.activeItem&&!this.JSC$21100_scrollAnimation.isAnimating()&&Math.abs(this.JSC$21100_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var t;switch((t=this.options)==null?void 0:t.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":D5g(this,!sB8(this));nSt(this);break;default:D5g(this,!0)}}};
var D5g=function(t,E){var p,U;_.q(function(x){if(x.nextAddress==1){if(t.browsingMode)return x.return();t.browsingMode=!0;E&&t.hostElement.classList.add("browsing-mode");t.playerExitBrowsingModeListener=function(){z6C(t,!1)};
return x.yield(_.an(),2)}p=x.yieldResult;(U=p)==null||U.addEventListener("SEEK_TO",t.playerExitBrowsingModeListener);_.Do(x)})},z6C=function(t,E){E=E===void 0?!0:E;
t.browsingMode&&(t.browsingMode=!1,t.hostElement.classList.remove("browsing-mode"),E&&t.scrollToItem(t.activeItem),LNt(t))},LNt=function(t){var E,p;
_.q(function(U){if(U.nextAddress==1)return t.playerExitBrowsingModeListener?U.yield(_.an(),3):U.jumpTo(0);E=U.yieldResult;(p=E)==null||p.removeEventListener("SEEK_TO",t.playerExitBrowsingModeListener);t.playerExitBrowsingModeListener=void 0;_.Do(U)})},nSt=function(t){var E;
((E=t.options)==null?void 0:E.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(sB8(t)?t.hostElement.classList.remove("browsing-mode"):t.activeItem&&t.hostElement.classList.add("browsing-mode"))},G7g=function(t){if(!t.activeItem)return!1;
var E,p=((E=t.options)==null?0:E.percentOffset)?t.JSC$21100_containerElement.clientHeight*t.options.percentOffset:0;return t.activeItem.offsetTop>=t.JSC$21100_containerElement.scrollTop+p},sB8=function(t){if(!t.activeItem)return!1;
var E=t.activeItem.offsetTop+14<=t.JSC$21100_containerElement.scrollTop+t.JSC$21100_containerElement.clientHeight;return t.activeItem.offsetTop+t.activeItem.clientHeight-14>=t.JSC$21100_containerElement.scrollTop&&E};
Ma.prototype.panelContentVisibleChanged=function(t){(this.contentVisible=t)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var PMJ=function(t,E){t.syncEntityKey=E;var p;(p=t.unsubscribeFromTimedMarkersListSyncEntity)==null||p.call(t);e6L(t)},TqK=function(t,E){t.options=E};var mK=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return t};
_.u(mK,_.z);_.Y=mK.prototype;_.Y.detached=function(){var t;(t=this.scrollController)==null||t.dispose();this.scrollController=void 0};
_.Y.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"}}}};
_.Y.dataChanged=function(){var t=this;_.XE(this,function(){if(t.scrollController){var E;(E=t.scrollController)==null||z6C(E,!1);var p,U,x;(U=t.scrollController)==null||PMJ(U,(x=(p=t.data)==null?void 0:p.syncModelEntityKey)!=null?x:"default-macro-markers-list-renderer-entity-key");var A,m,b;(b=t.scrollController)==null||TqK(b,{percentOffset:(A=t.data)==null?void 0:A.selectedItemAlignmentPercentOffset,floatingPillType:(m=t.data)==null?void 0:m.floatingPillType})}else{var f,B,R,V;t.scrollController=
new Ma(t.contents,t.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(V=(f=t.data)==null?void 0:f.syncModelEntityKey)!=null?V:"default-macro-markers-list-renderer-entity-key",{percentOffset:(B=t.data)==null?void 0:B.selectedItemAlignmentPercentOffset,floatingPillType:(R=t.data)==null?void 0:R.floatingPillType},function(Q){t.renderLazyListItems(Q)})}t.scrollController.panelContentVisibleChanged(!!t.panelContentVisible)})};
_.Y.computeButtonShape=function(){var t=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){t.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.Y.renderLazyListItems=function(t){for(var E=this.contents.children,p=0,U=0;U<E.length;U++){var x=void 0;(x=E[U].ytLazyListBehavior)==null||x.fillRemainingListItems();var A=void 0,m=void 0;x=_.k((A=this.data)==null?void 0:(m=A.contents)==null?void 0:m[U],_.QUp);m=A=void 0;if((A=x)==null?0:(m=A.contents)==null?0:m.length)p+=x.contents.length;if(p>=t)break}};
_.Y.handleSetActivePanelItemAction=function(t){if((t=_.k(t,GkL))&&this.panelTargetId===t.panelTargetId){t=t.itemIndex;var E,p,U=(p=(E=this.data)==null?void 0:E.syncModelEntityKey)!=null?p:"default-macro-markers-list-renderer-entity-key",x;((x=this.syncEntity)==null?void 0:x.activeItemIndex)!==t&&this.ytdReduxBehavior.dispatch(_.P9("markersEngagementPanelSyncEntity",U,{key:U,activeItemIndex:t}))}};
_.Y.onSyncClick=function(){var t;(t=this.scrollController)==null||z6C(t)};
_.Y.panelContentVisibleChanged=function(){var t;(t=this.scrollController)==null||t.panelContentVisibleChanged(!!this.panelContentVisible)};
mK.prototype.panelContentVisibleChanged=mK.prototype.panelContentVisibleChanged;mK.prototype.dataChanged=mK.prototype.dataChanged;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],mK.prototype,"actionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],mK.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],mK.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(_.Be),_.P("design:type",Object)],mK.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],mK.prototype,"data",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],mK.prototype,"useCustomColors",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],mK.prototype,"panelTargetId",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],mK.prototype,"panelContentVisible",void 0);
_.N([_.Nl("#contents"),_.P("design:type",HTMLElement)],mK.prototype,"contents",void 0);_.N([_.e({selectorArgs:["data.syncModelEntityKey"],selector:_.$10}),_.P("design:type",Object)],mK.prototype,"syncEntity",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mK.prototype,"dataChanged",null);
_.N([_.GI("panelContentVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mK.prototype,"panelContentVisibleChanged",null);_.N([_.Ul({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],mK);
_.G(mK,"ytd-macro-markers-list-renderer",function(){if(aIK!==void 0)return aIK;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return aIK=t},{mode:1});var oS7;var WNg;var bD=function(){return _.z.apply(this,arguments)||this};
_.u(bD,_.z);bD.prototype.computeAriaLabel=function(t){var E,p;return(t==null?void 0:(E=t.accessibility)==null?void 0:(p=E.accessibilityData)==null?void 0:p.label)||_.zF("LOADING",void 0,"Loading")};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],bD.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],bD.prototype,"data",void 0);_.N([_.e({computed:"computeAriaLabel(data)"}),_.P("design:type",String)],bD.prototype,"ariaLabel",void 0);_.N([_.p4({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],bD);
_.G(bD,"yt-content-loading-renderer",function(){if(WNg===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;oS7===void 0&&(oS7=document.createElement("template"));var U=oS7;p.call(E,U.content.cloneNode(!0),t.content.firstChild);WNg=t}t=WNg;return t},{mode:1});_.k2(_.l(function(t){var E=_.M(_.Py(!1,void 0,"OZMtVb")),p=E.next().value,U=E.next().value;E=_.M(_.Py(!1,void 0,"qWERsf"));var x=E.next().value,A=E.next().value;_.A6(function(){var f=_.k(t.data().collaboratePlaylistCollaborationSetting,p_t);f&&U(f.switchedOnByDefault);var B=_.k(t.data().allowNewCollaboratorsPlaylistCollaborationSetting,p_t);B&&A(B.switchedOnByDefault);if(!f&&!B||!f&&t.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")U(!0),A(!0)});
var m=function(f){U(f);A(f);var B=t.data().playlistCollaborationEntityKey||"";var R=_.Ro().getState();(R=_.hj(R.entities,"playlistCollaborationEntity",B))&&(R==null?void 0:R.isCollaborative)===f||_.Ro().dispatch(_.P9("playlistCollaborationEntity",B,Object.assign({},R,{isCollaborative:f})))},b=function(f){A(f)};
return _.H("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.H("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.H(_.sY,{data:function(){return t.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(f){return _.H(_.F4X,{data:f.data,
onSwitch:m})}})),_.H(_.w,{cond:p,
then:function(){return _.H(_.Oj,null,_.H("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.H(_.sY,{data:function(){return t.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(f){return _.H(_.F4X,{data:f.data,
onSwitch:b,overrideDisabled:!1})}})),_.H(_.w,{cond:x,
then:function(){return _.H("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.H(_.sY,{data:function(){return t.data().copyLinkButton}},{buttonViewModel:_.D5}))}}),_.H("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.H(_.sY,{data:function(){return t.data().playlistCollaborators}},{contentListItemViewModel:G87})))}}))},"zj"),"playlist-collaboration-view-model",{props:{data:_.uu}});var $5t=_.l(function(t){var E=t.data;var p=t.customCommandResolver;return _.H(_.Oj,null,_.H("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.H(_.sY,{data:function(){return E().adAvatar}},{adAvatarViewModel:function(U){return _.H(_.SDr,{data:U.data,
customCommandResolver:p})}})),_.H("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.H(_.w,{cond:function(){return E().headline},
then:function(U){return _.H(_.d8,{text:U,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.H("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.H(_.sY,{data:function(){return E().adBadge}},{adBadgeViewModel:function(U){return _.H(_.PM,{data:U.data,
hasDot:function(){return E().primaryDetailsLine!==void 0},
customCommandResolver:p,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.H(_.sY,{data:function(){return E().primaryDetailsLine}},{adDetailsLineViewModel:function(U){return _.H(_.TR,{data:U.data,
customCommandResolver:p,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Aj"),KNl=_.l(function(t){var E=t.data;
var p=t.customCommandResolver;return _.H("ad-avatar-lockup-view-model",{class:function(){var U;return((U=E().interaction)==null?0:U.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.V9(_.az({visibilityCallback:function(U){var x,A=(x=E().interaction)==null?void 0:x.onFirstVisible;U&&A&&_.bz(A)},
showOption:_.lS}),_.Yj(function(){return E().interaction},p)),
"aria-label":function(){var U,x;return(U=E().interaction)==null?void 0:(x=U.accessibility)==null?void 0:x.label}},_.H(_.SC,null,_.H(_.Kw,{when:function(){return E().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.H($5t,{data:E,
customCommandResolver:p})}),_.H(_.vv,null,function(){return null})))},"Bj");_.k2(_.l(function(t){var E=t.data;var p=t.panelContentVisibility;t=_.az({visibilityCallback:function(A){var m,b=(m=E().interaction)==null?void 0:m.onFirstVisible;A&&b&&_.bz(b)},
showOption:_.lS});var U=_.Yj(function(){return E().interaction},kdg);
_.Yw(function(){var A,m;if(m=_.ws("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var b;m=(b=m())==null?void 0:b.onLayoutVisibleCallback}else m=null;(A=m)==null||A()},"Cj");
var x=function(){return p()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.H("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.V9(t,U)},_.H("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.H("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.H(_.w,{cond:_.ya_("(min-width: "+(AR()+YS)+"px) or (max-width: 600px)"),then:function(){return _.H(_.sY,{data:function(){return E().adImage}},{adImageViewModel:function(A){return _.H(_.SF,{data:A.data,
targetHeight:80,customCommandResolver:kdg})}})}})),_.H("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.H("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.H(_.sY,{data:function(){return E().adAvatarLockup}},{adAvatarLockupViewModel:function(A){return _.H(KNl,{data:A.data,
customCommandResolver:kdg})}})),_.H(_.w,{cond:x,
then:function(){return _.H(_.sY,{data:function(){return E().adButton}},{adButtonViewModel:function(A){return _.H(_.nk,{data:A.data,
customCommandResolver:kdg})}})},
else:function(){return _.H(_.sY,{data:function(){return E().menu}},{buttonViewModel:_.D5})}}),_.H("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.H(_.sY,{data:function(){var A=_.k(E().toggleButton,_.rc);
return{toggleButtonViewModel:Object.assign({},A,{isTogglingDisabled:!0,isToggled:x()})}}},{toggleButtonViewModel:_.m3})))))},"Dj"),"panel-ad-header-image-lockup-view-model",{props:{data:_.uu,
panelContentVisibility:_.uu}});var vSl=_.l(function(t){return _.H("yt-feedback-prompt-view-model",{class:_.X5("ytFeedbackPromptViewModelHost",t.className)},_.H(_.w,{cond:function(){return t.data().text},
then:function(E){return _.H(_.d8,{text:E,className:"ytFeedbackPromptViewModelPrompt"})}}),_.H(_.sY,{data:function(){return t.data().likeButton}},{likeButtonViewModel:function(E){return _.H(_.Vf,{data:E.data,
className:"ytFeedbackPromptViewModelLikeButton"})}}),_.H(_.sY,{data:function(){return t.data().dislikeButton}},{dislikeButtonViewModel:_.R2}))},"Ej");var yR9=_.l(function(t){var E=void 0,p=function(){return t.data()},U=function(){return!!_.yj(_.K$(p())).optionColor},x=_.M(_.Py(-1,void 0,"m6Iyqc")),A=x.next().value,m=x.next().value,b=function(Q){return A()===Q},f=function(Q){return p().correctAnswerIndex===Q},B=function(){return A()!==-1};
x=_.M(_.Py("",void 0,"jvMkLd"));var R=x.next().value,V=x.next().value;return _.H("yoututor-quiz-view-model",{class:_.X5("learningQuizComponentHost","learningYoututorQuizHost",t.className),style:_.zO({background:function(){return _.yj(_.K$(p())).backgroundColor}})},_.H("div",{"aria-live":"polite",
class:"learningYoututorQuizVisuallyHidden"},R),_.H("div",{class:"learningQuizComponentQuizContainer"},_.H("div",{class:"learningQuizComponentQuiz"},_.H("div",{class:"learningQuizComponentQuizContent"},_.H(_.w,{cond:function(){return!!p().aiGeneratedQuizLabel},
then:function(){return _.H("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.H(_.d8,{text:function(){return p().aiGeneratedQuizLabel}}))}}),_.H("div",{class:"learningQuizComponentQuizHeader"},_.H("div",{class:"learningQuizComponentQuizHeaderTextContainer"},_.H("div",{class:"learningYoututorQuizText",
style:_.zO({color:function(){return _.yj(_.K$(p())).primaryTextColor}})},_.H(_.d8,{text:function(){return p().questionHeaderText}}))))),_.H("div",{role:"group",
class:_.X5("learningQuizComponentQuizOptionsList","learningYoututorQuizOptionsListGap")},_.H(_.yG,{each:function(){return p().optionsData||[]}},function(Q,C){var d={};
return _.H("button",{class:_.X5("learningQuizComponentQuizOptions","learningYoututorQuizOptionsGap","learningYoututorQuizOptionsBorderSquare",(d.learningQuizComponentQuizHover=function(){return!B()},d.learningQuizComponentQuizOptionWithCustomColor=U,d.learningYoututorQuizOptionSelectedCorrectOutline=function(){return B()&&f(C())},d.learningYoututorQuizOptionSelectedIncorrectOutline=function(){return A()!==p().correctAnswerIndex&&b(C())},d.learningQuizComponentQuizIncorrectShake=function(){return A()!==
p().correctAnswerIndex&&b(C())},d)),
"on:click":_.aC(function(){_.bA(_.Pu(),{data:Q});if(B())return!1;m(C());V(f(C())?p().correctAnswerAriaLabel||"":p().incorrectAnswerAriaLabel||"");return!1}),
style:_.zO({background:"transparent"}),"aria-description":function(){return B()?f(C())?p().correctAnswerAriaLabel:p().incorrectAnswerAriaLabel:""},
"aria-disabled":B,el:_.V9(function(I){_.SY(271905,I,E,function(O){E=O})}),
"client-ve-type":271905},_.H("div",{class:"learningQuizComponentQuizOptionContainer"},_.H(_.d8,{text:Q.optionText}),_.H(_.w,{cond:function(){var I=C();return B()&&(b(I)||f(I))},
then:function(){var I={};return _.H(_.lz,{className:_.X5("learningYoututorQuizOptionIcon",(I.learningQuizComponentQuizPulse=function(){return A()===p().correctAnswerIndex&&f(C())},I)),
size:24,icon:function(){return f(C())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.H(_.w,{cond:B,
then:function(){return _.H("div",{class:"learningYoututorQuizExplanationContainer"},_.H("div",{class:"learningYoututorQuizExplanationText"},_.H(_.d8,{text:function(){return p().explanationHeaderText}})),_.H(_.d8,{text:function(){return p().optionsData[A()].explanationText},
className:"learningYoututorQuizExplanationDescriptionText"}))}})))))},"Fj");
yR9.idomCompat=!0;var SpJ=_.l(function(t){var E=t.thumbsUp,p=t.thumbsDown,U=t.rightAlignThumbs;t=_.M(_.Py(!1,void 0,"OxPsH"));var x=t.next().value,A=t.next().value;t=_.M(_.Py(!1,void 0,"V5vWne"));var m=t.next().value,b=t.next().value;t={};return _.H("div",{class:_.X5("ytwThumbsUpDownThumbs",(t.ytwThumbsUpDownRightAlign=function(){return U==null?void 0:U()},t))},_.H(_.m3,{data:E,
onToggle:function(f){A(f);m()&&b(!1)},
buttonShapeOverrides:function(){return{toggled:x()}}}),_.H(_.m3,{data:p,
onToggle:function(f){b(f);x()&&A(!1)},
buttonShapeOverrides:function(){return{toggled:m()}}}))},"Gj");
SpJ.idomCompat=!0;var tPg=_.l(function(t){var E=function(){return t.data().pendingStateEntityKey||""},p=_.nd(ute,E),U=function(){var b;
if(!(b=t.disabled())){var f;b=!((f=p())==null||!f.isPendingResponse)}return b},x=_.M(_.Py(NNC(""),void 0,"Q6q6y")),A=x.next().value,m=x.next().value;
_.xa(function(){requestAnimationFrame(function(){var b=t.data().onShowAnimationMs||0;b=b>0?NNC("--chip-animation-duration: "+b+"ms;"):NNC("");m(b)})});
return _.H("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:A},_.H(_.yG,{each:function(){return t.data().chipData||[]},
keyBy:"REFERENCE"},function(b){return _.H(cR5,{data:b,disabled:U,pendingStateKey:E,onError:t.onError})}))},"Ij"),cR5=_.l(function(t){var E=_.pR("button"),p=_.M(_.Py(!0,void 0,"baSFEf")),U=p.next().value,x=p.next().value,A=function(){return t.data().text.content},m=function(){return t.data().transparentWhenLoading},b=_.D4(_.i7.currentPageSubTypeSelector),f=function(){var R;
return(R=_.X3().resolve(_.OB(_.bw)))==null?void 0:_.f_8(R,b())},B=_.aC(function(R){var V,Q,C,d,I,O,a,F;
return _.q(function(L){switch(L.nextAddress){case 1:R.stopPropagation();if(t.disabled())return L.return();Q=String(Math.floor(((V=_.ew())==null?void 0:V.getCurrentTime())||0)*1E3);C="youchat-"+Date.now();d=function(){_.Y2(t.data().onClick||{});var D=dcl(t.data().continuation),W=t_({clientMessageId:C,playerOffsetMs:Q,pageContext:f()});return new Promise(function(K,v){_.Y2(D,{form:{formData:W},commandController:{onSuccess:function(YL,bY){K(bY)},
onServerError:function(YL,bY){v(bY.error)}}})})};
I=Je9(t.pendingStateKey());I(!0);yHt("#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");x(!1);_.aR(L,2);return L.yield(d(),4);case 4:_.r7(L,3);break;case 2:O=_.nB(L),(F=(a=t).onError)==null||F.call(a,O);case 3:I(!1),_.Do(L)}})});
return _.H(_.w,{cond:U,then:function(){return _.H("div",{class:"ytwYouChatChipsDataChipWrapper"},_.H("button",{el:E,class:"ytwYouChatChipsDataChip","data-disabled":t.disabled,"data-transparent-loading":m,"on:click":B,tabindex:0},A))}})},"Jj");var E07=_.l(function(t){var E=t.data;var p=t.initiallyExpanded;var U=function(){var B;return(B=E().conversationResourceData)==null?void 0:B.learningGuideData};
t=_.M(_.j5(function(){var B;return(B=p==null?void 0:p())!=null?B:!1}));
var x=t.next().value,A=t.next().value,m=function(){var B,R=_.k((B=U())==null?void 0:B.expandButton,_.Cz);R&&_.bA(_.Pu(),{data:R});A(!0)},b=_.KN(function(){var B,R;
return(R=(B=U())==null?void 0:B.sections)!=null?R:[]},void 0,"V7sYqc"),f=_.KN(function(){return b().length>4},void 0,"GFFPnd");
t=_.KN(function(){var B;return!x()&&f()&&(B=U())!=null&&B.expandButton?b().slice(0,4):b()},void 0,"Rbi7Ke");
return _.H("yt-conversation-resource-view-model",{class:_.X5("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.H(_.sY,{data:t},{expandableMetadataViewModel:_.JtJ}),_.H(_.w,{cond:function(){return f()&&!x()},
then:function(){return _.H("div",{id:"showMoreButton"},_.H(_.sY,{data:function(){var B;return(B=U())==null?void 0:B.expandButton}},{buttonViewModel:function(B){return _.H(_.D5,{data:B.data,
onClick:m})}}))}}))},"Kj");_.pte=_.l(function(t){var E=function(){var L;return(L=t.data().text)==null?void 0:L.content},p=function(){var L,D;
return(L=t.data().webData)==null?void 0:(D=L.textResult)==null?void 0:D.content},U=_.X3().resolve(_.q6),x=_.F0(),A=function(){return t.data().chatResponseStyle},m=function(){return!t.data().transparentBackground},b=function(){return t.data().rightAlignThumbs},f=function(){return t.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||t.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},B=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:f()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:t.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},R=function(){var L;
return t.data().webData||((L=t.data().text)==null?void 0:L.content)||t.data().videoResultsData||t.data().conversationResourceViewModel||t.data().quiz||t.data().yoututorQuiz||t.data().richContent},V=function(){return!!t.data().sectionHeader||R()},Q=function(){return t.data().hideIcon||A()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||A()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?!1:V()},C=function(){var L;
return(L=t.data().videoResultsData)==null?void 0:L.videoShelf},d=function(){var L;
return(L=t.data().webData)==null?void 0:L.sourcesShelf},I=function(){return A()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||A()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:t.data().thumbsDownViewModel&&t.data().thumbsUpViewModel},O=function(){return _.k(t.data().thumbsUpViewModel,_.rc)},a=function(){return _.k(t.data().thumbsDownViewModel,_.rc)};
_.xa(function(){requestAnimationFrame(function(){var L;(L=t.shouldAnimateIcon)!=null&&L.call(t)&&Z$d(x.lottieEl)})});
var F={};return _.H("you-chat-item-view-model",{class:_.X5("ytwYouChatItemViewModelYouChatItemViewModel",(F.ytwYouChatItemViewModelColumnLayout=function(){return f()},F)),
style:_.zO({"min-height":function(){var L,D;return d6t((L=t.containerHeight)==null?void 0:L.call(t),(D=t.isLastItem)==null?void 0:D.call(t))}}),
"data-target-id":function(){return t.data().id||""}},_.H(_.w,{cond:function(){return t.data().removeIcon||f()&&!Q()?!1:V()},
then:function(){var L={};return _.H("div",{"aria-hidden":"true"},_.H(_.Wg,{className:_.X5("ytwYouChatItemViewModelIcon",(L.ytwYouChatItemViewModelRtl=U==="rtl",L.ytwYouChatItemViewModelHidden=function(){return!Q()},L)),
animationName:"YOUCHAT_ICON",data:B,animationRef:x}))}}),_.H(_.w,{cond:V,
then:function(){var L={};return _.H("div",{class:_.X5("ytwYouChatItemViewModelHost",(L.ytwYouChatItemViewModelHostNoPadding=function(){return!!t.data().sectionHeader&&!R()},L.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return A()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},L.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return A()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},L.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return A()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
L.ytwYouChatItemViewModelGradientBackground=m,L.ytwYouChatItemViewModelHostAlignStart=function(){return!f()},L.ytwYouChatItemViewModelHostDefaultFlex=function(){return!f()},L)),
role:"alert"},_.H(_.w,{cond:E,then:function(D){return _.H(_.J7,{text:D,wrapCodeBlocks:!0})}}),_.H(_.sY,{data:function(){return t.data().sectionHeader}},{sectionHeaderViewModel:function(D){var W={};
return _.H(_.v_,{data:D.data,className:_.X5("ytwYouChatItemViewModelSectionHeader",(W.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!t.data().sectionHeader&&!R()},W)),
forceSmallLayout:!0})}}),_.H(_.w,{cond:p,
then:function(D){return _.H(_.J7,{text:D,wrapCodeBlocks:!0})}}),_.H(_.w,{cond:C,
then:function(){return _.H("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.H(_.sY,{data:function(){var D;return(D=t.data().videoResultsData)==null?void 0:D.videoShelf}},{horizontalShelfViewModel:function(D){return _.H(_.d$,{data:D.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.H(_.w,{cond:d,
then:function(){return _.H("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.H(_.sY,{data:function(){var D;return(D=t.data().webData)==null?void 0:D.sourcesShelf}},{horizontalShelfViewModel:function(D){return _.H(_.d$,{data:D.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.H(_.sY,{data:function(){return t.data().conversationResourceViewModel}},{conversationResourceViewModel:E07}),_.H(_.sY,{data:function(){return t.data().quiz}},{learningJourneyQuizViewModel:_.SIp}),_.H(_.sY,{data:function(){return t.data().yoututorQuiz}},{yoututorQuizViewModel:yR9}),_.H(_.sY,{data:function(){return t.data().richContent}},{cardViewModel:La8,
linearLayoutViewModel:_.r$}),_.H(_.w,{cond:I,then:function(){return _.H(SpJ,{thumbsUp:O,thumbsDown:a,rightAlignThumbs:b})}}))}}),_.H(_.w,{cond:function(){return t.data().chipsData},
then:function(L){return _.H(tPg,{data:L,disabled:t.pending,onError:t.onError})}}))},"Mj");
_.pte.idomCompat={callbacks:{onError:!0,onSend:!0}};_.UDe=_.l(function(t){var E=function(){var m;return((m=t.data)==null?void 0:m.call(t).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},p=_.F0(),U=_.X3().resolve(_.q6);
_.xa(function(){requestAnimationFrame(function(){var m;(m=p.lottieEl)==null||m.addEventListener("DOMLoaded",function(){var b;(b=t.onLottieLoaded)==null||b.call(t)})})});
var x=function(){var m;return(m=t.data)==null?void 0:m.call(t).loadingAnimationA11yLabel},A={};
return _.H("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var m;return((m=t.data)==null?void 0:m.call(t).targetId)||""},
"aria-label":function(){return x()||""},
role:function(){return x()?"progressbar":void 0},
style:_.zO({"min-height":function(){var m,b;return d6t((m=t.containerHeight)==null?void 0:m.call(t),(b=t.isLastItem)==null?void 0:b.call(t))}})},_.H(_.Wg,{"aria-hidden":"true",
className:_.X5((A.ytChatLoadingViewModelRtl=U==="rtl",A)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:E()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||E()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:E()}}},
animationRef:p}))},"Oj");_.xDK=_.l(function(t){var E=function(){return t.data().choiceSelectedText};
return _.H("yt-chat-user-turn-view-model",{class:"ytChatUserTurnViewModelHost",style:_.zO({"min-height":function(){var p,U;return d6t((p=t.containerHeight)==null?void 0:p.call(t),(U=t.isLastItem)==null?void 0:U.call(t))}}),
"data-target-id":function(){var p;return(p=t.data().itemTargetId)!=null?p:""}},_.H(_.w,{cond:E,
then:function(){return _.H("div",{class:"ytChatUserTurnViewModelChoiceSelected"},_.H(_.d8,{text:E}))}}),_.H("div",{class:_.X5("ytChatUserTurnViewModelUserMessage",function(){return O$L(t.data())})},function(){return t.data().text}))},"Pj");var APe=_.l(function(t){var E=_.M((0,_.mPm)(t.data)).next().value,p=function(){var U,x;return(x=(U=E().contents)==null?void 0:U.length)!=null?x:0};
return _.H("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return t.data().targetId||""},
"aria-busy":function(){var U,x;return(x=(U=E().contents)==null?void 0:U.some(function(A){return!!A.chatLoadingViewModel}))!=null?x:!1}},_.H(_.sY,{data:function(){return t.data().header}},{chipBarViewModel:_.R1p,
sectionHeaderViewModel:_.v_}),_.H(_.sY,{data:function(){return E().contents}},{accordionViewModel:_.p8C,
alertBannerViewModel:_.dz3,chatLoadingViewModel:function(U,x){return _.H(_.UDe,{data:U.data,containerHeight:t.containerHeight,isLastItem:function(){return x()===p()-1}})},
chatUserTurnViewModel:function(U,x){return _.H(_.xDK,{data:U.data,containerHeight:t.containerHeight,isLastItem:function(){return x()===p()-1}})},
feedbackPromptViewModel:vSl,gridShelfViewModel:function(U){return _.H(_.Vn,{data:U.data,shouldUseOwnContainerSize:!0,marginSettings:t.marginSettings,useUpdatedMargin:!0})},
learningJourneyLoaderViewModel:_.$zm,linearLayoutViewModel:_.r$,lockupViewModel:function(U){return _.H(_.WM,{data:U.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:t.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.v_,videoOverviewViewModel:_.qi8,youChatItemViewModel:function(U,x){return _.H(_.pte,{data:U.data,pending:!1,containerHeight:t.containerHeight,isLastItem:function(){return x()===p()-1}})}}))},"Qj");_.k2(_.l(function(t){var E=_.M((0,_.mPm)(t.data)).next().value,p=_.M(_.L$()),U=p.next().value;p=p.next().value;var x=_.V9(p);p=_.M(_.Py(void 0,void 0,"fqbUqd"));var A=p.next().value,m=p.next().value,b=function(){var f;return _.k((f=t.data().sectionListLayoutConfiguration)==null?void 0:f.layoutConfiguration,Pl5)};
_.A6(function(){var f,B=(f=x.value)==null?void 0:f.clientWidth;f=b()?_.ZI8(B,b()):void 0;m(f)});
p={};return _.H("yt-section-list-renderer",{class:_.X5("ytSectionListRendererHost",t.className,(p.ytSectionListRendererHostOverscrollContain=function(){var f;return(f=t.overscrollContain)==null?void 0:f.call(t)},p)),
el:x,"data-target-id":function(){return t.data().targetId||""}},_.H(_.sY,{data:function(){return E().contents}},{itemSectionRenderer:function(f){return _.H(APe,{data:f.data,
containerLayoutConfig:A,marginSettings:t.marginSettings,containerHeight:function(){return U.height()}})}}))},"Rj"),"yt-section-list-renderer",{props:{data:_.uu,
className:_.Cy,marginSettings:_.uu,overscrollContain:_.uu}});_.k2(_.l(function(t){var E=function(){return _.k(t.data().inputComposerViewModel,aVb)},p=_.D4(_.i7.currentPageSubTypeSelector),U=_.D4(_.i7.persistentPanelVisibleSelector),x=_.M(_.Py(!1,void 0,"RXGzYc")),A=x.next().value,m=x.next().value;
x=_.M(_.Py(!1,void 0,"oyonKd"));var b=x.next().value,f=x.next().value,B=function(){I(!0);var j$;_.bz(((j$=E())==null?void 0:j$.onSubmitCommand)||{})},R=function(){if(U()&&!b()){var j$;
(j$=_.ew())==null||j$.removeCueRange("aic-proactive");m(!1);f(!0);B();_.Y2(dcl(E().endOfVideoContinuation),{form:{formData:t_({clientMessageId:"youchat-"+Date.now(),pageContext:kL()})},commandController:{onSuccess:function(){I(!1)},
onServerError:function(){_.Y2(rjJ(L()));I(!1)}}})}},V=function(){var j$=_.ew();
if(j$&&!A()&&!b()){var lY=j$.getDuration();lY>60&&(j$.addCueRange("aic-proactive",lY-60,lY-20),m(!0))}},Q=function(){var j$;
return((j$=E())==null?void 0:j$.youchatPendingResponseEntityKey)||""},C=_.nd(ute,Q),d=function(){var j$;
return!((j$=C())==null||!j$.isPendingResponse)},I=function(j$){Je9(Q())(j$)};
x=_.M(_.Py(!0,void 0,"umCoCf"));var O=x.next().value,a=x.next().value,F=function(){var j$,lY;var Tt=_.k((lY=E())==null?void 0:lY.inputFormField,d47);return Tt==null?void 0:(j$=Tt.contentProperties)==null?void 0:j$.placeholderText},L=function(){return E().sectionTargetId||"youchat_messages_section"};
x=_.pR("yt-chat-input-view-model");var D=_.EB("textarea"),W=_.nd(IVC,"chat_input_view_model_state"),K=gj9(),v=function(){var j$;return!((j$=W())==null||!j$.value)},YL=function(){return t.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},bY=function(){var j$;
(j$=_.ew())==null||j$.removeCueRange("aic-proactive");m(!1);f(!1);var lY;_.r("enable_navigational_proactive_messages_on_ai_companion")&&((lY=E())==null?0:lY.navigationContinuation)&&U()&&(B(),_.Y2(dcl(E().navigationContinuation),{form:{formData:t_({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:huC(),pageContext:kL()})},commandController:{onSuccess:function(){I(!1)},
onServerError:function(){_.Y2(rjJ(L()));I(!1)}}}))},kL=function(){var j$;
return(j$=_.X3().resolve(_.OB(_.bw)))==null?void 0:_.f_8(j$,p())};
_.A6(function(){if(_.uc("enable_ai_chat_controller")){var j$;(j$=_.X3().resolve(_.OB(_.bw)))==null||j$.init(t.data().environment)}else if(j$=eue(t.data()),!v()&&j$){var lY;((lY=E())==null?0:lY.setPendingResponseOnWelcome)&&I(!0);_.Y2(j$,{form:{formData:t_({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:huC(),pageContext:kL()})}});K(!0)}var Tt=L(),si=_.X3().resolve(_.OB(_.W5)),Q0=function(){_.Dq.remove(Tt);if(_.uc("enable_ai_chat_controller")){var $L;($L=_.X3().resolve(_.OB(_.bw)))!=null&&$L.environment===
"CHAT_ENVIRONMENT_ENUM_YOUCHAT"&&($L.lastWelcomeContinuationSent=void 0)}else K(!1)},ps=function(){_.sJ(function(){if(YL()&&(bY(Tt),p()==="watch")){var $L=_.ew();
$L&&($L.addEventListener("onStateChange",V),$L.addEventListener("onCueRangeEnter",R))}})};
lY=_.r("enable_ai_companion")?!YL():!0;si==null||si.addEventListener("yt-navigate-start",Q0,{once:lY});si==null||si.addEventListener("yt-navigate-finish",ps,{once:lY});_.iK(function(){si==null||si.removeEventListener("yt-navigate-start",Q0);si==null||si.removeEventListener("yt-navigate-finish",ps);var $L=_.ew();$L&&($L.removeEventListener("onCueRangeEnter",R),$L.removeEventListener("onStateChange",V),$L.removeCueRange("aic-proactive"))})});
_.M$(function(){if(_.uc("enable_ai_chat_controller")){var j$=eue(t.data());if(j$){var lY,Tt=((lY=E())==null?0:lY.setPendingResponseOnWelcome)?I:void 0,si;(si=_.X3().resolve(_.OB(_.bw)))==null||uct(si,{command:j$,setPending:Tt})}}},"SXTMBe");
var R0=function(){var j$=D.value.value;D.value.value="";XY7(D.value);var lY,Tt=((lY=E())==null?void 0:lY.enableGradientColorBg)||!1;lY=kV7(L(),j$,Tt);_.Y2(lY);B();var si,Q0,ps;lY=(ps=_.AJ((si=t.data())==null?void 0:si.sendUserQueryCommand))!=null?ps:dcl((Q0=E())==null?void 0:Q0.continuation);_.Y2(lY,{form:{formData:t_({clientMessageId:"youchat-"+Date.now(),userInputText:j$,playerOffsetMs:huC(),pageContext:kL()})},commandController:{onSuccess:function(){I(!1)},
onServerError:function(){_.Y2(rjJ(L()));I(!1)}}})};
return _.H("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:x},_.H("div",{class:"chatInputViewModelChatInputWrapper"},_.H("form",{class:"chatInputViewModelChatInputForm"},_.H("textarea",{class:"chatInputViewModelChatInput",el:D,"on:keydown":_.aC(function(j$){var lY=d()||!1;XY7(D.value);lY||j$.key!=="Enter"||j$.shiftKey||(j$.preventDefault(),R0());return!1}),
"on:keyup":_.aC(function(){a(D.value.value.length===0);return!1}),
"aria-label":function(){return d()?t.data().loadingAnimationA11yLabel||"":F()},
placeholder:F,rows:1}),_.H(_.D5,{data:function(){return _.k(t.data().sendButton,_.Cz)},
onClick:function(j$){j$.preventDefault();R0();a(D.value.value.length===0)},
buttonOverrides:function(){return{disabled:O()||d()}}})),_.H(_.d8,{className:"chatInputViewModelChatDisclaimer",
text:function(){var j$;return t.data().disclaimerText||((j$=_.k(t.data().disclaimer,_.CIp))==null?void 0:j$.text)}})))},"Tj"),"yt-chat-input-view-model",{props:{data:_.uu}});var Yfd=["engagement-panel-clip-create","engagement-panel-clip-view"],MPC=0,iD=function(){var t=_.z.apply(this,arguments)||this;var E;t.headerData=(E=t.data)==null?void 0:E.header;t.darkerPanels=_.r("web_watch_darker_panels");t.matchContentTheme=_.r("web_watch_panel_content_match_theme");t.disableAutoFill=!1;t.isFullscreen=!1;t.isTheaterMode=!1;t.liveChatReplyPanel=!1;t.enableAnchoredPanel=_.r("desktop_shorts_v2_anchored_panel");t.disableBackdropFilter=_.r("web_disable_backdrop_filter");t.isPersistentPanel=
!1;t.trackEngagementPanelVisibility=_.r("web_watch_track_engagement_panel_visibility");t.overscrollContain=!1;t.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 t};
_.u(iD,_.z);_.Y=iD.prototype;
_.Y.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(t){var E;return(t==null?void 0:(E=t.webComponentHint)==null?void 0:E.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]",overscrollContain:"[[overscrollContain]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.Y.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var t;if((t=this.hostElement.parentElement)==null?0:t.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.Y.detached=function(){this.updateTheaterDisablement()};
_.Y.showPanel=function(){var t=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.ir.addJob(function(){t.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.Y.maybeScrollToItemSection=function(t){var E=this,p,U=t==null?void 0:(p=t.sectionListEngagementPanelExtras)==null?void 0:p.scrollToItemSectionIdentifier;U&&_.ir.addJob(function(){var x;(x=E.sectionListRendererElement)==null||x.scrollToItemSection(U)},8)};
_.Y.hidePanel=function(){var t=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.ir.addJob(function(){t.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.Y.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.Y.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.Y.updatePanel=function(t,E,p,U){var x=this;if((t=t==null?void 0:t.engagementPanelSectionListRenderer)||U){if(t){U=t.header;var A=t.content,m=t.footer;(t=t.targetId)&&this.set("data.targetId",t);U&&this.set("data.header",U);A&&this.set("data.content",A);m&&this.set("data.footer",m)}else U&&(t=U.content,A=U.secondaryHeaderContent,m=U.targetId,U=U.loggingDirectives,m&&this.set("data.targetId",m),t&&this.set("data.content",t),U&&_.r("web_update_panel_visibility_logging_fix")&&this.set("data.loggingDirectives",
U),A&&(this.secondaryHeaderData=A));this.updateChildVisibilityProperties();if(E){var b;_.r("kevlar_update_panel_focus_scroll_killswitch")||(b={preventScroll:!0});this.focus(b)}_.XE(this,function(){_.kT(x.hostElement,"yt-refit");x.maybeScrollToItemSection(p)})}};
_.Y.computeHeaderData=function(){var t,E=(0,_.Kq.unsafeClone)((t=this.data)==null?void 0:t.header);if(E){t=new _.Ir(Object.keys(E)[0]);var p=_.k(E,t),U=_.k(this.secondaryHeaderData,t);U&&_.tJ(E,t,Object.assign({},U,p))}return E};
_.Y.getReloadContinuation=function(){var t,E,p,U=_.M(((t=this.data)==null?void 0:(E=t.content)==null?void 0:(p=E.sectionListRenderer)==null?void 0:p.continuations)||[]);for(t=U.next();!t.done;t=U.next())if(t=t.value,t.reloadContinuationData)return t.reloadContinuationData.continuation};
_.Y.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var t;((t=this.data)==null?0:t.targetId)&&(t=this.contentElement.firstElementChild)&&t.setAttribute("panel-target-id",this.data.targetId)};
_.Y.forwardPopupClosedToFlowRootRenderer=function(){var t=_.ZN(this.hostElement).querySelector("ytd-flow-root-renderer");if(t&&this.hostElement.closest("ytd-popup-container"))t.onPopupClosed()};
_.Y.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var t;if(!Yfd.includes((t=this.theaterDisablementPanelIdentifier)!=null?t:""))if(t=_.r("web_watch_imax_theater_mode")&&this.isTheaterMode,t=_.r("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||t,_.r("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||t){var E;this.visibility=(E=this.data)==null?void 0:E.visibility;var p;this.trackEngagementPanelVisibility&&((p=this.data)==null?void 0:p.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var U,x,A,m;this.contentEmpty=!!(((U=this.data)==null?0:(x=U.content)==null?0:x.structuredDescriptionContentRenderer)&&Object.keys((A=this.data)==null?void 0:(m=A.content)==null?void 0:
m.structuredDescriptionContentRenderer).length===0);(E=_.X3().resolve(_.mp))&&E.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.Y.isTheaterModeChanged=function(){_.r("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.Y.isFullscreenChanged=function(){_.r("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.Y.focus=function(t){if(this.header)this.header.focus(t);else{var E;(E=_.ZN(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||E.focus(t)}};
_.Y.visibilityChanged=function(){if(!_.r("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var t=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",E=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",p=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",U=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",x=U||!this.lastVisibility,A,m,b,f=((A=this.data)==null?void 0:(m=A.identifier)==null?void 0:
m.tag)||((b=this.data)==null?void 0:b.panelIdentifier);if(t&&x){var B;((B=this.data)==null?0:B.onShowCommands)&&_.IK(this.hostElement,this.data.onShowCommands,this.hostElement);f&&_.QM().dispatch(_.Jj({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:f}}))}else if(E&&p){var R;((R=this.data)==null?0:R.onHideCommands)&&_.IK(this.hostElement,this.data.onHideCommands,this.hostElement);f&&_.QM().dispatch(_.Jj({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:f}}))}t&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*MPC++));_.r("kevlar_watch_focus_on_engagement_panels")&&t&&U&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.Y.notifyVisibilityChanged=function(t){var E;_.uO(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,t,(E=this.data)==null?void 0:E.targetId]);if(_.r("autonav_pause_for_comments_ep")){var p;_.kT(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:t==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(p=this.data)==null?void 0:p.targetId})}};
_.Y.updateTheaterDisablement=function(){if(!_.r("kevlar_watch_theater_disablement_killswitch")){var t=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&Yfd.includes(t)&&!_.r("watch_next_grid_ignore_disallowed_panels")){var E=_.t8(_.QM().getState()),p=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";t!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():p?(this.originalTheaterState===void 0&&(this.originalTheaterState=E,this.theaterDisablementPanelIdentifier=
t),E&&_.du(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.Y.clearTheaterDisablement=function(){_.du(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.Y.updateChildVisibilityProperties=function(){this.hostElement||_.r("kevlar_panel_property_init_killswitch")||this._enableProperties();var t=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=t);var E,p=(E=this.headerElement)==null?void 0:E.firstElementChild;if(p&&!this.adHeaderImageLockupViewModel){E=t==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";p.collapsed=E;p=_.ZN(p).querySelector("#visibility-button");if(!p)return;(p=p.firstElementChild)&&
p.polymerController.is==="ytd-toggle-button-renderer"&&p.polymerController.data.isToggled!==E&&p.polymerController.set("data.isToggled",E)}var U;if(E=(U=this.contentElement)==null?void 0:U.firstElementChild)if(t&&t!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")E.removeAttribute("panel-content-visible");else{E.setAttribute("panel-content-visible","");var x;(x=E.markDirty)==null||x.call(E)}};
_.Y.onYtChangeEngagementPanelVisibilityAction=function(t){var E=this,p,U=(p=this.data)==null?void 0:p.targetId,x,A,m;p=((x=this.data)==null?void 0:(A=x.identifier)==null?void 0:A.tag)||((m=this.data)==null?void 0:m.panelIdentifier);var b=_.k(t,_.nbG),f;t=U&&(b==null?void 0:b.targetId)===U||p&&(b==null?void 0:(f=b.panelIdentifier)==null?void 0:f.tag)===p;this.dialog&&t&&(b==null?void 0:b.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(U==="engagement-panel-comments-section"?_.du(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.du(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",p]));!_.r("kevlar_use_engagement_panel_management_component")&&t&&(U=b.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!U?_.ir.addJob(function(){E.visibility=b.visibility},2,this.hideDelayMs):this.visibility=b.visibility,b.visibility&&this.notifyVisibilityChanged(b.visibility))};
_.Y.onYtScrollToEngagementPanelCommand=function(t){var E,p=(E=this.data)==null?void 0:E.targetId,U,x,A;E=((U=this.data)==null?void 0:(x=U.identifier)==null?void 0:x.tag)||((A=this.data)==null?void 0:A.panelIdentifier);t=_.k(t,_.yB0);var m;(p&&(t==null?void 0:t.targetId)===p||E&&(t==null?void 0:(m=t.panelIdentifier)==null?void 0:m.tag)===E)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.du(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.Y.attachVEs=function(t){var E,p;(t==null?0:(E=t.content)==null?0:(p=E.productListRenderer)==null?0:p.trackingParams)&&_.Pu().graftServerVe(t.content.productListRenderer.trackingParams);var U,x;(t==null?0:(U=t.content)==null?0:(x=U.transcriptRenderer)==null?0:x.trackingParams)&&_.Pu().graftServerVe(t.content.transcriptRenderer.trackingParams)};
_.Y.onYtUpdateEngagementPanelAction=function(t){var E,p=(E=this.data)==null?void 0:E.targetId;t=_.k(t,Nl7);p&&(t==null?void 0:t.targetId)===p&&(this.updatePanel({engagementPanelSectionListRenderer:{header:t==null?void 0:t.header,content:t==null?void 0:t.content}},!1),this.attachVEs(t))};
_.Y.onYtShowEngagementPanelScrimAction=function(t){var E,p=(E=this.data)==null?void 0:E.targetId;t=_.k(t,ncJ);p&&(t==null?void 0:t.engagementPanelTargetId)===p&&(this.scrimmed=!0)};
_.Y.onYtHideEngagementPanelScrimAction=function(t){var E,p=(E=this.data)==null?void 0:E.targetId;t=_.k(t,afl);p&&(t==null?void 0:t.engagementPanelTargetId)===p&&(this.scrimmed=!1)};
_.Y.getIdentifier=function(){var t,E,p;return((t=this.data)==null?void 0:t.panelIdentifier)||((E=this.data)==null?void 0:(p=E.identifier)==null?void 0:p.tag)};
_.Y.getSurface=function(){var t,E;return(t=this.data)==null?void 0:(E=t.identifier)==null?void 0:E.surface};
_.aE.Object.defineProperties(iD.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var t=this.getIdentifier();return t==="engagement-panel-youchat"||t==="PAyouchat"}},
isAiCompanionPanel:{configurable:!0,enumerable:!0,get:function(){return this.getIdentifier()==="PAai_companion"}}});
iD.prototype.visibilityChanged=iD.prototype.visibilityChanged;iD.prototype.isFullscreenChanged=iD.prototype.isFullscreenChanged;iD.prototype.isTheaterModeChanged=iD.prototype.isTheaterModeChanged;iD.prototype.dataChanged=iD.prototype.dataChanged;iD.prototype.forwardPopupClosedToFlowRootRenderer=iD.prototype.forwardPopupClosedToFlowRootRenderer;iD.prototype.onYtRendererstamperFinished=iD.prototype.onYtRendererstamperFinished;
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],iD.prototype,"actionHandlerBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],iD.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],iD.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],iD.prototype,"ytEventForwardingBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],iD.prototype,"data",void 0);
_.N([_.e({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.P("design:type",Object)],iD.prototype,"headerData",void 0);_.N([_.e(),_.P("design:type",Object)],iD.prototype,"secondaryHeaderData",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],iD.prototype,"visibility",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],iD.prototype,"contentEmpty",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],iD.prototype,"scrimmed",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],iD.prototype,"dialog",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],iD.prototype,"dropdown",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],iD.prototype,"darkerPanels",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],iD.prototype,"matchContentTheme",void 0);_.N([_.e(),_.P("design:type",Object)],iD.prototype,"disableAutoFill",void 0);
_.N([_.e({reflectToAttribute:!0,value:_.r("optimal_reading_width_comments_ep")}),_.P("design:type",Boolean)],iD.prototype,"optimalReadingWidthComments",void 0);_.N([_.e(),_.P("design:type",Number)],iD.prototype,"hideDelayMs",void 0);_.N([_.e({selector:_.EY,reflectToAttribute:!0}),_.P("design:type",Object)],iD.prototype,"isFullscreen",void 0);_.N([_.e({selector:_.t8,reflectToAttribute:!0}),_.P("design:type",Object)],iD.prototype,"isTheaterMode",void 0);
_.N([_.e(),_.P("design:type",Number)],iD.prototype,"showDelayMs",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("data.targetId"),_.P("design:type",Object),_.P("design:paramtypes",[])],iD.prototype,"targetId",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],iD.prototype,"webSize",null);_.N([_.e(),_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],iD.prototype,"hideFooterBorder",null);
_.N([_.e(),_.P("design:type",Object)],iD.prototype,"isWatch",void 0);_.N([_.e(),_.P("design:type",Object)],iD.prototype,"originalTheaterState",void 0);_.N([_.e(),_.P("design:type",Object)],iD.prototype,"theaterDisablementPanelIdentifier",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],iD.prototype,"isWatchWhilePanel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],iD.prototype,"shortsPanel",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],iD.prototype,"liveChatEngagementPanel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],iD.prototype,"learningChatEngagementPanel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],iD.prototype,"liveChatReplyPanel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],iD.prototype,"enableAnchoredPanel",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],iD.prototype,"disableBackdropFilter",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],iD.prototype,"isPersistentPanel",void 0);_.N([_.e(),_.P("design:type",Object)],iD.prototype,"trackEngagementPanelVisibility",void 0);_.N([_.e(),_.P("design:type",Object)],iD.prototype,"overscrollContain",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],iD.prototype,"isAiCompanionPanel",null);
_.N([_.Nl("#header"),_.P("design:type",HTMLElement)],iD.prototype,"headerElement",void 0);_.N([_.Nl("#header > *"),_.P("design:type",HTMLElement)],iD.prototype,"header",void 0);_.N([_.Nl("ytd-section-list-renderer"),_.P("design:type",Object)],iD.prototype,"sectionListRendererElement",void 0);_.N([_.Nl("panel-ad-header-image-lockup-view-model"),_.P("design:type",HTMLElement)],iD.prototype,"adHeaderImageLockupViewModel",void 0);
_.N([_.Nl("#content"),_.P("design:type",HTMLElement)],iD.prototype,"contentElement",void 0);_.N([_.lc("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iD.prototype,"onYtRendererstamperFinished",null);_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iD.prototype,"forwardPopupClosedToFlowRootRenderer",null);
_.N([_.P3("data","isFullscreen","isTheaterMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iD.prototype,"dataChanged",null);_.N([_.GI("isTheaterMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iD.prototype,"isTheaterModeChanged",null);_.N([_.GI("isFullscreen"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iD.prototype,"isFullscreenChanged",null);
_.N([_.GI("visibility"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iD.prototype,"visibilityChanged",null);_.N([_.Ul({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],iD);
_.G(iD,"ytd-engagement-panel-section-list-renderer",function(){if(gSC!==void 0)return gSC;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return gSC=t},{mode:_.hX("kevlar_poly_si_batch_j028")?1:2});var mD7;var qa=function(){var t=_.z.apply(this,arguments)||this;t.rounded=!0;t.pageAttachedTo=void 0;t.currentRequestResolver=void 0;t.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return t};
_.u(qa,_.z);qa.prototype.attached=function(){this.pageAttachedTo=_.X3().resolve(_.jw).getCurrentPage();_.kT(this.hostElement,"yt-player-attached",this.player)};
qa.prototype.detached=function(){var t;if((t=this.pageAttachedTo)==null?0:t.hostElement)_.kT(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
qa.prototype.dataChanged=function(){var t=this,E;if(((E=this.data)==null?0:E.inlinePlaybackEndpoint)&&!_.r("web_channel_imp_ks")){this.currentRequestResolver&&this.currentRequestResolver.reject();E=this.data.inlinePlaybackEndpoint;var p=_.X3().resolve(_.PL),U={};_.X3().resolve(_.Ly);U.lact=_.af();var x=new _.hf;this.currentRequestResolver=x;x.promise.then(function(A){var m={autoplay:!0};!_.r("miniplayer_stop_channel_video_autoplay_killswitch")&&_.X3().resolve(_.bf).isMiniplayerActive()&&(m.pause_at_start=
!0,m.autoplay=!1);A&&t.player.loadVideoWithPlayerResponse(A,m)});
W8t(p,{endpoint:E,startPlaybackInMutedState:!1},U).then(function(A){x.resolve(A)}).catch(function(){})}else if((p=this.data)==null?0:p.videoId)E={video_id:this.data.videoId,
autoplay:!0},!_.r("miniplayer_stop_channel_video_autoplay_killswitch")&&_.X3().resolve(_.bf).isMiniplayerActive()&&(E.pause_at_start=!0,E.autoplay=!1),this.player.loadVideoWithPlayerVars(E)};
qa.prototype.handleSignalActionPausePlayer=function(){_.dG().pause()};
qa.prototype.dataChanged=qa.prototype.dataChanged;_.N([_.e(),_.P("design:type",Object)],qa.prototype,"data",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],qa.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],qa.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],qa.prototype,"rounded",void 0);_.N([_.Nl("#player"),_.P("design:type",Object)],qa.prototype,"player",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qa.prototype,"dataChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],qa);
_.G(qa,"ytd-channel-video-player-renderer",function(){if(mD7!==void 0)return mD7;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return mD7=t},{mode:1});var bpb;var Hj=function(){return _.z.apply(this,arguments)||this};
_.u(Hj,_.z);Hj.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:_.r("web_modern_buttons"),forceIconButton:!_.r("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Hj.prototype.activate=function(t){t.appendTo(this.player);t.getPlayerPromise().then(function(E){E.setMinimized(!0)});
this.active=!0};
Hj.prototype.deactivate=function(){var t=this.player.firstElementChild;t.getPlayerPromise().then(function(E){E.setMinimized(!1)});
this.active=!1;return t};
Hj.prototype.onScrollUpTap=function(){var t=_.X3().resolve(_.jw).getCurrentPage();t&&t.setScrollTop(0)};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Hj.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Hj.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Hj.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Hj.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],Hj.prototype,"active",void 0);
_.N([_.e({reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.P("design:type",Boolean)],Hj.prototype,"darkLaunch",void 0);_.N([_.Nl("#player"),_.P("design:type",HTMLDivElement)],Hj.prototype,"player",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],Hj);
_.G(Hj,"ytd-miniplayer-bar-renderer",function(){if(bpb!==void 0)return bpb;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return bpb=t},{mode:1});var ipt;var fY=function(){return _.z.apply(this,arguments)||this};
_.u(fY,_.z);fY.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.RR(_.ZN(this.hostElement).querySelector("#text"),_.uWZ(_.gsr,this.data.companionLegalText))};
fY.prototype.computeAutoScrollEnabled=function(t,E){return t&&!E};
fY.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
fY.prototype.onToggleTap=function(){this.expanded=!this.expanded};
fY.prototype.expandedChanged=fY.prototype.expandedChanged;fY.prototype.dataChanged=fY.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],fY.prototype,"ytRendererBehavior",void 0);_.N([_.g(ar8),_.P("design:type",Object)],fY.prototype,"ytdAutoScrollBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],fY.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],fY.prototype,"expanded",void 0);
_.N([_.e({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.P("design:type",Boolean)],fY.prototype,"autoScrollEnabled",void 0);_.N([_.e(),_.P("design:type",String)],fY.prototype,"expanderIcon",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fY.prototype,"dataChanged",null);
_.N([_.GI("expanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fY.prototype,"expandedChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],fY);
_.G(fY,"ytd-companion-legal-text-renderer",function(){if(ipt!==void 0)return ipt;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return ipt=t},{mode:1});var qfo;var Bj=function(){var t=_.z.apply(this,arguments)||this;t.buttonUpdate=_.r("web_modern_buttons");t.kevlarWatchGrid=_.r("kevlar_watch_grid");t.centerAlignDescription=_.r("action_companion_center_align_description");t.truncateDomain=_.r("action_companion_truncate_domain");t.enableMonoStyle=_.r("enable_default_mono_cta_migration_web_client");return t};
_.u(Bj,_.z);_.Y=Bj.prototype;_.Y.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.Y.getOnLayoutVisibleCallback=function(){var t=_.ws("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.onLayoutVisibleCallback:null};
_.Y.getLayoutId=function(){var t=_.ws("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.layoutId:null};
_.Y.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",Bj.JSC$21189_DEFAULT_AD_BADGE_RENDERER);var t=this.getOnLayoutVisibleCallback();t&&t()}};
_.Y.getButtonRenderer=function(t){return t.actionButton&&_.k(t.actionButton,_.Ry)?(delete _.k(t.actionButton,_.Ry).navigationEndpoint,_.k(t.actionButton,_.Ry)):{}};
_.Y.onClick=function(t){var E=this;if((!_.r("web_modern_buttons")||!_.Qb(_.Vx(t),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){t=_.k1();var p=this.getLayoutId();t&&p&&_.r("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?t.getPlayerPromise().then(function(U){(new _.bs(U)).executeCommand(E.data.navigationEndpoint,p)}):_.r("kevlar_companion_resolve_command_killswitch")?_.kT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.du(this.hostElement,"yt-companion-ad-clicked",["action-companion",p])}};
_.aE.Object.defineProperties(Bj.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return((t=this.data)==null?0:(E=t.detailsLine)==null?0:(p=E.adRating)==null?0:p.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 t,E,p,U;return((t=this.data)==null?0:(E=t.detailsLine)==null?0:(p=E.adRating)==null?0:(U=p.ratingIcon)==null?0:U.iconType)?_.zh(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var t,E,p,U;return((t=this.data)==null?0:(E=t.detailsLine)==null?0:(p=E.texts)==null?0:(U=p[0])==null?0:U.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 t,E;return((t=this.data)==null?0:(E=t.description)==null?0:E.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var t=_.ws("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var t=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return t?t.indexOf("/default_banner")!==-1:!0}}});
Bj.prototype.onClick=Bj.prototype.onClick;Bj.prototype.dataChanged=Bj.prototype.dataChanged;Bj.JSC$21189_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.zF("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Bj.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Bj.prototype,"rendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Bj.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Bj.prototype,"buttonUpdate",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Bj.prototype,"kevlarWatchGrid",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Bj.prototype,"centerAlignDescription",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Bj.prototype,"truncateDomain",void 0);
_.N([_.e({computed:"computeButtonOverride(buttonUpdate)"}),_.P("design:type",Object)],Bj.prototype,"buttonOverride",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Bj.prototype,"enableMonoStyle",void 0);_.N([_.Z("data.detailsLine.adRating.ratingText"),_.P("design:type",Object),_.P("design:paramtypes",[])],Bj.prototype,"getRating",null);_.N([_.Z("getRating"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Bj.prototype,"computeRatingHidden",null);
_.N([_.Z("data.detailsLine.adRating.ratingIcon.iconType"),_.P("design:type",Object),_.P("design:paramtypes",[])],Bj.prototype,"iconType",null);_.N([_.Z("data.detailsLine.texts.0.text"),_.P("design:type",Object),_.P("design:paramtypes",[])],Bj.prototype,"getDetailsLine",null);_.N([_.Z("getDetailsLine"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Bj.prototype,"computeDetailsLineHidden",null);
_.N([_.Z("data.description.text"),_.P("design:type",Object),_.P("design:paramtypes",[])],Bj.prototype,"getDescriptionText",null);_.N([_.Z("getDescriptionText"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Bj.prototype,"computeDescriptionTextHidden",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Bj.prototype,"interactionLoggingClientData",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Bj.prototype,"hideBanner",null);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Bj.prototype,"dataChanged",null);_.N([_.lc("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Bj.prototype,"onClick",null);_.N([_.Ul({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],Bj);
_.G(Bj,"ytd-action-companion-ad-renderer",function(){if(qfo!==void 0)return qfo;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return qfo=t},{mode:_.hX("kevlar_poly_si_batch_j067")?1:2});var Hpd;var fEo;var wL=function(){var t=_.z.apply(this,arguments)||this;t.buttonUpdate=_.r("web_modern_buttons");t.hideLegacyBanner=_.r("enable_dsa_one_click_ata_translators_infeed_elements");t.adInfoButtonStyle="mono";t.adInfoButtonType="text";t.noDotAdBadge=!0;return t};
_.u(wL,_.z);_.Y=wL.prototype;_.Y.getOnLayoutVisibleCallback=function(){var t=_.ws("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.onLayoutVisibleCallback:null};
_.Y.getLayoutId=function(){var t=_.ws("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.layoutId:null};
_.Y.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 t=this.data.image.thumbnail.thumbnails[0];this.imageSrc=t.url?_.S8(t.url):void 0;this.imageWidth=t.width||0;this.imageHeight=t.height||0}this.data.clickthroughEndpoint&&_.k(this.data.clickthroughEndpoint,_.kX)&&(t=_.k(this.data.clickthroughEndpoint,_.kX).url,_.r("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
t||"":t?(t=_.S8(t),this.clickThroughUrl=_.$I(t)):this.clickThroughUrl=void 0);(t=this.getOnLayoutVisibleCallback())&&t()}};
_.Y.onClick=function(t){_.Qb(_.Vx(t),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(t)};
_.Y.handleClick=function(){var t=this;this.data&&this.data.clickthroughEndpoint&&(_.kT(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(E){t.macroReplacementBehavior.sendServiceRequestAction([E])}),_.du(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.Y.onLoad=function(){_.uO(this.hostElement,"yt-refit-popups-action")};
_.aE.Object.defineProperties(wL.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var t=_.ws("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var t=_.ws("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.interactionLoggingClientData:null}}});
wL.prototype.onLoad=wL.prototype.onLoad;wL.prototype.onClick=wL.prototype.onClick;wL.prototype.dataChanged=wL.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],wL.prototype,"rendererBehavior",void 0);_.N([_.g(D1l.YtMacroReplacementBehavior),_.P("design:type",Object)],wL.prototype,"macroReplacementBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],wL.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],wL.prototype,"buttonUpdate",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],wL.prototype,"hideLegacyBanner",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],wL.prototype,"adInfoButtonStyle",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],wL.prototype,"adInfoButtonType",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],wL.prototype,"macros",null);
_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],wL.prototype,"interactionLoggingClientData",null);_.N([_.e(),_.P("design:type",String)],wL.prototype,"clickThroughUrl",void 0);_.N([_.e(),_.P("design:type",_.Lt)],wL.prototype,"imageSrc",void 0);_.N([_.e(),_.P("design:type",Number)],wL.prototype,"imageWidth",void 0);_.N([_.e(),_.P("design:type",Number)],wL.prototype,"imageHeight",void 0);_.N([_.e(),_.P("design:type",Object)],wL.prototype,"noDotAdBadge",void 0);
_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wL.prototype,"dataChanged",null);_.N([_.lc("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],wL.prototype,"onClick",null);_.N([_.lc("load"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wL.prototype,"onLoad",null);_.N([_.Ul({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],wL);
_.G(wL,"ytd-image-companion-renderer",function(){if(fEo!==void 0)return fEo;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return fEo=t},{mode:_.hX("kevlar_poly_si_batch_j067")?1:2});var BOt;var Rb=function(){return _.z.apply(this,arguments)||this};
_.u(Rb,_.z);_.Y=Rb.prototype;_.Y.dataChanged=function(){this.set("data.adBadge",Rb.JSC$21198_DEFAULT_AD_BADGE_RENDERER);if(this.data){var t=this.getOnLayoutVisibleCallback();t&&t()}};
_.Y.getOnLayoutVisibleCallback=function(){var t=_.ws("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.onLayoutVisibleCallback:null};
_.Y.getLayoutId=function(){var t=_.ws("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.layoutId:null};
_.Y.onCompanionClicked=function(t){this.data&&(t.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.du(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.Y.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var t=_.k1(),E=this.getLayoutId(),p=this.data.clickToAdvSiteEndpoint;t&&E&&_.r("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?t.getPlayerPromise().then(function(U){(new _.bs(U)).executeCommand(p,E)}):_.kT(this.hostElement,"yt-navigate",{endpoint:p})}};
_.Y.sendTrackingPings=function(t){if(t&&t.length!==0&&t[0].loggingUrls&&(t=t[0].loggingUrls.map(this.getBaseUrl)))for(var E=0;E<t.length;E++)_.jT(t[E])};
_.Y.getBaseUrl=function(t){return t.baseUrl||""};
_.aE.Object.defineProperties(Rb.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var t=_.ws("yt.www.ads.eventcache.getLastCompanionData");return t?(t=t())&&t.interactionLoggingClientData:null}}});
Rb.prototype.onCompanionClicked=Rb.prototype.onCompanionClicked;Rb.prototype.dataChanged=Rb.prototype.dataChanged;Rb.JSC$21198_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.zF("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Rb.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Rb.prototype,"data",void 0);_.N([_.Nl("#title"),_.P("design:type",HTMLElement)],Rb.prototype,"shopTitle",void 0);
_.N([_.P3("data.impressionEndpoints"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Rb.prototype,"dataChanged",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Rb.prototype,"interactionLoggingClientData",null);_.N([_.lc("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Rb.prototype,"onCompanionClicked",null);
_.N([_.Ul({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],Rb);
_.G(Rb,"ytd-shopping-companion-renderer",function(){if(BOt!==void 0)return BOt;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return BOt=t},{mode:1});_.k2(_.l(function(t){var E=t.data;t=_.az({visibilityCallback:function(U){var x,A=(x=E().interaction)==null?void 0:x.onFirstVisible;U&&A&&_.bz(A)},
showOption:_.lS});var p=_.Yj(function(){return E().interaction},FHC);
_.Yw(function(){var U,x;x=(x=_.ws("yt.www.ads.eventcache.getLastCompanionData"))?(x=x())&&x.onLayoutVisibleCallback:null;(U=x)==null||U()},"Uj");
return _.H("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.aC(function(U){_.uO(U.currentTarget,"yt-refit-popups-action")}),
el:_.V9(t,p),"aria-label":function(){var U,x;return(U=E().interaction)==null?void 0:(x=U.accessibility)==null?void 0:x.label}},_.H("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.H(_.sY,{data:function(){return E().adImage}},{adImageViewModel:function(U){return _.H(_.SF,{data:U.data,
targetHeight:80,customCommandResolver:FHC})}})),_.H("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.H("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.H(_.sY,{data:function(){return E().adBadge}},{adBadgeViewModel:function(U){return _.H(_.PM,{data:U.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.H("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.H(_.sY,{data:function(){return E().menu}},{buttonViewModel:_.D5}))))},"Vj"),"banner-image-layout-view-model",{props:{data:_.uu}});_.k2(_.l(function(t){var E=t.data;t=_.az({visibilityCallback:function(U){var x,A=(x=E().interaction)==null?void 0:x.onFirstVisible;U&&A&&_.bz(A)},
showOption:_.lS});var p=_.Yj(function(){return E().interaction},zu8);
_.Yw(function(){var U,x;x=(x=_.ws("yt.www.ads.eventcache.getLastCompanionData"))?(x=x())&&x.onLayoutVisibleCallback:null;(U=x)==null||U()},"Wj");
return _.H("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.V9(t,p)},_.H("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.H(_.sY,{data:function(){return E().adImage}},{adImageViewModel:function(U){return _.H(_.SF,{data:U.data,
targetHeight:80,customCommandResolver:zu8})}})),_.H("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.H("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.H(_.sY,{data:function(){return E().adAvatarLockup}},{adAvatarLockupViewModel:function(U){return _.H(KNl,{data:U.data,
customCommandResolver:zu8})}})),_.H(_.sY,{data:function(){return E().adButton}},{adButtonViewModel:function(U){return _.H(_.nk,{data:U.data,
customCommandResolver:zu8})}}),_.H("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.H(_.sY,{data:function(){return E().menu}},{buttonViewModel:_.D5}))))},"Xj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.uu}});var wt5={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"},Vz=function(){var t=_.z.apply(this,arguments)||this;t.updateCompanionDataJobId=0;t.contentVideoId=null;t.player=null;t.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return t};
_.u(Vz,_.z);_.Y=Vz.prototype;_.Y.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:wt5}}};
_.Y.attached=function(){var t=this,E=_.k1();E&&E.getPlayerPromise().then(function(p){t.getCachedDataAndListen(p)})};
_.Y.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.Y.updateRendererStamper=function(){var t={};if(this.data)for(var E in wt5)if(this.data[E]){t[E]=this.data[E];break}if(this.oneofRenderer!=void 0||Object.keys(t).length)this.oneofRenderer=t};
_.Y.getCachedDataAndListen=function(t){var E=this.retrieveCachedCompanionData();E&&Object.keys(E).length&&this.receiveCompanionData(E);this.ytPlayerListenerBehavior.listenToPlayerEvent(t,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=t};
_.Y.retrieveCachedCompanionData=function(){return _.Ui.yt&&_.Ui.yt.www&&_.Ui.yt.www.ads&&_.Ui.yt.www.ads.eventcache&&_.Ui.yt.www.ads.eventcache.getLastCompanionData?_.Ui.yt.www.ads.eventcache.getLastCompanionData():null};
_.Y.receiveCompanionData=function(t){t&&Object.keys(t).length?(this.contentVideoId=t.contentVideoId,this.setCompanionData(t)):this.setCompanionData(t)};
_.Y.setCompanionData=function(t){this.cancelPendingCompanionAdJobs();if(t){this.updateCompanionDataJobId=0;for(var E in wt5)wt5.hasOwnProperty(E)&&(this.data[E]=void 0);t.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",t.shoppingCompanionCarouselRenderer):t.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",t.imageCompanionAdRenderer):t.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",t.actionCompanionAdRenderer),_.uO(this.hostElement,
"yt-hide-unlimited-offer-module"),_.uO(this.hostElement,"yt-hide-tvfilm-offer-module")):t.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",t.bannerImageLayoutViewModel):t.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",t.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.Y.dataChanged=function(){var t=this,E=_.k1();E?E.getPlayerPromise().then(function(p){t.contentVideoId&&p.getVideoUrl().includes("v="+t.contentVideoId)||(t.cancelPendingCompanionAdJobs(),t.updateRendererStamper())}):_.Ra(Error("Kl"))};
_.Y.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.ir.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.Y.handleCompanionAdClicked=function(t,E){this.player.onAdUxClicked(t,E);this.player.pauseVideo()};
Vz.prototype.dataChanged=Vz.prototype.dataChanged;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Vz.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Vz.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Vz.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Vz.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(_.JT.YtPlayerListenerBehavior),_.P("design:type",_.Il)],Vz.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Vz.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Vz.prototype,"oneofRenderer",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Vz.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],Vz);
_.G(Vz,"ytd-companion-slot-renderer",function(){if(Hpd!==void 0)return Hpd;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Hpd=t},{mode:_.hX("kevlar_poly_si_batch_j067")?
1:2});var RVo;var Qz=function(){return _.z.apply(this,arguments)||this};
_.u(Qz,_.z);Qz.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
Qz.prototype.dataChanged=Qz.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Qz.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Qz.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Qz.prototype,"companionSlotData",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Qz.prototype,"dataChanged",null);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],Qz);
_.G(Qz,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(RVo!==void 0)return RVo;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return RVo=t},{mode:1});var VPg;var CY=function(){var t=_.z.apply(this,arguments)||this;t.skinnyMode=!1;t.COMPACT_EVENT_COUNT=4;t.onShelfToggleButtonTap=function(){t.logTap(t.data);t.showingMore=!t.showingMore};
t.onShelfToggleButtonFocus=function(){t.showingMore||(t.logTap(t.data),t.showingMore=!0,_.XE(t,function(){var E=t.COMPACT_EVENT_COUNT-1,p;(p=_.ZN(t.hostElement).querySelector("#event-"+E))==null||p.focus()}))};
return t};
_.u(CY,_.z);_.Y=CY.prototype;_.Y.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.Y.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.Y.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.zI(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.zI(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.zI(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.zI(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.zI(this.infoTooltip,this.infoTooltip.hide))};
_.Y.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.zI(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.zI(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.zI(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.zI(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.zI(this.infoTooltip,this.infoTooltip.hide))};
_.Y.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)};
_.Y.onShowingMoreChanged=function(){var t;this.showingMoreChanged((t=this.showingMore)!=null?t:!1)};
_.Y.showingMoreChanged=function(t){var E=this.get("data.events")||[];this.set("restEvents",E.slice(1,t?E.length:this.COMPACT_EVENT_COUNT).map(function(p){return p.ticketEventRenderer}));
E.slice(0,t?E.length:this.COMPACT_EVENT_COUNT).forEach(function(p){var U=_.yL();p=p.ticketEventRenderer.trackingParams;_.vV()&&U&&p&&(p=_.$8(p),U&&_.mu(U,p))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.Y.computeAriaLabel=function(t){return t.subtitle1+", "+t.subtitle2};
_.Y.logTap=function(t){_.vV()&&this.ytRendererBehavior.logExplicitClick(t)};
_.Y.isKeyboardAction=function(t){return this.get("detail.x",t)===0&&this.get("detail.y",t)===0};
_.Y.onFirstEventTap=function(t){t.target&&this.handleTap(t.target,this.firstEvent,this.isKeyboardAction(t))};
_.Y.onTicketLinkTap=function(t){t.target&&this.handleTap(t.target,t.model.item,this.isKeyboardAction(t))};
_.Y.handleTap=function(t,E,p){if(E.buttonCommand)if(E.hasMultipleOffers)Object.assign(_.k(E.buttonCommand,_.cU),{properties:{source:p?"keyboard":"tap"}}),this.logTap(E),this.popupPositionTarget=t,_.IK(this.hostElement,[E.buttonCommand],this.hostElement);else{var U;if((U=_.k(E.buttonCommand,_.kX))==null?0:U.url)this.logTap(E),_.b0(window,_.k(E.buttonCommand,_.kX).url)}};
CY.prototype.onShowingMoreChanged=CY.prototype.onShowingMoreChanged;CY.prototype.dataChanged=CY.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],CY.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],CY.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],CY.prototype,"firstEvent",void 0);_.N([_.e(),_.P("design:type",Object)],CY.prototype,"restEvents",void 0);_.N([_.e(),_.P("design:type",String)],CY.prototype,"imageUrl",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],CY.prototype,"showingMore",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],CY.prototype,"canShowMore",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],CY.prototype,"skinnyMode",void 0);_.N([_.e(),_.P("design:type",HTMLElement)],CY.prototype,"popupPositionTarget",void 0);_.N([_.Nl("#banner-info-tooltip"),_.P("design:type",Object)],CY.prototype,"infoTooltip",void 0);
_.N([_.Nl("#info-container"),_.P("design:type",HTMLElement)],CY.prototype,"infoContainer",void 0);_.N([_.Nl("#shelf-toggler"),_.P("design:type",HTMLElement)],CY.prototype,"shelfToggleButton",void 0);_.N([_.Nl("#separator"),_.P("design:type",HTMLDivElement)],CY.prototype,"separator",void 0);_.N([_.e(),_.P("design:type",String)],CY.prototype,"shelfTogglerLabelText",void 0);_.N([_.e(),_.P("design:type",String)],CY.prototype,"shelfTogglerIcon",void 0);
_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],CY.prototype,"dataChanged",null);_.N([_.P3("showingMore"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],CY.prototype,"onShowingMoreChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],CY);
_.G(CY,"ytd-ticket-shelf-renderer",function(){if(VPg!==void 0)return VPg;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return VPg=t},{mode:1});var Qk5={};Qk5.YtVisibilityRootBehavior=[_.JOr.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.wi(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.qO("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var t=_.qO("INNERTUBE_CLIENT_NAME")!=="WEB";_.r("kevlar_use_vimio_behavior")&&t&&_.Wks()}}];var jz={};jz.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(t){t.detail.contextProvider=this;t.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
Qk5.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.fd();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(t){var E=this;this.pageCount+=1;_.r("kevlar_use_vimio_behavior")&&(_.qO("INNERTUBE_CLIENT_NAME")==="WEB"?_.ir.addJob(function(){E.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(t)},
loadPage_:function(t){this.data=t},
ytPageBehaviorActiveObserver_:function(t){var E=this;_.r("kevlar_use_vimio_behavior")&&(t?_.qO("INNERTUBE_CLIENT_NAME")==="WEB"?_.ir.addJob(function(){E.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(t){if(!this.setScrollTopJobId_){var E=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){E.setScrollTopJobId_=0;var p=_.X3().resolve(_.OB(_.Ly));p&&_.al(p);this.getPageScrollingElement().scrollTop=t}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.AI(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];var Cq7;var jk7;var rP7;var kK8;var rL=function(){var t=_.z.apply(this,arguments)||this;t.originalQuery=null;t.originalEndpoint=null;return t};
_.u(rL,_.z);rL.prototype.computeShowOriginalQueryWithoutEndpoint_=function(t,E){return!(!t||E)};
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],rL.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],rL.prototype,"correctedText",void 0);_.N([_.e(),_.P("design:type",Object)],rL.prototype,"correctedQuery",void 0);_.N([_.e(),_.P("design:type",Object)],rL.prototype,"correctedEndpoint",void 0);_.N([_.e(),_.P("design:type",Object)],rL.prototype,"originalText",void 0);_.N([_.e(),_.P("design:type",Object)],rL.prototype,"originalQuery",void 0);
_.N([_.e(),_.P("design:type",Object)],rL.prototype,"originalEndpoint",void 0);_.N([_.e({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.P("design:type",Boolean)],rL.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.N([_.p4({is:"yt-search-query-correction",disableElementRegistration:!0})],rL);
_.G(rL,"yt-search-query-correction",function(){if(kK8===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;rP7===void 0&&(rP7=document.createElement("template"));var U=rP7;p.call(E,U.content.cloneNode(!0),t.content.firstChild);kK8=t}t=kK8;return t},{mode:2});_.vs("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var dD5=function(){return _.z.apply(this,arguments)||this};
_.u(dD5,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],dD5.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],dD5.prototype,"data",void 0);_.N([_.p4({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],dD5);
_.G(dD5,"yt-did-you-mean-renderer",function(){if(jk7===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;Cq7===void 0&&(Cq7=document.createElement("template"));var U=Cq7;p.call(E,U.content.cloneNode(!0),t.content.firstChild);jk7=t}t=jk7;return t},{mode:2});var uZ5;var JPb;_.vs("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var IEb=function(){return _.z.apply(this,arguments)||this};
_.u(IEb,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],IEb.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],IEb.prototype,"data",void 0);_.N([_.p4({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],IEb);
_.G(IEb,"yt-including-results-for-renderer",function(){if(JPb===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;uZ5===void 0&&(uZ5=document.createElement("template"));var U=uZ5;p.call(E,U.content.cloneNode(!0),t.content.firstChild);JPb=t}t=JPb;return t},{mode:2});var g07;var Zpl;_.vs("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var ky=function(){return _.z.apply(this,arguments)||this};
_.u(ky,_.z);ky.prototype.computeExtraClasses_=function(t,E){var p="";t&&(p+=" "+t.toLowerCase().replace(/_/g,"-"));E&&(p+=" "+E.toLowerCase().replace(/_/g,"-"));return p};
ky.prototype.computeUrlImg_=function(){var t=this.data;t.image&&(_.ZN(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.d4(t.image.thumbnails,Number.MAX_VALUE)+")")};
ky.prototype.computeUrlImg_=ky.prototype.computeUrlImg_;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],ky.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],ky.prototype,"data",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ky.prototype,"computeUrlImg_",null);_.N([_.p4({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],ky);
_.G(ky,"yt-music-pass-feature-info-renderer",function(){if(Zpl===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;g07===void 0&&(g07=document.createElement("template"));var U=g07;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Zpl=t}t=Zpl;return t},{mode:2});var OpL;var Xtg;_.vs("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var hVt=function(){return _.z.apply(this,arguments)||this};
_.u(hVt,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],hVt.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],hVt.prototype,"data",void 0);_.N([_.p4({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],hVt);
_.G(hVt,"yt-no-results-found-showing-results-for-renderer",function(){if(Xtg===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;OpL===void 0&&(OpL=document.createElement("template"));var U=OpL;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Xtg=t}t=Xtg;return t},{mode:2});var aEC;var eVg;_.vs("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var FZ9=function(){return _.z.apply(this,arguments)||this};
_.u(FZ9,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],FZ9.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],FZ9.prototype,"data",void 0);_.N([_.p4({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],FZ9);
_.G(FZ9,"yt-results-without-quotes-renderer",function(){if(eVg===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;aEC===void 0&&(aEC=document.createElement("template"));var U=aEC;p.call(E,U.content.cloneNode(!0),t.content.firstChild);eVg=t}t=eVg;return t},{mode:2});var zVL;var lE5;_.vs("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var GKl=function(){return _.z.apply(this,arguments)||this};
_.u(GKl,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],GKl.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],GKl.prototype,"data",void 0);_.N([_.p4({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],GKl);
_.G(GKl,"yt-search-no-results-renderer",function(){if(lE5===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;zVL===void 0&&(zVL=document.createElement("template"));var U=zVL;p.call(E,U.content.cloneNode(!0),t.content.firstChild);lE5=t}t=lE5;return t},{mode:2});var n08;var NOe;_.vs("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var DDK=function(){return _.z.apply(this,arguments)||this};
_.u(DDK,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],DDK.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],DDK.prototype,"data",void 0);_.N([_.p4({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],DDK);
_.G(DDK,"yt-showing-results-for-renderer",function(){if(NOe===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;n08===void 0&&(n08=document.createElement("template"));var U=n08;p.call(E,U.content.cloneNode(!0),t.content.firstChild);NOe=t}t=NOe;return t},{mode:2});var skC;var LZ5;_.vs("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var dL=function(){return _.z.apply(this,arguments)||this};
_.u(dL,_.z);
dL.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"}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],dL.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],dL.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],dL.prototype,"data",void 0);_.N([_.p4({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],dL);
_.G(dL,"yt-offer-item-expanded-renderer",function(){if(LZ5===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;skC===void 0&&(skC=document.createElement("template"));var U=skC;p.call(E,U.content.cloneNode(!0),t.content.firstChild);LZ5=t}t=LZ5;return t},{mode:2});var Pq7;var TOC;_.vs("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var uD=function(){return _.z.apply(this,arguments)||this};
_.u(uD,_.z);
uD.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"}}}}};
uD.prototype.computeFullWidthMode=function(t){return!(!t||!t.fullWidthMode)};
uD.prototype.computeBorderlessMode=function(t){return!(!t||!t.borderlessMode)};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],uD.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],uD.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],uD.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.P("design:type",Boolean)],uD.prototype,"fullWidthMode",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.P("design:type",Boolean)],uD.prototype,"borderlessMode",void 0);_.N([_.p4({is:"yt-offer-item-renderer",disableElementRegistration:!0})],uD);
_.G(uD,"yt-offer-item-renderer",function(){if(TOC===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;Pq7===void 0&&(Pq7=document.createElement("template"));var U=Pq7;p.call(E,U.content.cloneNode(!0),t.content.firstChild);TOC=t}t=TOC;return t},{mode:2});var o0d;var WZb;_.vs("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var JE=function(){return _.z.apply(this,arguments)||this};
_.u(JE,_.z);JE.prototype.computeAriaLevel_=function(t){return this.getLevelID_(t)};
JE.prototype.getLevelID_=function(t){return(t=t.match(/[0-9]+$/))&&t.length==1?t[0]:"1"};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],JE.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],JE.prototype,"data",void 0);_.N([_.e({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.P("design:type",String)],JE.prototype,"ariaLevel",void 0);_.N([_.e({value:"heading",reflectToAttribute:!0}),_.P("design:type",String)],JE.prototype,"role",void 0);
_.N([_.e({value:-1,reflectToAttribute:!0}),_.P("design:type",Number)],JE.prototype,"tabindex",void 0);_.N([_.p4({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],JE);
_.G(JE,"yt-subscription-product-header-renderer",function(){if(WZb===void 0){var t=document.createElement("template");_.J(t,"\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");t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;o0d===void 0&&(o0d=document.createElement("template"));var U=o0d;p.call(E,U.content.cloneNode(!0),t.content.firstChild);WZb=t}t=WZb;return t},{mode:2});var $D9;var KZC;_.vs("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var Ib=function(){return _.z.apply(this,arguments)||this};
_.u(Ib,_.z);Ib.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:_.y9("menuRenderer"),events:!0}}};
Ib.prototype.onStampFinished_=function(){_.ZN(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
Ib.prototype.onStampFinished_=Ib.prototype.onStampFinished_;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ib.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Ib.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Ib.prototype,"data",void 0);_.N([_.lc("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ib.prototype,"onStampFinished_",null);
_.N([_.p4({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],Ib);
_.G(Ib,"yt-subscription-product-renderer",function(){if(KZC===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;$D9===void 0&&($D9=document.createElement("template"));var U=$D9;p.call(E,U.content.cloneNode(!0),t.content.firstChild);KZC=t}t=KZC;return t},{mode:2});var v09;var yPJ;_.vs("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var gL=function(){return _.z.apply(this,arguments)||this};
_.u(gL,_.z);gL.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
gL.prototype.imageScrimColorValuesChanged_=function(){var t,E=(t=this.data)==null?void 0:t.imageScrimColorValues;_.ZN(this.hostElement).querySelector("#scrim").style.backgroundColor=E?_.cL(E[0]):"transparent"};
gL.prototype.imageScrimColorValuesChanged_=gL.prototype.imageScrimColorValuesChanged_;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],gL.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],gL.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],gL.prototype,"data",void 0);
_.N([_.GI("data.imageScrimColorValues"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gL.prototype,"imageScrimColorValuesChanged_",null);_.N([_.p4({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],gL);
_.G(gL,"yt-subscription-product-upsell-offer-renderer",function(){if(yPJ===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;v09===void 0&&(v09=document.createElement("template"));var U=v09;p.call(E,U.content.cloneNode(!0),t.content.firstChild);yPJ=t}t=yPJ;return t},{mode:2});var SfJ;var cP5;var tDb;var EQb;var phl;var UN7;var ZQ=function(){return _.z.apply(this,arguments)||this};
_.u(ZQ,_.z);ZQ.prototype.onYtServiceRequestError_=function(t){_.f$(this.hostElement,t.detail.error.message)};
ZQ.prototype.onYtServiceRequestError_=ZQ.prototype.onYtServiceRequestError_;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],ZQ.prototype,"data",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],ZQ.prototype,"collapsible",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],ZQ.prototype,"isManageRed",void 0);
_.N([_.lc("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],ZQ.prototype,"onYtServiceRequestError_",null);_.N([_.p4({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],ZQ);
_.G(ZQ,"yt-single-ypc-offer-renderer",function(){if(UN7===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;phl===void 0&&(phl=document.createElement("template"));var U=phl;p.call(E,U.content.cloneNode(!0),t.content.firstChild);UN7=t}t=UN7;return t},{mode:2});var OE=function(){return _.z.apply(this,arguments)||this};
_.u(OE,_.z);OE.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],OE.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],OE.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],OE.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],OE.prototype,"isManageRed",void 0);_.N([_.p4({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],OE);
_.G(OE,"yt-single-ypc-offer-list-renderer",function(){if(EQb===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;tDb===void 0&&(tDb=document.createElement("template"));var U=tDb;p.call(E,U.content.cloneNode(!0),t.content.firstChild);EQb=t}t=EQb;return t},{mode:2});var xNl;var Aml;_.vs("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var Xf=function(){return _.z.apply(this,arguments)||this};
_.u(Xf,_.z);Xf.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Xf.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Xf.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Xf.prototype,"data",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],Xf.prototype,"isManageRed",void 0);_.N([_.p4({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],Xf);
_.G(Xf,"yt-ypc-offers-list-renderer",function(){if(Aml===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;xNl===void 0&&(xNl=document.createElement("template"));var U=xNl;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Aml=t}t=Aml;return t},{mode:2});_.vs("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var hE=function(){return _.z.apply(this,arguments)||this};
_.u(hE,_.z);
hE.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}}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],hE.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],hE.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],hE.prototype,"data",void 0);_.N([_.p4({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],hE);
_.G(hE,"yt-unlimited-manage-subscription-page-renderer",function(){if(cP5===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;SfJ===void 0&&(SfJ=document.createElement("template"));var U=SfJ;p.call(E,U.content.cloneNode(!0),t.content.firstChild);cP5=t}t=cP5;return t},{mode:2});var Ysb;var MDJ;var ab=function(){return _.z.apply(this,arguments)||this};
_.u(ab,_.z);_.Y=ab.prototype;_.Y.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.Y.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.Y.onKeypress_=function(t){t.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.Y.handleHeaderTap_=function(t){t.preventDefault();t.stopPropagation();this.expandOffers_()};
_.Y.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.Y.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
ab.prototype.dataChanged_=ab.prototype.dataChanged_;_.N([_.g(_.ou),_.P("design:type",Object)],ab.prototype,"ironA11yKeysBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],ab.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],ab.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],ab.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],ab.prototype,"offersVisible_",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ab.prototype,"dataChanged_",null);_.N([_.p4({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],ab);
_.G(ab,"yt-collapsible-ypc-offer-renderer",function(){if(MDJ===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;Ysb===void 0&&(Ysb=document.createElement("template"));var U=Ysb;p.call(E,U.content.cloneNode(!0),t.content.firstChild);MDJ=t}t=MDJ;return t},{mode:2});var mNt;var b9e;_.vs("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var ez=function(){return _.z.apply(this,arguments)||this};
_.u(ez,_.z);_.Y=ez.prototype;_.Y.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.Y.dataChanged_=function(){if(this.data.backgroundImage){var t=_.d4(this.data.backgroundImage.thumbnails,screen.width),E=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=E?"linear-gradient(180deg, "+E+"), url("+t+")":"url("+t+")";this.data.gtmId&&_.x9(this.data.gtmId,_.qO("GL",""))}};
_.Y.onYtServiceRequestError_=function(t){_.f$(this.hostElement,t.detail.error.message)};
_.Y.getScrimLayerColorStops_=function(){var t,E,p=(t=this.data.unlimitedHeaderV2Data)==null?void 0:(E=t.unlimitedHeaderV2Data)==null?void 0:E.scrimLayerColors;if(!p)return null;var U=100/p.length;return p.map(function(x,A){A*=U;return _.cL(x)+" "+A+"%"}).join(",")};
_.Y.computeLogoWithPadding=function(t){var E,p,U;return(t=(E=t.unlimitedLogoImage)==null?void 0:(p=E.thumbnails)==null?void 0:(U=p[0])==null?void 0:U.height)&&t%31===0?!0:!1};
ez.prototype.onYtServiceRequestError_=ez.prototype.onYtServiceRequestError_;ez.prototype.dataChanged_=ez.prototype.dataChanged_;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],ez.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],ez.prototype,"ytRendererBehavior",void 0);_.N([_.e({computed:"computeLogoWithPadding(data)"}),_.P("design:type",Boolean)],ez.prototype,"logoWithPadding",void 0);
_.N([_.e(),_.P("design:type",Object)],ez.prototype,"data",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ez.prototype,"dataChanged_",null);_.N([_.lc("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],ez.prototype,"onYtServiceRequestError_",null);_.N([_.p4({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],ez);
_.G(ez,"yt-unlimited-page-header-renderer",function(){if(b9e===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;mNt===void 0&&(mNt=document.createElement("template"));var U=mNt;p.call(E,U.content.cloneNode(!0),t.content.firstChild);b9e=t}t=b9e;return t},{mode:2});var i98;var qsg;_.vs("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var Ff=function(){return _.z.apply(this,arguments)||this};
_.u(Ff,_.z);Ff.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Ff.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ff.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Ff.prototype,"data",void 0);_.N([_.p4({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],Ff);
_.G(Ff,"yt-unlimited-user-notification-renderer",function(){if(qsg===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;i98===void 0&&(i98=document.createElement("template"));var U=i98;p.call(E,U.content.cloneNode(!0),t.content.firstChild);qsg=t}t=qsg;return t},{mode:2});var H9t;var fAl;var BRL=function(){return _.z.apply(this,arguments)||this};
_.u(BRL,_.z);_.N([_.e(),_.P("design:type",Object)],BRL.prototype,"data",void 0);_.N([_.p4({is:"yt-alert-renderer",disableElementRegistration:!0})],BRL);
_.G(BRL,"yt-alert-renderer",function(){if(fAl===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;H9t===void 0&&(H9t=document.createElement("template"));var U=H9t;p.call(E,U.content.cloneNode(!0),t.content.firstChild);fAl=t}t=fAl;return t},{mode:2});var kjb=function(t){_.PQ.call(this);this.JSC$21286_watchApi=t;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;whg(this);R0L(this);VDb(this);Q39(this);CyK(this);j3t(this);rmb(this)};
_.u(kjb,_.PQ);var VDb=function(t){var E=function(){_.r("kevlar_is_pupi_enabled")||zi(t)};
t.JSC$21286_watchApi.getRoot().addEventListener("yt-player-updated",E);t.addOnDisposeCallback(function(){t.JSC$21286_watchApi.getRoot().removeEventListener("yt-player-updated",E)})},CyK=function(t){if(_.r("kevlar_endscreen_auto_theater_mode")){var E=t.JSC$21286_watchApi.subscribeToActiveChanged(function(){dN7(t)},!1);
t.addOnDisposeCallback(E)}},whg=function(t){var E,p,U,x,A;
_.q(function(m){if(m.nextAddress==1)return m.yield(t.JSC$21286_watchApi.playerApi,2);E=m.yieldResult;p=function(b){b=!!b;uml(t)&&(b=b?2:1,_.e3.getInstance().setState(b,!0,!1))};
U=function(b){b&&Ft7(_.QM().getState())&&(_.du(t.JSC$21286_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),t.temporaryTheaterMode=!0)};
x=function(b){_.r("kevlar_player_update_autonav_on_new_data")&&b.type==="newdata"&&(_.r("kevlar_is_pupi_enabled")||zi(t))};
A=function(b){t.onPlayerStateChange(b)};
_.r("kevlar_endscreen_auto_theater_mode")&&E.addEventListener("onAutonavCancelled",U);E.addEventListener("onAutonavChangeRequest",p);E.addEventListener("onVideoDataChange",x);E.addEventListener("onStateChange",A);t.addOnDisposeCallback(function(){E.removeEventListener("onAutonavChangeRequest",p);E.removeEventListener("onVideoDataChange",x);E.removeEventListener("onStateChange",A);_.r("kevlar_endscreen_auto_theater_mode")&&E.removeEventListener("onAutonavCancelled",U)});
_.Do(m)})},R0L=function(t){t.JSC$21286_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){t.autonavCancelledBySignal=!0;
_.r("kevlar_is_pupi_enabled")||zi(t)});
t.JSC$21286_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(E,p,U){p&&zi(t,U)});
t.JSC$21286_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){uml(t)&&_.e3.getInstance().setState(2,!0,!0)});
t.JSC$21286_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){uml(t)&&_.e3.getInstance().setState(1,!0,!0)});
t.addOnDisposeCallback(function(){t.JSC$21286_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");t.JSC$21286_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");t.JSC$21286_watchApi.unregisterActionHandler("yt-enable-autoplay-command");t.JSC$21286_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},Q39=function(t){var E=t.JSC$21286_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){rmb(t)}),p=t.JSC$21286_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){j3t(t)});
t.addOnDisposeCallback(function(){t.JSC$21286_watchApi.unsubscribeByKey(E);t.JSC$21286_watchApi.unsubscribeByKey(p)})},rmb=function(t){t.autonavCancelledBySignal=!1;
_.r("kevlar_is_pupi_enabled")||zi(t)},j3t=function(t){var E=t.JSC$21286_watchApi.getWatchNextResponse(),p,U;
var x=(E=(U=_.k(E==null?void 0:(x=E.playerOverlays)==null?void 0:(p=x.playerOverlayRenderer)==null?void 0:p.autonavToggle,_.Tyr))==null?void 0:U.enabled)?2:1;_.r("kevlar_is_pupi_enabled")?_.e3.getInstance().setState(x,!1,!1):zi(t);_.r("web_persist_server_autonav_state_on_client")&&typeof E==="boolean"&&_.Qy$(x===2)},uml=function(t){if(t.autonavCancelledBySignal)return!1;
var E,p,U,x;return!!((E=t.JSC$21286_watchApi.getWatchNextResponse())==null?0:(p=E.contents)==null?0:(U=p.twoColumnWatchNextResults)==null?0:(x=U.autoplay)==null?0:x.autoplay)};
kjb.prototype.onPlayerStateChange=function(t){if(t===0){t=!_.e3.getInstance().isAutoplaySetExplicitly();var E=this.JSC$21286_watchApi.getWatchNextResponse(),p,U,x,A;E=_.k(E==null?void 0:(p=E.contents)==null?void 0:(U=p.twoColumnWatchNextResults)==null?void 0:(x=U.autoplay)==null?void 0:(A=x.autoplay)==null?void 0:A.autoplayExplicitChoiceDialogRenderer,_.bH3);uml(this)&&t&&E&&_.Gh.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:E},popupType:"DIALOG"}})}else dN7(this)};
var dN7=function(t){t.temporaryTheaterMode&&(t.temporaryTheaterMode=!1,_.du(t.JSC$21286_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},zi=function(t,E){E=E===void 0?!1:E;
var p;_.q(function(U){if(U.nextAddress==1)return U.yield(t.JSC$21286_watchApi.playerApi,2);p=U.yieldResult;uml(t)?p.setAutonavState(_.e3.getInstance().getState(),E):p.setAutonavState(1,E);_.Do(U)})};var Jm8={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"};var gQC=function(t){_.PQ.call(this);var E=this;this.JSC$21291_watchApi=t;var p=this.JSC$21291_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){IA7(E)});
this.addOnDisposeCallback(function(){E.JSC$21291_watchApi.unsubscribeByKey(p)});
IA7(this)};
_.u(gQC,_.PQ);var IA7=function(t){var E=t.JSC$21291_watchApi.getPlayerResponse(),p=t.JSC$21291_watchApi.getWatchNextResponse();if(!_.C4i(E==null?void 0:E.playabilityStatus,p==null?void 0:p.playerOverlays)){var U;var x=E==null?void 0:(U=E.playabilityStatus)==null?void 0:U.errorScreen}t.JSC$21291_watchApi.provideRenderingData("ERROR_SCREEN",x)};var Z9o=_.l(function(t){return _.H("yt-player-grid-renderer",{class:_.X5("ytPlayerGridRendererHost",t.className)},_.H(_.sY,{data:t.data},{lockupViewModel:function(E){return _.H(_.WM,{data:E.data,useOverlayStyling:!0})}}))},"Yj");var O9J=_.l(function(t){var E=t.data;t=_.r("web_watch_video_details_hide_subtitle");var p=_.r("web_watch_video_details_single_line_title"),U=_.aC(function(){var b=E().onTap;b&&_.X3().resolve(_.ei).resolveCommand(b)}),x={},A={},m={};
return _.H("yt-player-overlay-video-details-renderer",{class:_.X5("ytPlayerOverlayVideoDetailsRendererHost",(x.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.r("web_watch_video_details_transparent_background"),x)),"on:click":U,role:"button"},_.H("h2",{class:_.X5("ytPlayerOverlayVideoDetailsRendererTitle",(A.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return p},A))},_.H(_.d8,{text:function(){return E().title}})),_.H("div",{class:_.X5("ytPlayerOverlayVideoDetailsRendererSubtitle",
(m.ytPlayerOverlayVideoDetailsRendererHideSubtitle=t,m))},_.H(_.d8,{text:function(){return E().subtitle}})))},"Zj");var lD={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},Xho=_.l(function(t){var E=t.data;var p=_.D4(_.EY),U=_.r("web_watch_action_bar_resize_buttons"),x=_.r("web_watch_video_action_dsdvb"),A=_.r("delhi_modern_web_player_icons")&&!_.r("enable_web_delhi_icons");t=_.r("delhi_modern_web_player_disable_frosted_glass");var m=_.r("delhi_modern_web_player_compact_video_actions_controls"),
b=_.r("web_player_quick_action_buttons_icon_only"),f=function(){var R=U&&!p(),V={};m?V.size="S":R&&(V.size="M");b&&(V.iconPosition="icon-only");if(Object.keys(V).length!==0)return V},B={};
return _.H("yt-player-quick-action-buttons",{class:_.X5("ytPlayerQuickActionButtonsHost",(B.ytPlayerQuickActionButtonsHostCompactControls=function(){return!p()||m},B.ytPlayerQuickActionButtonsHostDisableBackdropFilter=t,B))},_.H(_.yG,{each:function(){var R=E();
if(A){R=JSON.parse(JSON.stringify(R));for(var V=_.M(R),Q=V.next();!Q.done;Q=V.next()){var C=Q.value,d=void 0;Q=_.k((d=_.k(C,_.qm))==null?void 0:d.toggleButtonViewModel,_.rc);var I=void 0;d=_.k((I=_.k(C,_.Hn))==null?void 0:I.toggleButtonViewModel,_.rc);I=_.k(C,_.Cz);C=_.k(C,_.rc);if(Q)d=_.k(Q.defaultButtonViewModel,_.Cz),Q=_.k(Q.toggledButtonViewModel,_.Cz),d&&d.iconName&&(d.iconName=lD[d.iconName]),Q&&Q.iconName&&(Q.iconName=lD[Q.iconName]);else if(d)Q=_.k(d.defaultButtonViewModel,_.Cz),d=_.k(d.toggledButtonViewModel,
_.Cz),Q&&Q.iconName&&(Q.iconName=lD[Q.iconName]),d&&d.iconName&&(d.iconName=lD[d.iconName]);else if(I)I.iconName&&(I.iconName=lD[I.iconName]);else if(C){Q=_.k(C.defaultButtonViewModel,_.Cz);d=_.k(C.toggledButtonViewModel,_.Cz);C=void 0;if((C=Q)==null?0:C.iconName)Q.iconName=lD[Q.iconName];Q=void 0;if((Q=d)==null?0:Q.iconName)d.iconName=lD[d.iconName]}}}x&&(R=lVC(R));return R}},function(R){return _.H(_.sY,{data:function(){return R}},{buttonViewModel:function(V){return _.H(_.D5,{data:V.data,
buttonOverrides:f})},
likeButtonViewModel:function(V){return _.H(_.Vf,{data:V.data,buttonShapeOverrideables:f})},
dislikeButtonViewModel:function(V){return _.H(_.R2,{data:V.data,buttonShapeOverrideables:f})},
toggleButtonViewModel:function(V){return _.H(_.m3,{data:V.data,buttonShapeOverrides:f})}})}))},"$j");var aAC=function(t){_.PQ.call(this);var E=this;this.JSC$21299_watchApi=t;t=_.M(_.Py({},void 0,"OB6c5e"));this.quickActionsViewModel=t.next().value;this.setQuickActionsViewModel=t.next().value;t=_.M(_.Py({},void 0,"ZCXW8c"));this.playerOverlayVideoDetailsRenderer=t.next().value;this.setPlayerOverlayVideoDetailsRenderer=t.next().value;t=_.M(_.Py([],void 0,"A7tRk"));this.lockupViewModels=t.next().value;this.setLockupViewModels=t.next().value;var p=this.JSC$21299_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){h0K(E)});
this.addOnDisposeCallback(function(){E.JSC$21299_watchApi.unsubscribeByKey(p)});
h0K(this)};
_.u(aAC,_.PQ);
var h0K=function(t){var E,p,U,x,A,m,b,f,B,R,V,Q,C,d,I,O,a;_.q(function(F){if(F.nextAddress==1)return F.yield(t.JSC$21299_watchApi.playerApi,2);E=F.yieldResult;p=t.JSC$21299_watchApi.getWatchNextResponse();A=(U=p)==null?void 0:(x=U.playerOverlays)==null?void 0:x.playerOverlayRenderer;b=_.k((m=A)==null?void 0:m.fullscreenQuickActionsBar,_.Pus);(B=(f=t).setQuickActionsViewModel)==null||B.call(f,b||{});b&&e0t(t,E);Q=(R=A)==null?void 0:(V=R.videoDetails)==null?void 0:V.playerOverlayVideoDetailsRenderer;(d=
(C=t).setPlayerOverlayVideoDetailsRenderer)==null||d.call(C,Q||{});Q&&Fy7(t,E);if(_.r("web_player_use_external_grid_component")){var L=[],D,W,K,v,YL=p==null?void 0:(D=p.contents)==null?void 0:(W=D.twoColumnWatchNextResults)==null?void 0:(K=W.secondaryResults)==null?void 0:(v=K.secondaryResults)==null?void 0:v.results;if(YL)for(D=_.M(YL),W=D.next();!W.done;W=D.next())if(W=W.value,W.lockupViewModel)L.push(W);else if(K=void 0,(K=W.itemSectionRenderer)==null?0:K.contents)for(W=_.M(W.itemSectionRenderer.contents),
K=W.next();!K.done;K=W.next())K=K.value,K.lockupViewModel&&L.push(K);I=L;(a=(O=t).setLockupViewModels)==null||a.call(O,I||[]);z0L(t,E)}_.Do(F)})},e0t=function(t,E){if(!t.quickActionButtonsContainer)if(E.setFullscreenQuickActions){t.quickActionButtonsContainer=document.createElement("div");
E.setFullscreenQuickActions(t.quickActionButtonsContainer);var p=function(){return t.quickActionsViewModel().quickActionButtons||[]},U=_.UB(t.quickActionButtonsContainer,function(){return _.H(Xho,{data:p})},"ak");
t.addOnDisposeCallback(function(){E.setFullscreenQuickActions(void 0);U()})}else _.qW(new _.cC("setFullscreenQuickActions not defined",{playerApi:Object.keys(E),
isReady:E.isReady(),appState:E.getAppState()}))},Fy7=function(t,E){if(!t.playerOverlayVideoDetailsRendererContainer)if(E.setPlayerOverlayVideoDetailsRenderer){t.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
E.setPlayerOverlayVideoDetailsRenderer(t.playerOverlayVideoDetailsRendererContainer);var p=_.UB(t.playerOverlayVideoDetailsRendererContainer,function(){return _.H(O9J,{data:t.playerOverlayVideoDetailsRenderer})},"bk");
t.addOnDisposeCallback(function(){E.setPlayerOverlayVideoDetailsRenderer(void 0);p()})}else _.qW(new _.cC("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(E),
isReady:E.isReady(),appState:E.getAppState()}))},z0L=function(t,E){if(!t.gridRendererContainer)if(E.setFullscreenGrid){t.gridRendererContainer=document.createElement("div");
E.setFullscreenGrid(t.gridRendererContainer);var p=_.UB(t.gridRendererContainer,function(){return _.H(Z9o,{data:t.lockupViewModels})},"ck");
t.addOnDisposeCallback(function(){E.setFullscreenGrid(void 0);p()})}else _.qW(new _.cC("setFullscreenGrid not defined",{playerApi:Object.keys(E),
isReady:E.isReady(),appState:E.getAppState()}))};var Gi=function(t){_.PQ.call(this);var E=this;this.JSC$21305_watchApi=t;this.JSC$21305_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;t=_.EA(_.QM(),_.EY,function(p){E.onFullscreenChanged(p)});
this.addOnDisposeCallback(t);t=_.EA(_.QM(),wr,function(p){E.onWatchScroll(p)});
this.addOnDisposeCallback(t);_.r("kevlar_watch_while_v2")&&(t=_.EA(_.QM(),_.E5,function(p){lAl(E,p)}),this.addOnDisposeCallback(t));
Gj9(this);nQC(this);NR9();this.onWatchScroll(wr(_.QM().getState()));_.HC("START_IN_FULL_WINDOW_MODE")&&this.JSC$21305_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.u(Gi,_.PQ);var Gj9=function(t){t.JSC$21305_watchApi.registerActionHandler("yt-fullscreen-change-action",function(E){var p=t.JSC$21305_watchApi.isActive();E&&!p||_.QM().dispatch(_.Jj({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!E}}))});
t.addOnDisposeCallback(function(){t.JSC$21305_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},nQC=function(t){var E,p;
_.q(function(U){if(U.nextAddress==1)return U.yield(t.JSC$21305_watchApi.playerApi,2);E=U.yieldResult;p=function(){t.onFullerscreenEduClicked()};
E.addEventListener("onFullerscreenEduClicked",p);t.addOnDisposeCallback(function(){E.removeEventListener("onFullerscreenEduClicked",p)});
_.Do(U)})};
Gi.prototype.onFullscreenChanged=function(t){var E=this,p;return _.q(function(U){if(U.nextAddress==1)return E.isFullscreen=!!_.QS(),U.yield(E.JSC$21305_watchApi.playerApi,2);p=U.yieldResult;E.JSC$21305_miniplayerActive||p.setFauxFullscreen(E.isFullscreen);if(t&&(E.JSC$21305_watchApi.focusOnPlayer(),!E.fullerscreenEduButtonShownThisPlayback)){E.fullerscreenEduButtonShownThisPlayback=!0;var x=_.WL("yt-fullerscreen-edu-button-shown-count")||0;_.o4("yt-fullerscreen-edu-button-shown-count",x+1,31536E3);
E.updateFullerscreenEduButtonSubtleModeState()}_.Do(U)})};
var lAl=function(t,E){var p;_.q(function(U){if(U.nextAddress==1)return t.JSC$21305_miniplayerActive=E,U.yield(t.JSC$21305_watchApi.playerApi,2);p=U.yieldResult;p.setFauxFullscreen(!t.JSC$21305_miniplayerActive&&t.isFullscreen);_.Do(U)})};
Gi.prototype.onWatchScroll=function(t){var E=this,p,U;return _.q(function(x){if(x.nextAddress==1)return _.r("external_fullscreen_with_edu")?x.yield(E.JSC$21305_watchApi.playerApi,2):x.return();p=x.yieldResult;U=t<=0;E.shouldShowFullerscreenEdu!==U&&(E.shouldShowFullerscreenEdu=U,p.updateFullerscreenEduButtonVisibility(!E.shouldShowFullerscreenEdu));_.Do(x)})};
Gi.prototype.onFullerscreenEduClicked=function(){this.JSC$21305_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var t=_.WL("yt-fullerscreen-edu-button-click-count")||0;_.o4("yt-fullerscreen-edu-button-click-count",t+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
Gi.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var t=this,E,p,U,x,A,m;return _.q(function(b){if(b.nextAddress==1)return E=_.WL("yt-fullerscreen-edu-button-click-count")||0,p=_.WL("yt-fullerscreen-edu-button-shown-count")||0,U=_.z3("external_fullscreen_button_click_threshold"),x=_.z3("external_fullscreen_button_shown_threshold"),A=E>=U||p>=x,b.yield(t.JSC$21305_watchApi.playerApi,2);m=b.yieldResult;m.updateFullerscreenEduButtonSubtleModeState(A);_.Do(b)})};
Gi.prototype.disposeInternal=function(){_.PQ.prototype.disposeInternal.call(this);var t=_.QS();_.r("kevlar_exit_fullscreen_leaving_watch")&&t&&_.CF(t)};
var NR9=function(){if(_.r("web_watch_add_viewport_meta_tag")){var t=document.querySelector("meta[name=viewport]"),E=document.head;E&&!t&&(t=document.createElement("meta"),t.name="viewport",t.content="width=device-width, initial-scale=1.0, viewport-fit=cover",E.appendChild(t))}};var s3l=function(t){_.PQ.call(this);var E=this;this.JSC$21308_watchApi=t;this.jobId=0;this.pendingRequestId=void 0;var p=this.JSC$21308_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){DN9(E)});
this.addOnDisposeCallback(function(){E.JSC$21308_watchApi.unsubscribeByKey(p)});
DN9(this)};
_.u(s3l,_.PQ);var Lyd=function(t){_.ir.cancelJob(t.jobId);t.pendingRequestId=void 0},DN9=function(t){Lyd(t);
var E=GdK(t.JSC$21308_watchApi.getWatchNextResponse());if(E){var p=250,U,x=(U=_.k(E,_.PIs))==null?void 0:U.initialDelayMs;_.r("web_watch_updated_metadata_server_initial_delay")&&x&&(p=x);t.jobId=_.ir.addLowPriorityJob(function(){return t.fetchUpdatedMetadata(E)},p)}};
s3l.prototype.fetchUpdatedMetadata=function(t,E){var p=this,U,x,A,m,b,f,B,R,V,Q,C,d,I,O,a;return _.q(function(F){switch(F.nextAddress){case 1:E&&(U={continuation:E});if(!_.r("web_get_updated_metadata_fantasy_panel_continuation_params")){F.jumpTo(2);break}x=_.X3().resolve(_.mp);A="PAsports_fantasy";return F.yield(x.isVisible(A,!0),3);case 3:F.yieldResult&&(B=(b=(m=x).getUpdatePanelContinuationData)==null?void 0:(f=b.call(m,A))==null?void 0:f.updatePanelContinuationRequest)&&(U||(U={}),U.clientParams=
{panelContinuationParams:{panelContinuation:B}});case 2:R=_.X3().resolve(_.PL);if(!R)return _.bV(Error("Ll")),F.return();V={};p.pendingRequestId=V;return F.yield(_.H9(R,t,U),4);case 4:Q=F.yieldResult;if(V!==p.pendingRequestId)return F.return();I=(C=Q)==null?void 0:(d=C.continuation)==null?void 0:d.timedContinuationData;((O=I)==null?0:O.continuation)&&((a=I)==null?0:a.timeoutMs)&&(p.jobId=_.ir.addLowPriorityJob(function(){return p.fetchUpdatedMetadata(t,I.continuation)},I.timeoutMs));
_.Do(F)}})};
s3l.prototype.disposeInternal=function(){_.PQ.prototype.disposeInternal.call(this);Lyd(this)};var Pyt=_.l(function(t){var E=_.aC(function(){var U=t.data().videoId;if(t.active())U=_.rm(U),_.X3().resolve(_.ei).resolveCommand(U);else{var x=t.playerApi(),A=x.getAvailableAudioTracks(),m,b,f=(m=t.sourceVideoConfig().audioTracks)==null?void 0:(b=m.find(function(B){return B.isDefaultForSource}))==null?void 0:b.id;
if(A=A.find(function(B){return B.getLanguageInfo().getId()===f}))x.setAudioTrack(A,!0),x.setCompositeParam({activeVideoId:U}),t.setActiveSourceId(U)}}),p={};
return _.H("ytw-composite-source-video-overlay",{class:_.X5("ytwCompositeSourceVideoOverlayHost",(p.ytwCompositeSourceVideoOverlayActive=t.active,p.ytwCompositeSourceVideoOverlayInteracting=t.interacting,p)),style:_.zO({left:function(){var U;return((U=t.data().topLeftCornerX)!=null?U:0)*100+"%"},
top:function(){var U;return((U=t.data().topLeftCornerY)!=null?U:0)*100+"%"},
width:function(){var U;return((U=t.data().width)!=null?U:0)*100+"%"},
height:function(){var U;return((U=t.data().height)!=null?U:0)*100+"%"}}),
"on:click":E},_.H("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"dk");var TRl=_.l(function(t){var E=_.M(_.j5(function(){var m,b=(m=t.data().sources)==null?void 0:m.find(function(f){return f.isActive});
if(b)return b.videoId})),p=E.next().value,U=E.next().value;
E=_.M(_.Py(!1,void 0,"rmRJ8d"));var x=E.next().value,A=E.next().value;return _.H("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.aC(function(){A(!0)}),
"on:mouseout":_.aC(function(){A(!1)})},_.H(_.w,{cond:function(){return t.data().sources},
then:function(m){return _.H(_.yG,{each:m},function(b){return _.H(Pyt,{data:b,active:function(){return b.videoId===p()},
setActiveSourceId:U,interacting:x,playerApi:t.playerApi,sourceVideoConfig:function(){return nj9(t.compositeVideoConfig(),b.videoId)}})})}}))},"ek");var $NJ=function(t){_.PQ.call(this);this.JSC$21323_watchApi=t;t=_.M(_.Py({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=t.next().value;this.setCompositeVideoOverlayRenderer=t.next().value;t=_.M(_.Py({},void 0,"OlaJpc"));this.compositeVideoConfig=t.next().value;this.setCompositeVideoConfig=t.next().value;oQe(this);WyJ(this)};
_.u($NJ,_.PQ);var oQe=function(t){var E=t.JSC$21323_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){WyJ(t)});
t.addOnDisposeCallback(function(){t.JSC$21323_watchApi.unsubscribeByKey(E)})},Kyt=function(t){var E;
return _.q(function(p){if(p.nextAddress==1)return p.yield(t.JSC$21323_watchApi.playerApi,2);E=p.yieldResult;E.setCompositeVideoOverlayRendererComponent(t.container);_.Do(p)})},vQt=function(t){var E;
return _.q(function(p){if(p.nextAddress==1)return p.yield(t.JSC$21323_watchApi.playerApi,2);E=p.yieldResult;E.setCompositeVideoOverlayRendererComponent(void 0);_.Do(p)})},ymL=function(t){var E,p;
return _.q(function(U){if(U.nextAddress==1)return U.yield(t.JSC$21323_watchApi.playerApi,2);E=U.yieldResult;t.container=document.createElement("div");p=_.UB(t.container,function(){return _.H(TRl,{data:t.compositeVideoOverlayRenderer,compositeVideoConfig:t.compositeVideoConfig,playerApi:E})},"fk");
t.addOnDisposeCallback(p);_.Do(U)})},WyJ=function(t){var E,p,U,x,A,m,b,f;
_.q(function(B){return B.nextAddress==1?(E=t.JSC$21323_watchApi.getPlayerResponse(),A=_.k((p=E)==null?void 0:(U=p.overlay)==null?void 0:(x=U.playerControlsOverlayRenderer)==null?void 0:x.compositeVideoOverlay,Gbd),f=(m=E)==null?void 0:(b=m.playerConfig)==null?void 0:b.compositeVideoConfig,A&&t.setCompositeVideoOverlayRenderer(A),f&&t.setCompositeVideoConfig(f),A&&f?t.container?B.jumpTo(6):B.yield(ymL(t),6):SsK(t)?B.yield(vQt(t),0):B.jumpTo(0)):SsK(t)?B.jumpTo(0):B.yield(Kyt(t),0)})},SsK=function(t){var E;
return!((E=t.container)==null||!E.parentElement)};
$NJ.prototype.disposeInternal=function(){SsK(this)&&vQt(this);_.PQ.prototype.disposeInternal.call(this)};var UrC=function(t){_.PQ.call(this);var E=this;this.JSC$21329_watchApi=t;var p=this.JSC$21329_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var U=E.JSC$21329_watchApi.getPlayerResponse();if(U){var x,A;if(U=_.k((x=U.endscreen)==null?void 0:(A=x.endscreenRenderer)==null?void 0:A.hideButton,_.rc)){var m;(m=E.setEndscreenHideButton)==null||m.call(E,U);cm5(E)}}});
this.addOnDisposeCallback(function(){E.JSC$21329_watchApi.unsubscribeByKey(p)});
t=_.M(_.Py({},void 0,"ER3tqb"));this.endscreenHideButton=t.next().value;this.setEndscreenHideButton=t.next().value;tnt(this);EKt(this);poL(this)};
_.u(UrC,_.PQ);var cm5=function(t){var E,p;_.q(function(U){if(U.nextAddress==1)return t.creatorEndscreenHideButtonContainer?U.return():U.yield(t.JSC$21329_watchApi.playerApi,2);E=U.yieldResult;t.creatorEndscreenHideButtonContainer=document.createElement("div");_.rV(t.creatorEndscreenHideButtonContainer,!1);E.setCreatorEndscreenHideButton(t.creatorEndscreenHideButtonContainer);p=_.UB(t.creatorEndscreenHideButtonContainer,function(){return _.H(_.m3,{data:t.endscreenHideButton,useOutlinedIcon:!0})},"gk");
t.addOnDisposeCallback(function(){p();var x;(x=E)==null||x.setCreatorEndscreenHideButton(void 0)});
_.Do(U)})},tnt=function(t){var E,p;
_.q(function(U){if(U.nextAddress==1)return U.yield(t.JSC$21329_watchApi.playerApi,2);E=U.yieldResult;p=function(){t.creatorEndscreenHideButtonContainer&&_.rV(t.creatorEndscreenHideButtonContainer,!0)};
E.addEventListener("endscreenelementshown",p);t.addOnDisposeCallback(function(){var x;(x=E)==null||x.removeEventListener("endscreenelementshown",p)});
_.Do(U)})},EKt=function(t){var E=function(){t.creatorEndscreenHideButtonContainer&&_.rV(t.creatorEndscreenHideButtonContainer,!1)},p=t.JSC$21329_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",E),U=t.JSC$21329_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",E);
t.addOnDisposeCallback(function(){t.JSC$21329_watchApi.unsubscribeByKey(p);t.JSC$21329_watchApi.unsubscribeByKey(U)})},poL=function(t){t.JSC$21329_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(E){var p=_.k(E,mSL);
t.JSC$21329_watchApi.playerApi.then(function(U){U==null||U.setCreatorEndscreenVisibility(!!p.hide)})});
t.addOnDisposeCallback(function(){t.JSC$21329_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};var A$L=function(t){_.PQ.call(this);this.JSC$21335_watchApi=t;xrl(this)};
_.u(A$L,_.PQ);var xrl=function(t){var E,p;_.q(function(U){if(U.nextAddress==1)return U.yield(t.JSC$21335_watchApi.playerApi,2);E=U.yieldResult;p=function(x){_.QM().dispatch(_.Jj({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:x}}))};
E.addEventListener("onRetroModeChanged",p);t.addOnDisposeCallback(function(){E.removeEventListener("onRetroModeChanged",p)});
_.Do(U)})};var WHo=0,V7=0,KHo=0;var Yot=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]),nY=function(t){_.PQ.call(this);this.JSC$21352_watchApi=t;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;Mn7(this)};
_.u(nY,_.PQ);
var Mn7=function(t){var E,p,U;_.q(function(x){if(x.nextAddress==1)return x.yield(t.JSC$21352_watchApi.playerApi,2);E=x.yieldResult;if(t.isDisposed())return x.return();t.sessionStorage=_.u38("yt-sleep-timer");t.sessionStorage||_.qW(new _.cC("SessionStorage for Sleep Timer is undefined."));((p=t.sessionStorage)==null?void 0:p.get("yt-sleep-timer"))==="true"&&(SXC(),(U=t.sessionStorage)==null||U.remove("yt-sleep-timer"),E.syncVolume());mrJ(t,E);bAt(t,E);iAC(t,E);_.Do(x)})},mrJ=function(t,E){var p=function(B){t.onSleepTimerSettingsChanged(B,
E)},U=function(B){t.onPlayerStateChange(B,E)},x=function(){t.onLoopChange(E)},A=function(){t.onCloseMiniplayer(E)},m=function(){ojC(E,(0,_.eu)(),ce5(E),t.selectedOption==="End of video",E.getPlayerState()!==1)},b=function(){t.onSeekComplete(E)},f=function(){_.ir.cancelJob(V7);
var B=E.getCurrentTime()>=E.getDuration(),R=t.selectedOption==="End of video"||t.selectedOption==="End of playlist"&&!LHt(t.playlistId);B&&R&&qoe(t,E)};
E.addEventListener("onSleepTimerSettingsChanged",p);E.addEventListener("onLoopChange",x);E.addEventListener("onLoopRangeChange",x);E.addEventListener("onStateChange",U);E.addEventListener("onCloseMiniplayer",A);E.addEventListener("onSleepTimerFeatureAvailable",m);E.addEventListener("SEEK_COMPLETE",b);E.addEventListener("onAdStart",f);t.addOnDisposeCallback(function(){E.removeEventListener("onSleepTimerSettingsChanged",p);E.removeEventListener("onLoopChange",x);E.removeEventListener("onLoopRangeChange",
x);E.removeEventListener("onStateChange",U);E.removeEventListener("onCloseMiniplayer",A);E.removeEventListener("onSleepTimerFeatureAvailable",m);E.removeEventListener("SEEK_COMPLETE",b);E.removeEventListener("onAdStart",f)})},bAt=function(t,E){var p=t.JSC$21352_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var U=E.getVideoData().video_id,x,A=(x=D68(t.JSC$21352_watchApi))==null?void 0:x.playlistId;
t.pauseAutonavPlayback&&(E.pauseVideo(),E.syncVolume(),t.pauseAutonavPlayback=!1);if(t.selectedOption==="End of video"&&U!==t.videoId)Na(t,E);else{if(t.selectedOption==="End of playlist"){x=LHt(t.playlistId);if(A!==t.playlistId){Na(t,E);break a}x?x&&HAl(t,E):f$t(t,E)}t.videoId=U;t.playlistId=A}}});
t.addOnDisposeCallback(function(){t.JSC$21352_watchApi.unsubscribeByKey(p)})},iAC=function(t,E){var p=_.X3().resolve(_.fS),U=_.EA(p,_.lF_,function(A){A&&t.selectedOption!=="Off"&&Na(t,E)}),x=t.JSC$21352_watchApi.subscribeToActiveChanged(function(A){var m,b;
return _.q(function(f){if(f.nextAddress==1)return f.yield(_.S3().navigationFinishPromise,2);m=!_.qVp();b=_.X3().resolve(_.bf).isMiniplayerActive();A||!NX7(t.selectedOption)||b||m||Na(t,E);_.Do(f)})},!1);
p=_.EA(p,function(A){return A.entities.playlistLoopStateEntity||{}},function(A){A=A===void 0?{}:A;
var m=sFb(t.JSC$21352_watchApi);if(m){var b;((b=A[m])==null?void 0:b.state)==="PLAYLIST_LOOP_STATE_ALL"&&NX7(t.selectedOption)&&Na(t,E)}});
t.addOnDisposeCallback(U);t.addOnDisposeCallback(p);t.addOnDisposeCallback(x)};
nY.prototype.onSleepTimerSettingsChanged=function(t,E){switch(t){case "Off":this.selectedOption!=="Off"&&Na(this,E);break;case "End of video":case "End of playlist":BUt(this,t,E);break;default:BUt(this,t,E,Yot.get(t))}};
nY.prototype.onLoopChange=function(t){(t.getLoopVideo()||t.getLoopRange())&&NX7(this.selectedOption)&&Na(this,t)};
nY.prototype.onCloseMiniplayer=function(t){NX7(this.selectedOption)&&Na(this,t)};
var BUt=function(t,E,p,U){wot(t,p);t.selectedOption=E;t.videoId=p.getVideoData().video_id;t.playlistId="";var x;(x=t.sessionStorage)==null||x.set("yt-sleep-timer","true");t.adjustmentsCount++;ojC(p,(0,_.eu)(),ce5(p),t.selectedOption==="End of video");if(t.selectedOption==="End of video")f$t(t,p),R35(t,p);else if(t.selectedOption==="End of playlist"){R35(t,p);var A,m;t.playlistId=(m=(A=D68(t.JSC$21352_watchApi))==null?void 0:A.playlistId)!=null?m:"";LHt(t.playlistId)||f$t(t,p)}else U&&(t.presetFadeSchedulerId=
_.W9(_.ir,function(){vjC(p,15E3)},U-15E3),t.presetPauseSchedulerId=_.W9(_.ir,function(){qoe(t,p)},U),$67(p,(0,_.eu)(),U))},qoe=function(t,E){if(t.JSC$21352_watchApi.isActive()){var p={dismissDialogEndpoint:{}};
var U={commandExecutorCommand:{commands:[p,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};p={buttonViewModel:{title:_.zF("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:p}}};U={buttonViewModel:{title:_.zF("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:U}}};var x={dialogHeaderViewModel:{headline:{content:_.zF("SLEEP_TIMER_ENDED_TITLE")}}},
A={basicContentViewModel:{paragraphs:[{text:{content:_.zF("SLEEP_TIMER_ENDED_TEXT")}}]}};p={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:x,content:A,footer:{panelFooterViewModel:{primaryButton:p,secondaryButton:U,shouldHideDivider:!0}}}}}}};_.X3().resolve(_.ei).resolveCommand(p,{form:{element:t}})}else SXC();VnL(t,!1);QH7(t,E);E.pauseVideo();_.e3.getInstance().getState()===2&&E.getPlayerState()===5&&(t.pauseAutonavPlayback=!0)},Na=function(t,E){VnL(t,!0);
QH7(t,E);SXC()},QH7=function(t,E){wot(t,E);
t.selectedOption="Off";t.videoId="";t.playlistId="";t.adjustmentsCount=0;var p;(p=t.sessionStorage)==null||p.remove("yt-sleep-timer");_.ir.cancelJob(WHo);E.resetSleepTimerMenuSettings()},VnL=function(t,E){E={timer_length_adjustment_times_during_session:t.adjustmentsCount-1,
is_session_cancelled:E};switch(t.selectedOption){case "Off":E.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":E.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":E.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:E.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",E.option_duration_in_minutes=Yot.get(t.selectedOption)/6E4}_.MW("sleepTimerSessionFinishEvent",E)};
nY.prototype.onPlayerStateChange=function(t,E){t===1?ojC(E,(0,_.eu)(),ce5(E),this.selectedOption==="End of video"):t===0?(_.ir.cancelJob(V7),E.setVideoTimeLeft(TXb(0,0))):t===2&&_.ir.cancelJob(V7);this.selectedOption==="End of video"?t===0?qoe(this,E):t===2&&yed(E):this.selectedOption!=="End of playlist"||LHt(this.playlistId)||(t===0?qoe(this,E):t===2&&yed(E))};
nY.prototype.onSeekComplete=function(t){t.getPlayerState()===2&&ojC(t,(0,_.eu)(),ce5(t),this.selectedOption==="End of video",!0)};
nY.prototype.onCueRangeEnter=function(t,E){t==="sleep-timer-fade-audio"&&vjC(E,(E.getDuration()-E.getProgressState().current)*1E3)};
nY.prototype.onCueRangeExit=function(t,E){t==="sleep-timer-fade-audio"&&E.getPlayerState()!==0&&yed(E,!0)};
var f$t=function(t,E){E.addCueRange("sleep-timer-fade-audio",E.getDuration()-15,E.getDuration());E.addEventListener("onCueRangeEnter",function(p){t.onCueRangeEnter(p,E)});
E.addEventListener("onCueRangeExit",function(p){t.onCueRangeExit(p,E)})},HAl=function(t,E){E.removeCueRange("sleep-timer-fade-audio");
E.removeEventListener("onCueRangeEnter",function(p){t.onCueRangeEnter(p,E)});
E.removeEventListener("onCueRangeExit",function(p){t.onCueRangeExit(p,E)})},wot=function(t,E){NX7(t.selectedOption)?HAl(t,E):(_.ir.cancelJob(t.presetPauseSchedulerId),_.ir.cancelJob(t.presetFadeSchedulerId),t.presetPauseSchedulerId=0,t.presetFadeSchedulerId=0);
yed(E,!0)},R35=function(t,E){E.setLoop(!1);
E.setLoopVideo(!1);E.setLoopRange(null);(t=sFb(t.JSC$21352_watchApi))&&_.X3().resolve(_.fS).dispatch(_.P9("playlistLoopStateEntity",t,{key:t,state:"PLAYLIST_LOOP_STATE_NONE"}))};var drb=function(t){_.PQ.call(this);var E=this;this.JSC$21355_watchApi=t;_.r("web_watch_force_start_in_theater_mode")&&C_9(this,!0,!1);jHd(this);r$8(this);kyg(this);var p=this.JSC$21355_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.z3("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.$a.get("wide",void 0)==="1"&&_.KR("wide","1",_.z3("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){E.JSC$21355_watchApi.unsubscribeByKey(p)});
t=t.getRoot();if(t.is==="ytd-watch-flexy"||t.is==="ytd-watch-grid")t.onTheaterReduxValueUpdate(this.getState());this.getState()&&oTJ();_.r("web_watch_log_theater_mode_cookie_state")&&_.$a.get("wide","0")==="1"&&_.Ysj("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.u(drb,_.PQ);var jHd=function(t){var E,p;_.q(function(U){if(U.nextAddress==1)return U.yield(t.JSC$21355_watchApi.playerApi,2);E=U.yieldResult;p=function(x){C_9(t,!!x)};
E.addEventListener("SIZE_CLICKED",p);t.addOnDisposeCallback(function(){E.removeEventListener("SIZE_CLICKED",p)});
_.Do(U)})},r$8=function(t){t.JSC$21355_watchApi.registerActionHandler("yt-toggle-theater-mode",function(E,p){C_9(t,E,p===void 0?!0:p)});
t.addOnDisposeCallback(function(){t.JSC$21355_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
drb.prototype.getState=function(){return _.t8(_.QM().getState())};
var C_9=function(t,E,p){p=p===void 0?!0:p;var U,x,A,m=_.r("enable_player_resize_transition")&&!!t.JSC$21355_watchApi.getWatchNextResponse()&&!((U=t.JSC$21355_watchApi.getWatchNextResponse())==null?0:(x=U.contents)==null?0:(A=x.twoColumnWatchNextResults)==null?0:A.conversationBar);nXt(function(){_.QM().dispatch(_.Jj({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:E}}));_.r("theater_mode_scroll_to_top_killswitch")||t.JSC$21355_watchApi.scrollWatchTo(0,!1);_.QS()&&_.r("external_fullscreen")&&_.CF(document.documentElement);
kyg(t);p&&_.KR("wide",E?"1":"0",_.z3("theater_mode_cookie_max_age_seconds",-1));_.du(t.JSC$21355_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);t.JSC$21355_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:E});E&&oTJ()},{shouldWrap:m})},kyg=function(t){var E;
_.q(function(p){if(p.nextAddress==1)return p.yield(t.JSC$21355_watchApi.playerApi,2);E=p.yieldResult;E.setSizeStyle(!0,t.getState());_.Do(p)})};var I$C=function(t){_.PQ.call(this);var E=this;this.playerApi=t;this.timeToPanelSyncKeyMap={};var p;if(t==null?0:(p=t.isReady)==null?0:p.call(t)){p=_.EA(_.X3().resolve(_.fS),function(x){return x.entities.timedMarkersListSyncEntity||{}},function(x,A){x=x===void 0?{}:x;
A=A===void 0?{}:A;for(var m=_.M(Object.keys(A)),b=m.next();!b.done;b=m.next())b=b.value,x[b]!==A[b]&&uTd(E,A[b]);A=_.M(Object.keys(x));for(m=A.next();!m.done;m=A.next())m=m.value,b=x[m],E.timeToPanelSyncKeyMap[m]&&J$g(E,b)});
this.addOnDisposeCallback(p);var U=function(x){E.onCueRangeEnter(x)};
t.addEventListener("onCueRangeEnter",U);this.addOnDisposeCallback(function(){var x;(x=t.removeEventListener)==null||x.call(t,"onCueRangeEnter",U)})}};
_.u(I$C,_.PQ);
var J$g=function(t,E){var p,U;if((p=t.playerApi)==null?0:(U=p.isReady)==null?0:U.call(p)){var x;if((p=E==null?void 0:(x=E.timedListData)==null?void 0:x.sections)&&E!=null&&E.key)for(x=_.M(p),p=x.next();!p.done;p=x.next())if(p=p.value,p.timedSyncDataList&&p.sectionId)for(U=0;U<p.timedSyncDataList.length;U++){var A=p.timedSyncDataList[U];A.syncItemId&&t.playerApi.addCueRange(p.sectionId+"_"+E.key+"_"+A.syncItemId,Number(A.videoTimeMs)/1E3,U===p.timedSyncDataList.length-1?0x8000000000000:Number(p.timedSyncDataList[U+
1].videoTimeMs)/1E3)}}},uTd=function(t,E){var p,U;
if((p=t.playerApi)==null?0:(U=p.isReady)==null?0:U.call(p)){var x;if((p=E==null?void 0:(x=E.timedListData)==null?void 0:x.sections)&&E!=null&&E.key)for(x=_.M(p),p=x.next();!p.done;p=x.next())if(p=p.value,p.timedSyncDataList&&p.sectionId){U=_.M(p.timedSyncDataList);for(var A=U.next();!A.done;A=U.next())A=A.value,A.syncItemId&&t.playerApi.removeCueRange(p.sectionId+"_"+E.key+"_"+A.syncItemId)}}};
I$C.prototype.onCueRangeEnter=function(t){for(var E=_.M(Object.keys(this.timeToPanelSyncKeyMap)),p=E.next();!p.done;p=E.next()){p=p.value;var U=_.M(t.split("_"+p+"_")),x=U.next().value;U=U.next().value;if(x&&U){t=_.X3().resolve(_.fS);E=this.timeToPanelSyncKeyMap[p];var A=_.$10(t.getState(),E);p=gKl(p,x,U);if(p===-1)break;p={activeSyncId:U,activeItemIndex:p,activeSectionInfo:{sectionIdentifier:x}};A?t.dispatch(_.pr("markersEngagementPanelSyncEntity",E,p)):t.dispatch(_.P9("markersEngagementPanelSyncEntity",
E,Object.assign({},{key:E},p)));break}}};
var gKl=function(t,E,p){var U=_.X3().resolve(_.fS),x,A;t=(x=gTt(U.getState(),t))==null?void 0:(A=x.timedListData)==null?void 0:A.sections;if(!t)return-1;x=0;A=_.M(t);for(t=A.next();!t.done;t=A.next()){t=t.value;U=t.timedSyncDataList||[];if(t.sectionId===E)return E=U.findIndex(function(m){return m.syncItemId===p}),E===-1?E:x+E;
x+=U.length}return-1};var Xo5=function(t){_.PQ.call(this);var E=this;this.JSC$21369_watchApi=t;this.unresolvedCommands=[];this.JSC$21369_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(p){ZA7(E,p)});
this.addOnDisposeCallback(function(){E.JSC$21369_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
OAJ(this)};
_.u(Xo5,_.PQ);var OAJ=function(t){var E;_.q(function(p){if(p.nextAddress==1)return p.yield(t.JSC$21369_watchApi.playerApi,2);E=p.yieldResult;if(t.isDisposed())return p.return();t.timedSyncObserver=new I$C(E);t.unresolvedCommands.length&&(t.unresolvedCommands.forEach(function(U){return ZA7(t,U)}),t.unresolvedCommands=[]);
_.ed(t,t.timedSyncObserver);_.Do(p)})},ZA7=function(t,E){if(t.timedSyncObserver){var p=_.k(E,fCC);
if(p&&p.timedSyncEntityKey&&p.panelSyncEntityKey){t=t.timedSyncObserver;E=p.timedSyncEntityKey;var U=p.panelSyncEntityKey;p=!!p.isEnabled;p=p===void 0?!0:p;var x=_.X3().resolve(_.fS);x=gTt(x.getState(),E);p?t.timeToPanelSyncKeyMap[E]||(t.timeToPanelSyncKeyMap[E]=U,J$g(t,x)):(delete t.timeToPanelSyncKeyMap[E],uTd(t,x))}}else t.unresolvedCommands.push(E)};var h3J=_.l(function(t){var E=t.data,p=t.maybeLogSmartSkipClientData,U=null,x=null,A=_.r("web_enable_auto_focus_for_timely_action_button"),m=function(){U=document.activeElement},b=function(){E().smartSkipMetadata&&(U=document.activeElement,yHt(function(){return x}))},f=function(R){if(E().smartSkipMetadata&&(!R||R.key!=="Enter")){U&&U.isConnected&&(yHt(function(){return U}),U=null);
var V;(V=x)==null||V.blur()}};
t=_.aC(function(){p==null||p(!0,E());return!1});
var B=_.V9(_.EX(function(){return E().rendererContext},{onTap:function(R,V){V({disableClickTracking:!0})}}),_.az({visibilityCallback:function(R){if(A)R?x&&E().smartSkipMetadata&&(b(),document.addEventListener("focusin",m)):(document.removeEventListener("focusin",m),f());
else if(R){R=_.c9(E().rendererContext);var V=Number(E().maxVisibleDurationMilliseconds),Q,C=(Q=_.k(E().rendererContext,_.PY))==null?void 0:Q.label;R&&V&&C&&(Q={label:C,command:R,durationMs:V},_.X3().resolve(_.Xg).enqueue(Q))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.xa(function(){if(A){var R;if((x=(R=B.value)==null?void 0:R.querySelector("button"))&&E().smartSkipMetadata){var V;(V=B.value)==null||V.addEventListener("keydown",f)}}});
_.iK(function(){A&&(x&&E().smartSkipMetadata&&x.removeEventListener("keydown",f),document.removeEventListener("focusin",m),f())});
return _.H("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:B,"on:click":t},_.H(_.sY,{data:function(){return E().content}},{buttonViewModel:_.D5}))},"ik");var a$L=_.l(function(t){var E=t.data,p=t.playerApi,U=_.X3().resolve(_.shK);t=_.M(_.j5(function(){E()}));
var x=t.next().value,A=t.next().value,m=function(){return pSo(E(),x())},b=function(B,R){var V,Q,C=(V=_.k(R==null?void 0:R.rendererContext,_.Th))==null?void 0:(Q=V.loggingDirectives)==null?void 0:Q.trackingParams;
if((R=R==null?void 0:R.smartSkipMetadata)&&R.loggingData&&(Q=R.loggingData,R=Q.algorithmId,V=Q.startMilliseconds,Q=Q.endMilliseconds,R&&V!==void 0&&Q!==void 0)){var d,I;B={smartSkipData:Object.assign({},{versionName:R,startMediaTimeMs:V,endMediaTimeMs:Q},B&&{userInteractionMediaTimeMs:(Math.floor(((d=_.k1())==null?void 0:(I=d.getPlayer())==null?void 0:I.getCurrentTime())||0)*1E3).toString()})};d=_.yL();var O;C&&(O=_.$8(C));d&&O&&_.fb(d,O,B)}},f=function(B,R){var V=pSo(E(),B);
if(V){var Q=_.k(V,Eul),C;if(C=R)C=p(),V=_.k(V,Eul),C=V!=null&&V.smartSkipMetadata?!(C==null?0:C.isSameMarkerTypeVisible((V==null?void 0:V.smartSkipMetadata.markerKey)||"")):!0;if(C){var d,I;(Q==null?0:(d=Q.smartSkipMetadata)==null?0:(I=d.loggingData)==null?0:I.isCounterfactual)||(b(!1,Q),A(B))}else R||x()!==B||A(void 0)}};
_.M$(function(){var B=E().timelyActions;if(B){B=_.M(B);for(var R=B.next();!R.done;R=B.next()){R=_.k(R.value,Eul);var V=void 0;(V=R)!=null&&V.cueRangeId&&U.timelyActionsMap.set(R.cueRangeId,f)}_.iK(function(){U.timelyActionsMap.clear()})}},"l2RtC");
return _.H("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.H(_.sY,{data:m},{timelyActionViewModel:function(B){return _.H(h3J,{data:B.data,maybeLogSmartSkipClientData:function(){b(!0,_.k(m(),Eul))}})}}))},"kk");var Fc5=function(t){_.PQ.call(this);this.JSC$21382_watchApi=t;t=_.M(_.Py({},void 0,"UN7k5e"));this.timelyActionsOverlay=t.next().value;this.setTimelyActionsOverlay=t.next().value;e3t(this)};
_.u(Fc5,_.PQ);var e3t=function(t){var E,p,U,x;_.q(function(A){if(A.nextAddress==1)return z3l(t),l$g(t),t.timelyActionsContainer=document.createElement("div"),A.yield(t.JSC$21382_watchApi.playerApi,2);E=A.yieldResult;(U=(p=E).insertTimelyActionUi)==null||U.call(p,t.timelyActionsContainer);x=_.UB(t.timelyActionsContainer,function(){return _.H(a$L,{data:t.timelyActionsOverlay,playerApi:E})},"lk");
t.addOnDisposeCallback(x);_.Do(A)})},l$g=function(t){var E=t.JSC$21382_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){z3l(t)});
t.addOnDisposeCallback(function(){t.JSC$21382_watchApi.unsubscribeByKey(E)})},z3l=function(t){var E=t.JSC$21382_watchApi.getWatchNextResponse();
if(E){var p,U;if(E=_.k((p=E.playerOverlays)==null?void 0:(U=p.playerOverlayRenderer)==null?void 0:U.timelyActionsOverlayViewModel,Rpg)){var x;(x=t.setTimelyActionsOverlay)==null||x.call(t,E)}}};var nKL=function(t){_.PQ.call(this);this.JSC$21386_watchApi=t;Gyl(this)};
_.u(nKL,_.PQ);var Gyl=function(t){var E,p;_.q(function(U){if(U.nextAddress==1)return U.yield(t.JSC$21386_watchApi.playerApi,2);E=U.yieldResult;p=function(x){_.Gh.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.k(x,IC7)},popupType:"TOAST"}})};
E.addEventListener("onYtShowToast",p);t.addOnDisposeCallback(function(){E.removeEventListener("onYtShowToast",p)});
_.Do(U)})};var NUg=function(t){var E=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.hf;this.element.addEventListener("load",function(){E.loaded=!0;E.resolver.resolve(E.element)});
this.element.addEventListener("error",function(){E.failed=!0});
this.element.src=t};var DrK=function(t,E){this.image=t;this.frame=E};
DrK.prototype.drawToCanvas=function(t,E){var p=this.frame.width/this.frame.columns,U=this.frame.height/this.frame.rows,x=E.offsetX,A=E.offsetY;UMC(E)?(t.fillStyle=E.fullscreen?"#000":"#0f0f0f",t.fillRect(x,A,(E==null?void 0:E.width)||p,(E==null?void 0:E.height)||U)):t.drawImage(this.image,this.frame.column*p,this.frame.row*U,p,U,x,A,(E==null?void 0:E.width)||p,(E==null?void 0:E.height)||U)};
var sH7=function(t){this.color=t};
sH7.prototype.drawToCanvas=function(t,E){var p=E.offsetX,U=E.offsetY,x=E.width,A=E.height;t.fillStyle=UMC(E)?E.fullscreen?"#000":"#0f0f0f":this.color;t.fillRect(p,U,x,A)};var DQ=function(t,E){L8.call(this);this.playerApi=E;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.nq(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();Lcl(this,t);P_d(this);this.update()};
_.u(DQ,L8);DQ.prototype.addEventListeners=function(){var t=this,E=function(){t.update()},p=function(x){t.paused||(x.type==="newdata"&&(t.mosaics.clear(),TUg(t),sE(t)),P_d(t),t.update())},U=function(){t.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",E);this.playerApi.addEventListener("onVideoDataChange",p);this.playerApi.addEventListener("onStateChange",U);this.addOnDisposeCallback(function(){t.playerApi.removeEventListener("onVideoProgress",E);t.playerApi.removeEventListener("onVideoDataChange",p);t.playerApi.removeEventListener("onStateChange",U)})};
var Lcl=function(t,E){t.cinematicContainerRenderer!==E&&(t.cinematicContainerRenderer=E,TUg(t),sE(t),t.colorStoreUpdateJobId=_.ir.addLowPriorityJob(function(){var p;if((p=t.cinematicContainerRenderer.colorStore)!=null&&p.sampledColors){p=Infinity;for(var U=_.M(t.cinematicContainerRenderer.colorStore.sampledColors),x=U.next();!x.done;x=U.next()){x=x.value;var A=Number(x.key);A!==0&&A<p&&(p=A);A=_.cL(x.value);t.colorStore.set(x.key,A)}t.colorStoreTimeInterval=p}}))},TUg=function(t){t.colorStoreUpdateJobId&&
(_.ir.cancelJob(t.colorStoreUpdateJobId),t.colorStoreUpdateJobId=void 0);
t.colorStore.clear();t.currentStoryboardColor=void 0},oKL=function(t,E){var p;
return(p=t.getStoryboardFrame(E))==null?void 0:p.url};
DQ.prototype.onPlayerStateChange=function(){this.update()};
DQ.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var P_d=function(t){var E=t.getStoryboardFrame(0);E&&(E=new _.nq(E.width/E.columns,E.height/E.rows),e_C(t.currentStoryboardSize,E)||(t.currentStoryboardSize=E,t.publish("STORYBOARD_SIZE_CHANGED",t.currentStoryboardSize)))},Wct=function(t,E){t.currentStoryboardIndex=E;
t.pendingStoryboardIndex=NaN;E=t.getStoryboardFrame(t.currentStoryboardIndex);t.currentStoryboard=new DrK(t.mosaics.get(E.url).element,E);t.publish("STORYBOARD_CHANGED",t.currentStoryboard);t.lastUpdateTime=(0,_.eu)()};
DQ.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var sE=function(t){t.currentStoryboardIndex=NaN;t.pendingStoryboardIndex=NaN;t.currentStoryboard&&(t.currentStoryboard=void 0,t.publish("STORYBOARD_CHANGED",void 0));t.lastUpdateTime=NaN};
DQ.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)sE(this);else{var t=this.playerApi.getPlayerState(1);if(t===-1||t===5||t===0)sE(this);else if(isNaN(this.lastUpdateTime)||!((0,_.eu)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(t=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){t=""+Math.round(t*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var E=this.colorStore.get(t);E?E!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=E,this.currentStoryboard=new sH7(E),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.eu)()):(_.qW(new _.cC("Could not find color for timestamp: "+t,this.cinematicContainerRenderer)),sE(this))}else sE(this);else $rb(this,t)}};
var $rb=function(t,E){var p=t.getStoryboardFrameIndex(E);if(p!==t.currentStoryboardIndex&&p!==t.pendingStoryboardIndex){E=oKL(t,p);var U=t.mosaics.get(E);U?U.loaded&&Wct(t,p):(t.pendingStoryboardIndex=p,p=new NUg(E),t.mosaics.set(E,p),p.resolver.promise.then(function(){if(!t.isDisposed()&&!t.paused&&!isNaN(t.pendingStoryboardIndex)){var x=oKL(t,t.pendingStoryboardIndex);if(x){var A;(A=t.mosaics.get(x))!=null&&A.loaded&&Wct(t,t.pendingStoryboardIndex)}else sE(t)}}))}};
DQ.prototype.getStoryboardFrameIndex=function(t){var E=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(t,E)};
DQ.prototype.getStoryboardFrame=function(t){var E=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,p,U;return((U=(p=this.playerApi).getStoryboardFrame)==null?void 0:U.call(p,t,E))||null};
DQ.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var Pj=function(t,E,p,U){U=U===void 0?!1:U;_.PQ.call(this);this.cinematicContainerRenderer=E;this.playerApi=p;this.theater=this.fullscreen=!1;var x;this.ambientLightThemeEnabled=!U&&!!(E==null?0:(x=E.config)==null?0:x.enableInLightTheme);this.ambientTheaterModeEnabled=(this.ambientFullscreenEnabled=U)&&!0;this.container=document.createElement("div");t.appendChild(this.container);this.innerContainer=document.createElement("div");this.container.appendChild(this.innerContainer);Kc7(this);this.backCanvas=
xMg();this.frontCanvas=xMg();this.innerContainer.appendChild(this.backCanvas.element);this.innerContainer.appendChild(this.frontCanvas.element);this.storyboardManager=new DQ(E,this.playerApi);_.ed(this,this.storyboardManager);this.addEventListeners();vK5(this)?y$J(this,100+LY(this)*3*2,100+LY(this)*3*2):Soo(this);c$l(this,this.storyboardManager.currentStoryboard)};
_.u(Pj,_.PQ);
var Kc7=function(t){var E=t.playerApi.getVideoAspectRatio();_.Bf(t.container,{"aspect-ratio":""+E,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});var p;var U;if((t.fullscreen||t.theater)&&((p=t.cinematicContainerRenderer.config)==null?0:(U=p.watchFullscreenConfig)==null?0:U.colorSourceWidthMultiplier))p=t.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;else{var x;p=(x=
t.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?x:t.cinematicContainerRenderer.config.colorSourceSizeMultiplier}var A,m;if((t.fullscreen||t.theater)&&((A=t.cinematicContainerRenderer.config)==null?0:(m=A.watchFullscreenConfig)==null?0:m.colorSourceHeightMultiplier))x=t.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;else{var b;x=(b=t.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?b:t.cinematicContainerRenderer.config.colorSourceSizeMultiplier}_.Bf(t.innerContainer,
{"aspect-ratio":""+E,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+p+", "+x+")"});ANt()&&_.Bf(t.innerContainer,"filter","blur("+_.z3("cinematic_watch_css_filter_blur_strength",40)+"px)")};
Pj.prototype.setFullscreen=function(t,E){this.fullscreen=t;this.theater=!!E;Kc7(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),t=this.storyboardManager.currentStoryboard,t0o(this),t&&EUo(this,t)};
Pj.prototype.addEventListeners=function(){var t=this,E=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(x){c$l(t,x)}),p=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){Soo(t)});
this.addOnDisposeCallback(function(){t.storyboardManager.unsubscribeByKey(E);t.storyboardManager.unsubscribeByKey(p)});
var U=function(){Kc7(t)};
this.playerApi.addEventListener("onVideoDataChange",U);this.addOnDisposeCallback(function(){t.playerApi.removeEventListener("onVideoDataChange",U)})};
var Soo=function(t){if(!vK5(t)){var E=t.storyboardManager.currentStoryboardSize;isNaN(E.width)||isNaN(E.height)||y$J(t,Number(E.width)+LY(t)*3*2,Number(E.height)+LY(t)*3*2)}},y$J=function(t,E,p){t.backCanvas.element.width=E;
t.backCanvas.element.height=p;t.frontCanvas.element.width=E;t.frontCanvas.element.height=p},vK5=function(t){return t.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},c$l=function(t,E,p){p=p===void 0?!1:p;
var U=t.frontCanvas.element.getAnimations()[0];U?(U.pause(),t.backCanvas.context.globalAlpha=Number(getComputedStyle(t.frontCanvas.element).opacity),t.frontCanvas.element.style.opacity="0",U.finish()):t.backCanvas.context.globalAlpha=1;t.backCanvas.context.drawImage(t.frontCanvas.element,0,0,t.backCanvas.element.width,t.backCanvas.element.height);t0o(t);E&&EUo(t,E);E=E?t.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.z3("cinematic_watch_fade_out_duration",500);U=_.z3("cinematic_watch_transition_frame_rate")/
1E3;var x={};U&&(x={easing:"steps("+Math.round(E*U)+")"});(p===void 0?0:p)||t.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:E,iterations:1},x));t.frontCanvas.element.style.opacity="1"},t0o=function(t){var E=t.ambientLightThemeEnabled||t.ambientTheaterModeEnabled,p=t.ambientLightThemeEnabled||t.ambientFullscreenEnabled;
t.frontCanvas.context.fillStyle=t.theater&&E||t.fullscreen&&p?"#000":"#0f0f0f";ANt()||(t.frontCanvas.context.filter="blur(0)");t.frontCanvas.context.fillRect(0,0,t.frontCanvas.element.width,t.frontCanvas.element.height)},EUo=function(t,E){ANt()||(t.frontCanvas.context.filter="blur("+LY(t)+"px)");
t.frontCanvas.context.globalAlpha=t.fullscreen&&t.ambientFullscreenEnabled||t.theater&&t.ambientTheaterModeEnabled?_.z3("cinematic_watch_effect_letterbox_opacity",.4):_.z3("cinematic_watch_effect_opacity",.4);var p={offsetX:LY(t)*3,offsetY:LY(t)*3,theater:t.theater,fullscreen:t.fullscreen};vK5(t)&&(p.width=100,p.height=100);E.drawToCanvas(t.frontCanvas.context,p);t.frontCanvas.context.globalAlpha=1},LY=function(t){var E;
return(E=t.cinematicContainerRenderer.config.blurStrength)!=null?E:5};
Pj.prototype.disposeInternal=function(){_.PQ.prototype.disposeInternal.call(this);this.container.remove()};
Pj.prototype.clear=function(){c$l(this,void 0,!0)};
Pj.prototype.pause=function(){this.storyboardManager.pause()};var pPJ=_.cq(function(){var t,E,p=!((E=(t=document.createElement("canvas")).getContext)==null||!E.call(t,"2d")),U;t=!((U=CSS)==null||!U.supports("filter: blur(0)"));U=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var x;return p&&t&&U&&!((x=CSS)==null||!x.supports("aspect-ratio: 1 / 1"))}),Ti=function(t,E){L8.call(this);
this.container=t;this.playerApi=E;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=Utb(this);this.update()};
_.u(Ti,L8);var xtb=function(t){var E=document.documentElement.hasAttribute("dark");t.isDarkModeEnabled=E;t.update()},Aq9=function(t,E){t.settingEnabled=E;
t.update()};
Ti.prototype.setFullscreen=function(t,E){this.fullscreen=t;this.theater=!!E;this.update()};
var YDK=function(t,E){t.cinematicContainerRenderer=E;t.cinematicContainerRenderer&&(t.cinematicsVe=_.h8(t.isShorts()?227858:159022),_.Tw(_.Pu(),t.cinematicsVe),t.loggingClientData={watchCinematicContainerData:{presentationStyle:t.cinematicContainerRenderer.presentationStyle}});t.update()};
Ti.prototype.isShorts=function(){var t,E;return((t=this.cinematicContainerRenderer)==null?void 0:(E=t.config)==null?void 0:E.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
Ti.prototype.isAllowed=function(){var t;if(t=pPJ()){var E,p,U;t=((p=this.cinematicContainerRenderer)==null?void 0:p.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((U=this.cinematicContainerRenderer)==null||!U.colorStore)||((E=this.cinematicContainerRenderer)==null?void 0:E.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(t)if(_.r("web_cinematics_pausing")){var x,A;t=this.isDarkModeEnabled||!!((x=this.cinematicContainerRenderer)==
null?0:(A=x.config)==null?0:A.enableInLightTheme)}else{var m,b;x=!!((m=this.cinematicContainerRenderer)==null?0:(b=m.config)==null?0:b.enableInLightTheme)&&(_.qO("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);t=this.isDarkModeEnabled||x}if(m=t){var f,B;m=!((B=(f=this.prefersReducedMotionQuery)==null?void 0:f.matches)!=null&&B)}return m};
var M09=function(t){var E;(E=t.currentCinematicEffect)==null||E.clear()},mt8=function(t){var E;
(E=t.currentCinematicEffect)==null||E.pause()},b2d=function(t){(t=t.currentCinematicEffect)!=null&&(t=t.storyboardManager,t.paused=!1,P_d(t),t.update())};
Ti.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var Utb=function(t){if(!_.r("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var E=window.matchMedia("(prefers-reduced-motion: reduce)"),p=function(){t.update()};
E.addListener(p);t.addOnDisposeCallback(function(){E.removeListener(p)});
return E}};
Ti.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var t=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new Pj(this.container,t,this.playerApi,this.isDarkModeEnabled),_.ed(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var E=this.currentCinematicEffect;E.cinematicContainerRenderer!==
t&&(E.cinematicContainerRenderer=t,Lcl(E.storyboardManager,t),Kc7(E));t=_.nF();_.N_(0,194,!0);t.save();t=_.yL();this.cinematicsVe&&t&&_.bU(t,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(t=_.yL(),this.cinematicsVe&&t&&_.iU(t,[this.cinematicsVe],!1,this.loggingClientData),_.wi(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.aE.Object.defineProperties(Ti.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var i27=!1,BAg=function(t){_.PQ.call(this);this.JSC$21419_watchApi=t;this.fullscreen=this.theater=!1;qDo(this);H2t(this);fue(this)};
_.u(BAg,_.PQ);var fue=function(t){var E,p,U;_.q(function(x){if(x.nextAddress==1)return x.yield(t.JSC$21419_watchApi.playerApi,2);E=x.yieldResult;if(t.isDisposed())return x.return();p=t.JSC$21419_watchApi.getElement("CINEMATICS");if(!p)return x.return();t.JSC$21419_cinematicController=new Ti(p,E);_.ed(t,t.JSC$21419_cinematicController);xtb(t.JSC$21419_cinematicController);wP9(t,_.hGi());U=t.JSC$21419_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(A){RPd(t,A)});
t.addOnDisposeCallback(function(){t.JSC$21419_watchApi.unsubscribeByKey(U)});
V0g(t);RPd(t,t.JSC$21419_cinematicController.isAllowed());Q95(t);C$C(t);_.Do(x)})},Q95=function(t){t.fullscreen=_.EY(_.QM().getState());
t.theater=_.t8(_.QM().getState());j9t(t,t.fullscreen,t.theater);var E=_.EA(_.QM(),_.EY,function(U){t.fullscreen=U;j9t(t,t.fullscreen,t.theater)}),p=_.EA(_.QM(),_.t8,function(U){t.theater=U;
j9t(t,t.fullscreen,t.theater)});
t.addOnDisposeCallback(E);t.addOnDisposeCallback(p)},qDo=function(t){var E=t.JSC$21419_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){V0g(t)});
t.addOnDisposeCallback(function(){t.JSC$21419_watchApi.unsubscribeByKey(E)})},H2t=function(t){var E,p;
_.q(function(U){if(U.nextAddress==1)return U.yield(t.JSC$21419_watchApi.playerApi,2);E=U.yieldResult;p=function(x){wP9(t,x)};
E.addEventListener("cinematicSettingsToggleChange",p);t.addOnDisposeCallback(function(){E.removeEventListener("cinematicSettingsToggleChange",p)});
_.Do(U)})},V0g=function(t){var E=t.JSC$21419_watchApi.getWatchNextResponse(),p;
E=_.k(E==null?void 0:(p=E.pageVisualEffects)==null?void 0:p[0],hP);var U;(U=t.JSC$21419_cinematicController)==null||YDK(U,E)},wP9=function(t,E){var p;
(p=t.JSC$21419_cinematicController)==null||Aq9(p,E);rqK(t)},RPd=function(t,E){var p;
_.q(function(U){if(U.nextAddress==1)return _.r("kevlar_watch_cinematics_invisible")&&(E=!1),U.yield(t.JSC$21419_watchApi.playerApi,2);p=U.yieldResult;p.updateCinematicSettings(E);rqK(t);_.Do(U)})},C$C=function(t){var E=_.nF();
if(_.r("kevlar_measure_ambient_mode_idle")&&!E.getFlag(192)&&!i27){i27=!0;var p=_.E_(_.ir,function(){_.X3().resolve(_.k3t).start(1E4)},5E3);
t.addOnDisposeCallback(function(){_.ir.cancelJob(p);_.X3().resolve(_.k3t).stop()})}},j9t=function(t,E,p){t.fullscreen=E;
t.theater=p;var U;(U=t.JSC$21419_cinematicController)==null||U.setFullscreen(t.fullscreen,t.theater);if(_.r("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(t.theater||t.fullscreen){var x;(x=t.JSC$21419_cinematicController)==null||b2d(x)}else{var A;(A=t.JSC$21419_cinematicController)==null||mt8(A)}},rqK=function(t){var E;
t.JSC$21419_watchApi.getRoot().toggleCinematicsActive(!((E=t.JSC$21419_cinematicController)==null||!E.isEnabled()))};var JqK=function(t){_.PQ.call(this);var E=this;this.JSC$21422_watchApi=t;this.commentsReady=!1;this.setCommentsJobId=0;t=_.EA(_.QM(),wr,function(){kLt(E)});
this.addOnDisposeCallback(t);var p=this.JSC$21422_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){dt9(E)}),U=this.JSC$21422_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){dt9(E)});
this.addOnDisposeCallback(function(){E.JSC$21422_watchApi.unsubscribeByKey(p);E.JSC$21422_watchApi.unsubscribeByKey(U)});
var x=function(){_.r("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&uD8(E,"false")};
this.JSC$21422_watchApi.getRoot().addEventListener("yt-page-data-will-update",x);this.addOnDisposeCallback(function(){E.JSC$21422_watchApi.getRoot().removeEventListener("yt-page-data-will-update",x)});
dt9(this)};
_.u(JqK,_.PQ);var dt9=function(t){t.commentsReady=!1;_.ir.cancelJob(t.setCommentsJobId);t.setCommentsJobId=_.E_(_.ir,function(){kLt(t)},1E3)},kLt=function(t){if(!t.commentsReady){_.SR("cmi");
_.ir.cancelJob(t.setCommentsJobId);var E,p,U,x,A=(E=t.JSC$21422_watchApi.getWatchNextResponse())==null?void 0:(p=E.contents)==null?void 0:(U=p.twoColumnWatchNextResults)==null?void 0:(x=U.results)==null?void 0:x.results.contents;E=void 0;if(A&&A.length)for(A=_.M(A),p=A.next();!p.done;p=A.next())if(p=p.value,x=U=void 0,((U=p)==null?void 0:(x=U.itemSectionRenderer)==null?void 0:x.sectionIdentifier)==="comment-item-section"){_.r("web_watch_provide_undefined_comments")?E=p.itemSectionRenderer:t.JSC$21422_watchApi.provideRenderingData("COMMENTS",
p.itemSectionRenderer);uD8(t,"true");break}_.r("web_watch_provide_undefined_comments")&&t.JSC$21422_watchApi.provideRenderingData("COMMENTS",E);t.commentsReady=!0;t.JSC$21422_watchApi.dispatchEvent("yt-watch-comments-ready")}},uD8=function(t,E){var p;
(p=t.JSC$21422_watchApi.getElement("COMMENTS"))==null||p.setAttribute("canScheduleJobs",E)};var Iut=["engagement-panel-ads"],hPJ=function(t){_.PQ.call(this);var E=this;this.JSC$21425_watchApi=t;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.r("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.r("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.r("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.z3("swatcheroo_provide_all_data_delay_ms",
250);if(this.swatcherooProvideAllDataOnScheduledJob)gUt(this);else{var p=this.JSC$21425_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Z2C(E);ob(E)}),U=this.JSC$21425_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Wj(E);
ob(E)});
this.JSC$21425_watchApi.getRoot().is==="ytd-watch-grid"&&_.r("swatcheroo_pbs_load_grid")&&(O2l(this),XPd(this));this.addOnDisposeCallback(function(){E.JSC$21425_watchApi.unsubscribeByKey(p);E.JSC$21425_watchApi.unsubscribeByKey(U);_.ir.cancelJob(E.provideRichGridJobId)});
Z2C(this);Wj(this)}};
_.u(hPJ,_.PQ);var gUt=function(t){var E=t.JSC$21425_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){t.providePlayerJobId=_.D2(_.ir,function(){Z2C(t);ob(t)},t.provideAllDataDelayMs)}),p=t.JSC$21425_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){t.provideWatchNextJobId=_.D2(_.ir,function(){Wj(t);
ob(t)},t.provideAllDataDelayMs)}),U=t.JSC$21425_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){t.provideWatchNextJobId=_.D2(_.ir,function(){Wj(t);
ob(t)},t.provideAllDataDelayMs)});
t.JSC$21425_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.E_(_.ir,function(){Z2C(t);Wj(t);ob(t)},100)});
t.JSC$21425_watchApi.addPageDisposeJob(function(){_.ir.cancelJob(t.provideWatchNextJobId);_.ir.cancelJob(t.providePlayerJobId)});
t.addOnDisposeCallback(function(){t.JSC$21425_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");t.JSC$21425_watchApi.unsubscribeByKey(E);t.JSC$21425_watchApi.unsubscribeByKey(p);t.JSC$21425_watchApi.unsubscribeByKey(U);_.ir.cancelJob(t.providePlayerJobId);_.ir.cancelJob(t.provideWatchNextJobId)});
Z2C(t);Wj(t)},Z2C=function(t){var E=t.JSC$21425_watchApi.getPlayerResponse(),p,U,x=(U=E==null?void 0:(p=E.playabilityStatus)==null?void 0:p.messageRenderers)!=null?U:[],A,m;
E=(m=E==null?void 0:(A=E.playabilityStatus)==null?void 0:A.messages)!=null?m:[];A=_.M(E);for(m=A.next();!m.done;m=A.next())x.push({alertRenderer:{text:_.wN(m.value),type:"WARNING"}});t.JSC$21425_watchApi.provideRenderingData("ALERTS",x)},Wj=function(t){var E=[],p,U,x,A=t.JSC$21425_watchApi.getWatchNextResponse(),m,b,f,B,R=A==null?void 0:(m=A.contents)==null?void 0:(b=m.twoColumnWatchNextResults)==null?void 0:(f=b.results)==null?void 0:(B=f.results)==null?void 0:B.contents;
if(R)for(m=_.M(R),b=m.next();!b.done;b=m.next())if(b=b.value,b.videoPrimaryInfoRenderer)var V=b;else if(b.videoSecondaryInfoRenderer){var Q=b;B=f=void 0;b=Object.assign({},(f=b.videoSecondaryInfoRenderer)==null?void 0:(B=f.metadataRowContainer)==null?void 0:B.metadataRowContainerRenderer);if(b.rows&&b.collapsedItemCount!==void 0){b.rows=b.rows.slice(0,b.collapsedItemCount).filter(function(zX){return!!zX.richMetadataRowRenderer});
b.collapsedItemCount=b.rows.length;var C={metadataRowContainerRenderer:b}}}else if(b.merchandiseShelfRenderer)var d=b;else if(b.ticketShelfRenderer)var I=b;else if(b.expandableMetadataRenderer)var O=b;else if(b.itemSectionRenderer)if(f=b.itemSectionRenderer.contents,B=void 0,t.directlyProvideComments&&((B=b.itemSectionRenderer)==null?void 0:B.sectionIdentifier)==="comment-item-section")_.SR("cmi"),t.JSC$21425_watchApi.provideRenderingData("COMMENTS",b.itemSectionRenderer);else if(f)for(b=_.M(f),f=
b.next();!f.done;f=b.next())if(f=f.value,f.commentsEntryPointHeaderRenderer)var a=f;else if(f.clarificationRenderer||f.infoPanelContainerRenderer||f.infoPanelContentRenderer||f.emergencyOneboxRenderer){E.push(f);var F=F||!!Q}else f.limitedStateMessageRenderer?U=f:f.videoMetadataCarouselViewModel&&(x=f);if(_.r("web_watch_merch_in_sd_when_ticket_shelf_present")&&d&&I){var L=d;d=void 0}if(t.provideWatchNextSecondaryResults){var D,W,K;t.JSC$21425_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
A==null?void 0:(D=A.contents)==null?void 0:(W=D.twoColumnWatchNextResults)==null?void 0:(K=W.secondaryResults)==null?void 0:K.secondaryResults)}if(t.JSC$21425_watchApi.getRoot().is==="ytd-watch-grid"){var v,YL;t.JSC$21425_watchApi.provideRenderingData("LIVE_CHAT",A==null?void 0:(v=A.contents)==null?void 0:(YL=v.twoColumnWatchNextResults)==null?void 0:YL.conversationBar)}var bY,kL,R0,j$;(D=A==null?void 0:(bY=A.contents)==null?void 0:(kL=bY.twoColumnWatchNextResults)==null?void 0:(R0=kL.secondaryResults)==
null?void 0:(j$=R0.secondaryResults)==null?void 0:j$.offerModule)&&(D.donationShelfRenderer||D.donationUnavailableRenderer)&&t.JSC$21425_watchApi.getRoot().is!=="ytd-watch-grid"&&(p=D);bY=t.JSC$21425_watchApi.getPlayerResponse();if(!bY||!_.C4i(bY.playabilityStatus,A==null?void 0:A.playerOverlays)){var lY;if(A==null?0:(lY=A.contents)==null?0:lY.singleColumnWatchNextResults){var Tt,si;var Q0=A==null?void 0:(Tt=A.contents.singleColumnWatchNextResults.results)==null?void 0:(si=Tt.results)==null?void 0:
si.contents}else{var ps,$L,Cs,km;lY=!!(R==null?0:(ps=R[0])==null?0:($L=ps.itemSectionRenderer)==null?0:(Cs=$L.contents)==null?0:(km=Cs[0])==null?0:km.backgroundPromoRenderer);var ZT,l8;ps=!!(A==null?0:(ZT=A.contents)==null?0:(l8=ZT.twoColumnWatchNextResults)==null?0:l8.secondaryResults);lY&&!ps&&(Q0=R)}}R=E[0];ZT=E[1];F&&E.length===1&&(ZT=R,R=void 0);t.JSC$21425_watchApi.provideRenderingData("PRIMARY_INFO",V);t.JSC$21425_watchApi.provideRenderingData("SECONDARY_INFO",Q);t.JSC$21425_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
a);t.JSC$21425_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",x);t.JSC$21425_watchApi.provideRenderingData("CLARIFICATION",R);t.JSC$21425_watchApi.provideRenderingData("RICH_METADATA",C);t.JSC$21425_watchApi.provideRenderingData("MERCH_SHELF",d);_.r("web_watch_merch_in_sd_when_ticket_shelf_present")&&t.JSC$21425_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",L);t.JSC$21425_watchApi.provideRenderingData("TICKET_SHELF",I);t.JSC$21425_watchApi.provideRenderingData("LIMITED_STATE",U);t.JSC$21425_watchApi.getRoot().is!==
"ytd-watch-grid"&&t.JSC$21425_watchApi.provideRenderingData("DONATION_SHELF",p);t.JSC$21425_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",Q0);t.JSC$21425_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",ZT);t.JSC$21425_watchApi.provideRenderingData("EXPANDABLE_METADATA",O);if(t.swatcherooProvideAllDataOnScheduledJob){var Rt,wE,Gt,V0,SW,h3;V=A==null?void 0:(Rt=A.contents)==null?void 0:(wE=Rt.twoColumnWatchNextResults)==null?void 0:(Gt=wE.secondaryResults)==null?void 0:(V0=Gt.secondaryResults)==
null?void 0:(SW=V0.results)==null?void 0:(h3=SW[0])==null?void 0:h3.richGridRenderer;t.JSC$21425_watchApi.provideRenderingData("RICH_GRID_RENDERER",V)}};
hPJ.prototype.hasCompanionAds=function(t){var E,p;return(p=t==null?void 0:(E=t.adPlacements)==null?void 0:E.some(function(U){var x,A,m,b;return(U==null?void 0:(x=U.adPlacementRenderer)==null?void 0:(A=x.renderer)==null?void 0:A.actionCompanionAdRenderer)||(U==null?void 0:(m=U.adPlacementRenderer)==null?void 0:(b=m.renderer)==null?void 0:b.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?p:!1};
var ob=function(t){if(!_.r("swaterdoo_ps_wn_handle_ks")){t.swatcherooProvideAllDataOnScheduledJob||XPd(t,3E3);var E=t.JSC$21425_watchApi.getPlayerResponse(),p,U,x,A,m,b=(p=t.JSC$21425_watchApi.getWatchNextResponse())==null?void 0:(U=p.contents)==null?void 0:(x=U.twoColumnWatchNextResults)==null?void 0:(A=x.secondaryResults)==null?void 0:(m=A.secondaryResults)==null?void 0:m.offerModule;E=t.hasCompanionAds(E);var f,B;p=(b==null?void 0:(f=b.tvfilmOfferModuleRenderer)==null?void 0:f.clientShouldSuppressIfCompanionAdDisplayed)||
(b==null?void 0:(B=b.unlimitedOfferModuleRenderer)==null?void 0:B.suppressIfCompanionAds);f=E&&p;t.JSC$21425_watchApi.getRoot().is==="ytd-watch-grid"&&t.JSC$21425_watchApi.provideRenderingData("OFFER_MODULE",f?void 0:b)}},XPd=function(t,E){_.r("swatcheroo_pbs_load_grid")&&(t.provideRichGridJobId&&_.ir.cancelJob(t.provideRichGridJobId),t.provideRichGridJobId=_.D2(_.ir,function(){t.provideRichGridJobId=0;
var p,U,x,A,m,b,f,B=(p=t.JSC$21425_watchApi.getWatchNextResponse())==null?void 0:(U=p.contents)==null?void 0:(x=U.twoColumnWatchNextResults)==null?void 0:(A=x.secondaryResults)==null?void 0:(m=A.secondaryResults)==null?void 0:(b=m.results)==null?void 0:(f=b[0])==null?void 0:f.richGridRenderer;B&&t.JSC$21425_watchApi.provideRenderingData("RICH_GRID_RENDERER",B)},E))},O2l=function(t){var E,p;
_.q(function(U){if(U.nextAddress==1)return U.yield(t.JSC$21425_watchApi.playerApi,2);E=U.yieldResult;p=function(){t.onPlaybackStart()};
E.addEventListener("onPlaybackStartExternal",p);t.addOnDisposeCallback(function(){E.removeEventListener("onPlaybackStartExternal",p)});
_.Do(U)})};
hPJ.prototype.onPlaybackStart=function(){XPd(this)};var aug=_.h8(115994),ePL=_.h8(115993),$y=function(t,E,p){var U=this;var x=p.dragDownAction;this.layer=0;this.JSC$21440_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return U.dragDownAction()}}}};
this.JSC$21440_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return U.dragDownAction()}}}};
this.fullscreen=!1;var A=_.Pu();_.oy(A,aug,this.layer);_.oy(A,ePL,this.layer);this.dragDownAction=function(){x();_.bA(A,{visualElement:U.fullscreen?aug:ePL})};
this.gesture=new Us(t,E,this.getConfig(!1),"pandown");this.attach()};
$y.prototype.attach=function(){this.gesture.attach()};
$y.prototype.detach=function(){this.gesture.detach()};
$y.prototype.update=function(t){this.fullscreen=t;var E=this.gesture;t=this.getConfig(t);E.config=t};
$y.prototype.getConfig=function(t){return t?this.JSC$21440_watchFullScreenConfig:this.JSC$21440_watchConfig};var zPg=function(t){_.PQ.call(this);var E=this;this.JSC$21443_watchApi=t;t.playerApi.then(function(p){E.player=p});
this.gestures=new $y(this.JSC$21443_watchApi.getRoot(),t.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(hBo(_.QM().getState())&&wr(_.QM().getState())<=0)if(_.EY(_.QM().getState())){var p;(p=E.player)==null||p.toggleFullscreen()}else _.du(E.JSC$21443_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
F_g(this)};
_.u(zPg,_.PQ);var F_g=function(t){var E=_.EA(_.QM(),_.EY,function(p){t.onFullscreenChanged(p)});
t.addOnDisposeCallback(E);E=_.EA(_.QM(),wr,function(p){t.gestures&&(p>0?t.gestures.detach():t.gestures.attach())});
t.addOnDisposeCallback(E)};
zPg.prototype.onFullscreenChanged=function(t){this.gestures&&this.gestures.update(t)};var lu9=["PLAYLIST"],nUC=function(t){_.PQ.call(this);var E=this;this.JSC$21446_watchApi=t;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(t.subscribeToActiveChanged(function(p){E.onActiveChanged(p)}));
GLl(this)};
_.u(nUC,_.PQ);var NAe=function(t){t.pageDisposalDataTypes=Object.values(Jm8).filter(function(E){return!lu9.includes(E)})},GLl=function(t){if(_.r("swatcheroo_enable_ghost_cards")||_.r("web_watch_clear_data_on_page_dispose"))NAe(t),t.JSC$21446_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.ir.cancelJob(t.clearDataJobId);
t.clearDataJobId=0}),t.runPageDisposeJob=function(){var E=_.X3().resolve(_.jw).getDestinationPageType()==="watch";
t.clearDataJobId=_.D2(_.ir,t.runClearDataJob,E?0:_.z3("web_watch_delay_page_dispose_ms",1E4))},t.runClearDataJob=function(){Dtt(t)},t.runOnYtNavigateAwayFinish=function(){t.clearDataJobId&&(_.ir.cancelJob(t.clearDataJobId),t.clearDataJobId=0,Dtt(t))},document.addEventListener("yt-navigate-finish",t.runOnYtNavigateAwayFinish),t.JSC$21446_watchApi.addPageDisposeJob(t.runPageDisposeJob),t.addOnDisposeCallback(function(){t.JSC$21446_watchApi.removePageDisposeJob(t.runPageDisposeJob);
t.JSC$21446_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",t.runOnYtNavigateAwayFinish)})},Dtt=function(t){t.pageDisposalDataTypes.forEach(function(E){t.JSC$21446_watchApi.provideRenderingData(E,void 0)});
t.clearDataJobId=0};
nUC.prototype.onActiveChanged=function(t){t&&((t=document.querySelector("#watch-page-skeleton"))&&_.ng(t),s9t(this),document.body.removeAttribute("no-y-overflow"),_.HC("IS_SHELL_LOAD")&&Ehb())};
var s9t=function(t){_.q(function(E){if(E.nextAddress==1)return E.yield(t.JSC$21446_watchApi.playerApi,2);_.qM();_.Do(E)})};var L_L=_.r("kevlar_watch_while_counterfactual")?0:.25,W_t=function(t){_.PQ.call(this);this.JSC$21449_watchApi=t;this.JSC$21449_watchWhileEnabled=_.r("kevlar_watch_while_v2");this.JSC$21449_watchPipEnabled=_.r("web_watch_pip");P$t(this);TA9(this);oUJ(this)};
_.u(W_t,_.PQ);var P$t=function(t){t.JSC$21449_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){$tb(t)});
t.addOnDisposeCallback(function(){t.JSC$21449_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},TA9=function(t){var E,p;
_.q(function(U){if(U.nextAddress==1)return U.yield(t.JSC$21449_watchApi.playerApi,2);E=U.yieldResult;p=function(x){x&&t.JSC$21449_watchPipEnabled?K_e(t):$tb(t)};
E.addEventListener("onCollapseMiniplayer",p);t.addOnDisposeCallback(function(){E.removeEventListener("onCollapseMiniplayer",p)});
_.Do(U)})},oUJ=function(t){var E=t.JSC$21449_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&E&&t.JSC$21449_watchWhileEnabled&&(t.playerIntersectionObserver=new IntersectionObserver(function(p){t.handleIntersect(p)},{threshold:[L_L]}),t.playerIntersectionObserver.observe(E),t.addOnDisposeCallback(function(){var p;
(p=t.playerIntersectionObserver)==null||p.disconnect()}))},$tb=function(t){var E,p,U;
_.q(function(x){if(x.nextAddress==1)return E=_.X3().resolve(_.jw),p=E.data,U=_.tN_(p.response,p.playerResponse),_.S3().miniplayerButtonActivation=!0,_.X3().resolve(_.bf).collapse(),x.yield(_.S3().navigationFinishPromise,2);if(x.nextAddress!=3)return _.S3().currentEndpoint=U.watchEndpoint||null,x.yield(_.X3().resolve(_.bf).activate(t.JSC$21449_watchApi.getElement("PLAYER"),U,p),3);_.S3().userActivation=!0;_.Do(x)})},K_e=function(t){var E,p,U;
_.q(function(x){if(x.nextAddress==1)return _.X3().resolve(_.bf).pictureInPictureSupported()?x.jumpTo(2):x.yield(t.JSC$21449_watchApi.playerApi,3);if(x.nextAddress!=2)return E=x.yieldResult,(p=E)==null||p.togglePictureInPicture(),x.return();U=_.X3().resolve(_.jw);_.S3().watchPipActivation=!0;_.ItL(_.X3().resolve(_.bf),U.data);_.Do(x)})};
W_t.prototype.handleIntersect=function(t){vU9(this,t[t.length-1])};
var vU9=function(t,E){t.watchWhileJobId&&_.ir.cancelJob(t.watchWhileJobId);t.watchWhileJobId=_.ir.addLowPriorityJob(function(){var p,U;return _.q(function(x){if(x.nextAddress==1)return t.watchWhileJobId=void 0,p=_.X3().resolve(_.bf),E.intersectionRatio>L_L?p.isMiniplayerActive()?x.yield(p.deactivate(),0):x.jumpTo(0):(U=!p.isMiniplayerActive())?x.yield(yq9(t),5):x.jumpTo(4);x.nextAddress!=4&&(U=x.yieldResult);if(!U)return x.jumpTo(0);_.S3().watchWhileActivation=!0;return x.yield(SDo(t),0)})},100)},
yq9=function(t){return _.q(function(E){return E.nextAddress==1?_.r("kevlar_watch_while_paused")?E.return(!0):E.yield(t.isPlayerPlaying(),2):E.return(E.yieldResult)})};
W_t.prototype.isPlayerPlaying=function(){var t=this,E;return _.q(function(p){if(p.nextAddress==1)return p.yield(t.JSC$21449_watchApi.playerApi,2);E=p.yieldResult;return p.return(E.getPlayerStateObject().isPlaying)})};
var SDo=function(t){var E,p;return _.q(function(U){E=_.X3().resolve(_.jw).data;p=_.tN_(E.response,E.playerResponse);_.S3().currentEndpoint=p.watchEndpoint||null;return U.yield(_.X3().resolve(_.bf).activate(t.JSC$21449_watchApi.getElement("PLAYER"),p,E),0)})};var Eye=function(t){_.PQ.call(this);this.JSC$21453_watchApi=t;cq8(this);tzl(this)};
_.u(Eye,_.PQ);var tzl=function(t){var E,p;_.q(function(U){if(U.nextAddress==1)return U.yield(t.JSC$21453_watchApi.playerApi,2);E=U.yieldResult;p=function(x){var A;x.sessionData&&x.sessionData.itct&&(A=x.sessionData.itct);var m=x.watchEndpoint;if(m&&x.sessionData&&x.sessionData.autonav)m=_.CTi(m,A);else{var b;m=_.rm(x.videoId,(b=x.listId)!=null?b:void 0,A)}A={endpoint:m};x.sessionData&&(A.tempData=x.sessionData);t.JSC$21453_watchApi.dispatchEvent("yt-navigate",A)};
E.addEventListener("onPlayVideo",p);t.addOnDisposeCallback(function(){E.removeEventListener("onPlayVideo",p)});
_.Do(U)})},cq8=function(t){var E=function(p){t.onYtNavigate(p)};
t.JSC$21453_watchApi.getRoot().addEventListener("yt-navigate",E);t.addOnDisposeCallback(function(){t.JSC$21453_watchApi.getRoot().removeEventListener("yt-navigate",E)})};
Eye.prototype.onYtNavigate=function(t){var E=this,p,U,x,A,m,b,f,B,R;return _.q(function(V){if(V.nextAddress==1){if(!((p=t.detail)==null?0:(U=p.endpoint)==null?0:U.watchEndpoint))return V.return();x=t.detail.endpoint.watchEndpoint;A=E.JSC$21453_watchApi.getWatchNextResponse();b=_.k((m=A)==null?void 0:m.currentVideoEndpoint,_.HD);if(!b)return V.return();if(x.videoId!==b.videoId||x.playlistId&&x.playlistId!==b.playlistId||typeof x.startTimeSeconds!=="number")return V.jumpTo(0);t.stopPropagation();(f=
_.r("kevlar_watch_while_v2")&&!_.r("kevlar_watch_while_counterfactual"))&&_.X3().resolve(_.bf).isMiniplayerActive()||E.JSC$21453_watchApi.scrollWatchTo(0,!0);return V.yield(E.JSC$21453_watchApi.playerApi,3)}B=V.yieldResult;R=x.startTimeSeconds;B.seekTo(R,void 0,void 0,void 0,84);B.wakeUpControls();R<B.getDuration()&&B.playVideo();_.Do(V)})};var Ua7=function(t){_.PQ.call(this);var E=this;this.JSC$21456_watchApi=t;var p=this.JSC$21456_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){pjK(E)});
this.addOnDisposeCallback(function(){E.JSC$21456_watchApi.unsubscribeByKey(p)});
pjK(this);_.r("enable_ai_companion")&&(t=this.JSC$21456_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&$x7(t,"WATCH")};
_.u(Ua7,_.PQ);var pjK=function(t){var E=t.JSC$21456_watchApi.getWatchNextResponse();if(E){var p,U=[].concat(_.KB((p=E==null?void 0:E.engagementPanels)!=null?p:[]));_.r("web_watch_comments_visible_by_default")&&(p=U.find(function(x){var A;return((A=x.engagementPanelSectionListRenderer)==null?void 0:A.targetId)==="engagement-panel-comments-section"}),p==null?0:p.engagementPanelSectionListRenderer)&&(p.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");
U.unshift.apply(U,_.KB(xad(E)));t.JSC$21456_watchApi.provideRenderingData("ENGAGEMENT_PANELS",U)}},YEJ=function(t){var E,p,U,x=(E=t.engagementPanels)==null?void 0:(p=E.find(function(C){var d;
return((d=C.engagementPanelSectionListRenderer)==null?void 0:d.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(U=p.engagementPanelSectionListRenderer.content)==null?void 0:U.structuredDescriptionContentRenderer,A;
if(_.k(x==null?void 0:(A=x.items)==null?void 0:A.find(function(C){return!!_.k(C,Rd5)}),Rd5))return!0;
var m,b,f,B;if(t=(((m=t.contents)==null?void 0:(b=m.twoColumnWatchNextResults)==null?void 0:(f=b.results)==null?void 0:(B=f.results)==null?void 0:B.contents)||[]).find(function(C){return C.videoPrimaryInfoRenderer})){var R,V,Q;
return(((R=t.videoPrimaryInfoRenderer)==null?void 0:(V=R.videoActions)==null?void 0:(Q=V.menuRenderer)==null?void 0:Q.flexibleItems)||[]).some(function(C){C=_.k(C,_.q7X);if(!C)return!1;var d,I;C=(d=C.topLevelButton)==null?void 0:(I=d.buttonViewModel)==null?void 0:I.onTap;if(!C)return!1;d=_.AJ(C);if(!d)return!1;if(AEL(d))return!0;if(_.r("enable_creator_chatbot")){d=_.k(d,_.ZU);if(!d)return!1;var O;return(O=d.commands)==null?void 0:O.some(function(a){return AEL(a)})}return!1})}return!1},AEL=function(t){var E;
return((E=_.k(t,_.Ua))==null?void 0:E.panelIdentifier)==="PAyouchat"},xad=function(t){var E=[];
if(!_.r("web_watch_inject_placeholder_fantasy_panel_killswitch")){var p,U,x,A=(p=t.engagementPanels)==null?void 0:(U=p.find(function(b){var f;return((f=b.engagementPanelSectionListRenderer)==null?void 0:f.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(x=U.engagementPanelSectionListRenderer.content)==null?void 0:x.structuredDescriptionContentRenderer,m;
_.k(A==null?void 0:(m=A.items)==null?void 0:m.find(function(b){return!!_.k(b,AcK)}),AcK)&&(p=_.c58("PAsports_fantasy"),p.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",E.push(p))}YEJ(t)&&(t=_.c58("PAyouchat"),t.engagementPanelSectionListRenderer.targetId="PAyouchat",t.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",E.push(t));
return E};var mag=function(t){_.PQ.call(this);this.JSC$21459_watchApi=t;Mzd(this)};
_.u(mag,_.PQ);var Mzd=function(t){t.JSC$21459_watchApi.registerActionHandler("yt-loop-command",function(E){bYt(t,E)});
t.JSC$21459_watchApi.registerActionHandler("yt-repeat-chapter-command",function(E){iYK(t,E)});
t.addOnDisposeCallback(function(){t.JSC$21459_watchApi.unregisterActionHandler("yt-loop-command");t.JSC$21459_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},bYt=function(t,E){var p;
_.q(function(U){if(U.nextAddress==1)return U.yield(t.JSC$21459_watchApi.playerApi,2);p=U.yieldResult;_.k(E,toK).loop?(p.setLoopRange({startTimeMs:Number(_.k(E,toK).startTimeMs),endTimeMs:Number(_.k(E,toK).endTimeMs),postId:_.k(E,toK).postId,type:"clips"}),p.playVideo()):p.setLoopRange(null);_.Do(U)})},iYK=function(t,E){var p,U;
_.q(function(x){if(x.nextAddress==1)return x.yield(t.JSC$21459_watchApi.playerApi,2);p=x.yieldResult;U=_.k(E,zpd).repeat;U==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(p.setLoopRange({startTimeMs:Number(_.k(E,zpd).startTimeMs),endTimeMs:Number(_.k(E,zpd).endTimeMs),type:"repeatChapter"}),p.playVideo()):U==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&p.setLoopRange(null);_.Do(x)})};var HY8=function(t){_.PQ.call(this);this.JSC$21464_watchApi=t;qE8(this)};
_.u(HY8,_.PQ);var qE8=function(t){t.JSC$21464_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(E){fQ7(t,E)});
t.addOnDisposeCallback(function(){t.JSC$21464_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},fQ7=function(t,E){var p,U,x,A,m,b,f,B,R,V,Q;
_.q(function(C){if(C.nextAddress==1)return C.yield(t.JSC$21464_watchApi.playerApi,2);p=C.yieldResult;if(A=(x=(U=_.k(E,lCg))==null?void 0:U.highlightedMenuItemKey)!=null?x:"")(b=(m=p).highlightSettingsMenuItem)==null||b.call(m,A);if(R=(B=(f=_.k(E,lCg))==null?void 0:f.openMenuItemKey)!=null?B:"")(Q=(V=p).openSettingsMenuItem)==null||Q.call(V,R);_.Do(C)})};var BLK=_.X1("/youtube/app/watch/player_state","playerStateEntity");var KY=function(t){_.PQ.call(this);this.JSC$21467_watchApi=t;wjb(this)};
_.u(KY,_.PQ);var RN5=function(t){switch(t){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"}},wjb=function(t){var E,p,U,x,A;
_.q(function(m){if(m.nextAddress==1)return m.yield(t.JSC$21467_watchApi.playerApi,2);E=m.yieldResult;if(t.isDisposed())return m.return();p=function(b){t.onPlayerStateChange(b)};
U=function(b){t.onAdStateChange(b)};
x=function(){t.onAdSkip()};
A=function(b){t.onVideoDataChange(b)};
E.addEventListener("onStateChange",p);E.addEventListener("onAdStateChange",U);E.addEventListener("onAdSkip",x);E.addEventListener("onVideoDataChange",A);t.addOnDisposeCallback(function(){E.removeEventListener("onStateChange",p);E.removeEventListener("onAdStateChange",U);E.removeEventListener("onAdSkip",x);E.removeEventListener("onVideoDataChange",A)});
_.Do(m)})},Vzo=function(t){var E=_.Ro(),p=E.dispatch;
a:switch(t.adsState){case -1:case 0:var U="ADS_STATE_NONE";break a;case 1:case 2:case 3:U="ADS_STATE_PLAYING";break a;default:U="ADS_STATE_UNKNOWN"}p.call(E,_.P9("playerStateEntity",BLK,{key:BLK,playerState:RN5(t.playerState),adsState:U,videoId:t.videoId}))};
KY.prototype.onPlayerStateChange=function(t){var E=this,p;return _.q(function(U){if(U.nextAddress==1)return U.yield(E.JSC$21467_watchApi.playerApi,2);p=U.yieldResult;if(E.isDisposed())return U.return();E.playerState=t;E.videoId=p.getVideoData().video_id;Vzo(E);_.Do(U)})};
KY.prototype.onAdStateChange=function(t){this.adsState=t;Vzo(this)};
KY.prototype.onAdSkip=function(){this.adsState=0;Vzo(this)};
KY.prototype.onVideoDataChange=function(t){t.type==="newdata"&&(this.adsState=-1,Vzo(this))};var CDt=function(t){_.PQ.call(this);var E=this;this.JSC$21471_watchApi=t;this.enableExternalPlaylistPanelInPlayer=_.r("delhi_web_player_use_external_playlist_panel");_.X3().resolve(_.kA).setPlayer(this.JSC$21471_watchApi.getElement("PLAYER"));t=this.JSC$21471_watchApi.subscribeToActiveChanged(function(p){E.onActiveChanged(p)});
this.addOnDisposeCallback(t);QbC(this)};
_.u(CDt,_.PQ);var QbC=function(t){var E,p;_.q(function(U){if(U.nextAddress==1)return t.enableExternalPlaylistPanelInPlayer?U.yield(t.JSC$21471_watchApi.playerApi,2):U.return();E=U.yieldResult;p=function(){if(t.playlistPanelElement)t.playlistPanelElement.onToggleExpanded()};
E.addEventListener("onToggleExternalPlaylistPanel",p);t.addOnDisposeCallback(function(){E.removeEventListener("onToggleExternalPlaylistPanel",p)});
_.Do(U)})};
CDt.prototype.onActiveChanged=function(t){var E=this,p=_.X3().resolve(_.kA),U=function(){jbe(E)};
t?(this.playlistPanelElement=this.JSC$21471_watchApi.getElement("PLAYLIST_PANEL"))?(p.setPlaylistComponent(this.playlistPanelElement),p.addEventListener("yt-playlist-data-updated",U),this.addOnDisposeCallback(function(){p.removeEventListener("yt-playlist-data-updated",U)}),jbe(this)):_.Ra(Error("Nl")):(p.removeEventListener("yt-playlist-data-updated",U),p.cancelVideoSkip())};
var jbe=function(t){var E=_.X3().resolve(_.kA);t.JSC$21471_watchApi.provideRenderingData("PLAYLIST",E.getPlaylistData())};var vj=function(t){_.PQ.call(this);var E=this;this.JSC$21474_watchApi=t;this.onPageScroll=function(){E.scrollThrottle.fire();E.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.F5(this.onThrottledScroll,200,this);_.ed(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.F5(this.onMastheadThrottledScroll,50,this);_.ed(this,this.mastheadScrollThrottle);this.animation=new _.ZY(function(p){E.JSC$21474_watchApi.getRoot().setScrollTop(p)});
t=_.EA(_.QM(),_.EY,function(){E.onFullscreenChanged()});
this.addOnDisposeCallback(t);rEo(this);kiC(this);this.onThrottledScroll()};
_.u(vj,_.PQ);
vj.prototype.onFullscreenChanged=function(){var t=this,E=this.JSC$21474_watchApi.getRoot();!this.pageScrollElement&&E.pageScrollElement?(this.pageScrollElement=E.pageScrollElement,E.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){t.pageScrollElement&&t.pageScrollElement.removeEventListener("scroll",t.onPageScroll)})):this.pageScrollElement&&!E.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var rEo=function(t){window.addEventListener("scroll",t.onPageScroll);t.addOnDisposeCallback(function(){window.removeEventListener("scroll",t.onPageScroll)})},kiC=function(t){t.JSC$21474_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(E){a:{var p;
if(p=t.JSC$21474_watchApi.getRoot().contains(E)&&!t.animation.isAnimating()){p=E.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var U,x,A=(E==null?void 0:(U=E.parentElement)==null?void 0:(x=U.parentElement)==null?void 0:x.id)==="fixed-secondary";p=!(p&&A)}if(p){if(_.r("kevlar_watch_scroll_manager_absolute_offset_killswitch"))U=E.offsetTop;else for(U=0,x=E;x!==null;)U+=x.offsetTop,U-=x.scrollTop,x=x.offsetParent;x=U;U=x-24;E=x+E.offsetHeight+24;x=t.JSC$21474_watchApi.getRoot().getPageScrollingElement();
p=t.JSC$21474_watchApi.getRoot().getScrollTop();A=p+x.clientHeight-56;if(U<p+56)E=U-56;else if(E>A)E-=x.clientHeight;else break a;t.scrollWatchTo(Math.max(0,E),!0)}}});
t.addOnDisposeCallback(function(){t.JSC$21474_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
vj.prototype.onThrottledScroll=function(){var t=_.QM(),E=t.dispatch,p=this.JSC$21474_watchApi.getRoot().getScrollTop();E.call(t,_.Jj({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:p}}))};
vj.prototype.onMastheadThrottledScroll=function(){this.JSC$21474_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$21474_watchApi.getRoot().getScrollTop())};
vj.prototype.scrollWatchTo=function(t,E){(E===void 0?0:E)?this.animation.start(this.JSC$21474_watchApi.getRoot().getScrollTop(),Math.max(0,t),500):this.JSC$21474_watchApi.getRoot().setScrollTop(t)};var JE5=function(t){_.PQ.call(this);var E=this;this.JSC$21477_watchApi=t;var p=this.JSC$21477_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){dal(E)}),U=this.JSC$21477_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ufb(E)});
this.addOnDisposeCallback(function(){E.JSC$21477_watchApi.unsubscribeByKey(p);E.JSC$21477_watchApi.unsubscribeByKey(U)});
dal(this);ufb(this)};
_.u(JE5,_.PQ);
var dal=function(t){var E,p,U,x=(U=(E=t.JSC$21477_watchApi.getPlayerResponse())==null?void 0:(p=E.videoDetails)==null?void 0:p.title)!=null?U:"";t.JSC$21477_watchApi.dispatchEvent("yt-update-title",x)},ufb=function(t){var E,p,U,x,A,m,b,f=(b=((m=(E=t.JSC$21477_watchApi.getWatchNextResponse())==null?void 0:(p=E.contents)==null?void 0:(U=p.twoColumnWatchNextResults)==null?void 0:(x=U.results)==null?void 0:(A=x.results)==null?void 0:A.contents)!=null?m:[]).find(function(B){return!!B.videoPrimaryInfoRenderer}))==null?
void 0:b.videoPrimaryInfoRenderer;
(E=_.R4(f==null?void 0:f.title))&&t.JSC$21477_watchApi.dispatchEvent("yt-update-title",E)};var gy9=function(t){_.PQ.call(this);this.JSC$21480_watchApi=t;IQ9(this)};
_.u(gy9,_.PQ);var IQ9=function(t){var E,p;_.q(function(U){if(U.nextAddress==1)return U.yield(t.JSC$21480_watchApi.playerApi,2);E=U.yieldResult;p=function(){t.onYpcContentRequest()};
E.addEventListener("onYpcContentRequest",p);t.addOnDisposeCallback(function(){E.removeEventListener("onYpcContentRequest",p)});
_.Do(U)})};
gy9.prototype.onYpcContentRequest=function(){var t,E,p,U,x,A=(t=this.JSC$21480_watchApi.getWatchNextResponse())==null?void 0:(E=t.contents)==null?void 0:(p=E.twoColumnWatchNextResults)==null?void 0:(U=p.secondaryResults)==null?void 0:(x=U.secondaryResults)==null?void 0:x.offerModule,m,b,f,B;t=(B=(f=(b=(m=A==null?void 0:A.episodeOfferModuleRenderer)!=null?m:A==null?void 0:A.movieOfferModuleRenderer)!=null?b:A==null?void 0:A.unlimitedOfferModuleRenderer)!=null?f:A==null?void 0:A.liveOfferModuleRenderer)!=
null?B:A==null?void 0:A.tvfilmOfferModuleRenderer;var R,V,Q;A=(Q=A==null?void 0:(R=A.tvfilmOfferModuleRenderer)==null?void 0:(V=R.actionButtons)==null?void 0:V.length)!=null?Q:0;V=Math.max(A-1,0);var C,d,I;R=(I=t==null?void 0:(C=t.offerButton)==null?void 0:C.buttonRenderer)!=null?I:t==null?void 0:(d=t.actionButtons)==null?void 0:d[V].buttonRenderer;var O,a;(C=(a=(O=R==null?void 0:R.navigationEndpoint)!=null?O:R==null?void 0:R.serviceEndpoint)!=null?a:R==null?void 0:R.command)&&_.Gh.instance.resolveCommand(C)};var ZYt=function(t){L8.call(this);var E=this;this.rootElement=t;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return E.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(p){E.initOrDisposeActiveModules(p)}));
this.onAttached()};
_.u(ZYt,L8);_.Y=ZYt.prototype;_.Y.getRoot=function(){return this.rootElement};
_.Y.getElement=function(t){return this.rootElement.getElement(t)};
_.Y.setPlayerResponse=function(t){this.playerResponse=t;this.publish("PLAYER_RESPONSE_UPDATED",t)};
_.Y.getPlayerResponse=function(){return this.playerResponse};
_.Y.setWatchNextResponse=function(t){this.watchNextResponse===t?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=t,this.publish("WATCH_NEXT_RESPONSE_UPDATED",t))};
_.Y.getWatchNextResponse=function(){return this.watchNextResponse};
_.Y.registerActionHandler=function(t,E){var p=this;if(_.r("web_watch_controller_reg_multiple_handlers_killswitch")){var U={};_.uV(_.d1.getInstance(),(U[t]=E,U),this.getRoot())}else this.actionHandlers.has(t)||(this.actionHandlers.set(t,[]),U={},_.uV(_.d1.getInstance(),(U[t]=function(){var x=_.t9.apply(0,arguments);return(p.actionHandlers.get(t)||[]).map(function(A){return A.apply(null,_.KB(x))})},U),this.getRoot())),this.actionHandlers.get(t).push(E)};
_.Y.unregisterActionHandler=function(t){if(_.r("web_watch_controller_reg_multiple_handlers_killswitch")){var E={};_.JH(_.d1.getInstance(),(E[t]=!0,E),this.getRoot())}else(E=this.actionHandlers.get(t))?(E.pop(),E.length===0&&(E={},_.JH(_.d1.getInstance(),(E[t]=!0,E),this.getRoot()),this.actionHandlers.delete(t))):_.qW(new _.cC("Attempted to unregister an action handler which is not registered.",t))};
_.Y.addPageDisposeJob=function(t){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.OOO(this.rootElement.pageDisposeJobs,t)};
_.Y.removePageDisposeJob=function(t){this.rootElement.pageDisposeJobs&&_.NK(this.rootElement.pageDisposeJobs,t)};
_.Y.dispatchEvent=function(t,E){_.kT(this.rootElement,t,E)};
_.Y.provideRenderingData=function(t,E){this.rootElement.provideRenderingData(t,E)};
_.Y.scrollWatchTo=function(t,E){var p;(p=this.watchScrollManager)==null||p.scrollWatchTo(t,E)};
_.Y.focusOnPlayer=function(){var t=this.getElement("PLAYER");_.XE(t,function(){if(t&&t.firstElementChild){var E=t.querySelector(".html5-video-player");E&&(_.al(_.X3().resolve(_.Ly)),E.focus())}else _.qW(Error("Ol"))})};
var OYJ=function(t){var E=!!t.rootElement.theater,p=!!t.rootElement.fullscreen,U;(U=t.watchCinematicManager)==null||j9t(U,p,E)};
_.Y=ZYt.prototype;_.Y.subscribeToActiveChanged=function(t,E){E=E===void 0?!0:E;var p=_.EA(_.QM(),aUb,function(U){t(U)});
E&&t(aUb(_.QM().getState()));return p};
_.Y.isActive=function(){return aUb(_.QM().getState())};
_.Y.onAttached=function(){var t=_.r("external_fullscreen");_.r("use_unified_flag_accessor")&&(t=_.X3().resolve(_.UOd).retriever.getFlag(_.yFp));(t||_.HC("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.Y.initPersistentModules=function(){if(_.r("kevlar_watch_flexy_theater_manager")){var t=new drb(this);_.ed(this,t)}t=new nUC(this);_.ed(this,t);t=new Gi(this);_.ed(this,t);t=new hPJ(this);_.ed(this,t);t=new KY(this);_.ed(this,t);t=new nY(this);_.ed(this,t);_.r("kevlar_watch_flexy_playlist_manager")&&(t=new CDt(this),_.ed(this,t))};
_.Y.initOrDisposeActiveModules=function(t){t?(this.watchScrollManager=new vj(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new Eye(this)),this.activeModules.push(new kjb(this)),this.activeModules.push(new JE5(this)),this.activeModules.push(new W_t(this)),_.r("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new gQC(this)),this.activeModules.push(new mag(this)),_.r("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new gy9(this)),_.r("kevlar_watch_flexy_ads_manager")&&
this.activeModules.push(new nKL(this)),_.uc("kevlar_watch_cinematics")&&(this.watchCinematicManager=new BAg(this),this.activeModules.push(this.watchCinematicManager),OYJ(this)),_.r("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new HY8(this)),_.r("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new zPg(this)),t=_.r("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.r("kevlar_watch_flexy_comments_manager")&&!t&&this.activeModules.push(new JqK(this)),
_.r("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new s3l(this)),this.activeModules.push(new Xo5(this)),this.activeModules.push(new Ua7(this)),_.r("web_enable_timely_actions")&&this.activeModules.push(new Fc5(this)),_.r("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new UrC(this)),_.r("web_watch_enable_multiview_manager")&&this.activeModules.push(new $NJ(this)),_.r("web_fullscreen_components")&&this.activeModules.push(new aAC(this)),_.r("web_player_rtr_ctrls")&&
this.activeModules.push(new A$L(this))):(_.Qy(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.Y.disposeInternal=function(){L8.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.aE.Object.defineProperties(ZYt.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});_.k2(_.l(function(t){var E=_.EB("script");_.M$(function(){var p;if(p=JSON)p=mMd(t.data()),p=_.HT(JSON.stringify(p).replace(/</g,"\\u003C"));var U=t.data(),x=_.R4(U.title).trim().length===0,A=!U.publishDate||U.publishDate.trim().length===0,m,b,f,B,R=!((m=U.thumbnail)==null?0:(b=m.thumbnails)==null?0:b.length)||!((f=U.thumbnail)==null?0:f.thumbnails[0].url)||((B=U.thumbnail)==null?void 0:B.thumbnails[0].url.trim().length)===0;E.value&&p&&!(x||A||R)&&_.BT(E.value,p)},"Vy9K7b");
return _.H("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.H("script",{el:E,type:"application/ld+json"}))},"nk"),"player-microformat-renderer",{props:{data:_.Cy}});var Xj8={},hNl=["learning-journey-engagement-panel","PAlearning_chat"];
Xj8.YtdLearningJourneyWatchBehavior=[_.y.YtRendererBehavior,_.JT.YtPlayerListenerBehavior,_.e4.YtRendererstamperBehavior,_.oO.YtActionHandlerBehavior,jz.YtPageBehavior,_.Tn.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 _.HC("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.r("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 _.HC("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 _.r("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.r("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 _.z3("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.z3("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 _.uc("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 _.r("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("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 _.r("web_watch_rounded_player_large")||_.r("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 _.r("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.r("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("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 _.r("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("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:gq(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:gq(["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 t=this;this.watchController=void 0;this.pageDisposeJobs=[function(){t.showMetadataPlaceholder_()},
function(){_.r("web_watch_dont_clear_comments")||t.clearComments_()},
function(){t.clearPlayerAds_()},
function(){t.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;_.r("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.r("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new $p8(function(){return _.rG(t)},
this.hostElement);
this.pageDisposeJobs.push(function(){t.youThereManager_.reset()});
_.r("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){t.resetFullerscreenEduButtonForNewPlayback_()}));
_.r("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.yO;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;_.r("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.r("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));_.r("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.zI(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(t){t&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:t}),t.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(t){_.r("kevlar_watch_flexy_theater_manager")&&(this.theater=t,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.r("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(t){!_.r("kevlar_watch_while_v2")&&!_.r("web_watch_pip")||t||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(t){this.active!==void 0&&(this.fullscreen=t,_.r("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(t){this.active!==void 0&&(_.kT(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.r("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(t>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(t){this.initCsi_();this.updatePageData_(t)},
updatePageData_:function(t){var E=this;if(t)if(this.data===t){this.onPageLoadWithSameData_();var p;(p=this.watchController)==null||p.setWatchNextResponse(this.data)}else this.data=t;this.playlist&&_.KF({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.SR("nw");this.loading=!1;_.E_(_.ir,function(){E.initDclkstatus_();var U,x=((U=E.player)==null?void 0:U.getVideoData().cpn)||"";mGK(function(A,m){i_5(A,m,x)})})},
onPageLoadWithSameData_:function(){_.r("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 t=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!t);this.set("loadingData.playlistLoading",t&&t!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),t=this.watchNextSkeletonEl_.firstElementChild;t;)t.classList.remove("hidden"),t=t.nextElementSibling;var E,p,U;t=(E=this.loadingData)==null?void 0:(p=E.endpoint)==null?void 0:(U=p.watchEndpoint)==null?void 0:U.videoId;var x;t&&(x="https://i.ytimg.com/vi/"+t+"/frame0.jpg");_.ZN(this.hostElement).querySelector("#player").style.backgroundImage=x?"url("+x+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var t=_.ZN(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&t&&(t.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var E,p;(p=(E=this.watchMetadata).updateSentimentBarWidth)==
null||p.call(E);var U,x;(x=(U=this.watchMetadata).resize)==null||x.call(U)}_.ZN(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(t){var E=_.ZN(this.hostElement).querySelector(t);E?_.jR(E,!1):_.qW(new _.cC("Overscroll monitor not found for component: ",t))},
removeSplitScrollMouseTrap:function(t){var E=_.ZN(this.hostElement).querySelector(t);E?_.ru(E):_.qW(new _.cC("Disposal component for  overscroll monitoring not found: ",t))},
onLoadingChanged_:function(t){t?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(t){var E=this;t?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.ir.addLowPriorityJob(function(){E.onWindowResized_(_.NJ(!0))})},
updateTheaterModeState_:function(t){if(!_.r("kevlar_watch_flexy_theater_manager")){t=t||this.fullWindowMode_;if(this.theater!==void 0||t)this.theater=t;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();t&&oTJ()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var t=this.theater;_.r("external_fullscreen")&&this.fullscreen&&(t=!0);t=t?_.ZN(this.hostElement).querySelector("#player-full-bleed-container"):_.ZN(this.hostElement).querySelector("#player-container-inner");var E=this.getPlayerContainer(),p=_.r("kevlar_watch_while_v2")||_.r("web_watch_pip");E.parentElement!==t&&(p&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.rG(this).appendTo(t,E),t.appendChild(_.ZN(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var t=this;return _.q(function(E){if(E.nextAddress==1)return E.yield(_.X3().resolve(_.bf).deactivate(),2);t.updatePlayerLocation();_.Do(E)})},
updateCinematicsLocation:function(){var t=this.getElement("CINEMATICS");if(t){var E=this.getCinematicsLocationContainer();t.parentElement!==E&&E.appendChild(t);var p;(p=this.watchController)==null||OYJ(p)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.ZN(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.ZN(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(t,E){var p=document.documentElement.hasAttribute("dark"),U=!p&&this.cinematicLightTheme;return t&&p||E&&p||(E||t)&&U},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var t;(t=this.watchController)==null||t.setWatchNextResponse(this.data);_.r("kevlar_watch_flexy_comments_manager")||this.initComments_();_.r("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.X3().resolve(_.kA).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.r("web_watch_start_chat_in_theater_mode")){var E,
p,U;if((E=this.data)==null?0:(p=E.contents)==null?0:(U=p.twoColumnWatchNextResults)==null?0:U.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var x,A;((x=this.data)==null?0:(A=x.contents)==null?0:A.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(t){var E;(E=this.watchController)==null||E.setPlayerResponse(this.playerData);t&&t.playabilityStatus&&(E=this.isVideoPlayable_(t.playabilityStatus,this.getPlayerOverlays_(this.data)),t=this.isLiveStreamOffline_(t.playabilityStatus),E&&!t||_.XE(this,function(){_.SR("pbu")}));
this.setPlayerAds_();_.uO(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(t){_.QM().dispatch(_.Jj({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));t?this.activate_():this.deactivate_()},
attached:function(){var t=this;this.watchController=new ZYt(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.r("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var E=_.rG(this);_.r("kevlar_disable_prepare_player")||E.preparePlayer();_.r("kevlar_watch_flexy_playlist_manager")||_.X3().resolve(_.kA).setPlayer(E);this.updatePageMediaQueries();E={"--ytd-watch-flexy-scrollbar-width":AR()+
"px"};!_.z3("kv_pl_mx_sz_ks")&&_.z3("kevlar_watch_max_player_width")&&(E["--ytd-watch-flexy-max-player-width-wide-screen"]=xAd+"px");_.z3("kevlar_watch_flexy_metadata_height")&&(E["--ytd-watch-flexy-space-below-player"]=Ynb+"px");this.safeUpdateStyles(E);_.r("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new nVt(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return t.onPlayerTouchPanDown_()}}));
_.r("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.ZN(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var t=AR(),E=YS+t,p=E;this.fixedPanels&&(E+=pst);var U=657+t;t=1327+t;_.ZN(this.hostElement).querySelector("#two-column-query").query="(min-width: "+E+"px)";_.ZN(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(U+"px), (min-height: 630px) and (min-width: ")+(E+"px) and (max-width: ")+(t+"px)");_.ZN(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(t+"px)");_.ZN(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+p+"px)"},
calculateCurrentPlayerSize_:function(){var t=_.ZN(this.hostElement).querySelector("#miniplayer-bar").firstChild;return t&&t.active||this.theater||_.r("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.nq(NaN,NaN):Meg(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return Meg(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.wi(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var t=this;this.onWindowResized_(_.NJ());_.r("browse_skeleton_removal_on_watch_killswitch")||_.HC("IS_SHELL_LOAD")&&Ehb();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var E=_.rG(this);E.addEventListener("yt-player-updated",_.zI(this,this.onPlayerUpdated_));E.getPlayerPromise().then(function(p){t.playerApiReady_(p)});
_.r("kevlar_watch_flexy_playlist_manager")||(E=_.X3().resolve(_.kA),_.r("kevlar_watch_observe_playlist_navigations_killswitch")&&E.addEventListener("yt-navigate",_.zI(this,this.onYtNavigate_)),E.setPlaylistComponent(_.ZN(this.hostElement).querySelector("#playlist")),E.addEventListener("yt-playlist-data-updated",_.zI(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.ir.addLowPriorityJob(function(){_.kT(t.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.rG(this).removeEventListener("yt-player-updated",_.zI(this,this.onPlayerUpdated_));if(!_.r("kevlar_watch_flexy_playlist_manager")){var t=_.X3().resolve(_.kA);_.r("kevlar_watch_observe_playlist_navigations_killswitch")&&t.removeEventListener("yt-navigate",_.zI(this,this.onYtNavigate_));t.cancelVideoSkip();t.removeEventListener("yt-playlist-data-updated",_.zI(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.r("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.kT(this.hostElement,"yt-autonav-pause-player",!1);t=_.QS();_.r("kevlar_exit_fullscreen_leaving_watch")&&t&&_.CF(t)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(t){this.player&&this.player.updateVideoData({rvs:t.rvs})},
getPageContents:function(t){return t&&t.contents&&t.contents.twoColumnWatchNextResults&&t.contents.twoColumnWatchNextResults.results&&t.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(t){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",t)},
onRetrieveLocation_:function(t,E){E.hasComments?E.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):E.locationRetrieved("/related_ajax",void 0);t.stopPropagation()},
onSubscriptionChanged_:function(t,E){this.player&&(E?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){TkC("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.ZN(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.ZN(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(t){this.player=t;this.setPlayerState(t.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.r("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.r("kevlar_unified_player")||_.r("kevlar_player_new_bootstrap_adoption"))&&_.qM()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(t,E){E=E===void 0?!0:E;_.QS()&&_.r("external_fullscreen")&&_.CF(document.documentElement);this.theaterRequested_=t;E&&_.KR("wide",t?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.r("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.du(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.kT(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(t){_.HX(t,typeof this.player),this.player&&_.HX(t,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var t;((t=this.player)==null?0:t.isFullscreen())?this.player.toggleFullscreen():_.du(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(t,E){return this.loading?E:!!Object.keys(t).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(t){if(t){t=_.M(t);for(var E=t.next();!E.done;E=t.next())E=E.value,E.youThereRenderer&&yQ9(this.youThereManager_,E.youThereRenderer)}},
setPlaylistData_:function(t){return t||{}},
userEngagementConfigDataChanged_:function(t){if(t)if(t.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var E=this.youThereManager_;_.af()<t.lowEngagementThresholdMs||Edd(E,!0)}else t.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.du(this.hostElement,"yt-autonav-pause-user-engagement",[t])},
isPlayerUnavailable_:function(t,E,p){return!!t&&!this.isVideoPlayable_(t,p)&&!E},
getPlayerOverlays_:function(t){return(t==null?void 0:t.playerOverlays)||null},
isVideoPlayable_:function(t,E){if(!t)return!1;var p=t.status==="OK"||t.status==="LIVE_STREAM_OFFLINE",U=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",t)||this.get("errorScreen.ypcTrailerRenderer",t);t=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",t);var x;E=E==null?void 0:(x=E.playerOverlayRenderer)==null?void 0:x.gatedActionsOverlayRenderer;return!!p||!!U||!!t||!!E},
hasWatchNextResponseErrorRenderer:function(t){var E=this.getPageContents(t),p,U,x,A,m;return!(t==null?0:(p=t.contents)==null?0:(U=p.twoColumnWatchNextResults)==null?0:U.secondaryResults)&&!!((x=E[0])==null?0:(A=x.itemSectionRenderer)==null?0:(m=A.contents[0])==null?0:m.backgroundPromoRenderer)},
isLiveStreamOffline_:function(t){return t?t.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(t,E,p){var U=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",E),x=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];x=_.r("web_no_skip_video_on_verification_checks")?(t==null?void 0:t.status)&&x.includes(t.status):t&&t.status==="AGE_CHECK_REQUIRED";var A=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",t);A==void 0&&(A=!0);!p||this.isVideoPlayable_(t,this.getPlayerOverlays_(E))||
U||x||!A||_.X3().resolve(_.kA).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();rJ5()},
onPlayerFeedbackStartRequest_:function(t){_.du(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:t}])},
onPlayerFeedbackArticleRequest_:function(t){_.du(this.hostElement,"yt-help-dialog-requested",[t])},
onPlayerYpcContentRequest_:function(){var t,E,p,U,x,A,m,b,f=((t=this.data)==null?NaN:(E=t.contents)==null?NaN:(p=E.twoColumnWatchNextResults)==null?NaN:(U=p.secondaryResults)==null?NaN:(x=U.secondaryResults)==null?NaN:(A=x.offerModule)==null?NaN:(m=A.tvfilmOfferModuleRenderer)==null?NaN:(b=m.actionButtons)==null?NaN:b.length)-1;t=[".offerButton.buttonRenderer.",".actionButtons."+(f>=0?f:0)+".buttonRenderer."];E=_.M(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(p=E.next();!p.done;p=E.next())for(p=p.value,U=_.M(t),x=U.next();!x.done;x=U.next())if(x="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+p+x.value,x=this.get(x+"navigationEndpoint",this.data)||this.get(x+"serviceEndpoint",this.data)||this.get(x+"command",this.data)){_.n4(x,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(t){_.kT(this.hostElement,"yt-autonav-pause-player",t)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(t){t()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(t){switch(t){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(t){switch(t){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.kT(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(t)},
setPlayerState:function(t){_.QM().dispatch(_.HU3(t))},
onPlayerSubscribe_:function(t){_.du(this.hostElement,"yt-player-subscribe",[t])},
onPlayerUnsubscribe_:function(t){_.du(this.hostElement,"yt-player-unsubscribe",[t])},
onPlayerAdYtShowToast_:function(t){_.du(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:t.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(t){if(t)return t},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(t){return!_.uc("web_watch_move_summary_to_sd")&&!!t},
computeWatchMetadataRefresh:function(){return _.r("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var t,E,p,U;this.watchNextSecondaryResults=(t=this.data)==null?void 0:(E=t.contents)==null?void 0:(p=E.twoColumnWatchNextResults)==null?void 0:(U=p.secondaryResults)==null?void 0:U.secondaryResults}},
setRichGridRendererData:function(t){this.richGridRendererData=t},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var t,E=(t=this.data)==null?void 0:t.engagementPanels;if(E==null?0:E.length){t=null;E=_.M(E);for(var p=E.next();!p.done;p=E.next()){p=p.value;var U=void 0;if(((U=p.engagementPanelSectionListRenderer)==null?void 0:U.targetId)==="engagement-panel-structured-description"){t=p;break}}var x,A,m;t=(x=t)==null?void 0:(A=x.engagementPanelSectionListRenderer)==null?void 0:(m=A.content)==null?void 0:m.structuredDescriptionContentRenderer;if(t==null?0:t.items){x=
[];A=_.M(t.items);for(m=A.next();!m.done;m=A.next()){m=m.value;if(!_.r("sd_horizontal_list_show_nav_killswitch")){var b=U=p=E=t=void 0,f=void 0,B=(t=m.horizontalCardListRenderer)==null?void 0:(E=t.header)==null?void 0:(p=E.richListHeaderRenderer)==null?void 0:(U=p.navigationButton)==null?void 0:(b=U.buttonRenderer)==null?void 0:(f=b.command)==null?void 0:f.commandExecutorCommand;B&&B.commands&&(B.commands=B.commands.filter(function(R){return!_.k(R,ZZt)}))}m.expandableVideoDescriptionBodyRenderer||
m.videoDescriptionHeaderRenderer||x.push(m)}return{items:x}}}},
constructWarning_:function(t){return{text:_.wN(t),type:"WARNING"}},
isPlaShelfEnabled_:function(t){if((this.get("adPlacements",t)||[]).length)return!0;t=this.get("playerAds",t)||[];return!(!t.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",t[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var t=this;_.kT(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var E=this.getScrollTop()>0;this.gestures_&&(E?this.gestures_.detach():this.gestures_.attach());E!==this.showFullerscreenEdu_&&_.r("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=E,_.rG(this).getPlayerPromise().then(function(p){p.updateFullerscreenEduButtonVisibility(t.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.kT(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var t=this;this.commentsReady=!1;_.ir.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.E_(_.ir,function(){t.setComments_()},1E3)},
setComments_:function(){if(!_.r("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.SR("cmi");_.ir.cancelJob(this.setCommentsJobId_);var t=this.getPageContents(this.data);if(t&&t.length){t=_.M(t);for(var E=t.next();!E.done;E=t.next())if(E=E.value,this.get("itemSectionRenderer.sectionIdentifier",E)==="comment-item-section"){this.comments=E.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.kT(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.r("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.r("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.SR("cmc")},
doRemoveComments_:function(){this.comments={};_.r("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.ir.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.ir.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(t,E){var p=_.k(E.endpoint,_.HD);p&&(!(E=this.get("data.currentVideoEndpoint.watchEndpoint"))||p.videoId!==E.videoId||p.playlistId&&p.playlistId!==E.playlistId||p.index!==void 0&&p.index!==E.index||typeof p.startTimeSeconds!=="number"||(t.stopPropagation(),this.setScrollTop(0),_.rG(this).getPlayerPromise().then(function(U){var x=p.startTimeSeconds;U.seekTo(x);U.wakeUpControls();x<U.getDuration()&&U.playVideo()})))},
updatePlayerStartTime_:function(){var t=xet();"t"in t&&(t=VeC(t.t),this.player.seekTo(t,!0))},
updateTitleFromWatchNext:function(t){t=this.getPageContents(t);var E,p;(t=_.R4(t==null?void 0:(E=t[0])==null?void 0:(p=E.videoPrimaryInfoRenderer)==null?void 0:p.title))&&_.kT(this.hostElement,"yt-update-title",t)},
updateTitle_:function(t){t=this.get("videoDetails.title",t)||"";_.kT(this.hostElement,"yt-update-title",t)},
syncWithRemoteVideo_:function(t,E,p){if(this.active&&this.player){var U=this.player.getVideoData();if(U.video_id===p&&(p=U.list,_.r("polymer_enable_mdx_queue")&&p&&p.startsWith("RQ")&&(p=void 0),U.video_id!==t||p!=E)){var x;_.r("kevlar_player_watch_endpoint_navigation")?x=_.CTi(nTC(t,E)):x=this.buildWatchEndpoint_(t,E);_.kT(this.hostElement,"yt-navigate",{endpoint:x,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(t,E,p){return _.rm(t,E,p)},
initDclkstatus_:function(){xc5()},
attachWatchPageSkeleton_:function(){var t=document.querySelector("#watch-page-skeleton");if(t){var E=t.querySelector("#primary-info"),p=t.querySelector("#secondary-info"),U=t.querySelector("#related");E&&_.ZN(this.hostElement).querySelector("#info-skeleton").appendChild(E);p&&_.ZN(this.hostElement).querySelector("#meta-skeleton").appendChild(p);U&&(_.ZN(this.hostElement).querySelector("#related-skeleton").appendChild(U),this.watchNextSkeletonEl_=U);_.ng(t)}},
handlePlayerUpdated_:function(){_.rG(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(t,E){if(this.watchNextSkeletonEl_&&typeof E!=="undefined"){var p=this.watchNextSkeletonEl_.children,U=t&&t.indexSplices.length?t.indexSplices[0].index:0;t=Math.min(this.watchNextShownItems.length,p.length);E||(U=0,t=p.length);for(E=U;E<t;E++)p[E].classList.add("hidden")}},
onPlayerFullscreenChange_:function(t){_.r("external_fullscreen")||_.du(this.hostElement,"yt-player-fullscreen",[t.fullscreen])},
onFullscreenChange_:function(t){this.fullscreen=t;this.gestures_&&this.gestures_.update(this.fullscreen);var E=_.rG(this);E.getPlayerPromise().then(function(p){p.setFauxFullscreen(!!_.QS())});
this.updateFullBleedElementLocations();t&&(E.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(t,E){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!E},
computeIsDonationShelfCollapsed_:function(t){return t},
computeShouldShowMerchShelf:function(t,E){return E&&!!t},
computeResponseHasComments:function(t){var E,p,U,x,A;return!!(t==null?0:(E=t.contents)==null?0:(p=E.twoColumnWatchNextResults)==null?0:(U=p.results)==null?0:(x=U.results)==null?0:(A=x.contents)==null?0:A.some(function(m){var b;return(m==null?void 0:(b=m.itemSectionRenderer)==null?void 0:b.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(t,E){this.responseHasComments=this.computeResponseHasComments(this.data);return!!t&&!!Object.keys(t).length&&!E},
identity:_.a0,onWindowResized_:function(t){this.windowSize_=t;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.r("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(t){var E=this;t&&t.type!=="dataloaded"&&t.type!=="dataupdated"||_.rG(this).getPlayerPromise().then(function(p){var U=p.getPlayerState();U!==5&&U!==0&&(p=1/p.getVideoAspectRatio(),E.videoHeightToWidthRatio_!==p&&(E.videoHeightToWidthRatio_=p))})},
schedulePlayerSizeUpdate_:function(t){var E=this,p=_.r("kevlar_watch_while_v2")||_.r("web_watch_pip"),U=function(){if(E.watchMetadata){var x,A;(A=(x=E.watchMetadata).resize)==null||A.call(x)}_.rG(E).getPlayerPromise().then(function(m){if(_.uc("kevlar_set_internal_player_size")){if(!p||!E.isMiniplayerActive()){var b=E.calculateCurrentPlayerSize_();m.setInternalSize(b.width,b.height)}}else m.setSize(NaN,NaN);_.r("kevlar_watch_while")&&E.updateWatchWhileScrollThreshold_()})};
t?U():_.D2(_.ir,U)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(t){this.set("data.survey",t.detail)},
onYtShowSurveyCommand_:function(t){this.set("data.survey",_.k(t,TPg).survey)},
onDownloadedVideoDeleted:function(t){var E=this,p,U;return _.q(function(x){if(x.nextAddress==1){if(!E.active||(p=E.playerData)==null||!p.offlineState||E.videoId!==t)return x.return();(U=E.player)==null||U.stopVideo();_.S3().navigatingAwayFromWatchDeletedVideo=!0;_.n4(_.JEt,E.hostElement);return x.yield(_.S3().navigationFinishPromise,2)}_.S3().navigatingAwayFromWatchDeletedVideo=!1;_.Do(x)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var t;this.theater?t=_.Ay(.5625*this.windowSize_.width,480,this.windowSize_.height-185):t=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==t&&(this.watchWhileScrollThreshold_=t,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var t=_.ZN(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&t){var E=this.windowSize_.height>=624,p=this.active?this.getScrollTop():0;!t.active&&E&&p>=this.watchWhileScrollThreshold_?(t.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):t.active&&(!E||p<this.watchWhileScrollThreshold_&&!_.QS())&&(t.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(t,E){if(t!==!0||E!==void 0){t=!_.r("live_chat_over_engagement_panels");E=_.ZN(this.hostElement).querySelector("#chat-container");var p=_.ZN(this.hostElement).querySelector("#plj-sidebar"),U=_.ZN(this.hostElement).querySelector("#panels"),x=_.ZN(this.hostElement).querySelector("#plj-panels"),A=_.ZN(this.hostElement).querySelector("#plj-playlist"),m=_.ZN(this.hostElement).querySelector("#alerts"),b=_.ZN(this.hostElement).querySelector("#playlist"),f=_.ZN(this.hostElement).querySelector("#related"),
B=_.ZN(this.hostElement).querySelector("#donation-shelf"),R=_.ZN(this.hostElement).querySelector("#comments");this.isTwoColumns_?(m=_.ZN(this.hostElement).querySelector("#secondary-inner"),m.appendChild(p),p.appendChild(A),A.appendChild(b),p.appendChild(x),t&&m.appendChild(U),_.r("web_watch_theater_chat")||m.appendChild(E),t||m.appendChild(U),m.appendChild(B),m.appendChild(f)):(t&&_.ik(U,m),_.ik(b,m),_.r("web_watch_theater_chat")||_.ik(E,m),t||_.ik(U,m),_.ik(B,m),R&&(x&&_.ik(x,R),_.ik(f,R)));_.r("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.r("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.r("web_watch_theater_chat")){var t=_.ZN(this.hostElement).querySelector("#chat-container"),E=this.theater&&!this.fullscreen||_.r("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&E?_.r("web_watch_theater_chat_beside_player")?(E=_.ZN(this.hostElement).querySelector("#panels-full-bleed-container"),(t==null?void 0:t.parentElement)!==E&&E.append(t),this.panelsBesidePlayer=!0):_.r("web_watch_theater_fixed_chat")&&
(E=_.ZN(this.hostElement).querySelector("#columns"),(t==null?void 0:t.parentElement)!==E&&E.append(t),this.fixedPanels=!0):(_.r("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.r("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),E=_.ZN(this.hostElement).querySelector("#playlist"),t&&E?_.qh(t,E):_.qW(new _.cC("Missing element when updating chat location",{"chatContainer defined":!!t,"playlist defined":!!E})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(t,E){return _.r("sw_metadata_vis_toggle_ks")?!0:!!t||!!E},
computeForceDarkPanelTheme:function(t){return _.r("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&t:!1},
safeUpdateStyles:function(t){try{_.eU(this.hostElement,t)}catch(E){_.qW(E)}},
videoHeightToWidthRatioChanged_:function(t,E){E&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.r("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(t){this.videoHeightToWidthRatio_=1/t},
computeIsVerticalVideo_:function(t){return t>=1},
computeIsFourThreeToSixteenNineVideo_:function(t){return t<=.7501&&t>=.5624},
computeIsExtraWideVideo_:function(t){return t<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.rG(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.rG(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){p4d(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(t){var E=_.WL(t)||0;_.o4(t,E+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var t=_.WL("yt-fullerscreen-edu-button-click-count")||0,E=_.WL("yt-fullerscreen-edu-button-shown-count")||0,p=_.z3("external_fullscreen_button_shown_threshold"),U=t>=_.z3("external_fullscreen_button_click_threshold")||E>=p;_.rG(this).getPlayerPromise().then(function(x){x.updateFullerscreenEduButtonSubtleModeState(U)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(t,E){return E},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.X3().resolve(_.kA).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var t=this;this.panelMaxHeightUpdateJob_&&_.ir.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.ir.addLowPriorityJob(function(){t.panelMaxHeightUpdateJob_=0;var E;!t.isTwoColumns_||t.theater||t.fullscreen?E=460:E=t.calculateNormalPlayerSize_().height;var p=E+"px";_.r("live_chat_taller_height")&&!t.theater&&(p="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.r("live_chat_medium_height")&&
!t.theater&&(p="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.r("live_chat_scaled_height")&&!t.theater&&(p="calc(100vh - var(--ytd-toolbar-height) - 238px)");t.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":E+"px","--ytd-watch-flexy-chat-max-height":p,"--ytd-watch-flexy-structured-description-max-height":E+"px","--ytd-watch-flexy-comments-panel-max-height":E+"px","--ytd-comments-engagement-panel-content-height":E+"px"})})},
onYtShowEngagementPanelScrimAction_:function(t){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",t)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.IK(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(t){var E=_.ZN(this.hostElement).querySelector("#engagement-panel-scrim");t?E.addEventListener("tap",_.zI(this,this.onEngagementPanelScrimClick_)):E.removeEventListener("tap",_.zI(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(t){if(this.hostElement.contains(t)&&!this.scrollToAnimation_.isAnimating()){var E=t.offsetTop-24;t=t.offsetTop+t.offsetHeight+24;var p=this.getPageScrollingElement(),U=this.getScrollTop(),x=U+p.clientHeight-56;if(E<U+56)E-=56;else if(t>x)E=t-p.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,E),500)}},
onYtSignalActionScrollToComments:function(){var t=this.hostElement.querySelector("#comments");if(t&&!this.scrollToAnimation_.isAnimating()){t=t.offsetTop-56-24;if(_.r("kevlar_comment_teaser_scroll_to_midpoint")&&(t-=_.NX().height/3,t<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,t),500)}},
onYtEngagementPanelVisibleChanged:function(t,E,p){this.active&&this.trackEngagementPanelVisibility&&!Iut.includes(p)&&(E==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(p),E!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&E!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(p),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(t){return t?"":"watch-active-metadata"},
computeNewMetadataClass:function(t){return t?"watch-active-metadata":""},
computeFullBleedPlayer:function(t,E){return t||E},
computeDefaultLayout:function(t){return!t},
computeDefaultTwoColumnLayout:function(t,E){return!t&&E},
computeWatchWhilePanelsActive:function(t,E){return t||E},
computeNoBorderOnChat:function(t){return _.r("web_watch_theater_chat_no_border")&&t},
computeLiveChatPresentAndExpanded:function(t,E){return t&&!E},
computePanelExpanded:function(t,E,p){return t||E||p},
onChangeMarkersVisibility:function(t){_.rG(this).getPlayerPromise().then(function(E){var p;(p=E.changeMarkerVisibility)==null||p.call(E,_.k(t,ak).isVisible||!1,_.k(t,ak).entityKeys||[],_.k(t,ak).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(t){this.liveChatCollapsed=t.detail;_.QM().dispatch(Mxo(t.detail))},
provideRenderingData:function(t,E){switch(t){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=E;break;case "PRIMARY_INFO":_.r("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=E);this.videoPrimaryInfoRendererValue=E==null?void 0:E.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.r("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=E);this.videoSecondaryInfoRendererValue=E==null?void 0:E.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
E;break;case "CLARIFICATION":this.clarifyBoxValue=E;break;case "LIVE_CHAT":this.conversationBar=E;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=E;break;case "PLAYLIST":this.externalPlaylistData_=E!=null?E:{};break;case "MERCH_SHELF":this.merchShelfValue=E==null?void 0:E.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=E;break;case "OFFER_MODULE":this.offerModule=E;break;case "LIMITED_STATE":this.limitedStateValue=E;break;case "DONATION_SHELF":this.donation=E;break;
case "ALERTS":this.alertsValue=E;break;case "COMMENTS":this.comments=E;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=E;break;case "ENGAGEMENT_PANELS":this.engagementPanels=E;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=E;break;case "RICH_GRID_RENDERER":this.richGridRendererData=E;break;case "EXPANDABLE_METADATA":this.expandableMetadata=E;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=E}},
toggleCinematicsActive:function(t){this.cinematicsActive=t},
isMiniplayerActive:function(){return _.X3().resolve(_.bf).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(t){return hNl.map(function(E){return t.find(function(p){var U;return(p==null?void 0:(U=p.engagementPanelSectionListRenderer)==null?void 0:U.targetId)===E})}).filter(function(E){return E!==void 0})},
getNonLearningJourneyEngagementPanels:function(t){return t.filter(function(E){var p;return!hNl.includes((E==null?void 0:(p=E.engagementPanelSectionListRenderer)==null?void 0:p.targetId)||"")})}}];var yz=function(){return _.sU.apply(this,arguments)||this};
_.u(yz,_.sU);_.Y=yz.prototype;_.Y.activeChanged=function(){if(this.active){var t=_.ZN(this.hostElement).querySelector("#header");t&&_.kT(t,"iron-resize");window.addEventListener("scroll",_.zI(this,this.onScroll))}else window.removeEventListener("scroll",_.zI(this,this.onScroll)),_.kT(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.Y.guideVisibleChanged=function(){var t=_.ZN(this.hostElement).querySelector("#header");t&&_.kT(t,"iron-resize")};
_.Y.onScroll=function(){var t=this;_.qd(this,"onScroll",function(){var E=_.ZN(t.hostElement).querySelector("#header");E&&E.polymerController&&(E=E.polymerController.getScrollState().progress===1?"standard":"seamed",_.kT(t.hostElement,"yt-request-panel-mode-change",{mode:E}))},10)};
_.Y.tabsChanged=function(){if(this.tabs){for(var t=null,E=0,p=this.tabs.length;E<p;++E){var U=this.tabs[E].tabRenderer;if(U&&U.selected){t=E;break}}this.selected=t}};
_.Y.onTabsActivate=function(t){_.kT(this.hostElement,"yt-navigate",{endpoint:this.tabs[t.detail.selected].tabRenderer.endpoint})};
yz.prototype.tabsChanged=yz.prototype.tabsChanged;yz.prototype.guideVisibleChanged=yz.prototype.guideVisibleChanged;yz.prototype.activeChanged=yz.prototype.activeChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],yz.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.jp.YtdGuideStateAwareBehavior),_.P("design:type",Object)],yz.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.e(),_.P("design:type",Array)],yz.prototype,"tabs",void 0);
_.N([_.e(),_.P("design:type",Object)],yz.prototype,"selected",void 0);_.N([_.e(),_.P("design:type",Boolean)],yz.prototype,"active",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],yz.prototype,"disableHeaderFluidWidth",void 0);_.N([_.GI("active"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yz.prototype,"activeChanged",null);
_.N([_.GI("guidePersistentAndVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yz.prototype,"guideVisibleChanged",null);_.N([_.GI("tabs"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yz.prototype,"tabsChanged",null);_.N([_.L0()],yz);var aQo=[_.y.YtRendererBehavior,_.jp.YtdGuideStateAwareBehavior,yz.prototype];var FKt=function(t){_.PQ.call(this);var E=this;this.JSC$21512_watchApi=t;this.observer=null;var p=this.JSC$21512_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){eNl(E)});
this.addOnDisposeCallback(function(){E.JSC$21512_watchApi.unsubscribeByKey(p);E.observer&&(E.observer.disconnect(),E.observer=null)});
eNl(this)};
_.u(FKt,_.PQ);var eNl=function(t){var E,p,U,x,A;_.q(function(m){if(m.nextAddress==1){t.observer&&(t.observer.disconnect(),t.observer=null);E=t.JSC$21512_watchApi.getWatchNextResponse();if(!E)return m.return();p=_.k(E,LpJ);return((U=p)==null?0:U.enableCreatorChatbot)&&p.creatorChannelId?_.r("enable_creator_chatbot_link_out")?m.yield((0,_.lV)("NSzT5"),6):m.yield((0,_.lV)("NSzT5"),5):m.jumpTo(0)}if(m.nextAddress!=6)return x=_.zN5,x(p.creatorChannelId),m.jumpTo(0);A=_.lQ7;A(p.creatorChannelId);_.Do(m)})};var Sz=function(t){_.PQ.call(this);this.JSC$21516_watchApi=t;this.isShelfVisible=this.isTheaterMode=this.isAdPlaying=this.isSeeking=!1;Gib(this)};
_.u(Sz,_.PQ);var Gib=function(t){_.q(function(E){if(E.nextAddress==1)return E.yield(nyC(t),2);NLl(t);_.Do(E)})},nyC=function(t){var E,p,U,x,A,m,b,f,B;
return _.q(function(R){if(R.nextAddress==1)return R.yield(t.JSC$21516_watchApi.playerApi,2);E=R.yieldResult;t.JSC$21516_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){Dat(t)});
t.JSC$21516_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){t.isShelfVisible?sbt(t):cj(t)});
p=_.QM().subscribe(function(){t.isTheaterMode=_.t8(_.QM().getState());t.isTheaterMode?cj(t):LKg(t)});
U=t.JSC$21516_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){NLl(t)});
x=function(V){t.onCueRangeEnter(V)};
E.addEventListener("onCueRangeEnter",x);A=function(V){t.onCueRangeExit(V)};
E.addEventListener("onCueRangeExit",A);m=function(){t.isSeeking=!0};
E.addEventListener("SEEK_TO",m);b=function(){t.onSeekComplete()};
E.addEventListener("SEEK_COMPLETE",b);f=function(){t.onAdStart()};
E.addEventListener("onAdStart",f);B=function(){t.onAdComplete()};
E.addEventListener("onAdComplete",B);t.addOnDisposeCallback(function(){p();t.JSC$21516_watchApi.unsubscribeByKey(U);E.removeEventListener("onCueRangeEnter",x);E.removeEventListener("onCueRangeExit",A);E.removeEventListener("SEEK_TO",m);E.removeEventListener("SEEK_COMPLETE",b);E.removeEventListener("onAdStart",f);E.removeEventListener("onAdComplete",B)});
_.Do(R)})},PDL=function(t){var E,p,U,x,A,m,b,f,B;
return(A=(E=t.contents)==null?void 0:(p=E.twoColumnWatchNextResults)==null?void 0:(U=p.results)==null?void 0:(x=U.results)==null?void 0:x.contents)==null?void 0:(m=A.find(function(R){var V,Q,C;return(V=R.itemSectionRenderer)==null?void 0:(Q=V.contents)==null?void 0:(C=Q[0])==null?void 0:C.shoppingTimelyShelfViewModel}))==null?void 0:(b=m.itemSectionRenderer)==null?void 0:(f=b.contents)==null?void 0:(B=f[0])==null?void 0:B.shoppingTimelyShelfViewModel},NLl=function(t){var E;
_.q(function(p){if(p.nextAddress==1)return(E=t.JSC$21516_watchApi.getWatchNextResponse())?p.yield(Dat(t),2):p.return();t.shoppingTimelyShelfViewModel=PDL(E);TLC(t);oy7(t);_.Do(p)})},TLC=function(t){var E,p=(E=t.shoppingTimelyShelfViewModel)==null?void 0:E.offerIdToVariants;
p&&(E=p.filter(function(U){return U.key&&U.value}).map(function(U){return[U.key,
U.value]}),t.variantsMap=new Map(E))},oy7=function(t){var E,p,U,x,A,m;
_.q(function(b){if(b.nextAddress==1)return(p=(E=t.shoppingTimelyShelfViewModel)==null?void 0:E.cueRanges)?b.yield(t.JSC$21516_watchApi.playerApi,2):b.return();U=b.yieldResult;t.cueRanges=p;x=_.M(p);for(A=x.next();!A.done;A=x.next())m=A.value,m.startTime!==void 0&&m.endTime!==void 0&&m.id!==void 0&&U.addCueRange("shopping_timely_shelf"+m.id,WKC(m.startTime),WKC(m.endTime));_.Do(b)})},WKC=function(t){return Number(t.seconds||0)+(t.nanos||0)/1E9};
Sz.prototype.onCueRangeEnter=function(t){if(t.startsWith("shopping_timely_shelf")&&(this.activeCueId=t,!(this.isSeeking||this.isAdPlaying||this.isTheaterMode))){t=t.substring(21);var E,p,U=(E=this.variantsMap)==null?void 0:(p=E.get(t))==null?void 0:p.shelf;U&&(this.JSC$21516_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",U),sbt(this))}};
Sz.prototype.onCueRangeExit=function(t){t.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||cj(this))};
Sz.prototype.onSeekComplete=function(){this.isSeeking=!1;LKg(this)};
var sbt=function(t){t.shoppingTimelyShelfViewModel&&(t.isShelfVisible=!0,_.d1.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},cj=function(t){t.shoppingTimelyShelfViewModel&&t.isShelfVisible&&(t.isShelfVisible=!1,_.d1.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},Dat=function(t){var E,p,U,x,A;
return _.q(function(m){if(m.nextAddress==1)return m.yield(t.JSC$21516_watchApi.playerApi,2);E=m.yieldResult;if(t.cueRanges)for(p=_.M(t.cueRanges),U=p.next();!U.done;U=p.next())x=U.value,x.id&&(A="shopping_timely_shelf"+x.id,E.removeCueRange(A));t.JSC$21516_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});cj(t);t.shoppingTimelyShelfViewModel=void 0;t.cueRanges=void 0;t.variantsMap=void 0;t.isSeeking=!1;t.activeCueId=void 0;_.Do(m)})};
Sz.prototype.onAdStart=function(){this.isAdPlaying=!0;cj(this)};
Sz.prototype.onAdComplete=function(){this.isAdPlaying=!1;LKg(this)};
var LKg=function(t){if(t.activeCueId)t.onCueRangeEnter(t.activeCueId);else cj(t)};var SEC=function(t){_.PQ.call(this);var E=this;this.JSC$21523_watchApi=t;t=_.EA(_.QM(),_.FOO,function(){$at(E)});
this.addOnDisposeCallback(t);t=_.EA(_.QM(),eBl,function(){$at(E)});
this.addOnDisposeCallback(t);KKl(this);vyb(this);yEe()};
_.u(SEC,_.PQ);var KKl=function(t){var E=function(U){_.QM().dispatch(YWt(U.matches))},p=window.matchMedia("(max-width: "+(999+AR())+"px)");
p.addListener(E);t.addOnDisposeCallback(function(){p.removeListener(E)});
E(p)},vyb=function(t){t.JSC$21523_watchApi.registerActionHandler("yt-window-resized",function(){yEe()});
t.addOnDisposeCallback(function(){t.JSC$21523_watchApi.unregisterActionHandler("yt-window-resized")})},yEe=function(){var t=_.NJ();
_.QM().dispatch(_.Jj({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:t.width,height:t.height}}}))},$at=function(t){var E;
_.q(function(p){if(p.nextAddress==1)return p.yield(t.JSC$21523_watchApi.playerApi,2);E=p.yieldResult;E.setSize(NaN,NaN);_.Do(p)})};var cEt=function(t){_.PQ.call(this);var E=_.X3().resolve(_.pU);wlb(E,t.getElement("PLAYER_CONTAINER"),t.getElement("BELOW_THE_PLAYER"),t.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var p=t.getElement("PLAYER_CONTAINER"),U=t.getElement("BELOW_THE_PLAYER"),x=t.getElement("SECONDARY");E.isLockupToWatchTransitionEnabled&&(p&&_.Ae(E.viewTransitionCoordinator,p),U&&_.Ae(E.viewTransitionCoordinator,U),x&&_.Ae(E.viewTransitionCoordinator,x))})};
_.u(cEt,_.PQ);var ta=function(t){L8.call(this);var E=this;this.rootElement=t;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return E.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(p){E.initOrDisposeActiveModules(p)}));
this.onAttached()};
_.u(ta,L8);_.Y=ta.prototype;_.Y.getRoot=function(){return this.rootElement};
_.Y.getElement=function(t){return this.rootElement.getElement(t)};
_.Y.setPlayerResponse=function(t){this.playerResponse=t;this.publish("PLAYER_RESPONSE_UPDATED",t)};
_.Y.getPlayerResponse=function(){return this.playerResponse};
_.Y.setWatchNextResponse=function(t){this.watchNextResponse===t?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=t,this.publish("WATCH_NEXT_RESPONSE_UPDATED",t))};
_.Y.getWatchNextResponse=function(){return this.watchNextResponse};
_.Y.registerActionHandler=function(t,E){var p=this;if(_.r("web_watch_controller_reg_multiple_handlers_killswitch")){var U={};_.uV(_.d1.getInstance(),(U[t]=E,U),this.getRoot())}else this.actionHandlers.has(t)||(this.actionHandlers.set(t,[]),U={},_.uV(_.d1.getInstance(),(U[t]=function(){var x=_.t9.apply(0,arguments);return(p.actionHandlers.get(t)||[]).map(function(A){return A.apply(null,_.KB(x))})},U),this.getRoot())),this.actionHandlers.get(t).push(E)};
_.Y.unregisterActionHandler=function(t){if(_.r("web_watch_controller_reg_multiple_handlers_killswitch")){var E={};_.JH(_.d1.getInstance(),(E[t]=!0,E),this.getRoot())}else(E=this.actionHandlers.get(t))?(E.pop(),E.length===0&&(E={},_.JH(_.d1.getInstance(),(E[t]=!0,E),this.getRoot()),this.actionHandlers.delete(t))):_.qW(new _.cC("Attempted to unregister an action handler which is not registered.",t))};
_.Y.addPageDisposeJob=function(t){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.OOO(this.rootElement.pageDisposeJobs,t)};
_.Y.removePageDisposeJob=function(t){this.rootElement.pageDisposeJobs&&_.NK(this.rootElement.pageDisposeJobs,t)};
_.Y.dispatchEvent=function(t,E){_.kT(this.rootElement,t,E)};
_.Y.provideRenderingData=function(t,E){this.rootElement.provideRenderingData(t,E)};
_.Y.scrollWatchTo=function(t,E){var p;(p=this.watchScrollManager)==null||p.scrollWatchTo(t,E)};
_.Y.focusOnPlayer=function(){var t=this.getElement("PLAYER");_.XE(t,function(){if(t&&t.firstElementChild){var E=t.querySelector(".html5-video-player");E&&(_.al(_.X3().resolve(_.Ly)),E.focus())}else _.qW(Error("Ol"))})};
_.Y.subscribeToActiveChanged=function(t,E){E=E===void 0?!0:E;var p=_.EA(_.QM(),hBo,function(U){t(U)});
E&&t(hBo(_.QM().getState()));return p};
_.Y.isActive=function(){return hBo(_.QM().getState())};
_.Y.onAttached=function(){var t=_.r("external_fullscreen");_.r("use_unified_flag_accessor")&&(t=_.X3().resolve(_.UOd).retriever.getFlag(_.yFp));(t||_.HC("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var t7o=function(t){return t.getRoot().is==="ytd-watch-flexy"||t.getRoot().is==="ytd-watch-grid"},EK=function(t){return t.getRoot().is==="ytd-watch-fixie"};
ta.prototype.initPersistentModules=function(){if(EK(this)||t7o(this)&&_.r("kevlar_watch_flexy_theater_manager")){var t=new drb(this);_.ed(this,t)}t=new nUC(this);_.ed(this,t);t=new Gi(this);_.ed(this,t);t=new hPJ(this);_.ed(this,t);t=new KY(this);_.ed(this,t);t=new nY(this);_.ed(this,t);if(EK(this)||t7o(this)&&_.r("kevlar_watch_flexy_playlist_manager"))t=new CDt(this),_.ed(this,t);_.r("web_thumbnail_to_watch_transition")&&(t=new cEt(this),_.ed(this,t))};
ta.prototype.initOrDisposeActiveModules=function(t){t?(this.watchScrollManager=new vj(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new Eye(this)),_.r("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new Sz(this)),this.activeModules.push(new kjb(this)),EK(this)&&this.activeModules.push(new SEC(this)),this.activeModules.push(new JE5(this)),this.activeModules.push(new W_t(this)),(EK(this)||_.r("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new gQC(this)),
this.activeModules.push(new mag(this)),(EK(this)||_.r("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new gy9(this)),(EK(this)||_.r("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new nKL(this)),_.uc("kevlar_watch_cinematics")&&(this.watchCinematicManager=new BAg(this),this.activeModules.push(this.watchCinematicManager)),_.r("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new HY8(this)),_.r("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new zPg(this)),
t=_.r("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.r("kevlar_watch_flexy_comments_manager")&&!t&&this.activeModules.push(new JqK(this)),_.r("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new s3l(this)),this.activeModules.push(new Xo5(this)),this.activeModules.push(new Ua7(this)),_.r("web_enable_timely_actions")&&this.activeModules.push(new Fc5(this)),_.r("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new UrC(this)),_.r("web_watch_enable_multiview_manager")&&
this.activeModules.push(new $NJ(this)),_.r("web_fullscreen_components")&&this.activeModules.push(new aAC(this)),_.r("web_player_rtr_ctrls")&&this.activeModules.push(new A$L(this)),(_.r("enable_creator_chatbot")||_.r("enable_creator_chatbot_link_out"))&&this.activeModules.push(new FKt(this))):(_.Qy(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
ta.prototype.disposeInternal=function(){L8.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.aE.Object.defineProperties(ta.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});_.k2(_.l(function(t){var E=t.data;t=_.M(_.Py(!1,void 0,"VotqNe"));var p=t.next().value,U=t.next().value;_.A6(function(){_.d1.getInstance().triggerAction("yt-request-timely-shelf-state")});
var x=_.KN(function(){var B,R,V=(B=_.k(E().rendererContext,_.Th))==null?void 0:(R=B.loggingDirectives)==null?void 0:R.trackingParams;if(V)return _.$8(V)},void 0,"AvMXxb");
_.uV(_.d1.getInstance(),{"yt-hide-shopping-timely-shelf":function(){U(!1);var B=_.yL(),R=x();B&&R&&_.iU(B,[R])},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){U(!0);var B=_.yL(),R=x();B&&R&&_.bU(B,[R])})}});
var A=function(){var B;return(B=E().image)==null?void 0:B.image},m=function(){var B,R;
return!!((B=A())==null?0:(R=B.sources)==null?0:R.some(function(V){var Q;return!!(V==null?0:(Q=V.clientResource)==null?0:Q.imageName)}))},b=function(){var B;
return((B=E().image)==null?void 0:B.height)||40},f=function(){var B;
return(B=E().image)==null?void 0:B.backgroundColor};
t={};return _.H("yt-shopping-timely-shelf-content-view-model",{el:_.V9(_.EX(function(){return E().rendererContext})),
class:_.X5("ytShoppingTimelyShelfContentViewModelHost",(t.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(E().image||E().avatar||E().line1)&&p()},t)),
style:_.zO({"--shopping-timely-shelf-content-padding-top":function(){var B;return brb((B=E().padding)==null?void 0:B.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var B;return brb((B=E().padding)==null?void 0:B.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var B;return brb((B=E().padding)==null?void 0:B.start)},
"--shopping-timely-shelf-content-padding-end":function(){var B;return brb((B=E().padding)==null?void 0:B.end)},
"--yt-shopping-timely-shelf-background-color":function(){return E().backgroundColor!==void 0?_.cL(E().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var B,R;return((R=(B=E().image)==null?void 0:B.cornerRadius)!=null?R:0)+"px"},
"--yt-shopping-timely-shelf-image-background-color":function(){return f()!==void 0?_.cL(f()):"initial"},
"--yt-shopping-timely-shelf-image-width":function(){var B;return(((B=E().image)==null?void 0:B.width)||40)+"px"}})},_.H(_.w,{cond:A,
then:function(B){var R={};return _.H(_.Q9,{preserveHeight:!0,preserveWidth:!0,height:b,data:B,alt:"",className:_.X5("ytShoppingTimelyShelfContentViewModelImage",(R.ytShoppingTimelyShelfContentViewModelIcon=m,R))})}}),_.H(_.sY,{data:function(){return E().avatar}},{avatarViewModel:_.fk}),_.H("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.H(_.sY,{data:function(){return E().line1}},{shoppingContentLineViewModel:function(B){return _.H(_.g$,{data:B.data,
className:"ytShoppingTimelyShelfContentViewModelLine1"})}}),_.H(_.sY,{data:function(){return E().line2}},{shoppingContentLineViewModel:function(B){return _.H(_.g$,{data:B.data,
className:"ytShoppingTimelyShelfContentViewModelLine2"})}})),_.H("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.H(_.sY,{data:function(){var B;
return(B=E().button)!=null?B:[]}},{buttonViewModel:function(B){var R=B.data;
return _.H(_.D5,{data:R,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(V){R().onTap&&V.stopPropagation()}})}})))},"ok"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.uu}});var EPt={};
EPt.YtdWatchBehavior=[_.y.YtRendererBehavior,_.JT.YtPlayerListenerBehavior,_.e4.YtRendererstamperBehavior,_.oO.YtActionHandlerBehavior,jz.YtPageBehavior,_.Tn.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 _.HC("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.r("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 _.HC("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 _.r("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.r("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 _.z3("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.z3("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.r("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("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 _.r("swatcheroo_split_scroll")}},
persistPanelOnDataChange:{type:Boolean,value:function(){return _.r("web_watch_persist_panel_on_data_change")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.r("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.r("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("swatcheroo_binary_layout")}},
ghostCardsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("swatcheroo_enable_ghost_cards")||_.r("web_watch_enable_ghost_cards")}},
showGhostMetadata:{type:Boolean,computed:"computeShowGhostMetadata_(ghostCardsEnabled, loading, videoPrimaryInfoRenderer)"},showGhostRelated:{type:Boolean,computed:"computeShowGhostRelated_(ghostCardsEnabled, loading, watchNextSecondaryResults)"},metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("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 _.r("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("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 _.r("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 _.r("enable_ai_companion")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded, theater, fullscreen);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
computeShowGhostMetadata_:function(t,E,p){return t&&(E||!p)},
computeShowGhostRelated_:function(t,E,p){return t&&(E||!p)},
monitorScroll:!0,configureRendererStamper:function(){var t={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:gq(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:gq(["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"||_.r("swa_prov_panels_ks")?t.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(t.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},t.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return t},
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 t=this;this.watchController=void 0;this.pageDisposeJobs=[function(){t.showMetadataPlaceholder_()},
function(){_.r("web_watch_dont_clear_comments")||t.clearComments_()},
function(){t.clearPlayerAds_()},
function(){t.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;_.r("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.r("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=
!1);this.youThereManager_=new $p8(function(){return _.rG(t)},this.hostElement);
this.pageDisposeJobs.push(function(){t.youThereManager_.reset()});
_.r("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){t.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.yO;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;_.r("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));_.r("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.zI(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(t){t&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:t}),t.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(t){_.r("kevlar_watch_flexy_theater_manager")&&(this.theater=t,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(t){!_.r("kevlar_watch_while_v2")&&!_.r("web_watch_pip")||t||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(t){this.active!==void 0&&(this.fullscreen=t,_.r("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(t){this.active!==void 0&&(_.kT(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.r("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(t>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(t){this.initCsi_();this.updatePageData_(t)},
updatePageData_:function(t){var E=this;if(t)if(this.data===t){this.onPageLoadWithSameData_();var p;(p=this.watchController)==null||p.setWatchNextResponse(this.data)}else this.data=t;this.playlist&&_.KF({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.SR("nw");this.loading=!1;_.E_(_.ir,function(){E.initDclkstatus_();var U,x=((U=E.player)==null?void 0:U.getVideoData().cpn)||"";mGK(function(A,m){i_5(A,m,x)})})},
onPageLoadWithSameData_:function(){_.r("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 t=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!t);this.set("loadingData.playlistLoading",t&&t!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),t=this.watchNextSkeletonEl_.firstElementChild;t;)t.classList.remove("hidden"),t=t.nextElementSibling;if(_.r("kevlar_watch_frame0_loading_state")){var E,p,U;t=(E=this.loadingData)==null?void 0:(p=E.endpoint)==null?void 0:(U=p.watchEndpoint)==null?void 0:U.videoId;var x;t&&(x="https://i.ytimg.com/vi/"+t+"/frame0.jpg");_.ZN(this.hostElement).querySelector("#player").style.backgroundImage=x?"url("+x+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var t=_.ZN(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&t&&(t.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var E,p;(p=(E=this.watchMetadata).updateSentimentBarWidth)==
null||p.call(E);var U,x;(x=(U=this.watchMetadata).resize)==null||x.call(U)}_.r("kevlar_watch_frame0_loading_state")&&(_.ZN(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(t){var E=_.ZN(this.hostElement).querySelector(t);E?_.jR(E,!1):_.qW(new _.cC("Overscroll monitor not found for component: ",t))},
removeSplitScrollMouseTrap:function(t){var E=_.ZN(this.hostElement).querySelector(t);E?_.ru(E):_.qW(new _.cC("Disposal component for  overscroll monitoring not found: ",t))},
onLoadingChanged_:function(t){t?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.r("web_thumbnail_to_watch_transition")&&!_.dRJ||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.r("web_thumbnail_to_watch_transition")&&!_.dRJ||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(t){var E=this;t?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.ir.addLowPriorityJob(function(){E.onWindowResized_(_.NJ(!0))})},
updateTheaterModeState_:function(t){if(!_.r("kevlar_watch_flexy_theater_manager")){t=t||this.fullWindowMode_;if(this.theater!==void 0||t)this.theater=t;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();t&&oTJ()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var t=this.fullBleedPlayer?_.ZN(this.hostElement).querySelector("#player-full-bleed-container"):_.ZN(this.hostElement).querySelector("#player-container-inner");var E=this.getPlayerContainer(),p=_.r("kevlar_watch_while_v2")||_.r("web_watch_pip");E.parentElement!==t&&(p&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.rG(this).appendTo(t,E))},
updateErrorScreenLocation:function(){var t=_.ZN(this.hostElement).querySelector("#error-screen"),E=this.fullBleedPlayer?_.ZN(this.hostElement).querySelector("#player-full-bleed-container"):_.ZN(this.hostElement).querySelector("#player");t.parentElement!==E&&E.appendChild(t)},
deactivateMiniplayerAndResetPlayer:function(){var t=this;return _.q(function(E){if(E.nextAddress==1)return E.yield(_.X3().resolve(_.bf).deactivate(),2);t.updatePlayerLocation();_.Do(E)})},
updateCinematicsLocation:function(){var t=this.getElement("CINEMATICS");if(t){var E=this.getCinematicsLocationContainer();t.parentElement!==E&&E.appendChild(t)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.ZN(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.ZN(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(t,E,p){var U=document.documentElement.hasAttribute("dark"),x=!U&&this.cinematicLightTheme;return p||t&&U||E&&U||(E||t)&&x},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var t=this,E;(E=this.watchController)==null||E.setWatchNextResponse(this.data);_.r("kevlar_watch_flexy_comments_manager")||this.initComments_();_.r("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.X3().resolve(_.kA).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&!this.persistPanelOnDataChange&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=
!0,this.visiblePanelIdentifiers_.clear(),this.engagementPanelExpanded=!1,_.r("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.ir.addLowPriorityJob(function(){_.uO(t.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.r("web_watch_start_chat_in_theater_mode")){var p,U,x;if((p=this.data)==null?0:(U=p.contents)==null?0:(x=U.twoColumnWatchNextResults)==null?0:x.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var A,m;((A=this.data)==null?0:(m=A.contents)==null?0:m.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(t){var E;(E=this.watchController)==null||E.setPlayerResponse(this.playerData);t&&t.playabilityStatus&&(E=this.isVideoPlayable_(t.playabilityStatus,this.getPlayerOverlays_(this.data)),t=this.isLiveStreamOffline_(t.playabilityStatus),E&&!t||_.XE(this,function(){_.SR("pbu")}));
this.setPlayerAds_();_.uO(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(t,E){if((_.r("kevlar_watch_while_v2")||_.r("web_watch_pip"))&&this.playerData&&E)return this.playerData.videoDetails},
watchPageActiveChanged_:function(t){_.QM().dispatch(AB5(this.active));t?this.activate_():this.deactivate_()},
attached:function(){var t=this;this.watchController=new ta(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);_.r("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var E=_.rG(this);_.r("kevlar_disable_prepare_player")||
E.preparePlayer();_.r("kevlar_watch_flexy_playlist_manager")||_.X3().resolve(_.kA).setPlayer(E);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();E={"--ytd-watch-flexy-scrollbar-width":AR()+"px"};this.is==="ytd-watch-grid"&&(_.QM().dispatch(_.Jj({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),E["--ytd-watch-flexy-sidebar-width"]=pst+"px",E["--ytd-watch-grid-horizontal-page-margins"]=M5+"px",E["--ytd-watch-grid-columns-top-margins"]=AJd+"px",
E["--ytd-watch-grid-min-player-height-medium"]="360px");!_.z3("kv_pl_mx_sz_ks")&&_.z3("kevlar_watch_max_player_width")&&(E["--ytd-watch-flexy-max-player-width-wide-screen"]=xAd+"px");_.z3("kevlar_watch_flexy_metadata_height")&&(E["--ytd-watch-flexy-space-below-player"]=Ynb+"px");this.safeUpdateStyles(E);_.r("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new $y(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return t.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.ZN(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var t=AR(),E=YS+t,p=E;this.fixedPanels&&(E+=pst);var U=657+t;t=1327+t;_.ZN(this.hostElement).querySelector("#two-column-query").query="(min-width: "+E+"px)";_.ZN(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(U+"px), (min-height: 630px) and (min-width: ")+(E+"px) and (max-width: ")+(t+"px)");_.ZN(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(t+"px)");_.ZN(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+p+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var t=_.ZN(this.hostElement).querySelector("#miniplayer-bar").firstChild,E=this.squeezeback&&!_.r("web_watch_squeezeback_player_size_killswitch");return t&&t.active||this.theater||_.r("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||E||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.nq(NaN,NaN):Meg(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return Meg(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.wi(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var t=this;this.onWindowResized_(_.NJ());_.r("browse_skeleton_removal_on_watch_killswitch")||_.HC("IS_SHELL_LOAD")&&Ehb();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var E=_.rG(this);E.addEventListener("yt-player-updated",_.zI(this,this.onPlayerUpdated_));E.getPlayerPromise().then(function(p){t.playerApiReady_(p)});
_.r("kevlar_watch_flexy_playlist_manager")||(E=_.X3().resolve(_.kA),_.r("kevlar_watch_observe_playlist_navigations_killswitch")&&E.addEventListener("yt-navigate",_.zI(this,this.onYtNavigate_)),E.setPlaylistComponent(_.ZN(this.hostElement).querySelector("#playlist")),E.addEventListener("yt-playlist-data-updated",_.zI(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.ir.addLowPriorityJob(function(){_.kT(t.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.rG(this).removeEventListener("yt-player-updated",_.zI(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.r("kevlar_watch_flexy_playlist_manager")){var t=_.X3().resolve(_.kA);_.r("kevlar_watch_observe_playlist_navigations_killswitch")&&t.removeEventListener("yt-navigate",_.zI(this,this.onYtNavigate_));
t.cancelVideoSkip();t.removeEventListener("yt-playlist-data-updated",_.zI(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.kT(this.hostElement,"yt-autonav-pause-player",!1);t=_.QS();_.r("kevlar_exit_fullscreen_leaving_watch")&&t&&_.CF(t)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(t){this.player&&this.player.updateVideoData({rvs:t.rvs})},
getPageContents:function(t){return t&&t.contents&&t.contents.twoColumnWatchNextResults&&t.contents.twoColumnWatchNextResults.results&&t.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(t){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",t)},
onRetrieveLocation_:function(t,E){E.hasComments?E.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):E.locationRetrieved("/related_ajax",void 0);t.stopPropagation()},
onSubscriptionChanged_:function(t,E){this.player&&(E?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){TkC("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.ZN(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.ZN(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(t){this.player=t;this.setPlayerState(t.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.r("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.r("kevlar_unified_player")||_.r("kevlar_player_new_bootstrap_adoption"))&&_.qM()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(t,E){E=E===void 0?!0:E;_.QS()&&_.r("external_fullscreen")&&_.CF(document.documentElement);this.theaterRequested_=t;E&&_.KR("wide",t?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.du(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.kT(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(t){_.HX(t,typeof this.player),this.player&&_.HX(t,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var t;((t=this.player)==null?0:t.isFullscreen())?this.player.toggleFullscreen():_.du(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(t,E){return this.loading?E:!!Object.keys(t).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(t){if(t){t=_.M(t);for(var E=t.next();!E.done;E=t.next())E=E.value,E.youThereRenderer&&yQ9(this.youThereManager_,E.youThereRenderer)}},
setPlaylistData_:function(t){return t||{}},
userEngagementConfigDataChanged_:function(t){if(t)if(t.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var E=this.youThereManager_;_.af()<t.lowEngagementThresholdMs||Edd(E,!0)}else t.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.du(this.hostElement,"yt-autonav-pause-user-engagement",[t])},
isPlayerUnavailable_:function(t,E,p){return!!t&&!this.isVideoPlayable_(t,p)&&!E},
getPlayerOverlays_:function(t){return(t==null?void 0:t.playerOverlays)||null},
isVideoPlayable_:function(t,E){if(!t)return!1;var p=t.status==="OK"||t.status==="LIVE_STREAM_OFFLINE",U=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",t)||this.get("errorScreen.ypcTrailerRenderer",t);t=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",t);var x;E=E==null?void 0:(x=E.playerOverlayRenderer)==null?void 0:x.gatedActionsOverlayRenderer;return!!p||!!U||!!t||!!E},
hasWatchNextResponseErrorRenderer:function(t){var E=this.getPageContents(t),p,U,x,A,m;return!(t==null?0:(p=t.contents)==null?0:(U=p.twoColumnWatchNextResults)==null?0:U.secondaryResults)&&!!((x=E[0])==null?0:(A=x.itemSectionRenderer)==null?0:(m=A.contents[0])==null?0:m.backgroundPromoRenderer)},
isLiveStreamOffline_:function(t){return t?t.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(t,E,p){var U=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",E),x=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];x=_.r("web_no_skip_video_on_verification_checks")?(t==null?void 0:t.status)&&x.includes(t.status):t&&t.status==="AGE_CHECK_REQUIRED";var A=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",t);A==void 0&&(A=!0);!p||this.isVideoPlayable_(t,this.getPlayerOverlays_(E))||
U||x||!A||_.X3().resolve(_.kA).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();rJ5()},
onPlayerFeedbackStartRequest_:function(t){_.du(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:t}])},
onPlayerFeedbackArticleRequest_:function(t){_.du(this.hostElement,"yt-help-dialog-requested",[t])},
onPlayerYpcContentRequest_:function(){var t,E,p,U,x,A,m,b,f=((t=this.data)==null?NaN:(E=t.contents)==null?NaN:(p=E.twoColumnWatchNextResults)==null?NaN:(U=p.secondaryResults)==null?NaN:(x=U.secondaryResults)==null?NaN:(A=x.offerModule)==null?NaN:(m=A.tvfilmOfferModuleRenderer)==null?NaN:(b=m.actionButtons)==null?NaN:b.length)-1;t=[".offerButton.buttonRenderer.",".actionButtons."+(f>=0?f:0)+".buttonRenderer."];E=_.M(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(p=E.next();!p.done;p=E.next())for(p=p.value,U=_.M(t),x=U.next();!x.done;x=U.next())if(x="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+p+x.value,x=this.get(x+"navigationEndpoint",this.data)||this.get(x+"serviceEndpoint",this.data)||this.get(x+"command",this.data)){_.n4(x,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(t){_.kT(this.hostElement,"yt-autonav-pause-player",t)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(t){t()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(t){switch(t){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(t){switch(t){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.kT(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(t)},
setPlayerState:function(t){_.QM().dispatch(_.HU3(t))},
onPlayerSubscribe_:function(t){_.du(this.hostElement,"yt-player-subscribe",[t])},
onPlayerUnsubscribe_:function(t){_.du(this.hostElement,"yt-player-unsubscribe",[t])},
onPlayerAdYtShowToast_:function(t){_.du(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:t.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(t){if(t)return t},
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(t){return!_.uc("web_watch_move_summary_to_sd")&&!!t},
computeWatchMetadataRefresh:function(){return this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.r("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var t,E,p,U;this.watchNextSecondaryResults=(t=this.data)==null?void 0:(E=t.contents)==null?void 0:(p=E.twoColumnWatchNextResults)==null?void 0:(U=p.secondaryResults)==null?void 0:U.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var t,E=(t=this.data)==null?void 0:t.engagementPanels;if(E==null?0:E.length){t=null;E=_.M(E);for(var p=E.next();!p.done;p=E.next()){p=p.value;var U=void 0;if(((U=p.engagementPanelSectionListRenderer)==null?void 0:U.targetId)==="engagement-panel-structured-description"){t=p;break}}var x,A,m;t=(x=t)==null?void 0:(A=x.engagementPanelSectionListRenderer)==null?void 0:(m=A.content)==null?void 0:m.structuredDescriptionContentRenderer;if(t==null?0:t.items){x=
[];A=_.M(t.items);for(m=A.next();!m.done;m=A.next()){m=m.value;if(!_.r("sd_horizontal_list_show_nav_killswitch")){var b=U=p=E=t=void 0,f=void 0,B=(t=m.horizontalCardListRenderer)==null?void 0:(E=t.header)==null?void 0:(p=E.richListHeaderRenderer)==null?void 0:(U=p.navigationButton)==null?void 0:(b=U.buttonRenderer)==null?void 0:(f=b.command)==null?void 0:f.commandExecutorCommand;B&&B.commands&&(B.commands=B.commands.filter(function(R){return!_.k(R,ZZt)}))}(!m.expandableVideoDescriptionBodyRenderer&&
!m.videoDescriptionHeaderRenderer||_.r("web_delhi_colorful_sd"))&&x.push(m)}return{items:x}}}},
constructWarning_:function(t){return{text:_.wN(t),type:"WARNING"}},
isPlaShelfEnabled_:function(t){if((this.get("adPlacements",t)||[]).length)return!0;t=this.get("playerAds",t)||[];return!(!t.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",t[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var t=this;_.kT(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var E=this.getScrollTop()>0;this.gestures_&&(E?this.gestures_.detach():this.gestures_.attach());E!==this.showFullerscreenEdu_&&_.r("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=E,_.rG(this).getPlayerPromise().then(function(p){p.updateFullerscreenEduButtonVisibility(t.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.kT(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var t=this;this.commentsReady=!1;_.ir.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.E_(_.ir,function(){t.setComments_()},1E3)},
setComments_:function(){if(!_.r("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.SR("cmi");_.ir.cancelJob(this.setCommentsJobId_);var t=this.getPageContents(this.data);if(t&&t.length){t=_.M(t);for(var E=t.next();!E.done;E=t.next())if(E=E.value,this.get("itemSectionRenderer.sectionIdentifier",E)==="comment-item-section"){this.comments=E.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.kT(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.r("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.r("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.SR("cmc")},
doRemoveComments_:function(){this.comments={};_.r("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.ir.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.ir.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(t,E){var p=_.k(E.endpoint,_.HD);p&&(!(E=this.get("data.currentVideoEndpoint.watchEndpoint"))||p.videoId!==E.videoId||p.playlistId&&p.playlistId!==E.playlistId||p.index!==void 0&&p.index!==E.index||typeof p.startTimeSeconds!=="number"||(t.stopPropagation(),this.setScrollTop(0),_.rG(this).getPlayerPromise().then(function(U){var x=p.startTimeSeconds;U.seekTo(x);U.wakeUpControls();x<U.getDuration()&&U.playVideo()})))},
updatePlayerStartTime_:function(){var t=xet();"t"in t&&(t=VeC(t.t),this.player.seekTo(t,!0))},
updateTitleFromWatchNext:function(t){t=this.getPageContents(t);var E,p;(t=_.R4(t==null?void 0:(E=t[0])==null?void 0:(p=E.videoPrimaryInfoRenderer)==null?void 0:p.title))&&_.kT(this.hostElement,"yt-update-title",t)},
updateTitle_:function(t){t=this.get("videoDetails.title",t)||"";_.kT(this.hostElement,"yt-update-title",t)},
syncWithRemoteVideo_:function(t,E,p){if(this.active&&this.player){var U=this.player.getVideoData();if(U.video_id===p&&(p=U.list,_.r("polymer_enable_mdx_queue")&&p&&p.startsWith("RQ")&&(p=void 0),U.video_id!==t||p!=E)){var x;_.r("kevlar_player_watch_endpoint_navigation")?x=_.CTi(nTC(t,E)):x=this.buildWatchEndpoint_(t,E);_.kT(this.hostElement,"yt-navigate",{endpoint:x,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(t,E,p){return _.rm(t,E,p)},
initDclkstatus_:function(){xc5()},
attachWatchPageSkeleton_:function(){var t=document.querySelector("#watch-page-skeleton");if(t){var E=t.querySelector("#primary-info"),p=t.querySelector("#secondary-info"),U=t.querySelector("#related");E&&_.ZN(this.hostElement).querySelector("#info-skeleton").appendChild(E);p&&_.ZN(this.hostElement).querySelector("#meta-skeleton").appendChild(p);U&&(_.ZN(this.hostElement).querySelector("#related-skeleton").appendChild(U),this.watchNextSkeletonEl_=U);_.ng(t)}},
handlePlayerUpdated_:function(){_.rG(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(t,E){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof E!=="undefined"){var p=this.watchNextSkeletonEl_.children,U=t&&t.indexSplices.length?t.indexSplices[0].index:0;t=Math.min(this.watchNextShownItems.length,p.length);E||(U=0,t=p.length);if(!this.ghostCardsEnabled)for(E=U;E<t;E++)p[E].classList.add("hidden")}},
onPlayerFullscreenChange_:function(t){_.r("external_fullscreen")||_.du(this.hostElement,"yt-player-fullscreen",[t.fullscreen])},
onFullscreenChange_:function(t){this.fullscreen=t;this.gestures_&&this.gestures_.update(this.fullscreen);var E=_.rG(this);E.getPlayerPromise().then(function(p){p.setFauxFullscreen(!!_.QS())});
this.updateFullBleedElementLocations();t&&(E.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(t,E){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!E},
computeIsDonationShelfCollapsed_:function(t){return t},
computeShouldShowMerchShelf:function(t,E){return E&&!!t},
computeResponseHasComments:function(t){var E,p,U,x,A;return!!(t==null?0:(E=t.contents)==null?0:(p=E.twoColumnWatchNextResults)==null?0:(U=p.results)==null?0:(x=U.results)==null?0:(A=x.contents)==null?0:A.some(function(m){var b;return(m==null?void 0:(b=m.itemSectionRenderer)==null?void 0:b.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(t,E,p,U){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&U?!1:!!t&&!!Object.keys(t).length&&!E},
identity:_.a0,onWindowResized_:function(t){this.windowSize_=t;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(t){var E=this;t&&t.type!=="dataloaded"&&t.type!=="dataupdated"||_.rG(this).getPlayerPromise().then(function(p){var U=p.getPlayerState();U!==5&&U!==0&&(p=1/p.getVideoAspectRatio(),E.videoHeightToWidthRatio_!==p&&(E.videoHeightToWidthRatio_=p))})},
schedulePlayerSizeUpdate_:function(t){var E=this,p=_.r("kevlar_watch_while_v2")||_.r("web_watch_pip"),U=function(){if(E.watchMetadata){var x,A;(A=(x=E.watchMetadata).resize)==null||A.call(x)}_.rG(E).getPlayerPromise().then(function(m){if(_.uc("kevlar_set_internal_player_size")){if(!p||!E.isMiniplayerActive()){var b=E.calculateCurrentPlayerSize_();m.setInternalSize(b.width,b.height)}}else m.setSize(NaN,NaN);_.r("kevlar_watch_while")&&E.updateWatchWhileScrollThreshold_()})};
t?U():_.D2(_.ir,U)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(t){this.set("data.survey",t.detail)},
onYtShowSurveyCommand_:function(t){this.set("data.survey",_.k(t,TPg).survey)},
onDownloadedVideoDeleted:function(t){var E=this,p,U;return _.q(function(x){if(x.nextAddress==1){if(!E.active||(p=E.playerData)==null||!p.offlineState||E.videoId!==t)return x.return();(U=E.player)==null||U.stopVideo();_.S3().navigatingAwayFromWatchDeletedVideo=!0;_.n4(_.JEt,E.hostElement);return x.yield(_.S3().navigationFinishPromise,2)}_.S3().navigatingAwayFromWatchDeletedVideo=!1;_.Do(x)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var t;this.theater?t=_.Ay(.5625*this.windowSize_.width,480,this.windowSize_.height-185):t=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==t&&(this.watchWhileScrollThreshold_=t,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var t=_.ZN(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&t){var E=this.windowSize_.height>=624,p=this.active?this.getScrollTop():0;!t.active&&E&&p>=this.watchWhileScrollThreshold_?(t.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):t.active&&(!E||p<this.watchWhileScrollThreshold_&&!_.QS())&&(t.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var t=_.ZN(this.hostElement).querySelector("#secondary-inner");if(t){var E=_.ZN(this.hostElement).querySelector("#below"),p=_.ZN(this.hostElement).querySelector("#secondary"),U=_.ZN(this.hostElement).querySelector("#comments");U&&p&&E&&(this.defaultTwoColumnLayout?(t.appendChild(U),p.appendChild(t)):(E.appendChild(U),lM(E,t)))}}},
isTwoColumnsChanged_:function(t,E){if(t!==!0||E!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(t=_.ZN(this.hostElement).querySelector("#secondary-inner"))){E=_.ZN(this.hostElement).querySelector("#below");var p=_.ZN(this.hostElement).querySelector("#secondary"),U=_.ZN(this.hostElement).querySelector("#comments");U&&p&&E&&(this.isTwoColumns_?(t.appendChild(U),p.appendChild(t)):(E.appendChild(U),lM(E,t)))}}else{t=!_.r("web_watch_enable_fs_squeezeback_panels");
E=_.ZN(this.hostElement).querySelector("#panels");var x=_.ZN(this.hostElement).querySelector("#alerts"),A=_.ZN(this.hostElement).querySelector("#shopping-timely-shelf");p=_.ZN(this.hostElement).querySelector("#playlist");U=_.ZN(this.hostElement).querySelector("#related");var m=_.ZN(this.hostElement).querySelector("#donation-shelf"),b=_.ZN(this.hostElement).querySelector("#comments"),f=_.ZN(this.hostElement).querySelector("#persistent-panel-container");this.isTwoColumns_?(x=_.ZN(this.hostElement).querySelector("#secondary-inner"),
t&&(x.appendChild(E),x.appendChild(p),this.aiCompanionEnabled&&f&&x.appendChild(f)),x.appendChild(m),x.appendChild(U)):(t&&(_.ik(E,x),_.ik(p,x),this.aiCompanionEnabled&&f&&_.ik(f,x),_.ik(A,p)),_.ik(m,x),b&&_.ik(U,b));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.r("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.r("web_watch_enable_fs_squeezeback_panels")&&_.r("web_watch_theater_chat")){var t=_.ZN(this.hostElement).querySelector("#chat-container"),E=this.theater&&!this.fullscreen||_.r("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&E?(E=_.ZN(this.hostElement).querySelector("#columns"),(t==null?void 0:t.parentElement)!==E&&E.append(t),this.fixedPanels=!0):(this.fixedPanels=
!1,E=_.ZN(this.hostElement).querySelector("#playlist"),t&&E?_.qh(t,E):_.qW(new _.cC("Missing element when updating chat location",{"chatContainer defined":!!t,"playlist defined":!!E})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(t,E){return _.r("sw_metadata_vis_toggle_ks")?!0:!!t||!!E},
computeForceDarkPanelTheme:function(t){return _.r("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&t:!1},
safeUpdateStyles:function(t){try{_.eU(this.hostElement,t)}catch(E){_.qW(E)}},
videoHeightToWidthRatioChanged_:function(t,E){E&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(t){this.videoHeightToWidthRatio_=1/t},
computeIsVerticalVideo_:function(t){return t>=1},
computeIsFourThreeToSixteenNineVideo_:function(t){return t<=.7501&&t>=.5624},
computeIsExtraWideVideo_:function(t){return t<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.rG(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.rG(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){p4d(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(t){var E=_.WL(t)||0;_.o4(t,E+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var t=_.WL("yt-fullerscreen-edu-button-click-count")||0,E=_.WL("yt-fullerscreen-edu-button-shown-count")||0,p=_.z3("external_fullscreen_button_shown_threshold"),U=t>=_.z3("external_fullscreen_button_click_threshold")||E>=p;_.rG(this).getPlayerPromise().then(function(x){x.updateFullerscreenEduButtonSubtleModeState(U)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(t,E){return E},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.X3().resolve(_.kA).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var t=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.ir.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.ir.addLowPriorityJob(function(){t.fullHeightPanelPositionUpdateJobId=0;var E=_.ZN(t.hostElement).querySelector("#secondary"),p=_.ZN(t.hostElement).querySelector("#fixed-secondary");E=E.getBoundingClientRect();var U=E.width;t.swatcherooSqueezeback&&
(U+=M5);if(t.swatcherooSqueezeback){var x=_.ZN(t.hostElement).querySelector("#squeezeback-constraining-container");x.style.width=U+"px";x.style.flex="0 0 "+U+"px"}p.style.width=U+"px";p.style.left=E.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var t=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.ir.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.ir.addLowPriorityJob(function(){t.panelMaxHeightUpdateJob_=0;var E;!t.isTwoColumns_||t.theater||t.fullscreen?E=460:E=t.calculateNormalPlayerSize_().height;var p=E+"px";_.r("live_chat_taller_height")&&!t.theater&&(p="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.r("live_chat_medium_height")&&!t.theater&&(p="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.r("live_chat_scaled_height")&&!t.theater&&(p="calc(100vh - var(--ytd-toolbar-height) - 238px)");t.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":E+"px","--ytd-watch-flexy-chat-max-height":p,"--ytd-watch-flexy-structured-description-max-height":E+"px","--ytd-watch-flexy-comments-panel-max-height":E+"px","--ytd-comments-engagement-panel-content-height":E+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(t){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",t)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.IK(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(t){var E=_.ZN(this.hostElement).querySelector("#engagement-panel-scrim");t?E.addEventListener("tap",_.zI(this,this.onEngagementPanelScrimClick_)):E.removeEventListener("tap",_.zI(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(t){if(this.hostElement.contains(t)&&!this.scrollToAnimation_.isAnimating()){var E=t.offsetTop-24;t=t.offsetTop+t.offsetHeight+24;var p=this.getPageScrollingElement(),U=this.getScrollTop(),x=U+p.clientHeight-56;if(E<U+56)E-=56;else if(t>x)E=t-p.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,E),500)}},
onYtSignalActionScrollToComments:function(){var t=this.hostElement.querySelector("#comments");if(t&&!this.scrollToAnimation_.isAnimating()){t=t.offsetTop-56-24;if(_.r("kevlar_comment_teaser_scroll_to_midpoint")&&(t-=_.NX().height/3,t<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,t),500)}},
onYtEngagementPanelVisibleChanged:function(t,E,p){if(this.active&&this.trackEngagementPanelVisibility&&!Iut.includes(p)){if(E==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.uO(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var U=_.X3().resolve(_.mp);this.visiblePanelIdentifiers_.forEach(function(x){x!==p&&U.hidePanel({identifier:x})})}this.visiblePanelIdentifiers_.add(p)}E!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&E!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(p);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(t){return t?"":"watch-active-metadata"},
computeNewMetadataClass:function(t){return t?"watch-active-metadata":""},
computeIsSingleColumn:function(t,E){return E&&!t},
computeFullBleedPlayer:function(t,E,p){return _.r("external_fullscreen")&&t||E||p},
computeDefaultLayout:function(t){return!t},
computeDefaultTwoColumnLayout:function(t,E){return!t&&E},
updatePanelsLocation:function(){if(_.r("web_watch_enable_fs_squeezeback_panels")){var t=_.ZN(this.hostElement).querySelector("#below"),E=_.ZN(this.hostElement).querySelector("#panels"),p=_.ZN(this.hostElement).querySelector("#playlist"),U=_.ZN(this.hostElement).querySelector("#chat-container"),x=_.ZN(this.hostElement).querySelector("#panels-full-bleed-container"),A=_.ZN(this.hostElement).querySelector("#secondary-inner"),m=_.ZN(this.hostElement).querySelector("#shopping-timely-shelf"),b=_.ZN(this.hostElement).querySelector("#persistent-panel-container");
if(t&&E&&p&&U&&x&&A&&m&&(this.aiCompanionEnabled?b:1)){var f=this.fullscreen||this.theater&&this.iMaxTheaterMode,B=this.theater&&!this.fullscreen&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;B?(B=_.ZN(this.hostElement).querySelector("#columns"),(U==null?void 0:U.parentElement)!==B&&B.append(U),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):f?x.appendChild(U):this.isTwoColumns_?lM(A,U):lM(t,U);f?(x.appendChild(E),x.appendChild(p),
this.aiCompanionEnabled&&b&&x.appendChild(b)):(this.isTwoColumns_?(lM(A,E),lM(A,p),this.aiCompanionEnabled&&b&&lM(A,b)):(lM(t,E),lM(t,p),this.aiCompanionEnabled&&b&&lM(t,b)),lM(t,m))}}},
swatcherooUpdatePanelsLocation:function(t,E,p,U,x,A){if(this.is==="ytd-watch-grid"){E=t&&!E;this.swatcherooSplitScroll&&(E?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));p=_.ZN(this.hostElement).querySelector("#panels");var m=_.ZN(this.hostElement).querySelector("#playlist"),b=_.ZN(this.hostElement).querySelector("#persistent-panel-container"),
f=_.ZN(this.hostElement).querySelector("#fixed-secondary"),B=_.ZN(this.hostElement).querySelector("#fixed-below"),R=_.ZN(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),V=_.ZN(this.hostElement).querySelector("#chat-container");A&&(t?(f.appendChild(p),this.aiCompanionEnabled&&b&&f.appendChild(b)):(B.appendChild(p),this.aiCompanionEnabled&&b&&B.appendChild(b)));x?t?f.appendChild(V):B.appendChild(V):_.qh(V,R);U?t?f.appendChild(m):B.appendChild(m):_.qh(m,
R);this.swatcherooSplitScroll&&(t=_.ZN(this.hostElement).querySelector("#secondary"),U=_.ZN(this.hostElement).querySelector("#columns"),x=_.ZN(this.hostElement).querySelector("#fixed-columns-secondary"),E?x.appendChild(t):U.appendChild(t))}},
computeMetadataSkinnyMode:function(t,E,p){return this.is!=="ytd-watch-grid"?!1:t?p:E},
computeWatchWhilePanelsActive:function(t,E){return t||E},
computeNoBorderOnChat:function(t){return _.r("web_watch_theater_chat_no_border")&&t},
computeLiveChatPresentAndExpanded:function(t,E){return t&&!E},
computePanelExpanded:function(t,E,p){return t||E||p},
computeSqueezeback:function(t,E,p,U){if(_.r("web_watch_enable_fs_squeezeback_panels")){var x=this.iMaxTheaterMode&&this.theater,A=this.theater&&!this.iMaxTheaterMode;return(t||E||p)&&(x||U)||E&&A}},
computeSwatcherooSqueezeback:function(t,E,p){return this.is!=="ytd-watch-grid"||_.r("ww_squeezeback_killswitch")?!1:t&&E&&p},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(t){_.rG(this).getPlayerPromise().then(function(E){var p;(p=E.changeMarkerVisibility)==null||p.call(E,_.k(t,ak).isVisible||!1,_.k(t,ak).entityKeys||[],_.k(t,ak).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(t){this.liveChatCollapsed=t.detail;_.QM().dispatch(Mxo(t.detail));if(!this.liveChatCollapsed&&this.squeezeback){var E=_.X3().resolve(_.mp);this.visiblePanelIdentifiers_.forEach(function(p){E.hidePanel({identifier:p})})}},
onSetPlaylistCollapsed:function(t){_.r("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!t)},
provideRenderingData:function(t,E){switch(t){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=E;break;case "PRIMARY_INFO":_.r("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=E);this.videoPrimaryInfoRendererValue=E==null?void 0:E.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.r("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=E);this.videoSecondaryInfoRendererValue=E==null?void 0:E.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
E;break;case "CLARIFICATION":this.clarifyBoxValue=E;break;case "LIVE_CHAT":this.conversationBar=E;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=E;break;case "PLAYLIST":this.externalPlaylistData_=E!=null?E:{};break;case "MERCH_SHELF":this.merchShelfValue=E==null?void 0:E.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=E;break;case "TICKET_SHELF":this.ticket=E;break;case "OFFER_MODULE":this.offerModule=E;break;case "LIMITED_STATE":this.limitedStateValue=
E;break;case "DONATION_SHELF":this.donation=E;break;case "ALERTS":this.alertsValue=E;break;case "COMMENTS":this.comments=E;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=E;break;case "ENGAGEMENT_PANELS":this.engagementPanels=E;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=E;break;case "RICH_GRID_RENDERER":this.richGridRendererData=E;break;case "EXPANDABLE_METADATA":this.expandableMetadata=E;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
E;break;case "IS_TWO_COLUMNS":this.isTwoColumns_=E;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=E}},
toggleCinematicsActive:function(t){this.cinematicsActive=t},
isMiniplayerActive:function(){return _.X3().resolve(_.bf).isMiniplayerActive()}}];var p1L=function(t,E){var p;return((p=t.prefixMapping)==null?0:p[E])?t.prefixMapping[E]:t.SHARED_RENDERERS_.hasOwnProperty(E)?"yt":t.prefix},pI={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}};pI.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.r("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"}};
pI.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};pI.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};pI.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
pI.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)"}};
pI.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};
pI.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};
pI.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};
pI.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0,addSpacing:_.r("kevlar_add_spacing_to_sheets")},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0,styles:{"max-width":"400px"}};
pI.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"}};pI.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};pI.TOAST={component:null,properties:{}};var UPK=new function(t,E,p){this.supportedPopups=t;this.navigationEndpointPopupMap=E;this.popupTypeMap=p;this.supportedPopups=t;this.navigationEndpointPopupMap=E;this.popupTypeMap=p}({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:_.r("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"}),xPe=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unifiedSharePanelRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,
upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$21541_popupConfig=pI;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 Aae=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.fE.getInstance()},UK=function(t,E){var p=t.pageNameToElement.get(E);
if(!p){switch(E){case "watch":var U=_.r("web_watch_force_learning_journey_for_testing")?_.XA("ytd-watch-learning-journey"):_.r("kevlar_watch_fixie")?_.XA("ytd-watch-fixie"):_.r("kevlar_watch_grid")?_.XA("ytd-watch-grid"):_.XA("ytd-watch-flexy");break;case "learning_journey_watch":U=_.XA("ytd-watch-learning-journey");break;case "shorts":U=_.XA("ytd-shorts");break;case "search":U=_.XA("ytd-search");break;case "channel":U=_.XA("ytd-browse");U.pageSubtype="channels";break;case "trending":U=_.XA("ytd-browse");
U.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "companion-canvas":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":case "your-courses":case "report-history":U=
_.XA("ytd-browse");U.pageSubtype=E;break;case "browse":U=_.XA("ytd-browse");break;default:_.qW(new _.cC("Error getting page element for type",E))}p=U;t.pageNameToElement.set(E,p)}return p};
Aae.prototype.preparePage=function(t,E,p){p&&(t=_.z2(p)||t);if(t!=="watch"&&t!=="learning_journey_watch"){var U=this.elementPoolPopulator,x=t;x!=U.targetPage_&&U.pendingPages_.indexOf(x)>-1&&(U.targetPage_&&(U.pendingPages_.unshift(U.targetPage_),U.abort()),qH9(U,x),_.pbo(U,x))}if((U=UK(this,t))||!_.k(p,_.kX)){U.isAttached||U===E||(U.hidden=!0);if(!U.data&&(t!=="watch"&&t!=="learning_journey_watch"||!_.r("swatcheroo_page_pool_dont_provide_filler_data"))){var A;if(t=(A=_.qO("FILLER_DATA",{})[t])==
null?void 0:A.response)U.data=t}return U}};var YKJ=function(t){this.JSC$33365_clientRoot=t;this.playlistHandlerActionMap={"yt-add-to-playlist-command":f2J,"yt-end-playlist-command":BIJ,"yt-recover-playlist-command":RQg,"yt-refresh-playlist-command":CmL,"yt-playlist-remove-videos-action":Vc9};_.uV(_.d1.getInstance(),this.playlistHandlerActionMap,this.JSC$33365_clientRoot);ZJL()},M7l;var xP=function(t,E,p){this.apiKey=t;this.endpoint=E;this.confidenceThreshold=p===void 0?.5:p;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=E==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||E==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
E==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||E==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new YUJ};
_.Y=xP.prototype;
_.Y.start=function(t){if(this.state===0)if(this.isOnline()){t.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=t.supportsHttpHeadersOverwriteParam);t.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=t.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.yS("voice_assistant");_.cD("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=t.languageCode||"en-US";this.supportsCrossDomainXhr=t.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=t.youtubeAssistantRequest||null;this.listeningHandler=t.listeningHandler||this.listeningHandler;this.audioDetectedHandler=t.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=t.stopHandler||this.stopHandler;this.completeHandler=t.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=t.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=t.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
t.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=t.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=t.accessToken;this.additionalHeaders=t.additionalHeaders||{};var E;this.prefetchResponseTimeoutMs=(E=t.prefetchResponseTimeoutMs)!=null?E:this.prefetchResponseTimeoutMs;mPe(this);this.startAudio();bIg(this)}else this.errorHandler("OFFLINE")};
_.Y.stop=function(t){var E=t===void 0?{}:t;t=E.logCancel===void 0?!0:E.logCancel;var p=E.logMicClosed===void 0?!0:E.logMicClosed;var U=E.handleError===void 0?!0:E.handleError;E=E.handleStop===void 0?!0:E.handleStop;this.state!==0&&(t&&Aa("voz_cx"),YP(this,{logMicClosed:p,handleStop:E}),U&&this.errorHandler("ABORTED"))};
_.Y.getState=function(){return this.state};
_.Y.isSupported=function(){return!0};
_.Y.stopAudio=function(t){(t===void 0||t)&&Aa("voz_mf")};
_.Y.startAudio=function(){Aa("voz_vp");return _.gu(null)};
var iIl=function(t,E){t.channelOpen&&(t.state!==2&&(t.state=2,Aa("voz_ss"),t.listeningHandler()),E=new Uint8Array(E),E='{ "audioIn": "'+_.S$(E)+'" }',t.channel.send(E))},YP=function(t,E){var p=E===void 0?{}:E;
E=p.logMicClosed===void 0?!0:p.logMicClosed;p=p.handleStop===void 0?!0:p.handleStop;t.vozEndOfDataTimeout>-1&&(clearTimeout(t.vozEndOfDataTimeout),t.vozEndOfDataTimeout=-1);qKC(t);t.stopAudio(E);t.channel&&(t.channelOpen=!1,t.manuallyClosedChannel=!0,t.channel.close(),t.channel=void 0);t.transcribedSpeechResults=[];t.state=0;p&&t.stopHandler()},mPe=function(t){var E={httpHeadersOverwriteParam:t.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},t.additionalHeaders,t.accessToken&&t.isUsingVoz?{Authorization:"Bearer "+t.accessToken}:{"x-goog-api-key":t.apiKey}),supportsCrossDomainXhr:t.supportsCrossDomainXhr};t.channel=new dO(t.endpoint,E);t.channel.open();_.vu(t.channel,"w",function(){var p=t.channel,U=p.send,x=t.isUsingVoz?"PLACEHOLDER":"example";x={config:{dialogStateIn:{languageCode:t.languageCode},deviceConfig:{deviceId:x,deviceModelId:x},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!t.isUsingVoz)x.config.requestType=4;else if(t.isUsingVoz&&t.youtubeAssistantRequest){var A=JSON.stringify(t.youtubeAssistantRequest);x.config.internalIn={youtubeAssistantS3InputJson:A}}U.call(p,x);t.channelOpen=!0;t.manuallyClosedChannel=!1});
_.vu(t.channel,"x",function(){t.manuallyClosedChannel||(t.channelOpen=!1,t.channel=void 0,YP(t))});
_.vu(t.channel,"z",function(p){if(p.data){qKC(t);for(var U=0;U<p.data.length;U++){var x=t,A=p.data[U],m=A.speechResults;if(m)a:{var b=[];A=[];var f=!1;m=_.M(m);for(var B=m.next();!B.done;B=m.next()){B=B.value;if(B.noSpeech){YP(x);x.errorHandler("NO_SPEECH");break a}B.transcript!==void 0&&B.stability!==void 0&&(B.stability<x.confidenceThreshold&&(f=!0),f?A.push(B.transcript):b.push(B.transcript))}if(b.length!==0||A.length!==0)b=b.join(" "),A=A.join(" "),x.receivedEndOfUtterance&&!x.isUsingVoz?x.isUsingVoz||
x.completeHandler([b,A]):(f=x,m=b,B=A,Aa("voz_sf"),f.transcriptionUpdateHandler(m,B),f.transcribedSpeechResults=[m,B]),x.receivedEndOfUtterance&&(Aa("voz_eou"),x.transcriptionCompleteHandler([b,A]),x.isUsingVoz&&(x.prefetchResponseTimeoutMs===0?YP(x,{logMicClosed:!1,handleStop:!0}):x.prefetchResponseTimeoutMs>0&&HIo(x)))}else x.isUsingVoz&&(A==null?0:A.internalOut)?(A=JSON.parse(A.internalOut.youtubeAssistantS3OutputJson),A.userHasOptedInToVaa||A.vaaConsent?x.vaaConsentUpdateHandler(!!A.userHasOptedInToVaa,
!!A.vaaConsent):(fWb(x),A&&(b=x.transcribedSpeechResults,Aa("voz_rqf"),x.completeHandler(b,A)))):A.eventType==="END_OF_UTTERANCE"?x.receivedEndOfUtterance=!0:(Aa("voz_err"),x.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.qW(Error("Pl")))}}});
_.vu(t.channel,"y",function(p){YP(t);switch(p.status){case 1:p="WEBCHANNEL_NETWORK_ERROR";break;case 2:p="WEBCHANNEL_SERVER_ERROR";break;default:p="WEBCHANNEL_UNKNOWN_ERROR"}t.errorHandler(p);t.logError(Error(p))})};
xP.prototype.logError=function(t){_.bV(t)};
xP.prototype.isOnline=function(){return!0};
var HIo=function(t){fWb(t);t.prefetchResponseSetTimeoutId=setTimeout(function(){YP(t,{logMicClosed:!1,handleStop:!0})},t.prefetchResponseTimeoutMs)},fWb=function(t){t.prefetchResponseSetTimeoutId>-1&&(clearTimeout(t.prefetchResponseSetTimeoutId),t.prefetchResponseSetTimeoutId=-1)},bIg=function(t){qKC(t);
t.noResponseReceivedTimeout=window.setTimeout(function(){YP(t);t.errorHandler("NO_SPEECH")},11E3)},qKC=function(t){t.noResponseReceivedTimeout>-1&&(window.clearTimeout(t.noResponseReceivedTimeout),t.noResponseReceivedTimeout=-1)},Aa=function(t){_.SR(t,void 0,"voice_assistant")};var MP=function(){xP.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.u(MP,xP);MP.prototype.isSupported=function(){return j7J()};
MP.prototype.startAudio=function(){var t=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.S5(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(U){Bdl(t,U)};
this.processor.connect(this.audioContext.destination);var E=function(U){t.stream=U;if(!t.audioContext)return _.gu(null);U=t.audioContext.createMediaStreamSource(U);t.processor&&U.connect(t.processor);return _.gu(null)},p={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?E(this.stream):(p=navigator.mediaDevices.getUserMedia(p))?p.then(E).catch(function(U){YP(t);U.name&&U.name==="NotAllowedError"?t.errorHandler("NO_MICROPHONE_PERMISSION"):(t.errorHandler("AUDIO_ERROR"),t.logError(U));return _.S5(null)}):(YP(this),this.errorHandler("AUDIO_ERROR"),_.qW(Error("Ql")));
return xP.prototype.startAudio.call(this)};
MP.prototype.stopAudio=function(t){t=t===void 0?!0:t;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(E){E.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;xP.prototype.stopAudio.call(this,t)};
MP.prototype.isOnline=function(){return navigator.onLine};
var Bdl=function(t,E){if(t.audioContext)if(window.OfflineAudioContext){var p=t.audioContext.sampleRate,U=E.inputBuffer.getChannelData(0);E=new window.OfflineAudioContext(1,U.length,16E3);for(var x=E.createBuffer(1,U.length,p),A=x.getChannelData(0),m=0,b=0;b<U.length;b++)A[b]=U[b],m+=A[b]*A[b];!t.audioDetected&&Math.sqrt(m/U.length)>.01&&(t.audioDetected=!0,t.audioDetectedHandler());U=E.createBufferSource();U.buffer=x;U.connect(E.destination);U.start(0);E.oncomplete=function(f){f=f.renderedBuffer.getChannelData(0);
for(var B=Math.floor(16384E3/p),R=new Int16Array(B),V=0;V<B;++V)R[V]=Math.max(-1,Math.min(1,f[V]))*32767;iIl(t,R.buffer)};
E.startRendering()}else w1o(t,E)},w1o=function(t,E){var p=t.audioContext.sampleRate,U=E.inputBuffer.getChannelData(0),x=Math.floor((p+8E3)/16E3);
p=U.length/x;E=new Float32Array(p);for(var A=0;A<p;++A)E[A]=U[A*x];U=new Int16Array(p);for(x=0;x<p;++x)U[x]=Math.max(-1,Math.min(1,E[x]))*32767;iIl(t,U.buffer)};var Ryd={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var V7o=function(){this.JSC$21606_audioEnabled=!0;this.audioFeedbackHolder={}};
V7o.prototype.isPlaying=function(t){return t.currentTime>0&&!t.paused&&!t.ended&&t.readyState>2};
var Q1C=function(t){for(var E=_.M(Object.values(Ryd)),p=E.next();!p.done;p=E.next())p=p.value,t.audioFeedbackHolder[p]=new Audio,t.audioFeedbackHolder[p].src="/s/search/audio/"+p+".mp3",t.audioFeedbackHolder[p].load()},ms=function(t,E){if(t.JSC$21606_audioEnabled!==!1&&E in t.audioFeedbackHolder){for(var p=_.M(Object.values(t.audioFeedbackHolder)),U=p.next();!U.done;U=p.next())U=U.value,t.isPlaying(U)&&U.pause();
t.audioFeedbackHolder[E].currentTime=0;t.audioFeedbackHolder[E].play().catch(function(){})}};var Cv8=function(t,E){var p=this;this.store=t;this.service=E;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){p.setState("offline");p.stop()};
this.audioPlayer=new V7o;var U;(U=this.audioPlayer)==null||Q1C(U)};
_.Y=Cv8.prototype;_.Y.getService=function(){return this.service};
_.Y.isEnabled=function(){return!!this.service};
_.Y.isSupported=function(){var t;return(t=this.service)==null?void 0:t.isSupported()};
_.Y.start=function(){var t=this,E,p,U,x,A,m,b,f,B,R,V,Q,C;return _.q(function(d){switch(d.nextAddress){case 1:t.store.dispatch(mi9("",""));if(!navigator.onLine)return t.setState("offline"),d.return();window.addEventListener("offline",t.handleOfflineEvent);t.stream=null;if(!t.permissionsSupported){d.jumpTo(2);break}_.aR(d,3);return d.yield(j1d(t),5);case 5:E=d.yieldResult;if(!E)return(p=t.audioPlayer)==null||ms(p,"failure"),d.return();t.service.stream=t.stream;t.setState("listening");_.r7(d,2);break;
case 3:_.nB(d),t.permissionsSupported=!1;case 2:U={context:_.LD8(_.zM())},U.youtubeAssistantParams={searchParams:{inlineSearchResponse:t.enableInlineSearchResponse}},x=function(I,O){t.store.dispatch(bm7("transcribing"));t.store.dispatch(mi9(I,O))},A=function(){var I;
(I=t.audioPlayer)==null||ms(I,"open");t.setState("listening")},m=function(){t.setState("transcribing")},b=function(I){t.setErrorState(I)},f=function(I,O){var a;
(a=t.audioPlayer)==null||ms(a,"success");O&&(_.r("kevlar_voice_search_inline_search")&&(t.responseProcessor=_.X3().resolve(_.v5K),t.responseProcessor&&(a=O.navigationAction,I=O.prefetchedSearchResponse,a&&I&&(a=(new _.Ggb).JSC$14452_getStoreKey(a),_.Bn(t.responseProcessor,I,a)))),t.JSC$21624_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",O))},B=function(){window.removeEventListener("offline",t.handleOfflineEvent)},R=_.S5L(!1),V=R.Authorization!=null,Q=t.enableFirstPartyAuth||
t.enableFPAForSignedInUsers&&V?R:{"X-Goog-Visitor-Id":R["X-Goog-Visitor-Id"]},C={completeHandler:f,
errorHandler:b,listeningHandler:A,audioDetectedHandler:m,stopHandler:B,transcriptionUpdateHandler:x,youtubeAssistantRequest:U,languageCode:rag(),additionalHeaders:Q,supportsCrossDomainXhr:t.enableFirstPartyAuth||t.enableFPAForSignedInUsers&&V,supportsHttpHeadersOverwriteParam:!t.disableHttpHeadersOverwrite},t.service.start(C),_.Do(d)}})};
_.Y.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.Y.reset=function(){this.store.dispatch(_.Jj({type:"RESET_VOICE_SEARCH_STATE"}))};
_.Y.setState=function(t){this.store.dispatch(bm7(t))};
_.Y.setErrorState=function(t){switch(t){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var E;(E=this.audioPlayer)==null||ms(E,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)j1d(this);else{var p;(p=this.audioPlayer)==null||ms(p,"failure");this.setState("permission-denied")}break;case "ABORTED":var U;(U=this.audioPlayer)==null||ms(U,"no_input");break;default:var x;(x=this.audioPlayer)==
null||ms(x,"no_input");this.setState("timeout")}};
var j1d=function(t){var E,p;return _.q(function(U){switch(U.nextAddress){case 1:return U.yield(navigator.permissions.query({name:"microphone"}),2);case 2:E=U.yieldResult;if(E.state==="granted")return U.return(!0);if(E.state==="denied")return t.setState("permission-denied"),U.return(!1);t.setState("permission");p={audio:{sampleSize:16,channelCount:1},video:!1};_.aR(U,3);return U.yield(navigator.mediaDevices.getUserMedia(p),5);case 5:return t.stream=U.yieldResult,U.return(!0);case 3:return _.nB(U),
t.setState("permission-denied"),U.return(!1)}})},rag=function(){var t=_.qO("INNERTUBE_CONTEXT_HL"),E=_.qO("INNERTUBE_CONTEXT_GL");
return t.indexOf("-")>-1?t:t+"-"+E};var ku8=function(t,E,p){Cv8.call(this,E,p);this.JSC$21624_actionRouter=t;this.enableInlineSearchResponse=_.r("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.r("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.r("kevlar_voice_search_enable_fpa_signedin_users")},dP8;
_.u(ku8,Cv8);
var udK=function(){if(!dP8){var t="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.r("kevlar_voice_search_auth_enabled")||_.r("kevlar_voice_search_use_yt_endpoint")?t="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.r("kevlar_voice_search_use_fp_endpoint")&&(t="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");dP8=
new ku8(_.d1.getInstance(),_.QM(),new MP(_.qO("VOZ_API_KEY"),t,.5))}return dP8};var Jad=function(t){this.JSC$21628_clientRoot=t;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$21628_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)]]));t=_.M(this.eventListeners);for(var E=t.next();!E.done;E=t.next()){var p=
_.M(E.value);E=p.next().value;p=p.next().value;p=_.M(p);for(var U=p.next();!U.done;U=p.next()){var x=_.M(U.value);U=x.next().value;x=x.next().value;E.addEventListener(U,x)}}_.uV(_.d1.getInstance(),this.autonavPauseActionMap,this.JSC$21628_clientRoot)},IW9,gP8=function(t){return _.r("kevlar_autonav_popup_filtering")?(t=_.Qx(t))?t.hasAttribute("prevent-autonav"):!0:!0};
_.Y=Jad.prototype;_.Y.onIronOverlayOpened=function(t){gP8(t)&&(this.autonavPauseReasons.overlayOpen=!0,bv(this))};
_.Y.onIronOverlayClosed=function(t){gP8(t)&&(this.autonavPauseReasons.overlayOpen=!1,bv(this))};
_.Y.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;bv(this)};
_.Y.onYtAutonavPauseBlur=function(){var t=this;_.ir.addJob(function(){ZIK()||(t.autonavPauseReasons.inputBoxFocus=!1,bv(t))},8,0)};
_.Y.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;bv(this)};
_.Y.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;bv(this)};
_.Y.onYtAutonavPauseScroll=function(){var t=_.X3().resolve(_.jw);t.isOnWatch()&&(t=t.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=t.getBoundingClientRect().top<-200,bv(this))};
_.Y.onYtAutonavPauseUserEngagement=function(t){var E=this;if(_.r("user_engagement_enable_autoplay_pause_feature")){var p=Number(t.lowEngagementThresholdMs);isNaN(p)||p<=0||t.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?mN("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.X3().resolve(_.Ly),_.af()<p?_.E_(_.ir,function(){mN("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):B4g()?(this.userEngagementCsn=_.yL(),_.E_(_.ir,function(){mN("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
E.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,bv(this)):mN("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.c8J(Error("Rl`"+JSON.stringify(t)))};
_.Y.onYtAutonavPausePlayer=function(t){this.autonavPauseReasons.requestedByPlayer=!!t.detail;bv(this)};
_.Y.onYtAutonavVisibilityChanged=function(){var t=this,E,p,U;return _.q(function(x){if(x.nextAddress==1)return(E=_.k1())?x.yield(E.getPlayerPromise(),2):x.return();p=x.yieldResult;U=p.isMuted()||p.getVolume()===0;t.autonavPauseReasons.backgroundAndMute=ZIK()&&U;bv(t);_.Do(x)})};
_.Y.onYtAutonavPausePlayerEnded=function(){_.X3().resolve(_.Ly);var t=144E5;_.r("user_engagement_enable_autoplay_pause_feature")||_.r("is_part_of_any_user_engagement_experiment")||(t=45E5);this.autonavPauseReasons.longIdle=_.af()>t;OIJ(this);bv(this)};
_.Y.onYtUserActivity=function(){var t=this;this.autonavPauseReasons.userEngagement&&(_.E_(_.ir,function(){mN("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",t.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,bv(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.E_(_.ir,function(){mN("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",t.userEngagementCsn);_.mL()}),this.autonavPauseReasons.youthereLactExperiment=!1,bv(this));
this.autonavPauseReasons.longIdle&&!_.r("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,bv(this))};
var ZIK=function(){var t=window.document.visibilityState;return!(!t||t==="visible")},bv=function(t){for(var E=!1,p=_.M(Object.values(t.autonavPauseReasons)),U=p.next();!U.done;U=p.next())U=U.value,E=E||U;
E?_.e3.getInstance().pause(t.autonavPauseReasons):(t=_.e3.getInstance(),t.autonavState_==3?(t.setState(2,!1,!1),t.autonavPauseReason_=void 0):t.autonavState_==1&&(t.disabledAutonavPauseReason_=void 0))},OIJ=function(t){var E=!1;
if(_.r("enable_autoplay_pause_by_lact")){_.X3().resolve(_.Ly);E=_.z3("autoplay_pause_by_lact_sec")*1E3;var p=_.z3("autoplay_pause_by_lact_sampling_fraction");(E=_.af()>=E&&Math.random()<p)&&!B4g()&&(_.E_(_.ir,function(){mN("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),E=!1)}E!==t.autonavPauseReasons.youthereLactExperiment&&(t.autonavPauseReasons.youthereLactExperiment=E)&&(t.userEngagementCsn=_.yL(),_.E_(_.ir,function(){mN("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",t.userEngagementCsn)}));
t.autonavPauseReasons.userEngagement&&_.E_(_.ir,function(){mN("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",t.userEngagementCsn)})};
Jad.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(mN("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.mL(),this.autonavPauseReasons.youthereLactExperiment=!1,bv(this));this.autonavPauseReasons.userEngagement&&(mN("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,bv(this))};
Jad.prototype.onYtEngagementPanelVisibleChanged=function(t){t.detail&&t.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=t.detail.visible,bv(this))};
Jad.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var X1L=_.i7.persistentPanelVisibleSelector,iv=function(){var t=_.z.apply(this,arguments)||this;t.miniGuideVisible=!1;t.guideOpened=_.r("disable_initial_guide_state_fix")?!1:t.canFitPersistentGuide(t.initialBodyClientWidth);t.guideUserStateOpened=t.getInitialGuideUserStateOpened();t.isFullscreenShorts=!1;t.miniGuideWidthThreshold=_.z3("kevlar_mini_guide_width_threshold",791);t.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
t.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");t.persistentGuideBlockedPagePathRegex=new RegExp(t.persistentGuideBlockedPagesPatterns.join("|"));t.animationTransitionDuration=0;t.lateDataResolver=_.fd();t.initialGuideDataFetchFailed=!1;t.initialLoad=!0;t.guideRenderers=new Set;t.isMouseOverGuide=!1;t.sessionUserManuallyExpandedGuideState=
!1;t.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return t};
_.u(iv,_.z);_.Y=iv.prototype;_.Y.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.Y.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.Y.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.Y.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.Y.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.Y.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.Y.ready=function(){_.X3().addProvider({provide:_.CE,useValue:this.hostElement})};
_.Y.attached=function(){var t=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.zI(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.zI(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.zI(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.zI(this,this.onYtGuideShow));_.XE(this,function(){t.animationTransitionDuration=200})};
_.Y.detached=function(){document.removeEventListener("yt-navigate-finish",_.zI(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.zI(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.zI(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.zI(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.zI(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.zI(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.zI(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.Y.getData=function(){return this.data};
_.Y.load=function(){var t=this,E,p,U,x;return _.q(function(A){switch(A.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=t.lateDataResolver.resolve.bind(t),A.return(t.lateDataResolver.promise);if(window.ytInitialGuideData)return E=_.fd(),E.resolve(window.ytInitialGuideData),A.return(E.promise);U=!1;_.aR(A,2);return A.yield(t.fetchGuideData(),4);case 4:p=A.yieldResult;_.r7(A,3);break;case 2:x=_.nB(A),x.message==="Returned error"&&(U=
!0);case 3:if(p)return A.return(p);t.onYtGuideClose();U||(t.initialGuideDataFetchFailed=!0);return A.return(t.lateDataResolver.promise)}})};
_.Y.fetchGuideData=function(){var t=this,E,p,U,x,A,m,b;return _.q(function(f){if(f.nextAddress==1)return E=_.X3(),t.guidePromise||(p=E.resolve(_.PL),t.guidePromise=_.H9(p,FSe)),f.yield(t.guidePromise,2);if(f.nextAddress!=3)return U=f.yieldResult,x=E.resolve(_.mO),f.yield(x(),3);(A=f.yieldResult)&&((m=U)==null?void 0:(b=m.responseContext)==null?void 0:b.maxAgeSeconds)!==0&&A.put("service:guide:fallback",new _.ol({innertubeResponse:U}));return f.return(U)})};
_.Y.initializeGuideDataIfEmpty=function(){var t=this,E,p;return _.q(function(U){if(U.nextAddress==1){if(!t.initialGuideDataFetchFailed||t.data)return U.return();_.aR(U,2);return U.yield(t.fetchGuideData(),4)}if(U.nextAddress!=2)return(E=U.yieldResult)&&t.lateDataResolver.resolve(E),_.r7(U,0);p=_.nB(U);_.qW(p);_.Do(U)})};
_.Y.initializeGuideData=function(){var t=this,E,p;return _.q(function(U){switch(U.nextAddress){case 1:return _.Gs(jEl(),{mainAppWeb:_.f0()}),_.aR(U,2),U.yield(t.load(),4);case 4:t.data=U.yieldResult;_.r7(U,3);break;case 2:E=_.nB(U),_.nr(jEl(),"FAILURE"),_.qW(new _.cC("Guide data not present",{errorMessage:E.message}));case 3:p=t.data&&t.data.items&&t.data.items.length>0?"SUCCESS":"FAILURE",p==="FAILURE"&&_.qW(new _.cC("Guide data.items empty")),_.nr(jEl(),p),_.Do(U)}})};
_.Y.setGuideData=function(t){var E=this,p,U;return _.q(function(x){if(x.nextAddress==1)return E.disabled?x.return():E.data?(t.data=E.data,E.guideRenderers.add(t),x.return()):x.yield(E.initializeGuideData(),2);E.graftGuideToPage();p=_.HC("IS_HOMEPAGE_COLD")?"eop":void 0;_.r("disable_element_pool_populator")?E.setGuideDataAfterInit(t):(U=new _.hS(1,p),_.aO(U,E.setGuideDataAfterInit.bind(E,t)));_.Do(x)})};
_.Y.setGuideDataAfterInit=function(t){t.data=this.data;t.markDirty();this.guideRenderers.add(t);_.iR(function(){_.SR("gle")});
_.XE(this,function(){_.SR("gpe")})};
_.Y.graftGuideToPage=function(){if(this.data){var t=this.data&&this.data.trackingParams;t&&(t=_.$8(t),_.oy(_.Pu(),t))}};
_.Y.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.zI(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.Y.onDrawerOpenedChanged=function(t,E){!E.value&&this.guideOpened&&(this.guideOpened=!1)};
_.Y.onYtGuideToggle=function(t){var E=this.guideOpened;this.guideOpened=!E;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var p=_.nF();_.N_(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;p.save()}this.updateGuideDrawerElementState();if(this.guideElement){var U;this.guideOpened&&((U=t.detail)==null?0:U.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.zI(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.zI(this,this.onAppDrawerTransitioned))}E||this.initializeGuideDataIfEmpty()};
_.Y.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.zI(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.If(this.guideElement)};
_.Y.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.zI(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(Ebe(this.guideOpened))};
_.Y.guidePersistentAndVisibleChanged=function(){_.uO(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.Y.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.Jj({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.Y.miniGuideVisibleChanged=function(){_.uO(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.Y.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(Ebe(this.guideOpened)),this.initialLoad=!1);_.uO(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.Y.activeEndpointChanged=function(){_.uO(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.Y.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.pageType)if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.Y.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()};
_.Y.cachedClientWidthChanged=function(){this.updateGuideState()};
_.Y.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.Y.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var t=this.canFitPersistentGuide(this.cachedClientWidth);t?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=t}this.updateGuideDrawerElementState()};
_.Y.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.Y.getGuideOpened=function(){return this.guideOpened};
_.Y.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.Y.getActiveEndpoint=function(){return this.activeEndpoint};
_.Y.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.Y.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&&_.kT(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.Y.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.r("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.Y.handleGuideMouseLeave=function(){var t=this;!this.sessionUserManuallyExpandedGuideState&&_.r("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.qd(this,"handleGuideMouseLeave",function(){t.isMouseOverGuide||!t.guideOpened||t.miniGuideVisible||(t.guideOpened=!1,t.updateGuideDrawerElementState())},100))};
_.Y.computeGuidePersistentAndVisible=function(){var t=this;_.qd(this,"computeGuidePersistentAndVisible",function(){t.guidePersistentAndVisible=t.guideOpened&&t.guidePersistent;t.guideIsVisibleButNotPersistent=!(!t.guideOpened||t.guidePersistent)})};
_.Y.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.Y.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.Y.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.Y.startLoadingWatch=function(){this.closeGuide()};
_.Y.startLoadingShorts=function(){_.r("web_hide_guide_on_shorts")&&this.closeGuide()};
_.Y.onYtNavigateFinish=function(t,E){if(!_.FI||E){this.activeEndpoint=E.endpoint;this.pageType=E.pageType;this.pageUrl=E.response.url;var p,U;t=(U=_.k((p=E.endpoint)==null?void 0:p.commandMetadata,_.hZ))==null?void 0:U.url;!this.pageUrl&&t&&(this.pageUrl=t);_.r("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.Y.getVisibleGuideRenderer=function(){for(var t=_.M(this.guideRenderers),E=t.next();!E.done;E=t.next())if(E=E.value,this.miniGuideVisible&&E.is==="ytd-mini-guide-renderer"||this.guideOpened&&E.is==="ytd-guide-renderer")return E;return null};
_.Y.markGuideRendererDirty=function(t){if(t){typeof t.markDirty==="function"&&t.markDirty();t=_.M([].concat(_.KB(_.ZN(t).children)));for(var E=t.next();!E.done;E=t.next())this.markGuideRendererDirty(E.value)}};
_.Y.persistentGuideEnabled=function(t,E){if(!E||t==="watch"||t==="settings"||t==="shorts"&&this.isFullscreenShorts||_.r("reels_web_disable_persistent_guide_shorts")&&t==="shorts")return!1;var p=_.LR(E)||"";return _.r("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(U){return p===U}):!this.persistentGuideBlockedPagePathRegex.test(p)};
_.Y.canFitPersistentGuide=function(t){var E=_.z3("kevlar_persistent_guide_width_threshold",1312);return E===-1||_.r("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:t>this.calculateGuideThreshold(E)};
_.Y.calculateGuideThreshold=function(t){return _.r("enable_ai_companion")?t+(this.persistentPanelVisible?400:0):t};
_.Y.canFitMiniGuide=function(t){return this.miniGuideWidthThreshold===-1?!1:t>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.Y.onResize=function(){var t=this;_.qd(this,"calculateGuideState",function(){t.onResizeDebounced()})};
_.Y.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.Y.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.Y.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.Y.getInitialGuideUserStateOpened=function(){return _.r("web_force_mini_guide_default")?!1:!_.nF().getFlag(109)};
_.aE.Object.defineProperties(iv.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.qO("initialBodyClientWidth")||window.innerWidth}}});
iv.prototype.onResize=iv.prototype.onResize;iv.prototype.observeForMiniGuideVisible=iv.prototype.observeForMiniGuideVisible;iv.prototype.computeGuidePersistentAndVisible=iv.prototype.computeGuidePersistentAndVisible;iv.prototype.persistentPanelVisibleChanged=iv.prototype.persistentPanelVisibleChanged;iv.prototype.cachedClientWidthChanged=iv.prototype.cachedClientWidthChanged;iv.prototype.resetGuide=iv.prototype.resetGuide;iv.prototype.activeEndpointChanged=iv.prototype.activeEndpointChanged;
iv.prototype.guideOpenedChanged=iv.prototype.guideOpenedChanged;iv.prototype.miniGuideVisibleChanged=iv.prototype.miniGuideVisibleChanged;iv.prototype.guideIsVisibleButNotPersistentChanged=iv.prototype.guideIsVisibleButNotPersistentChanged;iv.prototype.guidePersistentAndVisibleChanged=iv.prototype.guidePersistentAndVisibleChanged;iv.prototype.onGuideElementChanged=iv.prototype.onGuideElementChanged;iv.prototype.onGuidePersistentChanged=iv.prototype.onGuidePersistentChanged;
iv.prototype.onRenderGuideChanged=iv.prototype.onRenderGuideChanged;iv.prototype.onActiveEndpointChanged=iv.prototype.onActiveEndpointChanged;iv.prototype.onMiniGuideVisibleChanged=iv.prototype.onMiniGuideVisibleChanged;iv.prototype.onGuideIsVisibleButNotPersistentChanged=iv.prototype.onGuideIsVisibleButNotPersistentChanged;iv.prototype.onGuidePersistendAndVisibleChanged=iv.prototype.onGuidePersistendAndVisibleChanged;
_.N([_.g(_.Ev),_.P("design:type",Object)],iv.prototype,"ironResizableBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],iv.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],iv.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],iv.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],iv.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",Boolean)],iv.prototype,"disabled",void 0);_.N([_.e(),_.P("design:type",Boolean)],iv.prototype,"guidePersistentAndVisible",void 0);_.N([_.GI("guidePersistentAndVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iv.prototype,"onGuidePersistendAndVisibleChanged",null);_.N([_.e(),_.P("design:type",Boolean)],iv.prototype,"guideIsVisibleButNotPersistent",void 0);
_.N([_.GI("guideIsVisibleButNotPersistent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iv.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.N([_.e(),_.P("design:type",Object)],iv.prototype,"miniGuideVisible",void 0);_.N([_.GI("miniGuideVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iv.prototype,"onMiniGuideVisibleChanged",null);_.N([_.e(),_.P("design:type",Boolean)],iv.prototype,"forceMiniGuideClose",void 0);
_.N([_.e(),_.P("design:type",Object)],iv.prototype,"activeEndpoint",void 0);_.N([_.GI("activeEndpoint"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iv.prototype,"onActiveEndpointChanged",null);_.N([_.e(),_.P("design:type",Boolean)],iv.prototype,"renderGuide",void 0);_.N([_.GI("renderGuide"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iv.prototype,"onRenderGuideChanged",null);
_.N([_.e({selector:X1L}),_.P("design:type",Boolean)],iv.prototype,"persistentPanelVisible",void 0);_.N([_.e(),_.P("design:type",Object)],iv.prototype,"guideOpened",void 0);_.N([_.e(),_.P("design:type",Boolean)],iv.prototype,"guidePersistent",void 0);_.N([_.GI("guidePersistent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iv.prototype,"onGuidePersistentChanged",null);_.N([_.e(),_.P("design:type",Object)],iv.prototype,"guideUserStateOpened",void 0);
_.N([_.e(),_.P("design:type",String)],iv.prototype,"pageUrl",void 0);_.N([_.e(),_.P("design:type",String)],iv.prototype,"pageType",void 0);_.N([_.e(),_.P("design:type",Number)],iv.prototype,"cachedClientWidth",void 0);_.N([_.e(),_.P("design:type",Object)],iv.prototype,"guideElement",void 0);_.N([_.e({selector:_.IF}),_.P("design:type",Object)],iv.prototype,"isFullscreenShorts",void 0);
_.N([_.GI("guideElement"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iv.prototype,"onGuideElementChanged",null);_.N([_.GI("guidePersistentAndVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iv.prototype,"guidePersistentAndVisibleChanged",null);
_.N([_.P3("guideIsVisibleButNotPersistent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iv.prototype,"guideIsVisibleButNotPersistentChanged",null);_.N([_.GI("miniGuideVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iv.prototype,"miniGuideVisibleChanged",null);_.N([_.P3("guideOpened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iv.prototype,"guideOpenedChanged",null);
_.N([_.GI("activeEndpoint"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iv.prototype,"activeEndpointChanged",null);_.N([_.P3("pageUrl"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iv.prototype,"resetGuide",null);_.N([_.P3("cachedClientWidth"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iv.prototype,"cachedClientWidthChanged",null);
_.N([_.P3("persistentPanelVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iv.prototype,"persistentPanelVisibleChanged",null);_.N([_.GI("guideOpened","guidePersistent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iv.prototype,"computeGuidePersistentAndVisible",null);
_.N([_.P3("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iv.prototype,"observeForMiniGuideVisible",null);_.N([_.lc("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iv.prototype,"onResize",null);_.N([_.Ul({disableElementRegistration:!0,is:"yt-guide-manager"})],iv);
var hyd=_.G(iv,"yt-guide-manager",void 0,{mode:_.hX("kevlar_poly_si_batch_j081")?1:2});var dMl=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"],Cn=new Map;Cn.set(32,59972);Cn.set(27,50765);Cn.set(70,60102);Cn.set(76,60221);Cn.set(77,60222);Cn.set(74,60223);Cn.set(84,60224);Cn.set(38,61941);Cn.set(40,61942);Cn.set(73,62521);Cn.set(67,62522);Cn.set(80,63390);Cn.set(78,63397);Cn.set(75,59972);Cn.set(188,63385);Cn.set(190,63384);Cn.set(36,63387);Cn.set(35,63386);Cn.set(37,63388);
Cn.set(39,63389);Cn.set(79,63423);Cn.set(87,63424);Cn.set(107,63426);Cn.set(109,63425);Cn.set(65,63428);Cn.set(83,63430);Cn.set(68,63429);Cn.set(221,63431);Cn.set(219,63432);Cn.set(97,63439);Cn.set(98,63440);Cn.set(99,63441);Cn.set(100,63442);Cn.set(101,63443);Cn.set(102,63444);Cn.set(103,63445);Cn.set(104,63446);Cn.set(105,63447);var Q7=new Map;Q7.set(80,63390);Q7.set(78,63397);Q7.set(188,63400);Q7.set(190,63401);Q7.set(191,60765);Q7.set(13,247917);var ksL=new Map,rN8=new Map;var qP=function(){var t=_.z.apply(this,arguments)||this;t.JSC$21637_keyboardInUse=!1;t.boundHandleCapturedKeydownEvent=function(E){t.handleCapturedKeydownEvent(E)};
return t};
_.u(qP,_.z);_.Y=qP.prototype;_.Y.attached=function(){this.listenToDocument(document)};
_.Y.listenToDocument=function(t){t.addEventListener("keydown",_.zI(this,this.onKeyDownEvent));t.addEventListener("keyup",_.zI(this,this.onKeyUpEvent));t.addEventListener("mousedown",_.zI(this,this.onMouseDownEvent));_.r("desktop_keyboard_capture_keydown_killswitch")||t.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);t.addEventListener("yt-page-data-updated",_.zI(this,this.onPageUpdate))};
_.Y.detached=function(){this.unlistenFromDocument(document)};
_.Y.unlistenFromDocument=function(t){t.removeEventListener("keydown",_.zI(this,this.onKeyDownEvent));t.removeEventListener("keyup",_.zI(this,this.onKeyUpEvent));t.removeEventListener("mousedown",_.zI(this,this.onMouseDownEvent));_.r("desktop_keyboard_capture_keydown_killswitch")||t.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);t.removeEventListener("yt-page-data-updated",_.zI(this,this.onPageUpdate))};
_.Y.ready=function(){_.X3().addProvider({provide:_.FA,useValue:this})};
_.Y.isKeyBoardInUse=function(){return this.JSC$21637_keyboardInUse};
_.Y.handleCapturedKeydownEvent=function(t){if(t.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(t)};
_.Y.onMouseDownEvent=function(){this.JSC$21637_keyboardInUse=!1};
_.Y.onPageUpdate=function(){if(_.r("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.r("web_shorts_keyboard_shortcut_usage_log")){ksL.clear();for(var t=_.M(Cn),E=t.next();!E.done;E=t.next()){var p=_.M(E.value);E=p.next().value;p=p.next().value;p=_.h8(p);ksL.set(E,p);_.Yh(_.yL(),_.vV(),p)}rN8.clear();t=_.M(Q7);for(E=t.next();!E.done;E=t.next())p=_.M(E.value),E=p.next().value,p=p.next().value,p=_.h8(p),rN8.set(E,p),_.Yh(_.yL(),_.vV(),p);_.Mc(_.yL(),_.vV(),[].concat(_.KB(rN8.values()),_.KB(ksL.values())));
_.bU(_.yL(),[].concat(_.KB(rN8.values()),_.KB(ksL.values())))}};
_.Y.onMiniplayerActiveChange=function(){var t;(t=_.X3().resolve(_.bf).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(t.document):this.unlistenFromDocument(t.document))};
_.Y.ignoreKeyEvent=function(t){if(t.ctrlKey||t.altKey)if(_.r("kevlar_macro_markers_keyboard_shortcut")){if(t.keyCode!==37&&t.keyCode!==39)return!0}else return!0;var E=_.Vx(t)||[];return uY8(E)?(_.r("web_button_or_anchor_list_item")&&JN8(E,t)&&(this.JSC$21637_keyboardInUse=!0),!0):t.defaultPrevented?(j6(t.keyCode,t.shiftKey,this.isShortsPage),!0):t.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(t):!1};
_.Y.isSpacebarClick=function(t){var E=t||window.event;var p;E.composedPath&&typeof E.composedPath==="function"?p=E.composedPath():p=E.path;p&&p.length?E=p[0]:(E=E||window.event,E=E.target||E.srcElement,E.nodeType==3&&(E=E.parentNode));return E&&t.keyCode===32&&(t=E.tagName==="BUTTON"||E.tagName==="A"||E.tagName==="INPUT",E=(E=E.getAttribute("role"))&&(E==="option"||E==="button"||E.indexOf("menuitem")===0),t||E)?!0:!1};
_.Y.onKeyDownEvent=function(t){if(!this.ignoreKeyEvent(t)&&(t.keyCode===191&&(t.shiftKey||t.metaKey?t.repeat!=null&&t.repeat||(this.openHotkeyDialog(),j6(t.keyCode,t.shiftKey,this.isShortsPage)):(this.focusSearchBox(),t.preventDefault())),!t.metaKey)){var E=_.X3().resolve(_.bf);switch(t.keyCode){case 9:this.JSC$21637_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(t);break;case 84:E.pipController.getWindow()&&window.focus();this.toggleTheaterMode(t.keyCode,t.shiftKey);break;case 73:E.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(t.keyCode,t.shiftKey);break;case 70:if(this.isShortsPage){cU5();break}this.isMiniplayerActive()?E.pipController.getWindow()&&(E.close(!0),window.focus()):this.passEventToPlayer(t);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(t.keyCode,t.shiftKey):this.closeMiniplayer(t.keyCode,t.shiftKey)||this.passEventToPlayer(t);break;case 13:t.shiftKey&&_.X3().resolve(_.Xg).activate(t);break;default:this.passEventToPlayer(t)}}};
_.Y.onKeyUpEvent=function(t){if(!this.ignoreKeyEvent(t))if(_.r("web_speedmaster_spacebar_control")&&t.keyCode===32)this.handlePlayerSpaceKey(t,!0);else{var E=this.getPlayerManager();E&&(E=E.getPlayer())&&E.handleGlobalKeyUp(t.keyCode,t.shiftKey,t.ctrlKey,t.altKey,t.metaKey,t.key,t.code)}};
_.Y.getPlayerManager=function(){var t=_.k1(),E=_.X3().resolve(_.OB(_.jw));return t&&E&&E.isOnWatch()?t:null};
_.Y.passEventToPlayer=function(t,E){var p=this,U,x,A,m;return _.q(function(b){if(b.nextAddress==1){if(!_.r("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&p.isMiniplayerActive())U=_.X3().resolve(_.bf).getPlayerElement();else if(p.inlinePreviewIsActive){if(x=_.uO(p.hostElement,"yt-get-inline-preview-player-action"),(A=x)==null?0:A[0])U=x[0]}else U=_.k1();return U?b.yield(U.getPlayerPromise(),3):b.jumpTo(0)}m=b.yieldResult;E?m.handleGlobalKeyUp(t.keyCode,t.shiftKey,t.ctrlKey,t.altKey,t.metaKey,
t.key,t.code):m.handleGlobalKeyDown(t.keyCode,t.shiftKey,t.ctrlKey,t.altKey,t.metaKey,t.key,t.code,t.repeat);t.keyCode!==38&&t.keyCode!==40&&j6(t.keyCode,t.shiftKey,p.isShortsPage);_.Do(b)})};
_.Y.focusSearchBox=function(){_.kT(this.hostElement,"yt-focus-searchbox")};
_.Y.openHotkeyDialog=function(){_.kT(this.hostElement,"yt-open-hotkey-dialog")};
_.Y.isMiniplayerActive=function(){return _.X3().resolve(_.bf).isMiniplayerActive()};
_.Y.closeMiniplayer=function(t,E){return this.isMiniplayerActive()?(_.X3().resolve(_.bf).close(),j6(t,E,this.isShortsPage),!0):!1};
_.Y.toggleTheaterMode=function(t,E){var p=_.t8(_.QM().getState()),U=this.getPlayerManager(),x=_.r("disable_theater_mode_keyboard")||_.HC("START_IN_FULL_WINDOW_MODE");U&&!x&&(p=!p,_.QS()&&_.r("external_fullscreen")&&(p=!0),_.du(this.hostElement,"yt-toggle-theater-mode",[p]),j6(t,E,this.isShortsPage))};
_.Y.toggleMiniplayer=function(t,E){var p=this.getPlayerManager();if(this.isMiniplayerActive()){var U;((U=_.X3().resolve(_.OB(_.jw)))==null?0:U.isOnWatch())?_.X3().resolve(_.bf).close(!0):_.sN(_.X3().resolve(_.bf));j6(t,E,this.isShortsPage)}else p&&(_.du(this.hostElement,"yt-activate-miniplayer-from-watch-action"),j6(t,E,this.isShortsPage))};
_.Y.handlePlayerSpaceKey=function(t,E){var p=!!_.k1()||this.isMiniplayerActive();p=_.r("disable_space_scroll_fix")||p;_.r("global_spacebar_pause")&&!this.isKeyBoardInUse()&&p&&(t.preventDefault(),this.passEventToPlayer(t,E))};
_.Y.isPresentingTheaterMode=function(){return _.r("web_watch_enable_tm_esc_key")?_.t8(_.QM().getState())&&!_.QS():!1};
qP.prototype.onMiniplayerActiveChange=qP.prototype.onMiniplayerActiveChange;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],qP.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],qP.prototype,"ytdReduxBehavior",void 0);_.N([_.e({selector:_.GWt}),_.P("design:type",Boolean)],qP.prototype,"inlinePreviewIsActive",void 0);_.N([_.e({selector:_.rq8}),_.P("design:type",Boolean)],qP.prototype,"isShortsPage",void 0);
_.N([_.e({selector:_.E5}),_.P("design:type",Boolean)],qP.prototype,"miniplayerIsActive",void 0);_.N([_.GI("miniplayerIsActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qP.prototype,"onMiniplayerActiveChange",null);_.N([_.Ul({disableElementRegistration:!0,is:"yt-hotkey-manager"})],qP);_.G(qP,"yt-hotkey-manager",void 0,{mode:_.hX("kevlar_poly_si_batch_j081")?1:2});var H1=function(){var t=_.z.apply(this,arguments)||this;t.loopStateEntityKey_=null;t.playlistLoopStateEntity_=null;t.isShuffleNextPlaylist=!1;t.PLAYER_EVENTS_=new Map;t.playerListenersSetup_=!1;t.videoSkipJob_=0;t.canAutoAdvance_=!1;t.playerManager_=null;t.TEST_ONLY={};return t};
_.u(H1,_.z);_.Y=H1.prototype;_.Y.ready=function(){_.X3().addProvider({provide:_.kA,useValue:this.hostElement})};
_.Y.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_)};
_.Y.attached=function(){document.addEventListener("yt-navigate-start",_.zI(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.zI(this,this.onYtNavigateFinish_))};
_.Y.detached=function(){document.removeEventListener("yt-navigate-start",_.zI(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.zI(this,this.onYtNavigateFinish_))};
_.Y.updatePlaylistEventListeners=function(t,E){E&&!this.playerListenersSetup_?(this.playerManager_=t,this.registerPlaylistEventListeners_(t)):!E&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(t))};
_.Y.setPlayer=function(t){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=t};
_.Y.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.Y.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.Y.registerPlaylistEventListeners_=function(t){var E=this;t.getPlayerPromise().then(function(p){E.playerListenersSetup_||(E.ytPlayerListenerBehavior.listenToPlayerEvents(p,E.PLAYER_EVENTS_),E.playerListenersSetup_=!0)})};
_.Y.removePlaylistEventListeners_=function(t){var E=this;t.getPlayerPromise().then(function(p){E.playerListenersSetup_&&(E.ytPlayerListenerBehavior.unlistenFromPlayerEvents(p,E.PLAYER_EVENTS_),E.playerListenersSetup_=!1)})};
_.Y.setPlaylistComponent=function(t){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.zI(this,this.onPlaylistYtNavigate_)),t&&(t.data&&this.playlistComponent.data&&t.data.playlistId==this.playlistComponent.data.playlistId?(t.loopOn=this.playlistComponent.loopOn,t.shuffleOn=this.playlistComponent.shuffleOn):(t.loopOn=!1,t.shuffleOn=!1),this.isShuffleNextPlaylist&&(t.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=t;this.playlistComponent.addEventListener("yt-navigate",
_.zI(this,this.onPlaylistYtNavigate_))};
_.Y.setAutoplayRenderer=function(t){this.autoplayData=t};
_.Y.setPlaylistData=function(t){this.currentPlaylistData_=t;_.kT(this.hostElement,"yt-playlist-data-updated");_.Kq.isEmpty(t)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(t)};
_.Y.setPlayerPlaybackControlData=function(t){this.playerManager_&&this.playerManager_.updatePlayerComponents(t.playlistPanelRenderer)};
_.Y.getPlaylistData=function(){return this.currentPlaylistData_};
_.Y.getTempData_=function(t,E){if(this.playlistComponent==null)return null;t={};this.playlistComponent.shuffleOn&&(t.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(t.loop_on=this.playlistComponent.loopOn);E&&(t.autonav="1",_.X3().resolve(_.Ly),E=_.af(),E>0&&(t.lact=E),this.playerManager_&&(E=this.playerManager_.getPlayer())&&E.shouldSendVisibilityState()&&(E=E.getVisibilityState(),E!=0&&(t.vis=E)));_.r("enable_unknown_lact_fix_on_html5")&&(_.X3().resolve(_.Ly),t.lact=
_.af());return t};
_.Y.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.Y.setLoopStateEntityKey_=function(t){var E;this.loopStateEntityKey_=((E=this.getPlaylistLoopData_(t))==null?void 0:E.playlistLoopStateEntityKey)||null};
_.Y.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.Y.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.Y.skipVideo=function(){var t=this,E=_.r("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||E)E=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.W9(_.ir,function(){t.onPlaylistNext();t.videoSkipJob_=0},E)};
_.Y.cancelVideoSkip=function(){this.videoSkipJob_&&(_.ir.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.Y.isInBackground_=function(){var t=window.document.visibilityState;return!(!t||t=="visible")};
_.Y.onPlaylistIndex_=function(t){this.playlistComponent&&(t=this.playlistComponent.data.contents[t].playlistPanelVideoRenderer.navigationEndpoint,_.kT(this.hostElement,"yt-navigate",{endpoint:t,tempData:this.getTempData_(t)}))};
_.Y.onPlayerStateChange_=function(t){if(t=t==0&&this.playlistComponent&&this.canAutoAdvance_)t=_.e3.getInstance(),t=!(t.autonavState_===3?t.autonavPauseReason_&&t.autonavPauseReason_.inputBoxFocus===!0:t.autonavState_===1&&t.disabledAutonavPauseReason_&&t.disabledAutonavPauseReason_.inputBoxFocus===!0);t&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.Y.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.Y.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.Y.navigateToAutoplayWatchEndpoint_=function(t,E,p){var U=this.playlistComponent.data.currentIndex,x=this.getNumPlayableVideos_();t=="NORMAL"&&E=="autoplayVideo"&&U+1>=x&&p||!(t=this.getVideoEndpoint_(t,E))||(p=this.getTempData_(t,p),_.kT(this.hostElement,"yt-navigate",{endpoint:t,tempData:p}))};
_.Y.getNumPlayableVideos_=function(){for(var t=0,E=_.M(this.playlistComponent.data.contents||[]),p=E.next();!p.done;p=E.next())p.value.playlistPanelVideoRenderer&&(t+=1);return t};
_.Y.getVideoEndpoint_=function(t,E){if(this.autoplayData&&this.autoplayData.sets)for(var p=0,U=this.autoplayData.sets.length;p<U;p++){var x=this.autoplayData.sets[p];if(x.mode==t){if(x[E])return x[E];break}}else t=new _.cC("AutoplayData is undefined in playlist manager","Mode: "+t+" endpoint: "+E),_.qW(t)};
_.Y.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.Y.onPlaylistYtNavigate_=function(t){if(t.detail.endpoint){t.stopPropagation();var E=t.detail;E.tempData=this.getTempData_(t.detail.endpoint);_.kT(this.hostElement,"yt-navigate",E)}};
_.Y.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.Y.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.Y.playlistLoopStateEntityChanged_=function(t){var E=this,p,U,x;return _.q(function(A){if(A.nextAddress==1){if(!t)return A.return();p=t.state==="PLAYLIST_LOOP_STATE_ONE";return E.playerManager_?A.yield(E.playerManager_.getPlayerPromise(),3):A.jumpTo(2)}A.nextAddress!=2&&(U=A.yieldResult,U.setLoopVideo(p));x=t.state==="PLAYLIST_LOOP_STATE_ALL";E.playlistComponent&&(E.playlistComponent.loopOn=x);_.Do(A)})};
_.Y.getPlaylistLoopData_=function(t){var E,p;if(t=t==null?void 0:(E=t.playlistButtons)==null?void 0:(p=E.menuRenderer)==null?void 0:p.topLevelButtons)for(E=_.M(t),p=E.next();!p.done;p=E.next())if(p=p.value,p.playlistLoopButtonRenderer)return p.playlistLoopButtonRenderer};
_.Y.getLoopStateCommand_=function(t){var E=this.getPlaylistData(),p;E=((p=this.getPlaylistLoopData_(E))==null?void 0:p.states)||[];var U;t=(U=_.k(E[t?1:2],_.ZQs))==null?void 0:U.button;var x;return(x=_.k(t,_.Ry))==null?void 0:x.command};
_.Y.onPlayerLoopChange_=function(t){this.playlistLoopStateEntity_&&(t?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(t=this.getLoopStateCommand_(t))&&this.ytComponentBehavior.resolveCommand(t)};
_.Y.onSleepTimerSettingsChanged_=function(t){this.canAutoAdvance_=t!=="End of video"};
H1.prototype.onPlaylistLoopStateEntityChanged=H1.prototype.onPlaylistLoopStateEntityChanged;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],H1.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.JT.YtPlayerListenerBehavior),_.P("design:type",_.Il)],H1.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],H1.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],H1.prototype,"loopStateEntityKey_",void 0);
_.N([_.e({selectorArgs:["loopStateEntityKey_"],selector:_.MY.playlistLoopStateEntitySelector}),_.P("design:type",Object)],H1.prototype,"playlistLoopStateEntity_",void 0);_.N([_.GI("playlistLoopStateEntity_"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],H1.prototype,"onPlaylistLoopStateEntityChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"yt-playlist-manager"})],H1);_.G(H1,"yt-playlist-manager",void 0,{mode:_.hX("kevlar_poly_si_batch_j081")?1:2});var aWt,eyJ=function(){if(aWt!==void 0)return aWt;var t=document.createElement("template");_.J(t,"\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");t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return aWt=t};var fI=function(){var t=_.z.apply(this,arguments)||this;t.lastCallback=null;t.getAccountLinkPromises={};t.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);t.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return t};
_.u(fI,_.z);_.Y=fI.prototype;_.Y.getLocation=function(){return window.location.href};
_.Y.getCompletionUrl=function(){return _.wu(this.getLocation())};
_.Y.containsRedirectState=function(t){return(t=_.cS(_.W1D(t)))?(new URLSearchParams(t)).get("redirect_state")!==null:!1};
_.Y.createGalConfig=function(t,E){var p=new DUd;t=p=E?this.getPopupOrRedirectSetting(p,_.qO("LINK_API_KEY"),_.qO("LINK_API_KEY_REDIRECT"),t):sut(p,_.qO("LINK_API_KEY"));t.authUser=_.qO("SESSION_INDEX")||0;t.supportedFlows=new Set([4]);return t.build()};
_.Y.getPopupOrRedirectSetting=function(t,E,p,U){this.isGalInteractionPopupMode(U)?(t.interactionMode=0,t=sut(t,E)):(t.interactionMode=1,E=this.getCompletionUrl(),t.completionUrl=E,t=sut(t,p));return t};
_.Y.isGalInteractionPopupMode=function(t){if(this.redirectModeProviderAllowlist.has(t))switch(t){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.Y.getStatusEntityKeyForProviderId=function(t){return _.X1(t+":all","accountLinkStatusEntity")};
_.Y.findNestedPropValue=function(t,E){var p=!1,U=null;JSON.stringify(t,function(x,A){p||x!==E||(p=!0,U=A);return p?null:A});
return U};
_.Y.findAccountLinkButtonViewModel=function(t,E){var p=null,U=!1;JSON.stringify(t,function(x,A){U||A.accountLinkStatusEntityKey!==E||A.accountLinkStatusSecondaryEntityKey||(U=!0,p=A);return U?null:A});
return p};
_.Y.executeLinkingSuccessOrFailureCommands=function(t,E,p){var U=null,x;(E==null?0:(x=E.url)==null?0:x.includes("account_sharing"))?U=E==null?void 0:E.response:U=E==null?void 0:E.response;(E=this.findAccountLinkButtonViewModel(U,t))?(t=p?this.findNestedPropValue(E,"onSuccessCommand"):this.findNestedPropValue(E,"onFailureCommand"))?_.OT([t],this.hostElement):_.Ra(Error("Sl")):_.Ra(Error("Tl`"+t))};
_.Y.handleInitializeRequest=function(t,E){var p=this,U=CCb(this.createGalConfig(t,!0));this.containsRedirectState(this.getLocation())?BN5(t,U.config,U.galService).then(function(x){var A=p.getStatusEntityKeyForProviderId(t);if(x.statusCode===1)E&&p.executeLinkingSuccessOrFailureCommands(A,E,!0),x=p.getLocation().indexOf("#"),x!==-1&&window.history.pushState(null,"",p.getLocation().substring(0,x));else return E&&p.executeLinkingSuccessOrFailureCommands(A,E,!1),Promise.reject(Error(x.statusMessage))}).catch(function(x){_.qW(x);
_.MW("gamingAccountLinkStatusChanged",{serviceId:t,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(x)}):this.getAccountLinkPromises[t]=U.startLinkingSession({serviceId:t})};
_.Y.handleAccountLinkCommand=function(t){_.k(t,vgC)&&this.handleLinkRequest(_.k(t,vgC))};
_.Y.handleLinkRequest=function(t){var E=this,p=t.thirdPartyId;if(p)if(this.isGalInteractionPopupMode(p)){var U=function(){E.closeAndFire("ytd-gaming-account-link-setting-renderer",t.onFailureCommand)},x=function(){E.closeAndFire("ytd-gaming-account-link-setting-renderer",t.onSuccessCommand)};
this.lastCallback=x;this.getAccountLinkPromises[p].then(function(A){kNJ(A).then(function(m){m.statusCode===1?x():U()})}).catch(function(){U()})}else this.getAccountLinkPromises[p].then(function(A){kNJ(A).then(function(m){if(m.statusCode!==1)return Promise.reject(Error(m.statusMessage))})}).catch(function(A){_.qW(A);
_.MW("gamingAccountLinkStatusChanged",{serviceId:p,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(A)})};
_.Y.closeAndFire=function(t,E){_.du(this.hostElement,"yt-close-popup-action",[t]);E&&_.OT([E],this.hostElement)};
_.Y.handleAccountUnlinkCommand=function(t){_.k(t,yud)&&this.handleUnlinkRequest(_.k(t,yud))};
_.Y.handleUnlinkRequest=function(t){var E=this,p=t.thirdPartyId;if(p){var U=function(){E.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",t.onFailureCommand)},x=function(){E.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",t.onSuccessCommand)};
this.lastCallback=x;var A=CCb(this.createGalConfig(p,!1));this.unlinkUserGal(A,p).then(function(m){m.statusCode===1?x():U()}).catch(function(){U()})}};
_.Y.unlinkUserGal=function(t,E){return t.deleteLink(E)};
_.Y.handleLogAccountLinkingEventCommand=function(t){_.r("enable_gel_log_commands")&&_.k(t,cu8)&&(t=_.k(t,cu8).event)&&_.MW("gamingAccountLinkStatusChanged",t)};
_.aE.Object.defineProperties(fI,{template:{configurable:!0,enumerable:!0,get:function(){return eyJ()}}});
_.N([_.g(_.Pg.YtOpenPopupBehavior),_.P("design:type",Object)],fI.prototype,"ytOpenPopupBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],fI.prototype,"ytActionHandlerBehavior",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-third-party-manager"})],fI);_.G(fI,"ytd-third-party-manager",function(){return eyJ()},{mode:_.hX("kevlar_poly_si_batch_j081")?1:2});var Fs7=2/3,zy9=_.h8(130749),lWl=function(t,E){var p=this;this.element=t;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){p.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:Fs7,moveAction:function(U){p.moveAction(U)},
triggerAction:function(){p.element.isReloading=!0;_.bA(_.Pu(),{visualElement:zy9});_.Gh.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:p.element}})}}}};
_.oy(_.Pu(),zy9,this.layer);this.gesture=new Us(t,E,this.refreshConfig,"pan-down");this.attach()};
_.Y=lWl.prototype;_.Y.attach=function(){this.gesture.attach()};
_.Y.detach=function(){this.gesture.detach()};
_.Y.reset=function(){this.element.close()};
_.Y.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.Y.moveAction=function(t){this.element.rotation=t*360};var GuK=_.h8(130750),Ndo=function(t,E,p,U,x){var A=this;this.element=t;this.parent=p;this.channelHeader=U;this.ytdReduxDispatch=x;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){A.tabsStartAtInPx=A.channelHeader.clientHeight-48;var m;(m=A.selectedTab)!=null&&m.title&&(m=_.X3().resolve(_.OB(_.jw)))&&(m=m.getCurrentPage(),A.lastVisitedTabScrollPosition=m.getScrollTop(),A.previousTab&&
((A.lastVisitedTabScrollPosition===void 0?0:A.lastVisitedTabScrollPosition<A.channelHeader.clientHeight-48)?A.scrollPositionForTabs.has(A.selectedTab.title)&&A.scrollPositionForTabs.delete(A.selectedTab.title):A.scrollPositionForTabs.set(A.selectedTab.title,m.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:nPg(),triggerAction:function(){A.navigate(A.previousTab)},
moveAction:function(m,b){A.moveAction(m,b)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-nPg(),triggerAction:function(){A.navigate(A.nextTab)},
moveAction:function(m,b){A.moveAction(m,b)}}}};
_.oy(_.Pu(),GuK,this.layer);this.gesture=new Us(t,E,this.tabConfig);this.attach()};
_.Y=Ndo.prototype;_.Y.attach=function(){this.gesture.attach()};
_.Y.detach=function(){this.gesture.detach()};
_.Y.tabsChanged=function(t){if(t){var E=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;t=_.M(t);for(var p=t.next();!p.done;p=t.next()){p=p.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=p);var U=void 0;if((U=p)==null?0:U.selected)this.previousTab=E,this.selectedTab=p;E=p}E=this.gesture;t=this.getConfig();E.config=t;this.scrollPositionNeedsUpdate=!0}};
_.Y.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}})};
_.Y.moveAction=function(t,E){if(!this.tabsElement){var p;this.tabsElement=(p=this.parent.header)==null?void 0:p.tabsElement;E==="right"&&this.previousTab?(p=this.previousTab.endpoint,_.uso(_.X3().resolve(_.yc),p,{},"")):E==="left"&&this.nextTab&&(p=this.nextTab.endpoint,_.uso(_.X3().resolve(_.yc),p,{},""));if(!this.tabsElement)return}p=this.tabsElement._pos;E==="right"&&(t*=-1);this.tabsElement._positionBar(p.width,p.left*1+p.width*t)};
var nPg=function(){var t,E;return(E=(t=_.X3().resolve(_.jw).getCurrentPage())==null?void 0:t.clientWidth)!=null?E:0};
Ndo.prototype.navigate=function(t){this.element.data=void 0;if(t=t==null?void 0:t.endpoint)this.ytdReduxDispatch(UiC(!0)),_.bA(_.Pu(),{visualElement:GuK}),_.Gh.instance.resolveCommand({navigateAction:{endpoint:t}},{form:{element:this.element}})};var DP9;var s1t;var B1=function(){var t=_.z.apply(this,arguments)||this;t.rotation=0;t.isReloading=!1;return t};
_.u(B1,_.z);B1.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
B1.prototype.reset=function(){this.hostElement.style.opacity=""};
B1.prototype.close=function(){var t=this;return _.q(function(E){if(E.nextAddress==1)return E.yield(t.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);t.hostElement.style.opacity="0";_.Do(E)})};
B1.prototype.rotationChanged=B1.prototype.rotationChanged;_.N([_.e(),_.P("design:type",Object)],B1.prototype,"rotation",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],B1.prototype,"isReloading",void 0);_.N([_.Nl("#icon"),_.P("design:type",HTMLElement)],B1.prototype,"icon",void 0);_.N([_.GI("rotation"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],B1.prototype,"rotationChanged",null);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-refresh"})],B1);
_.G(B1,"ytd-refresh",function(){if(s1t!==void 0)return s1t;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return s1t=t},{mode:1});var Ls7;var wd=function(){var t=_.z.apply(this,arguments)||this;t.useRaf=!_.r("web_use_raf_app_header_layout_killswitch");return t};
_.u(wd,_.z);wd.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"}}}};
wd.prototype.dataChanged=function(){if(this.data){var t=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var E=_.d4(this.data.banner.thumbnails,this.hostElement.clientWidth);E&&(E.indexOf("//")===0&&(E="https:"+E),this.hasBannerArt=!0,_.eU(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+E+")"}))}this.hasBannerArt!==t&&_.ZN(this.hostElement).querySelector("#header").fire("iron-resize")}};
wd.prototype.updateSelectedFromBinding=function(t){this.selected=t.detail.value};
wd.prototype.dataChanged=wd.prototype.dataChanged;_.N([_.g(aQo),_.P("design:type",Object)],wd.prototype,"ytdTabbedHeaderBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],wd.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Qo),_.P("design:type",Object)],wd.prototype,"ytdGridStateAwareBehavior",void 0);_.N([_.g(_.jp.YtdGuideStateAwareBehavior),_.P("design:type",Object)],wd.prototype,"ytdGuideStateAwareBehavior",void 0);
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],wd.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],wd.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Number)],wd.prototype,"selected",void 0);_.N([_.e(),_.P("design:type",Boolean)],wd.prototype,"active",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],wd.prototype,"hasBannerArt",void 0);_.N([_.e(),_.P("design:type",Object)],wd.prototype,"useRaf",void 0);
_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wd.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],wd);
_.G(wd,"ytd-interactive-tabbed-header-renderer",function(){if(Ls7!==void 0)return Ls7;var t=document.createElement("template");_.J(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout use-raf="[[useRaf]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Ls7=t},{mode:1});var Pvb;var R1=function(){return _.z.apply(this,arguments)||this};
_.u(R1,_.z);R1.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
R1.prototype.computeActionsAlignment=function(t){return(t==null?void 0:t.actionsAlignment)||""};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],R1.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],R1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],R1.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.P("design:type",String)],R1.prototype,"actionsAlignment",void 0);
_.N([_.Ul({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],R1);
_.G(R1,"ytd-page-footer-renderer",function(){if(Pvb!==void 0)return Pvb;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Pvb=t},{mode:1});var TdJ;var oPJ;var V3=function(){var t=_.z.apply(this,arguments)||this;t.isEditing=!1;t.useSlot=!1;t.isMultiline=!1;return t};
_.u(V3,_.z);_.Y=V3.prototype;_.Y.onKeydown=function(t){if(t.keyCode===13&&!this.isMultiline)this.onSave();else if(t.keyCode===27)this.onCancel()};
_.Y.computeComponentStyle=function(t){return(t==null?0:t.style)?t.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.Y.computeisMultiline=function(t){if(this.multilineOverride!==void 0)return this.multilineOverride;var E,p;return!!(t==null?0:(E=t.formField)==null?0:(p=E.textInputFormFieldRenderer)==null?0:p.isMultiline)};
_.Y.computeTextDisplayed=function(t,E){if(t)return t;if(E)return E};
_.Y.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.Y.onSave=function(){if(this.textForm.validate()){this.textForm.save();var t=this.textForm.value;if(t)this.set("data.textDisplayed",_.wN(t));else{var E;((E=this.data)==null?0:E.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.IU("inline-form-changed",this.data));this.isEditing=!1}};
_.Y.onCancel=function(){var t=_.R4(this.data.textDisplayed);t===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(t);this.isEditing=!1};
V3.prototype.onKeydown=V3.prototype.onKeydown;_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],V3.prototype,"ytEventForwardingBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],V3.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],V3.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],V3.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],V3.prototype,"isEditing",void 0);_.N([_.e(),_.P("design:type",Object)],V3.prototype,"useSlot",void 0);_.N([_.e(),_.P("design:type",Boolean)],V3.prototype,"multilineOverride",void 0);_.N([_.e(),_.P("design:type",Boolean)],V3.prototype,"enableOverlayTheme",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.P("design:type",String)],V3.prototype,"componentStyle",void 0);
_.N([_.e({computed:"computeisMultiline(data)"}),_.P("design:type",Object)],V3.prototype,"isMultiline",void 0);_.N([_.Nl("#text-form"),_.P("design:type",Object)],V3.prototype,"textForm",void 0);_.N([_.lc("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[KeyboardEvent]),_.P("design:returntype")],V3.prototype,"onKeydown",null);_.N([_.Ul({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],V3);
_.G(V3,"ytd-inline-form-renderer",function(){if(oPJ!==void 0)return oPJ;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return oPJ=t},{mode:1});var Wso;var Q3=function(){var t=_.z.apply(this,arguments)||this;t.previousSelectValue=void 0;t.selectedItemMessage=void 0;return t};
_.u(Q3,_.z);Q3.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
Q3.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var t,E,p,U,x=(t=this.data)==null?void 0:(E=t.dropdown)==null?void 0:(p=E.dropdownRenderer)==null?void 0:(U=p.entries)==null?void 0:U.map(function(b){return b.privacyDropdownItemRenderer});
t=_.M(x!=null?x:[]);for(E=t.next();!E.done;E=t.next())if((E=E.value)&&E.int32Value===this.selectedValue){this.selectedItemMessage=E.itemMessage;break}}else this.selectedItemMessage=void 0;var A;(A=this.onValueChanged)==null||A.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var m;(m=this.data)!=null&&m.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
Q3.prototype.onValueChangedForSelectedValue=function(t){this.selectedValue=t.detail.value};
Q3.prototype.selectedValueChanged=Q3.prototype.selectedValueChanged;_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],Q3.prototype,"ytEventForwardingBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Q3.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Q3.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Q3.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Q3.prototype,"data",void 0);_.N([_.e(),_.P("design:type",String)],Q3.prototype,"theme",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Number)],Q3.prototype,"selectedValue",void 0);_.N([_.e(),_.P("design:type",Function)],Q3.prototype,"onValueChanged",void 0);
_.N([_.P3("selectedValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Q3.prototype,"selectedValueChanged",null);_.N([_.Ul({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],Q3);
_.G(Q3,"ytd-dropdown-form-field-renderer",function(){if(Wso!==void 0)return Wso;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Wso=t},{mode:_.hX("kevlar_poly_si_batch_j025")?1:2});var $Pt;var CI=function(){return _.z.apply(this,arguments)||this};
_.u(CI,_.z);_.aE.Object.defineProperties(CI.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var t=[],E=_.M(this.data||[]),p=E.next();!p.done;p=E.next())(p=_.k(p.value,nNe))&&t.push(p);return t}}});
_.N([_.e(),_.P("design:type",Array)],CI.prototype,"data",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],CI.prototype,"byline",null);_.N([_.Ul({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],CI);
_.G(CI,"ytd-playlist-byline-renderer",function(){if($Pt!==void 0)return $Pt;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return $Pt=t},{mode:1});var Ks5;var j7=function(){var t=_.z.apply(this,arguments)||this;t.rtlBullet=_.r("web_playlist_stats_rtl_bullet_icon_killswitch");t.modern=_.r("web_modern_buttons");t.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return t};
_.u(j7,_.z);_.Y=j7.prototype;_.Y.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"}}}}};
_.Y.attached=function(){};
_.Y.computeIsCustomThumbnail=function(t){return t?!!t.playlistCustomThumbnailRenderer:!1};
_.Y.onYtNavigate=function(t,E){if(E&&E.actions&&E.actions.indexOf("shuffle")>-1){t=_.X3().resolve(_.kA);var p=E.tempData||{};p.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);E.tempData=p;t.isShuffleNextPlaylist=!0}};
_.Y.onUpdatePlaylistAction=function(t){var E;t=(E=_.k(t,_.PPT))==null?void 0:E.updatedRenderer;if(E=_.k(t,tmb))this.data=E};
_.Y.computeStyleType=function(t){return t?t.toLowerCase().replace(/_/g,"-"):""};
_.Y.computeThumbnailWidth=function(t){return t==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.Y.computeHideThumbnailAria=function(t){if(t==null?0:t.thumbnailOverlays)for(var E=0;E<t.thumbnailOverlays.length;E++){var p=void 0;if((p=t.thumbnailOverlays[E])==null?0:p.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
j7.prototype.onYtNavigate=j7.prototype.onYtNavigate;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],j7.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],j7.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],j7.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],j7.prototype,"ytComponentBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],j7.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],j7.prototype,"rtlBullet",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.P("design:type",String)],j7.prototype,"styleType",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.P("design:type",Number)],j7.prototype,"thumbnailWidth",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],j7.prototype,"modern",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.P("design:type",Boolean)],j7.prototype,"isCustomThumbnail",void 0);_.N([_.lc("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[Event,Object]),_.P("design:returntype")],j7.prototype,"onYtNavigate",null);_.N([_.Ul({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],j7);
_.G(j7,"ytd-playlist-sidebar-primary-info-renderer",function(){if(Ks5!==void 0)return Ks5;var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Ks5=t},{mode:1});var vPJ;var rd=function(){return _.z.apply(this,arguments)||this};
_.u(rd,_.z);rd.prototype.computeOwnerVisibility=function(t){return!(!t.videoOwner&&!t.button)};
rd.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"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],rd.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],rd.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],rd.prototype,"data",void 0);_.N([_.Ul({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],rd);
_.G(rd,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(vPJ!==void 0)return vPJ;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return vPJ=t},{mode:1});var yaJ;var kP=function(){var t=_.z.apply(this,arguments)||this;t.expanded=!1;t.isCompact=!1;return t};
_.u(kP,_.z);_.Y=kP.prototype;_.Y.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.Y.dataChanged=function(){this.data&&_.RR(_.ZN(this.text),_.uWZ(_.gsr,_.R4(this.data.text||null)))};
_.Y.computeAutoScrollEnabled=function(t,E){return t&&!E};
_.Y.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.Y.toggleOnTap=function(){this.expanded=!this.expanded};
kP.prototype.expandedChanged=kP.prototype.expandedChanged;kP.prototype.dataChanged=kP.prototype.dataChanged;_.N([_.g(ar8),_.P("design:type",Object)],kP.prototype,"ytdAutoScrollBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],kP.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],kP.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],kP.prototype,"expanded",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],kP.prototype,"isCompact",void 0);_.N([_.e({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.P("design:type",Boolean)],kP.prototype,"autoScrollEnabled",void 0);_.N([_.Nl("#text"),_.P("design:type",Object)],kP.prototype,"text",void 0);_.N([_.Nl("#expander-icon"),_.P("design:type",Object)],kP.prototype,"expanderIcon",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kP.prototype,"dataChanged",null);_.N([_.GI("expanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kP.prototype,"expandedChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],kP);
_.G(kP,"ytd-channel-legal-info-renderer",function(){if(yaJ!==void 0)return yaJ;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return yaJ=t},{mode:1});var SKt;var cal=_.zF("DOWNLOAD",{},"Download"),tql=_.zF("DOWNLOADING",{},"Downloading"),Evt=_.zF("DOWNLOADED",{},"Downloaded"),dd=function(){var t=_.z.apply(this,arguments)||this;t.downloadProgress=0;t.isDownloadComplete=!1;t.transferState="TRANSFER_STATE_UNKNOWN";return t};
_.u(dd,_.z);_.Y=dd.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.Y.dataChanged=function(){var t;(t=this.data)!=null&&t.tooltip||(t=_.Af(_.QM().getState(),this.playlistId),this.updateButtonState(t))};
_.Y.computePlaylistId=function(t){return t};
_.Y.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.Y.updateButtonState=function(t){if(this.data&&(this.data.tooltip!==tql||!_.Lb(t))){this.isDownloadComplete=!1;switch(t){case "TRANSFER_STATE_UNKNOWN":t=cal;var E="OFFLINE_DOWNLOAD";var p="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":t=Evt;E="OFFLINE_PIN";p="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":t=tql;E="OFFLINE_DOWNLOADING_ZERO";p="ACTION_REMOVE_WITH_PROMPT";
break;default:t=cal,E="OFFLINE_DOWNLOAD",p="ACTION_ADD"}var U=Object.assign({},this.data);U.tooltip=t;U.accessibilityData={accessibilityData:{label:t}};U.icon={iconType:E};U.size="SIZE_DEFAULT";_.k(U.command,_.GE)&&(_.k(U.command,_.GE).action=p);this.set("data",U)}};
_.Y.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var t="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?t="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?t="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?t="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?t="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?t="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(t="OFFLINE_PIN",this.isDownloadComplete=!0);var E;t!==((E=this.data.icon)==null?void 0:E.iconType)&&(E=Object.assign({},this.data),E.tooltip=tql,E.accessibilityData={accessibilityData:{label:tql}},E.icon={iconType:t},_.k(E.command,_.GE)&&(_.k(E.command,_.GE).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",E))}};
dd.prototype.updateProgress=dd.prototype.updateProgress;dd.prototype.onTransferStateChanged=dd.prototype.onTransferStateChanged;dd.prototype.dataChanged=dd.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],dd.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],dd.prototype,"ytdReduxBehavior",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],dd.prototype,"forceIconButton",void 0);
_.N([_.e({value:!0}),_.P("design:type",Boolean)],dd.prototype,"forceIconOnly",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],dd.prototype,"overrides",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],dd.prototype,"buttonTooltipPosition",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],dd.prototype,"styleActionButton",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],dd.prototype,"disableTextTransform",void 0);
_.N([_.e({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.P("design:type",String)],dd.prototype,"playlistId",void 0);_.N([_.e(),_.P("design:type",Object)],dd.prototype,"data",void 0);_.N([_.e({selector:_.W38,selectorArgs:["playlistId"]}),_.P("design:type",Object)],dd.prototype,"downloadProgress",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],dd.prototype,"isDownloadComplete",void 0);
_.N([_.e({selector:_.Af,selectorArgs:["playlistId"]}),_.P("design:type",String)],dd.prototype,"transferState",void 0);_.N([_.e({value:!0}),_.P("design:type",Boolean)],dd.prototype,"showTooltips",void 0);_.N([_.e({value:!0}),_.P("design:type",Boolean)],dd.prototype,"sendCommandWhenDisabled",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],dd.prototype,"disabled",void 0);
_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dd.prototype,"dataChanged",null);_.N([_.P3("transferState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dd.prototype,"onTransferStateChanged",null);_.N([_.P3("downloadProgress"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dd.prototype,"updateProgress",null);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],dd);
_.G(dd,"ytd-download-playlist-button-renderer",function(){if(SKt!==void 0)return SKt;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return SKt=t},{mode:1});var pG9;_.k2(_.O2s,"thumbnail-overlay-button-view-model",{props:{data:_.uu,lockupExperiments:_.uu}});var uv=function(){var t=_.z.apply(this,arguments)||this;t.isSquare=!1;t.isVertical=!1;return t};
_.u(uv,_.z);uv.prototype.computeIsSquare=function(t){return t!=null&&t.thumbnail?kFC(t.thumbnail)==="SQUARE":!1};
uv.prototype.computeIsVertical=function(t){return t!=null&&t.thumbnail?kFC(t.thumbnail)==="VERTICAL":!1};
uv.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],uv.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],uv.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.P("design:type",Object)],uv.prototype,"isSquare",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.P("design:type",Object)],uv.prototype,"isVertical",void 0);
_.N([_.e(),_.P("design:type",Object)],uv.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],uv);
_.G(uv,"ytd-hero-playlist-thumbnail-renderer",function(){if(pG9!==void 0)return pG9;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return pG9=t},{mode:1});var Ja=function(){var t=_.z.apply(this,arguments)||this;t.isDarkTheme=!1;t.isUltraWide=!1;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return t};
_.u(Ja,_.z);_.Y=Ja.prototype;_.Y.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.X3();var t;(t=_.X3().resolve(_.OB(_.xV)))!=null&&(t.headerElement=this.hostElement)};
_.Y.detached=function(){var t;(t=_.X3().resolve(_.OB(_.xV)))!=null&&(t.headerElement=void 0)};
_.Y.onUpdateHeader=function(t){(t=t.detail)&&this.set("data",t)};
_.Y.computeTextDisplayed=function(t){if(t)return t.textDisplayed?t.textDisplayed:t.placeholder};
_.Y.gradientColorToLinearGradientStop=function(t){var E=this.isDarkTheme?t.darkThemeColor:t.lightThemeColor;return E?_.cL(E)+" "+((t==null?void 0:t.startLocation)||0)*100+"%":"transparent"};
_.Y.onWindowResize=function(){var t;((t=this.data)==null?0:t.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.Y.onIronResize=function(t){this.isUltraWide=!t.detail.value};
_.Y.onDarkModeToggledAction=function(t){this.isDarkTheme=t};
_.Y.onUpdatePlaylistName=function(t){var E=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},t.detail.value));_.XE(this,function(){var p;(p=E.editableTitle)==null||p.resize()})};
_.Y.onUpdatePlaylistDescription=function(t){var E=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},t.detail.value));_.XE(this,function(){var p;(p=E.editableDescriptionInlineExpander)==null||p.resize()})};
_.Y.getCinematicData=function(t){return _.k(t==null?void 0:t.cinematicContainer,hP)};
_.aE.Object.defineProperties(Ja.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 t,E=(t=this.getCinematicData(this.data))==null?void 0:t.config;return(t=this.isDarkTheme?E==null?void 0:E.darkThemeBackgroundColor:E==null?void 0:E.lightThemeBackgroundColor)?"background-color:"+_.SL(t)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var t;return _.k((t=this.data)==null?void 0:t.descriptionForm,ys8)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var t=this,E,p,U;return"background:linear-gradient(to bottom, "+(((U=(E=this.getCinematicData(this.data))==null?void 0:(p=E.gradientColorConfig)==null?void 0:p.map(function(x){return t.gradientColorToLinearGradientStop(x)}))==null?void 0:U.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var t;return _.R4((t=this.data)==null?void 0:t.descriptionTapText)}}});
Ja.prototype.onUpdateHeader=Ja.prototype.onUpdateHeader;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ja.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Ja.prototype,"actionHandlerBehavior",void 0);_.N([_.Nl("#description-inline-expander"),_.P("design:type",Object)],Ja.prototype,"descriptionInlineExpander",void 0);
_.N([_.Nl("#editable-description-inline-expander"),_.P("design:type",Object)],Ja.prototype,"editableDescriptionInlineExpander",void 0);_.N([_.e(),_.P("design:type",Object)],Ja.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Ja.prototype,"isUltraWide",void 0);_.N([_.Nl("#editable-title-display"),_.P("design:type",Object)],Ja.prototype,"editableTitle",void 0);_.N([_.Z("isUltraWide"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ja.prototype,"maxDescriptionLines",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ja.prototype,"noCinematicData",null);_.N([_.lc("yt-new-playlist-header"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Ja.prototype,"onUpdateHeader",null);_.N([_.Z("data","isDarkTheme"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ja.prototype,"backgroundStyle",null);
_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ja.prototype,"descriptionFormData",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ja.prototype,"getDropdownTheme",null);_.N([_.Z("data","isDarkTheme"),_.P("design:type",String),_.P("design:paramtypes",[])],Ja.prototype,"gradientStyle",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ja.prototype,"descriptionTapText",null);
_.N([_.Ul({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],Ja);
_.G(Ja,"ytd-playlist-header-renderer",function(){if(TdJ!==void 0)return TdJ;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return TdJ=t},{mode:_.hX("kevlar_poly_si_batch_j078")?1:2});var UZt;var xZJ;var I1=function(){return _.z.apply(this,arguments)||this};
_.u(I1,_.z);I1.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],I1.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],I1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],I1.prototype,"data",void 0);_.N([_.Ul({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],I1);
_.G(I1,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(xZJ!==void 0)return xZJ;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return xZJ=t},{mode:1});var gd=function(){return _.z.apply(this,arguments)||this};
_.u(gd,_.z);
gd.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}}}}};
gd.prototype.computeUsePremiumShowStyle=function(t){if(!t||!t.items)return!1;for(var E=0;E<t.items.length;E++)if(_.k(t.items[E],tmb)){var p=void 0;return((p=_.k(t.items[E],tmb))==null?void 0:p.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],gd.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],gd.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],gd.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.P("design:type",Boolean)],gd.prototype,"usePremiumShowStyle",void 0);
_.N([_.Ul({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],gd);
_.G(gd,"ytd-playlist-sidebar-renderer",function(){if(UZt!==void 0)return UZt;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return UZt=t},{mode:1});var Ait;var YPb;var Mqb=function(t,E,p,U,x,A,m,b){this.minWidth=t;this.minHeight=E;this.recommendedWidth=p;this.recommendedHeight=U;this.JSC$21712_maxFileSize=x;this.title=A;this.bannerGalleryTitle=m;this.channelId=b;this.picker_=null;t=_.qgi("yt-banner");E=t.addView;p=(new LPK("youtubebanner")).addUploadMetadata("silo_id","19");p.opts.ytMaxFileSize=this.JSC$21712_maxFileSize;U=this.recommendedHeight;p.opts.ytRecWidth=this.recommendedWidth;p.opts.ytRecHeight=U;E.call(t,p);t.addView(new _.E4);E=t.addView;p=new _.E4;
p.opts.type="ytbanner";E.call(t,p.JSC$10350_setLabel(this.bannerGalleryTitle));E=t.setTitle(this.title).setSize(1E3);E.urlParamMap_.set("thumbs","orig");p=this.minWidth;U=this.minHeight;if(isNaN(p)||isNaN(U))throw Error("hb`"+p+"`"+U);E.urlParamMap_.set("minSize",p+"x"+U);E.urlParamMap_.set("cropMode","ytcb");this.builder_=t};
Mqb.prototype.open=function(){var t=this;return new _.PE(function(E,p){_.xeZ(t.builder_,function(U){U.action=="picked"?E(U):U.action=="cancel"&&p(Error("Ul"))});
t.picker_&&t.picker_.dispose();t.picker_=t.builder_.build();t.picker_.setVisible(!0)})};
Mqb.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var mZ5=function(t){this.channelId=t};
mZ5.prototype.upload=function(t){var E="";t.viewToken&&(E=t.viewToken[2].type);var p=t.docs[0];t=p.crop;E={channel_id:this.channelId,fife_url:p.thumbnails[0].url,photo_id:p.id,is_gallery_image:E=="ytbanner"};t&&(E.crop_top=t.top,E.crop_right=t.right,E.crop_bottom=t.bottom,E.crop_left=t.left);return _.WlO("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:E})};var ZW=function(){var t=_.z.apply(this,arguments)||this;t.ariaLabel=null;return t};
_.u(ZW,_.z);_.Y=ZW.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.Y.detached=function(){this.picker&&this.picker.dispose()};
_.Y.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.Y.computeAriaLabel=function(t){return t};
_.Y.onTap=function(){var t=this,E;if((E=this.data)==null||!E.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new Mqb(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 p;(p=this.picker)==null||p.open().then(function(U){t.handleBannerPicked(U)},function(){})}};
_.Y.handleBannerPicked=function(t){var E=this;this.uploader||(this.uploader=new mZ5(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(t).then(function(p){E.handleBannerUploadSucceeded(p)},function(p){E.handleBannerUploadFailed(p)})};
_.Y.handleBannerUploadSucceeded=function(t){t&&t.errors?this.handleBannerUploadFailed(t):(_.kT(this.hostElement,"yt-banner-updated",t),this.message=null)};
_.Y.handleBannerUploadFailed=function(t){this.message=t&&t.errors&&t.errors.length?t.errors[0]:null};
ZW.prototype.dataChanged=ZW.prototype.dataChanged;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],ZW.prototype,"componentBehavior",void 0);_.N([_.g(_.Uv),_.P("design:type",Object)],ZW.prototype,"ironButtonState",void 0);_.N([_.e(),_.P("design:type",Object)],ZW.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.P("design:type",Object)],ZW.prototype,"ariaLabel",void 0);
_.N([_.e(),_.P("design:type",Object)],ZW.prototype,"message",void 0);_.N([_.e(),_.P("design:type",Object)],ZW.prototype,"picker",void 0);_.N([_.e(),_.P("design:type",Object)],ZW.prototype,"uploader",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ZW.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],ZW);
_.G(ZW,"ytd-channel-banner-editor-renderer",function(){if(YPb!==void 0)return YPb;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return YPb=t},{mode:1});var bjt;var ijt=_.CG(["#"]),OK=function(){return _.z.apply(this,arguments)||this};
_.u(OK,_.z);OK.prototype.computeHrefWithDefault=function(t){return this.ytComponentBehavior.computeHref_(t,!0)||_.kcO(ijt)};
OK.prototype.dataChanged=function(){var t=this.data;t&&t.targetId&&_.y8(_.SV(),t.targetId,this.moreIcon)};
OK.prototype.dataChanged=OK.prototype.dataChanged;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],OK.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],OK.prototype,"data",void 0);_.N([_.Nl("#more-icon"),_.P("design:type",Object)],OK.prototype,"moreIcon",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],OK.prototype,"dataChanged",null);
_.N([_.Ul({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],OK);
_.G(OK,"ytd-channel-tagline-renderer",function(){if(bjt!==void 0)return bjt;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return bjt=t},{mode:1});var qPL;var Xd=function(){return _.z.apply(this,arguments)||this};
_.u(Xd,_.z);_.Y=Xd.prototype;_.Y.ready=function(){var t=this;_.ZN(this.hostElement).querySelector("#form").addEventListener("submit",function(E){t.onSubmit(E)})};
_.Y.onDataChanged=function(){var t;((t=this.data)==null?0:t.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.Y.onIconButtonKeydown=function(t){t.keyCode===13&&this.iconButton.click()};
_.Y.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.Y.openOnClickHandler=function(){this.input.focus()};
_.Y.onSubmit=function(t){t.preventDefault();return!1};
_.Y.submitOnEnterKeyUp=function(t){var E;if(t.keyCode===13&&((E=this.data)==null?0:E.expandedText)){t=this.data.endpoint;E=_.Kq.unsafeClone(t);var p;((p=_.k(E==null?void 0:E.commandMetadata,_.hZ))==null?0:p.url)?(_.k(E.commandMetadata,_.hZ).url=_.Rz(_.k(E.commandMetadata,_.hZ).url,"query",this.data.expandedText),_.k(E,_.lC)&&(_.k(E,_.lC).query=this.data.expandedText),_.kT(this.hostElement,"yt-navigate",{endpoint:E,tempData:{disableCache:!0}})):(p=new _.cC("Error: Trying to navigate to an endpoint without url",
t),_.bV(p))}};
_.Y.updateDataExpandedTextFromBinding=function(t){this.set("data.expandedText",t.detail.value)};
_.aE.Object.defineProperties(Xd.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
Xd.prototype.onDataChanged=Xd.prototype.onDataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Xd.prototype,"ytRendererBehavior",void 0);_.N([_.g(FUJ),_.P("design:type",Object)],Xd.prototype,"ytdExpandableInputBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Xd.prototype,"data",void 0);_.N([_.Nl("#input"),_.P("design:type",Object)],Xd.prototype,"input",void 0);_.N([_.Nl("#icon-button"),_.P("design:type",HTMLElement)],Xd.prototype,"iconButton",void 0);
_.N([_.e(),_.P("design:type",String),_.P("design:paramtypes",[])],Xd.prototype,"searchIcon",null);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Xd.prototype,"onDataChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],Xd);
var I2K=_.Ol()(Xd,"ytd-expandable-tab-renderer",function(){if(qPL===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);qPL=t}t=qPL;return t},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var Hjd;var ha=function(){var t=_.z.apply(this,arguments)||this;t.avatarSize=80;t.ariaLabel=_.zF("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return t};
_.u(ha,_.z);ha.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
ha.prototype.computeHref=function(t){var E;return((E=_.k(t,_.kX))==null?0:E.url)?this.componentBehavior.computeHref_(t):null};
ha.prototype.onTap=function(){var t,E;(t=this.data)==null||!t.editAvatarServiceEndpoint||((E=_.k(this.data.editAvatarServiceEndpoint,_.kX))==null?0:E.url)||_.X3().resolve(_.ei).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.N([_.g(_.Uv),_.P("design:type",Object)],ha.prototype,"ironButtonState",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],ha.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],ha.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],ha.prototype,"avatarSize",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],ha.prototype,"ariaLabel",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],ha);
_.G(ha,"ytd-channel-avatar-editor",function(){if(Hjd!==void 0)return Hjd;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Hjd=t},{mode:1});var fhK=_.l(function(t){var E=t.data;var p=t.noPadding;var U=t.enableBanner;var x=t.cinematicContainerTopbarOffset;var A=t.allowCinematicContainerOverflow;var m=t.displayAsSidebar;t=t.className;_.M$(function(){E().tagManagerId&&(_.x9(E().tagManagerId,_.qO("GL")),CPC(E().tagManagerId))},"vUc8md");
var b=_.nd(Zro,function(){return E().pageHeaderEntityKey});
return _.H("yt-page-header-renderer",{class:_.X5("pageHeaderRendererHost",t)},_.H(_.sY,{data:function(){var f;return((f=b())==null?0:f.header)?b().header:(m==null?0:m())&&E().sidebarContent?E().sidebarContent:E().content}},{pageHeaderViewModel:function(f){return _.H(_.j08,{data:f.data,
noPadding:p,enableBanner:U,cinematicContainerTopbarOffset:x,allowCinematicContainerOverflow:A,displayAsSidebar:function(){return(m==null?void 0:m())&&E().enableSidebarView}})}}))},"qk");
fhK.idomCompat=!0;_.k2(fhK,"yt-page-header-renderer",{props:{data:_.uu,noPadding:_.uu,enableBanner:_.uu,cinematicContainerTopbarOffset:_.uu,allowCinematicContainerOverflow:_.uu,displayAsSidebar:_.uu,className:_.uu}});_.k2(_.u2,"yt-image-banner-view-model",{props:{data:_.uu,isPositionRelative:_.uu}});_.k2(_.NEt,"yt-tab-group-shape",{props:{shape:_.uu}});var Bb7=_.i7.persistentPanelVisibleSelector,a1=function(){var t=_.z.apply(this,arguments)||this;t.expandableCustomTabRenderable=function(E){return gut(E,function(){return void t.onSearchNavigate()})};
t.isRichGrid=!1;t.isConstrainedList=!1;t.richGridMiniMode=!1;t.richGridStyle="RICH_GRID_STYLE_UNKNOWN";t.isRichGridShorts=!1;t.responsiveSizing="COMPACT";t.disableGridStateAware=!1;t.useRaf=!_.r("web_use_raf_app_header_layout_killswitch");t.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return t};
_.u(a1,_.z);_.Y=a1.prototype;_.Y.computeHeaderDisabled=function(t,E){return E||!t||this.tabsHidden};
_.Y.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.Y.computeIsRichGridShorts=function(t){return t==="RICH_GRID_STYLE_SHORTS_GRID"||t==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.Y.computeImageBannerViewModel=function(){var t,E;return _.k((E=_.k((t=this.data)==null?void 0:t.content,_.dTG))==null?void 0:E.banner,_.Rho)};
_.Y.computeHasCinematicContainer=function(){var t,E;return!((E=_.k((t=this.data)==null?void 0:t.content,_.dTG))==null||!E.background)};
_.Y.handleHeaderResize=function(){var t=_.ZN(this.hostElement).querySelector("#header");t&&_.kT(t,"iron-resize")};
_.Y.handleInsertTabCommand=function(t){var E=_.k(t,Wvt);E&&(E.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(p){return p.tabRenderer&&p.tabRenderer.tabIdentifier===E.tabIdentifier})||this.splice("tabs",E.tabIndex||-1,0,E.tab))};
_.Y.handleRefreshChannelTabAction=function(t){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===t&&_.kT(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.Y.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.Y.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.eU(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.Y.observerRichGridSlimItemsPerRow=function(){_.eU(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.Y.updateCssVars=function(){this.richGridItemsPerRow&&_.eU(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.z3("rich_grid_max_item_width",500))+16)-16+"px"})};
_.Y.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.eU(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.Y.onDataChanged=function(){this.handleHeaderResize()};
_.Y.onWindowResize=function(){this.handleHeaderResize()};
_.Y.onFocusedChanged=function(t){(t=_.Qx(t))&&t.is==="tp-yt-paper-tab"&&t.hasRipple()&&(t.getRipple().holdDown=!t.pointerDown&&t.focused)};
_.Y.updateSelectedFromBinding=function(t){this.ytdTabbedHeaderBehavior.selected=t.detail.value};
_.Y.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.aE.Object.defineProperties(a1.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:XS7(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.imageBannerViewModel)==null?void 0:t.style)==="IMAGE_BANNER_STYLE_INSET"}}});
a1.prototype.onDataChanged=a1.prototype.onDataChanged;a1.prototype.updateCssVarsForResponsiveGrid=a1.prototype.updateCssVarsForResponsiveGrid;a1.prototype.updateCssVars=a1.prototype.updateCssVars;a1.prototype.observerRichGridSlimItemsPerRow=a1.prototype.observerRichGridSlimItemsPerRow;a1.prototype.observerRichGridItemsPerRow=a1.prototype.observerRichGridItemsPerRow;a1.prototype.persistentPanelVisibleChanged=a1.prototype.persistentPanelVisibleChanged;
_.N([_.g(_.Qo),_.P("design:type",Object)],a1.prototype,"ytdGridStateAwareBehavior",void 0);_.N([_.g(aQo),_.P("design:type",Object)],a1.prototype,"ytdTabbedHeaderBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],a1.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],a1.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(_.jp.YtdGuideStateAwareBehavior),_.P("design:type",Object)],a1.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],a1.prototype,"ytdReduxBehavior",void 0);_.N([_.Nl("#tabs"),_.P("design:type",Object)],a1.prototype,"tabsElement",void 0);_.N([_.e(),_.P("design:type",Array)],a1.prototype,"tabs",void 0);_.N([_.e(),_.P("design:type",Object)],a1.prototype,"expandableCustomTabRenderable",void 0);
_.N([_.Z("tabs.*"),_.P("design:type",Object),_.P("design:paramtypes",[])],a1.prototype,"tabGroupShape",null);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],a1.prototype,"isRichGrid",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],a1.prototype,"isConstrainedList",void 0);_.N([_.e({reflectToAttribute:!0,selector:_.cA}),_.P("design:type",Object)],a1.prototype,"richGridMiniMode",void 0);_.N([_.e({selector:function(t){return t.ui.richGridStyle}}),
_.P("design:type",Object)],a1.prototype,"richGridStyle",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.P("design:type",Object)],a1.prototype,"isRichGridShorts",void 0);_.N([_.e({selector:_.tf}),_.P("design:type",Number)],a1.prototype,"richGridItemsPerRow",void 0);_.N([_.e({selector:function(t){return t.ui.richGridContainerWidth}}),
_.P("design:type",Number)],a1.prototype,"richGridContainerWidth",void 0);_.N([_.e({selector:_.aFt}),_.P("design:type",Number)],a1.prototype,"richGridSlimItemsPerRow",void 0);_.N([_.e(),_.P("design:type",Object)],a1.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],a1.prototype,"responsiveSizing",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],a1.prototype,"disableGridStateAware",void 0);
_.N([_.e({computed:"computeImageBannerViewModel(data)"}),_.P("design:type",Object)],a1.prototype,"imageBannerViewModel",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.P("design:type",Boolean)],a1.prototype,"hasCinematicContainer",void 0);_.N([_.e({selector:$eg,reflectToAttribute:!0}),_.P("design:type",Boolean)],a1.prototype,"guideIsVisibleButNotPersistent",void 0);
_.N([_.e({selector:Bb7}),_.P("design:type",Boolean)],a1.prototype,"persistentPanelVisible",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("imageBannerViewModel"),_.P("design:type",Object),_.P("design:paramtypes",[])],a1.prototype,"hasBanner",null);_.N([_.e({reflectToAttribute:!0}),_.Z("imageBannerViewModel"),_.P("design:type",Object),_.P("design:paramtypes",[])],a1.prototype,"hasInsetBanner",null);_.N([_.e(),_.P("design:type",Object)],a1.prototype,"useRaf",void 0);
_.N([_.e({computed:"computeTabsHidden(tabs)",value:!0}),_.P("design:type",Boolean)],a1.prototype,"tabsHidden",void 0);_.N([_.GI("persistentPanelVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],a1.prototype,"persistentPanelVisibleChanged",null);_.N([_.GI("richGridItemsPerRow","isRichGrid"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],a1.prototype,"observerRichGridItemsPerRow",null);
_.N([_.GI("richGridSlimItemsPerRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],a1.prototype,"observerRichGridSlimItemsPerRow",null);_.N([_.GI("richGridItemsPerRow","richGridMiniMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],a1.prototype,"updateCssVars",null);
_.N([_.GI("richGridContainerWidth"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],a1.prototype,"updateCssVarsForResponsiveGrid",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],a1.prototype,"onDataChanged",null);_.N([_.Ul({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],a1);
_.G(a1,"ytd-tabbed-page-header",function(){if(Ait!==void 0)return Ait;var t=document.createElement("template");_.J(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout use-raf="[[useRaf]]" class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Ait=t},{mode:1});var wG9;var e7=function(){return _.z.apply(this,arguments)||this};
_.u(e7,_.z);e7.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],e7.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],e7.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],e7.prototype,"data",void 0);_.N([_.Ul({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],e7);
_.G(e7,"ytd-labs-edit-renderer",function(){if(wG9!==void 0)return wG9;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return wG9=t},{mode:1});var RKC;var Fd=function(){var t=_.z.apply(this,arguments)||this;t.dark=!1;t.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";t.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.u(Fd,_.z);Fd.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Fd.prototype.ready=function(){var t=document.documentElement.hasAttribute("dark");this.setBackgroundImage(t);this.dark=t};
Fd.prototype.onDarkModeToggledAction=function(t){this.setBackgroundImage(t);this.dark=t};
Fd.prototype.setBackgroundImage=function(t){_.eU(this.hostElement,{"--yt-labs-header-background":"url("+(t?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Fd.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Fd.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Fd.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Fd.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Fd.prototype,"dark",void 0);
_.N([_.Ul({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Fd);
_.G(Fd,"ytd-labs-header-renderer",function(){if(RKC!==void 0)return RKC;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return RKC=t},{mode:1});var Vqb;var zu=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return t};
_.u(zu,_.z);zu.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"}}}}}};
zu.prototype.onYtToggleButton=function(t){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",t.detail.toggled)};
zu.prototype.onManageLabsState=function(t){if(t=_.k(t,PLt))t.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?t.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&t.labsItemId===this.data.labsItemId&&(t.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.du(this.hostElement,"yt-check-labs-opted-in-state").some(function(E){return E})&&this.data.confirmationDialogCommand?_.IK(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.X3().resolve(_.ei).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&t.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.X3().resolve(_.ei).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
zu.prototype.onCheckLabsOptedInState=function(){var t=this.get("data.primaryButton.toggleButtonRenderer");return t?t.isToggled:!1};
_.aE.Object.defineProperties(zu.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
zu.prototype.onYtToggleButton=zu.prototype.onYtToggleButton;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],zu.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],zu.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],zu.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],zu.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],zu.prototype,"itemStyle",null);_.N([_.lc("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],zu.prototype,"onYtToggleButton",null);_.N([_.Ul({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],zu);
_.G(zu,"ytd-labs-item-renderer",function(){if(Vqb!==void 0)return Vqb;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Vqb=t},{mode:1});var QPo;var CEb;var jPt=function(){return _.z.apply(this,arguments)||this};
_.u(jPt,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],jPt.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],jPt.prototype,"data",void 0);_.N([_.Ul({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],jPt);
_.G(jPt,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(CEb!==void 0)return CEb;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return CEb=t},{mode:1});var ri5;var lv=function(){return _.z.apply(this,arguments)||this};
_.u(lv,_.z);lv.prototype.observeSuperchatChip=function(){if(this.data){var t={"--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)};_.eU(this.hostElement,t)}};
lv.prototype.colorFromDecimal=function(t){return _.cL(Number(t||0))};
lv.prototype.observeSuperchatChip=lv.prototype.observeSuperchatChip;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],lv.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],lv.prototype,"data",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],lv.prototype,"observeSuperchatChip",null);_.N([_.Ul({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],lv);
_.G(lv,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(ri5!==void 0)return ri5;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return ri5=t},{mode:1});var Gu=function(){return _.z.apply(this,arguments)||this};
_.u(Gu,_.z);Gu.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"}}}};
_.aE.Object.defineProperties(Gu.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Gu.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Gu.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],Gu.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Gu.prototype,"data",void 0);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Gu.prototype,"hideMessageBlock",null);
_.N([_.Ul({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Gu);
_.G(Gu,"ytd-live-chat-history-entry-renderer",function(){if(QPo!==void 0)return QPo;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return QPo=t},{mode:1});var kB7;var nI=function(){return _.z.apply(this,arguments)||this};
_.u(nI,_.z);nI.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.eU(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.aE.Object.defineProperties(nI.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var t,E;return this.componentBehavior.computeIcon_(((E=_.k((t=this.data)==null?void 0:t.badge,_.Ixm))==null?void 0:E.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var t,E;return(E=_.k((t=this.data)==null?void 0:t.badge,_.Ixm))==null?void 0:E.label}}});
nI.prototype.observerRichGridItemsPerRow=nI.prototype.observerRichGridItemsPerRow;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],nI.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],nI.prototype,"componentBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],nI.prototype,"ytdReduxBehavior",void 0);_.N([_.e({reflectToAttribute:!0,selector:_.cA}),_.P("design:type",Boolean)],nI.prototype,"richGridMiniMode",void 0);
_.N([_.e({selector:_.tf}),_.P("design:type",Number)],nI.prototype,"richGridItemsPerRow",void 0);_.N([_.e(),_.P("design:type",Object)],nI.prototype,"data",void 0);_.N([_.GI("richGridItemsPerRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nI.prototype,"observerRichGridItemsPerRow",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],nI.prototype,"badgeIconName",null);
_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],nI.prototype,"badgeLabel",null);_.N([_.Ul({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],nI);
_.G(nI,"ytd-member-hub-profile-renderer",function(){if(kB7!==void 0)return kB7;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return kB7=t},{mode:1});var dZ9;var NP=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return t};
_.u(NP,_.z);
NP.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"}}}};
NP.prototype.handleUpdateTextCommand=function(t){(t=_.k(t,_.fx4))&&this.data&&this.data.id===t.id&&this.set("data",t)};
NP.prototype.handleUpdateConnectedAppRendererCommand=function(t){if(_.k(t,_.RWZ)&&this.data){var E,p;if(t=(E=_.k(t,_.RWZ))==null?void 0:(p=E.newConnectedAppRenderer)==null?void 0:p.connectedAppRenderer)this.data=t}};
NP.prototype.computeConnectedAppStyle=function(t){return t.style?t.style.toLowerCase().replace(/_/g,"-"):""};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],NP.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],NP.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],NP.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],NP.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.P("design:type",String)],NP.prototype,"connectedAppStyle",void 0);_.N([_.Ul({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],NP);
_.G(NP,"ytd-connected-app-renderer",function(){if(dZ9!==void 0)return dZ9;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return dZ9=t},{mode:1});var uX5;var JiK=function(){return _.z.apply(this,arguments)||this};
_.u(JiK,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],JiK.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],JiK.prototype,"data",void 0);_.N([_.Ul({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],JiK);
_.G(JiK,"ytd-channel-options-renderer",function(){if(uX5!==void 0)return uX5;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return uX5=t},{mode:1});var Iho;var DW=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return t};
_.u(DW,_.z);DW.prototype.onCheckboxChange=function(t){this.data&&(t=(this.checked=_.Qx(t).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.X3().resolve(_.ei).resolveCommand(t,{form:{element:this.hostElement}})};
DW.prototype.handleUpdateCheckboxCommand=function(t){(t=_.k(t,_.HQr))&&this.data&&this.data.id===t.id&&(this.set("data.disabled",t.disabled),this.set("data.title",t.title))};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],DW.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],DW.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],DW.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Boolean)],DW.prototype,"checked",void 0);_.N([_.Ul({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],DW);
_.G(DW,"ytd-settings-checkbox-renderer",function(){if(Iho!==void 0)return Iho;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Iho=t},{mode:1});var gvC;var sK=function(){return _.z.apply(this,arguments)||this};
_.u(sK,_.z);sK.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],sK.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],sK.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],sK.prototype,"data",void 0);_.N([_.Ul({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],sK);
_.G(sK,"ytd-settings-email-item-renderer",function(){if(gvC!==void 0)return gvC;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return gvC=t},{mode:1});var Zj7;var LI=function(){return _.z.apply(this,arguments)||this};
_.u(LI,_.z);LI.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"}}}};
LI.prototype.getExpansionIcon=function(t){return t?"COLLAPSE":"EXPAND"};
LI.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.aE.Object.defineProperties(LI.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],LI.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],LI.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],LI.prototype,"data",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],LI.prototype,"expanded",void 0);_.N([_.Z("expanded"),_.P("design:type",String),_.P("design:paramtypes",[])],LI.prototype,"emailListExpanded",null);
_.N([_.Nl("#options"),_.P("design:type",Object)],LI.prototype,"options",void 0);_.N([_.Ul({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],LI);
_.G(LI,"ytd-settings-email-list-renderer",function(){if(Zj7!==void 0)return Zj7;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Zj7=t},{mode:1});var Ojd;var XGg;var hKt;var ahe;var eKb;var P1=function(){return _.z.apply(this,arguments)||this};
_.u(P1,_.z);_.Y=P1.prototype;_.Y.computePreselectedOption=function(t,E){return E===this.itemSelected_?t:void 0};
_.Y.dataChanged_=function(){var t=this;this.preselectedSubreason=this.itemSelected_=-1;var E;(E=this.data)!=null&&E.key&&_.XE(this,function(){var p,U=Number((p=t.data)==null?void 0:p.key);!Number.isNaN(U)&&(t.itemSelected_=U,p=(p=(t.data.items||[])[U])&&p.optionSelectableItemRenderer&&p.optionSelectableItemRenderer.preselectedIndex)&&(t.preselectedSubreason=p)})};
_.Y.isSubReasonHidden_=function(t,E){return t!=E};
_.Y.onTopItemSelected_=function(t,E){for(var p=_.ZN(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),U=0,x=p.length;U<x;U++)p[U].select(0);_.du(this.hostElement,"yt-report-form-update",[E.item.value]);t.stopPropagation()};
_.Y.onItemSelected_=function(t,E){_.du(this.hostElement,"yt-report-form-update",[E.item.value]);t.stopPropagation()};
_.Y.getItem_=function(t){return t.serviceItem?t.serviceItem:t.navigationItem?t.navigationItem:t.optionSelectableItemRenderer?t.optionSelectableItemRenderer:null};
_.Y.computeText_=function(t){return(t=this.getItem_(t))?this.ytRendererBehavior.getSimpleString(t.text):null};
_.Y.validate=function(){return this.itemSelected_!==-1};
_.Y.computeAriaLabel_=function(t){var E=_.R4(t.text);(t=t.accessibility&&t.accessibility.accessibilityData&&t.accessibility.accessibilityData.label)&&(E+=". "+t);return E};
_.Y.computeItemSelected_=function(t){return t};
_.Y.preventSelection_=function(t){t.stopPropagation();this.tooltipTapped=!0};
_.Y.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.Y.updateItemSelectedFromBinding=function(t){this.itemSelected_=t.detail.value};
_.Y.save=function(){var t;this.validate()&&(t=this.data)!=null&&t.items&&(t=this.data.items[this.itemSelected_],t!=null&&t.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(t.optionSelectableItemRenderer.submitEndpoint)||_.JZ(this.hostElement,[t.optionSelectableItemRenderer.submitEndpoint])))};
P1.prototype.onPaperRippleTransitionEnd_=P1.prototype.onPaperRippleTransitionEnd_;P1.prototype.dataChanged_=P1.prototype.dataChanged_;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],P1.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],P1.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],P1.prototype,"data",void 0);_.N([_.e({value:-1}),_.P("design:type",Number)],P1.prototype,"itemSelected_",void 0);
_.N([_.e({computed:"computeItemSelected_(itemSelected_)"}),_.P("design:type",Number)],P1.prototype,"value",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],P1.prototype,"restoreFocusOnClose",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],P1.prototype,"tooltipTapped",void 0);_.N([_.e({value:-1}),_.P("design:type",Number)],P1.prototype,"preselectedSubreason",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],P1.prototype,"dataChanged_",null);_.N([_.lc("transitionend"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],P1.prototype,"onPaperRippleTransitionEnd_",null);_.N([_.p4({is:"yt-options-renderer",disableElementRegistration:!0})],P1);
_.G(P1,"yt-options-renderer",function(){if(eKb===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;ahe===void 0&&(ahe=document.createElement("template"));var U=ahe;p.call(E,U.content.cloneNode(!0),t.content.firstChild);eKb=t}t=eKb;return t},{mode:2});var Fl8;var zK5;var lht;var GB5;var Tu=function(){return _.z.apply(this,arguments)||this};
_.u(Tu,_.z);Tu.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
Tu.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Tu.prototype.onTap=function(t){if(this.hostElement.classList.contains("selected")||_.du(this.hostElement,"yt-share-panel-can-select-contact-action")[0])t&&t.detail&&(t.detail.x||t.detail.y)&&_.ZN(this.hostElement).querySelector("#target").blur(),(t=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),t={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:t?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.du(this.hostElement,"yt-share-panel-select-contact-action",[t])};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Tu.prototype,"ytRendererBehavior",void 0);_.N([_.e({observer:"onDataChanged"}),_.P("design:type",Object)],Tu.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.P("design:type",String)],Tu.prototype,"componentTitle",void 0);_.N([_.Nl("#thumbnail"),_.P("design:type",Object)],Tu.prototype,"thumbnail",void 0);_.N([_.p4({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],Tu);
_.G(Tu,"yt-enrolled-contact-renderer",function(){if(GB5===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;lht===void 0&&(lht=document.createElement("template"));var U=lht;p.call(E,U.content.cloneNode(!0),t.content.firstChild);GB5=t}t=GB5;return t},{mode:2});var nve;var Nb5;var o1=function(){return _.z.apply(this,arguments)||this};
_.u(o1,_.z);o1.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
o1.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
o1.prototype.onTap=function(t){if(this.hostElement.classList.contains("selected")||_.du(this.hostElement,"yt-share-panel-can-select-contact-action")[0])t&&t.detail&&(t.detail.x||t.detail.y)&&_.ZN(this.hostElement).querySelector("#target").blur(),(t=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),t={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:t?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.du(this.hostElement,"yt-share-panel-select-contact-action",[t])};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],o1.prototype,"ytRendererBehavior",void 0);_.N([_.e({observer:"onDataChanged"}),_.P("design:type",Object)],o1.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.P("design:type",String)],o1.prototype,"componentTitle",void 0);_.N([_.Nl("#thumbnail"),_.P("design:type",Object)],o1.prototype,"thumbnail",void 0);_.N([_.p4({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],o1);
_.G(o1,"yt-suggested-contact-renderer",function(){if(Nb5===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;nve===void 0&&(nve=document.createElement("template"));var U=nve;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Nb5=t}t=Nb5;return t},{mode:2});var W1=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-share-panel-reset-action":"onReset"};return t};
_.u(W1,_.z);W1.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"}}}}}};
W1.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.du(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
W1.prototype.onReset=function(){for(var t=_.ZN(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),E=t.length-1;E>=0;E--)t[E].classList.toggle("selected")};
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],W1.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],W1.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],W1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e({observer:"onDataChanged"}),_.P("design:type",Object)],W1.prototype,"data",void 0);
_.N([_.p4({is:"yt-contact-section-renderer",disableElementRegistration:!0})],W1);
_.G(W1,"yt-contact-section-renderer",function(){if(zK5===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;Fl8===void 0&&(Fl8=document.createElement("template"));var U=Fl8;p.call(E,U.content.cloneNode(!0),t.content.firstChild);zK5=t}t=zK5;return t},{mode:2});var $P=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return t};
_.u($P,_.z);_.Y=$P.prototype;_.Y.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"}}}};
_.Y.onYtRefreshFormCommand=function(t){var E;(t=_.k((E=_.k(t,_.K$0))==null?void 0:E.formRenderer,vco))&&this.set("data",t)};
_.Y.reset=function(){var t=_.ZN(this.hostElement).querySelector("#fields").children;t=_.M(t);for(var E=t.next();!E.done;E=t.next())E=E.value,E.reset&&E.reset()};
_.Y.getForm=function(){var t={},E=_.ZN(this.hostElement).querySelector("#fields").children;E=_.M(E);for(var p=E.next();!p.done;p=E.next()){p=p.value;if(!p.validate())return null;t[p.data.key]=p.value}return t};
_.Y.submitFormFields=function(){if(this.fields)for(var t=_.M(this.fields),E=t.next();!E.done;E=t.next())E=E.value,E.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?E.save():E.nodeName==="YT-OPTIONS-RENDERER"&&E.save()};
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],$P.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],$P.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],$P.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],$P.prototype,"data",void 0);_.N([_.DN("#fields > *"),_.P("design:type",Array)],$P.prototype,"fields",void 0);
_.N([_.p4({is:"yt-form-renderer",disableElementRegistration:!0})],$P);
_.G($P,"yt-form-renderer",function(){if(hKt===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;XGg===void 0&&(XGg=document.createElement("template"));var U=XGg;p.call(E,U.content.cloneNode(!0),t.content.firstChild);hKt=t}t=hKt;return t},{mode:2});var KI=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return t};
_.u(KI,_.z);KI.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"}}}};
KI.prototype.handleSignalActionSubmitForm=function(){var t,E=(t=this.formRenderer)==null?void 0:t.getForm();E&&this.data.serviceEndpoint&&_.X3().resolve(_.ei).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},E,{element:this.hostElement})})};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],KI.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],KI.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],KI.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],KI.prototype,"data",void 0);_.N([_.Nl("yt-form-renderer"),_.P("design:type",Object)],KI.prototype,"formRenderer",void 0);
_.N([_.Ul({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],KI);
_.G(KI,"ytd-settings-gaia-link-renderer",function(){if(Ojd!==void 0)return Ojd;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Ojd=t},{mode:1});var DZt;var sPe;var v1=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return t};
_.u(v1,_.z);v1.prototype.dataChanged=function(){var t=this,E;return _.q(function(p){if(p.nextAddress==1)return t.radio.removeAttribute("checked"),!t.data||!t.data.id||t.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||iyL()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(E=t.data&&t.data.id)?p.yield(Hyg(t.data.id),4):p.jumpTo(3):(t.set("data.hidden",!0),p.jumpTo(0));p.nextAddress!=3&&(E=p.yieldResult);E&&_.du(t.hostElement,"yt-select-settings-radio-option",[t.data.id]);_.Do(p)})};
v1.prototype.onButtonChanged=function(t){_.Qx(t).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.X3().resolve(_.ei).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.du(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
v1.prototype.onSelectOption=function(t){this.data&&this.data.id&&(this.data.id===t?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
v1.prototype.dataChanged=v1.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],v1.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],v1.prototype,"ytActionHandlerBehavior",void 0);_.N([_.Nl("#radio"),_.P("design:type",Object)],v1.prototype,"radio",void 0);_.N([_.e(),_.P("design:type",Object)],v1.prototype,"data",void 0);
_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],v1.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],v1);
_.G(v1,"ytd-settings-radio-option-renderer",function(){if(sPe!==void 0)return sPe;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return sPe=t},{mode:1});_.k2(_.Qn,"basic-content-view-model",{props:{data:_.Cy,className:_.Cy}});var y3=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return t};
_.u(y3,_.z);y3.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&iyL()&&this.set("data.hidden",!1)};
y3.prototype.onSwitchReady=function(){var t=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.r("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){KVJ().then(function(E){E&&(Notification.permission==="default"?t.set("data.hidden",!1):Notification.permission==="granted"&&iT("NotificationsDisabled").then(function(p){p||_.du(t.hostElement,"yt-toggle-settings-switch",[t.data.id,!p]);t.set("data.hidden",!1)}).catch(function(){}))})})};
y3.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{channelOptionsRenderer:{component:"ytd-channel-options-renderer",noInjection:!0},copyLinkRenderer:{component:"yt-copy-link-renderer",noInjection:!0,params:{adaptiveFullWidth:!0}},dropdownRenderer:{component:"ytd-dropdown-renderer",params:{hasBackground:!0,verticalAlign:"bottom",noUnderline:!0},noInjection:!0},settingsCheckboxRenderer:{component:"ytd-settings-checkbox-renderer",noInjection:!0},settingsEmailListRenderer:{component:"ytd-settings-email-list-renderer",
noInjection:!0},settingsGaiaLinkRenderer:{component:"ytd-settings-gaia-link-renderer",noInjection:!0},settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0},settingsSwitchRenderer:{component:"ytd-settings-switch-renderer",noInjection:!0},connectedAppRenderer:{component:"ytd-connected-app-renderer",noInjection:!0},basicContentViewModel:{component:"basic-content-view-model",noInjection:!0}}}}};
y3.prototype.handleUpdateOptionsCommand=function(t){(t=_.k(t,_.B20))&&this.data&&this.data.id===t.id&&(this.set("data.hidden",t.hidden),t.text!==void 0&&this.set("data.text",t.text),t.clearOptions&&this.set("data.options",[]))};
y3.prototype.onSwitchReady=y3.prototype.onSwitchReady;y3.prototype.dataChanged=y3.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],y3.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],y3.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],y3.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],y3.prototype,"data",void 0);
_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],y3.prototype,"dataChanged",null);_.N([_.lc("yt-settings-switch-ready"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],y3.prototype,"onSwitchReady",null);_.N([_.Ul({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],y3);
_.G(y3,"ytd-settings-options-renderer",function(){if(DZt!==void 0)return DZt;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return DZt=t},{mode:1});var Lle;var S7=function(){return _.z.apply(this,arguments)||this};
_.u(S7,_.z);S7.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],S7.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],S7.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],S7.prototype,"data",void 0);_.N([_.Ul({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],S7);
_.G(S7,"ytd-settings-sidebar-renderer",function(){if(Lle!==void 0)return Lle;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Lle=t},{mode:1});var PEl;var c1=function(){return _.z.apply(this,arguments)||this};
_.u(c1,_.z);c1.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
c1.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
c1.prototype.onYtExpanderMoreTapped=c1.prototype.onYtExpanderMoreTapped;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],c1.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],c1.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],c1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],c1.prototype,"data",void 0);
_.N([_.lc("yt-expander-more-tapped"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],c1.prototype,"onYtExpanderMoreTapped",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],c1);
_.G(c1,"ytd-product-details-description-renderer",function(){if(PEl!==void 0)return PEl;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return PEl=t},{mode:1});var TbL;var ti=function(){var t=_.z.apply(this,arguments)||this;t.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";t.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";t.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";t.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return t};
_.u(ti,_.z);ti.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.aE.Object.defineProperties(ti.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.data)==null?void 0:(E=t.offerData)==null?void 0:E.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.data)==null?void 0:t.purchaseButtonRenderers)!==void 0&&((E=this.data)==null?void 0:E.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var t,E;return!((t=this.data)==null||!t.formattedFromMerchantText)&&(!((E=this.data)==null||!E.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],ti.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],ti.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],ti.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],ti.prototype,"data",void 0);
_.N([_.e({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0}),_.P("design:type",Object)],ti.prototype,"shippingIcon",void 0);_.N([_.e({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0}),_.P("design:type",Object)],ti.prototype,"shippingAddressIcon",void 0);_.N([_.e({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0}),_.P("design:type",Object)],ti.prototype,"googleGuaranteeIcon",void 0);
_.N([_.e({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0}),_.P("design:type",Object)],ti.prototype,"returnPolicyIcon",void 0);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ti.prototype,"showAdditionalFees",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ti.prototype,"showMultiPurchaseButtons",null);
_.N([_.Z("data","showMultiPurchaseButtons"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ti.prototype,"showPurchaseData",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],ti);
_.G(ti,"ytd-product-details-hero-offer-renderer",function(){if(TbL!==void 0)return TbL;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return TbL=t},{mode:1});var ovl;var Wll;var EP=function(){return _.z.apply(this,arguments)||this};
_.u(EP,_.z);_.Y=EP.prototype;_.Y.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.Y.onKeyDown=function(t){t=t.keyCode;t!==13&&t!==32||this.handleSelection()};
_.Y.onMouseEnterImage=function(){var t;((t=this.data)==null?void 0:t.thumbnailDetails)!==void 0&&_.uO(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.Y.onMouseLeaveImage=function(){_.uO(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.Y.handleSelection=function(){this.data&&_.kT(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.aE.Object.defineProperties(EP.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.isSelected)}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],EP.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],EP.prototype,"data",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],EP.prototype,"isSelected",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],EP);
_.G(EP,"ytd-product-details-thumbnail-renderer",function(){if(Wll!==void 0)return Wll;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Wll=t},{mode:1});var pj=function(){var t=_.z.apply(this,arguments)||this;var E={};t.actionMap=(E["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",E["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",E);t.selectedThumbnailIndex=0;t.selectItem=function(p){p.target.onKeyDown(p)};
return t};
_.u(pj,_.z);_.Y=pj.prototype;_.Y.handlePreviewImageSelect=function(t){this.hoverThumbnail=t};
_.Y.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.Y.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.Y.onThumbnailSelected=function(t,E){this.selectedThumbnailIndex=E};
_.Y.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.Y.updateOffset=function(){var t=_.ZN(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-t));this.ytdHorizontalListBehavior.reposition_()};
_.aE.Object.defineProperties(pj.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null?0:t.imageRenderer){var E,p;return((E=this.data)==null?void 0:(p=E.imageRenderer)==null?void 0:p.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var t;if((t=this.data)==null?0:t.imageRenderer){var E;return(E=_.k(this.data.imageRenderer[this.selectedThumbnailIndex],jAo))==null?void 0:E.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var t=this,E,p,U,x=(U=(E=this.data)==null?void 0:(p=E.imageRenderer)==null?void 0:p.map(function(A,m){return{productDetailsThumbnailRenderer:Object.assign({},_.k(A,jAo),{index:m,isSelected:m===t.selectedThumbnailIndex})}}))!=null?U:[];
return Object.assign({},this.data,{imageRenderer:x})}}});
pj.prototype.updateOffset=pj.prototype.updateOffset;pj.prototype.dataChanged=pj.prototype.dataChanged;pj.prototype.onThumbnailSelected=pj.prototype.onThumbnailSelected;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],pj.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],pj.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.zp.YtdHorizontalListBehavior),_.P("design:type",Object)],pj.prototype,"ytdHorizontalListBehavior",void 0);
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],pj.prototype,"componentBehavior",void 0);_.N([_.g([_.oO.YtActionHandlerBehavior]),_.P("design:type",Object)],pj.prototype,"actionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],pj.prototype,"data",void 0);_.N([_.e({value:"$.items.children"}),_.P("design:type",String)],pj.prototype,"itemsPath",void 0);_.N([_.e({value:3}),_.P("design:type",Number)],pj.prototype,"initialCount",void 0);
_.N([_.Nl("#items"),_.P("design:type",Object)],pj.prototype,"items",void 0);_.N([_.e(),_.P("design:type",Object)],pj.prototype,"selectedThumbnailIndex",void 0);_.N([_.e(),_.P("design:type",Object)],pj.prototype,"hoverThumbnail",void 0);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],pj.prototype,"showThumbnails",null);
_.N([_.lc("ytd-product-details-thumbnail-renderer-selected"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Number]),_.P("design:returntype")],pj.prototype,"onThumbnailSelected",null);_.N([_.Z("data","selectedThumbnailIndex","hoverThumbnail"),_.P("design:type",Object),_.P("design:paramtypes",[])],pj.prototype,"thumbnailDetails",null);_.N([_.Z("data","selectedThumbnailIndex"),_.P("design:type",Object),_.P("design:paramtypes",[])],pj.prototype,"populatedData",null);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pj.prototype,"dataChanged",null);_.N([_.lc("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pj.prototype,"updateOffset",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],pj);
_.G(pj,"ytd-product-details-image-carousel-renderer",function(){if(ovl!==void 0)return ovl;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return ovl=t},{mode:_.hX("kevlar_poly_si_batch_j079")?1:2});var $Zb;var UP=function(){return _.z.apply(this,arguments)||this};
_.u(UP,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],UP.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],UP.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],UP.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],UP.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],UP);
_.G(UP,"ytd-product-details-offer-renderer",function(){if($Zb!==void 0)return $Zb;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return $Zb=t},{mode:1});var Kld;var xv=function(){var t=_.z.apply(this,arguments)||this;t.isOffersHidden=!0;return t};
_.u(xv,_.z);xv.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var t,E=_.k((t=this.data)==null?void 0:t.viewOffersButton,_.Ry);E&&this.ytRendererBehavior.logExplicitClick(E)};
xv.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.aE.Object.defineProperties(xv.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var t,E,p,U;return(p=_.k((t=this.data)==null?void 0:(E=t.offers)==null?void 0:E[0],uk7))==null?void 0:(U=p.offerData)==null?void 0:U.vendorLogoUrl}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],xv.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],xv.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],xv.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],xv.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],xv.prototype,"isOffersHidden",void 0);
_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],xv.prototype,"firstOfferVendorLogoUrl",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],xv);
_.G(xv,"ytd-product-details-offers-container-renderer",function(){if(Kld!==void 0)return Kld;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Kld=t},{mode:1});var vvd;var yil;var Ai=function(){return _.z.apply(this,arguments)||this};
_.u(Ai,_.z);Ai.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
Ai.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.uO(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
Ai.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.uO(this,"ytd-product-details-variant-image-unselect")};
_.aE.Object.defineProperties(Ai.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 t;return((t=this.data)==null?void 0:t.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return((t=this.data)==null?void 0:t.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((E=this.data)==null?void 0:E.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((p=this.data)==null?void 0:p.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var t;if(((t=this.data)==null?void 0:t.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var t,E;return this.isUnavailable?(t=this.data)==null?void 0:t.variantOptionUnavailableAccessibilityLabel:(E=this.data)==null?void 0:E.variantOptionAccessibilityLabel}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ai.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Ai.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Ai.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Ai.prototype,"data",void 0);_.N([_.e(),_.P("design:type",String)],Ai.prototype,"displayType",void 0);
_.N([_.Z("displayType","data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Ai.prototype,"isImageButton",null);_.N([_.Z("displayType","data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Ai.prototype,"isPillButton",null);_.N([_.Z("data"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Ai.prototype,"isActive",null);
_.N([_.Z("data"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Ai.prototype,"isUnavailable",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ai.prototype,"thumbnailDetails",null);_.N([_.Z("isUnavailable","data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ai.prototype,"accessibilityLabel",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],Ai);
_.G(Ai,"ytd-product-details-variant-option-renderer",function(){if(yil!==void 0)return yil;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return yil=t},{mode:1});var SPb;var Yv=function(){var t=_.z.apply(this,arguments)||this;t.variantsExpanded=!1;t.hideShowMoreLessVariantButton=!0;t.initialized=!1;t.computeVariantsDebouncer=null;t.computeVariants=function(E){E=E===void 0?!1:E;t.variantsExpanded||t.showOptions()||!E||(t.variantsExpanded=!0);if(t.variantsExpanded){E=_.M(t.items.children);for(var p=E.next();!p.done;p=E.next())p.value.hidden=!1}t.initialized=!0};
return t};
_.u(Yv,_.z);_.Y=Yv.prototype;_.Y.ready=function(){var t=this;setTimeout(function(){t.computeVariants(!0)})};
_.Y.showOptions=function(){for(var t=_.M(this.items.children),E=t.next();!E.done;E=t.next())E.value.hidden=!0;var p=this.container.getBoundingClientRect().width,U=0,x=t=0;E=!1;for(var A=_.M(this.items.children),m=A.next();!m.done;m=A.next()){m=m.value;m.hidden=!1;var b=m.getBoundingClientRect().width;if(U+b<p)U+=b;else if(++x<2)U=b;else break;t+=1;m.hasAttribute("is-active")&&(E=!0)}for(p=t;p<this.items.children.length;p++)this.items.children[p].hidden=!0;this.hideShowMoreLessVariantButton=t===this.items.children.length;
return E};
_.Y.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.G9(this.computeVariantsDebouncer,_.JB.after(100),this.computeVariants)};
_.Y.onShowMoreLessVariantsButtonClick=function(){var t;(t=this.data)!=null&&t.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.Y.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.aE.Object.defineProperties(Yv.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var t,E,p=(t=this.data)==null?void 0:(E=t.variantOptionRenderers)==null?void 0:E.find(function(A){return _.k(A,kbl).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),U,x;
return(x=(U=_.k(p,kbl))==null?void 0:U.name)!=null?x:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.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"}}}});
Yv.prototype.debouncedComputeVariants=Yv.prototype.debouncedComputeVariants;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Yv.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Yv.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Yv.prototype,"componentBehavior",void 0);_.N([_.g(_.Ev),_.P("design:type",Object)],Yv.prototype,"ironResizableBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],Yv.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Yv.prototype,"variantsExpanded",void 0);_.N([_.e(),_.P("design:type",Object)],Yv.prototype,"hideShowMoreLessVariantButton",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Yv.prototype,"initialized",void 0);_.N([_.Nl("#items"),_.P("design:type",HTMLDivElement)],Yv.prototype,"items",void 0);_.N([_.Nl("#container"),_.P("design:type",HTMLDivElement)],Yv.prototype,"container",void 0);
_.N([_.Nl("#more-variants-button"),_.P("design:type",HTMLElement)],Yv.prototype,"moreVariantsButton",void 0);_.N([_.Z("data"),_.P("design:type",String),_.P("design:paramtypes",[])],Yv.prototype,"selectedOptionName",null);_.N([_.GI("data","variantsExpanded"),_.lc("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yv.prototype,"debouncedComputeVariants",null);
_.N([_.Z("data"),_.P("design:type",String),_.P("design:paramtypes",[])],Yv.prototype,"displayType",null);_.N([_.Z("displayType"),_.P("design:type",Object),_.P("design:paramtypes",[])],Yv.prototype,"variantItemsClassname",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],Yv);
_.G(Yv,"ytd-product-details-variant-renderer",function(){if(SPb!==void 0)return SPb;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return SPb=t},{mode:1});var MZ=function(){return _.z.apply(this,arguments)||this};
_.u(MZ,_.z);
MZ.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"}}}};
_.aE.Object.defineProperties(MZ.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var t,E,p=(E=_.k((t=this.data)==null?void 0:t.offersContainerRenderer,dSl))==null?void 0:E.offers;return p!==void 0&&(p==null?void 0:p.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 t,E,p;return((p=(t=this.data)==null?void 0:(E=t.variants)==null?void 0:E.map(function(U){var x,A;U=(A=(x=_.k(U,rxe))==null?void 0:x.variantOptionRenderers)==null?void 0:A.find(function(b){var f;return((f=_.k(b,kbl))==null?void 0:f.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var m;return(m=_.k(U,kbl))==null?void 0:m.name}).filter(function(U){return typeof U==="string"}))!=null?p:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var t,E,p,U=(E=_.k((t=this.data)==null?void 0:t.shoppingFlaggingRenderer,Jx5))==null?void 0:(p=E.reportButton)==null?void 0:p.buttonRenderer;if(U)return{text:U.text,command:U.command,icon:{iconType:"FLAG"},accessibilityData:U.accessibilityData,trackingParams:U.trackingParams,loggingDirectives:U.loggingDirectives}}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],MZ.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],MZ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],MZ.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],MZ.prototype,"data",void 0);_.N([_.Nl("#image-carousel-renderer"),_.P("design:type",Object)],MZ.prototype,"imageCarouselRenderer",void 0);
_.N([_.Nl("#hero-offer-renderer"),_.P("design:type",Object)],MZ.prototype,"productDetailsHeroOfferRenderer",void 0);_.N([_.Nl("#variants"),_.P("design:type",Object)],MZ.prototype,"productDetailsVariantRenderer",void 0);_.N([_.Nl("#offers"),_.P("design:type",Object)],MZ.prototype,"productDetailsOffersContainerRenderer",void 0);_.N([_.Nl("#description-renderer"),_.P("design:type",Object)],MZ.prototype,"productDetailsDescriptionRenderer",void 0);
_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MZ.prototype,"showPurchaseData",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MZ.prototype,"showHeroOfferRenderer",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MZ.prototype,"showBrandText",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MZ.prototype,"showOffers",null);
_.N([_.Z("showOffers","showPurchaseData"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MZ.prototype,"showBuySeparator",null);_.N([_.Z("showOffers","showPurchaseData"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],MZ.prototype,"showBuyCard",null);_.N([_.Z("data"),_.P("design:type",String),_.P("design:paramtypes",[])],MZ.prototype,"selectedVariantsText",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],MZ.prototype,"shoppingReportingButtonData",null);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],MZ);
_.G(MZ,"ytd-product-details-renderer",function(){if(vvd!==void 0)return vvd;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return vvd=t},{mode:1});var cig;var tbK;var EBt;var ml=function(){return _.z.apply(this,arguments)||this};
_.u(ml,_.z);ml.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.aE.Object.defineProperties(ml.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],ml.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],ml.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],ml.prototype,"data",void 0);_.N([_.e(),_.P("design:type",String)],ml.prototype,"formattedAmount",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],ml.prototype,"ariaLabel",void 0);
_.N([_.e({reflectToAttribute:!0}),_.Z("data.style"),_.P("design:type",String),_.P("design:paramtypes",[])],ml.prototype,"vcBalanceWidgetStyle",null);_.N([_.p4({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],ml);
_.G(ml,"yt-vc-balance-renderer",function(){if(EBt===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;tbK===void 0&&(tbK=document.createElement("template"));var U=tbK;p.call(E,U.content.cloneNode(!0),t.content.firstChild);EBt=t}t=EBt;return t},{mode:2});_.vs("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var bE=function(){return _.z.apply(this,arguments)||this};
_.u(bE,_.z);_.aE.Object.defineProperties(bE.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:""}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],bE.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],bE.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],bE.prototype,"data",void 0);_.N([_.e({selectorArgs:["data.vcBalanceEntityKey"],selector:function(t,E){return _.hj(t.entities,"vcBalanceEntity",E)}}),
_.P("design:type",Object)],bE.prototype,"vcBalanceEntity",void 0);_.N([_.Z("vcBalanceEntity"),_.P("design:type",String),_.P("design:paramtypes",[])],bE.prototype,"formattedAmount",null);_.N([_.Z("vcBalanceEntity"),_.P("design:type",String),_.P("design:paramtypes",[])],bE.prototype,"vcBalanceAriaLabel",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],bE);
_.G(bE,"ytd-vc-balance-renderer",function(){if(cig!==void 0)return cig;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return cig=t},{mode:1});var p05;var iE=function(){var t=_.z.apply(this,arguments)||this;t.expandableCustomTabRenderable=function(E){return gut(E,function(){return void t.onSearchNavigate()})};
return t};
_.u(iE,_.z);iE.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
iE.prototype.onSearchNavigate=function(){this.selected=void 0};
iE.prototype.onTabsChange=function(){var t,E=(t=this.tabs)==null?void 0:t.findIndex(function(p){var U;return p==null?void 0:(U=p.tabRenderer)==null?void 0:U.selected});
E!==void 0&&(this.selected=E)};
iE.prototype.onTabsActive=function(t){if(this.tabs!==void 0){var E,p;(t=(E=this.tabs[t.detail.selected])==null?void 0:(p=E.tabRenderer)==null?void 0:p.endpoint)&&_.kT(this.hostElement,"yt-navigate",{endpoint:t})}};
_.aE.Object.defineProperties(iE.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:XS7(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
iE.prototype.onTabsChange=iE.prototype.onTabsChange;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],iE.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Qo),_.P("design:type",Object)],iE.prototype,"ytdGridStateAwareBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],iE.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.jp.YtdGuideStateAwareBehavior),_.P("design:type",Object)],iE.prototype,"ytdGuideStateAwareBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],iE.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Array)],iE.prototype,"tabs",void 0);_.N([_.e(),_.P("design:type",Number)],iE.prototype,"selected",void 0);_.N([_.Z("tabs.*"),_.P("design:type",Object),_.P("design:paramtypes",[])],iE.prototype,"tabGroupShape",null);_.N([_.e(),_.P("design:type",Object)],iE.prototype,"expandableCustomTabRenderable",void 0);
_.N([_.Z("tabs"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],iE.prototype,"tabsEnabled",null);_.N([_.P3("tabs"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iE.prototype,"onTabsChange",null);_.N([_.Ul({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],iE);
_.G(iE,"ytd-topic-channel-details-renderer",function(){if(p05!==void 0)return p05;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return p05=t},{mode:1});var Uso;var qZ=function(){var t=_.z.apply(this,arguments)||this;t.disableGridStateAware=!1;return t};
_.u(qZ,_.z);qZ.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]]"}}}}}};
qZ.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
qZ.prototype.updateCssVars=function(){_.eU(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.z3("rich_grid_max_item_width",500))+16)-16+"px"})};
qZ.prototype.updateCssVars=qZ.prototype.updateCssVars;qZ.prototype.activeChanged=qZ.prototype.activeChanged;_.N([_.g(_.jp.YtdGuideStateAwareBehavior),_.P("design:type",Object)],qZ.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],qZ.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],qZ.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],qZ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],qZ.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Array)],qZ.prototype,"tabs",void 0);_.N([_.e(),_.P("design:type",Boolean)],qZ.prototype,"active",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],qZ.prototype,"disableGridStateAware",void 0);
_.N([_.e({selector:_.tf}),_.P("design:type",Number)],qZ.prototype,"richGridItemsPerRow",void 0);_.N([_.e({selector:_.cA}),_.P("design:type",Boolean)],qZ.prototype,"richGridMiniMode",void 0);_.N([_.Nl("ytd-carousel-item-renderer"),_.P("design:type",Object)],qZ.prototype,"carousel",void 0);_.N([_.GI("active"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qZ.prototype,"activeChanged",null);
_.N([_.GI("richGridItemsPerRow","richGridMiniMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qZ.prototype,"updateCssVars",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],qZ);
_.G(qZ,"ytd-carousel-header-renderer",function(){if(Uso!==void 0)return Uso;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Uso=t},{mode:1});var xs7;var A58=_.CG(["https://www.google-analytics.com/analytics.js"]),HG=function(){var t=_.z.apply(this,arguments)||this;t.scriptAnalyticsAdded=!1;return t};
_.u(HG,_.z);HG.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var t,E=(t=this.data)==null?void 0:t.tagManagerId;E&&(_.x9(E,_.qO("GL")),CPC(E))};
HG.prototype.sendGoogleAnalyticsPageview=function(t){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var p=_.t9.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(p)};
var E=window.ga;E("set","page",window.location.pathname);E.l=+new Date;E("set","forceSSL",!0);E("create",t,"'auto'");E("send","pageview")};
HG.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var t=_.Gg("SCRIPT");t.name="ga-analytics";var E=_.JC(A58);_.w3(t,E);t.async=!0;_.ZN(this.hostElement).appendChild(t)};
HG.prototype.dataChanged=HG.prototype.dataChanged;_.N([_.e(),_.P("design:type",Object)],HG.prototype,"data",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],HG.prototype,"dataChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],HG);
_.G(HG,"ytd-channel-metadata-renderer",function(){if(xs7!==void 0)return xs7;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return xs7=t},{mode:1});var YwL;var Mbg;var msK=function(){return _.z.apply(this,arguments)||this};
_.u(msK,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],msK.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],msK.prototype,"data",void 0);_.N([_.Ul({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],msK);
_.G(msK,"ytd-sub-feed-option-renderer",function(){if(Mbg!==void 0)return Mbg;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Mbg=t},{mode:1});var b6K;var fj=function(){return _.z.apply(this,arguments)||this};
_.u(fj,_.z);fj.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],fj.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],fj.prototype,"ytRendererStamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],fj.prototype,"data",void 0);_.N([_.Ul({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],fj);
_.G(fj,"ytd-sub-feed-selector-renderer",function(){if(b6K!==void 0)return b6K;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return b6K=t},{mode:1});var BG=function(){return _.z.apply(this,arguments)||this};
_.u(BG,_.z);
BG.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}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],BG.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],BG.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],BG.prototype,"data",void 0);_.N([_.Ul({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],BG);
_.G(BG,"ytd-browse-feed-actions-renderer",function(){if(YwL!==void 0)return YwL;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return YwL=t},{mode:1});var i67;var qwl;var wb=function(){return _.z.apply(this,arguments)||this};
_.u(wb,_.z);wb.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],wb.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],wb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],wb.prototype,"data",void 0);_.N([_.Ul({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],wb);
_.G(wb,"ytd-mini-channel-renderer",function(){if(qwl!==void 0)return qwl;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return qwl=t},{mode:1});var H6l;var RP=function(){return _.z.apply(this,arguments)||this};
_.u(RP,_.z);RP.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],RP.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],RP.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],RP.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],RP);
_.G(RP,"ytd-vertical-channel-section-renderer",function(){if(H6l!==void 0)return H6l;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return H6l=t},{mode:1});var Vp=function(){return _.z.apply(this,arguments)||this};
_.u(Vp,_.z);Vp.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Vp.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Vp.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Vp.prototype,"data",void 0);_.N([_.Ul({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Vp);
_.G(Vp,"ytd-browse-secondary-contents-renderer",function(){if(i67!==void 0)return i67;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);
return i67=t},{mode:1});var fbC;var Qp=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};t.notActive=!1;t.isConstrainedList=!1;t.marginSettings=0;return t};
_.u(Qp,_.z);_.Y=Qp.prototype;
_.Y.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(t){var E;return(t==null?void 0:(E=t.webComponentHint)==null?void 0:E.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}}}}};
_.Y.getPath=function(t,E){var p="data.tabs.#"+E+".";t.tabs[E].tabRenderer?p+="tabRenderer.":t.tabs[E].expandableTabRenderer&&(p+="expandableTabRenderer.");return p+"content.sectionListRenderer"};
_.Y.computeDisplayedContent=function(t){this.unlinkPaths("content");if(t&&t.tabs)for(var E=t.tabs.length,p=0;p<E;p++){var U=t.tabs[p].tabRenderer||t.tabs[p].expandableTabRenderer;if(U.selected&&U.content)return this.linkPaths("content",this.getPath(t,p)),U.content}return null};
_.Y.computeHasSecondaryColumnData=function(t){return!!t&&!!t.secondaryContents};
_.Y.onRetrieveLocation=function(t,E){E.locationRetrieved(E.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);t.stopPropagation()};
_.Y.onYtServiceRequestSent=function(t,E){_.r("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(E)};
_.Y.onYtServiceRequestCompleted=function(t,E){_.r("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(E)};
_.Y.onReplaceFeedContentAction=function(t){if(!_.r("replace_feed_content_action_killswitch")&&!this.notActive){var E;(t=(E=_.k(t,m4K))==null?void 0:E.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(t)}};
_.Y.handleServiceRequestActions=function(t){if(t=t.actions){t=_.M(t);for(var E=t.next();!E.done;E=t.next()){E=E.value;var p=void 0;((p=_.k(E,m4K))==null?0:p.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.k(E,m4K).items)}}};
Qp.prototype.onYtServiceRequestCompleted=Qp.prototype.onYtServiceRequestCompleted;Qp.prototype.onYtServiceRequestSent=Qp.prototype.onYtServiceRequestSent;Qp.prototype.onRetrieveLocation=Qp.prototype.onRetrieveLocation;_.N([_.g(_.Qo),_.P("design:type",Object)],Qp.prototype,"ytdGridStateAwareBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Qp.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Qp.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Qp.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Qp.prototype,"data",void 0);_.N([_.e({computed:"computeDisplayedContent(data)"}),_.P("design:type",Object)],Qp.prototype,"content",void 0);
_.N([_.e({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Qp.prototype,"hasSecondaryColumnData",void 0);_.N([_.e({value:function(){return window.outerHeight>1024?3:2}}),
_.P("design:type",Number)],Qp.prototype,"initialCount",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],Qp.prototype,"pageSubtype",void 0);_.N([_.Nl("ytd-section-list-renderer"),_.P("design:type",Object)],Qp.prototype,"listRenderer",void 0);_.N([_.e(),_.P("design:type",Object)],Qp.prototype,"notActive",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Qp.prototype,"isConstrainedList",void 0);
_.N([_.e(),_.P("design:type",String)],Qp.prototype,"responsiveSizing",void 0);_.N([_.e(),_.P("design:type",Number)],Qp.prototype,"marginSettings",void 0);_.N([_.lc("yt-retrieve-location"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],Qp.prototype,"onRetrieveLocation",null);
_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.m8]),_.P("design:returntype")],Qp.prototype,"onYtServiceRequestSent",null);_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Rn]),_.P("design:returntype")],Qp.prototype,"onYtServiceRequestCompleted",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],Qp);
_.G(Qp,"ytd-two-column-browse-results-renderer",function(){if(fbC!==void 0)return fbC;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return fbC=t},{mode:2});var Beo;var w05;var Cj=function(){var t=_.z.apply(this,arguments)||this;t.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"]);t.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"]);t.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return t};
_.u(Cj,_.z);_.Y=Cj.prototype;_.Y.attached=function(){this.requestElementsPerRow()};
_.Y.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_]]"}}}}}};
_.Y.onUpdateElementsPerRowAction=function(t){t&&this.elementsPerRow!==t&&(this.elementsPerRow=t)};
_.Y.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.Y.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.Y.computeAlertStyle_=function(t){return t};
_.Y.observerElementsPerRow=function(){this.elementsPerRow&&_.eU(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.Y.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.Y.requestElementsPerRow=function(){_.kT(this.hostElement,"yt-request-elements-per-row")};
Cj.prototype.onIsVisibleChanged_=Cj.prototype.onIsVisibleChanged_;Cj.prototype.observerElementsPerRow=Cj.prototype.observerElementsPerRow;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Cj.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Cj.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Cj.prototype,"actionHandlerBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],Cj.prototype,"data",void 0);_.N([_.e({value:6,reflectToAttribute:!0}),_.P("design:type",Number)],Cj.prototype,"elementsPerRow",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],Cj.prototype,"wrapButtons",void 0);_.N([_.e({value:_.qO("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.P("design:type",Boolean)],Cj.prototype,"isMusic",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.P("design:type",String)],Cj.prototype,"alertStyle",void 0);_.N([_.e({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.P("design:type",Function)],Cj.prototype,"dismissBoundButtonTap_",void 0);_.N([_.e({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.P("design:type",Function)],Cj.prototype,"acceptBoundButtonTap_",void 0);_.N([_.GI("elementsPerRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cj.prototype,"observerElementsPerRow",null);_.N([_.GI("data.isVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cj.prototype,"onIsVisibleChanged_",null);_.N([_.p4({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],Cj);
_.G(Cj,"yt-alert-with-actions-renderer",function(){if(w05===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;Beo===void 0&&(Beo=document.createElement("template"));var U=Beo;p.call(E,U.content.cloneNode(!0),t.content.firstChild);w05=t}t=w05;return t},{mode:2});var Rnd=_.l(function(t){var E={};return _.H(_.d8,{text:t.text,className:_.X5("ytPersonalGreetingViewModelHeadline",(E.ytPersonalGreetingViewModelHeadlineSmall=t.isSmallHeadline,E))})},"sk");_.k2(_.l(function(t){var E=_.EX(function(){var Q;return(Q=t.data())==null?void 0:Q.rendererContext},void 0,void 0,void 0,!0),p=function(){return t.data().canvasPromoData},U=function(){var Q;
return(Q=t.data().bannerHeight)!=null?Q:56},x=_.M(_.L$({throttleMs:100})),A=x.next().value;
x=x.next().value;var m=_.M(_.L$({throttleMs:100})),b=m.next().value;m=m.next().value;var f=_.M(_.L$({throttleMs:100})),B=f.next().value;f=f.next().value;var R=function(){return b.width()-A.width()>1},V=function(){return U()===48};
return _.H("yt-personal-greeting-view-model",{el:_.V9(E,x),"aria-hidden":R,class:_.X5(t.className,"ytPersonalGreetingViewModelHost"),style:_.zO({height:(0,_.RN)(function(){return R()?0:U()})})},_.H(_.w,{cond:function(){return t.data().avatar&&!(B.width()+(t.data().avatar?48:0)-A.width()>1)},
then:function(){return _.H(_.sY,{data:function(){return t.data().avatar}},{decoratedAvatarViewModel:function(Q){return _.H(_.BM,{data:Q.data,
className:_.X5("ytPersonalGreetingViewModelAvatar")})}})}}),_.H("h1",null,_.H(Rnd,{text:function(){var Q;
return(p==null?void 0:(Q=p())==null?void 0:Q.headline)||(B.width()+(t.data().avatar?48:0)-A.width()>1?t.data().shorterGreeting:t.data().greeting)},
isSmallHeadline:V})),_.H("span",{el:_.V9(f),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.H(Rnd,{text:function(){return t.data().greeting},
isSmallHeadline:V})),_.H("span",{el:_.V9(m),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.H(Rnd,{text:function(){return t.data().shorterGreeting},
isSmallHeadline:V})))},"rk"),"yt-personal-greeting-view-model",{props:{data:_.uu,
className:_.uu}});var jq=function(){var t=_.z.apply(this,arguments)||this;t.hidden=!1;t.isConstrainedList=!1;t.responsiveSizing="COMPACT";t.attachedPlayers=_.r("kevlar_channel_trailer_multi_attach")?[]:void 0;t.player=null;t.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return t};
_.u(jq,_.z);_.Y=jq.prototype;
_.Y.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}}}}};
_.Y.created=function(){var t=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){t.disposeMastheadAd()}]};
_.Y.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new lWl(this.refresh,this.contents))};
_.Y.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.Y.activeChanged=function(){var t=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=t)};
_.Y.tabsChanged=function(){var t=this,E,p;if(this.pageSubtype==="channels"||_.r("kevlar_tab_gestures_for_tabbed_header_data")&&((E=this.data)==null?0:(p=E.header)==null?0:p.carouselHeaderRenderer))this.tabGestures=new Ndo(this.contents,this.contents,this.hostElement,this.header,function(m){t.ytdReduxBehavior.dispatch(m)});
var U,x,A;E=(U=this.data)==null?void 0:(x=U.contents)==null?void 0:(A=x.twoColumnBrowseResultsRenderer)==null?void 0:A.tabs;this.tabGestures&&this.tabGestures.tabsChanged(E)};
_.Y.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.Y.engagementPanelsChanged=function(){var t=_.X3().resolve(_.mp);if(t){if(this.engagementPanels)for(var E=_.M(this.engagementPanels),p=E.next();!p.done;p=E.next()){var U=void 0;(p=(U=p.value.identifier)==null?void 0:U.tag)&&t.panelMap.delete(p)}this.engagementPanels=[];var x;E=_.M(((x=this.data)==null?void 0:x.panels)||[]);for(x=E.next();!x.done;x=E.next()){x=_.k(x.value,BS9);var A=p=void 0,m=void 0,b=void 0;if(U=((p=x)==null?void 0:p.targetId)||((A=x)==null?void 0:A.panelIdentifier)||((m=x)==null?
void 0:(b=m.identifier)==null?void 0:b.tag))A=p=void 0,(A=(p=t).registerPanelContent)==null||A.call(p,U,{engagementPanelSectionListRenderer:x}),this.engagementPanels.push(x)}}};
_.Y.onStampFinished=function(){var t=this;_.XE(this,function(){if(t.tabGestures){var E=t.tabGestures;if(E.scrollPositionNeedsUpdate){var p=_.X3().resolve(_.OB(_.jw)),U;if((U=E.selectedTab)!=null&&U.title&&p&&(U=p.getCurrentPage())){if(E.scrollPositionForTabs.has(E.selectedTab.title)){var x,A;p=(A=(x=p.getCurrentPage())==null?void 0:x.clientHeight)!=null?A:0;x=E.scrollPositionForTabs.get(E.selectedTab.title);U.setScrollTop(x);p>x+100&&(E.scrollPositionNeedsUpdate=!1)}else U.setScrollTop(Math.min(E.lastVisitedTabScrollPosition!==
void 0?E.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,E.tabsStartAtInPx)),E.scrollPositionNeedsUpdate=!1;E.ytdReduxDispatch(UiC(!1))}}}})};
_.Y.loadPage_=function(t){this.initCsi();t&&(this.data=t);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.Y.getTitle=function(t){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",t))return this.get("microformat.microformatDataRenderer.title",t);if(this.get("header.feedTabbedHeaderRenderer.title",t))return _.R4(this.get("header.feedTabbedHeaderRenderer.title",t));if(this.get("header.interactiveTabbedHeaderRenderer.title",t))return this.get("header.interactiveTabbedHeaderRenderer.title",t);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
t))return _.R4(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",t));var E,p;return(t==null?0:(E=t.header)==null?0:(p=E.pageHeaderRenderer)==null?0:p.pageTitle)?t.header.pageHeaderRenderer.pageTitle:""};
_.Y.updateTitle=function(t){_.kT(this.hostElement,"yt-update-title",this.getTitle(t))};
_.Y.initCsi=function(){TkC(this.pageSubtype||"browse",["ol","cpt"])};
_.Y.getPlayer=function(){if(_.r("kevlar_channel_trailer_multi_attach")){for(var t=_.M(this.attachedPlayers),E=t.next();!E.done;E=t.next())if(E=E.value,E.isConnected||_.wV(this.hostElement,E))return E;return null}return this.player};
_.Y.getPlayerContainer=function(){return null};
_.Y.onPlayerAttached=function(t,E){_.r("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(E):this.player=E};
_.Y.onPlayerDetached=function(t,E){_.r("kevlar_channel_trailer_multi_attach")?(t=this.attachedPlayers.indexOf(E),t<0||this.attachedPlayers.splice(t,1)):this.player=null};
_.Y.getServiceTrackingParams=function(){var t,E;return((t=this.data)==null?void 0:(E=t.responseContext)==null?void 0:E.serviceTrackingParams)||[]};
_.Y.setMastheadAd=function(t){t&&t.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=t&&t.mastheadAd};
_.Y.dataChanged=function(){var t=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||Ehb();_.XE(this,function(){_.uO(t.hostElement,"ytd-update-grid-state-action")})};
_.Y.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.Y.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var t=this.data.alerts;return t&&t.find(function(E){return!!E.alertWithActionsRenderer})}};
_.Y.computeGreetingData=function(){if(this.data&&this.data.alerts){var t=this.data.alerts;return t&&t.find(function(E){return!!E.personalGreetingViewModel})}};
_.Y.computeHasMemberHubProfileRenderer=function(t){var E;return!!(t==null?0:(E=t.header)==null?0:E.memberHubProfileRenderer)};
_.Y.handleAlertCommand=function(t){this.get("alertCommand.alert.alertWithActionsRenderer",t)&&(t=_.k(t,Ifg),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",t.alert))};
_.Y.handleYtPlaylistDeletionRedirect=function(t){t=this.get("playlistDeletionRedirectCommand.redirectEndpoint",t);_.kT(this.hostElement,"yt-navigate",{endpoint:t})};
_.Y.computeFluidWidth=function(t,E,p){if(E==="mini_app"||p)return!0;var U,x,A;t=t==null?void 0:(U=t.contents)==null?void 0:(x=U.twoColumnBrowseResultsRenderer)==null?void 0:(A=x.tabs)==null?void 0:A.find(function(f){var B;return f==null?void 0:(B=f.tabRenderer)==null?void 0:B.selected});
if(!t)return!1;var m,b;return!!((m=t.tabRenderer)==null?0:(b=m.content)==null?0:b.richGridRenderer)&&!["channel","channels","playables"].includes(E)};
_.Y.computeHeaderFluidWidth=function(t){return t==="hashtag-landing-page"};
_.Y.computeHasSidebar=function(t){var E;return!!(t.sidebar||((E=t.header)==null?0:E.playlistHeaderRenderer))};
_.Y.computeHasPageHeaderSidebar=function(t){var E,p;return!!((E=t.header)==null?0:(p=E.pageHeaderRenderer)==null?0:p.enableSidebarView)};
_.Y.computeUseUnifiedShowPageLayout=function(t){if(!t||this.pageSubtype!=="show"||!t.sidebar||!t.sidebar.playlistSidebarRenderer)return!1;t=t.sidebar.playlistSidebarRenderer;if(!t.items)return!1;for(var E=0;E<t.items.length;E++)if(_.k(t.items[E],tmb)){var p=void 0;return((p=_.k(t.items[E],tmb))==null?void 0:p.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.Y.computeIsConstrainedList=function(t){return t==="subscriptions-channels"};
_.Y.computeResponsiveSizing=function(t){return t==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.aE.Object.defineProperties(jq.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var t,E;return((t=this.data)==null?0:(E=t.header)==null?0:E.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var t,E;if(!((t=this.data)==null?0:(E=t.sidebar)==null?0:E.playlistSidebarRenderer))return!1;var p;return(p=this.data)!=null&&p.header?!1:!0}}});
_.aE.Object.defineProperties(jq,{template:{configurable:!0,enumerable:!0,get:function(){if(DP9===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);DP9=t}t=DP9;return t}}});
jq.prototype.dataChanged=jq.prototype.dataChanged;jq.prototype.onPlayerDetached=jq.prototype.onPlayerDetached;jq.prototype.onPlayerAttached=jq.prototype.onPlayerAttached;jq.prototype.onStampFinished=jq.prototype.onStampFinished;jq.prototype.engagementPanelsChanged=jq.prototype.engagementPanelsChanged;jq.prototype.scrollAtTopChanged=jq.prototype.scrollAtTopChanged;jq.prototype.tabsChanged=jq.prototype.tabsChanged;jq.prototype.activeChanged=jq.prototype.activeChanged;
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],jq.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.aU),_.P("design:type",Object)],jq.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],jq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],jq.prototype,"ytdReduxBehavior",void 0);_.N([_.g(jz.YtPageBehavior),_.P("design:type",Object)],jq.prototype,"ytPageBehavior",void 0);
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],jq.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.jp.YtdGuideStateAwareBehavior),_.P("design:type",Object)],jq.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],jq.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],jq.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],jq.prototype,"hidden",void 0);
_.N([_.e(),_.P("design:type",Object)],jq.prototype,"mastheadAdData",void 0);_.N([_.e({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.P("design:type",Object)],jq.prototype,"alertBannerData",void 0);_.N([_.e({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.P("design:type",Object)],jq.prototype,"greetingData",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],jq.prototype,"pageSubtype",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.P("design:type",Boolean)],jq.prototype,"hasMemberHubProfileRenderer",void 0);_.N([_.e({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],jq.prototype,"hasSidebar",void 0);_.N([_.e({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],jq.prototype,"hasPageHeaderSidebar",void 0);
_.N([_.e({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],jq.prototype,"roundedContainer",void 0);_.N([_.e({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],jq.prototype,"useUnifiedShowPageLayout",void 0);_.N([_.e({computed:"computeIsConstrainedList(pageSubtype)"}),_.P("design:type",Object)],jq.prototype,"isConstrainedList",void 0);
_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],jq.prototype,"usePlaylistHeaderRenderer",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],jq.prototype,"useOldPlaylistSidebarRenderer",null);_.N([_.e({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.P("design:type",Boolean)],jq.prototype,"fluidWidth",void 0);_.N([_.e({selector:KQe}),_.P("design:type",Boolean)],jq.prototype,"scrollAtTop",void 0);
_.N([_.e({selector:vnb}),_.P("design:type",Boolean)],jq.prototype,"tabGesturesIsActive",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.P("design:type",Boolean)],jq.prototype,"disableHeaderFluidWidth",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.P("design:type",String)],jq.prototype,"responsiveSizing",void 0);
_.N([_.Nl("ytd-two-column-browse-results-renderer"),_.P("design:type",HTMLElement)],jq.prototype,"contents",void 0);_.N([_.Nl("#header"),_.P("design:type",HTMLElement)],jq.prototype,"header",void 0);_.N([_.Nl("ytd-refresh"),_.P("design:type",Object)],jq.prototype,"refresh",void 0);_.N([_.GI("active"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jq.prototype,"activeChanged",null);
_.N([_.GI("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jq.prototype,"tabsChanged",null);_.N([_.GI("scrollAtTop"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jq.prototype,"scrollAtTopChanged",null);_.N([_.e(),_.P("design:type",Object)],jq.prototype,"engagementPanels",void 0);
_.N([_.GI("data.panels"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jq.prototype,"engagementPanelsChanged",null);_.N([_.lc("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jq.prototype,"onStampFinished",null);_.N([_.lc("yt-player-attached"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Element]),_.P("design:returntype")],jq.prototype,"onPlayerAttached",null);
_.N([_.lc("yt-player-detached"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Element]),_.P("design:returntype")],jq.prototype,"onPlayerDetached",null);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jq.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-browse"})],jq);var Vb7,Q5t=function(){if(Vb7!==void 0)return Vb7;var t=document.createElement("template");_.J(t,"\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");t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Vb7=t};var rb=function(){var t=_.z.apply(this,arguments)||this;t.currentPage=void 0;t.renderLoadingStateJobId=0;t.updatePageDataJobId=0;t.pageDisposeJobsets=new WeakMap;t.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"};t.shouldApplyLockupToWatchTransition=_.r("web_thumbnail_to_watch_transition");t.shouldApplySlideTransition=_.la("web_page_transition_type")==="slide"||_.r("enable_plj_landing_page");t.shouldApplyLearningJourneyTransition=_.r("enable_plj_landing_page");t.TEST_ONLY=void 0;return t};
_.u(rb,_.z);_.Y=rb.prototype;_.Y.ready=function(){var t=_.X3();t.addProvider({provide:_.jw,useValue:this});t.addProvider({provide:_.wwo,useValue:this})};
_.Y.created=function(){this.pagePool=new Aae;this.contextSwitcher=new uPt};
_.Y.attached=function(){_.kT(this.hostElement,"attached");var t=_.X3().resolve(_.OB(_.Lf));t&&(this.contextSwitcher.JSC$20086_networkService_=t);this.viewTransitionManager=_.X3().resolve(_.pU)};
_.Y.getPageOffset=function(t){return t.getScrollTop()};
_.Y.setPageOffset=function(t,E){try{t.setScrollTop(E)}catch(p){}};
_.Y.setPageOffsetForNavigation=function(t,E){_.kT(this.hostElement,"yt-navigate-set-page-offset",{page:t,offset:E===void 0?0:E})};
_.Y.pauseActiveContext=function(){var t=this.contextSwitcher;t.activeContext_&&t.activeContext_.pause()};
_.Y.attachPage=function(t){var E,p=!_.r("pc_is_attached_ks")&&(t==null?void 0:(E=t.polymerController)==null?void 0:E.isAttached);if(!t.isAttached&&!p)try{_.ZN(this.hostElement).appendChild(t)}catch(x){var U;_.qW(new _.cC("Error attaching page element for component",{origin:(U=this.currentPage)==null?void 0:U.is,component:t.is}))}};
_.Y.setActivePage=function(t,E){var p=this,U=!1,x=function(){var A=p.isOnWatch(),m=p.currentPage;if(t)if(t!==p.currentPage){m&&(m.hidden=!0,m.active=!1,m.removeAttribute("role"));p.currentPage=t;var b,f=E!=null?E:_.z2((b=p.data)==null?void 0:b.endpoint);m&&_.kT(p.hostElement,"yt-page-type-changed",{oldPageType:m.is,newPageType:t.is,newPageSubtype:f});_.Ro().dispatch(_.Jj({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:t.is}));_.Ro().dispatch(_.Jj({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:f||""}));
t.hidden=!1;p.attachPage(t);t.active=!0;t.setAttribute("role","main");m&&p.setPageOffsetForNavigation(t,0);_.r("kevlar_remove_page_dom_on_switch")&&!A&&m&&_.ZN(p.hostElement).removeChild(m)}else U=!0;else p.handleMissingDestinationPage(m)};
this.shouldRunBrowseTransition(this.currentPage,t)?R_b(this.viewTransitionManager,x):this.shouldRunLearningJourneyTransition(this.currentPage,t)?CBo(this.viewTransitionManager,x):x();return U};
_.Y.handleMissingDestinationPage=function(t){if(this.isColdLoadForUnknownPage(t))_.qW(new _.cC("Cold load for unknown page"));else{var E;t=new _.cC("Unable to set active page",t?t.is:"unknown origin",(E=this.data)==null?void 0:E.endpoint);_.bV(t)}};
_.Y.isColdLoadForUnknownPage=function(t){return!t&&cW(this.data)==="unknown"};
_.Y.shouldRunBrowseTransition=function(t,E){return this.shouldApplySlideTransition&&(t==null?void 0:t.is)==="ytd-browse"&&(E==null?void 0:E.is)==="ytd-browse"&&t!==E};
_.Y.shouldRunLearningJourneyTransition=function(t,E){return this.shouldApplyLearningJourneyTransition&&(t==null?void 0:t.is)==="ytd-browse"&&((E==null?void 0:E.is)==="ytd-watch-learning-journey"||(E==null?void 0:E.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.Y.shouldRunWatchNextLoadedTransition=function(t,E){return this.viewTransitionManager&&t.is==="ytd-watch-flexy"&&E};
_.Y.updatePageData=function(t){var E=this,p=this.data;this.updatePageDataJobId&&_.ir.cancelJob(this.updatePageDataJobId);this.data=t;return new _.PE(function(U){var x=function(){t.filler?E.performDataUpdate(t,p):mxJ(function(){E.performDataUpdate(t,p)});
var A=_.ut();_.JL(A,"cr")||A.processSignal("cr");U()};
t&&t.page==="watch"?E.updatePageDataJobId=_.W9(_.ir,x):x()})};
_.Y.isDownloadsPage=function(t){var E,p;return(t==null?void 0:(E=t.endpoint)==null?void 0:(p=E.browseEndpoint)==null?void 0:p.browseId)==="FEdownloads"};
_.Y.setPlayerSyncInterval=function(t){var E;return _.q(function(p){if(p.nextAddress==1)return p.yield(_.X3().resolve(_.gG),2);E=p.yieldResult;E.setUpPositionSyncInterval(t);_.Do(p)})};
_.Y.performDataUpdate=function(t,E){_.r("kevlar_early_popup_close")||_.du(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var p=!t.filler;p&&(_.SR("lps"),_.r("config_age_report_killswitch")||zJ5());var U=cW(t),x,A=!1;if(_.r("kevlar_remove_page_dom_on_switch")){var m=E&&cW(E);U===m&&(x=this.getCurrentPage())}x||(x=UK(this.pagePool,U));p&&HJK(this.pagePool.elementPoolPopulator,U);p&&!this.renderLoadingStateJobId&&(A=this.setActivePage(x));if(x){m=U==="watch";var b=
U==="shorts",f=U==="learning_journey_watch";_.r("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(x);if(m||b||f)x.playerData=t.playerResponse;if(b){t.reelWatchSequenceResponse?x.reelWatchSequenceResponse=t.reelWatchSequenceResponse:x.cachedReelWatchSequenceResponse&&!x.reelWatchSequenceResponse&&(x.reelWatchSequenceResponse=x.cachedReelWatchSequenceResponse);t.reelWatchSequenceResponse&&(E==null?void 0:E.page)!=="shorts"&&(x.cachedReelWatchSequenceResponse=t.reelWatchSequenceResponse);
x.currentEndpoint=t.endpoint;var B;x.isPreviousPageShorts=!!(E==null?0:(B=E.endpoint)==null?0:B.reelWatchEndpoint)}B=this.isDownloadsPage(t);var R=this.isDownloadsPage(E);B&&!R?this.setPlayerSyncInterval(6E5):!B&&R&&this.setPlayerSyncInterval();_.r("block_all_player_prefetch_requests")||this.preparePrefetchRequest(t,x,p,m,b,f);jre(_.X3().resolve(_.bf),E,t);if(_.r("enable_ai_companion")){var V;(V=_.X3().resolve(_.OB(_.q4)))==null||_.vOe(V,this.getPersistentPanelSurface(U))}_.al(_.X3().resolve(_.Ly));
_.r("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(x);p?(p=typeof x.loadPage,p==="function"?(x.pageContext=JQ9(this.contextSwitcher,x,x.data!==t.response),p=function(){x.loadPage(t.response)},this.shouldApplySlideTransition&&x.is==="ytd-browse"&&A&&(U==="learning"||this.isDifferentBrowseId(t==null?void 0:t.endpoint,E==null?void 0:E.endpoint))?R_b(this.viewTransitionManager,p):this.shouldRunWatchNextLoadedTransition(x,A)?Qr7(this.viewTransitionManager,p):p()):_.iV(new _.cC("b/38014653 ",
[U,
x.is,x.nodeName,p,x.isAttached,E&&cW(E),this.hostElement.children.length])),_.SR("pdl")):(x.hidden=!0,t.response.filler=!0,x.data=t.response,this.attachPage(x));_.kT(this.hostElement,"yt-page-data-updated",{pageType:U})}_.E_(_.ir,function(){_.r("logging_avoid_blocking_during_navigation")&&_.Iq_().transition("none");var Q=Dp5(),C=x;if(t){var d=mAo(t),I=byK(t),O;a:{if(t.playerResponse){var a=t.playerResponse,F;if((O=a.auxiliaryUi)==null?0:(F=O.messageRenderers)==null?0:F.upsellDialogRenderer){O=a.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(t.response&&(O=t.response,(a=O.overlay)==null?0:a.upsellDialogRenderer)){O=O.overlay.upsellDialogRenderer;break a}O=void 0}var L;var D;F=(L=t.playerResponse)==null?void 0:(D=L.auxiliaryUi)==null?void 0:D.messageRenderers;L=(F==null?void 0:F.enforcementMessageViewModel)||(F==null?void 0:F.bkaEnforcementMessageViewModel);L=(L==null?void 0:L.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?L:void 0;var W;a:{if(t.response&&(D=t.response,(W=D.overlay)==null?0:W.commandWrapperPromoRenderer)){W=
D.overlay.commandWrapperPromoRenderer;break a}W=void 0}N5t(Q,d,I,O,L,W,C)}})};
_.Y.preparePrefetchRequest=function(t,E,p,U,x,A){var m,b,f,B,R,V,Q,C,d,I,O,a,F,L,D;return _.q(function(W){if(W.nextAddress==1)return!p||!(U||x||A)||_.r("kevlar_disable_background_prefetch")&&_.BC(ZWo)()===0?W.return():(m=_.rG(E))?W.yield(m.getPlayerPromise(),2):W.return();b=W.yieldResult;f=_.X3().resolve(_.OB(_.Lf));if(!f)return W.return();if(x)return B=_.I7(_.oS),Iv7(B,(R=t.endpoint)==null?void 0:R.reelWatchEndpoint,E.reelWatchSequenceResponse,b,f),W.return();C=(V=t.response)==null?void 0:(Q=V.responseContext)==
null?void 0:Q.webResponseContextExtensionData;if(!C)return W.return();F=(d=t.response)==null?void 0:(I=d.contents)==null?void 0:(O=I.twoColumnWatchNextResults)==null?void 0:(a=O.autoplay)==null?void 0:a.autoplay;L=_.X3().resolve(_.kA);D=_.I7(_.oS);gil(D,C,b,f,L,F);_.Do(W)})};
_.Y.movePlayerToWatch=function(t){var E=this,p,U;return _.q(function(x){p=UK(E.pagePool,"watch");U=p.getPlayerContainer();t.appendTo(U);_.Do(x)})};
_.Y.movePlayerToShorts=function(t){var E=this,p,U,x;return _.q(function(A){p=UK(E.pagePool,"shorts");U=p.getPlayerContainer();(x=t)==null||x.appendTo(U,void 0,!0);_.Do(A)})};
_.Y.getPlayerFromWatch=function(){var t=UK(this.pagePool,"watch");return _.rG(t)};
_.Y.getPlayerFromShorts=function(){var t=UK(this.pagePool,"shorts");return _.rG(t)};
_.Y.startLoadingWatch=function(){var t=this,E=UK(this.pagePool,"watch");this.renderLoadingStateJobId?(_.ir.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.r("web_watch_transition_enable_start_loading_watch_callsite")?Vro(this.viewTransitionManager,function(){t.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(E,"watch");
if(_.r("enable_ai_companion")){var p;(p=_.X3().resolve(_.OB(_.q4)))==null||_.vOe(p,this.getPersistentPanelSurface("watch"))}};
_.Y.startLoadingShorts=function(){var t=UK(this.pagePool,"shorts");this.setActivePage(t,"shorts")};
_.Y.startLoadingLearningJourney=function(){var t=UK(this.pagePool,"learning_journey_watch");this.setActivePage(t,"learning_journey_watch")};
_.Y.getCurrentPage=function(){return this.currentPage};
_.Y.getDestinationPageType=function(){return this.destinationPageType};
_.Y.getCurrentData=function(){return this.data};
_.Y.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.Y.isOnShorts=function(){var t;return((t=this.currentPage)==null?void 0:t.is)==="ytd-shorts"};
_.Y.isWatchPage=function(t){return!!t&&(t.is==="ytd-watch-flexy"||t.is==="ytd-watch-fixie"||t.is==="ytd-watch-grid")};
_.Y.preparePage=function(t,E){var p=this,U=function(){var A=p.pagePool.preparePage(t,p.currentPage,E);A&&p.attachPage(A)},x=function(A){_.HX(A,E);
_.qW(A)};
try{U()}catch(A){x(A)}};
_.Y.lazyPrepareCriticalPages=function(t,E){t=_.z2(E)||t;this.maybePrepareWatchPage(t)};
_.Y.maybePrepareWatchPage=function(t){t==="watch"||t==="learning_journey_watch"&&_.r("web_watch_learning_journey_disable_lazy_pages")||_.E_(_.ir,this.preparePage.bind(this,"watch"))};
_.Y.renderPageLoadingState=function(t,E){this.preparePage(t,E);var p=UK(this.pagePool,t);p.loadingData&&(p.loadingData.endpoint=E);p.loading=!0;this.setActivePage(p,t);t!=="watch"&&t!=="learning_journey_watch"||_.kT(this.hostElement,"yt-guide-close")};
_.Y.prepareForNavigation=function(t,E){var p=this;if(this.currentPage&&this.data){var U=_.z2(E)||t;this.destinationPageType=U;cW(this.data)==U&&_.kT(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((t==="watch"||t==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.ir.cancelJob(this.renderLoadingStateJobId);_.X3().resolve(_.bf).deactivate(E);_.D2(_.ir,function(){var A=p.viewTransitionManager,m=p.currentPage;
if(A.isLockupToWatchTransitionEnabled&&A.isLockupThumbnailRegistrationEnabled&&m)if(A.registeredLockupThumbnail)A.lockupThumbnailRegisteredFromWatchEndpoint&&_.qW(new _.cC("Lockup thumbnail already registered from watch endpoint."));else{a:{var b=_.k(E,_.HD);if(b==null?0:b.videoId){var f="yt-lockup-view-model ."+_.gKO(b.videoId)+" yt-thumbnail-view-model";m=m.querySelectorAll(f);if(m.length===1){b=m[0];break a}m.length>1?_.qW(new _.cC("Multiple LockupViewModel thumbnails found for videoId: "+b.videoId+
". Selector: "+f)):_.r("web_thumbnail_to_watch_transition_debug")&&_.qW(new _.cC("No LockupViewModel thumbnail found for videoId: "+b.videoId+". Selector: "+f))}b=void 0}b&&(A.registeredLockupThumbnail=b,A.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.OMJ(A,b))}});
var x=this.data;this.renderLoadingStateJobId=_.D2(_.ir,function(){Vro(p.viewTransitionManager,function(){if(p.data!=x){var A=UK(p.pagePool,t);p.setActivePage(A)}else p.renderPageLoadingState(t,E);p.renderLoadingStateJobId=0})},150)}};
_.Y.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var t=new _.hS(1);this.currentPage.pageDisposeJobs.forEach(function(E){_.aO(t,E)});
this.pageDisposeJobsets.set(this.currentPage,t)}};
_.Y.flushPageDisposeJobset=function(t){var E=this.pageDisposeJobsets.get(t);E&&(E.flushJobs(),this.pageDisposeJobsets.delete(t))};
_.Y.onYtStopOldPlayer=function(t,E){E=E===void 0?!1:E;var p,U=_.G3("kevlar_new_stop_old_player_logic_pages");if(_.r("kevlar_check_current_page_on_stop_old_player")&&(U.length===0||this.currentPage&&U.includes(this.currentPage.is)))if(this.data&&(p=cW(this.data)),cW(t)===p&&this.currentPage&&cW(this.currentPage.data)!==p)var x=_.rG(this.currentPage);else p=cW(this.data),x=UK(this.pagePool,p),x=_.rG(x);else this.data&&(p=cW(this.data),x=UK(this.pagePool,p),x=_.rG(x));if(x){U=cW(t);var A=UK(this.pagePool,
U);A=_.rG(A);if(x==A)E&&!_.r("kevlar_disable_preemptive_player_reset")&&x.resetForNewPlayback();else if(E=p==="watch"&&U!=="watch",!E||U==="shorts"||_.qVp()&&!N15(this.data,t))t=_.X3().resolve(_.bf),E&&t.isMiniplayerActive()&&t.pipController.getWindow()||x.stop()}};
_.Y.isDifferentBrowseId=function(t,E){t=_.k(t,_.lC);E=_.k(E,_.lC);return(t==null?void 0:t.browseId)!==(E==null?void 0:E.browseId)};
_.Y.getPersistentPanelSurface=function(t){switch(t){case "watch":return"WATCH";default:return"APP"}};
_.aE.Object.defineProperties(rb,{template:{configurable:!0,enumerable:!0,get:function(){return Q5t()}}});
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],rb.prototype,"ytActionHandlerBehavior",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-page-manager"})],rb);_.G(rb,"ytd-page-manager",function(){return Q5t()},{mode:_.hX("kevlar_poly_si_batch_j081")?1:2});var Cxb;var j5L;var kv=function(){var t=_.z.apply(this,arguments)||this;t.hasChipBar=!1;return t};
_.u(kv,_.z);kv.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}}};
kv.prototype.computeHasChipBar=function(t){return!(t==null||!t.chipBar)};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],kv.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],kv.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],kv.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.P("design:type",Object)],kv.prototype,"hasChipBar",void 0);_.N([_.Ul({is:"ytd-search-header-renderer",disableElementRegistration:!0})],kv);
_.G(kv,"ytd-search-header-renderer",function(){if(j5L!==void 0)return j5L;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return j5L=t},{mode:1});var r58;var db=function(){return _.z.apply(this,arguments)||this};
_.u(db,_.z);db.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
db.prototype.computeBlueBottomLink=function(t){return t};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],db.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],db.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],db.prototype,"data",void 0);_.N([_.e({computed:"computeIcon_(data.bottomIcon)"}),_.P("design:type",String)],db.prototype,"bottomIcon",void 0);
_.N([_.e({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.P("design:type",Boolean)],db.prototype,"enableBlueBottomLink",void 0);_.N([_.Ul({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],db);
_.G(db,"ytd-web-answer-renderer",function(){if(r58!==void 0)return r58;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return r58=t},{mode:_.hX("kevlar_poly_si_batch_j035")?1:2});var k1d;var uE=function(){return _.z.apply(this,arguments)||this};
_.u(uE,_.z);uE.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],uE.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],uE.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],uE.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-page-continuation"})],uE);
_.G(uE,"ytd-page-continuation",function(){if(k1d!==void 0)return k1d;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return k1d=t},{mode:1});var dsJ;var uVt;var J55;var Ibl=function(){return _.z.apply(this,arguments)||this};
_.u(Ibl,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ibl.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Ibl.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],Ibl);
_.G(Ibl,"ytd-watch-card-one-vs-one-event",function(){if(J55!==void 0)return J55;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return J55=t},{mode:1});var gBt=function(){return _.z.apply(this,arguments)||this};
_.u(gBt,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],gBt.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],gBt.prototype,"data",void 0);_.N([_.Ul({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],gBt);
_.G(gBt,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(uVt!==void 0)return uVt;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return uVt=t},{mode:1});var Z6J;var O68=function(){return _.z.apply(this,arguments)||this};
_.u(O68,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],O68.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],O68.prototype,"data",void 0);_.N([_.Ul({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],O68);
_.G(O68,"ytd-banner-and-box-hero-image-renderer",function(){if(Z6J!==void 0)return Z6J;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Z6J=t},{mode:1});var X0l;var Ji=function(){var t=_.z.apply(this,arguments)||this;t.modern=_.r("web_modern_buttons");return t};
_.u(Ji,_.z);Ji.prototype.computeIcon=function(){var t,E,p=(t=this.data)==null?void 0:(E=t.icon)==null?void 0:E.iconType;if(p)return _.zh(p)};
Ji.prototype.computeButtonShape=function(){var t;return{buttonText:_.R4((t=this.data)==null?void 0:t.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.aE.Object.defineProperties(Ji.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"}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ji.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Ji.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Ji.prototype,"modern",void 0);_.N([_.e({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Z("data.style"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ji.prototype,"buttonColor",null);
_.N([_.Ul({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],Ji);
_.G(Ji,"ytd-call-to-action-button-renderer",function(){if(X0l!==void 0)return X0l;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return X0l=t},{mode:1});var hng;var IP=function(){return _.z.apply(this,arguments)||this};
_.u(IP,_.z);IP.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.ZN(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.d4(this.data.leftThumbnail.thumbnails,216)+")")};
IP.prototype.onLeftThumbnailChanged=IP.prototype.onLeftThumbnailChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],IP.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],IP.prototype,"data",void 0);_.N([_.GI("data.leftThumbnail"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],IP.prototype,"onLeftThumbnailChanged",null);_.N([_.Ul({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],IP);
_.G(IP,"ytd-collage-hero-image-renderer",function(){if(hng!==void 0)return hng;var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return hng=t},{mode:1});var abo;var gb=function(){return _.z.apply(this,arguments)||this};
_.u(gb,_.z);gb.prototype.computeStyle=function(t){return t};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],gb.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],gb.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.P("design:type",String)],gb.prototype,"componentStyle",void 0);_.N([_.Ul({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],gb);
_.G(gb,"ytd-single-hero-image-renderer",function(){if(abo!==void 0)return abo;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return abo=t},{mode:1});var end;var Zh=function(){return _.z.apply(this,arguments)||this};
_.u(Zh,_.z);_.Y=Zh.prototype;
_.Y.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:_.r("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.Y.computeSubtitle=function(t){if(this.data){var E;if(this.data.upcomingEventData){t=_.R4(t.subtitle);var p=Number(this.data.upcomingEventData.startTime);isNaN(p)||(E=_.wN(_.$1(t,p)))}else E=t.subtitle;return E}};
_.Y.onHeroTap=function(t){t.preventDefault();var E=this.data&&this.data.navigationEndpoint;!E||!_.Qb(_.Vx(t),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.Qb(_.Vx(t),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.r("kevlar_watchcard_hero_video_renderer_killswitch")?_.kT(this.hostElement,"yt-navigate",{navigationEndpoint:E}):this.ytComponentBehavior.resolveCommand(E))};
_.Y.computeHeroTabIndex=function(t){return t&&t.simpleText?-1:0};
_.Y.computeHeroRole=function(t){return t&&t.simpleText?"":"link"};
_.Y.computeIsReminderButtonPresent=function(t){return!(!t||!t.reminderButton)};
_.Y.computeHideBottomItems=function(t){return!(this.computeIsReminderButtonPresent(t)||t.subtitle)};
_.Y.dataChanged=function(){var t=this.get("data.buttons.buttonRenderer.serviceEndpoint"),E;((E=_.k(t==null?void 0:t.commandMetadata,_.t1))==null?0:E.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(t)};
Zh.prototype.dataChanged=Zh.prototype.dataChanged;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Zh.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Zh.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Zh.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Zh.prototype,"data",void 0);
_.N([_.e({computed:"computeSubtitle(data)"}),_.P("design:type",String)],Zh.prototype,"subtitle",void 0);_.N([_.e({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Zh.prototype,"isReminderButtonPresent",void 0);_.N([_.e({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Zh.prototype,"hideBottomItems",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Zh.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],Zh);
_.G(Zh,"ytd-watch-card-hero-video-renderer",function(){if(end!==void 0)return end;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return end=t},{mode:1});var FXe;var OP=function(){return _.z.apply(this,arguments)||this};
_.u(OP,_.z);_.Y=OP.prototype;_.Y.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"}}}};
_.Y.computeTitleBadges=function(t){return t?[t]:[]};
_.Y.computeHeaderStyle=function(t){return t?t.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.Y.computeAvatarAriaLabel=function(t){if(t){var E,p,U,x;return(x=(E=t.avatar)==null?void 0:(p=E.accessibility)==null?void 0:(U=p.accessibilityData)==null?void 0:U.label)!=null?x:_.R4(t==null?void 0:t.title)}};
_.Y.computeAvatarHeight=function(t){return t==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.Y.computeBadgeRowClass=function(t){return(t==null?0:t[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],OP.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],OP.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],OP.prototype,"data",void 0);_.N([_.e({computed:"computeTitleBadges(data.titleBadge)"}),_.P("design:type",Array)],OP.prototype,"titleBadges",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.P("design:type",String)],OP.prototype,"headerStyle",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.P("design:type",String)],OP.prototype,"badgeRowClass",void 0);_.N([_.Ul({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],OP);
_.G(OP,"ytd-watch-card-rich-header-renderer",function(){if(FXe!==void 0)return FXe;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return FXe=t},{mode:1});var znl;var lbo;var XX=function(){return _.z.apply(this,arguments)||this};
_.u(XX,_.z);XX.prototype.onMetadataTap=function(t){var E=this.data&&this.data.navigationEndpoint;E&&!_.Qb(_.Vx(t),this.hostElement,["A".toString()])&&_.kT(this.hostElement,"yt-navigate",{endpoint:E})};
_.aE.Object.defineProperties(XX.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 t;if(this.data.upcomingEventData){var E=_.R4(this.data.subtitle),p=Number(this.data.upcomingEventData.startTime);isNaN(p)||(t=_.wN(_.$1(E,p)))}else t=this.data.subtitle;return t}}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],XX.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],XX.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("data.style"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],XX.prototype,"isCondensed",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],XX.prototype,"subtitle",null);
_.N([_.Ul({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],XX);
_.G(XX,"ytd-watch-card-compact-video-renderer",function(){if(lbo!==void 0)return lbo;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return lbo=t},{mode:1});var G1o;var nBt=function(){return _.z.apply(this,arguments)||this};
_.u(nBt,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],nBt.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],nBt.prototype,"data",void 0);_.N([_.Ul({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],nBt);
_.G(nBt,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(G1o!==void 0)return G1o;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return G1o=t},{mode:1});var hi=function(){return _.z.apply(this,arguments)||this};
_.u(hi,_.z);hi.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}}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],hi.prototype,"ytRendererStamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],hi.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],hi.prototype,"data",void 0);_.N([_.Ul({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],hi);
_.G(hi,"ytd-vertical-watch-card-list-renderer",function(){if(znl!==void 0)return znl;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return znl=t},{mode:1});var Nee;var aP=function(){var t=_.z.apply(this,arguments)||this;t.ariaExpanded="false";return t};
_.u(aP,_.z);_.Y=aP.prototype;_.Y.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.Y.dataChanged=function(){var t;this.currentSeasonIndex=((t=this.data)==null?void 0:t.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.Y.computeEpisodesInfo=function(t,E,p){if(t!==void 0&&E.length===t.length)return t[p]};
_.Y.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.Y.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.Y.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.Y.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.Y.getUppercaseSimpleString=function(t){return this.ytRendererBehavior.getSimpleString(t).toUpperCase()};
_.Y.updateCurrentSeasonIndexFromBinding=function(t){this.currentSeasonIndex=t.detail.value};
aP.prototype.onIronOverlayClosed=aP.prototype.onIronOverlayClosed;aP.prototype.currentSeasonIndexChanged=aP.prototype.currentSeasonIndexChanged;aP.prototype.dataChanged=aP.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],aP.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],aP.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],aP.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",String)],aP.prototype,"label",void 0);_.N([_.e({value:0}),_.P("design:type",Number)],aP.prototype,"currentSeasonIndex",void 0);_.N([_.e({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.P("design:type",Object)],aP.prototype,"episodesInfo",void 0);_.N([_.e({value:"false"}),_.P("design:type",Object)],aP.prototype,"ariaExpanded",void 0);_.N([_.Nl("#lists"),_.P("design:type",Object)],aP.prototype,"lists",void 0);
_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],aP.prototype,"dataChanged",null);_.N([_.P3("currentSeasonIndex"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],aP.prototype,"currentSeasonIndexChanged",null);_.N([_.lc("iron-overlay-closed"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],aP.prototype,"onIronOverlayClosed",null);
_.N([_.Ul({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],aP);
_.G(aP,"ytd-watch-card-section-dropdown-renderer",function(){if(Nee!==void 0)return Nee;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Nee=t},{mode:1});var DsJ;var eq=function(){var t=_.z.apply(this,arguments)||this;t.isSearch=!1;return t};
_.u(eq,_.z);eq.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}}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],eq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],eq.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],eq.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],eq.prototype,"isSearch",void 0);_.N([_.Ul({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],eq);
_.G(eq,"ytd-watch-card-section-sequence-renderer",function(){if(DsJ!==void 0)return DsJ;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);
return DsJ=t},{mode:1});var s5g=_.l(function(t){return _.H("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.H(_.sY,{data:function(){return t.data().ctaButton}},{buttonViewModel:_.D5}),_.H(_.d8,{text:function(){return t.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"tk");
s5g.idomCompat=!0;_.k2(s5g,"ytd-button-banner-view-model",{props:{data:_.uu}});var FX=function(){var t=_.z.apply(this,arguments)||this;t.isSearch=!1;return t};
_.u(FX,_.z);
FX.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"}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],FX.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],FX.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],FX.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],FX.prototype,"rounded",void 0);_.N([_.e(),_.P("design:type",Object)],FX.prototype,"isSearch",void 0);
_.N([_.Ul({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],FX);
_.G(FX,"ytd-universal-watch-card-renderer",function(){if(dsJ!==void 0)return dsJ;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return dsJ=t},{mode:1});var LXt;_.k2(_.l(function(t){var E=t.data;var p;t=!((p=_.X3().resolve(_.OB(_.Ld)))==null||!p());p={};return _.H("overview-message-view-model",{class:_.X5("ytwOverviewMessageViewModelHost",(p.ytwOverviewMessageViewModelDarkBackground=t,p.ytwOverviewMessageViewModelLightBackground=!t,p))},_.H(_.w,{cond:function(){return E().primaryImage},
then:function(U){return _.H(_.Q9,{data:U,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.H(_.w,{cond:function(){return E().primaryText},
then:function(){return _.H("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.H(_.d8,{text:function(){return E().primaryText}}))}}),_.H(_.w,{cond:function(){return E().secondaryText},
then:function(){return _.H("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.H(_.d8,{text:function(){return E().secondaryText}}))}}))},"uk"),"overview-message-view-model",{props:{data:_.uu}});_.k2(_.IlJ,"ytd-overview-answer-view-model",{props:{data:_.uu}});var zB=function(){return _.z.apply(this,arguments)||this};
_.u(zB,_.z);zB.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"}}}};
zB.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],zB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],zB.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.I6),_.P("design:type",Object)],zB.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],zB.prototype,"data",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],zB.prototype,"isSearch",void 0);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],zB);
_.G(zB,"ytd-secondary-search-container-renderer",function(){if(LXt!==void 0)return LXt;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);
return LXt=t},{mode:1});var Pxo;var lE=function(){var t=_.z.apply(this,arguments)||this;t.renderSecondarySearchContainer=!1;t.isSearch=!1;return t};
_.u(lE,_.z);_.Y=lE.prototype;_.Y.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"}}}};
_.Y.created=function(){var t=this;this.boundStampSecondarySearchContainerIfFits=function(){t.stampSecondarySearchContainerIfFits()};
_.ia("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.Y.computeIsSearchFrictionPage=function(t){var E,p,U,x,A;t=t==null?void 0:(E=t.primaryContents)==null?void 0:(p=E.sectionListRenderer)==null?void 0:(U=p.contents)==null?void 0:(x=U[0])==null?void 0:(A=x.itemSectionRenderer)==null?void 0:A.contents;if(!t)return!1;E=_.M(t);for(p=E.next();!p.done;p=E.next())if(U=void 0,(U=p.value)==null?0:U.searchFrictionViewModel)return!0;return!1};
_.Y.computeShowSecondaryColumn=function(t,E){return!!(E&&E.secondaryContents&&t)};
_.Y.activeChanged=function(){var t=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.zI(this,this.debounceStampSecondarySearchContainerIfFits)),_.iR(function(){t.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.zI(this,this.debounceStampSecondarySearchContainerIfFits))};
_.Y.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.Y.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.Y.debounceStampSecondarySearchContainerIfFits=function(){_.qd(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.Y.onRetrieveLocation=function(t,E){E.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);t.stopPropagation()};
_.Y.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
lE.prototype.dataChanged=lE.prototype.dataChanged;lE.prototype.onRetrieveLocation=lE.prototype.onRetrieveLocation;lE.prototype.persistentGuideChanged=lE.prototype.persistentGuideChanged;lE.prototype.activeChanged=lE.prototype.activeChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],lE.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],lE.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.jp.YtdGuideStateAwareBehavior),_.P("design:type",Object)],lE.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.g(_.Ev),_.P("design:type",Object)],lE.prototype,"ironResizableBehavior",void 0);_.N([_.e(),_.P("design:type",Boolean)],lE.prototype,"active",void 0);_.N([_.e(),_.P("design:type",Object)],lE.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.P("design:type",Boolean)],lE.prototype,"useBiggerThumbs",void 0);_.N([_.e({reflectToAttribute:!0,value:function(){return _.la("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],lE.prototype,"biggerThumbsStyle",void 0);_.N([_.e(),_.P("design:type",Object)],lE.prototype,"renderSecondarySearchContainer",void 0);_.N([_.e({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.P("design:type",Boolean)],lE.prototype,"showSecondaryColumn",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.P("design:type",Boolean)],lE.prototype,"isSearchFrictionPage",void 0);
_.N([_.e(),_.P("design:type",Object)],lE.prototype,"isSearch",void 0);_.N([_.GI("active"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],lE.prototype,"activeChanged",null);_.N([_.GI("guidePersistentAndVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],lE.prototype,"persistentGuideChanged",null);
_.N([_.lc("yt-retrieve-location"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],lE.prototype,"onRetrieveLocation",null);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],lE.prototype,"dataChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],lE);
_.G(lE,"ytd-two-column-search-results-renderer",function(){if(Pxo!==void 0)return Pxo;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Pxo=t},{mode:1});var GB=function(){var t=_.z.apply(this,arguments)||this;t.hasSearchHeader=!1;t.hasSecondaryContent=!1;t.hasBiggerThumbs=_.r("enable_desktop_search_bigger_thumbs");t.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return t};
_.u(GB,_.z);_.Y=GB.prototype;_.Y.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:gq(["aa","eocs"])}}};
_.Y.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.Y.loadPage_=function(t){this.initCsi();t&&(this.data=t,_.ia("REFINEMENTS_TUPLE",["FromSearchResponse",t.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.If(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.Y.initCsi=function(){TkC("results",["ol","cpt"])};
_.Y.updateTitle=function(){var t=_.Rc(window.location.href,"q");t||(t=_.Rc(window.location.href,"search_query"));_.kT(this.hostElement,"yt-update-title",t||"")};
_.Y.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.Y.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.r("web_srp_data_changed_terminate_imp_killswitch")||_.du(this.hostElement,"yt-terminate-video-preview-action")};
_.Y.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.Y.computeHasSearchHeader=function(t){var E;t=t==null?void 0:(E=t.header)==null?void 0:E.searchHeaderRenderer;return!!t&&(!!t.searchFilterButton||!!t.chipBar)};
_.Y.computeHasSecondaryContent=function(t){var E,p;return!!(t==null?0:(E=t.contents)==null?0:(p=E.twoColumnSearchResultsRenderer)==null?0:p.secondaryContents)};
_.aE.Object.defineProperties(GB,{template:{configurable:!0,enumerable:!0,get:function(){if(Cxb===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);Cxb=t}t=Cxb;return t}}});
GB.prototype.onReloadContinuationFinish=GB.prototype.onReloadContinuationFinish;GB.prototype.dataChanged=GB.prototype.dataChanged;_.N([_.g(jz.YtPageBehavior),_.P("design:type",Object)],GB.prototype,"ytPageBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],GB.prototype,"actionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],GB.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],GB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.I6),_.P("design:type",Object)],GB.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],GB.prototype,"data",void 0);_.N([_.e({value:!0}),_.P("design:type",Boolean)],GB.prototype,"monitorScroll",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],GB.prototype,"hasSearchHeader",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],GB.prototype,"hasSecondaryContent",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],GB.prototype,"hasBiggerThumbs",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],GB.prototype,"dataChanged",null);
_.N([_.lc("yt-reload-continuation-finish"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],GB.prototype,"onReloadContinuationFinish",null);_.N([_.Ul({is:"ytd-search"})],GB);var Te5;var oBt;var WX7;var nj=function(){var t=_.z.apply(this,arguments)||this;t.ctaVisualElement=null;t.currentCsn=null;return t};
_.u(nj,_.z);_.Y=nj.prototype;_.Y.onDataChanged=function(){this.maybeLogShows()};
_.Y.computeButtonShape=function(){var t=this;if(this.data)return{buttonText:_.R4(this.data.text),state:"active",onTap:function(){t.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.Y.maybeCreateCtaVe=function(){var t;if((t=this.data)!=null&&t.badgeInteractionLogging){var E;if(t=(E=this.data.badgeInteractionLogging)==null?void 0:E.trackingParams)this.ctaVisualElement=_.$8(t)}};
_.Y.maybeLogClicks=function(){this.currentCsn=_.yL(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.qc(this.currentCsn,this.ctaVisualElement)};
_.Y.maybeLogShows=function(){this.currentCsn=_.yL(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.bU(this.currentCsn,[this.ctaVisualElement])};
_.Y.onTap=function(){var t;if((t=this.data)!=null&&t.onClickCommand){var E;this.ytComponentBehavior.resolveCommand((E=this.data)==null?void 0:E.onClickCommand);this.maybeLogClicks()}};
nj.prototype.onDataChanged=nj.prototype.onDataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],nj.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],nj.prototype,"ytComponentBehavior",void 0);_.N([_.e({}),_.P("design:type",Object)],nj.prototype,"data",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nj.prototype,"onDataChanged",null);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],nj);
_.G(nj,"ytd-shopping-overlay-badge-renderer",function(){if(WX7!==void 0)return WX7;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return WX7=t},{mode:1});var $st;var NZ=function(){return _.z.apply(this,arguments)||this};
_.u(NZ,_.z);NZ.prototype.computeShouldButtonBeVertical=function(t,E){return t||E};
NZ.prototype.onYtServiceRequestSent=function(t,E){(t=_.k(E.endpoint,_.A1))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.P9("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:t.status})):this.handleLikeEndpoint(t))};
NZ.prototype.computelikeStatusEntityKey=function(t){return t==null?void 0:t.likeStatusEntityKey};
NZ.prototype.handleLikeEndpoint=function(t){t.status==="LIKE"?this.JSC$21995_ytdDislikeToggleButtonRenderer.toggle(!1):t.status==="DISLIKE"?this.JSC$21995_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$21995_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$21995_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.aE.Object.defineProperties(NZ.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var t;return eQJ(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(t=this.likeStatusEntity)==null?void 0:t.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var t;if(this.data&&((t=this.data)==null||!t.hideDislikeButton)){var E;return eQJ(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(E=this.likeStatusEntity)==null?void 0:E.likeStatus)}}}});
NZ.prototype.onYtServiceRequestSent=NZ.prototype.onYtServiceRequestSent;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],NZ.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],NZ.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],NZ.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],NZ.prototype,"vertical",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],NZ.prototype,"textTransform",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],NZ.prototype,"useShortsIcon",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],NZ.prototype,"underIconLabel",void 0);_.N([_.e({value:"left"}),_.P("design:type",String)],NZ.prototype,"buttonTooltipPosition",void 0);_.N([_.e(),_.P("design:type",Object)],NZ.prototype,"overrides",void 0);
_.N([_.Nl("#like-button"),_.P("design:type",Object)],NZ.prototype,"JSC$21995_ytdLikeToggleButtonRenderer",void 0);_.N([_.Nl("#dislike-button"),_.P("design:type",Object)],NZ.prototype,"JSC$21995_ytdDislikeToggleButtonRenderer",void 0);_.N([_.Z("data","likeStatusEntity.likeStatus","useShortsIcon"),_.P("design:type",Object),_.P("design:paramtypes",[])],NZ.prototype,"likeButton",null);
_.N([_.Z("data","likeStatusEntity.likeStatus","useShortsIcon"),_.P("design:type",Object),_.P("design:paramtypes",[])],NZ.prototype,"dislikeButton",null);_.N([_.e({computed:"computelikeStatusEntityKey(data)"}),_.P("design:type",String)],NZ.prototype,"likeStatusEntityKey",void 0);_.N([_.e({selectorArgs:["likeStatusEntityKey"],selector:_.UY}),_.P("design:type",Object)],NZ.prototype,"likeStatusEntity",void 0);
_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.m8]),_.P("design:returntype")],NZ.prototype,"onYtServiceRequestSent",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],NZ);
_.Ol()(NZ,"ytd-like-button-renderer",function(){if($st===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);$st=t}t=$st;return t},{mode:1});_.k2(_.gwg,"reel-sound-metadata-view-model",{props:{data:_.Cy,overlayDensity:_.Cy}});_.k2(_.B67,"player-disclosure-view-model",{props:{data:_.uu,extractOverlay:_.uu}});_.k2(_.YPo,"pivot-button-view-model",{props:{data:_.Cy,className:_.Cy}});_.k2(_.Mqo,"reel-action-bar-view-model",{props:{data:_.uu,buttonShapeOverrideables:_.uu}});_.k2(_.d05,"yt-reel-metapanel-view-model",{props:{data:_.uu,overlayDensity:_.uu,extractOverlay:_.uu}});var KXK=_.l(function(t){var E=t.children;var p=t.region;t=_.M(_.Py(void 0,void 0,"flxBBc"));var U=t.next().value,x=t.next().value;t=_.M(_.Py("0px",void 0,"IAR7k"));var A=t.next().value,m=t.next().value;t=_.M(_.Py("0px",void 0,"QV4iWb"));var b=t.next().value,f=t.next().value;t=_.M(_.Py(0,void 0,"Q2oK6b"));var B=t.next().value,R=t.next().value;t=_.M(_.Py(0,void 0,"hYKowe"));var V=t.next().value,Q=t.next().value,C=function(){var L=U();if(L){var D;if(((D=_.ew())==null?void 0:D.getPlayerState())!==-1){L.style.display=
"inherit";var W;(W=_.ew())==null||W.removeEventListener("onStateChange",C)}else L.style.display="none";I()}},d=function(){var L;
return(L=_.k1())==null?void 0:L.querySelector("video")},I=function(){var L=d();
if(L){R(L.getBoundingClientRect().width);Q(L.getBoundingClientRect().height);var D;m((L==null?void 0:(D=L.style)==null?void 0:D.left)||"0px");var W;f((L==null?void 0:(W=L.style)==null?void 0:W.top)||"0px")}};
_.M$(function(){var L=U();if(L){var D,W,K;if(((D=_.ew())==null?void 0:D.getPlayerState())===-1&&Math.round(((K=(W=_.ew())==null?void 0:W.getVideoAspectRatio())!=null?K:0)*100)!==Math.round(B()/V()*100)){L.style.display="none";var v,YL;Q(B()/((YL=(v=_.ew())==null?void 0:v.getVideoAspectRatio())!=null?YL:1))}}},"N29KDe");
var O=function(){I()},a;
_.xa(function(){I();var L;if(!(p==null?0:(L=p())==null?0:L.transformationMatrix))throw Error("Yl");var D;(D=_.ew())==null||D.addEventListener("onStateChange",C);if(window.ResizeObserver){if(L=d())a=new ResizeObserver(O),a.observe(L)}else window.addEventListener("resize",I);_.iK(function(){var W;(W=_.ew())==null||W.removeEventListener("onStateChange",C);a?a.disconnect():window.removeEventListener("resize",I)})});
var F=function(){var L,D,W=(D=p==null?void 0:(L=p())==null?void 0:L.transformationMatrix)!=null?D:[];L=B();D=V();for(var K=[],v=0,YL=-1;v<W.length;v++)v%3===0&&(YL++,K[YL]=[]),K[YL].push(W[v]);W=new Xl(K);K=new Xl([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);K=W.multiply(K);W=new Xl([[0,0],[0,0],[0,0],[0,0]]);for(v=0;v<K.getSize().width;v++){YL=uq(K,0,v);var bY=uq(K,1,v);if(YL===null||bY===null)throw Error("Xl`"+(v+1).toString());uh7(W,v,0,YL*L);uh7(W,v,1,bY*D)}L=uq(W,0,0);v=uq(W,1,0);D=uq(W,0,1);YL=uq(W,1,1);
if(L===null||v===null||D===null||YL===null)throw Error("Vl");K=FFL(L,v,D,YL);bY=uq(W,3,0);W=uq(W,3,1);if(bY===null||W===null)throw Error("Wl");W=FFL(L,bY,D,W);YL=(Number((YL*-1).toFixed(2))-Number((D*-1).toFixed(2)))/(Number(v.toFixed(2))-Number(L.toFixed(2)));bY=Math.atan(YL)*180/Math.PI;v=YL===Number.POSITIVE_INFINITY?-90:YL===Number.NEGATIVE_INFINITY?90:Object.is(YL,-0)?180:YL===0?0:YL>0?bY*-1:L<v?bY*-1:Math.abs(bY)+180;return"left:calc("+L+"px + "+A()+"); top:calc("+(D+"px + "+b()+"); width:")+
(K+"px; height:")+(W+"px; transform:rotate(")+(v+"deg);\n        --sticker-width:"+K+";")};
return _.H(_.hBJ,{root:"#sticker-layer"},function(){return _.H("yt-overlay-sticker",{el:_.V9(x),style:F,class:"ytOverlayStickerHost"},E)})},"xk");var vBe=_.l(function(t){function E(){var C,d,I,O,a=(d=_.k((C=f())==null?void 0:C.command,_.IJW))==null?void 0:(I=d.item)==null?void 0:(O=I.notificationTextRenderer)==null?void 0:O.successResponseText;if(a)C=_.jL(a),_.du(U.value,"yt-open-popup-action",[C,U.value]);else if(B())l2J(B(),U.value);else{var F;l2J((F=f())==null?void 0:F.command,U.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var p=t.data;var U=_.EB("svg"),x=_.M(_.Py(!1,void 0,"e9onLe"));t=x.next().value;var A=x.next().value,m=_.M(_.Py(!1,void 0,"ptnIQd"));x=m.next().value;var b=m.next().value,f=function(){var C;return _.k((C=p())==null?void 0:C.popUp,mVo)},B=function(){var C;
return(C=p())==null?void 0:C.command},R=function(){return _.k(B(),_.TE)!==void 0};
m=_.aC(function(){E();return!1});
var V={},Q={};return _.H("svg",{"on:mouseover":_.aC(function(){R()&&A(!0);b(!0);return!1}),
"on:mouseout":_.aC(function(){A(!1);b(!1);return!1}),
"on:keydown":_.aC(function(C){C.key==="Enter"&&E();return!1}),
"on:focus":_.aC(function(){R()&&A(!0);return!1}),
"on:blur":_.aC(function(){R()&&A(!1);return!1}),
el:U,tabindex:0,"aria-label":function(){var C;return(C=p())==null?void 0:C.a11yString},
id:"player-overlay-video-interaction-svg",class:_.X5("ytPlayerOverlayInteractionInteractionsSvg",(V.ytPlayerOverlayInteractionInteractionsSvgHover=t,V),(Q.ytPlayerOverlayInteractionInteractionsSvgHideOutline=x,Q)),role:"button","on:click":m})},"Ak");_.k2(_.l(function(t){var E=t.data;_.xa(function(){var p;if((p=E())==null?0:p.trackingParams){var U;_.Pu().graftServerVe((U=E().trackingParams)!=null?U:"")}});
return _.H("yt-player-overlay-interaction",null,_.H(KXK,{region:function(){var p,U;return(p=E())==null?void 0:(U=p.regions)==null?void 0:U[0]}},_.H(vBe,Object.assign({},t))))},"zk"),"yt-player-overlay-interaction",{props:{data:_.uu}});var y5l=_.l(function(t){var E=t.data;var p=t.index;var U=t.selectedChoice;var x=function(){var A;return _.k((A=E())==null?void 0:A.renderer,Jb8)};
t={};return _.H("yt-overlay-poll-sticker-choice",{class:_.X5("ytOverlayPollStickerChoiceHost"),style:_.zO({"--displayed-percentage":function(){var A,m,b,f;return""+Math.ceil(Number((U==null?void 0:U())===p()?(A=x())==null?void 0:(m=A.selected)==null?void 0:m.progressBarWidth:(b=x())==null?void 0:(f=b.unselected)==null?void 0:f.progressBarWidth)*100)}})},_.H("div",{class:_.X5("ytOverlayPollStickerChoicePollChoice",(t.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(U==null?void 0:U())!==
void 0},t.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(U==null?void 0:U())===p()},t))},_.H("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var A;
return((A=x())==null?void 0:A.text)||""}),_.H("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(U==null?void 0:U())==="undefined")var A="";
else{var m,b,f,B;A=(U==null?void 0:U())===p()?(m=x())==null?void 0:(b=m.selected)==null?void 0:b.votePercentage:(f=x())==null?void 0:(B=f.unselected)==null?void 0:B.votePercentage}return A})))},"Bk");var Sw7=_.l(function(t){var E=t.data;var p=t.enableDebuggingFeatures;var U=_.D4(function(A){var m,b=((m=E())==null?void 0:m.postPollStateEntityKey)||"";A=_.hj(A.entities,"postPollStateEntity",b);var f;return((f=E())==null?0:f.viewerIsOwner)?Object.assign({},A,{selectedOptionId:-1,voted:!0}):A}),x=_.X3().resolve(_.ei);
t={};return _.H("yt-overlay-poll-sticker",null,_.H(KXK,{region:function(){var A,m;return(A=E())==null?void 0:(m=A.region)==null?void 0:m.interactionRegion}},_.H("div",{class:_.X5("ytOverlayPollStickerHost",(t.ytOverlayPollStickerDebugStyle=function(){return p==null?void 0:p()},t)),
style:_.zO({"--original-height":function(){var A;return""+(((A=E())==null?void 0:A.mainBodyHeight)||1)},
"--original-width":function(){var A;return""+(((A=E())==null?void 0:A.mainBodyWidth)||1)},
"--scaled-width":function(){var A;return""+(((A=E())==null?void 0:A.mainBodyWidth)||1)},
"--primary-surface":function(){var A,m;return zQo(((A=E())==null?void 0:(m=A.theme)==null?void 0:m.primarySurface)||0)},
"--raised-surface":function(){var A,m;return zQo(((A=E())==null?void 0:(m=A.theme)==null?void 0:m.raisedSurface)||0)},
"--secondary-surface":function(){var A,m;return zQo(((A=E())==null?void 0:(m=A.theme)==null?void 0:m.secondarySurface)||0)},
"--primary-text":function(){var A,m;return zQo(((A=E())==null?void 0:(m=A.theme)==null?void 0:m.primaryText)||0)},
"--secondary-text":function(){var A,m;return zQo(((A=E())==null?void 0:(m=A.theme)==null?void 0:m.secondaryText)||0)}})},_.H("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return E().questionText}," "),_.H(_.yG,{each:function(){return E().pollChoiceConfigs||[]}},function(A,m){return _.H("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.aC(function(){var b=m(),f;if((f=E())==null||!f.viewerIsOwner){var B,R;f=(B=E())==null?void 0:(R=B.pollChoiceConfigs)==null?void 0:R[b];if(R=(f==null?0:f.renderer)?_.k(f.renderer,Jb8):void 0){var V;B=((V=U())==null?void 0:V.selectedOptionId)!==b;var Q;if(V=(Q=B?R.selectedPollCommand:R.deselectedPollCommand)==null?void 0:Q.innertubeCommand){x.resolveCommand(V);var C,d;_.Ro().dispatch(_.P9("postPollStateEntity",((C=U())==null?void 0:C.key)||"",{key:((d=U())==null?void 0:d.key)||"",selectedOptionId:B?
b:-1,voted:B}))}}}})},_.H(y5l,{data:A,
index:m,selectedChoice:function(){var b,f;return((b=U())==null?0:b.voted)?(f=U())==null?void 0:f.selectedOptionId:void 0}}))}),_.H("div",{class:"ytOverlayPollStickerVoteCount"},function(){var A,m;
return((A=U())==null?0:A.voted)&&((m=U())==null?void 0:m.selectedOptionId)!==-1?E().postVoteCountText:E().preVoteCountText}))))},"Ck");_.k2(_.l(function(t){var E=t.data;t=_.KN(function(){var p;return _.r("enable_shorts_poll_stickers_web")?(((p=E())==null?void 0:p.stickers)||[]).filter(function(U){return U.pollSticker}):[]},void 0,"Cflxwb");
return _.H("yt-stickers-layer",null,_.H(_.yG,{each:t},function(p){return _.H(Sw7,{data:p.pollSticker,enableDebuggingFeatures:function(){var U;return(U=E())==null?void 0:U.enableDebuggingFeatures}})}))},"Dk"),"yt-stickers-layer",{props:{data:_.uu}});var Dh=function(){var t=_.z.apply(this,arguments)||this;t.showScrubber=!1;t.isWatchWhileMode=!1;t.enableAnchoredPanel=_.r("desktop_shorts_v2_anchored_panel");t.enablePollStickers=_.r("enable_shorts_poll_stickers_web");t.enableShortsModernControls=_.r("web_shorts_modern_controls");t.anchoredPanelActive=!1;t.enableLivingroomLayout=_.r("reels_enable_livingroom_layout");t.enablePlayerMetadataContainer=_.r("reels_web_enable_metadata_container");t.enableSqueezebackPanels=_.r("web_shorts_enable_squeezeback_panels");
t.useAspectRatio=_.r("web_use_aspect_ratio");t.isSqueezebackActive=!1;t.smallScreenSqueezeback=!1;t.isPlayerStarted=!1;t.overlayDensity=0;t.extractOverlay=!1;t.extractActionBar=!1;t.isOverlay=!1;t.isImmersive=!1;t.isImmersiveHorizontal=!1;t.isFullscreen=!1;t.onWindowResized=function(){var E;t.set("isImmersive",((E=window.getComputedStyle(t.hostElement))==null?void 0:E.getPropertyValue("--immersive-mode-on"))==="1");t.set("isImmersiveHorizontal",t.isImmersive&&t.enableLivingroomLayout&&!t.isWatchWhileMode)};
return t};
_.u(Dh,_.z);_.Y=Dh.prototype;_.Y.updateIsOverlay=function(t){this.isOverlay=t.detail.value};
_.Y.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.Y.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.Y.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.Y.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.Y.onOverlayDensityChange=function(){var t=_.ZN(this.hostElement).querySelector("ytd-info-panel-container-renderer");t&&(t.set("extractOverlay",this.extractOverlay),t.set("roundedContainer",this.extractOverlay))};
_.Y.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.Y.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.Y.ready=function(){(_.r("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"))&&(!_.r("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.la("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.la("reels_action_justified_content")||"flex-start")};
_.Y.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:_.r("web_enable_shorts_no_idle_job")?8:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:_.r("web_enable_shorts_no_idle_job")?8:0},"data.disclosure":{id:"disclosure",
mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},renderPriority:_.r("web_enable_shorts_no_idle_job")?8:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:_.r("web_enable_shorts_no_idle_job")?8:0}}};
_.Y.setFakeLoadingButtons=function(){_.r("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.zF("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.zF("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.zF("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.zF("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.zF("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()};
_.Y.setEmptyOverlayMetadata=function(){_.r("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}))};
_.aE.Object.defineProperties(Dh.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.infoPanel)}}});
Dh.prototype.onOverlayDensityChange=Dh.prototype.onOverlayDensityChange;Dh.prototype.onIsActiveChanged=Dh.prototype.onIsActiveChanged;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Dh.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Dh.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],Dh.prototype,"ytdReduxBehavior",void 0);
_.N([_.g(_.jp.YtdGuideStateAwareBehavior),_.P("design:type",Object)],Dh.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Dh.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Boolean)],Dh.prototype,"isActive",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Dh.prototype,"hidden",void 0);_.N([_.e({value:!0}),_.P("design:type",Boolean)],Dh.prototype,"useShortsIcon",void 0);
_.N([_.e({value:"left"}),_.P("design:type",String)],Dh.prototype,"buttonTooltipPosition",void 0);_.N([_.e({value:_.r("reels_enable_livingroom_layout")?"top":"left"}),_.P("design:type",String)],Dh.prototype,"likeButtonTooltipPosition",void 0);_.N([_.e({value:"none"}),_.P("design:type",String)],Dh.prototype,"textTransform",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Dh.prototype,"showScrubber",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Dh.prototype,"isWatchWhileMode",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("data.infoPanel"),_.P("design:type",Object),_.P("design:paramtypes",[])],Dh.prototype,"hasInfoPanel",null);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Dh.prototype,"enableAnchoredPanel",void 0);_.N([_.e(),_.P("design:type",Object)],Dh.prototype,"enablePollStickers",void 0);
_.N([_.e(),_.P("design:type",Object)],Dh.prototype,"enableShortsModernControls",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Dh.prototype,"anchoredPanelActive",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Dh.prototype,"enableLivingroomLayout",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],Dh.prototype,"enablePlayerMetadataContainer",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Dh.prototype,"enableSqueezebackPanels",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Dh.prototype,"useAspectRatio",void 0);_.N([_.e({selector:_.kL0,reflectToAttribute:!0}),_.P("design:type",Object)],Dh.prototype,"isSqueezebackActive",void 0);_.N([_.e({selector:STt,reflectToAttribute:!0}),_.P("design:type",Object)],Dh.prototype,"smallScreenSqueezeback",void 0);
_.N([_.e({selector:cZo}),_.P("design:type",Object)],Dh.prototype,"isPlayerStarted",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Dh.prototype,"overlayDensity",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Dh.prototype,"extractOverlay",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Dh.prototype,"extractActionBar",void 0);_.N([_.e(),_.P("design:type",Object)],Dh.prototype,"isOverlay",void 0);
_.N([_.e(),_.P("design:type",Object)],Dh.prototype,"isImmersive",void 0);_.N([_.e(),_.P("design:type",Object)],Dh.prototype,"isImmersiveHorizontal",void 0);_.N([_.e({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.P("design:type",Boolean)],Dh.prototype,"isShortsImmersive",void 0);_.N([_.e({computed:"computeButtonOverride(extractActionBar)"}),_.P("design:type",Object)],Dh.prototype,"buttonOverride",void 0);
_.N([_.e({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.P("design:type",Object)],Dh.prototype,"actionBarButtonOverride",void 0);_.N([_.e({selector:_.IF,reflectToAttribute:!0}),_.P("design:type",Object)],Dh.prototype,"isFullscreen",void 0);_.N([_.GI("isActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Dh.prototype,"onIsActiveChanged",null);
_.N([_.GI("extractOverlay"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Dh.prototype,"onOverlayDensityChange",null);_.N([_.Ul({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],Dh);
_.G(Dh,"ytd-reel-player-overlay-renderer",function(){if(oBt!==void 0)return oBt;var t=document.createElement("template");_.J(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer"> </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enablePollStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <yt-stickers-layer data="[[data.videoInteractions.elementsInteractionsLayer.stickersLayerRenderer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      </yt-stickers-layer>\n  </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" extract-overlay="[[extractOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return oBt=t},{mode:1});var c5K;var sP=function(){var t=_.z.apply(this,arguments)||this;t.videoDuration=0;t.playedTime=0;t.isActive=!1;t.JSC$22020_playerEvents=new Map;return t};
_.u(sP,_.z);_.Y=sP.prototype;_.Y.created=function(){this.JSC$22020_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22020_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.Y.attached=function(){this.getPlayerAndInitializeListeners()};
_.Y.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22020_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.zI(this,this.onPageChanged))};
_.Y.getPlayerAndInitializeListeners=function(){var t=this,E;return _.q(function(p){if(p.nextAddress==1)return E=_.k1(),E?p.yield(E.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.zI(t,t.onPageChanged)),p.jumpTo(0));t.player=p.yieldResult;t.initializePlayerListeners();_.Do(p)})};
_.Y.onPageChanged=function(t){var E=this;return _.q(function(p){if(p.nextAddress==1)return t.detail.newPageType!=="ytd-shorts"?p.return():p.yield(_.dG().getPlayerPromise(),2);E.player=p.yieldResult;E.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.zI(E,E.onPageChanged));_.Do(p)})};
_.Y.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22020_playerEvents)};
_.Y.onVideoDataChange=function(t){var E=this;return _.q(function(p){if(!E.player||t.type!=="newdata")return p.return();E.videoDuration=_.r("web_shorts_use_progress_state_for_gapless")?E.player.getProgressState(t.playertype).seekableEnd:E.player.getDuration(t.playertype);E.playedTime=0;_.Do(p)})};
_.Y.onVideoProgress=function(t){var E=this,p,U;return _.q(function(x){if(!E.player)return x.return();p=E.player.getPresentingPlayerType();U=E.player.getPlayerState();E.videoDuration=_.r("web_shorts_use_progress_state_for_gapless")?E.player.getProgressState(p).seekableEnd:E.player.getDuration(p);E.playedTime=U===0?E.videoDuration:t;_.Do(x)})};
_.Y.getPercentPlayed=function(t,E){return t?_.Ay(E/t,0,1):0};
_.aE.Object.defineProperties(sP.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 t="";return t=this.videoDuration&&this.playedTime?t+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):t+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],sP.prototype,"componentBehavior",void 0);_.N([_.g(_.JT.YtPlayerListenerBehavior),_.P("design:type",_.Il)],sP.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],sP.prototype,"player",void 0);_.N([_.e(),_.P("design:type",Object)],sP.prototype,"videoDuration",void 0);_.N([_.e(),_.P("design:type",Object)],sP.prototype,"playedTime",void 0);_.N([_.e(),_.P("design:type",Object)],sP.prototype,"isActive",void 0);
_.N([_.Z("videoDuration","playedTime"),_.P("design:type",Number),_.P("design:paramtypes",[])],sP.prototype,"percentPlayed",null);_.N([_.Z("videoDuration","playedTime"),_.P("design:type",Object),_.P("design:paramtypes",[])],sP.prototype,"percentPlayedStyle",null);_.N([_.Z("videoDuration","isActive"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],sP.prototype,"hideProgressBar",null);
_.G(sP,"ytd-progress-bar-line",function(){if(c5K===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);c5K=t}t=c5K;return t},{mode:_.hX("kevlar_poly_si_batch_j028")?1:2});var t97;_.k2(DI9,"ytm-closed-captioning-button",{props:{captionIconType:_.uu,onClick:_.Cy,ariaLabel:_.uu,ariaPressed:_.uu,isOverlay:_.Cy,isModern:_.Cy}});_.k2(_.Qf9,"desktop-shorts-volume-controls",{props:{orientation:_.uu}});var Lj=function(){var t=_.z.apply(this,arguments)||this;t.playerState=null;t.isMuted=!1;t.shortsModernControlsEnabled=_.r("web_shorts_modern_controls");t.volumeControlsOrientationState="horizontal_right";t.isOverlay=!0;t.isAdsOverlay=!1;t.captionIconType=-1;t.ariaLabel="";t.overlayDensity=0;t.JSC$22023_playerEvents=new Map;t.onClosedCaptionsButtonClick=function(){t.player&&Ajb(t.player)&&(t.player.toggleSubtitles(),t.updateCaptionIconType())};
return t};
_.u(Lj,_.z);_.Y=Lj.prototype;_.Y.created=function(){this.JSC$22023_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22023_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22023_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.Y.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.h8(28662);this.playPauseButtonClientVE=_.h8(36842);this.fullscreenButtonToggleOffClientVE=_.h8(222256);this.fullscreenButtonToggleOnClientVE=_.h8(222257);var t=_.yL(),E=_.vV();t&&E&&(_.r("combine_ve_grafts")?(_.Tw(_.Pu(),this.muteButtonClientVE,E),_.Tw(_.Pu(),this.playPauseButtonClientVE,E)):_.Mc(t,E,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.Y.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22023_playerEvents),this.player=null)};
_.Y.updateCaptionIconType=function(){var t=-1,E=void 0,p=_.zF("CLOSED_CAPTIONS_DISABLED");this.player&&Ajb(this.player)&&(YFg(this.player)?(E=!0,p=_.zF("CLOSED_CAPTIONS_ON"),t=1):(E=!1,p=_.zF("CLOSED_CAPTIONS_OFF"),t=0));this.captionIconType=t;this.ariaPressedState=E;this.ariaLabel=p};
_.Y.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-overlay-icon-active-other)"}}};
_.Y.getPlayerAndInitializeListeners=function(){var t=this,E;return _.q(function(p){if(p.nextAddress==1)return E=_.k1(),E?p.yield(E.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.zI(t,t.onPageChanged)),p.jumpTo(0));t.player=p.yieldResult;t.initializePlayerListeners();_.Do(p)})};
_.Y.onPageChanged=function(t){var E=this;return _.q(function(p){if(p.nextAddress==1)return t.detail.newPageType!=="ytd-shorts"?p.return():p.yield(_.dG().getPlayerPromise(),2);E.player=p.yieldResult;E.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.zI(E,E.onPageChanged));_.Do(p)})};
_.Y.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22023_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.Y.onPlayerStateChange=function(t){this.playerState=t};
_.Y.onPlayerVolumeChange=function(t){this.isMuted=t.muted};
_.Y.onPlayPauseButtonClick=function(){var t=this,E,p;return _.q(function(U){if(U.nextAddress==1)return U.yield(_.dG().getPlayerPromise(),2);E=U.yieldResult;(p=_.yL())&&t.playPauseButtonClientVE&&_.qc(p,t.playPauseButtonClientVE);E.getPlayerState()!==1?E.playVideo():E.pauseVideo();_.Do(U)})};
_.Y.computePlayPauseIcon=function(t){return t===2||t===-1||t===5?_.r("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.r("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.r("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.Y.computeFullscreenLabel=function(t){return t?_.zF("FULLSCREEN_EXIT_LABEL"):_.zF("FULLSCREEN_ENTER_LABEL")};
_.Y.computePlayPauseLabel=function(t){return t===1||t===3?_.zF("PLAYER_LABEL_PAUSE"):_.zF("PLAYER_LABEL_PLAY")};
_.Y.onMuteButtonClick=function(){var t=this,E,p;return _.q(function(U){if(U.nextAddress==1)return U.yield(_.dG().getPlayerPromise(),2);E=U.yieldResult;(p=_.yL())&&t.muteButtonClientVE&&_.qc(p,t.muteButtonClientVE);E.isMuted()?E.unMute(!0):E.mute(!0);_.Do(U)})};
_.Y.computeMuteIcon=function(t){return t?"miniplayer:volume-off":"miniplayer:volume-up"};
_.Y.computeMuteLabel=function(t){return t?_.zF("PLAYER_LABEL_UNMUTE"):_.zF("PLAYER_LABEL_MUTE")};
_.Y.onFullscreenButtonClick=function(){var t=_.yL();t&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.qc(t,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.qc(t,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();cU5()};
_.aE.Object.defineProperties(Lj.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var t=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(){t.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-overlay-background-medium-light)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.r("web_shorts_modern_controls")?"player_full_exit_alt":_.r("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.r("web_shorts_modern_controls")?"player_full_enter_alt":_.r("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Lj.prototype,"componentBehavior",void 0);_.N([_.g(_.JT.YtPlayerListenerBehavior),_.P("design:type",_.Il)],Lj.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],Lj.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Lj.prototype,"player",void 0);_.N([_.e(),_.P("design:type",Object)],Lj.prototype,"playerState",void 0);_.N([_.e(),_.P("design:type",Object)],Lj.prototype,"isMuted",void 0);
_.N([_.e({computed:"computePlayPauseIcon(playerState)"}),_.P("design:type",String)],Lj.prototype,"playPauseIcon",void 0);_.N([_.e({computed:"computeMuteIcon(isMuted)"}),_.P("design:type",String)],Lj.prototype,"muteIcon",void 0);_.N([_.e({selector:_.IF}),_.P("design:type",Boolean)],Lj.prototype,"isFullscreen",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Lj.prototype,"shortsModernControlsEnabled",void 0);
_.N([_.e(),_.P("design:type",Object)],Lj.prototype,"volumeControlsOrientationState",void 0);_.N([_.e(),_.P("design:type",Object)],Lj.prototype,"isOverlay",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Lj.prototype,"isAdsOverlay",void 0);_.N([_.e(),_.P("design:type",Object)],Lj.prototype,"captionIconType",void 0);_.N([_.e(),_.P("design:type",Object)],Lj.prototype,"ariaLabel",void 0);_.N([_.e(),_.P("design:type",Object)],Lj.prototype,"ariaPressedState",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Lj.prototype,"overlayDensity",void 0);_.N([_.e(),_.P("design:type",Object)],Lj.prototype,"data",void 0);_.N([_.e({computed:"computeActionBarButtonOverride()"}),_.P("design:type",Object)],Lj.prototype,"actionBarButtonOverride",void 0);_.N([_.Z("playerState"),_.P("design:type",Object),_.P("design:paramtypes",[])],Lj.prototype,"playPauseButtonData",null);
_.N([_.Z("isFullscreen"),_.P("design:type",Object),_.P("design:paramtypes",[])],Lj.prototype,"fullscreenButtonData",null);_.N([_.e(),_.P("design:type",Object)],Lj.prototype,"onClosedCaptionsButtonClick",void 0);_.N([_.Z("isFullscreen"),_.P("design:type",String),_.P("design:paramtypes",[])],Lj.prototype,"fullscreenIcon",null);
_.G(Lj,"ytd-shorts-player-controls",function(){if(t97===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);t97=t}t=t97;return t},{mode:1});var EJb;_.k2(_.A9o,"yt-interstitial-view-model",{props:{data:_.uu}});var pm7=_.l(function(t){var E=t.data;return _.H("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.H("h1",{class:"reelWatchBreakViewModelHostTitle"},_.H(_.d8,{text:function(){return E().title}})),_.H("h2",{class:"reelWatchBreakViewModelHostBody"},_.H(_.d8,{text:function(){return E().body},
isOverlay:!0})),_.H(_.sY,{data:function(){return E().buttons}},{buttonViewModel:function(p,U){return _.H("div",{class:function(){return U()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.H(_.D5,{data:p.data}))}}))},"Ek");
pm7.idomCompat=!0;_.k2(pm7,"reel-watch-break-view-model",{props:{data:_.uu}});var PG=function(){return _.z.apply(this,arguments)||this};
_.u(PG,_.z);PG.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}}};
_.aE.Object.defineProperties(PG.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var t;return!!_.k((t=this.data)==null?void 0:t.renderer,YM8)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var t;return!!_.k((t=this.data)==null?void 0:t.renderer,Mob)}}});
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],PG.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],PG.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],PG.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],PG.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0}),_.Z("data.renderer"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],PG.prototype,"isSurvey",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data.renderer"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],PG.prototype,"isInterstitialViewModel",null);_.N([_.Ul({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],PG);
_.G(PG,"ytd-reel-non-video-content-renderer",function(){if(EJb!==void 0)return EJb;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);
return EJb=t},{mode:_.hX("kevlar_poly_si_batch_j028")?1:2});var Uu7;_.k2(_.VTt,"desktop-shorts-player-controls",{});var TB=function(){var t=_.z.apply(this,arguments)||this;t.isPlayerPaused=!1;t.isPlayerStarted=!1;t.showPlayerControls=!1;t.showScrubber=!1;t.autoHideJobId=0;t.overlayType=_.la("web_shorts_expanded_overlay_type");t.panelData=void 0;t.isWatchWhileMode=!1;t.hasError=!1;t.panelShowDelayMs=1;t.scrubberComponent={};t.isFullscreen=!1;t.shouldHideOverlay=!1;t.enableAnchoredPanel=_.r("desktop_shorts_v2_anchored_panel");t.enablePersistentAnchoredPanel=_.r("desktop_shorts_v2_persistent_anchored_panel");t.hideWatchWhilePanel=
_.r("web_shorts_hide_watch_while_panel");t.useAspectRatio=_.r("web_use_aspect_ratio");t.enableShortsModernControls=_.r("web_shorts_modern_controls");t.isPersistentPanelActive=!1;t.anchoredPanelActive=!1;t.isShortsPipActive=!1;t.smallScreenSqueezeback=!1;t.enableFlexibleOverlay=_.r("web_enable_flexible_overlay");t.overlayDensity=0;t.extractOverlay=!1;t.extractActionBar=!1;t.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
t.onWindowResized=function(){_.qd(t,"calculateOverlayDensity",function(){t.calculateOverlayDensity()},100)};
return t};
_.u(TB,_.z);_.Y=TB.prototype;_.Y.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.Y.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.Y.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var t=_.X3().resolve(_.mp);this.isWatchWhileMode&&_.ir.addJob(function(){t.showPanel({identifier:"shorts-comments-panel",target:null})},_.r("web_enable_shorts_no_idle_job")?1:0)}}else this.panelData=void 0};
_.Y.handleShowReelsCommentsOverlayCommand=function(t){t=_.k(t,sA9);this.isActive&&(t==null?0:t.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))};
_.Y.updateEngagementPanelVisibility=function(t,E){t&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:E?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:t}})};
_.Y.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;window.removeEventListener("resize",this.onWindowResized)};
_.Y.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.X3().resolve(_.$V).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.Y.handleWatchWhilePanelScrimClick=function(){var t=_.X3().resolve(_.mp);this.activeWatchWhilePanel&&(t.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.Y.attached=function(){this.isFirstReel()&&this.handlePlayerClick();window.addEventListener("resize",this.onWindowResized);this.calculateOverlayDensity()};
_.Y.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:_.r("web_enable_shorts_no_idle_job")?8: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:_.r("web_enable_shorts_no_idle_job")?8:0}}};
_.Y.handlePlayerClick=function(t){var E=this,p,U;if((U=(p=window).matchMedia)!=null&&U.call(p,"(any-pointer: coarse)").matches||!t)this.showPlayerControls=!0,_.ir.cancelJob(this.autoHideJobId),this.autoHideJobId=_.ir.addJob(function(){E.showPlayerControls=!1},_.r("web_enable_shorts_no_idle_job")?1:0,4E3)};
_.Y.isFirstReel=function(){return this.index===0};
_.Y.handleMouseenter=function(){_.ir.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.Y.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.Y.handleScrubberEnter=function(){this.showScrubber=!0};
_.Y.handleScrubberLeave=function(){this.showScrubber=!1};
_.Y.maybeLogNonDefaultAspectRatio=function(){var t;(t=this.data)!=null&&t.thumbnail&&this.isActive&&.5625!==d_b(this.data.thumbnail)&&_.Ysj("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.Y.calculateOverlayDensity=function(){var t=document.querySelector("#shorts-container");if(t){var E=!1,p,U=this.playerContainer.offsetWidth,x=this.playerContainer.offsetHeight;t=t.offsetWidth/2-U/2;t>=368?(t=1,E=p=!0):t>=72?(t=0,p=!0):(t=2,p=!1);U>=600&&x>=840?t=1:window.innerWidth<=599&&(t=2,p=E=!1);this.isPersistentPanelActive&&(t=0,E=!1);this.extractActionBar=p;_.r("web_enable_flexible_overlay")&&(this.overlayDensity=t,this.extractOverlay=E);var A;(A=this.onOverlayDensityChanged)==null||A.call(this,
this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}};
_.Y.onOverlayDensityChange=function(){var t;(t=this.onOverlayDensityChanged)==null||t.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(t=_.ZN(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))t.set("overlayDensity",this.overlayDensity),t.set("extractOverlay",this.extractOverlay),t.set("extractActionBar",this.extractActionBar);if(t=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))t.overlayDensity=this.overlayDensity,t.extractOverlay=
this.extractOverlay,t.extractActionBar=this.extractActionBar};
_.Y.isVideoContent=function(t){_.X3().resolve(_.$V);return!!_.k(t,_.DK)};
_.Y.isNonVideoContent=function(t){_.X3().resolve(_.$V);return!!_.k(t,_.fz)};
_.Y.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.aE.Object.defineProperties(TB.prototype,{isAdsOverlay:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.adsOverlay)}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.r("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var t;return!this.isActive||!this.isPlayerStarted||(t=this.data)!=null&&t.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var t;if(((t=this.data)==null?0:t.command)&&this.isVideoContent(this.data.command)){var E,p;if(((E=this.data)==null?0:E.adsOverlay)&&Object.keys((p=this.data)==null?void 0:p.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var U,x;if(((U=this.data)==null?0:U.reelPlayerOverlayRenderer)&&Object.keys((x=this.data)==null?void 0:x.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
TB.prototype.onOverlayDensityChange=TB.prototype.onOverlayDensityChange;TB.prototype.calculateOverlayDensity=TB.prototype.calculateOverlayDensity;TB.prototype.maybeLogNonDefaultAspectRatio=TB.prototype.maybeLogNonDefaultAspectRatio;TB.prototype.onEngagementPanelsChanged=TB.prototype.onEngagementPanelsChanged;TB.prototype.onScrubberDataChange=TB.prototype.onScrubberDataChange;TB.prototype.updateShouldHideOverlay=TB.prototype.updateShouldHideOverlay;
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],TB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],TB.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.jp.YtdGuideStateAwareBehavior),_.P("design:type",Object)],TB.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],TB.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Number)],TB.prototype,"index",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],TB.prototype,"isActive",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],TB.prototype,"isHiddenInDom",void 0);_.N([_.e(),_.P("design:type",Object)],TB.prototype,"isPlayerPaused",void 0);_.N([_.e({selector:cZo}),_.P("design:type",Object)],TB.prototype,"isPlayerStarted",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],TB.prototype,"showPlayerControls",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],TB.prototype,"showScrubber",void 0);_.N([_.e(),_.P("design:type",Object)],TB.prototype,"autoHideJobId",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],TB.prototype,"overlayType",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],TB.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],TB.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],TB.prototype,"watchWhileEngagementPanels",void 0);_.N([_.e(),_.P("design:type",Object)],TB.prototype,"panelData",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],TB.prototype,"isWatchWhileMode",void 0);_.N([_.e(),_.P("design:type",String)],TB.prototype,"activeWatchWhilePanel",void 0);_.N([_.e(),_.P("design:type",Object)],TB.prototype,"hasError",void 0);_.N([_.e(),_.P("design:type",Object)],TB.prototype,"panelShowDelayMs",void 0);
_.N([_.e(),_.P("design:type",Object)],TB.prototype,"scrubberComponent",void 0);_.N([_.e({selector:_.IF,reflectToAttribute:!0}),_.P("design:type",Object)],TB.prototype,"isFullscreen",void 0);_.N([_.e(),_.P("design:type",Object)],TB.prototype,"shouldHideOverlay",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],TB.prototype,"enableAnchoredPanel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],TB.prototype,"enablePersistentAnchoredPanel",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],TB.prototype,"hideWatchWhilePanel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],TB.prototype,"useAspectRatio",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],TB.prototype,"enableShortsModernControls",void 0);_.N([_.e({selector:_.kL0,reflectToAttribute:!0}),_.P("design:type",Object)],TB.prototype,"isPersistentPanelActive",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],TB.prototype,"anchoredPanelActive",void 0);_.N([_.e({selector:_.gX,reflectToAttribute:!0}),_.P("design:type",Object)],TB.prototype,"isShortsPipActive",void 0);_.N([_.e({selector:STt,reflectToAttribute:!0}),_.P("design:type",Object)],TB.prototype,"smallScreenSqueezeback",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("data.adsOverlay"),_.P("design:type",Object),_.P("design:paramtypes",[])],TB.prototype,"isAdsOverlay",null);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],TB.prototype,"enableFlexibleOverlay",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],TB.prototype,"overlayDensity",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],TB.prototype,"extractOverlay",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],TB.prototype,"extractActionBar",void 0);_.N([_.e(),_.P("design:type",Function)],TB.prototype,"onOverlayDensityChanged",void 0);
_.N([_.e(),_.Z("isActive","hasError","isPlayerStarted"),_.P("design:type",Object),_.P("design:paramtypes",[])],TB.prototype,"shouldRenderPlayerElements",null);_.N([_.e(),_.Z("isActive","isWatchWhileMode"),_.P("design:type",Object),_.P("design:paramtypes",[])],TB.prototype,"watchWhileOrPersistentActive",null);_.N([_.GI("isActive","hasError","showingExpandedOverlay"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],TB.prototype,"updateShouldHideOverlay",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("isActive","isPlayerStarted","data"),_.P("design:type",Object),_.P("design:paramtypes",[])],TB.prototype,"shouldRenderScrubber",null);_.N([_.GI("shouldRenderScrubber"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],TB.prototype,"onScrubberDataChange",null);_.N([_.Z("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],TB.prototype,"overlayComponent",null);
_.N([_.GI("watchWhileEngagementPanels"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],TB.prototype,"onEngagementPanelsChanged",null);_.N([_.Nl("#player-container"),_.P("design:type",HTMLElement)],TB.prototype,"playerContainer",void 0);_.N([_.Nl("#cinematic-container"),_.P("design:type",HTMLElement)],TB.prototype,"cinematicContainer",void 0);
_.N([_.GI("isPersistentPanelActive","data.thumbnail"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],TB.prototype,"maybeLogNonDefaultAspectRatio",null);_.N([_.GI("isPersistentPanelActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],TB.prototype,"calculateOverlayDensity",null);
_.N([_.GI("overlayDensity","extractOverlay","extractActionBar"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],TB.prototype,"onOverlayDensityChange",null);_.N([_.Ul({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],TB);
_.G(TB,"ytd-reel-video-renderer",function(){if(Uu7!==void 0)return Uu7;var t=document.createElement("template");_.J(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div id="video-filtering-overlay-container" class="style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls data="[[data.reelPlayerOverlayRenderer.menu.menuRenderer]]" disable-upgrade="[[!isActive]]" is-ads-overlay="[[isAdsOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Uu7=t},{mode:_.hX("kevlar_poly_si_batch_j028")?1:2});var oP=function(){var t=_.z.apply(this,arguments)||this;t.isPreviousPageShorts=!1;t.index=0;t.delayedActiveIndex=0;t.playablePreviousIndex=null;t.isPlayerPaused=!1;t.isPlayerStarted=!1;t.intersectionObserverThreshold=.6;t.fitToVisibleBounds=!1;t.pageSubtype="shorts";t.enablePreviousContinuation=_.r("shorts_in_playlists_web");t.shortsPipEnabled=_.r("web_shorts_pip");t.isDark=document.documentElement.hasAttribute("dark");t.shortsViewTransitions=_.r("web_shorts_view_transitions");t.isFullscreen=!1;t.isShortsPipActive=
!1;t.buttonOverride={iconPosition:"icon-only",size:"XL"};t.anchoredPanelActive=!1;t.isActive=!1;t.smallScreenPersistentPanel=!1;t.isPersistentPanelActive=!1;t.smallScreenSqueezeBack=!1;t.enableScrollIntoViewCenter=_.r("web_scroll_into_view_center");t.enableFlexibleOverlay=_.r("web_enable_flexible_overlay");t.extractOverlay=!1;t.useAspectRatio=_.r("web_use_aspect_ratio");t.enableShortsSequenceRefactorUnify=_.r("web_enable_shorts_sequence_refactor_unify");t.continuationRequestPending=!1;t.carouselContainers=
[];t.isShortsInitialized=!1;t.shortsContentList=[];t.hasDataUpdated=!1;t.playerInPosition=!1;t.hidePreviousButtonImmediately=!1;t.showPreviousButtonImmediately=!1;t.endOfNextContinuation=!1;t.currentPlayerIndex=0;t.nextReelVe=_.h8(56921);t.prevReelVe=_.h8(56922);t.loopToggleOffVe=_.h8(198013);t.loopToggleOnVe=_.h8(198014);t.ambientModeToggleVe=_.h8(227860);t.reelPlayerPausedStateRendererVe=_.h8(141313);t.storedPlaybackSpeed=null;t.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"};t.onOverlayDensityChanged=function(E,p,U,x){E=t.getActiveReelVideo(E);t.extractOverlay=!!U;E==null||E.setAttribute("overlay-density",String(p));U===void 0||E!=null&&E.toggleAttribute("extract-overlay",U);x===void 0||E!=null&&E.toggleAttribute("extract-action-bar",x)};
return t};
_.u(oP,_.z);_.Y=oP.prototype;_.Y.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.Y.setShortsContentList=function(){var t=this;if(this.enableShortsSequenceRefactorUnify){var E=this.shortsContentList&&this.reelWatchSequenceResponse?[].concat(_.KB(this.shortsContentList)):[],p=this.firstShortsData;if(p){var U=this.reelWatchSequenceResponse;(p=this.shortsController==null?void 0:SHL(E,p,U!=null?U:null))&&p.newContentList&&(p=p.newContentList,p.length!==E.length&&(this.shortsContentList=p,_.XE(this,function(){t.observeShorts()})))}}};
_.Y.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.Y.onResize=function(){var t=_.QM(),E=t.dispatch,p=this.calculateIsSmallWidth();E.call(t,_.Jj({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:p}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.Y.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:_.r("web_enable_shorts_no_idle_job")?8:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:_.r("web_enable_shorts_no_idle_job")?8:0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:_.r("web_enable_shorts_no_idle_job")?8:0}}};
_.Y.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var t=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,E=t,p=0;t<250&&(E=t+this.shortsInnerContainer.clientWidth,p=24);_.eU(this.hostElement,{"--ytd-shorts-header-width":E+"px","--ytd-shorts-top-spacing":p+"px"})}};
_.Y.isFirstShorts=function(t){return t&&!this.enableShortsSequenceRefactorUnify?this.index===-t.length:this.index===0};
_.Y.isActiveReel=function(t,E,p){p&&(E=this.calculatePrevIndex(E,p));return t===E};
_.Y.onFullscreenChange=function(){_.r("web_fullscreen_shorts")&&(this.scrollToVideoThrottle.fire(this.activeIndex,"instant"),this.isFullscreen&&this.isShortsPipActive&&_.X3().resolve(_.bf).close(!0))};
_.Y.engagementPanelsChanged=function(){var t;this.watchWhileEngagementPanels=(t=this.data)==null?void 0:t.engagementPanels};
_.Y.unregisterPanels=function(){var t=_.X3().resolve(_.mp);if(this.watchWhileEngagementPanels)for(var E=_.M(this.watchWhileEngagementPanels),p=E.next();!p.done;p=E.next()){var U=p.value,x=void 0,A=void 0;p=(x=U.engagementPanelSectionListRenderer)==null?void 0:(A=x.identifier)==null?void 0:A.tag;U=this.getPanelIdentifier(U.engagementPanelSectionListRenderer);t&&(p&&t.panelMap.delete(p),U&&_.r("web_shorts_panel_caching_bugfix")&&(x=p=void 0,(x=(p=t).unregisterPanelContent)==null||x.call(p,U)))}};
_.Y.isVideoContent=function(t){return this.isVideoContentCommand(t==null?void 0:t.command)};
_.Y.getActiveReelVideo=function(t){return _.ZN(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+t+'"]')};
_.Y.calculatePrevIndex=function(t,E){return E?t-((E==null?void 0:E.length)||0):-1};
_.Y.onKeydown=function(t){var E=_.Vx(t)||[];if(!uY8(E))if(t.code==="ArrowUp")t.preventDefault(),this.handlePrevButtonClick();else if(t.code==="ArrowDown")t.preventDefault(),this.handleNextButtonClick();else if(t.code==="KeyM")this.toggleMuteUnmuteVideo();else if(t.code==="KeyK"||t.code==="Space")this.togglePlayPauseVideo();else if((t.code==="KeyA"||t.code==="ArrowLeft")&&_.r("web_shorts_keyboard_enable_seek_shortcuts")){var p;(p=this.player)==null||p.seekBy(-5)}else if((t.code==="KeyD"||t.code===
"ArrowRight")&&_.r("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var U;(U=this.player)==null||U.seekBy(5)}};
_.Y.onServiceRequestCompleted=function(t,E){t=E.data;if(this.enableShortsSequenceRefactorUnify){if(this.continuationRequestPending=!1,t.continuationEndpoint||t.prevContinuationEndpoint)this.reelWatchSequenceResponse=t}else t.continuationEndpoint&&t.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:t.entries,continuationEndpoint:t.continuationEndpoint}}),this.cachedReelWatchSequenceResponse=t):t.prevContinuationEndpoint&&
t.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:t.prevEntries,prevContinuationEndpoint:t.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.Y.handleEngagementPanelVisibilityChanged=function(t,E){var p=_.X3().resolve(_.mp);if(t&&p){var U=this.getPanelIdentifier(t);if(E==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==U){p.hidePanel({identifier:this.activePanel});var x;this.activePanel=((x=t.identifier)==null?void 0:x.tag)||t.panelIdentifier}else this.isPersistentPanelActive=!0,_.QM().dispatch(yY9(!0)),this.anchoredPanelActive=!0,this.activePanel=U;else E==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===U&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.QM().dispatch(yY9(!1)))}};
_.Y.handlePanelScrimClick=function(){var t=_.X3().resolve(_.mp);this.activePanel&&(t.hidePanel({identifier:this.activePanel}),_.QM().dispatch(yY9(!1)))};
_.Y.getShortsLoopSetting=function(){var t,E,p,U,x;return _.q(function(A){switch(A.nextAddress){case 1:return _.r("kevlar_shorts_auto_advance")?A.yield(_.mP.getInstance(),2):A.return(!0);case 2:return(t=A.yieldResult)?A.yield(t.get("sfvles"),3):A.return(!0);case 3:return p=(E=A.yieldResult)!=null?E:!1,A.yield(t.get("sfvle"),4);case 4:return x=(U=A.yieldResult)!=null?U:!0,p?A.return(x):A.return(!0)}})};
_.Y.handleSignalActionToggleLoopShortsOff=function(){var t=this,E,p,U;return _.q(function(x){switch(x.nextAddress){case 1:if(!t.player)return x.return();t.player.setLoopVideo(!1);E=_.Pu();_.WH(E,t.loopToggleOffVe);return x.yield(_.mP.getInstance(),2);case 2:return(p=x.yieldResult)?x.yield(p.set("sfvle",!1),3):x.return();case 3:return x.yield(p.set("sfvles",!0),4);case 4:U=_.nF(),_.N_(0,203,!1),_.N_(0,204,!0),U.save(),_.Do(x)}})};
_.Y.handleSignalActionToggleLoopShortsOn=function(){var t=this,E,p,U;return _.q(function(x){switch(x.nextAddress){case 1:if(!t.player)return x.return();t.player.setLoopVideo(!0);E=_.Pu();_.WH(E,t.loopToggleOnVe);return x.yield(_.mP.getInstance(),2);case 2:return(p=x.yieldResult)?x.yield(p.set("sfvle",!0),3):x.return();case 3:return x.yield(p.set("sfvles",!0),4);case 4:U=_.nF(),_.N_(0,203,!0),_.N_(0,204,!0),U.save(),_.Do(x)}})};
_.Y.handleSignalActionToggleCinematicShortsOn=function(){qFL(!0);var t;(t=this.JSC$22048_cinematicController)==null||Aq9(t,!0);_.WH(_.Pu(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.Y.handleSignalActionToggleCinematicShortsOff=function(){qFL(!1);var t;(t=this.JSC$22048_cinematicController)==null||Aq9(t,!1);_.WH(_.Pu(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.Y.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.Y.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.Y.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var t=this.overlayContainer.querySelector("#experiment-overlay");t&&_.ir.addLowPriorityJob(function(){t.style.display="unset"},100)}else if(this.overlayContainer){var E;
((E=this.playerElement.getPlayer())==null?void 0:E.getPlayerState())===-1&&this.movePlayerToVideo(this.index)}};
_.Y.getCurrentShort=function(){if(this.currentEndpoint){var t=this.currentEndpoint;if(this.isNonVideoContentCommand(t)){var E=_.k(t,_.fz);return{reelNonVideoContentRenderer:_.k(E==null?void 0:E.renderer,_.wc),command:t}}if(this.data){var p;E=(p=_.k(this.currentEndpoint,_.DK))==null?void 0:p.thumbnail;var U;p=(U=this.data.overlay)==null?void 0:U.reelPlayerOverlayRenderer;_.X3().resolve(_.$V);t=this.data;var x,A;U=(x=t.overlay)==null?void 0:(A=x.shortsAdsRenderer)==null?void 0:A.adSlots;if(U!==void 0)U.length===
0?(_.HY("Shorts ads returned no ad slots."),t=void 0):(U.length>1&&_.HY("Shorts ads has more than one ad slots."),t=_.k(U[0],_.z_s));else{var m,b;t=_.k((m=t.overlay)==null?void 0:(b=m.shortsAdsRenderer)==null?void 0:b.overlay,_.z_s)}m=t;t=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.k(this.currentEndpoint,_.DK),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var f;return{reelPlayerOverlayRenderer:p,thumbnail:E,command:t,adsOverlay:m,
videoId:(f=_.k(this.currentEndpoint,_.DK))==null?void 0:f.videoId}}}};
_.Y.created=function(){var t=this;this.scrollToVideoThrottle=new _.F5(function(E,p){p=p===void 0?"smooth":p;var U;(U=t.getActiveReelVideo(E))==null||U.scrollIntoView({behavior:p,block:"nearest",inline:t.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.shortsController=_.X3().resolve(_.$V);this.maybeCreateIntersectionObserver()};
_.Y.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.Y.attached=function(){var t=this;_.X3().resolve(_.$V).registerRootElement(this);this.pageScrollElement=_.ZN(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.zI(this,this.processResetAction));_.r("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){t.maybeCreateIntersectionObserver();t.scrollToVideoThrottle.fire(t.activeIndex,"instant");t.shortsContainer.style.overflowY=
"scroll"}))};
_.Y.calculateSqueezebackPanelSize=function(){var t=this,E=window.innerWidth-456-(window.innerHeight-106)*.5625;_.ir.addLowPriorityJob(function(){E<360?(t.hostElement.style.setProperty("--anchored-panel-width","480px"),_.QM().dispatch(S4t(!0))):(t.hostElement.style.setProperty("--anchored-panel-width",Math.min(E,480)+"px"),_.QM().dispatch(S4t(!1)))})};
_.Y.detached=function(){var t=_.X3().resolve(_.$V);t.rootElement=void 0;var E;(E=t.unsubscribeFromStore)==null||E.call(t);t.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.zI(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.Y.onResizeFinished=function(t,E){var p=this,U=new ResizeObserver(function(){p.shortsContainer.style.overflowY="hidden";_.ir.addLowPriorityJob(function(){E()},100)});
U.observe(t);return U};
_.Y.resetDocumentScrollTop=function(){var t,E;if((t=document)==null?0:(E=t.scrollingElement)==null?0:E.scrollTop)document.scrollingElement.scrollTop=0};
_.Y.loadPage_=function(t){var E=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),t){var p;if((p=_.k(this.currentEndpoint,_.DK))==null?0:p.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=t;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){E.isPlayerStarted&&
(E.handleOnPlaybackCommand(),E.afterPlayerStarted=function(){})};
this.registerPanel(t)}};
_.Y.afterPlayerStarted=function(){};
_.Y.handleOnPlaybackCommand=function(){if(_.r("web_shorts_comment_stickers")&&this.isPlayerStarted){var t,E=(t=_.k(this.currentEndpoint,_.DK))==null?void 0:t.onPlaybackCommand;E&&this.ytComponentBehavior.resolveCommand(E)}};
_.Y.maybeCreateIntersectionObserver=function(){var t=this,E=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==E){this.intersectionObserverThreshold=E;var p={rootMargin:"0px",threshold:E},U;(U=this.intersectionObserver)==null||U.disconnect();this.intersectionObserver=new IntersectionObserver(function(x){x=_.M(x);for(var A=x.next();!A.done;A=x.next())if(A=A.value,A.intersectionRatio>E){A=Number(A.target.id);if(isNaN(A))break;if(A===t.index)break;
_.y1O();t.loadVideo(A);_.tj("r_vtc")}},p);
this.enableShortsSequenceRefactorUnify||this.observeShorts()}};
_.Y.observeShorts=function(){var t,E,p,U=this.enableShortsSequenceRefactorUnify?((t=this.shortsContentList)==null?void 0:t.length)||0:(((E=this.shortsProcessedPrevSequence)==null?void 0:E.length)||0)+(((p=this.shortsProcessedSequence)==null?void 0:p.length)||0);if(this.carouselContainers.length<U&&(this.carouselContainers=[].concat(_.KB(_.ZN(this.hostElement).querySelectorAll(".reel-video-in-sequence-new"))),this.enableShortsSequenceRefactorUnify))for(t=_.M(this.carouselContainers),E=t.next();!E.done;E=
t.next())E=E.value,p=void 0,(p=this.intersectionObserver)==null||p.observe(E);if(!this.enableShortsSequenceRefactorUnify)for(t=_.M(this.carouselContainers),E=t.next();!E.done;E=t.next())E=E.value,p=void 0,(p=this.intersectionObserver)==null||p.observe(E)};
_.Y.initCsi=function(){TkC("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var t={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"}},E,p;if((E=this.playerData)==null?0:(p=E.cacheMetadata)==null?0:p.isCacheHit)t.isCacheHit=!0;var U;if(E=(U=_.k(this.currentEndpoint,_.DK))==null?void 0:
U.prefetchTaskId)t.prefetchInfo={taskId:E};_.KF(t)};
_.Y.isAd=function(){var t,E;return!!((t=_.k(this.currentEndpoint,_.DK))==null?0:(E=t.adClientParams)==null?0:E.isAd)};
_.Y.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.Y.getPlayerContainer=function(){var t;return(t=_.ZN(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:t.playerContainer};
_.Y.onPlayerStateChange=function(t){var E=this;this.isPlayerPaused=t===2;t!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?t===1&&this.index===0&&(this.isPlayerStarted||_.QM().dispatch(cYL(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.QM().dispatch(cYL(!0)));this.player&&!this.player.getLoopVideo()&&_.ir.addLowPriorityJob(function(){E.getShortsLoopSetting().then(function(p){var U;(U=E.player)==null||U.setLoopVideo(p)})});
this.isPlayerPaused&&_.r("web_shorts_paused_state_logging")&&_.bU(_.yL(),[this.reelPlayerPausedStateRendererVe])};
_.Y.isShortPlayable=function(){if(_.r("kevlar_playable_short_killswitch"))return!0;var t;return(t=this.playerData)!=null&&t.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.Y.setNormalPlaybackSpeed=function(){var t=this,E,p;return _.q(function(U){if(U.nextAddress==1)return U.yield(t.getPlayer().getPlayerPromise(),2);E=U.yieldResult;p=E.getPlaybackRate();p!==1&&(t.storedPlaybackSpeed=p,E.setPlaybackRate(1));_.Do(U)})};
_.Y.restorePlaybackSpeed=function(){var t=this,E;return _.q(function(p){if(p.nextAddress==1)return t.storedPlaybackSpeed===null?p.jumpTo(0):p.yield(t.getPlayer().getPlayerPromise(),3);E=p.yieldResult;E.setPlaybackRate(t.storedPlaybackSpeed);t.storedPlaybackSpeed=null;_.Do(p)})};
_.Y.playerDataChanged=function(){var t=this,E,p,U,x,A,m,b,f,B;return _.q(function(R){if(R.nextAddress==1){E=t.getPlayer();t.enableShortsSequenceRefactorUnify||(p=t.intersectionObserver)==null||p.disconnect();if(t.playerData){if(((U=t.playerData.videoDetails)==null?void 0:U.videoId)!==((x=E.getPlayer())==null?void 0:x.getVideoData().video_id)){A={};if(m=_.k(t.currentEndpoint,_.DK))A.watch_endpoint=m,m.endTimeSeconds&&(A.end=m.endTimeSeconds);E.loadVideoWithPlayerResponse(t.playerData,A)}}else return R.return();
return t.player?R.jumpTo(2):R.yield(E.getPlayerPromise(),3)}R.nextAddress!=2&&(t.player=R.yieldResult,t.JSC$22048_playerStateChangeListener=t.onPlayerStateChange.bind(t),t.player.addEventListener("onStateChange",t.JSC$22048_playerStateChangeListener),_.r("kevlar_client_enable_shorts_player_bootstrap")&&_.qM(),t.scrollToVideoThrottle.fire(t.index),t.movePlayerToVideo(t.index),_.ir.addLowPriorityJob(function(){t.getShortsLoopSetting().then(function(V){var Q;(Q=t.player)==null||Q.setLoopVideo(V)})}),
_.E4X.resolve(t.player),t.player.syncVolume(),t.getPlayer().focusOnPlayer());
_.ir.addLowPriorityJob(function(){t.observeShorts()},100);
b=t.player.getPlayerState(t.player.getPresentingPlayerType());b!==1||t.isPlayerStarted||_.QM().dispatch(cYL(!0));t.updateBackNavContainerWidth();f=_.k(t.currentEndpoint,_.DK);((B=f)==null?0:B.startTimeSeconds)&&t.player.seekTo(f.startTimeSeconds);if(t.JSC$22048_cinematicController||t.cinematicsInitializeJobId)return R.return();t.cinematicsInitializeJobId=_.ir.addLowPriorityJob(function(){t.initCinematicController();t.cinematicsInitializeJobId=void 0});
_.Do(R)})};
_.Y.onShortUndoDismiss=function(){var t=this,E=vit().pop();E!==void 0&&(_.XE(this,function(){t.showCardWithIndex(E)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.Y.onShortsDismiss=function(t){if(t=t.detail.reelDismissalActionRenderer)(t=_.k(t.onDismissalCompletionRenderer,IC7))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:t}}}),this.scrollAndDismissCard()};
_.Y.processReelNonVideoContentDismissalCommand=function(t){var E=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);t=_.k(t,DSL);this.activeDimissalTimeout=setTimeout(function(){E.scrollAndDismissCard()},Number(t==null?void 0:t.delayMs))};
_.Y.scrollAndDismissCard=function(){var t=this,E=this.index;vit().push(E);_.XE(this,function(){var p=t.getPlayableNextIndex();p!==null&&(t.hideCardWithIndex(E),t.scrollToVideoThrottle.fire(p))})};
_.Y.hideCardWithIndex=function(t){if(t=this.getActiveReelVideo(t))t.hidden=!0};
_.Y.showCardWithIndex=function(t){if(t=this.getActiveReelVideo(t))t.hidden=!1};
_.Y.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.Y.activeChanged=function(t){_.QM().dispatch(_.Jj({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:t}}));if(t)document.addEventListener("keydown",_.zI(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var E;(E=this.player)==null||E.sendAbandonmentPing()}var p;(p=this.player)==null||p.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.zI(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.Y.graftClientVisualElements=function(){if(this.data){var t=_.Pu();_.yu3(t,_.gu({response:this.reelWatchSequenceResponse}));_.Tw(t,this.nextReelVe);_.Tw(t,this.prevReelVe);_.r("kevlar_shorts_auto_advance")&&(_.Tw(t,this.loopToggleOffVe),_.Tw(t,this.loopToggleOnVe));_.Tw(t,this.ambientModeToggleVe);_.bU(_.yL(),[this.nextReelVe,this.prevReelVe]);_.r("web_shorts_paused_state_logging")&&_.Tw(t,this.reelPlayerPausedStateRendererVe)}};
_.Y.graftNvcRenderer=function(){var t,E,p,U,x,A,m=this.enableShortsSequenceRefactorUnify?(t=this.shortsContentList)==null?void 0:(E=t[this.index])==null?void 0:E.command:this.index<0?(p=this.shortsProcessedPrevSequence)==null?void 0:(U=p[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:U.command:(x=this.shortsProcessedSequence)==null?void 0:(A=x[this.index])==null?void 0:A.command;if(m&&this.isNonVideoContentCommand(m)){t=_.k(m,_.fz);var b,f;(t=(b=_.k(t==null?void 0:t.renderer,_.wc))==
null?void 0:(f=b.loggingDirectives)==null?void 0:f.trackingParams)&&_.Pu().graftServerVe(t)}};
_.Y.setActiveIndex=function(){_.X3().resolve(_.$V).setActiveIndex(this.index)};
_.Y.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.Y.lazyUpdateMiniplayerData=function(){var t=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.ir.addLowPriorityJob(function(){t.updateMiniplayerData();t.updateMiniplayerDataJobId=void 0}))};
_.Y.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.ir.cancelJob(this.updateMiniplayerDataJobId)};
_.Y.updateMiniplayerData=function(){var t,E,p,U=_.X3().resolve(_.bf),x={shortsData:this.getCurrentShort(),previousButtonDisabled:!((t=this.prevButtonData)==null||!t.isDisabled),nextButtonDisabled:!((E=this.nextButtonData)==null||!E.isDisabled),playabilityStatus:(p=this.playerData)==null?void 0:p.playabilityStatus};_.oX(U,x)};
_.Y.resetPlayerLocation=function(){var t=this.getPlayer();this.initialPlayerContainer&&t.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.Y.movePlayerToVideo=function(t,E){var p=this;E=E===void 0?!0:E;var U=this.getActiveReelVideo(t),x=this.getPlayer();if(U){this.overlayContainer?U.appendChild(this.overlayContainer):(this.overlayContainer=_.ZN(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,U.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||x.appendTo(this.overlayContainer.playerContainer,void 0,!0));var A;(A=this.player)==null||A.setSize(NaN,NaN);this.isActive||_.ir.addJob(function(){p.isActive=
!0},_.r("web_enable_shorts_no_idle_job")?1:0);
x.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.r("reels_web_disable_rtr_tick")||_.r("reels_web_use_pbs_first_shorts")&&t===0||_.SR("r_tr");this.currentPlayerIndex=t;U.appendChild(this.errorScreenContainer);var m;(m=this.JSC$22048_cinematicController)==null||b2d(m)}else E?_.ir.addLowPriorityJob(function(){p.movePlayerToVideo(p.index,!1)}):Math.random()<=_.z3("web_shorts_error_logging_threshold")&&_.iV(new _.cC("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:E,
index:t}))};
_.Y.getAspectRatio=function(t){return(t==null?0:t.thumbnail)&&d_b(t.thumbnail)?"--ytd-shorts-player-ratio: "+d_b(t.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.Y.getBackgroundImage=function(t){if(t!=null&&t.thumbnail)return(t=_.uz(t.thumbnail.thumbnails))?'background-image:url("'+t+'");':"background-color:black;"};
_.Y.getBackgroundImageUrl=function(t){if(t!=null&&t.thumbnail)return _.uz(t.thumbnail.thumbnails)};
_.Y.onPersistentPanelActiveChanged=function(){var t=this.getCurrentShort();if(t&&(t==null?0:t.thumbnail)&&d_b(t.thumbnail)!==.5625){var E;(E=this.player)==null||E.setSize(NaN,NaN)}};
_.Y.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.Y.moveCinematicsToVideo=function(){var t=_.ZN(this.hostElement).querySelector("ytd-reel-video-renderer");(t==null?0:t.cinematicContainer)&&t.cinematicContainer!==this.shortsCinematicContainer.parentElement&&t.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.Y.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.Y.updatePrevButtonData=function(){var t=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);t?this.prevButtonData=t=Object.assign({},t,{accessibility:{label:_.zF("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},tooltip:this.isUpArrowHidden?"":_.zF("PREVIOUS_VIDEO_LABEL")}):this.prevButtonData&&(this.prevButtonData=t=Object.assign({},this.prevButtonData,{isDisabled:!1}))};
_.Y.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.Y.updateNextButtonData=function(){var t=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);t&&(this.nextButtonData=t=Object.assign({},t,{accessibility:{label:_.zF("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},tooltip:_.zF("NEXT_VIDEO_LABEL")||""}))};
_.Y.getPlayablePreviousIndex=function(){for(var t,E=this.index-1;E>=-(((t=this.prevShortsSequence)==null?void 0:t.length)||0);E--)if(!vit().includes(E))return E;return null};
_.Y.getIndexInSequence=function(t,E){return t.findIndex(function(p){var U;return((U=_.k(p.command,_.DK))==null?void 0:U.videoId)===E})};
_.Y.handlePrevButtonClick=function(t){var E=this,p,U;return _.q(function(x){p=E.getPlayablePreviousIndex();if(p===null)return x.return();E.gestureType=((U=t)==null?void 0:U.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";p===0&&(E.hidePreviousButtonImmediately=!0);if(E.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){E.scrollToVideoThrottle.fire(p,"auto")}),x.return();
E.scrollToVideoThrottle.fire(p);_.Do(x)})};
_.Y.getPlayableNextIndex=function(){for(var t,E,p=this.index+1;p<(this.enableShortsSequenceRefactorUnify?(t=this.shortsContentList)==null?void 0:t.length:((E=this.shortsProcessedSequence)==null?void 0:E.length)||0);p++)if(!vit().includes(p))return p;return null};
_.Y.handleNextButtonClick=function(t,E){var p=this,U,x;return _.q(function(A){U=p.getPlayableNextIndex();if(U===null)return A.return();U===1&&(p.showPreviousButtonImmediately=!0);p.gestureType=((x=t)==null?void 0:x.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";E&&(p.gestureType=E);if(p.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){p.scrollToVideoThrottle.fire(U,"auto")}),A.return();
p.scrollToVideoThrottle.fire(U);_.Do(A)})};
_.Y.handleReelNavigateCommand=function(t,E,p){(t=_.k(t,Not))&&E&&t.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(p)};
_.Y.loadVideo=function(t,E){var p=this;E=E===void 0?!1:E;if(t!==this.currentPlayerIndex){_.QM().dispatch(cYL(!1));if(this.isAd()&&!E){var U;(U=this.player)==null||U.notifyShortsAdSwipeEvent()}var x;(x=this.JSC$22048_cinematicController)==null||mt8(x);var A;(A=this.JSC$22048_cinematicController)==null||M09(A);U=t>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(U));this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=
!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var m,b,f,B,R,V;E=this.enableShortsSequenceRefactorUnify?(m=this.shortsContentList)==null?void 0:(b=m[t])==null?void 0:b.command:t<0?(f=this.shortsProcessedPrevSequence)==null?void 0:(B=f[this.shortsProcessedPrevSequence.length+t])==null?void 0:B.command:(R=this.shortsProcessedSequence)==null?void 0:(V=R[t])==null?void 0:V.command;this.index=t;this.gestureType||(this.gestureType=U?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");E&&this.isVideoContentCommand(E)&&(this.ytComponentBehavior.resolveCommand(E,{form:{createScreenConfig:{clickedVisualElement:U?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(E&&this.isNonVideoContentCommand(E)){this.currentEndpoint=E;this.data=void 0;m=_.Pu();b=_.k(E,_.fz);var Q,C;(b=(Q=_.k(b==null?void 0:b.renderer,_.wc))==null?void 0:(C=Q.screenLoggingData)==null?void 0:C.screenVeType)&&_.PH(m,b);
this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(Q=this.getActiveReelVideo(t))&&Q.appendChild(this.overlayContainer)}var d,I;Q=this.enableShortsSequenceRefactorUnify?((d=this.shortsContentList)==null?NaN:d.length)-3<=t:((I=this.reelWatchSequenceResponse)==null?void 0:I.entries)&&t===this.reelWatchSequenceResponse.entries.length-1;var O;if(((O=this.reelWatchSequenceResponse)==null?0:O.continuationEndpoint)&&Q){var a,F,L={contentPlaybackContext:_.hN({},(F=_.k((a=
this.currentEndpoint)==null?void 0:a.commandMetadata,_.hZ))==null?void 0:F.url,window.location.href)};this.enableShortsSequenceRefactorUnify?this.continuationRequestPending||(_.ir.addJob(function(){p.ytComponentBehavior.resolveCommand(p.reelWatchSequenceResponse.continuationEndpoint,{form:L})},8),this.continuationRequestPending=!0):this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:L})}var D,W;
t=this.enableShortsSequenceRefactorUnify?!1:t===-(((D=this.reelWatchSequenceResponse)==null?void 0:(W=D.prevEntries)==null?void 0:W.length)||0);var K,v;((K=this.reelWatchSequenceResponse)==null?0:K.prevContinuationEndpoint)&&((v=this.reelWatchSequenceResponse)==null?0:v.prevEntries)&&t&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.Y.setMiniplayerPreview=function(t){t=(t===void 0?0:t)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var E,p,U,x,A=_.X3().resolve(_.bf),m={shortsData:void 0,shortsPreviewThumbnail:t?this.enableShortsSequenceRefactorUnify?(E=this.shortsContentList)==null?void 0:(p=E[t])==null?void 0:p.thumbnail:(U=this.shortsProcessedSequence)==null?void 0:(x=U[t])==null?void 0:x.thumbnail:void 0};_.oX(A,m)};
_.Y.updateTitle=function(t){var E,p;t=(t==null?0:t.adSlots)?"":(p=t==null?void 0:(E=t.videoDetails)==null?void 0:E.title)!=null?p:"";_.kT(this.hostElement,"yt-update-title",t)};
_.Y.registerPanel=function(t){var E=_.X3().resolve(_.mp);if(E){t=_.M(t.engagementPanels||[]);for(var p=t.next();!p.done;p=t.next()){p=p.value;var U=this.getPanelIdentifier(p.engagementPanelSectionListRenderer),x=void 0,A=void 0;(A=(x=E).registerPanelContent)==null||A.call(x,U,p)}}};
_.Y.getPanelIdentifier=function(t){var E;return(t==null?void 0:(E=t.identifier)==null?void 0:E.tag)||(t==null?void 0:t.panelIdentifier)||(t==null?void 0:t.targetId)};
_.Y.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.firstShortsData=this.reelWatchSequenceResponse=this.data=void 0;this.shortsContentList=[];this.currentEndpoint=void 0;this.continuationRequestPending=this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.QM().dispatch(cYL(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.carouselContainers=
[];_.QM().dispatch(yY9(!1));var t;(t=this.shortsController)!=null&&(t.dismissedIndices=[]);var E;(E=this.shortsController)!=null&&E.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.X3().resolve(_.bf).close(!0)};
_.Y.processAppendReelWatchSequenceContinuationEntriesAction=function(t){var E=this,p;(p=this.intersectionObserver)==null||p.disconnect();t=t.appendReelWatchSequenceContinuationEntriesAction;if(t==null?0:t.entries){var U;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.KB(((U=this.reelWatchSequenceResponse)==null?void 0:U.entries)||[]),_.KB(t.entries)),continuationEndpoint:t.continuationEndpoint})}else if(t==null?0:t.prevEntries){var x;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.KB(((x=this.reelWatchSequenceResponse)==null?void 0:x.prevEntries)||[]),_.KB(t.prevEntries)),prevContinuationEndpoint:t.prevContinuationEndpoint});_.ir.addLowPriorityJob(function(){E.movePlayerToVideo(E.index);E.scrollToVideoThrottle.fire(E.index,"instant")})}else return;
_.ir.addLowPriorityJob(function(){E.observeShorts()},100)};
_.Y.processWatchSequence=function(t){var E=this;return t.map(function(p){p=p.command;if(E.isVideoContentCommand(p)){var U=_.k(p,_.DK);return{reelPlayerOverlayRenderer:_.k(U==null?void 0:U.overlay,_.xYX),thumbnail:U.thumbnail,command:p}}return E.isNonVideoContentCommand(p)?(U=_.k(p,_.fz),{reelNonVideoContentRenderer:_.k(U==null?void 0:U.renderer,_.wc),command:p}):{command:p}})};
_.Y.calculateIntersectionObserverThreshold=function(){var t=_.ZN(this.hostElement).querySelector("ytd-reel-video-renderer"),E=1;(t==null?0:t.offsetHeight)&&(t==null?0:t.offsetWidth)&&(E=Math.min(t.offsetHeight,this.shortsContainer.offsetHeight)/t.offsetHeight*(Math.min(t.offsetWidth,this.shortsContainer.offsetWidth)/t.offsetWidth));return Math.round(E*.6*10)/10};
_.Y.isVideoContentCommand=function(t){_.X3().resolve(_.$V);return!!_.k(t,_.DK)};
_.Y.isNonVideoContentCommand=function(t){_.X3().resolve(_.$V);return!!_.k(t,_.fz)};
_.Y.initCinematicController=function(){var t=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22048_cinematicController=new Ti(this.shortsCinematicContainer,this.player);var E,p=_.k((E=this.data)==null?void 0:E.background,hP);YDK(this.JSC$22048_cinematicController,p);Aq9(this.JSC$22048_cinematicController,ibg(p));xtb(this.JSC$22048_cinematicController);_.ir.addLowPriorityJob(function(){t.moveCinematicsToVideo()})}};
_.Y.handleMiniplayerNavigateShorts=function(t){t==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():t==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.Y.handleSignalActionToggleShortsPictureInPicture=function(){if(_.X3().resolve(_.bf).pictureInPictureSupported()){var t=_.X3().resolve(_.$V);if(_.r("web_shorts_pip")){var E=_.X3().resolve(_.bf);t.isShortsPipActive()?E.deactivate():E.isMiniplayerActive()||(_.S3().shortsPipActivation=!0,_.g78(E))}}else(t=this.player)==null||t.togglePictureInPicture()};
_.aE.Object.defineProperties(oP.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.reelWatchSequenceResponse)!=null&&t.prevEntries)return this.processWatchSequence([].concat(_.KB(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(_.KB(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.reelWatchSequenceResponse)!=null&&t.entries&&!this.enableShortsSequenceRefactorUnify)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var t=this;if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var E;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((E=this.shortsProcessedSequence)==null?void 0:E.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var p;E=_.k((p=this.firstShortsData)==null?void 0:p.command,_.DK);if(E==null||!E.videoId)return this.shortsProcessedSequence;p=this.getIndexInSequence(this.shortsSequence,
E.videoId);if(p!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=p,_.ir.addLowPriorityJob(function(){t.scrollToVideoThrottle.fire(t.index,"auto");t.movePlayerToVideo(t.index)}));
return[].concat(_.KB(this.shortsSequence))}this.shortsProcessedPrevSequence||_.D2(_.ir,function(){t.observeShorts()},100);
return[this.firstShortsData].concat(_.KB(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var t=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;t&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(t)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.enableShortsSequenceRefactorUnify){var t;return this.index===((t=this.shortsContentList)==null?NaN:t.length)-1}if(this.endOfNextContinuation){var E,p;return this.index===((E=this.reelWatchSequenceResponse)==null?void 0:(p=E.entries)==null?void 0:p.length)}var U;return!((U=this.reelWatchSequenceResponse)==null?0:U.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var t;(t=this.delayedActiveIndexUpdateDebouncer)==null||t.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return this.isShortPlayable()||((E=_.k((t=this.data)==null?void 0:t.watchStatus,_.fFf))==null?void 0:(p=E.style)==null?void 0:p.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var t=this,E=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),p;if((this.data||E)&&(((p=this.data)==null?0:p.engagementPanels)||this.isAd()||E)){E=!1;this.activePanel="shorts-comments-panel";var U;p=_.M(((U=this.data)==null?void 0:U.engagementPanels)||[]);for(U=p.next();!U.done;U=p.next())if(this.getPanelIdentifier(U.value.engagementPanelSectionListRenderer)===this.activePanel){E=!0;break}if(this.isPersistentPanelActive){var x=
_.X3().resolve(_.mp);_.ir.addJob(function(){x.showPanel({identifier:t.activePanel,target:null})},_.r("web_enable_shorts_no_idle_job")?1:0,100)}var A;
U=[].concat(_.KB(Object.values(((A=this.data)==null?void 0:A.engagementPanels)||{})));A=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);p=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return A===void 0&&p===void 0||(A==null?0:A.isDisabled)||(p==null?void 0:p.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!E?(E=U==null?void 0:U.findIndex(function(m){var b,f;return((b=m.engagementPanelSectionListRenderer)==null?void 0:(f=b.identifier)==null?void 0:f.tag)==="shorts-comments-panel"}),E===-1||E===void 0||U!=null&&U.splice(E,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.zF("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.zF("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:_.zF("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.zF("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(_.KB(Object.values(U||
{})))):U}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var t=this,E,p,U;if((E=this.playerData)==null?0:(p=E.playabilityStatus)==null?0:(U=p.errorScreen)==null?0:U.playerInterstitialRenderer)return _.ir.addLowPriorityJob(function(){t.movePlayerToVideo(t.index)}),this.playerData.playabilityStatus.errorScreen;
var x,A;return((x=this.data)==null?void 0:x.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((A=this.data)==null?0:A.watchStatus)&&_.k(this.data.watchStatus,_.hz0)?(_.ir.addLowPriorityJob(function(){t.movePlayerToVideo(t.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.aE.Object.defineProperties(oP,{template:{configurable:!0,enumerable:!0,get:function(){if(Te5===void 0){var t=document.createElement("template");_.J(t,'\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           <img class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" loading="lazy" src$="[[getBackgroundImageUrl(item)]]" alt="">\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);Te5=t}t=Te5;return t}}});
oP.prototype.onNextButtonDataChange=oP.prototype.onNextButtonDataChange;oP.prototype.onPrevButtonDataChange=oP.prototype.onPrevButtonDataChange;oP.prototype.onPersistentPanelActiveChanged=oP.prototype.onPersistentPanelActiveChanged;oP.prototype.lazyUpdateMiniplayerData=oP.prototype.lazyUpdateMiniplayerData;oP.prototype.onShortsPipActiveChanged=oP.prototype.onShortsPipActiveChanged;oP.prototype.setActiveIndex=oP.prototype.setActiveIndex;oP.prototype.graftNvcRenderer=oP.prototype.graftNvcRenderer;
oP.prototype.graftClientVisualElements=oP.prototype.graftClientVisualElements;oP.prototype.onActiveChanged=oP.prototype.onActiveChanged;oP.prototype.onShortsDismiss=oP.prototype.onShortsDismiss;oP.prototype.onShortUndoDismiss=oP.prototype.onShortUndoDismiss;oP.prototype.playerDataChanged=oP.prototype.playerDataChanged;oP.prototype.afterPlayerStarted=oP.prototype.afterPlayerStarted;oP.prototype.unhideCurrentOverlay=oP.prototype.unhideCurrentOverlay;oP.prototype.onServiceRequestCompleted=oP.prototype.onServiceRequestCompleted;
oP.prototype.engagementPanelsChanged=oP.prototype.engagementPanelsChanged;oP.prototype.onFullscreenChange=oP.prototype.onFullscreenChange;oP.prototype.onResize=oP.prototype.onResize;oP.prototype.setShortsContentList=oP.prototype.setShortsContentList;oP.prototype.setFirstShortsData=oP.prototype.setFirstShortsData;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],oP.prototype,"ytComponentBehavior",void 0);
_.N([_.g(jz.YtPageBehavior),_.P("design:type",Object)],oP.prototype,"ytPageBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],oP.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.Ev),_.P("design:type",Object)],oP.prototype,"ironResizableBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],oP.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Rl),_.P("design:type",Object)],oP.prototype,"ytdDismissibleItemBehavior",void 0);
_.N([_.g(_.jp.YtdGuideStateAwareBehavior),_.P("design:type",Object)],oP.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],oP.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],oP.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],oP.prototype,"playerData",void 0);_.N([_.e(),_.P("design:type",Object)],oP.prototype,"reelWatchSequenceResponse",void 0);
_.N([_.e(),_.P("design:type",Object)],oP.prototype,"cachedReelWatchSequenceResponse",void 0);_.N([_.e(),_.P("design:type",Object)],oP.prototype,"currentEndpoint",void 0);_.N([_.e(),_.P("design:type",Object)],oP.prototype,"nextButtonData",void 0);_.N([_.e(),_.P("design:type",Object)],oP.prototype,"prevButtonData",void 0);_.N([_.e(),_.P("design:type",Object)],oP.prototype,"isPreviousPageShorts",void 0);_.N([_.e(),_.P("design:type",Object)],oP.prototype,"index",void 0);
_.N([_.e(),_.P("design:type",Object)],oP.prototype,"delayedActiveIndex",void 0);_.N([_.e(),_.P("design:type",Object)],oP.prototype,"playablePreviousIndex",void 0);_.N([_.e(),_.P("design:type",Object)],oP.prototype,"player",void 0);_.N([_.e(),_.P("design:type",Object)],oP.prototype,"isPlayerPaused",void 0);_.N([_.e({selector:cZo}),_.P("design:type",Object)],oP.prototype,"isPlayerStarted",void 0);_.N([_.e(),_.P("design:type",Object)],oP.prototype,"intersectionObserver",void 0);
_.N([_.e(),_.P("design:type",Number)],oP.prototype,"cinematicsInitializeJobId",void 0);_.N([_.e(),_.P("design:type",Number)],oP.prototype,"updateMiniplayerDataJobId",void 0);_.N([_.e(),_.P("design:type",Object)],oP.prototype,"fitToVisibleBounds",void 0);_.N([_.e(),_.P("design:type",Object)],oP.prototype,"pageSubtype",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],oP.prototype,"enablePreviousContinuation",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],oP.prototype,"shortsPipEnabled",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],oP.prototype,"isDark",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],oP.prototype,"shortsViewTransitions",void 0);_.N([_.e({selector:_.IF,reflectToAttribute:!0}),_.P("design:type",Object)],oP.prototype,"isFullscreen",void 0);
_.N([_.e({selector:_.gX,reflectToAttribute:!0}),_.P("design:type",Object)],oP.prototype,"isShortsPipActive",void 0);_.N([_.Nl("#shorts-inner-container"),_.P("design:type",HTMLElement)],oP.prototype,"shortsInnerContainer",void 0);_.N([_.Nl("#back-nav-button ytd-button-renderer"),_.P("design:type",_.Fh)],oP.prototype,"backNavButton",void 0);_.N([_.Nl("#shorts-container"),_.P("design:type",HTMLElement)],oP.prototype,"shortsContainer",void 0);
_.N([Bz("error-screen"),_.P("design:type",HTMLElement)],oP.prototype,"errorScreenContainer",void 0);_.N([Bz("player"),_.P("design:type",Object)],oP.prototype,"playerElement",void 0);_.N([Bz("shorts-cinematic-container"),_.P("design:type",HTMLElement)],oP.prototype,"shortsCinematicContainer",void 0);_.N([Bz("initial-player-container"),_.P("design:type",HTMLElement)],oP.prototype,"initialPlayerContainer",void 0);_.N([_.e(),_.P("design:type",Object)],oP.prototype,"buttonOverride",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],oP.prototype,"anchoredPanelActive",void 0);_.N([_.e(),_.P("design:type",String)],oP.prototype,"activePanel",void 0);_.N([_.e(),_.P("design:type",Object)],oP.prototype,"isActive",void 0);_.N([_.e({selector:STt,reflectToAttribute:!0}),_.P("design:type",Object)],oP.prototype,"smallScreenPersistentPanel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],oP.prototype,"isPersistentPanelActive",void 0);
_.N([_.e(),_.P("design:type",Object)],oP.prototype,"smallScreenSqueezeBack",void 0);_.N([_.e(),_.P("design:type",Object)],oP.prototype,"enableScrollIntoViewCenter",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],oP.prototype,"enableFlexibleOverlay",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],oP.prototype,"extractOverlay",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],oP.prototype,"useAspectRatio",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],oP.prototype,"enableShortsSequenceRefactorUnify",void 0);_.N([_.e(),_.P("design:type",Object)],oP.prototype,"continuationRequestPending",void 0);_.N([_.e(),_.P("design:type",Object)],oP.prototype,"shortsController",void 0);_.N([_.e(),_.P("design:type",Object)],oP.prototype,"panelContainer",void 0);_.N([_.e(),_.P("design:type",Object)],oP.prototype,"overlayContainer",void 0);
_.N([_.e(),_.P("design:type",Array)],oP.prototype,"carouselContainers",void 0);_.N([_.e(),_.P("design:type",Object)],oP.prototype,"isShortsInitialized",void 0);_.N([_.e(),_.P("design:type",Object)],oP.prototype,"firstShortsData",void 0);_.N([_.e(),_.P("design:type",Object)],oP.prototype,"firstShortsDataModel",void 0);_.N([_.e(),_.P("design:type",Array)],oP.prototype,"shortsContentList",void 0);
_.N([_.Z("reelWatchSequenceResponse"),_.P("design:type",Object),_.P("design:paramtypes",[])],oP.prototype,"prevShortsSequence",null);_.N([_.Z("data","prevShortsSequence"),_.P("design:type",Object),_.P("design:paramtypes",[])],oP.prototype,"shortsProcessedPrevSequence",null);_.N([_.Z("reelWatchSequenceResponse"),_.P("design:type",Object),_.P("design:paramtypes",[])],oP.prototype,"shortsSequence",null);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oP.prototype,"setFirstShortsData",null);_.N([_.GI("reelWatchSequenceResponse","firstShortsData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oP.prototype,"setShortsContentList",null);_.N([_.Z("data","shortsSequence","firstShortsData"),_.P("design:type",Object),_.P("design:paramtypes",[])],oP.prototype,"shortsProcessedSequence",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],oP.prototype,"isUpArrowHidden",null);_.N([_.e({reflectToAttribute:!0}),_.Z("reelWatchSequenceResponse","index","endOfNextContinuation","shortsContentList"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],oP.prototype,"isDownArrowHidden",null);
_.N([_.e(),_.Z("index"),_.P("design:type",Number),_.P("design:paramtypes",[])],oP.prototype,"activeIndex",null);_.N([_.Z("isShortPlayable","data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],oP.prototype,"shouldRenderOfflineContent",null);_.N([_.lc("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oP.prototype,"onResize",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],oP.prototype,"anchoredEngagementPanels",null);
_.N([_.e(),_.P("design:type",Object)],oP.prototype,"watchWhileEngagementPanels",void 0);_.N([_.GI("isFullscreen"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oP.prototype,"onFullscreenChange",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oP.prototype,"engagementPanelsChanged",null);
_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Rn]),_.P("design:returntype")],oP.prototype,"onServiceRequestCompleted",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oP.prototype,"unhideCurrentOverlay",null);_.N([_.GI("isPlayerStarted"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oP.prototype,"afterPlayerStarted",null);
_.N([_.Z("playerData","reelWatchSequenceResponse","data"),_.P("design:type",Object),_.P("design:paramtypes",[])],oP.prototype,"errorScreen",null);_.N([_.Z("errorScreen"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],oP.prototype,"hasError",null);_.N([_.GI("playerData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],oP.prototype,"playerDataChanged",null);
_.N([_.lc("yt-dismissible-item-undo-feedback"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oP.prototype,"onShortUndoDismiss",null);_.N([_.lc("yt-disable-lockup-interaction"),_.P("design:type",Function),_.P("design:paramtypes",[Object]),_.P("design:returntype")],oP.prototype,"onShortsDismiss",null);_.N([_.P3("active"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oP.prototype,"onActiveChanged",null);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oP.prototype,"graftClientVisualElements",null);_.N([_.GI("currentPlayerIndex"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oP.prototype,"graftNvcRenderer",null);_.N([_.GI("index"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oP.prototype,"setActiveIndex",null);
_.N([_.GI("isShortsPipActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oP.prototype,"onShortsPipActiveChanged",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oP.prototype,"lazyUpdateMiniplayerData",null);_.N([_.e(),_.P("design:type",Object)],oP.prototype,"onOverlayDensityChanged",void 0);
_.N([_.GI("isPersistentPanelActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oP.prototype,"onPersistentPanelActiveChanged",null);_.N([_.GI("index","data","isUpArrowHidden"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oP.prototype,"onPrevButtonDataChange",null);_.N([_.GI("index","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oP.prototype,"onNextButtonDataChange",null);
_.N([_.Ul({is:"ytd-shorts"})],oP);var xuL;var Akb;var YO8;var WG=function(){return _.z.apply(this,arguments)||this};
_.u(WG,_.z);WG.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],WG.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],WG.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],WG.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],WG);
_.G(WG,"ytd-compact-tvfilm-entry-point-renderer",function(){if(YO8!==void 0)return YO8;var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return YO8=t},{mode:1});var M95;var mut;var b5l;var $v=function(){return _.z.apply(this,arguments)||this};
_.u($v,_.z);$v.prototype.ready=function(){this.initializeDefs()};
$v.prototype.initializeDefs=function(){var t=this.meta.byKey("yt-icons"),E=_.ZN(t).querySelector("#star"),p=_.ZN(t).querySelector("#star_half");t=_.ZN(t).querySelector("#star_border");E&&this.defs.appendChild(E.cloneNode(!0));p&&this.defs.appendChild(p.cloneNode(!0));t&&this.defs.appendChild(t.cloneNode(!0))};
$v.prototype.percentChanged=function(){for(var t=this.rating;t.firstChild;)t.removeChild(t.firstChild);var E=Math.round(this.percent/10);t=Math.floor(E/2);E%=2;var p=5-t-E;this.appendStars("star",t,0);this.appendStars("star_half",E,t);this.appendStars("star_border",p,t+E)};
$v.prototype.appendStars=function(t,E,p){for(var U=0;U<E;U++){var x=(18+this.spacing)*(U+p),A=document.createElementNS("http://www.w3.org/2000/svg","use");KLK(A,"#"+t);A.setAttribute("x",""+x);A.setAttribute("y","0");this.rating.appendChild(A)}};
$v.prototype.percentChanged=$v.prototype.percentChanged;_.N([_.Nl("#defs"),_.P("design:type",HTMLElement)],$v.prototype,"defs",void 0);_.N([_.Nl("#rating"),_.P("design:type",HTMLElement)],$v.prototype,"rating",void 0);_.N([_.e(),_.P("design:type",Number)],$v.prototype,"percent",void 0);_.N([_.e({value:6}),_.P("design:type",Number)],$v.prototype,"spacing",void 0);_.N([_.e({value:_.ci.create("iron-meta",{type:"iconset"})}),_.P("design:type",_.yA)],$v.prototype,"meta",void 0);
_.N([_.GI("percent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$v.prototype,"percentChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-ratings"})],$v);
_.G($v,"ytd-ratings",function(){if(b5l!==void 0)return b5l;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return b5l=t},{mode:1});var i57=function(){return _.z.apply(this,arguments)||this};
_.u(i57,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],i57.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],i57.prototype,"data",void 0);_.N([_.Ul({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],i57);
_.G(i57,"ytd-offer-review-renderer",function(){if(mut!==void 0)return mut;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return mut=t},{mode:1});var Kj=function(){var t=_.z.apply(this,arguments)||this;t.badges=[{textBadge:{label:_.wN("CC")}}];return t};
_.u(Kj,_.z);_.Y=Kj.prototype;_.Y.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.Y.dataChanged=function(){var t=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(t&&t.commandMetadata&&_.k(t.commandMetadata,_.t1)&&_.k(t.commandMetadata,_.t1).fireAutomatically)_.X3().resolve(_.ei).resolveCommand(t,{form:{element:this.hostElement}});else{var E;t&&((E=_.k(t,_.t1))==null?0:E.fireAutomatically)&&_.X3().resolve(_.ei).resolveCommand(t,{form:{element:this.hostElement}})}};
_.Y.isEmptyContent=function(t){return this.isStorefrontEntryPointEmpty(t)&&this.shouldHideOfferModule(t)};
_.Y.isStorefrontEntryPointEmpty=function(t){return!t||!t.storefrontEntryPoint};
_.Y.shouldHideOfferModule=function(t){return!!t.hideVideoDetails};
_.Y.isOfferModuleNavigationInactive=function(t){return!t.navigationEndpoint&&!t.serviceEndpoint};
_.Y.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.X3().resolve(_.ei).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Kj.prototype.dataChanged=Kj.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Kj.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Kj.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Kj.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.P("design:type",Boolean)],Kj.prototype,"hidden",void 0);
_.N([_.e(),_.P("design:type",Object)],Kj.prototype,"badges",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Kj.prototype,"dataChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],Kj);
_.G(Kj,"ytd-movie-offer-module-renderer",function(){if(M95!==void 0)return M95;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return M95=t},{mode:1});var qOL;var H58=function(){return _.z.apply(this,arguments)||this};
_.u(H58,_.z);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],H58.prototype,"componentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],H58.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],H58);
_.G(H58,"ytd-media-masthead-renderer",function(){if(qOL!==void 0)return qOL;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return qOL=t},{mode:1});var fXe;_.k2(_.Rjg,"course-metadata-view-model",{props:{data:_.Cy,isOverlay:_.Cy}});var vG=function(){var t=_.z.apply(this,arguments)||this;t.isMetadataVisible=!1;t.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return t};
_.u(vG,_.z);_.Y=vG.prototype;
_.Y.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"}}}}};
_.Y.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.Y.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.Y.expanderChanged=function(){var t;if((t=this.data)==null?0:t.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.Y.isExpandButtonToggled=function(){var t,E;return(E=_.k((t=this.data)==null?void 0:t.expandMetadataButton,_.rc))==null?void 0:E.isToggled};
_.Y.onVisibilityButtonClick=function(){var t;if((t=this.data)==null?0:t.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.Y.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
vG.prototype.expanderChanged=vG.prototype.expanderChanged;vG.prototype.dataChanged=vG.prototype.dataChanged;vG.prototype.descriptionChanged=vG.prototype.descriptionChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],vG.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],vG.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g([_.oO.YtActionHandlerBehavior]),_.P("design:type",Object)],vG.prototype,"actionHandlerBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],vG.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],vG.prototype,"isMetadataVisible",void 0);_.N([_.Nl("#expander"),_.P("design:type",Object)],vG.prototype,"expander",void 0);_.N([_.GI("data.description"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vG.prototype,"descriptionChanged",null);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vG.prototype,"dataChanged",null);_.N([_.GI("isMetadataVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vG.prototype,"expanderChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],vG);
_.G(vG,"ytd-tvfilm-offer-module-renderer",function(){if(fXe!==void 0)return fXe;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return fXe=t},{mode:2});var BKt;var yp=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return t};
_.u(yp,_.z);yp.prototype.dataChanged=function(){this.hostElement.hidden=!1};
yp.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
yp.prototype.onThumbnailTap=function(t){this.data&&this.data.serviceEndpoint&&(_.X3().resolve(_.ei).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),t.stopPropagation())};
yp.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
yp.prototype.dataChanged=yp.prototype.dataChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],yp.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],yp.prototype,"rendererBehaviors",void 0);_.N([_.g([_.oO.YtActionHandlerBehavior]),_.P("design:type",Object)],yp.prototype,"actionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],yp.prototype,"data",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yp.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],yp);
_.G(yp,"ytd-unlimited-offer-module-renderer",function(){if(BKt!==void 0)return BKt;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return BKt=t},{mode:1});var wmt;var RGg;var Sq=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return t};
_.u(Sq,_.z);Sq.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
Sq.prototype.handleRelatedChipCommand=function(t){t=_.k(t,HUd);var E=t.contents;E?_.uO(this.hostElement,"yt-item-section-replace-action",[E,t.targetSectionIdentifier]):_.uO(this.hostElement,"yt-item-section-continuation-action",[t.continuationData,t.targetSectionIdentifier])};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Sq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Sq.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Sq.prototype,"actionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Sq.prototype,"data",void 0);_.N([_.p4({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],Sq);
_.G(Sq,"yt-related-chip-cloud-renderer",function(){if(RGg===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;wmt===void 0&&(wmt=document.createElement("template"));var U=wmt;p.call(E,U.content.cloneNode(!0),t.content.firstChild);RGg=t}t=RGg;return t},{mode:2});var cG=function(){var t=_.z.apply(this,arguments)||this;t.isTwoColumns=!0;t.watchFeedBigThumbs=_.r("kevlar_watch_feed_big_thumbs");t.watchFeedBigThumbsOnLockup=_.r("web_watch_next_big_thumbs");t.watchFeedBigThumbsCompactLayout=_.r("web_watch_next_big_thumbs")&&_.r("web_watch_next_big_thumbs_compact_layout");t.watchFeedBigThumbsExpandedLayout=_.r("web_watch_next_big_thumbs")&&_.r("web_watch_next_big_thumbs_expanded_layout");t.watchNextGridHideChips=_.r("kevlar_watch_grid_hide_chips");t.eligibleToSwitchToGrid=
!0;t.disableShortsShelfHeightOverride=_.r("web_shorts_wn_shelf_ratio_tuning");t.isWatchNextGrid=!1;t.reuseComponents=!_.r("kevlar_watch_grid");t.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return t};
_.u(cG,_.z);_.Y=cG.prototype;
_.Y.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:!_.r("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}}};
_.Y.getItemsPath=function(){return"data.results"};
_.Y.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.Y.created=function(){this.ytLazyListBehavior.initialCount=1};
_.Y.ready=function(){_.eU(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-outline)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.Y.resultsChanged=function(){if(this.data&&this.data.results){for(var t=this.data.results,E=null,p=null,U=0;U<t.length;U++)t[U].relatedChipCloudRenderer?E=t[U].relatedChipCloudRenderer:t[U].itemSectionRenderer&&(p=t[U].itemSectionRenderer);if(E&&p)for(this.set("data.continuations",[]),t=_.k(E.content,_.Bws).chips,E=0;E<t.length;E++)if(U=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",t[E]),U.loadCached||!U.contents){U.contents=p.contents;break}}};
_.Y.dataChanged=function(){var t=this,E;if((E=this.data)!=null&&E.results&&this.hasAllowedInstreamAd(this.playerData)){if(E=this.data.results.filter(function(b){return!!b.promotedSparklesWebRenderer})){for(var p=0;p<E.length;p++){var U=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",E[p]);
if(U)for(var x=0;x<U.length;x++)U[x]&&U[x].baseUrl&&_.jT(U[x].baseUrl)}this.set("data.results",this.data.results.filter(function(b){return!b.promotedSparklesWebRenderer}))}if(E=this.data.results.filter(function(b){return!!t.getSparklesAd(b)})){E=_.M(E);
for(x=E.next();!x.done;x=E.next())if(U=p=void 0,x=(p=this.getSparklesAd(x.value))==null?void 0:(U=p.errorCommand)==null?void 0:U.loggingUrls)for(p=_.M(x),U=p.next();!U.done;U=p.next())(U=U.value)&&U.baseUrl&&_.jT(U.baseUrl);var A,m;this.set("data.results",(A=this.data)==null?void 0:(m=A.results)==null?void 0:m.filter(function(b){return!b.adSlotRenderer}))}}};
_.Y.getSparklesAd=function(t){var E,p;t=_.k((E=t.adSlotRenderer)==null?void 0:(p=E.fulfillmentContent)==null?void 0:p.fulfilledLayout,_.e_r);return _.k(t==null?void 0:t.renderingContent,HZ7)};
_.Y.hasAllowedInstreamAd=function(t){t=this.get("adPlacements",t)||[];for(var E=0;E<t.length;E++){var p=this.get("adPlacementRenderer.config.adPlacementConfig",t[E]);if(p&&p.suppressDisplayAd)return!0}return!1};
_.Y.computeHideUnlimitedOfferModule=function(t,E){return t&&t.offerModule&&E&&t.offerModule.unlimitedOfferModuleRenderer&&t.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(E)?!0:!1};
_.Y.hideUnlimitedOfferModuleChanged=function(){var t=_.ZN(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");t&&(t.hidden=this.hideUnlimitedOfferModule)};
_.Y.updateLockupContainerTypes=function(t){if(this.eligibleToSwitchToGrid){var E;(E=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||E.forEach(function(p){p.containerType=t})}};
_.Y.computeHideTvfilmOfferModule=function(t,E){var p,U;return!!((t==null?0:(p=t.offerModule)==null?0:(U=p.tvfilmOfferModuleRenderer)==null?0:U.clientShouldSuppressIfCompanionAdDisplayed)&&E&&this.hasCompanionAds(E))};
_.Y.hideTvfilmOfferModuleChanged=function(){var t=_.ZN(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");t&&(t.hidden=this.hideTvfilmOfferModule)};
_.Y.hasCompanionAds=function(t){t=this.get("adPlacements",t)||[];for(var E=0;E<t.length;E++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",t[E]))return!0;var p=void 0,U=void 0,x=void 0;if(!_.r("web_watch_top_banner_companion_check_killswitch")&&((p=t[E])==null?0:(U=p.adPlacementRenderer)==null?0:(x=U.renderer)==null?0:x.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.Y.hasSuppressedResults=function(t){return t==null?!0:t.filter(function(E){return!E.continuationItemRenderer&&!E.compactPromotedVideoRenderer&&!E.promotedSparklesWebRenderer}).length===0};
_.Y.computeShowButton=function(t,E){return this.isWatchNextGrid?t:t||this.hasSuppressedResults(E)};
_.Y.showButtonChanged=function(){if(this.isWatchNextGrid){var t=_.ZN(this.hostElement).querySelector("ytd-rich-grid-renderer");t&&this.showButton!==null&&(t.continuationShowButton=this.showButton)}else{t=_.ZN(this.hostElement).querySelector("yt-next-continuation");var E=_.ZN(this.hostElement).querySelector("ytd-continuation-item-renderer"),p=_.ZN(this.hostElement).querySelector("ytd-item-section-renderer");t&&(t.showButton=this.showButton);E&&(E.showButton=this.showButton);p&&(p.continuationShowButton=
this.showButton)}};
_.Y.continuationTap=function(t){var E;if(((E=this.data)==null?void 0:E.continuations)!=null&&t.target.tagName==="TP-YT-PAPER-BUTTON")for(t=this.data.continuations,E=0;E<t.length;E++)t[E].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(t[E].nextContinuationData||{})};
_.Y.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IU("shown-items-changed",this.shownItems))};
_.aE.Object.defineProperties(cG.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 t;return!((t=this.shownItems)==null||!t.some(function(E){return!!E.lockupViewModel||E.compactVideoRenderer}))}}});
cG.prototype.shownItemsChangedForBinding=cG.prototype.shownItemsChangedForBinding;cG.prototype.showButtonChanged=cG.prototype.showButtonChanged;cG.prototype.hideTvfilmOfferModuleChanged=cG.prototype.hideTvfilmOfferModuleChanged;cG.prototype.updateLockupContainerTypes=cG.prototype.updateLockupContainerTypes;cG.prototype.hideUnlimitedOfferModuleChanged=cG.prototype.hideUnlimitedOfferModuleChanged;cG.prototype.dataChanged=cG.prototype.dataChanged;cG.prototype.resultsChanged=cG.prototype.resultsChanged;
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],cG.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],cG.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.F_.YtLazyListBehavior),_.P("design:type",Object)],cG.prototype,"ytLazyListBehavior",void 0);_.N([_.g(_.gj.YtNextContinuationBehavior),_.P("design:type",Object)],cG.prototype,"ytNextContinuationBehavior",void 0);
_.N([_.g(_.I6),_.P("design:type",Object)],cG.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],cG.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],cG.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],cG.prototype,"playerData",void 0);_.N([_.e({value:!0}),_.P("design:type",Boolean)],cG.prototype,"autoFill",void 0);_.N([_.e({value:60}),_.P("design:type",Number)],cG.prototype,"targetFramerate",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],cG.prototype,"isTwoColumns",void 0);_.N([_.e(),_.P("design:type",Object)],cG.prototype,"shownItems",void 0);_.N([_.e({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.P("design:type",Boolean)],cG.prototype,"hideUnlimitedOfferModule",void 0);_.N([_.e({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.P("design:type",Boolean)],cG.prototype,"hideTvfilmOfferModule",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],cG.prototype,"watchFeedBigThumbs",void 0);_.N([_.e(),_.P("design:type",Object)],cG.prototype,"watchFeedBigThumbsOnLockup",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],cG.prototype,"watchFeedBigThumbsCompactLayout",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],cG.prototype,"watchFeedBigThumbsExpandedLayout",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],cG.prototype,"watchNextGridHideChips",void 0);_.N([_.e(),_.P("design:type",Object)],cG.prototype,"eligibleToSwitchToGrid",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],cG.prototype,"disableShortsShelfHeightOverride",void 0);_.N([_.e({selector:_.pd,reflectToAttribute:!0}),_.P("design:type",Object)],cG.prototype,"isGridViewEnabled",void 0);
_.N([_.e({selector:_.eEK,reflectToAttribute:!0}),_.P("design:type",Object)],cG.prototype,"isSwatcherooActive",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],cG.prototype,"showMoreButton",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],cG.prototype,"isWatchNextGrid",void 0);_.N([_.e({computed:"computeShowButton(showMoreButton, data.results)"}),_.P("design:type",Boolean)],cG.prototype,"showButton",void 0);
_.N([_.P3("data.results.*"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cG.prototype,"resultsChanged",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cG.prototype,"dataChanged",null);_.N([_.GI("hideUnlimitedOfferModule"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cG.prototype,"hideUnlimitedOfferModuleChanged",null);
_.N([_.Z("isGridViewEnabled","containsLockups","data"),_.e({reflectToAttribute:!0}),_.P("design:type",Number),_.P("design:paramtypes",[])],cG.prototype,"lockupContainerType",null);_.N([_.GI("lockupContainerType","data"),_.P("design:type",Function),_.P("design:paramtypes",[Number]),_.P("design:returntype")],cG.prototype,"updateLockupContainerTypes",null);
_.N([_.GI("hideTvfilmOfferModule"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cG.prototype,"hideTvfilmOfferModuleChanged",null);_.N([_.GI("showButton"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cG.prototype,"showButtonChanged",null);_.N([_.GI("shownItems"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cG.prototype,"shownItemsChangedForBinding",null);
_.N([_.Z("shownItems"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],cG.prototype,"containsLockups",null);
_.G(cG,"ytd-watch-next-secondary-results-renderer",function(){if(Akb===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);Akb=t}t=Akb;return t},{mode:1});var V9d;var t5=function(){var t=_.z.apply(this,arguments)||this;t.currentPageUrl="";t.baseUrl="";t.isHiddenByUser=null;t.hidden=!1;t.showAboveScrim=!1;t.watchNextGrid=_.r("kevlar_watch_grid");t.modernButtons=_.r("web_modern_buttons");t.roundedContainer=!0;t.noBorder=!1;t.roundBackground=!_.r("live_chat_round_background_killswitch");t.overflowHideChat=_.r("live_chat_overflow_hide_chat");t.forceDarkTheme=!1;t.theaterWatchWhile=!1;t.isListeningForPlayerProgress=!1;t.JSC$22101_playerEvents=new Map;t.isFrameReady=
!1;t.player=null;t.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 t};
_.u(t5,_.z);_.Y=t5.prototype;_.Y.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.uO(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.Y.created=function(){var t=this;this.handleIframeEventListener=function(E){t.handleIframeEvent(E)};
this.handleKeyboardEventListener=function(E){t.handleKeyboardEvent(E)};
this.JSC$22101_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22101_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22101_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22101_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22101_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.Y.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()};
_.Y.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};
_.Y.computeBaseUrl=function(t){var E="/live_chat";this.isChatReplay()&&(E="/live_chat_replay");return _.FB(_.ev(_.aQ(_.QC(t),E),null),"").toString()};
_.Y.dataChanged=function(){_.r("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.Y.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var t=this.url;if(this.isChatReplay()&&this.player){var E=Math.floor(this.player.getProgressState().current*1E3);t=_.jK(_.QC(t),"playerOffsetMs",E.toString()).toString()}E=this.chatframe;try{var p=t==="about:blank"?_.C0G:_.S8(t),U=E.contentDocument.location,x=_.E2(p);x!==void 0&&U.replace(x)}catch(A){E.src=t}}};
_.Y.collapsedChanged=function(){_.kT(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.Y.handleIframeEvent=function(t){if(t&&this.baseUrl.startsWith(t.origin)&&t.source===this.chatframe.contentWindow&&_.o0(t.data))if(t.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(t);else if(t.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(t.data["yt-show-feedback-dialog"]){var E=_.X3().resolve(_.OB(_.SS7));if(E){var p=t.ports,U;p&&p.length&&(U=function(){p[0].postMessage({})});
t=t.data["yt-show-feedback-dialog"];E.showFeedbackDialog(t.customProductData,t.feedbackContent,U,t.bucket)}}else if(t.data["yt-show-survey"])_.kT(this.hostElement,"yt-show-survey",t.data["yt-show-survey"]);else if(t.data["yt-purchase-membership"])_.X3().resolve(_.ei).resolveCommand(t.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(t.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(t.data["yt-tunnel-out-live-service-request"]);else if(t.data["yt-user-activity"])_.hw();
else if(t.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(t.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(t.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(t.data["yt-open-popup"]);else if(t.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(t.data["yt-log-flow-logging-event-command"]);else if(t.data["yt-hide-live-chat"])this.onShowHideChat();else t.data["yt-report-moderation-state-log"]&&
this.player&&(E={cpn:this.player.getVideoData().cpn},_.MW("liveChatBeingModerated",E))};
_.Y.attachLiveChatResponseVeTrackingParams=function(t){t=_.$8(t);var E=_.yL(),p=_.ws("liveChatRenderer.trackingParams",this.data);E&&p&&_.Yh(E,_.$8(p),t)};
_.Y.handleBuyflowMessages=function(t){var E=t.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,p=t.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,U=t.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.V9D(_.I7(_.RG),E.replace(/-/g,"+").replace(/_/g,"/"),function(x){t.ports[0].postMessage({success:!0,buyFlowResponse:x})},void 0,function(x){t.ports[0].postMessage({success:!1,
error:x&&x.message||"Buyflow rejected without error."})},_.nF().get("hl"),void 0,function(){t.ports[0].postMessage({closed:!0})},p,U)};
_.Y.setupPlayerProgressRelay=function(){var t=this;if(!this.isListeningForPlayerProgress){var E=_.dG();E!=null&&E.getPlayerPromise&&(E.getPlayerPromise().then(function(p){t.playerApiReady(p)}),this.isListeningForPlayerProgress=!0)}};
_.Y.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.Y.playerApiReady=function(t){this.setPlayer(t)};
_.Y.playerProgressHandler=function(){if(this.player){var t=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":t.current})}};
_.Y.playerAdStartHandler=function(t){this.postToContentWindow({"yt-player-ad-start":t})};
_.Y.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.Y.playerStateChangeHandler=function(t){this.postToContentWindow({"yt-player-state-change":t})};
_.Y.setPlayer=function(t){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22101_playerEvents);t&&(this.player=t,this.ytPlayerListenerBehavior.listenToPlayerEvents(t,this.JSC$22101_playerEvents),_.kT(this.hostElement,"player-api-ready"))};
_.Y.liveChatPageUrl=function(t,E,p,U){return!p||E?"about:blank":p.liveChatRenderer?(E=_.QC(this.currentPageUrl).JSC$10308_queryData_,kG7(E),t=_.QC(t),E.add("continuation",p.liveChatRenderer.continuations[0].reloadContinuationData.continuation),p=_.me()==="USER_INTERFACE_THEME_DARK",(U||p)&&E.add("dark_theme","true"),_.ev(t,E),U=_.QC(t.toString()),p=U.JSC$10308_queryData_,"SESSION_INDEX"in _.ba&&(p.add("authuser",_.qO("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.ba&&p.add("pageId",_.qO("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.ba&&p.add("sdc",_.qO("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),U.toString()):""};
_.Y.isCollapsed=function(t,E){return E!==null?E:this.isChatReplay()||t&&t.conversationBarRenderer&&t.conversationBarRenderer.availabilityMessage?!0:t?t.liveChatRenderer?t.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.r("live_chat_hide_premiere_replay_message")||t.conversationBarRenderer&&t.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.Y.isHidden=function(t,E,p){var U=E&&E.conversationBarRenderer&&E.conversationBarRenderer.availabilityMessage,x=E&&E.liveChatRenderer&&E.liveChatRenderer.showHideButton,A=E&&E.liveChatRenderer&&E.liveChatRenderer.showButton;return p&&t&&!U&&!A||!p&&t&&!U&&!x?!0:E&&E.liveChatRenderer&&E.liveChatRenderer.initialDisplayState?E.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.Y.computeButtonOverride=function(t,E){if(t&&E)return{type:"outline"}};
_.Y.setCollapsedState=function(t){_.k(t,_.GN4)&&((this.isHiddenByUser=!!_.k(t,_.GN4).collapsed)||_.du(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.Y.forwardReduxActionToIframe=function(t){this.postToContentWindow({"yt-live-chat-forward-redux-action":t})};
_.Y.onLoopRangeChange=function(t){this.showAboveScrim=!(t==null||!t.postId)};
_.Y.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.Y.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.Y.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.Y.sendDarkThemePostMessage=function(t){this.postToContentWindow({"yt-live-chat-set-dark-theme":t})};
_.Y.onLiveChatBuyFlowCallback=function(t){this.postToContentWindow({"yt-live-chat-buy-flow-callback":t})};
_.Y.handleKeyboardEvent=function(t){(0,_.Kq.containsValue)(UB5,t.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:t.type,keyCode:t.keyCode}})};
_.Y.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.Y.postToContentWindow=function(t){if(this.isFrameReady)try{var E=window.location.protocol+"//"+window.location.host,p;(p=this.chatframe)!=null&&p.contentWindow?this.chatframe.contentWindow.postMessage(t,E):_.qW(new _.cC("Tried posting a message to an iframe with no content window",t))}catch(U){_.bV(U)}};
_.Y.shouldHideChatFrame=function(t){return t&&_.r("hide_live_chat_button_when_collapsed")};
_.aE.Object.defineProperties(t5.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.r("live_chat_overflow_hide_chat")||_.r("web_watch_chat_hide_button_killswitch"))return _.r("live_chat_overflow_hide_chat");var t,E,p,U;return!!((t=this.data)==null?0:(E=t.liveChatRenderer)==null?0:(p=E.header)==null?0:(U=p.liveChatHeaderRenderer)==null?0:U.collapseButton)}}});
t5.prototype.collapsedChanged=t5.prototype.collapsedChanged;t5.prototype.urlChanged=t5.prototype.urlChanged;t5.prototype.dataChanged=t5.prototype.dataChanged;t5.prototype.onShowHideChat=t5.prototype.onShowHideChat;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],t5.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],t5.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],t5.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.JT.YtPlayerListenerBehavior),_.P("design:type",_.Il)],t5.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.g(_.Pg.YtOpenPopupBehavior),_.P("design:type",Object)],t5.prototype,"ytOpenPopupBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],t5.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],t5.prototype,"currentPageUrl",void 0);
_.N([_.e({computed:"computeBaseUrl(currentPageUrl,data)"}),_.P("design:type",Object)],t5.prototype,"baseUrl",void 0);_.N([_.e({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.P("design:type",String)],t5.prototype,"url",void 0);_.N([_.e(),_.P("design:type",Object)],t5.prototype,"isHiddenByUser",void 0);_.N([_.e({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.P("design:type",Object)],t5.prototype,"hidden",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.P("design:type",Boolean)],t5.prototype,"collapsed",void 0);_.N([_.e({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.P("design:type",Boolean)],t5.prototype,"hideChatFrame",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],t5.prototype,"showAboveScrim",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],t5.prototype,"watchNextGrid",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],t5.prototype,"modernButtons",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],t5.prototype,"roundedContainer",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],t5.prototype,"noBorder",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],t5.prototype,"roundBackground",void 0);
_.N([_.e({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.P("design:type",Object)],t5.prototype,"toggleButtonOverride",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],t5.prototype,"overflowHideChat",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],t5.prototype,"forceDarkTheme",void 0);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],t5.prototype,"enableShowWithoutHideChatButton",null);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],t5.prototype,"theaterWatchWhile",void 0);_.N([_.Nl("#chatframe"),_.P("design:type",HTMLIFrameElement)],t5.prototype,"chatframe",void 0);_.N([_.lc("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],t5.prototype,"onShowHideChat",null);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],t5.prototype,"dataChanged",null);
_.N([_.GI("url"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],t5.prototype,"urlChanged",null);_.N([_.GI("collapsed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],t5.prototype,"collapsedChanged",null);_.N([_.Ul({is:"ytd-live-chat-frame",disableElementRegistration:!0})],t5);
_.G(t5,"ytd-live-chat-frame",function(){if(V9d!==void 0)return V9d;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return V9d=t},{mode:1});var QYb;var Ew=function(){var t=_.z.apply(this,arguments)||this;t.lastRenderedPanelIds=new Set;t.visiblePanels=[];t.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return t};
_.u(Ew,_.z);_.Y=Ew.prototype;_.Y.dataChanged=function(){if(this.data){for(var t=[],E=_.M(this.data),p=E.next();!p.done;p=E.next()){p=p.value;var U=void 0,x=void 0,A=(U=p)==null?void 0:(x=U.engagementPanelSectionListRenderer)==null?void 0:x.visibility;x=U=void 0;((U=p)==null?0:(x=U.engagementPanelSectionListRenderer)==null?0:x.targetId)&&A!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&t.push(p)}this.visiblePanels=t}else this.visiblePanels=[]};
_.Y.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}}};
_.Y.withoutVisiblePanelById=function(t){return this.visiblePanels.filter(function(E){var p;return((p=E.engagementPanelSectionListRenderer)==null?void 0:p.targetId)!==t})};
_.Y.onYtChangeEngagementPanelVisibilityAction=function(t){var E=this,p=_.k(t,_.nbG);if(this.data&&(p==null?0:p.targetId)&&(p==null?0:p.visibility)){var U,x=(U=this.data.find(function(m){var b;return((b=m.engagementPanelSectionListRenderer)==null?void 0:b.targetId)===p.targetId}))==null?void 0:U.engagementPanelSectionListRenderer;
if(x){var A=this.withoutVisiblePanelById(p.targetId);p.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(t=this.data.find(function(m){var b;return((b=m.engagementPanelSectionListRenderer)==null?void 0:b.targetId)===p.targetId}))&&(A=[t].concat(_.KB(A)));
this.hideDelayMs&&p.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&A.length===0?_.ir.addJob(function(){x.visibility=p.visibility;E.visiblePanels=A},10,this.hideDelayMs):(x.visibility=p.visibility,this.visiblePanels=A);
_.uO(this.hostElement,"yt-engagement-panels-visible-changed",[A])}}};
_.Y.onRendererstamperFinished=function(){var t=new Set(this.visiblePanels.map(function(E){var p;return(p=E.engagementPanelSectionListRenderer)==null?void 0:p.targetId}));
this.handlePanelVisibilityChange(t,this.lastRenderedPanelIds);this.lastRenderedPanelIds=t};
_.Y.handlePanelVisibilityChange=function(t,E){t=t===void 0?new Set:t;E=E===void 0?new Set:E;if(this.data)for(var p=_.M(this.data),U=p.next();!U.done;U=p.next()){U=U.value;var x=void 0,A=void 0,m=(x=U)==null?void 0:(A=x.engagementPanelSectionListRenderer)==null?void 0:A.targetId;if(m&&(x=E.has(m),A=t.has(m),m=void 0,!x&&A?(A=x=void 0,m=(x=U)==null?void 0:(A=x.engagementPanelSectionListRenderer)==null?void 0:A.onShowCommands):x&&!A&&(A=x=void 0,m=(x=U)==null?void 0:(A=x.engagementPanelSectionListRenderer)==
null?void 0:A.onHideCommands),m))for(U=_.M(m),m=U.next();!m.done;m=U.next())this.ytComponentBehavior.resolveCommand(m.value)}};
Ew.prototype.onRendererstamperFinished=Ew.prototype.onRendererstamperFinished;Ew.prototype.dataChanged=Ew.prototype.dataChanged;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Ew.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Ew.prototype,"actionHandlerBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ew.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Ew.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Ew.prototype,"lastRenderedPanelIds",void 0);_.N([_.e(),_.P("design:type",Number)],Ew.prototype,"hideDelayMs",void 0);_.N([_.e(),_.P("design:type",Array)],Ew.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Array)],Ew.prototype,"visiblePanels",void 0);_.N([_.e(),_.P("design:type",Boolean)],Ew.prototype,"isWatchWhilePanel",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ew.prototype,"dataChanged",null);_.N([_.lc("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ew.prototype,"onRendererstamperFinished",null);_.N([_.Ul({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],Ew);
_.G(Ew,"ytd-watch-engagement-panels",function(){if(QYb!==void 0)return QYb;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return QYb=t},{mode:1});var Cje;var jY9;var rkJ=function(){return _.z.apply(this,arguments)||this};
_.u(rkJ,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],rkJ.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],rkJ.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],rkJ);
_.G(rkJ,"ytd-comments-entry-point-message-renderer",function(){if(jY9!==void 0)return jY9;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return jY9=t},{mode:1});var kT5;var p6=function(){return _.z.apply(this,arguments)||this};
_.u(p6,_.z);_.aE.Object.defineProperties(p6.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.teaserAvatar)}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],p6.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],p6.prototype,"data",void 0);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],p6.prototype,"hasAvatar",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],p6);
_.G(p6,"ytd-comments-entry-point-teaser-renderer",function(){if(kT5!==void 0)return kT5;var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return kT5=t},{mode:1});var du8;var uFe=function(){return _.z.apply(this,arguments)||this};
_.u(uFe,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],uFe.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],uFe.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],uFe);
_.G(uFe,"ytd-comments-simplebox-renderer",function(){if(du8!==void 0)return du8;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return du8=t},{mode:1});var Uw=function(){var t=_.z.apply(this,arguments)||this;t.fullHeight=!_.r("comment_teaser_full_height_kill_switch")&&_.r("kevlar_watch_grid");return t};
_.u(Uw,_.z);Uw.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"}}}};
Uw.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Uw.prototype.onTap=function(){var t=this.tapCommand;t&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(t))};
Uw.prototype.onKeyUp=function(t){if(t.keyCode===13)this.onTap()};
_.aE.Object.defineProperties(Uw.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null?0:t.onTap)return this.data.onTap;var E,p;if(((E=this.data)==null?0:E.teaserContent)||((p=this.data)==null?0:p.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)!=null&&t.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
Uw.prototype.onKeyUp=Uw.prototype.onKeyUp;Uw.prototype.onTap=Uw.prototype.onTap;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Uw.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Uw.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Uw.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Uw.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Uw.prototype,"fullHeight",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Uw.prototype,"tapCommand",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Uw.prototype,"simpleboxPlaceholder",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Uw.prototype,"hasSimpleboxPlaceholder",null);
_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Uw.prototype,"simpleboxAvatar",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Uw.prototype,"teaserContent",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Uw.prototype,"hasTeaserContent",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Uw.prototype,"teaserAvatar",null);
_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Uw.prototype,"hasTeaserAvatar",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Uw.prototype,"messageText",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Uw.prototype,"contentRenderer",null);_.N([_.Z("data"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Uw.prototype,"hasContents",null);
_.N([_.Z("data"),_.e({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Uw.prototype,"hasContentRenderer",null);_.N([_.lc("click"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Uw.prototype,"onTap",null);_.N([_.lc("keypress"),_.P("design:type",Function),_.P("design:paramtypes",[_.cf]),_.P("design:returntype")],Uw.prototype,"onKeyUp",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],Uw);
_.G(Uw,"ytd-comments-entry-point-header-renderer",function(){if(Cje!==void 0)return Cje;var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Cje=t},{mode:1});var Jkt;_.k2(_.KUs,"yt-animated-rolling-number",{props:{numberText:_.uu,numberValue:_.uu,heightPx:_.uu,fontSizeMultiplier:_.uu,shouldAnimate:_.uu,forceRollUp:_.uu}});var IX9=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),gJ9={numberText:"",heightPx:2*IX9,shouldAnimate:!1},xB=function(){var t=_.z.apply(this,arguments)||this;t.usingAnimatedComponents=!0;t.wasDetailed=!1;t.JSC$22131_browserSupportsAnimation=_.r("web_supports_animations_api");t.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};t.detailed=!1;t.shouldAnimate=!1;t.viewCountProps=gJ9;t.dateTextProps=
gJ9;t.metadataBadgesInDescription=_.r("web_metadata_badges_in_description");return t};
_.u(xB,_.z);_.Y=xB.prototype;_.Y.attached=function(){var t=this;_.X3().resolve(_.Nb).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(E){t.set("videoPrimaryInfoRenderer.subtitle",E)})};
_.Y.detached=function(){_.X3().resolve(_.Nb).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.Y.resetAnimationState=function(){this.shouldAnimate=!1};
_.Y.updateDynamicMetadata=function(){if(this.JSC$22131_browserSupportsAnimation){if(!this.detailed){var t,E,p,U;var x=(t=this.videoPrimaryInfoRenderer)==null?void 0:(E=t.viewCount)==null?void 0:(p=E.videoViewCountRenderer)==null?void 0:(U=p.extraShortViewCount)==null?void 0:U.simpleText;var A,m,b,f;var B=(A=this.videoPrimaryInfoRenderer)==null?void 0:(m=A.viewCount)==null?void 0:(b=m.videoViewCountRenderer)==null?void 0:(f=b.shortViewCount)==null?void 0:f.simpleText}if(!B){var R,V,Q,C;x=(R=this.videoPrimaryInfoRenderer)==
null?void 0:(V=R.viewCount)==null?void 0:(Q=V.videoViewCountRenderer)==null?void 0:(C=Q.unlabeledViewCountValue)==null?void 0:C.simpleText;var d,I,O,a;B=(d=this.videoPrimaryInfoRenderer)==null?void 0:(I=d.viewCount)==null?void 0:(O=I.videoViewCountRenderer)==null?void 0:(a=O.viewCount)==null?void 0:a.simpleText}var F,L,D;t=Number((F=this.videoPrimaryInfoRenderer)==null?void 0:(L=F.viewCount)==null?void 0:(D=L.videoViewCountRenderer)==null?void 0:D.originalViewCount);var W,K;F=(W=this.videoPrimaryInfoRenderer)==
null?void 0:(K=W.relativeDateText)==null?void 0:K.simpleText;var v;W=!((v=this.videoPrimaryInfoRenderer)==null||!v.relativeDateText);if(x&&B&&t&&(F||!W)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;v=B.split(new RegExp("("+x+")"));x=_.wN(v[0]);var YL;B={numberText:(YL=v[1])!=null?YL:"",numberValue:t,heightPx:2*IX9,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var bY;YL=((bY=v[2])!=null?bY:"")+"  ";this.setViewCount(B,x,_.wN(YL));if(!this.detailed&&
W){x=F.split(/(\d+)/);bY=_.wN(x[0]);var kL;YL={numberText:(kL=x[1])!=null?kL:"",heightPx:2*IX9,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var R0;kL=((R0=x[2])!=null?R0:"")+"  ";this.setDateText(YL,bY,_.wN(kL))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.Y.setViewCount=function(t,E,p){_.R4(E)!==_.R4(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=E);this.viewCountProps.numberText!==(t==null?void 0:t.numberText)&&(this.viewCountProps=t||gJ9);_.R4(p)!==_.R4(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=p)};
_.Y.setDateText=function(t,E,p){_.R4(E)!==_.R4(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=E);this.dateTextProps.numberText!==(t==null?void 0:t.numberText)&&(this.dateTextProps=t||gJ9);_.R4(p)!==_.R4(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=p)};
_.Y.onYtUpdateViewershipAction=function(t){this.videoPrimaryInfoRenderer&&(_.k(t,qqK).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.k(t,qqK).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.k(t,qqK).viewCount)))};
_.Y.onYtUpdateDateTextAction=function(t){if(this.videoPrimaryInfoRenderer){t=_.k(t,bUg).dateText;this.shouldAnimate=!0;var E;((E=this.videoPrimaryInfoRenderer)==null?0:E.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",t):this.set("videoPrimaryInfoRenderer.dateText",t)}};
_.aE.Object.defineProperties(xB.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return s7t(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.R4(s7t(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.R4(this.viewCountPreNumberText),this.viewCountProps.numberText,_.R4(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.R4(this.dateTextPreNumberText),this.dateTextProps.numberText,_.R4(this.dateTextPostNumberText)].join("")}}});
xB.prototype.updateDynamicMetadata=xB.prototype.updateDynamicMetadata;xB.prototype.resetAnimationState=xB.prototype.resetAnimationState;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],xB.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],xB.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],xB.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],xB.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],xB.prototype,"videoPrimaryInfoRenderer",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],xB.prototype,"detailed",void 0);_.N([_.e(),_.P("design:type",Object)],xB.prototype,"shouldAnimate",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],xB.prototype,"viewCountPreNumberText",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],xB.prototype,"viewCountProps",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],xB.prototype,"viewCountPostNumberText",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],xB.prototype,"dateTextPreNumberText",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],xB.prototype,"dateTextProps",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],xB.prototype,"dateTextPostNumberText",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],xB.prototype,"metadataBadgesInDescription",void 0);_.N([_.Z("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.P("design:type",Object),_.P("design:paramtypes",[])],xB.prototype,"infoText",null);
_.N([_.Z("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.P("design:type",String),_.P("design:paramtypes",[])],xB.prototype,"descriptionInfoTooltipText",null);_.N([_.Z("detailed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],xB.prototype,"showDescriptionInfoTooltip",null);
_.N([_.Z("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.P("design:type",String),_.P("design:paramtypes",[])],xB.prototype,"animatedViewCountAccessibilityLabel",null);_.N([_.Z("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.P("design:type",String),_.P("design:paramtypes",[])],xB.prototype,"animatedDateTextAccessibilityLabel",null);
_.N([_.GI("videoPrimaryInfoRenderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xB.prototype,"resetAnimationState",null);_.N([_.GI("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xB.prototype,"updateDynamicMetadata",null);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-watch-info-text"})],xB);
_.G(xB,"ytd-watch-info-text",function(){if(Jkt!==void 0)return Jkt;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Jkt=t},{mode:1});var Z5t;var O5l="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var Xml=_.l(function(t){var E=t.data;var p=t.setTapCommand;_.M$(function(){var U=_.AJ(E().onTap);p(U)},"CLm0Xe");
return _.H("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.H(_.sY,{data:function(){return E().avatar}},{avatarViewModel:_.fk}),_.H("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.H("span",null,function(){return E().simpleboxText})))},"Gk");var hGC=_.l(function(t){return _.H("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.H(_.w,{cond:function(){return _.k(t.data().avatar,_.UX)},
then:function(E){return _.H(_.fk,{data:E,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.H("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.H(_.d8,{text:function(){return t.data().teaserText}})))},"Hk");var aXt=_.l(function(t){var E=t.data;var p=t.setTapCommand;_.M$(function(){var U=_.AJ(E().onTap);p(U)},"qxjCCd");
return _.H("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.H(_.sY,{data:function(){return E().teasers}},{commentsEntryPointTeaserViewModel:hGC}))},"Jk");var eG8=_.l(function(t){var E=t.data;var p=t.setTapCommand;_.M$(function(){var U=_.AJ(E().onTap);p(U)},"CRZByf");
return _.H("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.H(_.d8,{text:function(){return E().messageText}}))},"Lk");var F2K=_.l(function(t){var E=t.data;var p=t.setTapCommand;var U=t.isDisabled;_.M$(function(){var x=(U==null?0:U())?void 0:_.AJ(E().onTap);p(x)},"GZxRqd");
return _.H("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.H(_.lz,{icon:function(){return E().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.H(_.w,{cond:function(){return E().image},
then:function(x){return _.H(_.Q9,{data:x,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.H(_.d8,{text:function(){return E().text},
className:function(){return E().image||E().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.H(_.sY,{data:function(){return E().button}},{buttonViewModel:function(x){return _.H(_.D5,{data:x.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:U==null?void 0:U()}}})}}))},"Nk");var zGK=_.l(function(t){var E=t.data;var p=t.itemIndex;var U=t.selectedIndex;var x=t.indexUpdatedCallback;var A=t.observer;t=t.title;var m=_.EB("yt-carousel-item-view-model",function(V){A&&A().observe(V)}),b=function(V){p()===U()&&x(V)},f=_.D4(zBl),B=_.D4(_.ldt),R=function(){var V,Q,C,d,I;
return((V=E())==null?void 0:V.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!f()||((Q=E())==null?void 0:Q.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((C=B())==null?void 0:C.includes("PAposts_by_host"))||((d=E())==null?void 0:d.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((I=B())==null?void 0:I.includes("PAyouchat"))};
return _.H("yt-carousel-item-view-model",{el:m,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":t},_.H(_.sY,{data:function(){var V,Q;return(Q=(V=_.k(E().carouselItem,rsC))==null?void 0:V.textCarousel)!=null?Q:E().carouselItem}},{textCarouselItemViewModel:function(V){return _.H(F2K,{data:V.data,
setTapCommand:b,isDisabled:R})},
commentTeaserCarouselItemViewModel:function(V){return _.H(aXt,{data:V.data,setTapCommand:b})},
commentInputBoxCarouselItemViewModel:function(V){return _.H(Xml,{data:V.data,setTapCommand:b})},
commentsEntryPointMessageViewModel:function(V){return _.H(eG8,{data:V.data,setTapCommand:b})}}))},"Ok");var lXt=_.l(function(t){var E=t.numDots;var p=t.activeIndex;return _.H("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.H(_.yG,{each:function(){return Array.from({length:E()})},
keyBy:"INDEX"},function(U,x){return _.H("div",{class:function(){var A={};return _.v9("ytCarouselDotsShapeDot",(A.ytCarouselDotsShapeDotActive=x===p(),A))}})}))},"Pk");var GTo=_.l(function(t){var E=t.data;var p=t.handleCarouselNavigation;var U=t.numItems;var x=t.selectedIndex;var A=function(){return{disabled:x()===0}},m=function(){return{disabled:x()===U()-1}};
return _.H("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.H("div",null,_.H("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return E().title}),_.H(_.w,{cond:function(){return E().subtitle},
then:function(b){return _.H("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return E().subtitleAccessibilityText}},b)}})),_.H(_.w,{cond:function(){return U()>1},
then:function(){return _.H("div",{class:"ytCarouselTitleViewModelNavigation"},_.H(lXt,{numDots:U,activeIndex:x}),_.H(_.w,{cond:function(){return E().previousButton},
then:function(b){return _.H(_.sY,{data:b},{buttonViewModel:function(f){return _.H(_.D5,{data:f.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return p(-1)},
buttonOverrides:A})}})}}),_.H(_.w,{cond:function(){return E().nextButton},
then:function(b){return _.H(_.sY,{data:b},{buttonViewModel:function(f){return _.H(_.D5,{data:f.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return p(1)},
buttonOverrides:m})}})}}))}}))},"Qk");_.k2(_.l(function(t){var E=t.data;var p,U=_.EB("yt-video-metadata-carousel-view-model"),x=_.EB("div",function(W){var K=function(){var v=W.offsetWidth*I(),YL=24*(I()-1);Q(v+YL)};
K();window.ResizeObserver&&(p=new ResizeObserver(K),p.observe(W))}),A=_.qO("HTML_DIR")==="rtl",m=!1,b=0,f=0;
t=_.M(_.Py(0,void 0,"M49TDf"));var B=t.next().value,R=t.next().value;t=_.M(_.Py(0,void 0,"zLIok"));var V=t.next().value,Q=t.next().value;t=_.M(_.Py(!1,void 0,"bhelhc"));var C=t.next().value,d=t.next().value,I=function(){var W,K,v;return(v=(W=E())==null?void 0:(K=W.carouselTitles)==null?void 0:K.length)!=null?v:0},O=function(){x.value&&x.value.scrollLeft!==b&&R((A?x.value.scrollLeft<b:x.value.scrollLeft>b)?Math.min(B()+1,I()-1):Math.max(B()-1,0))},a;
window.IntersectionObserver&&(a=new IntersectionObserver(function(W){W=_.M(W);for(var K=W.next();!K.done;K=W.next())if(K.value.isIntersecting){if(m){m=!1;break}O()}else R(f)},{threshold:.2}));
_.M$(function(){if(x.value){var W=(A?-1:1)*(V()/I()+12)*(C()&&a?f:B());typeof x.value.scrollTo==="function"?x.value.scrollTo({left:W,behavior:"smooth"}):x.value.scrollLeft=W;b=W;f=C()&&a?f:B()}},"s9rbgc");
var F,L=function(W){F=W};
_.iK(function(){var W;(W=p)==null||W.disconnect();var K;(K=a)==null||K.disconnect()});
var D=function(W){W=B()+W;W>=0&&W<I()&&(m=!0,R(W))};
return _.H("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:U,"on:click":_.aC(function(W){if(_.Sw(_.yb(W),U.value,["BUTTON".toString()])||!F)return!1;_.X3().resolve(_.ei).resolveCommand(F,{forceClickLogging:!0});return!1}),
"on:touchstart":_.aC(function(){d(!0);return!1}),
"on:touchend":_.aC(function(){a||O();d(!1);return!1}),
hidden:function(){var W,K;return!((W=E())==null?0:(K=W.carouselItems)==null?0:K.length)}},_.H("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.H(_.w,{cond:function(){return E().carouselTitles},
then:function(W){return _.H(_.sY,{data:function(){return W()[C()&&a?f:B()]}},{carouselTitleViewModel:function(K){return _.H(GTo,{data:K.data,
handleCarouselNavigation:D,numItems:I,selectedIndex:B})}})}})),_.H("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:x},_.H("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+V()+"px;"}},_.H(_.w,{cond:function(){return E().carouselItems},
then:function(W){return _.H(_.yG,{each:W},function(K,v){return _.H(_.sY,{data:function(){return K}},{carouselItemViewModel:function(YL){return _.H(zGK,{data:YL.data,
itemIndex:v,selectedIndex:B,indexUpdatedCallback:L,observer:a,title:function(){a:{var bY=v();var kL,R0=(kL=E())==null?void 0:kL.carouselTitles;if(R0&&(bY=R0[bY])){var j$;bY=(j$=_.k(bY,j2K))==null?void 0:j$.title;break a}bY=void 0}return bY}})}})})}}))))},"Sk"),"yt-video-metadata-carousel-view-model",{props:{data:_.uu}});var nJd=_.r("web_action_buttons_update_owner_width")?32:12,A5=function(){var t=_.z.apply(this,arguments)||this;t.isHovering=!1;t.enableColorSampling=_.r("web_delhi_colorful_sd");t.metadataBadgesInDescription=_.r("web_metadata_badges_in_description");t.descriptionCollapsed=!0;t.useFadedScrimDescription=_.r("kevlar_enable_faded_scrim_on_description");t.skinnyMode=!1;t.playlist=!1;t.isDark=document.documentElement.hasAttribute("dark");t.disableVideoOwnerOnTap=_.r("swatchie_video_owner_on_tap_ks");t.swatcherooDelayLoad=
_.r("swatcheroo_enable_ghost_cards");t.primaryMenuWidth=0;t.videoId="";t.titleHeadlineXs=_.r("web_watch_typography_title_headline_xs");t.titleHeadlineS=_.r("web_watch_typography_title_headline_s");t.titleHeadlineM=_.r("web_watch_typography_title_headline_m");t.titleHashtagBlackLinkified=_.r("web_title_hashtag_black_linkified");t.titleHashtagGreyLinkified=_.r("web_title_hashtag_grey_linkified");t.actionButtonsUpdateOwnerWidth=_.r("web_action_buttons_update_owner_width");t.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};t.isFullscreen=!1;t.isTheaterMode=!1;return t};
_.u(A5,_.z);_.Y=A5.prototype;_.Y.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.Y.updateOwnerAndDescriptionPosition=function(){_.r("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),lM(this.bottomRowElement,this.ownerElement)):(lM(this.bottomRowElement,this.descriptionElement),lM(this.topRowElement,this.ownerElement)))};
_.Y.titleOnTap=function(t){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.Qb(_.Vx(t)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var E;((E=window.getSelection())==null?0:E.toString().length)||this.handleExpandDescriptionCommands()}};
_.Y.videoOwnerOnTap=function(t){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.Qb(_.Vx(t)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.Y.detached=function(){var t=this,E;return _.q(function(p){(E=t.resizeObserver)==null||E.disconnect();_.Do(p)})};
_.Y.maybeAttachResizeObserver=function(){var t=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.F5(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){t.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.Y.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var t=this.hostElement.clientWidth,E=Math.max(this.largerItemWrap?400:350,t/2-nJd);_.r("web_action_buttons_update_owner_width")&&(E=this.ownerElement.clientWidth+nJd);this.actionsOnSeparateLine=this.primaryMenuWidth>t-E?!0:!1}};
_.Y.stripAttributedDescription=function(t){return{content:t.content.replace(/[\r\n]{2,}/g,"\n")}};
_.Y.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.r("web_modern_buttons"),forceIconButton:!_.r("web_modern_buttons")},properties:{topLevelIconsOnly:"[[skinnyMode]]"}}},events:!0},"videoSecondaryInfoRenderer.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",
params:{withCount:!0,showTextWhileAnimating:!0,forceIconOnly:!0}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},commentsEntryPointHeaderRenderer:{id:"comment-teaser",mapping:{commentsEntryPointHeaderRenderer:"ytd-comments-entry-point-header-renderer"}},videoMetadataCarousel:{id:"teaser-carousel",mapping:{videoMetadataCarouselViewModel:"yt-video-metadata-carousel-view-model"}},infoPanelBelowMetadata:{id:"middle-row",mapping:{infoPanelContentRenderer:"ytd-info-panel-content-renderer"}}}};
_.Y.videoPrimaryInfoRendererChanged=function(){var t;if((t=this.videoPrimaryInfoRenderer)==null?0:t.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.Y.videoSecondaryInfoRendererChanged=function(){var t,E;(t=this.descriptionInlineExpander)==null||(E=t.collapse)==null||E.call(t);this.descriptionExpandClientVe=_.h8(110509);this.descriptionCollapseClientVe=_.h8(110510);t=_.yL();E=_.vV();t&&E&&(_.r("combine_ve_grafts")?(_.Tw(_.Pu(),this.descriptionExpandClientVe,E),_.Tw(_.Pu(),this.descriptionCollapseClientVe,E)):_.Mc(t,E,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.Y.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.Y.updateTopLevelIconsOnly=function(){var t=this;_.r("top_level_update_killswitch")||this.menu&&_.ir.addLowPriorityJob(function(){t.menu.topLevelIconsOnly=t.skinnyMode},_.z3("swathceroo_delay_flexible_menu_update",100))};
_.Y.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.Y.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.Y.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.Y.onYtTextInlineExpanderExpandedChanged=function(){if(!_.r("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var t,E;(E=(t=this.structuredDescriptionContentRendererElement).resize)==null||E.call(t)}};
_.Y.onRenderStamperFinished=function(t){(t==null?void 0:t.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.Y.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.Y.onYtExpanderLessTapped=function(){var t,E=(t=this.videoSecondaryInfoRenderer)==null?void 0:t.showLessCommand;E&&this.ytComponentBehavior.resolveCommand(E)};
_.Y.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.Y.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.Y.onDescriptionClick=function(t){if(!_.Qb(_.Vx(t)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var E;((E=window.getSelection())==null?0:E.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.r("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.Y.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.Y.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.Y.logCollapseClick=function(){var t=_.yL();t&&this.descriptionCollapseClientVe&&_.qc(t,this.descriptionCollapseClientVe)};
_.Y.logExpandClick=function(){var t=_.yL();t&&this.descriptionExpandClientVe&&_.qc(t,this.descriptionExpandClientVe)};
_.Y.collapseDescription=function(){this.descriptionCollapsed=!0};
_.Y.scrollToTopOfContainer=function(){_.du(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.Y.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.Y.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.Y.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.Y.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var t,E;(E=(t=this.descriptionInlineExpander).resize)==null||E.call(t)}else _.qW(new _.cC("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var p;(p=this.menu)==null||p.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.Y.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var t,E,p,U,x=_.r("web_action_buttons_update_owner_width")?(p=(t=_.ZN(this.menu).querySelector("#button-shape"))==null?void 0:t.clientWidth)!=null?p:0:(U=(E=_.ZN(this.menu).querySelector("#button"))==null?void 0:E.clientWidth)!=null?U:0,A,m;t=((m=(A=_.ZN(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:A.clientWidth)!=null?m:0)+8+x;var b,f;x=(f=(b=_.ZN(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:b.children.length)!=null?f:2;t<=8*x||(this.primaryMenuWidth=t)}};
_.Y.onYtUpdateTitleAction=function(t){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.k(t,iUl).title)};
_.Y.onYtUpdateDescriptionAction=function(t){if(t=_.k(t,_.DTm)){var E,p=!((E=this.videoSecondaryInfoRenderer)==null||!E.attributedDescription);t.isEmpty||!t.description&&!t.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):t.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",t.attributedDescription):t.description&&(p?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.En(t.description)):this.set("videoSecondaryInfoRenderer.description",t.description))}};
_.Y.onYtDarkModeToggledAction=function(t){this.isDark=t};
_.Y.registerPanel=function(){if(!_.r("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var t=_.r("web_watch_imax_theater_mode")&&this.isTheaterMode;t=_.r("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||t;var E=_.X3().resolve(_.mp);E&&!t&&E.registerPanel("engagement-panel-structured-description",this)}};
_.Y.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.Y.parseColorSamplingData=function(){var t;if(_.r("web_delhi_colorful_sd")&&((t=this.structuredDescriptionContentRenderer)==null?0:t.items)&&(t=this.structuredDescriptionContentRenderer.items.find(function(x){return!!_.k(x,eP)}))){var E,p;
this.hoverColor={lightTheme:(E=_.k(t,eP))==null?void 0:E.lightThemeColorPalette,darkTheme:(p=_.k(t,eP))==null?void 0:p.darkThemeColorPalette};var U;this.hoverText=(U=_.k(t,eP))==null?void 0:U.colorSampledDescriptionBodyText}};
_.Y.updateHoverColor=function(){if(_.r("web_delhi_colorful_sd")){var t=this.hoverColor,E={},p;t=(p=this.isDark?t==null?void 0:t.darkTheme:t==null?void 0:t.lightTheme)!=null?p:{};p=_.M(O5l);for(var U=p.next();!U.done;U=p.next()){U=U.value;var x=t[U];E["--yt-saturated-"+_.ai(U)]=x?_.cL(x):"initial"}_.eU(this.hostElement,E)}};
_.Y.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.Y.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.Y.showPanel=function(t){this.expandDescription();var E=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;E.resize();var p,U=t==null?void 0:(p=t.sectionListEngagementPanelExtras)==null?void 0:p.scrollToItemSectionIdentifier;U?_.ir.addJob(function(){E==null||E.scrollToSection(U)},8):this.scrollToTopOfContainer()};
_.Y.isVisible=function(){return!this.descriptionCollapsed};
_.Y.getReloadContinuation=function(){};
_.Y.hidePanel=function(){};
_.Y.updatePanel=function(){};
_.aE.Object.defineProperties(A5.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var t;return _.r("web_delhi_colorful_sd")&&(t=this.structuredDescriptionContentRenderer)!=null&&t.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(E){return!_.k(E,eP)&&!_.k(E,w_b)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.structuredDescriptionContentRendererComputed)!=null&&t.items){var E;t=_.M((E=this.structuredDescriptionContentRendererComputed)==null?void 0:E.items);for(E=t.next();!E.done;E=t.next())if(E=_.k(E.value,_.aZG))return E}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.videoPrimaryInfoRenderer)==null?0:t.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return!!((t=this.videoSecondaryInfoRenderer)==null?0:(E=t.owner)==null?0:(p=E.videoOwnerRenderer)==null?0:p.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var t,E;if((t=this.videoSecondaryInfoRenderer)==null?0:(E=t.attributedDescription)==null?0:E.content){var p,U;return(U=this.stripAttributedDescription((p=this.videoSecondaryInfoRenderer)==null?void 0:p.attributedDescription))!=null?U:{runs:[]}}}if(_.r("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var x,A,m,b;return(b=(m=(x=this.videoSecondaryInfoRenderer)==
null?void 0:x.description)!=null?m:(A=this.videoSecondaryInfoRenderer)==null?void 0:A.attributedDescription)!=null?b:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var t,E;return(E=(t=this.videoSecondaryInfoRenderer)==null?void 0:t.headerRuns)!=null?E:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.commentsEntryPointHeaderRenderer)==null||!t.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.videoMetadataCarousel)==null||!t.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.z3("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var t,E,p=Object.assign({},(t=this.videoSecondaryInfoRenderer)==null?void 0:(E=t.metadataRowContainer)==null?void 0:E.metadataRowContainerRenderer);if(p&&p.rows&&p.collapsedItemCount!==void 0&&!(p.rows.length<=p.collapsedItemCount))return p.rows=p.rows.slice(p.collapsedItemCount),p.collapsedItemCount=0,p}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var t,E,p=Object.assign({},(t=this.videoSecondaryInfoRenderer)==null?void 0:(E=t.metadataRowContainer)==null?void 0:E.metadataRowContainerRenderer);if(p&&p.rows&&p.collapsedItemCount!==void 0)return p.rows=p.rows.slice(0,p.collapsedItemCount),p.collapsedItemCount=p.rows.length,p}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var t,E;return!!((t=this.structuredDescriptionContentRendererComputed)==null?0:(E=t.items)==null?0:E.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 t;return(t=this.videoSecondaryInfoRenderer)==null?void 0:t.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return((t=this.videoSecondaryInfoRenderer)==null?0:(E=t.owner)==null?0:(p=E.videoOwnerRenderer)==null?0:p.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var t,E,p,U;return!!((t=this.videoPrimaryInfoRenderer)==null?0:(E=t.videoActions)==null?0:(p=E.menuRenderer)==null?0:(U=p.flexibleItems)==null?0:U.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.Bs(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.Bs(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var t=this;if(_.r("web_title_hashtag_grey_delinkified")){var E,p=_.Kq.unsafeClone((E=this.videoPrimaryInfoRenderer)==null?void 0:E.title);(E=p==null?void 0:p.runs)&&E.forEach(function(U){if(U==null?0:U.navigationEndpoint)U.textColor=4284506208,t.isDark&&(U.textColor=4289374890)});
return p}return(p=this.videoPrimaryInfoRenderer)==null?void 0:p.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.r("web_title_hashtag_black_delinkified")||_.r("web_title_hashtag_grey_delinkified")}}});
A5.prototype.updateHoverColor=A5.prototype.updateHoverColor;A5.prototype.parseColorSamplingData=A5.prototype.parseColorSamplingData;A5.prototype.resetDescriptionState=A5.prototype.resetDescriptionState;A5.prototype.registerPanel=A5.prototype.registerPanel;A5.prototype.onYtExpanderLessTapped=A5.prototype.onYtExpanderLessTapped;A5.prototype.onYtExpanderMoreTapped=A5.prototype.onYtExpanderMoreTapped;A5.prototype.onRenderStamperFinished=A5.prototype.onRenderStamperFinished;
A5.prototype.onYtTextInlineExpanderExpandedChanged=A5.prototype.onYtTextInlineExpanderExpandedChanged;A5.prototype.onYtTextInlineExpanderCollapseClicked=A5.prototype.onYtTextInlineExpanderCollapseClicked;A5.prototype.onYtTextInlineExpanderExpandClicked=A5.prototype.onYtTextInlineExpanderExpandClicked;A5.prototype.moveActionsElement=A5.prototype.moveActionsElement;A5.prototype.updateTopLevelIconsOnly=A5.prototype.updateTopLevelIconsOnly;A5.prototype.structuredDescriptionContentRendererChanged=A5.prototype.structuredDescriptionContentRendererChanged;
A5.prototype.videoSecondaryInfoRendererChanged=A5.prototype.videoSecondaryInfoRendererChanged;A5.prototype.videoPrimaryInfoRendererChanged=A5.prototype.videoPrimaryInfoRendererChanged;A5.prototype.maybeUpdateActionsOnSeparateLine=A5.prototype.maybeUpdateActionsOnSeparateLine;A5.prototype.updateOwnerAndDescriptionPosition=A5.prototype.updateOwnerAndDescriptionPosition;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],A5.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],A5.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],A5.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],A5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],A5.prototype,"ytdReduxBehavior",void 0);
_.N([_.Nl("#above-the-fold"),_.P("design:type",HTMLElement)],A5.prototype,"aboveTheFoldContainer",void 0);_.N([_.Nl("#menu ytd-menu-renderer"),_.P("design:type",Object)],A5.prototype,"menu",void 0);_.N([_.Nl("#description-inline-expander"),_.P("design:type",Object)],A5.prototype,"descriptionInlineExpander",void 0);_.N([_.Nl("#faded-structured-description"),_.P("design:type",Object)],A5.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);
_.N([_.Nl("#structured-description"),_.P("design:type",Object)],A5.prototype,"structuredDescriptionContentRendererElement",void 0);_.N([_.Nl("#title"),_.P("design:type",HTMLElement)],A5.prototype,"titleElement",void 0);_.N([_.Nl("#description"),_.P("design:type",HTMLElement)],A5.prototype,"descriptionElement",void 0);_.N([_.Nl("#description-interaction"),_.P("design:type",Object)],A5.prototype,"descriptionInteraction",void 0);
_.N([_.Nl("#owner"),_.P("design:type",HTMLElement)],A5.prototype,"ownerElement",void 0);_.N([_.Nl("#top-row"),_.P("design:type",HTMLElement)],A5.prototype,"topRowElement",void 0);_.N([_.Nl("#bottom-row"),_.P("design:type",HTMLElement)],A5.prototype,"bottomRowElement",void 0);_.N([_.Nl("#actions"),_.P("design:type",HTMLElement)],A5.prototype,"actionsElement",void 0);_.N([_.Nl("#bottom-actions"),_.P("design:type",HTMLElement)],A5.prototype,"bottomActionsElement",void 0);
_.N([_.Nl("#ytd-watch-info-text"),_.P("design:type",Object)],A5.prototype,"watchInfoTextElement",void 0);_.N([_.e(),_.P("design:type",Object)],A5.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],A5.prototype,"videoPrimaryInfoRenderer",void 0);_.N([_.e(),_.P("design:type",Object)],A5.prototype,"videoSecondaryInfoRenderer",void 0);_.N([_.e(),_.P("design:type",Object)],A5.prototype,"commentsEntryPointHeaderRenderer",void 0);
_.N([_.e(),_.P("design:type",Object)],A5.prototype,"videoMetadataCarousel",void 0);_.N([_.e(),_.P("design:type",Object)],A5.prototype,"structuredDescriptionContentRenderer",void 0);_.N([_.Z("structuredDescriptionContentRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],A5.prototype,"structuredDescriptionContentRendererComputed",null);_.N([_.e(),_.P("design:type",Object)],A5.prototype,"videoSummary",void 0);_.N([_.e(),_.P("design:type",Object)],A5.prototype,"merchShelf",void 0);
_.N([_.e(),_.P("design:type",Object)],A5.prototype,"infoPanelBelowMetadata",void 0);_.N([_.e(),_.P("design:type",Object)],A5.prototype,"hoverColor",void 0);_.N([_.e(),_.P("design:type",Object)],A5.prototype,"hoverText",void 0);_.N([_.e(),_.P("design:type",Object)],A5.prototype,"isHovering",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],A5.prototype,"enableColorSampling",void 0);
_.N([_.Z("structuredDescriptionContentRendererComputed"),_.P("design:type",Object),_.P("design:paramtypes",[])],A5.prototype,"productShelf",null);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],A5.prototype,"metadataBadgesInDescription",void 0);_.N([_.Z("videoPrimaryInfoRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],A5.prototype,"shouldHideBadges",null);
_.N([_.Z("productShelf","descriptionCollapsed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],A5.prototype,"shouldShowProductShelf",null);_.N([_.e(),_.P("design:type",Boolean)],A5.prototype,"isWatchFlexy",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],A5.prototype,"descriptionCollapsed",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],A5.prototype,"useFadedScrimDescription",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],A5.prototype,"skinnyMode",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("videoSecondaryInfoRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],A5.prototype,"largerItemWrap",null);_.N([_.e(),_.P("design:type",Object)],A5.prototype,"playlist",void 0);_.N([_.e(),_.P("design:type",Object)],A5.prototype,"clarifyBox",void 0);_.N([_.e(),_.P("design:type",Object)],A5.prototype,"playerAds",void 0);
_.N([_.e(),_.P("design:type",Boolean)],A5.prototype,"isDark",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],A5.prototype,"actionsOnSeparateLine",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],A5.prototype,"disableVideoOwnerOnTap",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],A5.prototype,"swatcherooDelayLoad",void 0);_.N([_.e(),_.P("design:type",Boolean)],A5.prototype,"suppressTopLevelMetadataRows",void 0);
_.N([_.e(),_.P("design:type",Object)],A5.prototype,"primaryMenuWidth",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],A5.prototype,"videoId",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],A5.prototype,"titleHeadlineXs",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],A5.prototype,"titleHeadlineS",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],A5.prototype,"titleHeadlineM",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],A5.prototype,"titleHashtagBlackLinkified",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],A5.prototype,"titleHashtagGreyLinkified",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],A5.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.N([_.P3("skinnyMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A5.prototype,"updateOwnerAndDescriptionPosition",null);
_.N([_.P3("skinnyMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A5.prototype,"maybeUpdateActionsOnSeparateLine",null);_.N([_.Z("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.P("design:type",Object),_.P("design:paramtypes",[])],A5.prototype,"descriptionText",null);
_.N([_.Z("videoSecondaryInfoRenderer.headerRuns"),_.P("design:type",Array),_.P("design:paramtypes",[])],A5.prototype,"headerRuns",null);_.N([_.e({value:!1}),_.Z("commentsEntryPointHeaderRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],A5.prototype,"hasTeaser",null);_.N([_.e({value:!1,reflectToAttribute:!0}),_.Z("videoMetadataCarousel"),_.P("design:type",Object),_.P("design:paramtypes",[])],A5.prototype,"hasTeaserCarousel",null);
_.N([_.e({value:3}),_.Z("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.P("design:type",Object),_.P("design:paramtypes",[])],A5.prototype,"descriptionMaxLines",null);_.N([_.Z("videoSecondaryInfoRenderer.metadataRowContainer"),_.P("design:type",Object),_.P("design:paramtypes",[])],A5.prototype,"collapsibleMetadataRows",null);
_.N([_.Z("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.P("design:type",Object),_.P("design:paramtypes",[])],A5.prototype,"alwaysVisibleMetadataRows",null);_.N([_.Z("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],A5.prototype,"hasInlineStructuredDescription",null);
_.N([_.Z("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],A5.prototype,"showInlineStructuredDescription",null);_.N([_.Z("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],A5.prototype,"descriptionExpandCommand",null);
_.N([_.Z("videoSecondaryInfoRenderer.owner"),_.P("design:type",Object),_.P("design:paramtypes",[])],A5.prototype,"videoOwnerCommand",null);_.N([_.e({reflectToAttribute:!0}),_.Z("videoPrimaryInfoRenderer.videoActions"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],A5.prototype,"flexMenuEnabled",null);_.N([_.e({selector:_.EY,reflectToAttribute:!0}),_.P("design:type",Object)],A5.prototype,"isFullscreen",void 0);
_.N([_.e({selector:_.t8,reflectToAttribute:!0}),_.P("design:type",Object)],A5.prototype,"isTheaterMode",void 0);_.N([_.Z("descriptionText","useFadedScrimDescription"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],A5.prototype,"showAttributedStringDescription",null);_.N([_.Z("descriptionText","useFadedScrimDescription"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],A5.prototype,"showFormattedStringDescription",null);
_.N([_.Z("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],A5.prototype,"showFadedStructuredDescription",null);_.N([_.P3("videoPrimaryInfoRenderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A5.prototype,"videoPrimaryInfoRendererChanged",null);_.N([_.Z("videoPrimaryInfoRenderer.title"),_.P("design:type",Object),_.P("design:paramtypes",[])],A5.prototype,"videoTitle",null);
_.N([_.Z("videoPrimaryInfoRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],A5.prototype,"noEndpoints",null);_.N([_.P3("videoSecondaryInfoRenderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A5.prototype,"videoSecondaryInfoRendererChanged",null);
_.N([_.GI("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A5.prototype,"structuredDescriptionContentRendererChanged",null);_.N([_.GI("skinnyMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A5.prototype,"updateTopLevelIconsOnly",null);
_.N([_.GI("skinnyMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A5.prototype,"moveActionsElement",null);_.N([_.lc("yt-text-inline-expander-expand-clicked"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A5.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.N([_.lc("yt-text-inline-expander-collapse-clicked"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A5.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.N([_.lc("yt-text-inline-expander-expanded-changed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A5.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.N([_.lc("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],A5.prototype,"onRenderStamperFinished",null);_.N([_.lc("yt-expander-more-tapped"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A5.prototype,"onYtExpanderMoreTapped",null);_.N([_.lc("yt-expander-less-tapped"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A5.prototype,"onYtExpanderLessTapped",null);
_.N([_.GI("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A5.prototype,"registerPanel",null);_.N([_.GI("videoSecondaryInfoRenderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A5.prototype,"resetDescriptionState",null);
_.N([_.GI("structuredDescriptionContentRenderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A5.prototype,"parseColorSamplingData",null);_.N([_.GI("hoverColor","isDark"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A5.prototype,"updateHoverColor",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-watch-metadata"})],A5);
_.G(A5,"ytd-watch-metadata",function(){if(Z5t!==void 0)return Z5t;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Z5t=t},{mode:2});var YB=function(){var t=_.z.apply(this,arguments)||this;t.hidden=!1;t.errorScreen=null;t.playlistData={};return t};
_.u(YB,_.z);_.Y=YB.prototype;_.Y.getPlayer=function(){return this.ytdPlayer};
_.Y.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:gq(["aa","eocs"])}}};
_.Y.onActiveChanged=function(){_.QM().dispatch(AB5(this.ytPageBehavior.active))};
_.Y.playerDataChanged=function(){var t;(t=this.watchController)==null||t.setPlayerResponse(this.playerData)};
_.Y.dataChanged=function(){var t;(t=this.watchController)==null||t.setWatchNextResponse(this.data)};
_.Y.sizeChanged=function(){var t,E;(E=(t=this.metadata).resize)==null||E.call(t)};
_.Y.attached=function(){this.watchController=new ta(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.Y.detached=function(){_.wi(this.watchController);this.watchController=void 0};
_.Y.getPlayerContainer=function(){return this.playerContainer};
_.Y.getElement=function(t){switch(t){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.Y.provideRenderingData=function(t,E){switch(t){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=E;break;case "ERROR_SCREEN":this.errorScreen=E!=null?E:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=E;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=E;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=E;break;case "RICH_METADATA":this.richMetadataRowContainer=E;break;case "CLARIFICATION":this.clarificationData=E;break;case "PLAYLIST":this.playlistData=
E!=null?E:{};break;case "MERCH_SHELF":this.merchShelf=E;break;case "TICKET_SHELF":this.ticketShelf=E;break;case "LIMITED_STATE":this.limitedState=E;break;case "DONATION_SHELF":this.donationShelf=E;break;case "ALERTS":this.alerts=E}};
_.aE.Object.defineProperties(YB.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return!this.hidden&&!!((t=this.data)==null?0:(E=t.contents)==null?0:(p=E.twoColumnWatchNextResults)==null?0:p.conversationBar)}}});
YB.prototype.sizeChanged=YB.prototype.sizeChanged;YB.prototype.dataChanged=YB.prototype.dataChanged;YB.prototype.playerDataChanged=YB.prototype.playerDataChanged;YB.prototype.onActiveChanged=YB.prototype.onActiveChanged;_.N([_.g(jz.YtPageBehavior),_.P("design:type",Object)],YB.prototype,"ytPageBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],YB.prototype,"ytComponentBehavior",void 0);
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],YB.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],YB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],YB.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],YB.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],YB.prototype,"playerData",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],YB.prototype,"hidden",void 0);_.N([_.Nl("#ytd-player"),_.P("design:type",HTMLElement)],YB.prototype,"ytdPlayer",void 0);_.N([_.Nl("#player-container"),_.P("design:type",HTMLElement)],YB.prototype,"playerContainer",void 0);_.N([_.Nl("#metadata"),_.P("design:type",Object)],YB.prototype,"metadata",void 0);_.N([_.Nl("#playlist"),_.P("design:type",HTMLElement)],YB.prototype,"playlistPanel",void 0);
_.N([_.e({selector:Ft7,reflectToAttribute:!0}),_.P("design:type",Object)],YB.prototype,"fixie",void 0);_.N([_.e({selector:_.zEt,reflectToAttribute:!0}),_.P("design:type",Object)],YB.prototype,"singleColumn",void 0);_.N([_.e({selector:function(t){return _.t8(t)&&!_.EY(t)},
reflectToAttribute:!0}),_.P("design:type",Object)],YB.prototype,"theater",void 0);_.N([_.e({selector:_.EY,reflectToAttribute:!0}),_.P("design:type",Object)],YB.prototype,"fullscreen",void 0);_.N([_.e({selector:eBl}),_.P("design:type",Object)],YB.prototype,"windowSize",void 0);_.N([_.e(),_.P("design:type",Object)],YB.prototype,"singleColumnContents",void 0);_.N([_.e(),_.P("design:type",Object)],YB.prototype,"errorScreen",void 0);_.N([_.e(),_.P("design:type",Object)],YB.prototype,"playlistData",void 0);
_.N([_.e(),_.P("design:type",Object)],YB.prototype,"videoPrimaryInfoRenderer",void 0);_.N([_.e(),_.P("design:type",Object)],YB.prototype,"videoSecondaryInfoRenderer",void 0);_.N([_.e(),_.P("design:type",Object)],YB.prototype,"richMetadataRowContainer",void 0);_.N([_.e(),_.P("design:type",Object)],YB.prototype,"clarificationData",void 0);_.N([_.e(),_.P("design:type",Object)],YB.prototype,"commentsEntryPointHeaderRenderer",void 0);_.N([_.e(),_.P("design:type",Object)],YB.prototype,"ticketShelf",void 0);
_.N([_.e(),_.P("design:type",Object)],YB.prototype,"merchShelf",void 0);_.N([_.e(),_.P("design:type",Object)],YB.prototype,"donationShelf",void 0);_.N([_.e(),_.P("design:type",Object)],YB.prototype,"limitedState",void 0);_.N([_.e(),_.P("design:type",Object)],YB.prototype,"alerts",void 0);_.N([_.Z("playlistData"),_.P("design:type",Object),_.P("design:paramtypes",[])],YB.prototype,"hasPlaylistData",null);
_.N([_.Z("data","hidden"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],YB.prototype,"hasChat",null);_.N([_.GI("active"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],YB.prototype,"onActiveChanged",null);_.N([_.GI("playerData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],YB.prototype,"playerDataChanged",null);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],YB.prototype,"dataChanged",null);_.N([_.GI("windowSize","singleColumn"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],YB.prototype,"sizeChanged",null);
_.G(YB,"ytd-watch-fixie",function(){if(xuL===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);xuL=t}t=xuL;return t},{mode:1});var NK8;var Ms=function(){var t=_.z.apply(this,arguments)||this;t.viewTransitionEnabled=_.r("enable_player_resize_transition");t.smallerChatMinHeight=_.r("live_chat_smaller_min_height");t.isDarkTheme=document.documentElement.hasAttribute("dark");t.defaultCollapsePlaylist=_.r("web_watch_default_collapse_playlist");t.respectAspectRatio=_.r("web_enable_aspect_ratio_fix");t.retroModeReduxValue=!1;t.persistentPanelVisibleValue=!1;return t};
_.u(Ms,_.z);_.Y=Ms.prototype;_.Y.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.Y.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.Y.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.Y.updateRetroModeReduxValue=function(){_.r("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.Y.updatePersistentPanelVisibleValue=function(){_.r("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.Y.ready=function(){var t=this,E=function(){t.onColumnScroll()};
this.primary.addEventListener("scroll",E);this.secondary.addEventListener("scroll",E)};
_.Y.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.Y.updateIsTwoColumnsFromBinding=function(t){_.r("web_watch_update_narrow_width_killswitch")||_.QM().dispatch(YWt(!t.detail.value));this.ytdWatchBehavior.isTwoColumns_=t.detail.value};
_.Y.updateFlexySmallWindowFromBinding=function(t){this.ytdWatchBehavior.flexySmallWindow_=t.detail.value};
_.Y.updateFlexyLargeWindowFromBinding=function(t){this.ytdWatchBehavior.flexyLargeWindow_=t.detail.value};
_.Y.updateWatchWhileWindowSizeSufficientFromBinding=function(t){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=t.detail.value};
_.Y.updateWatchNextCanShowMoreFromBinding=function(t){this.ytdWatchBehavior.watchNextCanShowMore=t.detail.value};
_.Y.updateShownItemsFromBinding=function(t){t.detail.path?this.set(t.detail.path,t.detail.value):this.ytdWatchBehavior.watchNextShownItems=t.detail.value};
_.Y.getElement=function(t){switch(t){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22154_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22154_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}};
_.aE.Object.defineProperties(Ms.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null||!t.pageVisualEffects)return!1;for(var E=0;E<this.data.pageVisualEffects.length;E++)if(t=_.k(this.data.pageVisualEffects[E],hP))return E=void 0,(E=t.config)==null?void 0:E.enableInLightTheme;return!1}}});
_.aE.Object.defineProperties(Ms,{template:{configurable:!0,enumerable:!0,get:function(){if(NK8===void 0){var t=document.createElement("template");_.J(t,'\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" hidden$="[[!showGhostMetadata]]">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy" hidden$="[[!showGhostRelated]]"></div>\n      </div>\n      <div id="persistent-panel-container" class="style-scope ytd-watch-flexy"></div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);NK8=t}t=NK8;return t}}});
Ms.prototype.updatePersistentPanelVisibleValue=Ms.prototype.updatePersistentPanelVisibleValue;Ms.prototype.updateRetroModeReduxValue=Ms.prototype.updateRetroModeReduxValue;Ms.prototype.updateScrollTopValue=Ms.prototype.updateScrollTopValue;Ms.prototype.updateFullscreenValue=Ms.prototype.updateFullscreenValue;Ms.prototype.updateTheaterValue=Ms.prototype.updateTheaterValue;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ms.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Ms.prototype,"ytComponentBehavior",void 0);_.N([_.g(EPt.YtdWatchBehavior),_.P("design:type",Object)],Ms.prototype,"ytdWatchBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],Ms.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Ms.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Ms.prototype,"playerData",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Ms.prototype,"viewTransitionEnabled",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Ms.prototype,"smallerChatMinHeight",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Ms.prototype,"isDarkTheme",void 0);_.N([_.e(),_.P("design:type",Object)],Ms.prototype,"defaultCollapsePlaylist",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Ms.prototype,"respectAspectRatio",void 0);
_.N([_.e({selector:_.t8}),_.P("design:type",Object)],Ms.prototype,"theaterValue",void 0);_.N([_.e({selector:_.EY}),_.P("design:type",Object)],Ms.prototype,"fullscreenValue",void 0);_.N([_.e({selector:wr}),_.P("design:type",Object)],Ms.prototype,"scrollTopValue",void 0);_.N([_.e({selector:_.E5}),_.P("design:type",Object)],Ms.prototype,"miniplayerIsActive",void 0);_.N([_.e({selector:function(t){return t.watch.isWatchRetroMode}}),
_.P("design:type",Object)],Ms.prototype,"retroModeReduxValue",void 0);_.N([_.e({selector:_.i7.persistentPanelVisibleSelector}),_.P("design:type",Object)],Ms.prototype,"persistentPanelVisibleValue",void 0);_.N([Bz("ytd-player"),_.P("design:type",HTMLElement)],Ms.prototype,"ytdPlayer",void 0);_.N([_.Nl("#playlist"),_.P("design:type",HTMLElement)],Ms.prototype,"JSC$22154_ytdPlaylistPanelRenderer",void 0);_.N([Bz("ytd-comments"),_.P("design:type",HTMLElement)],Ms.prototype,"ytdComments",void 0);
_.N([_.Nl("#primary"),_.P("design:type",HTMLElement)],Ms.prototype,"primary",void 0);_.N([_.Nl("#secondary"),_.P("design:type",HTMLElement)],Ms.prototype,"secondary",void 0);_.N([_.Nl("#player-container"),_.P("design:type",HTMLElement)],Ms.prototype,"playerContainer",void 0);_.N([_.Nl("#below"),_.P("design:type",HTMLElement)],Ms.prototype,"below",void 0);_.N([_.Nl("#cinematics"),_.P("design:type",HTMLElement)],Ms.prototype,"JSC$22154_cinematics",void 0);
_.N([_.Nl("#persistent-panel-container"),_.P("design:type",HTMLElement)],Ms.prototype,"persistentPanelContainer",void 0);_.N([_.GI("theaterValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ms.prototype,"updateTheaterValue",null);_.N([_.GI("fullscreenValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ms.prototype,"updateFullscreenValue",null);
_.N([_.GI("scrollTopValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ms.prototype,"updateScrollTopValue",null);_.N([_.GI("retroModeReduxValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ms.prototype,"updateRetroModeReduxValue",null);_.N([_.GI("persistentPanelVisibleValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ms.prototype,"updatePersistentPanelVisibleValue",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ms.prototype,"cinematicLightTheme",null);_.N([_.Ul({is:"ytd-watch-flexy"})],Ms);var Du7;var sYg;var L2b=function(){return _.z.apply(this,arguments)||this};
_.u(L2b,_.z);_.N([_.Ul({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],L2b);
_.G(L2b,"ytd-ghost-comments-renderer",function(){if(sYg===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);sYg=t}t=sYg;return t},{mode:1});var Pjg;var TKC=function(){return _.z.apply(this,arguments)||this};
_.u(TKC,_.z);_.N([_.Ul({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],TKC);
_.G(TKC,"ytd-ghost-watch-metadata-renderer",function(){if(Pjg===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);Pjg=t}t=Pjg;return t},{mode:1});var mX=function(){var t=_.z.apply(this,arguments)||this;t.ghostGridRenderer={rows:6};t.smallerChatMinHeight=_.r("live_chat_smaller_min_height");t.darkerPanels=_.r("web_watch_darker_panels");t.isDarkTheme=document.documentElement.hasAttribute("dark");return t};
_.u(mX,_.z);_.Y=mX.prototype;_.Y.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.Y.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.Y.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.Y.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.Y.ready=function(){var t=this,E=function(){t.onColumnScroll()};
this.primary.addEventListener("scroll",E);this.secondary.addEventListener("scroll",E)};
_.Y.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.Y.updateIsTwoColumnsFromBinding=function(t){this.ytdWatchBehavior.isTwoColumns_=t.detail.value};
_.Y.updateFlexySmallWindowFromBinding=function(t){this.ytdWatchBehavior.flexySmallWindow_=t.detail.value};
_.Y.updateFlexyLargeWindowFromBinding=function(t){this.ytdWatchBehavior.flexyLargeWindow_=t.detail.value};
_.Y.updateWatchWhileWindowSizeSufficientFromBinding=function(t){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=t.detail.value};
_.Y.updateWatchNextCanShowMoreFromBinding=function(t){this.ytdWatchBehavior.watchNextCanShowMore=t.detail.value};
_.Y.updateShownItemsFromBinding=function(t){_.r("swatcheroo_direct_use_rich_grid")||(t.detail.path?this.set(t.detail.path,t.detail.value):this.ytdWatchBehavior.watchNextShownItems=t.detail.value)};
_.Y.getElement=function(t){switch(t){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22159_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22159_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.aE.Object.defineProperties(mX.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null||!t.pageVisualEffects)return!1;for(var E=0;E<this.data.pageVisualEffects.length;E++)if(t=_.k(this.data.pageVisualEffects[E],hP))return E=void 0,(E=t.config)==null?void 0:E.enableInLightTheme;return!1}}});
mX.prototype.updateMiniplayerIsActiveValue=mX.prototype.updateMiniplayerIsActiveValue;mX.prototype.updateScrollTopValue=mX.prototype.updateScrollTopValue;mX.prototype.updateFullscreenValue=mX.prototype.updateFullscreenValue;mX.prototype.updateTheaterValue=mX.prototype.updateTheaterValue;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],mX.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],mX.prototype,"ytComponentBehavior",void 0);
_.N([_.g(EPt.YtdWatchBehavior),_.P("design:type",Object)],mX.prototype,"ytdWatchBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],mX.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],mX.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],mX.prototype,"ghostGridRenderer",void 0);_.N([_.e(),_.P("design:type",Object)],mX.prototype,"playerData",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],mX.prototype,"smallerChatMinHeight",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],mX.prototype,"darkerPanels",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],mX.prototype,"isDarkTheme",void 0);_.N([_.e({selector:_.t8}),_.P("design:type",Object)],mX.prototype,"theaterValue",void 0);_.N([_.e({selector:_.EY}),_.P("design:type",Object)],mX.prototype,"fullscreenValue",void 0);_.N([_.e({selector:wr}),_.P("design:type",Object)],mX.prototype,"scrollTopValue",void 0);
_.N([_.e({selector:_.E5}),_.P("design:type",Object)],mX.prototype,"miniplayerIsActiveValue",void 0);_.N([_.Nl("#ytd-player"),_.P("design:type",HTMLElement)],mX.prototype,"ytdPlayer",void 0);_.N([_.Nl("#playlist"),_.P("design:type",HTMLElement)],mX.prototype,"JSC$22159_ytdPlaylistPanelRenderer",void 0);_.N([_.Nl("#ytd-comments"),_.P("design:type",HTMLElement)],mX.prototype,"ytdComments",void 0);_.N([_.Nl("#primary"),_.P("design:type",HTMLElement)],mX.prototype,"primary",void 0);
_.N([_.Nl("#secondary"),_.P("design:type",HTMLElement)],mX.prototype,"secondary",void 0);_.N([_.Nl("#player-container"),_.P("design:type",HTMLElement)],mX.prototype,"playerContainer",void 0);_.N([_.Nl("#cinematics"),_.P("design:type",HTMLElement)],mX.prototype,"JSC$22159_cinematics",void 0);_.N([_.GI("theaterValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mX.prototype,"updateTheaterValue",null);
_.N([_.GI("fullscreenValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mX.prototype,"updateFullscreenValue",null);_.N([_.GI("scrollTopValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mX.prototype,"updateScrollTopValue",null);_.N([_.GI("miniplayerIsActiveValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mX.prototype,"updateMiniplayerIsActiveValue",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],mX.prototype,"cinematicLightTheme",null);
_.G(mX,"ytd-watch-grid",function(){if(Du7===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);Du7=t}t=Du7;return t},{mode:2});var oJg;var bx=function(){var t=_.z.apply(this,arguments)||this;t.flexy=!0;t.learningJourney=!0;t.viewTransitionEnabled=_.r("enable_player_resize_transition");t.smallerChatMinHeight=_.r("live_chat_smaller_min_height");t.isDarkTheme=document.documentElement.hasAttribute("dark");t.theaterLargerPlayer=_.r("web_watch_theater_larger_player");t.defaultCollapsePlaylist=_.r("web_watch_default_collapse_playlist");t.enableCanvasLayout=_.r("web_enable_canvas_on_learning_journey");return t};
_.u(bx,_.z);_.Y=bx.prototype;_.Y.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.Y.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.Y.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.Y.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.Y.ready=function(){var t=this,E=function(){t.onColumnScroll()};
this.primary.addEventListener("scroll",E);this.secondary.addEventListener("scroll",E)};
_.Y.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.Y.updateIsTwoColumnsFromBinding=function(t){_.r("web_watch_update_narrow_width_killswitch")||_.QM().dispatch(YWt(!t.detail.value));this.ytdWatchBehavior.isTwoColumns_=t.detail.value};
_.Y.updateFlexySmallWindowFromBinding=function(t){this.ytdWatchBehavior.flexySmallWindow_=t.detail.value};
_.Y.updateFlexyLargeWindowFromBinding=function(t){this.ytdWatchBehavior.flexyLargeWindow_=t.detail.value};
_.Y.updateWatchWhileWindowSizeSufficientFromBinding=function(t){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=t.detail.value};
_.Y.updateWatchNextCanShowMoreFromBinding=function(t){this.ytdWatchBehavior.watchNextCanShowMore=t.detail.value};
_.Y.updateShownItemsFromBinding=function(t){t.detail.path?this.set(t.detail.path,t.detail.value):this.ytdWatchBehavior.watchNextShownItems=t.detail.value};
_.Y.getElement=function(t){switch(t){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22162_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22162_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.aE.Object.defineProperties(bx.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 t;if((t=this.data)==null||!t.pageVisualEffects)return!1;for(var E=0;E<this.data.pageVisualEffects.length;E++)if(t=_.k(this.data.pageVisualEffects[E],hP))return E=void 0,(E=t.config)==null?void 0:E.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.learningJourneyEngagementPanels)==null?void 0:t.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var t,E=(t=this.learningJourneyEngagementPanels)==null?void 0:t.find(function(Q){var C;return(Q==null?void 0:(C=Q.engagementPanelSectionListRenderer)==null?void 0:C.panelIdentifier)==="learning-journey-engagement-panel"});
if(E){var p,U,x,A,m,b,f,B,R;if(t=(B=((f=(m=((A=E==null?void 0:(p=E.engagementPanelSectionListRenderer)==null?void 0:(U=p.content)==null?void 0:(x=U.sectionListRenderer)==null?void 0:x.contents)!=null?A:[])[0])==null?void 0:(b=m.itemSectionRenderer)==null?void 0:b.contents)!=null?f:[])[0])==null?void 0:(R=B.accordionViewModel)==null?void 0:R.onTitleTap){var V=_.AJ(t);if(V)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.Gh.instance.resolveCommand(V)}}}}}}});
_.aE.Object.defineProperties(bx,{template:{configurable:!0,enumerable:!0,get:function(){if(oJg===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);oJg=t}t=oJg;return t}}});
bx.prototype.updateMiniplayerIsActiveValue=bx.prototype.updateMiniplayerIsActiveValue;bx.prototype.updateScrollTopValue=bx.prototype.updateScrollTopValue;bx.prototype.updateFullscreenValue=bx.prototype.updateFullscreenValue;bx.prototype.updateTheaterValue=bx.prototype.updateTheaterValue;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],bx.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],bx.prototype,"ytComponentBehavior",void 0);
_.N([_.g(Xj8.YtdLearningJourneyWatchBehavior),_.P("design:type",Object)],bx.prototype,"ytdWatchBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],bx.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],bx.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],bx.prototype,"playerData",void 0);_.N([_.e(),_.P("design:type",Object)],bx.prototype,"browseData",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],bx.prototype,"flexy",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],bx.prototype,"learningJourney",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],bx.prototype,"viewTransitionEnabled",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],bx.prototype,"smallerChatMinHeight",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],bx.prototype,"isDarkTheme",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],bx.prototype,"theaterLargerPlayer",void 0);_.N([_.e(),_.P("design:type",Object)],bx.prototype,"defaultCollapsePlaylist",void 0);_.N([_.e(),_.P("design:type",Object)],bx.prototype,"enableCanvasLayout",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("playerData","browseData","enableCanvasLayout"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],bx.prototype,"showBrowseResponse",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("playerData","enableCanvasLayout"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],bx.prototype,"showWatchResponse",null);_.N([_.e({selector:_.t8}),_.P("design:type",Object)],bx.prototype,"theaterValue",void 0);_.N([_.e({selector:_.EY}),_.P("design:type",Object)],bx.prototype,"fullscreenValue",void 0);_.N([_.e({selector:wr}),_.P("design:type",Object)],bx.prototype,"scrollTopValue",void 0);
_.N([_.e({selector:_.E5}),_.P("design:type",Object)],bx.prototype,"miniplayerIsActiveValue",void 0);_.N([_.Nl("#ytd-plj-player"),_.P("design:type",HTMLElement)],bx.prototype,"ytdPlayer",void 0);_.N([_.Nl("#playlist"),_.P("design:type",HTMLElement)],bx.prototype,"JSC$22162_ytdPlaylistPanelRenderer",void 0);_.N([Bz("ytd-comments"),_.P("design:type",HTMLElement)],bx.prototype,"ytdComments",void 0);_.N([_.Nl("#primary"),_.P("design:type",HTMLElement)],bx.prototype,"primary",void 0);
_.N([_.Nl("#secondary"),_.P("design:type",HTMLElement)],bx.prototype,"secondary",void 0);_.N([_.Nl("#player-container"),_.P("design:type",HTMLElement)],bx.prototype,"playerContainer",void 0);_.N([_.Nl("#cinematics"),_.P("design:type",HTMLElement)],bx.prototype,"JSC$22162_cinematics",void 0);_.N([_.GI("theaterValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],bx.prototype,"updateTheaterValue",null);
_.N([_.GI("fullscreenValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],bx.prototype,"updateFullscreenValue",null);_.N([_.GI("scrollTopValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],bx.prototype,"updateScrollTopValue",null);_.N([_.GI("miniplayerIsActiveValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],bx.prototype,"updateMiniplayerIsActiveValue",null);
_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],bx.prototype,"cinematicLightTheme",null);_.N([_.e({reflectToAttribute:!0}),_.Z("learningJourneyEngagementPanels"),_.P("design:type",Object),_.P("design:paramtypes",[])],bx.prototype,"hasLearningJourneyPanels",null);_.N([_.Z("learningJourneyEngagementPanels"),_.P("design:type",Object),_.P("design:paramtypes",[])],bx.prototype,"backButtonData",null);_.N([_.Ul({is:"ytd-watch-learning-journey"})],bx);var W2C;var ix=function(){var t=_.z.apply(this,arguments)||this;t.useListItemStyles=_.r("web_list_item_style_for_menu_items");t.systemIcons=_.r("kevlar_system_icons");return t};
_.u(ix,_.z);_.Y=ix.prototype;_.Y.ready=function(){this.hostElement.addEventListener("tap",_.zI(this,this.onEndpointTapExtra))};
_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.Y.onFocus=function(){var t;(t=_.ZN(this.hostElement).querySelector("tp-yt-paper-item"))==null||t.focus()};
_.Y.onEndpointTapExtra=function(t){_.kT(this.hostElement,"iron-activate");var E=this.data.navigationEndpoint;E&&_.k(E,_.UoK)&&(t.stopPropagation(),_.IK(this.hostElement,[E],this.hostElement))};
_.Y.computeIcon=function(t){return t&&t.iconType?_.zh(t.iconType):""};
_.Y.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.Y.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.Y.forceUpdateStylesOnLegacyBrowsers=function(){_.r("kevlar_legacy_browsers")&&_.eU(this.hostElement)};
ix.prototype.forceUpdateStylesOnLegacyBrowsers=ix.prototype.forceUpdateStylesOnLegacyBrowsers;ix.prototype.onFocus=ix.prototype.onFocus;_.N([_.g(_.aU),_.P("design:type",Object)],ix.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.g(_.D2K.YtConditionalRendererBehavior),_.P("design:type",Object)],ix.prototype,"ytConditionalRendererBehavior",void 0);_.N([_.g(_.Tn.YtEndpointBehavior),_.P("design:type",Object)],ix.prototype,"ytEndpointBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],ix.prototype,"data",void 0);_.N([_.e({computed:"computeIcon(data.icon)",value:""}),_.P("design:type",String)],ix.prototype,"icon",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],ix.prototype,"useIcons",void 0);_.N([_.e({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.P("design:type",Boolean)],ix.prototype,"hasSeparator",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],ix.prototype,"useListItemStyles",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],ix.prototype,"systemIcons",void 0);_.N([_.lc("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ix.prototype,"onFocus",null);_.N([_.GI("useIcons","hasSeparator"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ix.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.G(ix,"ytd-menu-navigation-item-renderer",function(){if(W2C===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);W2C=t}t=W2C;return t},{mode:1});var $u7;var K2g=_.wN(_.zF("DOWNLOAD",{},"Download")),vJt=_.wN(_.zF("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),ykt=_.wN(_.zF("RETRY",{},"Retry")),SOe=_.wN(_.zF("PAUSE_DOWNLOADING",{},"Pause downloading")),ckJ=_.wN(_.zF("RESUME_DOWNLOAD",{},"Resume download")),qs=function(){var t=_.z.apply(this,arguments)||this;t.primaryText=K2g;t.primaryIconType="OFFLINE_DOWNLOAD";t.hasSecondaryContent=!1;t.hasSeparator=!1;t.transferState="TRANSFER_STATE_UNKNOWN";t.isVideoDeletedByUser=!1;t.isHidden=!1;t.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return t};
_.u(qs,_.z);_.Y=qs.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.Y.onFocus=function(){this.primaryEntry.focus()};
_.Y.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.Y.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.Y.getRemoveAction=function(){return"ACTION_REMOVE"};
_.Y.sendOfflineAction=function(t){var E=this.data.serviceEndpoint;if(E){var p=_.k(E,_.lA);p&&t&&(p.action=t);this.ytComponentBehavior.resolveCommand(E)}};
_.Y.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=K2g,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=K2g;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=ykt;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=vJt;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=ckJ;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=vJt;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
SOe;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=vJt;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=vJt;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=K2g,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.Y.showHideButton=function(){var t;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((t=this.playerStateEntity)==null?void 0:t.adsState)==="ADS_STATE_PLAYING"};
_.Y.isSecondaryEntryHidden=function(t,E){return t?!0:!E};
_.Y.computeHasSeparator=function(){var t;return!((t=this.data)==null||!t.hasSeparator)};
_.Y.computePlayerStateEntityKey=function(t){return t};
qs.prototype.showHideButton=qs.prototype.showHideButton;qs.prototype.onTransferStateChange=qs.prototype.onTransferStateChange;qs.prototype.onFocus=qs.prototype.onFocus;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],qs.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],qs.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],qs.prototype,"ytComponentBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],qs.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],qs.prototype,"primaryText",void 0);_.N([_.e(),_.P("design:type",String)],qs.prototype,"primaryIconType",void 0);_.N([_.e(),_.P("design:type",String)],qs.prototype,"primaryAction",void 0);_.N([_.e(),_.P("design:type",Object)],qs.prototype,"secondaryText",void 0);_.N([_.e(),_.P("design:type",String)],qs.prototype,"secondaryIconType",void 0);
_.N([_.e(),_.P("design:type",String)],qs.prototype,"secondaryAction",void 0);_.N([_.e(),_.P("design:type",Object)],qs.prototype,"hasSecondaryContent",void 0);_.N([_.e({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.P("design:type",Object)],qs.prototype,"hasSeparator",void 0);_.N([_.e({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.P("design:type",String)],qs.prototype,"playerStateEntityKey",void 0);
_.N([_.e({selector:_.hJ,selectorArgs:["playerStateEntityKey"]}),_.P("design:type",Object)],qs.prototype,"playerStateEntity",void 0);_.N([_.e({selector:_.xz,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.P("design:type",String)],qs.prototype,"transferState",void 0);_.N([_.e({selector:_.pe$,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.P("design:type",Object)],qs.prototype,"isVideoDeletedByUser",void 0);
_.N([_.e(),_.P("design:type",Object)],qs.prototype,"isHidden",void 0);_.N([_.e({selector:_.K3$,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.P("design:type",Object)],qs.prototype,"offlineabilityState",void 0);_.N([_.Nl("#primary-entry"),_.P("design:type",Object)],qs.prototype,"primaryEntry",void 0);_.N([_.lc("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qs.prototype,"onFocus",null);
_.N([_.P3("transferState","isVideoDeletedByUser"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qs.prototype,"onTransferStateChange",null);_.N([_.P3("offlineabilityState","playerStateEntity"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qs.prototype,"showHideButton",null);
_.G(qs,"ytd-menu-service-item-download-renderer",function(){if($u7===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);$u7=t}t=$u7;return t},{mode:1});var tGl;var H0=function(){var t=_.z.apply(this,arguments)||this;t.useIcons=!1;t.systemIcons=_.r("kevlar_system_icons");t.useListItemStyles=_.r("web_list_item_style_for_menu_items");return t};
_.u(H0,_.z);_.Y=H0.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.Y.onFocus=function(){var t;(t=_.ZN(this.hostElement).querySelector("tp-yt-paper-item"))==null||t.focus()};
_.Y.onTap=function(){_.uO(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var t=this.data.serviceEndpoint,E=this.data.command;if(t){var p,U=(p=this.data)==null?void 0:p.trackingParams;p=!!_.k(t,_.wgo);U&&p&&_.QM().dispatch(_.Jj({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:U}}));this.ytComponentBehavior.resolveCommand(t)||_.X3().resolve(_.ei).resolveCommand(t,{form:{element:this.hostElement}})}E&&(this.ytComponentBehavior.resolveCommand(E)||_.IK(this.hostElement,
[E],this.hostElement))};
_.Y.computeIcon=function(t){return t&&t.iconType?_.zh(t.iconType):""};
_.Y.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.Y.computeHasSeparator=function(){var t;return!((t=this.data)==null||!t.hasSeparator)};
_.Y.forceUpdateStylesOnLegacyBrowsers=function(){_.r("kevlar_legacy_browsers")&&_.eU(this.hostElement)};
_.Y.computeIsSelected=function(){var t;return!((t=this.data)==null||!t.isSelected)};
H0.prototype.forceUpdateStylesOnLegacyBrowsers=H0.prototype.forceUpdateStylesOnLegacyBrowsers;H0.prototype.onTap=H0.prototype.onTap;H0.prototype.onFocus=H0.prototype.onFocus;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],H0.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.aU),_.P("design:type",Object)],H0.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],H0.prototype,"ytComponentBehavior",void 0);
_.N([_.g(_.D2K.YtConditionalRendererBehavior),_.P("design:type",Object)],H0.prototype,"ytConditionalRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],H0.prototype,"data",void 0);_.N([_.e({computed:"computeIcon(data.icon)",value:""}),_.P("design:type",String)],H0.prototype,"icon",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],H0.prototype,"useIcons",void 0);
_.N([_.e({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.P("design:type",Boolean)],H0.prototype,"hasSeparator",void 0);_.N([_.e({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.P("design:type",Boolean)],H0.prototype,"isSelected",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],H0.prototype,"systemIcons",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],H0.prototype,"useListItemStyles",void 0);
_.N([_.lc("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],H0.prototype,"onFocus",null);_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],H0.prototype,"onTap",null);_.N([_.GI("useIcons","hasSeparator"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],H0.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.G(H0,"ytd-menu-service-item-renderer",function(){if(tGl===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);tGl=t}t=tGl;return t},{mode:2});var E$b;var f6=function(){return _.z.apply(this,arguments)||this};
_.u(f6,_.z);_.Y=f6.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.onDataChanged=function(){var t=this;_.XE(this,function(){t.postbox.openDialog();t.focus();_.kT(t.hostElement,"yt-refit")})};
_.Y.focus=function(){this.postbox.focus()};
_.Y.closePopup=function(){_.du(this.hostElement,"yt-close-popup-action")};
_.Y.onYtCommentboxDismiss=function(){this.closePopup()};
f6.prototype.onYtCommentboxDismiss=f6.prototype.onYtCommentboxDismiss;f6.prototype.onDataChanged=f6.prototype.onDataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],f6.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],f6.prototype,"data",void 0);_.N([_.e({value:function(){return _.zF("SBOX_INAPPROPRIATE_CANCEL")}}),
_.P("design:type",String)],f6.prototype,"closeButtonAriaLabel",void 0);_.N([_.Nl("#postbox"),_.P("design:type",Object)],f6.prototype,"postbox",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],f6.prototype,"onDataChanged",null);_.N([_.lc("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],f6.prototype,"onYtCommentboxDismiss",null);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],f6);
_.G(f6,"ytd-backstage-post-dialog-popup-renderer",function(){if(E$b!==void 0)return E$b;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return E$b=t},{mode:1});var pct;var XV=function(){var t=_.z.apply(this,arguments)||this;t.modernModal=!0;return t};
_.u(XV,_.z);XV.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
XV.prototype.computeShouldHideOldButtons=function(){var t;return!((t=this.data)==null?0:t.button)};
_.aE.Object.defineProperties(XV.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var t,E;return(t=this.data)==null?void 0:(E=t.button)==null?void 0:E.buttonRenderer}}});
_.N([_.e(),_.P("design:type",Object)],XV.prototype,"data",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],XV.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],XV.prototype,"ytEventForwardingBehavior",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],XV.prototype,"modernModal",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],XV.prototype,"buttonRendererData",null);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],XV);
_.G(XV,"ytd-modal-with-title-and-button-renderer",function(){if(pct!==void 0)return pct;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return pct=t},{mode:1});var UHb;var h5=function(){return _.z.apply(this,arguments)||this};
_.u(h5,_.z);h5.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IU("page-changed",this.page))};
h5.prototype.pageChangedForBinding=h5.prototype.pageChangedForBinding;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],h5.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],h5.prototype,"data",void 0);_.N([_.e(),_.P("design:type",String)],h5.prototype,"page",void 0);_.N([_.GI("page"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],h5.prototype,"pageChangedForBinding",null);
_.N([_.Ul({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],h5);
_.G(h5,"ytd-account-item-section-header-renderer",function(){if(UHb!==void 0)return UHb;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return UHb=t},{mode:1});var xHb;var a5=function(){return _.z.apply(this,arguments)||this};
_.u(a5,_.z);a5.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"}}}};
a5.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],a5.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],a5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.I6),_.P("design:type",Object)],a5.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],a5.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!1}),_.P("design:type",Function)],a5.prototype,"onAccountItemTap",void 0);
_.N([_.Ul({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],a5);
_.G(a5,"ytd-account-item-section-renderer",function(){if(xHb!==void 0)return xHb;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return xHb=t},{mode:1});var Ar5;var Ybe;var MGo=function(){return _.z.apply(this,arguments)||this};
_.u(MGo,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],MGo.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],MGo.prototype,"data",void 0);_.N([_.Ul({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],MGo);
_.G(MGo,"ytd-accounts-dialog-header-renderer",function(){if(Ybe!==void 0)return Ybe;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Ybe=t},{mode:1});var mH9;var eb=function(){return _.z.apply(this,arguments)||this};
_.u(eb,_.z);eb.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],eb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],eb.prototype,"data",void 0);_.N([_.Ul({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],eb);
_.G(eb,"ytd-google-account-header-renderer",function(){if(mH9!==void 0)return mH9;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return mH9=t},{mode:1});var FV=function(){return _.z.apply(this,arguments)||this};
_.u(FV,_.z);FV.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"}}}};
FV.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IU("page-changed",this.page))};
FV.prototype.pageChangedForBinding=FV.prototype.pageChangedForBinding;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],FV.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],FV.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],FV.prototype,"data",void 0);_.N([_.e(),_.P("design:type",String)],FV.prototype,"page",void 0);
_.N([_.GI("page"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],FV.prototype,"pageChangedForBinding",null);_.N([_.Ul({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],FV);
_.Ol()(FV,"ytd-account-section-list-renderer",function(){if(Ar5===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);Ar5=t}t=Ar5;return t},{allowedProps:["data"],
mode:1});var bh9;var z1=function(){var t=_.z.apply(this,arguments)||this;t.enableHandlesAccountMenuSwitcher=_.r("enable_handles_account_menu_switcher");return t};
_.u(z1,_.z);z1.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
z1.prototype.dataChanged=z1.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],z1.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],z1.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],z1.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.N([_.Nl("#avatar"),_.P("design:type",Object)],z1.prototype,"avatar",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],z1.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],z1);
_.Ol()(z1,"ytd-active-account-header-renderer",function(){if(bh9===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);bh9=t}t=bh9;return t},{allowedProps:["data"],
mode:1});var iht;var qbt;var lx=function(){return _.z.apply(this,arguments)||this};
_.u(lx,_.z);lx.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
lx.prototype.onBackTap=function(){_.kT(this.hostElement,"yt-menu-back-tapped")};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],lx.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],lx.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],lx.prototype,"data",void 0);_.N([_.Ul({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],lx);
_.Ol()(lx,"ytd-simple-menu-header-renderer",function(){if(qbt===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);qbt=t}t=qbt;return t},{allowedProps:["data"],
mode:2});var HhC;var f67=function(){return _.z.apply(this,arguments)||this};
_.u(f67,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],f67.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],f67.prototype,"data",void 0);_.N([_.Ul({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],f67);
_.G(f67,"ytd-comment-video-thumbnail-header-renderer",function(){if(HhC!==void 0)return HhC;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return HhC=t},{mode:1});var BH7;var wct=function(){return _.z.apply(this,arguments)||this};
_.u(wct,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],wct.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],wct.prototype,"data",void 0);_.N([_.Ul({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],wct);
_.G(wct,"ytd-abuse-type-selector-renderer",function(){if(BH7!==void 0)return BH7;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return BH7=t},{mode:1});var Rs8;var VG7=(0,_.PjW)(_.L2o.reportChannelAbuse,{isVideoIdSelectedSelector:function(t,E){return E in t.selectedVideoIds},
additionalContextSelector:function(t){return t.additionalContext},
impersonatedChannelUrlSelector:function(t){return t.impersonatedChannelUrl},
reportChannelAbuseSelector:function(t){return t}});var G1=function(){return _.z.apply(this,arguments)||this};
_.u(G1,_.z);G1.prototype.attached=function(){var t=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){t.additionalContextInput.focusTextInput()})};
G1.prototype.handleAdditionalContextChanged=function(){var t=this;_.qd(this,"ytd-report-channel-additional-context-update",function(){t.ytdReduxBehavior.dispatch(_.Jj({type:"ADDITIONAL_CONTEXT_UPDATED",payload:t.additionalContext}))},300)};
G1.prototype.updateAdditionalContextFromBinding=function(t){this.additionalContext=t.detail.value};
G1.prototype.handleAdditionalContextChanged=G1.prototype.handleAdditionalContextChanged;_.N([_.g(_.Be),_.P("design:type",Object)],G1.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",String)],G1.prototype,"additionalContext",void 0);_.N([_.e({selector:VG7.additionalContextSelector}),_.P("design:type",String)],G1.prototype,"additionalContextRedux",void 0);_.N([_.e(),_.P("design:type",Object)],G1.prototype,"data",void 0);
_.N([_.Nl("yt-text-input-form-field-renderer"),_.P("design:type",Object)],G1.prototype,"additionalContextInput",void 0);_.N([_.GI("additionalContext"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],G1.prototype,"handleAdditionalContextChanged",null);_.N([_.Ul({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],G1);
_.G(G1,"ytd-report-channel-modal-additional-context-renderer",function(){if(Rs8!==void 0)return Rs8;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Rs8=t},{mode:1});var QjK;var n6=function(){var t=_.z.apply(this,arguments)||this;t.nextButtonDisabled=null;t.submitEndpoint=null;t.navigationEndpoint=null;t.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return t};
_.u(n6,_.z);_.Y=n6.prototype;_.Y.computeNextButtonData=function(t,E,p){var U={};E&&(U.navigationEndpoint=E);p&&(U.serviceEndpoint=p);t&&t.buttonRenderer&&_.Kq.extend(U,t.buttonRenderer);return U};
_.Y.handleReportChannelModalDisableNextButtonAction=function(t){this.setNextButtonIsDisabled(t)};
_.Y.handleReportFormEndpointUpdateAction=function(t){this.setNextButtonIsDisabled(!!t.disableSubmitButton);this.resetEndpointData();t.submitEndpoint?this.submitEndpoint=t.submitEndpoint:t.submitNavigationEndpoint&&(this.navigationEndpoint=t.submitNavigationEndpoint)};
_.Y.handleSignalActionSubmitForm=function(){var t,E=Object.keys(((t=this.reportChannelAbuseForm)==null?void 0:t.selectedVideoIds)||{}),p;t=((p=this.reportChannelAbuseForm)==null?void 0:p.additionalContext)||"";var U;p=((U=this.reportChannelAbuseForm)==null?void 0:U.impersonatedChannelUrl)||"";var x;if((x=this.data)==null?0:x.submitEndpoint){E={impersonated_channel_url:p,text:t,video_ids:E};var A;_.X3().resolve(_.ei).resolveCommand((A=this.data)==null?void 0:A.submitEndpoint,{form:Object.assign({},
E,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.Y.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.Y.onYtServiceRequestError=function(t){this.setNextButtonIsDisabled(!1);_.f$(this.hostElement,t.detail.error.message)};
_.Y.setNextButtonIsDisabled=function(t){this.set("data.nextButton.buttonRenderer.isDisabled",t)};
_.Y.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
n6.prototype.onYtServiceRequestError=n6.prototype.onYtServiceRequestError;n6.prototype.onYtServiceRequestCompleted=n6.prototype.onYtServiceRequestCompleted;_.N([_.e(),_.P("design:type",Object)],n6.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],n6.prototype,"nextButtonDisabled",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],n6.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],n6.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],n6.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],n6.prototype,"submitEndpoint",void 0);_.N([_.e(),_.P("design:type",Object)],n6.prototype,"navigationEndpoint",void 0);_.N([_.e({selector:VG7.reportChannelAbuseSelector}),_.P("design:type",Object)],n6.prototype,"reportChannelAbuseForm",void 0);
_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],n6.prototype,"onYtServiceRequestCompleted",null);_.N([_.lc("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],n6.prototype,"onYtServiceRequestError",null);_.N([_.Ul({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],n6);
_.G(n6,"ytd-report-channel-modal-footer-renderer",function(){if(QjK!==void 0)return QjK;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return QjK=t},{mode:1});var C4C;var Ns=function(){var t=_.z.apply(this,arguments)||this;t.boundOnTapDismissButton=function(){t.closePopup()};
return t};
_.u(Ns,_.z);Ns.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
Ns.prototype.handleDataChanged=function(){_.Jw(this.hostElement)};
Ns.prototype.closePopup=function(){_.du(this.hostElement,"yt-close-popup-action")};
Ns.prototype.handleDataChanged=Ns.prototype.handleDataChanged;_.N([_.e(),_.P("design:type",Object)],Ns.prototype,"boundOnTapDismissButton",void 0);_.N([_.e(),_.P("design:type",Object)],Ns.prototype,"data",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ns.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Ns.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ns.prototype,"handleDataChanged",null);_.N([_.Ul({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],Ns);
_.G(Ns,"ytd-report-channel-modal-header-renderer",function(){if(C4C!==void 0)return C4C;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return C4C=t},{mode:1});var jj8;var Db=function(){var t=_.z.apply(this,arguments)||this;t.autoValidate=!1;t.invalid=!1;t.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return t};
_.u(Db,_.z);_.Y=Db.prototype;_.Y.attached=function(){var t=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){t.channelUrlInput.focusTextInput()})};
_.Y.disableNextButton=function(t){_.du(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[t])};
_.Y.handleImpersonatedChannelUrlChanged=function(){var t=this;this.disableNextButton(!0);this.invalid=!1;_.qd(this,"ytd-report-channel-impersonated-channel-update",function(){var E=t.impersonatedChannelUrl.trim();t.ytdReduxBehavior.dispatch(_.Jj({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:E}));var p;((p=t.data)==null?0:p.submitEndpoint)&&E&&_.X3().resolve(_.ei).resolveCommand(t.data.submitEndpoint,{form:{impersonated_channel_url:E,element:t.hostElement}})},500)};
_.Y.handleModifyReportFormCommand=function(t){this.invalid=this.get("modifyReportFormCommand.action",t)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.Y.updateInvalidFromBinding=function(t){this.invalid=t.detail.value};
_.Y.updateImpersonatedChannelUrlFromBinding=function(t){this.impersonatedChannelUrl=t.detail.value};
Db.prototype.handleImpersonatedChannelUrlChanged=Db.prototype.handleImpersonatedChannelUrlChanged;_.N([_.g(_.Be),_.P("design:type",Object)],Db.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Db.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Db.prototype,"autoValidate",void 0);_.N([_.e(),_.P("design:type",Object)],Db.prototype,"invalid",void 0);
_.N([_.e(),_.P("design:type",String)],Db.prototype,"impersonatedChannelUrl",void 0);_.N([_.e({selector:VG7.impersonatedChannelUrlSelector}),_.P("design:type",String)],Db.prototype,"impersonatedChannelUrlRedux",void 0);_.N([_.e(),_.P("design:type",Object)],Db.prototype,"data",void 0);_.N([_.Nl("#text-input"),_.P("design:type",Object)],Db.prototype,"channelUrlInput",void 0);
_.N([_.GI("impersonatedChannelUrl"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Db.prototype,"handleImpersonatedChannelUrlChanged",null);_.N([_.Ul({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],Db);
_.G(Db,"ytd-report-channel-modal-impersonation-renderer",function(){if(jj8!==void 0)return jj8;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return jj8=t},{mode:1});var rrK;var kfC;var sw=function(){return _.z.apply(this,arguments)||this};
_.u(sw,_.z);sw.prototype.onCheckboxToggled=function(t){var E,p,U=(p=_.k((E=this.data)==null?void 0:E.video,_.r4m))==null?void 0:p.videoId;U&&this.ytdReduxBehavior.dispatch(t.target.checked?_.Jj({type:"VIDEO_SELECTED",payload:U}):_.Jj({type:"VIDEO_UNSELECTED",payload:U}))};
sw.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.aE.Object.defineProperties(sw.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var t,E=(t=this.data)==null?void 0:t.video;if(!E)return{};var p;t=(p=_.k(E,_.r4m))==null?void 0:p.navigationEndpoint;if(!t)return E;_.k(t==null?void 0:t.commandMetadata,_.hZ)&&(_.k(t.commandMetadata,_.hZ).ignoreNavigation=!0);return E}}});
_.N([_.e({reflectToAttribute:!0,selector:VG7.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.P("design:type",Boolean)],sw.prototype,"checked",void 0);_.N([_.e(),_.P("design:type",Object)],sw.prototype,"data",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],sw.prototype,"video",null);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],sw.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],sw.prototype,"ytdReduxBehavior",void 0);_.N([_.Ul({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],sw);
_.G(sw,"ytd-selectable-video-renderer",function(){if(kfC!==void 0)return kfC;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return kfC=t},{mode:1});var L6=function(){var t=_.z.apply(this,arguments)||this;t.monitorScroll=!0;return t};
_.u(L6,_.z);L6.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],L6.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],L6.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],L6.prototype,"data",void 0);_.N([_.Ul({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],L6);
_.G(L6,"ytd-selectable-video-list-renderer",function(){if(rrK!==void 0)return rrK;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return rrK=t},{mode:1});var dHJ;_.vs("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var P0=function(){return _.z.apply(this,arguments)||this};
_.u(P0,_.z);P0.prototype.onChange=function(t){if(t=_.Qx(t).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.r("kevlar_command_handler_migration_killswitch"))_.IK(this.hostElement,t,this.hostElement);else{t=_.M(t);for(var E=t.next();!E.done;E=t.next())this.ytComponentBehavior.resolveCommand(E.value)}};
P0.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
P0.prototype.updateDataToggledFromBinding=function(t){this.set("data.toggled",t.detail.value)};
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],P0.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],P0.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],P0.prototype,"data",void 0);_.N([_.e({computed:"isEnabled(data)"}),_.P("design:type",Boolean)],P0.prototype,"enabled",void 0);_.N([_.Ul({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],P0);
_.G(P0,"ytd-toggle-item-renderer",function(){if(dHJ!==void 0)return dHJ;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return dHJ=t},{mode:1});var uKd;var JrC;var I6K;var T1=function(){var t=_.z.apply(this,arguments)||this;t.setVisible=!1;t.boundOnSubmitButtonClick=function(){t.onSubmitButtonClick()};
t.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return t};
_.u(T1,_.z);T1.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}}}}}};
T1.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
T1.prototype.onSubmitButtonClick=function(){var t;((t=this.data)==null?0:t.submitEndpoint)&&!_.r("enable_ytc_refunds_submit_form_signal_action")&&_.JZ(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
T1.prototype.handleSignalActionSubmitForm=function(){var t;((t=this.data)==null?0:t.submitEndpoint)&&_.JZ(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.aE.Object.defineProperties(T1.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.hiddenByDefault)&&!this.setVisible}}});
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],T1.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],T1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],T1.prototype,"setVisible",void 0);_.N([_.e(),_.P("design:type",Object)],T1.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",Object)],T1.prototype,"surveyFeedbackData",void 0);_.N([_.e(),_.P("design:type",Object)],T1.prototype,"boundOnSubmitButtonClick",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("data","setVisible"),_.P("design:type",Object),_.P("design:paramtypes",[])],T1.prototype,"visibilityHidden",null);_.N([_.p4({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],T1);
_.G(T1,"yt-flow-footer-renderer",function(){if(I6K===void 0){var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;JrC===void 0&&(JrC=document.createElement("template"));var U=JrC;p.call(E,U.content.cloneNode(!0),t.content.firstChild);I6K=t}t=I6K;return t},{mode:2});var g$o=(0,_.PjW)(_.L2o.ypc,{surveyFeedbackDataSelector:function(t){return t.surveyFeedbackData}});var o5=function(){return _.z.apply(this,arguments)||this};
_.u(o5,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],o5.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],o5.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],o5.prototype,"data",void 0);_.N([_.e({selector:g$o.surveyFeedbackDataSelector}),_.P("design:type",Object)],o5.prototype,"surveyFeedbackData",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],o5);
_.G(o5,"ytd-flow-footer-renderer",function(){if(uKd!==void 0)return uKd;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return uKd=t},{mode:_.hX("kevlar_poly_si_batch_j025")?1:2});var Zhl;var Oht;var W0=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return t};
_.u(W0,_.z);_.Y=W0.prototype;_.Y.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.y9("multiPageMenuSectionItems")}}};
_.Y.handleHideEnclosingAction_=function(t){if(this.data&&this.data.items)for(var E=0;E<this.data.items.length;E++){var p=this.data.items[E].notificationRenderer;if(p&&p.notificationId==t.hideEnclosingAction.notificationId){this.splice("data.items",E,1);_.du(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.Y.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.h2(this.hostElement,"hidden",!0)};
_.Y.updateMenu_=function(t){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&t&&!t.doNotRefreshInbox){t=this.data.continuations;for(var E=0;E<t.length;E++)if(t[E].invalidationContinuationData){var p=void 0;var U=(p=t[E].invalidationContinuationData)==null?void 0:p.continuation;break}t=_.Kq.clone(this.data.continuationUpdateEndpoint||null);t.continuation=U;t.click_tracking_params=this.data.trackingParams;_.JZ(this.hostElement,[t])}};
_.Y.onServiceRequestCompleted_=function(t,E){if(this.data&&(t=E.actions)){E=0;for(var p=t.length;E<p;E++){var U=_.k(t[E],_.G9r);if(!U)break;if((U.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||U.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&U.continuationItems&&this.data.items){var x=this.data.items.length-1;this.data.items[x].continuationItemRenderer&&(U=["data.items",x,1].concat(U.continuationItems),this.splice.apply(this,U))}}}};
W0.prototype.onServiceRequestCompleted_=W0.prototype.onServiceRequestCompleted_;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],W0.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],W0.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],W0.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],W0.prototype,"data",void 0);
_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Rn]),_.P("design:returntype")],W0.prototype,"onServiceRequestCompleted_",null);_.N([_.p4({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],W0);
_.Ol()(W0,"yt-multi-page-menu-section-renderer",function(){if(Oht===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;Zhl===void 0&&(Zhl=document.createElement("template"));var U=Zhl;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Oht=t}t=Oht;return t},{allowedProps:["data"],
mode:2});var Xcb;var hsC;var $B=function(){return _.z.apply(this,arguments)||this};
_.u($B,_.z);$B.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.aE.Object.defineProperties($B.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.progress)==null?0:this.data.progress*100}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],$B.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],$B.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],$B.prototype,"data",void 0);_.N([_.Z("data.progress"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],$B.prototype,"showProgressBar",null);
_.N([_.Z("data.progress"),_.P("design:type",Number),_.P("design:paramtypes",[])],$B.prototype,"progress",null);_.N([_.p4({is:"yt-flow-header-renderer",disableElementRegistration:!0})],$B);
_.G($B,"yt-flow-header-renderer",function(){if(hsC===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;Xcb===void 0&&(Xcb=document.createElement("template"));var U=Xcb;p.call(E,U.content.cloneNode(!0),t.content.firstChild);hsC=t}t=hsC;return t},{mode:2});var a6C;var esJ;var K6=function(){return _.z.apply(this,arguments)||this};
_.u(K6,_.z);K6.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],K6.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],K6.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],K6.prototype,"data",void 0);_.N([_.p4({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],K6);
_.G(K6,"yt-post-confirmation-flow-step-renderer",function(){if(esJ===void 0){var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;a6C===void 0&&(a6C=document.createElement("template"));var U=a6C;p.call(E,U.content.cloneNode(!0),t.content.firstChild);esJ=t}t=esJ;return t},{mode:2});var FjJ;var zs9;var v0=function(){return _.z.apply(this,arguments)||this};
_.u(v0,_.z);
v0.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"}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],v0.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],v0.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],v0.prototype,"data",void 0);_.N([_.p4({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],v0);
_.G(v0,"yt-refund-confirmation-flow-step-renderer",function(){if(zs9===void 0){var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;FjJ===void 0&&(FjJ=document.createElement("template"));var U=FjJ;p.call(E,U.content.cloneNode(!0),t.content.firstChild);zs9=t}t=zs9;return t},{mode:2});var l6t=_.l(function(t){var E=t.data;return _.H("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.H("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.H(_.Q9,{data:function(){return{thumbnails:[{url:E().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.H("div",{class:"profileBadgeViewModelContent"},_.H("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return E().badgeDesc}),_.H(_.w,{cond:function(){return E().badgeSubtitle},
then:function(){return _.H("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return E().badgeSubtitle})}})))},"Tk");
l6t.idomCompat=!0;var Gfg=_.l(function(t){var E=t.data;return _.H("yt-comment-interaction-view-model",{el:_.V9(_.EX(function(){return E().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.H("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return E().onTapA11yLabel},
"on:keydown":_.Cy8(),tabindex:0},_.H("div",{class:"ytCommentInteractionViewModelHeader"},_.H("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return E().headerPrefix},' "',function(){return E().videoTitle}),_.H("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.H("div",{class:"ytCommentInteractionViewModelContent"},_.H("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return E().commentContent}),_.H("div",{class:"ytCommentInteractionViewModelChevron"},
_.H(_.Q9,{data:function(){return{thumbnails:[{url:E().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"Uk");
Gfg.idomCompat=!0;var n$b=_.l(function(t){var E=t.data;return _.H("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.H(_.sY,{data:function(){return E().avatar}},{avatarViewModel:_.fk}),_.H("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return E().channelName}))},"Vk");
n$b.idomCompat=!0;var P4b=_.l(function(t){var E=t.data;t={};return _.H("yt-profile-info-view-model",{class:_.X5("ytProfileInfoViewModelHost",(t.ytProfileInfoViewModelWithVideoShelf=function(){return E().videosHorizontalShelf},t))},_.H(NHt,{profileInfo:E}),_.H(_.sY,{data:function(){return E().videosHorizontalShelf}},{horizontalShelfViewModel:function(p){return _.H("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.H(_.d$,{data:p.data}))}}),_.H(_.w,{cond:function(){return E().comments},
then:function(){return _.H(DHl,{profileInfo:E})}}),_.H(_.w,{cond:function(){return E().sharedSubscriptionsTitle},
then:function(){return _.H(_.w,{cond:function(){return E().subscriptionsAccessButtonCommand},
then:function(){return _.H(sjo,{profileInfo:E})},
else:function(){return _.H(Ljg,{profileInfo:E})}})}}))},"Wk");
P4b.idomCompat=!0;var DHl=_.l(function(t){var E=t.profileInfo;return _.H("div",{class:"ytProfileInfoViewModelActivity"},_.H("div",{class:"ytProfileInfoViewModelHeader"},_.H("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return E().commentsInteractionTitle})),_.H(_.sY,{data:function(){return E().comments}},{commentInteractionViewModel:function(p){return _.H("div",{class:"ytProfileInfoViewModelActivity"},_.H(Gfg,{data:p.data}))}}))},"Xk"),sjo=_.l(function(t){var E=t.profileInfo;
return _.H("div",{class:"ytProfileInfoViewModelSubSection"},_.H("div",{class:"ytProfileInfoViewModelSubHeader"},_.H(_.zn,{command:function(){return E().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.H("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return E().sharedSubscriptionsTitle}),_.H("div",null,_.H(_.sY,{data:function(){return E().subscriptionsAccessButton}},{buttonViewModel:_.D5})))),_.H(TH9,{sharedSubscriptions:function(){var p;
return((p=E().sharedSubscriptions)==null?void 0:p.slice(0,5))||[]}}))},"Yk"),Ljg=_.l(function(t){var E=t.profileInfo;
return _.H("div",{class:"ytProfileInfoViewModelSubSection"},_.H("div",{class:"ytProfileInfoViewModelSubHeader"},_.H("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return E().sharedSubscriptionsTitle})),_.H(TH9,{sharedSubscriptions:function(){var p;
return((p=E().sharedSubscriptions)==null?void 0:p.slice(0,5))||[]}}))},"Zk"),TH9=_.l(function(t){return _.H("div",{class:"ytProfileInfoViewModelSubs"},_.H(_.sY,{data:t.sharedSubscriptions},{sharedSubscriptionViewModel:function(E){return _.H("div",{class:"ytProfileInfoViewModelSub"},_.H(n$b,{data:E.data}))}}))},"$k"),NHt=_.l(function(t){var E=t.profileInfo;
return _.H("div",{class:"ytProfileInfoViewModelActivity"},_.H(_.yG,{each:function(){return[E().profileBadgeInfoYtWide,E().profileBadgeInfoChannelWide].filter(function(p){return!!p})},
keyBy:"INDEX"},function(p){return _.H(_.Oj,null,_.H("div",{class:"ytProfileInfoViewModelHeader"},_.H("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return p().profileSectionTitle}),_.H("div",{class:"ytProfileInfoViewModelSectionDesc"},_.H("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var U;
return(U=p().commentBadge)==null?void 0:U.commentDesc}),_.H(_.w,{cond:function(){var U;
return(U=p().commentBadge)==null?void 0:U.blackHeartDesc},
then:function(){return _.H("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.H("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.H(_.Q9,{data:function(){var U;
return{thumbnails:[{url:(U=p().commentBadge)==null?void 0:U.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.H("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var U;return(U=p().commentBadge)==null?void 0:U.blackHeartDesc}))),_.H("div",{class:"ytProfileInfoViewModelBadge"},_.H(_.yG,{each:function(){return p().badges||[]}},function(U){return _.H(l6t,{data:U})})))}))},"al");var o$g=_.l(function(t){var E=t.data;var p=function(){return E().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.H("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.H(_.sY,{data:function(){return E().profileIdentityInfo}},{profileIdentityInfoViewModel:function(U){return _.H(qpt,{data:U.data,
hideDivider:p,isChannelInfoCard:p})},
profileInfoViewModel:P4b}),_.H(_.sY,{data:function(){return E().profileInfo}},{profileIdentityInfoViewModel:qpt,
profileInfoViewModel:P4b}))},"bl");
o$g.idomCompat=!0;_.k2(o$g,"yt-profile-card-view-model",{props:{data:_.uu}});var yH=function(){var t=_.z.apply(this,arguments)||this;t.enableFocusFix=_.r("music_web_enable_focus_on_setting_menu_fix")&&_.HC("IS_MOBILE_WEB",!1);t.covered=!1;t.hideMenu=!1;t.isCommentNotificationOnProfileCard=!1;t.scrolledByTouch=!1;t.disableBackdropFilter=_.r("web_disable_backdrop_filter");t.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return t};
_.u(yH,_.z);_.Y=yH.prototype;
_.Y.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"}}}};
_.Y.ready=function(){var t=this;this.JSC$22269_containerElement.addEventListener("scroll",function(){t.ytRendererBehavior.markDirty()})};
_.Y.attributeChanged=function(t,E){t==="menu-style"&&_.du(this.hostElement,"yt-multi-page-menu-closed-action",[E])};
_.Y.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.zI(this,this.focusOnStampFinished))};
_.Y.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.zI(this,this.focusOnStampFinished))};
_.Y.reset=function(){this.closeJobId&&(_.ir.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.Y.focusOnStampFinished=function(t){t.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.zI(this,this.focusOnStampFinished)),this.doFocus())};
_.Y.doFocus=function(){var t=_.lym(this.sectionsElement);t.length&&t[0].focus()};
_.Y.computeMenuStyle=function(t){return t?t.toLowerCase().replace(/_/g,"-"):""};
_.Y.computeIsCommentNotificationOnProfileCard=function(t){return _.r("enable_profile_cards_on_comments")&&t.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.Y.computeHideMenu=function(t,E){return t||!(!E||!E.showLoadingSpinner)};
_.Y.onPopupClosed=function(){this.isPopUpOpen=!1;_.du(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.Y.onPopupOpened=function(t,E){this.isPopUpOpen=!0;E.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.kT(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.Jj({type:"CHANNEL_REPORT_RESET"})))};
_.Y.onYtNavigate=function(t,E){this.shouldCloseOnNavigateEvent(E.endpoint)&&_.du(this.hostElement,"yt-close-all-popups-action")};
_.Y.handleEndpoint=function(t){t=_.k(t,_.qj);!this.isCommentNotificationOnProfileCard&&t&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$22269_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.Y.handleActions=function(t){for(var E=0,p=t.length;E<p;E++){var U=_.k(t[E],OZJ);U&&this.handleGetMultiPageMenuAction(U);(U=_.k(t[E],_.G9r))&&this.handleAppendContinuationItemsAction(U)}};
_.Y.onServiceRequestSentOrCompleted=function(t,E){t.detail&&t.detail.endpoint&&this.handleEndpoint(t.detail.endpoint);E.actions&&this.handleActions(E.actions)};
_.Y.handleGetMultiPageMenuAction=function(t){var E=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.ZN(this.submenuElement).appendChild(E);(t=t.menu.multiPageMenuRenderer)&&this.logSubmenu(t);E.data=t;E.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.Y.handleAppendContinuationItemsAction=function(t){if(this.data&&t.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&t.continuationItems&&this.data.sections){var E=this.data.sections.length-1;this.data.sections[E].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),E--);if(this.data.sections[E].multiPageMenuNotificationSectionRenderer&&t.continuationItems){t=_.M(t==null?void 0:t.continuationItems);for(var p=t.next();!p.done;p=t.next())if(p=p.value,_.k(p,gNt)){var U=
void 0,x=void 0,A=void 0,m=void 0,b=void 0;((U=this)==null?0:(x=U.data)==null?0:(A=x.sections)==null?0:(m=A[E])==null?0:(b=m.multiPageMenuNotificationSectionRenderer)==null?0:b.items)&&this.push("data.sections."+E+".multiPageMenuNotificationSectionRenderer.items",p)}else if(_.k(p,_.gFT)||_.k(p,_.um))this.push("data.sections",p),E++}}};
_.Y.logSubmenu=function(t){if(!_.r("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var E=this.ytRendererBehavior.getScreenLayer(),p=_.yL(E),U=_.vV(E);if((t=t.trackingParams)&&p&&U){var x=_.$8(t);_.r("combine_ve_grafts")?_.Pu().graftServerVe(t,U,E):_.Yh(p,U,x)}}};
_.Y.emptySubmenuContainer=function(){for(var t=_.ZN(this.submenuElement);t.firstChild;)t.removeChild(t.firstChild)};
_.Y.onMenuBackTap=function(t){_.kT(this.hostElement,"yt-submenu-closed");t.stopPropagation()};
_.Y.onSubmenuClosed=function(t){_.Qx(t)!==this.hostElement&&(this.covered=!1,_.kT(this.hostElement,"yt-refit"),t.stopPropagation())};
_.Y.onRetrieveLocation=function(t,E){E.hasComments&&(E.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),t.stopPropagation())};
_.Y.shouldCloseOnNavigateEvent=function(t){if(!t)return!0;if(_.k(t,_.m7s)||_.k(t,_.bSr)||_.k(t,_.M4r)||_.k(t,_.kX))return!1;var E;return((E=_.k(t==null?void 0:t.commandMetadata,_.hZ))==null?0:E.ignoreNavigation)?!1:!0};
_.Y.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.Y.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.Y.refitAfterRender=function(){var t=this;_.XE(this,function(){_.kT(t.hostElement,"yt-refit")})};
yH.prototype.refitAfterRender=yH.prototype.refitAfterRender;yH.prototype.onRetrieveLocation=yH.prototype.onRetrieveLocation;yH.prototype.onSubmenuClosed=yH.prototype.onSubmenuClosed;yH.prototype.onMenuBackTap=yH.prototype.onMenuBackTap;yH.prototype.onServiceRequestSentOrCompleted=yH.prototype.onServiceRequestSentOrCompleted;yH.prototype.onYtNavigate=yH.prototype.onYtNavigate;yH.prototype.onPopupOpened=yH.prototype.onPopupOpened;yH.prototype.onPopupClosed=yH.prototype.onPopupClosed;
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],yH.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],yH.prototype,"ytEventForwardingBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],yH.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],yH.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],yH.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",Object)],yH.prototype,"enableFocusFix",void 0);_.N([_.e(),_.P("design:type",Object)],yH.prototype,"covered",void 0);_.N([_.e({computed:"computeHideMenu(covered, data)"}),_.P("design:type",Object)],yH.prototype,"hideMenu",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.P("design:type",String)],yH.prototype,"menuStyle",void 0);
_.N([_.e({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.P("design:type",Object)],yH.prototype,"isCommentNotificationOnProfileCard",void 0);_.N([_.e(),_.P("design:type",Boolean)],yH.prototype,"isPopUpOpen",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],yH.prototype,"scrolledByTouch",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],yH.prototype,"disableBackdropFilter",void 0);
_.N([_.Nl("#sections"),_.P("design:type",HTMLElement)],yH.prototype,"sectionsElement",void 0);_.N([_.Nl("#spinner"),_.P("design:type",HTMLElement)],yH.prototype,"spinnerElement",void 0);_.N([_.Nl("#header"),_.P("design:type",HTMLElement)],yH.prototype,"headerElement",void 0);_.N([_.Nl("#container"),_.P("design:type",HTMLElement)],yH.prototype,"JSC$22269_containerElement",void 0);_.N([_.Nl("#submenu"),_.P("design:type",HTMLElement)],yH.prototype,"submenuElement",void 0);
_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yH.prototype,"onPopupClosed",null);_.N([_.lc("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],yH.prototype,"onPopupOpened",null);_.N([_.lc("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],yH.prototype,"onYtNavigate",null);
_.N([_.lc("yt-service-request-completed"),_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Rn]),_.P("design:returntype")],yH.prototype,"onServiceRequestSentOrCompleted",null);_.N([_.lc("yt-menu-back-tapped"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],yH.prototype,"onMenuBackTap",null);
_.N([_.lc("yt-submenu-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],yH.prototype,"onSubmenuClosed",null);_.N([_.lc("yt-retrieve-location"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],yH.prototype,"onRetrieveLocation",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yH.prototype,"refitAfterRender",null);
_.N([_.Ul({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],yH);
_.G(yH,"ytd-multi-page-menu-renderer",function(){if(iht!==void 0)return iht;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return iht=t},{mode:1});var WjK;var Sb=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return t};
_.u(Sb,_.z);_.Y=Sb.prototype;_.Y.created=function(){this.showTooltips=!0};
_.Y.computeAccessibility_=function(t){return this.get("accessibility.accessibilityData",t)||null};
_.Y.onTap=function(){var t=_.uO(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(t&&t.length===1&&t[0])_.du(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var E;if((E=this.data)==null?0:E.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var p;((p=this.data)==null?0:p.menuRequest)&&_.JZ(this.hostElement,[this.data.menuRequest])}}};
_.Y.handleTopbarMenuClosedAction=function(t){var E,p;(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(t)===((E=this.data)==null?void 0:(p=E.icon)==null?void 0:p.iconType)&&this.toggleIconState(!1)};
_.Y.toggleIconState=function(t){_.r("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=t)};
_.Y.handleUpdateTopbarAvatarAction=function(t){var E;t=(E=_.k(t,wJ8))==null?void 0:E.avatarUrl;var p,U;E=(p=this.data)==null?void 0:(U=p.avatar)==null?void 0:U.thumbnails;t&&E&&(p={thumbnails:[Object.assign({},E[0],{url:t})]},this.set("data.avatar",p))};
_.aE.Object.defineProperties(Sb.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.ZN(this.hostElement).querySelector("#button")}}});
Sb.prototype.onTap=Sb.prototype.onTap;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Sb.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Sb.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.aU),_.P("design:type",Object)],Sb.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.g(_.hxr.YtButtonBehavior),_.P("design:type",Object)],Sb.prototype,"ytButtonBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Sb.prototype,"data",void 0);
_.N([_.Nl("yt-icon-button#button"),_.P("design:type",Object)],Sb.prototype,"iconButton",void 0);_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Sb.prototype,"onTap",null);_.N([_.Ul({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],Sb);
_.Ol()(Sb,"ytd-topbar-menu-button-renderer",function(){if(WjK===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);WjK=t}t=WjK;return t},{allowedProps:["data"],
mode:1});var $Hl;var c0=function(){return _.z.apply(this,arguments)||this};
_.u(c0,_.z);c0.prototype.getSelected=function(){return this.reasons.selected};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],c0.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],c0.prototype,"data",void 0);_.N([_.Nl("#reasons"),_.P("design:type",Object)],c0.prototype,"reasons",void 0);_.N([_.Ul({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],c0);
_.G(c0,"ytd-ad-feedback-content",function(){if($Hl!==void 0)return $Hl;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return $Hl=t},{mode:1});var KjL;var tk=function(){return _.z.apply(this,arguments)||this};
_.u(tk,_.z);_.Y=tk.prototype;_.Y.onPopupOpened=function(){_.du(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.Y.computeConfirmButton=function(t){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:t.confirmLabel}};
_.Y.computeCancelButton=function(t){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:t.cancelLabel}};
_.Y.onConfirmTap=function(){var t=this.content.getSelected();t!==void 0&&(t=this.data.reasons[t].endpoint)&&(_.X3().resolve(_.ei).resolveCommand(t,{form:{element:this.hostElement}}),_.du(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.Y.sendFeedbackSubmitToastAction=function(){var t;(t=this.data)!=null&&t.completionMessage&&(t=_.jL(this.data.completionMessage),_.du(this.hostElement,"yt-open-popup-action",[t,this]))};
_.Y.onCancelTap=function(){_.du(this.hostElement,"yt-close-popup-action")};
tk.prototype.onPopupOpened=tk.prototype.onPopupOpened;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],tk.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],tk.prototype,"data",void 0);_.N([_.Nl("#content"),_.P("design:type",Object)],tk.prototype,"content",void 0);_.N([_.lc("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],tk.prototype,"onPopupOpened",null);
_.N([_.Ul({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],tk);
_.G(tk,"ytd-ad-feedback-renderer",function(){if(KjL!==void 0)return KjL;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return KjL=t},{mode:1});var v$7;var yr7=function(){return _.z.apply(this,arguments)||this};
_.u(yr7,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],yr7.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],yr7.prototype,"data",void 0);_.N([_.Ul({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],yr7);
_.G(yr7,"ytd-ad-info-dialog-content",function(){if(v$7!==void 0)return v$7;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return v$7=t},{mode:1});var Sb9;var EO=function(){return _.z.apply(this,arguments)||this};
_.u(EO,_.z);EO.prototype.computeConfirmButton=function(t){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:t.confirmLabel}};
EO.prototype.onConfirmTap=function(){_.du(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
EO.prototype.computeShouldShowTitle=function(){var t;return!((t=this.data)==null||!t.title)};
EO.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.X3().resolve(_.ei).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
EO.prototype.onPopupClosed=EO.prototype.onPopupClosed;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],EO.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],EO.prototype,"data",void 0);_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],EO.prototype,"onPopupClosed",null);_.N([_.Ul({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],EO);
_.G(EO,"ytd-ad-info-dialog-renderer",function(){if(Sb9!==void 0)return Sb9;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Sb9=t},{mode:1});var cr7;var p5=function(){var t=_.z.apply(this,arguments)||this;t.actionButtonClass="action-button";t.dismissButtonId="dismiss-button";t.dialogDismiss=!0;return t};
_.u(p5,_.z);_.Y=p5.prototype;_.Y.computeInPlayer=function(t){return(t==null?void 0:t.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.Y.computedLogo=function(){var t,E;return this.isDarkTheme()?(t=this.data)==null?void 0:t.logoDark:(E=this.data)==null?void 0:E.logo};
_.Y.computedHeaderImage=function(){var t,E;return this.isDarkTheme()?(t=this.data)==null?void 0:t.headerImageDark:(E=this.data)==null?void 0:E.headerImage};
_.Y.computeLogoIconId=function(){var t,E,p,U=(t=this.computedLogo())==null?void 0:(E=t.sources)==null?void 0:(p=E[0])==null?void 0:p.height;return U&&U%31===0?"logo-icon-with-padding":"logo-icon"};
_.Y.computeLogoIconHeight=function(){var t,E,p,U=(t=this.computedLogo())==null?void 0:(E=t.sources)==null?void 0:(p=E[0])==null?void 0:p.height;return U&&U%31===0?"31":"24"};
_.Y.onPopupClosed=function(){_.X3().resolve(_.MB).dispose()};
_.Y.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.Y.onShow=function(){this.inPlayer&&_.F$(6);this.titleElement.focus()};
_.Y.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var t=0;t<this.data.impressionEndpoints.length;t++){var E=_.k(this.data.impressionEndpoints[t],_.x2);E&&this.ytComponentBehavior.resolveCommand(E)}};
_.Y.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.du(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.aE.Object.defineProperties(p5.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var t,E;return!((t=this.data)==null||!t.headerImageDark)&&!((E=this.data)==null||!E.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.secondaryButton)}}});
p5.prototype.onPopupClosed=p5.prototype.onPopupClosed;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],p5.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],p5.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.CS.YtVisibilityBehavior),_.P("design:type",Object)],p5.prototype,"ytVisibilityBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],p5.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",Object)],p5.prototype,"actionButtonClass",void 0);_.N([_.e(),_.P("design:type",Object)],p5.prototype,"dismissButtonId",void 0);_.N([_.e(),_.P("design:type",Object)],p5.prototype,"dialogDismiss",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],p5.prototype,"hasHeaderImage",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],p5.prototype,"hasPremiumButton",null);
_.N([_.e({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.P("design:type",Boolean)],p5.prototype,"inPlayer",void 0);_.N([_.Nl("#dismiss-button"),_.P("design:type",HTMLElement)],p5.prototype,"dismissButton",void 0);_.N([_.Nl("#title"),_.P("design:type",HTMLElement)],p5.prototype,"titleElement",void 0);_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],p5.prototype,"onPopupClosed",null);
_.N([_.Ul({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],p5);
_.G(p5,"ytd-enforcement-message-view-model",function(){if(cr7!==void 0)return cr7;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return cr7=t},{mode:1});var tat;var EoL;var UO=function(){var t=_.z.apply(this,arguments)||this;t.TEST_ONLY={immediateValidation:function(){t.immediateValidation()},
onValidationResponse:function(E){t.onValidationResponse(E)},
onGenerateHandleFromNameResponse:function(E){t.onGenerateHandleFromNameResponse(E)}};
return t};
_.u(UO,_.z);_.Y=UO.prototype;_.Y.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.Y.validate=function(){this.immediateValidation()};
_.Y.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.Y.setHandleInputValue=function(t){this.handleDir=this.getHandleDir(t);this.handleInput.value=t;this.validationState={status:"PENDING"};this.immediateValidation()};
_.Y.getHandleDir=function(t){var E=t===""&&!1;return(E=_.qTr.test.call(_.qTr,t))?"rtl":"ltr"};
_.Y.onDataChanged=function(){var t,E;this.handleDir=this.getHandleDir((E=(t=this.data)==null?void 0:t.handle)!=null?E:"");var p;this.validationState=((p=this.data)==null?0:p.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var U;((U=this.data)==null?0:U.validateOnInit)&&this.immediateValidation()};
_.Y.stopPropagation=function(t){t.stopPropagation()};
_.Y.onInput=function(){var t;this.handleDir=this.getHandleDir((t=this.handleInput.value)!=null?t:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.Y.onFocusout=function(t){this.handleInput.contains(t.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.Y.delayedValidation=function(){var t,E;this.debouncedValidation((E=(t=this.data)==null?void 0:t.validationDelayMs)!=null?E:1E3)};
_.Y.immediateValidation=function(){this.debouncedValidation(0)};
_.Y.debouncedValidation=function(t){var E=this;_.qd(this,"debouncedValidation",function(){var p,U=E.staticValidation((p=E.handleInput.value)!=null?p:"");if(U!==void 0)E.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:U};else{var x;if((x=E.data)!=null&&x.validateChannelHandleCommand){E.validationState={status:"LOADING"};var A;E.ytComponentBehavior.resolveCommand(E.data.validateChannelHandleCommand,{form:{handle:(A=E.handleInput.value)!=null?A:""},commandController:{onSuccess:function(m,
b){E.onValidationResponse(b)},
onServerError:function(m,b){E.onValidationServerError(b)}}})}else E.handleUnexpectedValidationError(new _.cC("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",E.data))}},t)};
_.Y.staticValidation=function(t){var E;if(((E=this.data)==null?void 0:E.channelHandleStaticValidationParams)!==void 0){E=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(t)&&E.validValueRegexpErrorMessage!==void 0)return E.validValueRegexpErrorMessage;if(E.minLength!==void 0&&t.length<E.minLength&&E.minLengthErrorMessage!==void 0)return E.minLengthErrorMessage;if(E.maxLength!==void 0&&t.length>E.maxLength&&E.maxLengthErrorMessage!==void 0)return E.maxLengthErrorMessage}};
_.Y.onValidationResponse=function(t){var E=_.k(t.result,RIb);E===void 0?this.handleUnexpectedValidationError(new _.cC("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",t)):this.handleValidationResultRenderer(E)};
_.Y.onValidationServerError=function(t){this.handleUnexpectedValidationError(new _.cC("ValidateChannelHandle request failed.",t))};
_.Y.handleValidationResultRenderer=function(t){if(t.handle===void 0)this.handleUnexpectedValidationError(new _.cC("ChannelHandleValidationResultRenderer does not contain handle.",t));else if(t.handle===this.handleInput.value)switch(t.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:t.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:t.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.cC("Unrecognized ChannelHandleValidationResult",t));break;default:_.UC(t.result)}};
_.Y.handleUnexpectedValidationError=function(t){var E;this.validationState={status:"UNKNOWN",handle:(E=this.handleInput.value)!=null?E:""};_.qW(t)};
_.Y.stopEventPropagation=function(t){t.stopPropagation()};
_.Y.updateHandleOnChannelNameInputChange=function(t){if(!this.wasEdited){var E,p;this.debouncedGenerateHandleFromName(t,(p=(E=this.data)==null?void 0:E.validationDelayMs)!=null?p:1E3)}};
_.Y.debouncedGenerateHandleFromName=function(t,E){var p=this;_.qd(this,"debouncedGenerateHandleFromName",function(){var U;(U=p.data)!=null&&U.validateChannelHandleCommand?p.ytComponentBehavior.resolveCommand(p.data.validateChannelHandleCommand,{form:{name:t},commandController:{onSuccess:function(x,A){p.onGenerateHandleFromNameResponse(A)},
onServerError:function(x,A){_.qW(new _.cC("Error calling GenerateHandleFromName",A))}}}):_.qW(new _.cC("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",p.data))},E)};
_.Y.onGenerateHandleFromNameResponse=function(t){this.wasEdited||((t=_.k(t.result,VAo))?this.setHandleInputValue(t.handle):_.qW(new _.cC("Invalid results when generate handle from name")))};
_.aE.Object.defineProperties(UO.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var t;if(t=this.validationState)t=this.validationState,t=t.status==="OK"||t.status==="UNKNOWN";if(t)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var t;if(((t=this.validationState)==null?void 0:t.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 t,E=(t=this.channelHandleEntity)==null?void 0:t.handleEdit;this.handleDir=this.getHandleDir(E!=null?E:"");return E}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var t,E;if(((t=this.data)==null?void 0:(E=t.channelHandleStaticValidationParams)==null?void 0:E.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
UO.prototype.stopEventPropagation=UO.prototype.stopEventPropagation;UO.prototype.onDataChanged=UO.prototype.onDataChanged;UO.prototype.applyHandleEdit=UO.prototype.applyHandleEdit;UO.prototype.onValueChanged=UO.prototype.onValueChanged;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],UO.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],UO.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],UO.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",Boolean)],UO.prototype,"wasEdited",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],UO.prototype,"handleDir",void 0);_.N([_.Nl("#handle-input"),_.P("design:type",Object)],UO.prototype,"handleInput",void 0);_.N([_.e(),_.Z("validationState"),_.P("design:type",Object),_.P("design:paramtypes",[])],UO.prototype,"value",null);
_.N([_.GI("value"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],UO.prototype,"onValueChanged",null);_.N([_.Z("validationState"),_.P("design:type",Object),_.P("design:paramtypes",[])],UO.prototype,"errorIndicator",null);_.N([_.e({reflectToAttribute:!0}),_.Z("errorIndicator"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],UO.prototype,"borderErrorIndicator",null);
_.N([_.e({selectorArgs:["data.channelHandleEntityKey"],selector:function(t,E){return _.hj(t.entities,"channelHandle",E)}}),
_.P("design:type",Object)],UO.prototype,"channelHandleEntity",void 0);_.N([_.Z("channelHandleEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],UO.prototype,"handleEdit",null);_.N([_.GI("handleEdit"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],UO.prototype,"applyHandleEdit",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],UO.prototype,"onDataChanged",null);
_.N([_.Z("data.channelHandleStaticValidationParams.validValueRegexp"),_.P("design:type",Object),_.P("design:paramtypes",[])],UO.prototype,"validValueRegexp",null);_.N([_.lc("yt-service-request-sent"),_.lc("yt-service-request-completed"),_.lc("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],UO.prototype,"stopEventPropagation",null);_.N([_.Ul({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],UO);
_.G(UO,"ytd-channel-handle-input-renderer",function(){if(EoL!==void 0)return EoL;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return EoL=t},{mode:_.hX("kevlar_poly_si_batch_j025")?1:2});var xJ=function(){var t=_.z.apply(this,arguments)||this;t.data=null;t.errorMessage=null;t.isLoading=!0;t.hideContainer=!1;t.enableNewChannelCreationOnIdForAll=_.r("enable_new_channel_creation_for_id4all");t.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"};t.testOnly={setErrorMessage:function(E){t.resetErrorState();
t.setErrorState(E)}};
return t};
_.u(xJ,_.z);_.Y=xJ.prototype;_.Y.created=function(){this.logScreenVe()};
_.Y.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")};
_.Y.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var t;((t=this.zeroStepErrorMessageEntity)==null?0:t.value)&&this.set("errorMessage",_.wN(this.zeroStepErrorMessageEntity.value))};
_.Y.onCreateTap=function(){var t=this;if(this.data&&this.data.channelCreationEndpoint){var E,p;if(!((E=this.data.createChannelButton)==null?0:(p=E.buttonRenderer)==null?0:p.isDisabled)){var U;if((U=this.nameInput)!=null&&U.value){this.setLoadingState();var x,A;E=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(x=this.handleInput)==null?void 0:x.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((A=this.handleInput)==null?void 0:A.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:E,commandController:{onSuccess:function(m,b){t.onChannelCreationEndpointSuccess(b);t.obakeImageSource&&_.MW("channelCreatedWithObakeImage",{imageSourceType:t.obakeImageSource})},
onServerError:function(){t.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.Y.endpointRequiresServiceRequestAction=function(t){return!!_.k(t,_.Ua)||!!_.k(t,wJ8)};
_.Y.isNavigateAction=function(t){var E;return!!_.k(t,MAb)||!!_.k((E=_.k(t,kkC))==null?void 0:E.command,MAb)};
_.Y.isPlaylistAction=function(t){return!!_.k(t,_.HH)||!!_.k(t,_.Qs)};
_.Y.onChannelCreationEndpointSuccess=function(t){if(t.createChannelError){var E;this.setErrorState((E=t.createChannelError)==null?void 0:E.errorMessage);this.handleInput&&this.handleInput.validate()}else{t.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(t.navigationEndpoint);if(t.actions){E=_.M(t.actions);for(var p=E.next();!p.done;p=E.next())if(p=p.value,this.endpointRequiresServiceRequestAction(p)&&this.ytComponentBehavior.resolveCommand(p),this.isNavigateAction(p)){var U=void 0;p=_.k((U=
_.k(p,kkC))==null?void 0:U.command,MAb);U=void 0;this.isPlaylistAction((U=p)==null?void 0:U.endpoint)&&(_.du(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),U=void 0,this.ytComponentBehavior.resolveCommand((U=p)==null?void 0:U.endpoint))}}t.actions&&t.actions.some(function(x){var A;return _.k(x,MAb)||_.k((A=_.k(x,kkC))==null?void 0:A.command,MAb)})||_.du(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.Y.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.Y.onCancelTap=function(){var t,E,p;if(!((t=this.data)==null?0:(E=t.cancelButton)==null?0:(p=E.buttonRenderer)==null?0:p.isDisabled)){var U,x,A;t=(U=this.data)==null?void 0:(x=U.cancelButton)==null?void 0:(A=x.buttonRenderer)==null?void 0:A.command;if(!t||!_.k(t,_.pzO)){var m;this.nameInput&&((m=this.data)==null?0:m.name)&&(this.nameInput.value=this.data.name);var b;this.handleInput&&((b=this.data)==null?0:b.channelHandleInput)&&(this.handleInput.data=_.k(this.data.channelHandleInput,Q2d));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.Y.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.Y.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.Y.onClearProfilePhotoTap=function(){var t,E,p;((t=this.data)==null?0:(E=t.clearProfilePhotoButton)==null?0:(p=E.buttonRenderer)==null?0:p.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.Y.onEditAvatarTap=function(){var t,E,p;((t=this.data)==null?0:(E=t.editAvatarButton)==null?0:(p=E.buttonRenderer)==null?0:p.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.Y.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)};
_.Y.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var t;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((t=this.data)==null?0:t.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.Y.setErrorState=function(t){this.resetErrorState();if(t)this.set("errorMessage",t);else{var E;if((E=this.zeroStepErrorMessageEntity)==null?0:E.value)this.set("errorMessage",_.wN(this.zeroStepErrorMessageEntity.value));else{var p;((p=this.data)==null?0:p.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.Y.fetchImageBlobWithAlr=function(t,E){E=E===void 0?5:E;var p=this,U,x,A,m,b;return _.q(function(f){switch(f.nextAddress){case 1:return f.yield(fetch(t,{method:"GET",mode:"cors"}),2);case 2:U=f.yieldResult;if(U.ok){f.jumpTo(3);break}if(E===0)throw Error();x=p.addJitter(Math.pow(2,5-E));return f.yield(new Promise(function(B){setTimeout(B,x*1E3)}),4);
case 4:return f.return(p.fetchImageBlobWithAlr(t,E-1));case 3:if(!U.headers.get("content-type").split(";").some(function(B){return B.trim()==="text/plain"})){f.jumpTo(5);
break}A=p;m=A.fetchImageBlobWithAlr;return f.yield(U.text(),6);case 6:return f.return(m.call(A,f.yieldResult,E-1));case 5:return f.yield(U.blob(),7);case 7:return b=f.yieldResult,f.return(b)}})};
_.Y.addJitter=function(t){var E=t*.3*Math.random();Math.random()>.5&&(E*=-1);return t+E};
_.Y.openProfilePicturePicker=function(){var t=this,E,p,U,x,A,m;return _.q(function(b){if(b.nextAddress==1){E=t.data.scottyUploadUrl;if(!E)return b.return();p=document.documentElement.hasAttribute("dark");U=document.body.style.colorScheme;p&&(document.body.style.colorScheme="dark");x=QS8(CtJ(VV7(ii8(p?"dark":"light")),function(f){var B,R,V,Q,C;return _.q(function(d){if(d.nextAddress==1)return B=_.jI(lZd(new lKt(f.photoUrl,!1)).build(),"alr","yes"),t.obakeImageSource=t.pictureChangeSourceToObakeImageSourceType(f.photoSource),
_.aR(d,2),t.setLoadingState(),d.yield(t.fetchImageBlobWithAlr(B),4);if(d.nextAddress!=2)return R=d.yieldResult,V=new FileReader,V.addEventListener("load",function(){var I,O,a,F,L,D;return _.q(function(W){if(W.nextAddress==1){if(R.size>15728640)return t.setErrorState((I=t.data)==null?void 0:I.imageSizeErrorMessage),_.qW(Error("bm")),W.return();if(!V.result)return t.setErrorState((O=t.data)==null?void 0:O.genericImageLoadErrorMessage),_.qW(Error("cm")),W.return();a=V.result;_.aR(W,2);return W.yield(LFL(R,
E),4)}if(W.nextAddress!=2)return F=W.yieldResult,t.handleImageUpdatedAction(a,F),t.resetErrorState(),_.r7(W,0);L=_.nB(W);t.setErrorState((D=t.data)==null?void 0:D.uploadErrorMessage);if(L instanceof Error)_.bV(L);else{var K=new _.cC(JSON.stringify(L));_.bV(K)}_.Do(W)})}),V.readAsDataURL(R),_.r7(d,0);
Q=_.nB(d);t.setErrorState((C=t.data)==null?void 0:C.genericImageLoadErrorMessage);Q instanceof Error?_.bV(Q):_.iV(new _.cC(JSON.stringify(Q)));_.Do(d)})}),function(){t.hideContainer=!1;
document.body.style.colorScheme=U});
_.aR(b,2);return((A=t.data)==null?0:A.shouldViewChannelCreationFormForSupex)?b.yield(x.openPicker("profile-picture/art-selection"),5):b.yield(x.openPicker(),5)}if(b.nextAddress!=2)return _.r7(b,0);_.nB(b);t.setErrorState((m=t.data)==null?void 0:m.selectImageErrorMessage);_.Do(b)})};
_.Y.pictureChangeSourceToObakeImageSourceType=function(t){switch(t){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.Y.logScreenVe=function(){_.PH(_.Pu(),124448)};
_.Y.graftServerVe=function(){var t=_.vV(),E,p,U=(E=this.data)==null?void 0:(p=E.loggingDirectives)==null?void 0:p.trackingParams;U&&t&&(this.channelCreationFormVe=_.Pu().graftServerVe(U,t),t={visualElement:this.channelCreationFormVe},_.sl().reportShown(t))};
_.Y.isNameChanged=function(t){var E;return((E=this.data)==null?void 0:E.name)!==t};
_.Y.isHandleChanged=function(t){var E,p=_.k((E=this.data)==null?void 0:E.channelHandleInput,Q2d);return p&&t?p.handle!==t:!1};
_.Y.handleImageUpdatedAction=function(t,E){this.hideContainer=!1;this.previewDataUrl=t;this.encryptedBlobId=E};
_.Y.handleImageSelectionErrorAction=function(t){this.hideContainer=!1;this.setErrorState(t)};
_.Y.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.Y.showContainer=function(){this.hideContainer=!1};
_.Y.maybeWipeZeroStepErrorMessage=function(){var t,E=(t=this.data)==null?void 0:t.zeroStepErrorMessageEntityKey,p;E&&((p=this.zeroStepErrorMessageEntity)==null?0:p.value)&&this.ytdReduxBehavior.dispatch(_.P9("stringEntity",E,{key:E,value:""}))};
_.aE.Object.defineProperties(xJ.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 t;return((t=this.photoThumbnail)==null?0:t.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 t;return!((t=this.data)==null||!t.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.descriptionInfo}}});
xJ.prototype.dataChanged=xJ.prototype.dataChanged;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],xJ.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],xJ.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],xJ.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],xJ.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],xJ.prototype,"errorMessage",void 0);
_.N([_.e(),_.P("design:type",Object)],xJ.prototype,"isLoading",void 0);_.N([_.e(),_.P("design:type",String)],xJ.prototype,"previewDataUrl",void 0);_.N([_.e(),_.P("design:type",Number)],xJ.prototype,"obakeImageSource",void 0);_.N([_.e(),_.P("design:type",Object)],xJ.prototype,"hideContainer",void 0);_.N([_.Nl("#title-input"),_.P("design:type",Object)],xJ.prototype,"nameInput",void 0);_.N([_.Nl("#handle-input"),_.P("design:type",Object)],xJ.prototype,"handleInput",void 0);
_.N([_.e(),_.P("design:type",Boolean)],xJ.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.N([_.e({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.n__}),_.P("design:type",Object)],xJ.prototype,"zeroStepErrorMessageEntity",void 0);_.N([_.Z("data","data.isDefaultProfilePhoto","previewDataUrl"),_.P("design:type",Object),_.P("design:paramtypes",[])],xJ.prototype,"photoThumbnail",null);
_.N([_.Z("data","data.isDefaultProfilePhoto","photoThumbnail"),_.P("design:type",Object),_.P("design:paramtypes",[])],xJ.prototype,"userSetPhotoThumbnailUrl",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],xJ.prototype,"hideProfilePhotoButtonLayer",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],xJ.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.N([_.P3("data","zeroStepErrorMessageEntity"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xJ.prototype,"dataChanged",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data.descriptionInfo","zeroStepErrorMessageEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],xJ.prototype,"description",null);_.N([_.Ul({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],xJ);
_.G(xJ,"ytd-channel-creation-dialog-renderer",function(){if(tat!==void 0)return tat;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return tat=t},{mode:1});var pab;var Ak=function(){var t=_.z.apply(this,arguments)||this;t.isLoading=!1;t.isDisabled=!1;return t};
_.u(Ak,_.z);Ak.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Ak.prototype.updateDisabled=function(){var t;this.isDisabled=this.isLoading||((t=this.handleInput)==null?void 0:t.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
Ak.prototype.onSaveClick=function(){var t=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var E;((E=this.data)==null?void 0:E.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 p;if((p=t.data)==null?0:p.nextEndpoint){var U;t.ytComponentBehavior.resolveCommand((U=t.data)==null?void 0:U.nextEndpoint)}else t.isLoading=
!1,t.closeDialog()},
onServerError:function(){t.isLoading=!1;t.handleInput.validate();var p;t.errorMessage=(p=t.data)==null?void 0:p.errorMessage}}}))}};
Ak.prototype.closeDialog=function(){_.du(this.hostElement,"yt-close-popup-action",[this.is])};
Ak.prototype.updateDisabled=Ak.prototype.updateDisabled;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Ak.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Ak.prototype,"data",void 0);_.N([_.Nl("#handle-input"),_.P("design:type",Object)],Ak.prototype,"handleInput",void 0);_.N([_.GI("isLoading"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ak.prototype,"updateDisabled",null);
_.N([_.Ul({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],Ak);
_.G(Ak,"ytd-channel-handle-edit-dialog-renderer",function(){if(pab!==void 0)return pab;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return pab=t},{mode:1});var Uge;var YJ=function(){return _.z.apply(this,arguments)||this};
_.u(YJ,_.z);YJ.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],YJ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],YJ.prototype,"data",void 0);_.N([_.Ul({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],YJ);
_.G(YJ,"ytd-channel-switcher-footer-renderer",function(){if(Uge!==void 0)return Uge;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Uge=t},{mode:1});var xgK;var AKt;var Mu=function(){return _.z.apply(this,arguments)||this};
_.u(Mu,_.z);Mu.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
Mu.prototype.onIronChange=Mu.prototype.onIronChange;_.N([_.e(),_.P("design:type",Object)],Mu.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!1}),_.P("design:type",Function)],Mu.prototype,"onDontAskAgainChanged",void 0);_.N([_.Nl("#checkbox"),_.P("design:type",Object)],Mu.prototype,"checkbox",void 0);_.N([_.lc("iron-change"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mu.prototype,"onIronChange",null);
_.N([_.Ul({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],Mu);
_.G(Mu,"ytd-identity-prompt-footer-renderer",function(){if(AKt!==void 0)return AKt;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return AKt=t},{mode:1});var m2=function(){var t=_.z.apply(this,arguments)||this;t.dontAskAgain=!1;t.showPopup=!1;t.boundDontAskAgainChanged=function(E){t.dontAskAgainChanged(E)};
t.boundOnAccountItemTap=function(E){t.onAccountItemTap(E)};
return t};
_.u(m2,_.z);_.Y=m2.prototype;
_.Y.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]]"}}}}}};
_.Y.ready=function(){var t=this;_.ZN(this.hostElement).querySelector("#container").addEventListener("scroll",function(){t.ytRendererBehavior.markDirty()})};
_.Y.dontAskAgainChanged=function(t){this.dontAskAgain=t};
_.Y.onAccountItemTap=function(t){if(t){var E={};this.dontAskAgain&&(E={dont_ask_again:this.dontAskAgain});_.xR(t,E)}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.Y.redirectOnlyAccount=function(t){t.sections&&t.sections.length>0&&(t=_.k(t.sections[0],_.rYZ),(t==null?0:t.contents)&&(t==null?void 0:t.contents.length)<=1?(t=_.ji(window.location.href),(t==null?0:t.next)&&_.vT8(t.next)?_.xR(t.next):_.xR("/")):this.showPopup=!0)};
m2.prototype.dataChanged=m2.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],m2.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],m2.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],m2.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!1}),_.P("design:type",Object)],m2.prototype,"dontAskAgain",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],m2.prototype,"showPopup",void 0);_.N([_.e({reflectToAttribute:!1}),_.P("design:type",Object)],m2.prototype,"boundDontAskAgainChanged",void 0);_.N([_.e({reflectToAttribute:!1}),_.P("design:type",Object)],m2.prototype,"boundOnAccountItemTap",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],m2.prototype,"dataChanged",null);
_.N([_.Ul({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],m2);
_.G(m2,"ytd-channel-switcher-renderer",function(){if(xgK!==void 0)return xgK;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return xgK=t},{mode:1});var YzL;var bj=function(){return _.z.apply(this,arguments)||this};
_.u(bj,_.z);_.aE.Object.defineProperties(bj.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.N([_.e(),_.P("design:type",Object)],bj.prototype,"data",void 0);_.N([_.Z("data"),_.P("design:type",Array),_.P("design:paramtypes",[])],bj.prototype,"steps",null);_.N([_.Ul({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],bj);
_.G(bj,"ytd-channel-transfer-stepper-renderer",function(){if(YzL!==void 0)return YzL;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return YzL=t},{mode:1});var MaC;var ij=function(){var t=_.z.apply(this,arguments)||this;t.data=null;t.isError=!1;t.isLoading=!1;return t};
_.u(ij,_.z);_.Y=ij.prototype;_.Y.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"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.Y.computeProfileName=function(t){return t?t.givenNameValue+" "+t.familyNameValue:""};
_.Y.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)};
_.Y.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)};
ij.prototype.onYtServiceRequestError=ij.prototype.onYtServiceRequestError;ij.prototype.onYtServiceRequestSent=ij.prototype.onYtServiceRequestSent;ij.prototype.dataChanged=ij.prototype.dataChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],ij.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],ij.prototype,"data",void 0);
_.N([_.e({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.P("design:type",String)],ij.prototype,"profileName",void 0);_.N([_.e(),_.P("design:type",Object)],ij.prototype,"isError",void 0);_.N([_.e(),_.P("design:type",Object)],ij.prototype,"isLoading",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ij.prototype,"dataChanged",null);
_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.m8]),_.P("design:returntype")],ij.prototype,"onYtServiceRequestSent",null);_.N([_.lc("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.m8]),_.P("design:returntype")],ij.prototype,"onYtServiceRequestError",null);_.N([_.Ul({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],ij);
_.G(ij,"ytd-channel-warm-welcome-cont-renderer",function(){if(MaC!==void 0)return MaC;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return MaC=t},{mode:1});var mg7;var qu=function(){var t=_.z.apply(this,arguments)||this;t.data=null;return t};
_.u(qu,_.z);qu.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
qu.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],qu.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],qu.prototype,"data",void 0);_.N([_.Ul({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],qu);
_.G(qu,"ytd-channel-warm-welcome-renderer",function(){if(mg7!==void 0)return mg7;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return mg7=t},{mode:1});var bet;var Hm=function(){return _.z.apply(this,arguments)||this};
_.u(Hm,_.z);_.aE.Object.defineProperties(Hm.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.authorThumbnail)||{}}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Hm.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Hm.prototype,"data",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Hm.prototype,"thumbnailDetails",null);_.N([_.Ul({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],Hm);
_.G(Hm,"ytd-comment-preview-renderer",function(){if(bet!==void 0)return bet;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return bet=t},{mode:1});var ieL;var f5=function(){return _.z.apply(this,arguments)||this};
_.u(f5,_.z);f5.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.aE.Object.defineProperties(f5.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.submitButton}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],f5.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],f5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],f5.prototype,"data",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],f5.prototype,"submitButton",null);_.N([_.Ul({is:"ytd-notice-renderer",disableElementRegistration:!0})],f5);
_.G(f5,"ytd-notice-renderer",function(){if(ieL!==void 0)return ieL;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return ieL=t},{mode:1});var qz7;var Bm=function(){return _.z.apply(this,arguments)||this};
_.u(Bm,_.z);Bm.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Bm.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Bm.prototype,"data",void 0);_.N([_.Ul({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],Bm);
_.G(Bm,"ytd-preview-comment-dialog-content",function(){if(qz7!==void 0)return qz7;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return qz7=t},{mode:1});var Heg;var wK=function(){return _.z.apply(this,arguments)||this};
_.u(wK,_.z);wK.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
wK.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],wK.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],wK.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],wK.prototype,"data",void 0);_.N([_.Ul({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],wK);
_.G(wK,"ytd-preview-comment-dialog-renderer",function(){if(Heg!==void 0)return Heg;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Heg=t},{mode:1});var fi8;var BBl=_.r("web_button_rework")&&_.HC("BUTTON_REWORK")||_.r("web_button_rework_with_live"),RY=function(){var t=_.z.apply(this,arguments)||this;t.closeLabel=_.zF("CLOSE");t.selectedAmountIndex=1;t.privacyCheckboxValue=!1;t.useAmsterdamStyle=BBl;t.amountPlaceholderIndex=-1;return t};
_.u(RY,_.z);_.Y=RY.prototype;_.Y.onAmountClick=function(t){this.selectedAmountIndex=_.ZN(this.hostElement).querySelector("#amounts").indexForElement(t.currentTarget)};
_.Y.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.du(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.Y.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.du(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.du(this.hostElement,"yt-close-popup-action",[this.is]);var t;(t=_.k1())==null||t.getPlayerPromise().then(function(E){E.pauseVideo()})}};
_.Y.donationCallback=function(t){t.success?(this.hostElement.hasAttribute("live-chat")&&t.response&&t.response.data&&t.response.data.actions&&_.du(this.hostElement,"yt-live-chat-open-popup",[t.response.data.actions[0]]),_.du(this.hostElement,"yt-close-popup-action",[this.is]),_.du(this.hostElement,"yt-live-chat-close-buy-flow")):t.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(t.errorMessageRenderer)};
_.Y.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.ZN(this.hostElement).querySelector("#custom-amount-input").focus()};
_.Y.updateConfirmationDialogTextWithAmount=function(t){var E=this.getConfirmDialogRuns();E&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(E),"text"],this.getFormattedAmount(t))};
_.Y.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.Y.getAmountPlaceholderIndex=function(t){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=t.findIndex(function(E){return E.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.Y.getFormattedAmount=function(t){var E;return(new _.iC(4,((E=this.data)==null?void 0:E.currencyCode)||"")).format(t)};
_.Y.isAmountValid=function(t){if(t==="")return!1;t=Number(t)*1E6;var E=this.get("minAmountMicros",this.data),p=this.get("maxAmountMicros",this.data);return E&&t<E||p&&t>p?!1:!0};
_.Y.setInputError=function(){this.shouldShowValidationError?_.ZN(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.ZN(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.Y.setInitialCheckboxValue=function(){var t;this.privacyCheckboxValue=!((t=this.data)==null||!t.privacyCheckboxInitialState)};
_.Y.updateCustomAmountInputFromBinding=function(t){this.customAmountInput=t.detail.value};
_.Y.updatePrivacyCheckboxValueFromBinding=function(t){this.privacyCheckboxValue=t.detail.value};
_.aE.Object.defineProperties(RY.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var t=this,E,p;return((E=this.data)==null?void 0:(p=E.suggestedAmounts)==null?void 0:p.map(function(U,x){return{buttonRenderer:{style:t.selectedAmountIndex===x?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:U.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 t;return!((t=this.data)==null||!t.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 t=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(t&&this.amountMicros!==null)return Object.assign({},t,{ypcGetCartEndpoint:Object.assign({},t.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 t=this.get("confirmLargeAmount",this.data);if(t&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),t}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var t=this.get("donateButton.buttonRenderer",this.data);if(t)return Object.assign({},t,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
RY.prototype.setInitialCheckboxValue=RY.prototype.setInitialCheckboxValue;RY.prototype.setInputError=RY.prototype.setInputError;RY.prototype.setFocusOnCustomAmountInput=RY.prototype.setFocusOnCustomAmountInput;_.N([_.g(xB7),_.P("design:type",Object)],RY.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],RY.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],RY.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],RY.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],RY.prototype,"closeLabel",void 0);_.N([_.e(),_.P("design:type",Object)],RY.prototype,"selectedAmountIndex",void 0);_.N([_.e(),_.P("design:type",String)],RY.prototype,"customAmountInput",void 0);_.N([_.e(),_.P("design:type",Object)],RY.prototype,"privacyCheckboxValue",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],RY.prototype,"useAmsterdamStyle",void 0);_.N([_.GI("customAmount"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],RY.prototype,"setFocusOnCustomAmountInput",null);_.N([_.Z("data","selectedAmountIndex"),_.P("design:type",Array),_.P("design:paramtypes",[])],RY.prototype,"suggestedAmountButtons",null);
_.N([_.Z("data","selectedAmountIndex"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],RY.prototype,"isCustomAmountSelected",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],RY.prototype,"showPrivacyCheckbox",null);_.N([_.Z("data","selectedAmountIndex","customAmount"),_.P("design:type",Object),_.P("design:paramtypes",[])],RY.prototype,"amountMicros",null);
_.N([_.Z("isCustomAmountSelected","customAmountInput"),_.P("design:type",Object),_.P("design:paramtypes",[])],RY.prototype,"customAmount",null);_.N([_.Z("customAmount"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],RY.prototype,"shouldShowValidationError",null);_.N([_.Z("customAmount"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],RY.prototype,"isDonateButtonEnabled",null);
_.N([_.Z("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.P("design:type",Object),_.P("design:paramtypes",[])],RY.prototype,"donateCommand",null);_.N([_.Z("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.P("design:type",Object),_.P("design:paramtypes",[])],RY.prototype,"donateCommandWithConfirmation",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],RY.prototype,"largeDonationThreshold",null);
_.N([_.Z("customAmount","donateCommand","amountMicros"),_.P("design:type",Object),_.P("design:paramtypes",[])],RY.prototype,"confirmLargeAmountCommand",null);_.N([_.Z("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.P("design:type",Object),_.P("design:paramtypes",[])],RY.prototype,"donateButtonRenderer",null);_.N([_.GI("shouldShowValidationError"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],RY.prototype,"setInputError",null);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],RY.prototype,"setInitialCheckboxValue",null);_.N([_.Ul({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],RY);
_.G(RY,"ytd-donation-amount-picker-renderer",function(){if(fi8!==void 0)return fi8;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return fi8=t},{mode:1});var wao;var R$t=function(){return _.z.apply(this,arguments)||this};
_.u(R$t,_.z);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],R$t.prototype,"ytComponentBehavior",void 0);_.N([_.e({}),_.P("design:type",Object)],R$t.prototype,"data",void 0);_.N([_.Ul({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],R$t);
_.G(R$t,"ytd-donation-post-transaction-content",function(){if(wao!==void 0)return wao;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return wao=t},{mode:1});var Va8;var VW=function(){return _.z.apply(this,arguments)||this};
_.u(VW,_.z);VW.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],VW.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],VW.prototype,"ytRendererBehavior",void 0);_.N([_.e({}),_.P("design:type",Object)],VW.prototype,"data",void 0);_.N([_.Ul({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],VW);
_.G(VW,"ytd-donation-post-transaction-renderer",function(){if(Va8!==void 0)return Va8;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Va8=t},{mode:1});var QMg;var C1K;var QW=function(){return _.z.apply(this,arguments)||this};
_.u(QW,_.z);QW.prototype.computeIsStreamingProvider=function(t){return!!t.isStreamingShelf};
QW.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],QW.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],QW.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],QW.prototype,"data",void 0);_.N([_.e({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],QW.prototype,"isStreamingProvider",void 0);
_.N([_.Ul({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],QW);
_.G(QW,"ytd-media-provider-renderer",function(){if(C1K!==void 0)return C1K;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return C1K=t},{mode:1});var jM7;var C5=function(){return _.z.apply(this,arguments)||this};
_.u(C5,_.z);C5.prototype.observeLightsourcePalette=function(){var t,E=(t=this.data)==null?void 0:t.vibrantsourceColorPaletteData;E&&_.$2(this.hostElement,E)};
C5.prototype.observeLightsourcePalette=C5.prototype.observeLightsourcePalette;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],C5.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],C5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],C5.prototype,"data",void 0);
_.N([_.GI("data.vibrantsourceColorPaletteData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],C5.prototype,"observeLightsourcePalette",null);_.N([_.Ul({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],C5);
_.G(C5,"ytd-streaming-pop-up-dialog",function(){if(jM7!==void 0)return jM7;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return jM7=t},{mode:1});var j9=function(){return _.z.apply(this,arguments)||this};
_.u(j9,_.z);j9.prototype.onPopupOpened_=function(){var t;((t=this.data)==null?0:t.serviceEndpoint)&&_.X3().resolve(_.ei).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
j9.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
j9.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"}}}}};
j9.prototype.onPopupOpened_=j9.prototype.onPopupOpened_;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],j9.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],j9.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.I6),_.P("design:type",Object)],j9.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],j9.prototype,"data",void 0);
_.N([_.lc("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],j9.prototype,"onPopupOpened_",null);_.N([_.Ul({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],j9);
_.G(j9,"ytd-brandconnect-popup-renderer",function(){if(QMg!==void 0)return QMg;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return QMg=t},{mode:1});var rKt;var rK=function(){return _.z.apply(this,arguments)||this};
_.u(rK,_.z);_.Y=rK.prototype;_.Y.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.dataChanged=function(){for(var t=0;t<this.getOptionRenderers().length;t++)this.notifyPath("data.options."+t+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+t+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.Y.updateSubmitButton=function(t){this.set("data.submitButton.buttonRenderer.isDisabled",!t)};
_.Y.computeAlt=function(t){return _.R4(t)};
_.Y.onDismissTap=function(){_.du(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.X3().resolve(_.ei).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.Y.getOptionRenderers=function(t){return(t=t||this.data)&&t.options?t.options.reduce(function(E,p){p.checkboxSurveyOptionRenderer&&E.push(p.checkboxSurveyOptionRenderer);return E},[]):[]};
_.Y.onOptionChange=function(t){var E=this,p=!1;if(t.detail.checked)for(var U=this.getOptionRenderers().find(function(b){return b.value===t.detail.value}),x=this.getOptionRenderers(),A=0;A<x.length;A++){var m=x[A];
this.notifyPath("data.options."+A+".checkboxSurveyOptionRenderer.checked");m.checked&&((U==null?0:U.isExclusiveOption)?!m.isExclusiveOption:m.isExclusiveOption)?this.set("data.options."+A+".checkboxSurveyOptionRenderer.checked",!1):m.checked&&(p=!0)}else p=this.getOptionRenderers().some(function(b,f){E.notifyPath("data.options."+f+".checkboxSurveyOptionRenderer.checked");return b.checked});
this.updateSubmitButton(p)};
_.Y.onSubmitTap=function(){var t=this.getOptionRenderers().filter(function(A){return A.checked});
if(t.length!==0){var E=t.map(function(A){return A.responseEndpoint});
t=[];for(var p=1;p<E.length;p++){var U=void 0,x=(U=_.k(E[p],_.xZ))==null?void 0:U.feedbackToken;x&&t.push(x)}E=[E[0]];t.length&&E.push({extra_feedback_tokens:t});_.JZ(this.hostElement,E);_.du(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);t=this.data&&this.data.submitActions||[];if(_.r("kevlar_command_handler_migration_killswitch"))_.IK(this.hostElement,t,this.hostElement);else for(t=_.M(t),E=t.next();!E.done;E=t.next())this.ytComponentBehavior.resolveCommand(E.value)}};
rK.prototype.onOptionChange=rK.prototype.onOptionChange;rK.prototype.dataChanged=rK.prototype.dataChanged;_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],rK.prototype,"ytEventForwardingBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],rK.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],rK.prototype,"ytComponentBehavior",void 0);
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],rK.prototype,"ytRendererBehavior",void 0);_.N([_.g(zYd),_.P("design:type",Object)],rK.prototype,"ytdHatsSurveyBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],rK.prototype,"data",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rK.prototype,"dataChanged",null);
_.N([_.lc("ytd-checkbox-survey-option-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],rK.prototype,"onOptionChange",null);_.N([_.Ul({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],rK);
_.G(rK,"ytd-checkbox-survey-renderer",function(){if(rKt!==void 0)return rKt;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return rKt=t},{mode:1});var krK;var dgC;var kJ=function(){return _.z.apply(this,arguments)||this};
_.u(kJ,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],kJ.prototype,"ytRendererBehavior",void 0);_.N([_.g(eYL),_.P("design:type",Object)],kJ.prototype,"ytdDismissalReasonBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],kJ.prototype,"data",void 0);_.N([_.Ul({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],kJ);
_.G(kJ,"ytd-dismissal-reason-text-renderer",function(){if(dgC!==void 0)return dgC;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return dgC=t},{mode:1});var uu5;var dK=function(){return _.z.apply(this,arguments)||this};
_.u(dK,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],dK.prototype,"ytRendererBehavior",void 0);_.N([_.g(eYL),_.P("design:type",Object)],dK.prototype,"ytdDismissalReasonBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],dK.prototype,"data",void 0);_.N([_.Ul({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],dK);
_.G(dK,"ytd-dismissal-reason-video-renderer",function(){if(uu5!==void 0)return uu5;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return uu5=t},{mode:1});var uj=function(){return _.z.apply(this,arguments)||this};
_.u(uj,_.z);_.Y=uj.prototype;_.Y.created=function(){this.selectedFeedbackTokens=new eX};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.Y.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.Y.onDismissalReasonSelected=function(t,E){_.kT(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(E);this.hasReasonsSelected=!0};
_.Y.onDismissalReasonDeselected=function(t,E){_.kT(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(E);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.Y.onCancelTap=function(){_.du(this.hostElement,"yt-close-popup-action")};
_.Y.onSubmitTap=function(){var t=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(t={feedback_tokens:t},_.X3().resolve(_.ei).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},t,{element:this.hostElement})}));_.du(this.hostElement,"yt-close-popup-action")};
uj.prototype.onDismissalReasonDeselected=uj.prototype.onDismissalReasonDeselected;uj.prototype.onDismissalReasonSelected=uj.prototype.onDismissalReasonSelected;uj.prototype.dataChanged=uj.prototype.dataChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],uj.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],uj.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],uj.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",Boolean)],uj.prototype,"hasReasonsSelected",void 0);_.N([_.e(),_.P("design:type",eX)],uj.prototype,"selectedFeedbackTokens",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uj.prototype,"dataChanged",null);_.N([_.lc("yt-dismissal-reason-selected"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,String]),_.P("design:returntype")],uj.prototype,"onDismissalReasonSelected",null);
_.N([_.lc("yt-dismissal-reason-deselected"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,String]),_.P("design:returntype")],uj.prototype,"onDismissalReasonDeselected",null);_.N([_.Ul({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],uj);
_.G(uj,"ytd-dismissal-follow-up-renderer",function(){if(krK!==void 0)return krK;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return krK=t},{mode:1});var JKJ;var Jk=function(){return _.z.apply(this,arguments)||this};
_.u(Jk,_.z);_.Y=Jk.prototype;_.Y.onCheckedChange=function(){this.multiselect||_.kT(this.hostElement,"yt-feedback-single-select-changed");_.ZN(this.hostElement).querySelector("#freeform").focus();_.kT(this.hostElement,"yt-refit")};
_.Y.showTextBox=function(t,E){return t&&E};
_.Y.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))};
_.Y.updateDataCheckedFromBinding=function(t){this.set("data.checked",t.detail.value)};
_.Y.updateDataResultTextFromBinding=function(t){this.set("data.resultText",t.detail.value)};
Jk.prototype.dataChanged=Jk.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Jk.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Jk.prototype,"data",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],Jk.prototype,"multiselect",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Jk.prototype,"dataChanged",null);
_.N([_.Ul({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],Jk);
_.G(Jk,"ytd-feedback-option-renderer",function(){if(JKJ!==void 0)return JKJ;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return JKJ=t},{mode:1});var Ii5;var IY=function(){return _.z.apply(this,arguments)||this};
_.u(IY,_.z);IY.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
IY.prototype.onSingleSelectCheckedChanged=function(t){t=_.Qx(t);for(var E=0;E<this.data.options.length;E++)if(t.data!==_.k(this.data.options[E],Kv8)){var p="data.options."+E+".feedbackOptionRenderer.checked";this.notifyPath(p);this.set(p,!1)}};
IY.prototype.onSingleSelectCheckedChanged=IY.prototype.onSingleSelectCheckedChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],IY.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],IY.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],IY.prototype,"data",void 0);
_.N([_.lc("yt-feedback-single-select-changed"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],IY.prototype,"onSingleSelectCheckedChanged",null);_.N([_.Ul({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],IY);
_.G(IY,"ytd-feedback-question-renderer",function(){if(Ii5!==void 0)return Ii5;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Ii5=t},{mode:1});var go7;var gK=function(){return _.z.apply(this,arguments)||this};
_.u(gK,_.z);gK.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
gK.prototype.getSelectedFeedbackResults=function(){for(var t={},E=0;E<this.data.questions.length;E++)for(var p=_.k(this.data.questions[E],$St),U=0;U<p.options.length;U++){var x=_.k(p.options[U],Kv8);x&&x.checked&&(t[x.optionKey]=x.resultText)}return t};
gK.prototype.onKeyUp=function(){var t=this;_.g4(_.ir,function(){_.kT(t.hostElement,"yt-refit")});
_.ir.start()};
gK.prototype.submitSurvey=function(){var t=this.getSelectedFeedbackResults();Object.keys(t).length>0&&this.data.submitFeedbackEndpoint&&(t={survey_results:t,is_feedback_token_unencrypted:!0},_.X3().resolve(_.ei).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},t,{element:this.hostElement})}))};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],gK.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],gK.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],gK.prototype,"data",void 0);_.N([_.Ul({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],gK);
_.G(gK,"ytd-feedback-survey-renderer",function(){if(go7!==void 0)return go7;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return go7=t},{mode:1});var ZeC;var OeL;var ZX=function(){return _.z.apply(this,arguments)||this};
_.u(ZX,_.z);ZX.prototype.computeAlt=function(t){return _.R4(t)};
ZX.prototype.submitResponse=function(){var t,E;(t=this.data)!=null&&t.feedbackToken&&((E=this.data)==null?void 0:E.nextStageIndex)!==void 0&&(_.uO(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.uO(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
ZX.prototype.onClick=function(){this.submitResponse()};
ZX.prototype.onClick=ZX.prototype.onClick;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],ZX.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],ZX.prototype,"vertical",void 0);_.N([_.lc("click"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ZX.prototype,"onClick",null);
_.N([_.Ul({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],ZX);
_.G(ZX,"ytd-single-select-answer-option-renderer",function(){if(OeL!==void 0)return OeL;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return OeL=t},{mode:1});var Xao;var OO=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return t};
_.u(OO,_.z);OO.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
OO.prototype.dataChanged=function(){var t,E;this.vertical=((E=(t=this.data)==null?void 0:t.answerOrientation)!=null?E:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
OO.prototype.submitFeedback=function(t){var E;((E=this.data)==null?0:E.responseEndpoint)&&t&&_.JZ(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[t]}])};
OO.prototype.dataChanged=OO.prototype.dataChanged;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],OO.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],OO.prototype,"eventForwardingBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],OO.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],OO.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],OO.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],OO.prototype,"vertical",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],OO.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],OO);
_.G(OO,"ytd-single-select-question-renderer",function(){if(Xao!==void 0)return Xao;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Xao=t},{mode:1});var XF=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return t};
_.u(XF,_.z);_.Y=XF.prototype;_.Y.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"}}}};
_.Y.dataChanged=function(){this.jumpToStage(0)};
_.Y.jumpToStage=function(t){var E,p;if((E=this.data)==null?0:(p=E.stages)==null?0:p[t])this.currentStage=this.data.stages[t],this.refitAfterRender()};
_.Y.computeAlt=function(t){return _.R4(t)};
_.Y.computeSimpleMessage=function(t){var E;return(E=_.k(t,SV9))==null?void 0:E.messageText};
_.Y.computeHideDismiss=function(t){var E;return(E=_.k(t,Kpd))==null?void 0:E.hideParentDismissButton};
_.Y.onDismissTap=function(){_.du(this.hostElement,"yt-close-popup-action");_.k(this.currentStage,SV9)||this.data.dismissalEndpoint&&_.X3().resolve(_.ei).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.Y.refitAfterRender=function(){var t=this;_.XE(this,function(){_.kT(t.hostElement,"yt-refit")})};
XF.prototype.dataChanged=XF.prototype.dataChanged;_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],XF.prototype,"eventForwardingBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],XF.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],XF.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],XF.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.g(zYd),_.P("design:type",Object)],XF.prototype,"ytdHatsSurveyBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],XF.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],XF.prototype,"currentStage",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],XF.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],XF);
_.G(XF,"ytd-multi-stage-survey-renderer",function(){if(ZeC!==void 0)return ZeC;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return ZeC=t},{mode:1});var h$o;var hk=function(){return _.z.apply(this,arguments)||this};
_.u(hk,_.z);hk.prototype.computeAlt=function(t){return _.R4(t)};
hk.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.X3().resolve(_.ei).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.du(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(piK(!1)))};
hk.prototype.onTap=function(){this.vertical&&this.submitResponse()};
hk.prototype.onTap=hk.prototype.onTap;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],hk.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],hk.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],hk.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],hk.prototype,"vertical",void 0);
_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],hk.prototype,"onTap",null);_.N([_.Ul({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],hk);
_.G(hk,"ytd-single-option-survey-option-renderer",function(){if(h$o!==void 0)return h$o;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return h$o=t},{mode:1});var aib;var aY=function(){return _.z.apply(this,arguments)||this};
_.u(aY,_.z);_.Y=aY.prototype;_.Y.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.dataChanged=function(){var t,E;this.vertical=(((t=this.data)==null?void 0:(E=t.surveyOrientation)==null?void 0:E.type)||"HORIZONTAL")==="VERTICAL"};
_.Y.computeAlt=function(t){return _.R4(t)};
_.Y.onDismissTap=function(){_.du(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.X3().resolve(_.ei).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(piK(!1))};
aY.prototype.dataChanged=aY.prototype.dataChanged;_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],aY.prototype,"eventForwardingBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],aY.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],aY.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(zYd),_.P("design:type",Object)],aY.prototype,"ytdHatsSurveyBehavior",void 0);
_.N([_.g(_.Be),_.P("design:type",Object)],aY.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],aY.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],aY.prototype,"vertical",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],aY.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],aY);
_.G(aY,"ytd-single-option-survey-renderer",function(){if(aib!==void 0)return aib;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return aib=t},{mode:1});var e$8;var e9=function(){return _.z.apply(this,arguments)||this};
_.u(e9,_.z);e9.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
e9.prototype.onDismissTap=function(){_.du(this.hostElement,"yt-close-popup-action")};
e9.prototype.onNavigate=function(){_.du(this.hostElement,"yt-close-popup-action")};
e9.prototype.onNavigate=e9.prototype.onNavigate;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],e9.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],e9.prototype,"ytEventForwardingBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],e9.prototype,"data",void 0);_.N([_.lc("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],e9.prototype,"onNavigate",null);
_.N([_.Ul({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],e9);
_.G(e9,"ytd-survey-follow-up-renderer",function(){if(e$8!==void 0)return e$8;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return e$8=t},{mode:1});var FG8;var z$o;var liK;var FF=function(){var t=_.z.apply(this,arguments)||this;t.polymer2="Element"in Polymer;return t};
_.u(FF,_.z);_.Y=FF.prototype;_.Y.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.Y.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.Y.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.Y.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IU("minutes-changed",this.minutes))};
_.Y.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IU("seconds-changed",this.seconds))};
_.Y.updateMinutesFromBinding=function(t){this.minutes=t.detail.value};
_.Y.updateSecondsFromBinding=function(t){this.seconds=t.detail.value};
FF.prototype.secondsChangedForBinding=FF.prototype.secondsChangedForBinding;FF.prototype.minutesChangedForBinding=FF.prototype.minutesChangedForBinding;FF.prototype.secondsChanged=FF.prototype.secondsChanged;_.N([_.e(),_.P("design:type",String)],FF.prototype,"minutes",void 0);_.N([_.e(),_.P("design:type",String)],FF.prototype,"seconds",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],FF.prototype,"polymer2",void 0);
_.N([_.Nl("#seconds"),_.P("design:type",Object)],FF.prototype,"secondsEl",void 0);_.N([_.GI("seconds"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],FF.prototype,"secondsChanged",null);_.N([_.GI("minutes"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],FF.prototype,"minutesChangedForBinding",null);
_.N([_.GI("seconds"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],FF.prototype,"secondsChangedForBinding",null);_.N([_.p4({is:"yt-timestamp-input",disableElementRegistration:!0})],FF);
_.G(FF,"yt-timestamp-input",function(){if(liK===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;z$o===void 0&&(z$o=document.createElement("template"));var U=z$o;p.call(E,U.content.cloneNode(!0),t.content.firstChild);liK=t}t=liK;return t},{mode:2});var zT=function(){return _.z.apply(this,arguments)||this};
_.u(zT,_.z);_.Y=zT.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$22441_scroller.dialogElement=this.hostElement.parentNode};
_.Y.dataChanged=function(){var t=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.dG().getPlayerPromise().then(function(E){E=E.getCurrentTime();t.minutes=Math.floor(E/60).toString();t.seconds=(Math.floor(E)%60).toString()})};
_.Y.onTapSubmit=function(t){t.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(t={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(t.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(t.minutes=this.minutes,t.seconds=this.seconds),_.X3().resolve(_.ei).resolveCommand(this.serviceEndpoint,{form:Object.assign({},t,{element:this.hostElement})}))};
_.Y.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.Y.onYtServiceRequestCompleted=function(t,E){E=E.actions;if(Array.isArray(E))for(var p=0,U=E.length;p<U;p++)_.k(E[p],_.cU)&&(t.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(E[p]))};
_.Y.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.Y.toggleSubmitButton=function(t){this.set("submitButton.isDisabled",!t)};
_.Y.handleInput=function(){var t=this.issueType,E=this.affiliation,p=this.minutes,U=this.seconds;p=!this.showTimestamp||!!p&&!!U;this.toggleSubmitButton(!!this.descriptionText&&!!t&&!!E&&p)};
_.Y.computeServiceEndpoint=function(t){return this.get("submitButton.buttonRenderer.serviceEndpoint",t)};
_.Y.computeSubmitButton=function(t){(t=this.get("submitButton.buttonRenderer",t))&&(t=Object.assign({},t,{serviceEndpoint:void 0}));return t};
_.Y.computeShowTimestamp=function(t){return!!t};
_.Y.onValueChangedForIssueType=function(t){this.issueType=t.detail.value};
_.Y.onValueChangedForAffiliation=function(t){this.affiliation=t.detail.value};
_.Y.updateDescriptionTextFromBinding=function(t){this.descriptionText=t.detail.value};
_.Y.updateFullNameTextFromBinding=function(t){this.fullNameText=t.detail.value};
_.Y.updateMinutesFromBinding=function(t){this.minutes=t.detail.value};
_.Y.updateSecondsFromBinding=function(t){this.seconds=t.detail.value};
zT.prototype.handleInput=zT.prototype.handleInput;zT.prototype.onYtServiceRequestError=zT.prototype.onYtServiceRequestError;zT.prototype.onYtServiceRequestCompleted=zT.prototype.onYtServiceRequestCompleted;zT.prototype.onYtServiceRequestSent=zT.prototype.onYtServiceRequestSent;zT.prototype.dataChanged=zT.prototype.dataChanged;_.N([_.g(_.Pg.YtOpenPopupBehavior),_.P("design:type",Object)],zT.prototype,"ytOpenPopupBehavior",void 0);
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],zT.prototype,"ytRendererBehavior",void 0);_.N([_.Nl("#scroller"),_.P("design:type",Object)],zT.prototype,"JSC$22441_scroller",void 0);_.N([_.Nl("#description"),_.P("design:type",HTMLInputElement)],zT.prototype,"description",void 0);_.N([_.Nl("#full-name"),_.P("design:type",Object)],zT.prototype,"fullName",void 0);_.N([_.e(),_.P("design:type",Object)],zT.prototype,"data",void 0);
_.N([_.e({computed:"computeShowTimestamp(data.timestampLabel)"}),_.P("design:type",Boolean)],zT.prototype,"showTimestamp",void 0);_.N([_.e({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.P("design:type",Object)],zT.prototype,"serviceEndpoint",void 0);_.N([_.e({computed:"computeSubmitButton(data)"}),_.P("design:type",Object)],zT.prototype,"submitButton",void 0);_.N([_.e(),_.P("design:type",String)],zT.prototype,"descriptionText",void 0);
_.N([_.e(),_.P("design:type",Number)],zT.prototype,"issueType",void 0);_.N([_.e(),_.P("design:type",Number)],zT.prototype,"affiliation",void 0);_.N([_.e(),_.P("design:type",String)],zT.prototype,"fullNameText",void 0);_.N([_.e(),_.P("design:type",String)],zT.prototype,"minutes",void 0);_.N([_.e(),_.P("design:type",String)],zT.prototype,"seconds",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zT.prototype,"dataChanged",null);
_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.m8]),_.P("design:returntype")],zT.prototype,"onYtServiceRequestSent",null);_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Rn]),_.P("design:returntype")],zT.prototype,"onYtServiceRequestCompleted",null);
_.N([_.lc("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],zT.prototype,"onYtServiceRequestError",null);_.N([_.GI("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zT.prototype,"handleInput",null);_.N([_.Ul({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],zT);
_.G(zT,"ytd-legal-report-details-form-renderer",function(){if(FG8!==void 0)return FG8;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return FG8=t},{mode:1});var Gr9;var lj=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return t};
_.u(lj,_.z);lj.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
lj.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var t=this.formRenderer.getForm();t&&this.data.submitEndpoint&&(_.X3().resolve(_.ei).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},t,{element:this.hostElement})}),_.du(this.hostElement,"yt-close-popup-action"))}};
lj.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.du(this.hostElement,"yt-close-popup-action"))};
lj.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
lj.prototype.onPopupClosed=lj.prototype.onPopupClosed;_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],lj.prototype,"ytEventForwardingBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],lj.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],lj.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],lj.prototype,"ytRendererBehavior",void 0);
_.N([_.Nl("yt-form-renderer"),_.P("design:type",Object)],lj.prototype,"formRenderer",void 0);_.N([_.e(),_.P("design:type",Object)],lj.prototype,"data",void 0);_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],lj.prototype,"onPopupClosed",null);_.N([_.Ul({is:"ytd-form-popup-content",disableElementRegistration:!0})],lj);
_.G(lj,"ytd-form-popup-content",function(){if(Gr9!==void 0)return Gr9;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Gr9=t},{mode:1});var not;var GT=function(){return _.z.apply(this,arguments)||this};
_.u(GT,_.z);GT.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
GT.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
GT.prototype.onPopupOpened=function(){_.kT(this.hostElement,"yt-invalidate-popup-tabbables")};
GT.prototype.onYtServiceRequestCompleted=function(t,E){E.data&&E.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.kT(this.hostElement,"yt-invalidate-popup-tabbables"))};
GT.prototype.onYtServiceRequestCompleted=GT.prototype.onYtServiceRequestCompleted;GT.prototype.onPopupOpened=GT.prototype.onPopupOpened;_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],GT.prototype,"ytEventForwardingBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],GT.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],GT.prototype,"ytRendererBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],GT.prototype,"data",void 0);_.N([_.lc("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],GT.prototype,"onPopupOpened",null);_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Rn]),_.P("design:returntype")],GT.prototype,"onYtServiceRequestCompleted",null);_.N([_.Ul({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],GT);
_.G(GT,"ytd-form-popup-renderer",function(){if(not!==void 0)return not;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return not=t},{mode:1});var NB7;var n5=function(){var t=_.z.apply(this,arguments)||this;t.isLoading=!1;return t};
_.u(n5,_.z);_.Y=n5.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");lMg(this.hostElement)};
_.Y.onYtServiceRequestSent=function(){this.isLoading=!0};
_.Y.onYtServiceRequestCompleted=function(){_.du(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.Y.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.IK(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.Y.closePopupHandler=function(){this.fireOnCloseActions()};
_.Y.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var t=this.get("data.headerImage.thumbnails");t&&(t=_.d4(t,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+t+")")}};
_.Y.onYtNavigate=function(t){(t=_.Qx(t))&&t.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
n5.prototype.onYtNavigate=n5.prototype.onYtNavigate;n5.prototype.onHeaderImageChanged=n5.prototype.onHeaderImageChanged;n5.prototype.closePopupHandler=n5.prototype.closePopupHandler;n5.prototype.onYtServiceRequestCompleted=n5.prototype.onYtServiceRequestCompleted;n5.prototype.onYtServiceRequestSent=n5.prototype.onYtServiceRequestSent;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],n5.prototype,"ytEventForwardingBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],n5.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],n5.prototype,"isLoading",void 0);_.N([_.Nl("#header"),_.P("design:type",HTMLDivElement)],n5.prototype,"header",void 0);_.N([_.Nl("#confirm-button"),_.P("design:type",_.U7)],n5.prototype,"confirmButton",void 0);
_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],n5.prototype,"onYtServiceRequestSent",null);_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],n5.prototype,"onYtServiceRequestCompleted",null);
_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],n5.prototype,"closePopupHandler",null);_.N([_.GI("data.headerImage"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],n5.prototype,"onHeaderImageChanged",null);_.N([_.lc("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],n5.prototype,"onYtNavigate",null);
_.N([_.Ul({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],n5);
_.G(n5,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(NB7!==void 0)return NB7;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return NB7=t},{mode:1});var Dgt;var Nu=function(){var t=_.z.apply(this,arguments)||this;t.isLoading=!1;return t};
_.u(Nu,_.z);_.Y=Nu.prototype;_.Y.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"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);lMg(this.hostElement)};
_.Y.onYtServiceRequestCompleted=function(){_.du(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.Y.onYtServiceRequestError=function(t){_.f$(this.hostElement,t.detail.error.message)};
_.Y.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.Y.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.du(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.Y.onDataChanged=function(){this.isLoading=!1;var t=this.get("data.headerImage.thumbnails");t&&(t=_.d4(t,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+t+")");t=_.yL();var E=_.vV(),p=this.get("data.trackingParams");p&&E&&t&&_.Yh(t,E,_.$8(p))};
_.aE.Object.defineProperties(Nu.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
Nu.prototype.onDataChanged=Nu.prototype.onDataChanged;Nu.prototype.onDomChange=Nu.prototype.onDomChange;Nu.prototype.onYtServiceRequestError=Nu.prototype.onYtServiceRequestError;Nu.prototype.onYtServiceRequestCompleted=Nu.prototype.onYtServiceRequestCompleted;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Nu.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Nu.prototype,"ytRendererBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],Nu.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Nu.prototype,"isLoading",void 0);_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Nu.prototype,"hasDescription",null);_.N([_.Nl("tp-yt-paper-dialog-scrollable"),_.P("design:type",Object)],Nu.prototype,"scrollable",void 0);_.N([_.Nl("#header"),_.P("design:type",HTMLElement)],Nu.prototype,"header",void 0);
_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Nu.prototype,"onYtServiceRequestCompleted",null);_.N([_.lc("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Nu.prototype,"onYtServiceRequestError",null);
_.N([_.lc("dom-change"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Nu.prototype,"onDomChange",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Nu.prototype,"onDataChanged",null);_.N([_.Ul({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],Nu);
_.G(Nu,"ytd-gaming-account-link-setting-renderer",function(){if(Dgt!==void 0)return Dgt;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Dgt=t},{mode:1});var sMe;var LG9;var DX=function(){var t=_.z.apply(this,arguments)||this;t.isHeader=!1;t.getEndpointForm=function(){return KFt(t.data)};
return t};
_.u(DX,_.z);_.Y=DX.prototype;_.Y.triggerHintActions=function(){var t=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var E=_.uO(t.hostElement,"yt-get-opened-popups-action");!(E&&E.length===1?E[0]:[]).some(function(p){p=p.openPopupAction.popupType;return p==="SURVEY"||p==="MEALBAR"||p==="HINT"})&&t.data.hintActions&&t.guideOpened&&(_.IK(t.hostElement,t.data.hintActions,t.hostElement),t.data.hintActions=void 0)})};
_.Y.getBadgeIconType=function(t){return t&&t.liveBroadcasting?"live":null};
_.Y.onDown=function(){this.interaction.triggerDown()};
_.Y.onUp=function(){this.interaction.triggerUp()};
_.Y.onTap=function(t){if(this.data.serviceEndpoint){var E;_.r("shorts_controller_retrieve_seedless_sequence_v2")&&((E=_.k(this.data.serviceEndpoint,_.DK))==null?void 0:E.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):$M5(this.data.serviceEndpoint,this);t.preventDefault()}else this.data.navigationEndpoint&&!_.Qb(_.Vx(t),this.hostElement,["A".toString()])&&_.kT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.Y.computeActive=function(t,E){if(!t)return!1;var p=t.navigationEndpoint;t=t.serviceEndpoint;if(!p&&!t||!E)return!1;if(p){t=(t=_.z2(E))&&["subscriptions","filteredsubscriptions"].includes(t);if(_.k(p,_.lC)&&_.k(E,_.lC)&&!t){var U=_.k(p,_.lC).browseId;E=_.k(E,_.lC).browseId;return U!==void 0&&E!==void 0&&(U===E||U==="VLWL"&&E==="FEwatch_later"||U==="FEwatch_later"&&E==="VLWL")}var x;p=(x=_.k(p.commandMetadata,_.hZ))==null?void 0:x.url;E=(U=_.k(E.commandMetadata,_.hZ))==null?void 0:U.url;return!(!p||
!E||p!==E&&p!==_.LR(E))}return this.isActiveShortsTab(t,E)};
_.Y.isActiveShortsTab=function(t,E){E=!!_.k(E,_.DK)||!!_.k(E,_.fz);return(!!_.k(t,_.DK)||!!_.k(t,_.fz))&&E};
_.Y.computeIsPrimary=function(t){return!!t};
_.aE.Object.defineProperties(DX.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 t=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&t)return t}}});
DX.prototype.onTap=DX.prototype.onTap;DX.prototype.onUp=DX.prototype.onUp;DX.prototype.onDown=DX.prototype.onDown;DX.prototype.triggerHintActions=DX.prototype.triggerHintActions;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],DX.prototype,"componentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],DX.prototype,"rendererBehavior",void 0);_.N([_.g(_.O0.YtTaskEmitterBehavior),_.P("design:type",Object)],DX.prototype,"taskEmitterBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],DX.prototype,"activeEndpoint",void 0);_.N([_.e(),_.P("design:type",Object)],DX.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Boolean)],DX.prototype,"guideOpened",void 0);_.N([_.e(),_.P("design:type",String)],DX.prototype,"type",void 0);_.N([_.Nl("yt-interaction"),_.P("design:type",Object)],DX.prototype,"interaction",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],DX.prototype,"isHeader",void 0);
_.N([_.e({reflectToAttribute:!0}),_.Z("data","activeEndpoint"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],DX.prototype,"active",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],DX.prototype,"isPrimary",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data.count","data.presentationStyle","data.badges.*"),_.P("design:type",String),_.P("design:paramtypes",[])],DX.prototype,"lineEndStyle",null);
_.N([_.Z("lineEndStyle"),_.P("design:type",Object),_.P("design:paramtypes",[])],DX.prototype,"ariaLabel",null);_.N([_.GI("data.hintActions","guideOpened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],DX.prototype,"triggerHintActions",null);_.N([_.lc("down"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],DX.prototype,"onDown",null);
_.N([_.lc("up"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],DX.prototype,"onUp",null);_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],DX.prototype,"onTap",null);_.N([_.Ul({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],DX);
_.G(DX,"ytd-guide-entry-renderer",function(){if(LG9!==void 0)return LG9;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return LG9=t},{mode:1});var sO=function(){var t=_.z.apply(this,arguments)||this;t.userToggled=!1;return t};
_.u(sO,_.z);_.Y=sO.prototype;_.Y.getItemsPath=function(){return"data.expandableItems"};
_.Y.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.Y.onExpanderItemTapped=function(t){var E=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.r("kevlar_guide_expandable_items_killswitch")&&_.XE(this,function(){_.If(E.expandableItems)});
t.preventDefault()};
_.Y.onCollapserItemTapped=function(t){var E=this;this._setExpanded(!1);this.userToggled=!0;t.preventDefault();this.expandableItems&&!_.r("kevlar_guide_collapsible_items_killswitch")&&_.XE(this,function(){_.Jw(E.hostElement)})};
_.Y.observeActiveEndpoint=function(){for(var t=this.activeEndpoint,E=this.data,p=this.expandableItems.children,U=0,x=p.length;U<x;U++)p[U].activeEndpoint=t;E&&E.autoExpandCommand&&t&&!this.userToggled&&(p=this.data.autoExpandCommand,E=!(!_.k(p,_.lC)||!_.k(t,_.lC)||_.k(p,_.lC).browseId!==_.k(t,_.lC).browseId),t=this.get("commandMetadata.webCommandMetadata.url",t),p=this.get("commandMetadata.webCommandMetadata.url",p),E=E||!!(t&&p&&t.includes(p)),this._setExpanded(E),E&&this.ytLazyListBehavior.fillRemainingListItems())};
sO.prototype.observeActiveEndpoint=sO.prototype.observeActiveEndpoint;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],sO.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.F_.YtLazyListBehavior),_.P("design:type",Object)],sO.prototype,"ytLazyListBehavior",void 0);_.N([_.Nl("#expandable-items"),_.P("design:type",HTMLElement)],sO.prototype,"expandableItems",void 0);
_.N([_.e(),_.P("design:type",Object)],sO.prototype,"data",void 0);_.N([_.e({readOnly:!0,reflectToAttribute:!0}),_.P("design:type",Boolean)],sO.prototype,"expanded",void 0);_.N([_.e({value:0}),_.P("design:type",Number)],sO.prototype,"initialCount",void 0);_.N([_.e(),_.P("design:type",Object)],sO.prototype,"activeEndpoint",void 0);_.N([_.GI("data","activeEndpoint","canShowMore"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sO.prototype,"observeActiveEndpoint",null);
_.N([_.Ul({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],sO);
_.G(sO,"ytd-guide-collapsible-entry-renderer",function(){if(sMe!==void 0)return sMe;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return sMe=t},{mode:_.hX("kevlar_poly_si_batch_j079")?1:2});var P18;var TB8;var L5=function(){var t=_.z.apply(this,arguments)||this;t.allVideosCount=0;t.renderGuideEntry=!1;return t};
_.u(L5,_.z);L5.prototype.observeRenderEntry=function(){var t;this.renderGuideEntry=!((t=this.data)==null||!t.alwaysShow)||!!this.allVideosCount};
L5.prototype.observeRenderEntry=L5.prototype.observeRenderEntry;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],L5.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],L5.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],L5.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],L5.prototype,"activeEndpoint",void 0);_.N([_.e({selector:_.PI0}),_.P("design:type",Object)],L5.prototype,"allVideosCount",void 0);
_.N([_.e(),_.P("design:type",Object)],L5.prototype,"renderGuideEntry",void 0);_.N([_.P3("allVideosCount","data.alwaysShow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],L5.prototype,"observeRenderEntry",null);_.N([_.Ul({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],L5);
_.G(L5,"ytd-guide-downloads-entry-renderer",function(){if(TB8===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);TB8=t}t=TB8;return t},{mode:1});var Pm=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return t};
_.u(Pm,_.z);_.Y=Pm.prototype;_.Y.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]]"}}}}}};
_.Y.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var t=this.sectionItems.children,E=0,p=t.length;E<p;E++)t[E].activeEndpoint=this.activeEndpoint}};
_.Y.handleAddToGuideSectionAction=function(t){var E=_.k(t,XJd);if(E&&this.data&&(t=E.items,E=E.handlerData,t&&E&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(E)>-1)){E=0;for(var p=t.length;E<p;E++)t[E].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,t[E])}};
_.Y.handleRemoveFromGuideSectionAction=function(t){var E=_.k(t,hI8);E&&this.data&&(t=E.guideEntryId,E=E.handlerData,t&&E&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(E)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(t,this.data.sectionItems),this.removeFromCollapsedSection(t,this.data.sectionItems)))};
_.Y.removeFromExpandedSection=function(t,E){t=this.getEntryIndexMatchingId(t,E);t!==-1&&this.splice("data.sectionItems",t,1)};
_.Y.removeFromCollapsedSection=function(t,E){var p=E.findIndex(function(U){return!!_.k(U,yNg)});
p&&p!==-1&&E[p]&&_.k(E[p],yNg)&&(E=_.k(E[p],yNg).expandableItems)&&(t=this.getEntryIndexMatchingId(t,E),t!==-1&&this.splice("data.sectionItems."+p+".guideCollapsibleEntryRenderer.expandableItems",t,1))};
_.Y.getEntryIndexMatchingId=function(t,E){var p=this;return E.findIndex(function(U){return p.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",U)===t})};
Pm.prototype.activeEndpointChanged=Pm.prototype.activeEndpointChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Pm.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Pm.prototype,"actionHandlerBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Pm.prototype,"ytRendererstamperBehavior",void 0);_.N([_.Nl("#section-items"),_.P("design:type",HTMLDivElement)],Pm.prototype,"sectionItems",void 0);
_.N([_.Nl("#header-entry"),_.P("design:type",Object)],Pm.prototype,"headerEntry",void 0);_.N([_.e(),_.P("design:type",Object)],Pm.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Pm.prototype,"activeEndpoint",void 0);_.N([_.GI("activeEndpoint"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Pm.prototype,"activeEndpointChanged",null);_.N([_.Ul({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],Pm);
_.G(Pm,"ytd-guide-collapsible-section-entry-renderer",function(){if(P18===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);P18=t}t=P18;return t},{mode:1});var oo8;var WGd;var TT=function(){var t=_.z.apply(this,arguments)||this;t.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 t};
_.u(TT,_.z);_.Y=TT.prototype;
_.Y.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}}}}};
_.Y.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var t=_.uO(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);t&&t.length===1&&t[0]&&_.uO(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.Y.handleResetChannelUnreadCountCommand=function(t){var E;(t=(E=_.k(t,Fp7))==null?void 0:E.channelId)&&this.data&&this.data.items&&(E=this.getPathToEntryMatchingId(t))&&(this.set(E+".guideEntryRenderer.count",0),this.set(E+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.Y.handleResetSubscriptionsUnreadDotCommand=function(t){var E,p=(E=_.k(t,zIL))==null?void 0:E.targetId,U;p&&(U=this.data)!=null&&U.items&&(t=this.data.items.findIndex(function(x){var A;return((A=x.guideEntryRenderer)==null?void 0:A.targetId)===p}),t<0||this.set("data.items."+t+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.Y.getPathToEntryMatchingId=function(t){if(this.data&&this.data.items){var E=this.getEntryIndexMatchingId(t,this.data.items);if(E>-1)return"data.items."+E;for(var p=0;p<this.data.items.length;p++)if(E=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[p]))if(E=this.getEntryIndexMatchingId(t,E),E>-1)return"data.items."+p+".guideCollapsibleEntryRenderer.expandableItems."+E}};
_.Y.handleAddToGuideSectionAction=function(t){var E=this;if(_.k(t,XJd)){var p=_.k(t,XJd).items;t=_.k(t,XJd).handlerData;var U,x;if(p&&t&&((U=this.data)==null?void 0:(x=U.handlerDatas)==null?void 0:x.indexOf(t))>-1){p=p.filter(function(m){return(m=E.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",m))&&!E.isGuideItemPresent(m)});
var A;if(t==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((A=this.data)==null?0:A.items)&&(U=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),U>-1)){this.splice.apply(this,["data.items",U+1,0].concat(_.KB(p)));return}this.unshift.apply(this,["data.items"].concat(_.KB(p)))}}};
_.Y.isGuideItemPresent=function(t){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(t,this.data.items)!==-1)return!0;var E=this.data.items.find(function(p){return!!p.guideCollapsibleEntryRenderer});
if((E==null?0:E.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(t,E.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.Y.getEntryIndexMatchingId=function(t,E){var p=this;return E.findIndex(function(U){return p.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",U)===t})};
_.Y.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(t,E){var p=this;return E.findIndex(function(U){return p.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",U)===t})};
_.Y.handleRemoveFromGuideSectionAction=function(t){if(_.k(t,hI8)){var E=_.k(t,hI8).guideEntryId;t=_.k(t,hI8).handlerData;var p,U;E&&t&&((p=this.data)==null?void 0:(U=p.handlerDatas)==null?void 0:U.indexOf(t))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(E,this.data.items),this.removeFromCollapsedSection(E,this.data.items))}};
_.Y.removeFromExpandedSection=function(t,E){t=this.getEntryIndexMatchingId(t,E);t!==-1&&this.splice("data.items",t,1)};
_.Y.removeFromCollapsedSection=function(t,E){var p=E.findIndex(function(U){return!!U.guideCollapsibleEntryRenderer});
p!==-1&&(E=E[p].guideCollapsibleEntryRenderer.expandableItems)&&(t=this.getEntryIndexMatchingId(t,E),t!==-1&&this.splice("data.items."+p+".guideCollapsibleEntryRenderer.expandableItems",t,1))};
_.Y.activeEndpointChanged=function(){for(var t=_.ZN(this.hostElement).querySelector("#items").children,E=0,p=t.length;E<p;E++)t[E].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.Y.guideOpenedChanged=function(){for(var t=_.ZN(this.hostElement).querySelector("#items").children,E=0,p=t.length;E<p;E++)t[E].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
TT.prototype.guideOpenedChanged=TT.prototype.guideOpenedChanged;TT.prototype.activeEndpointChanged=TT.prototype.activeEndpointChanged;TT.prototype.persistentGuideChanged=TT.prototype.persistentGuideChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],TT.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],TT.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],TT.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.F_.YtLazyListBehavior),_.P("design:type",Object)],TT.prototype,"ytLazyListBehavior",void 0);_.N([_.g(_.jp.YtdGuideStateAwareBehavior),_.P("design:type",Object)],TT.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],TT.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],TT.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",String)],TT.prototype,"type",void 0);_.N([_.e({value:20}),_.P("design:type",Number)],TT.prototype,"initialCount",void 0);_.N([_.e({value:10}),_.P("design:type",Number)],TT.prototype,"targetFramerate",void 0);_.N([_.e({value:!0}),_.P("design:type",Boolean)],TT.prototype,"autoFill",void 0);_.N([_.e({value:50}),_.P("design:type",Number)],TT.prototype,"renderDelay",void 0);
_.N([_.GI("guidePersistentAndVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],TT.prototype,"persistentGuideChanged",null);_.N([_.P3("activeEndpoint"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],TT.prototype,"activeEndpointChanged",null);_.N([_.P3("guideOpened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],TT.prototype,"guideOpenedChanged",null);
_.N([_.Ul({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],TT);
_.G(TT,"ytd-guide-section-renderer",function(){if(WGd!==void 0)return WGd;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return WGd=t},{mode:_.hX("kevlar_poly_si_batch_j073")?1:2});var $gt;var oY=function(){return _.z.apply(this,arguments)||this};
_.u(oY,_.z);_.aE.Object.defineProperties(oY.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],oY.prototype,"rendererBehaviors",void 0);_.N([_.e(),_.P("design:type",Object)],oY.prototype,"data",void 0);_.N([_.e(),_.Z("data.signInButton.buttonRenderer.style"),_.P("design:type",Object),_.P("design:paramtypes",[])],oY.prototype,"alignByText",null);_.N([_.Ul({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],oY);
_.G(oY,"ytd-guide-signin-promo-renderer",function(){if($gt===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);$gt=t}t=$gt;return t},{mode:1});var Wm=function(){var t=_.z.apply(this,arguments)||this;t.showFooter=!1;return t};
_.u(Wm,_.z);Wm.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}}}}};
Wm.prototype.attached=function(){var t=this,E;return _.q(function(p){if(p.nextAddress==1){E=_.X3().resolve(_.OB(_.CE));if(!E)return p.jumpTo(0);E.setGuideData(t.hostElement);return p.yield(0,3)}t.ytLazyListBehavior.initialCount=2;return p.return()})};
Wm.prototype.onMouseExit=function(){_.r("web_guide_hover_expansion")&&_.uO(this.hostElement,"yt-guide-mouseleaved",[])};
Wm.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
Wm.prototype.dataChanged=Wm.prototype.dataChanged;Wm.prototype.onMouseExit=Wm.prototype.onMouseExit;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Wm.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Wm.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.F_.YtLazyListBehavior),_.P("design:type",Object)],Wm.prototype,"ytLazyListBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Wm.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Wm.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Wm.prototype,"showFooter",void 0);_.N([_.e({value:!0}),_.P("design:type",Boolean)],Wm.prototype,"autoFill",void 0);_.N([_.lc("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Wm.prototype,"onMouseExit",null);
_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Wm.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-guide-renderer",disableElementRegistration:!0})],Wm);
_.G(Wm,"ytd-guide-renderer",function(){if(oo8!==void 0)return oo8;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return oo8=t},{mode:_.hX("kevlar_poly_si_batch_j073")?1:2});var KGl;var $J=function(){var t=_.z.apply(this,arguments)||this;t.systemIcons=_.r("kevlar_system_icons");t.frostedGlass=_.r("web_frosted_glass");t.onAllyMenuButtonClick=function(){var E=t.getShowSheetCommand();E&&t.ytComponentBehavior.resolveCommand(E)};
t.getEndpointForm=function(){return KFt(t.data)};
return t};
_.u($J,_.z);_.Y=$J.prototype;_.Y.attached=function(){this.JSC$22494_sheetController=_.X3().resolve(_.bL)};
_.Y.onDown=function(){this.interaction.triggerDown()};
_.Y.onMouseEnter=function(){if(this.data.mouseEnterEndpoint){this.ytComponentBehavior.resolveCommand(this.data.mouseEnterEndpoint);var t;(t=this.JSC$22494_sheetController)==null||Km9(t,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this))}};
_.Y.onMouseLeave=function(){this.data.mouseLeaveEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.mouseLeaveEndpoint)};
_.Y.isSeedlessReelCommand=function(t){var E;return!!t&&((E=_.k(t,_.DK))==null?void 0:E.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"};
_.Y.isShowSheetCommand=function(t){return!!t&&!!_.k(t,_.TE)};
_.Y.getShowSheetCommand=function(){if(this.isShowSheetCommand(this.data.serviceEndpoint))return this.data.serviceEndpoint;if(this.isShowSheetCommand(this.data.mouseEnterEndpoint))return this.data.mouseEnterEndpoint};
_.Y.mouseEnterCallback=function(){this.hostElement.classList.add("hovered")};
_.Y.mouseLeaveCallback=function(){this.hostElement.classList.remove("hovered")};
_.Y.onUp=function(){this.interaction.triggerUp()};
_.Y.onTap=function(t){if(this.data.serviceEndpoint){if(_.r("shorts_controller_retrieve_seedless_sequence_v2")&&this.isSeedlessReelCommand(this.data.serviceEndpoint))this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);else{if(this.isShowSheetCommand(this.data.serviceEndpoint)){this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);var E;(E=this.JSC$22494_sheetController)==null||Km9(E,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this));t.preventDefault();
return}$M5(this.data.serviceEndpoint,this)}t.preventDefault()}else{var p;((p=this.data)==null?0:p.navigationEndpoint)&&!_.Qb(_.Vx(t),this.hostElement,["A".toString()])&&_.kT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.Y.computeActive=function(t,E){if(!t)return!1;var p=t.navigationEndpoint;t=t.serviceEndpoint;if(!p&&!t||!E)return!1;if(p){t=_.k(p,_.lC);var U=_.k(E,_.lC);if(t&&U)return t.browseId===U.browseId&&t.params===U.params;var x;p=(x=_.k(p.commandMetadata,_.hZ))==null?void 0:x.url;var A;E=(A=_.k(E.commandMetadata,_.hZ))==null?void 0:A.url;return!(!p||!E||p!==E&&p!==_.LR(E))}return this.isActiveShortsTab(t,E)};
_.Y.isActiveShortsTab=function(t,E){E=!!_.k(E,_.DK)||!!_.k(E,_.fz);return(!!_.k(t,_.DK)||!!_.k(t,_.fz))&&E};
_.Y.computeTitle=function(t,E){return E?"":_.R4(t)};
_.Y.computeEndpoint=function(t){return this.isSeedlessReelCommand(t.serviceEndpoint)?t.serviceEndpoint:t.navigationEndpoint};
_.Y.computeAriaLabelTitle=function(t){return _.R4(t)};
_.Y.computeAllyShowMenuOnTap=function(t){return this.isShowSheetCommand(t.mouseEnterEndpoint)||this.isShowSheetCommand(t.serviceEndpoint)};
_.aE.Object.defineProperties($J.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
$J.prototype.onMouseLeave=$J.prototype.onMouseLeave;$J.prototype.onMouseEnter=$J.prototype.onMouseEnter;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],$J.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.Uv),_.P("design:type",Object)],$J.prototype,"ironButtonState",void 0);_.N([_.e(),_.P("design:type",Object)],$J.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",Object)],$J.prototype,"activeEndpoint",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],$J.prototype,"noLabels",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.P("design:type",Boolean)],$J.prototype,"isActive",void 0);_.N([_.e({computed:"computeEndpoint(data)"}),_.P("design:type",Object)],$J.prototype,"computedEndpoint",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],$J.prototype,"systemIcons",void 0);_.N([_.Nl("yt-interaction"),_.P("design:type",Object)],$J.prototype,"interaction",void 0);_.N([_.Z("isActive"),_.P("design:type",Object),_.P("design:paramtypes",[])],$J.prototype,"ariaSelected",null);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],$J.prototype,"frostedGlass",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeAllyShowMenuOnTap(data)"}),_.P("design:type",Boolean)],$J.prototype,"allyShowMenuOnTap",void 0);_.N([_.lc("mouseenter"),_.P("design:type",Function),_.P("design:paramtypes",[MouseEvent]),_.P("design:returntype")],$J.prototype,"onMouseEnter",null);_.N([_.lc("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[MouseEvent]),_.P("design:returntype")],$J.prototype,"onMouseLeave",null);
_.N([_.Ul({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],$J);
_.G($J,"ytd-mini-guide-entry-renderer",function(){if(KGl!==void 0)return KGl;var t=document.createElement("template");_.J(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(computedEndpoint)]]" data="[[computedEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-selected="[[isActive]]" on-click="onTap" on-down="onDown" on-up="onUp">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="0" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n<span hidden="[[!allyShowMenuOnTap]]" class="style-scope ytd-mini-guide-entry-renderer">\n  <button type="button" id="ally-menu-button" class="ally-menu-button style-scope ytd-mini-guide-entry-renderer" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-haspopup="true" aria-expanded="false" on-click="onAllyMenuButtonClick"></button>\n</span>\n');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return KGl=t},{mode:_.hX("kevlar_poly_si_batch_j063")?1:2});var voJ;var K5=function(){var t=_.z.apply(this,arguments)||this;t.allVideosCount=0;t.noLabels=_.r("kevlar_mini_guide_no_labels");t.frostedGlass=_.r("web_frosted_glass");return t};
_.u(K5,_.z);_.Y=K5.prototype;_.Y.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.Y.onMouseEnter=function(){_.r("web_guide_hover_expansion")&&_.uO(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.Y.visibleChanged=function(){if(this.visible&&!this.data){var t=_.X3().resolve(_.OB(_.CE));t&&t.setGuideData(this.hostElement);_.Tw(_.Pu(),this.miniGuideVe);(t=_.yL())&&this.miniGuideVe&&_.mu(t,this.miniGuideVe)}};
_.Y.dataChanged=function(){var t=_.r("kevlar_guide_menu_on_hover")&&_.r("kevlar_modern_mini_guide"),E=_.r("kevlar_guide_menu_on_click")&&_.r("kevlar_modern_mini_guide"),p;var U=(p=this.data)==null?void 0:p.items;p=this.allVideosCount;var x=[];t=t?0:E?1:void 0;E=t!==void 0;if(U){for(var A=[],m=_.M(U),b=m.next();!b.done;b=m.next())if(b=b.value,b.guideSubscriptionsSectionRenderer){var f=void 0;A=((f=b.guideSubscriptionsSectionRenderer)==null?void 0:f.items)||[]}U=_.M(U);for(m=U.next();!m.done;m=U.next())if(m=
m.value,b=void 0,(b=m.guideSectionRenderer)==null?0:b.items)for(b=void 0,m=_.M((b=m.guideSectionRenderer)==null?void 0:b.items),b=m.next();!b.done;b=m.next()){b=b.value;var B=void 0,R=void 0;f=b.guideEntryRenderer||_.k((B=b)==null?void 0:(R=B.guideCollapsibleSectionEntryRenderer)==null?void 0:R.headerEntry,vub);B=[];R=[];var V=void 0;if(((V=f)==null?void 0:V.targetId)==="subscriptions-guide-item")B=A;else{var Q=V=void 0;if((V=b)==null?0:(Q=V.guideCollapsibleSectionEntryRenderer)==null?0:Q.sectionItems)R=
B=b.guideCollapsibleSectionEntryRenderer.sectionItems}cN5(x,f,E?B:[],t);if(R.length>0)for(b=_.M(R),f=b.next();!f.done;f=b.next())f=f.value,R=_.k(f,EN8),B=void 0,R=R&&(R.alwaysShow||p)?_.k((B=R)==null?void 0:B.entryRenderer,vub):_.k(f,vub),cN5(x,R,[])}}this.miniGuideItems=x};
_.Y.activeEndpointChanged=function(){for(var t=this.items.children,E=0;E<t.length;E++)t[E].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.Y.registerWithViewTransitionManager=function(){var t=this;_.E_(_.ir,function(){var E=_.X3().resolve(_.OB(_.pU));if(E&&E.isAnyTransitionEnabled){var p={};E.viewTransitionCoordinator.registerElement(t.hostElement,(p.slide="mini-guide-page-transition",p))}})};
K5.prototype.activeEndpointChanged=K5.prototype.activeEndpointChanged;K5.prototype.dataChanged=K5.prototype.dataChanged;K5.prototype.visibleChanged=K5.prototype.visibleChanged;K5.prototype.onMouseEnter=K5.prototype.onMouseEnter;_.N([_.g(_.Be),_.P("design:type",Object)],K5.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],K5.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],K5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.jp.YtdGuideStateAwareBehavior),_.P("design:type",Object)],K5.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],K5.prototype,"ytComponentBehavior",void 0);_.N([_.Nl("#items"),_.P("design:type",Object)],K5.prototype,"items",void 0);_.N([_.e(),_.P("design:type",Object)],K5.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",Boolean)],K5.prototype,"visible",void 0);_.N([_.e(),_.P("design:type",Object)],K5.prototype,"miniGuideItems",void 0);_.N([_.e({selector:_.PI0}),_.P("design:type",Object)],K5.prototype,"allVideosCount",void 0);_.N([_.e({value:_.h8(283834)}),_.P("design:type",_.K_)],K5.prototype,"miniGuideVe",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],K5.prototype,"noLabels",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],K5.prototype,"frostedGlass",void 0);_.N([_.lc("mouseenter"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],K5.prototype,"onMouseEnter",null);_.N([_.P3("visible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],K5.prototype,"visibleChanged",null);
_.N([_.P3("data","allVideosCount"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],K5.prototype,"dataChanged",null);_.N([_.P3("activeEndpoint"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],K5.prototype,"activeEndpointChanged",null);_.N([_.Ul({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],K5);
_.G(K5,"ytd-mini-guide-renderer",function(){if(voJ===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);voJ=t}t=voJ;return t},{mode:1});var yKt;var Szb=/^[\x00-\x7F]+$/,yW=function(){return _.z.apply(this,arguments)||this};
_.u(yW,_.z);_.aE.Object.defineProperties(yW.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var t,E=_.R4((t=this.data)==null?void 0:t.handle);if(E)return _.wN("@"+E)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var t=_.R4(this.displayHandle),E,p=_.R4((E=this.data)==null?void 0:E.handleUrl);if(t&&p)return _.wN(p+t)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var t=_.R4(this.displayHandle);if(t&&!Szb.test(t)){var E;return(E=this.data)==null?void 0:E.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var t=_.R4(this.displayHandleUrl),E,p=_.R4((E=this.data)==null?void 0:E.urlInfoText);if(t&&p)return _.wN(p+" "+t)}}});
_.N([_.e(),_.P("design:type",Object)],yW.prototype,"data",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],yW.prototype,"displayHandle",null);_.N([_.Z("displayHandle"),_.P("design:type",Object),_.P("design:paramtypes",[])],yW.prototype,"displayHandleUrl",null);_.N([_.Z("displayHandle"),_.P("design:type",Object),_.P("design:paramtypes",[])],yW.prototype,"warningText",null);
_.N([_.Z("displayHandleUrl"),_.P("design:type",Object),_.P("design:paramtypes",[])],yW.prototype,"urlInfoTextWithUrl",null);_.N([_.Ul({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],yW);
_.G(yW,"ytd-handles-claiming-confirm-dialog-content",function(){if(yKt!==void 0)return yKt;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return yKt=t},{mode:1});var cKb;var S9=function(){var t=_.z.apply(this,arguments)||this;t.okButtonOverride={style:"mono",type:"outline",size:"M"};return t};
_.u(S9,_.z);S9.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
S9.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],S9.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],S9.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],S9.prototype,"okButtonOverride",void 0);_.N([_.e(),_.P("design:type",Object)],S9.prototype,"data",void 0);_.N([_.Ul({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],S9);
_.G(S9,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(cKb!==void 0)return cKb;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return cKb=t},{mode:1});var tNJ;var E5g=/^[\x00-\x7F]+$/,cm=function(){var t=_.z.apply(this,arguments)||this;t.isLoading=!1;return t};
_.u(cm,_.z);cm.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var t;this.selectedHandle=(t=this.handleInput)==null?void 0:t.value;this.onSelectedHandleChanged(this.selectedHandle);_.uO(this.hostElement,"yt-refit-popups-action")}};
_.aE.Object.defineProperties(cm.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var t;return(t=this.data)==null?void 0:t.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.wN("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.wN(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!E5g.test(this.selectedHandle)){var t;return(t=this.data)==null?void 0:t.warningText}}}});
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],cm.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],cm.prototype,"data",void 0);_.N([_.e(),_.P("design:type",String)],cm.prototype,"selectedHandle",void 0);_.N([_.e(),_.P("design:type",Object)],cm.prototype,"isLoading",void 0);_.N([_.e(),_.P("design:type",Function)],cm.prototype,"onSelectedHandleChanged",void 0);_.N([_.Nl("#channel-handle-input"),_.P("design:type",Object)],cm.prototype,"handleInput",void 0);
_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],cm.prototype,"handleUrlPrefix",null);_.N([_.Z("selectedHandle"),_.P("design:type",Object),_.P("design:paramtypes",[])],cm.prototype,"displayHandle",null);_.N([_.Z("selectedHandle"),_.P("design:type",Object),_.P("design:paramtypes",[])],cm.prototype,"displayHandleUrl",null);_.N([_.Z("selectedHandle"),_.P("design:type",Object),_.P("design:paramtypes",[])],cm.prototype,"warningText",null);
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],cm.prototype,"ytRendererBehavior",void 0);_.N([_.Ul({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],cm);
_.G(cm,"ytd-handles-claiming-edit-dialog-content",function(){if(tNJ!==void 0)return tNJ;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return tNJ=t},{mode:1});var pRl;var tr=function(){var t=_.z.apply(this,arguments)||this;t.actionButtonOverride={style:"mono",type:"filled",size:"M"};t.cancelButtonOverride={style:"mono",type:"text",size:"M"};t.selectButtonDisabled=!1;t.isLoading=!1;t.hasSelectedHandleEventListener=!1;t.selectedHandleChanged=function(E){t.selectedHandle=E};
return t};
_.u(tr,_.z);_.Y=tr.prototype;_.Y.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.Y.onDataChanged=function(){var t,E;this.selectedHandle=(E=_.k((t=this.data)==null?void 0:t.inputField,Q2d))==null?void 0:E.handle};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.onCancel=function(){this.selectedHandle="";_.du(this.hostElement,"yt-close-popup-action",[this.is])};
_.Y.onSelectHandle=function(){var t=this;if(this.selectedHandle!==void 0){var E;((E=this.data)==null?void 0:E.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(p,U){if(U.newHandleUpdateStatus!==void 0&&U.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&U.newHandleUpdateStatus.errorMessage)_.f$(t.hostElement,_.R4(U.newHandleUpdateStatus.errorMessage)),
t.isLoading=!1;else{var x;if((x=t.data)==null?0:x.onChannelUpdateSuccess){p=t.data.onChannelUpdateSuccess;var A,m;if(U=(A=_.k(p,_.cU))==null?void 0:(m=A.popup)==null?void 0:m.handlesClaimingConfirmDialogRenderer)U.handle=_.wN(t.selectedHandle);t.ytComponentBehavior.resolveCommand(p);_.du(t.hostElement,"yt-close-popup-action",[t.is])}else t.isLoading=!1}},
onServerError:function(){var p;t.content&&((p=t.content)==null?0:p.handleInput)&&t.content.handleInput.validate();t.isLoading=!1;_.f$(t.hostElement,_.zF("TRY_AGAIN_LATER"))}}}))}};
_.Y.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
tr.prototype.onDataChanged=tr.prototype.onDataChanged;tr.prototype.onSelectedHandleChanged=tr.prototype.onSelectedHandleChanged;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],tr.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],tr.prototype,"actionButtonOverride",void 0);_.N([_.e(),_.P("design:type",Object)],tr.prototype,"cancelButtonOverride",void 0);_.N([_.e(),_.P("design:type",Object)],tr.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",String)],tr.prototype,"selectedHandle",void 0);_.N([_.e(),_.P("design:type",Object)],tr.prototype,"selectButtonDisabled",void 0);_.N([_.e(),_.P("design:type",Object)],tr.prototype,"isLoading",void 0);_.N([_.e(),_.P("design:type",Object)],tr.prototype,"hasSelectedHandleEventListener",void 0);_.N([_.e(),_.P("design:type",Object)],tr.prototype,"handleInput",void 0);
_.N([_.GI("selectedHandle"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tr.prototype,"onSelectedHandleChanged",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tr.prototype,"onDataChanged",null);_.N([_.Nl("ytd-handles-claiming-edit-dialog-content"),_.P("design:type",Object)],tr.prototype,"content",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],tr.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],tr.prototype,"ytRendererstamperBehavior",void 0);_.N([_.Ul({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],tr);
_.G(tr,"ytd-handles-claiming-edit-dialog-renderer",function(){if(pRl!==void 0)return pRl;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return pRl=t},{mode:1});var Uz8;var Eb=function(){return _.z.apply(this,arguments)||this};
_.u(Eb,_.z);_.aE.Object.defineProperties(Eb.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null?0:t.handle){var E;return _.wN("@"+_.R4((E=this.data)==null?void 0:E.handle))}}}});
_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Eb.prototype,"formattedHandle",null);_.N([_.e(),_.P("design:type",Object)],Eb.prototype,"data",void 0);_.N([_.Ul({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],Eb);
_.G(Eb,"ytd-handles-claiming-radio-option-renderer",function(){if(Uz8!==void 0)return Uz8;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Uz8=t},{mode:1});var xzt;var AnJ=/^[\x00-\x7F]+$/,ph=function(){var t=_.z.apply(this,arguments)||this;t.initialRadioIndex="-1";t.isLoading=!1;t.maybeSubmitFeedback=function(){t.feedbackSurveyRenderer.submitSurvey()};
return t};
_.u(ph,_.z);ph.prototype.updateSelectedHandleIndexFromBinding=function(t){this.selectedRadioIndex=+t.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(t)};
ph.prototype.selectedHandleChanged=function(t){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var E;this.selectedHandle=(E=this.handleInput)==null?void 0:E.value;this.onSelectedHandleChanged(t)}};
_.aE.Object.defineProperties(ph.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var t;return(((t=this.data)==null?void 0:t.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var t;return this.ytRendererBehavior.getSimpleString((t=this.data)==null?void 0:t.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.wN("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.wN(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!AnJ.test(this.selectedHandle)){var t;return(t=this.data)==null?void 0:t.warningText}}}});
_.N([_.e(),_.P("design:type",Object)],ph.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],ph.prototype,"initialRadioIndex",void 0);_.N([_.e(),_.P("design:type",Number)],ph.prototype,"selectedRadioIndex",void 0);_.N([_.e(),_.P("design:type",String)],ph.prototype,"selectedHandle",void 0);_.N([_.e(),_.P("design:type",Object)],ph.prototype,"isLoading",void 0);_.N([_.e(),_.P("design:type",Function)],ph.prototype,"onSelectedHandleChanged",void 0);
_.N([_.e(),_.P("design:type",Function)],ph.prototype,"onSelectedRadioIndexChanged",void 0);_.N([_.Nl("#channel-handle-input"),_.P("design:type",Object)],ph.prototype,"handleInput",void 0);_.N([_.Nl("ytd-feedback-survey-renderer"),_.P("design:type",Object)],ph.prototype,"feedbackSurveyRenderer",void 0);_.N([_.Z("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],ph.prototype,"radioButtonLength",null);
_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],ph.prototype,"handleUrlPrefix",null);_.N([_.Z("selectedHandle"),_.P("design:type",Object),_.P("design:paramtypes",[])],ph.prototype,"displayHandle",null);_.N([_.Z("selectedHandle"),_.P("design:type",Object),_.P("design:paramtypes",[])],ph.prototype,"displayHandleUrl",null);_.N([_.Z("selectedHandle"),_.P("design:type",Object),_.P("design:paramtypes",[])],ph.prototype,"warningText",null);
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],ph.prototype,"ytRendererBehavior",void 0);_.N([_.Ul({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],ph);
_.G(ph,"ytd-handles-claiming-select-dialog-content",function(){if(xzt!==void 0)return xzt;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return xzt=t},{mode:1});var YI9;var Ub=function(){var t=_.z.apply(this,arguments)||this;t.actionButtonOverride={style:"mono",type:"filled",size:"M"};t.cancelButtonOverride={style:"mono",type:"text",size:"M"};t.initialRadioIndex="-1";t.selectButtonDisabled=!1;t.isLoading=!1;t.selectedRadioIndexChanged=function(E){t.selectedRadioIndex=Number(E.detail.value)};
t.selectedHandleChanged=function(E){t.selectedHandle=E.detail.value};
return t};
_.u(Ub,_.z);_.Y=Ub.prototype;_.Y.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.Y.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.Y.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.uO(this.hostElement,"yt-refit-popups-action")};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.du(this.hostElement,"yt-close-popup-action",[this.is])};
_.Y.onSelectHandle=function(){var t=this;if(this.selectedHandle!==void 0){var E;((E=this.data)==null?void 0:E.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(p,U){if(U.newHandleUpdateStatus!==void 0&&U.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&U.newHandleUpdateStatus.errorMessage)_.f$(t.hostElement,_.R4(U.newHandleUpdateStatus.errorMessage)),
t.isLoading=!1;else{var x;if((x=t.data)==null?0:x.onChannelUpdateSuccess){p=t.data.onChannelUpdateSuccess;U=_.k(p,_.cU);var A;if(U==null?0:(A=U.popup)==null?0:A.handlesClaimingConfirmDialogRenderer)U.popup.handlesClaimingConfirmDialogRenderer.handle=_.wN(t.selectedHandle);t.ytComponentBehavior.resolveCommand(p);_.du(t.hostElement,"yt-close-popup-action",[t.is])}else t.isLoading=!1}},
onServerError:function(){if(t.selectedRadioIndex===t.radioButtonLength){var p;t.content&&((p=t.content)==null?0:p.handleInput)&&t.content.handleInput.validate()}t.isLoading=!1;_.f$(t.hostElement,_.zF("TRY_AGAIN_LATER"))}}}))}};
_.Y.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var t,E;this.selectedHandle=(t=this.content)==null?void 0:(E=t.handleInput)==null?void 0:E.value}else this.selectedRadioIndex>=0&&((t=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(t==null?void 0:t.handle):this.selectedHandle=void 0)};
_.Y.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.Y.getRadioItem=function(t){if(this.radioButtonLength>t&&t>=0)return _.k(this.data.radioButton[t],S$7)};
_.aE.Object.defineProperties(Ub.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var t;return(((t=this.data)==null?void 0:t.radioButton)||[]).length}}});
Ub.prototype.onSelectedHandleChanged=Ub.prototype.onSelectedHandleChanged;Ub.prototype.onSelectedHandleIndexChanged=Ub.prototype.onSelectedHandleIndexChanged;Ub.prototype.onDataChanged=Ub.prototype.onDataChanged;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Ub.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Ub.prototype,"actionButtonOverride",void 0);_.N([_.e(),_.P("design:type",Object)],Ub.prototype,"cancelButtonOverride",void 0);
_.N([_.e(),_.P("design:type",Object)],Ub.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Ub.prototype,"initialRadioIndex",void 0);_.N([_.e(),_.P("design:type",Number)],Ub.prototype,"selectedRadioIndex",void 0);_.N([_.e(),_.P("design:type",String)],Ub.prototype,"selectedHandle",void 0);_.N([_.e(),_.P("design:type",Object)],Ub.prototype,"selectButtonDisabled",void 0);_.N([_.e(),_.P("design:type",Object)],Ub.prototype,"isLoading",void 0);
_.N([_.Z("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],Ub.prototype,"radioButtonLength",null);_.N([_.Nl("ytd-handles-claiming-select-dialog-content"),_.P("design:type",Object)],Ub.prototype,"content",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ub.prototype,"onDataChanged",null);
_.N([_.GI("selectedRadioIndex"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ub.prototype,"onSelectedHandleIndexChanged",null);_.N([_.GI("selectedHandle"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ub.prototype,"onSelectedHandleChanged",null);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ub.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Ub.prototype,"ytRendererstamperBehavior",void 0);_.N([_.Ul({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],Ub);
_.G(Ub,"ytd-handles-claiming-select-dialog-renderer",function(){if(YI9!==void 0)return YI9;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return YI9=t},{mode:1});var MNL;var mz5;var x$=function(){return _.z.apply(this,arguments)||this};
_.u(x$,_.z);x$.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],x$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],x$.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],x$.prototype,"data",void 0);_.N([_.Ul({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],x$);
_.G(x$,"ytd-hotkey-dialog-section-option-renderer",function(){if(mz5!==void 0)return mz5;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return mz5=t},{mode:1});var bDt;var Ar=function(){return _.z.apply(this,arguments)||this};
_.u(Ar,_.z);Ar.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Ar.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ar.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Ar.prototype,"data",void 0);_.N([_.Ul({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],Ar);
_.G(Ar,"ytd-hotkey-dialog-section-renderer",function(){if(bDt!==void 0)return bDt;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return bDt=t},{mode:1});var Y$=function(){return _.z.apply(this,arguments)||this};
_.u(Y$,_.z);Y$.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Y$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Y$.prototype,"data",void 0);_.N([_.Ul({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],Y$);
_.G(Y$,"ytd-hotkey-dialog-content",function(){if(MNL!==void 0)return MNL;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return MNL=t},{mode:1});var iDo;var MH=function(){return _.z.apply(this,arguments)||this};
_.u(MH,_.z);MH.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var t=document.querySelector("ytd-hotkey-dialog-content #scrollable");t&&(t.dialogElement=this.hostElement.parentElement)};
MH.prototype.onCloseTap=function(){_.du(this.hostElement,"yt-close-popup-action")};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],MH.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],MH.prototype,"data",void 0);_.N([_.Ul({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],MH);
_.G(MH,"ytd-hotkey-dialog-renderer",function(){if(iDo!==void 0)return iDo;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return iDo=t},{mode:1});var qIC;var mj=function(){return _.z.apply(this,arguments)||this};
_.u(mj,_.z);mj.prototype.onYtServiceRequestError=function(){if(this.blocked){var t;var E=(t=this.data)==null?void 0:t.defaultServiceEndpoint}else{var p;E=(p=this.data)==null?void 0:p.toggledServiceEndpoint}var U;(E=(U=_.k(E,_.ezr))==null?void 0:U.onFailureAction)&&this.ytComponentBehavior.resolveCommand(E);this.updateBlockState(!this.blocked)};
mj.prototype.onYtToggleButton=function(t){this.updateBlockState(t.detail.toggled)};
mj.prototype.updateBlockState=function(t){if(t!==this.blocked){var E=this.blockedEntityKey;E&&this.ytdReduxBehavior.dispatch(_.P9("blockStateEntity",E,{key:E,blocked:t}));this.set("data.isToggled",t)}};
_.aE.Object.defineProperties(mj.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)}}});
mj.prototype.onYtToggleButton=mj.prototype.onYtToggleButton;mj.prototype.onYtServiceRequestError=mj.prototype.onYtServiceRequestError;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],mj.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],mj.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],mj.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],mj.prototype,"blockedEntityKey",void 0);
_.N([_.e({selectorArgs:["blockedEntityKey"],selector:function(t,E){return _.hj(t.entities,"blockStateEntity",E)}}),
_.P("design:type",Object)],mj.prototype,"blockStateEntity",void 0);_.N([_.Z("data","blockStateEntity"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],mj.prototype,"blocked",null);_.N([_.lc("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],mj.prototype,"onYtServiceRequestError",null);
_.N([_.lc("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],mj.prototype,"onYtToggleButton",null);_.N([_.Ul({is:"ytd-block-button",disableElementRegistration:!0})],mj);
_.G(mj,"ytd-block-button",function(){if(qIC!==void 0)return qIC;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return qIC=t},
{mode:1});var HD7;var f0b;var b4=function(){return _.z.apply(this,arguments)||this};
_.u(b4,_.z);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],b4.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],b4.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],b4.prototype,"data",void 0);_.N([_.Ul({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],b4);
_.G(b4,"ytd-kids-blocklist-picker-item-renderer",function(){if(f0b!==void 0)return f0b;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return f0b=t},{mode:1});var i4=function(){return _.z.apply(this,arguments)||this};
_.u(i4,_.z);i4.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],i4.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],i4.prototype,"data",void 0);_.N([_.Ul({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],i4);
_.G(i4,"ytd-kids-blocklist-picker-content",function(){if(HD7!==void 0)return HD7;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return HD7=
t},{mode:_.hX("kevlar_poly_si_batch_j025")?1:2});var BQC;var qH=function(){var t=_.z.apply(this,arguments)||this;t.hasAnyRequestSucceeded=!1;t.hasAnyRequestFailed=!1;t.numPendingRequests=0;return t};
_.u(qH,_.z);_.Y=qH.prototype;_.Y.attached=function(){this.hostElement.setAttribute("dialog","")};
_.Y.onDoneButtonTap=function(){_.du(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.Y.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.Y.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.Y.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.Y.onPopupClosed=function(t){var E,p;if(((E=t.detail)==null?void 0:(p=E.popup)==null?void 0:p.is)==="tp-yt-paper-dialog"){var U;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((U=this.data)==null?0:U.successfulToastActionMessage)&&(t=_.jL(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(t));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
qH.prototype.onPopupClosed=qH.prototype.onPopupClosed;qH.prototype.onYtServiceRequestError=qH.prototype.onYtServiceRequestError;qH.prototype.onYtServiceRequestCompleted=qH.prototype.onYtServiceRequestCompleted;qH.prototype.onYtServiceRequestSent=qH.prototype.onYtServiceRequestSent;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],qH.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],qH.prototype,"ytRendererBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],qH.prototype,"data",void 0);_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qH.prototype,"onYtServiceRequestSent",null);_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qH.prototype,"onYtServiceRequestCompleted",null);
_.N([_.lc("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qH.prototype,"onYtServiceRequestError",null);_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],qH.prototype,"onPopupClosed",null);_.N([_.Ul({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],qH);
_.G(qH,"ytd-kids-blocklist-picker-renderer",function(){if(BQC!==void 0)return BQC;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return BQC=t},{mode:1});var wRb;var R1K;var Hc=function(){return _.z.apply(this,arguments)||this};
_.u(Hc,_.z);Hc.prototype.setTip=function(t){var E=this;this.data&&(this.tip=dpJ(rQg.getInstance(),t,this.data),_.XE(this,function(){_.kT(E.hostElement,"yt-refit")}))};
Hc.prototype.clearTip=function(){this.tip=void 0};
Hc.prototype.computeHidden=function(t){return!t};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Hc.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Hc.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.P("design:type",Boolean)],Hc.prototype,"hidden",void 0);_.N([_.e(),_.P("design:type",Object)],Hc.prototype,"tip",void 0);_.N([_.Ul({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],Hc);
_.G(Hc,"ytd-menu-popup-tip-renderer",function(){if(R1K!==void 0)return R1K;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);
return R1K=t},{mode:1});var VNK;var fh=function(){var t=_.z.apply(this,arguments)||this;t.useIcons=!1;t.role="menuitem";t.systemIcons=_.r("kevlar_system_icons");return t};
_.u(fh,_.z);_.Y=fh.prototype;_.Y.onFocus=function(){var t;(t=_.ZN(this.hostElement).querySelector("tp-yt-paper-item"))==null||t.focus()};
_.Y.onTap=function(){var t=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(t&&_.k(t,_.ZU))this.componentBehavior.resolveCommand(t),this.updateToggledStateInEntity();else if(t){this.componentBehavior.resolveCommand(t)||_.X3().resolve(_.ei).resolveCommand(t,{form:{element:this.hostElement}});var E;((E=_.k(t,_.XJ))==null?void 0:E.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.Y.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.Y.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.Y.updateToggledStateInEntity=function(){var t=this.data.toggleMenuServiceItemEntityKey,E=!this.data.isToggled;t&&this.ytdReduxBehavior.dispatch(_.P9("toggleMenuServiceItemEntity",t,{key:t,isToggled:E}))};
_.Y.computeIcon=function(t,E,p){return(t=t?p:E)&&t.iconType?_.zh(t.iconType):""};
_.Y.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.Y.isIconActive=function(t){return!_.r("toggle_menu_active_icon_killswitch")&&t};
_.aE.Object.defineProperties(fh.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return((t=this.data)==null?0:t.isToggled)?(E=this.data)==null?void 0:E.toggledText:(p=this.data)==null?void 0:p.defaultText}}});
fh.prototype.toggledStateEntityChanged=fh.prototype.toggledStateEntityChanged;fh.prototype.onYtServiceRequestCompleted=fh.prototype.onYtServiceRequestCompleted;fh.prototype.onTap=fh.prototype.onTap;fh.prototype.onFocus=fh.prototype.onFocus;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],fh.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],fh.prototype,"componentBehavior",void 0);
_.N([_.g(_.Be),_.P("design:type",Object)],fh.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],fh.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],fh.prototype,"useIcons",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],fh.prototype,"role",void 0);_.N([_.e({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.P("design:type",String)],fh.prototype,"icon",void 0);
_.N([_.e({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.MY.toggleMenuServiceItemEntitySelector}),_.P("design:type",Object)],fh.prototype,"toggleMenuServiceItemEntity",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],fh.prototype,"systemIcons",void 0);_.N([_.lc("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fh.prototype,"onFocus",null);
_.N([_.Z("data.isToggled"),_.P("design:type",Object),_.P("design:paramtypes",[])],fh.prototype,"toggleButtonText",null);_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fh.prototype,"onTap",null);_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fh.prototype,"onYtServiceRequestCompleted",null);
_.N([_.GI("toggleMenuServiceItemEntity.isToggled","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fh.prototype,"toggledStateEntityChanged",null);_.N([_.Ul({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],fh);
_.G(fh,"ytd-toggle-menu-service-item-renderer",function(){if(VNK!==void 0)return VNK;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return VNK=t},{mode:1});var QWb;var Bc=function(){return _.z.apply(this,arguments)||this};
_.u(Bc,_.z);Bc.prototype.onFocus=function(){var t;(t=_.ZN(this.hostElement).querySelector("tp-yt-paper-item"))==null||t.focus()};
_.aE.Object.defineProperties(Bc.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.S8(this.data.iconUrl)}}});
Bc.prototype.onFocus=Bc.prototype.onFocus;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Bc.prototype,"rendererBehavior",void 0);_.N([_.g(_.Tn.YtEndpointBehavior),_.P("design:type",Object)],Bc.prototype,"ytEndpointBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Bc.prototype,"data",void 0);_.N([_.lc("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Bc.prototype,"onFocus",null);
_.N([_.Z("data.iconUrl"),_.P("design:type",Object),_.P("design:paramtypes",[])],Bc.prototype,"imageSource",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],Bc);
_.G(Bc,"ytd-menu-custom-icon-item-renderer",function(){if(QWb!==void 0)return QWb;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return QWb=t},{mode:_.hX("kevlar_poly_si_batch_j028")?1:2});_.k2(_.jB,"yt-list-item-view-model",{props:{data:_.uu,isMenuItem:_.uu,isCompact:_.uu,onTap:_.Cy,trailingAccessory:_.Cy,hideSelectionTextChevron:_.uu,disabled:_.uu,inPopup:_.uu,disableHorizontalPadding:_.uu,isOverlay:_.uu,isToggled:_.uu,ariaLabel:_.uu,ariaPressed:_.uu,shouldNotFillIcon:_.uu}});var wH=function(){var t=_.z.apply(this,arguments)||this;t.disableBackdropFilter=_.r("web_disable_backdrop_filter");return t};
_.u(wH,_.z);_.Y=wH.prototype;
_.Y.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"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.Y.computeAriaLabel=function(t){return t};
_.Y.onPopupOpened=function(){this.items.selected=0;for(var t=_.M(_.ZN(this.items).children),E=t.next();!E.done;E=t.next())E.value.popupPositionTarget=this.positionTarget;if(t=this.popupTip||void 0)t.setTip(this.source||""),this.source=void 0;this.veData&&(t=_.yL())&&_.bU(t,[this.veData])};
_.Y.onPopupClosed=function(){var t=this.popupTip||void 0;t&&t.clearTip()};
_.Y.onIronActivate=function(t){this.shouldPersist(t)||_.du(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(t=_.yL())&&_.qc(t,this.veData)};
_.Y.shouldPersist=function(t){var E,p;if(((E=t.detail)==null?void 0:E.selected)===void 0||(p=this.data)==null||!p.items)return!1;var U,x;return!((x=(U=this.data.items[t.detail.selected])==null?void 0:U.toggleMenuServiceItemRenderer)==null||!x.persistentOnMenuPopup)};
_.Y.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(t){return t.menuNavigationItemRenderer?!!t.menuNavigationItemRenderer.icon:t.menuServiceItemRenderer?!!t.menuServiceItemRenderer.icon:t.menuConditionalServiceItemRenderer?!!t.menuConditionalServiceItemRenderer.icon:t.menuConditionalNavigationItemRenderer?!!t.menuConditionalNavigationItemRenderer.icon:t.toggleMenuServiceItemRenderer?!!t.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
wH.prototype.onPopupClosed=wH.prototype.onPopupClosed;wH.prototype.onPopupOpened=wH.prototype.onPopupOpened;_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],wH.prototype,"ytEventForwardingBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],wH.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],wH.prototype,"ytRendererBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],wH.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],wH.prototype,"veData",void 0);_.N([_.e({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.P("design:type",String)],wH.prototype,"ariaLabel",void 0);_.N([_.e({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],wH.prototype,"useIcons",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],wH.prototype,"disableBackdropFilter",void 0);_.N([_.Nl("#items"),_.P("design:type",Object)],wH.prototype,"items",void 0);_.N([_.Nl("ytd-menu-popup-tip-renderer"),_.P("design:type",Object)],wH.prototype,"popupTip",void 0);_.N([_.lc("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wH.prototype,"onPopupOpened",null);
_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wH.prototype,"onPopupClosed",null);_.N([_.Ul({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],wH);
_.G(wH,"ytd-menu-popup-renderer",function(){if(wRb!==void 0)return wRb;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return wRb=t},{mode:1});var C6g;var jWo=_.l(function(t){t=_.C4(t,{icon:void 0});var E=t.data;t=t.icon;var p=function(){return E().iconBadgeText},U={},x=_.X5("yt-spec-icon-badge-shape",function(){a:switch(E().iconBadgeType){case "notification":var A="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":A="yt-spec-icon-badge-shape--type-cart";break a;default:A=""}return A},function(){a:switch(E().iconBadgeStyle){case "overlay":var A="yt-spec-icon-badge-shape--style-overlay";
break a;default:A=""}return A},(U["yt-spec-icon-badge-shape--text-size-small"]=function(){var A=p();
return!!((A==null?0:A.length)&&A.length>2)},U));
return _.H("yt-icon-badge-shape",null,_.H(_.w,{cond:t,then:function(A){return _.H("div",{class:x},_.H("div",{class:"yt-spec-icon-badge-shape__icon"},_.H(_.lz,{icon:A})),_.H(_.w,{cond:p,then:function(m){return _.H("div",{class:"yt-spec-icon-badge-shape__badge"},m)}}))}}))},"cl");
jWo.idomCompat=!0;_.k2(jWo,"yt-icon-badge-shape",{props:{data:_.uu,icon:_.uu}});var Rj=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};t.unseenCount=0;t.isOverlay=!1;return t};
_.u(Rj,_.z);_.Y=Rj.prototype;_.Y.attached=function(){var t=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(E){t.onServiceWorkerMessage(E)})};
_.Y.onDataChanged=function(){this.isAttached&&!this.JSC$22581_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$22581_lastData=this.data};
_.Y.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.Y.computeIcon=function(){var t,E;return(t=this.data)==null?void 0:(E=t.icon)==null?void 0:E.iconType};
_.Y.onServiceWorkerMessage=function(t){t.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.Y.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.k(this.data.updateUnseenCountEndpoint,_.XJ)&&_.k(this.data.updateUnseenCountEndpoint,_.XJ).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.Y.handleUpdateNotificationsUnseenCountAction=function(t){var E=this;t=_.k(t,eIl);t!=null&&t.unseenCount&&t.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(t.unseenCount),_.ir.addLowPriorityJob(function(){E.data.updateUnseenCountEndpoint&&E.ytComponentBehavior.resolveCommand(E.data.updateUnseenCountEndpoint)},t.timeoutMs))};
_.Y.onClick=function(){_.kT(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var t=_.uO(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),E=this.data.menuRequest;t&&t.length===1&&t[0]?_.du(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):E&&this.ytComponentBehavior.resolveCommand(E)};
_.Y.handleTopbarMenuClosedAction=function(t){t==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.Y.toggleIconState=function(t){this.iconButton&&(this.iconButton.pressed=t)};
_.Y.sendUnseenCountRequest=function(t){var E=this;_.E_(_.ir,function(){E.ytComponentBehavior.resolveCommand(t)})};
_.Y.updateCountUI=function(t){this.set("unseenCount",t<9?t:"9+")};
_.aE.Object.defineProperties(Rj.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
Rj.prototype.handleUpdateNotificationsUnseenCountAction=Rj.prototype.handleUpdateNotificationsUnseenCountAction;Rj.prototype.onDataChanged=Rj.prototype.onDataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Rj.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Rj.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.aU),_.P("design:type",Object)],Rj.prototype,"ytdOpenPopupBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Rj.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Rj.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Rj.prototype,"unseenCount",void 0);_.N([_.e(),_.P("design:type",Object)],Rj.prototype,"isOverlay",void 0);_.N([_.e({value:!0}),_.P("design:type",Boolean)],Rj.prototype,"showTooltips",void 0);_.N([_.Nl("yt-icon-button"),_.P("design:type",Object)],Rj.prototype,"iconButton",void 0);
_.N([_.Z("unseenCount"),_.P("design:type",Object),_.P("design:paramtypes",[])],Rj.prototype,"showNotificationCount",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Rj.prototype,"onDataChanged",null);_.N([_.lc("yt-update-notifications-unseen-count-action"),_.P("design:type",Function),_.P("design:paramtypes",[Object]),_.P("design:returntype")],Rj.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.N([_.Ul({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],Rj);
_.G(Rj,"ytd-notification-topbar-button-renderer",function(){if(C6g!==void 0)return C6g;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return C6g=t},{mode:_.hX("kevlar_poly_si_batch_j025")?1:2});var rnC;var VI=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return t};
_.u(VI,_.z);VI.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}}}}}};
VI.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
VI.prototype.onDarkModeToggled=function(t){this.dark=t};
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],VI.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],VI.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],VI.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],VI.prototype,"data",void 0);_.N([_.e({value:!0,reflectToAttribute:!0}),_.P("design:type",Boolean)],VI.prototype,"dark",void 0);
_.N([_.Ul({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],VI);
_.G(VI,"yt-pdg-buy-flow-header-renderer",function(){if(rnC!==void 0)return rnC;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return rnC=t},{mode:1});var kDL;var dzd;var QI=function(){var t=_.z.apply(this,arguments)||this;t.immediateValue=0;t.isDarkTheme=!1;t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.u(QI,_.z);_.Y=QI.prototype;_.Y.created=function(){_.HU.requestAvailability()};
_.Y.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.Y.dataChanged=function(){var t=_.ZN(this.hostElement).querySelector("#color-slider");t.immediateValue&&this.updateSliderKnobAndGradientStyles(t.immediateValue);this.data.notches[0].knobColorArgb&&_.eU(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.cL(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.qO("HTML_DIR")==="rtl"&&_.ZN(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.Y.onSliderImmediateChange=function(){var t=_.ZN(this.hostElement).querySelector("#color-slider");t.dragging&&(t.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(t.immediateValue),this.updateSliderKnobAndGradientStyles(t.immediateValue)),this.updateSliderAria())};
_.Y.onSliderChange=function(){var t=_.ZN(this.hostElement).querySelector("#color-slider");t.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(t.immediateValue),this.updateSliderKnobAndGradientStyles(t.immediateValue));this.updateSliderAria()};
_.Y.updateSliderAria=function(){var t=_.ZN(this.hostElement).querySelector("#color-slider"),E=_.ZN(this.hostElement).querySelector("#color-slider");E=_.R4(this.data.notches[E.immediateValue].tierValue);_.Q0J()&&_.kT(this.hostElement,"iron-announce",{text:E});t.setAttribute("aria-valuetext",E)};
_.Y.updateSuperThanksSelectedTierEntity=function(t){if(t!==this.immediateValue){var E,p,U=this==null?void 0:(E=this.data)==null?void 0:(p=E.superThanksSelectedTierEntity)==null?void 0:p.key;U&&U.length>0&&this.ytdReduxBehavior.dispatch(_.P9("superThanksSelectedTierEntity",U,{key:U,index:t}))}};
_.Y.onDarkModeToggledAction=function(t){this.isDarkTheme=t};
_.Y.updateSliderKnobAndGradientStyles=function(t){this.immediateValue=t;t=this.data.notches[t];if(t==null?0:t.knobColorArgb)var E={"--ytd-pdg-color-slider-knob-color":_.cL(t.knobColorArgb)};(t==null?0:t.linearGradientCssStyle)&&E!==null&&(E=Object.assign({},E,{"--ytd-pdg-color-slider-active-color":t==null?void 0:t.linearGradientCssStyle}));E!==null&&_.eU(this.hostElement,E)};
QI.prototype.onSliderChange=QI.prototype.onSliderChange;QI.prototype.onSliderImmediateChange=QI.prototype.onSliderImmediateChange;QI.prototype.dataChanged=QI.prototype.dataChanged;_.N([_.e(),_.P("design:type",Object)],QI.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],QI.prototype,"immediateValue",void 0);_.N([_.e(),_.P("design:type",Number)],QI.prototype,"maxMarkers",void 0);
_.N([_.e({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:POl}),_.P("design:type",Object)],QI.prototype,"superThanksSelectedTierEntity",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],QI.prototype,"isDarkTheme",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],QI.prototype,"ytdReduxBehavior",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],QI.prototype,"dataChanged",null);
_.N([_.lc("immediate-value-change"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],QI.prototype,"onSliderImmediateChange",null);_.N([_.lc("change"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],QI.prototype,"onSliderChange",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],QI);
_.G(QI,"ytd-pdg-color-slider-renderer",function(){if(dzd!==void 0)return dzd;var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return dzd=t},{mode:1});var upe;var Jno;var Ch=null;
_.yx({is:"ytd-comment-input",_template:function(){if(Jno!==void 0)return Jno;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Jno=t},
behaviors:[_.SVl.YtHostElementBehavior,_.ou,_.RO.YtComponentBehavior,_.e4.YtRendererstamperBehavior,_.HnZ.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 _.kt}},
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",_.zI(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;_.Lm();this.focus()},
detached:function(){document.removeEventListener("tap",_.zI(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(t){t=t.detail;t=t.isCustomEmoji?t.shortcuts[0]:t.emojiId;var E=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(E,t);this.maybeUpdateTextDirection_();_.kT(this.hostElement,"input")},
getInputRange_:function(){var t=_.sR();if(t){t=t.getBrowserRangeObject();for(var E=t.commonAncestorContainer;E;){if(E===this.getEditableTextArea_())return t;E=E.parentNode}}t=this.getEditableTextArea_();t=_.Tx(t,t.childNodes.length);t.select();return t.getBrowserRangeObject()},
insertTextWithEmojis_:function(t,E,p){(E=this.emojiManager.createDocumentFragment(E,!0,!1,p===void 0?!0:p))&&E.childNodes.length!==0&&(t.collapsed||t.deleteContents(),p=E.lastChild,t.insertNode(E),_.Czp(p).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var t=_.sR();if(t){var E=t.JSC$11621_getStartNode(),p=t.JSC$11621_getEndNode();if(thb(E)&&thb(p)){var U=t.JSC$11621_getStartOffset(),x;if(_.lf&&E.nodeType===Node.ELEMENT_NODE&&(x=_.nsX(E)))_.Tx(x,0).select();else{x=rq(E)?E:_.tg(E,rq);var A=rq(p)?p:_.tg(p,rq);if(x||A)if(t.isCollapsed()){if(E.nodeType===Node.TEXT_NODE){t=!0;U===E.length&&(t=!1);if(Ch==="end"||Ch==="right")t=!1;E=E.parentNode;t=[].concat(_.KB(E.parentNode.childNodes)).indexOf(E)+(t?0:1);_.Tx(E.parentNode,
t).select()}}else x?x.previousSibling&&x.previousSibling.length>0?_.oE(p,t.JSC$11621_getEndOffset(),x.previousSibling,x.previousSibling.length-1).select():(E=document.createTextNode("\u200b"),x.parentNode.insertBefore(E,x),_.oE(p,t.JSC$11621_getEndOffset(),E,0).select()):A&&(A.nextSibling&&A.nextSibling.length>0?_.oE(E,t.JSC$11621_getStartOffset(),A.nextSibling,1).select():(p=document.createTextNode("\u200b"),A.parentNode.insertBefore(p,A.nextSibling),_.oE(E,t.JSC$11621_getStartOffset(),p,p.length).select()));
Ch=null}}else Ch=null}else Ch=null},
leftKeyPressed_:function(){Ch="left"},
rightKeyPressed_:function(){Ch="right"},
endKeyPressed_:function(){Ch="end"},
maybeDeleteChip_:function(){var t=Mht(!0);if(t){var E=_.sR(),p=E.JSC$11621_getStartNode();E=E.JSC$11621_getStartOffset();_.P6(p,E,t,t.childNodes.length).select()}},
maybeBackspaceChip_:function(){var t=Mht(!1);if(t){var E=_.sR(),p=E.JSC$11621_getStartNode();E=E.JSC$11621_getStartOffset();_.P6(p,E,t,0).select()}},
maybeBackspaceChipWordMode_:function(t){var E=_.sR();if(E.isCollapsed()){var p=E.JSC$11621_getStartNode();E=E.JSC$11621_getStartOffset();var U=mmg(p,E,!0);U&&(_.P6(p,E,U,0).select(),document.execCommand("delete"),t.preventDefault(),t.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(t){var E=_.sR();if(E.isCollapsed()){var p=E.JSC$11621_getStartNode();E=E.JSC$11621_getStartOffset();var U=mmg(p,E,!1);U&&(_.P6(p,E,U,U.childNodes.length).select(),document.execCommand("delete"),t.preventDefault(),t.stopImmediatePropagation())}},
onContentClick:function(t){t.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(t){t.defaultPrevented||t.currentTarget.tagName==="YTD-COMMENT-INPUT"&&rq(t.target)&&t.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.ZN(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.ZN(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(t,E){t=pn8(t,this.emojiManager,E).cloneNode(!0);for(E=t.firstChild;E;)if(E.nodeType!==1)E=E.nextSibling;else switch(E.tagName){case "BR":var p=_.Mh();_.Wip(p,E);E=p.nextSibling;break;case "DIV":(p=E.lastChild)&&E.nextSibling&&_.qh(_.Mh(),p);E.previousSibling&&(E.previousSibling.nodeType===1||E.previousSibling.nodeType===3&&!E.previousSibling.textContent.endsWith("\n"))&&_.ik(_.Mh(),E);p&&p.nodeName==="BR"&&_.ng(p);p=E;E.hasChildNodes()?(E=E.firstChild,
_.$XT(p)):(E=E.nextSibling,_.ng(p));break;default:E=E.nextSibling}return bGt(t)},
setTextAreaValue:function(t){t||(t="");var E=this.getEditableFormattedString_();E.text="";this.getEditableTextArea_().innerText="";typeof t==="string"&&(t={runs:[{text:t}]});E.text=t},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Ch=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var t=this.getEditableTextArea_();t&&(_.Tx(t,t.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.qO("HTML_DIR")==="rtl"){var t=this.getEditableTextArea_(),E=this.getTextAreaValue()!==""?"auto":"rtl";t.setAttribute("dir",E)}},
handleInputEvent_:function(){var t=null;if(this.isEmojiButtonDisplayed){var E=this.getInputRange_();E&&(t=this.emojiInput.retrieveTextBeforeRange(E))}this.insertText_(t,!0);this.updateCharCount_();t=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=t.scrollHeight>t.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var t=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:t})},
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(t){this.isEmojiButtonDisplayed&&(t.preventDefault(),t.stopImmediatePropagation(),t=t.clipboardData.getData("text/plain"),this.insertText_(t,!1,!1),_.kT(this.hostElement,"input"))},
insertText_:function(t,E,p){E=E===void 0?!1:E;p=p===void 0?!0:p;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&t){var U=this.getInputRange_().cloneRange();this.emojiManager&&U&&(E&&this.emojiInput.offsetStartOfRangeBy(U,t.length),this.insertTextWithEmojis_(U,t,p),EZJ(this.getEditableTextArea_().lastChild)||(U=this.getInputRange_().cloneRange()),U&&(this.emojiInput.updateSuggestions(U,t),this.updateSuggestionOffset_(U)))}},
getSimpleString:_.R4,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(t){return t?"focused":"not-focused"},
computePlaceholderText_:function(t){return this.getSimpleString(t)},
computeEditableText_:function(t){return this.getSimpleString(t)},
onPrefilledContentDismissed_:function(t){t.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(t,E){t?this.fire("yt-autonav-pause-focus"):E!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(t){var E=this.getEditableTextArea_();[].concat(_.KB(t.dataTransfer.items)).forEach(function(p){p.kind==="string"&&p.type.match("^text/plain")&&p.getAsString(function(U){E.appendChild(document.createTextNode(U))})});
t.preventDefault()},
preventDefault_:function(t){t.preventDefault()},
onSuggestionInsert_:function(t){this.insertTextWithEmojis_(t.detail.range,t.detail.text)},
onEmojiSuggestionClick_:function(t){this.emojiInput.insertSuggestion(t.detail)},
updateSuggestionOffset_:function(t){if(this.emojiInput&&_.ZN(this.emojiInput).querySelector("#dropdown")){var E=this.getEditableTextArea_().getBoundingClientRect().bottom,p=t.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(E-p)+5;E=this.getEditableTextArea_().getBoundingClientRect().left;t=t.getBoundingClientRect().left-E;_.ZN(this.emojiInput).querySelector("#dropdown").style.marginLeft=t+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.wx("yt-post"));return this.localStorage}});var jG=function(){var t=_.z.apply(this,arguments)||this;t.currentCommentOptionIndex=0;t.isEmojiPickerDisplayed=!1;t.emojiManager=_.kt;t.isUgcEmpty=!1;t.userGeneratedCommentChangedHandler=function(){_.kT(t.hostElement,"ytd-pdg-user-generated-comment-changed");t.isEmojiYtdCommentInputEnabled&&(t.isUgcEmpty=!t.ytdCommentInputEl.getTextAreaValue())};
t.pasteHandler=function(E){E.preventDefault();E.stopImmediatePropagation();var p;if(E=(p=E.clipboardData)==null?void 0:p.getData("text/plain"))p=document.getSelection().getRangeAt(0),p.collapsed||p.deleteContents(),E=document.createTextNode(E),p.insertNode(E),p.selectNodeContents(E),p.collapse(!1),E=window.getSelection(),E.removeAllRanges(),E.addRange(p)};
t.onDocumentClick=function(E){if(t.isEmojiPickerDisplayed){var p,U,x;!(E.target instanceof Node)||(p=E.composedPath())!=null&&p.includes(t.editableTextEl)||(U=E.composedPath())!=null&&U.includes(t.emojiButtonEl)||(x=E.composedPath())!=null&&x.includes(t.emojiPickerEl)||(t.isEmojiPickerDisplayed=!1)}};
return t};
_.u(jG,_.z);_.Y=jG.prototype;_.Y.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.Y.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.Y.detached=function(){var t;(t=this.contentEl)==null||t.removeEventListener("input",this.userGeneratedCommentChangedHandler);var E;(E=this.contentEl)==null||E.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.Y.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.Y.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var t;this.contentEl.textContent=this.rendererBehavior.getSimpleString((t=this.data)==null?void 0:t.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.Y.reloadEmojis=function(){this.emojiPickerEl&&_.k(this.emojiPicker,_.BcT)&&this.emojiPickerEl.updateEmojiCategories()};
_.Y.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.eU(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.Y.handleBackgroundColorStyling=function(){var t;if((t=this.currentCommentOption)==null?0:t.commentBackgroundColorArgb){var E;_.eU(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.cL((E=this.currentCommentOption)==null?void 0:E.commentBackgroundColorArgb)})}else _.eU(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.Y.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var t;(t=this.contentEl)==null||t.focus()}};
_.Y.onEditButtonClick=function(t){var E=document.getSelection();E&&this.contentEl&&(t.stopPropagation(),t.preventDefault(),E.selectAllChildren(this.contentEl),E.collapseToEnd())};
_.Y.onContentDrop=function(t){var E=this;if(t.dataTransfer){t=_.M(t.dataTransfer.items);for(var p=t.next();!p.done;p=t.next())p=p.value,p.kind==="string"&&p.type.match("^text/plain")&&p.getAsString(function(U){var x;(x=E.contentEl)==null||x.appendChild(document.createTextNode(U))})}};
_.Y.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.Y.getUserGeneratedCommentText=function(){var t,E=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(t=this.contentEl)==null?void 0:t.textContent;return E?E.trim():""};
_.Y.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.Y.onEmojiSelect=function(t){this.ytdCommentInputEl.onEmojiSelect(t)};
_.aE.Object.defineProperties(jG.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.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 t;return!((t=this.currentCommentOption)==null||!t.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var t;if(_.k((t=this.currentCommentOption)==null?void 0:t.chipRenderer,_.Gnr)){var E;return _.k((E=this.currentCommentOption)==null?void 0:E.chipRenderer,_.Gnr)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var t,E;return((t=this.data)==null?0:t.commentOptionRenderers)?_.k((E=this.data)==null?void 0:E.commentOptionRenderers[this.superThanksSelectedTierEntity.index],XZ8):void 0}var p,U;return((p=this.data)==null?0:p.commentOptionRenderers)?_.k((U=this.data)==null?void 0:U.commentOptionRenderers[this.currentCommentOptionIndex],XZ8):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var t;return this.rendererBehavior.getSimpleString((t=this.data)==null?void 0:t.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var t;return this.rendererBehavior.getSimpleString((t=this.data)==null?void 0:t.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var t,E;return(E=_.k((t=this.data)==null?void 0:t.commentDialog,_.Xi3))==null?void 0:E.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var t,E;return(E=_.k((t=this.data)==null?void 0:t.commentDialog,_.Xi3))==null?void 0:E.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var t,E;return(E=_.k((t=this.data)==null?void 0:t.commentDialog,_.Xi3))==null?void 0:E.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var t,E,p=(E=_.k((t=this.data)==null?void 0:t.commentDialog,_.Xi3))==null?void 0:E.emojiPicker;if(!_.k(p,_.BcT)||!_.k(p,_.BcT).categories)return!1;t=function(A){return A.emojiPickerCategoryRenderer?A.emojiPickerCategoryRenderer.emojiIds&&A.emojiPickerCategoryRenderer.emojiIds.length>0:A.emojiPickerUpsellCategoryRenderer?A.emojiPickerUpsellCategoryRenderer.emojis&&A.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var U,x;return((U=_.k(p,_.BcT))==null?0:(x=U.categories)==null?0:x.find(t))?!0:!1}}});
jG.prototype.onEmojiSelect=jG.prototype.onEmojiSelect;jG.prototype.dataChanged=jG.prototype.dataChanged;jG.prototype.currentCommentOptionChanged=jG.prototype.currentCommentOptionChanged;_.N([_.g(_.Be),_.P("design:type",Object)],jG.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],jG.prototype,"rendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],jG.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.Nl("#content-dom-if"),_.P("design:type",_.c3)],jG.prototype,"contentDomIfEl",void 0);_.N([_.Nl("#content-no-emojis"),_.P("design:type",HTMLElement)],jG.prototype,"contentEl",void 0);_.N([_.Nl("#container"),_.P("design:type",HTMLElement)],jG.prototype,"containerEl",void 0);_.N([_.Nl("#comment-chip-container"),_.P("design:type",HTMLElement)],jG.prototype,"paidCommentChipContainerEl",void 0);_.N([_.Nl("#text-input"),_.P("design:type",HTMLElement)],jG.prototype,"editableTextEl",void 0);
_.N([_.Nl("#emoji-button"),_.P("design:type",HTMLElement)],jG.prototype,"emojiButtonEl",void 0);_.N([_.Nl("#emoji-picker > yt-emoji-picker-renderer"),_.P("design:type",Object)],jG.prototype,"emojiPickerEl",void 0);_.N([_.Nl("#text-input > ytd-comment-input"),_.P("design:type",Object)],jG.prototype,"ytdCommentInputEl",void 0);_.N([_.e(),_.P("design:type",Object)],jG.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],jG.prototype,"currentCommentOptionIndex",void 0);
_.N([_.e({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:POl}),_.P("design:type",Object)],jG.prototype,"superThanksSelectedTierEntity",void 0);_.N([_.e(),_.P("design:type",Object)],jG.prototype,"isEmojiPickerDisplayed",void 0);_.N([_.e(),_.P("design:type",Object)],jG.prototype,"emojiManager",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],jG.prototype,"isUgcEmpty",void 0);
_.N([_.GI("currentCommentOption"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jG.prototype,"currentCommentOptionChanged",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jG.prototype,"dataChanged",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],jG.prototype,"isEmojiYtdCommentInputEnabled",null);
_.N([_.Z("data.title"),_.P("design:type",Object),_.P("design:paramtypes",[])],jG.prototype,"title",null);_.N([_.Z("data.authorText"),_.P("design:type",Object),_.P("design:paramtypes",[])],jG.prototype,"channelName",null);_.N([_.Z("data.commentOptionRenderers","currentCommentOption"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],jG.prototype,"shouldShowPaidCommentChipRenderer",null);
_.N([_.Z("data.commentOptionRenderers","currentCommentOption"),_.P("design:type",Object),_.P("design:paramtypes",[])],jG.prototype,"paidCommentChipRenderer",null);_.N([_.Z("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],jG.prototype,"currentCommentOption",null);
_.N([_.Z("data.defaultCommentText","superThanksSelectedTierEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],jG.prototype,"commentText",null);_.N([_.Z("data.placeholderText"),_.P("design:type",Object),_.P("design:paramtypes",[])],jG.prototype,"placeholderText",null);_.N([_.Z("data.commentDialog.commentDialogRenderer.editableText"),_.P("design:type",Object),_.P("design:paramtypes",[])],jG.prototype,"editableText",null);
_.N([_.Z("data.commentDialog.commentDialogRenderer.emojiButton"),_.P("design:type",Object),_.P("design:paramtypes",[])],jG.prototype,"emojiButton",null);_.N([_.Z("data.commentDialog.commentDialogRenderer.emojiPicker"),_.P("design:type",Object),_.P("design:paramtypes",[])],jG.prototype,"emojiPicker",null);
_.N([_.Z("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],jG.prototype,"isEmojiButtonDisplayed",null);_.N([_.lc("yt-emoji-select"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],jG.prototype,"onEmojiSelect",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],jG);
_.G(jG,"ytd-pdg-comment-preview-renderer",function(){if(upe!==void 0)return upe;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return upe=t},{mode:2});var I0g;var rH=function(){var t=_.z.apply(this,arguments)||this;t.selected=!1;return t};
_.u(rH,_.z);_.Y=rH.prototype;_.Y.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.Y.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.Y.dataChanged=function(){this.data&&(_.OU(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.eU(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.cL(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.cL(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.Y.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.Y.onClick=function(){this.logClick()};
_.Y.onKeyboardSelect=function(){_.kT(this.hostElement,"tap");this.onClick()};
_.Y.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
rH.prototype.onClick=rH.prototype.onClick;rH.prototype.selectedChanged=rH.prototype.selectedChanged;rH.prototype.dataChanged=rH.prototype.dataChanged;_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],rH.prototype,"componentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],rH.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.ou),_.P("design:type",Object)],rH.prototype,"ironA11yKeysBehavior",void 0);
_.N([_.g(_.f4),_.P("design:type",Object)],rH.prototype,"ironSelectableBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],rH.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],rH.prototype,"shownThumbnail",void 0);_.N([_.e(),_.P("design:type",Object)],rH.prototype,"basePriceText",void 0);_.N([_.e(),_.P("design:type",Object)],rH.prototype,"purchaseCommand",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],rH.prototype,"selected",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rH.prototype,"dataChanged",null);_.N([_.GI("selected"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rH.prototype,"selectedChanged",null);_.N([_.lc("click"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rH.prototype,"onClick",null);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],rH);
_.G(rH,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(I0g!==void 0)return I0g;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return I0g=t},{mode:1});var k$=function(){var t=_.z.apply(this,arguments)||this;t.selectedItemIndex=0;t.buyButtonDisabled=!1;return t};
_.u(k$,_.z);_.Y=k$.prototype;
_.Y.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]]"}}}}}};
_.Y.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var t;var E=(t=_.k(this.data.colorSlider,O79))==null?void 0:t.notches[this.selectedItemIndex].purchaseCommand}else{var p;E=(p=_.k(this.data.selectableItemButtons[this.selectedItemIndex],aCJ))==null?void 0:p.purchaseCommand}if(E){t=_.k(E,_.uNX);t.productData||(t.productData={});var U;t.productData={pdgData:{commentMessageText:(U=this.commentPreviewRenderer)==null?void 0:U.getUserGeneratedCommentText()}};
_.kT(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(E)}}};
_.Y.dataChanged=function(){if(this.data){_.kt.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.LaG(_.kt,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.kt.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var t;this.buyButtonDisabled=!((t=_.k(this.data.commentPreview,hpo))==null||!t.placeholderText);this.updatePriceSelectorStatus();var E;if((E=this.data)==null?0:E.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;t=[];this.data.preloadImages&&(t=this.data.preloadImages);
t=t.map(function(p){return _.d4(p.thumbnails,1920)});
t=_.M(t);for(E=t.next();!E.done;E=t.next())(E=E.value)&&_.fLj(E).thenCatch(function(){_.qW(Error("dm"))})}};
_.Y.superThanksSelectedTierEntityChanged=function(){var t;(this==null?void 0:(t=this.superThanksSelectedTierEntity)==null?void 0:t.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.Y.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.Y.updatePriceSelectorStatus=function(){this.isColorSlider?(_.ZN(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.ZN(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.ZN(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.ZN(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.Y.closeBuyFlow=function(){_.du(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.Y.onUserGeneratedContentChanged=function(){var t;this.buyButtonDisabled=!((t=this.commentPreviewRenderer)==null?0:t.getUserGeneratedCommentText())};
_.Y.updateSelectedItemIndexFromBinding=function(t){this.selectedItemIndex=t.detail.value};
_.aE.Object.defineProperties(k$.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var t;return!((t=this.data)==null||!t.disclaimerText)}}});
k$.prototype.onUserGeneratedContentChanged=k$.prototype.onUserGeneratedContentChanged;k$.prototype.closeBuyFlow=k$.prototype.closeBuyFlow;k$.prototype.selectedItemIndexChanged=k$.prototype.selectedItemIndexChanged;k$.prototype.superThanksSelectedTierEntityChanged=k$.prototype.superThanksSelectedTierEntityChanged;k$.prototype.dataChanged=k$.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],k$.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],k$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],k$.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],k$.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],k$.prototype,"selectedItemIndex",void 0);_.N([_.e(),_.P("design:type",Boolean)],k$.prototype,"isColorSlider",void 0);
_.N([_.e(),_.P("design:type",Object)],k$.prototype,"buyButtonDisabled",void 0);_.N([_.e({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:POl}),_.P("design:type",Object)],k$.prototype,"superThanksSelectedTierEntity",void 0);_.N([_.Nl("ytd-pdg-comment-preview-renderer"),_.P("design:type",Object)],k$.prototype,"commentPreviewRenderer",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],k$.prototype,"ytdReduxBehavior",void 0);
_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],k$.prototype,"dataChanged",null);_.N([_.GI("superThanksSelectedTierEntity"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],k$.prototype,"superThanksSelectedTierEntityChanged",null);_.N([_.GI("selectedItemIndex"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],k$.prototype,"selectedItemIndexChanged",null);
_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],k$.prototype,"closeBuyFlow",null);_.N([_.lc("ytd-pdg-user-generated-comment-changed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],k$.prototype,"onUserGeneratedContentChanged",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],k$.prototype,"isDisclaimerTextShown",null);
_.N([_.Ul({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],k$);
_.G(k$,"yt-super-vod-buy-flow-content-renderer",function(){if(kDL!==void 0)return kDL;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return kDL=t},{mode:1});var g57;var dH=function(){var t=_.z.apply(this,arguments)||this;t.lottieAnimationRef={};return t};
_.u(dH,_.z);_.Y=dH.prototype;_.Y.created=function(){_.HU.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.zI(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.Y.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.kT(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.Y.detached=function(){this.autoCloseJobId&&_.ir.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.zI(this,this.onPopupIronOverlayOpened))};
_.Y.dataChanged=function(){var t=this;this.data&&this.data.autoCloseDelay&&(_.du(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.g4(_.ir,function(){t.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.eU(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.Y.onDOMLoadedLottie=function(){var t=this,E,p,U=Number((E=this.data)==null?void 0:(p=E.autoCloseDelay)==null?void 0:p.seconds)||0;this.fadeOutJobId=_.g4(_.ir,function(){t.lottiePlayerEl.classList.add("fadeout")},(U-.25)*1E3);
this.autoCloseJobId=_.g4(_.ir,function(){t.closePopup()},U*1E3)};
_.Y.openPopup=function(){this.ironOverlayBehavior.open()};
_.Y.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.du(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.IK(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.X3().resolve(_.ei).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.ir.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.ir.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.Y.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var t,E;(t=this.lottieAnimationRef)==null||(E=t.lottieEl)==null||E.destroy();t=this.data.lottie;var p,U;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:t.url+"_"+Math.random(),path:t.url,autoplay:!0,loop:(U=(p=t.settings)==null?void 0:p.loop)!=null?U:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.aE.Object.defineProperties(dH.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var t,E;return!!((t=this.data)==null?0:(E=t.lottie)==null?0:E.url)}}});
dH.prototype.maybeInitializeLottie=dH.prototype.maybeInitializeLottie;dH.prototype.dataChanged=dH.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],dH.prototype,"rendererBehavior",void 0);_.N([_.g(_.VV),_.P("design:type",Object)],dH.prototype,"ironOverlayBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],dH.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],dH.prototype,"lottiePlayerProps",void 0);
_.N([_.e(),_.P("design:type",Object)],dH.prototype,"lottieAnimationRef",void 0);_.N([_.Nl("ytd-lottie-player"),_.P("design:type",HTMLElement)],dH.prototype,"lottiePlayerEl",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dH.prototype,"dataChanged",null);_.N([_.Z("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],dH.prototype,"hasLottieAnimation",null);
_.N([_.GI("data.lottie.url"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dH.prototype,"maybeInitializeLottie",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],dH);
_.G(dH,"ytd-desktop-image-overlay-renderer",function(){if(g57!==void 0)return g57;var t=document.createElement("template");_.J(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class="lottie-player style-scope ytd-desktop-image-overlay-renderer" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]">\n</ytd-lottie-player></div>\n');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return g57=t},{mode:1});var ZDb;var u4=function(){return _.z.apply(this,arguments)||this};
_.u(u4,_.z);_.Y=u4.prototype;_.Y.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"}}}}};
_.Y.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",_.zI(this,this.closePopup))};
_.Y.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.zI(this,this.closePopup))};
_.Y.dataChanged=function(){_.uO(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.k(this.data.header,Z7g)&&(this.hasBackgroundBanner=!!_.k(this.data.header,Z7g).backgroundBanner)};
_.Y.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.zI(this,this.closePopup))};
_.Y.closePopup=function(){this.data&&this.data.onCloseCommand&&_.JZ(this.hostElement,[this.data.onCloseCommand])};
u4.prototype.handleBuyflowSelectionSubmitted=u4.prototype.handleBuyflowSelectionSubmitted;u4.prototype.dataChanged=u4.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],u4.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],u4.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],u4.prototype,"data",void 0);
_.N([_.e({value:!0,reflectToAttribute:!0}),_.P("design:type",Boolean)],u4.prototype,"hasBackgroundBanner",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],u4.prototype,"dataChanged",null);_.N([_.lc("yt-pdg-buy-flow-selection-submitted"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],u4.prototype,"handleBuyflowSelectionSubmitted",null);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],u4);
_.G(u4,"ytd-pdg-buy-flow-renderer",function(){if(ZDb!==void 0)return ZDb;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return ZDb=t},{mode:1});var OD8;var Jr=function(){var t=_.z.apply(this,arguments)||this;t.isOpen=!1;t.isPlaylistCreated=!1;return t};
_.u(Jr,_.z);_.Y=Jr.prototype;_.Y.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.Y.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.kT(this.hostElement,"yt-refit")};
_.Y.onCreateTap=function(){var t=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.JZ(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(E,p){if(!_.r("killswitch_ep_in_create_playlist_response")&&(p==null?0:p.actions))for(E=_.M(p.actions),p=E.next();!p.done;p=E.next())p=p.value,_.k(p,_.Ua)&&t.ytComponentBehavior.resolveCommand(p)}}]),this.isPlaylistCreated=!0)};
_.Y.onKeydown=function(t){if(t.keyCode===13)this.onCreateTap()};
_.Y.onServiceRequestCompleted=function(t){t.stopPropagation();_.du(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.Y.computePrivacyBadge=function(t){return t?[{metadataBadgeRenderer:t}]:[]};
Jr.prototype.onServiceRequestCompleted=Jr.prototype.onServiceRequestCompleted;Jr.prototype.onKeydown=Jr.prototype.onKeydown;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Jr.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Jr.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Jr.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Jr.prototype,"isOpen",void 0);
_.N([_.e(),_.P("design:type",Object)],Jr.prototype,"isPlaylistCreated",void 0);_.N([_.e({value:{REQUIRED_LABEL:_.zF("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.zF("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.P("design:type",Object)],Jr.prototype,"addToStrings",void 0);_.N([_.e({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.P("design:type",Array)],Jr.prototype,"privacyBadge",void 0);
_.N([_.Nl("#privacy-input"),_.P("design:type",Object)],Jr.prototype,"privacyInput",void 0);_.N([_.Nl("#name-input"),_.P("design:type",Object)],Jr.prototype,"nameInput",void 0);_.N([_.lc("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[KeyboardEvent]),_.P("design:returntype")],Jr.prototype,"onKeydown",null);_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Jr.prototype,"onServiceRequestCompleted",null);
_.N([_.Ul({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],Jr);
_.G(Jr,"ytd-add-to-playlist-create-renderer",function(){if(OD8!==void 0)return OD8;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return OD8=t},{mode:1});var XRo;var h18;var Ij=function(){var t=_.z.apply(this,arguments)||this;t.transferState="TRANSFER_STATE_UNKNOWN";return t};
_.u(Ij,_.z);Ij.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
Ij.prototype.onCheckboxChange=function(t){var E=this;this.data&&_.qd(this,"yt-playlist-checkbox-changed",function(){var p=_.Qx(t).checked?E.data.addToPlaylistServiceEndpoint:E.data.removeFromPlaylistServiceEndpoint;p&&_.X3().resolve(_.ei).resolveCommand(p,{form:{element:E.hostElement}});_.r("dl_playlist_killswitch")||E.transferState!=="TRANSFER_STATE_UNKNOWN"&&E.transferState!=="TRANSFER_STATE_FAILED"&&E.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:E.data.playlistId,action:"ACTION_SYNC"}})},
100)};
Ij.prototype.computeIconType=function(t){return t?"yt-icons:"+t.toLowerCase():null};
Ij.prototype.dataChanged=Ij.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ij.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Ij.prototype,"data",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],Ij.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Ij.prototype,"ytComponentBehavior",void 0);_.N([_.Nl("#checkbox"),_.P("design:type",HTMLInputElement)],Ij.prototype,"checkbox",void 0);
_.N([_.e({selector:_.Af,selectorArgs:["data.playlistId"]}),_.P("design:type",String)],Ij.prototype,"transferState",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ij.prototype,"dataChanged",null);_.N([_.Ul({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],Ij);
_.G(Ij,"ytd-playlist-add-to-option-renderer",function(){if(h18!==void 0)return h18;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return h18=t},{mode:1});var a0C=_.l(function(t){var E=t.data;return _.H("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.H("div",null,_.H(_.d8,{text:function(){return E().title}})),_.H(_.w,{cond:function(){return E().subtitle},
then:function(p){return _.H("div",{class:"ytdMenuTitleRendererSubtitle"},_.H(_.d8,{text:p}))}}))},"dl");
a0C.idomCompat=!0;_.k2(a0C,"ytd-menu-title-renderer",{props:{data:_.uu}});var gH=function(){var t=_.z.apply(this,arguments)||this;t.addToStrings={ADD_TO_DROPDOWN_LABEL:_.zF("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};t.closeButtonAriaLabel=_.zF("SBOX_INAPPROPRIATE_CANCEL");t.dialog=_.r("desktop_add_to_playlist_renderer_dialog_popup");return t};
_.u(gH,_.z);_.Y=gH.prototype;_.Y.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"}}}};
_.Y.onPopupOpened=function(){_.XM(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.Y.onPopupClosed=function(){_.XM(this.playlists,"scrollable",!1)};
_.Y.computeAriaLabel=function(){var t;if(this==null?0:(t=this.data)==null?0:t.actions){t=_.M(this.data.actions);for(var E=t.next();!E.done;E=t.next())if(E=E.value,E.menuTitleRenderer)return _.R4(E.menuTitleRenderer.title)}};
_.Y.onTapClose=function(){_.du(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.aE.Object.defineProperties(gH.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var t;if(this==null?0:(t=this.data)==null?0:t.actions){t=_.M(this.data.actions);for(var E=t.next();!E.done;E=t.next())if(E=E.value,E.menuTitleRenderer)return E.menuTitleRenderer}return!1}}});
gH.prototype.onPopupClosed=gH.prototype.onPopupClosed;gH.prototype.onPopupOpened=gH.prototype.onPopupOpened;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],gH.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],gH.prototype,"ytEventForwardingBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],gH.prototype,"ytRendererStamperBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],gH.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],gH.prototype,"addToStrings",void 0);_.N([_.e({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.P("design:type",String)],gH.prototype,"ariaLabel",void 0);_.N([_.e(),_.P("design:type",String)],gH.prototype,"closeButtonAriaLabel",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],gH.prototype,"dialog",void 0);
_.N([_.Nl("#playlists"),_.P("design:type",HTMLElement)],gH.prototype,"playlists",void 0);_.N([_.Nl("ytd-add-to-playlist-create-renderer"),_.P("design:type",Object)],gH.prototype,"createRenderer",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],gH.prototype,"menuTitleRenderer",null);_.N([_.lc("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gH.prototype,"onPopupOpened",null);
_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gH.prototype,"onPopupClosed",null);_.N([_.Ul({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],gH);
_.G(gH,"ytd-add-to-playlist-renderer",function(){if(XRo!==void 0)return XRo;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return XRo=t},{mode:1});var e1t;var Z6=function(){var t=_.z.apply(this,arguments)||this;t.isPlaylistEditComplete=!1;t.isCollabEngagementDisabled=!1;t.closeButtonAriaLabel=_.zF("SBOX_INAPPROPRIATE_CANCEL");t.saveButton={title:_.zF("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"};t.onValueChanged=function(){t.updateSaveButtonState();t.computeCollabEngagementDisabled()};
return t};
_.u(Z6,_.z);_.Y=Z6.prototype;_.Y.attached=function(){this.JSC$22635_scroller&&(this.JSC$22635_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22635_scroller.attached&&typeof this.JSC$22635_scroller.attached==="function"&&this.JSC$22635_scroller.attached())};
_.Y.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.Y.onPopupClosed=function(){this.reset()};
_.Y.close=function(){_.du(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.Y.onClickSave=function(){var t=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var E=[];this.nameInput.value!==null&&E.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&E.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var p=Number(this.privacyInput.value);isNaN(p)||E.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:p})}this.votingInput.value!==null&&(p=this.votingInput.value)&&E.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:p});if(E.length>0){var U;_.k((U=this.data)==null?void 0:U.updateSettingsEndpoint,_.HH).actions=E;var x;if((x=this.data)==null?0:x.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){t.close()}}}),this.isPlaylistEditComplete=!0}}};
_.Y.computePrivacyBadge=function(t){return t?[{metadataBadgeRenderer:t}]:[]};
_.Y.computeEditorData=function(t){var E,p;return t==null?void 0:(E=t.sections)==null?void 0:(p=E[0])==null?void 0:p.playlistSettingsEditorCasualSectionRenderer};
_.Y.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.Y.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}}}}}};
_.Y.computeAriaLabel=function(){var t,E,p,U=(t=this.data)==null?void 0:(E=t.sections)==null?void 0:(p=E[0])==null?void 0:p.playlistSettingsEditorCasualSectionRenderer;return _.R4(U==null?void 0:U.title)};
_.Y.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"}))};
_.Y.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.Y.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.Y.isNameChanged=function(){var t,E,p;return(((t=this.editorData)==null?void 0:(E=t.name)==null?void 0:(p=E.textInputFormFieldRenderer)==null?void 0:p.value)||"")!==(this.nameInput.value||"")};
_.Y.isDescriptionChanged=function(){var t,E,p;return(((t=this.editorData)==null?void 0:(E=t.description)==null?void 0:(p=E.textInputFormFieldRenderer)==null?void 0:p.value)||"")!==(this.descriptionInput.value||"")};
_.Y.isPrivacyChanged=function(){var t,E,p,U,x,A,m,b;return((m=(t=this.editorData)==null?void 0:(E=t.privacy)==null?void 0:(p=E.dropdownFormFieldRenderer)==null?void 0:(U=p.dropdown)==null?void 0:(x=U.dropdownRenderer)==null?void 0:(A=x.entries)==null?void 0:A.find(function(f){var B;return f==null?void 0:(B=f.privacyDropdownItemRenderer)==null?void 0:B.isSelected}))==null?void 0:(b=m.privacyDropdownItemRenderer)==null?void 0:b.int32Value)!==this.privacyInput.value};
_.Y.isVotingChanged=function(){var t,E,p,U,x,A,m,b;return((m=(t=this.editorData)==null?void 0:(E=t.voting)==null?void 0:(p=E.dropdownFormFieldRenderer)==null?void 0:(U=p.dropdown)==null?void 0:(x=U.dropdownRenderer)==null?void 0:(A=x.entries)==null?void 0:A.find(function(f){var B;return f==null?void 0:(B=f.privacyDropdownItemRenderer)==null?void 0:B.isSelected}))==null?void 0:(b=m.privacyDropdownItemRenderer)==null?void 0:b.int32Value)!==this.votingInput.value};
Z6.prototype.onPopupClosed=Z6.prototype.onPopupClosed;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Z6.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Z6.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],Z6.prototype,"ytEventForwardingBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Z6.prototype,"ytRendererStamperBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],Z6.prototype,"data",void 0);_.N([_.e({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.P("design:type",Array)],Z6.prototype,"privacyBadge",void 0);_.N([_.e({computed:"computeEditorData(data)"}),_.P("design:type",Object)],Z6.prototype,"editorData",void 0);_.N([_.e(),_.P("design:type",Object)],Z6.prototype,"isPlaylistEditComplete",void 0);_.N([_.e(),_.P("design:type",Object)],Z6.prototype,"isCollabEngagementDisabled",void 0);
_.N([_.e({value:{REQUIRED_LABEL:_.zF("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.zF("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.P("design:type",Object)],Z6.prototype,"addToStrings",void 0);_.N([_.e({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.P("design:type",String)],Z6.prototype,"ariaLabel",void 0);_.N([_.e(),_.P("design:type",String)],Z6.prototype,"closeButtonAriaLabel",void 0);
_.N([_.e(),_.P("design:type",Object)],Z6.prototype,"saveButton",void 0);_.N([_.Nl("#name-input"),_.P("design:type",Object)],Z6.prototype,"nameInput",void 0);_.N([_.Nl("#description-input"),_.P("design:type",Object)],Z6.prototype,"descriptionInput",void 0);_.N([_.Nl("#privacy-input"),_.P("design:type",Object)],Z6.prototype,"privacyInput",void 0);_.N([_.Nl("#voting-input"),_.P("design:type",Object)],Z6.prototype,"votingInput",void 0);
_.N([_.Nl("#scroller"),_.P("design:type",Object)],Z6.prototype,"JSC$22635_scroller",void 0);_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Z6.prototype,"onPopupClosed",null);_.N([_.e(),_.P("design:type",Object)],Z6.prototype,"onValueChanged",void 0);_.N([_.Ul({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],Z6);
_.G(Z6,"ytd-playlist-settings-editor-renderer",function(){if(e1t===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);e1t=t}t=e1t;return t},{mode:1});var F45;_.vs("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var Ob=function(){return _.z.apply(this,arguments)||this};
_.u(Ob,_.z);_.Y=Ob.prototype;_.Y.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}}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.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 t=this.get("data.nextButton.buttonRenderer.navigationEndpoint");t&&(this.nextNavigationEndpoint=t,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.Y.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 t={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",t)}}};
_.Y.onPopupOpened=function(t){t.detail!==this&&t.detail!==this.hostElement||!_.r("enable_premium_voluntary_pause")||_.du(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.Y.onNextButtonTap=function(){var t=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);t&&this.ytdOpenPopupBehavior.openPopup(t)};
_.Y.updateSelectedResponseIndexFromBinding=function(t){this.selectedResponseIndex=t.detail.value};
Ob.prototype.onPopupOpened=Ob.prototype.onPopupOpened;Ob.prototype.onSelectedResponseIndexChange=Ob.prototype.onSelectedResponseIndexChange;Ob.prototype.dataChanged=Ob.prototype.dataChanged;_.N([_.g(_.aU),_.P("design:type",Object)],Ob.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ob.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Ob.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],Ob.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Number)],Ob.prototype,"selectedResponseIndex",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ob.prototype,"dataChanged",null);_.N([_.GI("selectedResponseIndex"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ob.prototype,"onSelectedResponseIndexChange",null);
_.N([_.lc("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],Ob.prototype,"onPopupOpened",null);_.N([_.Ul({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],Ob);
_.G(Ob,"ytd-red-cancel-survey-renderer",function(){if(F45!==void 0)return F45;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return F45=t},{mode:1});var z1l;var XK=function(){var t=_.z.apply(this,arguments)||this;t.closeButtonAriaLabel=_.zF("SBOX_INAPPROPRIATE_CANCEL");return t};
_.u(XK,_.z);XK.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
XK.prototype.onClickClose=function(){_.du(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],XK.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],XK.prototype,"rendererStamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],XK.prototype,"data",void 0);_.N([_.e(),_.P("design:type",String)],XK.prototype,"closeButtonAriaLabel",void 0);_.N([_.Ul({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],XK);
_.G(XK,"ytd-search-filter-options-dialog-renderer",function(){if(z1l!==void 0)return z1l;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return z1l=t},{mode:1});var l07;var HGl=function(){return function(t){t=t.availabilityType;return t===void 0||t==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||t==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var hr=function(){var t=_.z.apply(this,arguments)||this;t.qualityOptions=[];t.upsellOptions=[];t.showUpsellSection=!1;t.rememberSettingsChecked=!1;return t};
_.u(hr,_.z);_.Y=hr.prototype;_.Y.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}}}}};
_.Y.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.Y.updateQualityOptions=function(){if(this.formats===void 0)_.du(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var t=[],E=[];this.showUpsellSection=!1;for(var p=_.M(this.formats),U=p.next();!U.done;U=p.next())(U=U.value)&&(U.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?E.push(U):t.push(U));t.length&&(this.qualityOptions=qag(t));E.length&&(this.showUpsellSection=!0,this.upsellOptions=qag(E))}};
_.Y.updateRememberString=function(){if(this.downloadQualityPickerEntity)var t=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var E;t=(E=this.data)==null?void 0:E.premiumRememberSettingString}else{var p;t=(p=this.data)==null?void 0:p.rememberSettingString}t=t===void 0?_.zF("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):t;this.rememberSettingsCheckboxRenderer={title:_.kh(t),disabled:!1}};
_.Y.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.aE.Object.defineProperties(hr.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var t;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(t=this.data)==null?void 0:t.qualityFormats}}});
hr.prototype.updateRememberString=hr.prototype.updateRememberString;hr.prototype.updateQualityOptions=hr.prototype.updateQualityOptions;hr.prototype.dataChanged=hr.prototype.dataChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],hr.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],hr.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],hr.prototype,"data",void 0);
_.N([_.g(_.Be),_.P("design:type",Object)],hr.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Boolean)],hr.prototype,"selectedUpsellQuality",void 0);_.N([_.e({computed:"computeIcon_(data.premiumIcon)",value:""}),_.P("design:type",String)],hr.prototype,"premiumIcon",void 0);_.N([_.e({selector:SRl,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.P("design:type",Object)],hr.prototype,"downloadQualityPickerEntity",void 0);
_.N([_.e(),_.P("design:type",Array)],hr.prototype,"qualityOptions",void 0);_.N([_.e(),_.P("design:type",Array)],hr.prototype,"upsellOptions",void 0);_.N([_.e(),_.P("design:type",Object)],hr.prototype,"showUpsellSection",void 0);_.N([_.e(),_.P("design:type",Object)],hr.prototype,"rememberSettingsCheckboxRenderer",void 0);_.N([_.Nl("#remember-settings"),_.P("design:type",HTMLInputElement)],hr.prototype,"rememberSettingsCheckbox",void 0);
_.N([_.e(),_.P("design:type",Object)],hr.prototype,"rememberSettingsChecked",void 0);_.N([_.e(),_.P("design:type",Function)],hr.prototype,"onRememberSettingsCheckedChanged",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],hr.prototype,"dataChanged",null);_.N([_.GI("downloadQualityPickerEntity"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],hr.prototype,"updateQualityOptions",null);
_.N([_.GI("selectedUpsellQuality"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],hr.prototype,"updateRememberString",null);_.N([_.Ul({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],hr);
_.G(hr,"ytd-download-quality-selector-content",function(){if(l07!==void 0)return l07;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return l07=t},{mode:1});var GD5;var aj=function(){var t=_.z.apply(this,arguments)||this;t.selectedUpsellQuality=!1;t.qualityOptions=[];t.useUpsellDismissAlternate=_.r("use_not_now_dl_upsell_dismiss_cta");t.shouldShowAlternateUpsellDimiss=!1;t.rememberSettings=!1;t.rememberSettingsChecked=!1;t.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};t.rememberSettingsCheckedChanged=function(E){t.rememberSettingsChecked=E};
return t};
_.u(aj,_.z);_.Y=aj.prototype;
_.Y.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.kh(_.zF("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.kh(_.zF("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.kh(_.zF("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.kh(_.zF("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.Y.updateQualityOptions=function(){this.formats===void 0?_.du(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=qag(this.formats)};
_.Y.onQualityOptionsSelect=function(t){if(this.qualityOptions&&t){t!==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 E=_.M(this.qualityOptions.entries()),p=E.next();!p.done;p=
E.next()){p=_.M(p.value);var U=p.next().value;p=p.next().value;var x=void 0,A=void 0;if(((x=p)==null?void 0:(A=x.settingsRadioOptionRenderer)==null?void 0:A.id)===t){this.selectedQualityIndex=U;t=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((t=this.formats[U])==null?void 0:t.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.Y.onClickSubmit=function(){var t;if((t=this.downloadButtonRenderer)==null||!t.isDisabled){var E,p;t=(p=(E=this.data)==null?void 0:E.onSubmitEndpoint)!=null?p:{};var U,x;if(this.formats&&(((U=_.k(t,_.lA))==null?0:U.videoId)||((x=_.k(t,_.GE))==null?0:x.playlistId))){var A,m,b,f,B,R;E={formatType:(f=(A=this.formats)==null?void 0:(m=A[(b=this.selectedQualityIndex)!=null?b:0])==null?void 0:m.format)!=null?f:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(B=this.getOfflineEndpoint(t))==null?void 0:(R=B.actionParams)==null?void 0:R.settingsAction)};this.getOfflineEndpoint(t).actionParams=E;this.ytComponentBehavior.resolveCommand(t)}_.du(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.Y.onClickUpsell=function(){var t;if((t=this.upsellButtonRenderer)==null||!t.isDisabled){var E,p;t=(p=(E=this.data)==null?void 0:E.upsellEndpoint)!=null?p:{};this.ytComponentBehavior.resolveCommand(t);_.du(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);E="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var U,x,A,m;E=(m=(U=this.formats)==null?void 0:(x=U[(A=this.selectedQualityIndex)!=null?A:0])==null?void 0:x.format)!=null?m:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:E}})}};
_.Y.onClickClose=function(){_.du(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.Y.getOfflineSettingsAction=function(t,E){return t?E===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":E:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.Y.getOfflineEndpoint=function(t){return _.k(t,_.lA)?_.k(t,_.lA):_.k(t,_.GE)};
_.aE.Object.defineProperties(aj.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.kh(_.zF("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var t;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(t=this.data)==null?void 0:t.qualityFormats}}});
aj.prototype.updateQualityOptions=aj.prototype.updateQualityOptions;aj.prototype.dataChanged=aj.prototype.dataChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],aj.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],aj.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],aj.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],aj.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],aj.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Number)],aj.prototype,"selectedQualityIndex",void 0);_.N([_.e(),_.P("design:type",Object)],aj.prototype,"selectedUpsellQuality",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],aj.prototype,"ytdReduxBehavior",void 0);
_.N([_.e({selector:SRl,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.P("design:type",Object)],aj.prototype,"downloadQualityPickerEntity",void 0);_.N([_.e(),_.P("design:type",Array)],aj.prototype,"qualityOptions",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],aj.prototype,"useUpsellDismissAlternate",void 0);_.N([_.e(),_.P("design:type",Object)],aj.prototype,"shouldShowAlternateUpsellDimiss",void 0);
_.N([_.e(),_.P("design:type",Object)],aj.prototype,"downloadButtonRenderer",void 0);_.N([_.e(),_.P("design:type",Object)],aj.prototype,"upsellButtonRenderer",void 0);_.N([_.e(),_.P("design:type",Object)],aj.prototype,"cancelButtonRenderer",void 0);_.N([_.e(),_.P("design:type",Object)],aj.prototype,"upsellCancelButtonRenderer",void 0);_.N([_.e(),_.P("design:type",Object)],aj.prototype,"rememberSettings",void 0);_.N([_.e(),_.P("design:type",Object)],aj.prototype,"rememberSettingsChecked",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],aj.prototype,"dataChanged",null);_.N([_.GI("downloadQualityPickerEntity"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],aj.prototype,"updateQualityOptions",null);_.N([_.Ul({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],aj);
_.G(aj,"ytd-download-quality-selector-renderer",function(){if(GD5!==void 0)return GD5;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return GD5=t},{mode:1});var n5J;var eG=function(){return _.z.apply(this,arguments)||this};
_.u(eG,_.z);eG.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
eG.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"}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],eG.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],eG.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],eG.prototype,"data",void 0);_.N([_.e({computed:"computeIcon_(data.infoIcon)"}),_.P("design:type",Object)],eG.prototype,"infoIcon",void 0);
_.N([_.e({computed:"computeIcon_(data.warningIcon)"}),_.P("design:type",Object)],eG.prototype,"warningIcon",void 0);_.N([_.Ul({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],eG);
_.G(eG,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(n5J!==void 0)return n5J;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return n5J=t},{mode:1});var NQd;var FK=function(){return _.z.apply(this,arguments)||this};
_.u(FK,_.z);FK.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
FK.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"}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],FK.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],FK.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],FK.prototype,"data",void 0);_.N([_.Ul({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],FK);
_.G(FK,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(NQd!==void 0)return NQd;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return NQd=t},{mode:1});var Dz9;var zf=function(){return _.z.apply(this,arguments)||this};
_.u(zf,_.z);zf.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
zf.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"}}}}};
zf.prototype.onServiceRequestSentOrCompleted=function(t,E){E&&E.actions&&E.actions.length>0&&_.du(this.hostElement,"yt-close-popup-action",[this.is])};
zf.prototype.onServiceRequestSentOrCompleted=zf.prototype.onServiceRequestSentOrCompleted;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],zf.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],zf.prototype,"data",void 0);
_.N([_.lc("yt-service-request-completed"),_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Rn]),_.P("design:returntype")],zf.prototype,"onServiceRequestSentOrCompleted",null);_.N([_.Ul({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],zf);
_.G(zf,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(Dz9!==void 0)return Dz9;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return Dz9=t},{mode:1});var sW5;var l4=function(){var t=_.z.apply(this,arguments)||this;t.submitButtonDisabled=!0;return t};
_.u(l4,_.z);_.Y=l4.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.Y.onDataChanged=function(){var t,E,p;if(((t=this.data)==null?void 0:(E=t.confirmButton)==null?void 0:(p=E.buttonRenderer)==null?void 0:p.isDisabled)!==void 0){var U,x,A;this.submitButtonDisabled=(U=this.data)==null?void 0:(x=U.confirmButton)==null?void 0:(A=x.buttonRenderer)==null?void 0:A.isDisabled}};
_.Y.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.Y.updateSubmitButtonDisabledFromBinding=function(t){this.submitButtonDisabled=t.detail.value};
_.Y.updateSubmitButtonDisabledFromConfirmCheckbox=function(t){this.submitButtonDisabled=!t.detail.value};
l4.prototype.onDataChanged=l4.prototype.onDataChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],l4.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],l4.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],l4.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],l4.prototype,"submitButtonDisabled",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l4.prototype,"onDataChanged",null);_.N([_.Ul({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],l4);
_.G(l4,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(sW5!==void 0)return sW5;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return sW5=t},{mode:1});var L4K;var Gf=function(){return _.z.apply(this,arguments)||this};
_.u(Gf,_.z);_.aE.Object.defineProperties(Gf.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var t,E,p;return((t=this.data)==null?void 0:t.title)+" "+((E=this.data)==null?void 0:E.metadataPrimary)+" "+((p=this.data)==null?void 0:p.metadataSecondary)}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Gf.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Gf.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Gf.prototype,"data",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Gf.prototype,"ariaLabel",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],Gf);
_.G(Gf,"ytd-compact-product-list-item-renderer",function(){if(L4K!==void 0)return L4K;var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return L4K=t},{mode:1});var P6o;var nh=function(){return _.z.apply(this,arguments)||this};
_.u(nh,_.z);nh.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]]"}}}}}};
_.aE.Object.defineProperties(nh.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],nh.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],nh.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],nh.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],nh.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],nh);
_.G(nh,"ytd-compact-product-list-renderer",function(){if(P6o!==void 0)return P6o;var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return P6o=t},{mode:1});var TQb;var NH=function(){return _.z.apply(this,arguments)||this};
_.u(NH,_.z);_.Y=NH.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.Y.getBackgroundUrl=function(){var t=this.get("data.headerImage.thumbnails");return t?"url("+_.d4(t,this.hostElement.clientWidth)+")":""};
_.Y.onDataChanged=function(){var t=this.getBackgroundUrl();t&&(this.header.style.backgroundImage=t);t=_.yL();var E=_.vV(),p=this.get("data.trackingParams");p&&E&&t&&_.Yh(t,E,_.$8(p));t=_.M(this.hostElement.querySelectorAll("yt-img-shadow"));for(E=t.next();!E.done;E=t.next())E.value.onShow()};
_.Y.onPopupClosed=function(t){_.Qx(t).localName==="ytd-membership-post-cancel-renderer"&&_.du(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
NH.prototype.onPopupClosed=NH.prototype.onPopupClosed;NH.prototype.onDataChanged=NH.prototype.onDataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],NH.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],NH.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],NH.prototype,"data",void 0);_.N([_.Nl("#header"),_.P("design:type",HTMLDivElement)],NH.prototype,"header",void 0);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],NH.prototype,"onDataChanged",null);_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],NH.prototype,"onPopupClosed",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],NH);
_.G(NH,"ytd-membership-post-cancel-renderer",function(){if(TQb!==void 0)return TQb;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return TQb=t},{mode:1});var o5C;var D6=function(){return _.z.apply(this,arguments)||this};
_.u(D6,_.z);D6.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
D6.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],D6.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],D6.prototype,"data",void 0);_.N([_.Nl("ytd-feedback-survey-renderer"),_.P("design:type",Object)],D6.prototype,"feedbackSurveyRenderer",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],D6);
_.G(D6,"ytd-sponsorship-confirm-cancel-content",function(){if(o5C!==void 0)return o5C;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return o5C=t},{mode:1});var W4g;var sb=function(){var t=_.z.apply(this,arguments)||this;t.maybeSubmitFeedback=function(){t.content&&t.content.maybeSubmitFeedback()};
return t};
_.u(sb,_.z);_.Y=sb.prototype;_.Y.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.Y.onYtPopupOpened=function(t,E){E===this&&this.data&&this.data.onOpenCommands&&_.IK(this.hostElement,this.data.onOpenCommands,this.hostElement);_.du(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.Y.onYtPopupClosed=function(t,E){(E&&E.canceled===!0||E&&E.canceled===!1&&E.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.IK(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.Y.onYtServiceRequestCompleted=function(){_.du(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.Y.onYtServiceRequestError=function(t){_.f$(this.hostElement,t.detail.error.message)};
_.Y.onDataChanged=function(){if(this.isAttached){var t=this.backgroundUrl;t&&(_.ZN(this.hostElement).querySelector("#header").style.backgroundImage=t)}};
_.aE.Object.defineProperties(sb.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var t=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return t?"url("+_.d4(t,this.hostElement.clientWidth)+")":""}}});
sb.prototype.onDataChanged=sb.prototype.onDataChanged;sb.prototype.onYtServiceRequestError=sb.prototype.onYtServiceRequestError;sb.prototype.onYtServiceRequestCompleted=sb.prototype.onYtServiceRequestCompleted;sb.prototype.onYtPopupClosed=sb.prototype.onYtPopupClosed;sb.prototype.onYtPopupOpened=sb.prototype.onYtPopupOpened;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],sb.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],sb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],sb.prototype,"data",void 0);_.N([_.e({value:function(){return _.zF("SBOX_INAPPROPRIATE_CANCEL")}}),
_.P("design:type",String)],sb.prototype,"closeButtonAriaLabel",void 0);_.N([_.Nl("#scrollable"),_.P("design:type",Object)],sb.prototype,"scrollable",void 0);_.N([_.Nl("ytd-sponsorship-confirm-cancel-content"),_.P("design:type",Object)],sb.prototype,"content",void 0);_.N([_.lc("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],sb.prototype,"onYtPopupOpened",null);
_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],sb.prototype,"onYtPopupClosed",null);_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],sb.prototype,"onYtServiceRequestCompleted",null);
_.N([_.lc("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],sb.prototype,"onYtServiceRequestError",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sb.prototype,"onDataChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],sb);
_.G(sb,"ytd-sponsorship-confirm-cancel-renderer",function(){if(W4g!==void 0)return W4g;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return W4g=t},{mode:_.hX("kevlar_poly_si_batch_j081")?1:2});var $ze;var Lh=function(){return _.z.apply(this,arguments)||this};
_.u(Lh,_.z);Lh.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Lh.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Lh.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],Lh);
_.G(Lh,"ytd-sponsorships-celebration-content",function(){if($ze!==void 0)return $ze;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return $ze=
t},{mode:1});var K4d;var v5L=_.CG(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),Pc=function(){var t=_.z.apply(this,arguments)||this;t.scriptsAppended=!1;t.useFullWidthPrimaryButton=!1;t.buttonOverrides={type:"tonal",style:"overlay-dark"};return t};
_.u(Pc,_.z);_.Y=Pc.prototype;_.Y.dataChanged=function(){var t;this.useFullWidthPrimaryButton=!((t=this.data)==null||!t.useFullWidthPrimaryButton)};
_.Y.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:_.r("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.onDataChanged=function(){var t;(t=this.header)==null||t.style.setProperty("background-color",this.backgroundColor);if(t=this.headerImageUrl){var E;(E=this.header)==null||E.style.setProperty("background-image",t)}E=_.yL(4);t=_.vV(4);var p=this.get("data.trackingParams");if(p&&t&&E){var U=_.$8(p);_.Yh(E,t,U);_.r("combine_ve_grafts")?_.Pu().graftServerVe(p,t,4):_.Yh(E,t,U)}E=_.M(this.hostElement.querySelectorAll("yt-img-shadow"));for(t=E.next();!t.done;t=E.next())t.value.onShow();if(E=this.get("data.gtmId"))_.x9(E,
_.qO("GL","")),this.setupConversionTracking()};
_.Y.setupConversionTracking=function(){if(!this.scriptsAppended){var t=document.createElement("script");_.BT(t,_.HT(v5L.join("")));document.head.appendChild(t);t=document.createElement("noscript");t.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(t);this.scriptsAppended=!0}};
_.Y.onPopupClosed=function(t){if(_.Qx(t).localName==="ytd-sponsorships-celebration-renderer"){_.du(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var E;this.data&&((E=this.data)==null?0:E.dismissCommand)&&_.Gh.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.aE.Object.defineProperties(Pc.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var t=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.cL(t)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var t=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return t?"url("+_.d4(t,this.hostElement.getBoundingClientRect().width)+")":""}}});
Pc.prototype.onPopupClosed=Pc.prototype.onPopupClosed;Pc.prototype.onDataChanged=Pc.prototype.onDataChanged;Pc.prototype.dataChanged=Pc.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Pc.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Pc.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Pc.prototype,"data",void 0);
_.N([_.Nl("#header"),_.P("design:type",HTMLElement)],Pc.prototype,"header",void 0);_.N([_.e(),_.P("design:type",Object)],Pc.prototype,"scriptsAppended",void 0);_.N([_.e({type:Boolean,reflectToAttribute:!0}),_.P("design:type",Object)],Pc.prototype,"useFullWidthPrimaryButton",void 0);_.N([_.e(),_.P("design:type",Object)],Pc.prototype,"buttonOverrides",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Pc.prototype,"dataChanged",null);
_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Pc.prototype,"onDataChanged",null);_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Pc.prototype,"onPopupClosed",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],Pc);
_.G(Pc,"ytd-sponsorships-celebration-renderer",function(){if(K4d!==void 0)return K4d;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return K4d=t},{mode:1});var ynt;var Tf=function(){return _.z.apply(this,arguments)||this};
_.u(Tf,_.z);_.Y=Tf.prototype;_.Y.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"}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.detached=function(){this.playerElement.stop()};
_.Y.onYtServiceRequestCompleted=function(){_.du(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.Y.onYtServiceRequestError=function(t){_.f$(this.hostElement,t.detail.error.message)};
_.Y.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.Y.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.Y.getTier=function(t,E){return!t||!t.tiers||E<0?null:_.k(t.tiers[E],vNl)};
_.Y.moreThanOne=function(t){return!!(t&&t.length>1)};
_.Y.tierOverviewTap=function(t){var E=this;this.selectedTier=t.model.index;_.XE(this,function(){_.kT(E.hostElement,"yt-refit")})};
_.Y.computeSelectedClass=function(t,E){return this.isSelected(t,E)?"selected":""};
_.Y.computeButtonAriaPressed=function(t,E){return this.isSelected(t,E)?"true":"false"};
_.Y.isSelected=function(t,E){return t===E};
_.Y.onDataChanged=function(){_.ZN(this.hostElement).querySelector("#header-overlay").style.visibility="";_.ZN(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 t=_.M(this.hostElement.querySelectorAll("yt-img-shadow")),
E=t.next();!E.done;E=t.next())E.value.onShow();var p;this.set("selectedTier",(p=this.get("data.targetTierIndex"))!=null?p:0);var U;(t=(U=this.data)==null?void 0:U.onVisible)&&this.ytComponentBehavior.resolveCommand(t)};
_.Y.initializeVe=function(t){var E=_.yL(),p=_.vV(),U=this.get("data.trackingParams");p&&E&&(this.screenLayer=4,E=_.BC(_.bi$)(void 0,69877,{clientScreenNonce:E,visualElement:p},void 0,void 0,void 0),_.cV(E,69877,4),p=_.vV(4),U&&p&&(U=_.$8(U),_.Yh(E,p,U),t&&(this.offerVideoVe=_.h8(74659),_.Yh(E,U,this.offerVideoVe))))};
_.Y.setHeaderBackground=function(){var t=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.ZN(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.cL(t);if(t=this.getHeaderImage())t=_.d4(t,screen.width),_.ZN(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+t+")"};
_.Y.getHeaderImage=function(){var t=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&t?t:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.Y.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Y.setupVideoPlayer=function(t){var E=this,p,U,x,A;return _.q(function(m){if(m.nextAddress==1)return p=E.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),U=E.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.r("kevlar_player_update_killswitch")?E.playerElement.update({args:{autoplay:p,video_id:t,player_params:U}}):E.playerElement.loadVideoWithPlayerVars({autoplay:p,video_id:t,player_params:U}),
m.yield(E.playerElement.getPlayerPromise(),2);x=m.yieldResult;x.addEventListener("onStateChange",function(b){E.onPlayerStateChange(b)});
x.setScreenLayer(E.screenLayer);(A=_.yL(4))&&E.offerVideoVe&&_.mu(A,E.offerVideoVe);p&&(E.pauseOtherPlayers(),E.playerElement.focusOnPlayer(),E.playerElement.getPlayer().hideControls(),_.E_(_.ir,function(){E.fadeOutHeaderOverlay()},4E3));
_.Do(m)})};
_.Y.onPlayerStateChange=function(t){t===1?this.backgroundPlayerElement&&(t=this.backgroundPlayerElement.player_.getPlayerState(),t!==1&&t!==3||this.backgroundPlayerElement.pause()):t===0&&(_.ZN(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.ZN(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.Y.fadeOutHeaderOverlay=function(){_.ZN(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.Y.onHeaderTap=function(){if(this.offerVideo){_.ZN(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var t;((t=this.playerElement.player_)==null?void 0:t.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(t=_.yL(4))&&this.offerVideoVe&&_.qc(t,this.offerVideoVe)}};
_.Y.getBackgroundImageLayerClass=function(t){return t?"background-image-layer-with-video":""};
_.Y.getHeaderClass=function(t){return t?"header-with-video":""};
_.Y.getHeaderOverlayClass=function(t){return t?"header-overlay-with-video":""};
_.Y.getTitleContainerClass=function(t,E){return t?"title-container-with-video":E?"title-container-without-video-flexible":"title-container-without-video"};
_.Y.tierTitleDisplayStatus=function(t){return this.moreThanOne(t)?"hide":"show"};
_.Y.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.X3().resolve(_.bf).getPlayerElement():this.backgroundPlayerElement=_.k1();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var t=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=t===1||t===3;this.backgroundPlayerElement.pause()}};
_.Y.isMiniplayerActive=function(){return _.X3().resolve(_.bf).isMiniplayerActive()};
_.Y.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IU("selected-tier-changed",this.selectedTier))};
Tf.prototype.selectedTierChangedForBinding=Tf.prototype.selectedTierChangedForBinding;Tf.prototype.onDataChanged=Tf.prototype.onDataChanged;Tf.prototype.onYtPopupClosed=Tf.prototype.onYtPopupClosed;Tf.prototype.onYtPopupOpened=Tf.prototype.onYtPopupOpened;Tf.prototype.onYtServiceRequestError=Tf.prototype.onYtServiceRequestError;Tf.prototype.onYtServiceRequestCompleted=Tf.prototype.onYtServiceRequestCompleted;
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Tf.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Tf.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Tf.prototype,"data",void 0);_.N([_.e({value:0}),_.P("design:type",Number)],Tf.prototype,"selectedTier",void 0);
_.N([_.e({value:""}),_.P("design:type",String)],Tf.prototype,"offerVideo",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],Tf.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.N([_.e({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.W8(this)}}),
_.P("design:type",String)],Tf.prototype,"playerId",void 0);_.N([_.Nl("tp-yt-paper-dialog-scrollable"),_.P("design:type",Object)],Tf.prototype,"scrollable",void 0);_.N([_.Nl("ytd-sponsorships-tier-renderer"),_.P("design:type",Object)],Tf.prototype,"tierRenderer",void 0);_.N([_.Nl("#player"),_.P("design:type",Object)],Tf.prototype,"playerElement",void 0);
_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Tf.prototype,"onYtServiceRequestCompleted",null);_.N([_.lc("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Tf.prototype,"onYtServiceRequestError",null);
_.N([_.lc("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Tf.prototype,"onYtPopupOpened",null);_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Tf.prototype,"onYtPopupClosed",null);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Tf.prototype,"onDataChanged",null);
_.N([_.GI("selectedTier"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Tf.prototype,"selectedTierChangedForBinding",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],Tf);
_.G(Tf,"ytd-sponsorships-offer-renderer",function(){if(ynt!==void 0)return ynt;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return ynt=t},{mode:_.hX("kevlar_poly_si_batch_j077")?1:2});var SIK;var oj=function(){var t=_.z.apply(this,arguments)||this;t.buttonOverrides={type:"filled",style:"mono"};return t};
_.u(oj,_.z);oj.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}}}}}};
oj.prototype.backgroundColorChanged=function(){var t,E,p,U=(E=_.k((t=this.data)==null?void 0:t.content,yx7))==null?void 0:(p=E.backgroundColor)==null?void 0:p.backgroundColor;U&&(t=_.SL(U),_.ZN(this.hostElement).querySelector("#banner").style.backgroundColor=t,_.ZN(this.hostElement).querySelector("#abstract-art").style.backgroundColor=t)};
oj.prototype.attached=function(){this.JSC$22713_scroller&&(this.JSC$22713_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22713_scroller.attached&&typeof this.JSC$22713_scroller.attached==="function"&&this.JSC$22713_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
oj.prototype.backgroundColorChanged=oj.prototype.backgroundColorChanged;_.N([_.e(),_.P("design:type",Object)],oj.prototype,"data",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],oj.prototype,"ytRendererstamperBehavior",void 0);_.N([_.Nl("#scroller"),_.P("design:type",Object)],oj.prototype,"JSC$22713_scroller",void 0);_.N([_.e(),_.P("design:type",Object)],oj.prototype,"buttonOverrides",void 0);
_.N([_.GI("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oj.prototype,"backgroundColorChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],oj);
_.G(oj,"ytd-sponsorships-promotion-celebration-renderer",function(){if(SIK!==void 0)return SIK;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return SIK=t},{mode:_.hX("kevlar_poly_si_batch_j077")?1:2});var cne;var t$C;var Wc=function(){return _.z.apply(this,arguments)||this};
_.u(Wc,_.z);Wc.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
Wc.prototype.computeIsInitiallyChecked=function(t){return t===1};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Wc.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Wc.prototype,"data",void 0);_.N([_.Nl("#checkbox"),_.P("design:type",Object)],Wc.prototype,"checkbox",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],Wc);
_.G(Wc,"ytd-subscription-toggle-option-renderer",function(){if(t$C!==void 0)return t$C;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return t$C=t},{mode:1});var $$=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return t};
_.u($$,_.z);$$.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"}}}};
$$.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
$$.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var t=_.ZN(this.hostElement).querySelector("#options").selected;t=this.data.options[t].subscriptionRadioOptionRenderer.serviceEndpoint;var E=_.ZN(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");E&&t&&t.modifyChannelNotificationPreferenceEndpoint&&(E=E.getValue())&&(t.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[E]);_.X3().resolve(_.ei).resolveCommand(t,{form:{element:this.hostElement}});
_.du(this.hostElement,"yt-close-popup-action")};
_.aE.Object.defineProperties($$.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var t=this.data.options,E=0;E<t.length;E++){var p=t[E].subscriptionRadioOptionRenderer;if(p&&p.selected)return E}return null}}});
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],$$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],$$.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],$$.prototype,"eventForwardingBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],$$.prototype,"ytRendererBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],$$.prototype,"data",void 0);_.N([_.Z("data.options"),_.P("design:type",Object),_.P("design:paramtypes",[])],$$.prototype,"initialIndex",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],$$);
_.G($$,"ytd-subscription-notification-options-renderer",function(){if(cne!==void 0)return cne;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return cne=t},{mode:1});var ELU;var p8S=function(){return _.z.apply(this,arguments)||this};
_.u(p8S,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],p8S.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],p8S.prototype,"data",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],p8S);
_.G(p8S,"ytd-tvfilm-offer-groups-renderer",function(){if(ELU!==void 0)return ELU;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return ELU=t},{mode:1});var UKF;var Kh=function(){return _.z.apply(this,arguments)||this};
_.u(Kh,_.z);_.Y=Kh.prototype;_.Y.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"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.Y.computeThumbnailClass=function(t){return t.thumbnailOverlays?t.isShow?"thumbnail-show":"thumbnail-movie":t.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.Y.computeCommerceSectionClass=function(t){return t.offers&&t.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.Y.computeTitleClass=function(t){return t.offers&&t.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.Y.onDataChanged=function(){[].concat(_.KB(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(t){t.onShow()})};
Kh.prototype.onDataChanged=Kh.prototype.onDataChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Kh.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Kh.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Kh.prototype,"data",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Kh.prototype,"onDataChanged",null);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],Kh);
_.G(Kh,"ytd-ypc-offers-overlay-renderer",function(){if(UKF!==void 0)return UKF;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return UKF=t},{mode:_.hX("kevlar_poly_si_batch_j028")?1:2});var xKk;var AD$=function(){this.usedMethods=new Set};
AD$.prototype.add=function(t){this.usedMethods.add(t)};
AD$.prototype.reset=function(){this.usedMethods.clear()};var Yi$,M$w;
_.mKc=function(t,E){this.query=t;this.previousSearchQuery=E;this.id=Yi$++;if(!M$w){E=_.qO("SBOX_SETTINGS");t="https://"+((E==null?void 0:E.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var p=E==null?void 0:E.REQUEST_LANGUAGE;p&&(t+="&hl="+p);(p=E==null?void 0:E.REQUEST_DOMAIN)&&(t+="&gl="+p);t+="&client=youtube&gs_ri=youtube";(p=E==null?void 0:E.SUGG_EXP_ID)&&(t+="&sugexp="+encodeURIComponent(p));(p=E==null?void 0:E.PSUGGEST_TOKEN)&&(t+="&tok="+p);(E=E==
null?void 0:E.SESSION_INDEX)&&(t+="&authuser="+E);_.r("desktop_enable_visual_suggest")&&(t+="&h=180&w=320&ytvs=1");M$w=t}};
_.bO$=function(t){var E="q="+encodeURIComponent(t.query);t.previousSearchQuery&&(E+="&pq="+encodeURIComponent(t.previousSearchQuery));return E};
_.iOk=function(){var t=_.qO("SBOX_SETTINGS"),E={};if(t==null?0:t.SEND_VISITOR_DATA)E["X-Goog-Visitor-Id"]=t==null?void 0:t.VISITOR_DATA;return E};
_.qiF=function(t){var E=M$w;E+="&gs_id="+t.id.toString(36);E+="&q="+encodeURIComponent(t.query);E+="&cp="+t.query.length;t.previousSearchQuery&&(E+="&pq="+encodeURIComponent(t.previousSearchQuery));(t=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(E+="&video_id="+t);return E};
Yi$=0;M$w="";var HO6=Du.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,fl$=Du.SEARCH_ENTITY_SUGGESTION_MOVIE,BEC=Du.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,w8$=Du.SEARCH_ENTITY_SUGGESTION_TV_SHOW,Rj8=function(t,E){this.text=t;this.bold=E},V$$=function(t,E,p){this.input=E;
this.index=p;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=t[0];this.type=t[1];this.subtypes=t[2];var U;this.displayText=BWJ((U=t[3])==null?void 0:U.b);var x;this.ignoredPrefix=BWJ((x=t[3])==null?void 0:x.a);var A,m;this.hasNewVideo=((A=t[3])==null?void 0:(m=A.zam)==null?void 0:m.toString())==="true"?!0:!1;var b;this.visualSuggestUrl=(b=t[3])==null?void 0:b.zai;var f;this.entityType=BWJ((f=t[3])==null?void 0:f.zap);var B;this.entityName=BWJ((B=t[3])==null?void 0:B.zao);var R;E=
BWJ((R=t[3])==null?void 0:R.zaf);var V;this.entityMid=(V=t[3])==null?void 0:V.zae;R=wne(this.subtypes,this.entityMid);if(E&&R){if(E){V="";switch(R){case "YOUTUBE_ENTITY_TYPE_SONG":V=BEC;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":V=HO6;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":V=w8$;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":V=fl$}R=R==="YOUTUBE_ENTITY_TYPE_SONG"||R==="YOUTUBE_ENTITY_TYPE_ALBUM"?V+" \u2022  \u2022 "+E:E}else R="";this.entitySubtitle=R}var Q;this.externalChannelId=(Q=t[3])==null?void 0:Q.zav;
var C;this.entityThumbnailAttributionUrl=(C=t[3])==null?void 0:C.zaq},CYG=function(t,E){var p=[],U,x=(U=t.displayText)!=null?U:t.text;
(E==null?0:E.useEntityName)&&Q06(t)&&t.entityName&&(x=t.entityName);if(t.type===33)return p.push(new Rj8(x,!1)),p;if(x.length>=t.input.length&&x.substring(0,t.input.length)===t.input)p.push(new Rj8(t.input,!1)),p.push(new Rj8(x.substring(t.input.length),!0));else{var A=new Set(t.input.split(/\s/)),m=x.split(/\s/);p=m.map(function(b,f){return new Rj8(b.trim()+(f===m.length-1?"":" "),!A.has(b))})}return p},Q06=function(t){var E=!!wne(t.subtypes);
t=!!t.entityMid;return E||t};_.j0F=function(t){this.rawResponse=["",[],{}];this.suggestions=[];try{var E=JSON.parse(R5J(t));if(typeof E==="object"&&E!==null)this.rawResponse=E;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(U){console.log("Suggest: Failed to parse SuggestResponse!");return}var p=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(U,x){return new V$$(U,p,x)})};var rDw=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new AD$;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$22750_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},kt8,dKC=function(){kt8||(kt8=new rDw);
return kt8};
rDw.prototype.updateSuggestions=function(t){var E=this;this.availableSuggestions.forEach(function(p){E.previousSuggestions[p]=!0});
this.availableSuggestions=t.map(function(p){var U=p.type.toString();p.subtypes.length>0&&(U+="i"+p.subtypes.join("i"),U+="k"+p.suggestionSources.COMPLETE_SERVER.toString());return U})};
var uOI=function(t,E){var p=Date.now();t.firstEditTime<0&&(t.firstEditTime=p);E&&(t.lastQueryBuildTime=p);t.lastEditTime=p};
rDw.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$22750_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var JD8=function(t){var E="";t.availableSuggestions.forEach(function(x){delete t.previousSuggestions[x]});
for(var p=_.M(Object.keys(t.previousSuggestions)),U=p.next();!U.done;U=p.next())U=U.value,t.previousSuggestions[U]&&(E+=(E?"j":"")+U);return E},Il$=function(t,E){var p=[];
E&&(p[1]=E.toString());p[0]="youtube";p[7]=Date.now()-t.startTime;p[6]=t.sessionNumber;t.zeroPrefixSuggestionCount>=0&&(p[33]=t.zeroPrefixSuggestionCount);p[13]=t.outOfSyncResponseCount;if(t.availableSuggestions.length>0){for(var U=E="",x=0,A=_.M(t.availableSuggestions),m=A.next();!m.done;m=A.next())m=m.value,m!==U&&(x>1&&(E+="l"+x),E+=(U?"j":"")+m,x=0,U=m),x+=1;x>1&&(E+="l"+x);p[3]=E}p[35]=JD8(t);t.selectedSuggestionIndex>=0&&(p[2]=t.selectedSuggestionIndex);var b;if(E=(b=_.qO("SBOX_SETTINGS"))==
null?void 0:b.SUGG_EXP_ID)p[19]=t.normalize(E),b=0,t.experimentTriggeredBeforeFinal&&(b|=1),t.experimentTriggeredFinal&&(b|=2),p[20]=b;p[26]=Array.from(t.inputMethodsTracker.usedMethods).join("j");if(t.JSC$22750_totalRoundTripTime>0){p[15]=t.JSC$22750_totalRoundTripTime;p[14]=t.maxRoundTripTime;b=[];for(x=E=0;x<10;x++)U=t.roundTripTimeHistogram[x],U===0?E++:(E>1?b.push(x+"-"+U):E===1?b.push("0j"+U):b.push(U.toString()),E=0);b=b.join("j");p[16]=b}t.zeroPrefixRoundTripTime>0&&(p[36]=t.zeroPrefixRoundTripTime);
t.lastQueryBuildTime>0&&(p[18]=t.lastQueryBuildTime-t.startTime);t.firstEditTime>0&&(p[4]=t.firstEditTime-t.startTime);t.lastEditTime>0&&(p[5]=t.lastEditTime-t.startTime);return p.join(".")};
rDw.prototype.normalize=function(t){return t.replaceAll(".","-")};
var gLw=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var vc=function(){var t=_.z.apply(this,arguments)||this;t.microphoneSpinnerActive=!1;t.noAnimations=!1;t.boundExitClick=function(){t.onExitButtonClick()};
t.speechOverlayClassName="";t.isLevelAnimating=!1;t.playCloseDialogAudioFeedback=!0;t.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return t};
_.u(vc,_.z);_.Y=vc.prototype;_.Y.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.Y.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=udK()};
_.Y.dataChanged=function(){this.logDialog()};
_.Y.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var t;(t=this.manager.audioPlayer)!=null&&(t.JSC$21606_audioEnabled=!1)}this.manager.stop();(t=this.manager.audioPlayer)!=null&&(t.JSC$21606_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.Y.handleSpeechQueryCompleteAction=function(t){var E=t.navigationAction;E&&(t.trackingParams&&_.Pu().graftServerVe(t.trackingParams,this.dialogVe,5),_.kT(this.hostElement,"yt-navigate",{endpoint:E,tempData:this.getNavigationParams(E),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.Y.onExitButtonClick=function(){this.closeDialog()};
_.Y.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var t;if((t=this.manager)!=null){var E;(E=t.audioPlayer)==null||ms(E,"failure");t.setState("microphone-off");t.stop()}}else(t=this.manager)==null||t.start()};
_.Y.transcriptionChanged=function(){var t,E;(((t=this.transcription)==null?0:t.low)||((E=this.transcription)==null?0:E.high))&&this.setState("transcribing",this.transcription)};
_.Y.stateChanged=function(){this.setState(this.state,this.transcription)};
_.Y.logDialog=function(){var t;(t=this.data)!=null&&t.trackingParams&&(t=_.Pu(),_.PH(t,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=t.graftServerVe(this.data.trackingParams,void 0,5))};
_.Y.getNavigationParams=function(t){var E={};if(_.r("web_yt_searchbox")){var p=dKC();p.inputMethodsTracker.add(6);p=Il$(p,15);E.gs_l=p;var U;E.oq=((U=_.k(t,_.G2))==null?void 0:U.query)||""}else if(t=window.ytvoicesearchloggingparams){if(t=t())E.oq=t.oq,E.gs_l=t.gs_l}else _.Ra(Error("em"));return E};
_.Y.closeDialog=function(){_.du(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.Y.setState=function(t,E){if(this.data){var p=this.data,U={};switch(t){case "listening":U={headerText:p.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:p.microphoneButtonAriaLabel};break;case "timeout":U={headerText:p.promptHeader,microphoneState:"try-again",microphoneLabel:p.promptMicrophoneLabel,microphoneAriaLabel:p.promptMicrophoneLabel};break;case "microphone-off":U={headerText:p.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:p.promptMicrophoneLabel,
microphoneAriaLabel:p.promptMicrophoneLabel};break;case "transcribing":(E==null?0:E.low)||(E==null?0:E.high)?U={transcriptionLow:E==null?void 0:E.low,transcriptionHigh:E==null?void 0:E.high,microphoneState:"speaking",microphoneAriaLabel:p.microphoneButtonAriaLabel}:U={headerText:p.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:p.microphoneButtonAriaLabel};break;case "processing":U={headerText:p.loadingHeader,microphoneState:"processing",microphoneAriaLabel:p.microphoneButtonAriaLabel};
break;case "offline":U={headerText:p.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:p.connectionErrorMicrophoneLabel,microphoneAriaLabel:p.connectionErrorMicrophoneLabel};break;case "permission":U={headerText:p.permissionsHeader,bodyLine1:p.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:p.permissionsSubtext};break;case "permission-denied":U={headerText:p.disabledHeader,bodyLine1:p.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:p.disabledSubtext}}U.className=
t;this.speechOverlayState=U;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.Y.setMicrophoneState=function(t){var E=this.isLevelAnimating;this.isLevelAnimating=t==="speaking";!E&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=t==="processing"&&!this.noAnimations};
_.Y.setClass=function(t){this.speechOverlayClassName&&_.XM(this.hostElement,this.speechOverlayClassName,!1);t&&(this.speechOverlayClassName=t,_.XM(this.hostElement,t,!0))};
_.Y.runLevelAnimation=function(){var t=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var E=1+Math.random()*.75,p=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+p/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+E+")");_.ir.addJob(function(){t.runLevelAnimation()},3,p)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
vc.prototype.stateChanged=vc.prototype.stateChanged;vc.prototype.transcriptionChanged=vc.prototype.transcriptionChanged;vc.prototype.onPopupClosed=vc.prototype.onPopupClosed;vc.prototype.dataChanged=vc.prototype.dataChanged;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],vc.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],vc.prototype,"rendererStamperBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],vc.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],vc.prototype,"eventForwardingBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],vc.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],vc.prototype,"speechOverlayState",void 0);
_.N([_.e(),_.P("design:type",Object)],vc.prototype,"microphoneSpinnerActive",void 0);_.N([_.e({type:_.r("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.P("design:type",Object)],vc.prototype,"noAnimations",void 0);_.N([_.e({selector:function(t){var E;return(E=t.voiceSearch)==null?void 0:E.transcription}}),
_.P("design:type",Object)],vc.prototype,"transcription",void 0);_.N([_.e({selector:function(t){var E;return(E=t.voiceSearch)==null?void 0:E.overlay}}),
_.P("design:type",String)],vc.prototype,"state",void 0);_.N([_.e(),_.P("design:type",Object)],vc.prototype,"boundExitClick",void 0);_.N([_.Nl("#microphone-levels"),_.P("design:type",HTMLElement)],vc.prototype,"level",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vc.prototype,"dataChanged",null);_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vc.prototype,"onPopupClosed",null);
_.N([_.P3("transcription"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vc.prototype,"transcriptionChanged",null);_.N([_.P3("state"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vc.prototype,"stateChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],vc);
_.G(vc,"ytd-voice-search-dialog-renderer",function(){if(xKk!==void 0)return xKk;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return xKk=t},{mode:1});var ZOk;var yI=function(){var t=_.z.apply(this,arguments)||this;t.isOverlay=!1;t.hidden=!1;return t};
_.u(yI,_.z);_.Y=yI.prototype;_.Y.onPopupClosed=function(){this.toggleIconState(!1)};
_.Y.computeIcon=function(){var t,E,p;return(E=_.k((t=this.data)==null?void 0:t.icon,dVo))==null?void 0:(p=E.icon)==null?void 0:p.iconType};
_.Y.computeIconBadgeShape=function(){var t;return{iconBadgeType:"cart",iconBadgeText:(t=this.iconBadgeEntity)==null?void 0:t.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.Y.onClick=function(){var t;(t=this.data)!=null&&t.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.Y.computeHidden=function(t){return!t};
_.Y.toggleIconState=function(t){this.iconButton&&(this.iconButton.pressed=t)};
yI.prototype.onPopupClosed=yI.prototype.onPopupClosed;_.N([_.g(_.Be),_.P("design:type",Object)],yI.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],yI.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],yI.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],yI.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],yI.prototype,"isOverlay",void 0);
_.N([_.e({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.P("design:type",Object)],yI.prototype,"hidden",void 0);_.N([_.e({selectorArgs:["data.iconBadgeEntityKey"],selector:function(t,E){return _.hj(t.entities,"iconBadgeEntity",E)}}),
_.P("design:type",Object)],yI.prototype,"iconBadgeEntity",void 0);_.N([_.Nl("yt-icon-button"),_.P("design:type",HTMLButtonElement)],yI.prototype,"iconButton",void 0);_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yI.prototype,"onPopupClosed",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],yI);
_.G(yI,"ytd-icon-badge-topbar-button-renderer",function(){if(ZOk!==void 0)return ZOk;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return ZOk=t},{mode:1});var OOt;var SG=function(){var t=_.z.apply(this,arguments)||this;t.premiumOptions=[];return t};
_.u(SG,_.z);SG.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.aE.Object.defineProperties(SG.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],SG.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],SG.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Array)],SG.prototype,"premiumOptions",void 0);_.N([_.Z("premiumOptions"),_.P("design:type",Object),_.P("design:paramtypes",[])],SG.prototype,"hasPremiumOptions",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],SG);
_.G(SG,"ytd-offline-promo-content",function(){if(OOt!==void 0)return OOt;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return OOt=t},{mode:1});var X8I;var cc=function(){var t=_.z.apply(this,arguments)||this;t.premiumOptions=[];return t};
_.u(cc,_.z);cc.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var t;this.premiumOptions=f1o((t=this.data)==null?void 0:t.formats)};
cc.prototype.onClickSubmit=function(){_.du(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var t;(t=_.k1())==null||t.pause()};
cc.prototype.attached=function(){this.JSC$22770_scroller&&(this.JSC$22770_scroller.dialogElement=this.hostElement.parentNode)};
_.aE.Object.defineProperties(cc.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
cc.prototype.dataChanged=cc.prototype.dataChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],cc.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],cc.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],cc.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],cc.prototype,"data",void 0);
_.N([_.e({computed:"computeIcon_(data.headersIcon)",value:""}),_.P("design:type",String)],cc.prototype,"headersIcon",void 0);_.N([_.e(),_.P("design:type",Array)],cc.prototype,"premiumOptions",void 0);_.N([_.Nl("#scroller"),_.P("design:type",Object)],cc.prototype,"JSC$22770_scroller",void 0);_.N([_.Z("headersIcon"),_.P("design:type",Object),_.P("design:paramtypes",[])],cc.prototype,"showIcon",null);
_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cc.prototype,"dataChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],cc);
_.G(cc,"ytd-offline-promo-renderer",function(){if(X8I!==void 0)return X8I;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return X8I=t},{mode:1});var hjt;var tK=function(){var t=_.z.apply(this,arguments)||this;t.playbackPauseInterval=NaN;t.isLoading=!1;t.hasError=!1;t.dialogClass="";t.youtubeLabel=_.zF("LOGO_ALT_LABEL",{},"YouTube Home");t.logoName="yt-logos-ext:yt-logo-updated";t.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return t};
_.u(tK,_.z);_.Y=tK.prototype;_.Y.onDataChange=function(){var t;if(this.showEOMV1Text=!((t=this.data)==null||!t.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.Y.attached=function(){this.pausePlayer()};
_.Y.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.Y.handleLangSelect=function(t){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[t.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.Y.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.Y.handleSaveConsent=function(t){var E=this;this.showLoadingSpinner();this.showLoadingSpinner();JAC(_.k(t,Y$t)).catch(function(p){_.qW(new _.cC("Something went wrong when save consent "+(p.message?p.message:p)+"."));E.hideLoadingSpinner();E.showErrorMessage()})};
_.Y.handleDisablePersonalization=function(t){var E=this;this.showLoadingSpinner();IMe(_.k(t,Asg)).then(function(){E.dialog.close();E.resumePlayer()}).catch(function(p){_.qW(new _.cC("Something went wrong when disable personalization "+(p.message?p.message:p)+"."));
E.hideLoadingSpinner();E.showErrorMessage()})};
_.Y.showLoadingSpinner=function(){var t=this;this.showSpinnerJobId=_.ir.addLowPriorityJob(function(){t.isLoading=!0},500)};
_.Y.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.ir.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.Y.showErrorMessage=function(){var t=this;this.hasError=!0;_.ir.addLowPriorityJob(function(){t.hasError=!1},2E3)};
_.Y.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.D3(function(){try{var t=_.k1();t&&t.pause()}catch(E){}},100))};
_.Y.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var t=_.k1();t&&t.play()}catch(E){}};
_.aE.Object.defineProperties(tK.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null||!t.eomV1Text)return[];t=[];for(var E=["SHIELD","WARNING","BAR_CHART"],p=this.data.eomV1Text.essentialCookieMsg.items,U=0;U<E.length&&U<p.length;U++)t.push({icon:E[U],text:p[U]});return t}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var t;if((t=this.data)==null||!t.eomV1Text)return[];t=[];for(var E=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],p=this.data.eomV1Text.nonEssentialCookieMsg.items,U=0;U<E.length&&U<p.length;U++)t.push({icon:E[U],text:p[U]});return t}}});
tK.prototype.onDataChange=tK.prototype.onDataChange;_.N([_.e(),_.P("design:type",Object)],tK.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Boolean)],tK.prototype,"showEOMV1Text",void 0);_.N([_.e(),_.P("design:type",Object)],tK.prototype,"isLoading",void 0);_.N([_.e(),_.P("design:type",Object)],tK.prototype,"hasError",void 0);_.N([_.e(),_.P("design:type",Number)],tK.prototype,"showSpinnerJobId",void 0);_.N([_.e(),_.P("design:type",Object)],tK.prototype,"dialogClass",void 0);
_.N([_.Nl("#dialog"),_.P("design:type",Object)],tK.prototype,"dialog",void 0);_.N([_.Nl("#cb-header"),_.P("design:type",HTMLElement)],tK.prototype,"header",void 0);_.N([_.Nl("#lang-select"),_.P("design:type",HTMLElement)],tK.prototype,"langSelect",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],tK.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],tK.prototype,"ytComponentBehavior",void 0);
_.N([_.e(),_.P("design:type",String)],tK.prototype,"youtubeLabel",void 0);_.N([_.e(),_.P("design:type",Object)],tK.prototype,"logoName",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tK.prototype,"onDataChange",null);_.N([_.Z("data"),_.P("design:type",Array),_.P("design:paramtypes",[])],tK.prototype,"eomEssentialCookieMsgItems",null);
_.N([_.Z("data"),_.P("design:type",Array),_.P("design:paramtypes",[])],tK.prototype,"eomNonEssentialCookieMsgItems",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],tK);
_.G(tK,"ytd-consent-bump-v2-lightbox",function(){if(hjt!==void 0)return hjt;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return hjt=t},{mode:1});var alF;var Ez=function(){return _.z.apply(this,arguments)||this};
_.u(Ez,_.z);Ez.prototype.ready=function(){if(!_.vC()||KC9)var t=!0;else KC9=!0,t=!1;t||(t=document.querySelector("ytd-app"),t||(t=document.body),this.internalLightBox=_.ZN(t).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.N([_.e(),_.P("design:type",Object)],Ez.prototype,"data",void 0);_.N([_.Nl("#lightbox"),_.P("design:type",Object)],Ez.prototype,"lightBox",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],Ez);
_.G(Ez,"ytd-consent-bump-v2-renderer",function(){if(alF!==void 0)return alF;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return alF=t},{mode:1});var ejS;var FJS;var zjk;var pe=function(){return _.z.apply(this,arguments)||this};
_.u(pe,_.z);_.Y=pe.prototype;_.Y.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&trt(this.toastManager,this.toastType)};
_.Y.open=function(t){this.toast&&(this.ephemeralAction&&_.X3().resolve(_.Xg).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=t!=null?t:0,this.toastManager.enqueue(this.toast,t)):this.toast.open())};
_.Y.close=function(t){var E;(E=this.toast)==null||E.close();this.toastManager&&t===1&&trt(this.toastManager,t)};
_.Y.refit=function(){var t;(t=this.toast)==null||t.refit()};
_.Y.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var t;(t=this.toast)==null||t.close()}};
_.Y.setVerticalOffset=function(t){this.toast&&(this.toast.verticalOffset=t,this.toast.fit())};
_.Y.computeButtonClass_=function(t){return t?"toast-button":""};
_.Y.computeText_=function(t){return _.R4(t)};
_.Y.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IU("toast-opened-changed",this.toastOpened))};
_.Y.updateToastOpenedFromBinding=function(t){this.toastOpened=t.detail.value};
_.aE.Object.defineProperties(pe.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var t,E,p=(t=this.data)==null?void 0:(E=t.actionButton)==null?void 0:E.buttonRenderer;return(p==null?void 0:p.command)||(p==null?void 0:p.serviceEndpoint)||(p==null?void 0:p.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 t=[],E;((E=this.data)==null?0:E.responseText)&&t.push(_.R4(this.data.responseText));var p;((p=this.data)==null?0:p.subText)&&t.push(_.R4(this.data.subText));var U,x;if((U=this.data)==null?0:(x=U.actionButton)==null?0:x.buttonRenderer){var A,m;t.push(((A=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(m=A.accessibilityData)==null?void 0:m.label)||_.R4(this.data.actionButton.buttonRenderer.text))}return t.filter(function(b){return b}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var t,E;return(E=(t=this.toast)==null?void 0:t.opened)!=null?E:!1}}});
pe.prototype.toastOpenedChangedForBinding=pe.prototype.toastOpenedChangedForBinding;pe.prototype.toastOpenedChanged=pe.prototype.toastOpenedChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],pe.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],pe.prototype,"ytEventForwardingBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],pe.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],pe.prototype,"duration",void 0);
_.N([_.e(),_.P("design:type",Number)],pe.prototype,"toastType",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],pe.prototype,"useCloseButton",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],pe.prototype,"closeToastOnActionButtonClick",void 0);_.N([_.e({value:function(){return _.zF("SBOX_INAPPROPRIATE_CANCEL")}}),
_.P("design:type",String)],pe.prototype,"closeButtonAriaLabel",void 0);_.N([_.e(),_.P("design:type",Boolean)],pe.prototype,"toastOpened",void 0);_.N([_.e(),_.P("design:type",Boolean)],pe.prototype,"hasOpened",void 0);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],pe.prototype,"command",null);_.N([_.Z("labelText","command","duration"),_.P("design:type",Object),_.P("design:paramtypes",[])],pe.prototype,"ephemeralAction",null);
_.N([_.Z("ephemeralAction"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],pe.prototype,"hasEphemeralAction",null);_.N([_.Nl("#toast"),_.P("design:type",Object)],pe.prototype,"toast",void 0);_.N([_.e({value:function(){return{style:"call-to-action-inverse"}}}),
_.P("design:type",Object)],pe.prototype,"buttonOverrides",void 0);_.N([_.e({value:{style:"mono-inverse"}}),_.P("design:type",Object)],pe.prototype,"closeButtonOverrides",void 0);_.N([_.e({value:function(){return _.X3().resolve(_.OB(_.Jz))}}),
_.P("design:type",Object)],pe.prototype,"toastManager",void 0);_.N([_.Z("data.responseText","data.subText","data.actionButton"),_.P("design:type",Object),_.P("design:paramtypes",[])],pe.prototype,"labelText",null);_.N([_.GI("toastOpened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pe.prototype,"toastOpenedChanged",null);
_.N([_.GI("toastOpened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pe.prototype,"toastOpenedChangedForBinding",null);_.N([_.p4({is:"yt-notification-action-renderer",disableElementRegistration:!0})],pe);
_.G(pe,"yt-notification-action-renderer",function(){if(zjk===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;FJS===void 0&&(FJS=document.createElement("template"));var U=FJS;p.call(E,U.content.cloneNode(!0),t.content.firstChild);zjk=t}t=zjk;return t},{mode:2});var Uz=function(){var t=_.z.apply(this,arguments)||this;t.duration=4E3;t.downloadingCount=0;t.downloadedCount=0;t.downloadingOnlySmartDownloads=!1;t.sessionTotalDownloads=0;t.sessionDownloaded=0;t.previousSessionsDownloaded=0;t.totalDownloadPercentage=0;t.currentDownloadProgress=0;t.currentDownloadPercentage=0;t.isLeaderTab=!0;t.isFullScreen=!1;t.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};t.boundBeforeUnload=function(E){t.isLeaderTab&&t.downloadingCount>0&&(E.preventDefault(),
E.returnValue=!0)};
return t};
_.u(Uz,_.z);_.Y=Uz.prototype;
_.Y.open=function(){this.updateDownloadState();if(this.data){var t=this.sessionDownloaded+1,E=this.sessionTotalDownloads>1?_.zF("VIDEOS_DOWNLOADING_RATIO",{downloaded:t.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+t+"/"+this.sessionTotalDownloads):_.zF("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(E=this.sessionTotalDownloads>1?_.zF("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:t.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
t+"/"+this.sessionTotalDownloads):_.zF("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));t=this.isLeaderTab?_.zF("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.R4(this.data.responseText)!==E||_.R4(this.data.subText)!==t)this.set("data.responseText",_.wN(E)),this.set("data.subText",_.wN(t)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.Y.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.Y.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.Y.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.Y.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var t=this.downloadedCount-this.previousSessionsDownloaded;t<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-t);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.Y.handleFullscreenChange=function(t){(this.isFullScreen=t)||this.updatePopup()};
Uz.prototype.updateCurrentDownloadProgress=Uz.prototype.updateCurrentDownloadProgress;Uz.prototype.updatePopup=Uz.prototype.updatePopup;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Uz.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],Uz.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],Uz.prototype,"ytEventForwardingBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Uz.prototype,"actionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Uz.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Uz.prototype,"duration",void 0);_.N([_.e({selector:function(t){return _.LI0(t.entities).length}}),
_.P("design:type",Object)],Uz.prototype,"downloadingCount",void 0);_.N([_.e({selector:yA9}),_.P("design:type",Object)],Uz.prototype,"downloadedCount",void 0);_.N([_.e({selector:function(t){var E=_.LI0(t.entities);return WQ9(t.entities,E)}}),
_.P("design:type",Object)],Uz.prototype,"downloadingOnlySmartDownloads",void 0);_.N([_.e(),_.P("design:type",Object)],Uz.prototype,"sessionTotalDownloads",void 0);_.N([_.e(),_.P("design:type",Object)],Uz.prototype,"sessionDownloaded",void 0);_.N([_.e(),_.P("design:type",Object)],Uz.prototype,"previousSessionsDownloaded",void 0);_.N([_.e(),_.P("design:type",Object)],Uz.prototype,"totalDownloadPercentage",void 0);
_.N([_.e({selector:function(t){var E;t=(E=_.LI0(t.entities))!=null?E:[];return t.length>0?_.hkL(t.slice(-1)):0}}),
_.P("design:type",Object)],Uz.prototype,"currentDownloadProgress",void 0);_.N([_.e(),_.P("design:type",Object)],Uz.prototype,"currentDownloadPercentage",void 0);_.N([_.e({selector:_.$Y_}),_.P("design:type",Object)],Uz.prototype,"isLeaderTab",void 0);_.N([_.Nl("yt-notification-action-renderer"),_.P("design:type",Object)],Uz.prototype,"notificationActionRenderer",void 0);
_.N([_.P3("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Uz.prototype,"updatePopup",null);_.N([_.P3("currentDownloadProgress"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Uz.prototype,"updateCurrentDownloadProgress",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],Uz);
_.G(Uz,"ytd-video-download-toast-renderer",function(){if(ejS!==void 0)return ejS;var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return ejS=t},{mode:1});var ll6;var Gt2;var xo=function(){return _.z.apply(this,arguments)||this};
_.u(xo,_.z);xo.prototype.computeIsRedLogo=function(t,E){!t&&E&&(t=E);return t==="YOUTUBE_RED_LOGO"||t==="YOUTUBE_PREMIUM_LOGO"};
xo.prototype.computeLogoName=function(t){t=this.componentBehavior.computeIcon_(t);return t===""?"yt-logos-ext:yt-logo-updated":t};
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],xo.prototype,"componentBehavior",void 0);_.N([_.e({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.P("design:type",Boolean)],xo.prototype,"isRedLogo",void 0);_.N([_.e({computed:"computeLogoName(data)"}),_.P("design:type",String)],xo.prototype,"logoName",void 0);_.N([_.e({value:{}}),_.P("design:type",Object)],xo.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",Object)],xo.prototype,"logoType",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-logo"})],xo);
_.G(xo,"ytd-logo",function(){if(Gt2!==void 0)return Gt2;var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Gt2=t},{mode:_.hX("kevlar_poly_si_batch_j074")?1:2});var AK=function(){var t=_.z.apply(this,arguments)||this;t.animationRef={};return t};
_.u(AK,_.z);_.Y=AK.prototype;_.Y.attached=function(){document.addEventListener("yt-navigate-finish",_.zI(this,this.logYoodle))};
_.Y.detached=function(){document.removeEventListener("yt-navigate-finish",_.zI(this,this.logYoodle))};
_.Y.logYoodle=function(){var t,E;if((t=this.data)==null?0:(E=t.loggingDirectives)==null?0:E.trackingParams)this.ytRendererBehavior.markDirty(),_.Pu().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.Y.computeHideImg=function(t,E){return!!t||!!E};
_.Y.computeHideYtdLogo=function(t,E){return!t||!!E};
_.Y.computeHideLottie=function(t){return!t};
_.Y.computeIsRedLogo=function(t){return t==="YOUTUBE_RED_LOGO"||t==="YOUTUBE_PREMIUM_LOGO"};
_.Y.renderLogoEntity=function(){var t=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),E=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),p=this.getLogoTitleText(this.data),U=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==t&&(this.url=t);this.animatedUrl!==E&&(this.animatedUrl=E);this.logoTitleText!==p&&(this.logoTitleText=p);this.lottieUrl!==U&&(this.lottieUrl=U,this.lottiePlayerProps=this.computeLottiePlayerProps(U))};
_.Y.getSanitizedThumbnail=function(t){return t&&t.thumbnails?_.kzD(t.thumbnails,122)||"":""};
_.Y.getThumbnailUrl=function(t,E){if(!E)return"";var p,U;t=t?(p=E.darkThemeLogo)==null?void 0:p.thumbnail:(U=E.lightThemeLogo)==null?void 0:U.thumbnail;return this.getSanitizedThumbnail(t)};
_.Y.getAnimatedThumbnailUrl=function(t,E){return E?this.getSanitizedThumbnail(t?E.darkThemeAnimatedLogo:E.lightThemeAnimatedLogo):""};
_.Y.getLogoTitleText=function(t){if(t)return _.R4(t.tooltipText)};
_.Y.computeLogoIcon=function(t,E){if(E){var p,U;return t?(p=E.darkThemeLogo)==null?void 0:p.icon:(U=E.lightThemeLogo)==null?void 0:U.icon}};
_.Y.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.Y.getLottieUrl=function(t,E){var p,U,x,A;return t?E==null?void 0:(p=E.darkThemeLogo)==null?void 0:(U=p.lottieAnimation)==null?void 0:U.url:E==null?void 0:(x=E.lightThemeLogo)==null?void 0:(A=x.lottieAnimation)==null?void 0:A.url};
_.Y.computeLottiePlayerProps=function(t){if(t){var E;if((E=this.animationRef)==null?0:E.lottieEl){var p;(p=this.animationRef)==null||p.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:t,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.Y.onLottieError=function(){this.data&&this.lottieUrl&&_.kT(this.hostElement,"yoodle-error")};
_.Y.onImgError=function(){this.data&&!this.lottieUrl&&_.kT(this.hostElement,"yoodle-error")};
AK.prototype.playAnimation=AK.prototype.playAnimation;AK.prototype.renderLogoEntity=AK.prototype.renderLogoEntity;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],AK.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],AK.prototype,"data",void 0);_.N([_.e({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.P("design:type",Boolean)],AK.prototype,"hideImg",void 0);
_.N([_.e({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.P("design:type",Boolean)],AK.prototype,"hideYtdLogo",void 0);_.N([_.e({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.P("design:type",Boolean)],AK.prototype,"hideLottie",void 0);_.N([_.e({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.P("design:type",Boolean)],AK.prototype,"isRedLogo",void 0);
_.N([_.e(),_.P("design:type",Boolean)],AK.prototype,"useDarkThemeYoodle",void 0);_.N([_.e(),_.P("design:type",String)],AK.prototype,"url",void 0);_.N([_.e(),_.P("design:type",String)],AK.prototype,"animatedUrl",void 0);_.N([_.e(),_.P("design:type",String)],AK.prototype,"logoTitleText",void 0);_.N([_.e({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.P("design:type",Object)],AK.prototype,"logoIcon",void 0);_.N([_.e(),_.P("design:type",Object)],AK.prototype,"logoType",void 0);
_.N([_.e(),_.P("design:type",String)],AK.prototype,"lottieUrl",void 0);_.N([_.e(),_.P("design:type",Object)],AK.prototype,"lottiePlayerProps",void 0);_.N([_.e(),_.P("design:type",Object)],AK.prototype,"animationRef",void 0);_.N([_.GI("data"),_.GI("useDarkThemeYoodle"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],AK.prototype,"renderLogoEntity",null);
_.N([_.lc("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],AK.prototype,"playAnimation",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],AK);
_.G(AK,"ytd-yoodle-renderer",function(){if(ll6!==void 0)return ll6;var t=document.createElement("template");_.J(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player class="lottie-player style-scope ytd-yoodle-renderer" aria-label="[[logoTitleText]]" data="[[lottiePlayerProps]]">\n</ytd-lottie-player>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return ll6=t},{mode:_.hX("kevlar_poly_si_batch_j074")?1:2});var nLG;var NE6;var DK$=_.i7.currentPageTypeSelector,s06=_.i7.currentPageSubTypeSelector,Yo=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return t};
_.u(Yo,_.z);_.Y=Yo.prototype;_.Y.onYoodleError=function(){_.r("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.Y.computeLogoName=function(t){t=this.componentBehavior.computeIcon_(t);return t===""?"yt-logos-ext:yt-logo-updated":t};
_.Y.computeTitle=function(t,E,p){return p&&(E==null?0:E.tooltipText)?_.R4(E.tooltipText):_.R4(t)};
_.Y.computeAriaLabel=function(t,E,p){return p&&(E==null?0:E.tooltipText)?_.R4(t):""};
_.Y.computeShowYoodle=function(t,E,p){return!t||!E&&!!p&&!_.Kq.isEmpty(p)};
_.Y.onNavigateHomeAction=function(){if(_.r("kevlar_miniplayer_navigate_home_from_app_killswitch")){var t;(t=_.ZN(this.hostElement).querySelector(".yt-simple-endpoint"))==null||t.click()}};
_.Y.computeLogoHref=function(t,E,p){var U;(p==null?0:p.onTapCommand)?U=this.componentBehavior.computeHref_(p.onTapCommand):t&&(U=this.componentBehavior.computeHref_(t));return U?U:E};
_.Y.computeCommand=function(t,E){return(E==null?void 0:E.onTapCommand)||t};
_.Y.getEndpointForm=function(){if(_.r("kevlar_topbar_disable_cache_only_home")){var t=_.X3().resolve(_.fS),E=DK$(t.getState())||"";t=s06(t.getState())||"";return{disableCache:E==="ytd-browse"&&t==="home"}}return{disableCache:!0}};
Yo.prototype.onYoodleError=Yo.prototype.onYoodleError;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Yo.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Yo.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Yo.prototype,"componentBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],Yo.prototype,"ytdReduxBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],Yo.prototype,"data",void 0);_.N([_.e(),_.P("design:type",String)],Yo.prototype,"countryCode",void 0);_.N([_.e({selectorArgs:["data.overrideEntityKey"],selector:function(t,E){return _.hj(t.entities,"logoEntity",E)}}),
_.P("design:type",Object)],Yo.prototype,"logoEntity",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.P("design:type",Boolean)],Yo.prototype,"showYoodle",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],Yo.prototype,"yoodleError",void 0);_.N([_.e({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.P("design:type",String)],Yo.prototype,"titleText",void 0);
_.N([_.e({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.P("design:type",String)],Yo.prototype,"ariaLabelText",void 0);_.N([_.e({value:"/"}),_.P("design:type",String)],Yo.prototype,"defaultEndpointUrl",void 0);_.N([_.e({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.P("design:type",String)],Yo.prototype,"endpointUrl",void 0);
_.N([_.e({computed:"computeCommand(data.endpoint, logoEntity)"}),_.P("design:type",String)],Yo.prototype,"command",void 0);_.N([_.e(),_.P("design:type",Object)],Yo.prototype,"logoType",void 0);_.N([_.e({}),_.P("design:type",Boolean)],Yo.prototype,"useDarkThemeYoodle",void 0);_.N([_.lc("yoodle-error"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yo.prototype,"onYoodleError",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],Yo);
_.G(Yo,"ytd-topbar-logo-renderer",function(){if(NE6!==void 0)return NE6;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return NE6=t},{mode:_.hX("kevlar_poly_si_batch_j027")?1:2});var LJc=0;var PY8=Du.SEARCH_APPEND_LABEL,TEI=Du.SUGGESTION_NEW_VIDEOS_TEXT,oL$=Du.SUGGESTION_THUMBNAIL_LABEL,WJ6=Du.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,$KI=_.l(function(t){function E(vp){var DT,qL;return _.q(function(TC){if(TC.nextAddress==1)return DT=new Request(vp),_.aR(TC,2),TC.yield(fetch(DT,{credentials:"include"}),4);if(TC.nextAddress!=2)return wE(!0),_.r7(TC,0);qL=_.nB(TC);_.qW(qL);_.Do(TC)})}
var p=t.isHighlighted;var U=t.suggestion;var x=t.onClickCallback;var A=t.onHoverUpdateCallback;var m=t.labels;var b=t.queryBuilderFunction;var f=t.onRemoveCallback;var B=t.suggestionIndex;var R=t.generateUniqueId;var V=t.highlightedId;var Q=t.useScrollMargin;var C=t.isKeyboardMode;var d=null,I=null,O=null,a=_.EB("div"),F=_.EB("span");t=_.M(_.Py(!1,void 0,"LafNkf"));var L=t.next().value,D=t.next().value,W=_.pR("a",function(vp){vp&&_.SY(237477,vp,I,function(DT){I=DT})}),K=_.pR("button",function(vp){vp&&
_.SY(237477,vp,I,function(DT){I=DT})}),v=_.pR("div",function(vp){vp&&_.SY(281939,vp,O,function(DT){O=DT})}),YL=_.aC(function(vp){if((vp==null?void 0:vp.button)===2)return vp.preventDefault(),!1;
var DT=_.yL();DT&&d&&_.HA(DT,d,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var qL;x(vp,U().text,U().index,U().entityMid,vp==null?void 0:(qL=vp.detail)==null?void 0:qL.wasSelectedByKeyboard);return!1}),bY=function(){return U().type===35},kL=function(){return _.r("desktop_enable_single_suggestion_highlight")},R0=function(){return _.z3("desktop_suggestions_panel_row_height")||0},j$=function(){var vp;
return _.r("desktop_enable_new_video_metadata")&&((vp=U())==null?void 0:vp.hasNewVideo)===!0},lY=function(){return _.r("desktop_enable_visual_suggest")},Tt=function(){return _.r("desktop_enable_entity_suggest")&&Q06(U())},si=function(){return U().entitySubtitle},Q0=function(){return kL()?(p==null?void 0:p())||SW()&&!(C==null?0:C()):(p==null?void 0:p())||SW()},ps=function(){var vp=_.qO("SBOX_SETTINGS");
return bY()&&!(vp==null?0:vp.HIDE_REMOVE_LINK)},$L=function(){return CYG(U(),{useEntityName:Tt()})},Cs,km=!((Cs=_.X3().resolve(_.OB(_.Ld)))==null||!Cs()),ZT=function(){return bY()?_.r("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},l8=function(){return m==null?void 0:m().SUGGESTION_DISMISS_LABEL},Rt=function(){return m==null?void 0:m().SUGGESTION_DISMISSED_LABEL};
t=_.M(_.Py(!1,void 0,"JyfUlf"));Cs=t.next().value;var wE=t.next().value;t=_.M(_.Py(!1,void 0,"QKfAGe"));var Gt=t.next().value,V0=t.next().value,SW=Gt,h3=_.aC(function(){b(F.value.innerText);return!1}),zX=_.aC(function(vp){vp.preventDefault();
return!1}),zc=_.aC(function(vp){var DT=U().text,qL=_.qO("SBOX_SETTINGS"),TC="https://"+(qL.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
TC+="&delq="+encodeURIComponent(DT);(DT=qL==null?void 0:qL.PSUGGEST_TOKEN)&&(TC+="&tok="+DT);(qL=qL==null?void 0:qL.SESSION_INDEX)&&(TC+="&authuser="+qL);E(TC);vp.preventDefault();(vp=_.yL())&&I&&_.HA(vp,I,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");f(B==null?void 0:B());return!1}),EC=_.aC(function(){if(kL()&&(C==null?0:C()))return!1;
V0(!0);A(!0);return!1}),VJ=_.aC(function(){V0(!1);
A(!1);return!1}),$m=_.aC(function(){D(!0);
return!1}),Kl=_.aC(function(){D(!1);
return!1}),iG=_.aC(function(vp){vp.preventDefault();
if(U().entityThumbnailAttributionUrl){O&&_.WH(_.Pu(),O);var DT=U().entityThumbnailAttributionUrl;vp=U().entityName;var qL={dismissDialogEndpoint:{}};DT={commandExecutorCommand:{commands:[qL,{urlEndpoint:{url:DT,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:DT}}}]}};qL={buttonViewModel:{title:_.zF("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:qL}}};DT={buttonViewModel:{title:_.zF("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:DT}}};vp={dialogHeaderViewModel:{headline:{content:vp!=null?vp:_.zF("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var TC={basicContentViewModel:{paragraphs:[{text:{content:_.zF("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};vp={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:vp,footer:{panelFooterViewModel:{primaryButton:DT,
secondaryButton:qL,shouldHideDivider:!0}},content:TC}}}}};_.X3().resolve(_.ei).resolveCommand(vp)}return!1});
t=_.M(_.Py("",void 0,"MvIBn"));var QJ=t.next().value,Rs=t.next().value;_.xa(function(){ps()&&Rs(R==null?void 0:R(B==null?void 0:B()));a.value&&_.SY(12453,a.value,d,function(vp){d=vp})});
return _.H(_.w,{cond:Cs,then:function(){var vp={};return _.H("div",{class:_.X5("ytSuggestionComponentRemovedText",(vp.ytSuggestionComponentLargerRemovedText=function(){return lY()},vp)),
style:function(){return R0()>0?"height: "+R0()+"px;":""},
role:"button"},Rt)},
else:function(){var vp={},DT={};return _.H("div",{class:_.X5("ytSuggestionComponentSuggestion",(vp.ytSuggestionComponentSuggestionHover=function(){return!kL()},vp.ytSuggestionComponentHighlighted=Q0,vp.ytSuggestionComponentPersonalizedSuggestion=bY,vp.ytSuggestionComponentMweb=!1,vp.ytSuggestionComponentLargerSuggestion=function(){return j$()||lY()},vp.ytSuggestionComponentThumbnailSuggestion=function(){return lY()},vp.ytSuggestionComponentRoundedSuggestion=function(){return _.r("desktop_enable_scrollable_suggestions_panel")&&
_.r("desktop_enable_suggestions_panel_padding")},vp.ytSuggestionComponentThumbnailPadding=function(){return lY()&&!bY()},vp)),
style:function(){return R0()>0?"height: "+R0()+"px;":""},
role:"presentation","on:mousedown":YL,"on:mouseover":EC,"on:mouseout":VJ,el:a},_.H("div",{class:_.X5("ytSuggestionComponentText",(DT.ytSuggestionComponentScrollMargin=Q,DT)),"aria-label":function(){return j$()?U().text+" "+TEI:U().text},
id:function(){return R==null?void 0:R(B==null?void 0:B())},
"on:mousedown":YL,role:"option"},_.H(_.w,{cond:function(){return U().type!==33},
then:function(){return _.H(_.lz,{icon:ZT,className:"ytSuggestionComponentIcon"})}}),_.H("div",{class:"ytSuggestionComponentLeftContainer"},_.H("span",{el:F,
role:"button",tabindex:0},_.H(_.yG,{each:$L},function(qL){return qL.bold?_.H("span",{class:"ytSuggestionComponentBold"},qL.text):_.H("span",null,qL.text)})),_.H(_.w,{cond:function(){return Tt()&&!!U().entitySubtitle||j$()},
then:function(){return _.H("div",{class:"ytSuggestionComponentMetadataContainer"},_.H(_.w,{cond:function(){return Tt()&&!!U().entitySubtitle},
then:function(){return _.H("div",{class:"ytSuggestionComponentEntitySubtitle"},si)}}),_.H(_.w,{cond:function(){return j$()},
then:function(){return _.H("div",{class:"ytSuggestionComponentNewVideoContainer"},_.H("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.H("div",{class:"ytSuggestionComponentNewVideoText"},TEI))}}))}}))),_.H("div",{class:"ytSuggestionComponentRightContainer"},_.H(_.w,{cond:function(){return lY()&&U().visualSuggestUrl!==void 0},
then:function(){var qL={};return _.H("div",{class:"ytSuggestionComponentThumbnailContainer"},_.H("img",{"aria-label":oL$,class:_.X5("ytSuggestionComponentVisualSuggestThumbnail",(qL.ytSuggestionComponentCircularFrame=function(){return Tt()&&U().subtypes.includes(790)},qL.ytSuggestionComponentEntitySuggestThumbnail=function(){return Tt()},qL)),
src:function(){return U().visualSuggestUrl}}),_.H(_.w,{cond:function(){return Tt()&&!!U().entityThumbnailAttributionUrl},
then:function(){var TC={};return _.H("span",{title:WJ6,role:"tooltip"},_.H("div",{el:v,"on:mouseover":$m,"on:mouseout":Kl,"on:mousedown":iG,class:_.X5("ytSuggestionComponentThumbnailOverlay",(TC.ytSuggestionComponentThumbnailOverlayHidden=function(){return!L()},TC))},_.H(_.lz,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.H(_.SC,null,_.H(_.Kw,{when:function(){return lY()&&ps()}},function(){var qL={};
return _.H("button",{class:_.X5("ytSuggestionComponentRemoveLinkClearButton",(qL.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return QJ()&&QJ()===(V==null?void 0:V())},qL.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!Q0()},qL)),
el:K,"on:mousedown":zc,"aria-label":l8,id:function(){return QJ()}},_.H(_.lz,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.H(_.Kw,{when:function(){return!(lY()&&U().visualSuggestUrl!==void 0)&&ps()}},function(){var qL={};
return _.H("a",{class:_.X5("ytSuggestionComponentRemoveLink",(qL.ytSuggestionComponentRemoveLinkDark=km,qL.ytSuggestionComponentRemoveLinkSelected=function(){return QJ()&&QJ()===(V==null?void 0:V())},qL)),
el:W,"on:mousedown":zc,"aria-label":l8,tabindex:0,role:"button",id:function(){return QJ()}},l8)}),_.H(_.Kw,{when:function(){return!1}},function(){return _.H("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":h3,"on:mousedown":zX,role:"button","aria-label":PY8},_.H(_.lz,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"fl");var KJF=_.CG(["//www.google.com/textinputassistant/","/","_tia.js"]),vL6=_.l(function(){return _.H("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.H("button",{class:"ytdTextInputAssistantButton","on:click":_.aC(function(){dKC().inputMethodsTracker.add(3);var t,E=(t=_.qO("SBOX_SETTINGS"))==null?void 0:t.REQUEST_LANGUAGE;if(E)return _.xT(_.JC(KJF,14,E)),!1})},_.H("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"gl");var SiU;_.yDt=function(){this.cache=new Map};
SiU=function(t){for(var E=_.M(t.cache.entries()),p=E.next();!p.done;p=E.next()){var U=_.M(p.value);p=U.next().value;U=U.next().value;U.suggestions.some(function(x){return x.type===35})&&t.cache.delete(p)}};var cDS=Du.SEARCH,tWS=Du.SEARCH_CLEAR_LABEL,EmF=new _.gM("FAKE_SUGGEST_RESPONSE"),pp6=_.l(function(t){function E(){EC||(EC=setTimeout(function(){$m()},1E3))}
function p(gZ,J3,T5){if(gZ.trim()){zc=gZ;_.ia("REFINEMENTS_TUPLE",void 0);h3=!0;var iF;J3=Il$(Rt,J3);var jW=(iF=t.searchEndpoint)==null?void 0:iF.call(t);_.QeL(gZ,J3,jW,Cs.value.value,T5);$m();Cs.value.value=gZ;Cs.value.blur();Rt.reset()}}
function U(gZ){return _.q(function(J3){return J3.return(new Promise(function(T5){var iF=new XMLHttpRequest;iF.open("GET",_.qiF(gZ),!0);iF.withCredentials=!0;var jW=_.qO("SBOX_SETTINGS");(jW==null?0:jW.SEND_VISITOR_DATA)&&iF.setRequestHeader("X-Goog-Visitor-Id",jW==null?void 0:jW.VISITOR_DATA);iF.onload=function(){T5(iF.responseText)};
iF.onerror=function(){_.qW(Error("gm"));T5(null)};
setTimeout(function(){iF.abort()},1E4);
iF.send(null)}))})}
function x(gZ){var J3,T5,iF,jW;return _.q(function(zJ){switch(zJ.nextAddress){case 1:return J3={credentials:"include",headers:_.iOk()},window.AbortController&&(T5=new AbortController,setTimeout(function(){T5.abort("ytsbox-suggest-timeout")},1E4),J3.signal=T5.signal),_.aR(zJ,2),zJ.yield(fetch(_.qiF(gZ),J3),4);
case 4:iF=zJ.yieldResult.text();_.r7(zJ,3);break;case 2:return jW=_.nB(zJ),jW!=="ytsbox-abort-last"&&jW!=="ytsbox-suggest-timeout"&&_.qW(jW),zJ.return(null);case 3:return zJ.return(iF)}})}
function A(gZ){var J3,T5,iF;return _.q(function(jW){switch(jW.nextAddress){case 1:if(J3=_.X3().resolve(_.OB(EmF)))return jW.return(J3);T5=Date.now();E();return _.r("yt_searchbox_xhr")?jW.yield(U(gZ),5):jW.yield(x(gZ),4);case 4:iF=jW.yieldResult;jW.jumpTo(3);break;case 5:iF=jW.yieldResult;case 3:if(iF){EC&&(clearTimeout(EC),EC=null);var zJ=Rt,Rv=T5,o$=gZ.query.length===0;Rv=Date.now()-Rv;o$?zJ.zeroPrefixRoundTripTime=Rv:(zJ.JSC$22750_totalRoundTripTime+=Rv,zJ.maxRoundTripTime=Math.max(zJ.maxRoundTripTime,
Rv),o$=Math.floor(Rv/100),o$>=gLw.length?++zJ.roundTripTimeHistogram[9]:++zJ.roundTripTimeHistogram[gLw[o$]])}return jW.return(iF)}})}
function m(gZ){var J3,T5,iF;return _.q(function(jW){if(jW.nextAddress==1)return(J3=l8.cache.get(_.bO$(gZ)))?jW.return(J3):jW.yield(A(gZ),2);T5=jW.yieldResult;if(T5===null)return jW.return(null);iF=new _.j0F(T5);gZ.query.length===0&&iF.suggestions.length===0||l8.cache.set(_.bO$(gZ),iF);return jW.return(iF)})}
function b(gZ){var J3,T5;return _.q(function(iF){if(iF.nextAddress==1){zX=!1;var jW=zc;jW=_.Vj()==="search"?(_.Rc(location.href,"search_query")||_.Rc(location.href,"q"))===jW:!1;J3=new _.mKc(gZ,jW?zc:null);return iF.yield(m(J3),2)}T5=iF.yieldResult;if(T5===null)return iF.return();J3.query.length===0&&(Rt.zeroPrefixSuggestionCount=T5.suggestions.length);if(J3.id<=VJ)return Rt.outOfSyncResponseCount++,iF.return();if(document.activeElement!==Cs.value)return iF.return();VJ=J3.id;var zJ=Rt,Rv=T5.rawResponse[2]||
{};zJ.experimentTriggeredBeforeFinal||(zJ.experimentTriggeredBeforeFinal=zJ.experimentTriggeredFinal);zJ.experimentTriggeredFinal=!!Rv.e;Rt.updateSuggestions(T5.suggestions);O(-1);si([]);T5.suggestions!==C()&&EJ(T5.suggestions.length);d(T5.suggestions);YL(T5.suggestions.length>0&&T5.suggestions[0].type===33);ZT&&(ZT.hidden=T5.suggestions.length===0,v()?(ZT.style.minWidth="",zJ=ZT.style,Rv=(jW=C()[0])==null?void 0:jW.ignoredPrefix,zJ.marginLeft=(Rv?Math.min(Rv.length*6,km.value.offsetWidth):0).toString()+
"px"):(ZT.style.minWidth=km.value.offsetWidth+"px",ZT.style.marginLeft="0"),h9());_.Do(iF)})}
function f(){if(!h3)return!1;var gZ=_.qO("REFINEMENTS_TUPLE"),J3;return gZ&&((J3=gZ[1])==null?0:J3.length)?(gZ=gZ[1].map(function(T5,iF){return new V$$([T5,0,[71]],Cs.value.value,iF)}),C()!==gZ&&EJ(gZ.length),si([]),d(gZ),Rt.updateSuggestions(gZ),h3=!1,ZT.hidden=gZ.length===0,zX=gZ.length>0,!0):!1}
function B(){var gZ=Cs.value.value;(typeof gZ==="string"||gZ instanceof String)&&gZ!==""?D(!0):D(!1)}
function R(){if(_.Vj()==="search"){var gZ=window.location.href;try{var J3=_.Rc(gZ,"search_query")||_.Rc(gZ,"q")||""}catch(T5){J3=""}J3&&(Cs.value.value=J3,D(!0))}}
var V=_.M(_.Py([],void 0,"OC8EPc")),Q=V.next().value;V=V.next().value;var C=Q,d=V;Q=_.M(_.Py(-1,void 0,"t2tVQb"));var I=Q.next().value,O=Q.next().value;Q=_.M(_.Py(-1,void 0,"v0RZCe"));var a=Q.next().value,F=Q.next().value;Q=_.M(_.Py(!1,void 0,"rjAnI"));var L=Q.next().value,D=Q.next().value;Q=_.M(_.Py(!1,void 0,"SyGLvb"));var W=Q.next().value,K=Q.next().value;V=_.M(_.Py(!1,void 0,"tL09Cb"));Q=V.next().value;V=V.next().value;var v=Q,YL=V;V=_.M(_.Py(!1,void 0,"FlH7mc"));Q=V.next().value;var bY=V.next().value;
V=_.M(_.Py(!1,void 0,"ea3fwe"));var kL=V.next().value,R0=V.next().value;V=_.M(_.Py(1,void 0,"vSK1xe"));var j$=V.next().value,lY=V.next().value;V=_.M(_.Py([],void 0,"ijlw4b"));var Tt=V.next().value,si=V.next().value;V=_.M(_.Py(!1,void 0,"HcRey"));var Q0=V.next().value,ps=V.next().value;V=_.r("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var $L=_.EB("yt-searchbox"),Cs=_.EB("input"),km=_.EB("div"),ZT,l8=
new _.yDt,Rt=dKC(),wE=_.X3().resolve(_.OB(_.Ld)),Gt=function(){var gZ;return((gZ=t.forceDarkMode)==null?void 0:gZ.call(t))||!(wE==null||!wE())},V0=function(){return _.r("desktop_enable_scrollable_suggestions_panel")},SW="i"+LJc++,h3=!1,zX=!1,zc="",EC=null,VJ=-1,$m=function(){si([]);
d([]);YL(!1);ZT&&(ZT.hidden=!0);EC&&(clearTimeout(EC),EC=null);O(-1)},Kl=function(gZ,J3){gZ.preventDefault();
ps(!0);ZT&&(ZT.hidden=!1);var T5=I();gZ=C();var iF=Tt();J3=Cf9(J3);T5+=J3;for(T5>=gZ.length?T5=-1:T5<-1&&(T5=gZ.length-1);T5!==-1&&(iF.includes(T5)||T5>=gZ.length||T5<0);)T5+=J3,T5>=gZ.length&&(T5=-1);O(T5);I()>=0&&(Cs.value.value=C()[I()].text,F(0),B(),gZ=I(),iF=a(),(iF=document.getElementById(mi[gZ][iF]))&&V0()&&(gZ===C().length-1?ZT.scrollTop=ZT.scrollHeight:iF.scrollIntoView({block:"nearest",inline:"start"})))},iG=_.aC(function(gZ){if(!(gZ.relatedTarget instanceof Element&&gZ.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){K(!0);
var J3;(J3=t.focusCallback)==null||J3.call(t,!0);f()||(zX?ZT.hidden=!1:(_.kT($L.value,"yt-autonav-pause-focus",{}),b(gZ.target.value)))}}),QJ=_.aC(function(gZ){if(!(gZ.relatedTarget instanceof Element&&gZ.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){K(!1);
var J3;(J3=t.focusCallback)==null||J3.call(t,!1);ZT.scrollTop=0;ZT.hidden=!0;_.kT($L.value,"yt-autonav-pause-blur",{})}}),Rs=function(gZ){gZ=Cf9(gZ);
var J3;((J3=mi[I()])==null?0:J3[a()+gZ])&&F(a()+gZ)},vp=_.aC(function(gZ){var J3=gZ.keyCode,T5=gZ.target;
ps(!0);switch(J3){case 13:gZ.preventDefault();var iF;if((iF=mi[I()])==null?0:iF[a()]){var jW;(jW=document.getElementById(mi[I()][a()]))==null||jW.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}gZ=gZ.shiftKey?4:3;J3=Rt;iF=I();J3.selectedSuggestionIndex=iF;p(T5.value,gZ);break;case 27:ZT&&(ZT.hidden=!0);break;case 40:Kl(gZ,40);break;case 38:Kl(gZ,38);break;case 39:Rs(39);break;case 37:Rs(37);break;case 229:Rt.inputMethodsTracker.add(4);break;default:Rt.inputMethodsTracker.add(1),
uOI(Rt)}return!1}),DT=_.aC(function(gZ){b(gZ.target.value);
B();V0()&&ZT&&(ZT.scrollTop=0);return!1}),qL=_.aC(function(){Rt.inputMethodsTracker.add(2);
uOI(Rt);return!1});
_.xa(function(){if(ZT){Rt.reset();if(window.ResizeObserver){var gZ=new ResizeObserver(function(){v()||(ZT.style.minWidth=km.value.offsetWidth+"px")});
gZ.observe(km.value);(new ResizeObserver(function(){h9()})).observe(ZT);
_.iK(function(){gZ.disconnect()})}R();
window.addEventListener("yt-navigate-finish",R);window.addEventListener("yt-focus-searchbox",function(){Cs.value.focus()});
var J3;bY((J3=_.qO("SBOX_SETTINGS"))==null?void 0:J3.HAS_ON_SCREEN_KEYBOARD)}else _.bV(new _.cC("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var TC=_.aC(function(gZ){gZ.preventDefault();p(Cs.value.value,12);return!1}),Wp=_.aC(function(gZ){gZ.preventDefault();
var J3,T5;(J3=Cs)==null||(T5=J3.value)==null||T5.focus();var iF,jW;((iF=Cs)==null?void 0:(jW=iF.value)==null?void 0:jW.value)!==""&&(Cs.value.value="",Cs.value.dispatchEvent(new Event("input")));return!1}),jg=_.aC(function(){var gZ=bbK(Cs.value.value,C().filter(function(J3){return J3.type!==35}).map(function(J3){return{label:J3.text}}));
_.du($L.value,"yt-open-popup-action",[{openPopupAction:gZ},document.body]);return!1}),ES=_.aC(function(){Cs.value.focus();
return!1}),m6=function(gZ,J3,T5,iF,jW){Rt.selectedSuggestionIndex=T5;
p(J3,jW?3:1,iF)},Ia=function(gZ){Cs.value.value=gZ;
Cs.value.dispatchEvent(new Event("input"));Rt.inputMethodsTracker.add(5);uOI(Rt,!0)},mi=[[]],t6=function(gZ){var J3="searchbox-suggestion"+_.mC(_.w$);
mi[gZ].push(J3);return J3},EJ=function(gZ){if(C()){mi=[[]];
for(var J3=0;J3<gZ;J3++)mi.push([])}},h9=function(){if(V0()){var gZ=ZT,J3=gZ.scrollTop;
gZ=gZ.scrollHeight-gZ.clientHeight;R0(J3>=gZ);J3=Math.abs(gZ-J3);J3<=40?lY(1-(40-J3)/40):lY(1)}},Xa=function(){return"opacity: "+j$()*100+"%"},gE=_.aC(function(){h9();
return!1}),nO=_.aC(function(){ps(!1);
return!1}),KO,dZ={},Jd={},XU={},X7={};
return _.H("yt-searchbox",{class:_.X5("ytSearchboxComponentHost",(dZ.ytSearchboxComponentMweb=!1,dZ.ytSearchboxComponentDesktop=!0,dZ["yt-searchbox-filled-query"]=function(){return L()},dZ["ytd-masthead"]=function(){return!W()},dZ.ytSearchboxComponentHostDark=Gt,dZ)),
role:"search",el:$L,"client-ve-type":10349},_.H("div",{el:km,"on:click":ES,class:_.X5("ytSearchboxComponentInputBox",(Jd.ytSearchboxComponentInputBoxDark=Gt,Jd.ytSearchboxComponentInputBoxHasFocus=W,Jd))},_.H("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":TC},_.H(_.w,{cond:W,then:function(){return _.H("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.H(_.lz,{icon:"SEARCH"}))}}),_.H("input",{el:Cs,
class:_.X5("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":SW,"aria-expanded":!((KO=ZT)==null?0:KO.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":QJ,"on:focus":iG,"on:input":DT,"on:keydown":vp,"on:paste":qL,placeholder:t.placeholderText,"aria-activedescendant":function(){var gZ;return(gZ=mi[I()])==null?void 0:gZ[a()]},
"aria-autocomplete":"list",role:"combobox"})),_.H(_.w,{cond:Q,then:function(){return _.H("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.H(vL6,null))}}),_.H(_.w,{cond:L,
then:function(){return _.H("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.H("button",{class:"ytSearchboxComponentClearButton","on:click":Wp,"aria-label":t.clearButtonAriaLabel||tWS},_.H(_.lz,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.H(_.lu,{model:{}})))}})),_.H("button",{class:_.X5("ytSearchboxComponentSearchButton",(XU.ytSearchboxComponentSearchButtonDark=Gt,XU)),
"on:click":TC,"aria-label":cDS,title:t.placeholderText},_.H(_.lz,{icon:"SEARCH"})),_.H(_.w,{cond:function(){if(j7J()&&_.r("mweb_voice_search")&&t.voiceSearchButton)return t.voiceSearchButton()},
then:function(gZ){var J3={};return _.H("div",{class:_.X5("ytSearchboxComponentVoiceSearchWrapper",(J3.ytSearchboxComponentHideVoiceSearchButton=function(){return L()},J3))},_.H(_.sY,{data:gZ},{buttonRenderer:function(T5){return _.H(_.OM,{data:T5.data,
onButtonClickCallback:function(){}})}}))}}),_.H("div",{el:_.V9(function(gZ){return void(ZT=gZ)}),
id:SW,class:_.X5("ytSearchboxComponentSuggestionsContainer",(X7.ytSearchboxComponentSuggestionsContainerDark=Gt,X7["yt-searchbox-suggestions-container"]=!1,X7.ytSearchboxComponentSuggestionsContainerScrollable=V0(),X7.ytSearchboxComponentSuggestionsContainerAnimated=V,X7)),"on:scroll":gE,"on:mousemove":nO,role:"listbox",hidden:!0},_.H(_.yG,{each:C},function(gZ,J3){return _.H($KI,{suggestion:gZ,isHighlighted:function(){return J3()===I()},
onClickCallback:m6,onHoverUpdateCallback:function(T5){if(_.r("desktop_enable_single_suggestion_highlight")){var iF=J3();T5&&(F(0),O(iF))}},
onRemoveCallback:function(T5){SiU(l8);T5===void 0||T5<0||Tt().includes(T5)||si([].concat(_.KB(Tt()),[T5]))},
labels:t.labels,queryBuilderFunction:Ia,suggestionIndex:J3,generateUniqueId:t6,highlightedId:function(){var T5;return(T5=mi[I()])==null?void 0:T5[a()]},
useScrollMargin:V0(),isKeyboardMode:Q0})}),_.H(_.w,{cond:function(){return!v()&&C().find(function(gZ){return gZ.type!==35})&&_.r("searchbox_reporting")},
then:function(){return _.H("button",{class:"ytSearchboxComponentReportButton","on:mousedown":jg},_.zF("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.H(_.w,{cond:function(){return!kL()&&V0()},
then:function(){return _.H("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.H("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:Xa}))}})))},"il");
pp6.idomCompat={callbacks:{focusCallback:!0}};_.k2(pp6,"yt-searchbox",{props:{searchEndpoint:_.uu,placeholderText:_.uu,labels:_.uu,voiceSearchButton:_.uu,focusCallback:_.Cy,clearButtonAriaLabel:_.uu,forceDarkMode:_.uu}});var Mg=function(){var t=_.z.apply(this,arguments)||this;t.menuButtonTargetId="topbar-guide-menu";t.narrow=!1;t.menuStrings={BACK_ALT_LABEL:_.zF("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.zF("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.zF("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.zF("SBOX_PLACEHOLDER",void 0,"Search")};t.pageDarkTheme=document.documentElement.hasAttribute("dark");t.watchPageScrollTop=0;t.theater=!1;t.fullscreen=!1;t.disableFrostedGlassDuringViewTransition=
!1;t.desktopUnifiedSearchPanelMode=_.r("desktop_enable_unified_search_panel");t.aiCompanionEnabled=_.r("enable_ai_companion");t.ytSearchboxFocused=!1;t.searchboxLabels=_.qO("SBOX_LABELS");t.topbarIsAboveChipbar=!1;t.isDarkThemeForced=!1;t.areGhostCardsHidden=!1;t.guideKeyboardToggle=!1;t.voiceSearchManager=udK();t.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};t.setYtSearchboxFocused=function(E){t.ytSearchboxFocused=E};
t.toggleFrostedGlassDuringViewTransition=function(E){t.disableFrostedGlassDuringViewTransition=E};
return t};
_.u(Mg,_.z);_.Y=Mg.prototype;_.Y.computeSimpleText=function(t){return _.R4(t)};
_.Y.onDarkChanged=function(){for(var t=_.M(this.buttons||[]),E=t.next();!E.done;E=t.next())E.value.isOverlay=!!this.dark;t=_.M(this.buttonRenderers||[]);for(E=t.next();!E.done;E=t.next())E.value.overrides=this.computeButtonOverride()};
_.Y.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.Y.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"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var t=_.JL(_.ut(),"aa");_.XM(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||t||(this.isDarkThemeForced=this.dark=!0);this.logoType?(t=this.hostElement.querySelector("#masthead-logo"))&&(_.r("polymer_on_demand_shady_dom")?t.setAttribute("slot","masthead-logo-old"):_.ng(t)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.zI(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.zI(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.Y.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.zI(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.zI(this,this.onSetTheaterModeEnabled))};
_.Y.dataChanged=function(){var t=this.data;t&&(this.voiceEnabled=t.voiceSearchButton?udK().isSupported():!1,_.y8(_.SV(),this.menuButtonTargetId,this.guideButton),t.onReceivedActions&&t.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.IK(this.hostElement,t.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&t&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.XM(this.hostElement,"dark",!1),_.XM(this.hostElement,"theater",!1),(t=
this.hostElement.querySelector("#masthead-logo"))&&(_.r("polymer_on_demand_shady_dom")?t.setAttribute("slot","masthead-logo-old"):_.ng(t))))};
_.Y.computeCenterHidden=function(){var t;return this.data&&!((t=this.data.searchbox)==null?0:t.fusionSearchboxRenderer)};
_.Y.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.XM(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.Y.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.Y.onWatchScroll=function(t){this.watchPageScrollTop=t.detail||0;this.updateMastheadBackgroundOpacity()};
_.Y.onFullscreenChangeAction=function(t){t||(this.watchPageScrollTop=0);this.fullscreen=t;this.updateMastheadBackgroundOpacity()};
_.Y.onSetTheaterModeEnabled=function(t){this.theater=t.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.Y.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.fullscreen?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.Y.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.Y.setBackgroundOpacity=function(t){t=this.calculateBackgroundOpacity(t);this.background.style.opacity=""+t};
_.Y.calculateBackgroundOpacity=function(t){var E=this.theater?.6:0,p=this.hostElement.clientHeight/2;return Math.min(Math.max(t,0),p)/p*(1-E)+E};
_.Y.shouldShowCinematicMastHead=function(){var t=_.r("kevlar_watch_grid")&&!_.r("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(t||this.pageDarkTheme)};
_.Y.focusGuide=function(){this.guideButton.focus()};
_.Y.onGuideToggleTap=function(){_.kT(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.Y.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.Y.onGuideToggleHover=function(){_.kT(this.hostElement,"yt-guide-hover")};
_.Y.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.Y.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.Y.closeOnOutsideClickCondition=function(t){for(t=_.Vx(t);t[0];){var E=t.shift();if(E instanceof Element&&E.id==="kbd")return!1}return!0};
_.Y.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.Y.pausePlayer=function(){var t;(t=_.k1())==null||t.pause();this.pauseMiniplayer()};
_.Y.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var t;(t=_.X3().resolve(_.bf).getPlayerElement())==null||t.pause()}};
_.Y.isMiniplayerActive=function(){return _.X3().resolve(_.bf).isMiniplayerActive()};
_.Y.updateNarrowFromBinding=function(t){this.narrow=t.detail.value};
_.Y.onYtSendFeedbackAction=function(){_.du(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.Y.registerWithViewTransitionManager=function(){BMK(_.X3().resolve(_.pU),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.aE.Object.defineProperties(Mg.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.r("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 t;return!!(this.aiCompanionEnabled&&((t=this.data)==null?0:t.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var t;return(t=this.data)==null?void 0:t.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
Mg.prototype.narrowChanged=Mg.prototype.narrowChanged;Mg.prototype.onWatchPageChange=Mg.prototype.onWatchPageChange;Mg.prototype.onRendererStamperFinished=Mg.prototype.onRendererStamperFinished;Mg.prototype.dataChanged=Mg.prototype.dataChanged;Mg.prototype.onDarkChanged=Mg.prototype.onDarkChanged;_.N([_.g(_.Ev),_.P("design:type",Object)],Mg.prototype,"ironResizableBehavior",void 0);_.N([_.g(FUJ),_.P("design:type",Object)],Mg.prototype,"ytdExpandableInputBehavior",void 0);
_.N([_.g(_.jp.YtdGuideStateAwareBehavior),_.P("design:type",Object)],Mg.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Mg.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Mg.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Mg.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Mg.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.Be),_.P("design:type",Object)],Mg.prototype,"ytdReduxBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Mg.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Mg.prototype,"narrow",void 0);_.N([_.e(),_.P("design:type",Object)],Mg.prototype,"logoType",void 0);_.N([_.e(),_.P("design:type",Boolean)],Mg.prototype,"voiceEnabled",void 0);
_.N([_.e(),_.P("design:type",Object)],Mg.prototype,"menuStrings",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],Mg.prototype,"dark",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Mg.prototype,"pageDarkTheme",void 0);_.N([_.e(),_.P("design:type",Object)],Mg.prototype,"watchPageScrollTop",void 0);_.N([_.e({reflectToAttribute:!0,selector:_.zOi}),_.P("design:type",Boolean)],Mg.prototype,"isWatchPage",void 0);
_.N([_.e({reflectToAttribute:!0,selector:_.lF_}),_.P("design:type",Boolean)],Mg.prototype,"isShortsPage",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Mg.prototype,"theater",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Mg.prototype,"fullscreen",void 0);_.N([_.e({reflectToAttribute:!0,selector:_.DYE}),_.P("design:type",String)],Mg.prototype,"frostedGlassMode",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Mg.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Mg.prototype,"aiCompanionEnabled",void 0);_.N([_.e(),_.P("design:type",Object)],Mg.prototype,"ytSearchboxFocused",void 0);_.N([_.DN("#buttons > *"),_.P("design:type",Array)],Mg.prototype,"buttons",void 0);_.N([_.DN("ytd-button-renderer"),_.P("design:type",Array)],Mg.prototype,"buttonRenderers",void 0);
_.N([_.Nl("#background"),_.P("design:type",HTMLDivElement)],Mg.prototype,"background",void 0);_.N([_.Nl("#guide-button"),_.P("design:type",Object)],Mg.prototype,"guideButton",void 0);_.N([_.Nl("#logo"),_.P("design:type",Object)],Mg.prototype,"logo",void 0);_.N([_.e({computed:"computeButtonOverride(dark)"}),_.P("design:type",Object)],Mg.prototype,"buttonOverrides",void 0);
_.N([_.P3("dark"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mg.prototype,"onDarkChanged",null);_.N([_.e({value:function(){return this.onVoiceTap.bind(this)}}),
_.P("design:type",Function)],Mg.prototype,"boundOnTapVoiceButton",void 0);_.N([_.e(),_.P("design:type",Object)],Mg.prototype,"topbarIsAboveChipbar",void 0);_.N([_.e(),_.P("design:type",String),_.P("design:paramtypes",[])],Mg.prototype,"guideIcon",null);_.N([_.Z("voiceEnabled"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Mg.prototype,"shouldShowVoiceSearchButton",null);
_.N([_.Z("data.aiCompanionButton","aiCompanionEnabled"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Mg.prototype,"shouldShowAiCompanionButton",null);_.N([_.Z("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Mg.prototype,"voiceSearchButton",null);_.N([_.Z("aiCompanionEnabled"),_.P("design:type",String),_.P("design:paramtypes",[])],Mg.prototype,"narrowQuery",null);
_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mg.prototype,"dataChanged",null);_.N([_.lc("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mg.prototype,"onRendererStamperFinished",null);_.N([_.P3("isWatchPage"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mg.prototype,"onWatchPageChange",null);
_.N([_.P3("narrow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mg.prototype,"narrowChanged",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-masthead"})],Mg);
_.G(Mg,"ytd-masthead",function(){if(nLG!==void 0)return nLG;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return nLG=t},{mode:_.hX("kevlar_poly_si_batch_j036")?1:2});var Ufw;var xf6={},A3$={},Yr6={},MWS={},mf6=(MWS.OFFLINE=(xf6["publicytnetworkstatus-online"]="BACK_ONLINE",xf6),MWS.ONLINE=(A3$["publicytnetworkstatus-offline"]="OFFLINE",A3$),MWS.BACK_ONLINE=(Yr6["publicytnetworkstatus-offline"]="OFFLINE",Yr6.TIMER_TRIGGER="ONLINE",Yr6),MWS),mG=function(){var t=_.z.apply(this,arguments)||this;t.currentState="ONLINE";t.scheduledJobId=0;t.bannerString="";t.bannerVe=null;t.networkStatusManagerInstance=new _.k7;return t};
_.u(mG,_.z);_.Y=mG.prototype;_.Y.attached=function(){var t=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){t.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){t.stateChangeHandler("publicytnetworkstatus-offline")})};
_.Y.detached=function(){var t=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){t.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){t.stateChangeHandler("publicytnetworkstatus-offline")})};
_.Y.enterState=function(t){var E=this;this.scheduledJobId&&_.ir.cancelJob(this.scheduledJobId);t==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):t==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.zF("NO_INTERNET_CONNECTION",void 0,"No internet connection")):t==="BACK_ONLINE"&&(this.bannerString=_.zF("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.E_(_.ir,function(){E.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=t};
_.Y.stateChangeHandler=function(t){(t=mf6[this.currentState][t])&&this.enterState(t)};
_.Y.logVisibility=function(t){var E=_.yL();this.createBannerVe(t);E&&this.bannerVe&&(t?_.bU(E,[this.bannerVe]):_.iU(E,[this.bannerVe]))};
_.Y.createBannerVe=function(t){!this.bannerVe&&t&&(this.bannerVe=_.h8(37929),_.oy(_.Pu(),this.bannerVe))};
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",String)],mG.prototype,"currentState",void 0);_.N([_.e(),_.P("design:type",Object)],mG.prototype,"scheduledJobId",void 0);_.N([_.e(),_.P("design:type",Object)],mG.prototype,"bannerString",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-network-status-banner"})],mG);
_.G(mG,"ytd-network-status-banner",function(){if(Ufw!==void 0)return Ufw;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return Ufw=
t},{mode:1});var bst;var b1=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};t.hidden=!0;t.frostedGlass=_.r("web_frosted_glass");return t};
_.u(b1,_.z);b1.prototype.computeHidden=function(t){return t&&t.status?!1:!0};
b1.prototype.handleUpdatePermissionRoleCommand=function(t){if(t=_.k(t,_.N8p))if(t=_.k(t.renderer,_.n9r))this.data=t};
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],b1.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],b1.prototype,"componentBehavior",void 0);_.N([_.e({value:!0,computed:"computeHidden(data)"}),_.P("design:type",Object)],b1.prototype,"hidden",void 0);_.N([_.e(),_.P("design:type",Object)],b1.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],b1.prototype,"frostedGlass",void 0);
_.N([_.Ul({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],b1);
_.G(b1,"ytd-permission-role-bottom-bar-renderer",function(){if(bst!==void 0)return bst;var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);return bst=t},{mode:1});var isw;var qrS;var je8={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var i1=function(){return _.z.apply(this,arguments)||this};
_.u(i1,_.z);_.Y=i1.prototype;_.Y.attached=function(){this.JSC$22854_scroller&&(this.JSC$22854_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22854_scroller.attached&&typeof this.JSC$22854_scroller.attached==="function"&&this.JSC$22854_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(p){p.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var t=_.ZN(this.hostElement);t.querySelector("tp-yt-paper-radio-group").selected="";var E=t.querySelector("#reason-text");E&&(E.value="");t.querySelector("#description-text").value=""}};
_.Y.canSubmit=function(t,E){_.kT(this.hostElement,"yt-invalidate-popup-tabbables");return!(t&&E)};
_.Y.onCancel=function(){_.du(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.Y.onSubmit=function(){var t=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(A){return A.active}).map(function(A){return A.innerText.trim()}),E=this.hostElement.querySelector("tp-yt-paper-radio-group"),p=E.selectedItem,U=p.name;
p=p.innerText.trim();var x=E.querySelector("#reason-text");E=void 0;x&&(E=x.value);(x=this.descriptionText.value)&&(x=x.trim());ryt(this.data.searchQuery,t,U,p,x,E);_.du(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.Y.sendFormSubmitToast=function(){var t=_.rN(_.zF("SBOX_INAPPROPRIATE_TOAST"));_.du(this.hostElement,"yt-open-popup-action",[t,this])};
_.Y.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(t){return t.active})};
_.Y.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
i1.prototype.onIronSelect=i1.prototype.onIronSelect;i1.prototype.onIronChange=i1.prototype.onIronChange;i1.prototype.dataChanged=i1.prototype.dataChanged;_.N([_.e(),_.P("design:type",Object)],i1.prototype,"data",void 0);_.N([_.e({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.P("design:type",Boolean)],i1.prototype,"submitDisabled",void 0);_.N([_.e(),_.P("design:type",Boolean)],i1.prototype,"suggestionSelected",void 0);
_.N([_.e(),_.P("design:type",Boolean)],i1.prototype,"catagorySelected",void 0);_.N([_.Nl("#scroller"),_.P("design:type",Object)],i1.prototype,"JSC$22854_scroller",void 0);_.N([_.Nl("#description-text"),_.P("design:type",Object)],i1.prototype,"descriptionText",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],i1.prototype,"dataChanged",null);
_.N([_.lc("iron-change"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],i1.prototype,"onIronChange",null);_.N([_.lc("iron-select"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],i1.prototype,"onIronSelect",null);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],i1);
_.G(i1,"ytd-search-suggestion-report-dialog",function(){if(qrS!==void 0)return qrS;var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return qrS=t},{mode:1});var qg=function(t){var E=t.openPopupAction;var p=t.target;var U=t.container;var x=t.popupContainerConfig;var A=t.getElement;t=t.removeWhenClosed===void 0?!1:t.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=E;this.target=p;this.container=U;this.popupContainerConfig=x;this.getElement=A;this.JSC$22860_popupConfig=this.popupContainerConfig.JSC$21541_popupConfig[this.openPopupAction.popupType];this.rendererName=(E=this.getName())?_.AeO(E,p1L(this.popupContainerConfig,
E)):"";_.r("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=t);this.createPopup()};
qg.prototype.updatePopup=function(t){this.openPopupAction=t;this.JSC$22860_popupConfig=this.popupContainerConfig.JSC$21541_popupConfig[this.openPopupAction.popupType];HsU(this);_.r("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
qg.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var wpk=function(t,E,p){(E=E&&t.JSC$22860_popupConfig.narrowProperties?t.JSC$22860_popupConfig.narrowProperties:t.JSC$22860_popupConfig.properties)&&p!==void 0&&(E.isAriaModal=p);fTt(t,E);t.isRtl()&&fTt(t,t.JSC$22860_popupConfig.rtlProperties);BZU(t)};
qg.prototype.createPopup=function(){var t=this.JSC$22860_popupConfig.component;if(this.popupContent=Ro6(this,this.rendererName)){if(t){this.popup=Ro6(this,t);var E=this.popupContent;_.r("web_enable_wrapper_for_cow_component_in_popup")&&(E=document.createElement("div"),E.appendChild(this.popupContent));_.r("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$22860_popupConfig.slotName&&E.setAttribute("slot",this.JSC$22860_popupConfig.slotName);t=this.popup;var p=this.container.tagName.toLowerCase();
_.uc("desktop_web_boolean_flag_with_counterfactual_study");var U=_.jU(E);_.to8(_.kR(t),_.J2(E,p,U));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.r("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.ZN(this.container).appendChild(this.popup)}};
var HsU=function(t){var E,p,U=(E=t.openPopupAction.accessibilityData)==null?void 0:(p=E.accessibilityData)==null?void 0:p.label;U&&(t.popup.ariaLabel=U);var x;((x=t.popupContent.polymerController)!=null?x:t.popupContent).data=(0,_.Kq.unsafeClone)(t.openPopupAction.popup[t.getName()]);t.popupContent.duration=VWF(t);t.popupContent.positionType=t.openPopupAction.position;var A=t.openPopupAction.properties;A&&Object.keys(A).forEach(function(m){t.popupContent[m]=A[m]})},fTt=function(t,E){if(E)for(var p=
_.M(Object.keys(E)),U=p.next();!U.done;U=p.next())U=U.value,t.popup[U]=E[U]},BZU=function(t){if(t.openPopupAction.position){var E=t.JSC$22860_popupConfig.positionalProperties&&t.JSC$22860_popupConfig.positionalProperties[t.openPopupAction.position],p=t.JSC$22860_popupConfig.rtlPositionalProperties&&t.JSC$22860_popupConfig.rtlPositionalProperties[t.openPopupAction.position];
E=t.isRtl()&&p?p:E;E.shiftedHorizontalOffset&&(p=t.popup.style.display,t.popup.style.display="block",t.popupContent&&t.popup.positionTarget&&t.popupContent.clientWidth>t.popup.positionTarget.clientWidth&&(E.horizontalOffset=t.popup.positionTarget.clientWidth/2-E.shiftedHorizontalOffset),t.popup.style.display=p);fTt(t,E)}},Qs6=function(t,E,p){if(E){for(var U=_.M(Object.keys(E)),x=U.next();!x.done;x=U.next())x=x.value,t.popup.style[x]=E[x];
if(p)for(E=_.M(Object.keys(p)),U=E.next();!U.done;U=E.next())U=U.value,t.popup.style[U]=p[U]}};
qg.prototype.getName=function(){return _.mY(this.openPopupAction.popup,"renderer")||_.mY(this.openPopupAction.popup,"dialog")||_.mY(this.openPopupAction.popup,"model")||void 0};
var VWF=function(t){t=t.openPopupAction.durationHintMs;return t===0?t:Math.max(4E3,t||4E3)};
qg.prototype.isRtl=function(){return _.qO("HTML_DIR")==="rtl"};
var Ro6=function(t,E){t=t.getElement(E,t.target);t==null&&_.qW(new _.cC("popup getElement returned null",E));return t};var CGC={};
CGC.YtPopupContainerBehavior=[_.RO.YtComponentBehavior,_.oO.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.expandToFullWidth=this.isAriaModal=!1;this.doNotCacheList_=["yt-dialog-view-model"]},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.jR(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.ru(this.hostElement)},
closePopup:function(t){var E=this.createCacheKey(void 0,t);this.popups_[E]&&this.handleClosePopupAction_(void 0,t)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.ir.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.ir.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(t){t.opened&&t.keepBelowPlayer&&this.ensurePopupBelowPlayer(t)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var t in this.popups_){var E=this.popups_[t];if(E.popup.scrollAction==="refit"){var p=E.popup.positionTarget.getBoundingClientRect(),U=E.popup;p=p.top;var x=E;if(!x.naturalHeight){x.popup.hidden=!1;x.popup.style.position="fixed";x.popup.style.top="0px";x.popup.style.left="0px";var A=x.popup.getBoundingClientRect();x.naturalHeight=A.bottom-A.top;x.popup.refit()}U.hidden=!(p>=x.naturalHeight+60);E.popupContent.clientHeight===0&&E.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(t){this.popupContainerConfig=t},
handleOpenPopupAction:function(t,E,p){var U=t.openPopupAction,x=_.X3().resolve(_.OB(_.Jz))&&U.popupType==="TOAST";x&&!U.uniqueId&&(U.uniqueId=xG());if(!_.r("popup_container_parent_target_killswitch")){var A;E=(A=this.getParentTarget(E))!=null?A:E}var m=this.ensurePopup_(U,E);return new _.PE(function(b){m.then(function(f){if(!f)return b();this.maybeCreateNarrowMediaQuery_();var B=this.createCacheKey(f.rendererName,f.openPopupAction.uniqueId);if(U.showOncePerUniqueId){if(this.shownPopupKeys_.has(B))return b();
this.shownPopupKeys_.add(B)}B=this.popups_[B];var R=!(!B||!B.openPopupAction.beReused);R=!!U.reusePopup||R;if(f.popup.opened&&!R){x&&!f.openPopupAction.replacePopup||this.handleClosePopupAction_(f.rendererName,f.openPopupAction.uniqueId);R=U.popupType==="DIALOG"&&!_.r("popup_container_dialog_reopen_killswitch");if(!x&&!R&&B&&B.target==E&&(_.r("popup_container_event_target_check_killswitch")||B.target==p)&&!f.openPopupAction.replacePopup)return b();_.XE(f.popup,function(){this.completeOpenPopupAction_(U,
E,f);b()}.bind(this))}else f.popup.opened?f.updatePopup(U):this.completeOpenPopupAction_(U,E,f),b()}.bind(this))}.bind(this))},
getParentTarget:function(t){if(t&&t instanceof HTMLElement)for(var E=_.M(Object.entries(this.popups_)),p=E.next();!p.done;p=E.next())if(p=_.M(p.value),p.next(),p=p.next().value,this.popupClosesOnClick(p)&&p.popup.contains(t))return p.target},
popupClosesOnClick:function(t){return t.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER","YTCP-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER"].includes(t.rendererName.toUpperCase())},
completeOpenPopupAction_:function(t,E,p){p.updatePopup(t);var U=this.narrowMediaQuery_.queryMatches,x=this.isAriaModal;t=this.expandToFullWidth;p.target=E;var A;E=((A=p.target.polymerController)!=null?A:p.target).popupPositionTarget||p.target;p.JSC$22860_popupConfig.targetContainer&&(E=p.container);p.popup.positionTarget=E;p.popupContent.positionTarget=E;BZU(p);p.JSC$22860_popupConfig.forceFocus&&(p.popupContent.style.outline="none");p.popupContent.tabIndex=-1;p.JSC$22860_popupConfig.narrowProperties&&
(p.popup.style.position="static");p.JSC$22860_popupConfig.preventAutonav&&p.popup.setAttribute("prevent-autonav",!0);p.JSC$22860_popupConfig.forceCloseOnOutsideClick&&p.popup.setAttribute("force-close-on-outside-click",!0);wpk(p,U,x);A={};A.width=t?"100%":"";Qs6(p,p.JSC$22860_popupConfig.styles,A);p.isRtl()&&Qs6(p,p.JSC$22860_popupConfig.rtlStyles,A);if(!p.openPopupAction.shouldStopParentSignal){var m;t=(m=p.target.polymerController)!=null?m:p.target;(p.popupContent.startForwardingEvents||p.popupContainerConfig.forwardingEnabledPopups.has(p.rendererName))&&
t.parentComponent!==p.popupContent&&p.popupContent!==p.target&&p.target!==document.body&&(p.popupContent.startForwardingEvents?p.popupContent.startForwardingEvents(p.popupContainerConfig.forwardedEvents,p.target):(p.JSC$22860_eventForwarder||(p.JSC$22860_eventForwarder=new _.FY(p.popupContent)),p.JSC$22860_eventForwarder.start(p.popupContainerConfig.forwardedEvents,p.target)))}p=p.popup;p.addEventListener("iron-overlay-opened",_.zI(this,this.onPopupIronOverlayOpened_));p.addEventListener("iron-overlay-closed",
_.zI(this,this.onPopupIronOverlayClosed_));p.addEventListener("iron-overlay-canceled",_.zI(this,this.onPopupIronOverlayCanceled_));p.addEventListener("yt-refit",_.zI(this,this.refitPopup_));p.addEventListener("yt-invalidate-popup-tabbables",_.zI(this,this.handleInvalidatePopupTabbables_));p.open()},
getPopupDurationMs_:function(t){return t.durationHintMs===0?t.durationHintMs:Math.max(4E3,t.durationHintMs||4E3)},
handleClosePopupAction_:function(t,E){var p=_.r("web_popup_cache_key_killswitch")||!!E;if(t||p){var U=this.createCacheKey(t,E);t=(t=this.popups_[U])&&t.popup}else t=_.N9s(_.wa);if(t&&t.close){if(E=_.X3().resolve(_.OB(_.FA)))t.restoreFocusOnClose=E.isKeyBoardInUse();if(t&&t.positionTarget&&!_.r("ytpopup_close_sibling_popups_killswitch")){E=_.M(Object.entries(this.popups_));for(p=E.next();!p.done;p=E.next()){var x=_.M(p.value);p=x.next().value;x=x.next().value;var A=void 0,m=void 0,b=void 0,f=void 0,
B=void 0,R=void 0;t.positionTarget==((A=x)==null?void 0:(m=A.popupContent)==null?void 0:m.positionTarget)&&x.popup&&(!((b=x.popup)==null?0:(f=b.style)==null?0:f.display)||((B=x.popup)==null?void 0:(R=B.style)==null?void 0:R.display)!=="none")&&(A=void 0,(A=x.popup)==null?0:A.close)&&(x.popup.close(),this.removePopup_(x.popup,p))}t&&this.popups_[U]&&(t.close(),this.removePopup_(t,U))}else t.close(),this.removePopup_(t,U)}},
handleClosePopupCommand_:function(t){t.closePopupCommand&&t.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,t.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(t){var E={},p;for(p in this.popups_)if(E={key$jscomp$1247:E.key$jscomp$1247},E.key$jscomp$1247=p,!t||!t.some(function(A){return function(m){return m==A.key$jscomp$1247}}(E))){var U=this.popups_[E.key$jscomp$1247],x=U.popup;
_.X3().resolve(_.OB(_.Jz))&&U.openPopupAction.popupType==="TOAST"||(x&&x.close&&x.close(),this.removePopup_(x,E.key$jscomp$1247))}},
handleClosePopupsAction_:function(t){t.forEach(function(E){var p=this.popups_[E];p&&((p=p.popup)&&p.close&&p.close(),this.removePopup_(p,E))}.bind(this))},
handleGetPopupOpenedAction_:function(t,E){return(E=this.createCacheKey(t,E))&&this.popups_[E]?this.popups_[t].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var t=[],E;for(E in this.popups_){var p=this.popups_[E];p.popup.opened&&t.push(p)}return t},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(t,E){_.r("ytpopup_disable_default_html_caching")&&t&&t.removeWhenClosed&&(_.ZN(this.hostElement).removeChild(t),E&&this.popups_[E]&&delete this.popups_[E])},
shouldReusePopup_:function(t){return!(!t||!t.reusePopup)||!(!t||!t.beReused)},
ensurePopup_:function(t,E){this.maybeCreateNarrowMediaQuery_();var p=_.mY(t.popup,"renderer")||_.mY(t.popup,"dialog")||_.mY(t.popup,"model");if(!p)return _.gu();p=_.AeO(p,p1L(this.popupContainerConfig,p));return _.gu(this.getAndMaybeCreatePopup_(t,p,E))},
getAndMaybeCreatePopup_:function(t,E,p){var U=this.createCacheKey(E,t.uniqueId);if(this.popups_[U])return this.popups_[U];t=new qg({openPopupAction:t,target:p,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(E)});return this.popups_[U]=t},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(t){return _.r("ytpopup_disable_default_html_caching")?_.r("ytpopup_disable_cache_allowlist")?t&&this.doNotCacheList_.includes(t):t&&t.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",_.zI(this,this.openPopupQueryMatchesChanged_)),_.ZN(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(t){t=t.detail.value;for(var E in this.popups_)wpk(this.popups_[E],t)},
onPopupIronOverlayClosed_:function(t){var E=t.currentTarget,p=_.jAJ(E);p=p.length>0?p[0]:E;if(p.is!=="ytd-reel-watch-while-dialog-renderer"||t.target.is!=="tp-yt-iron-dropdown"){t.detail.popup=E;t.detail.popupRenderer=p;var U,x={context:{openingElement:((U=this.popups_[(p==null?void 0:p.is)||""])==null?void 0:U.target)||void 0}};Object.assign(x,t.detail);var A;_.kT((A=p.hostElement)!=null?A:p,"yt-popup-closed",x);E.removeEventListener("yt-refit",_.zI(this,this.refitPopup_));E.removeEventListener("yt-invalidate-popup-tabbables",
_.zI(this,this.handleInvalidatePopupTabbables_));E.removeEventListener("iron-overlay-canceled",_.zI(this,this.onPopupIronOverlayCanceled_));E.removeEventListener("iron-overlay-closed",_.zI(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(E)}},
onPopupIronOverlayCanceled_:function(t,E){var p=t.currentTarget,U=_.jAJ(p);U=U.length>0?U[0]:p;if(U.is!=="ytd-reel-watch-while-dialog-renderer"||t.target.is!=="tp-yt-iron-dropdown"){var x;_.kT((x=U.hostElement)!=null?x:U,"yt-popup-canceled",t.detail);x=E?_.Vx(E):null;(!E||["click","tap"].includes(E.type))&&!p.hasAttribute("force-close-on-outside-click")&&p.positionTarget&&x&&x.includes(p.positionTarget)&&t.preventDefault();p.restoreFocusOnClose=_.ou.keyboardEventMatchesKeys(E,"esc")}},
onPopupIronOverlayOpened_:function(t){t=t.currentTarget;var E=_.jAJ(t);E=E.length>0?E[0]:t;var p,U;_.kT((p=E.hostElement)!=null?p:E,"yt-popup-opened",(U=E.hostElement)!=null?U:E);t.keepBelowPlayer&&(this.ensurePopupBelowPlayer(t,!0),this.dynamicallyPositionedElements_.add(t));p=_.X3().resolve(_.OB(_.FA));U=!!E.querySelector("#toast");p&&p.isKeyBoardInUse()&&!U&&(typeof E.focusFirstItem==="function"?E.focusFirstItem():(E=_.lym(t),E.length&&E[0].focus()));t.removeEventListener("iron-overlay-opened",
_.zI(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(t){t=t.currentTarget;t.refit&&t.refit()},
refitPopups_:function(){for(var t in this.popups_)this.popups_[t].refit()},
handleInvalidatePopupTabbables_:function(t){t=t.currentTarget;t.invalidateTabbables&&t.invalidateTabbables()},
createCacheKey:function(t,E){return _.r("web_popup_cache_key_killswitch")?E?t+"#"+E:t:E?"#"+E:t},
openSheet:function(t,E,p){var U=t==null?void 0:t.openPopupActionCommand;if(!U&&(t==null?0:t.viewModel)){if(t.sheetPosition)a:switch(t.sheetPosition){case "SHEET_POSITION_RIGHT":U="OPEN_POPUP_POSITION_RIGHT";break a;default:U="OPEN_POPUP_POSITION_UNKNOWN"}else U=void 0;U={openPopupAction:{popup:{sheetViewModel:t.viewModel},popupType:"CONTEXTUAL_SHEET",position:U}}}if(U){var x;this.expandToFullWidth=(x=t==null?void 0:t.expandToFullWidth)!=null?x:!1;this.handleOpenPopupAction(U,E,p===void 0?E:p)}},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var t=this;return _.q(function(E){return E.return(t.handleGetOpenedPopupsAction_().filter(function(p){var U;return((U=p.openPopupAction)==null?void 0:U.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(t,E,p){if(_.r("web_dialog_utils_killswitch")){var U=t==null?void 0:t.openPopupActionCommand,x=(p==null?0:p.ariaLabel)?{accessibilityData:{accessibilityData:{label:p.ariaLabel}}}:void 0;!U&&(t==null?0:t.viewModel)&&(U={openPopupAction:Object.assign({},{popup:{dialogViewModel:t.viewModel},popupType:(p==null?0:p.isModal)?"MODAL":"DIALOG"},x&&x)});U&&this.handleOpenPopupAction(U,E)}else{if(x=t==null?void 0:t.viewModel){var A=p=p===void 0?{}:p;p=A.ariaLabel;x={popup:{dialogViewModel:x},
popupType:A.isModal?"MODAL":"DIALOG"};A={accessibilityData:{label:p}};p&&(x.accessibilityData=A);x={openPopupAction:x}}else x=void 0;if(x=(U=x)!=null?U:t==null?void 0:t.openPopupActionCommand)this.isAriaModal=_.r("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(x,E)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var t=this;return _.q(function(E){return E.return(t.handleGetOpenedPopupsAction_().filter(function(p){var U;return((U=p.openPopupAction)==null?void 0:U.popupType)==="DIALOG"}).length>0)})}}];var jsw;var r3w;var kXw=_.CG(["about:blank"]),Ha=function(){var t=_.z.apply(this,arguments)||this;t.isMuted=!1;t.pageLoadTimeoutId=void 0;t.enableA11yFocusFix=_.r("enable_a11y_focus_fix_for_mac_panel_on_desktop");t.moveFocusToContent=function(){t.iframe.focus()};
return t};
_.u(Ha,_.z);_.Y=Ha.prototype;_.Y.dataChanged=function(){var t=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var E=this.data.url,p=_.q0(E);_.r("enable_yt_ata_iframe_authuser")?(p=_.q0(E),_.Yk(this.iframe,kmJ(p))):_.Yk(this.iframe,p);this.pageLoadTimeoutId=_.E_(_.ty(),function(){return void t.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.eM({destination:window,iframe:this.iframe,origin:_.XQG(p.toString()),channelName:"ataiframe",onMessage:_.s$m(bZC,function(U){iZ8(U.data)?(U=_.cK(U.data,1,_.HK,_.ri()),U.length!==1?_.qW(Error("hm")):(U=U[0],U===3?(t.isMuted=!0,t.logStateChanged({adMuteRequested:!0})):U===1&&t.close())):_.qW(Error("im"))}),
onEstablished:function(){t.cancelPageLoadTimeout();t.logStateChanged({pageLoadSucceeded:!0})}})}};
_.Y.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.ty().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.Y.logStateChanged=function(t){var E;if((E=this.data)==null?0:E.trackingParams)t={adsClientData:{aboutThisAdData:t}},_.Pu().stateChanged(this.data.trackingParams,t)};
_.Y.close=function(){_.du(this.hostElement,"yt-close-popup-action",[this.is])};
_.Y.handlesPopupClosed=function(t,E){var p=this,U,x;return _.q(function(A){if(A.nextAddress==1)return _.qO("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.du(p.hostElement,"on-about-this-ad-popup-closed",[p.isMuted,E]),A.jumpTo(0)):t&&dm7(t)?A.yield(uI7(t),4):(p.isMuted&&_.du(p.hostElement,"yt-mute-ad-action",[p.is,p]),A.jumpTo(0));if(U=A.yieldResult){var m=x=new _.bs(U),b=p.isMuted;m.getOptions().includes("onAboutThisAdPopupClosed")?_.JEX(m,"onAboutThisAdPopupClosed",{isMuted:b,layoutId:E}):_.HY("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.Do(A)})};
_.Y.onPopupClosed=function(t){var E=this,p,U;return _.q(function(x){p=_.JC(kXw);_.Yk(E.iframe,p);E.cancelPageLoadTimeout();if(!E.data)return x.jumpTo(0);E.ytRendererBehavior.markDirty();U=t.detail.context.openingElement;return x.yield(E.handlesPopupClosed(U,E.data.layoutId),0)})};
_.Y.detached=function(){this.cancelPageLoadTimeout()};
_.Y.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ha.prototype.onPopupClosed=Ha.prototype.onPopupClosed;Ha.prototype.dataChanged=Ha.prototype.dataChanged;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ha.prototype,"ytRendererBehavior",void 0);_.N([_.Nl("#iframe"),_.P("design:type",HTMLIFrameElement)],Ha.prototype,"iframe",void 0);_.N([_.e(),_.P("design:type",Object)],Ha.prototype,"data",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ha.prototype,"dataChanged",null);
_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype",Promise)],Ha.prototype,"onPopupClosed",null);_.N([_.p4({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Ha);
_.G(Ha,"yt-about-this-ad-renderer",function(){if(r3w===void 0){var t=document.createElement("template");_.J(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-about-this-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ads.yt_about_this_ad_renderer.yt.about.this.ad.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-about-this-ad-renderer"></iframe><template is="dom-if" if="[[enableA11yFocusFix]]" restamp="" class="style-scope yt-about-this-ad-renderer"><div id="focusTrapEnd" tabindex="0" on-focus="moveFocusToContent" class="style-scope yt-about-this-ad-renderer"></div></template>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;jsw===void 0&&(jsw=document.createElement("template"));var U=jsw;p.call(E,U.content.cloneNode(!0),t.content.firstChild);r3w=t}t=r3w;return t},{mode:2});var dfI;var u4C;var J3G=function(t){var E=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=E.message;"stack"in E&&(this.stack=E.stack);this.maxFileSizeMB=t;Object.setPrototypeOf(this,J3G.prototype)};
_.u(J3G,Error);var ITt=function(t,E){var p=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=p.message;"stack"in p&&(this.stack=p.stack);this.minWidth=t;this.minHeight=E;Object.setPrototypeOf(this,ITt.prototype)};
_.u(ITt,Error);var gmI=function(t){this.requirements=t;this.JSC$22888_maxFileSize=t.maxFileSizeMB*1024*1024},Zs6=function(t,E){if(E.size>t.JSC$22888_maxFileSize)throw new J3G(t.requirements.maxFileSizeMB);
};var OsG=function(t,E){this.canvas=t;this.imageEditorBuilder=E};
OsG.prototype.addEventListeners=function(t){var E=function(x){XpU(t,x)};
this.JSC$22894_mouseDownEvent=E;var p=function(x){hoC(t,x)};
this.JSC$22894_mouseMoveEvent=p;var U=function(){aTI(t)};
this.JSC$22894_mouseUpEvent=U;this.canvas.addEventListener("mousedown",E);this.canvas.addEventListener("mousemove",p);document.addEventListener("mouseup",U)};
OsG.prototype.removeEventListeners=function(){this.JSC$22894_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$22894_mouseDownEvent);this.JSC$22894_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$22894_mouseMoveEvent);this.JSC$22894_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$22894_mouseUpEvent)};
var eok=function(t,E){t.removeEventListeners();return new Promise(function(p){var U=new Image;U.crossOrigin="anonymous";U.onload=function(){var x=t.imageEditorBuilder(t.canvas,U);t.addEventListeners(x);p(x)};
U.src=E})},fe=function(t,E,p,U,x,A,m,b){this.canvas=t;
this.image=E;this.requiredRatio=p;this.minImageCropDimension=U;this.minOutputImageResolution=x;this.component=A;this.styleFocusedCorner=b===void 0?!0:b;this.action=2;this.focusedCorner=this.resizeCorner=0;t=this.canvas.getContext("2d");if(!t)throw Error("jm");this.ctx=t;this.canvasMargin=m!=null?m:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;m=this.image;t=this.canvasInnerWidth/m.width;m.height*t>912&&(t=m.width/m.height*912/m.width);m=t;this.scaledImageWidth=this.canvas.width%2?
I1d(this.image.width*m):JyL(this.image.width*m);this.scaledImageHeight=Math.round(this.image.height*m);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$22897_overlayMarginBottom=this.JSC$22897_overlayMarginTop=this.canvasMargin;this.JSC$22897_overlayMarginRight=this.JSC$22897_overlayMarginLeft=this.horizontalMargin;this.JSC$22897_overlayWidth=this.scaledImageWidth;this.JSC$22897_overlayHeight=this.scaledImageHeight;
t=this.image.width/this.image.height;t>this.requiredRatio?(this.JSC$22897_overlayWidth=this.canvas.width%2?I1d(this.scaledImageHeight*this.requiredRatio):JyL(this.scaledImageHeight*this.requiredRatio),this.JSC$22897_overlayMarginRight=this.JSC$22897_overlayMarginLeft=(this.canvas.width-this.JSC$22897_overlayWidth)/2):t<this.requiredRatio&&(this.JSC$22897_overlayHeight=this.canvas.height%2?I1d(this.scaledImageWidth/this.requiredRatio):JyL(this.scaledImageWidth/this.requiredRatio),this.JSC$22897_overlayMarginBottom=
this.JSC$22897_overlayMarginTop=(this.canvas.height-this.JSC$22897_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*m,this.scaledImageWidth);Frc(this)};
fe.prototype.getContext=function(){return this.ctx};
var XpU=function(t,E){E={x:Math.round(E.pageX-t.canvas.getBoundingClientRect().left),y:Math.round(E.pageY-t.canvas.getBoundingClientRect().top)};t.dragStart=E;zo8(t,E)!==0?(t.action=1,lT$(t,E),t.resizeCorner=zo8(t,E)):E.x>t.JSC$22897_overlayMarginLeft&&E.x<t.JSC$22897_overlayMarginLeft+t.JSC$22897_overlayWidth&&E.y>t.JSC$22897_overlayMarginTop&&E.y<t.JSC$22897_overlayMarginTop+t.JSC$22897_overlayHeight&&(t.action=0)},GX8=function(t,E){switch(E){case 1:return{x:t.JSC$22897_overlayMarginLeft,
y:t.JSC$22897_overlayMarginTop};case 2:return{x:t.JSC$22897_overlayMarginLeft,y:t.JSC$22897_overlayMarginTop+t.JSC$22897_overlayHeight};case 3:return{x:t.JSC$22897_overlayMarginLeft+t.JSC$22897_overlayWidth,y:t.JSC$22897_overlayMarginTop};case 4:return{x:t.JSC$22897_overlayMarginLeft+t.JSC$22897_overlayWidth,y:t.JSC$22897_overlayMarginTop+t.JSC$22897_overlayHeight};default:throw Error("km");}},NZG=function(t,E){if(t.focusedCorner!==0){t.dragStart=GX8(t,t.focusedCorner);
t.action=1;t.resizeCorner=t.focusedCorner;var p=t.dragStart.x,U=t.dragStart.y;switch(E){case 0:t.focusedCorner===1||t.focusedCorner===4?(p-=10,U-=10):(p-=10,U+=10);break;case 1:t.focusedCorner===1||t.focusedCorner===4?(p+=10,U+=10):(p+=10,U-=10);break;case 2:p=t.focusedCorner===1||t.focusedCorner===4?p-10:p+10;U-=10;break;case 3:p=t.focusedCorner===1||t.focusedCorner===4?p+10:p-10;U+=10;break;default:throw Error("lm");}nmU(t,{x:p,y:U});Frc(t);t.action=2;t.dragStart=void 0}},hoC=function(t,E){E={x:Math.round(E.pageX-
t.canvas.getBoundingClientRect().left),
y:Math.round(E.pageY-t.canvas.getBoundingClientRect().top)};lT$(t,E);switch(t.action){case 1:nmU(t,E);break;case 0:t.dragStart&&(t.JSC$22897_overlayMarginLeft=Math.max(t.horizontalMargin,Math.min(t.JSC$22897_overlayMarginLeft-(t.dragStart.x-E.x),t.horizontalMargin+t.scaledImageWidth-t.JSC$22897_overlayWidth)),t.JSC$22897_overlayMarginRight=t.canvas.width-t.JSC$22897_overlayMarginLeft-t.JSC$22897_overlayWidth,t.JSC$22897_overlayMarginTop=Math.max(t.canvasMargin,Math.min(t.JSC$22897_overlayMarginTop-
(t.dragStart.y-E.y),t.scaledImageHeight-t.JSC$22897_overlayHeight+t.canvasMargin)),t.JSC$22897_overlayMarginBottom=t.canvas.height-(t.JSC$22897_overlayMarginTop+t.JSC$22897_overlayHeight));break;default:return}Frc(t);t.dragStart=E},aTI=function(t){t.action=2;
t.dragStart=void 0;document.body.style.cursor="auto"},lT$=function(t,E){switch(zo8(t,E)){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:t.action!==1&&(document.body.style.cursor="auto")}},zo8=function(t,E){var p=t.JSC$22897_overlayMarginLeft-5,U=t.JSC$22897_overlayMarginTop-5,x=t.JSC$22897_overlayMarginLeft+t.JSC$22897_overlayWidth-5;
t=t.JSC$22897_overlayMarginTop+t.JSC$22897_overlayHeight-5;return Df6(E,{x:p,y:U})?1:Df6(E,{x:x,y:U})?3:Df6(E,{x:p,y:t})?2:Df6(E,{x:x,y:t})?4:0},Df6=function(t,E){return t.x>=E.x&&t.x<=E.x+10&&t.y>=E.y&&t.y<=E.y+10},nmU=function(t,E){if(t.dragStart)switch(t.resizeCorner){case 2:Math.abs((t.JSC$22897_overlayMarginLeft+t.JSC$22897_overlayWidth-E.x)/(E.y-t.JSC$22897_overlayMarginTop))>=t.requiredRatio?ss$(t,E.x):Lrk(t,E.y);
break;case 1:Math.abs((t.JSC$22897_overlayMarginLeft+t.JSC$22897_overlayWidth-E.x)/(t.JSC$22897_overlayMarginTop+t.JSC$22897_overlayHeight-E.y))>=t.requiredRatio?PGF(t,E.x):Lrk(t,E.y);break;case 4:Math.abs((E.x-t.JSC$22897_overlayMarginLeft)/(E.y-t.JSC$22897_overlayMarginTop))>=t.requiredRatio?ss$(t,E.x):TZ$(t,E.y);break;case 3:Math.abs((E.x-t.JSC$22897_overlayMarginLeft)/(t.JSC$22897_overlayMarginTop+t.JSC$22897_overlayHeight-E.y))>=t.requiredRatio?PGF(t,E.x):TZ$(t,E.y);break;default:throw Error("mm");
}},ss$=function(t,E){var p=t.JSC$22897_overlayMarginTop;
t.JSC$22897_overlayMarginBottom=omc(t,E);t.JSC$22897_overlayHeight=t.canvas.height-t.JSC$22897_overlayMarginBottom-p;t.JSC$22897_overlayWidth=Math.round(t.JSC$22897_overlayHeight*t.requiredRatio);WrU(t)},PGF=function(t,E){var p=t.JSC$22897_overlayMarginTop+t.JSC$22897_overlayHeight;
t.JSC$22897_overlayMarginTop=omc(t,E);t.JSC$22897_overlayHeight=p-t.JSC$22897_overlayMarginTop;t.JSC$22897_overlayWidth=Math.round(t.JSC$22897_overlayHeight*t.requiredRatio);WrU(t)},WrU=function(t){switch(t.resizeCorner){case 2:case 1:t.JSC$22897_overlayMarginLeft=t.canvas.width-t.JSC$22897_overlayMarginRight-t.JSC$22897_overlayWidth;
break;case 4:case 3:t.JSC$22897_overlayMarginRight=t.canvas.width-t.JSC$22897_overlayMarginLeft-t.JSC$22897_overlayWidth;break;default:throw Error("mm");}},Lrk=function(t,E){var p=t.JSC$22897_overlayMarginLeft+t.JSC$22897_overlayWidth;
t.JSC$22897_overlayMarginLeft=$fG(t,E);t.JSC$22897_overlayWidth=p-t.JSC$22897_overlayMarginLeft;t.JSC$22897_overlayHeight=Math.round(t.JSC$22897_overlayWidth/t.requiredRatio);KrC(t)},TZ$=function(t,E){var p=t.JSC$22897_overlayMarginLeft;
t.JSC$22897_overlayMarginRight=$fG(t,E);t.JSC$22897_overlayWidth=t.canvas.width-t.JSC$22897_overlayMarginRight-p;t.JSC$22897_overlayHeight=Math.round(t.JSC$22897_overlayWidth/t.requiredRatio);KrC(t)},KrC=function(t){switch(t.resizeCorner){case 2:case 4:t.JSC$22897_overlayMarginBottom=t.canvas.height-t.JSC$22897_overlayMarginTop-t.JSC$22897_overlayHeight;
break;case 1:case 3:t.JSC$22897_overlayMarginTop=t.canvas.height-t.JSC$22897_overlayMarginBottom-t.JSC$22897_overlayHeight;break;default:throw Error("mm");}},omc=function(t,E){switch(t.resizeCorner){case 2:E=t.canvas.height-(t.JSC$22897_overlayMarginTop+vmG(t,E));
break;case 4:E=t.canvas.height-(t.JSC$22897_overlayMarginTop+y36(t,E));break;case 1:E=t.JSC$22897_overlayMarginTop+t.JSC$22897_overlayHeight-vmG(t,E);break;case 3:E=t.JSC$22897_overlayMarginTop+t.JSC$22897_overlayHeight-y36(t,E);break;default:throw Error("mm");}return Math.max(E,t.canvasMargin)},vmG=function(t,E){E=t.JSC$22897_overlayMarginLeft+t.JSC$22897_overlayWidth-Math.max(E,t.horizontalMargin);
E=E<0?t.JSC$22897_overlayWidth:Math.max(E,t.minOverlayWidth);return Math.round(E/t.requiredRatio)},y36=function(t,E){E=t.canvas.width-Math.max(t.canvas.width-E,t.horizontalMargin)-t.JSC$22897_overlayMarginLeft;
E=E<0?t.JSC$22897_overlayWidth:Math.max(E,t.minOverlayWidth);return Math.round(E/t.requiredRatio)},$fG=function(t,E){switch(t.resizeCorner){case 2:E=t.canvas.width-t.JSC$22897_overlayMarginRight-Sr6(t,E);
break;case 4:E=t.canvas.width-t.JSC$22897_overlayMarginLeft-Sr6(t,E);break;case 1:E=t.canvas.width-t.JSC$22897_overlayMarginRight-c3U(t,E);break;case 3:E=t.canvas.width-t.JSC$22897_overlayMarginLeft-c3U(t,E);break;default:throw Error("mm");}return Math.max(E,t.horizontalMargin)},Sr6=function(t,E){E=t.canvas.height-Math.max(t.canvas.height-E,t.canvasMargin)-t.JSC$22897_overlayMarginTop;
return E<0?t.JSC$22897_overlayWidth:Math.max(Math.round(E*t.requiredRatio),t.minOverlayWidth)},c3U=function(t,E){E=t.JSC$22897_overlayMarginTop+t.JSC$22897_overlayHeight-Math.max(E,t.canvasMargin);
return E<0?t.JSC$22897_overlayWidth:Math.max(Math.round(E*t.requiredRatio),t.minOverlayWidth)},Frc=function(t){t.ctx.clearRect(0,0,t.canvas.width,t.canvas.height);
t.ctx.drawImage(t.image,0,0,t.image.width,t.image.height,t.horizontalMargin,t.canvasMargin,t.canvas.width-2*t.horizontalMargin,t.scaledImageHeight);t.ctx.fillStyle="rgba(0, 0, 0, 0.7)";t.ctx.fillRect(t.horizontalMargin,t.JSC$22897_overlayMarginTop,t.JSC$22897_overlayMarginLeft-t.horizontalMargin,t.JSC$22897_overlayHeight);t.ctx.fillRect(t.JSC$22897_overlayMarginLeft+t.JSC$22897_overlayWidth,t.JSC$22897_overlayMarginTop,t.JSC$22897_overlayMarginRight-t.horizontalMargin,t.JSC$22897_overlayHeight);t.ctx.fillRect(t.horizontalMargin,
t.canvasMargin,t.scaledImageWidth,t.JSC$22897_overlayMarginTop-t.canvasMargin);t.ctx.fillRect(t.horizontalMargin,t.JSC$22897_overlayMarginTop+t.JSC$22897_overlayHeight,t.scaledImageWidth,t.JSC$22897_overlayMarginBottom-t.canvasMargin);t.drawOverlay();t.component&&_.kT(t.component,"image-updated")};
fe.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$22897_overlayMarginLeft,this.JSC$22897_overlayMarginTop,this.JSC$22897_overlayWidth,this.JSC$22897_overlayHeight);tgU(this)};
var tgU=function(t){var E=t.JSC$22897_overlayMarginLeft-5,p=t.JSC$22897_overlayMarginTop-5,U=t.JSC$22897_overlayMarginLeft+t.JSC$22897_overlayWidth-5,x=t.JSC$22897_overlayMarginTop+t.JSC$22897_overlayHeight-5;t.ctx.fillStyle="#FFF";t.ctx.fillRect(E,p,10,10);t.ctx.strokeRect(E,p,10,10);t.ctx.fillRect(U,p,10,10);t.ctx.strokeRect(U,p,10,10);t.ctx.fillRect(E,x,10,10);t.ctx.strokeRect(E,x,10,10);t.ctx.fillRect(U,x,10,10);t.ctx.strokeRect(U,x,10,10);if(t.focusedCorner!==0&&t.styleFocusedCorner){t.ctx.lineWidth=
4;t.ctx.strokeStyle="#3EA6FF";switch(t.focusedCorner){case 1:--E;--p;break;case 2:--E;p=x-1;break;case 3:E=U-1;--p;break;case 4:E=U-1;p=x-1;break;default:return}t.ctx.strokeRect(E,p,12,12)}};
fe.prototype.crop=function(t,E){E=E===void 0?!0:E;var p=this.image.width/this.scaledImageWidth,U=document.createElement("canvas"),x=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],A=this.JSC$22897_overlayWidth*p,m=this.JSC$22897_overlayHeight*p;U.width=Math.max(A,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);U.height=Math.max(m,x);t&&(U.width=Math.min(U.width,U.height),U.height=Math.min(U.width,U.height));
t=U.getContext("2d");if(!t)throw Error("am");x=(this.JSC$22897_overlayMarginLeft-this.horizontalMargin)*p;p*=this.JSC$22897_overlayMarginTop-this.canvasMargin;E||(t.fillStyle="white",t.fillRect(0,0,U.width,U.height));t.drawImage(this.image,x,p,A,m,0,0,U.width,U.height);return U};var EeG=function(t,E,p,U,x){fe.call(this,t,E,p,U,void 0,x,8,!1)};
_.u(EeG,fe);EeG.prototype.drawOverlay=function(){var t=this.getContext(),E=this.JSC$22897_overlayWidth,p=this.JSC$22897_overlayHeight,U=this.JSC$22897_overlayMarginTop,x=this.JSC$22897_overlayMarginLeft;t.lineWidth=2;t.strokeStyle="#3EA6FF";t.beginPath();t.arc(x+E/2,U+p/2,E/2,0,2*Math.PI);t.stroke();t.strokeRect(x,U,E,p);tgU(this)};
var pK6={maxFileSizeMB:15,minWidth:98,minHeight:98},ULI=["image/png","image/jpeg","image/gif"],Ba=function(){var t=_.z.apply(this,arguments)||this;t.fileSelectorFocusListener=null;t.errorMessage=null;t.isLoading=!0;t.hideContainer=!0;t.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return t};
_.u(Ba,_.z);_.Y=Ba.prototype;_.Y.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.Y.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.Y.computePlaylistThumbnail=function(t){return t==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.Y.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.du(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.Y.setErrorState=function(t){this.resetErrorState();t&&(this.errorMessage=t)};
_.Y.showPopup=function(){var t=this;this.hideContainer=!1;_.E_(_.ir,function(){_.kT(t.hostElement,"yt-refit")});
this.isLoading=!1};
_.Y.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.Y.closePopup=function(){this.resetFileSelector();_.du(this.hostElement,"yt-close-popup-action",[this.is])};
_.Y.onCancelTap=function(){this.isPlaylistThumbnail||_.du(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.Y.openFileSelector=function(){var t=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.E_(_.ir,function(){setTimeout(function(){if(!t.fileSelector.files||t.fileSelector.files.length===0)t.onCancelTap();t.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(E){E instanceof Error?_.bV(E):_.iV(new _.cC(JSON.stringify(E)))}};
_.Y.handleFileSelection=function(){var t=this,E,p,U,x,A,m;return _.q(function(b){switch(b.nextAddress){case 1:_.aR(b,2);if(!t.fileSelector.files||!t.imageEditorCanvas)return t.onCancelTap(),b.return();E=t.fileSelector.files[0];Zs6(t.imageChecker,E);_.aR(b,4);return b.yield(TI7(E),6);case 6:t.mimeType=b.yieldResult;_.r7(b,5,2);break;case 4:_.nB(b,2),_.du(t.hostElement,"yt-image-selection-error-action",[(p=t.data)==null?void 0:p.genericImageLoadErrorMessage]),t.onCancelTap();case 5:U=new FileReader;
U.addEventListener("load",function(){var f,B;return _.q(function(R){if(R.nextAddress==1){if(!U.result)return _.qW(Error("cm")),R.return();f=U.result;B=new Image;B.src=f;B.onload=function(){try{var V=t.imageChecker;if(B.width<V.requirements.minWidth||B.height<V.requirements.minHeight)throw new ITt(V.requirements.minWidth,V.requirements.minHeight);}catch(C){if(C instanceof ITt){var Q;_.du(t.hostElement,"yt-image-selection-error-action",[(Q=t.data)==null?void 0:Q.imageDimensionErrorMessage]);t.logImageDimensionErrorVe()}else C instanceof
Error?_.bV(C):(V=new _.cC(JSON.stringify(C)),_.bV(V));t.onCancelTap()}t.showPopup()};
B.onerror=function(){var V;_.du(t.hostElement,"yt-image-selection-error-action",[(V=t.data)==null?void 0:V.genericImageLoadErrorMessage]);t.onCancelTap()};
return R.yield(eok(t.imageEditorCanvas,f),2)}t.imageEditor=R.yieldResult;t.updatePositionOfAllCorners();t.addEventListeners(t.imageEditor);_.Do(R)})},!1);
U.readAsDataURL(E);_.r7(b,0);break;case 2:x=_.nB(b),x instanceof J3G?_.du(t.hostElement,"yt-image-selection-error-action",[(A=t.data)==null?void 0:A.imageSizeErrorMessage]):(x instanceof Error?_.bV(x):_.iV(new _.cC(JSON.stringify(x))),_.du(t.hostElement,"yt-image-selection-error-action",[(m=t.data)==null?void 0:m.genericImageLoadErrorMessage])),t.onCancelTap(),_.Do(b)}})};
_.Y.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var t=_.L4(_.Pu(),{veType:232707,visualElement:_.h8(232707)});t&&(t={visualElement:t},_.sl().reportShown(t))}};
_.Y.handleImageSelectionErrorAction=function(t){this.isPlaylistThumbnail&&_.TU$(this.hostElement,t)};
_.Y.convertToImageFormatBundle=function(t){var E=this,p,U,x;return _.q(function(A){switch(A.nextAddress){case 1:return p=t.toDataURL(E.outputMimeType,1),A.yield(oue(p),2);case 2:U=A.yieldResult;_.aR(A,3);Zs6(E.imageChecker,U);_.r7(A,4);break;case 3:x=_.nB(A);if(!(x instanceof J3G))throw x;_.qW(new _.cC("Output size is bigger than input size for image",E.mimeType,E.outputMimeType,U.size));p=t.toDataURL("image/jpeg",.95);return A.yield(oue(p),6);case 6:U=A.yieldResult;case 4:return A.return({dataUrl:p,
imageFile:U})}})};
_.Y.handleUploadImageToScottyCommand=function(t){var E=this,p,U,x,A,m,b,f,B,R,V;return _.q(function(Q){switch(Q.nextAddress){case 1:if(!E.imageEditor||!_.k(t,s2C))return Q.return();p=_.k(t,s2C).scottyUploadUrl;if(!p){var C=new _.cC("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.bV(C);return Q.return()}_.aR(Q,2);E.setLoadingState();U=E.imageEditor.crop(!1,!1);return Q.yield(E.convertToImageFormatBundle(U),4);case 4:return x=Q.yieldResult,Q.yield(LFL(x.imageFile,p),5);
case 5:A=Q.yieldResult;((m=E.data)==null?0:m.onUploadEndpoint)?(b=E.buildUploadServiceEndpoint(A),E.ytComponentBehavior.resolveCommand(b),f=_.k(b,_.HH),((B=f)==null?0:B.params)?E.closePopup():E.resetFileSelector()):(_.du(E.hostElement,"yt-image-updated-action",[x.dataUrl,A]),E.closePopup());_.r7(Q,0);break;case 2:R=_.nB(Q),E.setErrorState((V=E.data)==null?void 0:V.uploadErrorMessage),R instanceof Error?_.bV(R):(C=new _.cC(JSON.stringify(R)),_.bV(C)),_.Do(Q)}})};
_.Y.buildUploadServiceEndpoint=function(t){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",t),this.data.onUploadEndpoint):null};
_.Y.dataChanged=function(){var t=this,E;return _.q(function(p){if(p.nextAddress==1){if(!t.data||!t.canvasElement)return p.return();t.data.imageRatio&&t.data.minImageCropWidth||_.iV(new _.cC("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));E=function(U,x){return t.data.imageType==="IMAGE_TYPE_AVATAR"?new EeG(U,x,t.data.imageRatio,[t.data.minImageCropWidth,t.data.minImageCropWidth/t.data.imageRatio],t.hostElement):new fe(U,x,t.data.imageRatio,[t.data.minImageCropWidth,
t.data.minImageCropWidth/t.data.imageRatio],void 0,t.hostElement,8,!1)};
t.imageEditorCanvas=new OsG(t.canvasElement,E);return t.data.url?p.yield(eok(t.imageEditorCanvas,t.data.url),3):(t.hideContainer=!0,t.openFileSelector(),p.jumpTo(0))}t.imageEditor=p.yieldResult;t.showPopup();t.addEventListeners(t.imageEditor);_.Do(p)})};
_.Y.addEventListeners=function(t){this.removeEventListeners();var E=function(x){XpU(t,x)};
this.JSC$22905_mouseDownEvent=E;var p=function(x){hoC(t,x)};
this.JSC$22905_mouseMoveEvent=p;var U=function(){aTI(t)};
this.JSC$22905_mouseUpEvent=U;this.topLeftCorner.addEventListener("mousedown",E);this.topLeftCorner.addEventListener("mousemove",p);this.topLeftCorner.addEventListener("mouseup",U);this.topRightCorner.addEventListener("mousedown",E);this.topRightCorner.addEventListener("mousemove",p);this.topRightCorner.addEventListener("mouseup",U);this.bottomLeftCorner.addEventListener("mousedown",E);this.bottomLeftCorner.addEventListener("mousemove",p);this.bottomLeftCorner.addEventListener("mouseup",U);this.bottomRightCorner.addEventListener("mousedown",
E);this.bottomRightCorner.addEventListener("mousemove",p);this.bottomRightCorner.addEventListener("mouseup",U)};
_.Y.removeEventListeners=function(){this.JSC$22905_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$22905_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$22905_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$22905_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$22905_mouseDownEvent));this.JSC$22905_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$22905_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$22905_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$22905_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$22905_mouseMoveEvent));this.JSC$22905_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$22905_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$22905_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$22905_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$22905_mouseUpEvent))};
_.Y.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var t=document.activeElement;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;switch(t){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};
_.Y.updatePositionOfCorner=function(t,E){var p=t.y-E.offsetHeight/2+4;E.style.left=t.x-E.offsetWidth/2+16+"px";E.style.top=p+"px"};
_.Y.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var t=_.M([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),E=t.next();!E.done;E=t.next()){E=E.value;var p=GX8(this.imageEditor,E.corner);this.updatePositionOfCorner(p,E.div)}};
_.Y.onLeft=function(t){this.imageEditor&&this.setFocusInImageEditor()&&(NZG(this.imageEditor,0),this.updatePositionOfAllCorners(),t.preventDefault())};
_.Y.onRight=function(t){this.imageEditor&&this.setFocusInImageEditor()&&(NZG(this.imageEditor,1),this.updatePositionOfAllCorners(),t.preventDefault())};
_.Y.onUp=function(t){this.imageEditor&&this.setFocusInImageEditor()&&(NZG(this.imageEditor,2),this.updatePositionOfAllCorners(),t.preventDefault())};
_.Y.onDown=function(t){this.imageEditor&&this.setFocusInImageEditor()&&(NZG(this.imageEditor,3),this.updatePositionOfAllCorners(),t.preventDefault())};
_.Y.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.aE.Object.defineProperties(Ba.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&ULI.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var t,E,p;((E=this.data)==null?0:E.imageRatio)&&((p=this.data)==null?0:p.minImageCropWidth)?t={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:t=pK6;return new gmI(t)}}});
Ba.prototype.updatePositionOfAllCorners=Ba.prototype.updatePositionOfAllCorners;Ba.prototype.dataChanged=Ba.prototype.dataChanged;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Ba.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Ba.prototype,"ytComponentBehavior",void 0);_.N([_.g(_.ou),_.P("design:type",Object)],Ba.prototype,"ironA11yKeysBehavior",void 0);
_.N([_.Nl("#canvas"),_.P("design:type",HTMLCanvasElement)],Ba.prototype,"canvasElement",void 0);_.N([_.Nl("#file-selector"),_.P("design:type",HTMLInputElement)],Ba.prototype,"fileSelector",void 0);_.N([_.Nl("#top-left-corner"),_.P("design:type",HTMLDivElement)],Ba.prototype,"topLeftCorner",void 0);_.N([_.Nl("#top-right-corner"),_.P("design:type",HTMLDivElement)],Ba.prototype,"topRightCorner",void 0);
_.N([_.Nl("#bottom-left-corner"),_.P("design:type",HTMLDivElement)],Ba.prototype,"bottomLeftCorner",void 0);_.N([_.Nl("#bottom-right-corner"),_.P("design:type",HTMLDivElement)],Ba.prototype,"bottomRightCorner",void 0);_.N([_.e(),_.P("design:type",Object)],Ba.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Ba.prototype,"errorMessage",void 0);_.N([_.e(),_.P("design:type",Object)],Ba.prototype,"isLoading",void 0);_.N([_.e(),_.P("design:type",Object)],Ba.prototype,"hideContainer",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.P("design:type",Boolean)],Ba.prototype,"isPlaylistThumbnail",void 0);_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],Ba.prototype,"dataChanged",null);_.N([_.lc("image-updated"),_.lc("yt-refit"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ba.prototype,"updatePositionOfAllCorners",null);
_.N([_.p4({is:"yt-image-editor-renderer",disableElementRegistration:!0})],Ba);
_.G(Ba,"yt-image-editor-renderer",function(){if(u4C===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;dfI===void 0&&(dfI=document.createElement("template"));var U=dfI;p.call(E,U.content.cloneNode(!0),t.content.firstChild);u4C=t}t=u4C;return t},{mode:2});var xLt;var Ad8;var wB=function(){return _.z.apply(this,arguments)||this};
_.u(wB,_.z);wB.prototype.updateMinutesFromBinding=function(t){this.handleMinutesChanged&&this.handleMinutesChanged(t)};
wB.prototype.updateSecondsFromBinding=function(t){this.handleSecondsChanged&&this.handleSecondsChanged(t)};
wB.prototype.updateDescriptionFromBinding=function(t){this.handleDescriptionChanged&&this.handleDescriptionChanged(t)};
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],wB.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],wB.prototype,"data",void 0);_.N([_.e(),_.P("design:type",String)],wB.prototype,"minutes",void 0);_.N([_.e(),_.P("design:type",String)],wB.prototype,"seconds",void 0);_.N([_.e(),_.P("design:type",String)],wB.prototype,"description",void 0);_.N([_.e(),_.P("design:type",Function)],wB.prototype,"handleMinutesChanged",void 0);
_.N([_.e(),_.P("design:type",Function)],wB.prototype,"handleSecondsChanged",void 0);_.N([_.e(),_.P("design:type",Function)],wB.prototype,"handleDescriptionChanged",void 0);_.N([_.e(),_.P("design:type",Number)],wB.prototype,"characterLimit",void 0);_.N([_.e(),_.P("design:type",Number)],wB.prototype,"textNumRows",void 0);_.N([_.p4({is:"yt-report-details-form-content",disableElementRegistration:!0})],wB);
_.G(wB,"yt-report-details-form-content",function(){if(Ad8===void 0){var t=document.createElement("template");_.J(t,'\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>');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;xLt===void 0&&(xLt=document.createElement("template"));var U=xLt;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Ad8=t}t=Ad8;return t},{mode:2});var YCS;var Mgc;var RM=function(){var t=_.z.apply(this,arguments)||this;t.updateMinutesFromBinding=function(E){t.minutes=E.detail.value};
t.updateSecondsFromBinding=function(E){t.seconds=E.detail.value};
t.updateDescriptionFromBinding=function(E){t.description=E.detail.value};
return t};
_.u(RM,_.z);_.Y=RM.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.Y.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"}}}};
_.Y.ready=function(){_.ZN(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.Y.onSubmitYtAction=function(t){var E=t.detail;E.actionName==="yt-service-request"&&(E=E.args[1],E.flagEndpoint&&(t.stopPropagation(),this.refireAction(E)))};
_.Y.refireAction=function(t){var E={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(E.vss_id=this.vssId);_.JZ(this.hostElement,[t,E]);this.submitDisabled=!0};
_.Y.dataChanged=function(){var t=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var E=_.k1();E&&E.getPlayerPromise().then(function(p){var U=p.getOption("cc","track")||p.getOption("captions","track");U&&(t.vssId=U.vss_id);p=p.getCurrentTime();t.minutes=Math.floor(p/60).toString();t.seconds=(Math.floor(p)%60).toString()})};
_.Y.updateSubmitButtonState=function(){var t;((t=this.data)==null?0:t.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==="")};
_.Y.onYtServiceRequestCompleted=function(){_.du(this.hostElement,"yt-close-popup-action")};
_.Y.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.aE.Object.defineProperties(RM.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var t;return((t=this.data)==null?void 0:t.textNumRows)||4}}});
RM.prototype.onYtServiceRequestError=RM.prototype.onYtServiceRequestError;RM.prototype.onYtServiceRequestCompleted=RM.prototype.onYtServiceRequestCompleted;RM.prototype.updateSubmitButtonState=RM.prototype.updateSubmitButtonState;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],RM.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],RM.prototype,"ytRendererBehavior",void 0);
_.N([_.e({observer:"dataChanged"}),_.P("design:type",Object)],RM.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Boolean)],RM.prototype,"submitDisabled",void 0);_.N([_.e(),_.P("design:type",String)],RM.prototype,"minutes",void 0);_.N([_.e(),_.P("design:type",String)],RM.prototype,"seconds",void 0);_.N([_.e(),_.P("design:type",String)],RM.prototype,"description",void 0);_.N([_.e(),_.P("design:type",String)],RM.prototype,"vssId",void 0);
_.N([_.e({value:_.qO("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.P("design:type",Boolean)],RM.prototype,"isMusic",void 0);_.N([_.Z("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],RM.prototype,"characterLimit",null);_.N([_.Z("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],RM.prototype,"textNumRows",null);
_.N([_.P3("minutes","seconds","description","submitDisabled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],RM.prototype,"updateSubmitButtonState",null);_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],RM.prototype,"onYtServiceRequestCompleted",null);
_.N([_.lc("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],RM.prototype,"onYtServiceRequestError",null);_.N([_.p4({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],RM);
_.G(RM,"yt-report-details-form-renderer",function(){if(Mgc===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;YCS===void 0&&(YCS=document.createElement("template"));var U=YCS;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Mgc=t}t=Mgc;return t});var mLI;var blw;var ilG;var qC6;var Vv=function(){return _.z.apply(this,arguments)||this};
_.u(Vv,_.z);
Vv.prototype.onCheckedChanged_=function(){if(this.data){var t=_.ZN(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.du(this.hostElement,"yt-additional-detail-checkbox-update",[t]):this.data.identifier==="yt-hide-user-checkbox"?_.du(this.hostElement,"yt-hide-user-checkbox-update",[t]):t&&this.data.enableCommand?_.du(this.hostElement,"yt-modify-report-form-command",[_.k(this.data.enableCommand,oge)]):!t&&this.data.disableCommand&&_.du(this.hostElement,
"yt-modify-report-form-command",[_.k(this.data.enableCommand,oge)])}};
Vv.prototype.onLabelTap_=function(t){t.target.tagName!="A"&&(_.ZN(this.hostElement).querySelector("#checkbox").checked=!_.ZN(this.hostElement).querySelector("#checkbox").checked)};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Vv.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Vv.prototype,"data",void 0);_.N([_.p4({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],Vv);
_.G(Vv,"yt-boolean-form-field-v2-renderer",function(){if(qC6===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;ilG===void 0&&(ilG=document.createElement("template"));var U=ilG;p.call(E,U.content.cloneNode(!0),t.content.firstChild);qC6=t}t=qC6;return t});var Qv=function(){var t=_.z.apply(this,arguments)||this;t.canShowAdditionalDetailCheckbox=!1;t.canShowCheckbox=!1;t.keepDropdownFocusedAfterSelection=!0;return t};
_.u(Qv,_.z);Qv.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}}}}};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Qv.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Qv.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Qv.prototype,"canShowAdditionalDetailCheckbox",void 0);_.N([_.e(),_.P("design:type",Object)],Qv.prototype,"canShowCheckbox",void 0);_.N([_.e(),_.P("design:type",Object)],Qv.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.N([_.p4({is:"yt-report-form-modal-content",disableElementRegistration:!0})],Qv);
_.G(Qv,"yt-report-form-modal-content",function(){if(blw===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;mLI===void 0&&(mLI=document.createElement("template"));var U=mLI;p.call(E,U.content.cloneNode(!0),t.content.firstChild);blw=t}t=blw;return t},{mode:2});var Hl$;var f9G;var Ce=function(){var t=_.z.apply(this,arguments)||this;t.submitting=!1;t.submitButtonDisabled=!0;t.command=null;t.canShowCheckbox=!1;t.canShowAdditionalDetailCheckbox=!1;t.canShowNextButton=!1;t.additionalDetailCheckboxChecked=!1;t.refitJob=0;t.keepDropdownFocusedAfterSelection=!0;t.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 t};
_.u(Ce,_.z);_.Y=Ce.prototype;_.Y.created=function(){this.refitJob=0};
_.Y.attached=function(){this.JSC$22928_scroller&&(this.JSC$22928_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22928_scroller.attached&&typeof this.JSC$22928_scroller.attached==="function"&&this.JSC$22928_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.dataChanged=function(t){t&&(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,t.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),t.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.Y.onYtPopupOpened=function(){var t=_.k1();t&&t.getPlayerPromise().then(function(E){E.pauseVideo()})};
_.Y.onYtNavigate=function(t){_.k(t.detail.endpoint,_.xio)&&(t.stopPropagation(),this.hideReportForm=!0)};
_.Y.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.Y.onYtServiceRequestCompleted=function(t,E){var p=E.actions;if(p){if(p.length===1&&_.k(p[0],_.ZU)){var U;p=((U=_.k(p[0],_.ZU))==null?void 0:U.commands)||[]}U=0;for(var x=p.length;U<x;U++)_.k(p[U],_.cU)&&(t.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(p[U]))}if(E.data&&(t=this.get("feedbackResponses",E.data)))for(E=0;E<t.length;E++)if(t[E].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.Y.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.Y._onDescendantIronResize=function(t){t.stopPropagation();return!1};
_.Y.handleReportFormEndpointUpdateAction=function(t){if(t.submitEndpoint){var E=this.command=t.submitEndpoint;E=_.k(E,_.UwX);if(E==null?0:E.additionalDetailCheckboxChecked)E.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else t.submitNavigationEndpoint?(this.command=t.submitNavigationEndpoint,this.toggleSubmitButton(!1)):t.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:t.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;t.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",t));this.refit()};
_.Y.handleConfirmDialogCloseAction=function(t){t.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.Y.submitButtonDisabledChanged=function(){var t=this.hostElement.parentElement;t&&t.invalidateTabbables&&t.invalidateTabbables()};
_.Y.handleModifyReportFormCommand=function(t){t=this.get("action",t);t==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:t==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:t==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:t==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:t==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:t==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.Y.updateDialogStyling=function(){var t,E,p,U,x,A=((x=(t=this.data)==null?void 0:(E=t.optionsSupportedRenderers)==null?void 0:(p=E.optionsRenderer)==null?void 0:(U=p.items)==null?void 0:U.length)!=null?x:0)<=2?0:240;_.eU(this.hostElement,{"--yt-report-form-modal-renderer-min-width":A+"px"})};
_.Y.toggleSubmitButton=function(t){this.submitButtonDisabled=!t;this.submitButtonDisabled=t};
_.Y.computeSubmitButtonData=function(t,E){var p={};_.k(E,_.xio)?p.navigationEndpoint=E:p.command=E||void 0;t&&t.buttonRenderer&&_.Kq.extend(p,t.buttonRenderer);return p};
_.Y.computeNextButtonData=function(t,E){var p={};if(!t||!t.buttonRenderer)return p;_.Kq.extend(p,t.buttonRenderer);if(!E)return p;if(_.k(E,_.xio))p.navigationEndpoint=JY5(E);else if(p.command=JY5(E),t=_.k(p.command,_.UwX))t.legalCheckboxChecked=!0;return p};
_.Y.computeShowNextButton=function(t,E,p){return!!t&&E&&p};
_.Y.refit=function(){var t=this;this.refitJob||(this.refitJob=_.ir.addLowPriorityJob(function(){_.kT(t.hostElement,"yt-refit");t.refitJob=0}))};
_.Y.handleAdditionalDetailCheckboxUpdateAction=function(t){this.additionalDetailCheckboxChecked=t;_.k(this.command,_.UwX).additionalDetailCheckboxChecked=t};
_.aE.Object.defineProperties(Ce,{template:{configurable:!0,enumerable:!0,get:function(){if(f9G===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;Hl$===void 0&&(Hl$=document.createElement("template"));var U=Hl$;p.call(E,U.content.cloneNode(!0),t.content.firstChild);f9G=t}t=f9G;return t}}});
Ce.prototype.onYtServiceRequestError=Ce.prototype.onYtServiceRequestError;Ce.prototype.onYtServiceRequestCompleted=Ce.prototype.onYtServiceRequestCompleted;Ce.prototype.onYtServiceRequestSent=Ce.prototype.onYtServiceRequestSent;Ce.prototype.onYtNavigate=Ce.prototype.onYtNavigate;Ce.prototype.onYtPopupOpened=Ce.prototype.onYtPopupOpened;_.N([_.g(_.Pg.YtOpenPopupBehavior),_.P("design:type",Object)],Ce.prototype,"openPopupBehavior",void 0);
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ce.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Ce.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],Ce.prototype,"eventForwardingBehavior",void 0);_.N([_.g(_.Ev),_.P("design:type",Object)],Ce.prototype,"ironResizableBehavior",void 0);_.N([_.e({observer:"dataChanged"}),_.P("design:type",Object)],Ce.prototype,"data",void 0);
_.N([_.e(),_.P("design:type",Object)],Ce.prototype,"submitting",void 0);_.N([_.e({observer:"submitButtonDisabledChanged"}),_.P("design:type",Object)],Ce.prototype,"submitButtonDisabled",void 0);_.N([_.e(),_.P("design:type",Object)],Ce.prototype,"command",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],Ce.prototype,"hideReportForm",void 0);_.N([_.e(),_.P("design:type",Object)],Ce.prototype,"canShowCheckbox",void 0);
_.N([_.e(),_.P("design:type",Object)],Ce.prototype,"canShowAdditionalDetailCheckbox",void 0);_.N([_.e(),_.P("design:type",Object)],Ce.prototype,"canShowNextButton",void 0);_.N([_.e(),_.P("design:type",Object)],Ce.prototype,"additionalDetailCheckboxChecked",void 0);_.N([_.e(),_.P("design:type",Object)],Ce.prototype,"refitJob",void 0);_.N([_.e(),_.P("design:type",Object)],Ce.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.N([_.Nl("#scroller"),_.P("design:type",Object)],Ce.prototype,"JSC$22928_scroller",void 0);_.N([_.lc("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ce.prototype,"onYtPopupOpened",null);_.N([_.lc("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Ce.prototype,"onYtNavigate",null);
_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.m8]),_.P("design:returntype")],Ce.prototype,"onYtServiceRequestSent",null);_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Rn]),_.P("design:returntype")],Ce.prototype,"onYtServiceRequestCompleted",null);
_.N([_.lc("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Ce.prototype,"onYtServiceRequestError",null);_.N([_.p4({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],Ce);var Bt2;var wK$;var ja=function(){return _.z.apply(this,arguments)||this};
_.u(ja,_.z);_.Y=ja.prototype;_.Y.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.Y.onVisible=function(){var t,E;(E=_.X3().resolve(_.OB(_.Xg)))==null||E.enqueue({label:_.R4((t=this.data)==null?void 0:t.messageTitle),elementToFocus:this.hostElement})};
_.Y.onThumbnailLoaded=function(){_.kT(this.hostElement,"yt-refit")};
_.Y.onDismissTap=function(){_.du(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.Y.computeAlternateIcon=function(t){return t?t==="BACKSTAGE_ARTWORK"?"backstage:artwork":t:null};
_.Y.computeFontFamily=function(t){return t==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.Y.computeBackgroundStyle=function(t,E){if(t=this.computeBackgroundImage(t,E))if(t=_.uz(t.thumbnails))return'background-image: url("'+t+'");'};
_.Y.computeHasFullHeightImage=function(t){return!(!(t&&t.thumbnails&&t.thumbnails.length>0)||this.modern)};
_.Y.isModernStyle=function(t){return t.style==="STYLE_MODERN"};
_.Y.computeIcon=function(t,E){if(t&&t.icon)return E?t.iconDark:t.icon};
_.Y.computeBackgroundImage=function(t,E){if(t&&t.backgroundImage)return E?t.backgroundImageDark:t.backgroundImage};
_.Y.computeLogo=function(t,E){if(t&&t.logo)return E?t.logoDark:t.logo};
_.Y.computeShouldShowModernIcon=function(t,E){return t&&!!E};
_.Y.getLogoContainerClassName=function(t){return this.logoWithPadding(t)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.Y.getLogoImageId=function(t){return this.logoWithPadding(t)?"mealbar-logo-with-padding":"mealbar-logo"};
_.Y.logoWithPadding=function(t){var E,p,U;return(t=(E=this.computeLogo(t,this.isDarkTheme))==null?void 0:(p=E.thumbnails)==null?void 0:(U=p[0])==null?void 0:U.height)&&t%31===0?!0:!1};
ja.prototype.onThumbnailLoaded=ja.prototype.onThumbnailLoaded;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],ja.prototype,"ytRendererBehavior",void 0);_.N([_.e({}),_.P("design:type",Object)],ja.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.P("design:type",Boolean)],ja.prototype,"modern",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],ja.prototype,"isDarkTheme",void 0);
_.N([_.e({computed:"computeIcon(data, isDarkTheme)"}),_.P("design:type",Object)],ja.prototype,"icon",void 0);_.N([_.e({computed:"computeLogo(data, isDarkTheme)"}),_.P("design:type",Object)],ja.prototype,"logo",void 0);_.N([_.e({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.P("design:type",Object)],ja.prototype,"backgroundStyle",void 0);_.N([_.e({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.P("design:type",Object)],ja.prototype,"alternateIcon",void 0);
_.N([_.e({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.P("design:type",Boolean)],ja.prototype,"hasFullHeightImage",void 0);_.N([_.e({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.P("design:type",Boolean)],ja.prototype,"useYoutubeSans",void 0);_.N([_.e({computed:"computeShouldShowModernIcon(modern, icon)"}),_.P("design:type",Boolean)],ja.prototype,"shouldShowModernIcon",void 0);
_.N([_.lc("yt-img-shadow-loaded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ja.prototype,"onThumbnailLoaded",null);_.N([_.p4({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],ja);
_.G(ja,"yt-mealbar-promo-renderer",function(){if(wK$===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;Bt2===void 0&&(Bt2=document.createElement("template"));var U=Bt2;p.call(E,U.content.cloneNode(!0),t.content.firstChild);wK$=t}t=wK$;return t},{mode:2});var RbF;var Vg2;var rB=function(){return _.z.apply(this,arguments)||this};
_.u(rB,_.z);_.Y=rB.prototype;_.Y.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]]"}}}}}};
_.Y.computeHasButtons_=function(t){return!(!t.dismissButton&&!t.acceptButton)};
_.Y.computeStyle_=function(t){return t||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.Y.observeImpressionEndpoints_=function(){var t=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(E){E.clickTrackingParams&&delete E.clickTrackingParams;_.JZ(t.hostElement,[E])})};
_.Y.onTap_=function(){_.du(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
rB.prototype.observeImpressionEndpoints_=rB.prototype.observeImpressionEndpoints_;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],rB.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],rB.prototype,"ytEventForwardingBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],rB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],rB.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],rB.prototype,"positionType",void 0);_.N([_.e({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.P("design:type",Boolean)],rB.prototype,"hasButtons_",void 0);_.N([_.e({value:function(){return this.onTap_.bind(this)}}),
_.P("design:type",Function)],rB.prototype,"boundOnTap_",void 0);_.N([_.e({value:{style:"mono-inverse"}}),_.P("design:type",Object)],rB.prototype,"buttonOverride",void 0);_.N([_.GI("data.promoConfig.impressionEndpoints"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rB.prototype,"observeImpressionEndpoints_",null);_.N([_.p4({is:"yt-tooltip-renderer",disableElementRegistration:!0})],rB);
_.G(rB,"yt-tooltip-renderer",function(){if(Vg2===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;RbF===void 0&&(RbF=document.createElement("template"));var U=RbF;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Vg2=t}t=Vg2;return t},{mode:2});var QtC;var C8C;var jt2;var rd6;var ko=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-open-popup-action":"onOpen"};return t};
_.u(ko,_.z);_.Y=ko.prototype;_.Y.attached=function(){this.onOpen()};
_.Y.updateTimeSecs=function(t){this.currentTimeSecs=t};
_.Y.computeTimeString=function(t){t=t.toString();var E=Math.floor(Number(t)/3600),p=Math.floor(Number(t)%3600%60);return(E>0?E+":":"")+_.l3(Math.floor(Number(t)%3600/60),E>0?2:1)+":"+_.l3(p,2)};
_.Y.computeTimeStringA11y=function(t){return _.bEl({seconds:t})};
_.Y.getTimeParam=function(){return gZt(this.timeString)};
_.Y.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var t={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},E;_.$3(_.Pu(),(E=this.data)==null?void 0:E.trackingParams,t,7)};
_.Y.onChangeStartAtTimestamp=function(){for(var t=this.startAtTimestamp.value.split(":"),E=0,p=1,U=t.length-1;U>=0;U--)E+=Number(t[U])*p,p*=60;this.updateTimeSecs(E);this.setTimestamp()};
_.Y.onOpen=function(){var t=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var E=_.k1();E?E.getPlayerPromise().then(function(p){p=p.getCurrentTime();t.updateTimeSecs(p)}):GFt()&&this.updateTimeSecs(GFt())};
_.Y.setTimestamp=function(){var t=Math.floor(this.currentTimeSecs);_.du(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!t,timestamp:t||""}])};
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],ko.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],ko.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],ko.prototype,"data",void 0);_.N([_.e({value:!1,notify:!0}),_.P("design:type",Boolean)],ko.prototype,"isStartAtChecked",void 0);_.N([_.e(),_.P("design:type",Number)],ko.prototype,"currentTimeSecs",void 0);
_.N([_.e({computed:"computeTimeString(currentTimeSecs)"}),_.P("design:type",String)],ko.prototype,"timeString",void 0);_.N([_.e({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.P("design:type",String)],ko.prototype,"timeStringA11y",void 0);_.N([_.Nl("#start-at-timestamp"),_.P("design:type",Object)],ko.prototype,"startAtTimestamp",void 0);_.N([_.p4({is:"yt-start-at-renderer",disableElementRegistration:!0})],ko);
_.G(ko,"yt-start-at-renderer",function(){if(rd6===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;jt2===void 0&&(jt2=document.createElement("template"));var U=jt2;p.call(E,U.content.cloneNode(!0),t.content.firstChild);rd6=t}t=rd6;return t},{mode:2});var k5w={},dLG=(k5w.WEB_REMIX="music.youtube.com",k5w),dB=function(){var t=_.z.apply(this,arguments)||this;t.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return t};
_.u(dB,_.z);_.Y=dB.prototype;_.Y.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.created=function(){this.embedHost_=dLG[_.qO("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.Y.ready=function(){_.ZN(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.Y.computeEmbedCode_=function(t,E,p,U,x){if(!t)return"";var A=t.videoId,m=t.fullListId,b=[];t.attributionId&&b.push("si="+t.attributionId);U||b.push("controls=0");p&&Number(E)>0&&b.push("start="+E);m&&(A="videoseries",b.push("list="+m));p="https://"+(x?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+A;t.clipId&&(b.push("clip="+t.clipId),b.push("clipt="+t.clipTiming));E=b.length>0?p+"?"+b.join("&amp;"):p;t.encryptedEmbedConfig&&b.push("embed_config="+JSON.stringify({enc:t.encryptedEmbedConfig}));
b=b.length>0?p+"?"+b.join("&amp;"):p;_.r("web_sharing_embed_preview_killswitch")?_.ZN(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(b,t.previewWidth||854,t.previewHeight||480):(_.bk(this.videoPreviewContainer),_.ZN(this.videoPreviewContainer).appendChild(this.buildIframeElement(b)));return this.getEmbedCode_(E,t.width||560,t.height||315)};
_.Y.buildIframeElement=function(t){var E=document.createElement("iframe"),p,U;E.width=""+((U=(p=this.data)==null?void 0:p.previewWidth)!=null?U:854);var x,A;E.height=""+((A=(x=this.data)==null?void 0:x.previewHeight)!=null?A:480);_.mE(E,2,t);E.title="YouTube video player";E.frameBorder="0";E.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";E.referrerPolicy="strict-origin-when-cross-origin";E.allowFullscreen=!0;return E};
_.Y.computeIsSquareAspectRatio_=function(t){return t.previewHeight&&t.previewWidth?t.previewHeight==t.previewWidth:!1};
_.Y.computeShowEmbedOptions_=function(t){return!!t.enablePrivacyModeOptionLabel||!!t.showPlayerControlsOptionLabel};
_.Y.getEmbedCode_=function(t,E,p){return'<iframe width="'+E+'" height="'+p+'" src="'+t+'" 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>'};
_.Y.handleSignalActionCopyShareEmbedUrl_=function(){_.ZN(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.Y.handleSetTimestamp_=function(t){this.startAtTimeStamp_=(this.startAtChecked_=t.isSet)?t.timestamp:0};
_.Y.closePanel_=function(){_.du(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.Y.onEmbedCode_=function(){_.ZN(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.Y.onYtPopupClosed_=function(){_.bk(_.ZN(this.hostElement).querySelector("#video-preview"))};
_.Y.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.k(this.data.actionButtons[0],_.Ry)&&this.ytRendererBehavior.logExplicitClick(_.k(this.data.actionButtons[0],_.Ry))};
dB.prototype.onYtPopupClosed_=dB.prototype.onYtPopupClosed_;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],dB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],dB.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],dB.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],dB.prototype,"data",void 0);
_.N([_.e({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.P("design:type",String)],dB.prototype,"embedCode_",void 0);_.N([_.e({value:!0}),_.P("design:type",Boolean)],dB.prototype,"isPlayerControlsOptionChecked_",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],dB.prototype,"isPrivacyModeOptionChecked_",void 0);_.N([_.e({value:!1,notify:!0}),_.P("design:type",Boolean)],dB.prototype,"startAtChecked_",void 0);
_.N([_.e({value:0}),_.P("design:type",Number)],dB.prototype,"startAtTimeStamp_",void 0);_.N([_.e({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],dB.prototype,"isSquareAspectRatio_",void 0);_.N([_.Nl("#video-preview"),_.P("design:type",HTMLElement)],dB.prototype,"videoPreviewContainer",void 0);_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dB.prototype,"onYtPopupClosed_",null);
_.N([_.p4({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],dB);
_.G(dB,"yt-sharing-embed-renderer",function(){if(C8C===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;QtC===void 0&&(QtC=document.createElement("template"));var U=QtC;p.call(E,U.content.cloneNode(!0),t.content.firstChild);C8C=t}t=C8C;return t},{mode:2});var u7t;var JdC=function(){return _.z.apply(this,arguments)||this};
_.u(JdC,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],JdC.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],JdC.prototype,"data",void 0);_.N([_.p4({disableElementRegistration:!0,is:"yt-sender-id-section-renderer"})],JdC);
_.G(JdC,"yt-sender-id-section-renderer",function(){if(u7t===void 0){var t=document.createElement("template");_.J(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope yt-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);u7t=t}t=
u7t;return t},{mode:1});var I9I;var geU;var u1=function(){return _.z.apply(this,arguments)||this};
_.u(u1,_.z);u1.prototype.closePopup=function(){_.du(this.hostElement,"yt-close-popup-action")};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],u1.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],u1.prototype,"data",void 0);_.N([_.p4({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],u1);
_.G(u1,"yt-community-post-section-renderer",function(){if(geU===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;I9I===void 0&&(I9I=document.createElement("template"));var U=I9I;p.call(E,U.content.cloneNode(!0),t.content.firstChild);geU=t}t=geU;return t},{mode:2});var ZlG;var Olc;var XKI;var hb$;var a96;var eb6;var FoF=function(){return _.z.apply(this,arguments)||this};
_.u(FoF,_.z);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],FoF.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],FoF.prototype,"data",void 0);_.N([_.p4({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],FoF);
_.G(FoF,"yt-share-start-time-with-context-renderer",function(){if(eb6===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;a96===void 0&&(a96=document.createElement("template"));var U=a96;p.call(E,U.content.cloneNode(!0),t.content.firstChild);eb6=t}t=eb6;return t},{mode:2});var JK=function(){return _.z.apply(this,arguments)||this};
_.u(JK,_.z);JK.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],JK.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],JK.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],JK.prototype,"data",void 0);_.N([_.p4({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],JK);
_.G(JK,"yt-share-panel-title-v15-renderer",function(){if(hb$===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;XKI===void 0&&(XKI=document.createElement("template"));var U=XKI;p.call(E,U.content.cloneNode(!0),t.content.firstChild);hb$=t}t=hb$;return t},{mode:2});var IM=function(){return _.z.apply(this,arguments)||this};
_.u(IM,_.z);IM.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"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],IM.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],IM.prototype,"data",void 0);_.N([_.p4({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],IM);
_.G(IM,"yt-share-panel-header-renderer",function(){if(Olc===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;ZlG===void 0&&(ZlG=document.createElement("template"));var U=ZlG;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Olc=t}t=Olc;return t},{mode:2});var zb6;var l92;var G5U={};G5U.YtBindingExpressionsBehavior={identity:_.a0,msg:function(t,E){E=E===void 0?{}:E;return _.zF(t,E,t)},
msgPlural:function(t,E){return _.lO(t,E)},
getMusicIconFromType:function(t){return _.zh(t)}};var ne6;var Ntc;var DLC;var stF=document.head,Lo6=stF.appendChild,P8S;
if(DLC===void 0){var TtG=document.createElement("template");_.J(TtG,'\x3c!--css-build:shady--\x3e<svg style="position: absolute; height: 0; width: 0;" aria-hidden="true"><defs><clipPath id="android_messenger__a"><path fill="#fff" d="M0 0h192v192H0z"></path></clipPath><mask id="android_messenger__b" width="192" height="192" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:luminance"><path fill="#fff" d="M0 0h192v192H0z"></path></mask></defs></svg><iron-iconset-svg name="socialNetworks" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="socialNetworksRound" size="60"><svg><defs></defs></svg></iron-iconset-svg>');DLC=
TtG}P8S=DLC;Lo6.call(stF,P8S.content);var gB=function(){var t=_.z.apply(this,arguments)||this;t.screenLayer=7;return t};
_.u(gB,_.z);gB.prototype.getScreenLayer=function(){return this.screenLayer};
gB.prototype.onTap=function(t){t&&t.detail&&(t.detail.x||t.detail.y)&&_.ZN(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.JZ(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(t=this.getScreenLayer(),_.kT(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:t}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.aE.Object.defineProperties(gB.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()}}});
gB.prototype.onTap=gB.prototype.onTap;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],gB.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],gB.prototype,"ytComponentBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],gB.prototype,"data",void 0);_.N([_.Z("data.title"),_.P("design:type",Object),_.P("design:paramtypes",[])],gB.prototype,"title",null);
_.N([_.Z("data.serviceName"),_.P("design:type",String),_.P("design:paramtypes",[])],gB.prototype,"icon",null);_.N([_.lc("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],gB.prototype,"onTap",null);_.N([_.p4({is:"yt-share-target-renderer",disableElementRegistration:!0})],gB);
_.G(gB,"yt-share-target-renderer",function(){if(Ntc===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;ne6===void 0&&(ne6=document.createElement("template"));var U=ne6;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Ntc=t}t=Ntc;return t},{mode:2});var oet;var WoU;var Zi=function(){var t=_.z.apply(this,arguments)||this;t.SHARE_TARGET_WIDTH=70;t.SHARE_TARGET_MARGIN_RIGHT=8;t.PAGE_SCROLL_SPEED=9;t.actionMap={"yt-share-panel-reset-action":"onReset_"};return t};
_.u(Zi,_.z);_.Y=Zi.prototype;_.Y.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.Y.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.ZN(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.ZN(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.Y.onReset_=function(){if(_.ZN(this.hostElement).querySelector("#list")){var t=_.ZN(this.hostElement).querySelector("#list");var E=_.ZN(this.hostElement).querySelector("#list");var p=E.offsetLeft,U=E.offsetParent;U||_.igs(E)!="fixed"||(U=_.S2(E).documentElement);if(U){if(_.Ne&&!_.zm(58)){var x=_.Qv3(U);p+=x.left}else Number(_.GXW)>=8&&!(Number(_.GXW)>=9)&&(x=_.Qv3(U),p-=x.left);E=_.R7W(U)?U.clientWidth-(p+E.offsetWidth):p}else E=p;tfL(t,E);this.updateScrollButtons_()}};
_.Y.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.Y.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.Y.onScrollWheel_=function(t){t.stopPropagation();t.preventDefault();var E=cHJ(_.ZN(this.hostElement).querySelector("#list"));t=Math.abs(t.deltaX)>Math.abs(t.deltaY)?t.deltaX:t.deltaY;tfL(_.ZN(this.hostElement).querySelector("#list"),E+t);this.updateScrollButtons_()};
_.Y.smoothScrollByOnePage_=function(t){var E=_.ZN(this.hostElement).querySelector("#list"),p=(Math.floor(E.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,U=cHJ(E),x=p*(t?1:-1),A=this.PAGE_SCROLL_SPEED,m=this.updateScrollButtons_.bind(this),b=0,f;(function R(){b+=A;f=b/p*2;tfL(E,U+x*(f<1?f*f:-f*f+4*f-2));b<p?window.requestAnimationFrame(R):m()})()};
_.Y.updateScrollButtons_=function(){var t=cHJ(_.ZN(this.hostElement).querySelector("#list")),E=_.ZN(this.hostElement).querySelector("#list").scrollWidth-_.ZN(this.hostElement).querySelector("#list").clientWidth;_.ZN(this.hostElement).querySelector("#scroll-button-back").hidden=t<=0;_.ZN(this.hostElement).querySelector("#scroll-button-forward").hidden=t>=E};
Zi.prototype.onScrollWheel_=Zi.prototype.onScrollWheel_;Zi.prototype.onDataChanged_=Zi.prototype.onDataChanged_;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Zi.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Zi.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(G5U.YtBindingExpressionsBehavior),_.P("design:type",Object)],Zi.prototype,"ytBindingExpressionsBehavior",void 0);
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Zi.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Zi.prototype,"data",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Zi.prototype,"onDataChanged_",null);_.N([_.lc("wheel"),_.P("design:type",Function),_.P("design:paramtypes",[WheelEvent]),_.P("design:returntype")],Zi.prototype,"onScrollWheel_",null);
_.N([_.p4({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Zi);
_.G(Zi,"yt-third-party-share-target-section-renderer",function(){if(WoU===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;oet===void 0&&(oet=document.createElement("template"));var U=oet;p.call(E,U.content.cloneNode(!0),t.content.firstChild);WoU=t}t=WoU;return t},{mode:2});var Oz=function(){return _.z.apply(this,arguments)||this};
_.u(Oz,_.z);Oz.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"}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Oz.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Oz.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Oz.prototype,"data",void 0);_.N([_.p4({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],Oz);
_.G(Oz,"yt-third-party-network-section-renderer",function(){if(l92===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;zb6===void 0&&(zb6=document.createElement("template"));var U=zb6;p.call(E,U.content.cloneNode(!0),t.content.firstChild);l92=t}t=l92;return t},{mode:2});var $L$;_.k2(_.l(function(t){return _.H("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.H("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.H(_.sY,{data:function(){return t.data().firstPartyItems}},{listItemViewModel:_.jB})))},"jl"),"first-party-network-section-view-model",{props:{data:_.uu}});var Ko8=_.CG(["data:image/svg+xml;charset=UTF-8;base64,",""]),Xu=function(){var t=_.z.apply(this,arguments)||this;t.screenLayer=7;t.qrCodeEnabled=_.r("web_enable_sharing_qr_code");t.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return t};
_.u(Xu,_.z);_.Y=Xu.prototype;_.Y.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"yt-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.Y.attached=function(){this.JSC$22979_scroller&&(this.JSC$22979_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22979_scroller.attached&&typeof this.JSC$22979_scroller.attached==="function"&&this.JSC$22979_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.Y.onDataChanged=function(){var t=this,E;(E=this.data)!=null&&E.contents&&(this.hostElement.setAttribute("links-only","true"),_.h2(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.maybeRenderQrCode(this.shortUrl()),_.XE(this,function(){_.kT(t.hostElement,"yt-refit");t.focusSharePanelHeader()}))};
_.Y.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.Y.handleSetTimestamp=function(t){var E=this.shortUrl();t.isSet&&(E=_.jI(E,"t",t.timestamp));this.maybeRenderQrCode(E)};
_.Y.shortUrl=function(){var t,E=(t=this.data)==null?void 0:t.contents;if(E)for(t=0;t<E.length;t++){var p=void 0,U=void 0;if((p=E[t])==null?0:(U=p.thirdPartyNetworkSection)==null?0:U.copyLinkContainer){var x=U=p=void 0;return(x=_.k((p=E[t])==null?void 0:(U=p.thirdPartyNetworkSection)==null?void 0:U.copyLinkContainer,CLL))==null?void 0:x.shortUrl}}};
_.Y.maybeRenderQrCode=function(t){var E=this,p,U,x,A,m,b,f,B,R;return _.q(function(V){if(V.nextAddress==1){p=_.ZN(E.hostElement).querySelector("#qr-code");if(!E.qrCodeEnabled||!t)return p&&(p.style.display="none"),V.return();U=_.VjO(_.X3().resolve(_.lR),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});x=document.createElement("div");return typeof U==="function"?(U(x),V.jumpTo(2)):V.yield(U,3)}V.nextAddress!=2&&(A=V.yieldResult,A(x));f=(m=x)==null?void 0:(b=m.firstChild)==null?void 0:b.firstChild;
B=document.createElement("img");R=_.kcO(Ko8,btoa(f.outerHTML));B.onload=function(){var Q={canvas:p,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:B},C=new s4l;$Jd(C,t);KD9(C,!1,vz8(C));var d=C.modules,I=Object.assign({},HSt,Q);d=structuredClone(d);Q=d.length;var O,a=(O=I.canvas)!=null?O:document.createElement("canvas");O=I.cellSize;C=I.logo;var F,L=(F=I.logoSize)!=null?F:Math.floor(Q/4);Q%2!==L%2&&L++;var D=I.logoPadding,W=I.backgroundColor;F=Q*O;var K=
I.width,v=0;K&&(v=I.padding,v=Math.ceil(v*F/(K-v*2)),a.style.width=K+"px",a.style.height=K+"px");a.width!==F+v*2&&(a.width=F+v*2);a.height!==F+v*2&&(a.height=F+v*2);F=a.getContext("2d");I.autoClear&&F.clearRect(0,0,a.width,a.height);F.fillStyle=W;F.beginPath();F.roundRect(0,0,a.width,a.height,I.borderRadius);F.fill();F.save();F.translate(v,v);if(C)for(a=Math.floor(Q-L)/2-D,D=Math.floor(Q+L)/2+D,W=a;W<D;W++)for(K=a;K<D;K++)d[W][K]=!1;for(a=0;a<Q;a++)for(D=0;D<Q;D++)(a<7&&D<7||a<7&&D>=Q-7||a>=Q-7&&
D<7)&&(d[a][D]=!1);var YL;a=(YL=I.markerColor)!=null?YL:I.color;S5e(F,0,0,O,a);S5e(F,O*(Q-7),0,O,a);S5e(F,0,O*(Q-7),O,a);switch(I.cellStyle){case 0:YL=d;d=YL.length;a=I.cellSize;F.beginPath();for(D=0;D<d;D++)for(W=0;W<d;W++)YL[D][W]&&F.rect(D*a,W*a,a,a);F.fillStyle=I.color;F.fill();break;case 1:YL=d;d=YL.length;a=I.cellSize;D=a*I.relativeCircleSize;F.fillStyle=I.color;F.beginPath();for(I=0;I<d;I++)for(W=0;W<d;W++)YL[I][W]&&(F.beginPath(),F.ellipse((I+.5)*a,(W+.5)*a,D/2,D/2,0,0,2*Math.PI),F.fill());
F.fill();break;case 2:YL=d;d=YL.length;a=I.cellSize;F.fillStyle=I.color;I=[[1,1],[-1,1],[-1,-1],[1,-1]];F.beginPath();for(D=0;D<d;D++)for(W=0;W<d;W++)if(YL[D][W])F.roundRect(D*a,W*a,a,a,a/2),D+1<d&&YL[D+1][W]&&F.rect(D*a+a/2,W*a,a,a),W+1<d&&YL[D][W+1]&&F.rect(D*a,W*a+a/2,a,a);else{K=D*a+a/2;v=W*a+a/2;for(var bY=0;bY<4;bY++){var kL=_.M(I[bY]),R0=kL.next().value;kL=kL.next().value;D+R0>=0&&D+R0<d&&W+kL>=0&&W+kL<d&&YL[D+R0][W]&&YL[D][W+kL]&&YL[D+R0][W+kL]&&(R0=bY*Math.PI/2,kL=a/2,F.moveTo(K+kL*Math.cos(R0),
v+kL*Math.sin(R0)),F.arc(K,v,a/2,R0,R0+Math.PI/2,!1),F.lineTo(K+kL*(Math.cos(R0)-Math.sin(R0)),v+kL*(Math.cos(R0)+Math.sin(R0))),F.lineTo(K+kL*Math.cos(R0),v+kL*Math.sin(R0)))}}F.fill()}C&&F.drawImage(C,(Q-L)*O/2,(Q-L)*O/2,L*O,L*O);F.restore();p.style.removeProperty("display")};
B.src=_.$I(R);_.Do(V)})};
_.Y.hasCommunityPostRenderer=function(){var t,E,p,U;return!!((t=this.data)==null?0:(E=t.header)==null?0:(p=E.sharePanelHeaderRenderer)==null?0:(U=p.communityPost)==null?0:U.communityPostSectionRenderer)};
_.Y.onTapClose=function(){_.du(this.hostElement,"yt-close-popup-action",["yt-unified-share-panel-renderer"])};
_.Y.getScreenLayer=function(){return this.screenLayer};
Xu.prototype.onDataChanged=Xu.prototype.onDataChanged;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Xu.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Xu.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Xu.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Xu.prototype,"data",void 0);
_.N([_.e({value:_.zF("SBOX_INAPPROPRIATE_CANCEL")}),_.P("design:type",String)],Xu.prototype,"closeButtonAriaLabel",void 0);_.N([_.Nl("yt-share-panel-header-renderer"),_.P("design:type",HTMLElement)],Xu.prototype,"header",void 0);_.N([_.e(),_.P("design:type",Object)],Xu.prototype,"qrCodeEnabled",void 0);_.N([_.Nl("#scroller"),_.P("design:type",Object)],Xu.prototype,"JSC$22979_scroller",void 0);
_.N([_.P3("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Xu.prototype,"onDataChanged",null);_.N([_.p4({disableElementRegistration:!0,is:"yt-unified-share-panel-renderer"})],Xu);
_.G(Xu,"yt-unified-share-panel-renderer",function(){if($L$===void 0){var t=document.createElement("template");_.J(t,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unified-share-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope yt-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope yt-unified-share-panel-renderer"></tp-yt-paper-spinner>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onTapClose" class="style-scope yt-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope yt-unified-share-panel-renderer"></yt-icon>\n  </yt-icon-button>\n  <yt-share-panel-header-renderer id="share-panel-header" data="[[data.header.sharePanelHeaderRenderer]]" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope yt-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope yt-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);$L$=t}t=$L$;return t},{mode:1});var ve2={};
ve2.YtUnlimitedFamilyInterstitialBehavior=[_.Pg.YtOpenPopupBehavior,_.oO.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(t){t=_.Md0(_.Qx(t),"yt-button-renderer");return t?t.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(t){this.dialogHistory_.push(t)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var t=this.popFromHistory();if(t){var E={openPopupAction:{popupType:"DIALOG",popup:{}}};E.openPopupAction.popup[t.renderer]=t.data;this.showingPreviousDialog_=!0;this.openPopup(E)}},
handleOpenPopupAction_:function(t){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var E=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(U){return!!t.openPopupAction.popup[U]}),p=this.getElementName_();
E&&this.data&&(this.pushToHistory({renderer:p,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(t){if(t=_.k(t,rbL))this.loading=!0,_.du(this.hostElement,"yt-open-create-family-dialog",[t,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var t=this.hostElement.nodeName.split("-").slice(1).map(function(E){return""+E[0].toUpperCase()+E.slice(1).toLowerCase()}).join("");
return t[0].toLowerCase()+t.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var ydC;var SC8;var hK=function(){return _.z.apply(this,arguments)||this};
_.u(hK,_.z);_.Y=hK.prototype;_.Y.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}}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.du(this.hostElement,"yt-register-create-family-dialog");_.ZN(this.hostElement).querySelector("#thumbnail").onShow()};
_.Y.fireOnCloseCommand_=function(){var t;((t=this.data)==null?0:t.onCloseCommand)&&_.IK(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.Y.onYtServiceRequestSent_=function(t,E){E&&E.endpoint&&_.k(E.endpoint,_.XJ)||(this.loading=!0)};
_.Y.onYtServiceRequestCompleted_=function(){var t=this.hostElement.parentElement;t.close&&t.close();this.loading=!1};
_.Y.openPopupHandler_=function(t){if(t.detail==this){var E;((E=this.data)==null?0:E.onOpenCommands)&&_.IK(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.Y.closePopupHandler_=function(t,E){this.fireOnCloseCommand_();if(E&&E.canceled===!0||E&&E.canceled===!1&&E.confirmed===!1){var p;((p=this.data)==null?0:p.onDismissCommands)&&_.IK(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.Y.dataChanged_=function(){this.loading=!1};
hK.prototype.dataChanged_=hK.prototype.dataChanged_;hK.prototype.closePopupHandler_=hK.prototype.closePopupHandler_;hK.prototype.openPopupHandler_=hK.prototype.openPopupHandler_;hK.prototype.onYtServiceRequestCompleted_=hK.prototype.onYtServiceRequestCompleted_;hK.prototype.onYtServiceRequestSent_=hK.prototype.onYtServiceRequestSent_;_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],hK.prototype,"ytEventForwardingBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],hK.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(ve2.YtUnlimitedFamilyInterstitialBehavior),_.P("design:type",Object)],hK.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],hK.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],hK.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],hK.prototype,"loading",void 0);_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.m8]),_.P("design:returntype")],hK.prototype,"onYtServiceRequestSent_",null);_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Rn]),_.P("design:returntype")],hK.prototype,"onYtServiceRequestCompleted_",null);
_.N([_.lc("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],hK.prototype,"openPopupHandler_",null);_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],hK.prototype,"closePopupHandler_",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],hK.prototype,"dataChanged_",null);
_.N([_.p4({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],hK);
_.G(hK,"yt-unlimited-family-message-interstitial-renderer",function(){if(SC8===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;ydC===void 0&&(ydC=document.createElement("template"));var U=ydC;p.call(E,U.content.cloneNode(!0),t.content.firstChild);SC8=t}t=SC8;return t},{mode:2});var cdF;var t8U;var aM=function(){return _.z.apply(this,arguments)||this};
_.u(aM,_.z);aM.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"}}}};
aM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ZN(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(t){t.onShow()});
_.ZN(this.hostElement).querySelector("#main-thumbnail").onShow()};
aM.prototype.onButtonTap_=function(t){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(t)};
aM.prototype.computeMainThumbnailWidth_=function(t){return t&&t.length!==0?72:96};
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],aM.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],aM.prototype,"ytRendererBehavior",void 0);_.N([_.g(ve2.YtUnlimitedFamilyInterstitialBehavior),_.P("design:type",Object)],aM.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],aM.prototype,"data",void 0);
_.N([_.e({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.P("design:type",Number)],aM.prototype,"mainThumbnailWidth_",void 0);_.N([_.e({value:function(){return this.onButtonTap_.bind(this)}}),
_.P("design:type",Function)],aM.prototype,"boundButtonTap_",void 0);_.N([_.p4({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],aM);
_.G(aM,"yt-unlimited-family-profile-interstitial-renderer",function(){if(t8U===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;cdF===void 0&&(cdF=document.createElement("template"));var U=cdF;p.call(E,U.content.cloneNode(!0),t.content.firstChild);t8U=t}t=t8U;return t},{mode:2});var EIS;var pw$;var ea=function(){var t=_.z.apply(this,arguments)||this;t.sliderAriaValueText_=null;t.selectedIndex_=0;t.messages={PAUSE_SLIDER:_.zF("PAUSE_SLIDER",void 0,"Pause Duration")};return t};
_.u(ea,_.z);_.Y=ea.prototype;_.Y.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_]]"}}}}}};
_.Y.onPopupOpened_=function(t){t.detail==this&&_.r("enable_premium_voluntary_pause")&&(_.du(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.setDialogData=function(t){this.data=t;this.resetSlider_()};
_.Y.dataChanged_=function(){this.data&&this.resetSlider_()};
_.Y.onSubmitTap_=function(){if(this.data.confirmCommand){var t=this.data.confirmCommand;_.k(t,_.bk3)&&_.JZ(this.hostElement,[t,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.Y.onExitButtonTap_=function(){_.du(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.Y.closePopupHandler_=function(t,E){(E&&E.canceled===!0||E.canceled===!1&&E.confirmed===!1)&&this.handleOnDismissCommands_()};
_.Y.onSliderChange_=function(){this.selectedIndex_=_.ZN(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.Y.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.Y.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.Y.resetSlider_=function(){if(this.data){var t=this.data.defaultEndOptionIndex||0,E=_.ZN(this.hostElement).querySelector("#id-pause-slider");if(E.immediateValue<t)for(;E.immediateValue!=t;)E.increment();else if(t<E.immediateValue)for(;E.immediateValue!=t;)E.decrement();this.selectedIndex_=t;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.Y.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.IK(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.Y.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.IK(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.Y.onYtServiceRequestSent=function(){this.loading=!0};
_.Y.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
ea.prototype.onYtServiceRequestCompleted=ea.prototype.onYtServiceRequestCompleted;ea.prototype.onYtServiceRequestSent=ea.prototype.onYtServiceRequestSent;ea.prototype.closePopupHandler_=ea.prototype.closePopupHandler_;ea.prototype.dataChanged_=ea.prototype.dataChanged_;ea.prototype.onPopupOpened_=ea.prototype.onPopupOpened_;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],ea.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],ea.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],ea.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],ea.prototype,"loading",void 0);_.N([_.e(),_.P("design:type",Number)],ea.prototype,"selectIndexMax_",void 0);_.N([_.e(),_.P("design:type",Object)],ea.prototype,"selectedData_",void 0);
_.N([_.e(),_.P("design:type",Object)],ea.prototype,"sliderAriaValueText_",void 0);_.N([_.e({value:function(){return this.onSubmitTap_.bind(this)}}),
_.P("design:type",Function)],ea.prototype,"onButtonTap_",void 0);_.N([_.e({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.P("design:type",Function)],ea.prototype,"onSecondaryTap_",void 0);_.N([_.e(),_.P("design:type",Object)],ea.prototype,"messages",void 0);_.N([_.lc("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],ea.prototype,"onPopupOpened_",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ea.prototype,"dataChanged_",null);
_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],ea.prototype,"closePopupHandler_",null);_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.m8]),_.P("design:returntype")],ea.prototype,"onYtServiceRequestSent",null);
_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Rn]),_.P("design:returntype")],ea.prototype,"onYtServiceRequestCompleted",null);_.N([_.p4({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],ea);
_.G(ea,"yt-unplugged-pause-membership-dialog-renderer",function(){if(pw$===void 0){var t=document.createElement("template");_.J(t,'\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>');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;EIS===void 0&&(EIS=document.createElement("template"));var U=EIS;p.call(E,U.content.cloneNode(!0),t.content.firstChild);pw$=t}t=pw$;return t},{mode:2});var U22;var x2S;var Fu=function(){return _.z.apply(this,arguments)||this};
_.u(Fu,_.z);Fu.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.y9("vcBalanceRenderer")}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Fu.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Fu.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Fu.prototype,"data",void 0);_.N([_.p4({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],Fu);
_.G(Fu,"yt-vc-offer-layout-header-renderer",function(){if(x2S===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;U22===void 0&&(U22=document.createElement("template"));var U=U22;p.call(E,U.content.cloneNode(!0),t.content.firstChild);x2S=t}t=x2S;return t},{mode:2});var AGU;var YSC;var M8S;var m22;var zr=function(){return _.z.apply(this,arguments)||this};
_.u(zr,_.z);zr.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.aE.Object.defineProperties(zr.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)}}});
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],zr.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],zr.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.NZd.YtTappableItemBehavior),_.P("design:type",Object)],zr.prototype,"ytTappableItemBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],zr.prototype,"data",void 0);
_.N([_.e({reflectToAttribute:!0}),_.Z("data.accessibilityText"),_.P("design:type",String),_.P("design:paramtypes",[])],zr.prototype,"ariaLabel",null);_.N([_.e({reflectToAttribute:!0}),_.Z("data.style"),_.P("design:type",String),_.P("design:paramtypes",[])],zr.prototype,"vcOfferStyle",null);_.N([_.Z("data.style","data.titleText"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],zr.prototype,"showTitleText",null);_.N([_.p4({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],zr);
_.G(zr,"yt-vc-offer-renderer",function(){if(m22===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;M8S===void 0&&(M8S=document.createElement("template"));var U=M8S;p.call(E,U.content.cloneNode(!0),t.content.firstChild);m22=t}t=m22;return t},{mode:2});var l1=function(){return _.z.apply(this,arguments)||this};
_.u(l1,_.z);l1.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}}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],l1.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],l1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],l1.prototype,"data",void 0);_.N([_.p4({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],l1);
_.G(l1,"yt-vc-offer-layout-renderer",function(){if(YSC===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;AGU===void 0&&(AGU=document.createElement("template"));var U=AGU;p.call(E,U.content.cloneNode(!0),t.content.firstChild);YSC=t}t=YSC;return t},{mode:2});var bt6;var itF;var qSS;var Ht8;var Gr=function(){return _.z.apply(this,arguments)||this};
_.u(Gr,_.z);Gr.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}}}}}};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Gr.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Gr.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Gr.prototype,"data",void 0);_.N([_.p4({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],Gr);
_.G(Gr,"yt-ypc-offers-modal-top-bar-renderer",function(){if(Ht8===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;qSS===void 0&&(qSS=document.createElement("template"));var U=qSS;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Ht8=t}t=Ht8;return t},{mode:2});var ne=function(){return _.z.apply(this,arguments)||this};
_.u(ne,_.z);ne.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"}}}}};
ne.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
ne.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var t=this.scrollable;t.attached&&typeof t.attached==="function"&&t.attached()};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],ne.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],ne.prototype,"ytRendererstamperBehavior",void 0);_.N([_.Nl("#scrollable"),_.P("design:type",Object)],ne.prototype,"scrollable",void 0);_.N([_.e(),_.P("design:type",Object)],ne.prototype,"data",void 0);_.N([_.p4({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],ne);
_.G(ne,"yt-ypc-offers-modal-renderer",function(){if(itF===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;bt6===void 0&&(bt6=document.createElement("template"));var U=bt6;p.call(E,U.content.cloneNode(!0),t.content.firstChild);itF=t}t=itF;return t},{mode:2});var fkS;var B6U;var Ng=function(){return _.z.apply(this,arguments)||this};
_.u(Ng,_.z);_.Y=Ng.prototype;_.Y.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}}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ZN(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.Y.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.du(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.Y.onYtPopupOpened_=function(t,E){(E==null?void 0:E.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.IK(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.Y.onYtPopupClosed_=function(t,E){this.continueButtonTapped||E&&(E.canceled===!0||E.canceled===!1&&E.confirmed===!1)&&this.data.onDismissCommands&&_.IK(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.Y.onYtServiceRequestError_=function(t){this.set("showSpinner",!1);_.f$(this.hostElement,t.detail.error.message)};
_.Y.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.r("enable_ypc_spinners")?_.du(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
Ng.prototype.onYtServiceRequestError_=Ng.prototype.onYtServiceRequestError_;Ng.prototype.onYtPopupClosed_=Ng.prototype.onYtPopupClosed_;Ng.prototype.onYtPopupOpened_=Ng.prototype.onYtPopupOpened_;Ng.prototype.onYtServiceRequestCompleted_=Ng.prototype.onYtServiceRequestCompleted_;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Ng.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Ng.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.e(),_.P("design:type",Object)],Ng.prototype,"data",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],Ng.prototype,"showSpinner",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],Ng.prototype,"continueButtonTapped",void 0);_.N([_.e({value:function(){return this.onContinueTapped_.bind(this)}}),
_.P("design:type",Function)],Ng.prototype,"bindOnContinueTapped_",void 0);_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Ng.prototype,"onYtServiceRequestCompleted_",null);_.N([_.lc("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],Ng.prototype,"onYtPopupOpened_",null);
_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],Ng.prototype,"onYtPopupClosed_",null);_.N([_.lc("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Ng.prototype,"onYtServiceRequestError_",null);_.N([_.p4({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],Ng);
_.G(Ng,"yt-ypc-upgrade-dialog-renderer",function(){if(B6U===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;fkS===void 0&&(fkS=document.createElement("template"));var U=fkS;p.call(E,U.content.cloneNode(!0),t.content.firstChild);B6U=t}t=B6U;return t},{mode:2});var ww6;var RcG;var Di=function(){return _.z.apply(this,arguments)||this};
_.u(Di,_.z);Di.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Di.prototype.computeHasButtons_=function(t){return!(!t.dismissButton&&!t.confirmButton)};
Di.prototype.computeStyle_=function(t){return t||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Di.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],Di.prototype,"ytEventForwardingBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Di.prototype,"ytRendererstamperBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Di.prototype,"data",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],Di.prototype,"positionType",void 0);
_.N([_.e({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.P("design:type",Boolean)],Di.prototype,"hasButtons_",void 0);_.N([_.e({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Di.prototype,"style_",void 0);_.N([_.p4({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],Di);
_.G(Di,"yt-bubble-hint-renderer",function(){if(RcG===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;ww6===void 0&&(ww6=document.createElement("template"));var U=ww6;p.call(E,U.content.cloneNode(!0),t.content.firstChild);RcG=t}t=RcG;return t},{mode:2});var V86;var Q$I;var sz=function(){var t=_.ef.apply(this,arguments)||this;t.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return t};
_.u(sz,_.ef);_.Y=sz.prototype;_.Y.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.Y.attached=function(){var t=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){t.$.thumbnail.onShow();t.$["header-image"].onShow()})};
_.Y.handleCheckBoxUpdateAction_=function(t){this.canShowCheckboxEnabledConfirmButton=t};
_.Y.computeUseOverlayForSpinner_=function(t,E){return!!t&&E};
_.Y.computeShowSpinner_=function(t,E){return t||!!E};
_.Y.fireOnCloseActions_=function(){var t,E=_.M(((t=this.data)==null?void 0:t.onClosedActions)||[]);for(t=E.next();!t.done;t=E.next())this.ytRendererBehavior.resolveCommand(t.value)};
_.Y.fireOnOpenCommands_=function(t){var E,p=(E=this.data)==null?void 0:E.onOpenCommands;if(p)for(t.stopImmediatePropagation(),t=_.M(p),E=t.next();!E.done;E=t.next())this.ytRendererBehavior.resolveCommand(E.value)};
_.Y.fireOnDismissCommands_=function(t){var E,p=(E=this.data)==null?void 0:E.onDismissCommands;if(p)for(t.stopImmediatePropagation(),t=_.M(p),E=t.next();!E.done;E=t.next())this.ytRendererBehavior.resolveCommand(E.value)};
_.Y.openPopupHandler_=function(t){t.detail==this&&this.fireOnOpenCommands_(t)};
_.Y.closePopupHandler_=function(t,E){_.uO(this,"yt-confirm-dialog-close-action",[E]);this.fireOnCloseActions_();(E&&E.canceled===!0||E&&E.canceled===!1&&E.confirmed===!1)&&this.fireOnDismissCommands_(t)};
_.Y.onHeaderImageChanged_=function(){var t;((t=this.data)==null?0:t.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.Y.computeHasHeaderImageWidth_=function(t){return t!=void 0};
_.Y.computeHasLoadingMessage=function(t){return!!t};
_.Y.onHeaderImageWidthChanged_=function(){var t,E=(t=this.data)==null?void 0:t.headerImageWidth;if(E){if(t=1.25*E*2+E,this.$.main.style.width=t+"px",E=this.$.scroller.firstElementChild)E.style.minWidth=t+"px"}else this.$.main.style.width="100%"};
_.Y.onThumbnailChanged_=function(){var t;((t=this.data)==null?0:t.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")};
_.Y.onYtNavigate_=function(t){t=_.Qx(t);t instanceof Node&&_.OU(this.$["confirm-button"]).contains(t)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.Y.computePrimaryIsCancel_=function(t){return t};
_.Y.computeIsCancelButtonHidden_=function(t){return t.skipCancelButton||!t.cancelButton};
_.Y.computeIsCheckboxHidden_=function(t){return!t.checkbox};
_.Y.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.Y.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.Y.onYtServiceRequestCompleted_=function(){var t;((t=this.data)==null?0:t.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.aE.Object.defineProperties(sz,{template:{configurable:!0,enumerable:!0,get:function(){if(Q$I===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;V86===void 0&&(V86=document.createElement("template"));var U=V86;p.call(E,U.content.cloneNode(!0),t.content.firstChild);Q$I=t}t=Q$I;return t}}});
sz.prototype.onYtServiceRequestCompleted_=sz.prototype.onYtServiceRequestCompleted_;sz.prototype.onYtServiceRequestSent_=sz.prototype.onYtServiceRequestSent_;sz.prototype.onThumbnailLoaded_=sz.prototype.onThumbnailLoaded_;sz.prototype.onYtNavigate_=sz.prototype.onYtNavigate_;sz.prototype.onThumbnailChanged_=sz.prototype.onThumbnailChanged_;sz.prototype.onHeaderImageWidthChanged_=sz.prototype.onHeaderImageWidthChanged_;sz.prototype.onHeaderImageChanged_=sz.prototype.onHeaderImageChanged_;
sz.prototype.closePopupHandler_=sz.prototype.closePopupHandler_;sz.prototype.openPopupHandler_=sz.prototype.openPopupHandler_;_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],sz.prototype,"ytActionHandlerBehavior",void 0);_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],sz.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],sz.prototype,"ytRendererBehavior",void 0);
_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],sz.prototype,"ytEventForwardingBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],sz.prototype,"data",void 0);_.N([_.e({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.P("design:type",Boolean)],sz.prototype,"primaryIsCancel",void 0);_.N([_.e({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.P("design:type",Boolean)],sz.prototype,"isCancelButtonHidden",void 0);
_.N([_.e({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.P("design:type",Boolean)],sz.prototype,"isCheckboxHidden",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],sz.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.N([_.e({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.P("design:type",Boolean)],sz.prototype,"useOverlayForSpinner_",void 0);
_.N([_.e({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.P("design:type",Boolean)],sz.prototype,"showSpinner_",void 0);_.N([_.e({value:!1}),_.P("design:type",Boolean)],sz.prototype,"isActionInProgress_",void 0);_.N([_.e({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.P("design:type",Boolean)],sz.prototype,"hasHeaderImageWidth_",void 0);
_.N([_.e({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.P("design:type",Boolean)],sz.prototype,"hasLoadingMessage",void 0);_.N([_.lc("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],sz.prototype,"openPopupHandler_",null);_.N([_.lc("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],sz.prototype,"closePopupHandler_",null);
_.N([_.GI("data.headerImage"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sz.prototype,"onHeaderImageChanged_",null);_.N([_.GI("data.headerImageWidth"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sz.prototype,"onHeaderImageWidthChanged_",null);_.N([_.GI("data.thumbnail"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sz.prototype,"onThumbnailChanged_",null);
_.N([_.lc("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],sz.prototype,"onYtNavigate_",null);_.N([_.lc("yt-img-shadow-loaded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sz.prototype,"onThumbnailLoaded_",null);_.N([_.lc("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.m8]),_.P("design:returntype")],sz.prototype,"onYtServiceRequestSent_",null);
_.N([_.lc("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Rn]),_.P("design:returntype")],sz.prototype,"onYtServiceRequestCompleted_",null);_.N([_.p4({is:"yt-confirm-dialog-renderer",noInjection:!0})],sz);var CFw;var j$F;var Le=function(){return _.z.apply(this,arguments)||this};
_.u(Le,_.z);Le.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ZN(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
Le.prototype.computeConfirmButton_=function(t){var E={text:t.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};t.confirmNavigationEndpoint?E.navigationEndpoint=t.confirmNavigationEndpoint:t.confirmServiceEndpoint&&(E.serviceEndpoint=t.confirmServiceEndpoint);return E};
Le.prototype.computeShowTitle_=function(t){return!(t==null||!t.title)};
_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Le.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Le.prototype,"data",void 0);_.N([_.e({computed:"computeShowTitle_(data)"}),_.P("design:type",Boolean)],Le.prototype,"showTitle",void 0);_.N([_.p4({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],Le);
_.G(Le,"yt-fancy-dismissible-dialog-renderer",function(){if(j$F===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;CFw===void 0&&(CFw=document.createElement("template"));var U=CFw;p.call(E,U.content.cloneNode(!0),t.content.firstChild);j$F=t}t=j$F;return t});var rGI;var kCF;var Pa=function(){var t=_.z.apply(this,arguments)||this;t.spinnerActive=!1;return t};
_.u(Pa,_.z);Pa.prototype.created=function(){JI5(2201)};
Pa.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
Pa.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
Pa.prototype.onIronOverlayClosed=Pa.prototype.onIronOverlayClosed;Pa.prototype.onIronOverlayOpened=Pa.prototype.onIronOverlayOpened;_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Pa.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.VV),_.P("design:type",Object)],Pa.prototype,"tpYtIronOverlayBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Pa.prototype,"data",void 0);_.N([_.e(),_.P("design:type",Object)],Pa.prototype,"spinnerActive",void 0);
_.N([_.lc("iron-overlay-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Pa.prototype,"onIronOverlayOpened",null);_.N([_.lc("iron-overlay-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Pa.prototype,"onIronOverlayClosed",null);_.N([_.p4({is:"yt-loading-renderer",disableElementRegistration:!0})],Pa);
_.G(Pa,"yt-loading-renderer",function(){if(kCF===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;rGI===void 0&&(rGI=document.createElement("template"));var U=rGI;p.call(E,U.content.cloneNode(!0),t.content.firstChild);kCF=t}t=kCF;return t},{mode:2});var d2U;var uU2;var Tr=function(){var t=_.z.apply(this,arguments)||this;t.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);t.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);t.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";t.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return t};
_.u(Tr,_.z);_.Y=Tr.prototype;_.Y.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.Y.onDarkModeToggledAction=function(t){this.isDarkTheme=t};
_.Y.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.Y.openPopupHandler_=function(t){t.detail===this.hostElement&&this.hostElement.hidden&&_.du(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.Y.onDismissButtonTap_=function(){var t;this.closeOnDismissButton_.has(((t=this.data)==null?void 0:t.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.du(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.Y.onAcceptButtonTap_=function(){var t;this.closeOnAcceptButton_.has(((t=this.data)==null?void 0:t.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.du(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.Y.computeHasHeader_=function(t){return!!t.headerBackgroundImage};
_.Y.computeLayoutStyle_=function(t){return t};
_.Y.computePopupSize_=function(t){return t};
_.Y.computeIconType_=function(t){return t.dialogIcon&&t.dialogIcon.iconType?t.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":t.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":t.dialogIcon.iconType:""};
_.Y.computeIsLogo_=function(t){return!!t.dialogIcon&&!!t.dialogIcon.iconType&&(t.dialogIcon.iconType==="YOUTUBE_LOGO"||t.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||t.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.Y.computeHasCustomLogo=function(t){return!(t==null||!t.headerForegroundImage)};
_.Y.computeCustomLogo=function(t,E){if(t!=null&&t.headerForegroundImage)return t.headerForegroundImageDark?E?t.headerForegroundImageDark:t.headerForegroundImage:t.headerForegroundImage};
_.Y.computeHeaderBackgroundImage=function(t,E){if(t!=null&&t.headerBackgroundImage)return E&&(t==null?0:t.headerBackgroundImageDark)?t.headerBackgroundImageDark:t.headerBackgroundImage};
_.Y.shouldShowIconContainer=function(t,E){return t&&!E};
_.Y.shouldShowNonYouTubeIcon=function(t,E){return!t&&!E};
_.Y.getLogoImageId=function(t){var E,p,U;return(t=(E=this.computeCustomLogo(t,this.isDarkTheme))==null?void 0:(p=E.thumbnails)==null?void 0:(U=p[0])==null?void 0:U.height)&&t%31===0?"custom-logo-with-padding":"custom-logo"};
Tr.prototype.openPopupHandler_=Tr.prototype.openPopupHandler_;Tr.prototype.dataChanged_=Tr.prototype.dataChanged_;_.N([_.g(_.e4.YtRendererstamperBehavior),_.P("design:type",Object)],Tr.prototype,"ytRendererstamperBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],Tr.prototype,"ytRendererBehavior",void 0);_.N([_.e(),_.P("design:type",Boolean)],Tr.prototype,"isDarkTheme",void 0);
_.N([_.e({computed:"computeCustomLogo(data, isDarkTheme)"}),_.P("design:type",Object)],Tr.prototype,"customLogo",void 0);_.N([_.e({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.P("design:type",Object)],Tr.prototype,"headerBackgroundImage",void 0);_.N([_.e(),_.P("design:type",Object)],Tr.prototype,"data",void 0);_.N([_.e({computed:"computeHasHeader_(data)"}),_.P("design:type",Boolean)],Tr.prototype,"hasHeader",void 0);
_.N([_.e({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.P("design:type",Object)],Tr.prototype,"layoutStyle",void 0);_.N([_.e({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.P("design:type",Object)],Tr.prototype,"popupSize",void 0);_.N([_.e({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Tr.prototype,"hasLogo",void 0);
_.N([_.e({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Tr.prototype,"hasCustomLogo",void 0);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Tr.prototype,"dataChanged_",null);_.N([_.lc("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Tr.prototype,"openPopupHandler_",null);
_.N([_.p4({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],Tr);
_.G(Tr,"yt-upsell-dialog-renderer",function(){if(uU2===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;d2U===void 0&&(d2U=document.createElement("template"));var U=d2U;p.call(E,U.content.cloneNode(!0),t.content.firstChild);uU2=t}t=uU2;return t},{mode:2});var JGF=_.l(function(t){return _.H("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.H(_.w,{cond:t.title,then:function(E){return _.H("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},E)}}))},"kl"),IkI=_.l(function(t){return _.H("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.H(_.sY,{data:t.closeButton},{buttonViewModel:function(E){return _.H("div",null,_.H(_.D5,{data:E.data}))}}))},"ll"),gII=_.l(function(t){var E=t.data;
return _.H(_.Oj,null,_.H("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.H("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.H(_.w,{cond:function(){return!!E().image&&!!E().title},
then:function(){return _.H(_.Q9,{data:function(){return E().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.H("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.H(_.w,{cond:function(){return E().title},
then:function(p){return _.H("h3",{class:"miniAppGameInfoDialogViewModelTitle"},p)}}),_.H(_.w,{cond:function(){return E().primaryGenre},
then:function(p){return _.H("span",{class:"miniAppGameInfoDialogViewModelGenre"},p)}}))),_.H(_.w,{cond:function(){var p=E().description;
return p&&p.length<=150},
then:function(){return _.H("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.H("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return E().description}))}}))},"ml"),Ztw=_.l(function(t){var E=t.ageRating;
return _.H("span",{class:"miniAppGameInfoDialogViewModelAgeRatingWrapper"},_.H(_.Q9,{data:function(){return{sources:[{url:E().imageUrl||"",width:18,height:18}]}},
className:"miniAppGameInfoDialogViewModelAgeRatingImage",alt:"",targetHeight:18,targetWidth:18,preserveWidth:!0,preserveHeight:!0}),_.H("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.H(_.d8,{text:function(){return E().attributedLabel},
noPreWrap:!0})))},"nl"),Ot2=_.l(function(t){t=t.infoRows;
var E=_.X3().resolve(_.O1),p=_.r("enable_displaying_ppn");return _.H("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.H(_.yG,{each:t},function(U){return _.H("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.H(_.w,{cond:function(){return U.label},
then:function(x){return _.H("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},x)}}),_.H(_.w,{cond:function(){return U.attributedLabel},
then:function(x){return _.H("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.H(_.d8,{text:x,noPreWrap:!0}))}}),_.H(_.w,{cond:function(){return U.value},
then:function(x){return _.H("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},x)}}),_.H(_.w,{cond:function(){return U.attributedValue},
then:function(x){return _.H("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.H(_.d8,{text:x,noPreWrap:!0}))}}),_.H(_.w,{cond:function(){return U.ageRating},
then:function(x){return _.H(Ztw,{ageRating:x})}}))}),_.H(_.w,{cond:function(){return p&&E.clientData.has("post_play_nonce")},
then:function(){return _.H("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.H("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.H("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},E.getData("post_play_nonce")))}}))},"ol"),Xw8=_.l(function(t){var E=t.data;
return _.H("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.H(JGF,{title:function(){return E().dialogTitle}}),_.H(gII,{data:E}),_.H(_.w,{cond:function(){return E().infoRow},
then:function(p){return _.H(Ot2,{infoRows:p})}}),_.H(IkI,{closeButton:function(){return E().closeButton}}))},"pl");
Xw8.idomCompat=!0;_.k2(Xw8,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.uu}});_.k2(_.l(function(t){var E=t.data;return _.H("yt-gulp-triggering-dialog-view-model",{class:_.X5("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.H(_.Q9,{data:function(){return E().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.H("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.H("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.H("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.H(_.d8,{text:function(){return E().title}})),_.H(_.w,{cond:function(){return E().bodyText},
then:function(p){return _.H(_.yG,{each:p},function(U){return _.H("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.H(_.d8,{text:U}))})}})),_.H("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.H(_.sY,{data:function(){return E().dismissButton}},{buttonViewModel:function(p){return _.H("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},_.H(_.D5,{data:p.data}))}}),_.H(_.sY,{data:function(){return E().actionButton}},{buttonViewModel:function(p){return _.H("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},
_.H(_.D5,{data:p.data}))}}))))},"ql"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.uu}});var hcC=_.l(function(t){var E=t.data;t=_.Ql(function(){return E().agreements},[]);
return _.H("installment-agreements-view-model",{class:_.X5("ytInstallmentAgreementsViewModelHost")},_.H(_.yG,{each:t},function(p){return _.H("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.H("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.H(_.d8,{text:p.label})),_.H("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.H(_.sY,{data:function(){return p.openButton}},{buttonViewModel:_.D5})))}))},"rl");
hcC.idomCompat=!0;var ak6=_.l(function(t){var E=_.M(_.j5(function(){var K,v;return((K=t.data().createPlaylistDialogFormSchema)==null?0:(v=K.initialValues)==null?0:v.title)?t.data().createPlaylistDialogFormSchema.initialValues.title:""})),p=E.next().value,U=E.next().value;
E=_.M(_.j5(function(){t.data();return!1}));
var x=E.next().value,A=E.next().value;E=_.M(_.j5(function(){t.data();return!1}));
var m=E.next().value,b=E.next().value;E=_.M(_.j5(function(){var K,v;return(K=t.data().createPlaylistDialogFormSchema)==null?void 0:(v=K.initialValues)==null?void 0:v.visibility}));
var f=E.next().value,B=E.next().value;E=_.M(_.j5(function(){t.data();return!1}));
var R=E.next().value,V=E.next().value;E=_.M(_.j5(function(){var K,v;return(K=t.data().createPlaylistDialogFormSchema)==null?void 0:(v=K.initialValues)==null?void 0:v.isCollaborative}));
var Q=E.next().value,C=E.next().value,d=_.EB("div");_.M$(function(){var K=d.value.querySelector("textarea");K&&(K.value=p())},"axFRaf");
_.A6(function(){var K;LtC((K=t.data().createPlaylistDialogFormSchema)==null?void 0:K.id,{onSubmit:function(){var v=p();var YL=f(),bY=Q(),kL=t.data();v={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:v,privacyStatus:YL,videoIds:kL.videoIds,sourcePlaylistId:kL.sourcePlaylistId,params:bY?kL.createPlaylistParamsCollaborationEnabled:kL.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.X3().resolve(_.ei).resolveCommand(v)},
isValid:function(){return x()&&!m()&&!R()}})});
var I=function(K){if(K!==void 0&&(U(K),!x()&&K.length>0&&A(!0),x())){var v=ZGK(t.data());if(v){var YL=v.minLength;v=v.maxLength;YL&&K.length<YL?b(!0):v&&K.length>v?b(!0):b(!1)}}},O=function(){var K=!(!Q()||f()!=="PRIVATE");
V(K)},a=function(K){K!==void 0&&(B(K),O())},F=function(){if(R())return Xnt(t.data())},L=function(){C(!Q());
O()},D=function(){return{validate:function(K){if(x()){var v=ZGK(t.data());
if(v){var YL=v.minLength;v=v.translations;if(YL&&K.length<YL)return v==null?void 0:v.minLengthErrorMessage}}}}},W=function(){var K=ZGK(t.data()),v=K==null?void 0:K.maxLength,YL;
K=K==null?void 0:(YL=K.translations)==null?void 0:YL.maxLengthErrorMessage;if(v&&K)return{maxChars:v,errorMessage:K}};
return _.H("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.H("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:d},_.H(_.sY,{data:function(){return t.data().playlistTitle}},{textFormFieldViewModel:function(K){return _.H(R4L,{data:K.data,
text:p,onInput:I,validation:D,characterLimit:W})},
textFieldViewModel:function(K){return _.H(wzt,{data:K.data,text:p,onInput:I,validation:D,characterLimit:W})}})),_.H("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.H(_.sY,{data:function(){return t.data().playlistVisibility}},{dropdownViewModel:function(K){return _.H(ILL,{data:K.data,
onSelected:a,error:F})}})),_.H(_.w,{cond:function(){return!!t.data().playlistCollaborate},
then:function(){return _.H("div",null,_.H(_.sY,{data:function(){return t.data().playlistCollaborate}},{switchListItemViewModel:function(K){return _.H(_.F4X,{data:K.data,
onTap:L})}}))}}))},"tl");var ec$=_.l(function(t){var E=t.data;return _.H("upsell-offer-table-cell-content-view-model",null,_.H("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.H(_.SC,null,_.H(_.Kw,{when:function(){var p;return(p=E().icon)==null?void 0:p.iconType}},function(){return _.H("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.H(_.lz,{icon:function(){var p;
return(p=E().icon)==null?void 0:p.iconType.toString()}}))}),_.H(_.Kw,{when:function(){return E().title}},function(){return _.H(_.d8,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return E().title}})}),_.H(_.Kw,{when:function(){return E().subtitle}},function(){return _.H(_.d8,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return E().subtitle}})}),_.H(_.Kw,{when:function(){return E().infoText}},function(){return _.H(_.d8,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return E().infoText}})}),_.H(_.Kw,{when:function(){return E().featureDescription}},function(){return _.H(_.d8,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return E().featureDescription}})}),_.H(_.Kw,{when:function(){return E().note}},function(){return _.H(_.d8,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return E().note}})})),_.H(_.w,{cond:function(){var p;
return(p=E().icon)==null?void 0:p.iconAccessibilityText},
then:function(){return _.H("span",{class:"ytUpsellOfferTableCellContentViewModelVisuallyHiddenAccessibility"},function(){var p;return(p=E().icon)==null?void 0:p.iconAccessibilityText})}})))},"ul");
ec$.idomCompat=!0;var F6U=_.l(function(t){var E=t.data;var p=t.cellIndex;var U=t.rowIndex;return _.H("upsell-offer-table-cell-view-model",null,_.H("div",{class:_.X5("ytUpsellOfferTableCellViewModelCellWrapper",function(){return E().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":E().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"}),
id:function(){var x,A;return"cell-"+((x=U==null?void 0:U())!=null?x:0)+"-"+((A=p==null?void 0:p())!=null?A:0)},
role:function(){return E().isFirstRow?"columnHeader":E().isFirstColumn?"rowheader":"gridcell"}},_.H(_.sY,{data:function(){return E().contents}},{upsellOfferTableCellContentViewModel:ec$})))},"vl");
F6U.idomCompat=!0;var zcc=_.l(function(t){var E=t.data;var p=t.upsellTableIsFirstRow;var U=t.rowIndex;var x=function(){return(p==null?0:p())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},A=function(){return(p==null?0:p())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.H("ytm-upsell-offer-table-row-view-model",null,_.H("div",{class:function(){return(p==null?0:p())?"ytUpsellOfferTableRowViewModelHostFirstRow":"ytUpsellOfferTableRowViewModelHost"},
role:"row","aria-owns":function(){return"cell-"+(U==null?void 0:U())+"-1 cell-"+(U==null?void 0:U())+"-2"}},_.H(_.sY,{data:function(){return E().rowHeaderCell}},{upsellOfferTableCellViewModel:function(m){return _.H("div",{class:x},_.H(F6U,{data:m.data,
cellIndex:0,rowIndex:U}))}}),_.H("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},_.H(_.sY,{data:function(){return E().contentCells}},{upsellOfferTableCellViewModel:function(m,b){return _.H("div",{class:A},_.H(F6U,{data:m.data,
cellIndex:function(){return b()+1},
rowIndex:U}))}}))))},"wl");
zcc.idomCompat=!0;var lkI=_.l(function(t){var E=t.data;return _.H("ytm-upsell-offer-table-view-model",null,_.H("div",{class:"ytUpsellOfferTableViewModelHost",role:"grid"},_.H("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.H(_.sY,{data:function(){return E().rows}},{upsellOfferTableRowViewModel:function(p,U){return _.H(zcc,{data:p.data,
upsellTableIsFirstRow:function(){return U()===0},
rowIndex:U})}}))))},"xl");
lkI.idomCompat=!0;var GCI=_.l(function(t){var E=function(){return t.data()},p=_.Ql(t.noPadding,!1),U=function(){var A,m;
return(m=(A=E().logo.accessibilityData)==null?void 0:A.label)!=null?m:""},x={};
return _.H("upsell-view-model",{class:_.X5("ytUpsellViewModelHost",(x.ytUpsellViewModelHostNoPadding=function(){return p()},x.ytUpsellViewModelHostWide=function(){return E().offerTable!==void 0},x))},_.H("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.H(_.w,{cond:function(){return _.b7(E().logo)},
then:function(A){return _.H(_.Q9,{data:A,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:U})}})),_.H("div",{class:"ytUpsellViewModelHostUpsellTitle",
role:"heading","aria-level":1,autofocus:!0,tabindex:-1},_.H(_.d8,{text:function(){return E().title}})),_.H("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.H(_.yG,{each:function(){var A;
return(A=E().subtitles)!=null?A:[]},
keyBy:"INDEX"},function(A){var m={};return _.H("div",{class:_.X5("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(m.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return E().offerTable!==void 0},m))},_.H(_.d8,{text:A}))})),_.H("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.H(_.yG,{each:function(){var A;
return(A=E().benefitInfos)!=null?A:[]},
keyBy:"INDEX"},function(A){return _.H(_.w,{cond:function(){return A().info},
then:function(m){return _.H("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.H(_.lz,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.H(_.d8,{text:m}))}})})),_.H(_.w,{cond:function(){return E().offerTable!==void 0},
then:function(){return _.H("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.H(_.sY,{data:function(){return E().offerTable}},{upsellOfferTableViewModel:function(A){return _.H(lkI,{data:A.data})}}))}}),_.H("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.H(_.yG,{each:function(){var A;
return(A=E().legalInfos)!=null?A:[]},
keyBy:"INDEX"},function(A){var m={};return _.H("div",{class:_.X5("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(m.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return E().offerTable!==void 0},m))},_.H(_.d8,{text:A}))})))},"yl");var nI8=_.l(function(t){var E=t.data;t={};t=(t.ytMiniAppScoreChallengeViewModelScoreRadial=!0,t.ytMiniAppScoreChallengeViewModelDarkScoreRadial=h5J(),t);return _.H("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.H("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return E().title}),_.H("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return E().subtitle}),_.H("div",{class:_.v9(t)},_.H("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return E().score})),_.H("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return E().prompt}))},"zl");var N6S=function(){this.store=_.Ro();this.formId=""};
N6S.prototype.onInit=function(t){t.formId&&(this.formId=t.formId,this.store.dispatch(_.Jj({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};
N6S.prototype.cleanup=function(){this.store.dispatch(_.Jj({type:"RESET_COMMAND_MAP"}))};var D2w=_.l(function(t){function E(b){if(b&&(b=_.k(b,_.on)))return Object.assign({},b,{isSelected:A()})}
var p=_.M(_.j5(function(){var b,f;return(f=(b=_.k(t.data().option,_.on))==null?void 0:b.isSelected)!=null?f:!1})),U=p.next().value,x=p.next().value,A=U;
_.A6(function(){var b;LtC((b=t.data().formSchema)==null?void 0:b.id,{onSubmit:function(){var f=_.X3().resolve(_.ei),B=!!t.data().selectedCommand,R=!!t.data().unselectedCommand;if(A()){if(B)var V=t.data().selectedCommand}else R&&(V=t.data().unselectedCommand);V=_.AJ(V);E(t.data().option)&&!V?(f="",!B&&R?f="selected ":B&&!R&&(f="unselected "),B=new _.cC("No "+f+"command found for SelectionListItemFormViewModel"),_.bV(B)):V&&f.resolveCommand(V)},
isValid:function(){return!0}})});
var m=function(){x(!A())};
_.iK(function(){var b,f,B=(b=t.data())==null?void 0:(f=b.formSchema)==null?void 0:f.id;B&&_.Nn()().delete(B)});
return _.H("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.H("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.H(_.d8,{text:function(){return t.data().paragraph}})),_.H(_.w,{cond:function(){return E(t.data().option)},
then:function(b){return _.H(_.jB,{data:b,isCompact:!0,hideSelectionTextChevron:!0,onTap:m,disableHorizontalPadding:!0})}}))},"Al");var s$I=_.l(function(t){var E=t.data;var p=t.disablePadding;var U=t.className;var x=_.EB("yt-dialog-header-view-model"),A=function(){var f=E().imageBanner;a:switch(E().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var B="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:B="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:f,style:B,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},m=function(){return E().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"},
b=function(){return E().alignment==="DIALOG_HEADER_ALIGNMENT_CENTER"};
_.A6(function(){var f=function(){_.du(x.value,"yt-refit-popups-action")},B;
(B=x.value)==null||B.addEventListener("image-loaded",f);_.iK(function(){var R;(R=x.value)==null||R.removeEventListener("image-loaded",f)})});
t={};return _.H("yt-dialog-header-view-model",{el:x,class:_.X5(U,(t.ytDialogHeaderViewModelHost=!0,t.ytDialogHeaderViewModelHostDisablePadding=p,t.ytDialogHeaderViewModelHostCentered=b,t))},_.H(_.w,{cond:function(){return E().imageBanner},
then:function(){var f={};return _.H("div",{class:_.X5(U,(f.ytDialogHeaderViewModelBanner=!0,f.ytDialogHeaderViewModelBannerFullBleed=m,f)),style:_.zO({"max-height":function(){return E().assetContainerMaxHeight!==void 0?E().assetContainerMaxHeight+"px":void 0}})},_.H(_.Nk,{data:A,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.H(_.w,{cond:function(){return E().headerBlock},
then:function(){var f={};return _.H("div",{class:_.X5("ytDialogHeaderViewModelHeaderBlock",(f.ytDialogHeaderViewModelHeaderBlockCentered=b,f))},_.H(_.sY,{data:function(){return E().headerBlock}},{contentPreviewImageViewModel:function(B){return _.H(_.Nk,{data:B.data,
notifyOnLoaded:!0})}}))}}),_.H(_.w,{cond:function(){return E().customBanner},
then:function(f){var B={};return _.H("div",{class:_.X5("ytDialogHeaderViewModelCustomAssetContainer",(B.ytDialogHeaderViewModelCustomAssetContainerCentered=b,B))},_.H(_.sY,{data:f},{avatarStackViewModel:_.wp}))}}),_.H(_.w,{cond:function(){return E().headline},
then:function(f){return _.H("h2",null,_.H(_.d8,{text:f,className:"ytDialogHeaderViewModelText"}))}}))},"Bl");
s$I.idomCompat=!0;var L6c=_.l(function(t){var E=_.PM_(function(){return t.data().formId}),p=E.submitForm,U=E.isValid;
return _.H("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.H(_.sY,{data:function(){return t.data().panelFooter}},{panelFooterViewModel:function(x){return _.H(FD,{data:x.data,
disablePadding:!0,disablePrimaryButton:function(){return!U()},
onClickPrimaryButton:function(){p()}})}}))},"Cl");var PFU=_.l(function(t){var E=function(){var p,U;return(U=(p=_.k(t.data().rendererContext,_.PY))==null?void 0:p.label)!=null?U:""};
return _.H("yt-dialog-image-content-view-model",{class:_.X5("ytDialogImageContentViewModelHost",t.className)},_.H(_.w,{cond:function(){return _.b7(t.data().image)},
then:function(p){var U={};return _.H("div",{style:_.zO((U.width=(0,_.RN)(function(){var x;return(x=t.data().imageMaxWidth)!=null?x:""}),U)),
class:"ytDialogImageContentViewModelImage"},_.H(_.Q9,{data:p,alt:E,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.H(_.d8,{text:function(){return t.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Dl");var W6t=_.l(function(t){var E=_.C4(t,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),p=E.elRefCallback;t=E.Icon;var U=E.Asset,x=E.assetType,A=E.Title,m=E.LeadingActionHeader,b=E.TrailingActionHeader,f=E.headerPosition,B=E.Content,R=E.buttonLayout,V=E.buttonStyle,Q=E.primaryButtonWiz,C=E.secondaryButtonWiz,d=E.contentAlignment,I=E.isFullscreen,O=E.width,a=E.maxHeight,F=E.isHeaderWizDefined,L=E.Header,D=E.isFooterWizDefined,
W=E.Footer;E=_.EB("dialog-layout",function(lY){p==null||p(lY)});
var K=Q?function(){var lY={};return Q({buttonOverrides:function(){return{style:(V==null?void 0:V())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.X5((lY["yt-spec-dialog-layout__dialog-layout-button"]=!0,lY["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(R==null?void 0:R())===0||(R==null?void 0:R())===2},lY))})}:void 0,v=C?function(){var lY={};
return C({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.X5((lY["yt-spec-dialog-layout__dialog-layout-button"]=!0,lY["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(R==null?void 0:R())===0||(R==null?void 0:R())===2},lY))})}:void 0,YL=function(){return(!!A||!!m||!!b)&&f()===0},bY={},kL={},R0={},j$={};
return _.H("dialog-layout",{el:E,class:_.X5((bY["yt-spec-dialog-layout"]=!0,bY["yt-spec-dialog-layout--dialog-layout-fullscreen"]=I,bY["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!I()},bY["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return a()===1},bY["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(x==null?void 0:x())===1},bY)),
style:function(){return(O==null?void 0:O())!==void 0?"width: "+O()+"px;":""}},t?_.H("div",{class:_.X5((kL["yt-spec-dialog-layout__dialog-layout-icon"]=!0,kL["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!U&&f()===1},kL["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return d()===1},kL))},_.H(t,null)):null,_.H(_.w,{cond:F,
then:function(){return L?_.H("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.H(L,null)):null},
else:function(){return _.H(_.Oj,null,_.H(_.w,{cond:YL,then:function(){return _.H(T6k,{contentAlignment:d,LeadingActionHeader:m,TrailingActionHeader:b,Title:A,isAboveAsset:!!U})}}),U?_.H("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.H(U,{className:"yt-spec-dialog-layout__dialog-layout-asset-item"})):null)}}),_.H("div",{class:_.X5((R0["yt-spec-dialog-layout__dialog-layout-container"]=!0,R0["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(d==null?void 0:d())===1},
R0["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=function(){return!A&&!(L&&F())||!!U&&(f==null?void 0:f())===0},R0))},_.H(_.w,{cond:function(){return A&&!L&&(f==null?void 0:f())===1},
then:function(){return _.H(T6k,{contentAlignment:d,LeadingActionHeader:m,TrailingActionHeader:b,Title:A,isAboveAsset:!1})}}),B?_.H("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.H("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.H(B,null))):null,_.H(_.w,{cond:D,
then:function(){return W?_.H("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.H(W,null)):null}}),K||v?_.H(oIF,{footerClasses:_.X5((j$["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,j$["yt-spec-dialog-layout__dialog-layout-footer"]=!0,j$["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(R==null?void 0:R())===2},j$["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(R==null?void 0:R())===1},j$)),
PrimaryButton:K,SecondaryButton:v}):null))},"El"),T6k=_.l(function(t){var E=_.C4(t,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),p=E.contentAlignment,U=E.LeadingActionHeader;t=E.Title;var x=E.TrailingActionHeader,A=E.isAboveAsset,m=E.enableLeadingActionHeader;E={};return _.H("div",{class:_.X5((E["yt-spec-dialog-layout__dialog-header-container"]=!0,E["yt-spec-dialog-layout__dialog-header"]=!0,E["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=A,E["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(p==null?void 0:p())===1&&m()},E))},_.H(_.w,{cond:function(){return m()},
then:function(){return U?_.H("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.H(U,null)):null}}),t?_.H("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.H(t,null)):null,x?_.H("div",null,_.H(x,null)):null)},"Fl"),oIF=_.l(function(t){var E=t.footerClasses;
var p=t.PrimaryButton;t=t.SecondaryButton;return _.H("div",{class:E},t?_.H(t,null):null,p?_.H(p,null):null)},"Gl");var $2G=new _.gM("TIME_PICKER_VIEW_MODEL_TOKEN");var K6U=_.l(function(t){var E=t.data;return _.H("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.H("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.H(_.sY,{data:function(){return E().avatar}},{avatarViewModel:_.fk})),_.H("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.H(_.d8,{text:function(){return E().title}})),_.H(_.d8,{text:function(){return E().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Hl");var vIC=_.l(function(t){return _.H("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.H("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.H(_.d8,{text:function(){return t.data().inviteMessage}})),_.H("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.H(_.d8,{text:function(){return t.data().attributedAccountSectionHeaderText}})),_.H("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.H(_.sY,{data:function(){return t.data().accountAvatar}},{avatarViewModel:_.fk}),_.H("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.H(_.d8,{text:function(){return t.data().accountName}}),_.H("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.H(_.d8,{text:function(){return t.data().handle}}))),_.H(_.sY,{data:function(){return t.data().trailingButton}},{buttonViewModel:_.D5})),_.H("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.H(_.d8,{text:function(){return t.data().termsOfService}})))},"Il");var yG$=_.l(function(t){var E=t.data;return _.H("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.H("div",{class:"ytAccessConfirmationViewModelContent"},_.H(_.sY,{data:function(){var p;return(p=E().avatar)!=null?p:E().dualAvatar}},{dualAvatarViewModel:function(p){return _.H(_.Ike,{data:p.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(p){return _.H(_.BM,{data:p.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.H("h2",{class:"ytAccessConfirmationViewModelTitle"},_.H(_.d8,{text:function(){return E().title}})),_.H(_.d8,{text:function(){return E().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Jl");var SSU=_.l(function(t){var E=function(){var b,f;return(b=t.data().formSchema)==null?void 0:(f=b.initialValues)==null?void 0:f.selectedLanguages},p=_.M(_.j5(function(){return E()})),U=p.next().value,x=p.next().value,A={};
_.M$(function(){var b=t.data().formSchema,f=b==null?void 0:b.submitConfig;t.data()!==A&&(A=t.data(),b&&f&&sKd(b.id,{isValid:function(){var B,R=(B=U())!=null?B:[],V;B=(V=E())!=null?V:[];if(R.length!==B.length)return!0;V=new Set(B);R=_.M(R);for(B=R.next();!B.done;B=R.next())if(!V.has(B.value))return!0;return!1},
formData:function(){return{preferredLanguageSettingsFormData:{selectedLanguages:U()||[]}}},
submitConfig:f}))},"iCaJcc");
var m=function(b){var f=b.key;if(f){var B;if(f&&((B=U())==null?0:B.includes(f))){var R;x((R=U())==null?void 0:R.filter(function(V){return V!==f}))}else x([].concat(_.KB(U()||[]),[f]))}};
return _.H("yt-preferred-language-settings-panel-view-model",{class:"ytPreferredLanguageSettingsPanelViewModelHost"},_.H(_.sY,{data:function(){return t.data().checkboxGroup}},{checkboxGroupViewModel:function(b){return _.H(H8t,{data:b.data,
onItemTap:m,selectedKeys:U,controlledMode:!0,disableHorizontalPadding:t.disableHorizontalPadding})}}))},"Ll");var cGc=_.l(function(t){var E=t.data;var p=void 0;t=_.M(_.j5(function(){var R;return((R=_.k(E().content,tk9))==null?void 0:R.defaultSelectedKey)||""}));
var U=t.next().value,x=t.next().value,A,m=function(){x("");var R;(R=p)==null||R.cleanup()};
_.A6(function(){p=new N6S;window.addEventListener("yt-popup-closed",m)});
_.M$(function(){if(p&&A!==E().formId&&(p.onInit(E()),(A=E().formId)&&U())){var R=p,V={key:U()};V.command&&R.store.dispatch(vE7(A,V.command))}},"bo7oA");
_.iK(function(){window.removeEventListener("yt-popup-closed",m)});
var b=function(R,V,Q){V.key&&Q&&V.key!==U()&&(x(V.key),p&&V.command&&p.store.dispatch(vE7(Q,V.command)))},f=function(){if(_.k(E().content,tk9))return!(U==null?0:U())},B=_.X3().resolve(_.OB($2G));
return _.H("yt-dialog-view-model",{class:_.X5("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.H(W6t,{Header:function(){return _.H(_.sY,{data:function(){return E().header}},{dialogHeaderViewModel:function(R){return _.H(s$I,{data:R.data,
disablePadding:!0})}})},
isHeaderWizDefined:function(){return!!E().header},
Content:function(){return _.H(_.sY,{data:function(){return E().customContent?E().customContent:E().content}},Object.assign({},{basicContentViewModel:_.Qn,
createPlaylistDialogFormViewModel:ak6,collaborativePlaylistInviteMessageViewModel:vIC,preferredLanguageSettingsPanelViewModel:function(R){return _.H(SSU,{data:R.data,disableHorizontalPadding:!0})},
miniAppScoreChallengeViewModel:nI8,radioButtonGroupViewModel:function(R){var V=R.data;return _.H(i8g,{data:V,selectedKey:U,onSelected:b,groupName:function(){return V().formId}})},
selectionListItemFormViewModel:D2w,upsellViewModel:function(R){return _.H(GCI,{data:R.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:K6U,installmentAgreementsViewModel:hcC,accessConfirmationViewModel:yG$,listViewModel:function(R){return _.H(_.L4p,{data:R.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:PFU},B&&{timePickerViewModel:B}))},
Footer:function(){return _.H(_.sY,{data:function(){return E().footer}},{panelFooterViewModel:function(R){return _.H(FD,{data:R.data,
disablePadding:!0,disablePrimaryButton:f})},
formPanelFooterViewModel:L6c,formFooterViewModel:function(R){return _.H(xIK,{data:R.data,disablePadding:!0})}})},
isFooterWizDefined:function(){return!!E().footer}}))},"Nl");
cGc.idomCompat=!0;_.k2(cGc,"yt-dialog-view-model",{props:{data:_.uu},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var tsc=_.l(function(t){var E=t.data;return _.H("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.H(_.w,{cond:function(){return E().title},
then:function(p){return _.H("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.H(_.d8,{text:p,className:"ytPanelHeaderViewModelTitle"}))}}),_.H(_.w,{cond:function(){return E().subtitle},
then:function(p){return _.H(_.d8,{text:p,className:"ytPanelHeaderViewModelSubtitle"})}}))},"Ol"),Ekt=_.l(function(t){var E=t.data;
var p=_.Q1i(function(){return E().rendererContext});
t={};return _.H("yt-panel-header-view-model",{class:_.X5("ytPanelHeaderViewModelHost",(t.ytPanelHeaderViewModelHostHideDivider=function(){return!!E().shouldHideDivider},t.ytPanelHeaderViewModelHostCompact=function(){return!!E().subtitle},t)),
"aria-label":function(){var U;return(U=p())==null?void 0:U.label}},_.H(_.w,{cond:function(){return _.te(E().rendererContext)},
then:function(){return _.H(_.Jnr,{className:"ytPanelHeaderViewModelButtonOrAnchor",command:function(){return _.c9(E().rendererContext)},
focusedClassName:"ytPanelHeaderViewModelButtonOrAnchorFocused"},_.H(tsc,{data:E}))},
else:function(){return _.H(tsc,{data:E})}}),_.H("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.H(_.sY,{data:function(){return E().trailingButtons}},{buttonViewModel:function(U){return _.H(_.D5,{data:U.data,
className:"ytPanelHeaderViewModelButton"})}})))},"Pl");
Ekt.idomCompat=!0;var pTU=_.l(function(t){var E=_.aC(function(A){var m;if((m=t.skipContentClick)==null?0:m.call(t))return!1;t.onContentWrapperClick(A);return!0}),p,U,x;
return _.H("div",{class:_.X5("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return t.isAnimating()?"transform: translateY("+t.currentY()+"px);transition: 0.2s":""}},(p=t.header)==null?void 0:p.call(t),_.H("div",{id:t.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.zO({"max-height":(0,_.RN)(t.maxHeightForContentWrapper)}),"on:scroll":_.aC(function(A){return t.onScroll(A),!1}),
"on:touchmove":_.aC(function(A){return A.stopPropagation(),!1})},_.H("div",{el:_.V9(t.contentWrapperEl),
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":E},(U=t.body)==null?void 0:U.call(t))),(x=t.footer)==null?void 0:x.call(t))},"Ql");
pTU.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var UES=_.l(function(t){var E=_.Ql(t.leadingLabel),p=_.Ql(t.trailingLabel),U=_.Ql(t.footerButtonType),x=function(){return E()||p()||t.hasPrimaryButton()||t.hasSecondaryButton()},A={},m=_.X5("yt-spec-bottom-sheet-layout__primary-button",(A["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return U()===0&&t.hasPrimaryButton()},A["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return U()===1&&t.hasPrimaryButton()},A["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return U()===2&&t.hasPrimaryButton()},A["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return U()===3&&t.hasPrimaryButton()},A));
A={};var b=_.X5("yt-spec-bottom-sheet-layout__secondary-button",(A["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return U()===1&&t.hasSecondaryButton()},A["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return U()===2&&t.hasSecondaryButton()},A["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return U()===3&&t.hasPrimaryButton()},A));
return _.H(_.w,{cond:t.hasFooterOverride,then:function(){var f;return _.H(_.Oj,null,(f=t.footerOverride)==null?void 0:f.call(t))},
else:function(){return _.H(_.w,{cond:x,then:function(){return _.H("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.H(_.w,{cond:function(){return E()||p()},
then:function(){var f={};return _.H("div",{class:_.X5("yt-spec-bottom-sheet-layout__footer-label-wrapper",(f["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!t.hasPrimaryButton()},f))},_.H(_.w,{cond:E,
then:function(){return _.H("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},E)}}),_.H(_.w,{cond:p,
then:function(){return _.H("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},p)}}))}}),_.H(_.w,{cond:function(){return t.hasPrimaryButton()||t.hasSecondaryButton()},
then:function(){var f={};return _.H("div",{class:_.X5("yt-spec-bottom-sheet-layout__footer-button-wrapper",(f["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.wIT,f))},_.H(_.w,{cond:function(){return t.hasSecondaryButton()&&U()!==0},
then:function(){var B;return _.H("div",{class:b},(B=t.secondaryButton)==null?void 0:B.call(t))}}),_.H(_.w,{cond:t.hasPrimaryButton,
then:function(){var B;return _.H("div",{class:m},(B=t.primaryButton)==null?void 0:B.call(t))}}))}}))}})}})},"Rl");
UES.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var xES=_.l(function(t){var E=_.Ql(t.title),p=_.Ql(t.subtitle);return _.H("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:t.headerId,"on:touchstart":_.aC(function(U){var x;(x=t.touchstart)==null||x.call(t,U);return!1}),
"on:touchmove":_.aC(function(U){var x;(x=t.touchmove)==null||x.call(t,U);return!1}),
"on:touchend":_.aC(function(U){var x;(x=t.touchend)==null||x.call(t,U);return!1})},_.H("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.H(_.w,{cond:t.hasHeaderOverride,
then:function(){var U;return _.H(_.Oj,null,(U=t.headerOverride)==null?void 0:U.call(t))},
else:function(){var U={};return _.H("div",{class:_.X5((U["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,U["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=E,U))},_.H("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.H(_.w,{cond:E,then:function(){return _.H(_.Oj,null,_.H("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},E),_.H(_.w,{cond:p,then:function(){return _.H("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
p)}}))}})),_.H(_.w,{cond:function(){return E()&&t.hasActionHeader()},
then:function(){var x;return _.H("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(x=t.actionHeader)==null?void 0:x.call(t))}}))}}))},"Sl");
xES.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.l(function(t){function E(YL){if(!L&&typeof MutationObserver!=="undefined"){var bY={childList:!0};"MutationObserver"in window&&(L=new MutationObserver(p.bind(void 0,YL)),L.observe(YL,bY))}}
function p(YL){typeof L!=="undefined"&&(D["content-wrapper"]===void 0&&(D["content-wrapper"]=YL.children[0].clientHeight),I(D["content-wrapper"]),d()>O()||a(d()))}
function U(){C(window.innerHeight);d()>O()||a(d());W.isFullScreen[0]()&&d()>O()?K().dispatch("Snap To Full Screen",{maxHeight:F()}):K().dispatch("Snap To Neutral Position",{maxHeight:O()})}
function x(YL){document.body.style.overscrollBehavior="none";YL.preventDefault();K().dispatch("Touch Start",{event:YL})}
function A(YL){YL.preventDefault();K().dispatch("Touch Move",{event:YL,contentScrollable:d()>O(),fullContentWrapperHeight:F(),contentWrapperHeight:O(),heightMap:D,contentWrapperId:"content-wrapper",header:l1e(t),footer:l1e(t),headerDivHeight:D["bottom-sheet-header"],footerDivHeight:D["bottom-sheet-footer"]})}
function m(){document.body.style.overscrollBehavior="";W.isFullScreen[0]()?W.currentY[0]()>=60?K().dispatch("Snap To Neutral Position",{maxHeight:O()}):K().dispatch("Snap To Full Screen",{maxHeight:F()}):W.currentY[0]()>=60?b():W.currentY[0]()<=-60&&d()>O()?K().dispatch("Snap To Full Screen",{maxHeight:F()}):K().dispatch("Snap To Neutral Position",{maxHeight:O()})}
function b(){K().dispatch("Close Sheet",{clientHeight:Q(),maxHeight:0});setTimeout(function(){z5e()},250)}
var f=_.EB("div"),B=_.EB("div"),R=_.M(_.Py(window.innerHeight,void 0,"CmOsU")),V=R.next().value;R=R.next().value;var Q=V,C=R;R=_.M(_.Py(0,void 0,"p0Flhb"));V=R.next().value;R=R.next().value;var d=V,I=R;R=_.M(_.j5(function(){var YL=l1e(t);return.6*Q()-a1g(YL)-e5t(YL)}));
V=R.next().value;R=R.next().value;var O=V,a=R,F=function(){var YL=l1e(t),bY=Q(),kL=D["bottom-sheet-header"],R0=D["bottom-sheet-footer"];return bY-(YL.hasHeaderFn&&kL!==void 0?kL:a1g(YL))-(YL.hasFooterFn&&R0!==void 0?R0:e5t(YL))-24-24},L=null,D={},W={initialY:_.Py(0,void 0,"sxdESd"),
currentY:_.Py(0,void 0,"GZzqeb"),isAnimating:_.Py(!1,void 0,"vJBupc"),isFullScreen:_.Py(!1,void 0,"XyRDp"),maxHeightForContentWrapper:_.j5(O)},K=function(){var YL=null;return function(){if(!YL){var bY={initialY:W.initialY[0](),currentY:W.currentY[0](),isAnimating:W.isAnimating[0](),isFullScreen:W.isFullScreen[0](),maxHeightForContentWrapper:W.maxHeightForContentWrapper[0]()};YL=Fb5(bY)}return YL}}();
_.A6(function(){window.addEventListener("resize",U);K().subscribe(function(YL){W.initialY[1](YL.initialY);W.currentY[1](YL.currentY);W.isAnimating[1](YL.isAnimating);W.isFullScreen[1](YL.isFullScreen);W.maxHeightForContentWrapper[1](YL.maxHeightForContentWrapper)});
requestAnimationFrame(function(){f.value&&(D["bottom-sheet-header"]=f.value.clientHeight);B.value&&(D["bottom-sheet-footer"]=B.value.clientHeight)})});
_.iK(function(){window.removeEventListener("resize",U);L&&(L.disconnect(),L=null)});
var v=_.X5({"bottom-sheet-content-without-icon":function(){var YL;return!((YL=t.shouldShowIcons)==null?0:YL.call(t))}});
return _.H("bottom-sheet-layout",null,_.H(pTU,{contentWrapperId:"content-wrapper",isAnimating:function(){return W.isAnimating[0]()},
currentY:function(){return W.currentY[0]()},
maxHeightForContentWrapper:function(){return W.maxHeightForContentWrapper[0]()},
shouldShowIcons:t.shouldShowIcons,skipContentClick:t.skipContentClick,onScroll:function(){var YL=document.getElementById("bottom-sheet-header"),bY=document.getElementById("content-wrapper");if(YL&&bY){var kL={};kL=(kL["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,kL["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,kL);YL.className=bY.scrollTop>1?_.v9(kL):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:z5e,contentWrapperEl:function(YL){E(YL);requestAnimationFrame(function(){p(YL)})},
header:function(){return _.H("div",{el:f},_.H(xES,{touchstart:x,touchmove:A,touchend:m,title:t.headerTitle,subtitle:t.headerSubtitle,headerId:"bottom-sheet-header",headerOverride:t.headerFn,hasHeaderOverride:t.hasHeaderFn,actionHeader:t.headerActionHeader,hasActionHeader:t.hasHeaderActionHeader}))},
footer:function(){return _.H("div",{el:B},_.H(UES,{footerButtonType:t.footerButtonType,leadingLabel:t.footerLeadingLabel,trailingLabel:t.footerTrailingLabel,primaryButton:t.footerPrimaryButton,hasPrimaryButton:t.hasFooterPrimaryButton,secondaryButton:t.footerSecondaryButton,hasSecondaryButton:t.hasFooterSecondaryButton,footerOverride:t.footerFn,hasFooterOverride:t.hasFooterFn}))},
body:function(){return _.H(_.w,{cond:t.hasContentFn,then:function(){var YL;return _.H("div",{class:v},(YL=t.contentFn)==null?void 0:YL.call(t))}})}}))},"Tl").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var A96=_.l(function(t){var E=_.X3().resolve(_.bL);return _.H("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.aC(function(){return void E.closeSheet()})},_.H(_.w,{cond:function(){return!!t.header},
then:function(){return _.H("div",{class:"ytContextualSheetLayoutHeaderContainer"},t.header())}}),_.H(_.w,{cond:function(){return!!t.content},
then:function(){return _.H("div",{class:"ytContextualSheetLayoutContentContainer"},t.content())}}),_.H(_.w,{cond:function(){return!!t.footer},
then:function(){return _.H("div",{class:"ytContextualSheetLayoutFooterContainer"},t.footer())}}))},"Ul");
A96.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var Y26=_.l(function(t){var E=t.data;var p=_.X3().resolve(_.ei),U=_.EB("yt-sheet-view-model",function(x){if(_.r("web_focus_first_element_sheet")||!_.r("sheet_focus_first_killswitch"))return x.addEventListener("focus",function(){DW5(x)}),function(){x.removeEventListener("focus",function(){DW5(x)})}});
t={};return _.H("yt-sheet-view-model",{"on:mousedown":_.aC(function(x){_.r("sheet_focus_first_killswitch")||x.currentTarget!==x.target&&x.preventDefault()}),
"on:focus":_.aC(function(){_.r("sheet_focus_first_killswitch")||DW5(U.value)}),
"on:mouseleave":_.aC(function(){var x,A=E==null?void 0:(x=E())==null?void 0:x.rendererContext,m;(x=(m=_.k(A,_.p$))==null?void 0:m.onHoverEnd)&&p.resolveCommand(x)}),
class:_.X5("ytSheetViewModelHost",(t.ytSheetViewModelContextual=!0,t.ytSheetViewModelDisableBackdropFilter=_.r("web_disable_backdrop_filter"),t)),el:U,tabindex:-1},_.H(_.w,{cond:E,then:function(x){return _.H(A96,{header:function(){return _.H(_.sY,{data:function(){return x().header}},{panelHeaderViewModel:Ekt})},
content:function(){return _.H(_.sY,{data:function(){return x().content}},{listViewModel:function(A){return _.H(_.L4p,{data:A.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:GCI,miniAppScoreChallengeViewModel:nI8})},
footer:function(){return _.H(_.sY,{data:function(){return x().footer}},{panelFooterViewModel:FD})}})}}))},"Vl");
Y26.idomCompat=!0;_.k2(Y26,"yt-sheet-view-model",{props:{data:_.uu}});var mES=_.l(function(t){var E=function(){var p;return(p=t.data().enableDebuggingFeatures)!=null?p:!1};
return _.H("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.H(_.yG,{each:function(){var p;return(p=t.data().stickers)!=null?p:[]}},function(p){return _.H(Ms$,{data:function(){return p},
debugMode:E})}))},"Wl"),Ms$=_.l(function(t){var E=_.C4(t,{debugMode:!1}).debugMode,p=_.Ql(function(){var f;
return(f=t.data().region)==null?void 0:f.w},0),U=_.Ql(function(){var f;
return(f=t.data().region)==null?void 0:f.h},0),x=_.Ql(function(){var f;
return(f=t.data().region)==null?void 0:f.x},0),A=_.Ql(function(){var f;
return(f=t.data().region)==null?void 0:f.y},0),m=_.aC(function(){var f=t.data().onTap;
f&&_.bz(f)}),b={};
return _.H("div",{class:_.X5("ytStoriesStickerLayerViewModelSticker",(b.ytStoriesStickerLayerViewModelDebugMode=E,b)),style:_.zO({width:function(){return 100*p()+"%"},
height:function(){return 100*U()+"%"},
left:function(){return 100*x()+"%"},
top:function(){return 100*A()+"%"},
"flex-direction":function(){return GmJ(t.data().flexDirection)},
"justify-content":function(){return nZ7(t.data().justifyContent)},
"align-items":function(){return NW7(t.data().alignItems)}}),
"on:click":m},_.H(_.sY,{data:function(){return t.data().button||t.data().toggleButton}},{buttonViewModel:function(f){return _.H(_.D5,{data:f.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(f){return _.H(_.m3,{data:f.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Xl");var iB6=_.l(function(t){var E=function(){return t.data()},p={},U=_.M(_.Py(!1,void 0,"SegA3d")),x=U.next().value,A=U.next().value,m=_.Ql(function(){return E().backgroundColor},0);
U=_.Ql(function(){return E().actionButtons},[]);
var b=_.Ql(function(){return E().stickerLayer},{}),f=function(){var R,V;
return{animationRef:p,animationConfig:{autoplay:!1,loop:!1,path:(V=(R=E().foregroundAnimation)==null?void 0:R.url)!=null?V:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){A(!0)},
complete:function(){t.navigateToNextItemOnLottieComplete()}}}},B=function(){var R,V,Q,C,d,I,O,a;
return{animationConfig:{autoplay:(I=(R=E().backgroundAnimation)==null?void 0:(V=R.settings)==null?void 0:V.autoplay)!=null?I:!1,loop:(O=(Q=E().backgroundAnimation)==null?void 0:(C=Q.settings)==null?void 0:C.loop)!=null?O:!1,path:(a=(d=E().backgroundAnimation)==null?void 0:d.url)!=null?a:"",name:"stories_item_background_animation"}}};
_.M$(function(){if(t.isVisible()&&x()){var R;(R=p.lottieEl)==null||R.play();t.animationRef()&&(t.animationRef().lottieEl=p.lottieEl)}else{var V;(V=p.lottieEl)==null||V.stop()}},"MxM2wb");
return _.H("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.zO({"background-color":function(){return _.cL(m())+";"}})},_.H("div",{class:"ytStoriesItemViewModelAssetContent"},_.H(_.w,{cond:function(){return!!E().backgroundAnimation},
then:function(){return _.H(_.Wg,{data:B,animationName:function(){return B().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.H(_.w,{cond:function(){return!!E().backgroundImage},
then:function(){return _.H(_.Q9,{data:function(){return E().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.H(_.w,{cond:function(){return!!E().foregroundAnimation},
then:function(){return _.H(_.Wg,{data:f,animationName:function(){return f().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.H(_.w,{cond:function(){return!!E().foregroundImage},
then:function(){return _.H(_.Q9,{data:function(){return E().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.H("div",{class:"ytStoriesItemViewModelTopShadow"}),_.H(_.sY,{data:function(){return b()}},{storiesStickerLayerViewModel:mES})),_.H("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.zO({"background-color":function(){return _.cL(m())}})},_.H("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.H(_.yG,{each:U},function(R){return _.H(bBF,{data:function(){return R},
pauseAutoNavigation:t.pauseAutoNavigation})}))))},"Zl"),q2$={style:"overlay",
type:"outline"},bBF=_.l(function(t){var E={};return _.H("div",{class:_.X5("ytStoriesItemViewModelActionButton",(E.ytStoriesItemViewModelStretchedActionButton=function(){return t.data().size==="STORIES_BUTTON_SIZE_STRETCH"},E)),
"on:click":_.aC(t.pauseAutoNavigation)},_.H(_.sY,{data:function(){return t.data().button}},{buttonViewModel:function(p){return _.H(_.D5,{data:p.data,
buttonOverrides:q2$})}}))},"$l");var HBS={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.k2(_.l(function(t){var E=function(){var R0;return(R0=t.data().startIndex)!=null?R0:0},p=_.M(_.j5(E)),U=p.next().value,x=p.next().value;
p=_.M(_.Py(!1,void 0,"sjy7s"));var A=p.next().value,m=p.next().value,b=function(){var R0;return(R0=t.data().storyItems)!=null?R0:[]},f={},B=_.EB("yt-stories-viewer-view-model"),R=function(){return t.data().dismissButton},V=function(){var R0;
return _.AJ((R0=_.k(R(),_.Cz))==null?void 0:R0.onTap)},Q=_.EB("div"),C,d,I=!1,O=function(){var R0;
(R0=C)==null||R0.cancel();C=a(U()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});C.onfinish=function(){var j$=_.k(b()[U()],Bol),lY,Tt;j$!=null&&j$.foregroundAnimation&&((j$==null?0:(lY=j$.foregroundAnimation)==null?0:lY.url)||(j$==null?0:(Tt=j$.foregroundAnimation)==null?0:Tt.payload))||(U()!==b().length-1?(x(U()+1),O()):V()&&_.Y2(V()))}},a=function(R0){return Q.value.children[R0].children[0]},F=function(){for(var R0=0;R0<U();R0++)a(R0).style.transform=
"scaleX(1)"},L=function(){I||(A()?m(!1):(U()===b().length-1&&V()&&_.Y2(V()),a(U()).style.transform="scaleX(1)",U()!==b().length-1&&(x(U()+1),O())))},D=function(){I||(A()?m(!1):(a(U()).style.transform="scaleX(0)",U()!==0&&x(U()-1),O()))},W=function(){m(!0)},K=function(){a(U()).style.transform="scaleX(1)";
U()!==b().length-1?(x(U()+1),O()):V()&&_.Y2(V())};
p=function(){I=!1;d=setTimeout(function(){m(!0);I=!0},300)};
var v=function(){clearTimeout(d);I&&A()&&m(!1)};
_.M$(function(){if(A()){var R0;(R0=C)==null||R0.pause();var j$;(j$=f.lottieEl)==null||j$.pause()}else{var lY;(lY=C)==null||lY.play();var Tt;(Tt=f.lottieEl)==null||Tt.play()}},"vAvZob");
_.M$(function(){F();U()===E()&&O()},"uSlfE");
var YL=function(R0){R0.key==="ArrowLeft"?D():R0.key==="ArrowRight"&&L()},bY=function(R0){if(R0.target===B.value){(R0=V())&&_.Y2(R0);
clearTimeout(d);var j$;(j$=C)==null||j$.cancel();var lY;(lY=f.lottieEl)==null||lY.stop();window.removeEventListener("keydown",YL);window.removeEventListener("yt-popup-closed",bY)}},kL=function(R0){if(R0.target===B.value){var j$;
(j$=f.lottieEl)==null||j$.play();window.addEventListener("keydown",YL);window.addEventListener("yt-popup-closed",bY)}};
_.A6(function(){F();O();window.addEventListener("yt-popup-opened",kL)});
return _.H("yt-stories-viewer-view-model",{el:B,class:_.X5("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.H("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.H("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.aC(D),"on:mousedown":_.aC(p),"on:mouseup":_.aC(v),"on:mouseleave":_.aC(v)}),_.H("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.aC(L),"on:mousedown":_.aC(p),"on:mouseup":_.aC(v),"on:mouseleave":_.aC(v)})),
_.H("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.H(_.sY,{data:b},{storiesItemViewModel:function(R0,j$){var lY=R0.data;return _.H(_.w,{cond:function(){return Math.abs(j$()-U())<=1},
then:function(){var Tt={};return _.H("div",{class:_.X5("ytStoriesViewerViewModelStoryItem",(Tt.ytStoriesViewerViewModelActiveStoryItem=function(){return j$()===U()},Tt))},_.H(iB6,{data:lY,
pauseAutoNavigation:W,navigateToNextItemOnLottieComplete:K,isVisible:function(){return j$()===U()},
animationRef:f}))}})}})),_.H("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:Q},_.H(_.yG,{each:b},function(){return _.H("div",{class:"ytStoriesViewerViewModelProgressBar"},_.H("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.H("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.H(_.Q9,{data:HBS,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.H("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.H(_.sY,{data:function(){return t.data().menuButton}},{buttonViewModel:function(R0){return _.H(_.D5,{data:R0.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.H(_.sY,{data:function(){return t.data().muteButton}},{toggleButtonViewModel:function(R0){return _.H(_.m3,{data:R0.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.H(_.sY,{data:R},{buttonViewModel:function(R0){return _.H(_.D5,{data:R0.data,
className:"ytStoriesViewerViewModelActionButton"})}}))))},"cm"),"yt-stories-viewer-view-model",{props:{data:_.uu}});_.k2(_.l(function(t){var E=t.data;var p=_.EB("yt-gen-ai-feedback-form-view-model"),U=[];return _.H("yt-gen-ai-feedback-form-view-model",{el:p,class:"ytGenAiFeedbackFormViewModelHost"},_.H(_.d8,{text:function(){return E().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.H("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.H(_.sY,{data:function(){return E().feedbackChips}},{toggleButtonViewModel:function(x){var A=x.data;
return _.H(_.m3,{data:A,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(m){var b=A();b=_.k(b,_.rc);b=_.k(b==null?void 0:b.defaultButtonViewModel,_.Cz).trackingParams;m?U.push(b):(m=U.indexOf(b),m>-1&&U.splice(m,1))}})}})),_.H(_.d8,{text:function(){return E().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.H("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.H(_.sY,{data:function(){return E().submitButton}},{buttonViewModel:function(x){return _.H(_.D5,{data:x.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){Dmt(p.value,U,E().uniqueId)}})}}),_.H(_.sY,{data:function(){return E().moreFeedbackButton}},{buttonViewModel:function(x){return _.H(_.D5,{data:x.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"dm"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.uu},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var oM=function(){return _.z.apply(this,arguments)||this};
_.u(oM,_.z);oM.prototype.created=function(){JI5(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(xPe);var t=_.X3().resolve(_.oO8);t&&(t.container=this.ytPopupContainerBehavior);if(t=_.X3().resolve(_.bL))t.container=this.ytPopupContainerBehavior;if(t=_.X3().resolve(_.iL)){var E=this.ytPopupContainerBehavior;t.containerWasInjected?_.qW(Error("tj")):t.container=E}};
oM.prototype.ensurePopupBelowPlayer=function(t,E){var p=_.X3().resolve(_.OB(_.jw));if(!p||!p.isOnWatch()||!_.k1())return!1;p=p.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.NJ().height>p+this.getPopupHeight(t,E)?(t.style.top="auto",t.style.bottom="0px"):(t.style.top=p+"px",t.style.bottom="auto");return!0};
oM.prototype.getPopupHeight=function(t,E){E&&(t.cachedPopupHeight=0);if(!t.cachedPopupHeight){E=0;var p=t.clientHeight,U=window.getComputedStyle(t);E+=parseInt(U.marginTop,10);E+=parseInt(U.marginBottom,10);t.cachedPopupHeight=p+E}return t.cachedPopupHeight};
oM.prototype.getElement=function(t){return document.createElement(t)};
_.N([_.g(CGC.YtPopupContainerBehavior),_.P("design:type",Object)],oM.prototype,"ytPopupContainerBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],oM.prototype,"ytComponentBehavior",void 0);_.N([_.Ul({disableElementRegistration:!0,is:"ytd-popup-container"})],oM);
_.G(oM,"ytd-popup-container",function(){if(isw!==void 0)return isw;var t=document.createElement("template");_.J(t,"\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");t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);return isw=t},{mode:1});var foG;var B3F={};B3F.YtLogYpcFlowCommandsBehavior=[_.oO.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(t){_.k(t,Q88)&&(t=_.k(t,Q88))&&(t.serializedTransactionFlowLoggingParams?_.VSO(t.serializedTransactionFlowLoggingParams):t.serializedYpcCancelFlowLoggingParams?(t=t.serializedYpcCancelFlowLoggingParams)&&f8("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",t):t.serializedYpcResumeFlowLoggingParams?(t=t.serializedYpcResumeFlowLoggingParams)&&f8("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",t):t.serializedYpcPauseFlowLoggingParams?(t=t.serializedYpcPauseFlowLoggingParams)&&
f8("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",t):t.serializedYpcRefundFlowLoggingParams?(t=t.serializedYpcRefundFlowLoggingParams)&&VRJ("YPC_EVENT_TYPE_START",t):t.serializedYpcDeactivateFlowLoggingParams?(t=t.serializedYpcDeactivateFlowLoggingParams)&&f8("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",t):t.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(t=t.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&f8("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",t))},
handleLogYpcFlowDismiss_:function(t){_.k(t,VkC)&&(t=_.k(t,VkC),t.serializedTransactionFlowLoggingParams?_.QdJ(t.serializedTransactionFlowLoggingParams):t.serializedYpcCancelFlowLoggingParams?(t=t.serializedYpcCancelFlowLoggingParams)&&f8("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",t):t.serializedYpcResumeFlowLoggingParams?(t=t.serializedYpcResumeFlowLoggingParams)&&f8("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",t):t.serializedYpcPauseFlowLoggingParams?(t=t.serializedYpcPauseFlowLoggingParams)&&
f8("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",t):t.serializedYpcRefundFlowLoggingParams&&(t=t.serializedYpcRefundFlowLoggingParams)&&VRJ("YPC_EVENT_TYPE_CANCEL",t))}}];var wTF={};wTF.YtCancelRecurrenceBehavior=[_.RO.YtComponentBehavior,_.iXr,{attached:function(){var t=this;iJt(this,function(E,p){return t.ypcCancelRecurrenceHandler(E,p)})},
ypcCancelRecurrenceHandler:function(t,E){var p=this;if(!E||!E.ypcCancelRecurrenceEndpoint)return!1;if(!E.ypcCancelRecurrenceEndpoint.params)return _.fR(Error("nm")),!0;_.bm(this.hostElement);var U=_.iA.instance,x=_.X3().resolve(_.OB(_.Lf));U&&_.qn(U,E)?_.H9(U,E).then(function(A){p.ypcCancelRecurrenceSuccess_(t,E,{data:A})},function(A){p.ypcCancelRecurrenceFailure_(t,E,A)}).thenCatch(function(){_.fR(Error("om"))}):x?x.requestDataForServiceEndpoint(E).then(function(A){p.ypcCancelRecurrenceSuccess_(t,
E,A)},function(A){p.ypcCancelRecurrenceFailure_(t,E,A)}).thenCatch(function(){_.fR(Error("om"))}):_.fR(Error("pm"));
return!0},
ypcCancelRecurrenceSuccess_:function(t,E,p){_.im(this.hostElement);p.data||(p={data:p});p.data&&p.data.actions&&_.IK(this.hostElement,p.data.actions,this.hostElement);p.data.messageRenderer?rZ7(E.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(E=E.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&f8("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",E);_.kT(t,"yt-service-request-completed",p)},
ypcCancelRecurrenceFailure_:function(t,E,p){_.im(this.hostElement);rZ7(E.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.kT(t,"yt-service-request-error",{error:p,params:[t,E]})}}];var RX6=function(t,E){_.tD.call(this,E)};
_.u(RX6,jJK);var Vs$={};Vs$.YtCompleteTransactionBehavior=[_.RO.YtComponentBehavior,_.iXr,{attached:function(){var t=this;iJt(this,function(E,p){return t.ypcCompleteTransactionHandler(E,p)})},
completeTransaction:function(t,E){var p=this;E={payments_payload:window.btoa(E.integratorData),buybucket_params:t.data.buybucketParams,offer_params:t.data.offerParams};var U=_.X3().resolve(_.Lf),x=t.data.completeTransactionEndpoint,A=this.get("ypcCompleteTransactionEndpoint.actions",x);A&&_.IK(this.hostElement,A,this.hostElement);return(A=_.iA.instance)&&_.qn(A,x)?_.H9(A,x,E).then(function(m){return!m||(m==null?0:m.error)?(m=p.get("data.serializedTransactionFlowLoggingParams",t),_.S5(new kS("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
m))):{data:m}}).then(function(m){return p.handleCompleteTransactionSuccess_(m,t)},function(){return p.handleCompleteTransactionFailure_(t)}):U.requestDataForServiceEndpoint(x,E).then(function(m){return p.handleCompleteTransactionSuccess_(m,t)},function(){return p.handleCompleteTransactionFailure_(t)})},
handleCompleteTransactionSuccess_:function(t,E){t.data||(t={data:t});if(t.data.messageRenderer)return _.S5(new RX6(t.data.messageRenderer));if(t.data.trackingParams){var p=_.yL(),U=_.vV();p&&U&&_.Yh(p,U,_.$8(t.data.trackingParams))}E=this.get("data.serializedTransactionFlowLoggingParams",E);QK8(E);return _.gu(t)},
handleCompleteTransactionFailure_:function(t){t=this.get("data.serializedTransactionFlowLoggingParams",t);_.wz("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",t);return _.S5(new kS("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",t))},
ypcCompleteTransactionHandler:function(t,E){var p=this;if(!E.ypcCompleteTransactionEndpoint)return!1;if(!E.ypcCompleteTransactionEndpoint.transactionParams)return _.fR(Error("qm")),!0;E.ypcCompleteTransactionEndpoint&&E.ypcCompleteTransactionEndpoint.gtmData&&_.AS(E.ypcCompleteTransactionEndpoint.gtmData);var U=_.X3().resolve(_.OB(_.Lf));if(U){_.bm(this.hostElement);var x=_.iA.instance;x&&_.qn(x,E)?_.H9(x,E).then(function(A){return!A||(A==null?0:A.error)?(A=p.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
E),_.S5(new kS("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",A))):{data:A}}).then(function(A){_.kT(t,"yt-service-request-completed");
p.ypcCompleteTransactionSuccess_(E,A)},function(){return p.ypcCompleteTransactionFailure_(E)}):U.requestDataForServiceEndpoint(E).then(function(A){_.kT(t,"yt-service-request-completed");
p.ypcCompleteTransactionSuccess_(E,A)},function(){return p.ypcCompleteTransactionFailure_(E)})}return!0},
ypcCompleteTransactionSuccess_:function(t,E){_.im(this.hostElement);E.data||(E={data:E});_.du(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);E.data.messageRenderer||E.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(t):(_.AS('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",t));E.data.actions&&(t=kOL(E.data.actions),E=dA7(E.data.actions),t.length&&_.JZ(this.hostElement,
t),E.length&&_.IK(this.hostElement,E,this.hostElement))},
ypcCompleteTransactionFailure_:function(t){_.im(this.hostElement);_.du(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",t,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(t,E,p){if(E=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",E))E={serializedTransactionFlowLoggingParams:E},p&&(E.errorType=p),_.MW(t,E),_.mL()}}];var QRc={};QRc.YtEndpointHandlerWithYpcBehavior=[_.iXr,_.oO.YtActionHandlerBehavior,[{openWalletDialog:function(t,E,p,U,x,A,m){var b=this,f=_.fd();E=E.replace(/-/g,"+").replace(/_/g,"/");var B=_.nF().get("hl");_.V9D(_.I7(_.RG),E,f.resolve,x,function(R){A&&A();f.reject(R)},B,function(R){return b.onServerBackendAnalyticEvent_(t,p,R)},this.onDialogClose_.bind(this),U,m);
return f.promise},
openFixFlowDialog:function(t,E,p,U){t=t.replace(/-/g,"+").replace(/_/g,"/");_.I7(_.RG).openFixFlowDialog(t,E,p,U)},
onDialogClose_:function(){_.du(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(t,E,p){_.kT(t,"yt-commerce-action-init-done");E&&_.JZ(this.hostElement,[E,{backend_analytics:p}])}}],
_.Pg.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(t,E){t=this.get("data.nativeFlowEndpoint",E);E=this.get("data.fallbackEndpoint",E);t?_.JZ(this.hostElement,[t]):E&&_.kT(this.hostElement,"yt-navigate",{endpoint:E})}}],
wTF.YtCancelRecurrenceBehavior,Vs$.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 t=this;iJt(this,function(E,p,U){return t.handleYPCEndpoint(E,p,U)});
this.ypcRegisterActionMapJobId_=_.E_(_.ir,function(){t.registerActionMap(t.buyFlowActionMap_)})},
detached:function(){var t=this;_.ir.cancelJob(this.ypcRegisterActionMapJobId_);_.E_(_.ir,function(){t.unregisterActionMap(t.buyFlowActionMap_)})},
handleYPCEndpoint:function(t,E,p){var U=E.ypcGetCartEndpoint;if(U){_.yS("commerce_transaction");var x=U.gtmId;x&&_.x9(x);(U=U.gtmData)&&_.AS(U)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",E)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(t,E),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",E)!=null?(this.handleYPCFixInstrumentEndpoint_(t,E),!0):E.ypcPauseSubscriptionCommand?(vZb(this.hostElement,t,E,p),
!0):E.ypcResumeSubscriptionCommand?(cyK(this.hostElement,t,E),!0):E.getPaymentInstrumentsParamsCommand?(Wbb(this.hostElement,t,E),!0):E.ypcHandleTransactionEndpoint?(TWe(this.hostElement,t,E,p),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(t,E){var p=this;_.SR("ttcr",void 0,"commerce_transaction");E=E.ypcGetCartEndpoint;var U=E.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,x=U.encryptedPurchaseParams,A=U.serializedTransactionFlowLoggingParams,m=U.serializedPaymentsClientParams,b=this.createGetCartResponseFromParams_(U,E.offerParams,A);this.changeButtonState(t,!0);_.Mx(this.openWalletDialog(t,x,U.ypcLogWalletAnalyticDataEndpoint,A,function(){p.changeButtonState(t,!1)},function(){p.changeButtonState(t,
!1)},m).then(function(f){return p.handleBuyFlowCompleteCallback_(t,b,f)},function(){return p.handleOnLoadError(b)}).then(function(f){return void p.handlePostPurchaseSuccess_(t,b,f)},function(f){return void p.handlePostPurchaseError_(f)}),function(){p.changeButtonState(t,!1);
t instanceof Element&&_.kT(t,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(t,E,p){var U=t.completeTransactionEndpoint,x=t.handleTransactionEndpoint;E={data:{offerParams:window.btoa(E),serializedTransactionFlowLoggingParams:p}};x?E.data.handleTransactionEndpoint=x:E.data.completeTransactionEndpoint=U;t.onCartDismissCommand&&(E.data.onCartDismissCommand=t.onCartDismissCommand);return E},
onGetCartServiceRequestCompleted_:function(t,E){var p=this,U=t.target;if(E&&E.data&&E.data.messageRenderer)_.im(this.hostElement),this.handleMessageRenderer_(E.data.messageRenderer),this.changeButtonState(U,!1);else{var x=this.get("data.encryptedPurchaseParams",E),A=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",E),m=this.get("data.ypcLogWalletAnalyticDataEndpoint",E),b=this.get("data.serializedPaymentsClientParams",E),f=this.getLoggingParams_(E);if(f||x||A)t.stopPropagation(),_.SR("ttcr",
void 0,"commerce_transaction"),x||_.im(this.hostElement),this.changeButtonState(U,!1),A?_.du(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.qO("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:A}}},this]):x&&(this.changeButtonState(U,!0),t=null,t=this.openWalletDialog(U,x,m,f,function(){_.im(p.hostElement);p.changeButtonState(U,!1)},function(){_.im(p.hostElement);
p.changeButtonState(U,!1)},b),_.Mx(t.then(function(B){return p.handleBuyFlowCompleteCallback_(U,E,B)},function(){return p.handleOnLoadError(E)}).then(function(B){return p.handlePostPurchaseSuccess_(U,E,B)},function(B){return p.handlePostPurchaseError_(B)}),function(){p.changeButtonState(U,!1);
_.kT(U,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(t,E){E&&E.endpoint&&E.endpoint.ypcGetCartEndpoint&&!E.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",E.endpoint.ypcGetCartEndpoint)&&_.IK(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",E.endpoint.ypcGetCartEndpoint)],t.target),_.bm(this.hostElement),this.changeButtonState(t.target,!0))},
onServiceRequestError_:function(t,E){if(E&&E.params&&E.params.length){E=_.M(E.params);for(var p=E.next();!p.done;p=E.next())if((p=p.value)&&p.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",p.ypcGetCartEndpoint)&&_.IK(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",p.ypcGetCartEndpoint)],t.target);_.im(this.hostElement);this.changeButtonState(t.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(t,E,p){var U=p.integratorData;return U==null||U===""||p.error!=null?(U=this.getLoggingParams_(E),String(p.error)==="-1"?(E.data.onCartDismissCommand&&_.IK(this.hostElement,[E.data.onCartDismissCommand],t),_.S5(new kS("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",U,!0))):_.S5(new kS("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",U))):E.data.handleTransactionEndpoint?oZ7(this.hostElement,E.data.handleTransactionEndpoint,{payments_payload:U,funds_guarantee_callback_client_data:p.integratorClientCallbackData}):
this.completeTransaction(E,p)},
handlePostPurchaseSuccess_:function(t,E,p){E=p.data;var U=!1,x,A;if(E&&((x=E.command)==null?0:(A=x.commandExecutorCommand)==null?0:A.commands)){var m,b;x=(m=E.command)==null?void 0:(b=m.commandExecutorCommand)==null?void 0:b.commands;for(m=0;m<x.length;m++)if(_.k(x[m],_.Mms)){U=!0;break}}U||(E&&E.gtmDatas&&E.gtmDatas.length?_.AS(E.gtmDatas[0]):_.AS('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));p.data&&p.data.actions&&(E=kOL(p.data.actions),p=dA7(p.data.actions),E.length&&
_.JZ(this.hostElement,E),p.length&&_.IK(this.hostElement,p,t))},
handlePostPurchaseError_:function(t){t&&t.payload&&t.payload.isUserDismiss||_.bV(Error("sm"))},
handleOnLoadError:function(t){t=this.getLoggingParams_(t);return _.S5(new kS("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",t))},
getLoggingParams_:function(t){return this.get("data.serializedTransactionFlowLoggingParams",t)},
handleMessageRenderer_:function(t){var E=_.mY(t,"renderer"),p=_.qO("openPopupConfig");E==="confirmDialogRenderer"&&p&&_.du(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:p.popupTypeMap[E],popup:t}},this])},
handleYPCFixInstrumentEndpoint_:function(t,E){var p=this,U=E.ypcFixInstrumentEndpoint;E=U.encryptedFixInstrumentParameters;this.logFixFopEvent_(U,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(t,!0);this.openFixFlowDialog(E,function(x,A){p.onFixFlowCompleteCallback_(U,x,A)},function(){return p.changeButtonState(t,!1)},function(){p.changeButtonState(t,!1);
p.logFixFopEvent_(U,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(t,E,p){var U=_.ws("payments.business.integration.scenario.FixInstrument");if(E==U.IntegratorCallbackType.ON_COMPLETE){E="FIX_FOP_EVENT_TYPE_CANCEL";var x=null;p.error!=null?p.error!=U.OnCompleteCallbackError.USER_CANCELLED&&(_.IK(this.hostElement,[t.errorAction],this.hostElement),E="FIX_FOP_EVENT_TYPE_FAILURE",x="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.IK(this.hostElement,[t.successAction],this.hostElement),E="FIX_FOP_EVENT_TYPE_SUCCESS");_.IK(this.hostElement,[t.onFinishAction],
this.hostElement);this.logFixFopEvent_(t,E,x)}},
logFixFopEvent_:function(t,E,p){(t=t.serializedFixFopLoggingParams)?(E={eventType:E,serializedFixFopLoggingParams:t},p!=null&&(E.errorType=p),_.MW("fixFopFlow",E),_.mL()):_.bV(Error("tm"))},
changeButtonState:function(t,E){_.r("enable_ypc_spinners")&&t&&(t.is==="yt-button-renderer"||t.is==="ytd-button-renderer")&&(t.disabled=E)}}];var C0F=function(t){this.JSC$33806_clientRoot=t;this.feedbackCollectorActionMap={"yt-help-dialog-requested":EC8,"yt-feedback-dialog-requested":tM7,"yt-signal-action-help":pql,"yt-signal-action-send-feedback":Uqd,"yt-send-feedback-action":AhJ,"yt-user-feedback-endpoint":Ytt};_.uV(_.d1.getInstance(),this.feedbackCollectorActionMap,this.JSC$33806_clientRoot)},jRw;var r96=function(t){this.JSC$33811_clientRoot=t;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":MMt.bind(null,this.JSC$33811_clientRoot),"yt-signal-action-delete-all-downloads":b15,"yt-signal-action-delete-download":i1d,"yt-signal-action-delete-playlist-download":H1t,"yt-signal-action-install-pwa":Qxb,"yt-signal-action-refresh-downloads":Rrd,"yt-offline-video-endpoint":jxo,"yt-offline-playlist-endpoint":kHt,"yt-update-local-app-setting-command":u2K,"yt-offline-orchestration-action-command":IyC,
"yt-signal-action-undo-delete-download":B95,"yt-local-watch-history-command":O1d,"yt-signal-action-mark-download-to-mobile-edu-shown":hre};_.uV(_.d1.getInstance(),this.downloadManagerActionMap,this.JSC$33811_clientRoot);_.ic.instance=new _.ic},kcU;var Wa=function(){var t=_.z.apply(this,arguments)||this;t.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_"};t.remoteApi_=null;return t};
_.u(Wa,_.z);_.Y=Wa.prototype;
_.Y.ready=function(){_.r("polymer_enable_mdx")&&(n8e({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.r("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.r("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.r("enable_cast_short_lived_lounge_token")}),_.Ga("yt-remote-connection-change",this.handleConnectionChange_,this),_.Ga("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=Wdd())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.Y.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.Y.handleConnectionChange_=function(t){(this.mdxConnected=t)?(t=so5(),!t&&rXt()&&kho()&&(t={key:"cast-selector-receiver",name:kho()}),t=t.name):t=null;this.receiverName=t;_.wi(this.remoteApi_);(this.remoteApi_=Wdd())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.Y.handleReceiverAvailabilityChange_=function(){var t=Ddo();rXt()&&_.WL("yt-remote-cast-available")&&t.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=t.length>0};
_.Y.handleRemoteQueueChange_=function(){var t=this.currentVideoId_,E=this.currentListId_,p=ok(this.remoteApi_);this.currentVideoId_=p.videoId;this.currentListId_=p.listId;this.currentVideoId_&&_.du(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.r("polymer_enable_mdx_queue")?this.currentListId_:null,t,E])};
_.Y.handleAddToQueueAction_=function(t){t=_.k(t,Voo);this.remoteApi_&&(t.videoId?this.remoteApi_.addVideo(t.videoId):t.playlistId&&this.remoteApi_.addPlaylist(t.playlistId))};
_.Y.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.Y.handleInsertInQueueAction_=function(t){t=_.k(t,QAg);this.remoteApi_&&t.videoId&&this.remoteApi_.JSC$20069_insertVideo(t.videoId)};
_.Y.handleRemoveFromQueueAction_=function(t){t=_.k(t,Cl9);this.remoteApi_&&t.videoId&&this.remoteApi_.JSC$20069_removeVideo(t.videoId)};
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],Wa.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e(),_.P("design:type",Object)],Wa.prototype,"appId",void 0);_.N([_.e(),_.P("design:type",Boolean)],Wa.prototype,"mdxConnected",void 0);_.N([_.e(),_.P("design:type",Boolean)],Wa.prototype,"receiverAvailable",void 0);_.N([_.e(),_.P("design:type",Object)],Wa.prototype,"receiverName",void 0);_.N([_.e(),_.P("design:type",Object)],Wa.prototype,"currentVideoId_",void 0);
_.N([_.e(),_.P("design:type",Object)],Wa.prototype,"currentListId_",void 0);_.N([_.p4({is:"yt-mdx-manager",disableElementRegistration:!0})],Wa);_.G(Wa,"yt-mdx-manager",void 0,{mode:2});var dEI;var uQU;var $o=function(){var t=_.z.apply(this,arguments)||this;t.APP_IDS={ytr:3,ytm:5};t.JSC$23168_timeoutId_=0;t.actionMap={"yt-open-create-family-dialog":"open"};return t};
_.u($o,_.z);_.Y=$o.prototype;_.Y.created=function(){JI5(2200)};
_.Y.detached=function(){this.observer_&&this.observer_.disconnect()};
_.Y.open=function(t,E){var p=this,U=t.serializedYpcFamilyCreateLoggingParams;this.JSC$23168_timeoutId_=setTimeout(this.abort_.bind(this,t.postFlowErrorEndpoint,U),3E4);E&&(this.onReadyCallback_=E);var x=_.ZN(this.hostElement).querySelector("#unicorn-iframe");U&&U&&RB5("ypcFamilyCreateFlowStarted",U);_.HzD("family_creation",function(){var A=_.ws("gapi.family_creation.render");_.ws("gapi.config.update")("iframes/family_creation/url",p.getFamilyCreationUrlWithUnicornParams_());var m=3;t.appId&&t.appId in
p.APP_IDS&&(m=p.APP_IDS[t.appId]);m={authUser:_.qO("SESSION_INDEX")||0,clientId:m,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.qO("HL"),initialflow:[4,5,6,7],m:p.isMobile?1:0,onFlowComplete:p.onUnicornFlowComplete_.bind(p,t.postFlowSuccessEndpoint,U),onError:p.onUnicornFlowError_.bind(p,t.postFlowErrorEndpoint,U),onReady:p.onUnicornFlowReady_.bind(p,t.referencePcidParams)};A(x,m)})};
_.Y.close=function(){_.ZN(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.Y.onUnicornFlowComplete_=function(t,E){this.close();E&&E&&RB5("ypcFamilyCreateFlowSucceeded",E);_.kT(this.hostElement,"yt-navigate",{endpoint:t})};
_.Y.onUnicornFlowError_=function(t,E){this.close();E&&RB5("ypcFamilyCreateFlowCancelled",E);_.kT(this.hostElement,"yt-navigate",{endpoint:t})};
_.Y.onUnicornFlowReady_=function(t){var E=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();t&&_.ws("gapi.family_creation.setConfig")(0,t);this.observer_=new MutationObserver(function(){_.ZN(E.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.ZN(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.ZN(this.hostElement).querySelector("#dialog").open()};
_.Y.getFamilyCreationUrlWithUnicornParams_=function(){return _.qO("YTR_FAMILY_CREATION_URL")};
_.Y.getCurrentUrl_=function(){return document.location.href};
_.Y.abort_=function(t,E){this.clearTimeout_();this.onUnicornFlowError_(t,E)};
_.Y.clearTimeout_=function(){clearTimeout(this.JSC$23168_timeoutId_)};
_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],$o.prototype,"ytActionHandlerBehavior",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],$o.prototype,"isMobile",void 0);_.N([_.e(),_.P("design:type",Object)],$o.prototype,"onReadyCallback_",void 0);_.N([_.e(),_.P("design:type",Object)],$o.prototype,"observer_",void 0);_.N([_.p4({is:"yt-create-family-dialog",disableElementRegistration:!0})],$o);
_.G($o,"yt-create-family-dialog",function(){if(uQU===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);var E=t.content,p=E.insertBefore;dEI===void 0&&(dEI=document.createElement("template"));var U=dEI;p.call(E,U.content.cloneNode(!0),t.content.firstChild);uQU=t}t=uQU;return t},{mode:2});var J9C;var IoC;var Ke=function(){var t=_.z.apply(this,arguments)||this;t.STEP=1;t.BLOCK_ON=80;t.MIN_PROGESS=0;t.MAX_PROGESS=100;return t};
_.u(Ke,_.z);_.Y=Ke.prototype;_.Y.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.Y.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));_.X3().addProvider({provide:jg7,useValue:this})};
_.Y.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.Y.finish=function(){var t=this;this.progress=this.MAX_PROGESS;ayK(function(){t.progress==t.MAX_PROGESS&&(t.hostElement.hidden=!0)})};
_.Y.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.aE.Object.defineProperties(Ke.prototype,{progress:{configurable:!0,enumerable:!0,set:function(t){this.progress_=t;var E="scaleX("+t/this.MAX_PROGESS+")",p=_.ZN(this.hostElement).querySelector("#progress").style;p.transform=E;p.webkitTransform=E;this.hostElement.setAttribute("aria-valuenow",String(t))},
get:function(){return this.progress_}}});
_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],Ke.prototype,"ytComponentBehavior",void 0);_.N([_.p4({is:"yt-page-navigation-progress",disableElementRegistration:!0})],Ke);
_.G(Ke,"yt-page-navigation-progress",function(){if(IoC===void 0){var t=document.createElement("template");_.J(t,'\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');t.content.insertBefore(_.T().content.cloneNode(!0),
t.content.firstChild);var E=t.content,p=E.insertBefore;J9C===void 0&&(J9C=document.createElement("template"));var U=J9C;p.call(E,U.content.cloneNode(!0),t.content.firstChild);IoC=t}t=IoC;return t},{mode:2});var gkc={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"},ZB$={"font-size":"12px","font-style":"italic"},OBc={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.lye=function(){return _.q(function(t){_.Do(t)})};var XTI=_.l(function(t){var E=function(){return t.data().subtext},p={};
return _.H("snackbar-view-model",{class:_.X5("snackbarViewModelHost",t.className)},_.H("div",{class:_.X5("snackbarViewModelEngagementBarWrapper",t.className)},_.H(_.w,{cond:function(){return t.data().image},
then:function(U){return _.H(_.Q9,{data:U,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.H(_.w,{cond:function(){return t.data().imageContent},
then:function(){return _.H("div",{class:"snackbarViewModelAvatarContainer"},_.H(_.sY,{data:function(){return t.data().imageContent}},{decoratedAvatarViewModel:_.BM}))}}),_.H("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.H("div",{class:_.X5((p.snackbarViewModelTitle=!0,p.snackbarViewModelTitleWithSubtext=E,p))},_.H(_.d8,{text:function(){return t.data().text}})),_.H(_.w,{cond:E,
then:function(){return _.H("div",{class:"snackbarViewModelSubtext"},_.H(_.d8,{text:function(){return E()}}))}})),_.H(_.w,{cond:function(){return t.data().buttons},
then:function(){return _.H("div",{class:"snackbarViewModelButtonClassWrapper"},_.H(_.sY,{data:function(){return t.data().buttons}},{buttonViewModel:function(U){return _.H(_.D5,{data:U.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:t.target})}}))}})))},"em");_.k2(_.l(function(){function t(F,L,D){d(F);O(D);Q("in");R(!0);E(F,L);m=setTimeout(function(){p()},L)}
function E(F,L){var D,W=(D=F.text)==null?void 0:D.content;F=_.c9(F.rendererContext);W&&(L={label:W,command:F,durationMs:L},_.X3().resolve(_.Xg).enqueue(L))}
function p(F){Q("out");F&&clearTimeout(m)}
function U(){p(!0)}
function x(F){if(F){var L=F.snackbarViewModel,D=F.durationMs,W=F.target;D||(D=3E3);L&&(F=_.X3().resolve(_.OB(_.Jz)))&&F.enqueue({isOpened:B,open:function(){t(L,D,W)},
close:p},0)}}
var A=_.pR("snackbar-container"),m=void 0,b=_.M(_.Py(!1,void 0,"mDc5N")),f=b.next().value;b=b.next().value;var B=f,R=b;f=_.M(_.Py("out",void 0,"FpOs5e"));var V=f.next().value,Q=f.next().value;f=_.M(_.Py(void 0,void 0,"jIDRob"));var C=f.next().value,d=f.next().value;f=_.M(_.Py(void 0,void 0,"kOA3Mb"));var I=f.next().value,O=f.next().value,a=_.aC(function(){if(V()==="out"){R(!1);d(void 0);O(void 0);var F=_.X3().resolve(_.OB(_.Jz));F&&trt(F,0)}});
_.A6(function(){var F=_.X3().resolve(_.OB(_.NgC));F&&(F.showSnackbarFn=x,F.closeSnackbarFn=U)});
return _.H("snackbar-container",{class:"ytSnackbarContainerHost",el:A},_.H(_.w,{cond:function(){return B()&&!!C()},
then:function(){var F={};return _.H("div",{class:_.X5("ytSnackbarContainerSnackbarContainer",(F.ytSnackbarContainerMobile=!1,F.ytSnackbarContainerPivotBar=function(){var L;return!((L=_.X3().resolve(_.OB(_.DXe)))==null||!L())},F.ytSnackbarContainerOpened=function(){return B()&&V()==="in"},F.ytSnackbarContainerClosed=function(){return B()&&V()==="out"},F)),
"on:animationend":a},_.H(XTI,{data:function(){return C()},
target:function(){return I()}}))}}))},"fm"),"snackbar-container");_.k2(_.MHp,"yt-tooltip");var hXS=_.JWL.ephemeralActionSelector;_.k2(_.l(function(){var t=_.D4(hXS);return _.H("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var E;return(E=t())==null?void 0:E.announcement})},"gm"),"yt-ephemeral-actions");var UhJ=new Map;var meg=function(t,E){var p=this;this.handleError=t;this.logEventInternal=E;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){p.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
meg.prototype.logError=function(t){this.handleError(t)};
meg.prototype.logEvent=function(t,E){switch(t){case "IDB_DATA_CORRUPTED":_.r("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",E);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",E);break;case "IS_SUPPORTED_COMPLETED":_.r("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",E);break;case "QUOTA_EXCEEDED":ao8(this,E);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",E);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":t=Object.assign({},E,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",t)}};
var ao8=function(t,E){_.aX.getInstance().estimate().then(function(p){p=Object.assign({},E,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:AIb(p==null?void 0:p.usage),deviceStorageQuotaMbytes:AIb(p==null?void 0:p.quota)});t.logEventInternal("idbQuotaExceeded",p)})};var eXw=_.l(function(t){var E=_.EB("yt-draggable"),p=t.onDrag,U=t.onDragStart,x=t.onDragEnd,A=_.C4(t,{allowClicks:!1,dragThreshold:5}),m=A.dragThreshold,b=A.allowClicks;t=A.children;A=A.className;var f=void 0,B=void 0,R=new _.gg(0,0),V=!1;_.A6(function(){f=new _.qC(E.value);B=new _.zx(C);Q(f,B);if(b()){_.tQ3(f,m());var I;(I=E.value)==null||I.addEventListener("click",d,{capture:!0})}_.iK(function(){var O;(O=f)==null||O.dispose();if(b()){var a;(a=E.value)==null||a.removeEventListener("click",d,{capture:!0})}})});
var Q=function(I,O){_.vu(I,"earlycancel",function(){b()&&(V=!1)});
_.vu(I,"start",function(a){U==null||U(a);a.defaultPrevented||b()&&(V=!0)});
_.vu(I,"beforedrag",function(a){f&&B&&(a.preventDefault(),R=new _.gg(a.clientX-f.startX,a.clientY-f.startY),B.start())});
_.vu(I,"end",function(){O.stop();x==null||x();R=new _.gg(0,0)})},C=function(){R&&p(R)},d=function(I){V&&(V=!1,I.stopPropagation(),I.preventDefault())};
return _.H("yt-draggable",{el:E,class:_.X5("ytDraggableComponentHost",A)},t)},"hm");var FEw=_.l(function(t){var E=_.M(_.Py(0,void 0,"Qf0tbc")),p=E.next().value,U=E.next().value;E=function(x){var A={},m={};return _.H(eXw,{className:_.X5("ytdMiniplayerComponentResizer",(A.ytdMiniplayerComponentResizerDisabled=function(){return x===t.horizontalAlignment()||x===t.verticalAlignment()},A.ytdMiniplayerComponentResizerNorth=x==="north",A.ytdMiniplayerComponentResizerEast=x==="east",A.ytdMiniplayerComponentResizerSouth=x==="south",A.ytdMiniplayerComponentResizerWest=x==="west",A)),
onDragStart:function(){U(t.currentMiniplayerSize());if(t.onResizeStart)t.onResizeStart()},
onDrag:function(b){x!=="north"&&x!=="west"||b.scale(-1);var f;b=(f=x==="north"||x==="south")?b.y:b.x;var B=t.currentAspectRatio();f&&B>=1?b*=B:!f&&B<1&&(b/=B);f=b;t.onResize(p()+f)}},_.H("div",{class:_.X5("ytdMiniplayerComponentResizerCorner",(m.ytdMiniplayerComponentResizerNorthCorner=x==="north",m.ytdMiniplayerComponentResizerEastCorner=x==="east",m.ytdMiniplayerComponentResizerSouthCorner=x==="south",m.ytdMiniplayerComponentResizerWestCorner=x==="west",m))}))};
return _.H("div",{class:"ytdMiniplayerComponentResizers"},E("north"),E("east"),E("south"),E("west"))},"im");var zXU=16/9;_.k2(_.l(function(){var t=_.EB("ytd-miniplayer"),E=_.M(_.Py(new _.nq(NaN,NaN),void 0,"i8Divd")),p=E.next().value,U=E.next().value;E=_.M(_.Py(!1,void 0,"M0mb9d"));var x=E.next().value,A=E.next().value;E=_.M(_.Py(!1,void 0,"U2besf"));var m=E.next().value,b=E.next().value;E=_.M(_.Py(!1,void 0,"oMkCO"));var f=E.next().value,B=E.next().value;E=_.M(_.Py(!1,void 0,"LLG3Bf"));var R=E.next().value,V=E.next().value;E=_.M(_.Py(!1,void 0,"m7HPQe"));var Q=E.next().value,C=E.next().value;E=_.M(_.Py(!1,void 0,"jUGfuc"));
var d=E.next().value,I=E.next().value;E=_.M(_.Py(zXU,void 0,"LkUsDe"));var O=E.next().value,a=E.next().value,F=_.M(_.Py(!1,void 0,"xKE3oe"));E=F.next().value;var L=F.next().value;F=_.M(_.Py(!1,void 0,"QQ32Je"));var D=F.next().value,W=F.next().value;F=_.M(_.Py(void 0,void 0,"LRAn3"));var K=F.next().value,v=F.next().value;F=_.M(_.Py(IB()?"west":"east",void 0,"ZPTxkd"));var YL=F.next().value,bY=F.next().value;F=_.M(_.Py("south",void 0,"XYTr4"));var kL=F.next().value,R0=F.next().value;F=_.M(_.Py(400,
void 0,"hJycJe"));var j$=F.next().value,lY=F.next().value;F=_.X3().resolve(_.bf).miniplayerPropSignalMap[0];var Tt=F.data,si=F.externalPlaylistData,Q0=F.playabilityStatus,ps=F.isReadyToResume,$L=F.isDisabled,Cs=F.watchWhile,km=F.playerVe,ZT=F.expandVe,l8=F.closeVe,Rt=F.readyToResumeVe,wE=F.readyToResumeCloseVe,Gt=F.repositionVe,V0=F.resizeVe;F=_.M(_.j5(ps));var SW=F.next().value,h3=F.next().value,zX=_.D4(_.i7.persistentPanelVisibleSelector),zc=!1,EC=!1,VJ;_.A6(function(){U(_.NJ());t.value.addEventListener("animationend",
function(Wp){Wp.target===t.value&&(C(!1),I(!1))});
qkt(t.value)});
_.Iz("yt-window-resized",function(Wp){Wp&&U(Wp)});
var $m=function(){VJ&&a(VJ.getVideoAspectRatio())},Kl=function(){if(VJ){var Wp=VJ.getPlayerState()===1;
SW()&&Wp&&h3(!1)}},iG=function(){var Wp=ZT();
if(Wp){var jg=_.yL(3);jg&&_.qc(jg,Wp)}},QJ=function(){var Wp=l8(),jg=wE();
Wp&&_.qc(_.yL(3),Wp);ps()&&jg&&_.qc(_.yL(3),jg)};
_.Iz("yt-activate-miniplayer",function(Wp){var jg;return _.q(function(ES){if(ES.nextAddress==1)return x()?ES.return():ES.yield((jg=_.X3().resolve(_.bf).getPlayerElement())==null?void 0:jg.getPlayerPromise(),2);VJ=ES.yieldResult;if(!VJ)return ES.return();!D()&&_.r("kevlar_watch_while_v2")&&(R0(Wp&&!_.r("kevlar_watch_while_bottom_align")?"north":"south"),bY(IB()?"west":"east"));var m6=VJ;m6.addEventListener("onVideoDataChange",$m);m6.addEventListener("onStateChange",Kl);m6.addEventListener("onExpandMiniplayer",
iG);m6.addEventListener("onCloseMiniplayer",QJ);a(VJ.getVideoAspectRatio());A(!0);iu5()||C(!0);_.Do(ES)})});
_.Iz("yt-deactivate-miniplayer",function(Wp,jg){return _.q(function(ES){if(!x())return ES.return();A(!1);h3(!1);I(Wp);V(!1);b(!1);if(VJ){var m6=VJ;m6.removeEventListener("onVideoDataChange",$m);m6.removeEventListener("onStateChange",Kl);m6.removeEventListener("onExpandMiniplayer",iG);m6.removeEventListener("onCloseMiniplayer",QJ)}iu5()||jg?jg&&C(!1):C(!0);_.Do(ES)})});
var Rs=function(){return!(Cs()&&_.r("kevlar_watch_while_modern"))},vp=function(){var Wp;
return!((Wp=si())==null||!Wp.contents)},DT=function(){var Wp=j$();
var jg=p();jg=Math.min(Math.min(jg.width,jg.height)-32,720);var ES=O(),m6=Rs(),Ia=vp()&&m(),mi=Math.min(Wp,jg);Wp=new _.nq(192,m6?116:192);ES=new _.nq(Ia?zXU:ES,1);mi=new _.nq(mi,m6?mi-76:mi);mi=ES.aspectRatio()>mi.aspectRatio()?mi.width/ES.width:mi.height/ES.height;ES=ES.scale(mi);Wp.width<=ES.width&&Wp.height<=ES.height||(Wp=ES.aspectRatio()<=Wp.aspectRatio()?Wp.width/ES.width:Wp.height/ES.height,ES.scale(Wp),ES.width=Math.min(ES.width,jg),ES.height=Math.min(ES.height,jg));return new _.nq(ES.width,
_.Ay(192,ES.height+wfe(m6,Ia),720))},qL=function(){var Wp=DT(),jg=Rs(),ES=vp()&&m();
return new _.nq(Wp.width,Wp.height-wfe(jg,ES))},TC=function(){var Wp=function(jg){jg.target===t.value&&R()&&(V(!1),t.value.removeEventListener("transitionend",Wp))};
iu5()||(t.value.addEventListener("transitionend",Wp),V(!0));b(!m())};
_.M$(function(){var Wp=km(),jg=_.yL(3),ES=_.vV(3);if(jg&&ES&&Wp){_.Yh(jg,ES,Wp);ES=Gt();var m6=V0(),Ia=ZT(),mi=l8(),t6=wE();Ia&&mi&&t6&&(_.Mc(jg,Wp,[Ia,mi,t6]),_.bU(jg,[Ia,mi]));ES&&m6&&_.Mc(jg,Wp,[ES,m6])}},"UatZXe");
_.M$(function(){var Wp=Rt();if(Wp){var jg=_.yL(0),ES=_.vV(0);jg&&ES&&(_.Yh(jg,ES,Wp),_.bU(jg,[Wp]))}},"kTR4R");
F={};return _.H("ytd-miniplayer",{el:t,class:_.X5("ytdMiniplayerComponentHost",(F.ytdMiniplayerComponentVisible=function(){return(x()||Q())&&!(Cs()&&_.r("kevlar_watch_while_counterfactual"))},F.ytdMiniplayerComponentAnimatingSnap=f,F.ytdMiniplayerComponentAnimatingPlaylistExpand=R,F.ytdMiniplayerComponentAnimatingFade=Q,F),function(){if(Q()){var Wp=kL();
var jg=x(),ES=d();Wp=jg?Wp==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":ES?Wp==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":Wp==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else Wp="";return Wp}),
style:_.zO({top:function(){return kL()==="north"?"16px":""},
right:function(){var Wp=YL(),jg=zX();jg=(jg===void 0?0:jg)&&!IB()?400:0;return Wp==="east"?16+jg+"px":""},
bottom:function(){return kL()==="south"?"16px":""},
left:function(){var Wp=YL(),jg=zX();jg=(jg===void 0?0:jg)&&IB()?400:0;return Wp==="west"?16+jg+"px":""},
width:function(){return DT().width+"px"},
height:function(){return DT().height+"px"},
transform:function(){var Wp=K();return Wp?"translate("+Wp.x+"px, "+Wp.y+"px)":""}})},_.H("div",{class:"ytdMiniplayerComponentContent"},_.H(eXw,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(Wp){var jg=BFl(YL(),kL(),p(),DT(),K()),ES=qL();Math.abs(Wp.clientY-(jg.y+ES.height))>15?(L(!0),Wp=_.yL(3),jg=Gt(),zc||(zc=!0,Wp&&jg&&_.bU(Wp,[jg])),Wp&&jg&&_.qc(Wp,jg)):Wp.preventDefault()},
onDrag:function(Wp){v(Wp)},
onDragEnd:function(){var Wp=Hu5(BFl(YL(),kL(),p(),DT(),K()),p(),DT()),jg=fS9(YL(),kL(),p(),DT(),zX()),ES=fS9(Wp.horizontalAlignment,Wp.verticalAlignment,p(),DT(),zX());ES=new _.gg(ES.x-jg.x,ES.y-jg.y);var m6;jg=jg.y+(((m6=K())==null?void 0:m6.y)||0)+DT().height/2;var Ia=function(){YL()===Wp.horizontalAlignment&&kL()===Wp.verticalAlignment||W(!0);bY(Wp.horizontalAlignment);R0(Wp.verticalAlignment);v(void 0)},mi=function(t6){t6.target===t.value&&f()&&(B(!1),Ia(),t.value.removeEventListener("transitionend",
mi))};
L(!1);kL()==="south"&&jg>p().height?(Ia(),_.X3().resolve(_.bf).close()):(t.value.addEventListener("transitionend",mi),B(!0),v(ES))}},_.H(_.w,{cond:x,
then:function(){return _.H(_.eet,{isDisabled:$L,playabilityStatus:Q0,size:qL})}}),_.H(_.w,{cond:Rs,
then:function(){return _.H(_.het,{isReadyToResume:SW,data:Tt,expanded:m,onExpandClick:TC,playlistData:si})}}),_.H(_.w,{cond:E,
then:function(){return _.H("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.H(_.w,{cond:function(){return vp()&&m()||R()},
then:function(){return _.H(_.N6C,{className:"ytdMiniplayerComponentPlaylistPanel",data:si,hideHeaderText:!0,withinMiniplayer:!0})}})),_.H(FEw,{onResize:function(Wp){lY(_.Ay(192,Wp,720))},
onResizeStart:function(){var Wp=_.yL(3),jg=V0();EC||(EC=!0,Wp&&jg&&_.bU(Wp,[jg]));Wp&&jg&&_.qc(Wp,jg)},
currentAspectRatio:O,currentMiniplayerSize:j$,horizontalAlignment:YL,verticalAlignment:kL}))},"lm"),"ytd-miniplayer",{});var lo$=_.i7.persistentPanelVisibleSelector,va=function(){var t=_.z.apply(this,arguments)||this;t.tabGesturesIsActive=!1;t.persistentPanelEnabled=_.r("enable_ai_companion");t.hasDelegation=!1;t.isFrostedGlassInitialized=!1;t.frostedGlassExp=_.r("web_frosted_glass");t.hasPendingWatchNavigation=!1;t.mastheadHiddenFocusWithinKillswitch=_.r("web_masthead_hidden_focus_within_killswitch");t.clientOnlyWizTooltipsEnabled=_.r("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
t.scrollAtTopInternal=!0;t.guideScrollTop=0;t.isTheaterModeSession=_.HC("START_IN_THEATER_MODE");t.iMaxTheaterMode=_.r("web_watch_imax_theater_mode");t.isFullWindowSession=_.HC("START_IN_FULL_WINDOW_MODE");t.hasCreateFamilyDialog=!1;t.mastheadHeight=56;t.networkStatusManager=new _.k7;t.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"};t.dynamicActionMap={"yt-run-attestation-command":function(E){var p=_.J95.instance,U=_.k(E,_.Vrr);return U?_.r("use_rta_manager_for_async")&&
(_.r("attmusi")&&_.r("attmusi_ue")?window.attmp:FLg())?dxL(p,U,E.clickTrackingParams):kl5(p,U,E.clickTrackingParams):_.S5(Error("si"))}};
t.isFrostedGlassDisabled=!1;t.isChannelOrPlaylistPage=!1;return t};
_.u(va,_.z);_.Y=va.prototype;_.Y.created=function(){var t=_.X3();_.r("kevlar_clear_duplicate_pref_cookie")&&_.E_(_.ir,function(){var E=_.$a.get("PREF");E&&!/f\d=/.test(E)&&(E=_.la("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=E?"PREF=null;domain="+E+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.r("gzip_gel_with_worker")&&_.xdO();_.r("jspb_serialize_with_worker")&&QEC();_.r("web_worker_availability_check")&&xh5();_.r("nwl_init_killswitch")||Rft().then(function(){_.ir.addLowPriorityJob(Slb)});
this.pageManagerAttachedPromise=_.fd();this.ytdAppBehavior.loadDepsPromise=_.Yi([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.F5(this.onThrottledScroll,200,this);_.r("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);bo7();QJC=!!_.ws("ytappsettings.initialized");vx8=_.ws("ytappsettings.previousValue");yol=_.ws("ytappsettings.previousSnapshotTime");QJC||(QJC=!0,Smb());CzK();jC7();_.ia("DEFERRED_DETACH",
_.r("kevlar_tuner_should_defer_detach"));_.ia("REUSE_COMPONENTS",!0);_.ia("STAMPER_STABLE_LIST",!0);_.ia("SCHEDULED_LAZY_LIST",!0);_.ia("openPopupConfig",UPK);_.ia("useClickHandler",!0);_.r("kevlar_shell_cleanup")&&_.ir.addLowPriorityJob(eJ7.bind(this,_.Ui.caches));_.HC("IS_SHELL_LOAD")&&_.KF({shellStartupDurationMs:Math.round((0,_.eu)()-MI())});Dqt(this.networkStatusManager);_.r("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",er9(gkc)),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!",
er9(ZB$)),console.log("%cVisit http://go/join-youtube-web to apply today.",er9(OBc)));i3K(t.resolve(_.Zd),1E3)};
_.Y.ready=function(){var t=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var E=zfd();E&&!_.r("external_fullscreen_killswitch")&&document.addEventListener(E,this.setFullscreen.bind(this));(E=window.matchMedia("(prefers-color-scheme: dark)"))&&E.addEventListener&&E.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(E=_.X3().resolve(_.OB(_.dDX)))E.subscribe("navigation-start",
function(p){p.destinationPageSubtype==="watch"&&(t.hasPendingWatchNavigation=!0)}),E.subscribe("navigation-end",function(p){p.destinationPageSubtype==="watch"&&(t.hasPendingWatchNavigation=!1)})};
_.Y.attached=function(){var t=this;_.ut().processSignal("ci");_.r("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.zco?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.nr(_.aaY(),"SUCCESS");this.updateIconSet();_.jR(this.guideInnerContent,!1);_.SV().initVisibilityObserver();this.guideService.guideElement=this.guide;var E=document.createElement("ytd-miniplayer"),p=_.ZN(this.hostElement).querySelector("#content");
_.ZN(this.hostElement).insertBefore(E,p);_.ut().processSignal("ma");_.X3().resolve(_.bf).init(E);this.persistentPanelEnabled&&$x7(this.persistentPanelContainer,"APP");_.HC("IS_SHELL_LOAD")&&(p=document.createElement("ytd-network-status-banner"),_.ZN(this.hostElement).insertBefore(p,E));_.r("kevlar_right_click_on_lockups")&&_.wa._onCaptureClick&&document.addEventListener("contextmenu",_.wa._onCaptureClick.bind(_.wa),!0);var U=function(){var x=_.XA("yt-page-navigation-progress");_.ZN(t.hostElement).appendChild(x)};
setTimeout(function(){_.ut().parkOrScheduleJob(U,0,"eocs",16)},0);
_.r("service_worker_push_enabled")&&_.E_(_.ir,wDL);_.uV(_.d1.getInstance(),this.dynamicActionMap,this.hostElement);_.kT(this.hostElement,"ytd-app-attached");_.ut().processSignal("aa");jig(this.hostElement);_.Oy("gapi.load",_.HzD);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.E_(_.ir,
function(){var x=document.createElement("ytd-video-preview");_.ZN(_.ZN(t.hostElement).querySelector("#video-preview")).appendChild(x)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.E_(_.ir,function(){GHl();t.registerWithViewTransitionManager()});
if(_.bc()&&this.isAppDarkTheme()!==_.Ml())this.onDarkModeToggledAction();else E=_.me()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==E&&(_.r("enable_dark_theme_only_on_shorts")?_.xR(_.r("enable_dark_theme_only_on_shorts_control")?window.location.href:_.rs(window.location.href,{theme:"dark"})):_.qW(new _.cC("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(M7l=new YKJ(this.hostElement)),kcU=new r96(this.hostElement),jRw=new C0F(this.hostElement),IW9=new Jad(this.hostElement)};
_.Y.getThemeSettingsToLog=function(){var t=_.me()==="USER_INTERFACE_THEME_DARK";t=_.bc()?_.Ml()?"os-dark":"os-light":t?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:t,cookiesEnabled:_.vC()}};
_.Y.detached=function(){_.ru(this.guideInnerContent);_.ir.cancelJob(qmJ);qmJ=0;_.ir.cancelJob(wVK);wVK=0;_.RUD(CH7);CH7.length=0;RJt=_.mv_=null;_.SV().dispose();_.r("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.JH(_.d1.getInstance(),M7l.playlistHandlerActionMap,M7l.JSC$33365_clientRoot);_.JH(_.d1.getInstance(),kcU.downloadManagerActionMap,kcU.JSC$33811_clientRoot);_.JH(_.d1.getInstance(),jRw.feedbackCollectorActionMap,jRw.JSC$33806_clientRoot);
for(var t=_.M(IW9.eventListeners),E=t.next();!E.done;E=t.next()){var p=_.M(E.value);E=p.next().value;p=p.next().value;p=_.M(p);for(var U=p.next();!U.done;U=p.next()){var x=_.M(U.value);U=x.next().value;x=x.next().value;E.removeEventListener(U,x)}}_.JH(_.d1.getInstance(),IW9.autonavPauseActionMap,IW9.JSC$21628_clientRoot)};
_.Y.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.nF().getFlag(186)};
_.Y.computeIsInlinePreviewEnabled=function(t,E,p){return!p&&C7b({miniplayerIsActive:t,miniplayerPlaybackState:E})};
_.Y.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.Jj({type:"SET_FROSTED_GLASS_MODE",payload:!_.r("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"}))};
_.Y.computeIsFrostedGlassDisabled=function(t,E,p,U){return t||E||p||U&&_.r("web_frosted_glass_disable_watch")};
_.Y.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.r("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.Y.computeIsHomePage=function(t,E){if(!t||E==null||!E.endpoint)return!1;var p;return((p=_.k(E.endpoint,_.lC))==null?void 0:p.browseId)==="FEwhat_to_watch"};
_.Y.updateIsChannelOrPlaylistPage=function(){if(_.r("web_frosted_glass")){var t,E,p=(E=(t=_.X3().resolve(_.OB(_.jw)))==null?void 0:t.getCurrentPage())==null?void 0:E.pageSubtype;this.isChannelOrPlaylistPage=p?["channel","channels","playlist"].includes(p):!1}};
_.Y.scheduleFrostedGlassInitialization=function(){var t=this;_.r("web_frosted_glass")&&_.ut().parkOrScheduleJob(function(){t.isFrostedGlassInitialized=!0},0,gq(["eocs",
"cr"]),300)};
_.Y.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.iUs(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.Jj({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.Jj({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.Y.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(xib(!0))};
_.Y.onYtSignalActionRequestPersistentStorage=function(){if(!_.r("request_persistent_storage_killswitch")){var t=_.X3().resolve(_.fpd);t.cachedPersistStatePromise||(t.cachedPersistStatePromise=fJg())}};
_.Y.handleYtChannelCreationFormEndpoints=function(t){t&&this.ytComponentBehavior.resolveCommand(t)};
_.Y.handleShowEngagementPanelEndpoint=function(t){t&&this.ytComponentBehavior.resolveCommand(t)};
_.Y.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(xib(!1))};
_.Y.initIconDefs=function(t,E){var p=document.createElement("iron-iconset-svg");p.name=t;t=document.createElementNS("http://www.w3.org/2000/svg","svg");p.appendChild(t);t.appendChild(E);document.body.appendChild(p);return p};
_.Y.onWindowResized=function(){_.du(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var t=_.DZ.getInstance();t.documentWidth_=document.body.clientWidth;Dh8(t)};
_.Y.onWindowScrolled=function(){var t=_.X3().resolve(_.jw).getCurrentPage();if(t!=null&&t.getScrollTop){var E=this.ytdReduxBehavior,p=E.dispatch;t=t.getScrollTop()<=0;p.call(E,_.Jj({type:"SET_SCROLL_AT_TOP",payload:t}))}};
_.Y.guideIsVisibleButNotPersistentSelectorChanged=function(){var t=_.X3().resolve(_.jw).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=t.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"),
t.setScrollTop(this.guideScrollTop));_.uO(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.Y.getCurrentPageScrollableElementType=function(){var t=_.X3().resolve(_.jw).getCurrentPage();if(t&&t.getPageScrollingElement())return t.getPageScrollingElement().nodeName};
_.Y.observeGuideVisibility=function(){var t=_.DZ.getInstance(),E=this.miniGuideVisible;t.guidePersistentAndVisible_=this.guidePersistentAndVisible;t.miniGuideVisible_=E;Dh8(t)};
_.Y.observePersistentPanelVisibility=function(){var t=_.DZ.getInstance();t.persistentPanelVisible_=this.persistentPanelVisible;Dh8(t)};
_.Y.handleEduDismissAction=function(t){t&&t.eduDismissAction&&(_.du(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.B$G.getInstance(),_.ni.set(t.eduDismissAction.key+"-dismissed",!0))};
_.Y.handleEduImpressionAction=function(t){if(t&&t.eduImpressionAction){var E=_.B$G.getInstance();t=t.eduImpressionAction.key;E.JSC$13460_eduDisplayedThisLoad_[_.fcs[t].setKey||t]=!0;_.ni.set(t+"-impression",parseInt(_.ni.get(t+"-impression")||0,10)+1)}};
_.Y.onYtSignalActionConfirmMentionsEdu=function(){_.du(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.Li.getInstance();_.sA.set("edu-dismissed",!0)};
_.Y.onYtSignalActionRecordMentionsEduImpression=function(){_.Li.getInstance();var t=_.sA.set,E=parseInt(_.sA.get("edu-impressions"),10);t.call(_.sA,"edu-impressions",(isFinite(E)?E:0)+1)};
_.Y.onYtPageManagerAttached=function(t){var E;((E=_.Qx(t))==null?void 0:E.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.Y.onInvokeInstrumentManagerAction=function(t,E){buJ(E,t)};
_.Y.updateIconSet=function(){var t=this.hostElement.querySelector("#masthead");if(t){var E=_.OU(t),p=E.querySelector("g#yt-logo-updated");p&&(t=document.createElementNS("http://www.w3.org/2000/svg","defs"),t.appendChild(p.cloneNode(!0)),(E=E.querySelector("g#yt-logo-red-updated"))&&t.appendChild(E.cloneNode(!0)),this.initIconDefs("yt-logos-ext",t))}};
_.Y.updateMastheadData=function(){var t=this,E,p,U,x,A;return _.q(function(m){if(m.nextAddress==1){E=t.data;p=t.hostElement.querySelector("#masthead");if(!p)return m.return();_.XE(t,function(){p.data=t.topbarData});
if(!t.get("response.topbar",E)||t.get("response.topbar.responseContext.maxAgeSeconds",E)===0)return m.jumpTo(0);if(U=_.X3().resolve(_.mO))return m.yield(U(),6);x=_.X3().resolve(_.Tp);return m.yield(x.put("service:topbar:fallback",new _.ol({innertubeResponse:t.get("response.topbar",E)})),0)}return(A=m.yieldResult)?m.yield(A.put("service:topbar:fallback",new _.ol({innertubeResponse:t.get("response.topbar",E)})),0):m.jumpTo(0)})};
_.Y.computeTopbarData=function(t){if(!t)return null;var E;return this.isShortsPage&&this.topbarData&&!_.k((E=t.response)==null?void 0:E.topbar,$4L)?this.topbarData:t.response&&"topbar"in t.response?_.k(t.response.topbar,$4L)||null:null};
_.Y.onSetTheaterModeEnabled=function(t,E){this.isTheaterModeSession=E.enabled;this.setTheaterModeStyles(E.enabled)};
_.Y.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.Y.onDarkModeToggledAction=function(){var t=_.LR(window.location.href);if(!_.m9Y(t)){(t=!!_.ji(window.location.href).themeRefresh)&&_.qW(new _.cC("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!t){Smb();t={themeRefresh:1};var E=_.X3().resolve(_.jw);if(E.isOnWatch()){var p,U;E=((p=E.getPlayerFromWatch())==null?void 0:(U=p.getPlayer())==null?void 0:U.getCurrentTime())||0;E>=1&&(t.time_continue=Math.floor(E))}_.vC()||_.me()!=="USER_INTERFACE_THEME_DARK"||(t.theme="dark");_.xR(_.rs(window.location.href,
t))}_.r("web_appshell_refresh_trigger")&&_.Ui.caches&&this.refreshAppShellResponse();p=_.M_(window.location.href);_.KE(_.X3().resolve(_.ve),_.VS(p,"theme"))}};
_.Y.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.Y.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.Y.onPlayerFullscreen=function(t){_.QS();this.playerFullscreen=t};
_.Y.setRestrictedMode=function(t){var E=_.nF();_.N_(0,58,t);E.save();_.X3().resolve(_.W5).reload()};
_.Y.onPageChanged=function(t){t.detail.newPageType==="ytd-watch-flexy"||t.detail.newPageType==="ytd-watch-fixie"||t.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.Ea("WEB_PAGE_TYPE_WATCH")):t.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.Ea("WEB_PAGE_TYPE_SHORTS")):t.detail.newPageType==="ytd-browse"&&t.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.Ea("WEB_PAGE_TYPE_MINI_APP")):_.r("web_frosted_glass")&&t.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.Ea("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.Ea("WEB_PAGE_TYPE_UNKNOWN"));t.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.Y.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.Y.onGuideToggleTap=function(){_.kT(this.hostElement,"yt-guide-toggle")};
_.Y.onGuideToggleHover=function(){_.kT(this.hostElement,"yt-guide-hover")};
_.Y.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.Y.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Y.setMastheadTheme=function(){var t=_.OU(this.hostElement).querySelector("#masthead");t&&(t.dark=t.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),t.isDarkThemeForced=!1)};
_.Y.onRequestPanelModeChange=function(t,E){this.hideHeaderShadow=E.mode!=="seamed"};
_.Y.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.Y.onDrawerIronSelect=function(t){_.Qx(t).id==="guide"&&this.processDrawerIronSelect()};
_.Y.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var t="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(t="opened"));_.kT(this.hostElement,"yt-autonav-pause-guide-"+t)};
_.Y.onAddElementToApp=function(t){_.ZN(this.hostElement).appendChild(t.detail)};
_.Y.onThrottledScroll=function(){var t=_.X3().resolve(_.jw).getCurrentPage();t&&(this.scrollAtTopInternal=t.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.Y.canHideMasthead=function(){return this.scrollAtTopInternal&&!!this.fullscreen};
_.Y.setFullscreen=function(){if(_.r("external_fullscreen")||!this.isWatchPage){var t=_.r("kevlar_fullerscreen_root_only_killswitch")?!!_.QS():!!_.QS()&&_.QS()===document.documentElement;t=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(t||this.isFullWindowSession);this.fullscreen!==t&&((this.fullscreen=t)&&_.uO(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.QM().dispatch(_.SVT(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.du(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.Y.setFullscreenLoggingForShorts=function(t){var E,p,U;return _.q(function(x){if(x.nextAddress==1)return x.yield((E=_.k1())==null?void 0:E.getPlayerPromise(),2);p=x.yieldResult;(U=p)==null||U.setAppFullscreen(t);_.Do(x)})};
_.Y.updateMastheadCssHeight=function(){var t=this.mastheadHeight;this.fullscreen&&(t=0);_.eU(this.hostElement,{"--ytd-masthead-height":t+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.Y.updateNetworkStatusBannerDisplayStatus=function(){var t="unset";this.fullscreen&&(t="none");_.eU(this.hostElement,{"--ytd-network-status-banner-display":t})};
_.Y.updateNetworkStatusBannerCssHeight=function(){var t="unset";this.fullscreen&&(t="0px");_.eU(this.hostElement,{"--ytd-network-status-banner-max-height":t})};
_.Y.updateScrollAndMasthead=function(t,E,p,U){this.iMaxTheaterMode||(U=!1);var x=_.X3().resolve(_.jw).getCurrentPage();t||E||U?(document.body.classList.add("no-scroll"),x.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.zI(this,this.onScroll)),x.setScrollTop(0),_.eU(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":AR()+"px"})):p?_.kT(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.kT(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
x.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.zI(this,this.onScroll)));this.mastheadHidden=t||E||p;this.updateMastheadCssHeight();_.r("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.Y.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.Y.onYtNavigateAction=function(t){t=this.get("navigateAction.endpoint",t);_.kT(this.hostElement,"yt-navigate",{endpoint:t})};
_.Y.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var t=document.createElement("yt-create-family-dialog");_.ZN(this.hostElement).appendChild(t);this.hasCreateFamilyDialog=!0}};
_.Y.onSetPushNotificationsEnabledCommand=function(t){var E=this,p=_.k(t,ocg);p&&typeof p.enabled==="boolean"&&(Notification.permission!=="granted"?iFg().then(function(){Notification.permission==="granted"?(sit(!p.enabled).then(ox7),p.successAction&&_.JZ(E.hostElement,[p.successAction])):p.failureAction&&_.JZ(E.hostElement,[p.failureAction])}):(sit(!p.enabled).then(ox7),p.successAction&&_.JZ(this.hostElement,[p.successAction])))};
_.Y.onYtSignalActionEnableChromeNotifications=function(){qTo(!0)};
_.Y.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.k(this.topbarData.hotkeyDialog,cst)}}})};
_.Y.onYtSignalActionShowKeyboardShortcutDialog=function(){_.du(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.Y.onYtEndpointChangeHandler=function(t,E){var p=_.I7(_.oS);p.pendingPrefetchJob_&&(E=!(!E||E.autonav!="1"),p.pendingPrefetchJob_.resolve(t&&_.bLJ(t)?_.iLY(t,E):""),p.pendingPrefetchJob_=null);_.du(this.hostElement,"yt-pause-active-page-context");_.du(this.hostElement,"ytd-log-youthere-nav");_.du(this.hostElement,"yt-prepare-page-dispose")};
_.Y.handleCommandWithCommandHandler=function(t,E){_.Gh.instance.resolveCommand(t,{form:{element:E}})};
_.Y.onYtTimedCommand=function(t){var E=this;t=_.k(t,kkC);var p=t.command;p&&_.D2(_.ir,function(){var U=_.k(p,_.uh4);U?(_.Gh.instance.resolveCommand(p),E.maybeLogGetAnswerRequestTick(U)):_.IK(E.hostElement,[p],E.hostElement)},t.timeoutMs||0)};
_.Y.maybeLogGetAnswerRequestTick=function(t){t&&t.isFirstRequest&&(_.yS("search_overview_answer"),_.SR("so_rq",void 0,"search_overview_answer"))};
_.Y.onYtSignalActionSkipNavigation=function(){var t=_.X3().resolve(_.jw).getCurrentPage();_.If(t)};
_.Y.onYtSignalActionCopyDebugData=function(){D_C()};
_.Y.handleEntityUpdateCommand=function(t){_.lU(_.k(t,_.L5r).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.Y.logFlowLoggingEventCommand=function(t){if(t=_.k(t,_.DBK))if(t.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var E=t.flowEventNamespace,p=t.flowEventType,U=t.flowType;U&&E&&p&&_.Efi(_.a4(E,p,t.flowEventMetadata),U)}else{E=_.eL();p=t.flowEventNamespace;U=t.flowEventType;var x=t.flowType;x&&p&&U&&E.logFlowEvent(_.a4(p,U,t.flowEventMetadata),x,t.flowNonce)}};
_.Y.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.Y.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.Y.onTouchStart=function(){var t=_.c5();_.yL()&&_.bA(t.JSC$13582_screenManager,{visualElement:t.ve})};
_.Y.handleSelectLanguageCommand=function(t){if(t=_.k(t,lfe).hl){var E=_.nF();E.set("hl",t);E.save();_.X3().resolve(_.W5).reload()}};
_.Y.handleConfirmDialogEndpoint=function(t){(t=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(t))&&this.ytOpenPopupBehavior.openPopup(t)};
_.Y.handleOpenPopupNavigationEndpoints=function(t,E){(t=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(t))&&this.ytOpenPopupBehavior.openPopup(t,E)};
_.Y.handleSaveCommandToSessionStorage=function(t){if(t=_.k(t,_.dCs)){var E=t.key;E&&t.command&&window.sessionStorage.setItem(E,JSON.stringify(t.command))}};
_.Y.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(t){t&&t.active&&t.active.postMessage({type:"refresh_shell"})}).catch(function(t){t.name!=="SecurityError"&&_.bV(t)})};
_.Y.onDeviceThemeChanged=function(){var t=_.Ml();_.N_(_.nF(),185,t);_.nF().save()};
_.Y.handleYtRegisterPromoCommand=function(t){if(_.k(t,Tld)){var E=_.X3().resolve(_.jw).getCurrentPage()||this.hostElement;Dp5().registerPromoCommand(_.k(t,Tld),E)}};
_.Y.onYtNavigateHomeAction=function(){if(!_.r("kevlar_miniplayer_navigate_home_from_app_killswitch")){var t,E,p,U,x=(U=(t=this.topbarData)==null?void 0:(E=t.logo)==null?void 0:(p=E.topbarLogoRenderer)==null?void 0:p.endpoint)!=null?U:_.tL;this.ytComponentBehavior.resolveCommand(x)}};
_.Y.onYtLocationCollectionCommand=function(t){zr7(_.k(t,qVK))};
_.Y.onYtGetLocationCommand=function(t){qQJ(_.k(t,i7t),this)};
_.Y.updateRenderGuideFromBinding=function(t){this.renderGuide=t.detail.value};
_.Y.updateGuidePersistentAndVisibleFromBinding=function(t){this.guidePersistentAndVisible=t.detail.value};
_.Y.updateMiniGuideVisibleFromBinding=function(t){this.miniGuideVisible=t.detail.value};
_.Y.onThemeSelected=function(t,E){var p=_.nF(),U=t||E?t:_.Ml(),x=(U&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!U&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.m9Y(_.LR(window.location.href));_.N_(0,165,t);_.N_(0,174,E);p.save();x&&_.du(this.hostElement,"yt-dark-mode-toggled-action",[U]);_.du(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.Y.getCurrentTheme=function(){return _.bc()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.me()};
_.Y.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.Y.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.Y.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.Y.handleShowConsentPrimitive=function(t){var E=this,p,U;return _.q(function(x){if(x.nextAddress==1){try{p=(U=_.k1())==null?void 0:U.getPlayerPromise()}catch(A){}return x.yield(pft(t,p),2)}_.du(E.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.Do(x)})};
_.Y.handleSelectActiveIdentityEndpointInternal=function(t){_.p0();t=_.k(t,_.DYZ);if(t!=null&&t.supportedTokens){t=_.M(t.supportedTokens);for(var E=t.next();!E.done;E=t.next())E=E.value,E.accountSigninToken&&_.xR(E.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.Y.handleUpdatePermissionRoleCommand=function(t){if(t=_.k(t,_.N8p)){var E;this.hasDelegation=!((E=_.k(t.renderer,_.n9r))==null||!E.status)}};
_.Y.registerWithViewTransitionManager=function(){var t=_.X3().resolve(_.OB(_.pU));if(t){var E,p=(E=this.guide)==null?void 0:E.querySelector("#scrim"),U;E=(U=this.guide)==null?void 0:U.querySelector("#contentContainer");p&&E&&t.isAnyTransitionEnabled&&(U={},t.viewTransitionCoordinator.registerElement(p,(U.slide="app-drawer-scrim-page-transition",U["lockup-to-watch"]="app-drawer-scrim-page-transition",U["learning-journey"]="app-drawer-scrim-page-transition",U)),p={},t.viewTransitionCoordinator.registerElement(E,
(p.slide="app-drawer-container-page-transition",p["lockup-to-watch"]="app-drawer-container-page-transition",p["learning-journey"]="app-drawer-container-page-transition",p)))}};
_.aE.Object.defineProperties(va.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.r("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky&&(!this.scrollAtTop||!_.r("kevlar_show_chips_on_scroll"))}}});
_.aE.Object.defineProperties(va,{template:{configurable:!0,enumerable:!0,get:function(){if(foG===void 0){var t=document.createElement("template");_.J(t,'\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');
t.content.insertBefore(_.T().content.cloneNode(!0),t.content.firstChild);foG=t}t=foG;return t}}});
va.prototype.onOpenHotkeyDialog=va.prototype.onOpenHotkeyDialog;va.prototype.setFullscreen=va.prototype.setFullscreen;va.prototype.onAddElementToApp=va.prototype.onAddElementToApp;va.prototype.onDrawerIronSelect=va.prototype.onDrawerIronSelect;va.prototype.onGuideOpenButtonHover=va.prototype.onGuideOpenButtonHover;va.prototype.onRequestPanelModeChange=va.prototype.onRequestPanelModeChange;va.prototype.onPageDataUpdated=va.prototype.onPageDataUpdated;va.prototype.onPageChanged=va.prototype.onPageChanged;
va.prototype.onSetTheaterModeEnabled=va.prototype.onSetTheaterModeEnabled;va.prototype.updateMastheadData=va.prototype.updateMastheadData;va.prototype.onYtPageManagerAttached=va.prototype.onYtPageManagerAttached;va.prototype.observePersistentPanelVisibility=va.prototype.observePersistentPanelVisibility;va.prototype.observeGuideVisibility=va.prototype.observeGuideVisibility;va.prototype.guideIsVisibleButNotPersistentSelectorChanged=va.prototype.guideIsVisibleButNotPersistentSelectorChanged;
va.prototype.isInlinePreviewEnabledChanged=va.prototype.isInlinePreviewEnabledChanged;va.prototype.isWatchPageChanged=va.prototype.isWatchPageChanged;va.prototype.dispatchFrostedGlassMode=va.prototype.dispatchFrostedGlassMode;_.N([_.g(_.Be),_.P("design:type",Object)],va.prototype,"ytdReduxBehavior",void 0);_.N([_.g(_.xl.YtEventForwardingBehavior),_.P("design:type",Object)],va.prototype,"ytEventForwardingBehavior",void 0);
_.N([_.g(_.Pg.YtOpenPopupBehavior),_.P("design:type",Object)],va.prototype,"ytOpenPopupBehavior",void 0);_.N([_.g(_.oO.YtActionHandlerBehavior),_.P("design:type",Object)],va.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.g({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.d1.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.r("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var t;((t=this.actionRouterNode.hostElement)!=null?t:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var t;((t=this.actionRouterNode.hostElement)!=null?t:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(t){this.actionRouter_.handleAction(t.detail)}}),
_.P("design:type",Object)],va.prototype,"ytActionRouterBehavior",void 0);_.N([_.g(rpl.YtdAppBehavior),_.P("design:type",Object)],va.prototype,"ytdAppBehavior",void 0);_.N([_.g(_.Tn.YtEndpointBehavior),_.P("design:type",Object)],va.prototype,"ytEndpointBehavior",void 0);_.N([_.g(QRc.YtEndpointHandlerWithYpcBehavior),_.P("design:type",Object)],va.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.N([_.g(B3F.YtLogYpcFlowCommandsBehavior),_.P("design:type",Object)],va.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.N([_.g(_.y.YtRendererBehavior),_.P("design:type",Object)],va.prototype,"ytRendererBehavior",void 0);_.N([_.g(_.RO.YtComponentBehavior),_.P("design:type",Object)],va.prototype,"ytComponentBehavior",void 0);_.N([_.e({selector:vnb}),_.P("design:type",Object)],va.prototype,"tabGesturesIsActive",void 0);_.N([_.e(),_.P("design:type",Boolean)],va.prototype,"renderGuide",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],va.prototype,"guidePersistentAndVisible",void 0);_.N([_.e({selector:$eg}),_.P("design:type",Boolean)],va.prototype,"guideIsVisibleButNotPersistent",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],va.prototype,"standalone",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],va.prototype,"miniGuideVisible",void 0);
_.N([_.e(),_.P("design:type",Object)],va.prototype,"persistentPanelEnabled",void 0);_.N([_.e({selector:lo$,reflectToAttribute:!0}),_.P("design:type",Boolean)],va.prototype,"persistentPanelVisible",void 0);_.N([_.e({selector:_.Nw_}),_.P("design:type",Number)],va.prototype,"miniplayerPlaybackState",void 0);_.N([_.e({selector:_.E5,reflectToAttribute:!0}),_.P("design:type",Boolean)],va.prototype,"miniplayerIsActive",void 0);
_.N([_.e({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.P("design:type",Boolean)],va.prototype,"isInlinePreviewEnabled",void 0);_.N([_.e(),_.P("design:type",Boolean)],va.prototype,"isInlinePreviewDisabled",void 0);_.N([_.e({reflectToAttribute:!0,value:function(){return _.HC("START_IN_FULL_WINDOW_MODE")}}),
_.P("design:type",Boolean)],va.prototype,"mastheadHidden",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],va.prototype,"playerFullscreen",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],va.prototype,"fullscreen",void 0);_.N([_.e({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],va.prototype,"hideHeaderShadow",void 0);
_.N([_.e({value:{GUIDE_ALT_LABEL:_.zF("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.P("design:type",Object)],va.prototype,"menuStrings",void 0);_.N([_.e({computed:"computeTopbarData(data)"}),_.P("design:type",Object)],va.prototype,"topbarData",void 0);_.N([_.e({selector:_.zOi,reflectToAttribute:!0}),_.P("design:type",Boolean)],va.prototype,"isWatchPage",void 0);_.N([_.e({selector:_.lF_,reflectToAttribute:!0}),_.P("design:type",Boolean)],va.prototype,"isShortsPage",void 0);
_.N([_.e({selector:function(t){return _.pf(t)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.P("design:type",Boolean)],va.prototype,"isMiniAppPage",void 0);_.N([_.e({selector:function(t){return _.pf(t)==="WEB_PAGE_TYPE_BROWSE"}}),
_.P("design:type",Boolean)],va.prototype,"isBrowsePage",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Boolean)],va.prototype,"scrolling",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],va.prototype,"hasDelegation",void 0);_.N([_.e({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],va.prototype,"guideScrolledByTouch",void 0);_.N([_.e(),_.P("design:type",Object)],va.prototype,"isFrostedGlassInitialized",void 0);
_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],va.prototype,"frostedGlassExp",void 0);_.N([_.e({selector:function(t){return t.ui.chipBarIsSticky}}),
_.P("design:type",Boolean)],va.prototype,"chipBarIsSticky",void 0);_.N([_.e({selector:KQe}),_.P("design:type",Boolean)],va.prototype,"scrollAtTop",void 0);_.N([_.e({computed:"computeIsHomePage(isBrowsePage, data)"}),_.P("design:type",Boolean)],va.prototype,"isHomePage",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],va.prototype,"hasPendingWatchNavigation",void 0);_.N([_.e({reflectToAttribute:!0}),_.P("design:type",Object)],va.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.N([_.e(),_.P("design:type",Object)],va.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.N([Bz("guide"),_.P("design:type",Object)],va.prototype,"guide",void 0);_.N([Bz("guide-service"),_.P("design:type",hyd)],va.prototype,"guideService",void 0);_.N([Bz("guide-inner-content"),_.P("design:type",HTMLDivElement)],va.prototype,"guideInnerContent",void 0);_.N([_.Nl("#persistent-panel-container"),_.P("design:type",HTMLElement)],va.prototype,"persistentPanelContainer",void 0);
_.N([_.e({selector:_.DYE}),_.P("design:type",String)],va.prototype,"frostedGlassMode",void 0);_.N([_.GI("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],va.prototype,"dispatchFrostedGlassMode",null);_.N([_.e({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.P("design:type",Object)],va.prototype,"isFrostedGlassDisabled",void 0);
_.N([_.GI("isWatchPage"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],va.prototype,"isWatchPageChanged",null);_.N([_.Z("isHomePage","chipBarIsSticky","scrollAtTop"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],va.prototype,"applyFrostedGlassToChipBar",null);_.N([_.e(),_.P("design:type",Object)],va.prototype,"isChannelOrPlaylistPage",void 0);
_.N([_.P3("isInlinePreviewEnabled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],va.prototype,"isInlinePreviewEnabledChanged",null);_.N([_.GI("guideIsVisibleButNotPersistent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],va.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.N([_.GI("guidePersistentAndVisible","miniGuideVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],va.prototype,"observeGuideVisibility",null);_.N([_.GI("persistentPanelVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],va.prototype,"observePersistentPanelVisibility",null);
_.N([_.lc("attached"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],va.prototype,"onYtPageManagerAttached",null);_.N([_.GI("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],va.prototype,"updateMastheadData",null);_.N([_.lc("yt-set-theater-mode-enabled"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],va.prototype,"onSetTheaterModeEnabled",null);
_.N([_.lc("yt-page-type-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],va.prototype,"onPageChanged",null);_.N([_.lc("yt-page-data-updated"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],va.prototype,"onPageDataUpdated",null);_.N([_.lc("yt-request-panel-mode-change"),_.P("design:type",Function),_.P("design:paramtypes",[Event,Object]),_.P("design:returntype")],va.prototype,"onRequestPanelModeChange",null);
_.N([_.lc("yt-guide-hover"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],va.prototype,"onGuideOpenButtonHover",null);_.N([_.lc("app-drawer-transitioned"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],va.prototype,"onDrawerIronSelect",null);_.N([_.lc("yt-add-element-to-app"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],va.prototype,"onAddElementToApp",null);
_.N([_.lc("yt-set-fullerscreen-styles"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],va.prototype,"setFullscreen",null);_.N([_.lc("yt-open-hotkey-dialog"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],va.prototype,"onOpenHotkeyDialog",null);_.N([_.Ul({is:"ytd-app"})],va);_.ut().processSignal("eor");
_.AW&&_.AW.JSC$11332_setLoaded();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
